@ariestools/toolchain 8.7.26 → 8.7.28

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 (203) hide show
  1. package/dist/actions/analyze.d.ts +27 -9
  2. package/dist/actions/analyze.d.ts.map +1 -1
  3. package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts +6 -2
  4. package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts.map +1 -1
  5. package/dist/actions/api-exposure/analyzer/couplingWalk.d.ts.map +1 -1
  6. package/dist/actions/api-exposure/analyzer/depSignals.d.ts +12 -4
  7. package/dist/actions/api-exposure/analyzer/depSignals.d.ts.map +1 -1
  8. package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts +9 -3
  9. package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts.map +1 -1
  10. package/dist/actions/api-exposure/analyzer/importedPackages.d.ts +6 -2
  11. package/dist/actions/api-exposure/analyzer/importedPackages.d.ts.map +1 -1
  12. package/dist/actions/api-exposure/apiExposure.d.ts +9 -3
  13. package/dist/actions/api-exposure/apiExposure.d.ts.map +1 -1
  14. package/dist/actions/api-exposure/config.d.ts +12 -4
  15. package/dist/actions/api-exposure/config.d.ts.map +1 -1
  16. package/dist/actions/api-exposure/installStrategy.d.ts +6 -2
  17. package/dist/actions/api-exposure/installStrategy.d.ts.map +1 -1
  18. package/dist/actions/api-exposure/reporters.d.ts +3 -1
  19. package/dist/actions/api-exposure/reporters.d.ts.map +1 -1
  20. package/dist/actions/api-exposure/scoring.d.ts +3 -1
  21. package/dist/actions/api-exposure/scoring.d.ts.map +1 -1
  22. package/dist/actions/api-exposure/types.d.ts +48 -16
  23. package/dist/actions/api-exposure/types.d.ts.map +1 -1
  24. package/dist/actions/barrel/index.d.ts +0 -1
  25. package/dist/actions/barrel/index.d.ts.map +1 -1
  26. package/dist/actions/barrel/restrictionHelpers.d.ts +0 -19
  27. package/dist/actions/barrel/restrictionHelpers.d.ts.map +1 -1
  28. package/dist/actions/compile.d.ts +9 -3
  29. package/dist/actions/compile.d.ts.map +1 -1
  30. package/dist/actions/dead/analyzePackage.d.ts +18 -6
  31. package/dist/actions/dead/analyzePackage.d.ts.map +1 -1
  32. package/dist/actions/dead/collectSymbols.d.ts +12 -4
  33. package/dist/actions/dead/collectSymbols.d.ts.map +1 -1
  34. package/dist/actions/dead/evaluateRules.d.ts +3 -1
  35. package/dist/actions/dead/evaluateRules.d.ts.map +1 -1
  36. package/dist/actions/dead/findWorkspaceFile.d.ts +3 -1
  37. package/dist/actions/dead/findWorkspaceFile.d.ts.map +1 -1
  38. package/dist/actions/dead/ruleNames.d.ts +3 -1
  39. package/dist/actions/dead/ruleNames.d.ts.map +1 -1
  40. package/dist/actions/dead/runDeadAnalysis.d.ts +3 -1
  41. package/dist/actions/dead/runDeadAnalysis.d.ts.map +1 -1
  42. package/dist/actions/dead/sourceEdits.d.ts +3 -1
  43. package/dist/actions/dead/sourceEdits.d.ts.map +1 -1
  44. package/dist/actions/deplint/checkPackage/checkPackage.d.ts +3 -1
  45. package/dist/actions/deplint/checkPackage/checkPackage.d.ts.map +1 -1
  46. package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +6 -2
  47. package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -1
  48. package/dist/actions/deplint/collectPickRows.d.ts +24 -8
  49. package/dist/actions/deplint/collectPickRows.d.ts.map +1 -1
  50. package/dist/actions/deplint/deplint.d.ts +9 -3
  51. package/dist/actions/deplint/deplint.d.ts.map +1 -1
  52. package/dist/actions/deplint/deplintPick.d.ts +3 -1
  53. package/dist/actions/deplint/deplintPick.d.ts.map +1 -1
  54. package/dist/actions/deplint/editXyConfigPackages.d.ts +9 -3
  55. package/dist/actions/deplint/editXyConfigPackages.d.ts.map +1 -1
  56. package/dist/actions/deplint/fetchPackageManifest.d.ts +6 -2
  57. package/dist/actions/deplint/fetchPackageManifest.d.ts.map +1 -1
  58. package/dist/actions/deplint/findFiles.d.ts +7 -3
  59. package/dist/actions/deplint/findFiles.d.ts.map +1 -1
  60. package/dist/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -1
  61. package/dist/actions/deplint/interactivePick.d.ts +3 -1
  62. package/dist/actions/deplint/interactivePick.d.ts.map +1 -1
  63. package/dist/actions/deplint/isTerminalPackage.d.ts +13 -5
  64. package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -1
  65. package/dist/actions/deplint/resolvePeerBumpFixes.d.ts +3 -1
  66. package/dist/actions/deplint/resolvePeerBumpFixes.d.ts.map +1 -1
  67. package/dist/actions/deplint/snapshot.d.ts +24 -8
  68. package/dist/actions/deplint/snapshot.d.ts.map +1 -1
  69. package/dist/actions/deplint/sourceFileCache.d.ts +3 -1
  70. package/dist/actions/deplint/sourceFileCache.d.ts.map +1 -1
  71. package/dist/actions/deplint/types.d.ts +68 -25
  72. package/dist/actions/deplint/types.d.ts.map +1 -1
  73. package/dist/actions/gitignore.d.ts +3 -1
  74. package/dist/actions/gitignore.d.ts.map +1 -1
  75. package/dist/actions/lint.d.ts +15 -5
  76. package/dist/actions/lint.d.ts.map +1 -1
  77. package/dist/actions/lintNext.d.ts +6 -2
  78. package/dist/actions/lintNext.d.ts.map +1 -1
  79. package/dist/actions/lintNextWorker.d.ts +36 -12
  80. package/dist/actions/lintNextWorker.d.ts.map +1 -1
  81. package/dist/actions/lintPackageFilter.d.ts +15 -5
  82. package/dist/actions/lintPackageFilter.d.ts.map +1 -1
  83. package/dist/actions/package/clean-outputs.d.ts +3 -1
  84. package/dist/actions/package/clean-outputs.d.ts.map +1 -1
  85. package/dist/actions/package/clean-typescript.d.ts +3 -1
  86. package/dist/actions/package/clean-typescript.d.ts.map +1 -1
  87. package/dist/actions/package/cleanGitignore.d.ts +6 -2
  88. package/dist/actions/package/cleanGitignore.d.ts.map +1 -1
  89. package/dist/actions/package/cleanPlan.d.ts +6 -2
  90. package/dist/actions/package/cleanPlan.d.ts.map +1 -1
  91. package/dist/actions/package/cleanRules.d.ts +15 -5
  92. package/dist/actions/package/cleanRules.d.ts.map +1 -1
  93. package/dist/actions/package/compile/ApiExposureConfig.d.ts +24 -8
  94. package/dist/actions/package/compile/ApiExposureConfig.d.ts.map +1 -1
  95. package/dist/actions/package/compile/CleanConfig.d.ts +3 -1
  96. package/dist/actions/package/compile/CleanConfig.d.ts.map +1 -1
  97. package/dist/actions/package/compile/MonolithConfig.d.ts +39 -13
  98. package/dist/actions/package/compile/MonolithConfig.d.ts.map +1 -1
  99. package/dist/actions/package/compile/PublintConfig.d.ts +6 -2
  100. package/dist/actions/package/compile/PublintConfig.d.ts.map +1 -1
  101. package/dist/actions/package/compile/XyConfig.d.ts +162 -54
  102. package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
  103. package/dist/actions/package/compile/createProgramFromConfig.d.ts +18 -6
  104. package/dist/actions/package/compile/createProgramFromConfig.d.ts.map +1 -1
  105. package/dist/actions/package/compile/inputs.d.ts.map +1 -1
  106. package/dist/actions/package/compile/monolithCompileDeclarations.d.ts +3 -1
  107. package/dist/actions/package/compile/monolithCompileDeclarations.d.ts.map +1 -1
  108. package/dist/actions/package/compile/monolithCompileEntries.d.ts.map +1 -1
  109. package/dist/actions/package/compile/monolithCompileLayout.d.ts +15 -5
  110. package/dist/actions/package/compile/monolithCompileLayout.d.ts.map +1 -1
  111. package/dist/actions/package/compile/monolithCopyEntries.d.ts +6 -2
  112. package/dist/actions/package/compile/monolithCopyEntries.d.ts.map +1 -1
  113. package/dist/actions/package/compile/monolithReexport.d.ts +12 -4
  114. package/dist/actions/package/compile/monolithReexport.d.ts.map +1 -1
  115. package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -1
  116. package/dist/actions/recompile.d.ts +3 -1
  117. package/dist/actions/recompile.d.ts.map +1 -1
  118. package/dist/actions/skills/defaults.d.ts +26 -1
  119. package/dist/actions/skills/defaults.d.ts.map +1 -1
  120. package/dist/actions/skills/detectProfile.d.ts +8 -0
  121. package/dist/actions/skills/detectProfile.d.ts.map +1 -1
  122. package/dist/actions/skills/lint.d.ts.map +1 -1
  123. package/dist/actions/skills/skillRules.d.ts +14 -1
  124. package/dist/actions/skills/skillRules.d.ts.map +1 -1
  125. package/dist/actions/tsc-validate/sharedValidate.d.ts +6 -2
  126. package/dist/actions/tsc-validate/sharedValidate.d.ts.map +1 -1
  127. package/dist/actions/tsc-validate/tscValidate.d.ts.map +1 -1
  128. package/dist/actions/work/github.d.ts +9 -3
  129. package/dist/actions/work/github.d.ts.map +1 -1
  130. package/dist/actions/work/helpers.d.ts +3 -1
  131. package/dist/actions/work/helpers.d.ts.map +1 -1
  132. package/dist/actions/work/index.d.ts +6 -2
  133. package/dist/actions/work/index.d.ts.map +1 -1
  134. package/dist/actions/work/list.d.ts +6 -2
  135. package/dist/actions/work/list.d.ts.map +1 -1
  136. package/dist/actions/work/move.d.ts +3 -1
  137. package/dist/actions/work/move.d.ts.map +1 -1
  138. package/dist/actions/work/store.d.ts +3 -1
  139. package/dist/actions/work/store.d.ts.map +1 -1
  140. package/dist/actions/work/sync.d.ts +15 -5
  141. package/dist/actions/work/sync.d.ts.map +1 -1
  142. package/dist/actions/work/workspace.d.ts +15 -5
  143. package/dist/actions/work/workspace.d.ts.map +1 -1
  144. package/dist/bin/package/build.mjs +1134 -2638
  145. package/dist/bin/package/build.mjs.map +1 -1
  146. package/dist/bin/package/clean.mjs +505 -2152
  147. package/dist/bin/package/clean.mjs.map +1 -1
  148. package/dist/bin/package/compile.mjs +866 -2501
  149. package/dist/bin/package/compile.mjs.map +1 -1
  150. package/dist/bin/package/copy-assets-cjs.mjs +175 -100
  151. package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
  152. package/dist/bin/package/copy-assets-esm.mjs +175 -100
  153. package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
  154. package/dist/bin/package/fix.mjs +263 -151
  155. package/dist/bin/package/fix.mjs.map +1 -1
  156. package/dist/bin/package/lint-verbose.mjs +263 -151
  157. package/dist/bin/package/lint-verbose.mjs.map +1 -1
  158. package/dist/bin/package/lint.mjs +263 -151
  159. package/dist/bin/package/lint.mjs.map +1 -1
  160. package/dist/bin/package/publint.mjs +619 -2198
  161. package/dist/bin/package/publint.mjs.map +1 -1
  162. package/dist/bin/package/recompile.mjs +892 -2511
  163. package/dist/bin/package/recompile.mjs.map +1 -1
  164. package/dist/bin/package/relint.mjs +263 -151
  165. package/dist/bin/package/relint.mjs.map +1 -1
  166. package/dist/bin/package/sync-layout.mjs +329 -2032
  167. package/dist/bin/package/sync-layout.mjs.map +1 -1
  168. package/dist/bin/run-or-exec.mjs +165 -88
  169. package/dist/bin/run-or-exec.mjs.map +1 -1
  170. package/dist/bin/skills.mjs +4828 -851
  171. package/dist/bin/skills.mjs.map +1 -1
  172. package/dist/bin/xy.mjs +3115 -4443
  173. package/dist/bin/xy.mjs.map +1 -1
  174. package/dist/lib/copyAssetFiles.d.ts +3 -1
  175. package/dist/lib/copyAssetFiles.d.ts.map +1 -1
  176. package/dist/lib/licenseCheck/checkLicenses.d.ts +18 -6
  177. package/dist/lib/licenseCheck/checkLicenses.d.ts.map +1 -1
  178. package/dist/lib/licenseCheck/collectProductionLicenses.d.ts +9 -3
  179. package/dist/lib/licenseCheck/collectProductionLicenses.d.ts.map +1 -1
  180. package/dist/lib/licenseCheck/readPackageLicense.d.ts +6 -2
  181. package/dist/lib/licenseCheck/readPackageLicense.d.ts.map +1 -1
  182. package/dist/lib/loadConfig.d.ts.map +1 -1
  183. package/dist/lib/match.d.ts +6 -2
  184. package/dist/lib/match.d.ts.map +1 -1
  185. package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts +12 -4
  186. package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts.map +1 -1
  187. package/dist/lib/safeExit.d.ts +3 -1
  188. package/dist/lib/safeExit.d.ts.map +1 -1
  189. package/dist/lib/updo/fetchRegistryInfo.d.ts.map +1 -1
  190. package/dist/lib/updo/interactiveSelect.d.ts +6 -2
  191. package/dist/lib/updo/interactiveSelect.d.ts.map +1 -1
  192. package/dist/lib/updo/interfaces.d.ts +15 -5
  193. package/dist/lib/updo/interfaces.d.ts.map +1 -1
  194. package/dist/lib/updo/resolveVersions.d.ts +15 -5
  195. package/dist/lib/updo/resolveVersions.d.ts.map +1 -1
  196. package/dist/lib/updo/runUpdo.d.ts +12 -4
  197. package/dist/lib/updo/runUpdo.d.ts.map +1 -1
  198. package/dist/pm/PackageManager.d.ts +45 -15
  199. package/dist/pm/PackageManager.d.ts.map +1 -1
  200. package/dist/xy/common/skills/index.d.ts.map +1 -1
  201. package/dist/xy/common/work/options.d.ts +3 -1
  202. package/dist/xy/common/work/options.d.ts.map +1 -1
  203. package/package.json +18 -18
@@ -7,15 +7,15 @@ import * as xi from "node:fs";
7
7
  import fs, { existsSync, readFileSync } from "node:fs";
8
8
  import PATH, { posix, win32 } from "node:path";
9
9
  import { fileURLToPath } from "node:url";
10
- import $e, { lstatSync, readdir, readdirSync, readlinkSync, realpathSync } from "fs";
10
+ import Ie, { lstatSync, readdir, readdirSync, readlinkSync, realpathSync } from "fs";
11
11
  import { lstat, readdir as readdir$1, readlink, realpath } from "node:fs/promises";
12
12
  import { EventEmitter } from "node:events";
13
13
  import Pe from "node:stream";
14
14
  import { StringDecoder } from "node:string_decoder";
15
15
  import Re from "path";
16
- import ts, { formatDiagnosticsWithColorAndContext, sys } from "typescript";
17
16
  import Ue from "os";
18
17
  import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
18
+ import ts, { formatDiagnosticsWithColorAndContext, sys } from "typescript";
19
19
  import { build } from "esbuild";
20
20
  //#region \0rolldown/runtime.js
21
21
  var __create = Object.create;
@@ -43,17 +43,47 @@ var __copyProps = (to, from, except, desc) => {
43
43
  }
44
44
  return to;
45
45
  };
46
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
46
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
47
47
  value: mod,
48
48
  enumerable: true
49
49
  }) : target, mod));
50
50
  var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
51
51
  //#endregion
52
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
52
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/utilities.js
53
+ function stringReplaceAll(string, substring, postfix) {
54
+ let index = string.indexOf(substring);
55
+ if (index === -1) return string;
56
+ const substringLength = substring.length;
57
+ let endIndex = 0;
58
+ let returnValue = "";
59
+ do {
60
+ returnValue += string.slice(endIndex, index) + substring + postfix;
61
+ endIndex = index + substringLength;
62
+ index = string.indexOf(substring, endIndex);
63
+ } while (index !== -1);
64
+ returnValue += string.slice(endIndex);
65
+ return returnValue;
66
+ }
67
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
68
+ let endIndex = 0;
69
+ let returnValue = "";
70
+ do {
71
+ const isGotCR = string[index - 1] === "\r";
72
+ returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
73
+ endIndex = index + 1;
74
+ index = string.indexOf("\n", endIndex);
75
+ } while (index !== -1);
76
+ returnValue += string.slice(endIndex);
77
+ return returnValue;
78
+ }
79
+ //#endregion
80
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/ansi-styles/index.js
53
81
  const ANSI_BACKGROUND_OFFSET = 10;
54
- const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
55
- const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
56
- const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
82
+ const ANSI_UNDERLINE_OFFSET = 20;
83
+ const wrapAnsi16 = (offset = 0) => (code) => `\u{1B}[${code + offset}m`;
84
+ const wrapAnsi256 = (offset = 0) => (code) => `\u{1B}[${38 + offset};5;${code}m`;
85
+ const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u{1B}[${38 + offset};2;${red};${green};${blue}m`;
86
+ const wrapUnderlineAnsi = (code) => `\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
57
87
  const styles$1 = {
58
88
  modifier: {
59
89
  reset: [0, 0],
@@ -61,6 +91,10 @@ const styles$1 = {
61
91
  dim: [2, 22],
62
92
  italic: [3, 23],
63
93
  underline: [4, 24],
94
+ underlineDouble: ["4:2", 24],
95
+ underlineCurly: ["4:3", 24],
96
+ underlineDotted: ["4:4", 24],
97
+ underlineDashed: ["4:5", 24],
64
98
  overline: [53, 55],
65
99
  inverse: [7, 27],
66
100
  hidden: [8, 28],
@@ -105,22 +139,43 @@ const styles$1 = {
105
139
  bgMagentaBright: [105, 49],
106
140
  bgCyanBright: [106, 49],
107
141
  bgWhiteBright: [107, 49]
142
+ },
143
+ underlineColor: {
144
+ underlineBlack: ["58;5;0", 59],
145
+ underlineRed: ["58;5;1", 59],
146
+ underlineGreen: ["58;5;2", 59],
147
+ underlineYellow: ["58;5;3", 59],
148
+ underlineBlue: ["58;5;4", 59],
149
+ underlineMagenta: ["58;5;5", 59],
150
+ underlineCyan: ["58;5;6", 59],
151
+ underlineWhite: ["58;5;7", 59],
152
+ underlineBlackBright: ["58;5;8", 59],
153
+ underlineGray: ["58;5;8", 59],
154
+ underlineGrey: ["58;5;8", 59],
155
+ underlineRedBright: ["58;5;9", 59],
156
+ underlineGreenBright: ["58;5;10", 59],
157
+ underlineYellowBright: ["58;5;11", 59],
158
+ underlineBlueBright: ["58;5;12", 59],
159
+ underlineMagentaBright: ["58;5;13", 59],
160
+ underlineCyanBright: ["58;5;14", 59],
161
+ underlineWhiteBright: ["58;5;15", 59]
108
162
  }
109
163
  };
110
164
  Object.keys(styles$1.modifier);
111
165
  const foregroundColorNames = Object.keys(styles$1.color);
112
166
  const backgroundColorNames = Object.keys(styles$1.bgColor);
167
+ Object.keys(styles$1.underlineColor);
113
168
  [...foregroundColorNames, ...backgroundColorNames];
114
169
  function assembleStyles() {
115
170
  const codes = /* @__PURE__ */ new Map();
116
171
  for (const [groupName, group] of Object.entries(styles$1)) {
117
172
  for (const [styleName, style] of Object.entries(group)) {
118
173
  styles$1[styleName] = {
119
- open: `\u001B[${style[0]}m`,
120
- close: `\u001B[${style[1]}m`
174
+ open: `\u{1B}[${style[0]}m`,
175
+ close: `\u{1B}[${style[1]}m`
121
176
  };
122
177
  group[styleName] = styles$1[styleName];
123
- codes.set(style[0], style[1]);
178
+ codes.set(Number.parseInt(style[0], 10), style[1]);
124
179
  }
125
180
  Object.defineProperty(styles$1, groupName, {
126
181
  value: group,
@@ -133,12 +188,16 @@ function assembleStyles() {
133
188
  });
134
189
  styles$1.color.close = "\x1B[39m";
135
190
  styles$1.bgColor.close = "\x1B[49m";
191
+ styles$1.underlineColor.close = "\x1B[59m";
136
192
  styles$1.color.ansi = wrapAnsi16();
137
193
  styles$1.color.ansi256 = wrapAnsi256();
138
194
  styles$1.color.ansi16m = wrapAnsi16m();
139
195
  styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
140
196
  styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
141
197
  styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
198
+ styles$1.underlineColor.ansi = wrapUnderlineAnsi;
199
+ styles$1.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
200
+ styles$1.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
142
201
  Object.defineProperties(styles$1, {
143
202
  rgbToAnsi256: {
144
203
  value(red, green, blue) {
@@ -153,7 +212,7 @@ function assembleStyles() {
153
212
  },
154
213
  hexToRgb: {
155
214
  value(hex) {
156
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
215
+ const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
157
216
  if (!matches) return [
158
217
  0,
159
218
  0,
@@ -213,7 +272,7 @@ function assembleStyles() {
213
272
  }
214
273
  const ansiStyles = assembleStyles();
215
274
  //#endregion
216
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
275
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/supports-color/index.js
217
276
  function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
218
277
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
219
278
  const position = argv.indexOf(prefix + flag);
@@ -224,12 +283,15 @@ const { env } = process$1;
224
283
  let flagForceColor;
225
284
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
226
285
  else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
286
+ function hasNumericForceColor() {
287
+ return /^\d+$/.test(env.FORCE_COLOR);
288
+ }
227
289
  function envForceColor() {
228
- if ("FORCE_COLOR" in env) {
229
- if (env.FORCE_COLOR === "true") return 1;
230
- if (env.FORCE_COLOR === "false") return 0;
231
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
232
- }
290
+ if (!("FORCE_COLOR" in env)) return;
291
+ if (env.FORCE_COLOR === "false") return 0;
292
+ if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) return 1;
293
+ if (!hasNumericForceColor()) return;
294
+ return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
233
295
  }
234
296
  function translateLevel(level) {
235
297
  if (level === 0) return false;
@@ -249,6 +311,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
249
311
  if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
250
312
  if (hasFlag("color=256")) return 2;
251
313
  }
314
+ if (forceColor !== void 0 && hasNumericForceColor()) return forceColor;
252
315
  if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
253
316
  if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
254
317
  const min = forceColor || 0;
@@ -273,19 +336,19 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
273
336
  ].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
274
337
  return min;
275
338
  }
276
- if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
339
+ if ("TEAMCITY_VERSION" in env) return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
277
340
  if (env.COLORTERM === "truecolor") return 3;
278
341
  if (env.TERM === "xterm-kitty") return 3;
279
342
  if (env.TERM === "xterm-ghostty") return 3;
280
343
  if (env.TERM === "wezterm") return 3;
281
344
  if ("TERM_PROGRAM" in env) {
282
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
345
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
283
346
  switch (env.TERM_PROGRAM) {
284
347
  case "iTerm.app": return version >= 3 ? 3 : 2;
285
348
  case "Apple_Terminal": return 2;
286
349
  }
287
350
  }
288
- if (/-256(color)?$/i.test(env.TERM)) return 2;
351
+ if (/-256(?:color)?$/i.test(env.TERM)) return 2;
289
352
  if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
290
353
  if ("COLORTERM" in env) return 1;
291
354
  return min;
@@ -296,55 +359,34 @@ function createSupportsColor(stream, options = {}) {
296
359
  ...options
297
360
  }));
298
361
  }
299
- const supportsColor = {
362
+ //#endregion
363
+ //#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/index.js
364
+ const { stdout: stdoutColor, stderr: stderrColor } = {
300
365
  stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
301
366
  stderr: createSupportsColor({ isTTY: tty.isatty(2) })
302
367
  };
303
- //#endregion
304
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
305
- function stringReplaceAll(string, substring, replacer) {
306
- let index = string.indexOf(substring);
307
- if (index === -1) return string;
308
- const substringLength = substring.length;
309
- let endIndex = 0;
310
- let returnValue = "";
311
- do {
312
- returnValue += string.slice(endIndex, index) + substring + replacer;
313
- endIndex = index + substringLength;
314
- index = string.indexOf(substring, endIndex);
315
- } while (index !== -1);
316
- returnValue += string.slice(endIndex);
317
- return returnValue;
318
- }
319
- function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
320
- let endIndex = 0;
321
- let returnValue = "";
322
- do {
323
- const gotCR = string[index - 1] === "\r";
324
- returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
325
- endIndex = index + 1;
326
- index = string.indexOf("\n", endIndex);
327
- } while (index !== -1);
328
- returnValue += string.slice(endIndex);
329
- return returnValue;
330
- }
331
- //#endregion
332
- //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
333
- const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
334
368
  const GENERATOR = Symbol("GENERATOR");
335
369
  const STYLER = Symbol("STYLER");
336
370
  const IS_EMPTY = Symbol("IS_EMPTY");
337
- const levelMapping = [
338
- "ansi",
339
- "ansi",
340
- "ansi256",
341
- "ansi16m"
342
- ];
371
+ const LEVEL = Symbol("LEVEL");
343
372
  const styles = Object.create(null);
373
+ const assertValidLevel = (level) => {
374
+ if (!Number.isSafeInteger(level) || level < 0 || level > 3) throw new Error("The `level` should be an integer from 0 to 3");
375
+ };
376
+ const levelDescriptor = {
377
+ enumerable: true,
378
+ get() {
379
+ return this[LEVEL];
380
+ },
381
+ set(level) {
382
+ assertValidLevel(level);
383
+ this[LEVEL] = level;
384
+ }
385
+ };
344
386
  const applyOptions = (object, options = {}) => {
345
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) throw new Error("The `level` option should be an integer from 0 to 3");
387
+ if (options.level !== void 0) assertValidLevel(options.level);
346
388
  const colorLevel = stdoutColor ? stdoutColor.level : 0;
347
- object.level = options.level === void 0 ? colorLevel : options.level;
389
+ object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
348
390
  };
349
391
  const chalkFactory = (options) => {
350
392
  const chalk = (...strings) => strings.join(" ");
@@ -366,35 +408,58 @@ styles.visible = { get() {
366
408
  Object.defineProperty(this, "visible", { value: builder });
367
409
  return builder;
368
410
  } };
369
- const getModelAnsi = (model, level, type, ...arguments_) => {
411
+ const createModelConverters = (model, type) => {
412
+ const style = ansiStyles[type];
370
413
  if (model === "rgb") {
371
- if (level === "ansi16m") return ansiStyles[type].ansi16m(...arguments_);
372
- if (level === "ansi256") return ansiStyles[type].ansi256(ansiStyles.rgbToAnsi256(...arguments_));
373
- return ansiStyles[type].ansi(ansiStyles.rgbToAnsi(...arguments_));
414
+ const ansi = (red, green, blue) => style.ansi(ansiStyles.rgbToAnsi(red, green, blue));
415
+ const ansi256 = (red, green, blue) => style.ansi256(ansiStyles.rgbToAnsi256(red, green, blue));
416
+ return [
417
+ ansi,
418
+ ansi,
419
+ ansi256,
420
+ style.ansi16m
421
+ ];
374
422
  }
375
- if (model === "hex") return getModelAnsi("rgb", level, type, ...ansiStyles.hexToRgb(...arguments_));
376
- return ansiStyles[type][model](...arguments_);
423
+ if (model === "hex") {
424
+ const ansi = (hex) => style.ansi(ansiStyles.hexToAnsi(hex));
425
+ const ansi256 = (hex) => style.ansi256(ansiStyles.hexToAnsi256(hex));
426
+ return [
427
+ ansi,
428
+ ansi,
429
+ ansi256,
430
+ (hex) => style.ansi16m(...ansiStyles.hexToRgb(hex))
431
+ ];
432
+ }
433
+ const ansi = (code) => style.ansi(ansiStyles.ansi256ToAnsi(code));
434
+ return [
435
+ ansi,
436
+ ansi,
437
+ style.ansi256,
438
+ style.ansi256
439
+ ];
377
440
  };
378
441
  for (const model of [
379
442
  "rgb",
380
443
  "hex",
381
444
  "ansi256"
382
445
  ]) {
383
- styles[model] = { get() {
384
- const { level } = this;
385
- return function(...arguments_) {
386
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansiStyles.color.close, this[STYLER]);
387
- return createBuilder(this, styler, this[IS_EMPTY]);
388
- };
389
- } };
390
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
391
- styles[bgModel] = { get() {
392
- const { level } = this;
393
- return function(...arguments_) {
394
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansiStyles.bgColor.close, this[STYLER]);
395
- return createBuilder(this, styler, this[IS_EMPTY]);
396
- };
397
- } };
446
+ const capitalizedModel = model[0].toUpperCase() + model.slice(1);
447
+ for (const [styleName, type] of [
448
+ [model, "color"],
449
+ ["bg" + capitalizedModel, "bgColor"],
450
+ ["underline" + capitalizedModel, "underlineColor"]
451
+ ]) {
452
+ const { close } = ansiStyles[type];
453
+ const converters = createModelConverters(model, type);
454
+ styles[styleName] = { get() {
455
+ const styleFunction = function(first, second, third) {
456
+ const open = converters[this.level](first, second, third);
457
+ return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
458
+ };
459
+ Object.defineProperty(this, styleName, { value: styleFunction });
460
+ return styleFunction;
461
+ } };
462
+ }
398
463
  }
399
464
  const proto = Object.defineProperties(() => {}, {
400
465
  ...styles,
@@ -427,15 +492,19 @@ const createStyler = (open, close, parent) => {
427
492
  };
428
493
  };
429
494
  const createBuilder = (self, _styler, _isEmpty) => {
430
- const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
495
+ const builder = (...arguments_) => {
496
+ if (arguments_.length === 1) return applyStyle(builder, "" + arguments_[0]);
497
+ if (arguments_.length === 2) return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
498
+ return applyStyle(builder, arguments_.join(" "));
499
+ };
431
500
  Object.setPrototypeOf(builder, proto);
432
- builder[GENERATOR] = self;
501
+ builder[GENERATOR] = self[GENERATOR] ?? self;
433
502
  builder[STYLER] = _styler;
434
503
  builder[IS_EMPTY] = _isEmpty;
435
504
  return builder;
436
505
  };
437
506
  const applyStyle = (self, string) => {
438
- if (self.level <= 0 || !string) return self[IS_EMPTY] ? "" : string;
507
+ if (self[GENERATOR][LEVEL] <= 0 || !string) return self[IS_EMPTY] ? "" : string;
439
508
  let styler = self[STYLER];
440
509
  if (styler === void 0) return string;
441
510
  const { openAll, closeAll } = styler;
@@ -447,7 +516,10 @@ const applyStyle = (self, string) => {
447
516
  if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
448
517
  return openAll + string + closeAll;
449
518
  };
450
- Object.defineProperties(createChalk.prototype, styles);
519
+ Object.defineProperties(createChalk.prototype, {
520
+ ...styles,
521
+ level: levelDescriptor
522
+ });
451
523
  const chalk = createChalk();
452
524
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
453
525
  //#endregion
@@ -456,7 +528,7 @@ function Ht(n) {
456
528
  return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
457
529
  }
458
530
  function ps(n) {
459
- return n.replace(as, fe$1).replace(ls, ue$1).replace(cs, qt).replace(fs$5, de$1).replace(us, pe$1);
531
+ return n.replace(as, fe$1).replace(ls, ue$1).replace(cs, qt).replace(fs$4, de$1).replace(us, pe$1);
460
532
  }
461
533
  function ms(n) {
462
534
  return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os$2, ",").replace(hs, ".");
@@ -548,7 +620,7 @@ function Ut(n, t = {}) {
548
620
  function es(n, t = {}) {
549
621
  return new I$1(n, t).iterate();
550
622
  }
551
- var Gt, ce, ss, fe$1, ue$1, qt, de$1, pe$1, is, rs, ns, os$2, hs, as, ls, cs, fs$5, us, ds, at, Ss, lt, Es, we$1, ye$1, W, xs, be$1, vs, Ct, Cs, Ts, As, ks, Kt, Se$1, Ee$1, Q$1, tt, O$2, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce$1, Te$1, Ae$1, xe$1, A$1, Vs, Ys, Xs, Js, N$1, Zs, ke$1, Qs, ti, ve$1, ei, D, si, Oe, Vt, Fe$1, At, Re$1, ii, q$1, De$1, Tt, ri, ft, Ne$1, oi, hi, ai, G, H$1, K$1, kt, ut, Rt, _e$1, Ot, Le$1, P, et, v$1, dt, st, C$1, F, T, Yt, Ft, k, x$1, Xt, Jt, We$1, Zt, B, Qt, Dt, pt, Y$1, M, mt, li, ci, fi, ui, Mt, te$1, di, pi, V, wt, Ue$1, $e$1, Ri, Oi, L, Ge$1, He$1, U, qe$1, Ke$1, X$1, Ve$1, _$1, gt, se$1, je$1, yt, j, Nt, Lt, Ie, Fi, ie$1, ze$1, bt, Be$1, _t, Wt, ne$1, Ye$1, R$2, Pt, jt, It, it, rt, St, Xe$1, Di, Mi, Ni, nt, _i, ot, oe$1, he$1, ae$1, Et, Li, zt, xt, vt, Pi, I$1, le$1, ji, Ii, zi, Bi, Ui, Ze$1;
623
+ var Gt, ce, ss, fe$1, ue$1, qt, de$1, pe$1, is, rs, ns, os$2, hs, as, ls, cs, fs$4, us, ds, at, Ss, lt, Es, we$1, ye$1, W, xs, be$1, vs, Ct, Cs, Ts, As, ks, Kt, Se$1, Ee$1, Q$1, tt, O$2, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce$1, Te$1, Ae$1, xe$1, A$1, Vs, Ys, Xs, Js, N$1, Zs, ke$1, Qs, ti, ve$1, ei, D, si, Oe$1, Vt, Fe$1, At, Re$1, ii, q$1, De$1, Tt, ri, ft, Ne$1, oi, hi, ai, G, H$1, K$1, kt, ut, Rt, _e$1, Ot, Le$1, P, et, v$1, dt, st, C$1, F, T, Yt, Ft, k, x$1, Xt, Jt, We$1, Zt, B, Qt, Dt, pt, Y$1, M, mt, li, ci, fi, ui, Mt, te$1, di, pi, V, vi, wt, Ue$1, $e, Ri, Oi, L$1, Ge$1, He$1, U, qe$1, Ke$1, X$1, Ve$1, _$1, gt, se$1, je$1, yt, j, Nt, Lt, Ie$1, Fi, ie$1, ze$1, bt, Be$1, _t, Wt, ne$1, Ye$1, R$2, Pt, jt, It, it, rt, St, Xe$1, Di, Mi, Ni, nt, _i, ot, oe$1, he$1, ae$1, Et, Li, zt, xt, vt, Pi, I$1, le$1, ji, Ii, zi, Bi, Ui, Ze$1;
552
624
  var init_index_min = __esmMin((() => {
553
625
  Gt = (n, t, e) => {
554
626
  let s = n instanceof RegExp ? ce(n, e) : n, i = t instanceof RegExp ? ce(t, e) : t, r = s !== null && i != null && ss(s, i, e);
@@ -593,7 +665,7 @@ var init_index_min = __esmMin((() => {
593
665
  as = /\\\\/g;
594
666
  ls = /\\{/g;
595
667
  cs = /\\}/g;
596
- fs$5 = /\\,/g;
668
+ fs$4 = /\\,/g;
597
669
  us = /\\./g;
598
670
  ds = 1e5;
599
671
  at = (n) => {
@@ -1333,7 +1405,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
1333
1405
  O$2.escape = tt;
1334
1406
  O$2.unescape = W;
1335
1407
  si = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
1336
- Oe = /* @__PURE__ */ new Set();
1408
+ Oe$1 = /* @__PURE__ */ new Set();
1337
1409
  Vt = typeof process == "object" && process ? process : {};
1338
1410
  Fe$1 = (n, t, e, s) => {
1339
1411
  typeof Vt.emitWarning == "function" ? Vt.emitWarning(n, t, e, s) : console.error(`[${e}] ${t}: ${n}`);
@@ -1366,7 +1438,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
1366
1438
  n && (n = !1, Fe$1("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t));
1367
1439
  };
1368
1440
  }
1369
- ii = (n) => !Oe.has(n);
1441
+ ii = (n) => !Oe$1.has(n);
1370
1442
  q$1 = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
1371
1443
  De$1 = (n) => q$1(n) ? n <= Math.pow(2, 8) ? Uint8Array : n <= Math.pow(2, 16) ? Uint16Array : n <= Math.pow(2, 32) ? Uint32Array : n <= Number.MAX_SAFE_INTEGER ? Tt : null : null;
1372
1444
  Tt = class extends Array {
@@ -1519,11 +1591,11 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
1519
1591
  if (this.#t === 0 && this.ttl === 0 && this.#s === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
1520
1592
  if (!this.ttlAutopurge && !this.#t && !this.#s) {
1521
1593
  let $t = "LRU_CACHE_UNBOUNDED";
1522
- ii($t) && (Oe.add($t), Fe$1("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", $t, Me));
1594
+ ii($t) && (Oe$1.add($t), Fe$1("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", $t, Me));
1523
1595
  }
1524
1596
  }
1525
1597
  getRemainingTTL(t) {
1526
- return this.#f.has(t) ? Infinity : 0;
1598
+ return this.#f.has(t) ? 1 / 0 : 0;
1527
1599
  }
1528
1600
  #M() {
1529
1601
  let t = new Tt(this.#t), e = new Tt(this.#t);
@@ -1559,7 +1631,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
1559
1631
  let h = this.#f.get(o);
1560
1632
  if (h === void 0) return 0;
1561
1633
  let a = t[h], l = e[h];
1562
- if (!a || !l) return Infinity;
1634
+ if (!a || !l) return 1 / 0;
1563
1635
  return a - ((i || r()) - l);
1564
1636
  }, this.#v = (o) => {
1565
1637
  let h = e[o], a = t[o];
@@ -2303,12 +2375,13 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2303
2375
  return oi;
2304
2376
  }
2305
2377
  };
2378
+ vi = realpathSync.native;
2306
2379
  wt = {
2307
2380
  lstatSync,
2308
2381
  readdir,
2309
2382
  readdirSync,
2310
2383
  readlinkSync,
2311
- realpathSync: realpathSync.native,
2384
+ realpathSync: vi,
2312
2385
  promises: {
2313
2386
  lstat,
2314
2387
  readdir: readdir$1,
@@ -2324,10 +2397,10 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2324
2397
  ...n.promises || {}
2325
2398
  }
2326
2399
  };
2327
- $e$1 = /^\\\\\?\\([a-z]:)\\?$/i;
2328
- Ri = (n) => n.replace(/\//g, "\\").replace($e$1, "$1\\");
2400
+ $e = /^\\\\\?\\([a-z]:)\\?$/i;
2401
+ Ri = (n) => n.replace(/\//g, "\\").replace($e, "$1\\");
2329
2402
  Oi = /[\\\/]/;
2330
- L = 0;
2403
+ L$1 = 0;
2331
2404
  Ge$1 = 1;
2332
2405
  He$1 = 2;
2333
2406
  U = 4;
@@ -2343,17 +2416,17 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2343
2416
  j = 128;
2344
2417
  Nt = 256;
2345
2418
  Lt = 512;
2346
- Ie = yt | j | Lt;
2419
+ Ie$1 = yt | j | Lt;
2347
2420
  Fi = 1023;
2348
- ie$1 = (n) => n.isFile() ? Ke$1 : n.isDirectory() ? U : n.isSymbolicLink() ? X$1 : n.isCharacterDevice() ? He$1 : n.isBlockDevice() ? qe$1 : n.isSocket() ? Ve$1 : n.isFIFO() ? Ge$1 : L;
2349
- ze$1 = new ft({ max: 2 ** 12 });
2421
+ ie$1 = (n) => n.isFile() ? Ke$1 : n.isDirectory() ? U : n.isSymbolicLink() ? X$1 : n.isCharacterDevice() ? He$1 : n.isBlockDevice() ? qe$1 : n.isSocket() ? Ve$1 : n.isFIFO() ? Ge$1 : L$1;
2422
+ ze$1 = new ft({ max: 4096 });
2350
2423
  bt = (n) => {
2351
2424
  let t = ze$1.get(n);
2352
2425
  if (t) return t;
2353
2426
  let e = n.normalize("NFKD");
2354
2427
  return ze$1.set(n, e), e;
2355
2428
  };
2356
- Be$1 = new ft({ max: 2 ** 12 });
2429
+ Be$1 = new ft({ max: 4096 });
2357
2430
  _t = (n) => {
2358
2431
  let t = Be$1.get(n);
2359
2432
  if (t) return t;
@@ -2366,7 +2439,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2366
2439
  }
2367
2440
  };
2368
2441
  ne$1 = class extends ft {
2369
- constructor(t = 16 * 1024) {
2442
+ constructor(t = 16384) {
2370
2443
  super({
2371
2444
  maxSize: t,
2372
2445
  sizeCalculation: (e) => e.length + 1
@@ -2470,7 +2543,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2470
2543
  get path() {
2471
2544
  return this.parentPath;
2472
2545
  }
2473
- constructor(t, e = L, s, i, r, o, h) {
2546
+ constructor(t, e = L$1, s, i, r, o, h) {
2474
2547
  this.name = t, this.#C = r ? _t(t) : bt(t), this.#e = e & Fi, this.nocase = r, this.roots = i, this.root = s || this, this.#_ = o, this.#g = h.fullpath, this.#x = h.relative, this.#A = h.relativePosix, this.parent = h.parent, this.parent ? this.#t = this.parent.#t : this.#t = Ue$1(h.fs);
2475
2548
  }
2476
2549
  depth() {
@@ -2500,7 +2573,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2500
2573
  if (t === "..") return this.parent || this;
2501
2574
  let s = this.children(), i = this.nocase ? _t(t) : bt(t);
2502
2575
  for (let a of s) if (a.#C === i) return a;
2503
- let r = this.parent ? this.sep : "", o = this.#g ? this.#g + r + t : void 0, h = this.newChild(t, L, {
2576
+ let r = this.parent ? this.sep : "", o = this.#g ? this.#g + r + t : void 0, h = this.newChild(t, L$1, {
2504
2577
  ...e,
2505
2578
  parent: this,
2506
2579
  fullpath: o
@@ -2542,7 +2615,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2542
2615
  return this.#y = s;
2543
2616
  }
2544
2617
  isUnknown() {
2545
- return (this.#e & _$1) === L;
2618
+ return (this.#e & _$1) === L$1;
2546
2619
  }
2547
2620
  isType(t) {
2548
2621
  return this[`is${t}`]();
@@ -2588,7 +2661,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2588
2661
  if (this.#M) return !0;
2589
2662
  if (!this.parent) return !1;
2590
2663
  let t = this.#e & _$1;
2591
- return !(t !== L && t !== X$1 || this.#e & Nt || this.#e & j);
2664
+ return !(t !== L$1 && t !== X$1 || this.#e & Nt || this.#e & j);
2592
2665
  }
2593
2666
  calledReaddir() {
2594
2667
  return !!(this.#e & se$1);
@@ -2659,7 +2732,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2659
2732
  }
2660
2733
  #B(t, e) {
2661
2734
  let s = ie$1(t), i = this.newChild(t.name, s, { parent: this }), r = i.#e & _$1;
2662
- return r !== U && r !== X$1 && r !== L && (i.#e |= yt), e.unshift(i), e.provisional++, i;
2735
+ return r !== U && r !== X$1 && r !== L$1 && (i.#e |= yt), e.unshift(i), e.provisional++, i;
2663
2736
  }
2664
2737
  #U(t, e) {
2665
2738
  for (let s = e.provisional; s < e.length; s++) {
@@ -2689,7 +2762,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2689
2762
  let { atime: e, atimeMs: s, birthtime: i, birthtimeMs: r, blksize: o, blocks: h, ctime: a, ctimeMs: l, dev: u, gid: c, ino: d, mode: f, mtime: m, mtimeMs: p, nlink: w, rdev: g, size: S, uid: E } = t;
2690
2763
  this.#b = e, this.#a = s, this.#m = i, this.#E = r, this.#c = o, this.#f = h, this.#R = a, this.#d = l, this.#s = u, this.#S = c, this.#h = d, this.#n = f, this.#p = m, this.#i = p, this.#r = w, this.#w = g, this.#u = S, this.#o = E;
2691
2764
  let y = ie$1(t);
2692
- this.#e = this.#e & gt | y | je$1, y !== L && y !== U && y !== X$1 && (this.#e |= yt);
2765
+ this.#e = this.#e & gt | y | je$1, y !== L$1 && y !== U && y !== X$1 && (this.#e |= yt);
2693
2766
  }
2694
2767
  #W = [];
2695
2768
  #O = !1;
@@ -2755,12 +2828,12 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2755
2828
  return t.slice(0, t.provisional);
2756
2829
  }
2757
2830
  canReaddir() {
2758
- if (this.#e & Ie) return !1;
2831
+ if (this.#e & Ie$1) return !1;
2759
2832
  let t = _$1 & this.#e;
2760
- return t === L || t === U || t === X$1;
2833
+ return t === L$1 || t === U || t === X$1;
2761
2834
  }
2762
2835
  shouldWalk(t, e) {
2763
- return (this.#e & U) === U && !(this.#e & Ie) && !t.has(this) && (!e || e(this));
2836
+ return (this.#e & U) === U && !(this.#e & Ie$1) && !t.has(this) && (!e || e(this));
2764
2837
  }
2765
2838
  async realpath() {
2766
2839
  if (this.#k) return this.#k;
@@ -2791,10 +2864,10 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2791
2864
  Pt = class n extends R$2 {
2792
2865
  sep = "\\";
2793
2866
  splitSep = Oi;
2794
- constructor(t, e = L, s, i, r, o, h) {
2867
+ constructor(t, e = L$1, s, i, r, o, h) {
2795
2868
  super(t, e, s, i, r, o, h);
2796
2869
  }
2797
- newChild(t, e = L, s = {}) {
2870
+ newChild(t, e = L$1, s = {}) {
2798
2871
  return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
2799
2872
  }
2800
2873
  getRootString(t) {
@@ -2806,13 +2879,13 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2806
2879
  return this.roots[t] = new it(t, this).root;
2807
2880
  }
2808
2881
  sameRoot(t, e = this.root.name) {
2809
- return t = t.toUpperCase().replace(/\//g, "\\").replace($e$1, "$1\\"), t === e;
2882
+ return t = t.toUpperCase().replace(/\//g, "\\").replace($e, "$1\\"), t === e;
2810
2883
  }
2811
2884
  };
2812
2885
  jt = class n extends R$2 {
2813
2886
  splitSep = "/";
2814
2887
  sep = "/";
2815
- constructor(t, e = L, s, i, r, o, h) {
2888
+ constructor(t, e = L$1, s, i, r, o, h) {
2816
2889
  super(t, e, s, i, r, o, h);
2817
2890
  }
2818
2891
  getRootString(t) {
@@ -2821,7 +2894,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2821
2894
  getRoot(t) {
2822
2895
  return this.root;
2823
2896
  }
2824
- newChild(t, e = L, s = {}) {
2897
+ newChild(t, e = L$1, s = {}) {
2825
2898
  return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
2826
2899
  }
2827
2900
  };
@@ -2835,7 +2908,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2835
2908
  #n;
2836
2909
  nocase;
2837
2910
  #r;
2838
- constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16 * 1024, fs: o = wt } = {}) {
2911
+ constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16384, fs: o = wt } = {}) {
2839
2912
  this.#r = Ue$1(o), (t instanceof URL || t.startsWith("file://")) && (t = fileURLToPath(t));
2840
2913
  let h = e.resolve(t);
2841
2914
  this.roots = Object.create(null), this.rootPath = this.parseRootPath(h), this.#t = new Wt(), this.#s = new Wt(), this.#n = new ne$1(r);
@@ -3403,7 +3476,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3403
3476
  includeChildMatches;
3404
3477
  constructor(t, e, s) {
3405
3478
  if (this.patterns = t, this.path = e, this.opts = s, this.#n = !s.posix && s.platform === "win32" ? "\\" : "/", this.includeChildMatches = s.includeChildMatches !== !1, (s.ignore || !this.includeChildMatches) && (this.#s = Li(s.ignore ?? [], s), !this.includeChildMatches && typeof this.#s.add != "function")) throw new Error("cannot ignore child matches, ignore lacks add() method.");
3406
- this.maxDepth = s.maxDepth || Infinity, s.signal && (this.signal = s.signal, this.signal.addEventListener("abort", () => {
3479
+ this.maxDepth = s.maxDepth || 1 / 0, s.signal && (this.signal = s.signal, this.signal.addEventListener("abort", () => {
3407
3480
  this.#t.length = 0;
3408
3481
  }));
3409
3482
  }
@@ -3440,7 +3513,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3440
3513
  return this.matchCheckTest(r, e);
3441
3514
  }
3442
3515
  matchCheckTest(t, e) {
3443
- return t && (this.maxDepth === Infinity || t.depth() <= this.maxDepth) && (!e || t.canReaddir()) && (!this.opts.nodir || !t.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !t.isSymbolicLink() || !t.realpathCached()?.isDirectory()) && !this.#r(t) ? t : void 0;
3516
+ return t && (this.maxDepth === 1 / 0 || t.depth() <= this.maxDepth) && (!e || t.canReaddir()) && (!this.opts.nodir || !t.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !t.isSymbolicLink() || !t.realpathCached()?.isDirectory()) && !this.#r(t) ? t : void 0;
3444
3517
  }
3445
3518
  matchCheckSync(t, e) {
3446
3519
  if (e && this.opts.nodir) return;
@@ -3497,7 +3570,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3497
3570
  };
3498
3571
  for (let [h, a, l] of s.matches.entries()) this.#r(h) || (r++, this.match(h, a, l).then(() => o()));
3499
3572
  for (let h of s.subwalkTargets()) {
3500
- if (this.maxDepth !== Infinity && h.depth() >= this.maxDepth) continue;
3573
+ if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
3501
3574
  r++;
3502
3575
  let a = h.readdirCached();
3503
3576
  h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, u) => this.walkCB3(h, u, s, o), !0);
@@ -3528,7 +3601,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3528
3601
  };
3529
3602
  for (let [h, a, l] of s.matches.entries()) this.#r(h) || this.matchSync(h, a, l);
3530
3603
  for (let h of s.subwalkTargets()) {
3531
- if (this.maxDepth !== Infinity && h.depth() >= this.maxDepth) continue;
3604
+ if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
3532
3605
  r++;
3533
3606
  let a = h.readdirSync();
3534
3607
  this.walkCB3Sync(h, a, s, o);
@@ -3620,7 +3693,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3620
3693
  patterns;
3621
3694
  constructor(t, e) {
3622
3695
  if (!e) throw new TypeError("glob options required");
3623
- if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = fileURLToPath(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== !1, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth : Infinity, this.stat = !!e.stat, this.ignore = e.ignore, this.withFileTypes && this.absolute !== void 0) throw new Error("cannot set absolute and withFileTypes:true");
3696
+ if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = fileURLToPath(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== !1, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth : 1 / 0, this.stat = !!e.stat, this.ignore = e.ignore, this.withFileTypes && this.absolute !== void 0) throw new Error("cannot set absolute and withFileTypes:true");
3624
3697
  if (typeof t == "string" && (t = [t]), this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === !1, this.windowsPathsNoEscape && (t = t.map((a) => a.replace(/\\/g, "/"))), this.matchBase) {
3625
3698
  if (e.noglobstar) throw new TypeError("base matching requires globstar");
3626
3699
  t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
@@ -3663,7 +3736,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3663
3736
  async walk() {
3664
3737
  return [...await new xt(this.patterns, this.scurry.cwd, {
3665
3738
  ...this.opts,
3666
- maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
3739
+ maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
3667
3740
  platform: this.platform,
3668
3741
  nocase: this.nocase,
3669
3742
  includeChildMatches: this.includeChildMatches
@@ -3672,7 +3745,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3672
3745
  walkSync() {
3673
3746
  return [...new xt(this.patterns, this.scurry.cwd, {
3674
3747
  ...this.opts,
3675
- maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
3748
+ maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
3676
3749
  platform: this.platform,
3677
3750
  nocase: this.nocase,
3678
3751
  includeChildMatches: this.includeChildMatches
@@ -3681,7 +3754,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3681
3754
  stream() {
3682
3755
  return new vt(this.patterns, this.scurry.cwd, {
3683
3756
  ...this.opts,
3684
- maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
3757
+ maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
3685
3758
  platform: this.platform,
3686
3759
  nocase: this.nocase,
3687
3760
  includeChildMatches: this.includeChildMatches
@@ -3690,7 +3763,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3690
3763
  streamSync() {
3691
3764
  return new vt(this.patterns, this.scurry.cwd, {
3692
3765
  ...this.opts,
3693
- maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
3766
+ maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
3694
3767
  platform: this.platform,
3695
3768
  nocase: this.nocase,
3696
3769
  includeChildMatches: this.includeChildMatches
@@ -3746,7 +3819,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3746
3819
  var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3747
3820
  module.exports = isexe;
3748
3821
  isexe.sync = sync;
3749
- var fs$4 = __require("fs");
3822
+ var fs$3 = __require("fs");
3750
3823
  function checkPathExt(path, options) {
3751
3824
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
3752
3825
  if (!pathext) return true;
@@ -3763,12 +3836,12 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3763
3836
  return checkPathExt(path, options);
3764
3837
  }
3765
3838
  function isexe(path, options, cb) {
3766
- fs$4.stat(path, function(er, stat) {
3839
+ fs$3.stat(path, function(er, stat) {
3767
3840
  cb(er, er ? false : checkStat(stat, path, options));
3768
3841
  });
3769
3842
  }
3770
3843
  function sync(path, options) {
3771
- return checkStat(fs$4.statSync(path), path, options);
3844
+ return checkStat(fs$3.statSync(path), path, options);
3772
3845
  }
3773
3846
  }));
3774
3847
  //#endregion
@@ -3776,14 +3849,14 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3776
3849
  var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3777
3850
  module.exports = isexe;
3778
3851
  isexe.sync = sync;
3779
- var fs$3 = __require("fs");
3852
+ var fs$2 = __require("fs");
3780
3853
  function isexe(path, options, cb) {
3781
- fs$3.stat(path, function(er, stat) {
3854
+ fs$2.stat(path, function(er, stat) {
3782
3855
  cb(er, er ? false : checkStat(stat, options));
3783
3856
  });
3784
3857
  }
3785
3858
  function sync(path, options) {
3786
- return checkStat(fs$3.statSync(path), options);
3859
+ return checkStat(fs$2.statSync(path), options);
3787
3860
  }
3788
3861
  function checkStat(stat, options) {
3789
3862
  return stat.isFile() && checkMode(stat, options);
@@ -3847,13 +3920,14 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3847
3920
  //#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
3848
3921
  var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3849
3922
  const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
3850
- const path$6 = __require("path");
3923
+ const path$4 = __require("path");
3851
3924
  const COLON = isWindows ? ";" : ":";
3852
3925
  const isexe = require_isexe();
3853
3926
  const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
3854
3927
  const getPathInfo = (cmd, opt) => {
3855
3928
  const colon = opt.colon || COLON;
3856
- const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH || "").split(colon)];
3929
+ const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH ||
3930
+ /* istanbul ignore next: very unusual */ "").split(colon)];
3857
3931
  const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
3858
3932
  const pathExt = isWindows ? pathExtExe.split(colon) : [""];
3859
3933
  if (isWindows) {
@@ -3877,7 +3951,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3877
3951
  if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
3878
3952
  const ppRaw = pathEnv[i];
3879
3953
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
3880
- const pCmd = path$6.join(pathPart, cmd);
3954
+ const pCmd = path$4.join(pathPart, cmd);
3881
3955
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
3882
3956
  resolve(subStep(p, i, 0));
3883
3957
  });
@@ -3885,8 +3959,10 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3885
3959
  if (ii === pathExt.length) return resolve(step(i + 1));
3886
3960
  const ext = pathExt[ii];
3887
3961
  isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
3888
- if (!er && is) if (opt.all) found.push(p + ext);
3889
- else return resolve(p + ext);
3962
+ if (!er && is) {
3963
+ if (opt.all) found.push(p + ext);
3964
+ else return resolve(p + ext);
3965
+ }
3890
3966
  return resolve(subStep(p, i, ii + 1));
3891
3967
  });
3892
3968
  });
@@ -3899,13 +3975,15 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3899
3975
  for (let i = 0; i < pathEnv.length; i++) {
3900
3976
  const ppRaw = pathEnv[i];
3901
3977
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
3902
- const pCmd = path$6.join(pathPart, cmd);
3978
+ const pCmd = path$4.join(pathPart, cmd);
3903
3979
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
3904
3980
  for (let j = 0; j < pathExt.length; j++) {
3905
3981
  const cur = p + pathExt[j];
3906
3982
  try {
3907
- if (isexe.sync(cur, { pathExt: pathExtExe })) if (opt.all) found.push(cur);
3908
- else return cur;
3983
+ if (isexe.sync(cur, { pathExt: pathExtExe })) {
3984
+ if (opt.all) found.push(cur);
3985
+ else return cur;
3986
+ }
3909
3987
  } catch (ex) {}
3910
3988
  }
3911
3989
  }
@@ -3930,7 +4008,7 @@ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3930
4008
  //#endregion
3931
4009
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
3932
4010
  var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3933
- const path$5 = __require("path");
4011
+ const path$3 = __require("path");
3934
4012
  const which = require_which();
3935
4013
  const getPathKey = require_path_key();
3936
4014
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -3945,12 +4023,12 @@ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3945
4023
  try {
3946
4024
  resolved = which.sync(parsed.command, {
3947
4025
  path: env[getPathKey({ env })],
3948
- pathExt: withoutPathExt ? path$5.delimiter : void 0
4026
+ pathExt: withoutPathExt ? path$3.delimiter : void 0
3949
4027
  });
3950
4028
  } catch (e) {} finally {
3951
4029
  if (shouldSwitchCwd) process.chdir(cwd);
3952
4030
  }
3953
- if (resolved) resolved = path$5.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
4031
+ if (resolved) resolved = path$3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
3954
4032
  return resolved;
3955
4033
  }
3956
4034
  function resolveCommand(parsed) {
@@ -3999,16 +4077,16 @@ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) =
3999
4077
  //#endregion
4000
4078
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
4001
4079
  var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4002
- const fs$2 = __require("fs");
4080
+ const fs$1 = __require("fs");
4003
4081
  const shebangCommand = require_shebang_command();
4004
4082
  function readShebang(command) {
4005
4083
  const size = 150;
4006
4084
  const buffer = Buffer.alloc(size);
4007
4085
  let fd;
4008
4086
  try {
4009
- fd = fs$2.openSync(command, "r");
4010
- fs$2.readSync(fd, buffer, 0, size, 0);
4011
- fs$2.closeSync(fd);
4087
+ fd = fs$1.openSync(command, "r");
4088
+ fs$1.readSync(fd, buffer, 0, size, 0);
4089
+ fs$1.closeSync(fd);
4012
4090
  } catch (e) {}
4013
4091
  return shebangCommand(buffer.toString());
4014
4092
  }
@@ -4017,7 +4095,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4017
4095
  //#endregion
4018
4096
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
4019
4097
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4020
- const path$4 = __require("path");
4098
+ const path$2 = __require("path");
4021
4099
  const resolveCommand = require_resolveCommand();
4022
4100
  const escape = require_escape();
4023
4101
  const readShebang = require_readShebang();
@@ -4040,7 +4118,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4040
4118
  const needsShell = !isExecutableRegExp.test(commandFile);
4041
4119
  if (parsed.options.forceShell || needsShell) {
4042
4120
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
4043
- parsed.command = path$4.normalize(parsed.command);
4121
+ parsed.command = path$2.normalize(parsed.command);
4044
4122
  parsed.command = escape.command(parsed.command);
4045
4123
  parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
4046
4124
  parsed.args = [
@@ -4287,1768 +4365,6 @@ function INIT_CWD() {
4287
4365
  return process.env.INIT_CWD ?? process.cwd();
4288
4366
  }
4289
4367
  //#endregion
4290
- //#region ../../node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js
4291
- var require_resolve_from = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4292
- const path$3 = __require("path");
4293
- const Module = __require("module");
4294
- const fs$1 = __require("fs");
4295
- const resolveFrom = (fromDir, moduleId, silent) => {
4296
- if (typeof fromDir !== "string") throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
4297
- if (typeof moduleId !== "string") throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
4298
- try {
4299
- fromDir = fs$1.realpathSync(fromDir);
4300
- } catch (err) {
4301
- if (err.code === "ENOENT") fromDir = path$3.resolve(fromDir);
4302
- else if (silent) return null;
4303
- else throw err;
4304
- }
4305
- const fromFile = path$3.join(fromDir, "noop.js");
4306
- const resolveFileName = () => Module._resolveFilename(moduleId, {
4307
- id: fromFile,
4308
- filename: fromFile,
4309
- paths: Module._nodeModulePaths(fromDir)
4310
- });
4311
- if (silent) try {
4312
- return resolveFileName();
4313
- } catch (err) {
4314
- return null;
4315
- }
4316
- return resolveFileName();
4317
- };
4318
- module.exports = (fromDir, moduleId) => resolveFrom(fromDir, moduleId);
4319
- module.exports.silent = (fromDir, moduleId) => resolveFrom(fromDir, moduleId, true);
4320
- }));
4321
- //#endregion
4322
- //#region ../../node_modules/.pnpm/callsites@3.1.0/node_modules/callsites/index.js
4323
- var require_callsites = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4324
- const callsites = () => {
4325
- const _prepareStackTrace = Error.prepareStackTrace;
4326
- Error.prepareStackTrace = (_, stack) => stack;
4327
- const stack = (/* @__PURE__ */ new Error()).stack.slice(1);
4328
- Error.prepareStackTrace = _prepareStackTrace;
4329
- return stack;
4330
- };
4331
- module.exports = callsites;
4332
- module.exports.default = callsites;
4333
- }));
4334
- //#endregion
4335
- //#region ../../node_modules/.pnpm/parent-module@1.0.1/node_modules/parent-module/index.js
4336
- var require_parent_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4337
- const callsites = require_callsites();
4338
- module.exports = (filepath) => {
4339
- const stacks = callsites();
4340
- if (!filepath) return stacks[2].getFileName();
4341
- let seenVal = false;
4342
- stacks.shift();
4343
- for (const stack of stacks) {
4344
- const parentFilepath = stack.getFileName();
4345
- if (typeof parentFilepath !== "string") continue;
4346
- if (parentFilepath === filepath) {
4347
- seenVal = true;
4348
- continue;
4349
- }
4350
- if (parentFilepath === "module.js") continue;
4351
- if (seenVal && parentFilepath !== filepath) return parentFilepath;
4352
- }
4353
- };
4354
- }));
4355
- //#endregion
4356
- //#region ../../node_modules/.pnpm/import-fresh@3.3.1/node_modules/import-fresh/index.js
4357
- var require_import_fresh = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4358
- const path$2 = __require("path");
4359
- const resolveFrom = require_resolve_from();
4360
- const parentModule = require_parent_module();
4361
- module.exports = (moduleId) => {
4362
- if (typeof moduleId !== "string") throw new TypeError("Expected a string");
4363
- const parentPath = parentModule(__filename);
4364
- const cwd = parentPath ? path$2.dirname(parentPath) : __dirname;
4365
- const filePath = resolveFrom(cwd, moduleId);
4366
- const oldModule = __require.cache[filePath];
4367
- if (oldModule && oldModule.parent) {
4368
- let i = oldModule.parent.children.length;
4369
- while (i--) if (oldModule.parent.children[i].id === filePath) oldModule.parent.children.splice(i, 1);
4370
- }
4371
- delete __require.cache[filePath];
4372
- const parent = __require.cache[parentPath];
4373
- return parent === void 0 || parent.require === void 0 ? __require(filePath) : parent.require(filePath);
4374
- };
4375
- }));
4376
- //#endregion
4377
- //#region ../../node_modules/.pnpm/is-arrayish@0.2.1/node_modules/is-arrayish/index.js
4378
- var require_is_arrayish = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4379
- module.exports = function isArrayish(obj) {
4380
- if (!obj) return false;
4381
- return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && obj.splice instanceof Function;
4382
- };
4383
- }));
4384
- //#endregion
4385
- //#region ../../node_modules/.pnpm/error-ex@1.3.4/node_modules/error-ex/index.js
4386
- var require_error_ex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4387
- var util = __require("util");
4388
- var isArrayish = require_is_arrayish();
4389
- var errorEx = function errorEx(name, properties) {
4390
- if (!name || name.constructor !== String) {
4391
- properties = name || {};
4392
- name = Error.name;
4393
- }
4394
- var errorExError = function ErrorEXError(message) {
4395
- if (!this) return new ErrorEXError(message);
4396
- message = message instanceof Error ? message.message : message || this.message;
4397
- Error.call(this, message);
4398
- Error.captureStackTrace(this, errorExError);
4399
- this.name = name;
4400
- Object.defineProperty(this, "message", {
4401
- configurable: true,
4402
- enumerable: false,
4403
- get: function() {
4404
- var newMessage = message.split(/\r?\n/g);
4405
- for (var key in properties) {
4406
- if (!properties.hasOwnProperty(key)) continue;
4407
- var modifier = properties[key];
4408
- if ("message" in modifier) {
4409
- newMessage = modifier.message(this[key], newMessage) || newMessage;
4410
- if (!isArrayish(newMessage)) newMessage = [newMessage];
4411
- }
4412
- }
4413
- return newMessage.join("\n");
4414
- },
4415
- set: function(v) {
4416
- message = v;
4417
- }
4418
- });
4419
- var overwrittenStack = null;
4420
- var stackDescriptor = Object.getOwnPropertyDescriptor(this, "stack");
4421
- var stackGetter = stackDescriptor.get;
4422
- var stackValue = stackDescriptor.value;
4423
- delete stackDescriptor.value;
4424
- delete stackDescriptor.writable;
4425
- stackDescriptor.set = function(newstack) {
4426
- overwrittenStack = newstack;
4427
- };
4428
- stackDescriptor.get = function() {
4429
- var stack = (overwrittenStack || (stackGetter ? stackGetter.call(this) : stackValue)).split(/\r?\n+/g);
4430
- if (!overwrittenStack) stack[0] = this.name + ": " + this.message;
4431
- var lineCount = 1;
4432
- for (var key in properties) {
4433
- if (!properties.hasOwnProperty(key)) continue;
4434
- var modifier = properties[key];
4435
- if ("line" in modifier) {
4436
- var line = modifier.line(this[key]);
4437
- if (line) stack.splice(lineCount++, 0, " " + line);
4438
- }
4439
- if ("stack" in modifier) modifier.stack(this[key], stack);
4440
- }
4441
- return stack.join("\n");
4442
- };
4443
- Object.defineProperty(this, "stack", stackDescriptor);
4444
- };
4445
- if (Object.setPrototypeOf) {
4446
- Object.setPrototypeOf(errorExError.prototype, Error.prototype);
4447
- Object.setPrototypeOf(errorExError, Error);
4448
- } else util.inherits(errorExError, Error);
4449
- return errorExError;
4450
- };
4451
- errorEx.append = function(str, def) {
4452
- return { message: function(v, message) {
4453
- v = v || def;
4454
- if (v) message[0] += " " + str.replace("%s", v.toString());
4455
- return message;
4456
- } };
4457
- };
4458
- errorEx.line = function(str, def) {
4459
- return { line: function(v) {
4460
- v = v || def;
4461
- if (v) return str.replace("%s", v.toString());
4462
- return null;
4463
- } };
4464
- };
4465
- module.exports = errorEx;
4466
- }));
4467
- //#endregion
4468
- //#region ../../node_modules/.pnpm/json-parse-even-better-errors@2.3.1/node_modules/json-parse-even-better-errors/index.js
4469
- var require_json_parse_even_better_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4470
- const hexify = (char) => {
4471
- const h = char.charCodeAt(0).toString(16).toUpperCase();
4472
- return "0x" + (h.length % 2 ? "0" : "") + h;
4473
- };
4474
- const parseError = (e, txt, context) => {
4475
- if (!txt) return {
4476
- message: e.message + " while parsing empty string",
4477
- position: 0
4478
- };
4479
- const badToken = e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i);
4480
- const errIdx = badToken ? +badToken[2] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null;
4481
- const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${JSON.stringify(badToken[1])} (${hexify(badToken[1])})`) : e.message;
4482
- if (errIdx !== null && errIdx !== void 0) {
4483
- const start = errIdx <= context ? 0 : errIdx - context;
4484
- const end = errIdx + context >= txt.length ? txt.length : errIdx + context;
4485
- const slice = (start === 0 ? "" : "...") + txt.slice(start, end) + (end === txt.length ? "" : "...");
4486
- return {
4487
- message: msg + ` while parsing ${txt === slice ? "" : "near "}${JSON.stringify(slice)}`,
4488
- position: errIdx
4489
- };
4490
- } else return {
4491
- message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,
4492
- position: 0
4493
- };
4494
- };
4495
- var JSONParseError = class extends SyntaxError {
4496
- constructor(er, txt, context, caller) {
4497
- context = context || 20;
4498
- const metadata = parseError(er, txt, context);
4499
- super(metadata.message);
4500
- Object.assign(this, metadata);
4501
- this.code = "EJSONPARSE";
4502
- this.systemError = er;
4503
- Error.captureStackTrace(this, caller || this.constructor);
4504
- }
4505
- get name() {
4506
- return this.constructor.name;
4507
- }
4508
- set name(n) {}
4509
- get [Symbol.toStringTag]() {
4510
- return this.constructor.name;
4511
- }
4512
- };
4513
- const kIndent = Symbol.for("indent");
4514
- const kNewline = Symbol.for("newline");
4515
- const formatRE = /^\s*[{\[]((?:\r?\n)+)([\s\t]*)/;
4516
- const emptyRE = /^(?:\{\}|\[\])((?:\r?\n)+)?$/;
4517
- const parseJson = (txt, reviver, context) => {
4518
- const parseText = stripBOM(txt);
4519
- context = context || 20;
4520
- try {
4521
- const [, newline = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [
4522
- ,
4523
- "",
4524
- ""
4525
- ];
4526
- const result = JSON.parse(parseText, reviver);
4527
- if (result && typeof result === "object") {
4528
- result[kNewline] = newline;
4529
- result[kIndent] = indent;
4530
- }
4531
- return result;
4532
- } catch (e) {
4533
- if (typeof txt !== "string" && !Buffer.isBuffer(txt)) {
4534
- const isEmptyArray = Array.isArray(txt) && txt.length === 0;
4535
- throw Object.assign(/* @__PURE__ */ new TypeError(`Cannot parse ${isEmptyArray ? "an empty array" : String(txt)}`), {
4536
- code: "EJSONPARSE",
4537
- systemError: e
4538
- });
4539
- }
4540
- throw new JSONParseError(e, parseText, context, parseJson);
4541
- }
4542
- };
4543
- const stripBOM = (txt) => String(txt).replace(/^\uFEFF/, "");
4544
- module.exports = parseJson;
4545
- parseJson.JSONParseError = JSONParseError;
4546
- parseJson.noExceptions = (txt, reviver) => {
4547
- try {
4548
- return JSON.parse(stripBOM(txt), reviver);
4549
- } catch (e) {}
4550
- };
4551
- }));
4552
- //#endregion
4553
- //#region ../../node_modules/.pnpm/lines-and-columns@1.2.4/node_modules/lines-and-columns/build/index.js
4554
- var require_build = /* @__PURE__ */ __commonJSMin(((exports) => {
4555
- exports.__esModule = true;
4556
- exports.LinesAndColumns = void 0;
4557
- var LF = "\n";
4558
- var CR = "\r";
4559
- var LinesAndColumns = function() {
4560
- function LinesAndColumns(string) {
4561
- this.string = string;
4562
- var offsets = [0];
4563
- for (var offset = 0; offset < string.length;) switch (string[offset]) {
4564
- case LF:
4565
- offset += LF.length;
4566
- offsets.push(offset);
4567
- break;
4568
- case CR:
4569
- offset += CR.length;
4570
- if (string[offset] === LF) offset += LF.length;
4571
- offsets.push(offset);
4572
- break;
4573
- default:
4574
- offset++;
4575
- break;
4576
- }
4577
- this.offsets = offsets;
4578
- }
4579
- LinesAndColumns.prototype.locationForIndex = function(index) {
4580
- if (index < 0 || index > this.string.length) return null;
4581
- var line = 0;
4582
- var offsets = this.offsets;
4583
- while (offsets[line + 1] <= index) line++;
4584
- var column = index - offsets[line];
4585
- return {
4586
- line,
4587
- column
4588
- };
4589
- };
4590
- LinesAndColumns.prototype.indexForLocation = function(location) {
4591
- var line = location.line, column = location.column;
4592
- if (line < 0 || line >= this.offsets.length) return null;
4593
- if (column < 0 || column > this.lengthOfLine(line)) return null;
4594
- return this.offsets[line] + column;
4595
- };
4596
- LinesAndColumns.prototype.lengthOfLine = function(line) {
4597
- var offset = this.offsets[line];
4598
- return (line === this.offsets.length - 1 ? this.string.length : this.offsets[line + 1]) - offset;
4599
- };
4600
- return LinesAndColumns;
4601
- }();
4602
- exports.LinesAndColumns = LinesAndColumns;
4603
- exports["default"] = LinesAndColumns;
4604
- }));
4605
- //#endregion
4606
- //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
4607
- var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4608
- let p = process || {};
4609
- let argv = p.argv || [];
4610
- let env = p.env || {};
4611
- let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
4612
- let formatter = (open, close, replace = open) => (input) => {
4613
- let string = "" + input, index = string.indexOf(close, open.length);
4614
- return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
4615
- };
4616
- let replaceClose = (string, close, replace, index) => {
4617
- let result = "", cursor = 0;
4618
- do {
4619
- result += string.substring(cursor, index) + replace;
4620
- cursor = index + close.length;
4621
- index = string.indexOf(close, cursor);
4622
- } while (~index);
4623
- return result + string.substring(cursor);
4624
- };
4625
- let createColors = (enabled = isColorSupported) => {
4626
- let f = enabled ? formatter : () => String;
4627
- return {
4628
- isColorSupported: enabled,
4629
- reset: f("\x1B[0m", "\x1B[0m"),
4630
- bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
4631
- dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
4632
- italic: f("\x1B[3m", "\x1B[23m"),
4633
- underline: f("\x1B[4m", "\x1B[24m"),
4634
- inverse: f("\x1B[7m", "\x1B[27m"),
4635
- hidden: f("\x1B[8m", "\x1B[28m"),
4636
- strikethrough: f("\x1B[9m", "\x1B[29m"),
4637
- black: f("\x1B[30m", "\x1B[39m"),
4638
- red: f("\x1B[31m", "\x1B[39m"),
4639
- green: f("\x1B[32m", "\x1B[39m"),
4640
- yellow: f("\x1B[33m", "\x1B[39m"),
4641
- blue: f("\x1B[34m", "\x1B[39m"),
4642
- magenta: f("\x1B[35m", "\x1B[39m"),
4643
- cyan: f("\x1B[36m", "\x1B[39m"),
4644
- white: f("\x1B[37m", "\x1B[39m"),
4645
- gray: f("\x1B[90m", "\x1B[39m"),
4646
- bgBlack: f("\x1B[40m", "\x1B[49m"),
4647
- bgRed: f("\x1B[41m", "\x1B[49m"),
4648
- bgGreen: f("\x1B[42m", "\x1B[49m"),
4649
- bgYellow: f("\x1B[43m", "\x1B[49m"),
4650
- bgBlue: f("\x1B[44m", "\x1B[49m"),
4651
- bgMagenta: f("\x1B[45m", "\x1B[49m"),
4652
- bgCyan: f("\x1B[46m", "\x1B[49m"),
4653
- bgWhite: f("\x1B[47m", "\x1B[49m"),
4654
- blackBright: f("\x1B[90m", "\x1B[39m"),
4655
- redBright: f("\x1B[91m", "\x1B[39m"),
4656
- greenBright: f("\x1B[92m", "\x1B[39m"),
4657
- yellowBright: f("\x1B[93m", "\x1B[39m"),
4658
- blueBright: f("\x1B[94m", "\x1B[39m"),
4659
- magentaBright: f("\x1B[95m", "\x1B[39m"),
4660
- cyanBright: f("\x1B[96m", "\x1B[39m"),
4661
- whiteBright: f("\x1B[97m", "\x1B[39m"),
4662
- bgBlackBright: f("\x1B[100m", "\x1B[49m"),
4663
- bgRedBright: f("\x1B[101m", "\x1B[49m"),
4664
- bgGreenBright: f("\x1B[102m", "\x1B[49m"),
4665
- bgYellowBright: f("\x1B[103m", "\x1B[49m"),
4666
- bgBlueBright: f("\x1B[104m", "\x1B[49m"),
4667
- bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
4668
- bgCyanBright: f("\x1B[106m", "\x1B[49m"),
4669
- bgWhiteBright: f("\x1B[107m", "\x1B[49m")
4670
- };
4671
- };
4672
- module.exports = createColors();
4673
- module.exports.createColors = createColors;
4674
- }));
4675
- //#endregion
4676
- //#region ../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js
4677
- var require_js_tokens = /* @__PURE__ */ __commonJSMin(((exports) => {
4678
- Object.defineProperty(exports, "__esModule", { value: true });
4679
- exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;
4680
- exports.matchToToken = function(match) {
4681
- var token = {
4682
- type: "invalid",
4683
- value: match[0],
4684
- closed: void 0
4685
- };
4686
- if (match[1]) token.type = "string", token.closed = !!(match[3] || match[4]);
4687
- else if (match[5]) token.type = "comment";
4688
- else if (match[6]) token.type = "comment", token.closed = !!match[7];
4689
- else if (match[8]) token.type = "regex";
4690
- else if (match[9]) token.type = "number";
4691
- else if (match[10]) token.type = "name";
4692
- else if (match[11]) token.type = "punctuator";
4693
- else if (match[12]) token.type = "whitespace";
4694
- return token;
4695
- };
4696
- }));
4697
- //#endregion
4698
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js
4699
- var require_identifier = /* @__PURE__ */ __commonJSMin(((exports) => {
4700
- Object.defineProperty(exports, "__esModule", { value: true });
4701
- exports.isIdentifierChar = isIdentifierChar;
4702
- exports.isIdentifierName = isIdentifierName;
4703
- exports.isIdentifierStart = isIdentifierStart;
4704
- let nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
4705
- let nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
4706
- const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
4707
- const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
4708
- nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
4709
- const astralIdentifierStartCodes = [
4710
- 0,
4711
- 11,
4712
- 2,
4713
- 25,
4714
- 2,
4715
- 18,
4716
- 2,
4717
- 1,
4718
- 2,
4719
- 14,
4720
- 3,
4721
- 13,
4722
- 35,
4723
- 122,
4724
- 70,
4725
- 52,
4726
- 268,
4727
- 28,
4728
- 4,
4729
- 48,
4730
- 48,
4731
- 31,
4732
- 14,
4733
- 29,
4734
- 6,
4735
- 37,
4736
- 11,
4737
- 29,
4738
- 3,
4739
- 35,
4740
- 5,
4741
- 7,
4742
- 2,
4743
- 4,
4744
- 43,
4745
- 157,
4746
- 19,
4747
- 35,
4748
- 5,
4749
- 35,
4750
- 5,
4751
- 39,
4752
- 9,
4753
- 51,
4754
- 13,
4755
- 10,
4756
- 2,
4757
- 14,
4758
- 2,
4759
- 6,
4760
- 2,
4761
- 1,
4762
- 2,
4763
- 10,
4764
- 2,
4765
- 14,
4766
- 2,
4767
- 6,
4768
- 2,
4769
- 1,
4770
- 4,
4771
- 51,
4772
- 13,
4773
- 310,
4774
- 10,
4775
- 21,
4776
- 11,
4777
- 7,
4778
- 25,
4779
- 5,
4780
- 2,
4781
- 41,
4782
- 2,
4783
- 8,
4784
- 70,
4785
- 5,
4786
- 3,
4787
- 0,
4788
- 2,
4789
- 43,
4790
- 2,
4791
- 1,
4792
- 4,
4793
- 0,
4794
- 3,
4795
- 22,
4796
- 11,
4797
- 22,
4798
- 10,
4799
- 30,
4800
- 66,
4801
- 18,
4802
- 2,
4803
- 1,
4804
- 11,
4805
- 21,
4806
- 11,
4807
- 25,
4808
- 7,
4809
- 25,
4810
- 39,
4811
- 55,
4812
- 7,
4813
- 1,
4814
- 65,
4815
- 0,
4816
- 16,
4817
- 3,
4818
- 2,
4819
- 2,
4820
- 2,
4821
- 28,
4822
- 43,
4823
- 28,
4824
- 4,
4825
- 28,
4826
- 36,
4827
- 7,
4828
- 2,
4829
- 27,
4830
- 28,
4831
- 53,
4832
- 11,
4833
- 21,
4834
- 11,
4835
- 18,
4836
- 14,
4837
- 17,
4838
- 111,
4839
- 72,
4840
- 56,
4841
- 50,
4842
- 14,
4843
- 50,
4844
- 14,
4845
- 35,
4846
- 39,
4847
- 27,
4848
- 10,
4849
- 22,
4850
- 251,
4851
- 41,
4852
- 7,
4853
- 1,
4854
- 17,
4855
- 5,
4856
- 57,
4857
- 28,
4858
- 11,
4859
- 0,
4860
- 9,
4861
- 21,
4862
- 43,
4863
- 17,
4864
- 47,
4865
- 20,
4866
- 28,
4867
- 22,
4868
- 13,
4869
- 52,
4870
- 58,
4871
- 1,
4872
- 3,
4873
- 0,
4874
- 14,
4875
- 44,
4876
- 33,
4877
- 24,
4878
- 27,
4879
- 35,
4880
- 30,
4881
- 0,
4882
- 3,
4883
- 0,
4884
- 9,
4885
- 34,
4886
- 4,
4887
- 0,
4888
- 13,
4889
- 47,
4890
- 15,
4891
- 3,
4892
- 22,
4893
- 0,
4894
- 2,
4895
- 0,
4896
- 36,
4897
- 17,
4898
- 2,
4899
- 24,
4900
- 20,
4901
- 1,
4902
- 64,
4903
- 6,
4904
- 2,
4905
- 0,
4906
- 2,
4907
- 3,
4908
- 2,
4909
- 14,
4910
- 2,
4911
- 9,
4912
- 8,
4913
- 46,
4914
- 39,
4915
- 7,
4916
- 3,
4917
- 1,
4918
- 3,
4919
- 21,
4920
- 2,
4921
- 6,
4922
- 2,
4923
- 1,
4924
- 2,
4925
- 4,
4926
- 4,
4927
- 0,
4928
- 19,
4929
- 0,
4930
- 13,
4931
- 4,
4932
- 31,
4933
- 9,
4934
- 2,
4935
- 0,
4936
- 3,
4937
- 0,
4938
- 2,
4939
- 37,
4940
- 2,
4941
- 0,
4942
- 26,
4943
- 0,
4944
- 2,
4945
- 0,
4946
- 45,
4947
- 52,
4948
- 19,
4949
- 3,
4950
- 21,
4951
- 2,
4952
- 31,
4953
- 47,
4954
- 21,
4955
- 1,
4956
- 2,
4957
- 0,
4958
- 185,
4959
- 46,
4960
- 42,
4961
- 3,
4962
- 37,
4963
- 47,
4964
- 21,
4965
- 0,
4966
- 60,
4967
- 42,
4968
- 14,
4969
- 0,
4970
- 72,
4971
- 26,
4972
- 38,
4973
- 6,
4974
- 186,
4975
- 43,
4976
- 117,
4977
- 63,
4978
- 32,
4979
- 7,
4980
- 3,
4981
- 0,
4982
- 3,
4983
- 7,
4984
- 2,
4985
- 1,
4986
- 2,
4987
- 23,
4988
- 16,
4989
- 0,
4990
- 2,
4991
- 0,
4992
- 95,
4993
- 7,
4994
- 3,
4995
- 38,
4996
- 17,
4997
- 0,
4998
- 2,
4999
- 0,
5000
- 29,
5001
- 0,
5002
- 11,
5003
- 39,
5004
- 8,
5005
- 0,
5006
- 22,
5007
- 0,
5008
- 12,
5009
- 45,
5010
- 20,
5011
- 0,
5012
- 19,
5013
- 72,
5014
- 200,
5015
- 32,
5016
- 32,
5017
- 8,
5018
- 2,
5019
- 36,
5020
- 18,
5021
- 0,
5022
- 50,
5023
- 29,
5024
- 113,
5025
- 6,
5026
- 2,
5027
- 1,
5028
- 2,
5029
- 37,
5030
- 22,
5031
- 0,
5032
- 26,
5033
- 5,
5034
- 2,
5035
- 1,
5036
- 2,
5037
- 31,
5038
- 15,
5039
- 0,
5040
- 24,
5041
- 43,
5042
- 261,
5043
- 18,
5044
- 16,
5045
- 0,
5046
- 2,
5047
- 12,
5048
- 2,
5049
- 33,
5050
- 125,
5051
- 0,
5052
- 80,
5053
- 921,
5054
- 103,
5055
- 110,
5056
- 18,
5057
- 195,
5058
- 2637,
5059
- 96,
5060
- 16,
5061
- 1071,
5062
- 18,
5063
- 5,
5064
- 26,
5065
- 3994,
5066
- 6,
5067
- 582,
5068
- 6842,
5069
- 29,
5070
- 1763,
5071
- 568,
5072
- 8,
5073
- 30,
5074
- 18,
5075
- 78,
5076
- 18,
5077
- 29,
5078
- 19,
5079
- 47,
5080
- 17,
5081
- 3,
5082
- 32,
5083
- 20,
5084
- 6,
5085
- 18,
5086
- 433,
5087
- 44,
5088
- 212,
5089
- 63,
5090
- 33,
5091
- 24,
5092
- 3,
5093
- 24,
5094
- 45,
5095
- 74,
5096
- 6,
5097
- 0,
5098
- 67,
5099
- 12,
5100
- 65,
5101
- 1,
5102
- 2,
5103
- 0,
5104
- 15,
5105
- 4,
5106
- 10,
5107
- 7381,
5108
- 42,
5109
- 31,
5110
- 98,
5111
- 114,
5112
- 8702,
5113
- 3,
5114
- 2,
5115
- 6,
5116
- 2,
5117
- 1,
5118
- 2,
5119
- 290,
5120
- 16,
5121
- 0,
5122
- 30,
5123
- 2,
5124
- 3,
5125
- 0,
5126
- 15,
5127
- 3,
5128
- 9,
5129
- 395,
5130
- 2309,
5131
- 106,
5132
- 6,
5133
- 12,
5134
- 4,
5135
- 8,
5136
- 8,
5137
- 9,
5138
- 5991,
5139
- 84,
5140
- 2,
5141
- 70,
5142
- 2,
5143
- 1,
5144
- 3,
5145
- 0,
5146
- 3,
5147
- 1,
5148
- 3,
5149
- 3,
5150
- 2,
5151
- 11,
5152
- 2,
5153
- 0,
5154
- 2,
5155
- 6,
5156
- 2,
5157
- 64,
5158
- 2,
5159
- 3,
5160
- 3,
5161
- 7,
5162
- 2,
5163
- 6,
5164
- 2,
5165
- 27,
5166
- 2,
5167
- 3,
5168
- 2,
5169
- 4,
5170
- 2,
5171
- 0,
5172
- 4,
5173
- 6,
5174
- 2,
5175
- 339,
5176
- 3,
5177
- 24,
5178
- 2,
5179
- 24,
5180
- 2,
5181
- 30,
5182
- 2,
5183
- 24,
5184
- 2,
5185
- 30,
5186
- 2,
5187
- 24,
5188
- 2,
5189
- 30,
5190
- 2,
5191
- 24,
5192
- 2,
5193
- 30,
5194
- 2,
5195
- 24,
5196
- 2,
5197
- 7,
5198
- 1845,
5199
- 30,
5200
- 7,
5201
- 5,
5202
- 262,
5203
- 61,
5204
- 147,
5205
- 44,
5206
- 11,
5207
- 6,
5208
- 17,
5209
- 0,
5210
- 322,
5211
- 29,
5212
- 19,
5213
- 43,
5214
- 485,
5215
- 27,
5216
- 229,
5217
- 29,
5218
- 3,
5219
- 0,
5220
- 208,
5221
- 30,
5222
- 2,
5223
- 2,
5224
- 2,
5225
- 1,
5226
- 2,
5227
- 6,
5228
- 3,
5229
- 4,
5230
- 10,
5231
- 1,
5232
- 225,
5233
- 6,
5234
- 2,
5235
- 3,
5236
- 2,
5237
- 1,
5238
- 2,
5239
- 14,
5240
- 2,
5241
- 196,
5242
- 60,
5243
- 67,
5244
- 8,
5245
- 0,
5246
- 1205,
5247
- 3,
5248
- 2,
5249
- 26,
5250
- 2,
5251
- 1,
5252
- 2,
5253
- 0,
5254
- 3,
5255
- 0,
5256
- 2,
5257
- 9,
5258
- 2,
5259
- 3,
5260
- 2,
5261
- 0,
5262
- 2,
5263
- 0,
5264
- 7,
5265
- 0,
5266
- 5,
5267
- 0,
5268
- 2,
5269
- 0,
5270
- 2,
5271
- 0,
5272
- 2,
5273
- 2,
5274
- 2,
5275
- 1,
5276
- 2,
5277
- 0,
5278
- 3,
5279
- 0,
5280
- 2,
5281
- 0,
5282
- 2,
5283
- 0,
5284
- 2,
5285
- 0,
5286
- 2,
5287
- 0,
5288
- 2,
5289
- 1,
5290
- 2,
5291
- 0,
5292
- 3,
5293
- 3,
5294
- 2,
5295
- 6,
5296
- 2,
5297
- 3,
5298
- 2,
5299
- 3,
5300
- 2,
5301
- 0,
5302
- 2,
5303
- 9,
5304
- 2,
5305
- 16,
5306
- 6,
5307
- 2,
5308
- 2,
5309
- 4,
5310
- 2,
5311
- 16,
5312
- 4421,
5313
- 42719,
5314
- 33,
5315
- 4381,
5316
- 3,
5317
- 5773,
5318
- 3,
5319
- 7472,
5320
- 16,
5321
- 621,
5322
- 2467,
5323
- 541,
5324
- 1507,
5325
- 4938,
5326
- 6,
5327
- 8489
5328
- ];
5329
- const astralIdentifierCodes = [
5330
- 509,
5331
- 0,
5332
- 227,
5333
- 0,
5334
- 150,
5335
- 4,
5336
- 294,
5337
- 9,
5338
- 1368,
5339
- 2,
5340
- 2,
5341
- 1,
5342
- 6,
5343
- 3,
5344
- 41,
5345
- 2,
5346
- 5,
5347
- 0,
5348
- 166,
5349
- 1,
5350
- 574,
5351
- 3,
5352
- 9,
5353
- 9,
5354
- 7,
5355
- 9,
5356
- 32,
5357
- 4,
5358
- 318,
5359
- 1,
5360
- 78,
5361
- 5,
5362
- 71,
5363
- 10,
5364
- 50,
5365
- 3,
5366
- 123,
5367
- 2,
5368
- 54,
5369
- 14,
5370
- 32,
5371
- 10,
5372
- 3,
5373
- 1,
5374
- 11,
5375
- 3,
5376
- 46,
5377
- 10,
5378
- 8,
5379
- 0,
5380
- 46,
5381
- 9,
5382
- 7,
5383
- 2,
5384
- 37,
5385
- 13,
5386
- 2,
5387
- 9,
5388
- 6,
5389
- 1,
5390
- 45,
5391
- 0,
5392
- 13,
5393
- 2,
5394
- 49,
5395
- 13,
5396
- 9,
5397
- 3,
5398
- 2,
5399
- 11,
5400
- 83,
5401
- 11,
5402
- 7,
5403
- 0,
5404
- 3,
5405
- 0,
5406
- 158,
5407
- 11,
5408
- 6,
5409
- 9,
5410
- 7,
5411
- 3,
5412
- 56,
5413
- 1,
5414
- 2,
5415
- 6,
5416
- 3,
5417
- 1,
5418
- 3,
5419
- 2,
5420
- 10,
5421
- 0,
5422
- 11,
5423
- 1,
5424
- 3,
5425
- 6,
5426
- 4,
5427
- 4,
5428
- 68,
5429
- 8,
5430
- 2,
5431
- 0,
5432
- 3,
5433
- 0,
5434
- 2,
5435
- 3,
5436
- 2,
5437
- 4,
5438
- 2,
5439
- 0,
5440
- 15,
5441
- 1,
5442
- 83,
5443
- 17,
5444
- 10,
5445
- 9,
5446
- 5,
5447
- 0,
5448
- 82,
5449
- 19,
5450
- 13,
5451
- 9,
5452
- 214,
5453
- 6,
5454
- 3,
5455
- 8,
5456
- 28,
5457
- 1,
5458
- 83,
5459
- 16,
5460
- 16,
5461
- 9,
5462
- 82,
5463
- 12,
5464
- 9,
5465
- 9,
5466
- 7,
5467
- 19,
5468
- 58,
5469
- 14,
5470
- 5,
5471
- 9,
5472
- 243,
5473
- 14,
5474
- 166,
5475
- 9,
5476
- 71,
5477
- 5,
5478
- 2,
5479
- 1,
5480
- 3,
5481
- 3,
5482
- 2,
5483
- 0,
5484
- 2,
5485
- 1,
5486
- 13,
5487
- 9,
5488
- 120,
5489
- 6,
5490
- 3,
5491
- 6,
5492
- 4,
5493
- 0,
5494
- 29,
5495
- 9,
5496
- 41,
5497
- 6,
5498
- 2,
5499
- 3,
5500
- 9,
5501
- 0,
5502
- 10,
5503
- 10,
5504
- 47,
5505
- 15,
5506
- 199,
5507
- 7,
5508
- 137,
5509
- 9,
5510
- 54,
5511
- 7,
5512
- 2,
5513
- 7,
5514
- 17,
5515
- 9,
5516
- 57,
5517
- 21,
5518
- 2,
5519
- 13,
5520
- 123,
5521
- 5,
5522
- 4,
5523
- 0,
5524
- 2,
5525
- 1,
5526
- 2,
5527
- 6,
5528
- 2,
5529
- 0,
5530
- 9,
5531
- 9,
5532
- 49,
5533
- 4,
5534
- 2,
5535
- 1,
5536
- 2,
5537
- 4,
5538
- 9,
5539
- 9,
5540
- 55,
5541
- 9,
5542
- 266,
5543
- 3,
5544
- 10,
5545
- 1,
5546
- 2,
5547
- 0,
5548
- 49,
5549
- 6,
5550
- 4,
5551
- 4,
5552
- 14,
5553
- 10,
5554
- 5350,
5555
- 0,
5556
- 7,
5557
- 14,
5558
- 11465,
5559
- 27,
5560
- 2343,
5561
- 9,
5562
- 87,
5563
- 9,
5564
- 39,
5565
- 4,
5566
- 60,
5567
- 6,
5568
- 26,
5569
- 9,
5570
- 535,
5571
- 9,
5572
- 470,
5573
- 0,
5574
- 2,
5575
- 54,
5576
- 8,
5577
- 3,
5578
- 82,
5579
- 0,
5580
- 12,
5581
- 1,
5582
- 19628,
5583
- 1,
5584
- 4178,
5585
- 9,
5586
- 519,
5587
- 45,
5588
- 3,
5589
- 22,
5590
- 543,
5591
- 4,
5592
- 4,
5593
- 5,
5594
- 9,
5595
- 7,
5596
- 3,
5597
- 6,
5598
- 31,
5599
- 3,
5600
- 149,
5601
- 2,
5602
- 1418,
5603
- 49,
5604
- 513,
5605
- 54,
5606
- 5,
5607
- 49,
5608
- 9,
5609
- 0,
5610
- 15,
5611
- 0,
5612
- 23,
5613
- 4,
5614
- 2,
5615
- 14,
5616
- 1361,
5617
- 6,
5618
- 2,
5619
- 16,
5620
- 3,
5621
- 6,
5622
- 2,
5623
- 1,
5624
- 2,
5625
- 4,
5626
- 101,
5627
- 0,
5628
- 161,
5629
- 6,
5630
- 10,
5631
- 9,
5632
- 357,
5633
- 0,
5634
- 62,
5635
- 13,
5636
- 499,
5637
- 13,
5638
- 245,
5639
- 1,
5640
- 2,
5641
- 9,
5642
- 233,
5643
- 0,
5644
- 3,
5645
- 0,
5646
- 8,
5647
- 1,
5648
- 6,
5649
- 0,
5650
- 475,
5651
- 6,
5652
- 110,
5653
- 6,
5654
- 6,
5655
- 9,
5656
- 4759,
5657
- 9,
5658
- 787719,
5659
- 239
5660
- ];
5661
- function isInAstralSet(code, set) {
5662
- let pos = 65536;
5663
- for (let i = 0, length = set.length; i < length; i += 2) {
5664
- pos += set[i];
5665
- if (pos > code) return false;
5666
- pos += set[i + 1];
5667
- if (pos >= code) return true;
5668
- }
5669
- return false;
5670
- }
5671
- function isIdentifierStart(code) {
5672
- if (code < 65) return code === 36;
5673
- if (code <= 90) return true;
5674
- if (code < 97) return code === 95;
5675
- if (code <= 122) return true;
5676
- if (code <= 65535) return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code));
5677
- return isInAstralSet(code, astralIdentifierStartCodes);
5678
- }
5679
- function isIdentifierChar(code) {
5680
- if (code < 48) return code === 36;
5681
- if (code < 58) return true;
5682
- if (code < 65) return false;
5683
- if (code <= 90) return true;
5684
- if (code < 97) return code === 95;
5685
- if (code <= 122) return true;
5686
- if (code <= 65535) return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code));
5687
- return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
5688
- }
5689
- function isIdentifierName(name) {
5690
- let isFirst = true;
5691
- for (let i = 0; i < name.length; i++) {
5692
- let cp = name.charCodeAt(i);
5693
- if ((cp & 64512) === 55296 && i + 1 < name.length) {
5694
- const trail = name.charCodeAt(++i);
5695
- if ((trail & 64512) === 56320) cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
5696
- }
5697
- if (isFirst) {
5698
- isFirst = false;
5699
- if (!isIdentifierStart(cp)) return false;
5700
- } else if (!isIdentifierChar(cp)) return false;
5701
- }
5702
- return !isFirst;
5703
- }
5704
- }));
5705
- //#endregion
5706
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js
5707
- var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
5708
- Object.defineProperty(exports, "__esModule", { value: true });
5709
- exports.isKeyword = isKeyword;
5710
- exports.isReservedWord = isReservedWord;
5711
- exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
5712
- exports.isStrictBindReservedWord = isStrictBindReservedWord;
5713
- exports.isStrictReservedWord = isStrictReservedWord;
5714
- const reservedWords = {
5715
- keyword: [
5716
- "break",
5717
- "case",
5718
- "catch",
5719
- "continue",
5720
- "debugger",
5721
- "default",
5722
- "do",
5723
- "else",
5724
- "finally",
5725
- "for",
5726
- "function",
5727
- "if",
5728
- "return",
5729
- "switch",
5730
- "throw",
5731
- "try",
5732
- "var",
5733
- "const",
5734
- "while",
5735
- "with",
5736
- "new",
5737
- "this",
5738
- "super",
5739
- "class",
5740
- "extends",
5741
- "export",
5742
- "import",
5743
- "null",
5744
- "true",
5745
- "false",
5746
- "in",
5747
- "instanceof",
5748
- "typeof",
5749
- "void",
5750
- "delete"
5751
- ],
5752
- strict: [
5753
- "implements",
5754
- "interface",
5755
- "let",
5756
- "package",
5757
- "private",
5758
- "protected",
5759
- "public",
5760
- "static",
5761
- "yield"
5762
- ],
5763
- strictBind: ["eval", "arguments"]
5764
- };
5765
- const keywords = new Set(reservedWords.keyword);
5766
- const reservedWordsStrictSet = new Set(reservedWords.strict);
5767
- const reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
5768
- function isReservedWord(word, inModule) {
5769
- return inModule && word === "await" || word === "enum";
5770
- }
5771
- function isStrictReservedWord(word, inModule) {
5772
- return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
5773
- }
5774
- function isStrictBindOnlyReservedWord(word) {
5775
- return reservedWordsStrictBindSet.has(word);
5776
- }
5777
- function isStrictBindReservedWord(word, inModule) {
5778
- return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
5779
- }
5780
- function isKeyword(word) {
5781
- return keywords.has(word);
5782
- }
5783
- }));
5784
- //#endregion
5785
- //#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/index.js
5786
- var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
5787
- Object.defineProperty(exports, "__esModule", { value: true });
5788
- Object.defineProperty(exports, "isIdentifierChar", {
5789
- enumerable: true,
5790
- get: function() {
5791
- return _identifier.isIdentifierChar;
5792
- }
5793
- });
5794
- Object.defineProperty(exports, "isIdentifierName", {
5795
- enumerable: true,
5796
- get: function() {
5797
- return _identifier.isIdentifierName;
5798
- }
5799
- });
5800
- Object.defineProperty(exports, "isIdentifierStart", {
5801
- enumerable: true,
5802
- get: function() {
5803
- return _identifier.isIdentifierStart;
5804
- }
5805
- });
5806
- Object.defineProperty(exports, "isKeyword", {
5807
- enumerable: true,
5808
- get: function() {
5809
- return _keyword.isKeyword;
5810
- }
5811
- });
5812
- Object.defineProperty(exports, "isReservedWord", {
5813
- enumerable: true,
5814
- get: function() {
5815
- return _keyword.isReservedWord;
5816
- }
5817
- });
5818
- Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
5819
- enumerable: true,
5820
- get: function() {
5821
- return _keyword.isStrictBindOnlyReservedWord;
5822
- }
5823
- });
5824
- Object.defineProperty(exports, "isStrictBindReservedWord", {
5825
- enumerable: true,
5826
- get: function() {
5827
- return _keyword.isStrictBindReservedWord;
5828
- }
5829
- });
5830
- Object.defineProperty(exports, "isStrictReservedWord", {
5831
- enumerable: true,
5832
- get: function() {
5833
- return _keyword.isStrictReservedWord;
5834
- }
5835
- });
5836
- var _identifier = require_identifier();
5837
- var _keyword = require_keyword();
5838
- }));
5839
- //#endregion
5840
- //#region ../../node_modules/.pnpm/@babel+code-frame@7.29.7/node_modules/@babel/code-frame/lib/index.js
5841
- var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
5842
- Object.defineProperty(exports, "__esModule", { value: true });
5843
- var picocolors = require_picocolors();
5844
- var jsTokens = require_js_tokens();
5845
- var helperValidatorIdentifier = require_lib$1();
5846
- function isColorSupported() {
5847
- return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported;
5848
- }
5849
- const compose = (f, g) => (v) => f(g(v));
5850
- function buildDefs(colors) {
5851
- return {
5852
- keyword: colors.cyan,
5853
- capitalized: colors.yellow,
5854
- jsxIdentifier: colors.yellow,
5855
- punctuator: colors.yellow,
5856
- number: colors.magenta,
5857
- string: colors.green,
5858
- regex: colors.magenta,
5859
- comment: colors.gray,
5860
- invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
5861
- gutter: colors.gray,
5862
- marker: compose(colors.red, colors.bold),
5863
- message: compose(colors.red, colors.bold),
5864
- reset: colors.reset
5865
- };
5866
- }
5867
- const defsOn = buildDefs(picocolors.createColors(true));
5868
- const defsOff = buildDefs(picocolors.createColors(false));
5869
- function getDefs(enabled) {
5870
- return enabled ? defsOn : defsOff;
5871
- }
5872
- const sometimesKeywords = /* @__PURE__ */ new Set([
5873
- "as",
5874
- "async",
5875
- "from",
5876
- "get",
5877
- "of",
5878
- "set"
5879
- ]);
5880
- const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
5881
- const BRACKET = /^[()[\]{}]$/;
5882
- let tokenize;
5883
- const JSX_TAG = /^[a-z][\w-]*$/i;
5884
- const getTokenType = function(token, offset, text) {
5885
- if (token.type === "name") {
5886
- const tokenValue = token.value;
5887
- if (helperValidatorIdentifier.isKeyword(tokenValue) || helperValidatorIdentifier.isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) return "keyword";
5888
- if (JSX_TAG.test(tokenValue) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) return "jsxIdentifier";
5889
- const firstChar = String.fromCodePoint(tokenValue.codePointAt(0));
5890
- if (firstChar !== firstChar.toLowerCase()) return "capitalized";
5891
- }
5892
- if (token.type === "punctuator" && BRACKET.test(token.value)) return "bracket";
5893
- if (token.type === "invalid" && (token.value === "@" || token.value === "#")) return "punctuator";
5894
- return token.type;
5895
- };
5896
- tokenize = function* (text) {
5897
- let match;
5898
- while (match = jsTokens.default.exec(text)) {
5899
- const token = jsTokens.matchToToken(match);
5900
- yield {
5901
- type: getTokenType(token, match.index, text),
5902
- value: token.value
5903
- };
5904
- }
5905
- };
5906
- function highlight(text) {
5907
- if (text === "") return "";
5908
- const defs = getDefs(true);
5909
- let highlighted = "";
5910
- for (const { type, value } of tokenize(text)) if (type in defs) highlighted += value.split(NEWLINE$1).map((str) => defs[type](str)).join("\n");
5911
- else highlighted += value;
5912
- return highlighted;
5913
- }
5914
- let deprecationWarningShown = false;
5915
- const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
5916
- function getMarkerLines(loc, source, opts, startLineBaseZero) {
5917
- const startLoc = Object.assign({
5918
- column: 0,
5919
- line: -1
5920
- }, loc.start);
5921
- const endLoc = Object.assign({}, startLoc, loc.end);
5922
- const { linesAbove = 2, linesBelow = 3 } = opts || {};
5923
- const startLine = startLoc.line - startLineBaseZero;
5924
- const startColumn = startLoc.column;
5925
- const endLine = endLoc.line - startLineBaseZero;
5926
- const endColumn = endLoc.column;
5927
- let start = Math.max(startLine - (linesAbove + 1), 0);
5928
- let end = Math.min(source.length, endLine + linesBelow);
5929
- if (startLine === -1) start = 0;
5930
- if (endLine === -1) end = source.length;
5931
- const lineDiff = endLine - startLine;
5932
- const markerLines = {};
5933
- if (lineDiff) for (let i = 0; i <= lineDiff; i++) {
5934
- const lineNumber = i + startLine;
5935
- if (!startColumn) markerLines[lineNumber] = true;
5936
- else if (i === 0) markerLines[lineNumber] = [startColumn, source[lineNumber - 1].length - startColumn + 1];
5937
- else if (i === lineDiff) markerLines[lineNumber] = [0, endColumn];
5938
- else markerLines[lineNumber] = [0, source[lineNumber - i].length];
5939
- }
5940
- else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [startColumn, 0];
5941
- else markerLines[startLine] = true;
5942
- else markerLines[startLine] = [startColumn, endColumn - startColumn];
5943
- return {
5944
- start,
5945
- end,
5946
- markerLines
5947
- };
5948
- }
5949
- function codeFrameColumns(rawLines, loc, opts = {}) {
5950
- const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
5951
- const startLineBaseZero = (opts.startLine || 1) - 1;
5952
- const defs = getDefs(shouldHighlight);
5953
- const { start, end, markerLines } = getMarkerLines(loc, rawLines.split(NEWLINE), opts, startLineBaseZero);
5954
- const hasColumns = loc.start && typeof loc.start.column === "number";
5955
- const numberMaxWidth = String(end + startLineBaseZero).length;
5956
- let frame = (shouldHighlight ? highlight(rawLines) : rawLines).split(NEWLINE, end).slice(start, end).map((line, index) => {
5957
- const number = start + 1 + index;
5958
- const gutter = ` ${` ${number + startLineBaseZero}`.slice(-numberMaxWidth)} |`;
5959
- const hasMarker = markerLines[number];
5960
- const lastMarkerLine = !markerLines[number + 1];
5961
- if (hasMarker) {
5962
- let markerLine = "";
5963
- if (Array.isArray(hasMarker)) {
5964
- const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
5965
- const numberOfMarkers = hasMarker[1] || 1;
5966
- markerLine = [
5967
- "\n ",
5968
- defs.gutter(gutter.replace(/\d/g, " ")),
5969
- " ",
5970
- markerSpacing,
5971
- defs.marker("^").repeat(numberOfMarkers)
5972
- ].join("");
5973
- if (lastMarkerLine && opts.message) markerLine += " " + defs.message(opts.message);
5974
- }
5975
- return [
5976
- defs.marker(">"),
5977
- defs.gutter(gutter),
5978
- line.length > 0 ? ` ${line}` : "",
5979
- markerLine
5980
- ].join("");
5981
- } else return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
5982
- }).join("\n");
5983
- if (opts.message && !hasColumns) frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
5984
- if (shouldHighlight) return defs.reset(frame);
5985
- else return frame;
5986
- }
5987
- function index(rawLines, lineNumber, colNumber, opts = {}) {
5988
- if (!deprecationWarningShown) {
5989
- deprecationWarningShown = true;
5990
- const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
5991
- if (process.emitWarning) process.emitWarning(message, "DeprecationWarning");
5992
- else {
5993
- const deprecationError = /* @__PURE__ */ new Error(message);
5994
- deprecationError.name = "DeprecationWarning";
5995
- console.warn(/* @__PURE__ */ new Error(message));
5996
- }
5997
- }
5998
- colNumber = Math.max(colNumber, 0);
5999
- return codeFrameColumns(rawLines, { start: {
6000
- column: colNumber,
6001
- line: lineNumber
6002
- } }, opts);
6003
- }
6004
- exports.codeFrameColumns = codeFrameColumns;
6005
- exports.default = index;
6006
- exports.highlight = highlight;
6007
- }));
6008
- //#endregion
6009
- //#region ../../node_modules/.pnpm/parse-json@5.2.0/node_modules/parse-json/index.js
6010
- var require_parse_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6011
- const errorEx = require_error_ex();
6012
- const fallback = require_json_parse_even_better_errors();
6013
- const { default: LinesAndColumns } = require_build();
6014
- const { codeFrameColumns } = require_lib();
6015
- const JSONError = errorEx("JSONError", {
6016
- fileName: errorEx.append("in %s"),
6017
- codeFrame: errorEx.append("\n\n%s\n")
6018
- });
6019
- const parseJson = (string, reviver, filename) => {
6020
- if (typeof reviver === "string") {
6021
- filename = reviver;
6022
- reviver = null;
6023
- }
6024
- try {
6025
- try {
6026
- return JSON.parse(string, reviver);
6027
- } catch (error) {
6028
- fallback(string, reviver);
6029
- throw error;
6030
- }
6031
- } catch (error) {
6032
- error.message = error.message.replace(/\n/g, "");
6033
- const indexMatch = error.message.match(/in JSON at position (\d+) while parsing/);
6034
- const jsonError = new JSONError(error);
6035
- if (filename) jsonError.fileName = filename;
6036
- if (indexMatch && indexMatch.length > 0) {
6037
- const lines = new LinesAndColumns(string);
6038
- const index = Number(indexMatch[1]);
6039
- const location = lines.locationForIndex(index);
6040
- jsonError.codeFrame = codeFrameColumns(string, { start: {
6041
- line: location.line + 1,
6042
- column: location.column + 1
6043
- } }, { highlightCode: true });
6044
- }
6045
- throw jsonError;
6046
- }
6047
- };
6048
- parseJson.JSONError = JSONError;
6049
- module.exports = parseJson;
6050
- }));
6051
- //#endregion
6052
4368
  //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
6053
4369
  var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6054
4370
  function isNothing(subject) {
@@ -6756,8 +5072,10 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6756
5072
  let pairHasKey = false;
6757
5073
  if (_toString.call(pair) !== "[object Object]") return false;
6758
5074
  let pairKey;
6759
- for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) if (!pairHasKey) pairHasKey = true;
6760
- else return false;
5075
+ for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) {
5076
+ if (!pairHasKey) pairHasKey = true;
5077
+ else return false;
5078
+ }
6761
5079
  if (!pairHasKey) return false;
6762
5080
  if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
6763
5081
  else return false;
@@ -7097,9 +5415,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7097
5415
  if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
7098
5416
  keyNode = String(keyNode);
7099
5417
  if (_result === null) _result = {};
7100
- if (keyTag === "tag:yaml.org,2002:merge") if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
7101
- else mergeMappings(state, _result, valueNode, overridableKeys);
7102
- else {
5418
+ if (keyTag === "tag:yaml.org,2002:merge") {
5419
+ if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
5420
+ else mergeMappings(state, _result, valueNode, overridableKeys);
5421
+ } else {
7103
5422
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
7104
5423
  state.line = startLine || state.line;
7105
5424
  state.lineStart = startLineStart || state.lineStart;
@@ -7384,14 +5703,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7384
5703
  state.result = "";
7385
5704
  while (ch !== 0) {
7386
5705
  ch = state.input.charCodeAt(++state.position);
7387
- if (ch === 43 || ch === 45) if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
7388
- else throwError(state, "repeat of a chomping mode identifier");
7389
- else if ((tmp = fromDecimalCode(ch)) >= 0) if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
7390
- else if (!detectedIndent) {
7391
- textIndent = nodeIndent + tmp - 1;
7392
- detectedIndent = true;
7393
- } else throwError(state, "repeat of an indentation width identifier");
7394
- else break;
5706
+ if (ch === 43 || ch === 45) {
5707
+ if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
5708
+ else throwError(state, "repeat of a chomping mode identifier");
5709
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
5710
+ if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
5711
+ else if (!detectedIndent) {
5712
+ textIndent = nodeIndent + tmp - 1;
5713
+ detectedIndent = true;
5714
+ } else throwError(state, "repeat of an indentation width identifier");
5715
+ } else break;
7395
5716
  }
7396
5717
  if (isWhiteSpace(ch)) {
7397
5718
  do
@@ -7422,16 +5743,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7422
5743
  }
7423
5744
  break;
7424
5745
  }
7425
- if (folding) if (isWhiteSpace(ch)) {
7426
- atMoreIndented = true;
7427
- state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
7428
- } else if (atMoreIndented) {
7429
- atMoreIndented = false;
7430
- state.result += common.repeat("\n", emptyLines + 1);
7431
- } else if (emptyLines === 0) {
7432
- if (didReadContent) state.result += " ";
7433
- } else state.result += common.repeat("\n", emptyLines);
7434
- else state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
5746
+ if (folding) {
5747
+ if (isWhiteSpace(ch)) {
5748
+ atMoreIndented = true;
5749
+ state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
5750
+ } else if (atMoreIndented) {
5751
+ atMoreIndented = false;
5752
+ state.result += common.repeat("\n", emptyLines + 1);
5753
+ } else if (emptyLines === 0) {
5754
+ if (didReadContent) state.result += " ";
5755
+ } else state.result += common.repeat("\n", emptyLines);
5756
+ } else state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
7435
5757
  didReadContent = true;
7436
5758
  detectedIndent = true;
7437
5759
  emptyLines = 0;
@@ -7560,8 +5882,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7560
5882
  _keyLineStart = state.lineStart;
7561
5883
  _keyPos = state.position;
7562
5884
  }
7563
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) if (atExplicitKey) keyNode = state.result;
7564
- else valueNode = state.result;
5885
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
5886
+ if (atExplicitKey) keyNode = state.result;
5887
+ else valueNode = state.result;
5888
+ }
7565
5889
  if (!atExplicitKey) {
7566
5890
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
7567
5891
  keyTag = keyNode = valueNode = null;
@@ -7609,12 +5933,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7609
5933
  } else throwError(state, "unexpected end of the stream within a verbatim tag");
7610
5934
  } else {
7611
5935
  while (ch !== 0 && !isWsOrEol(ch)) {
7612
- if (ch === 33) if (!isNamed) {
7613
- tagHandle = state.input.slice(_position - 1, state.position + 1);
7614
- if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
7615
- isNamed = true;
7616
- _position = state.position + 1;
7617
- } else throwError(state, "tag suffix cannot contain exclamation marks");
5936
+ if (ch === 33) {
5937
+ if (!isNamed) {
5938
+ tagHandle = state.input.slice(_position - 1, state.position + 1);
5939
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
5940
+ isNamed = true;
5941
+ _position = state.position + 1;
5942
+ } else throwError(state, "tag suffix cannot contain exclamation marks");
5943
+ }
7618
5944
  ch = state.input.charCodeAt(++state.position);
7619
5945
  }
7620
5946
  tagName = state.input.slice(_position, state.position);
@@ -7718,21 +6044,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7718
6044
  if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
7719
6045
  else flowIndent = parentIndent + 1;
7720
6046
  blockIndent = state.position - state.lineStart;
7721
- if (indentStatus === 1) if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
7722
- else {
7723
- const ch = state.input.charCodeAt(state.position);
7724
- if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
7725
- else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
7726
- else if (readAlias(state)) {
7727
- hasContent = true;
7728
- if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
7729
- } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
7730
- hasContent = true;
7731
- if (state.tag === null) state.tag = "?";
6047
+ if (indentStatus === 1) {
6048
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
6049
+ else {
6050
+ const ch = state.input.charCodeAt(state.position);
6051
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
6052
+ else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
6053
+ else if (readAlias(state)) {
6054
+ hasContent = true;
6055
+ if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
6056
+ } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
6057
+ hasContent = true;
6058
+ if (state.tag === null) state.tag = "?";
6059
+ }
6060
+ if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
7732
6061
  }
7733
- if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
7734
- }
7735
- else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
6062
+ } else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
7736
6063
  }
7737
6064
  if (state.tag === null) {
7738
6065
  if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
@@ -8238,8 +6565,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8238
6565
  if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
8239
6566
  if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
8240
6567
  const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
8241
- if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
8242
- else pairBuffer += "? ";
6568
+ if (explicitPair) {
6569
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
6570
+ else pairBuffer += "? ";
6571
+ }
8243
6572
  pairBuffer += state.dump;
8244
6573
  if (explicitPair) pairBuffer += generateNextLine(state, level);
8245
6574
  if (!writeNode(state, level + 1, objectValue, true, explicitPair)) continue;
@@ -8256,9 +6585,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8256
6585
  for (let index = 0, length = typeList.length; index < length; index += 1) {
8257
6586
  const type = typeList[index];
8258
6587
  if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
8259
- if (explicit) if (type.multi && type.representName) state.tag = type.representName(object);
8260
- else state.tag = type.tag;
8261
- else state.tag = "?";
6588
+ if (explicit) {
6589
+ if (type.multi && type.representName) state.tag = type.representName(object);
6590
+ else state.tag = type.tag;
6591
+ } else state.tag = "?";
8262
6592
  if (type.represent) {
8263
6593
  const style = state.styleMap[type.tag] || type.defaultStyle;
8264
6594
  let _result;
@@ -8290,22 +6620,24 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8290
6620
  if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = "*ref_" + duplicateIndex;
8291
6621
  else {
8292
6622
  if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
8293
- if (type === "[object Object]") if (block && Object.keys(state.dump).length !== 0) {
8294
- writeBlockMapping(state, level, state.dump, compact);
8295
- if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
8296
- } else {
8297
- writeFlowMapping(state, level, state.dump);
8298
- if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
8299
- }
8300
- else if (type === "[object Array]") if (block && state.dump.length !== 0) {
8301
- if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
8302
- else writeBlockSequence(state, level, state.dump, compact);
8303
- if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
8304
- } else {
8305
- writeFlowSequence(state, level, state.dump);
8306
- if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
8307
- }
8308
- else if (type === "[object String]") {
6623
+ if (type === "[object Object]") {
6624
+ if (block && Object.keys(state.dump).length !== 0) {
6625
+ writeBlockMapping(state, level, state.dump, compact);
6626
+ if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
6627
+ } else {
6628
+ writeFlowMapping(state, level, state.dump);
6629
+ if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
6630
+ }
6631
+ } else if (type === "[object Array]") {
6632
+ if (block && state.dump.length !== 0) {
6633
+ if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
6634
+ else writeBlockSequence(state, level, state.dump, compact);
6635
+ if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
6636
+ } else {
6637
+ writeFlowSequence(state, level, state.dump);
6638
+ if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
6639
+ }
6640
+ } else if (type === "[object String]") {
8309
6641
  if (state.tag !== "?") writeScalar(state, state.dump, level, iskey, inblock);
8310
6642
  } else if (type === "[object Undefined]") return false;
8311
6643
  else {
@@ -8396,22 +6728,15 @@ var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8396
6728
  module.exports.safeDump = renamed("safeDump", "dump");
8397
6729
  }));
8398
6730
  //#endregion
8399
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/loaders.js
6731
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/loaders.js
8400
6732
  var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
8401
- var __importDefault = exports && exports.__importDefault || function(mod) {
8402
- return mod && mod.__esModule ? mod : { "default": mod };
8403
- };
8404
6733
  Object.defineProperty(exports, "__esModule", { value: true });
8405
- exports.loadTs = exports.loadTsSync = exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
8406
- const fs_1$2 = __require("fs");
6734
+ exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
8407
6735
  const promises_1$1 = __require("fs/promises");
8408
- const path_1$3 = __importDefault(__require("path"));
8409
6736
  const url_1 = __require("url");
8410
- const crypto_1 = __require("crypto");
8411
- let importFresh;
8412
6737
  exports.loadJsSync = function loadJsSync(filepath) {
8413
- if (importFresh === void 0) importFresh = require_import_fresh();
8414
- return importFresh(filepath);
6738
+ delete __require.cache[__require.resolve(filepath)];
6739
+ return __require(filepath);
8415
6740
  };
8416
6741
  exports.loadJs = async function loadJs(filepath) {
8417
6742
  try {
@@ -8427,11 +6752,9 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
8427
6752
  }
8428
6753
  }
8429
6754
  };
8430
- let parseJson;
8431
6755
  exports.loadJson = function loadJson(filepath, content) {
8432
- if (parseJson === void 0) parseJson = require_parse_json();
8433
6756
  try {
8434
- return parseJson(content);
6757
+ return JSON.parse(content);
8435
6758
  } catch (error) {
8436
6759
  error.message = `JSON Error in ${filepath}:\n${error.message}`;
8437
6760
  throw error;
@@ -8447,73 +6770,12 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
8447
6770
  throw error;
8448
6771
  }
8449
6772
  };
8450
- let typescript;
8451
- exports.loadTsSync = function loadTsSync(filepath, content) {
8452
- /* istanbul ignore next -- @preserve */
8453
- if (typescript === void 0) typescript = __require("typescript");
8454
- const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.cjs`;
8455
- try {
8456
- const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
8457
- config.compilerOptions = {
8458
- ...config.compilerOptions,
8459
- module: typescript.ModuleKind.NodeNext,
8460
- moduleResolution: typescript.ModuleResolutionKind.NodeNext,
8461
- target: typescript.ScriptTarget.ES2022,
8462
- noEmit: false
8463
- };
8464
- content = typescript.transpileModule(content, config).outputText;
8465
- (0, fs_1$2.writeFileSync)(compiledFilepath, content);
8466
- return (0, exports.loadJsSync)(compiledFilepath, content).default;
8467
- } catch (error) {
8468
- error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
8469
- throw error;
8470
- } finally {
8471
- if ((0, fs_1$2.existsSync)(compiledFilepath)) (0, fs_1$2.rmSync)(compiledFilepath);
8472
- }
8473
- };
8474
- exports.loadTs = async function loadTs(filepath, content) {
8475
- if (typescript === void 0) typescript = (await import("typescript")).default;
8476
- const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.mjs`;
8477
- let transpiledContent;
8478
- try {
8479
- try {
8480
- const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
8481
- config.compilerOptions = {
8482
- ...config.compilerOptions,
8483
- module: typescript.ModuleKind.ES2022,
8484
- moduleResolution: typescript.ModuleResolutionKind.Bundler,
8485
- target: typescript.ScriptTarget.ES2022,
8486
- noEmit: false
8487
- };
8488
- transpiledContent = typescript.transpileModule(content, config).outputText;
8489
- await (0, promises_1$1.writeFile)(compiledFilepath, transpiledContent);
8490
- } catch (error) {
8491
- error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
8492
- throw error;
8493
- }
8494
- return await (0, exports.loadJs)(compiledFilepath, transpiledContent);
8495
- } finally {
8496
- if ((0, fs_1$2.existsSync)(compiledFilepath)) await (0, promises_1$1.rm)(compiledFilepath);
8497
- }
8498
- };
8499
- function resolveTsConfig(directory) {
8500
- const filePath = typescript.findConfigFile(directory, (fileName) => {
8501
- return typescript.sys.fileExists(fileName);
8502
- });
8503
- if (filePath !== void 0) {
8504
- const { config, error } = typescript.readConfigFile(filePath, (path) => typescript.sys.readFile(path));
8505
- if (error) throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
8506
- return config;
8507
- }
8508
- }
8509
6773
  }));
8510
6774
  //#endregion
8511
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/defaults.js
6775
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/defaults.js
8512
6776
  var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8513
6777
  Object.defineProperty(exports, "__esModule", { value: true });
8514
- exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = void 0;
8515
- exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
8516
- exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
6778
+ exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
8517
6779
  const loaders_1 = require_loaders();
8518
6780
  function getDefaultSearchPlaces(moduleName) {
8519
6781
  return [
@@ -8540,6 +6802,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8540
6802
  `${moduleName}.config.mjs`
8541
6803
  ];
8542
6804
  }
6805
+ exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
8543
6806
  function getDefaultSearchPlacesSync(moduleName) {
8544
6807
  return [
8545
6808
  "package.json",
@@ -8562,6 +6825,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8562
6825
  `${moduleName}.config.cjs`
8563
6826
  ];
8564
6827
  }
6828
+ exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
8565
6829
  exports.globalConfigSearchPlaces = [
8566
6830
  "config",
8567
6831
  "config.json",
@@ -8596,7 +6860,9 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8596
6860
  ".mjs": loaders_1.loadJs,
8597
6861
  ".cjs": loaders_1.loadJs,
8598
6862
  ".js": loaders_1.loadJs,
8599
- ".ts": loaders_1.loadTs,
6863
+ ".ts": loaders_1.loadJs,
6864
+ ".cts": loaders_1.loadJs,
6865
+ ".mts": loaders_1.loadJs,
8600
6866
  ".json": loaders_1.loadJson,
8601
6867
  ".yaml": loaders_1.loadYaml,
8602
6868
  ".yml": loaders_1.loadYaml,
@@ -8605,7 +6871,8 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
8605
6871
  exports.defaultLoadersSync = Object.freeze({
8606
6872
  ".cjs": loaders_1.loadJsSync,
8607
6873
  ".js": loaders_1.loadJsSync,
8608
- ".ts": loaders_1.loadTsSync,
6874
+ ".cts": loaders_1.loadJsSync,
6875
+ ".ts": loaders_1.loadJsSync,
8609
6876
  ".json": loaders_1.loadJson,
8610
6877
  ".yaml": loaders_1.loadYaml,
8611
6878
  ".yml": loaders_1.loadYaml,
@@ -8663,7 +6930,7 @@ var require_env_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8663
6930
  module.exports.default = envPaths;
8664
6931
  }));
8665
6932
  //#endregion
8666
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/util.js
6933
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/util.js
8667
6934
  var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8668
6935
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
8669
6936
  if (k2 === void 0) k2 = k;
@@ -8687,31 +6954,17 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8687
6954
  }) : function(o, v) {
8688
6955
  o["default"] = v;
8689
6956
  });
8690
- var __importStar = exports && exports.__importStar || (function() {
8691
- var ownKeys = function(o) {
8692
- ownKeys = Object.getOwnPropertyNames || function(o) {
8693
- var ar = [];
8694
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
8695
- return ar;
8696
- };
8697
- return ownKeys(o);
8698
- };
8699
- return function(mod) {
8700
- if (mod && mod.__esModule) return mod;
8701
- var result = {};
8702
- if (mod != null) {
8703
- for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
8704
- }
8705
- __setModuleDefault(result, mod);
8706
- return result;
8707
- };
8708
- })();
6957
+ var __importStar = exports && exports.__importStar || function(mod) {
6958
+ if (mod && mod.__esModule) return mod;
6959
+ var result = {};
6960
+ if (mod != null) {
6961
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
6962
+ }
6963
+ __setModuleDefault(result, mod);
6964
+ return result;
6965
+ };
8709
6966
  Object.defineProperty(exports, "__esModule", { value: true });
8710
- exports.emplace = emplace;
8711
- exports.getPropertyByPath = getPropertyByPath;
8712
- exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
8713
- exports.isDirectory = isDirectory;
8714
- exports.isDirectorySync = isDirectorySync;
6967
+ exports.isDirectorySync = exports.isDirectory = exports.removeUndefinedValuesFromObject = exports.decodeFileContent = exports.getPropertyByPath = exports.emplace = void 0;
8715
6968
  const fs_1$1 = __importStar(__require("fs"));
8716
6969
  /**
8717
6970
  * @internal
@@ -8723,6 +6976,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8723
6976
  map.set(key, result);
8724
6977
  return result;
8725
6978
  }
6979
+ exports.emplace = emplace;
8726
6980
  /**
8727
6981
  * @internal
8728
6982
  */
@@ -8733,10 +6987,19 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8733
6987
  return previous[key];
8734
6988
  }, source);
8735
6989
  }
6990
+ exports.getPropertyByPath = getPropertyByPath;
6991
+ /** @internal */
6992
+ function decodeFileContent(buffer) {
6993
+ if (buffer[0] === 255 && buffer[1] === 254) return new TextDecoder("utf-16le").decode(buffer);
6994
+ if (buffer[0] === 254 && buffer[1] === 255) return new TextDecoder("utf-16be").decode(buffer);
6995
+ return buffer.toString("utf-8");
6996
+ }
6997
+ exports.decodeFileContent = decodeFileContent;
8736
6998
  /** @internal */
8737
6999
  function removeUndefinedValuesFromObject(options) {
8738
7000
  return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
8739
7001
  }
7002
+ exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
8740
7003
  /** @internal */
8741
7004
  /* istanbul ignore next -- @preserve */
8742
7005
  async function isDirectory(path) {
@@ -8747,6 +7010,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8747
7010
  throw e;
8748
7011
  }
8749
7012
  }
7013
+ exports.isDirectory = isDirectory;
8750
7014
  /** @internal */
8751
7015
  /* istanbul ignore next -- @preserve */
8752
7016
  function isDirectorySync(path) {
@@ -8757,16 +7021,16 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
8757
7021
  throw e;
8758
7022
  }
8759
7023
  }
7024
+ exports.isDirectorySync = isDirectorySync;
8760
7025
  }));
8761
7026
  //#endregion
8762
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/ExplorerBase.js
7027
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerBase.js
8763
7028
  var require_ExplorerBase = /* @__PURE__ */ __commonJSMin(((exports) => {
8764
7029
  var __importDefault = exports && exports.__importDefault || function(mod) {
8765
7030
  return mod && mod.__esModule ? mod : { "default": mod };
8766
7031
  };
8767
7032
  Object.defineProperty(exports, "__esModule", { value: true });
8768
- exports.ExplorerBase = void 0;
8769
- exports.getExtensionDescription = getExtensionDescription;
7033
+ exports.getExtensionDescription = exports.ExplorerBase = void 0;
8770
7034
  const env_paths_1 = __importDefault(require_env_paths());
8771
7035
  const os_1 = __importDefault(__require("os"));
8772
7036
  const path_1$2 = __importDefault(__require("path"));
@@ -8878,13 +7142,13 @@ ${[...importStack, fullPath].map((path, i) => `${i + 1}. ${path}`).join("\n")} (
8878
7142
  /* istanbul ignore next -- @preserve */
8879
7143
  return extension ? `extension "${extension}"` : "files without extensions";
8880
7144
  }
7145
+ exports.getExtensionDescription = getExtensionDescription;
8881
7146
  }));
8882
7147
  //#endregion
8883
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/merge.js
7148
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/merge.js
8884
7149
  var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
8885
7150
  Object.defineProperty(exports, "__esModule", { value: true });
8886
- exports.hasOwn = void 0;
8887
- exports.mergeAll = mergeAll;
7151
+ exports.mergeAll = exports.hasOwn = void 0;
8888
7152
  exports.hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
8889
7153
  const objToString = Function.prototype.call.bind(Object.prototype.toString);
8890
7154
  function isPlainObject(obj) {
@@ -8916,9 +7180,10 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
8916
7180
  function mergeAll(objects, options) {
8917
7181
  return objects.reduce((target, source) => merge(target, source, options), {});
8918
7182
  }
7183
+ exports.mergeAll = mergeAll;
8919
7184
  }));
8920
7185
  //#endregion
8921
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/Explorer.js
7186
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/Explorer.js
8922
7187
  var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
8923
7188
  var __importDefault = exports && exports.__importDefault || function(mod) {
8924
7189
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -8977,7 +7242,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
8977
7242
  return await search();
8978
7243
  }
8979
7244
  async #readConfiguration(filepath, importStack = []) {
8980
- const contents = await promises_1.default.readFile(filepath, { encoding: "utf-8" });
7245
+ const contents = (0, util_js_1.decodeFileContent)(await promises_1.default.readFile(filepath));
8981
7246
  return this.toCosmiconfigResult(filepath, await this.#loadConfigFileWithImports(filepath, contents, importStack));
8982
7247
  }
8983
7248
  async #loadConfigFileWithImports(filepath, contents, importStack) {
@@ -9053,7 +7318,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
9053
7318
  exports.Explorer = Explorer;
9054
7319
  }));
9055
7320
  //#endregion
9056
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/ExplorerSync.js
7321
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerSync.js
9057
7322
  var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
9058
7323
  var __importDefault = exports && exports.__importDefault || function(mod) {
9059
7324
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -9112,7 +7377,7 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
9112
7377
  return search();
9113
7378
  }
9114
7379
  #readConfiguration(filepath, importStack = []) {
9115
- const contents = fs_1.default.readFileSync(filepath, "utf8");
7380
+ const contents = (0, util_js_1.decodeFileContent)(fs_1.default.readFileSync(filepath));
9116
7381
  return this.toCosmiconfigResult(filepath, this.#loadConfigFileWithImports(filepath, contents, importStack));
9117
7382
  }
9118
7383
  #loadConfigFileWithImports(filepath, contents, importStack) {
@@ -9202,11 +7467,10 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
9202
7467
  exports.ExplorerSync = ExplorerSync;
9203
7468
  }));
9204
7469
  //#endregion
9205
- //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/index.js
7470
+ //#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/index.js
9206
7471
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
9207
7472
  Object.defineProperty(exports, "__esModule", { value: true });
9208
- exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
9209
- exports.cosmiconfig = cosmiconfig;
7473
+ exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = exports.cosmiconfigSync = exports.cosmiconfig = void 0;
9210
7474
  const defaults_1 = require_defaults();
9211
7475
  Object.defineProperty(exports, "defaultLoaders", {
9212
7476
  enumerable: true,
@@ -9280,7 +7544,8 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
9280
7544
  function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
9281
7545
  const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path) => path.replace("{name}", moduleName));
9282
7546
  if (userConfiguredOptions.mergeSearchPlaces) return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
9283
- return userConfiguredSearchPlaces ?? toolDefinedSearchPlaces;
7547
+ return userConfiguredSearchPlaces ??
7548
+ /* istanbul ignore next */ toolDefinedSearchPlaces;
9284
7549
  }
9285
7550
  function mergeOptionsBase(moduleName, defaults, options) {
9286
7551
  const userDefinedConfig = getUserDefinedOptionsFromMetaConfig();
@@ -9324,6 +7589,21 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
9324
7589
  searchStrategy: options.stopDir ? "global" : "none"
9325
7590
  }, options);
9326
7591
  }
7592
+ function mergeOptionsSync(moduleName, options) {
7593
+ validateOptions(options);
7594
+ return mergeOptionsBase(moduleName, {
7595
+ moduleName,
7596
+ searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName),
7597
+ ignoreEmptySearchPlaces: true,
7598
+ cache: true,
7599
+ transform: identity,
7600
+ loaders: defaults_1.defaultLoadersSync,
7601
+ metaConfigFilePath: null,
7602
+ mergeImportArrays: true,
7603
+ mergeSearchPlaces: true,
7604
+ searchStrategy: options.stopDir ? "global" : "none"
7605
+ }, options);
7606
+ }
9327
7607
  function cosmiconfig(moduleName, options = {}) {
9328
7608
  const normalizedOptions = mergeOptions(moduleName, options);
9329
7609
  const explorer = new Explorer_js_1.Explorer(normalizedOptions);
@@ -9335,6 +7615,19 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
9335
7615
  clearCaches: explorer.clearCaches.bind(explorer)
9336
7616
  };
9337
7617
  }
7618
+ exports.cosmiconfig = cosmiconfig;
7619
+ function cosmiconfigSync(moduleName, options = {}) {
7620
+ const normalizedOptions = mergeOptionsSync(moduleName, options);
7621
+ const explorerSync = new ExplorerSync_js_1.ExplorerSync(normalizedOptions);
7622
+ return {
7623
+ search: explorerSync.search.bind(explorerSync),
7624
+ load: explorerSync.load.bind(explorerSync),
7625
+ clearLoadCache: explorerSync.clearLoadCache.bind(explorerSync),
7626
+ clearSearchCache: explorerSync.clearSearchCache.bind(explorerSync),
7627
+ clearCaches: explorerSync.clearCaches.bind(explorerSync)
7628
+ };
7629
+ }
7630
+ exports.cosmiconfigSync = cosmiconfigSync;
9338
7631
  }));
9339
7632
  //#endregion
9340
7633
  //#region src/lib/ruleCommandRegistry.ts
@@ -9454,12 +7747,16 @@ function deprecatedRuleConfigAliases(configKey) {
9454
7747
  var import_dist = require_dist();
9455
7748
  const configState = {
9456
7749
  config: void 0,
9457
- /** In-flight root load so concurrent callers share one cosmiconfig search. */
7750
+ /**
7751
+ In-flight root load so concurrent callers share one cosmiconfig search.
7752
+ */
9458
7753
  loadPromise: void 0,
9459
7754
  rootConfigPath: void 0
9460
7755
  };
9461
7756
  const workspaceConfigCache = /* @__PURE__ */ new Map();
9462
- /** In-flight workspace loads — concurrent jobs for the same dir share one search. */
7757
+ /**
7758
+ In-flight workspace loads — concurrent jobs for the same dir share one search.
7759
+ */
9463
7760
  const workspaceConfigLoadPromises = /* @__PURE__ */ new Map();
9464
7761
  const deprecationWarned = /* @__PURE__ */ new Set();
9465
7762
  function isRecord(value) {
@@ -9527,7 +7824,9 @@ async function loadWorkspaceConfig(workspaceDir) {
9527
7824
  workspaceConfigLoadPromises.delete(workspaceDir);
9528
7825
  }
9529
7826
  }
9530
- /** Deprecated top-level fields that should be under `commands`. */
7827
+ /**
7828
+ Deprecated top-level fields that should be under `commands`.
7829
+ */
9531
7830
  const DEPRECATED_COMMAND_FIELDS = /* @__PURE__ */ new Set(["deplint", "publint"]);
9532
7831
  function warnOnce(key, message) {
9533
7832
  if (deprecationWarned.has(key)) return;
@@ -9642,7 +7941,7 @@ const range = (a, b, str) => {
9642
7941
  return result;
9643
7942
  };
9644
7943
  //#endregion
9645
- //#region ../../node_modules/.pnpm/brace-expansion@5.0.7/node_modules/brace-expansion/dist/esm/index.js
7944
+ //#region ../../node_modules/.pnpm/brace-expansion@5.0.9/node_modules/brace-expansion/dist/esm/index.js
9646
7945
  const escSlash = "\0SLASH" + Math.random() + "\0";
9647
7946
  const escOpen = "\0OPEN" + Math.random() + "\0";
9648
7947
  const escClose = "\0CLOSE" + Math.random() + "\0";
@@ -9659,6 +7958,7 @@ const closePattern = /\\}/g;
9659
7958
  const commaPattern = /\\,/g;
9660
7959
  const periodPattern = /\\\./g;
9661
7960
  const EXPANSION_MAX = 1e5;
7961
+ const EXPANSION_MAX_LENGTH = 4e6;
9662
7962
  function numeric(str) {
9663
7963
  return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
9664
7964
  }
@@ -9691,9 +7991,9 @@ function parseCommaParts(str) {
9691
7991
  }
9692
7992
  function expand(str, options = {}) {
9693
7993
  if (!str) return [];
9694
- const { max = EXPANSION_MAX } = options;
7994
+ const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;
9695
7995
  if (str.slice(0, 2) === "{}") str = "\\{\\}" + str.slice(2);
9696
- return expand_(escapeBraces(str), max, true).map(unescapeBraces);
7996
+ return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);
9697
7997
  }
9698
7998
  function embrace(str) {
9699
7999
  return "{" + str + "}";
@@ -9707,20 +8007,72 @@ function lte(i, y) {
9707
8007
  function gte(i, y) {
9708
8008
  return i >= y;
9709
8009
  }
9710
- function expand_(str, max, isTop) {
9711
- /** @type {string[]} */
9712
- const expansions = [];
8010
+ function combine(acc, pre, values, max, maxLength, dropEmpties) {
8011
+ const out = [];
8012
+ let length = 0;
8013
+ for (let a = 0; a < acc.length; a++) for (let v = 0; v < values.length; v++) {
8014
+ if (out.length >= max) return out;
8015
+ const expansion = acc[a] + pre + values[v];
8016
+ if (dropEmpties && !expansion) continue;
8017
+ if (length + expansion.length > maxLength) return out;
8018
+ out.push(expansion);
8019
+ length += expansion.length;
8020
+ }
8021
+ return out;
8022
+ }
8023
+ function expandSequence(body, isAlphaSequence, max, maxLength) {
8024
+ const n = body.split(/\.\./);
8025
+ const N = [];
8026
+ /* c8 ignore start */
8027
+ if (n[0] === void 0 || n[1] === void 0) return N;
8028
+ /* c8 ignore stop */
8029
+ const x = numeric(n[0]);
8030
+ const y = numeric(n[1]);
8031
+ const width = Math.max(n[0].length, n[1].length);
8032
+ let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
8033
+ let test = lte;
8034
+ if (y < x) {
8035
+ incr *= -1;
8036
+ test = gte;
8037
+ }
8038
+ const pad = n.some(isPadded);
8039
+ let length = 0;
8040
+ for (let i = x; test(i, y) && N.length < max; i += incr) {
8041
+ let c;
8042
+ if (isAlphaSequence) {
8043
+ c = String.fromCharCode(i);
8044
+ if (c === "\\") c = "";
8045
+ } else {
8046
+ c = String(i);
8047
+ if (pad) {
8048
+ const need = width - c.length;
8049
+ if (need > 0) {
8050
+ const z = new Array(need + 1).join("0");
8051
+ if (i < 0) c = "-" + z + c.slice(1);
8052
+ else c = z + c;
8053
+ }
8054
+ }
8055
+ }
8056
+ if (length + c.length > maxLength) break;
8057
+ N.push(c);
8058
+ length += c.length;
8059
+ }
8060
+ return N;
8061
+ }
8062
+ function expand_(str, max, maxLength, isTop) {
8063
+ let acc = [""];
8064
+ let dropEmpties = false;
8065
+ let firstGroup = true;
9713
8066
  for (;;) {
9714
8067
  const m = balanced("{", "}", str);
9715
- if (!m) return [str];
8068
+ if (!m) return combine(acc, str, [""], max, maxLength, dropEmpties);
9716
8069
  const pre = m.pre;
9717
- if (/\$$/.test(m.pre)) {
9718
- const post = m.post.length ? expand_(m.post, max, false) : [""];
9719
- for (let k = 0; k < post.length && k < max; k++) {
9720
- const expansion = pre + "{" + m.body + "}" + post[k];
9721
- expansions.push(expansion);
9722
- }
9723
- return expansions;
8070
+ if (/\$$/.test(pre)) {
8071
+ acc = combine(acc, pre + "{" + m.body + "}", [""], max, maxLength, dropEmpties && !m.post.length);
8072
+ firstGroup = false;
8073
+ if (!m.post.length) break;
8074
+ str = m.post;
8075
+ continue;
9724
8076
  }
9725
8077
  const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
9726
8078
  const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
@@ -9732,70 +8084,56 @@ function expand_(str, max, isTop) {
9732
8084
  isTop = true;
9733
8085
  continue;
9734
8086
  }
9735
- return [str];
8087
+ return combine(acc, pre + "{" + m.body + "}" + m.post, [""], max, maxLength, dropEmpties);
9736
8088
  }
9737
- const post = m.post.length ? expand_(m.post, max, false) : [""];
9738
- let n;
9739
- if (isSequence) n = m.body.split(/\.\./);
8089
+ if (firstGroup) {
8090
+ dropEmpties = isTop && !isSequence;
8091
+ firstGroup = false;
8092
+ }
8093
+ let values;
8094
+ if (isSequence) values = expandSequence(m.body, isAlphaSequence, max, maxLength);
9740
8095
  else {
9741
- n = parseCommaParts(m.body);
8096
+ let n = parseCommaParts(m.body);
9742
8097
  if (n.length === 1 && n[0] !== void 0) {
9743
- n = expand_(n[0], max, false).map(embrace);
8098
+ n = expand_(n[0], max, maxLength, false).map(embrace);
9744
8099
  /* c8 ignore start */
9745
- if (n.length === 1) return post.map((p) => m.pre + n[0] + p);
9746
- }
9747
- }
9748
- let N;
9749
- if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
9750
- const x = numeric(n[0]);
9751
- const y = numeric(n[1]);
9752
- const width = Math.max(n[0].length, n[1].length);
9753
- let incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric(n[2])), 1) : 1;
9754
- let test = lte;
9755
- if (y < x) {
9756
- incr *= -1;
9757
- test = gte;
9758
- }
9759
- const pad = n.some(isPadded);
9760
- N = [];
9761
- for (let i = x; test(i, y) && N.length < max; i += incr) {
9762
- let c;
9763
- if (isAlphaSequence) {
9764
- c = String.fromCharCode(i);
9765
- if (c === "\\") c = "";
9766
- } else {
9767
- c = String(i);
9768
- if (pad) {
9769
- const need = width - c.length;
9770
- if (need > 0) {
9771
- const z = new Array(need + 1).join("0");
9772
- if (i < 0) c = "-" + z + c.slice(1);
9773
- else c = z + c;
9774
- }
9775
- }
8100
+ if (n.length === 1) {
8101
+ acc = combine(acc, pre + n[0], [""], max, maxLength, dropEmpties && !m.post.length);
8102
+ if (!m.post.length) break;
8103
+ str = m.post;
8104
+ continue;
8105
+ }
8106
+ }
8107
+ let dropsEmpties = dropEmpties && !m.post.length && !pre;
8108
+ for (let d = 0; dropsEmpties && d < acc.length; d++) if (acc[d]) dropsEmpties = false;
8109
+ values = [];
8110
+ let valuesLength = 0;
8111
+ outer: for (let j = 0; j < n.length; j++) {
8112
+ const expanded = expand_(n[j], max, maxLength, false);
8113
+ for (let k = 0; k < expanded.length; k++) {
8114
+ const v = expanded[k];
8115
+ if (dropsEmpties && !v) continue;
8116
+ if (values.length >= max || valuesLength + v.length > maxLength) break outer;
8117
+ values.push(v);
8118
+ valuesLength += v.length;
9776
8119
  }
9777
- N.push(c);
9778
8120
  }
9779
- } else {
9780
- N = [];
9781
- for (let j = 0; j < n.length; j++) N.push.apply(N, expand_(n[j], max, false));
9782
- }
9783
- for (let j = 0; j < N.length; j++) for (let k = 0; k < post.length && expansions.length < max; k++) {
9784
- const expansion = pre + N[j] + post[k];
9785
- if (!isTop || isSequence || expansion) expansions.push(expansion);
9786
8121
  }
9787
- return expansions;
8122
+ acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
8123
+ if (!m.post.length) break;
8124
+ str = m.post;
9788
8125
  }
8126
+ return acc;
9789
8127
  }
9790
8128
  //#endregion
9791
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/assert-valid-pattern.js
9792
- const MAX_PATTERN_LENGTH = 1024 * 64;
8129
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/assert-valid-pattern.js
8130
+ const MAX_PATTERN_LENGTH = 65536;
9793
8131
  const assertValidPattern = (pattern) => {
9794
8132
  if (typeof pattern !== "string") throw new TypeError("invalid pattern");
9795
8133
  if (pattern.length > MAX_PATTERN_LENGTH) throw new TypeError("pattern is too long");
9796
8134
  };
9797
8135
  //#endregion
9798
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/brace-expressions.js
8136
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/brace-expressions.js
9799
8137
  const posixClasses = {
9800
8138
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
9801
8139
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -9919,7 +8257,7 @@ const parseClass = (glob, position) => {
9919
8257
  ];
9920
8258
  };
9921
8259
  //#endregion
9922
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/unescape.js
8260
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/unescape.js
9923
8261
  /**
9924
8262
  * Un-escape a string that has been escaped with {@link escape}.
9925
8263
  *
@@ -9944,7 +8282,7 @@ const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}
9944
8282
  return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
9945
8283
  };
9946
8284
  //#endregion
9947
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/ast.js
8285
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/ast.js
9948
8286
  var _a;
9949
8287
  const types = /* @__PURE__ */ new Set([
9950
8288
  "!",
@@ -10453,7 +8791,7 @@ var AST = class {
10453
8791
  };
10454
8792
  _a = AST;
10455
8793
  //#endregion
10456
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/escape.js
8794
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/escape.js
10457
8795
  /**
10458
8796
  * Escape all magic characters in a glob pattern.
10459
8797
  *
@@ -10471,7 +8809,7 @@ const escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {})
10471
8809
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
10472
8810
  };
10473
8811
  //#endregion
10474
- //#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/index.js
8812
+ //#region ../../node_modules/.pnpm/minimatch@10.2.6/node_modules/minimatch/dist/esm/index.js
10475
8813
  const minimatch = (p, pattern, options = {}) => {
10476
8814
  assertValidPattern(pattern);
10477
8815
  if (!options.nocomment && pattern.charAt(0) === "#") return false;
@@ -11023,9 +9361,10 @@ var Minimatch = class {
11023
9361
  const next = pp[i + 1];
11024
9362
  const prev = pp[i - 1];
11025
9363
  if (p !== GLOBSTAR || prev === GLOBSTAR) return;
11026
- if (prev === void 0) if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
11027
- else pp[i] = twoStar;
11028
- else if (next === void 0) pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
9364
+ if (prev === void 0) {
9365
+ if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
9366
+ else pp[i] = twoStar;
9367
+ } else if (next === void 0) pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
11029
9368
  else if (next !== GLOBSTAR) {
11030
9369
  pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
11031
9370
  pp[i + 1] = GLOBSTAR;
@@ -11099,7 +9438,9 @@ function makeMatcher(pattern, options = {}) {
11099
9438
  const patterns = Array.isArray(pattern) ? pattern : [pattern];
11100
9439
  return (input) => patterns.some((p) => minimatch(input, p, options));
11101
9440
  }
11102
- /** Convenience one-shot test: `isMatch(input, pattern)`. */
9441
+ /**
9442
+ Convenience one-shot test: `isMatch(input, pattern)`.
9443
+ */
11103
9444
  function isMatch(input, pattern, options = {}) {
11104
9445
  return makeMatcher(pattern, options)(input);
11105
9446
  }
@@ -11163,7 +9504,7 @@ function runGit(rootDir, args) {
11163
9504
  ...args
11164
9505
  ], {
11165
9506
  encoding: "utf8",
11166
- maxBuffer: 32 * 1024 * 1024
9507
+ maxBuffer: 33554432
11167
9508
  });
11168
9509
  return {
11169
9510
  status: result.status,
@@ -11214,7 +9555,9 @@ const gitCleanGitignoreBackend = {
11214
9555
  return paths;
11215
9556
  }
11216
9557
  };
11217
- /** Batch-check which absolute paths are gitignored. */
9558
+ /**
9559
+ Batch-check which absolute paths are gitignored.
9560
+ */
11218
9561
  function filterGitIgnoredPaths(rootDir, absPaths, backend = gitCleanGitignoreBackend) {
11219
9562
  const ignored = [];
11220
9563
  const notIgnored = [];
@@ -11294,7 +9637,9 @@ function parseCleanRuleLevel(location, setting, defaultLevel) {
11294
9637
  if (typeof setting === "object" && setting !== null && !Array.isArray(setting)) return levelFromObject(location, setting, defaultLevel);
11295
9638
  throw new TypeError(`${location} must be a rule level, boolean, [level, options], or { level?, enabled? } object`);
11296
9639
  }
11297
- /** Hard safety rules — always enforced; cannot be disabled via config. */
9640
+ /**
9641
+ Hard safety rules — always enforced; cannot be disabled via config.
9642
+ */
11298
9643
  const CLEAN_HARD_RULES = [{
11299
9644
  description: "Patterns must resolve strictly inside the monorepo root (never the root itself or outside it)",
11300
9645
  id: "clean.inside-root"
@@ -11316,7 +9661,9 @@ const CLEAN_CONFIGURABLE_RULES = [{
11316
9661
  }];
11317
9662
  const CONFIGURABLE_RULE_IDS = new Set(CLEAN_CONFIGURABLE_RULES.map((rule) => rule.id));
11318
9663
  const HARD_RULE_IDS = new Set(CLEAN_HARD_RULES.map((rule) => rule.id));
11319
- /** Immutable exclude entries — always skipped by clean, cannot be overridden. */
9664
+ /**
9665
+ Immutable exclude entries — always skipped by clean, cannot be overridden.
9666
+ */
11320
9667
  const CLEAN_IMMUTABLE_EXCLUDE = [
11321
9668
  ".git",
11322
9669
  "**/.git",
@@ -11355,7 +9702,9 @@ function resolveCleanRules(config) {
11355
9702
  gitignoredOnly: level("clean.gitignored-only", rules["clean.gitignored-only"])
11356
9703
  };
11357
9704
  }
11358
- /** Merge exclude patterns (deduped, order preserved). */
9705
+ /**
9706
+ Merge exclude patterns (deduped, order preserved).
9707
+ */
11359
9708
  function resolveCleanExclude(config, mode = "normal") {
11360
9709
  if (mode === "immutable-only") return [...CLEAN_IMMUTABLE_EXCLUDE];
11361
9710
  const merged = [
@@ -11378,7 +9727,9 @@ function resolveCleanPatterns(config) {
11378
9727
  //#endregion
11379
9728
  //#region src/actions/package/cleanPlan.ts
11380
9729
  init_index_min();
11381
- /** Built-in clean targets — always cleaned (bypass gitignored-only). */
9730
+ /**
9731
+ Built-in clean targets — always cleaned (bypass gitignored-only).
9732
+ */
11382
9733
  const BUILTIN_CLEAN_PATTERNS = ["dist", "build"];
11383
9734
  function excludeModeForFull(fullMode) {
11384
9735
  return fullMode === "full-all" ? "immutable-only" : "normal";
@@ -11558,7 +9909,9 @@ const packageCleanOutputs = async (options = {}) => {
11558
9909
  };
11559
9910
  //#endregion
11560
9911
  //#region src/actions/package/clean-typescript.ts
11561
- /** Cleans TypeScript build info and local lint caches for a package. */
9912
+ /**
9913
+ Cleans TypeScript build info and local lint caches for a package.
9914
+ */
11562
9915
  const packageCleanTypescript = (options = {}) => {
11563
9916
  const pkg = options.pkg ?? INIT_CWD();
11564
9917
  const pkgName = options.pkgName ?? packageName();
@@ -11605,9 +9958,7 @@ const buildEntries = (srcDir, entryMode = "single", options, shouldExcludeSpecAn
11605
9958
  case "custom":
11606
9959
  entries = [];
11607
9960
  break;
11608
- default:
11609
- entries = ["index.ts"];
11610
- break;
9961
+ default: entries = ["index.ts"];
11611
9962
  }
11612
9963
  if (typeof options !== "boolean" && Array.isArray(options?.entry)) entries.push(...options.entry);
11613
9964
  if (isVerbose) console.log(`buildEntries [${entryMode}] ${entries.length}`);
@@ -11638,7 +9989,7 @@ const I = "ERR_PACKAGE_PATH_NOT_EXPORTED";
11638
9989
  const R$1 = /^\d+$/;
11639
9990
  const O$1 = /^(\.{1,2}|node_modules)$/i;
11640
9991
  const w = /\/|\\/;
11641
- var h$1 = ((r) => (r.Export = "exports", r.Import = "imports", r))(h$1 || {});
9992
+ var h = ((r) => (r.Export = "exports", r.Import = "imports", r))(h || {});
11642
9993
  const f = (r, t, e, o, c) => {
11643
9994
  if (t == null) return [];
11644
9995
  if (typeof t == "string") {
@@ -11682,23 +10033,23 @@ const u = /^\w+:/;
11682
10033
  const v = (r, t, e) => {
11683
10034
  if (!r) throw new Error("\"exports\" is required");
11684
10035
  t = t === "" ? "." : `./${t}`, (typeof r == "string" || Array.isArray(r) || A(r) && p(r)) && (r = { ".": r });
11685
- const [o, c] = d(r, t), n = f(h$1.Export, r[o], t, e, c);
10036
+ const [o, c] = d(r, t), n = f(h.Export, r[o], t, e, c);
11686
10037
  if (n.length === 0) throw a(I, t === "." ? "No \"exports\" main defined" : `Package subpath '${t}' is not defined by "exports"`);
11687
10038
  for (const i of n) if (!i.startsWith("./") && !u.test(i)) throw a(E$1, `Invalid "exports" target "${i}" defined in the package config`);
11688
10039
  return n;
11689
10040
  };
11690
10041
  //#endregion
11691
- //#region ../../node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.mjs
10042
+ //#region ../../node_modules/.pnpm/get-tsconfig@4.14.1/node_modules/get-tsconfig/dist/index.mjs
11692
10043
  var xe = Object.defineProperty;
11693
- var r = (e, t) => xe(e, "name", {
10044
+ var i = (e, t) => xe(e, "name", {
11694
10045
  value: t,
11695
10046
  configurable: !0
11696
10047
  });
11697
- function h(e) {
10048
+ function L(e) {
11698
10049
  return e.startsWith("\\\\?\\") ? e : e.replace(/\\/g, "/");
11699
10050
  }
11700
- r(h, "slash");
11701
- const K = r((e) => {
10051
+ i(L, "slash");
10052
+ const Q = i((e) => {
11702
10053
  const t = fs[e];
11703
10054
  return (s, ...n) => {
11704
10055
  const o = `${e}:${n.join(":")}`;
@@ -11706,10 +10057,16 @@ const K = r((e) => {
11706
10057
  return l === void 0 && (l = Reflect.apply(t, fs, n), s?.set(o, l)), l;
11707
10058
  };
11708
10059
  }, "cacheFs");
11709
- const x = K("existsSync");
11710
- const Se = K("readFileSync");
11711
- const Q = K("statSync");
11712
- const O = r((e, t, s) => {
10060
+ const x = Q("existsSync");
10061
+ const Se = Q("readFileSync");
10062
+ const H = Q("statSync");
10063
+ const Ne = Q("realpathSync");
10064
+ const Pe$1 = i((...[e, t]) => {
10065
+ const s = Ne(e, t);
10066
+ if (typeof s != "string") throw new TypeError(`Unexpected resolved path type for ${s} in ${t}`);
10067
+ return s;
10068
+ }, "realpath");
10069
+ const O = i((e, t, s) => {
11713
10070
  for (;;) {
11714
10071
  const n = PATH.posix.join(e, t);
11715
10072
  if (x(s, n)) return n;
@@ -11719,49 +10076,49 @@ const O = r((e, t, s) => {
11719
10076
  }
11720
10077
  }, "findUp");
11721
10078
  const C = /^\.{1,2}(\/.*)?$/;
11722
- const H = r((e) => {
11723
- const t = h(e);
10079
+ const X = i((e) => {
10080
+ const t = L(e);
11724
10081
  return C.test(t) ? t : `./${t}`;
11725
10082
  }, "normalizeRelativePath");
11726
- function Ne(e, t = !1) {
10083
+ function We(e, t = !1) {
11727
10084
  const s = e.length;
11728
- let n = 0, o = "", l = 0, i = 16, f = 0, u = 0, g = 0, w = 0, d = 0;
10085
+ let n = 0, o = "", l = 0, r = 16, f = 0, u = 0, g = 0, d = 0, b = 0;
11729
10086
  function _(c, j) {
11730
- let y = 0, T = 0;
10087
+ let y = 0, A = 0;
11731
10088
  for (; y < c;) {
11732
10089
  let k = e.charCodeAt(n);
11733
- if (k >= 48 && k <= 57) T = T * 16 + k - 48;
11734
- else if (k >= 65 && k <= 70) T = T * 16 + k - 65 + 10;
11735
- else if (k >= 97 && k <= 102) T = T * 16 + k - 97 + 10;
10090
+ if (k >= 48 && k <= 57) A = A * 16 + k - 48;
10091
+ else if (k >= 65 && k <= 70) A = A * 16 + k - 65 + 10;
10092
+ else if (k >= 97 && k <= 102) A = A * 16 + k - 97 + 10;
11736
10093
  else break;
11737
10094
  n++, y++;
11738
10095
  }
11739
- return y < c && (T = -1), T;
10096
+ return y < c && (A = -1), A;
11740
10097
  }
11741
- r(_, "scanHexDigits");
11742
- function v(c) {
11743
- n = c, o = "", l = 0, i = 16, d = 0;
10098
+ i(_, "scanHexDigits");
10099
+ function h(c) {
10100
+ n = c, o = "", l = 0, r = 16, b = 0;
11744
10101
  }
11745
- r(v, "setPosition");
11746
- function p() {
10102
+ i(h, "setPosition");
10103
+ function D() {
11747
10104
  let c = n;
11748
10105
  if (e.charCodeAt(n) === 48) n++;
11749
10106
  else for (n++; n < e.length && R(e.charCodeAt(n));) n++;
11750
10107
  if (n < e.length && e.charCodeAt(n) === 46) if (n++, n < e.length && R(e.charCodeAt(n))) for (n++; n < e.length && R(e.charCodeAt(n));) n++;
11751
- else return d = 3, e.substring(c, n);
10108
+ else return b = 3, e.substring(c, n);
11752
10109
  let j = n;
11753
10110
  if (n < e.length && (e.charCodeAt(n) === 69 || e.charCodeAt(n) === 101)) if (n++, (n < e.length && e.charCodeAt(n) === 43 || e.charCodeAt(n) === 45) && n++, n < e.length && R(e.charCodeAt(n))) {
11754
10111
  for (n++; n < e.length && R(e.charCodeAt(n));) n++;
11755
10112
  j = n;
11756
- } else d = 3;
10113
+ } else b = 3;
11757
10114
  return e.substring(c, j);
11758
10115
  }
11759
- r(p, "scanNumber");
11760
- function L() {
10116
+ i(D, "scanNumber");
10117
+ function T() {
11761
10118
  let c = "", j = n;
11762
10119
  for (;;) {
11763
10120
  if (n >= s) {
11764
- c += e.substring(j, n), d = 2;
10121
+ c += e.substring(j, n), b = 2;
11765
10122
  break;
11766
10123
  }
11767
10124
  const y = e.charCodeAt(n);
@@ -11771,7 +10128,7 @@ function Ne(e, t = !1) {
11771
10128
  }
11772
10129
  if (y === 92) {
11773
10130
  if (c += e.substring(j, n), n++, n >= s) {
11774
- d = 2;
10131
+ b = 2;
11775
10132
  break;
11776
10133
  }
11777
10134
  switch (e.charCodeAt(n++)) {
@@ -11802,63 +10159,63 @@ function Ne(e, t = !1) {
11802
10159
  break;
11803
10160
  case 117:
11804
10161
  const k = _(4);
11805
- k >= 0 ? c += String.fromCharCode(k) : d = 4;
10162
+ k >= 0 ? c += String.fromCharCode(k) : b = 4;
11806
10163
  break;
11807
- default: d = 5;
10164
+ default: b = 5;
11808
10165
  }
11809
10166
  j = n;
11810
10167
  continue;
11811
10168
  }
11812
10169
  if (y >= 0 && y <= 31) if (J(y)) {
11813
- c += e.substring(j, n), d = 2;
10170
+ c += e.substring(j, n), b = 2;
11814
10171
  break;
11815
- } else d = 6;
10172
+ } else b = 6;
11816
10173
  n++;
11817
10174
  }
11818
10175
  return c;
11819
10176
  }
11820
- r(L, "scanString");
11821
- function A() {
11822
- if (o = "", d = 0, l = n, u = f, w = g, n >= s) return l = s, i = 17;
10177
+ i(T, "scanString");
10178
+ function w() {
10179
+ if (o = "", b = 0, l = n, u = f, d = g, n >= s) return l = s, r = 17;
11823
10180
  let c = e.charCodeAt(n);
11824
10181
  if (ee(c)) {
11825
10182
  do
11826
10183
  n++, o += String.fromCharCode(c), c = e.charCodeAt(n);
11827
10184
  while (ee(c));
11828
- return i = 15;
10185
+ return r = 15;
11829
10186
  }
11830
10187
  if (J(c)) return n++, o += String.fromCharCode(c), c === 13 && e.charCodeAt(n) === 10 && (n++, o += `
11831
- `), f++, g = n, i = 14;
10188
+ `), f++, g = n, r = 14;
11832
10189
  switch (c) {
11833
- case 123: return n++, i = 1;
11834
- case 125: return n++, i = 2;
11835
- case 91: return n++, i = 3;
11836
- case 93: return n++, i = 4;
11837
- case 58: return n++, i = 6;
11838
- case 44: return n++, i = 5;
11839
- case 34: return n++, o = L(), i = 10;
10190
+ case 123: return n++, r = 1;
10191
+ case 125: return n++, r = 2;
10192
+ case 91: return n++, r = 3;
10193
+ case 93: return n++, r = 4;
10194
+ case 58: return n++, r = 6;
10195
+ case 44: return n++, r = 5;
10196
+ case 34: return n++, o = T(), r = 10;
11840
10197
  case 47:
11841
10198
  const j = n - 1;
11842
10199
  if (e.charCodeAt(n + 1) === 47) {
11843
10200
  for (n += 2; n < s && !J(e.charCodeAt(n));) n++;
11844
- return o = e.substring(j, n), i = 12;
10201
+ return o = e.substring(j, n), r = 12;
11845
10202
  }
11846
10203
  if (e.charCodeAt(n + 1) === 42) {
11847
10204
  n += 2;
11848
10205
  const y = s - 1;
11849
- let T = !1;
10206
+ let A = !1;
11850
10207
  for (; n < y;) {
11851
10208
  const k = e.charCodeAt(n);
11852
10209
  if (k === 42 && e.charCodeAt(n + 1) === 47) {
11853
- n += 2, T = !0;
10210
+ n += 2, A = !0;
11854
10211
  break;
11855
10212
  }
11856
10213
  n++, J(k) && (k === 13 && e.charCodeAt(n) === 10 && n++, f++, g = n);
11857
10214
  }
11858
- return T || (n++, d = 1), o = e.substring(j, n), i = 13;
10215
+ return A || (n++, b = 1), o = e.substring(j, n), r = 13;
11859
10216
  }
11860
- return o += String.fromCharCode(c), n++, i = 16;
11861
- case 45: if (o += String.fromCharCode(c), n++, n === s || !R(e.charCodeAt(n))) return i = 16;
10217
+ return o += String.fromCharCode(c), n++, r = 16;
10218
+ case 45: if (o += String.fromCharCode(c), n++, n === s || !R(e.charCodeAt(n))) return r = 16;
11862
10219
  case 48:
11863
10220
  case 49:
11864
10221
  case 50:
@@ -11868,22 +10225,22 @@ function Ne(e, t = !1) {
11868
10225
  case 54:
11869
10226
  case 55:
11870
10227
  case 56:
11871
- case 57: return o += p(), i = 11;
10228
+ case 57: return o += D(), r = 11;
11872
10229
  default:
11873
- for (; n < s && D(c);) n++, c = e.charCodeAt(n);
10230
+ for (; n < s && v(c);) n++, c = e.charCodeAt(n);
11874
10231
  if (l !== n) {
11875
10232
  switch (o = e.substring(l, n), o) {
11876
- case "true": return i = 8;
11877
- case "false": return i = 9;
11878
- case "null": return i = 7;
10233
+ case "true": return r = 8;
10234
+ case "false": return r = 9;
10235
+ case "null": return r = 7;
11879
10236
  }
11880
- return i = 16;
10237
+ return r = 16;
11881
10238
  }
11882
- return o += String.fromCharCode(c), n++, i = 16;
10239
+ return o += String.fromCharCode(c), n++, r = 16;
11883
10240
  }
11884
10241
  }
11885
- r(A, "scanNext");
11886
- function D(c) {
10242
+ i(w, "scanNext");
10243
+ function v(c) {
11887
10244
  if (ee(c) || J(c)) return !1;
11888
10245
  switch (c) {
11889
10246
  case 125:
@@ -11897,40 +10254,40 @@ function Ne(e, t = !1) {
11897
10254
  }
11898
10255
  return !0;
11899
10256
  }
11900
- r(D, "isUnknownContentCharacter");
10257
+ i(v, "isUnknownContentCharacter");
11901
10258
  function B() {
11902
10259
  let c;
11903
10260
  do
11904
- c = A();
10261
+ c = w();
11905
10262
  while (c >= 12 && c <= 15);
11906
10263
  return c;
11907
10264
  }
11908
- return r(B, "scanNextNonTrivia"), {
11909
- setPosition: v,
11910
- getPosition: r(() => n, "getPosition"),
11911
- scan: t ? B : A,
11912
- getToken: r(() => i, "getToken"),
11913
- getTokenValue: r(() => o, "getTokenValue"),
11914
- getTokenOffset: r(() => l, "getTokenOffset"),
11915
- getTokenLength: r(() => n - l, "getTokenLength"),
11916
- getTokenStartLine: r(() => u, "getTokenStartLine"),
11917
- getTokenStartCharacter: r(() => l - w, "getTokenStartCharacter"),
11918
- getTokenError: r(() => d, "getTokenError")
10265
+ return i(B, "scanNextNonTrivia"), {
10266
+ setPosition: h,
10267
+ getPosition: i(() => n, "getPosition"),
10268
+ scan: t ? B : w,
10269
+ getToken: i(() => r, "getToken"),
10270
+ getTokenValue: i(() => o, "getTokenValue"),
10271
+ getTokenOffset: i(() => l, "getTokenOffset"),
10272
+ getTokenLength: i(() => n - l, "getTokenLength"),
10273
+ getTokenStartLine: i(() => u, "getTokenStartLine"),
10274
+ getTokenStartCharacter: i(() => l - d, "getTokenStartCharacter"),
10275
+ getTokenError: i(() => b, "getTokenError")
11919
10276
  };
11920
10277
  }
11921
- r(Ne, "createScanner");
10278
+ i(We, "createScanner");
11922
10279
  function ee(e) {
11923
10280
  return e === 32 || e === 9;
11924
10281
  }
11925
- r(ee, "isWhiteSpace");
10282
+ i(ee, "isWhiteSpace");
11926
10283
  function J(e) {
11927
10284
  return e === 10 || e === 13;
11928
10285
  }
11929
- r(J, "isLineBreak");
10286
+ i(J, "isLineBreak");
11930
10287
  function R(e) {
11931
10288
  return e >= 48 && e <= 57;
11932
10289
  }
11933
- r(R, "isDigit");
10290
+ i(R, "isDigit");
11934
10291
  var ge;
11935
10292
  (function(e) {
11936
10293
  e[e.lineFeed = 10] = "lineFeed", e[e.carriageReturn = 13] = "carriageReturn", e[e.space = 32] = "space", e[e._0 = 48] = "_0", e[e._1 = 49] = "_1", e[e._2 = 50] = "_2", e[e._3 = 51] = "_3", e[e._4 = 52] = "_4", e[e._5 = 53] = "_5", e[e._6 = 54] = "_6", e[e._7 = 55] = "_7", e[e._8 = 56] = "_8", e[e._9 = 57] = "_9", e[e.a = 97] = "a", e[e.b = 98] = "b", e[e.c = 99] = "c", e[e.d = 100] = "d", e[e.e = 101] = "e", e[e.f = 102] = "f", e[e.g = 103] = "g", e[e.h = 104] = "h", e[e.i = 105] = "i", e[e.j = 106] = "j", e[e.k = 107] = "k", e[e.l = 108] = "l", e[e.m = 109] = "m", e[e.n = 110] = "n", e[e.o = 111] = "o", e[e.p = 112] = "p", e[e.q = 113] = "q", e[e.r = 114] = "r", e[e.s = 115] = "s", e[e.t = 116] = "t", e[e.u = 117] = "u", e[e.v = 118] = "v", e[e.w = 119] = "w", e[e.x = 120] = "x", e[e.y = 121] = "y", e[e.z = 122] = "z", e[e.A = 65] = "A", e[e.B = 66] = "B", e[e.C = 67] = "C", e[e.D = 68] = "D", e[e.E = 69] = "E", e[e.F = 70] = "F", e[e.G = 71] = "G", e[e.H = 72] = "H", e[e.I = 73] = "I", e[e.J = 74] = "J", e[e.K = 75] = "K", e[e.L = 76] = "L", e[e.M = 77] = "M", e[e.N = 78] = "N", e[e.O = 79] = "O", e[e.P = 80] = "P", e[e.Q = 81] = "Q", e[e.R = 82] = "R", e[e.S = 83] = "S", e[e.T = 84] = "T", e[e.U = 85] = "U", e[e.V = 86] = "V", e[e.W = 87] = "W", e[e.X = 88] = "X", e[e.Y = 89] = "Y", e[e.Z = 90] = "Z", e[e.asterisk = 42] = "asterisk", e[e.backslash = 92] = "backslash", e[e.closeBrace = 125] = "closeBrace", e[e.closeBracket = 93] = "closeBracket", e[e.colon = 58] = "colon", e[e.comma = 44] = "comma", e[e.dot = 46] = "dot", e[e.doubleQuote = 34] = "doubleQuote", e[e.minus = 45] = "minus", e[e.openBrace = 123] = "openBrace", e[e.openBracket = 91] = "openBracket", e[e.plus = 43] = "plus", e[e.slash = 47] = "slash", e[e.formFeed = 12] = "formFeed", e[e.tab = 9] = "tab";
@@ -11941,76 +10298,76 @@ new Array(S).fill(0).map((e, t) => `
11941
10298
  ` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `
11942
10299
  ` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `\r
11943
10300
  ` + " ".repeat(t));
11944
- var X;
10301
+ var Y;
11945
10302
  (function(e) {
11946
10303
  e.DEFAULT = { allowTrailingComma: !1 };
11947
- })(X || (X = {}));
11948
- function Pe$1(e, t = [], s = X.DEFAULT) {
10304
+ })(Y || (Y = {}));
10305
+ function Je(e, t = [], s = Y.DEFAULT) {
11949
10306
  let n = null, o = [];
11950
10307
  const l = [];
11951
- function i(u) {
10308
+ function r(u) {
11952
10309
  Array.isArray(o) ? o.push(u) : n !== null && (o[n] = u);
11953
10310
  }
11954
- return r(i, "onValue"), We(e, {
11955
- onObjectBegin: r(() => {
10311
+ return i(r, "onValue"), Me(e, {
10312
+ onObjectBegin: i(() => {
11956
10313
  const u = {};
11957
- i(u), l.push(o), o = u, n = null;
10314
+ r(u), l.push(o), o = u, n = null;
11958
10315
  }, "onObjectBegin"),
11959
- onObjectProperty: r((u) => {
10316
+ onObjectProperty: i((u) => {
11960
10317
  n = u;
11961
10318
  }, "onObjectProperty"),
11962
- onObjectEnd: r(() => {
10319
+ onObjectEnd: i(() => {
11963
10320
  o = l.pop();
11964
10321
  }, "onObjectEnd"),
11965
- onArrayBegin: r(() => {
10322
+ onArrayBegin: i(() => {
11966
10323
  const u = [];
11967
- i(u), l.push(o), o = u, n = null;
10324
+ r(u), l.push(o), o = u, n = null;
11968
10325
  }, "onArrayBegin"),
11969
- onArrayEnd: r(() => {
10326
+ onArrayEnd: i(() => {
11970
10327
  o = l.pop();
11971
10328
  }, "onArrayEnd"),
11972
- onLiteralValue: i,
11973
- onError: r((u, g, w) => {
10329
+ onLiteralValue: r,
10330
+ onError: i((u, g, d) => {
11974
10331
  t.push({
11975
10332
  error: u,
11976
10333
  offset: g,
11977
- length: w
10334
+ length: d
11978
10335
  });
11979
10336
  }, "onError")
11980
10337
  }, s), o[0];
11981
10338
  }
11982
- r(Pe$1, "parse$1");
11983
- function We(e, t, s = X.DEFAULT) {
11984
- const n = Ne(e, !1), o = [];
10339
+ i(Je, "parse$1");
10340
+ function Me(e, t, s = Y.DEFAULT) {
10341
+ const n = We(e, !1), o = [];
11985
10342
  let l = 0;
11986
- function i(b) {
11987
- return b ? () => l === 0 && b(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
10343
+ function r(p) {
10344
+ return p ? () => l === 0 && p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
11988
10345
  }
11989
- r(i, "toNoArgVisit");
11990
- function f(b) {
11991
- return b ? (F) => l === 0 && b(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
10346
+ i(r, "toNoArgVisit");
10347
+ function f(p) {
10348
+ return p ? (F) => l === 0 && p(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter()) : () => !0;
11992
10349
  }
11993
- r(f, "toOneArgVisit");
11994
- function u(b) {
11995
- return b ? (F) => l === 0 && b(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) : () => !0;
10350
+ i(f, "toOneArgVisit");
10351
+ function u(p) {
10352
+ return p ? (F) => l === 0 && p(F, n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) : () => !0;
11996
10353
  }
11997
- r(u, "toOneArgVisitWithPath");
11998
- function g(b) {
11999
- return b ? () => {
12000
- l > 0 ? l++ : b(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) === !1 && (l = 1);
10354
+ i(u, "toOneArgVisitWithPath");
10355
+ function g(p) {
10356
+ return p ? () => {
10357
+ l > 0 ? l++ : p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter(), () => o.slice()) === !1 && (l = 1);
12001
10358
  } : () => !0;
12002
10359
  }
12003
- r(g, "toBeginVisit");
12004
- function w(b) {
12005
- return b ? () => {
12006
- l > 0 && l--, l === 0 && b(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter());
10360
+ i(g, "toBeginVisit");
10361
+ function d(p) {
10362
+ return p ? () => {
10363
+ l > 0 && l--, l === 0 && p(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter());
12007
10364
  } : () => !0;
12008
10365
  }
12009
- r(w, "toEndVisit");
12010
- const d = g(t.onObjectBegin), _ = u(t.onObjectProperty), v = w(t.onObjectEnd), p = g(t.onArrayBegin), L = w(t.onArrayEnd), A = u(t.onLiteralValue), D = f(t.onSeparator), B = i(t.onComment), c = f(t.onError), j = s && s.disallowComments, y = s && s.allowTrailingComma;
12011
- function T() {
10366
+ i(d, "toEndVisit");
10367
+ const b = g(t.onObjectBegin), _ = u(t.onObjectProperty), h = d(t.onObjectEnd), D = g(t.onArrayBegin), T = d(t.onArrayEnd), w = u(t.onLiteralValue), v = f(t.onSeparator), B = r(t.onComment), c = f(t.onError), j = s && s.disallowComments, y = s && s.allowTrailingComma;
10368
+ function A() {
12012
10369
  for (;;) {
12013
- const b = n.scan();
10370
+ const p = n.scan();
12014
10371
  switch (n.getTokenError()) {
12015
10372
  case 4:
12016
10373
  k(14);
@@ -12027,11 +10384,9 @@ function We(e, t, s = X.DEFAULT) {
12027
10384
  case 2:
12028
10385
  k(12);
12029
10386
  break;
12030
- case 6:
12031
- k(16);
12032
- break;
10387
+ case 6: k(16);
12033
10388
  }
12034
- switch (b) {
10389
+ switch (p) {
12035
10390
  case 12:
12036
10391
  case 13:
12037
10392
  j ? k(10) : B();
@@ -12041,78 +10396,78 @@ function We(e, t, s = X.DEFAULT) {
12041
10396
  break;
12042
10397
  case 15:
12043
10398
  case 14: break;
12044
- default: return b;
10399
+ default: return p;
12045
10400
  }
12046
10401
  }
12047
10402
  }
12048
- r(T, "scanNext");
12049
- function k(b, F = [], W = []) {
12050
- if (c(b), F.length + W.length > 0) {
12051
- let $ = n.getToken();
12052
- for (; $ !== 17;) {
12053
- if (F.indexOf($) !== -1) {
12054
- T();
10403
+ i(A, "scanNext");
10404
+ function k(p, F = [], W = []) {
10405
+ if (c(p), F.length + W.length > 0) {
10406
+ let I = n.getToken();
10407
+ for (; I !== 17;) {
10408
+ if (F.indexOf(I) !== -1) {
10409
+ A();
12055
10410
  break;
12056
- } else if (W.indexOf($) !== -1) break;
12057
- $ = T();
10411
+ } else if (W.indexOf(I) !== -1) break;
10412
+ I = A();
12058
10413
  }
12059
10414
  }
12060
10415
  }
12061
- r(k, "handleError");
12062
- function P(b) {
10416
+ i(k, "handleError");
10417
+ function P(p) {
12063
10418
  const F = n.getTokenValue();
12064
- return b ? A(F) : (_(F), o.push(F)), T(), !0;
10419
+ return p ? w(F) : (_(F), o.push(F)), A(), !0;
12065
10420
  }
12066
- r(P, "parseString");
10421
+ i(P, "parseString");
12067
10422
  function M() {
12068
10423
  switch (n.getToken()) {
12069
10424
  case 11:
12070
- const b = n.getTokenValue();
12071
- let F = Number(b);
12072
- isNaN(F) && (k(2), F = 0), A(F);
10425
+ const p = n.getTokenValue();
10426
+ let F = Number(p);
10427
+ isNaN(F) && (k(2), F = 0), w(F);
12073
10428
  break;
12074
10429
  case 7:
12075
- A(null);
10430
+ w(null);
12076
10431
  break;
12077
10432
  case 8:
12078
- A(!0);
10433
+ w(!0);
12079
10434
  break;
12080
10435
  case 9:
12081
- A(!1);
10436
+ w(!1);
12082
10437
  break;
12083
10438
  default: return !1;
12084
10439
  }
12085
- return T(), !0;
10440
+ return A(), !0;
12086
10441
  }
12087
- r(M, "parseLiteral");
10442
+ i(M, "parseLiteral");
12088
10443
  function V() {
12089
- return n.getToken() !== 10 ? (k(3, [], [2, 5]), !1) : (P(!1), n.getToken() === 6 ? (D(":"), T(), U() || k(4, [], [2, 5])) : k(5, [], [2, 5]), o.pop(), !0);
10444
+ return n.getToken() !== 10 ? (k(3, [], [2, 5]), !1) : (P(!1), n.getToken() === 6 ? (v(":"), A(), U() || k(4, [], [2, 5])) : k(5, [], [2, 5]), o.pop(), !0);
12090
10445
  }
12091
- r(V, "parseProperty");
10446
+ i(V, "parseProperty");
12092
10447
  function z() {
12093
- d(), T();
12094
- let b = !1;
10448
+ b(), A();
10449
+ let p = !1;
12095
10450
  for (; n.getToken() !== 2 && n.getToken() !== 17;) {
12096
10451
  if (n.getToken() === 5) {
12097
- if (b || k(4, [], []), D(","), T(), n.getToken() === 2 && y) break;
12098
- } else b && k(6, [], []);
12099
- V() || k(4, [], [2, 5]), b = !0;
10452
+ if (p || k(4, [], []), v(","), A(), n.getToken() === 2 && y) break;
10453
+ } else p && k(6, [], []);
10454
+ V() || k(4, [], [2, 5]), p = !0;
12100
10455
  }
12101
- return v(), n.getToken() !== 2 ? k(7, [2], []) : T(), !0;
10456
+ return h(), n.getToken() !== 2 ? k(7, [2], []) : A(), !0;
12102
10457
  }
12103
- r(z, "parseObject");
10458
+ i(z, "parseObject");
12104
10459
  function G() {
12105
- p(), T();
12106
- let b = !0, F = !1;
10460
+ D(), A();
10461
+ let p = !0, F = !1;
12107
10462
  for (; n.getToken() !== 4 && n.getToken() !== 17;) {
12108
10463
  if (n.getToken() === 5) {
12109
- if (F || k(4, [], []), D(","), T(), n.getToken() === 4 && y) break;
10464
+ if (F || k(4, [], []), v(","), A(), n.getToken() === 4 && y) break;
12110
10465
  } else F && k(6, [], []);
12111
- b ? (o.push(0), b = !1) : o[o.length - 1]++, U() || k(4, [], [4, 5]), F = !0;
10466
+ p ? (o.push(0), p = !1) : o[o.length - 1]++, U() || k(4, [], [4, 5]), F = !0;
12112
10467
  }
12113
- return L(), b || o.pop(), n.getToken() !== 4 ? k(8, [4], []) : T(), !0;
10468
+ return T(), p || o.pop(), n.getToken() !== 4 ? k(8, [4], []) : A(), !0;
12114
10469
  }
12115
- r(G, "parseArray");
10470
+ i(G, "parseArray");
12116
10471
  function U() {
12117
10472
  switch (n.getToken()) {
12118
10473
  case 3: return G();
@@ -12121,9 +10476,9 @@ function We(e, t, s = X.DEFAULT) {
12121
10476
  default: return M();
12122
10477
  }
12123
10478
  }
12124
- return r(U, "parseValue"), T(), n.getToken() === 17 ? s.allowEmptyContent ? !0 : (k(4, [], []), !1) : U() ? (n.getToken() !== 17 && k(9, [], []), !0) : (k(4, [], []), !1);
10479
+ return i(U, "parseValue"), A(), n.getToken() === 17 ? s.allowEmptyContent ? !0 : (k(4, [], []), !1) : U() ? (n.getToken() !== 17 && k(9, [], []), !0) : (k(4, [], []), !1);
12125
10480
  }
12126
- r(We, "visit");
10481
+ i(Me, "visit");
12127
10482
  var ke;
12128
10483
  (function(e) {
12129
10484
  e[e.None = 0] = "None", e[e.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 4] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 6] = "InvalidCharacter";
@@ -12132,140 +10487,141 @@ var me;
12132
10487
  (function(e) {
12133
10488
  e[e.OpenBraceToken = 1] = "OpenBraceToken", e[e.CloseBraceToken = 2] = "CloseBraceToken", e[e.OpenBracketToken = 3] = "OpenBracketToken", e[e.CloseBracketToken = 4] = "CloseBracketToken", e[e.CommaToken = 5] = "CommaToken", e[e.ColonToken = 6] = "ColonToken", e[e.NullKeyword = 7] = "NullKeyword", e[e.TrueKeyword = 8] = "TrueKeyword", e[e.FalseKeyword = 9] = "FalseKeyword", e[e.StringLiteral = 10] = "StringLiteral", e[e.NumericLiteral = 11] = "NumericLiteral", e[e.LineCommentTrivia = 12] = "LineCommentTrivia", e[e.BlockCommentTrivia = 13] = "BlockCommentTrivia", e[e.LineBreakTrivia = 14] = "LineBreakTrivia", e[e.Trivia = 15] = "Trivia", e[e.Unknown = 16] = "Unknown", e[e.EOF = 17] = "EOF";
12134
10489
  })(me || (me = {}));
12135
- const Je = Pe$1;
12136
- var de;
10490
+ const Ve = Je;
10491
+ var we;
12137
10492
  (function(e) {
12138
10493
  e[e.InvalidSymbol = 1] = "InvalidSymbol", e[e.InvalidNumberFormat = 2] = "InvalidNumberFormat", e[e.PropertyNameExpected = 3] = "PropertyNameExpected", e[e.ValueExpected = 4] = "ValueExpected", e[e.ColonExpected = 5] = "ColonExpected", e[e.CommaExpected = 6] = "CommaExpected", e[e.CloseBraceExpected = 7] = "CloseBraceExpected", e[e.CloseBracketExpected = 8] = "CloseBracketExpected", e[e.EndOfFileExpected = 9] = "EndOfFileExpected", e[e.InvalidCommentToken = 10] = "InvalidCommentToken", e[e.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", e[e.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", e[e.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", e[e.InvalidUnicode = 14] = "InvalidUnicode", e[e.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", e[e.InvalidCharacter = 16] = "InvalidCharacter";
12139
- })(de || (de = {}));
12140
- const we = r((e, t) => Je(Se(t, e, "utf8")), "readJsonc");
10494
+ })(we || (we = {}));
10495
+ const de = i((e, t) => Ve(Se(t, e, "utf8")), "readJsonc");
12141
10496
  const ne = Symbol("implicitBaseUrl");
12142
10497
  const E = "${configDir}";
12143
- const Me = r(() => {
10498
+ const ze = i(() => {
12144
10499
  const { findPnpApi: e } = Be;
12145
10500
  return e && e(process.cwd());
12146
10501
  }, "getPnpApi");
12147
- const te = r((e, t, s, n) => {
10502
+ const te = i((e, t, s, n) => {
12148
10503
  const o = `resolveFromPackageJsonPath:${e}:${t}:${s}`;
12149
10504
  if (n != null && n.has(o)) return n.get(o);
12150
- const l = we(e, n);
10505
+ const l = de(e, n);
12151
10506
  if (!l) return;
12152
- let i = t || "tsconfig.json";
10507
+ let r = t || "tsconfig.json";
12153
10508
  if (!s && l.exports) try {
12154
10509
  const [f] = v(l.exports, t, ["require", "types"]);
12155
- i = f;
10510
+ r = f;
12156
10511
  } catch {
12157
10512
  return !1;
12158
10513
  }
12159
- else !t && l.tsconfig && (i = l.tsconfig);
12160
- return i = PATH.join(e, "..", i), n?.set(o, i), i;
10514
+ else !t && l.tsconfig && (r = l.tsconfig);
10515
+ return r = PATH.join(e, "..", r), n?.set(o, r), r;
12161
10516
  }, "resolveFromPackageJsonPath");
12162
10517
  const se = "package.json";
12163
10518
  const le = "tsconfig.json";
12164
- const Ve = r((e, t, s) => {
12165
- let n = e;
12166
- if (e === ".." && (n = PATH.join(n, le)), e[0] === "." && (n = PATH.resolve(t, n)), PATH.isAbsolute(n)) {
12167
- if (x(s, n)) {
12168
- if (Q(s, n).isFile()) return n;
12169
- } else if (!n.endsWith(".json")) {
12170
- const v = `${n}.json`;
12171
- if (x(s, v)) return v;
10519
+ const Ge = i((e, t, s) => {
10520
+ var n;
10521
+ let o = e;
10522
+ if (e === ".." && (o = PATH.join(o, le)), e[0] === "." && (o = PATH.resolve(t, o)), PATH.isAbsolute(o)) {
10523
+ if (x(s, o)) {
10524
+ if (H(s, o).isFile()) return o;
10525
+ } else if (!o.endsWith(".json")) {
10526
+ const T = `${o}.json`;
10527
+ if (x(s, T)) return T;
12172
10528
  }
12173
10529
  return;
12174
10530
  }
12175
- const [o, ...l] = e.split("/"), i = o[0] === "@" ? `${o}/${l.shift()}` : o, f = l.join("/"), u = Me();
12176
- if (u) {
12177
- const { resolveRequest: v } = u;
10531
+ const [l, ...r] = e.split("/"), f = l[0] === "@" ? `${l}/${r.shift()}` : l, u = r.join("/"), g = ze();
10532
+ if (g) {
10533
+ const { resolveRequest: T } = g;
12178
10534
  try {
12179
- if (i === e) {
12180
- const p = v(PATH.join(i, se), t);
12181
- if (p) {
12182
- const L = te(p, f, !1, s);
12183
- if (L && x(s, L)) return L;
10535
+ if (f === e) {
10536
+ const w = T(PATH.join(f, se), t);
10537
+ if (w) {
10538
+ const v = te(w, u, !1, s);
10539
+ if (v && x(s, v)) return v;
12184
10540
  }
12185
10541
  } else {
12186
- let p;
10542
+ let w;
12187
10543
  try {
12188
- p = v(e, t, { extensions: [".json"] });
10544
+ w = T(e, t, { extensions: [".json"] });
12189
10545
  } catch {
12190
- p = v(PATH.join(e, le), t);
10546
+ w = T(PATH.join(e, le), t);
12191
10547
  }
12192
- if (p) return p;
10548
+ if (w) return w;
12193
10549
  }
12194
10550
  } catch {}
12195
10551
  }
12196
- const g = O(PATH.resolve(t), PATH.join("node_modules", i), s);
12197
- if (!g || !Q(s, g).isDirectory()) return;
12198
- const w = PATH.join(g, se);
12199
- if (x(s, w)) {
12200
- const v = te(w, f, !1, s);
12201
- if (v === !1) return;
12202
- if (v && x(s, v) && Q(s, v).isFile()) return v;
12203
- }
12204
- const d = PATH.join(g, f), _ = d.endsWith(".json");
12205
- if (!_) {
12206
- const v = `${d}.json`;
12207
- if (x(s, v)) return v;
12208
- }
12209
- if (x(s, d)) {
12210
- if (Q(s, d).isDirectory()) {
12211
- const v = PATH.join(d, se);
12212
- if (x(s, v)) {
12213
- const L = te(v, "", !0, s);
12214
- if (L && x(s, L)) return L;
12215
- }
12216
- const p = PATH.join(d, le);
12217
- if (x(s, p)) return p;
12218
- } else if (_) return d;
10552
+ const d = O(PATH.resolve(t), PATH.join("node_modules", f), s);
10553
+ if (!d || !((n = H(s, d)) != null && n.isDirectory())) return;
10554
+ const b = Pe$1(s, d), _ = PATH.join(b, se);
10555
+ if (x(s, _)) {
10556
+ const T = te(_, u, !1, s);
10557
+ if (T === !1) return;
10558
+ if (T && x(s, T) && H(s, T).isFile()) return T;
10559
+ }
10560
+ const h = PATH.join(b, u), D = h.endsWith(".json");
10561
+ if (!D) {
10562
+ const T = `${h}.json`;
10563
+ if (x(s, T)) return T;
10564
+ }
10565
+ if (x(s, h)) {
10566
+ if (H(s, h).isDirectory()) {
10567
+ const T = PATH.join(h, se);
10568
+ if (x(s, T)) {
10569
+ const v = te(T, "", !0, s);
10570
+ if (v && x(s, v)) return v;
10571
+ }
10572
+ const w = PATH.join(h, le);
10573
+ if (x(s, w)) return w;
10574
+ } else if (D) return h;
12219
10575
  }
12220
10576
  }, "resolveExtendsPath");
12221
- const oe = r((e, t) => H(PATH.relative(e, t)), "pathRelative");
12222
- const be = [
10577
+ const oe = i((e, t) => X(PATH.relative(e, t)), "pathRelative");
10578
+ const pe = [
12223
10579
  "files",
12224
10580
  "include",
12225
10581
  "exclude"
12226
10582
  ];
12227
- const N = r((e, t, s) => {
10583
+ const N = i((e, t, s) => {
12228
10584
  const n = PATH.join(t, s);
12229
- return h(PATH.relative(e, n)) || "./";
10585
+ return L(PATH.relative(e, n)) || "./";
12230
10586
  }, "resolveAndRelativize");
12231
- const ze = r((e, t, s) => {
10587
+ const Qe = i((e, t, s) => {
12232
10588
  const n = PATH.relative(e, t);
12233
10589
  if (!n) return s;
12234
- return h(`${n}/${s.startsWith("./") ? s.slice(2) : s}`);
10590
+ return L(`${n}/${s.startsWith("./") ? s.slice(2) : s}`);
12235
10591
  }, "prefixPattern");
12236
- const Ge = r((e, t, s, n) => {
12237
- const o = Ve(e, t, n);
10592
+ const He = i((e, t, s, n) => {
10593
+ const o = Ge(e, t, n);
12238
10594
  if (!o) throw new Error(`File '${e}' not found.`);
12239
10595
  if (s.has(o)) throw new Error(`Circularity detected while resolving configuration: ${o}`);
12240
10596
  s.add(o);
12241
- const l = PATH.dirname(o), i = pe(o, n, s);
12242
- delete i.references;
12243
- const { compilerOptions: f } = i;
10597
+ const l = PATH.dirname(o), r = ve(o, n, s);
10598
+ delete r.references;
10599
+ const { compilerOptions: f } = r;
12244
10600
  if (f) {
12245
10601
  const { baseUrl: u } = f;
12246
10602
  u && !u.startsWith(E) && (f.baseUrl = N(t, l, u));
12247
10603
  const { outDir: g } = f;
12248
10604
  g && !g.startsWith(E) && (f.outDir = N(t, l, g));
12249
- const { declarationDir: w } = f;
12250
- w && !w.startsWith(E) && (f.declarationDir = N(t, l, w));
12251
- const { rootDir: d } = f;
12252
- d && !d.startsWith(E) && (f.rootDir = N(t, l, d));
10605
+ const { declarationDir: d } = f;
10606
+ d && !d.startsWith(E) && (f.declarationDir = N(t, l, d));
10607
+ const { rootDir: b } = f;
10608
+ b && !b.startsWith(E) && (f.rootDir = N(t, l, b));
12253
10609
  const { rootDirs: _ } = f;
12254
- _ && (f.rootDirs = _.map((p) => p.startsWith(E) ? p : N(t, l, p)));
12255
- const { typeRoots: v } = f;
12256
- v && (f.typeRoots = v.map((p) => p.startsWith(E) ? p : N(t, l, p)));
10610
+ _ && (f.rootDirs = _.map((D) => D.startsWith(E) ? D : N(t, l, D)));
10611
+ const { typeRoots: h } = f;
10612
+ h && (f.typeRoots = h.map((D) => D.startsWith(E) ? D : N(t, l, D)));
12257
10613
  }
12258
- for (const u of be) {
12259
- const g = i[u];
12260
- g && (i[u] = g.map((w) => w.startsWith(E) ? w : ze(t, l, w)));
10614
+ for (const u of pe) {
10615
+ const g = r[u];
10616
+ g && (r[u] = g.map((d) => d.startsWith(E) ? d : Qe(t, l, d)));
12261
10617
  }
12262
- return i;
10618
+ return r;
12263
10619
  }, "resolveExtends");
12264
- const ve = ["outDir", "declarationDir"];
12265
- const pe = r((e, t, s = /* @__PURE__ */ new Set()) => {
10620
+ const be = ["outDir", "declarationDir"];
10621
+ const ve = i((e, t, s = /* @__PURE__ */ new Set()) => {
12266
10622
  let n;
12267
10623
  try {
12268
- n = we(e, t) || {};
10624
+ n = de(e, t) || {};
12269
10625
  } catch {
12270
10626
  throw new Error(`Cannot resolve tsconfig at path: ${e}`);
12271
10627
  }
@@ -12278,8 +10634,8 @@ const pe = r((e, t, s = /* @__PURE__ */ new Set()) => {
12278
10634
  if (n.extends) {
12279
10635
  const l = Array.isArray(n.extends) ? n.extends : [n.extends];
12280
10636
  delete n.extends;
12281
- for (const i of l.reverse()) {
12282
- const f = Ge(i, o, new Set(s), t), u = {
10637
+ for (const r of l.reverse()) {
10638
+ const f = He(r, o, new Set(s), t), u = {
12283
10639
  ...f,
12284
10640
  ...n,
12285
10641
  compilerOptions: {
@@ -12302,21 +10658,21 @@ const pe = r((e, t, s = /* @__PURE__ */ new Set()) => {
12302
10658
  l[f] = oe(o, g);
12303
10659
  }
12304
10660
  }
12305
- for (const f of ve) {
10661
+ for (const f of be) {
12306
10662
  let u = l[f];
12307
- u && (Array.isArray(n.exclude) || (n.exclude = ve.map((g) => l[g]).filter(Boolean)), u.startsWith(E) || (u = H(u)), l[f] = u);
10663
+ u && (Array.isArray(n.exclude) || (n.exclude = be.map((g) => l[g]).filter(Boolean)), u.startsWith(E) || (u = X(u)), l[f] = u);
12308
10664
  }
12309
10665
  } else n.compilerOptions = {};
12310
- if (n.include && (n.include = n.include.map(h)), n.files && (n.files = n.files.map((l) => l.startsWith(E) ? l : H(l))), n.watchOptions) {
10666
+ if (n.include && (n.include = n.include.map(L)), n.files && (n.files = n.files.map((l) => l.startsWith(E) ? l : X(l))), n.watchOptions) {
12311
10667
  const { watchOptions: l } = n;
12312
- l.excludeDirectories && (l.excludeDirectories = l.excludeDirectories.map((i) => h(PATH.resolve(o, i)))), l.excludeFiles && (l.excludeFiles = l.excludeFiles.map((i) => h(PATH.resolve(o, i)))), l.watchFile && (l.watchFile = l.watchFile.toLowerCase()), l.watchDirectory && (l.watchDirectory = l.watchDirectory.toLowerCase()), l.fallbackPolling && (l.fallbackPolling = l.fallbackPolling.toLowerCase());
10668
+ l.excludeDirectories && (l.excludeDirectories = l.excludeDirectories.map((r) => L(PATH.resolve(o, r)))), l.excludeFiles && (l.excludeFiles = l.excludeFiles.map((r) => L(PATH.resolve(o, r)))), l.watchFile && (l.watchFile = l.watchFile.toLowerCase()), l.watchDirectory && (l.watchDirectory = l.watchDirectory.toLowerCase()), l.fallbackPolling && (l.fallbackPolling = l.fallbackPolling.toLowerCase());
12313
10669
  }
12314
10670
  return n;
12315
10671
  }, "_parseTsconfig");
12316
- const Y = r((e, t) => {
12317
- if (e.startsWith(E)) return h(PATH.join(t, e.slice(12)));
10672
+ const Z = i((e, t) => {
10673
+ if (e.startsWith(E)) return L(PATH.join(t, e.slice(12)));
12318
10674
  }, "interpolateConfigDir");
12319
- const Qe = [
10675
+ const Xe = [
12320
10676
  "outDir",
12321
10677
  "declarationDir",
12322
10678
  "outFile",
@@ -12324,8 +10680,8 @@ const Qe = [
12324
10680
  "baseUrl",
12325
10681
  "tsBuildInfoFile"
12326
10682
  ];
12327
- const He = r((e) => {
12328
- if (e.strict) for (const I of [
10683
+ const Ye = i((e) => {
10684
+ if (e.strict) for (const $ of [
12329
10685
  "noImplicitAny",
12330
10686
  "noImplicitThis",
12331
10687
  "strictNullChecks",
@@ -12335,7 +10691,7 @@ const He = r((e) => {
12335
10691
  "strictBuiltinIteratorReturn",
12336
10692
  "alwaysStrict",
12337
10693
  "useUnknownInCatchVariables"
12338
- ]) e[I] === void 0 && (e[I] = !0);
10694
+ ]) e[$] === void 0 && (e[$] = !0);
12339
10695
  if (e.composite && (e.declaration ??= !0, e.incremental ??= !0), e.target) {
12340
10696
  let a = e.target.toLowerCase();
12341
10697
  a === "es2015" && (a = "es6"), e.target = a, a === "esnext" && (e.module ??= "es6", e.useDefineForClassFields ??= !0), (a === "es6" || a === "es2016" || a === "es2017" || a === "es2018" || a === "es2019" || a === "es2020" || a === "es2021" || a === "es2022" || a === "es2023" || a === "es2024") && (e.module ??= "es6"), (a === "es2022" || a === "es2023" || a === "es2024") && (e.useDefineForClassFields ??= !0);
@@ -12343,8 +10699,8 @@ const He = r((e) => {
12343
10699
  if (e.module) {
12344
10700
  let a = e.module.toLowerCase();
12345
10701
  if (a === "es2015" && (a = "es6"), e.module = a, (a === "es6" || a === "es2020" || a === "es2022" || a === "esnext" || a === "none" || a === "system" || a === "umd" || a === "amd") && (e.moduleResolution ??= "classic"), a === "system" && (e.allowSyntheticDefaultImports ??= !0), (a === "node16" || a === "node18" || a === "node20" || a === "nodenext" || a === "preserve") && (e.esModuleInterop ??= !0, e.allowSyntheticDefaultImports ??= !0), (a === "node16" || a === "node18" || a === "node20" || a === "nodenext") && (e.moduleDetection ??= "force"), a === "node16" && (e.target ??= "es2022", e.moduleResolution ??= "node16"), a === "node18" && (e.target ??= "es2022", e.moduleResolution ??= "node16"), a === "node20" && (e.target ??= "es2023", e.moduleResolution ??= "node16", e.resolveJsonModule ??= !0), a === "nodenext" && (e.target ??= "esnext", e.moduleResolution ??= "nodenext", e.resolveJsonModule ??= !0), a === "node16" || a === "node18" || a === "node20" || a === "nodenext") {
12346
- const I = e.target;
12347
- (I === "es3" || I === "es2022" || I === "es2023" || I === "es2024" || I === "esnext") && (e.useDefineForClassFields ??= !0);
10702
+ const $ = e.target;
10703
+ ($ === "es3" || $ === "es2022" || $ === "es2023" || $ === "es2024" || $ === "esnext") && (e.useDefineForClassFields ??= !0);
12348
10704
  }
12349
10705
  a === "preserve" && (e.moduleResolution ??= "bundler");
12350
10706
  }
@@ -12354,52 +10710,52 @@ const He = r((e) => {
12354
10710
  }
12355
10711
  e.jsx && (e.jsx = e.jsx.toLowerCase()), e.moduleDetection && (e.moduleDetection = e.moduleDetection.toLowerCase()), e.importsNotUsedAsValues && (e.importsNotUsedAsValues = e.importsNotUsedAsValues.toLowerCase()), e.newLine && (e.newLine = e.newLine.toLowerCase()), e.esModuleInterop && (e.allowSyntheticDefaultImports ??= !0), e.verbatimModuleSyntax && (e.isolatedModules ??= !0, e.preserveConstEnums ??= !0), e.isolatedModules && (e.preserveConstEnums ??= !0), e.rewriteRelativeImportExtensions && (e.allowImportingTsExtensions ??= !0), e.lib && (e.lib = e.lib.map((a) => a.toLowerCase())), e.checkJs && (e.allowJs ??= !0);
12356
10712
  }, "normalizeCompilerOptions");
12357
- const ie = r((e, t = /* @__PURE__ */ new Map()) => {
12358
- const s = PATH.resolve(e), n = pe(s, t), o = PATH.dirname(s), { compilerOptions: l } = n;
10713
+ const ie = i((e, t = /* @__PURE__ */ new Map()) => {
10714
+ const s = PATH.resolve(e), n = ve(s, t), o = PATH.dirname(s), { compilerOptions: l } = n;
12359
10715
  if (l) {
12360
- for (const f of Qe) {
10716
+ for (const f of Xe) {
12361
10717
  const u = l[f];
12362
10718
  if (u) {
12363
- const g = Y(u, o);
10719
+ const g = Z(u, o);
12364
10720
  l[f] = g ? oe(o, g) : u;
12365
10721
  }
12366
10722
  }
12367
10723
  for (const f of ["rootDirs", "typeRoots"]) {
12368
10724
  const u = l[f];
12369
10725
  u && (l[f] = u.map((g) => {
12370
- const w = Y(g, o);
12371
- return w ? oe(o, w) : H(g);
10726
+ const d = Z(g, o);
10727
+ return d ? oe(o, d) : X(g);
12372
10728
  }));
12373
10729
  }
12374
- const { paths: i } = l;
12375
- if (i) for (const f of Object.keys(i)) i[f] = i[f].map((u) => {
10730
+ const { paths: r } = l;
10731
+ if (r) for (const f of Object.keys(r)) r[f] = r[f].map((u) => {
12376
10732
  var g;
12377
- return (g = Y(u, o)) != null ? g : u;
10733
+ return (g = Z(u, o)) != null ? g : u;
12378
10734
  });
12379
- He(l);
10735
+ Ye(l);
12380
10736
  }
12381
- for (const i of be) {
12382
- const f = n[i];
12383
- f && (n[i] = f.map((u) => {
10737
+ for (const r of pe) {
10738
+ const f = n[r];
10739
+ f && (n[r] = f.map((u) => {
12384
10740
  var g;
12385
- return (g = Y(u, o)) != null ? g : u;
10741
+ return (g = Z(u, o)) != null ? g : u;
12386
10742
  }));
12387
10743
  }
12388
10744
  return n;
12389
10745
  }, "parseTsconfig");
12390
- var Xe = Object.defineProperty;
12391
- var Z = r((e, t) => Xe(e, "name", {
10746
+ var Ze = Object.defineProperty;
10747
+ var q = i((e, t) => Ze(e, "name", {
12392
10748
  value: t,
12393
10749
  configurable: !0
12394
10750
  }), "s");
12395
- const Te = Z((e) => {
10751
+ const Te = q((e) => {
12396
10752
  let t = "";
12397
10753
  for (let s = 0; s < e.length; s += 1) {
12398
10754
  const n = e[s], o = n.toUpperCase();
12399
10755
  t += n === o ? n.toLowerCase() : o;
12400
10756
  }
12401
10757
  return t;
12402
- }, "invertCase"), re = /* @__PURE__ */ new Map(), Ae = Z((e, t) => {
10758
+ }, "invertCase"), re = /* @__PURE__ */ new Map(), Ae = q((e, t) => {
12403
10759
  const s = Re.join(e, `.is-fs-case-sensitive-test-${process.pid}`);
12404
10760
  try {
12405
10761
  return t.writeFileSync(s, ""), !t.existsSync(Te(s));
@@ -12408,19 +10764,19 @@ const Te = Z((e) => {
12408
10764
  t.unlinkSync(s);
12409
10765
  } catch {}
12410
10766
  }
12411
- }, "checkDirectoryCaseWithWrite"), Ye = Z((e, t, s) => {
10767
+ }, "checkDirectoryCaseWithWrite"), qe = q((e, t, s) => {
12412
10768
  try {
12413
10769
  return Ae(e, s);
12414
10770
  } catch (n) {
12415
10771
  if (t === void 0) return Ae(Ue.tmpdir(), s);
12416
10772
  throw n;
12417
10773
  }
12418
- }, "checkDirectoryCaseWithFallback"), Ze = Z((e, t = $e, s = !0) => {
10774
+ }, "checkDirectoryCaseWithFallback"), Ke = q((e, t = Ie, s = !0) => {
12419
10775
  const n = e != null ? e : process.cwd();
12420
10776
  if (s && re.has(n)) return re.get(n);
12421
10777
  let o;
12422
10778
  const l = Te(n);
12423
- return l !== n && t.existsSync(n) ? o = !t.existsSync(l) : o = Ye(n, e, t), s && re.set(n, o), o;
10779
+ return l !== n && t.existsSync(n) ? o = !t.existsSync(l) : o = qe(n, e, t), s && re.set(n, o), o;
12424
10780
  }, "isFsCaseSensitive"), { join: _e } = PATH.posix, ue = {
12425
10781
  ts: [
12426
10782
  ".ts",
@@ -12429,79 +10785,79 @@ const Te = Z((e) => {
12429
10785
  ],
12430
10786
  cts: [".cts", ".d.cts"],
12431
10787
  mts: [".mts", ".d.mts"]
12432
- }, qe = r((e) => {
10788
+ }, Oe = i((e) => {
12433
10789
  const t = [...ue.ts], s = [...ue.cts], n = [...ue.mts];
12434
10790
  return e != null && e.allowJs && (t.push(".js", ".jsx"), s.push(".cjs"), n.push(".mjs")), [
12435
10791
  ...t,
12436
10792
  ...s,
12437
10793
  ...n
12438
10794
  ];
12439
- }, "getSupportedExtensions"), Ke = r((e) => {
10795
+ }, "getSupportedExtensions"), Ce = i((e) => {
12440
10796
  const t = [];
12441
10797
  if (!e) return t;
12442
10798
  const { outDir: s, declarationDir: n } = e;
12443
10799
  return s && t.push(s), n && t.push(n), t;
12444
- }, "getDefaultExcludeSpec"), ye = r((e) => e.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`), "escapeForRegexp"), fe = `(?!(${[
10800
+ }, "getDefaultExcludeSpec"), ye = i((e) => e.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`), "escapeForRegexp"), fe = `(?!(${[
12445
10801
  "node_modules",
12446
10802
  "bower_components",
12447
10803
  "jspm_packages"
12448
- ].join("|")})(/|$))`, Ce = /(?:^|\/)[^.*?]+$/, je = "**/*", q = "[^/]", ae = "[^./]", Fe = process.platform === "win32", De = r(({ config: e, path: t }, s = Ze()) => {
10804
+ ].join("|")})(/|$))`, nn = /(?:^|\/)[^.*?]+$/, je = "**/*", K = "[^/]", ae = "[^./]", Fe = process.platform === "win32", De = i(({ config: e, path: t }, s = Ke()) => {
12449
10805
  if ("extends" in e) throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");
12450
10806
  if (!PATH.isAbsolute(t)) throw new Error("The tsconfig path must be absolute");
12451
- Fe && (t = h(t));
12452
- const n = PATH.dirname(t), { files: o, include: l, exclude: i, compilerOptions: f } = e, u = r((A) => PATH.isAbsolute(A) ? A : _e(n, A), "resolvePattern"), g = o == null ? void 0 : o.map(u), w = qe(f), d = s ? "" : "i", v = (i || Ke(f)).map((A) => {
12453
- const D = u(A), B = ye(D).replaceAll(String.raw`\*\*/`, "(.+/)?").replaceAll(String.raw`\*`, `${q}*`).replaceAll(String.raw`\?`, q);
12454
- return new RegExp(`^${B}($|/)`, d);
12455
- }), p = o || l ? l : [je], L = p ? p.map((A) => {
12456
- let D = u(A);
12457
- Ce.test(D) && (D = _e(D, je));
12458
- const B = ye(D).replaceAll(String.raw`/\*\*`, `(/${fe}${ae}${q}*)*?`).replaceAll(/(\/)?\\\*/g, (c, j) => {
10807
+ Fe && (t = L(t));
10808
+ const n = PATH.dirname(t), { files: o, include: l, exclude: r, compilerOptions: f } = e, u = i((w) => PATH.isAbsolute(w) ? w : _e(n, w), "resolvePattern"), g = o == null ? void 0 : o.map(u), d = Oe(f), b = s ? "" : "i", h = (r || Ce(f)).map((w) => {
10809
+ const v = u(w), B = ye(v).replaceAll(String.raw`\*\*/`, "(.+/)?").replaceAll(String.raw`\*`, `${K}*`).replaceAll(String.raw`\?`, K);
10810
+ return new RegExp(`^${B}($|/)`, b);
10811
+ }), D = o || l ? l : [je], T = D ? D.map((w) => {
10812
+ let v = u(w);
10813
+ nn.test(v) && (v = _e(v, je));
10814
+ const B = ye(v).replaceAll(String.raw`/\*\*`, `(/${fe}${ae}${K}*)*?`).replaceAll(/(\/)?\\\*/g, (c, j) => {
12459
10815
  const y = `(${ae}|(\\.(?!min\\.js$))?)*`;
12460
10816
  return j ? `/${fe}${ae}${y}` : y;
12461
10817
  }).replaceAll(/(\/)?\\\?/g, (c, j) => {
12462
- const y = q;
10818
+ const y = K;
12463
10819
  return j ? `/${fe}${y}` : y;
12464
10820
  });
12465
- return new RegExp(`^${B}$`, d);
10821
+ return new RegExp(`^${B}$`, b);
12466
10822
  }) : void 0;
12467
- return (A) => {
12468
- if (!PATH.isAbsolute(A)) throw new Error("filePath must be absolute");
12469
- if (Fe && (A = h(A)), g != null && g.includes(A)) return e;
12470
- if (!(!w.some((D) => A.endsWith(D)) || v.some((D) => D.test(A))) && L && L.some((D) => D.test(A))) return e;
10823
+ return (w) => {
10824
+ if (!PATH.isAbsolute(w)) throw new Error("filePath must be absolute");
10825
+ if (Fe && (w = L(w)), g != null && g.includes(w)) return e;
10826
+ if (!(!d.some((v) => w.endsWith(v)) || h.some((v) => v.test(w))) && T && T.some((v) => v.test(w))) return e;
12471
10827
  };
12472
- }, "createFilesMatcher"), Le = r((e, t, s) => {
10828
+ }, "createFilesMatcher"), he = i((e, t, s) => {
12473
10829
  const n = PATH.resolve(e);
12474
- let o = h(e);
10830
+ let o = L(e);
12475
10831
  for (;;) {
12476
10832
  const l = O(o, t, s);
12477
10833
  if (!l) return;
12478
- const i = PATH.resolve(l), f = ie(i, s), u = {
12479
- path: h(i),
10834
+ const r = PATH.resolve(l), f = ie(r, s), u = {
10835
+ path: L(r),
12480
10836
  config: f
12481
10837
  };
12482
10838
  if (De(u)(n)) return u;
12483
- const w = PATH.dirname(l), d = PATH.dirname(w);
12484
- if (d === w) return;
12485
- o = d;
10839
+ const d = PATH.dirname(l), b = PATH.dirname(d);
10840
+ if (b === d) return;
10841
+ o = b;
12486
10842
  }
12487
- }, "findConfigApplicable"), he = r((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
10843
+ }, "findConfigApplicable"), Le = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
12488
10844
  var o;
12489
- return n ? (o = Le(e, t, s)) == null ? void 0 : o.path : O(h(e), t, s);
12490
- }, "findTsconfig"), en = r((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
10845
+ return n ? (o = he(e, t, s)) == null ? void 0 : o.path : O(L(e), t, s);
10846
+ }, "findTsconfig"), tn = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
12491
10847
  var o;
12492
10848
  if (!n) {
12493
- const l = he(e, t, s);
10849
+ const l = Le(e, t, s);
12494
10850
  if (!l) return null;
12495
10851
  return {
12496
10852
  path: l,
12497
10853
  config: ie(l, s)
12498
10854
  };
12499
10855
  }
12500
- return (o = Le(e, t, s)) != null ? o : null;
12501
- }, "getTsconfig"), nn = /\*/g, Ee = r((e, t) => {
12502
- const s = e.match(nn);
10856
+ return (o = he(e, t, s)) != null ? o : null;
10857
+ }, "getTsconfig"), sn = /\*/g, Ee = i((e, t) => {
10858
+ const s = e.match(sn);
12503
10859
  if (s && s.length > 1) throw new Error(t);
12504
- }, "assertStarCount"), tn = r((e) => {
10860
+ }, "assertStarCount"), ln = i((e) => {
12505
10861
  if (e.includes("*")) {
12506
10862
  const [t, s] = e.split("*");
12507
10863
  return {
@@ -12510,31 +10866,31 @@ const Te = Z((e) => {
12510
10866
  };
12511
10867
  }
12512
10868
  return e;
12513
- }, "parsePattern"), sn = r(({ prefix: e, suffix: t }, s) => s.startsWith(e) && s.endsWith(t), "isPatternMatch"), ln = r((e, t, s) => Object.entries(e).map(([n, o]) => (Ee(n, `Pattern '${n}' can have at most one '*' character.`), {
12514
- pattern: tn(n),
10869
+ }, "parsePattern"), on = i(({ prefix: e, suffix: t }, s) => s.startsWith(e) && s.endsWith(t), "isPatternMatch"), rn = i((e, t, s) => Object.entries(e).map(([n, o]) => (Ee(n, `Pattern '${n}' can have at most one '*' character.`), {
10870
+ pattern: ln(n),
12515
10871
  substitutions: o.map((l) => {
12516
10872
  if (Ee(l, `Substitution '${l}' in pattern '${n}' can have at most one '*' character.`), !t && !C.test(l) && !PATH.isAbsolute(l)) throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");
12517
10873
  return PATH.resolve(s, l);
12518
10874
  })
12519
10875
  })), "parsePaths");
12520
- r((e) => {
10876
+ i((e) => {
12521
10877
  const { compilerOptions: t } = e.config;
12522
10878
  if (!t) return null;
12523
10879
  const { baseUrl: s, paths: n } = t;
12524
10880
  if (!s && !n) return null;
12525
- const o = ne in t && t[ne], l = PATH.resolve(PATH.dirname(e.path), s || o || "."), i = n ? ln(n, s, l) : [];
10881
+ const o = ne in t && t[ne], l = PATH.resolve(PATH.dirname(e.path), s || o || "."), r = n ? rn(n, s, l) : [];
12526
10882
  return (f) => {
12527
10883
  if (C.test(f)) return [];
12528
10884
  const u = [];
12529
- for (const _ of i) {
12530
- if (_.pattern === f) return _.substitutions.map(h);
10885
+ for (const _ of r) {
10886
+ if (_.pattern === f) return _.substitutions.map(L);
12531
10887
  typeof _.pattern != "string" && u.push(_);
12532
10888
  }
12533
- let g, w = -1;
12534
- for (const _ of u) sn(_.pattern, f) && _.pattern.prefix.length > w && (w = _.pattern.prefix.length, g = _);
12535
- if (!g) return s ? [h(PATH.join(l, f))] : [];
12536
- const d = f.slice(g.pattern.prefix.length, f.length - g.pattern.suffix.length);
12537
- return g.substitutions.map((_) => h(_.replace("*", d)));
10889
+ let g, d = -1;
10890
+ for (const _ of u) on(_.pattern, f) && _.pattern.prefix.length > d && (d = _.pattern.prefix.length, g = _);
10891
+ if (!g) return s ? [L(PATH.join(l, f))] : [];
10892
+ const b = f.slice(g.pattern.prefix.length, f.length - g.pattern.suffix.length);
10893
+ return g.substitutions.map((_) => L(_.replace("*", b)));
12538
10894
  };
12539
10895
  }, "createPathsMatcher");
12540
10896
  //#endregion
@@ -12546,7 +10902,7 @@ const readRootTsconfigModule = (pkg) => {
12546
10902
  return typeof module === "string" ? module : void 0;
12547
10903
  };
12548
10904
  const readResolvedTsconfigTypes = (pkg) => {
12549
- const compilerOptions = en(PATH.resolve(pkg), "tsconfig.json")?.config?.compilerOptions;
10905
+ const compilerOptions = tn(PATH.resolve(pkg), "tsconfig.json")?.config?.compilerOptions;
12550
10906
  if (!compilerOptions || !("types" in compilerOptions)) return;
12551
10907
  const { types } = compilerOptions;
12552
10908
  if (!Array.isArray(types)) return;
@@ -13088,9 +11444,10 @@ function createDeclarationEmitter(isVerbose = false) {
13088
11444
  let promise = declarationPromises.get(key);
13089
11445
  if (!promise) {
13090
11446
  promise = (async () => {
11447
+ const dtsConfig = writeTypescriptConfig(cwd(), platform, srcDir, true, outDir);
13091
11448
  return {
13092
11449
  outDir,
13093
- result: runTsc(writeTypescriptConfig(cwd(), platform, srcDir, true, outDir), isVerbose)
11450
+ result: runTsc(dtsConfig, isVerbose)
13094
11451
  };
13095
11452
  })();
13096
11453
  declarationPromises.set(key, promise);
@@ -13188,11 +11545,15 @@ function normalizeReexportTargets(value) {
13188
11545
  if (value === void 0) return [];
13189
11546
  return Array.isArray(value) ? value : [value];
13190
11547
  }
13191
- /** Package-like specifier: not a hash alias and not a relative/absolute path. */
11548
+ /**
11549
+ Package-like specifier: not a hash alias and not a relative/absolute path.
11550
+ */
13192
11551
  function isPackageLikeSpecifier(spec) {
13193
11552
  return !spec.startsWith("#") && !spec.startsWith(".") && !spec.startsWith("/");
13194
11553
  }
13195
- /** Configured `reexport` targets for a module, if any. */
11554
+ /**
11555
+ Configured `reexport` targets for a module, if any.
11556
+ */
13196
11557
  function moduleReexportTargets(mod) {
13197
11558
  return normalizeReexportTargets(mod.reexport);
13198
11559
  }
@@ -13221,7 +11582,9 @@ function moduleShimTargets(mod) {
13221
11582
  if (fromReexport.length > 0) return fromReexport;
13222
11583
  return [`#${mod.name}`];
13223
11584
  }
13224
- /** Builds a pure star-reexport TypeScript (or mjs) source body (no header). */
11585
+ /**
11586
+ Builds a pure star-reexport TypeScript (or mjs) source body (no header).
11587
+ */
13225
11588
  function buildStarReexportLines(targets, options = {}) {
13226
11589
  const semi = options.semi === false ? "" : ";";
13227
11590
  return `${targets.map((target) => `export * from '${target}'${semi}`).join("\n")}\n`;
@@ -13439,7 +11802,9 @@ function buildAliasDistPaths(aliasImports = {}) {
13439
11802
  for (const [alias, srcPath] of Object.entries(aliasImports)) result[alias] = srcPathToDistPath(srcPath);
13440
11803
  return result;
13441
11804
  }
13442
- /** Resolves a `#hash` import specifier to its dist path for a platform. */
11805
+ /**
11806
+ Resolves a `#hash` import specifier to its dist path for a platform.
11807
+ */
13443
11808
  function hashToDistPath(spec, platform, config) {
13444
11809
  const conditional = buildConditionalDistPaths(config.conditionalImports)[spec];
13445
11810
  if (conditional?.[platform] !== void 0) return conditional[platform];
@@ -13525,7 +11890,9 @@ function buildModelTs(modules) {
13525
11890
  function buildModuleShim(mod) {
13526
11891
  return `${GENERATED_HEADER}${buildStarReexportLines(moduleShimTargets(mod), { semi: false })}`;
13527
11892
  }
13528
- /** Generated module body for facade modules with `reexport` targets. */
11893
+ /**
11894
+ Generated module body for facade modules with `reexport` targets.
11895
+ */
13529
11896
  function buildModuleReexportIndex(mod) {
13530
11897
  return `${GENERATED_HEADER}${buildStarReexportLines(moduleReexportTargets(mod), { semi: false })}`;
13531
11898
  }
@@ -13551,7 +11918,9 @@ function listDistPlatforms(config) {
13551
11918
  ...fromEntries
13552
11919
  ])];
13553
11920
  }
13554
- /** True when the package publishes a type-only model barrel (`src/model.ts`). */
11921
+ /**
11922
+ True when the package publishes a type-only model barrel (`src/model.ts`).
11923
+ */
13555
11924
  function monolithHasModelBarrel(config) {
13556
11925
  return config.modules.some((mod) => mod.model ?? false);
13557
11926
  }
@@ -13675,7 +12044,9 @@ function rewriteDtsFile(file, platform, platformDir, config) {
13675
12044
  }
13676
12045
  return false;
13677
12046
  }
13678
- /** Returns the number of declaration files rewritten. */
12047
+ /**
12048
+ Returns the number of declaration files rewritten.
12049
+ */
13679
12050
  function fixMonolithDeclarations(distDir, config) {
13680
12051
  const platforms = listDistPlatforms(config).filter((platform) => fs.existsSync(PATH.join(distDir, platform)));
13681
12052
  const platformShimDirs = buildPlatformShimDirs(config.platformEntries);
@@ -13777,7 +12148,9 @@ function modulesPlatformEntries(mod, config, isExternal, modulesPlatform) {
13777
12148
  };
13778
12149
  return shims;
13779
12150
  }
13780
- /** Master barrel entry for a platform (`index.entries` override or `./index.ts`). */
12151
+ /**
12152
+ Master barrel entry for a platform (`index.entries` override or `./index.ts`).
12153
+ */
13781
12154
  function masterBarrelEntry(config, platform) {
13782
12155
  return config.index?.entries?.[platform] ?? "./index.ts";
13783
12156
  }
@@ -13840,7 +12213,9 @@ function isPathInside(parent, candidate) {
13840
12213
  const relative = PATH.relative(parent, candidate);
13841
12214
  return relative.length > 0 && relative !== ".." && !relative.startsWith(`..${PATH.sep}`) && !PATH.isAbsolute(relative);
13842
12215
  }
13843
- /** Resolves configured copy destinations without requiring their sources to exist. */
12216
+ /**
12217
+ Resolves configured copy destinations without requiring their sources to exist.
12218
+ */
13844
12219
  function listMonolithCopyEntries(packageDir, config) {
13845
12220
  const distDir = PATH.resolve(packageDir, "dist");
13846
12221
  const entries = [];
@@ -13878,7 +12253,9 @@ function resolveCopySource(packageDir, source) {
13878
12253
  if (!fs.existsSync(resolved) || !fs.statSync(resolved).isFile()) throw new Error(`Monolith copy entry source is not a file: "${source}" (${resolved})`);
13879
12254
  return resolved;
13880
12255
  }
13881
- /** Copies configured opaque entries into their exact dist destinations. */
12256
+ /**
12257
+ Copies configured opaque entries into their exact dist destinations.
12258
+ */
13882
12259
  function copyMonolithEntries(packageDir, config) {
13883
12260
  const entries = listMonolithCopyEntries(packageDir, config);
13884
12261
  for (const entry of entries) {
@@ -13902,7 +12279,9 @@ function assertNoManualEntries(compile) {
13902
12279
  for (const options of Object.values(target)) if (options?.entry !== void 0) throw new Error(`monolith mode computes entries; remove compile.${platform} entry`);
13903
12280
  }
13904
12281
  }
13905
- /** Merges computed entries into a platform target, preserving other options. */
12282
+ /**
12283
+ Merges computed entries into a platform target, preserving other options.
12284
+ */
13906
12285
  function platformTarget(existing, entry, isExternalLinkage) {
13907
12286
  const base = typeof existing === "object" && existing !== null ? existing : {};
13908
12287
  const src = typeof base.src === "object" && base.src !== null ? base.src : {};
@@ -13937,7 +12316,9 @@ function resolveMonolithCompile(config, mode) {
13937
12316
  shouldRunFullValidation: !(mode.emitOnly ?? false) && (compile.validate ?? true)
13938
12317
  };
13939
12318
  }
13940
- /** Builds the library-mode config carrying the computed monolith entries. */
12319
+ /**
12320
+ Builds the library-mode config carrying the computed monolith entries.
12321
+ */
13941
12322
  function deriveEsbuildConfig(config, compile, monolith) {
13942
12323
  const entries = buildMonolithEntries(monolith);
13943
12324
  const isExternalLinkage = (monolith.moduleLinkage ?? "bundle") === "external";