@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.
- package/dist/actions/analyze.d.ts +27 -9
- package/dist/actions/analyze.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts +6 -2
- package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/couplingWalk.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/depSignals.d.ts +12 -4
- package/dist/actions/api-exposure/analyzer/depSignals.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts +9 -3
- package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts.map +1 -1
- package/dist/actions/api-exposure/analyzer/importedPackages.d.ts +6 -2
- package/dist/actions/api-exposure/analyzer/importedPackages.d.ts.map +1 -1
- package/dist/actions/api-exposure/apiExposure.d.ts +9 -3
- package/dist/actions/api-exposure/apiExposure.d.ts.map +1 -1
- package/dist/actions/api-exposure/config.d.ts +12 -4
- package/dist/actions/api-exposure/config.d.ts.map +1 -1
- package/dist/actions/api-exposure/installStrategy.d.ts +6 -2
- package/dist/actions/api-exposure/installStrategy.d.ts.map +1 -1
- package/dist/actions/api-exposure/reporters.d.ts +3 -1
- package/dist/actions/api-exposure/reporters.d.ts.map +1 -1
- package/dist/actions/api-exposure/scoring.d.ts +3 -1
- package/dist/actions/api-exposure/scoring.d.ts.map +1 -1
- package/dist/actions/api-exposure/types.d.ts +48 -16
- package/dist/actions/api-exposure/types.d.ts.map +1 -1
- package/dist/actions/barrel/index.d.ts +0 -1
- package/dist/actions/barrel/index.d.ts.map +1 -1
- package/dist/actions/barrel/restrictionHelpers.d.ts +0 -19
- package/dist/actions/barrel/restrictionHelpers.d.ts.map +1 -1
- package/dist/actions/compile.d.ts +9 -3
- package/dist/actions/compile.d.ts.map +1 -1
- package/dist/actions/dead/analyzePackage.d.ts +18 -6
- package/dist/actions/dead/analyzePackage.d.ts.map +1 -1
- package/dist/actions/dead/collectSymbols.d.ts +12 -4
- package/dist/actions/dead/collectSymbols.d.ts.map +1 -1
- package/dist/actions/dead/evaluateRules.d.ts +3 -1
- package/dist/actions/dead/evaluateRules.d.ts.map +1 -1
- package/dist/actions/dead/findWorkspaceFile.d.ts +3 -1
- package/dist/actions/dead/findWorkspaceFile.d.ts.map +1 -1
- package/dist/actions/dead/ruleNames.d.ts +3 -1
- package/dist/actions/dead/ruleNames.d.ts.map +1 -1
- package/dist/actions/dead/runDeadAnalysis.d.ts +3 -1
- package/dist/actions/dead/runDeadAnalysis.d.ts.map +1 -1
- package/dist/actions/dead/sourceEdits.d.ts +3 -1
- package/dist/actions/dead/sourceEdits.d.ts.map +1 -1
- package/dist/actions/deplint/checkPackage/checkPackage.d.ts +3 -1
- package/dist/actions/deplint/checkPackage/checkPackage.d.ts.map +1 -1
- package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +6 -2
- package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -1
- package/dist/actions/deplint/collectPickRows.d.ts +24 -8
- package/dist/actions/deplint/collectPickRows.d.ts.map +1 -1
- package/dist/actions/deplint/deplint.d.ts +9 -3
- package/dist/actions/deplint/deplint.d.ts.map +1 -1
- package/dist/actions/deplint/deplintPick.d.ts +3 -1
- package/dist/actions/deplint/deplintPick.d.ts.map +1 -1
- package/dist/actions/deplint/editXyConfigPackages.d.ts +9 -3
- package/dist/actions/deplint/editXyConfigPackages.d.ts.map +1 -1
- package/dist/actions/deplint/fetchPackageManifest.d.ts +6 -2
- package/dist/actions/deplint/fetchPackageManifest.d.ts.map +1 -1
- package/dist/actions/deplint/findFiles.d.ts +7 -3
- package/dist/actions/deplint/findFiles.d.ts.map +1 -1
- package/dist/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -1
- package/dist/actions/deplint/interactivePick.d.ts +3 -1
- package/dist/actions/deplint/interactivePick.d.ts.map +1 -1
- package/dist/actions/deplint/isTerminalPackage.d.ts +13 -5
- package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -1
- package/dist/actions/deplint/resolvePeerBumpFixes.d.ts +3 -1
- package/dist/actions/deplint/resolvePeerBumpFixes.d.ts.map +1 -1
- package/dist/actions/deplint/snapshot.d.ts +24 -8
- package/dist/actions/deplint/snapshot.d.ts.map +1 -1
- package/dist/actions/deplint/sourceFileCache.d.ts +3 -1
- package/dist/actions/deplint/sourceFileCache.d.ts.map +1 -1
- package/dist/actions/deplint/types.d.ts +68 -25
- package/dist/actions/deplint/types.d.ts.map +1 -1
- package/dist/actions/gitignore.d.ts +3 -1
- package/dist/actions/gitignore.d.ts.map +1 -1
- package/dist/actions/lint.d.ts +15 -5
- package/dist/actions/lint.d.ts.map +1 -1
- package/dist/actions/lintNext.d.ts +6 -2
- package/dist/actions/lintNext.d.ts.map +1 -1
- package/dist/actions/lintNextWorker.d.ts +36 -12
- package/dist/actions/lintNextWorker.d.ts.map +1 -1
- package/dist/actions/lintPackageFilter.d.ts +15 -5
- package/dist/actions/lintPackageFilter.d.ts.map +1 -1
- package/dist/actions/package/clean-outputs.d.ts +3 -1
- package/dist/actions/package/clean-outputs.d.ts.map +1 -1
- package/dist/actions/package/clean-typescript.d.ts +3 -1
- package/dist/actions/package/clean-typescript.d.ts.map +1 -1
- package/dist/actions/package/cleanGitignore.d.ts +6 -2
- package/dist/actions/package/cleanGitignore.d.ts.map +1 -1
- package/dist/actions/package/cleanPlan.d.ts +6 -2
- package/dist/actions/package/cleanPlan.d.ts.map +1 -1
- package/dist/actions/package/cleanRules.d.ts +15 -5
- package/dist/actions/package/cleanRules.d.ts.map +1 -1
- package/dist/actions/package/compile/ApiExposureConfig.d.ts +24 -8
- package/dist/actions/package/compile/ApiExposureConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/CleanConfig.d.ts +3 -1
- package/dist/actions/package/compile/CleanConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/MonolithConfig.d.ts +39 -13
- package/dist/actions/package/compile/MonolithConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/PublintConfig.d.ts +6 -2
- package/dist/actions/package/compile/PublintConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/XyConfig.d.ts +162 -54
- package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/createProgramFromConfig.d.ts +18 -6
- package/dist/actions/package/compile/createProgramFromConfig.d.ts.map +1 -1
- package/dist/actions/package/compile/inputs.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileDeclarations.d.ts +3 -1
- package/dist/actions/package/compile/monolithCompileDeclarations.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileEntries.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCompileLayout.d.ts +15 -5
- package/dist/actions/package/compile/monolithCompileLayout.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithCopyEntries.d.ts +6 -2
- package/dist/actions/package/compile/monolithCopyEntries.d.ts.map +1 -1
- package/dist/actions/package/compile/monolithReexport.d.ts +12 -4
- package/dist/actions/package/compile/monolithReexport.d.ts.map +1 -1
- package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -1
- package/dist/actions/recompile.d.ts +3 -1
- package/dist/actions/recompile.d.ts.map +1 -1
- package/dist/actions/skills/defaults.d.ts +26 -1
- package/dist/actions/skills/defaults.d.ts.map +1 -1
- package/dist/actions/skills/detectProfile.d.ts +8 -0
- package/dist/actions/skills/detectProfile.d.ts.map +1 -1
- package/dist/actions/skills/lint.d.ts.map +1 -1
- package/dist/actions/skills/skillRules.d.ts +14 -1
- package/dist/actions/skills/skillRules.d.ts.map +1 -1
- package/dist/actions/tsc-validate/sharedValidate.d.ts +6 -2
- package/dist/actions/tsc-validate/sharedValidate.d.ts.map +1 -1
- package/dist/actions/tsc-validate/tscValidate.d.ts.map +1 -1
- package/dist/actions/work/github.d.ts +9 -3
- package/dist/actions/work/github.d.ts.map +1 -1
- package/dist/actions/work/helpers.d.ts +3 -1
- package/dist/actions/work/helpers.d.ts.map +1 -1
- package/dist/actions/work/index.d.ts +6 -2
- package/dist/actions/work/index.d.ts.map +1 -1
- package/dist/actions/work/list.d.ts +6 -2
- package/dist/actions/work/list.d.ts.map +1 -1
- package/dist/actions/work/move.d.ts +3 -1
- package/dist/actions/work/move.d.ts.map +1 -1
- package/dist/actions/work/store.d.ts +3 -1
- package/dist/actions/work/store.d.ts.map +1 -1
- package/dist/actions/work/sync.d.ts +15 -5
- package/dist/actions/work/sync.d.ts.map +1 -1
- package/dist/actions/work/workspace.d.ts +15 -5
- package/dist/actions/work/workspace.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +1134 -2638
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +505 -2152
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +866 -2501
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +175 -100
- package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +175 -100
- package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
- package/dist/bin/package/fix.mjs +263 -151
- package/dist/bin/package/fix.mjs.map +1 -1
- package/dist/bin/package/lint-verbose.mjs +263 -151
- package/dist/bin/package/lint-verbose.mjs.map +1 -1
- package/dist/bin/package/lint.mjs +263 -151
- package/dist/bin/package/lint.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +619 -2198
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +892 -2511
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/relint.mjs +263 -151
- package/dist/bin/package/relint.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +329 -2032
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/run-or-exec.mjs +165 -88
- package/dist/bin/run-or-exec.mjs.map +1 -1
- package/dist/bin/skills.mjs +4828 -851
- package/dist/bin/skills.mjs.map +1 -1
- package/dist/bin/xy.mjs +3115 -4443
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/lib/copyAssetFiles.d.ts +3 -1
- package/dist/lib/copyAssetFiles.d.ts.map +1 -1
- package/dist/lib/licenseCheck/checkLicenses.d.ts +18 -6
- package/dist/lib/licenseCheck/checkLicenses.d.ts.map +1 -1
- package/dist/lib/licenseCheck/collectProductionLicenses.d.ts +9 -3
- package/dist/lib/licenseCheck/collectProductionLicenses.d.ts.map +1 -1
- package/dist/lib/licenseCheck/readPackageLicense.d.ts +6 -2
- package/dist/lib/licenseCheck/readPackageLicense.d.ts.map +1 -1
- package/dist/lib/loadConfig.d.ts.map +1 -1
- package/dist/lib/match.d.ts +6 -2
- package/dist/lib/match.d.ts.map +1 -1
- package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts +12 -4
- package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts.map +1 -1
- package/dist/lib/safeExit.d.ts +3 -1
- package/dist/lib/safeExit.d.ts.map +1 -1
- package/dist/lib/updo/fetchRegistryInfo.d.ts.map +1 -1
- package/dist/lib/updo/interactiveSelect.d.ts +6 -2
- package/dist/lib/updo/interactiveSelect.d.ts.map +1 -1
- package/dist/lib/updo/interfaces.d.ts +15 -5
- package/dist/lib/updo/interfaces.d.ts.map +1 -1
- package/dist/lib/updo/resolveVersions.d.ts +15 -5
- package/dist/lib/updo/resolveVersions.d.ts.map +1 -1
- package/dist/lib/updo/runUpdo.d.ts +12 -4
- package/dist/lib/updo/runUpdo.d.ts.map +1 -1
- package/dist/pm/PackageManager.d.ts +45 -15
- package/dist/pm/PackageManager.d.ts.map +1 -1
- package/dist/xy/common/skills/index.d.ts.map +1 -1
- package/dist/xy/common/work/options.d.ts +3 -1
- package/dist/xy/common/work/options.d.ts.map +1 -1
- package/package.json +18 -18
|
@@ -14,9 +14,9 @@ import Pe, { PassThrough } from "node:stream";
|
|
|
14
14
|
import { StringDecoder } from "node:string_decoder";
|
|
15
15
|
import { spawn } from "node:child_process";
|
|
16
16
|
import u from "node:readline";
|
|
17
|
-
import ts from "typescript";
|
|
18
17
|
import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
|
|
19
18
|
import util from "node:util";
|
|
19
|
+
import ts from "typescript";
|
|
20
20
|
import { pipeline } from "node:stream/promises";
|
|
21
21
|
import zlib from "node:zlib";
|
|
22
22
|
//#region \0rolldown/runtime.js
|
|
@@ -54,17 +54,47 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
54
54
|
}
|
|
55
55
|
return to;
|
|
56
56
|
};
|
|
57
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
57
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
58
58
|
value: mod,
|
|
59
59
|
enumerable: true
|
|
60
60
|
}) : target, mod));
|
|
61
61
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
62
62
|
//#endregion
|
|
63
|
-
//#region ../../node_modules/.pnpm/chalk@
|
|
63
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/utilities.js
|
|
64
|
+
function stringReplaceAll(string, substring, postfix) {
|
|
65
|
+
let index = string.indexOf(substring);
|
|
66
|
+
if (index === -1) return string;
|
|
67
|
+
const substringLength = substring.length;
|
|
68
|
+
let endIndex = 0;
|
|
69
|
+
let returnValue = "";
|
|
70
|
+
do {
|
|
71
|
+
returnValue += string.slice(endIndex, index) + substring + postfix;
|
|
72
|
+
endIndex = index + substringLength;
|
|
73
|
+
index = string.indexOf(substring, endIndex);
|
|
74
|
+
} while (index !== -1);
|
|
75
|
+
returnValue += string.slice(endIndex);
|
|
76
|
+
return returnValue;
|
|
77
|
+
}
|
|
78
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
79
|
+
let endIndex = 0;
|
|
80
|
+
let returnValue = "";
|
|
81
|
+
do {
|
|
82
|
+
const isGotCR = string[index - 1] === "\r";
|
|
83
|
+
returnValue += string.slice(endIndex, isGotCR ? index - 1 : index) + prefix + (isGotCR ? "\r\n" : "\n") + postfix;
|
|
84
|
+
endIndex = index + 1;
|
|
85
|
+
index = string.indexOf("\n", endIndex);
|
|
86
|
+
} while (index !== -1);
|
|
87
|
+
returnValue += string.slice(endIndex);
|
|
88
|
+
return returnValue;
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
64
92
|
const ANSI_BACKGROUND_OFFSET = 10;
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
const
|
|
93
|
+
const ANSI_UNDERLINE_OFFSET = 20;
|
|
94
|
+
const wrapAnsi16 = (offset = 0) => (code) => `\u{1B}[${code + offset}m`;
|
|
95
|
+
const wrapAnsi256 = (offset = 0) => (code) => `\u{1B}[${38 + offset};5;${code}m`;
|
|
96
|
+
const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u{1B}[${38 + offset};2;${red};${green};${blue}m`;
|
|
97
|
+
const wrapUnderlineAnsi = (code) => `\u{1B}[58;5;${code < 90 ? code - 30 : code - 90 + 8}m`;
|
|
68
98
|
const styles$1 = {
|
|
69
99
|
modifier: {
|
|
70
100
|
reset: [0, 0],
|
|
@@ -72,6 +102,10 @@ const styles$1 = {
|
|
|
72
102
|
dim: [2, 22],
|
|
73
103
|
italic: [3, 23],
|
|
74
104
|
underline: [4, 24],
|
|
105
|
+
underlineDouble: ["4:2", 24],
|
|
106
|
+
underlineCurly: ["4:3", 24],
|
|
107
|
+
underlineDotted: ["4:4", 24],
|
|
108
|
+
underlineDashed: ["4:5", 24],
|
|
75
109
|
overline: [53, 55],
|
|
76
110
|
inverse: [7, 27],
|
|
77
111
|
hidden: [8, 28],
|
|
@@ -116,22 +150,43 @@ const styles$1 = {
|
|
|
116
150
|
bgMagentaBright: [105, 49],
|
|
117
151
|
bgCyanBright: [106, 49],
|
|
118
152
|
bgWhiteBright: [107, 49]
|
|
153
|
+
},
|
|
154
|
+
underlineColor: {
|
|
155
|
+
underlineBlack: ["58;5;0", 59],
|
|
156
|
+
underlineRed: ["58;5;1", 59],
|
|
157
|
+
underlineGreen: ["58;5;2", 59],
|
|
158
|
+
underlineYellow: ["58;5;3", 59],
|
|
159
|
+
underlineBlue: ["58;5;4", 59],
|
|
160
|
+
underlineMagenta: ["58;5;5", 59],
|
|
161
|
+
underlineCyan: ["58;5;6", 59],
|
|
162
|
+
underlineWhite: ["58;5;7", 59],
|
|
163
|
+
underlineBlackBright: ["58;5;8", 59],
|
|
164
|
+
underlineGray: ["58;5;8", 59],
|
|
165
|
+
underlineGrey: ["58;5;8", 59],
|
|
166
|
+
underlineRedBright: ["58;5;9", 59],
|
|
167
|
+
underlineGreenBright: ["58;5;10", 59],
|
|
168
|
+
underlineYellowBright: ["58;5;11", 59],
|
|
169
|
+
underlineBlueBright: ["58;5;12", 59],
|
|
170
|
+
underlineMagentaBright: ["58;5;13", 59],
|
|
171
|
+
underlineCyanBright: ["58;5;14", 59],
|
|
172
|
+
underlineWhiteBright: ["58;5;15", 59]
|
|
119
173
|
}
|
|
120
174
|
};
|
|
121
175
|
Object.keys(styles$1.modifier);
|
|
122
176
|
const foregroundColorNames = Object.keys(styles$1.color);
|
|
123
177
|
const backgroundColorNames = Object.keys(styles$1.bgColor);
|
|
178
|
+
Object.keys(styles$1.underlineColor);
|
|
124
179
|
[...foregroundColorNames, ...backgroundColorNames];
|
|
125
180
|
function assembleStyles() {
|
|
126
181
|
const codes = /* @__PURE__ */ new Map();
|
|
127
182
|
for (const [groupName, group] of Object.entries(styles$1)) {
|
|
128
183
|
for (const [styleName, style] of Object.entries(group)) {
|
|
129
184
|
styles$1[styleName] = {
|
|
130
|
-
open: `\
|
|
131
|
-
close: `\
|
|
185
|
+
open: `\u{1B}[${style[0]}m`,
|
|
186
|
+
close: `\u{1B}[${style[1]}m`
|
|
132
187
|
};
|
|
133
188
|
group[styleName] = styles$1[styleName];
|
|
134
|
-
codes.set(style[0], style[1]);
|
|
189
|
+
codes.set(Number.parseInt(style[0], 10), style[1]);
|
|
135
190
|
}
|
|
136
191
|
Object.defineProperty(styles$1, groupName, {
|
|
137
192
|
value: group,
|
|
@@ -144,12 +199,16 @@ function assembleStyles() {
|
|
|
144
199
|
});
|
|
145
200
|
styles$1.color.close = "\x1B[39m";
|
|
146
201
|
styles$1.bgColor.close = "\x1B[49m";
|
|
202
|
+
styles$1.underlineColor.close = "\x1B[59m";
|
|
147
203
|
styles$1.color.ansi = wrapAnsi16();
|
|
148
204
|
styles$1.color.ansi256 = wrapAnsi256();
|
|
149
205
|
styles$1.color.ansi16m = wrapAnsi16m();
|
|
150
206
|
styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
151
207
|
styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
152
208
|
styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
209
|
+
styles$1.underlineColor.ansi = wrapUnderlineAnsi;
|
|
210
|
+
styles$1.underlineColor.ansi256 = wrapAnsi256(ANSI_UNDERLINE_OFFSET);
|
|
211
|
+
styles$1.underlineColor.ansi16m = wrapAnsi16m(ANSI_UNDERLINE_OFFSET);
|
|
153
212
|
Object.defineProperties(styles$1, {
|
|
154
213
|
rgbToAnsi256: {
|
|
155
214
|
value(red, green, blue) {
|
|
@@ -164,7 +223,7 @@ function assembleStyles() {
|
|
|
164
223
|
},
|
|
165
224
|
hexToRgb: {
|
|
166
225
|
value(hex) {
|
|
167
|
-
const matches = /[
|
|
226
|
+
const matches = /[\da-f]{6}|[\da-f]{3}/i.exec(hex.toString(16));
|
|
168
227
|
if (!matches) return [
|
|
169
228
|
0,
|
|
170
229
|
0,
|
|
@@ -224,7 +283,7 @@ function assembleStyles() {
|
|
|
224
283
|
}
|
|
225
284
|
const ansiStyles = assembleStyles();
|
|
226
285
|
//#endregion
|
|
227
|
-
//#region ../../node_modules/.pnpm/chalk@
|
|
286
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/vendor/supports-color/index.js
|
|
228
287
|
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
|
|
229
288
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
230
289
|
const position = argv.indexOf(prefix + flag);
|
|
@@ -235,12 +294,15 @@ const { env } = process$1;
|
|
|
235
294
|
let flagForceColor;
|
|
236
295
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
237
296
|
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
297
|
+
function hasNumericForceColor() {
|
|
298
|
+
return /^\d+$/.test(env.FORCE_COLOR);
|
|
299
|
+
}
|
|
238
300
|
function envForceColor() {
|
|
239
|
-
if ("FORCE_COLOR" in env)
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
301
|
+
if (!("FORCE_COLOR" in env)) return;
|
|
302
|
+
if (env.FORCE_COLOR === "false") return 0;
|
|
303
|
+
if (env.FORCE_COLOR === "true" || env.FORCE_COLOR.length === 0) return 1;
|
|
304
|
+
if (!hasNumericForceColor()) return;
|
|
305
|
+
return Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
244
306
|
}
|
|
245
307
|
function translateLevel(level) {
|
|
246
308
|
if (level === 0) return false;
|
|
@@ -260,6 +322,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
260
322
|
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
261
323
|
if (hasFlag("color=256")) return 2;
|
|
262
324
|
}
|
|
325
|
+
if (forceColor !== void 0 && hasNumericForceColor()) return forceColor;
|
|
263
326
|
if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
|
|
264
327
|
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
265
328
|
const min = forceColor || 0;
|
|
@@ -284,19 +347,19 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
|
284
347
|
].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
|
|
285
348
|
return min;
|
|
286
349
|
}
|
|
287
|
-
if ("TEAMCITY_VERSION" in env) return /^(9\.
|
|
350
|
+
if ("TEAMCITY_VERSION" in env) return /^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
288
351
|
if (env.COLORTERM === "truecolor") return 3;
|
|
289
352
|
if (env.TERM === "xterm-kitty") return 3;
|
|
290
353
|
if (env.TERM === "xterm-ghostty") return 3;
|
|
291
354
|
if (env.TERM === "wezterm") return 3;
|
|
292
355
|
if ("TERM_PROGRAM" in env) {
|
|
293
|
-
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
356
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".", 1)[0], 10);
|
|
294
357
|
switch (env.TERM_PROGRAM) {
|
|
295
358
|
case "iTerm.app": return version >= 3 ? 3 : 2;
|
|
296
359
|
case "Apple_Terminal": return 2;
|
|
297
360
|
}
|
|
298
361
|
}
|
|
299
|
-
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
362
|
+
if (/-256(?:color)?$/i.test(env.TERM)) return 2;
|
|
300
363
|
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
301
364
|
if ("COLORTERM" in env) return 1;
|
|
302
365
|
return min;
|
|
@@ -307,55 +370,34 @@ function createSupportsColor(stream, options = {}) {
|
|
|
307
370
|
...options
|
|
308
371
|
}));
|
|
309
372
|
}
|
|
310
|
-
|
|
373
|
+
//#endregion
|
|
374
|
+
//#region ../../node_modules/.pnpm/chalk@6.0.0/node_modules/chalk/source/index.js
|
|
375
|
+
const { stdout: stdoutColor, stderr: stderrColor } = {
|
|
311
376
|
stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
|
|
312
377
|
stderr: createSupportsColor({ isTTY: tty.isatty(2) })
|
|
313
378
|
};
|
|
314
|
-
//#endregion
|
|
315
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
316
|
-
function stringReplaceAll(string, substring, replacer) {
|
|
317
|
-
let index = string.indexOf(substring);
|
|
318
|
-
if (index === -1) return string;
|
|
319
|
-
const substringLength = substring.length;
|
|
320
|
-
let endIndex = 0;
|
|
321
|
-
let returnValue = "";
|
|
322
|
-
do {
|
|
323
|
-
returnValue += string.slice(endIndex, index) + substring + replacer;
|
|
324
|
-
endIndex = index + substringLength;
|
|
325
|
-
index = string.indexOf(substring, endIndex);
|
|
326
|
-
} while (index !== -1);
|
|
327
|
-
returnValue += string.slice(endIndex);
|
|
328
|
-
return returnValue;
|
|
329
|
-
}
|
|
330
|
-
function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
331
|
-
let endIndex = 0;
|
|
332
|
-
let returnValue = "";
|
|
333
|
-
do {
|
|
334
|
-
const gotCR = string[index - 1] === "\r";
|
|
335
|
-
returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
|
|
336
|
-
endIndex = index + 1;
|
|
337
|
-
index = string.indexOf("\n", endIndex);
|
|
338
|
-
} while (index !== -1);
|
|
339
|
-
returnValue += string.slice(endIndex);
|
|
340
|
-
return returnValue;
|
|
341
|
-
}
|
|
342
|
-
//#endregion
|
|
343
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
344
|
-
const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
|
|
345
379
|
const GENERATOR = Symbol("GENERATOR");
|
|
346
380
|
const STYLER = Symbol("STYLER");
|
|
347
381
|
const IS_EMPTY = Symbol("IS_EMPTY");
|
|
348
|
-
const
|
|
349
|
-
"ansi",
|
|
350
|
-
"ansi",
|
|
351
|
-
"ansi256",
|
|
352
|
-
"ansi16m"
|
|
353
|
-
];
|
|
382
|
+
const LEVEL = Symbol("LEVEL");
|
|
354
383
|
const styles = Object.create(null);
|
|
384
|
+
const assertValidLevel = (level) => {
|
|
385
|
+
if (!Number.isSafeInteger(level) || level < 0 || level > 3) throw new Error("The `level` should be an integer from 0 to 3");
|
|
386
|
+
};
|
|
387
|
+
const levelDescriptor = {
|
|
388
|
+
enumerable: true,
|
|
389
|
+
get() {
|
|
390
|
+
return this[LEVEL];
|
|
391
|
+
},
|
|
392
|
+
set(level) {
|
|
393
|
+
assertValidLevel(level);
|
|
394
|
+
this[LEVEL] = level;
|
|
395
|
+
}
|
|
396
|
+
};
|
|
355
397
|
const applyOptions = (object, options = {}) => {
|
|
356
|
-
if (options.level
|
|
398
|
+
if (options.level !== void 0) assertValidLevel(options.level);
|
|
357
399
|
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
358
|
-
object
|
|
400
|
+
object[LEVEL] = options.level === void 0 ? colorLevel : options.level;
|
|
359
401
|
};
|
|
360
402
|
const chalkFactory = (options) => {
|
|
361
403
|
const chalk = (...strings) => strings.join(" ");
|
|
@@ -377,35 +419,58 @@ styles.visible = { get() {
|
|
|
377
419
|
Object.defineProperty(this, "visible", { value: builder });
|
|
378
420
|
return builder;
|
|
379
421
|
} };
|
|
380
|
-
const
|
|
422
|
+
const createModelConverters = (model, type) => {
|
|
423
|
+
const style = ansiStyles[type];
|
|
381
424
|
if (model === "rgb") {
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
return
|
|
425
|
+
const ansi = (red, green, blue) => style.ansi(ansiStyles.rgbToAnsi(red, green, blue));
|
|
426
|
+
const ansi256 = (red, green, blue) => style.ansi256(ansiStyles.rgbToAnsi256(red, green, blue));
|
|
427
|
+
return [
|
|
428
|
+
ansi,
|
|
429
|
+
ansi,
|
|
430
|
+
ansi256,
|
|
431
|
+
style.ansi16m
|
|
432
|
+
];
|
|
433
|
+
}
|
|
434
|
+
if (model === "hex") {
|
|
435
|
+
const ansi = (hex) => style.ansi(ansiStyles.hexToAnsi(hex));
|
|
436
|
+
const ansi256 = (hex) => style.ansi256(ansiStyles.hexToAnsi256(hex));
|
|
437
|
+
return [
|
|
438
|
+
ansi,
|
|
439
|
+
ansi,
|
|
440
|
+
ansi256,
|
|
441
|
+
(hex) => style.ansi16m(...ansiStyles.hexToRgb(hex))
|
|
442
|
+
];
|
|
385
443
|
}
|
|
386
|
-
|
|
387
|
-
return
|
|
444
|
+
const ansi = (code) => style.ansi(ansiStyles.ansi256ToAnsi(code));
|
|
445
|
+
return [
|
|
446
|
+
ansi,
|
|
447
|
+
ansi,
|
|
448
|
+
style.ansi256,
|
|
449
|
+
style.ansi256
|
|
450
|
+
];
|
|
388
451
|
};
|
|
389
452
|
for (const model of [
|
|
390
453
|
"rgb",
|
|
391
454
|
"hex",
|
|
392
455
|
"ansi256"
|
|
393
456
|
]) {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
457
|
+
const capitalizedModel = model[0].toUpperCase() + model.slice(1);
|
|
458
|
+
for (const [styleName, type] of [
|
|
459
|
+
[model, "color"],
|
|
460
|
+
["bg" + capitalizedModel, "bgColor"],
|
|
461
|
+
["underline" + capitalizedModel, "underlineColor"]
|
|
462
|
+
]) {
|
|
463
|
+
const { close } = ansiStyles[type];
|
|
464
|
+
const converters = createModelConverters(model, type);
|
|
465
|
+
styles[styleName] = { get() {
|
|
466
|
+
const styleFunction = function(first, second, third) {
|
|
467
|
+
const open = converters[this.level](first, second, third);
|
|
468
|
+
return createBuilder(this, createStyler(open, close, this[STYLER]), this[IS_EMPTY]);
|
|
469
|
+
};
|
|
470
|
+
Object.defineProperty(this, styleName, { value: styleFunction });
|
|
471
|
+
return styleFunction;
|
|
472
|
+
} };
|
|
473
|
+
}
|
|
409
474
|
}
|
|
410
475
|
const proto = Object.defineProperties(() => {}, {
|
|
411
476
|
...styles,
|
|
@@ -438,15 +503,19 @@ const createStyler = (open, close, parent) => {
|
|
|
438
503
|
};
|
|
439
504
|
};
|
|
440
505
|
const createBuilder = (self, _styler, _isEmpty) => {
|
|
441
|
-
const builder = (...arguments_) =>
|
|
506
|
+
const builder = (...arguments_) => {
|
|
507
|
+
if (arguments_.length === 1) return applyStyle(builder, "" + arguments_[0]);
|
|
508
|
+
if (arguments_.length === 2) return applyStyle(builder, arguments_[0] + " " + arguments_[1]);
|
|
509
|
+
return applyStyle(builder, arguments_.join(" "));
|
|
510
|
+
};
|
|
442
511
|
Object.setPrototypeOf(builder, proto);
|
|
443
|
-
builder[GENERATOR] = self;
|
|
512
|
+
builder[GENERATOR] = self[GENERATOR] ?? self;
|
|
444
513
|
builder[STYLER] = _styler;
|
|
445
514
|
builder[IS_EMPTY] = _isEmpty;
|
|
446
515
|
return builder;
|
|
447
516
|
};
|
|
448
517
|
const applyStyle = (self, string) => {
|
|
449
|
-
if (self
|
|
518
|
+
if (self[GENERATOR][LEVEL] <= 0 || !string) return self[IS_EMPTY] ? "" : string;
|
|
450
519
|
let styler = self[STYLER];
|
|
451
520
|
if (styler === void 0) return string;
|
|
452
521
|
const { openAll, closeAll } = styler;
|
|
@@ -458,7 +527,10 @@ const applyStyle = (self, string) => {
|
|
|
458
527
|
if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
459
528
|
return openAll + string + closeAll;
|
|
460
529
|
};
|
|
461
|
-
Object.defineProperties(createChalk.prototype,
|
|
530
|
+
Object.defineProperties(createChalk.prototype, {
|
|
531
|
+
...styles,
|
|
532
|
+
level: levelDescriptor
|
|
533
|
+
});
|
|
462
534
|
const chalk = createChalk();
|
|
463
535
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
464
536
|
//#endregion
|
|
@@ -467,7 +539,7 @@ function Ht(n) {
|
|
|
467
539
|
return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
|
|
468
540
|
}
|
|
469
541
|
function ps(n) {
|
|
470
|
-
return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs$
|
|
542
|
+
return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs$2, de).replace(us, pe);
|
|
471
543
|
}
|
|
472
544
|
function ms(n) {
|
|
473
545
|
return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os$2, ",").replace(hs, ".");
|
|
@@ -559,7 +631,7 @@ function Ut(n, t = {}) {
|
|
|
559
631
|
function es(n, t = {}) {
|
|
560
632
|
return new I$1(n, t).iterate();
|
|
561
633
|
}
|
|
562
|
-
var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$2, hs, as, ls, cs, fs$
|
|
634
|
+
var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$2, hs, as, ls, cs, fs$2, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O$1, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce, Te, Ae, xe, A, Vs, Ys, Xs, Js, N$1, Zs, ke, Qs, ti, ve, ei, D$1, si, Oe, Vt, Fe, At, Re, ii, q, De, Tt, ri, ft, Ne, oi, hi, ai, G, H, K, kt, ut, Rt, _e, Ot, Le, P$1, et, v$1, dt, st, C$1, F$1, T$1, Yt, Ft, k$1, x$1, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui, Mt, te, di, pi, V, vi, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _$1, gt, se, je, yt, j$1, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R$1, Pt, jt, It, it, rt, St, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I$1, le, ji, Ii, zi, Bi, Ui, Ze;
|
|
563
635
|
var init_index_min = __esmMin((() => {
|
|
564
636
|
Gt = (n, t, e) => {
|
|
565
637
|
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);
|
|
@@ -604,7 +676,7 @@ var init_index_min = __esmMin((() => {
|
|
|
604
676
|
as = /\\\\/g;
|
|
605
677
|
ls = /\\{/g;
|
|
606
678
|
cs = /\\}/g;
|
|
607
|
-
fs$
|
|
679
|
+
fs$2 = /\\,/g;
|
|
608
680
|
us = /\\./g;
|
|
609
681
|
ds = 1e5;
|
|
610
682
|
at = (n) => {
|
|
@@ -1534,7 +1606,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1534
1606
|
}
|
|
1535
1607
|
}
|
|
1536
1608
|
getRemainingTTL(t) {
|
|
1537
|
-
return this.#f.has(t) ?
|
|
1609
|
+
return this.#f.has(t) ? 1 / 0 : 0;
|
|
1538
1610
|
}
|
|
1539
1611
|
#M() {
|
|
1540
1612
|
let t = new Tt(this.#t), e = new Tt(this.#t);
|
|
@@ -1570,7 +1642,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
|
|
|
1570
1642
|
let h = this.#f.get(o);
|
|
1571
1643
|
if (h === void 0) return 0;
|
|
1572
1644
|
let a = t[h], l = e[h];
|
|
1573
|
-
if (!a || !l) return
|
|
1645
|
+
if (!a || !l) return 1 / 0;
|
|
1574
1646
|
return a - ((i || r()) - l);
|
|
1575
1647
|
}, this.#v = (o) => {
|
|
1576
1648
|
let h = e[o], a = t[o];
|
|
@@ -2314,12 +2386,13 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
2314
2386
|
return oi;
|
|
2315
2387
|
}
|
|
2316
2388
|
};
|
|
2389
|
+
vi = realpathSync.native;
|
|
2317
2390
|
wt = {
|
|
2318
2391
|
lstatSync,
|
|
2319
2392
|
readdir,
|
|
2320
2393
|
readdirSync,
|
|
2321
2394
|
readlinkSync,
|
|
2322
|
-
realpathSync:
|
|
2395
|
+
realpathSync: vi,
|
|
2323
2396
|
promises: {
|
|
2324
2397
|
lstat,
|
|
2325
2398
|
readdir: readdir$1,
|
|
@@ -2357,14 +2430,14 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
2357
2430
|
Ie = yt | j$1 | Lt;
|
|
2358
2431
|
Fi = 1023;
|
|
2359
2432
|
ie = (n) => n.isFile() ? Ke : n.isDirectory() ? U : n.isSymbolicLink() ? X : n.isCharacterDevice() ? He : n.isBlockDevice() ? qe : n.isSocket() ? Ve : n.isFIFO() ? Ge : L;
|
|
2360
|
-
ze = new ft({ max:
|
|
2433
|
+
ze = new ft({ max: 4096 });
|
|
2361
2434
|
bt = (n) => {
|
|
2362
2435
|
let t = ze.get(n);
|
|
2363
2436
|
if (t) return t;
|
|
2364
2437
|
let e = n.normalize("NFKD");
|
|
2365
2438
|
return ze.set(n, e), e;
|
|
2366
2439
|
};
|
|
2367
|
-
Be = new ft({ max:
|
|
2440
|
+
Be = new ft({ max: 4096 });
|
|
2368
2441
|
_t = (n) => {
|
|
2369
2442
|
let t = Be.get(n);
|
|
2370
2443
|
if (t) return t;
|
|
@@ -2377,7 +2450,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
2377
2450
|
}
|
|
2378
2451
|
};
|
|
2379
2452
|
ne = class extends ft {
|
|
2380
|
-
constructor(t =
|
|
2453
|
+
constructor(t = 16384) {
|
|
2381
2454
|
super({
|
|
2382
2455
|
maxSize: t,
|
|
2383
2456
|
sizeCalculation: (e) => e.length + 1
|
|
@@ -2846,7 +2919,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
2846
2919
|
#n;
|
|
2847
2920
|
nocase;
|
|
2848
2921
|
#r;
|
|
2849
|
-
constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r =
|
|
2922
|
+
constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16384, fs: o = wt } = {}) {
|
|
2850
2923
|
this.#r = Ue(o), (t instanceof URL || t.startsWith("file://")) && (t = fileURLToPath(t));
|
|
2851
2924
|
let h = e.resolve(t);
|
|
2852
2925
|
this.roots = Object.create(null), this.rootPath = this.parseRootPath(h), this.#t = new Wt(), this.#s = new Wt(), this.#n = new ne(r);
|
|
@@ -3414,7 +3487,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3414
3487
|
includeChildMatches;
|
|
3415
3488
|
constructor(t, e, s) {
|
|
3416
3489
|
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.");
|
|
3417
|
-
this.maxDepth = s.maxDepth ||
|
|
3490
|
+
this.maxDepth = s.maxDepth || 1 / 0, s.signal && (this.signal = s.signal, this.signal.addEventListener("abort", () => {
|
|
3418
3491
|
this.#t.length = 0;
|
|
3419
3492
|
}));
|
|
3420
3493
|
}
|
|
@@ -3451,7 +3524,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3451
3524
|
return this.matchCheckTest(r, e);
|
|
3452
3525
|
}
|
|
3453
3526
|
matchCheckTest(t, e) {
|
|
3454
|
-
return t && (this.maxDepth ===
|
|
3527
|
+
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;
|
|
3455
3528
|
}
|
|
3456
3529
|
matchCheckSync(t, e) {
|
|
3457
3530
|
if (e && this.opts.nodir) return;
|
|
@@ -3508,7 +3581,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3508
3581
|
};
|
|
3509
3582
|
for (let [h, a, l] of s.matches.entries()) this.#r(h) || (r++, this.match(h, a, l).then(() => o()));
|
|
3510
3583
|
for (let h of s.subwalkTargets()) {
|
|
3511
|
-
if (this.maxDepth !==
|
|
3584
|
+
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
3512
3585
|
r++;
|
|
3513
3586
|
let a = h.readdirCached();
|
|
3514
3587
|
h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, u) => this.walkCB3(h, u, s, o), !0);
|
|
@@ -3539,7 +3612,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3539
3612
|
};
|
|
3540
3613
|
for (let [h, a, l] of s.matches.entries()) this.#r(h) || this.matchSync(h, a, l);
|
|
3541
3614
|
for (let h of s.subwalkTargets()) {
|
|
3542
|
-
if (this.maxDepth !==
|
|
3615
|
+
if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
|
|
3543
3616
|
r++;
|
|
3544
3617
|
let a = h.readdirSync();
|
|
3545
3618
|
this.walkCB3Sync(h, a, s, o);
|
|
@@ -3631,7 +3704,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3631
3704
|
patterns;
|
|
3632
3705
|
constructor(t, e) {
|
|
3633
3706
|
if (!e) throw new TypeError("glob options required");
|
|
3634
|
-
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 :
|
|
3707
|
+
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");
|
|
3635
3708
|
if (typeof t == "string" && (t = [t]), this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === !1, this.windowsPathsNoEscape && (t = t.map((a) => a.replace(/\\/g, "/"))), this.matchBase) {
|
|
3636
3709
|
if (e.noglobstar) throw new TypeError("base matching requires globstar");
|
|
3637
3710
|
t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
|
|
@@ -3674,7 +3747,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3674
3747
|
async walk() {
|
|
3675
3748
|
return [...await new xt(this.patterns, this.scurry.cwd, {
|
|
3676
3749
|
...this.opts,
|
|
3677
|
-
maxDepth: this.maxDepth !==
|
|
3750
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3678
3751
|
platform: this.platform,
|
|
3679
3752
|
nocase: this.nocase,
|
|
3680
3753
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3683,7 +3756,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3683
3756
|
walkSync() {
|
|
3684
3757
|
return [...new xt(this.patterns, this.scurry.cwd, {
|
|
3685
3758
|
...this.opts,
|
|
3686
|
-
maxDepth: this.maxDepth !==
|
|
3759
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3687
3760
|
platform: this.platform,
|
|
3688
3761
|
nocase: this.nocase,
|
|
3689
3762
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3692,7 +3765,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3692
3765
|
stream() {
|
|
3693
3766
|
return new vt(this.patterns, this.scurry.cwd, {
|
|
3694
3767
|
...this.opts,
|
|
3695
|
-
maxDepth: this.maxDepth !==
|
|
3768
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3696
3769
|
platform: this.platform,
|
|
3697
3770
|
nocase: this.nocase,
|
|
3698
3771
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3701,7 +3774,7 @@ while (this[Le](this[Ft]()) && this[C$1].length);
|
|
|
3701
3774
|
streamSync() {
|
|
3702
3775
|
return new vt(this.patterns, this.scurry.cwd, {
|
|
3703
3776
|
...this.opts,
|
|
3704
|
-
maxDepth: this.maxDepth !==
|
|
3777
|
+
maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
|
|
3705
3778
|
platform: this.platform,
|
|
3706
3779
|
nocase: this.nocase,
|
|
3707
3780
|
includeChildMatches: this.includeChildMatches
|
|
@@ -3801,14 +3874,12 @@ function deepMerge(target, source, options = {}) {
|
|
|
3801
3874
|
//#endregion
|
|
3802
3875
|
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js
|
|
3803
3876
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3804
|
-
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
3805
|
-
const MAX_LENGTH = 256;
|
|
3806
|
-
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
3807
3877
|
module.exports = {
|
|
3808
|
-
MAX_LENGTH,
|
|
3878
|
+
MAX_LENGTH: 256,
|
|
3809
3879
|
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
3810
|
-
MAX_SAFE_BUILD_LENGTH:
|
|
3811
|
-
MAX_SAFE_INTEGER
|
|
3880
|
+
MAX_SAFE_BUILD_LENGTH: 250,
|
|
3881
|
+
MAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER ||
|
|
3882
|
+
/* istanbul ignore next */ 9007199254740991,
|
|
3812
3883
|
RELEASE_TYPES: [
|
|
3813
3884
|
"major",
|
|
3814
3885
|
"premajor",
|
|
@@ -3818,7 +3889,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3818
3889
|
"prepatch",
|
|
3819
3890
|
"prerelease"
|
|
3820
3891
|
],
|
|
3821
|
-
SEMVER_SPEC_VERSION,
|
|
3892
|
+
SEMVER_SPEC_VERSION: "2.0.0",
|
|
3822
3893
|
FLAG_INCLUDE_PRERELEASE: 1,
|
|
3823
3894
|
FLAG_LOOSE: 2
|
|
3824
3895
|
};
|
|
@@ -3956,9 +4027,10 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3956
4027
|
module.exports = class SemVer {
|
|
3957
4028
|
constructor(version, options) {
|
|
3958
4029
|
options = parseOptions(options);
|
|
3959
|
-
if (version instanceof SemVer)
|
|
3960
|
-
|
|
3961
|
-
|
|
4030
|
+
if (version instanceof SemVer) {
|
|
4031
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
4032
|
+
else version = version.version;
|
|
4033
|
+
} else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
3962
4034
|
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
3963
4035
|
debug("SemVer", version, options);
|
|
3964
4036
|
this.options = options;
|
|
@@ -4245,8 +4317,10 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4245
4317
|
module.exports = class Range {
|
|
4246
4318
|
constructor(range, options) {
|
|
4247
4319
|
options = parseOptions(options);
|
|
4248
|
-
if (range instanceof Range)
|
|
4249
|
-
|
|
4320
|
+
if (range instanceof Range) {
|
|
4321
|
+
if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) return range;
|
|
4322
|
+
else return new Range(range.raw, options);
|
|
4323
|
+
}
|
|
4250
4324
|
if (range instanceof Comparator) {
|
|
4251
4325
|
this.raw = range.value;
|
|
4252
4326
|
this.set = [[range]];
|
|
@@ -4416,18 +4490,21 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4416
4490
|
let ret;
|
|
4417
4491
|
if (isX(M)) ret = "";
|
|
4418
4492
|
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
4419
|
-
else if (isX(p))
|
|
4420
|
-
|
|
4421
|
-
|
|
4493
|
+
else if (isX(p)) {
|
|
4494
|
+
if (M === "0") ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
4495
|
+
else ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
4496
|
+
} else if (pr) {
|
|
4422
4497
|
debug("replaceCaret pr", pr);
|
|
4423
|
-
if (M === "0")
|
|
4424
|
-
|
|
4425
|
-
|
|
4498
|
+
if (M === "0") {
|
|
4499
|
+
if (m === "0") ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
4500
|
+
else ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
4501
|
+
} else ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
4426
4502
|
} else {
|
|
4427
4503
|
debug("no pr");
|
|
4428
|
-
if (M === "0")
|
|
4429
|
-
|
|
4430
|
-
|
|
4504
|
+
if (M === "0") {
|
|
4505
|
+
if (m === "0") ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
|
|
4506
|
+
else ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
4507
|
+
} else ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
4431
4508
|
}
|
|
4432
4509
|
debug("caret return", ret);
|
|
4433
4510
|
return ret;
|
|
@@ -4449,9 +4526,10 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4449
4526
|
const anyX = xp;
|
|
4450
4527
|
if (gtlt === "=" && anyX) gtlt = "";
|
|
4451
4528
|
pr = options.includePrerelease ? "-0" : "";
|
|
4452
|
-
if (xM)
|
|
4453
|
-
|
|
4454
|
-
|
|
4529
|
+
if (xM) {
|
|
4530
|
+
if (gtlt === ">" || gtlt === "<") ret = "<0.0.0-0";
|
|
4531
|
+
else ret = "*";
|
|
4532
|
+
} else if (gtlt && anyX) {
|
|
4455
4533
|
if (xm) m = 0;
|
|
4456
4534
|
p = 0;
|
|
4457
4535
|
if (gtlt === ">") {
|
|
@@ -4525,8 +4603,10 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4525
4603
|
}
|
|
4526
4604
|
constructor(comp, options) {
|
|
4527
4605
|
options = parseOptions(options);
|
|
4528
|
-
if (comp instanceof Comparator)
|
|
4529
|
-
|
|
4606
|
+
if (comp instanceof Comparator) {
|
|
4607
|
+
if (comp.loose === !!options.loose) return comp;
|
|
4608
|
+
else comp = comp.value;
|
|
4609
|
+
}
|
|
4530
4610
|
comp = comp.trim().split(/\s+/).join(" ");
|
|
4531
4611
|
debug("comparator", comp, options);
|
|
4532
4612
|
this.options = options;
|
|
@@ -4612,1786 +4692,24 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4612
4692
|
case ">=":
|
|
4613
4693
|
if (!setMin || gt(compver, setMin)) setMin = compver;
|
|
4614
4694
|
break;
|
|
4615
|
-
case "<":
|
|
4616
|
-
case "<=": break;
|
|
4617
|
-
/* istanbul ignore next */
|
|
4618
|
-
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
4619
|
-
}
|
|
4620
|
-
});
|
|
4621
|
-
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
4622
|
-
}
|
|
4623
|
-
if (minver && range.test(minver)) return minver;
|
|
4624
|
-
return null;
|
|
4625
|
-
};
|
|
4626
|
-
module.exports = minVersion;
|
|
4627
|
-
}));
|
|
4628
|
-
//#endregion
|
|
4629
|
-
//#region src/lib/initCwd.ts
|
|
4630
|
-
function INIT_CWD() {
|
|
4631
|
-
return process.env.INIT_CWD ?? process.cwd();
|
|
4632
|
-
}
|
|
4633
|
-
//#endregion
|
|
4634
|
-
//#region ../../node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js
|
|
4635
|
-
var require_resolve_from = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4636
|
-
const path$2 = __require("path");
|
|
4637
|
-
const Module = __require("module");
|
|
4638
|
-
const fs$2 = __require("fs");
|
|
4639
|
-
const resolveFrom = (fromDir, moduleId, silent) => {
|
|
4640
|
-
if (typeof fromDir !== "string") throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof fromDir}\``);
|
|
4641
|
-
if (typeof moduleId !== "string") throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof moduleId}\``);
|
|
4642
|
-
try {
|
|
4643
|
-
fromDir = fs$2.realpathSync(fromDir);
|
|
4644
|
-
} catch (err) {
|
|
4645
|
-
if (err.code === "ENOENT") fromDir = path$2.resolve(fromDir);
|
|
4646
|
-
else if (silent) return null;
|
|
4647
|
-
else throw err;
|
|
4648
|
-
}
|
|
4649
|
-
const fromFile = path$2.join(fromDir, "noop.js");
|
|
4650
|
-
const resolveFileName = () => Module._resolveFilename(moduleId, {
|
|
4651
|
-
id: fromFile,
|
|
4652
|
-
filename: fromFile,
|
|
4653
|
-
paths: Module._nodeModulePaths(fromDir)
|
|
4654
|
-
});
|
|
4655
|
-
if (silent) try {
|
|
4656
|
-
return resolveFileName();
|
|
4657
|
-
} catch (err) {
|
|
4658
|
-
return null;
|
|
4659
|
-
}
|
|
4660
|
-
return resolveFileName();
|
|
4661
|
-
};
|
|
4662
|
-
module.exports = (fromDir, moduleId) => resolveFrom(fromDir, moduleId);
|
|
4663
|
-
module.exports.silent = (fromDir, moduleId) => resolveFrom(fromDir, moduleId, true);
|
|
4664
|
-
}));
|
|
4665
|
-
//#endregion
|
|
4666
|
-
//#region ../../node_modules/.pnpm/callsites@3.1.0/node_modules/callsites/index.js
|
|
4667
|
-
var require_callsites = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4668
|
-
const callsites = () => {
|
|
4669
|
-
const _prepareStackTrace = Error.prepareStackTrace;
|
|
4670
|
-
Error.prepareStackTrace = (_, stack) => stack;
|
|
4671
|
-
const stack = (/* @__PURE__ */ new Error()).stack.slice(1);
|
|
4672
|
-
Error.prepareStackTrace = _prepareStackTrace;
|
|
4673
|
-
return stack;
|
|
4674
|
-
};
|
|
4675
|
-
module.exports = callsites;
|
|
4676
|
-
module.exports.default = callsites;
|
|
4677
|
-
}));
|
|
4678
|
-
//#endregion
|
|
4679
|
-
//#region ../../node_modules/.pnpm/parent-module@1.0.1/node_modules/parent-module/index.js
|
|
4680
|
-
var require_parent_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4681
|
-
const callsites = require_callsites();
|
|
4682
|
-
module.exports = (filepath) => {
|
|
4683
|
-
const stacks = callsites();
|
|
4684
|
-
if (!filepath) return stacks[2].getFileName();
|
|
4685
|
-
let seenVal = false;
|
|
4686
|
-
stacks.shift();
|
|
4687
|
-
for (const stack of stacks) {
|
|
4688
|
-
const parentFilepath = stack.getFileName();
|
|
4689
|
-
if (typeof parentFilepath !== "string") continue;
|
|
4690
|
-
if (parentFilepath === filepath) {
|
|
4691
|
-
seenVal = true;
|
|
4692
|
-
continue;
|
|
4693
|
-
}
|
|
4694
|
-
if (parentFilepath === "module.js") continue;
|
|
4695
|
-
if (seenVal && parentFilepath !== filepath) return parentFilepath;
|
|
4696
|
-
}
|
|
4697
|
-
};
|
|
4698
|
-
}));
|
|
4699
|
-
//#endregion
|
|
4700
|
-
//#region ../../node_modules/.pnpm/import-fresh@3.3.1/node_modules/import-fresh/index.js
|
|
4701
|
-
var require_import_fresh = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4702
|
-
const path$1 = __require("path");
|
|
4703
|
-
const resolveFrom = require_resolve_from();
|
|
4704
|
-
const parentModule = require_parent_module();
|
|
4705
|
-
module.exports = (moduleId) => {
|
|
4706
|
-
if (typeof moduleId !== "string") throw new TypeError("Expected a string");
|
|
4707
|
-
const parentPath = parentModule(__filename);
|
|
4708
|
-
const cwd = parentPath ? path$1.dirname(parentPath) : __dirname;
|
|
4709
|
-
const filePath = resolveFrom(cwd, moduleId);
|
|
4710
|
-
const oldModule = __require.cache[filePath];
|
|
4711
|
-
if (oldModule && oldModule.parent) {
|
|
4712
|
-
let i = oldModule.parent.children.length;
|
|
4713
|
-
while (i--) if (oldModule.parent.children[i].id === filePath) oldModule.parent.children.splice(i, 1);
|
|
4714
|
-
}
|
|
4715
|
-
delete __require.cache[filePath];
|
|
4716
|
-
const parent = __require.cache[parentPath];
|
|
4717
|
-
return parent === void 0 || parent.require === void 0 ? __require(filePath) : parent.require(filePath);
|
|
4718
|
-
};
|
|
4719
|
-
}));
|
|
4720
|
-
//#endregion
|
|
4721
|
-
//#region ../../node_modules/.pnpm/is-arrayish@0.2.1/node_modules/is-arrayish/index.js
|
|
4722
|
-
var require_is_arrayish = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4723
|
-
module.exports = function isArrayish(obj) {
|
|
4724
|
-
if (!obj) return false;
|
|
4725
|
-
return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && obj.splice instanceof Function;
|
|
4726
|
-
};
|
|
4727
|
-
}));
|
|
4728
|
-
//#endregion
|
|
4729
|
-
//#region ../../node_modules/.pnpm/error-ex@1.3.4/node_modules/error-ex/index.js
|
|
4730
|
-
var require_error_ex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4731
|
-
var util$1 = __require("util");
|
|
4732
|
-
var isArrayish = require_is_arrayish();
|
|
4733
|
-
var errorEx = function errorEx(name, properties) {
|
|
4734
|
-
if (!name || name.constructor !== String) {
|
|
4735
|
-
properties = name || {};
|
|
4736
|
-
name = Error.name;
|
|
4737
|
-
}
|
|
4738
|
-
var errorExError = function ErrorEXError(message) {
|
|
4739
|
-
if (!this) return new ErrorEXError(message);
|
|
4740
|
-
message = message instanceof Error ? message.message : message || this.message;
|
|
4741
|
-
Error.call(this, message);
|
|
4742
|
-
Error.captureStackTrace(this, errorExError);
|
|
4743
|
-
this.name = name;
|
|
4744
|
-
Object.defineProperty(this, "message", {
|
|
4745
|
-
configurable: true,
|
|
4746
|
-
enumerable: false,
|
|
4747
|
-
get: function() {
|
|
4748
|
-
var newMessage = message.split(/\r?\n/g);
|
|
4749
|
-
for (var key in properties) {
|
|
4750
|
-
if (!properties.hasOwnProperty(key)) continue;
|
|
4751
|
-
var modifier = properties[key];
|
|
4752
|
-
if ("message" in modifier) {
|
|
4753
|
-
newMessage = modifier.message(this[key], newMessage) || newMessage;
|
|
4754
|
-
if (!isArrayish(newMessage)) newMessage = [newMessage];
|
|
4755
|
-
}
|
|
4756
|
-
}
|
|
4757
|
-
return newMessage.join("\n");
|
|
4758
|
-
},
|
|
4759
|
-
set: function(v) {
|
|
4760
|
-
message = v;
|
|
4761
|
-
}
|
|
4762
|
-
});
|
|
4763
|
-
var overwrittenStack = null;
|
|
4764
|
-
var stackDescriptor = Object.getOwnPropertyDescriptor(this, "stack");
|
|
4765
|
-
var stackGetter = stackDescriptor.get;
|
|
4766
|
-
var stackValue = stackDescriptor.value;
|
|
4767
|
-
delete stackDescriptor.value;
|
|
4768
|
-
delete stackDescriptor.writable;
|
|
4769
|
-
stackDescriptor.set = function(newstack) {
|
|
4770
|
-
overwrittenStack = newstack;
|
|
4771
|
-
};
|
|
4772
|
-
stackDescriptor.get = function() {
|
|
4773
|
-
var stack = (overwrittenStack || (stackGetter ? stackGetter.call(this) : stackValue)).split(/\r?\n+/g);
|
|
4774
|
-
if (!overwrittenStack) stack[0] = this.name + ": " + this.message;
|
|
4775
|
-
var lineCount = 1;
|
|
4776
|
-
for (var key in properties) {
|
|
4777
|
-
if (!properties.hasOwnProperty(key)) continue;
|
|
4778
|
-
var modifier = properties[key];
|
|
4779
|
-
if ("line" in modifier) {
|
|
4780
|
-
var line = modifier.line(this[key]);
|
|
4781
|
-
if (line) stack.splice(lineCount++, 0, " " + line);
|
|
4782
|
-
}
|
|
4783
|
-
if ("stack" in modifier) modifier.stack(this[key], stack);
|
|
4784
|
-
}
|
|
4785
|
-
return stack.join("\n");
|
|
4786
|
-
};
|
|
4787
|
-
Object.defineProperty(this, "stack", stackDescriptor);
|
|
4788
|
-
};
|
|
4789
|
-
if (Object.setPrototypeOf) {
|
|
4790
|
-
Object.setPrototypeOf(errorExError.prototype, Error.prototype);
|
|
4791
|
-
Object.setPrototypeOf(errorExError, Error);
|
|
4792
|
-
} else util$1.inherits(errorExError, Error);
|
|
4793
|
-
return errorExError;
|
|
4794
|
-
};
|
|
4795
|
-
errorEx.append = function(str, def) {
|
|
4796
|
-
return { message: function(v, message) {
|
|
4797
|
-
v = v || def;
|
|
4798
|
-
if (v) message[0] += " " + str.replace("%s", v.toString());
|
|
4799
|
-
return message;
|
|
4800
|
-
} };
|
|
4801
|
-
};
|
|
4802
|
-
errorEx.line = function(str, def) {
|
|
4803
|
-
return { line: function(v) {
|
|
4804
|
-
v = v || def;
|
|
4805
|
-
if (v) return str.replace("%s", v.toString());
|
|
4806
|
-
return null;
|
|
4807
|
-
} };
|
|
4808
|
-
};
|
|
4809
|
-
module.exports = errorEx;
|
|
4810
|
-
}));
|
|
4811
|
-
//#endregion
|
|
4812
|
-
//#region ../../node_modules/.pnpm/json-parse-even-better-errors@2.3.1/node_modules/json-parse-even-better-errors/index.js
|
|
4813
|
-
var require_json_parse_even_better_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4814
|
-
const hexify = (char) => {
|
|
4815
|
-
const h = char.charCodeAt(0).toString(16).toUpperCase();
|
|
4816
|
-
return "0x" + (h.length % 2 ? "0" : "") + h;
|
|
4817
|
-
};
|
|
4818
|
-
const parseError = (e, txt, context) => {
|
|
4819
|
-
if (!txt) return {
|
|
4820
|
-
message: e.message + " while parsing empty string",
|
|
4821
|
-
position: 0
|
|
4822
|
-
};
|
|
4823
|
-
const badToken = e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i);
|
|
4824
|
-
const errIdx = badToken ? +badToken[2] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null;
|
|
4825
|
-
const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${JSON.stringify(badToken[1])} (${hexify(badToken[1])})`) : e.message;
|
|
4826
|
-
if (errIdx !== null && errIdx !== void 0) {
|
|
4827
|
-
const start = errIdx <= context ? 0 : errIdx - context;
|
|
4828
|
-
const end = errIdx + context >= txt.length ? txt.length : errIdx + context;
|
|
4829
|
-
const slice = (start === 0 ? "" : "...") + txt.slice(start, end) + (end === txt.length ? "" : "...");
|
|
4830
|
-
return {
|
|
4831
|
-
message: msg + ` while parsing ${txt === slice ? "" : "near "}${JSON.stringify(slice)}`,
|
|
4832
|
-
position: errIdx
|
|
4833
|
-
};
|
|
4834
|
-
} else return {
|
|
4835
|
-
message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,
|
|
4836
|
-
position: 0
|
|
4837
|
-
};
|
|
4838
|
-
};
|
|
4839
|
-
var JSONParseError = class extends SyntaxError {
|
|
4840
|
-
constructor(er, txt, context, caller) {
|
|
4841
|
-
context = context || 20;
|
|
4842
|
-
const metadata = parseError(er, txt, context);
|
|
4843
|
-
super(metadata.message);
|
|
4844
|
-
Object.assign(this, metadata);
|
|
4845
|
-
this.code = "EJSONPARSE";
|
|
4846
|
-
this.systemError = er;
|
|
4847
|
-
Error.captureStackTrace(this, caller || this.constructor);
|
|
4848
|
-
}
|
|
4849
|
-
get name() {
|
|
4850
|
-
return this.constructor.name;
|
|
4851
|
-
}
|
|
4852
|
-
set name(n) {}
|
|
4853
|
-
get [Symbol.toStringTag]() {
|
|
4854
|
-
return this.constructor.name;
|
|
4855
|
-
}
|
|
4856
|
-
};
|
|
4857
|
-
const kIndent = Symbol.for("indent");
|
|
4858
|
-
const kNewline = Symbol.for("newline");
|
|
4859
|
-
const formatRE = /^\s*[{\[]((?:\r?\n)+)([\s\t]*)/;
|
|
4860
|
-
const emptyRE = /^(?:\{\}|\[\])((?:\r?\n)+)?$/;
|
|
4861
|
-
const parseJson = (txt, reviver, context) => {
|
|
4862
|
-
const parseText = stripBOM(txt);
|
|
4863
|
-
context = context || 20;
|
|
4864
|
-
try {
|
|
4865
|
-
const [, newline = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [
|
|
4866
|
-
,
|
|
4867
|
-
"",
|
|
4868
|
-
""
|
|
4869
|
-
];
|
|
4870
|
-
const result = JSON.parse(parseText, reviver);
|
|
4871
|
-
if (result && typeof result === "object") {
|
|
4872
|
-
result[kNewline] = newline;
|
|
4873
|
-
result[kIndent] = indent;
|
|
4874
|
-
}
|
|
4875
|
-
return result;
|
|
4876
|
-
} catch (e) {
|
|
4877
|
-
if (typeof txt !== "string" && !Buffer.isBuffer(txt)) {
|
|
4878
|
-
const isEmptyArray = Array.isArray(txt) && txt.length === 0;
|
|
4879
|
-
throw Object.assign(/* @__PURE__ */ new TypeError(`Cannot parse ${isEmptyArray ? "an empty array" : String(txt)}`), {
|
|
4880
|
-
code: "EJSONPARSE",
|
|
4881
|
-
systemError: e
|
|
4882
|
-
});
|
|
4883
|
-
}
|
|
4884
|
-
throw new JSONParseError(e, parseText, context, parseJson);
|
|
4885
|
-
}
|
|
4886
|
-
};
|
|
4887
|
-
const stripBOM = (txt) => String(txt).replace(/^\uFEFF/, "");
|
|
4888
|
-
module.exports = parseJson;
|
|
4889
|
-
parseJson.JSONParseError = JSONParseError;
|
|
4890
|
-
parseJson.noExceptions = (txt, reviver) => {
|
|
4891
|
-
try {
|
|
4892
|
-
return JSON.parse(stripBOM(txt), reviver);
|
|
4893
|
-
} catch (e) {}
|
|
4894
|
-
};
|
|
4895
|
-
}));
|
|
4896
|
-
//#endregion
|
|
4897
|
-
//#region ../../node_modules/.pnpm/lines-and-columns@1.2.4/node_modules/lines-and-columns/build/index.js
|
|
4898
|
-
var require_build = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4899
|
-
exports.__esModule = true;
|
|
4900
|
-
exports.LinesAndColumns = void 0;
|
|
4901
|
-
var LF = "\n";
|
|
4902
|
-
var CR = "\r";
|
|
4903
|
-
var LinesAndColumns = function() {
|
|
4904
|
-
function LinesAndColumns(string) {
|
|
4905
|
-
this.string = string;
|
|
4906
|
-
var offsets = [0];
|
|
4907
|
-
for (var offset = 0; offset < string.length;) switch (string[offset]) {
|
|
4908
|
-
case LF:
|
|
4909
|
-
offset += LF.length;
|
|
4910
|
-
offsets.push(offset);
|
|
4911
|
-
break;
|
|
4912
|
-
case CR:
|
|
4913
|
-
offset += CR.length;
|
|
4914
|
-
if (string[offset] === LF) offset += LF.length;
|
|
4915
|
-
offsets.push(offset);
|
|
4916
|
-
break;
|
|
4917
|
-
default:
|
|
4918
|
-
offset++;
|
|
4919
|
-
break;
|
|
4920
|
-
}
|
|
4921
|
-
this.offsets = offsets;
|
|
4922
|
-
}
|
|
4923
|
-
LinesAndColumns.prototype.locationForIndex = function(index) {
|
|
4924
|
-
if (index < 0 || index > this.string.length) return null;
|
|
4925
|
-
var line = 0;
|
|
4926
|
-
var offsets = this.offsets;
|
|
4927
|
-
while (offsets[line + 1] <= index) line++;
|
|
4928
|
-
var column = index - offsets[line];
|
|
4929
|
-
return {
|
|
4930
|
-
line,
|
|
4931
|
-
column
|
|
4932
|
-
};
|
|
4933
|
-
};
|
|
4934
|
-
LinesAndColumns.prototype.indexForLocation = function(location) {
|
|
4935
|
-
var line = location.line, column = location.column;
|
|
4936
|
-
if (line < 0 || line >= this.offsets.length) return null;
|
|
4937
|
-
if (column < 0 || column > this.lengthOfLine(line)) return null;
|
|
4938
|
-
return this.offsets[line] + column;
|
|
4939
|
-
};
|
|
4940
|
-
LinesAndColumns.prototype.lengthOfLine = function(line) {
|
|
4941
|
-
var offset = this.offsets[line];
|
|
4942
|
-
return (line === this.offsets.length - 1 ? this.string.length : this.offsets[line + 1]) - offset;
|
|
4943
|
-
};
|
|
4944
|
-
return LinesAndColumns;
|
|
4945
|
-
}();
|
|
4946
|
-
exports.LinesAndColumns = LinesAndColumns;
|
|
4947
|
-
exports["default"] = LinesAndColumns;
|
|
4948
|
-
}));
|
|
4949
|
-
//#endregion
|
|
4950
|
-
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
4951
|
-
var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4952
|
-
let p = process || {};
|
|
4953
|
-
let argv = p.argv || [];
|
|
4954
|
-
let env = p.env || {};
|
|
4955
|
-
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);
|
|
4956
|
-
let formatter = (open, close, replace = open) => (input) => {
|
|
4957
|
-
let string = "" + input, index = string.indexOf(close, open.length);
|
|
4958
|
-
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
4959
|
-
};
|
|
4960
|
-
let replaceClose = (string, close, replace, index) => {
|
|
4961
|
-
let result = "", cursor = 0;
|
|
4962
|
-
do {
|
|
4963
|
-
result += string.substring(cursor, index) + replace;
|
|
4964
|
-
cursor = index + close.length;
|
|
4965
|
-
index = string.indexOf(close, cursor);
|
|
4966
|
-
} while (~index);
|
|
4967
|
-
return result + string.substring(cursor);
|
|
4968
|
-
};
|
|
4969
|
-
let createColors = (enabled = isColorSupported) => {
|
|
4970
|
-
let f = enabled ? formatter : () => String;
|
|
4971
|
-
return {
|
|
4972
|
-
isColorSupported: enabled,
|
|
4973
|
-
reset: f("\x1B[0m", "\x1B[0m"),
|
|
4974
|
-
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
4975
|
-
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
4976
|
-
italic: f("\x1B[3m", "\x1B[23m"),
|
|
4977
|
-
underline: f("\x1B[4m", "\x1B[24m"),
|
|
4978
|
-
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
4979
|
-
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
4980
|
-
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
4981
|
-
black: f("\x1B[30m", "\x1B[39m"),
|
|
4982
|
-
red: f("\x1B[31m", "\x1B[39m"),
|
|
4983
|
-
green: f("\x1B[32m", "\x1B[39m"),
|
|
4984
|
-
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
4985
|
-
blue: f("\x1B[34m", "\x1B[39m"),
|
|
4986
|
-
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
4987
|
-
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
4988
|
-
white: f("\x1B[37m", "\x1B[39m"),
|
|
4989
|
-
gray: f("\x1B[90m", "\x1B[39m"),
|
|
4990
|
-
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
4991
|
-
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
4992
|
-
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
4993
|
-
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
4994
|
-
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
4995
|
-
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
4996
|
-
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
4997
|
-
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
4998
|
-
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
4999
|
-
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
5000
|
-
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
5001
|
-
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
5002
|
-
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
5003
|
-
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
5004
|
-
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
5005
|
-
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
5006
|
-
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
5007
|
-
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
5008
|
-
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
5009
|
-
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
5010
|
-
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
5011
|
-
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
5012
|
-
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
5013
|
-
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
5014
|
-
};
|
|
5015
|
-
};
|
|
5016
|
-
module.exports = createColors();
|
|
5017
|
-
module.exports.createColors = createColors;
|
|
5018
|
-
}));
|
|
5019
|
-
//#endregion
|
|
5020
|
-
//#region ../../node_modules/.pnpm/js-tokens@4.0.0/node_modules/js-tokens/index.js
|
|
5021
|
-
var require_js_tokens = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5022
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5023
|
-
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;
|
|
5024
|
-
exports.matchToToken = function(match) {
|
|
5025
|
-
var token = {
|
|
5026
|
-
type: "invalid",
|
|
5027
|
-
value: match[0],
|
|
5028
|
-
closed: void 0
|
|
5029
|
-
};
|
|
5030
|
-
if (match[1]) token.type = "string", token.closed = !!(match[3] || match[4]);
|
|
5031
|
-
else if (match[5]) token.type = "comment";
|
|
5032
|
-
else if (match[6]) token.type = "comment", token.closed = !!match[7];
|
|
5033
|
-
else if (match[8]) token.type = "regex";
|
|
5034
|
-
else if (match[9]) token.type = "number";
|
|
5035
|
-
else if (match[10]) token.type = "name";
|
|
5036
|
-
else if (match[11]) token.type = "punctuator";
|
|
5037
|
-
else if (match[12]) token.type = "whitespace";
|
|
5038
|
-
return token;
|
|
5039
|
-
};
|
|
5040
|
-
}));
|
|
5041
|
-
//#endregion
|
|
5042
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js
|
|
5043
|
-
var require_identifier = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5044
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5045
|
-
exports.isIdentifierChar = isIdentifierChar;
|
|
5046
|
-
exports.isIdentifierName = isIdentifierName;
|
|
5047
|
-
exports.isIdentifierStart = isIdentifierStart;
|
|
5048
|
-
let nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
|
|
5049
|
-
let nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
|
|
5050
|
-
const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
5051
|
-
const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
5052
|
-
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
5053
|
-
const astralIdentifierStartCodes = [
|
|
5054
|
-
0,
|
|
5055
|
-
11,
|
|
5056
|
-
2,
|
|
5057
|
-
25,
|
|
5058
|
-
2,
|
|
5059
|
-
18,
|
|
5060
|
-
2,
|
|
5061
|
-
1,
|
|
5062
|
-
2,
|
|
5063
|
-
14,
|
|
5064
|
-
3,
|
|
5065
|
-
13,
|
|
5066
|
-
35,
|
|
5067
|
-
122,
|
|
5068
|
-
70,
|
|
5069
|
-
52,
|
|
5070
|
-
268,
|
|
5071
|
-
28,
|
|
5072
|
-
4,
|
|
5073
|
-
48,
|
|
5074
|
-
48,
|
|
5075
|
-
31,
|
|
5076
|
-
14,
|
|
5077
|
-
29,
|
|
5078
|
-
6,
|
|
5079
|
-
37,
|
|
5080
|
-
11,
|
|
5081
|
-
29,
|
|
5082
|
-
3,
|
|
5083
|
-
35,
|
|
5084
|
-
5,
|
|
5085
|
-
7,
|
|
5086
|
-
2,
|
|
5087
|
-
4,
|
|
5088
|
-
43,
|
|
5089
|
-
157,
|
|
5090
|
-
19,
|
|
5091
|
-
35,
|
|
5092
|
-
5,
|
|
5093
|
-
35,
|
|
5094
|
-
5,
|
|
5095
|
-
39,
|
|
5096
|
-
9,
|
|
5097
|
-
51,
|
|
5098
|
-
13,
|
|
5099
|
-
10,
|
|
5100
|
-
2,
|
|
5101
|
-
14,
|
|
5102
|
-
2,
|
|
5103
|
-
6,
|
|
5104
|
-
2,
|
|
5105
|
-
1,
|
|
5106
|
-
2,
|
|
5107
|
-
10,
|
|
5108
|
-
2,
|
|
5109
|
-
14,
|
|
5110
|
-
2,
|
|
5111
|
-
6,
|
|
5112
|
-
2,
|
|
5113
|
-
1,
|
|
5114
|
-
4,
|
|
5115
|
-
51,
|
|
5116
|
-
13,
|
|
5117
|
-
310,
|
|
5118
|
-
10,
|
|
5119
|
-
21,
|
|
5120
|
-
11,
|
|
5121
|
-
7,
|
|
5122
|
-
25,
|
|
5123
|
-
5,
|
|
5124
|
-
2,
|
|
5125
|
-
41,
|
|
5126
|
-
2,
|
|
5127
|
-
8,
|
|
5128
|
-
70,
|
|
5129
|
-
5,
|
|
5130
|
-
3,
|
|
5131
|
-
0,
|
|
5132
|
-
2,
|
|
5133
|
-
43,
|
|
5134
|
-
2,
|
|
5135
|
-
1,
|
|
5136
|
-
4,
|
|
5137
|
-
0,
|
|
5138
|
-
3,
|
|
5139
|
-
22,
|
|
5140
|
-
11,
|
|
5141
|
-
22,
|
|
5142
|
-
10,
|
|
5143
|
-
30,
|
|
5144
|
-
66,
|
|
5145
|
-
18,
|
|
5146
|
-
2,
|
|
5147
|
-
1,
|
|
5148
|
-
11,
|
|
5149
|
-
21,
|
|
5150
|
-
11,
|
|
5151
|
-
25,
|
|
5152
|
-
7,
|
|
5153
|
-
25,
|
|
5154
|
-
39,
|
|
5155
|
-
55,
|
|
5156
|
-
7,
|
|
5157
|
-
1,
|
|
5158
|
-
65,
|
|
5159
|
-
0,
|
|
5160
|
-
16,
|
|
5161
|
-
3,
|
|
5162
|
-
2,
|
|
5163
|
-
2,
|
|
5164
|
-
2,
|
|
5165
|
-
28,
|
|
5166
|
-
43,
|
|
5167
|
-
28,
|
|
5168
|
-
4,
|
|
5169
|
-
28,
|
|
5170
|
-
36,
|
|
5171
|
-
7,
|
|
5172
|
-
2,
|
|
5173
|
-
27,
|
|
5174
|
-
28,
|
|
5175
|
-
53,
|
|
5176
|
-
11,
|
|
5177
|
-
21,
|
|
5178
|
-
11,
|
|
5179
|
-
18,
|
|
5180
|
-
14,
|
|
5181
|
-
17,
|
|
5182
|
-
111,
|
|
5183
|
-
72,
|
|
5184
|
-
56,
|
|
5185
|
-
50,
|
|
5186
|
-
14,
|
|
5187
|
-
50,
|
|
5188
|
-
14,
|
|
5189
|
-
35,
|
|
5190
|
-
39,
|
|
5191
|
-
27,
|
|
5192
|
-
10,
|
|
5193
|
-
22,
|
|
5194
|
-
251,
|
|
5195
|
-
41,
|
|
5196
|
-
7,
|
|
5197
|
-
1,
|
|
5198
|
-
17,
|
|
5199
|
-
5,
|
|
5200
|
-
57,
|
|
5201
|
-
28,
|
|
5202
|
-
11,
|
|
5203
|
-
0,
|
|
5204
|
-
9,
|
|
5205
|
-
21,
|
|
5206
|
-
43,
|
|
5207
|
-
17,
|
|
5208
|
-
47,
|
|
5209
|
-
20,
|
|
5210
|
-
28,
|
|
5211
|
-
22,
|
|
5212
|
-
13,
|
|
5213
|
-
52,
|
|
5214
|
-
58,
|
|
5215
|
-
1,
|
|
5216
|
-
3,
|
|
5217
|
-
0,
|
|
5218
|
-
14,
|
|
5219
|
-
44,
|
|
5220
|
-
33,
|
|
5221
|
-
24,
|
|
5222
|
-
27,
|
|
5223
|
-
35,
|
|
5224
|
-
30,
|
|
5225
|
-
0,
|
|
5226
|
-
3,
|
|
5227
|
-
0,
|
|
5228
|
-
9,
|
|
5229
|
-
34,
|
|
5230
|
-
4,
|
|
5231
|
-
0,
|
|
5232
|
-
13,
|
|
5233
|
-
47,
|
|
5234
|
-
15,
|
|
5235
|
-
3,
|
|
5236
|
-
22,
|
|
5237
|
-
0,
|
|
5238
|
-
2,
|
|
5239
|
-
0,
|
|
5240
|
-
36,
|
|
5241
|
-
17,
|
|
5242
|
-
2,
|
|
5243
|
-
24,
|
|
5244
|
-
20,
|
|
5245
|
-
1,
|
|
5246
|
-
64,
|
|
5247
|
-
6,
|
|
5248
|
-
2,
|
|
5249
|
-
0,
|
|
5250
|
-
2,
|
|
5251
|
-
3,
|
|
5252
|
-
2,
|
|
5253
|
-
14,
|
|
5254
|
-
2,
|
|
5255
|
-
9,
|
|
5256
|
-
8,
|
|
5257
|
-
46,
|
|
5258
|
-
39,
|
|
5259
|
-
7,
|
|
5260
|
-
3,
|
|
5261
|
-
1,
|
|
5262
|
-
3,
|
|
5263
|
-
21,
|
|
5264
|
-
2,
|
|
5265
|
-
6,
|
|
5266
|
-
2,
|
|
5267
|
-
1,
|
|
5268
|
-
2,
|
|
5269
|
-
4,
|
|
5270
|
-
4,
|
|
5271
|
-
0,
|
|
5272
|
-
19,
|
|
5273
|
-
0,
|
|
5274
|
-
13,
|
|
5275
|
-
4,
|
|
5276
|
-
31,
|
|
5277
|
-
9,
|
|
5278
|
-
2,
|
|
5279
|
-
0,
|
|
5280
|
-
3,
|
|
5281
|
-
0,
|
|
5282
|
-
2,
|
|
5283
|
-
37,
|
|
5284
|
-
2,
|
|
5285
|
-
0,
|
|
5286
|
-
26,
|
|
5287
|
-
0,
|
|
5288
|
-
2,
|
|
5289
|
-
0,
|
|
5290
|
-
45,
|
|
5291
|
-
52,
|
|
5292
|
-
19,
|
|
5293
|
-
3,
|
|
5294
|
-
21,
|
|
5295
|
-
2,
|
|
5296
|
-
31,
|
|
5297
|
-
47,
|
|
5298
|
-
21,
|
|
5299
|
-
1,
|
|
5300
|
-
2,
|
|
5301
|
-
0,
|
|
5302
|
-
185,
|
|
5303
|
-
46,
|
|
5304
|
-
42,
|
|
5305
|
-
3,
|
|
5306
|
-
37,
|
|
5307
|
-
47,
|
|
5308
|
-
21,
|
|
5309
|
-
0,
|
|
5310
|
-
60,
|
|
5311
|
-
42,
|
|
5312
|
-
14,
|
|
5313
|
-
0,
|
|
5314
|
-
72,
|
|
5315
|
-
26,
|
|
5316
|
-
38,
|
|
5317
|
-
6,
|
|
5318
|
-
186,
|
|
5319
|
-
43,
|
|
5320
|
-
117,
|
|
5321
|
-
63,
|
|
5322
|
-
32,
|
|
5323
|
-
7,
|
|
5324
|
-
3,
|
|
5325
|
-
0,
|
|
5326
|
-
3,
|
|
5327
|
-
7,
|
|
5328
|
-
2,
|
|
5329
|
-
1,
|
|
5330
|
-
2,
|
|
5331
|
-
23,
|
|
5332
|
-
16,
|
|
5333
|
-
0,
|
|
5334
|
-
2,
|
|
5335
|
-
0,
|
|
5336
|
-
95,
|
|
5337
|
-
7,
|
|
5338
|
-
3,
|
|
5339
|
-
38,
|
|
5340
|
-
17,
|
|
5341
|
-
0,
|
|
5342
|
-
2,
|
|
5343
|
-
0,
|
|
5344
|
-
29,
|
|
5345
|
-
0,
|
|
5346
|
-
11,
|
|
5347
|
-
39,
|
|
5348
|
-
8,
|
|
5349
|
-
0,
|
|
5350
|
-
22,
|
|
5351
|
-
0,
|
|
5352
|
-
12,
|
|
5353
|
-
45,
|
|
5354
|
-
20,
|
|
5355
|
-
0,
|
|
5356
|
-
19,
|
|
5357
|
-
72,
|
|
5358
|
-
200,
|
|
5359
|
-
32,
|
|
5360
|
-
32,
|
|
5361
|
-
8,
|
|
5362
|
-
2,
|
|
5363
|
-
36,
|
|
5364
|
-
18,
|
|
5365
|
-
0,
|
|
5366
|
-
50,
|
|
5367
|
-
29,
|
|
5368
|
-
113,
|
|
5369
|
-
6,
|
|
5370
|
-
2,
|
|
5371
|
-
1,
|
|
5372
|
-
2,
|
|
5373
|
-
37,
|
|
5374
|
-
22,
|
|
5375
|
-
0,
|
|
5376
|
-
26,
|
|
5377
|
-
5,
|
|
5378
|
-
2,
|
|
5379
|
-
1,
|
|
5380
|
-
2,
|
|
5381
|
-
31,
|
|
5382
|
-
15,
|
|
5383
|
-
0,
|
|
5384
|
-
24,
|
|
5385
|
-
43,
|
|
5386
|
-
261,
|
|
5387
|
-
18,
|
|
5388
|
-
16,
|
|
5389
|
-
0,
|
|
5390
|
-
2,
|
|
5391
|
-
12,
|
|
5392
|
-
2,
|
|
5393
|
-
33,
|
|
5394
|
-
125,
|
|
5395
|
-
0,
|
|
5396
|
-
80,
|
|
5397
|
-
921,
|
|
5398
|
-
103,
|
|
5399
|
-
110,
|
|
5400
|
-
18,
|
|
5401
|
-
195,
|
|
5402
|
-
2637,
|
|
5403
|
-
96,
|
|
5404
|
-
16,
|
|
5405
|
-
1071,
|
|
5406
|
-
18,
|
|
5407
|
-
5,
|
|
5408
|
-
26,
|
|
5409
|
-
3994,
|
|
5410
|
-
6,
|
|
5411
|
-
582,
|
|
5412
|
-
6842,
|
|
5413
|
-
29,
|
|
5414
|
-
1763,
|
|
5415
|
-
568,
|
|
5416
|
-
8,
|
|
5417
|
-
30,
|
|
5418
|
-
18,
|
|
5419
|
-
78,
|
|
5420
|
-
18,
|
|
5421
|
-
29,
|
|
5422
|
-
19,
|
|
5423
|
-
47,
|
|
5424
|
-
17,
|
|
5425
|
-
3,
|
|
5426
|
-
32,
|
|
5427
|
-
20,
|
|
5428
|
-
6,
|
|
5429
|
-
18,
|
|
5430
|
-
433,
|
|
5431
|
-
44,
|
|
5432
|
-
212,
|
|
5433
|
-
63,
|
|
5434
|
-
33,
|
|
5435
|
-
24,
|
|
5436
|
-
3,
|
|
5437
|
-
24,
|
|
5438
|
-
45,
|
|
5439
|
-
74,
|
|
5440
|
-
6,
|
|
5441
|
-
0,
|
|
5442
|
-
67,
|
|
5443
|
-
12,
|
|
5444
|
-
65,
|
|
5445
|
-
1,
|
|
5446
|
-
2,
|
|
5447
|
-
0,
|
|
5448
|
-
15,
|
|
5449
|
-
4,
|
|
5450
|
-
10,
|
|
5451
|
-
7381,
|
|
5452
|
-
42,
|
|
5453
|
-
31,
|
|
5454
|
-
98,
|
|
5455
|
-
114,
|
|
5456
|
-
8702,
|
|
5457
|
-
3,
|
|
5458
|
-
2,
|
|
5459
|
-
6,
|
|
5460
|
-
2,
|
|
5461
|
-
1,
|
|
5462
|
-
2,
|
|
5463
|
-
290,
|
|
5464
|
-
16,
|
|
5465
|
-
0,
|
|
5466
|
-
30,
|
|
5467
|
-
2,
|
|
5468
|
-
3,
|
|
5469
|
-
0,
|
|
5470
|
-
15,
|
|
5471
|
-
3,
|
|
5472
|
-
9,
|
|
5473
|
-
395,
|
|
5474
|
-
2309,
|
|
5475
|
-
106,
|
|
5476
|
-
6,
|
|
5477
|
-
12,
|
|
5478
|
-
4,
|
|
5479
|
-
8,
|
|
5480
|
-
8,
|
|
5481
|
-
9,
|
|
5482
|
-
5991,
|
|
5483
|
-
84,
|
|
5484
|
-
2,
|
|
5485
|
-
70,
|
|
5486
|
-
2,
|
|
5487
|
-
1,
|
|
5488
|
-
3,
|
|
5489
|
-
0,
|
|
5490
|
-
3,
|
|
5491
|
-
1,
|
|
5492
|
-
3,
|
|
5493
|
-
3,
|
|
5494
|
-
2,
|
|
5495
|
-
11,
|
|
5496
|
-
2,
|
|
5497
|
-
0,
|
|
5498
|
-
2,
|
|
5499
|
-
6,
|
|
5500
|
-
2,
|
|
5501
|
-
64,
|
|
5502
|
-
2,
|
|
5503
|
-
3,
|
|
5504
|
-
3,
|
|
5505
|
-
7,
|
|
5506
|
-
2,
|
|
5507
|
-
6,
|
|
5508
|
-
2,
|
|
5509
|
-
27,
|
|
5510
|
-
2,
|
|
5511
|
-
3,
|
|
5512
|
-
2,
|
|
5513
|
-
4,
|
|
5514
|
-
2,
|
|
5515
|
-
0,
|
|
5516
|
-
4,
|
|
5517
|
-
6,
|
|
5518
|
-
2,
|
|
5519
|
-
339,
|
|
5520
|
-
3,
|
|
5521
|
-
24,
|
|
5522
|
-
2,
|
|
5523
|
-
24,
|
|
5524
|
-
2,
|
|
5525
|
-
30,
|
|
5526
|
-
2,
|
|
5527
|
-
24,
|
|
5528
|
-
2,
|
|
5529
|
-
30,
|
|
5530
|
-
2,
|
|
5531
|
-
24,
|
|
5532
|
-
2,
|
|
5533
|
-
30,
|
|
5534
|
-
2,
|
|
5535
|
-
24,
|
|
5536
|
-
2,
|
|
5537
|
-
30,
|
|
5538
|
-
2,
|
|
5539
|
-
24,
|
|
5540
|
-
2,
|
|
5541
|
-
7,
|
|
5542
|
-
1845,
|
|
5543
|
-
30,
|
|
5544
|
-
7,
|
|
5545
|
-
5,
|
|
5546
|
-
262,
|
|
5547
|
-
61,
|
|
5548
|
-
147,
|
|
5549
|
-
44,
|
|
5550
|
-
11,
|
|
5551
|
-
6,
|
|
5552
|
-
17,
|
|
5553
|
-
0,
|
|
5554
|
-
322,
|
|
5555
|
-
29,
|
|
5556
|
-
19,
|
|
5557
|
-
43,
|
|
5558
|
-
485,
|
|
5559
|
-
27,
|
|
5560
|
-
229,
|
|
5561
|
-
29,
|
|
5562
|
-
3,
|
|
5563
|
-
0,
|
|
5564
|
-
208,
|
|
5565
|
-
30,
|
|
5566
|
-
2,
|
|
5567
|
-
2,
|
|
5568
|
-
2,
|
|
5569
|
-
1,
|
|
5570
|
-
2,
|
|
5571
|
-
6,
|
|
5572
|
-
3,
|
|
5573
|
-
4,
|
|
5574
|
-
10,
|
|
5575
|
-
1,
|
|
5576
|
-
225,
|
|
5577
|
-
6,
|
|
5578
|
-
2,
|
|
5579
|
-
3,
|
|
5580
|
-
2,
|
|
5581
|
-
1,
|
|
5582
|
-
2,
|
|
5583
|
-
14,
|
|
5584
|
-
2,
|
|
5585
|
-
196,
|
|
5586
|
-
60,
|
|
5587
|
-
67,
|
|
5588
|
-
8,
|
|
5589
|
-
0,
|
|
5590
|
-
1205,
|
|
5591
|
-
3,
|
|
5592
|
-
2,
|
|
5593
|
-
26,
|
|
5594
|
-
2,
|
|
5595
|
-
1,
|
|
5596
|
-
2,
|
|
5597
|
-
0,
|
|
5598
|
-
3,
|
|
5599
|
-
0,
|
|
5600
|
-
2,
|
|
5601
|
-
9,
|
|
5602
|
-
2,
|
|
5603
|
-
3,
|
|
5604
|
-
2,
|
|
5605
|
-
0,
|
|
5606
|
-
2,
|
|
5607
|
-
0,
|
|
5608
|
-
7,
|
|
5609
|
-
0,
|
|
5610
|
-
5,
|
|
5611
|
-
0,
|
|
5612
|
-
2,
|
|
5613
|
-
0,
|
|
5614
|
-
2,
|
|
5615
|
-
0,
|
|
5616
|
-
2,
|
|
5617
|
-
2,
|
|
5618
|
-
2,
|
|
5619
|
-
1,
|
|
5620
|
-
2,
|
|
5621
|
-
0,
|
|
5622
|
-
3,
|
|
5623
|
-
0,
|
|
5624
|
-
2,
|
|
5625
|
-
0,
|
|
5626
|
-
2,
|
|
5627
|
-
0,
|
|
5628
|
-
2,
|
|
5629
|
-
0,
|
|
5630
|
-
2,
|
|
5631
|
-
0,
|
|
5632
|
-
2,
|
|
5633
|
-
1,
|
|
5634
|
-
2,
|
|
5635
|
-
0,
|
|
5636
|
-
3,
|
|
5637
|
-
3,
|
|
5638
|
-
2,
|
|
5639
|
-
6,
|
|
5640
|
-
2,
|
|
5641
|
-
3,
|
|
5642
|
-
2,
|
|
5643
|
-
3,
|
|
5644
|
-
2,
|
|
5645
|
-
0,
|
|
5646
|
-
2,
|
|
5647
|
-
9,
|
|
5648
|
-
2,
|
|
5649
|
-
16,
|
|
5650
|
-
6,
|
|
5651
|
-
2,
|
|
5652
|
-
2,
|
|
5653
|
-
4,
|
|
5654
|
-
2,
|
|
5655
|
-
16,
|
|
5656
|
-
4421,
|
|
5657
|
-
42719,
|
|
5658
|
-
33,
|
|
5659
|
-
4381,
|
|
5660
|
-
3,
|
|
5661
|
-
5773,
|
|
5662
|
-
3,
|
|
5663
|
-
7472,
|
|
5664
|
-
16,
|
|
5665
|
-
621,
|
|
5666
|
-
2467,
|
|
5667
|
-
541,
|
|
5668
|
-
1507,
|
|
5669
|
-
4938,
|
|
5670
|
-
6,
|
|
5671
|
-
8489
|
|
5672
|
-
];
|
|
5673
|
-
const astralIdentifierCodes = [
|
|
5674
|
-
509,
|
|
5675
|
-
0,
|
|
5676
|
-
227,
|
|
5677
|
-
0,
|
|
5678
|
-
150,
|
|
5679
|
-
4,
|
|
5680
|
-
294,
|
|
5681
|
-
9,
|
|
5682
|
-
1368,
|
|
5683
|
-
2,
|
|
5684
|
-
2,
|
|
5685
|
-
1,
|
|
5686
|
-
6,
|
|
5687
|
-
3,
|
|
5688
|
-
41,
|
|
5689
|
-
2,
|
|
5690
|
-
5,
|
|
5691
|
-
0,
|
|
5692
|
-
166,
|
|
5693
|
-
1,
|
|
5694
|
-
574,
|
|
5695
|
-
3,
|
|
5696
|
-
9,
|
|
5697
|
-
9,
|
|
5698
|
-
7,
|
|
5699
|
-
9,
|
|
5700
|
-
32,
|
|
5701
|
-
4,
|
|
5702
|
-
318,
|
|
5703
|
-
1,
|
|
5704
|
-
78,
|
|
5705
|
-
5,
|
|
5706
|
-
71,
|
|
5707
|
-
10,
|
|
5708
|
-
50,
|
|
5709
|
-
3,
|
|
5710
|
-
123,
|
|
5711
|
-
2,
|
|
5712
|
-
54,
|
|
5713
|
-
14,
|
|
5714
|
-
32,
|
|
5715
|
-
10,
|
|
5716
|
-
3,
|
|
5717
|
-
1,
|
|
5718
|
-
11,
|
|
5719
|
-
3,
|
|
5720
|
-
46,
|
|
5721
|
-
10,
|
|
5722
|
-
8,
|
|
5723
|
-
0,
|
|
5724
|
-
46,
|
|
5725
|
-
9,
|
|
5726
|
-
7,
|
|
5727
|
-
2,
|
|
5728
|
-
37,
|
|
5729
|
-
13,
|
|
5730
|
-
2,
|
|
5731
|
-
9,
|
|
5732
|
-
6,
|
|
5733
|
-
1,
|
|
5734
|
-
45,
|
|
5735
|
-
0,
|
|
5736
|
-
13,
|
|
5737
|
-
2,
|
|
5738
|
-
49,
|
|
5739
|
-
13,
|
|
5740
|
-
9,
|
|
5741
|
-
3,
|
|
5742
|
-
2,
|
|
5743
|
-
11,
|
|
5744
|
-
83,
|
|
5745
|
-
11,
|
|
5746
|
-
7,
|
|
5747
|
-
0,
|
|
5748
|
-
3,
|
|
5749
|
-
0,
|
|
5750
|
-
158,
|
|
5751
|
-
11,
|
|
5752
|
-
6,
|
|
5753
|
-
9,
|
|
5754
|
-
7,
|
|
5755
|
-
3,
|
|
5756
|
-
56,
|
|
5757
|
-
1,
|
|
5758
|
-
2,
|
|
5759
|
-
6,
|
|
5760
|
-
3,
|
|
5761
|
-
1,
|
|
5762
|
-
3,
|
|
5763
|
-
2,
|
|
5764
|
-
10,
|
|
5765
|
-
0,
|
|
5766
|
-
11,
|
|
5767
|
-
1,
|
|
5768
|
-
3,
|
|
5769
|
-
6,
|
|
5770
|
-
4,
|
|
5771
|
-
4,
|
|
5772
|
-
68,
|
|
5773
|
-
8,
|
|
5774
|
-
2,
|
|
5775
|
-
0,
|
|
5776
|
-
3,
|
|
5777
|
-
0,
|
|
5778
|
-
2,
|
|
5779
|
-
3,
|
|
5780
|
-
2,
|
|
5781
|
-
4,
|
|
5782
|
-
2,
|
|
5783
|
-
0,
|
|
5784
|
-
15,
|
|
5785
|
-
1,
|
|
5786
|
-
83,
|
|
5787
|
-
17,
|
|
5788
|
-
10,
|
|
5789
|
-
9,
|
|
5790
|
-
5,
|
|
5791
|
-
0,
|
|
5792
|
-
82,
|
|
5793
|
-
19,
|
|
5794
|
-
13,
|
|
5795
|
-
9,
|
|
5796
|
-
214,
|
|
5797
|
-
6,
|
|
5798
|
-
3,
|
|
5799
|
-
8,
|
|
5800
|
-
28,
|
|
5801
|
-
1,
|
|
5802
|
-
83,
|
|
5803
|
-
16,
|
|
5804
|
-
16,
|
|
5805
|
-
9,
|
|
5806
|
-
82,
|
|
5807
|
-
12,
|
|
5808
|
-
9,
|
|
5809
|
-
9,
|
|
5810
|
-
7,
|
|
5811
|
-
19,
|
|
5812
|
-
58,
|
|
5813
|
-
14,
|
|
5814
|
-
5,
|
|
5815
|
-
9,
|
|
5816
|
-
243,
|
|
5817
|
-
14,
|
|
5818
|
-
166,
|
|
5819
|
-
9,
|
|
5820
|
-
71,
|
|
5821
|
-
5,
|
|
5822
|
-
2,
|
|
5823
|
-
1,
|
|
5824
|
-
3,
|
|
5825
|
-
3,
|
|
5826
|
-
2,
|
|
5827
|
-
0,
|
|
5828
|
-
2,
|
|
5829
|
-
1,
|
|
5830
|
-
13,
|
|
5831
|
-
9,
|
|
5832
|
-
120,
|
|
5833
|
-
6,
|
|
5834
|
-
3,
|
|
5835
|
-
6,
|
|
5836
|
-
4,
|
|
5837
|
-
0,
|
|
5838
|
-
29,
|
|
5839
|
-
9,
|
|
5840
|
-
41,
|
|
5841
|
-
6,
|
|
5842
|
-
2,
|
|
5843
|
-
3,
|
|
5844
|
-
9,
|
|
5845
|
-
0,
|
|
5846
|
-
10,
|
|
5847
|
-
10,
|
|
5848
|
-
47,
|
|
5849
|
-
15,
|
|
5850
|
-
199,
|
|
5851
|
-
7,
|
|
5852
|
-
137,
|
|
5853
|
-
9,
|
|
5854
|
-
54,
|
|
5855
|
-
7,
|
|
5856
|
-
2,
|
|
5857
|
-
7,
|
|
5858
|
-
17,
|
|
5859
|
-
9,
|
|
5860
|
-
57,
|
|
5861
|
-
21,
|
|
5862
|
-
2,
|
|
5863
|
-
13,
|
|
5864
|
-
123,
|
|
5865
|
-
5,
|
|
5866
|
-
4,
|
|
5867
|
-
0,
|
|
5868
|
-
2,
|
|
5869
|
-
1,
|
|
5870
|
-
2,
|
|
5871
|
-
6,
|
|
5872
|
-
2,
|
|
5873
|
-
0,
|
|
5874
|
-
9,
|
|
5875
|
-
9,
|
|
5876
|
-
49,
|
|
5877
|
-
4,
|
|
5878
|
-
2,
|
|
5879
|
-
1,
|
|
5880
|
-
2,
|
|
5881
|
-
4,
|
|
5882
|
-
9,
|
|
5883
|
-
9,
|
|
5884
|
-
55,
|
|
5885
|
-
9,
|
|
5886
|
-
266,
|
|
5887
|
-
3,
|
|
5888
|
-
10,
|
|
5889
|
-
1,
|
|
5890
|
-
2,
|
|
5891
|
-
0,
|
|
5892
|
-
49,
|
|
5893
|
-
6,
|
|
5894
|
-
4,
|
|
5895
|
-
4,
|
|
5896
|
-
14,
|
|
5897
|
-
10,
|
|
5898
|
-
5350,
|
|
5899
|
-
0,
|
|
5900
|
-
7,
|
|
5901
|
-
14,
|
|
5902
|
-
11465,
|
|
5903
|
-
27,
|
|
5904
|
-
2343,
|
|
5905
|
-
9,
|
|
5906
|
-
87,
|
|
5907
|
-
9,
|
|
5908
|
-
39,
|
|
5909
|
-
4,
|
|
5910
|
-
60,
|
|
5911
|
-
6,
|
|
5912
|
-
26,
|
|
5913
|
-
9,
|
|
5914
|
-
535,
|
|
5915
|
-
9,
|
|
5916
|
-
470,
|
|
5917
|
-
0,
|
|
5918
|
-
2,
|
|
5919
|
-
54,
|
|
5920
|
-
8,
|
|
5921
|
-
3,
|
|
5922
|
-
82,
|
|
5923
|
-
0,
|
|
5924
|
-
12,
|
|
5925
|
-
1,
|
|
5926
|
-
19628,
|
|
5927
|
-
1,
|
|
5928
|
-
4178,
|
|
5929
|
-
9,
|
|
5930
|
-
519,
|
|
5931
|
-
45,
|
|
5932
|
-
3,
|
|
5933
|
-
22,
|
|
5934
|
-
543,
|
|
5935
|
-
4,
|
|
5936
|
-
4,
|
|
5937
|
-
5,
|
|
5938
|
-
9,
|
|
5939
|
-
7,
|
|
5940
|
-
3,
|
|
5941
|
-
6,
|
|
5942
|
-
31,
|
|
5943
|
-
3,
|
|
5944
|
-
149,
|
|
5945
|
-
2,
|
|
5946
|
-
1418,
|
|
5947
|
-
49,
|
|
5948
|
-
513,
|
|
5949
|
-
54,
|
|
5950
|
-
5,
|
|
5951
|
-
49,
|
|
5952
|
-
9,
|
|
5953
|
-
0,
|
|
5954
|
-
15,
|
|
5955
|
-
0,
|
|
5956
|
-
23,
|
|
5957
|
-
4,
|
|
5958
|
-
2,
|
|
5959
|
-
14,
|
|
5960
|
-
1361,
|
|
5961
|
-
6,
|
|
5962
|
-
2,
|
|
5963
|
-
16,
|
|
5964
|
-
3,
|
|
5965
|
-
6,
|
|
5966
|
-
2,
|
|
5967
|
-
1,
|
|
5968
|
-
2,
|
|
5969
|
-
4,
|
|
5970
|
-
101,
|
|
5971
|
-
0,
|
|
5972
|
-
161,
|
|
5973
|
-
6,
|
|
5974
|
-
10,
|
|
5975
|
-
9,
|
|
5976
|
-
357,
|
|
5977
|
-
0,
|
|
5978
|
-
62,
|
|
5979
|
-
13,
|
|
5980
|
-
499,
|
|
5981
|
-
13,
|
|
5982
|
-
245,
|
|
5983
|
-
1,
|
|
5984
|
-
2,
|
|
5985
|
-
9,
|
|
5986
|
-
233,
|
|
5987
|
-
0,
|
|
5988
|
-
3,
|
|
5989
|
-
0,
|
|
5990
|
-
8,
|
|
5991
|
-
1,
|
|
5992
|
-
6,
|
|
5993
|
-
0,
|
|
5994
|
-
475,
|
|
5995
|
-
6,
|
|
5996
|
-
110,
|
|
5997
|
-
6,
|
|
5998
|
-
6,
|
|
5999
|
-
9,
|
|
6000
|
-
4759,
|
|
6001
|
-
9,
|
|
6002
|
-
787719,
|
|
6003
|
-
239
|
|
6004
|
-
];
|
|
6005
|
-
function isInAstralSet(code, set) {
|
|
6006
|
-
let pos = 65536;
|
|
6007
|
-
for (let i = 0, length = set.length; i < length; i += 2) {
|
|
6008
|
-
pos += set[i];
|
|
6009
|
-
if (pos > code) return false;
|
|
6010
|
-
pos += set[i + 1];
|
|
6011
|
-
if (pos >= code) return true;
|
|
6012
|
-
}
|
|
6013
|
-
return false;
|
|
6014
|
-
}
|
|
6015
|
-
function isIdentifierStart(code) {
|
|
6016
|
-
if (code < 65) return code === 36;
|
|
6017
|
-
if (code <= 90) return true;
|
|
6018
|
-
if (code < 97) return code === 95;
|
|
6019
|
-
if (code <= 122) return true;
|
|
6020
|
-
if (code <= 65535) return code >= 170 && nonASCIIidentifierStart.test(String.fromCharCode(code));
|
|
6021
|
-
return isInAstralSet(code, astralIdentifierStartCodes);
|
|
6022
|
-
}
|
|
6023
|
-
function isIdentifierChar(code) {
|
|
6024
|
-
if (code < 48) return code === 36;
|
|
6025
|
-
if (code < 58) return true;
|
|
6026
|
-
if (code < 65) return false;
|
|
6027
|
-
if (code <= 90) return true;
|
|
6028
|
-
if (code < 97) return code === 95;
|
|
6029
|
-
if (code <= 122) return true;
|
|
6030
|
-
if (code <= 65535) return code >= 170 && nonASCIIidentifier.test(String.fromCharCode(code));
|
|
6031
|
-
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
6032
|
-
}
|
|
6033
|
-
function isIdentifierName(name) {
|
|
6034
|
-
let isFirst = true;
|
|
6035
|
-
for (let i = 0; i < name.length; i++) {
|
|
6036
|
-
let cp = name.charCodeAt(i);
|
|
6037
|
-
if ((cp & 64512) === 55296 && i + 1 < name.length) {
|
|
6038
|
-
const trail = name.charCodeAt(++i);
|
|
6039
|
-
if ((trail & 64512) === 56320) cp = 65536 + ((cp & 1023) << 10) + (trail & 1023);
|
|
6040
|
-
}
|
|
6041
|
-
if (isFirst) {
|
|
6042
|
-
isFirst = false;
|
|
6043
|
-
if (!isIdentifierStart(cp)) return false;
|
|
6044
|
-
} else if (!isIdentifierChar(cp)) return false;
|
|
6045
|
-
}
|
|
6046
|
-
return !isFirst;
|
|
6047
|
-
}
|
|
6048
|
-
}));
|
|
6049
|
-
//#endregion
|
|
6050
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js
|
|
6051
|
-
var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6052
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6053
|
-
exports.isKeyword = isKeyword;
|
|
6054
|
-
exports.isReservedWord = isReservedWord;
|
|
6055
|
-
exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
|
|
6056
|
-
exports.isStrictBindReservedWord = isStrictBindReservedWord;
|
|
6057
|
-
exports.isStrictReservedWord = isStrictReservedWord;
|
|
6058
|
-
const reservedWords = {
|
|
6059
|
-
keyword: [
|
|
6060
|
-
"break",
|
|
6061
|
-
"case",
|
|
6062
|
-
"catch",
|
|
6063
|
-
"continue",
|
|
6064
|
-
"debugger",
|
|
6065
|
-
"default",
|
|
6066
|
-
"do",
|
|
6067
|
-
"else",
|
|
6068
|
-
"finally",
|
|
6069
|
-
"for",
|
|
6070
|
-
"function",
|
|
6071
|
-
"if",
|
|
6072
|
-
"return",
|
|
6073
|
-
"switch",
|
|
6074
|
-
"throw",
|
|
6075
|
-
"try",
|
|
6076
|
-
"var",
|
|
6077
|
-
"const",
|
|
6078
|
-
"while",
|
|
6079
|
-
"with",
|
|
6080
|
-
"new",
|
|
6081
|
-
"this",
|
|
6082
|
-
"super",
|
|
6083
|
-
"class",
|
|
6084
|
-
"extends",
|
|
6085
|
-
"export",
|
|
6086
|
-
"import",
|
|
6087
|
-
"null",
|
|
6088
|
-
"true",
|
|
6089
|
-
"false",
|
|
6090
|
-
"in",
|
|
6091
|
-
"instanceof",
|
|
6092
|
-
"typeof",
|
|
6093
|
-
"void",
|
|
6094
|
-
"delete"
|
|
6095
|
-
],
|
|
6096
|
-
strict: [
|
|
6097
|
-
"implements",
|
|
6098
|
-
"interface",
|
|
6099
|
-
"let",
|
|
6100
|
-
"package",
|
|
6101
|
-
"private",
|
|
6102
|
-
"protected",
|
|
6103
|
-
"public",
|
|
6104
|
-
"static",
|
|
6105
|
-
"yield"
|
|
6106
|
-
],
|
|
6107
|
-
strictBind: ["eval", "arguments"]
|
|
6108
|
-
};
|
|
6109
|
-
const keywords = new Set(reservedWords.keyword);
|
|
6110
|
-
const reservedWordsStrictSet = new Set(reservedWords.strict);
|
|
6111
|
-
const reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
|
|
6112
|
-
function isReservedWord(word, inModule) {
|
|
6113
|
-
return inModule && word === "await" || word === "enum";
|
|
6114
|
-
}
|
|
6115
|
-
function isStrictReservedWord(word, inModule) {
|
|
6116
|
-
return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
|
|
6117
|
-
}
|
|
6118
|
-
function isStrictBindOnlyReservedWord(word) {
|
|
6119
|
-
return reservedWordsStrictBindSet.has(word);
|
|
6120
|
-
}
|
|
6121
|
-
function isStrictBindReservedWord(word, inModule) {
|
|
6122
|
-
return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
|
|
6123
|
-
}
|
|
6124
|
-
function isKeyword(word) {
|
|
6125
|
-
return keywords.has(word);
|
|
6126
|
-
}
|
|
6127
|
-
}));
|
|
6128
|
-
//#endregion
|
|
6129
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
6130
|
-
var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6131
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6132
|
-
Object.defineProperty(exports, "isIdentifierChar", {
|
|
6133
|
-
enumerable: true,
|
|
6134
|
-
get: function() {
|
|
6135
|
-
return _identifier.isIdentifierChar;
|
|
6136
|
-
}
|
|
6137
|
-
});
|
|
6138
|
-
Object.defineProperty(exports, "isIdentifierName", {
|
|
6139
|
-
enumerable: true,
|
|
6140
|
-
get: function() {
|
|
6141
|
-
return _identifier.isIdentifierName;
|
|
6142
|
-
}
|
|
6143
|
-
});
|
|
6144
|
-
Object.defineProperty(exports, "isIdentifierStart", {
|
|
6145
|
-
enumerable: true,
|
|
6146
|
-
get: function() {
|
|
6147
|
-
return _identifier.isIdentifierStart;
|
|
6148
|
-
}
|
|
6149
|
-
});
|
|
6150
|
-
Object.defineProperty(exports, "isKeyword", {
|
|
6151
|
-
enumerable: true,
|
|
6152
|
-
get: function() {
|
|
6153
|
-
return _keyword.isKeyword;
|
|
6154
|
-
}
|
|
6155
|
-
});
|
|
6156
|
-
Object.defineProperty(exports, "isReservedWord", {
|
|
6157
|
-
enumerable: true,
|
|
6158
|
-
get: function() {
|
|
6159
|
-
return _keyword.isReservedWord;
|
|
6160
|
-
}
|
|
6161
|
-
});
|
|
6162
|
-
Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
|
|
6163
|
-
enumerable: true,
|
|
6164
|
-
get: function() {
|
|
6165
|
-
return _keyword.isStrictBindOnlyReservedWord;
|
|
6166
|
-
}
|
|
6167
|
-
});
|
|
6168
|
-
Object.defineProperty(exports, "isStrictBindReservedWord", {
|
|
6169
|
-
enumerable: true,
|
|
6170
|
-
get: function() {
|
|
6171
|
-
return _keyword.isStrictBindReservedWord;
|
|
6172
|
-
}
|
|
6173
|
-
});
|
|
6174
|
-
Object.defineProperty(exports, "isStrictReservedWord", {
|
|
6175
|
-
enumerable: true,
|
|
6176
|
-
get: function() {
|
|
6177
|
-
return _keyword.isStrictReservedWord;
|
|
6178
|
-
}
|
|
6179
|
-
});
|
|
6180
|
-
var _identifier = require_identifier();
|
|
6181
|
-
var _keyword = require_keyword();
|
|
6182
|
-
}));
|
|
6183
|
-
//#endregion
|
|
6184
|
-
//#region ../../node_modules/.pnpm/@babel+code-frame@7.29.7/node_modules/@babel/code-frame/lib/index.js
|
|
6185
|
-
var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6186
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6187
|
-
var picocolors = require_picocolors();
|
|
6188
|
-
var jsTokens = require_js_tokens();
|
|
6189
|
-
var helperValidatorIdentifier = require_lib$1();
|
|
6190
|
-
function isColorSupported() {
|
|
6191
|
-
return typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported;
|
|
6192
|
-
}
|
|
6193
|
-
const compose = (f, g) => (v) => f(g(v));
|
|
6194
|
-
function buildDefs(colors) {
|
|
6195
|
-
return {
|
|
6196
|
-
keyword: colors.cyan,
|
|
6197
|
-
capitalized: colors.yellow,
|
|
6198
|
-
jsxIdentifier: colors.yellow,
|
|
6199
|
-
punctuator: colors.yellow,
|
|
6200
|
-
number: colors.magenta,
|
|
6201
|
-
string: colors.green,
|
|
6202
|
-
regex: colors.magenta,
|
|
6203
|
-
comment: colors.gray,
|
|
6204
|
-
invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
|
|
6205
|
-
gutter: colors.gray,
|
|
6206
|
-
marker: compose(colors.red, colors.bold),
|
|
6207
|
-
message: compose(colors.red, colors.bold),
|
|
6208
|
-
reset: colors.reset
|
|
6209
|
-
};
|
|
6210
|
-
}
|
|
6211
|
-
const defsOn = buildDefs(picocolors.createColors(true));
|
|
6212
|
-
const defsOff = buildDefs(picocolors.createColors(false));
|
|
6213
|
-
function getDefs(enabled) {
|
|
6214
|
-
return enabled ? defsOn : defsOff;
|
|
6215
|
-
}
|
|
6216
|
-
const sometimesKeywords = /* @__PURE__ */ new Set([
|
|
6217
|
-
"as",
|
|
6218
|
-
"async",
|
|
6219
|
-
"from",
|
|
6220
|
-
"get",
|
|
6221
|
-
"of",
|
|
6222
|
-
"set"
|
|
6223
|
-
]);
|
|
6224
|
-
const NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
|
|
6225
|
-
const BRACKET = /^[()[\]{}]$/;
|
|
6226
|
-
let tokenize;
|
|
6227
|
-
const JSX_TAG = /^[a-z][\w-]*$/i;
|
|
6228
|
-
const getTokenType = function(token, offset, text) {
|
|
6229
|
-
if (token.type === "name") {
|
|
6230
|
-
const tokenValue = token.value;
|
|
6231
|
-
if (helperValidatorIdentifier.isKeyword(tokenValue) || helperValidatorIdentifier.isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) return "keyword";
|
|
6232
|
-
if (JSX_TAG.test(tokenValue) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) return "jsxIdentifier";
|
|
6233
|
-
const firstChar = String.fromCodePoint(tokenValue.codePointAt(0));
|
|
6234
|
-
if (firstChar !== firstChar.toLowerCase()) return "capitalized";
|
|
6235
|
-
}
|
|
6236
|
-
if (token.type === "punctuator" && BRACKET.test(token.value)) return "bracket";
|
|
6237
|
-
if (token.type === "invalid" && (token.value === "@" || token.value === "#")) return "punctuator";
|
|
6238
|
-
return token.type;
|
|
6239
|
-
};
|
|
6240
|
-
tokenize = function* (text) {
|
|
6241
|
-
let match;
|
|
6242
|
-
while (match = jsTokens.default.exec(text)) {
|
|
6243
|
-
const token = jsTokens.matchToToken(match);
|
|
6244
|
-
yield {
|
|
6245
|
-
type: getTokenType(token, match.index, text),
|
|
6246
|
-
value: token.value
|
|
6247
|
-
};
|
|
6248
|
-
}
|
|
6249
|
-
};
|
|
6250
|
-
function highlight(text) {
|
|
6251
|
-
if (text === "") return "";
|
|
6252
|
-
const defs = getDefs(true);
|
|
6253
|
-
let highlighted = "";
|
|
6254
|
-
for (const { type, value } of tokenize(text)) if (type in defs) highlighted += value.split(NEWLINE$1).map((str) => defs[type](str)).join("\n");
|
|
6255
|
-
else highlighted += value;
|
|
6256
|
-
return highlighted;
|
|
6257
|
-
}
|
|
6258
|
-
let deprecationWarningShown = false;
|
|
6259
|
-
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
6260
|
-
function getMarkerLines(loc, source, opts, startLineBaseZero) {
|
|
6261
|
-
const startLoc = Object.assign({
|
|
6262
|
-
column: 0,
|
|
6263
|
-
line: -1
|
|
6264
|
-
}, loc.start);
|
|
6265
|
-
const endLoc = Object.assign({}, startLoc, loc.end);
|
|
6266
|
-
const { linesAbove = 2, linesBelow = 3 } = opts || {};
|
|
6267
|
-
const startLine = startLoc.line - startLineBaseZero;
|
|
6268
|
-
const startColumn = startLoc.column;
|
|
6269
|
-
const endLine = endLoc.line - startLineBaseZero;
|
|
6270
|
-
const endColumn = endLoc.column;
|
|
6271
|
-
let start = Math.max(startLine - (linesAbove + 1), 0);
|
|
6272
|
-
let end = Math.min(source.length, endLine + linesBelow);
|
|
6273
|
-
if (startLine === -1) start = 0;
|
|
6274
|
-
if (endLine === -1) end = source.length;
|
|
6275
|
-
const lineDiff = endLine - startLine;
|
|
6276
|
-
const markerLines = {};
|
|
6277
|
-
if (lineDiff) for (let i = 0; i <= lineDiff; i++) {
|
|
6278
|
-
const lineNumber = i + startLine;
|
|
6279
|
-
if (!startColumn) markerLines[lineNumber] = true;
|
|
6280
|
-
else if (i === 0) markerLines[lineNumber] = [startColumn, source[lineNumber - 1].length - startColumn + 1];
|
|
6281
|
-
else if (i === lineDiff) markerLines[lineNumber] = [0, endColumn];
|
|
6282
|
-
else markerLines[lineNumber] = [0, source[lineNumber - i].length];
|
|
6283
|
-
}
|
|
6284
|
-
else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [startColumn, 0];
|
|
6285
|
-
else markerLines[startLine] = true;
|
|
6286
|
-
else markerLines[startLine] = [startColumn, endColumn - startColumn];
|
|
6287
|
-
return {
|
|
6288
|
-
start,
|
|
6289
|
-
end,
|
|
6290
|
-
markerLines
|
|
6291
|
-
};
|
|
6292
|
-
}
|
|
6293
|
-
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
6294
|
-
const shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
|
|
6295
|
-
const startLineBaseZero = (opts.startLine || 1) - 1;
|
|
6296
|
-
const defs = getDefs(shouldHighlight);
|
|
6297
|
-
const { start, end, markerLines } = getMarkerLines(loc, rawLines.split(NEWLINE), opts, startLineBaseZero);
|
|
6298
|
-
const hasColumns = loc.start && typeof loc.start.column === "number";
|
|
6299
|
-
const numberMaxWidth = String(end + startLineBaseZero).length;
|
|
6300
|
-
let frame = (shouldHighlight ? highlight(rawLines) : rawLines).split(NEWLINE, end).slice(start, end).map((line, index) => {
|
|
6301
|
-
const number = start + 1 + index;
|
|
6302
|
-
const gutter = ` ${` ${number + startLineBaseZero}`.slice(-numberMaxWidth)} |`;
|
|
6303
|
-
const hasMarker = markerLines[number];
|
|
6304
|
-
const lastMarkerLine = !markerLines[number + 1];
|
|
6305
|
-
if (hasMarker) {
|
|
6306
|
-
let markerLine = "";
|
|
6307
|
-
if (Array.isArray(hasMarker)) {
|
|
6308
|
-
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
|
|
6309
|
-
const numberOfMarkers = hasMarker[1] || 1;
|
|
6310
|
-
markerLine = [
|
|
6311
|
-
"\n ",
|
|
6312
|
-
defs.gutter(gutter.replace(/\d/g, " ")),
|
|
6313
|
-
" ",
|
|
6314
|
-
markerSpacing,
|
|
6315
|
-
defs.marker("^").repeat(numberOfMarkers)
|
|
6316
|
-
].join("");
|
|
6317
|
-
if (lastMarkerLine && opts.message) markerLine += " " + defs.message(opts.message);
|
|
4695
|
+
case "<":
|
|
4696
|
+
case "<=": break;
|
|
4697
|
+
/* istanbul ignore next */
|
|
4698
|
+
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
6318
4699
|
}
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
defs.gutter(gutter),
|
|
6322
|
-
line.length > 0 ? ` ${line}` : "",
|
|
6323
|
-
markerLine
|
|
6324
|
-
].join("");
|
|
6325
|
-
} else return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
|
|
6326
|
-
}).join("\n");
|
|
6327
|
-
if (opts.message && !hasColumns) frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
|
|
6328
|
-
if (shouldHighlight) return defs.reset(frame);
|
|
6329
|
-
else return frame;
|
|
6330
|
-
}
|
|
6331
|
-
function index(rawLines, lineNumber, colNumber, opts = {}) {
|
|
6332
|
-
if (!deprecationWarningShown) {
|
|
6333
|
-
deprecationWarningShown = true;
|
|
6334
|
-
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
|
6335
|
-
if (process.emitWarning) process.emitWarning(message, "DeprecationWarning");
|
|
6336
|
-
else {
|
|
6337
|
-
const deprecationError = /* @__PURE__ */ new Error(message);
|
|
6338
|
-
deprecationError.name = "DeprecationWarning";
|
|
6339
|
-
console.warn(/* @__PURE__ */ new Error(message));
|
|
6340
|
-
}
|
|
4700
|
+
});
|
|
4701
|
+
if (setMin && (!minver || gt(minver, setMin))) minver = setMin;
|
|
6341
4702
|
}
|
|
6342
|
-
|
|
6343
|
-
return
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
} }, opts);
|
|
6347
|
-
}
|
|
6348
|
-
exports.codeFrameColumns = codeFrameColumns;
|
|
6349
|
-
exports.default = index;
|
|
6350
|
-
exports.highlight = highlight;
|
|
4703
|
+
if (minver && range.test(minver)) return minver;
|
|
4704
|
+
return null;
|
|
4705
|
+
};
|
|
4706
|
+
module.exports = minVersion;
|
|
6351
4707
|
}));
|
|
6352
4708
|
//#endregion
|
|
6353
|
-
//#region
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
const { default: LinesAndColumns } = require_build();
|
|
6358
|
-
const { codeFrameColumns } = require_lib();
|
|
6359
|
-
const JSONError = errorEx("JSONError", {
|
|
6360
|
-
fileName: errorEx.append("in %s"),
|
|
6361
|
-
codeFrame: errorEx.append("\n\n%s\n")
|
|
6362
|
-
});
|
|
6363
|
-
const parseJson = (string, reviver, filename) => {
|
|
6364
|
-
if (typeof reviver === "string") {
|
|
6365
|
-
filename = reviver;
|
|
6366
|
-
reviver = null;
|
|
6367
|
-
}
|
|
6368
|
-
try {
|
|
6369
|
-
try {
|
|
6370
|
-
return JSON.parse(string, reviver);
|
|
6371
|
-
} catch (error) {
|
|
6372
|
-
fallback(string, reviver);
|
|
6373
|
-
throw error;
|
|
6374
|
-
}
|
|
6375
|
-
} catch (error) {
|
|
6376
|
-
error.message = error.message.replace(/\n/g, "");
|
|
6377
|
-
const indexMatch = error.message.match(/in JSON at position (\d+) while parsing/);
|
|
6378
|
-
const jsonError = new JSONError(error);
|
|
6379
|
-
if (filename) jsonError.fileName = filename;
|
|
6380
|
-
if (indexMatch && indexMatch.length > 0) {
|
|
6381
|
-
const lines = new LinesAndColumns(string);
|
|
6382
|
-
const index = Number(indexMatch[1]);
|
|
6383
|
-
const location = lines.locationForIndex(index);
|
|
6384
|
-
jsonError.codeFrame = codeFrameColumns(string, { start: {
|
|
6385
|
-
line: location.line + 1,
|
|
6386
|
-
column: location.column + 1
|
|
6387
|
-
} }, { highlightCode: true });
|
|
6388
|
-
}
|
|
6389
|
-
throw jsonError;
|
|
6390
|
-
}
|
|
6391
|
-
};
|
|
6392
|
-
parseJson.JSONError = JSONError;
|
|
6393
|
-
module.exports = parseJson;
|
|
6394
|
-
}));
|
|
4709
|
+
//#region src/lib/initCwd.ts
|
|
4710
|
+
function INIT_CWD() {
|
|
4711
|
+
return process.env.INIT_CWD ?? process.cwd();
|
|
4712
|
+
}
|
|
6395
4713
|
//#endregion
|
|
6396
4714
|
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
|
|
6397
4715
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -7100,8 +5418,10 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7100
5418
|
let pairHasKey = false;
|
|
7101
5419
|
if (_toString.call(pair) !== "[object Object]") return false;
|
|
7102
5420
|
let pairKey;
|
|
7103
|
-
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey))
|
|
7104
|
-
|
|
5421
|
+
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) {
|
|
5422
|
+
if (!pairHasKey) pairHasKey = true;
|
|
5423
|
+
else return false;
|
|
5424
|
+
}
|
|
7105
5425
|
if (!pairHasKey) return false;
|
|
7106
5426
|
if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
|
|
7107
5427
|
else return false;
|
|
@@ -7441,9 +5761,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7441
5761
|
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
|
|
7442
5762
|
keyNode = String(keyNode);
|
|
7443
5763
|
if (_result === null) _result = {};
|
|
7444
|
-
if (keyTag === "tag:yaml.org,2002:merge")
|
|
7445
|
-
|
|
7446
|
-
|
|
5764
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
5765
|
+
if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
5766
|
+
else mergeMappings(state, _result, valueNode, overridableKeys);
|
|
5767
|
+
} else {
|
|
7447
5768
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
7448
5769
|
state.line = startLine || state.line;
|
|
7449
5770
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -7728,14 +6049,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7728
6049
|
state.result = "";
|
|
7729
6050
|
while (ch !== 0) {
|
|
7730
6051
|
ch = state.input.charCodeAt(++state.position);
|
|
7731
|
-
if (ch === 43 || ch === 45)
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
else if (
|
|
7735
|
-
|
|
7736
|
-
detectedIndent
|
|
7737
|
-
|
|
7738
|
-
|
|
6052
|
+
if (ch === 43 || ch === 45) {
|
|
6053
|
+
if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
6054
|
+
else throwError(state, "repeat of a chomping mode identifier");
|
|
6055
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
6056
|
+
if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
6057
|
+
else if (!detectedIndent) {
|
|
6058
|
+
textIndent = nodeIndent + tmp - 1;
|
|
6059
|
+
detectedIndent = true;
|
|
6060
|
+
} else throwError(state, "repeat of an indentation width identifier");
|
|
6061
|
+
} else break;
|
|
7739
6062
|
}
|
|
7740
6063
|
if (isWhiteSpace(ch)) {
|
|
7741
6064
|
do
|
|
@@ -7766,16 +6089,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7766
6089
|
}
|
|
7767
6090
|
break;
|
|
7768
6091
|
}
|
|
7769
|
-
if (folding)
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
atMoreIndented
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
if (
|
|
7777
|
-
|
|
7778
|
-
|
|
6092
|
+
if (folding) {
|
|
6093
|
+
if (isWhiteSpace(ch)) {
|
|
6094
|
+
atMoreIndented = true;
|
|
6095
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
6096
|
+
} else if (atMoreIndented) {
|
|
6097
|
+
atMoreIndented = false;
|
|
6098
|
+
state.result += common.repeat("\n", emptyLines + 1);
|
|
6099
|
+
} else if (emptyLines === 0) {
|
|
6100
|
+
if (didReadContent) state.result += " ";
|
|
6101
|
+
} else state.result += common.repeat("\n", emptyLines);
|
|
6102
|
+
} else state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
7779
6103
|
didReadContent = true;
|
|
7780
6104
|
detectedIndent = true;
|
|
7781
6105
|
emptyLines = 0;
|
|
@@ -7904,8 +6228,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7904
6228
|
_keyLineStart = state.lineStart;
|
|
7905
6229
|
_keyPos = state.position;
|
|
7906
6230
|
}
|
|
7907
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
7908
|
-
|
|
6231
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
6232
|
+
if (atExplicitKey) keyNode = state.result;
|
|
6233
|
+
else valueNode = state.result;
|
|
6234
|
+
}
|
|
7909
6235
|
if (!atExplicitKey) {
|
|
7910
6236
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
7911
6237
|
keyTag = keyNode = valueNode = null;
|
|
@@ -7953,12 +6279,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7953
6279
|
} else throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
7954
6280
|
} else {
|
|
7955
6281
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
7956
|
-
if (ch === 33)
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
6282
|
+
if (ch === 33) {
|
|
6283
|
+
if (!isNamed) {
|
|
6284
|
+
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
6285
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
|
|
6286
|
+
isNamed = true;
|
|
6287
|
+
_position = state.position + 1;
|
|
6288
|
+
} else throwError(state, "tag suffix cannot contain exclamation marks");
|
|
6289
|
+
}
|
|
7962
6290
|
ch = state.input.charCodeAt(++state.position);
|
|
7963
6291
|
}
|
|
7964
6292
|
tagName = state.input.slice(_position, state.position);
|
|
@@ -8062,21 +6390,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8062
6390
|
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
|
|
8063
6391
|
else flowIndent = parentIndent + 1;
|
|
8064
6392
|
blockIndent = state.position - state.lineStart;
|
|
8065
|
-
if (indentStatus === 1)
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
6393
|
+
if (indentStatus === 1) {
|
|
6394
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
|
|
6395
|
+
else {
|
|
6396
|
+
const ch = state.input.charCodeAt(state.position);
|
|
6397
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
|
|
6398
|
+
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
|
|
6399
|
+
else if (readAlias(state)) {
|
|
6400
|
+
hasContent = true;
|
|
6401
|
+
if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
|
|
6402
|
+
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
6403
|
+
hasContent = true;
|
|
6404
|
+
if (state.tag === null) state.tag = "?";
|
|
6405
|
+
}
|
|
6406
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
8076
6407
|
}
|
|
8077
|
-
|
|
8078
|
-
}
|
|
8079
|
-
else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
6408
|
+
} else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
8080
6409
|
}
|
|
8081
6410
|
if (state.tag === null) {
|
|
8082
6411
|
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
@@ -8582,8 +6911,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8582
6911
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
8583
6912
|
if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
|
|
8584
6913
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
8585
|
-
if (explicitPair)
|
|
8586
|
-
|
|
6914
|
+
if (explicitPair) {
|
|
6915
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
|
|
6916
|
+
else pairBuffer += "? ";
|
|
6917
|
+
}
|
|
8587
6918
|
pairBuffer += state.dump;
|
|
8588
6919
|
if (explicitPair) pairBuffer += generateNextLine(state, level);
|
|
8589
6920
|
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) continue;
|
|
@@ -8600,9 +6931,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8600
6931
|
for (let index = 0, length = typeList.length; index < length; index += 1) {
|
|
8601
6932
|
const type = typeList[index];
|
|
8602
6933
|
if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
|
|
8603
|
-
if (explicit)
|
|
8604
|
-
|
|
8605
|
-
|
|
6934
|
+
if (explicit) {
|
|
6935
|
+
if (type.multi && type.representName) state.tag = type.representName(object);
|
|
6936
|
+
else state.tag = type.tag;
|
|
6937
|
+
} else state.tag = "?";
|
|
8606
6938
|
if (type.represent) {
|
|
8607
6939
|
const style = state.styleMap[type.tag] || type.defaultStyle;
|
|
8608
6940
|
let _result;
|
|
@@ -8634,22 +6966,24 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8634
6966
|
if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = "*ref_" + duplicateIndex;
|
|
8635
6967
|
else {
|
|
8636
6968
|
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
|
|
8637
|
-
if (type === "[object Object]")
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
|
|
8651
|
-
|
|
8652
|
-
|
|
6969
|
+
if (type === "[object Object]") {
|
|
6970
|
+
if (block && Object.keys(state.dump).length !== 0) {
|
|
6971
|
+
writeBlockMapping(state, level, state.dump, compact);
|
|
6972
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
6973
|
+
} else {
|
|
6974
|
+
writeFlowMapping(state, level, state.dump);
|
|
6975
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
6976
|
+
}
|
|
6977
|
+
} else if (type === "[object Array]") {
|
|
6978
|
+
if (block && state.dump.length !== 0) {
|
|
6979
|
+
if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
|
|
6980
|
+
else writeBlockSequence(state, level, state.dump, compact);
|
|
6981
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
6982
|
+
} else {
|
|
6983
|
+
writeFlowSequence(state, level, state.dump);
|
|
6984
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
6985
|
+
}
|
|
6986
|
+
} else if (type === "[object String]") {
|
|
8653
6987
|
if (state.tag !== "?") writeScalar(state, state.dump, level, iskey, inblock);
|
|
8654
6988
|
} else if (type === "[object Undefined]") return false;
|
|
8655
6989
|
else {
|
|
@@ -8740,22 +7074,15 @@ var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8740
7074
|
module.exports.safeDump = renamed("safeDump", "dump");
|
|
8741
7075
|
}));
|
|
8742
7076
|
//#endregion
|
|
8743
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7077
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/loaders.js
|
|
8744
7078
|
var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8745
|
-
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
8746
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
8747
|
-
};
|
|
8748
7079
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8749
|
-
exports.
|
|
8750
|
-
const fs_1$2 = __require("fs");
|
|
7080
|
+
exports.loadYaml = exports.loadJson = exports.loadJs = exports.loadJsSync = void 0;
|
|
8751
7081
|
const promises_1$1 = __require("fs/promises");
|
|
8752
|
-
const path_1$3 = __importDefault(__require("path"));
|
|
8753
7082
|
const url_1 = __require("url");
|
|
8754
|
-
const crypto_1 = __require("crypto");
|
|
8755
|
-
let importFresh;
|
|
8756
7083
|
exports.loadJsSync = function loadJsSync(filepath) {
|
|
8757
|
-
|
|
8758
|
-
return
|
|
7084
|
+
delete __require.cache[__require.resolve(filepath)];
|
|
7085
|
+
return __require(filepath);
|
|
8759
7086
|
};
|
|
8760
7087
|
exports.loadJs = async function loadJs(filepath) {
|
|
8761
7088
|
try {
|
|
@@ -8771,11 +7098,9 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8771
7098
|
}
|
|
8772
7099
|
}
|
|
8773
7100
|
};
|
|
8774
|
-
let parseJson;
|
|
8775
7101
|
exports.loadJson = function loadJson(filepath, content) {
|
|
8776
|
-
if (parseJson === void 0) parseJson = require_parse_json();
|
|
8777
7102
|
try {
|
|
8778
|
-
return
|
|
7103
|
+
return JSON.parse(content);
|
|
8779
7104
|
} catch (error) {
|
|
8780
7105
|
error.message = `JSON Error in ${filepath}:\n${error.message}`;
|
|
8781
7106
|
throw error;
|
|
@@ -8791,73 +7116,12 @@ var require_loaders = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8791
7116
|
throw error;
|
|
8792
7117
|
}
|
|
8793
7118
|
};
|
|
8794
|
-
let typescript;
|
|
8795
|
-
exports.loadTsSync = function loadTsSync(filepath, content) {
|
|
8796
|
-
/* istanbul ignore next -- @preserve */
|
|
8797
|
-
if (typescript === void 0) typescript = __require("typescript");
|
|
8798
|
-
const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.cjs`;
|
|
8799
|
-
try {
|
|
8800
|
-
const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
|
|
8801
|
-
config.compilerOptions = {
|
|
8802
|
-
...config.compilerOptions,
|
|
8803
|
-
module: typescript.ModuleKind.NodeNext,
|
|
8804
|
-
moduleResolution: typescript.ModuleResolutionKind.NodeNext,
|
|
8805
|
-
target: typescript.ScriptTarget.ES2022,
|
|
8806
|
-
noEmit: false
|
|
8807
|
-
};
|
|
8808
|
-
content = typescript.transpileModule(content, config).outputText;
|
|
8809
|
-
(0, fs_1$2.writeFileSync)(compiledFilepath, content);
|
|
8810
|
-
return (0, exports.loadJsSync)(compiledFilepath, content).default;
|
|
8811
|
-
} catch (error) {
|
|
8812
|
-
error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
|
|
8813
|
-
throw error;
|
|
8814
|
-
} finally {
|
|
8815
|
-
if ((0, fs_1$2.existsSync)(compiledFilepath)) (0, fs_1$2.rmSync)(compiledFilepath);
|
|
8816
|
-
}
|
|
8817
|
-
};
|
|
8818
|
-
exports.loadTs = async function loadTs(filepath, content) {
|
|
8819
|
-
if (typescript === void 0) typescript = (await import("typescript")).default;
|
|
8820
|
-
const compiledFilepath = `${filepath}.${(0, crypto_1.randomUUID)()}.mjs`;
|
|
8821
|
-
let transpiledContent;
|
|
8822
|
-
try {
|
|
8823
|
-
try {
|
|
8824
|
-
const config = resolveTsConfig(path_1$3.default.dirname(filepath)) ?? {};
|
|
8825
|
-
config.compilerOptions = {
|
|
8826
|
-
...config.compilerOptions,
|
|
8827
|
-
module: typescript.ModuleKind.ES2022,
|
|
8828
|
-
moduleResolution: typescript.ModuleResolutionKind.Bundler,
|
|
8829
|
-
target: typescript.ScriptTarget.ES2022,
|
|
8830
|
-
noEmit: false
|
|
8831
|
-
};
|
|
8832
|
-
transpiledContent = typescript.transpileModule(content, config).outputText;
|
|
8833
|
-
await (0, promises_1$1.writeFile)(compiledFilepath, transpiledContent);
|
|
8834
|
-
} catch (error) {
|
|
8835
|
-
error.message = `TypeScript Error in ${filepath}:\n${error.message}`;
|
|
8836
|
-
throw error;
|
|
8837
|
-
}
|
|
8838
|
-
return await (0, exports.loadJs)(compiledFilepath, transpiledContent);
|
|
8839
|
-
} finally {
|
|
8840
|
-
if ((0, fs_1$2.existsSync)(compiledFilepath)) await (0, promises_1$1.rm)(compiledFilepath);
|
|
8841
|
-
}
|
|
8842
|
-
};
|
|
8843
|
-
function resolveTsConfig(directory) {
|
|
8844
|
-
const filePath = typescript.findConfigFile(directory, (fileName) => {
|
|
8845
|
-
return typescript.sys.fileExists(fileName);
|
|
8846
|
-
});
|
|
8847
|
-
if (filePath !== void 0) {
|
|
8848
|
-
const { config, error } = typescript.readConfigFile(filePath, (path) => typescript.sys.readFile(path));
|
|
8849
|
-
if (error) throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
|
|
8850
|
-
return config;
|
|
8851
|
-
}
|
|
8852
|
-
}
|
|
8853
7119
|
}));
|
|
8854
7120
|
//#endregion
|
|
8855
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7121
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/defaults.js
|
|
8856
7122
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8857
7123
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8858
|
-
exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = void 0;
|
|
8859
|
-
exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
|
|
8860
|
-
exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
|
|
7124
|
+
exports.defaultLoadersSync = exports.defaultLoaders = exports.metaSearchPlaces = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
|
|
8861
7125
|
const loaders_1 = require_loaders();
|
|
8862
7126
|
function getDefaultSearchPlaces(moduleName) {
|
|
8863
7127
|
return [
|
|
@@ -8884,6 +7148,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8884
7148
|
`${moduleName}.config.mjs`
|
|
8885
7149
|
];
|
|
8886
7150
|
}
|
|
7151
|
+
exports.getDefaultSearchPlaces = getDefaultSearchPlaces;
|
|
8887
7152
|
function getDefaultSearchPlacesSync(moduleName) {
|
|
8888
7153
|
return [
|
|
8889
7154
|
"package.json",
|
|
@@ -8906,6 +7171,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8906
7171
|
`${moduleName}.config.cjs`
|
|
8907
7172
|
];
|
|
8908
7173
|
}
|
|
7174
|
+
exports.getDefaultSearchPlacesSync = getDefaultSearchPlacesSync;
|
|
8909
7175
|
exports.globalConfigSearchPlaces = [
|
|
8910
7176
|
"config",
|
|
8911
7177
|
"config.json",
|
|
@@ -8940,7 +7206,9 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8940
7206
|
".mjs": loaders_1.loadJs,
|
|
8941
7207
|
".cjs": loaders_1.loadJs,
|
|
8942
7208
|
".js": loaders_1.loadJs,
|
|
8943
|
-
".ts": loaders_1.
|
|
7209
|
+
".ts": loaders_1.loadJs,
|
|
7210
|
+
".cts": loaders_1.loadJs,
|
|
7211
|
+
".mts": loaders_1.loadJs,
|
|
8944
7212
|
".json": loaders_1.loadJson,
|
|
8945
7213
|
".yaml": loaders_1.loadYaml,
|
|
8946
7214
|
".yml": loaders_1.loadYaml,
|
|
@@ -8949,7 +7217,8 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
8949
7217
|
exports.defaultLoadersSync = Object.freeze({
|
|
8950
7218
|
".cjs": loaders_1.loadJsSync,
|
|
8951
7219
|
".js": loaders_1.loadJsSync,
|
|
8952
|
-
".
|
|
7220
|
+
".cts": loaders_1.loadJsSync,
|
|
7221
|
+
".ts": loaders_1.loadJsSync,
|
|
8953
7222
|
".json": loaders_1.loadJson,
|
|
8954
7223
|
".yaml": loaders_1.loadYaml,
|
|
8955
7224
|
".yml": loaders_1.loadYaml,
|
|
@@ -9007,7 +7276,7 @@ var require_env_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9007
7276
|
module.exports.default = envPaths;
|
|
9008
7277
|
}));
|
|
9009
7278
|
//#endregion
|
|
9010
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7279
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/util.js
|
|
9011
7280
|
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9012
7281
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9013
7282
|
if (k2 === void 0) k2 = k;
|
|
@@ -9031,31 +7300,17 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9031
7300
|
}) : function(o, v) {
|
|
9032
7301
|
o["default"] = v;
|
|
9033
7302
|
});
|
|
9034
|
-
var __importStar = exports && exports.__importStar ||
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
return function(mod) {
|
|
9044
|
-
if (mod && mod.__esModule) return mod;
|
|
9045
|
-
var result = {};
|
|
9046
|
-
if (mod != null) {
|
|
9047
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
9048
|
-
}
|
|
9049
|
-
__setModuleDefault(result, mod);
|
|
9050
|
-
return result;
|
|
9051
|
-
};
|
|
9052
|
-
})();
|
|
7303
|
+
var __importStar = exports && exports.__importStar || function(mod) {
|
|
7304
|
+
if (mod && mod.__esModule) return mod;
|
|
7305
|
+
var result = {};
|
|
7306
|
+
if (mod != null) {
|
|
7307
|
+
for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
7308
|
+
}
|
|
7309
|
+
__setModuleDefault(result, mod);
|
|
7310
|
+
return result;
|
|
7311
|
+
};
|
|
9053
7312
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9054
|
-
exports.emplace =
|
|
9055
|
-
exports.getPropertyByPath = getPropertyByPath;
|
|
9056
|
-
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
9057
|
-
exports.isDirectory = isDirectory;
|
|
9058
|
-
exports.isDirectorySync = isDirectorySync;
|
|
7313
|
+
exports.isDirectorySync = exports.isDirectory = exports.removeUndefinedValuesFromObject = exports.decodeFileContent = exports.getPropertyByPath = exports.emplace = void 0;
|
|
9059
7314
|
const fs_1$1 = __importStar(__require("fs"));
|
|
9060
7315
|
/**
|
|
9061
7316
|
* @internal
|
|
@@ -9067,6 +7322,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9067
7322
|
map.set(key, result);
|
|
9068
7323
|
return result;
|
|
9069
7324
|
}
|
|
7325
|
+
exports.emplace = emplace;
|
|
9070
7326
|
/**
|
|
9071
7327
|
* @internal
|
|
9072
7328
|
*/
|
|
@@ -9077,10 +7333,19 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9077
7333
|
return previous[key];
|
|
9078
7334
|
}, source);
|
|
9079
7335
|
}
|
|
7336
|
+
exports.getPropertyByPath = getPropertyByPath;
|
|
7337
|
+
/** @internal */
|
|
7338
|
+
function decodeFileContent(buffer) {
|
|
7339
|
+
if (buffer[0] === 255 && buffer[1] === 254) return new TextDecoder("utf-16le").decode(buffer);
|
|
7340
|
+
if (buffer[0] === 254 && buffer[1] === 255) return new TextDecoder("utf-16be").decode(buffer);
|
|
7341
|
+
return buffer.toString("utf-8");
|
|
7342
|
+
}
|
|
7343
|
+
exports.decodeFileContent = decodeFileContent;
|
|
9080
7344
|
/** @internal */
|
|
9081
7345
|
function removeUndefinedValuesFromObject(options) {
|
|
9082
7346
|
return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
|
|
9083
7347
|
}
|
|
7348
|
+
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
9084
7349
|
/** @internal */
|
|
9085
7350
|
/* istanbul ignore next -- @preserve */
|
|
9086
7351
|
async function isDirectory(path) {
|
|
@@ -9091,6 +7356,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9091
7356
|
throw e;
|
|
9092
7357
|
}
|
|
9093
7358
|
}
|
|
7359
|
+
exports.isDirectory = isDirectory;
|
|
9094
7360
|
/** @internal */
|
|
9095
7361
|
/* istanbul ignore next -- @preserve */
|
|
9096
7362
|
function isDirectorySync(path) {
|
|
@@ -9101,16 +7367,16 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9101
7367
|
throw e;
|
|
9102
7368
|
}
|
|
9103
7369
|
}
|
|
7370
|
+
exports.isDirectorySync = isDirectorySync;
|
|
9104
7371
|
}));
|
|
9105
7372
|
//#endregion
|
|
9106
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7373
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerBase.js
|
|
9107
7374
|
var require_ExplorerBase = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9108
7375
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
9109
7376
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
9110
7377
|
};
|
|
9111
7378
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9112
|
-
exports.ExplorerBase = void 0;
|
|
9113
|
-
exports.getExtensionDescription = getExtensionDescription;
|
|
7379
|
+
exports.getExtensionDescription = exports.ExplorerBase = void 0;
|
|
9114
7380
|
const env_paths_1 = __importDefault(require_env_paths());
|
|
9115
7381
|
const os_1 = __importDefault(__require("os"));
|
|
9116
7382
|
const path_1$2 = __importDefault(__require("path"));
|
|
@@ -9222,13 +7488,13 @@ ${[...importStack, fullPath].map((path, i) => `${i + 1}. ${path}`).join("\n")} (
|
|
|
9222
7488
|
/* istanbul ignore next -- @preserve */
|
|
9223
7489
|
return extension ? `extension "${extension}"` : "files without extensions";
|
|
9224
7490
|
}
|
|
7491
|
+
exports.getExtensionDescription = getExtensionDescription;
|
|
9225
7492
|
}));
|
|
9226
7493
|
//#endregion
|
|
9227
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7494
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/merge.js
|
|
9228
7495
|
var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9229
7496
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9230
|
-
exports.hasOwn = void 0;
|
|
9231
|
-
exports.mergeAll = mergeAll;
|
|
7497
|
+
exports.mergeAll = exports.hasOwn = void 0;
|
|
9232
7498
|
exports.hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
|
|
9233
7499
|
const objToString = Function.prototype.call.bind(Object.prototype.toString);
|
|
9234
7500
|
function isPlainObject(obj) {
|
|
@@ -9260,9 +7526,10 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9260
7526
|
function mergeAll(objects, options) {
|
|
9261
7527
|
return objects.reduce((target, source) => merge(target, source, options), {});
|
|
9262
7528
|
}
|
|
7529
|
+
exports.mergeAll = mergeAll;
|
|
9263
7530
|
}));
|
|
9264
7531
|
//#endregion
|
|
9265
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7532
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/Explorer.js
|
|
9266
7533
|
var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9267
7534
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
9268
7535
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -9321,7 +7588,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9321
7588
|
return await search();
|
|
9322
7589
|
}
|
|
9323
7590
|
async #readConfiguration(filepath, importStack = []) {
|
|
9324
|
-
const contents = await promises_1.default.readFile(filepath
|
|
7591
|
+
const contents = (0, util_js_1.decodeFileContent)(await promises_1.default.readFile(filepath));
|
|
9325
7592
|
return this.toCosmiconfigResult(filepath, await this.#loadConfigFileWithImports(filepath, contents, importStack));
|
|
9326
7593
|
}
|
|
9327
7594
|
async #loadConfigFileWithImports(filepath, contents, importStack) {
|
|
@@ -9397,7 +7664,7 @@ var require_Explorer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9397
7664
|
exports.Explorer = Explorer;
|
|
9398
7665
|
}));
|
|
9399
7666
|
//#endregion
|
|
9400
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7667
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/ExplorerSync.js
|
|
9401
7668
|
var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9402
7669
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
9403
7670
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -9456,7 +7723,7 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9456
7723
|
return search();
|
|
9457
7724
|
}
|
|
9458
7725
|
#readConfiguration(filepath, importStack = []) {
|
|
9459
|
-
const contents = fs_1.default.readFileSync(filepath
|
|
7726
|
+
const contents = (0, util_js_1.decodeFileContent)(fs_1.default.readFileSync(filepath));
|
|
9460
7727
|
return this.toCosmiconfigResult(filepath, this.#loadConfigFileWithImports(filepath, contents, importStack));
|
|
9461
7728
|
}
|
|
9462
7729
|
#loadConfigFileWithImports(filepath, contents, importStack) {
|
|
@@ -9546,11 +7813,10 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9546
7813
|
exports.ExplorerSync = ExplorerSync;
|
|
9547
7814
|
}));
|
|
9548
7815
|
//#endregion
|
|
9549
|
-
//#region ../../node_modules/.pnpm/cosmiconfig@
|
|
7816
|
+
//#region ../../node_modules/.pnpm/cosmiconfig@10.0.0/node_modules/cosmiconfig/dist/index.js
|
|
9550
7817
|
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9551
7818
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9552
|
-
exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
|
|
9553
|
-
exports.cosmiconfig = cosmiconfig;
|
|
7819
|
+
exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = exports.cosmiconfigSync = exports.cosmiconfig = void 0;
|
|
9554
7820
|
const defaults_1 = require_defaults();
|
|
9555
7821
|
Object.defineProperty(exports, "defaultLoaders", {
|
|
9556
7822
|
enumerable: true,
|
|
@@ -9624,7 +7890,8 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9624
7890
|
function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
|
|
9625
7891
|
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path) => path.replace("{name}", moduleName));
|
|
9626
7892
|
if (userConfiguredOptions.mergeSearchPlaces) return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
|
|
9627
|
-
return userConfiguredSearchPlaces ??
|
|
7893
|
+
return userConfiguredSearchPlaces ??
|
|
7894
|
+
/* istanbul ignore next */ toolDefinedSearchPlaces;
|
|
9628
7895
|
}
|
|
9629
7896
|
function mergeOptionsBase(moduleName, defaults, options) {
|
|
9630
7897
|
const userDefinedConfig = getUserDefinedOptionsFromMetaConfig();
|
|
@@ -9668,6 +7935,21 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9668
7935
|
searchStrategy: options.stopDir ? "global" : "none"
|
|
9669
7936
|
}, options);
|
|
9670
7937
|
}
|
|
7938
|
+
function mergeOptionsSync(moduleName, options) {
|
|
7939
|
+
validateOptions(options);
|
|
7940
|
+
return mergeOptionsBase(moduleName, {
|
|
7941
|
+
moduleName,
|
|
7942
|
+
searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName),
|
|
7943
|
+
ignoreEmptySearchPlaces: true,
|
|
7944
|
+
cache: true,
|
|
7945
|
+
transform: identity,
|
|
7946
|
+
loaders: defaults_1.defaultLoadersSync,
|
|
7947
|
+
metaConfigFilePath: null,
|
|
7948
|
+
mergeImportArrays: true,
|
|
7949
|
+
mergeSearchPlaces: true,
|
|
7950
|
+
searchStrategy: options.stopDir ? "global" : "none"
|
|
7951
|
+
}, options);
|
|
7952
|
+
}
|
|
9671
7953
|
function cosmiconfig(moduleName, options = {}) {
|
|
9672
7954
|
const normalizedOptions = mergeOptions(moduleName, options);
|
|
9673
7955
|
const explorer = new Explorer_js_1.Explorer(normalizedOptions);
|
|
@@ -9679,6 +7961,19 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9679
7961
|
clearCaches: explorer.clearCaches.bind(explorer)
|
|
9680
7962
|
};
|
|
9681
7963
|
}
|
|
7964
|
+
exports.cosmiconfig = cosmiconfig;
|
|
7965
|
+
function cosmiconfigSync(moduleName, options = {}) {
|
|
7966
|
+
const normalizedOptions = mergeOptionsSync(moduleName, options);
|
|
7967
|
+
const explorerSync = new ExplorerSync_js_1.ExplorerSync(normalizedOptions);
|
|
7968
|
+
return {
|
|
7969
|
+
search: explorerSync.search.bind(explorerSync),
|
|
7970
|
+
load: explorerSync.load.bind(explorerSync),
|
|
7971
|
+
clearLoadCache: explorerSync.clearLoadCache.bind(explorerSync),
|
|
7972
|
+
clearSearchCache: explorerSync.clearSearchCache.bind(explorerSync),
|
|
7973
|
+
clearCaches: explorerSync.clearCaches.bind(explorerSync)
|
|
7974
|
+
};
|
|
7975
|
+
}
|
|
7976
|
+
exports.cosmiconfigSync = cosmiconfigSync;
|
|
9682
7977
|
}));
|
|
9683
7978
|
//#endregion
|
|
9684
7979
|
//#region src/lib/ruleCommandRegistry.ts
|
|
@@ -9798,12 +8093,16 @@ function deprecatedRuleConfigAliases(configKey) {
|
|
|
9798
8093
|
var import_dist = require_dist();
|
|
9799
8094
|
const configState = {
|
|
9800
8095
|
config: void 0,
|
|
9801
|
-
/**
|
|
8096
|
+
/**
|
|
8097
|
+
In-flight root load so concurrent callers share one cosmiconfig search.
|
|
8098
|
+
*/
|
|
9802
8099
|
loadPromise: void 0,
|
|
9803
8100
|
rootConfigPath: void 0
|
|
9804
8101
|
};
|
|
9805
8102
|
const workspaceConfigCache = /* @__PURE__ */ new Map();
|
|
9806
|
-
/**
|
|
8103
|
+
/**
|
|
8104
|
+
In-flight workspace loads — concurrent jobs for the same dir share one search.
|
|
8105
|
+
*/
|
|
9807
8106
|
const workspaceConfigLoadPromises = /* @__PURE__ */ new Map();
|
|
9808
8107
|
const deprecationWarned = /* @__PURE__ */ new Set();
|
|
9809
8108
|
function isRecord$1(value) {
|
|
@@ -9871,7 +8170,9 @@ async function loadWorkspaceConfig(workspaceDir) {
|
|
|
9871
8170
|
workspaceConfigLoadPromises.delete(workspaceDir);
|
|
9872
8171
|
}
|
|
9873
8172
|
}
|
|
9874
|
-
/**
|
|
8173
|
+
/**
|
|
8174
|
+
Deprecated top-level fields that should be under `commands`.
|
|
8175
|
+
*/
|
|
9875
8176
|
const DEPRECATED_COMMAND_FIELDS = /* @__PURE__ */ new Set(["deplint", "publint"]);
|
|
9876
8177
|
function warnOnce(key, message) {
|
|
9877
8178
|
if (deprecationWarned.has(key)) return;
|
|
@@ -10732,9 +9033,7 @@ const buildEntries = (srcDir, entryMode = "single", options, shouldExcludeSpecAn
|
|
|
10732
9033
|
case "custom":
|
|
10733
9034
|
entries = [];
|
|
10734
9035
|
break;
|
|
10735
|
-
default:
|
|
10736
|
-
entries = ["index.ts"];
|
|
10737
|
-
break;
|
|
9036
|
+
default: entries = ["index.ts"];
|
|
10738
9037
|
}
|
|
10739
9038
|
if (typeof options !== "boolean" && Array.isArray(options?.entry)) entries.push(...options.entry);
|
|
10740
9039
|
if (isVerbose) console.log(`buildEntries [${entryMode}] ${entries.length}`);
|
|
@@ -10830,7 +9129,9 @@ function isPathInside(parent, candidate) {
|
|
|
10830
9129
|
const relative = PATH.relative(parent, candidate);
|
|
10831
9130
|
return relative.length > 0 && relative !== ".." && !relative.startsWith(`..${PATH.sep}`) && !PATH.isAbsolute(relative);
|
|
10832
9131
|
}
|
|
10833
|
-
/**
|
|
9132
|
+
/**
|
|
9133
|
+
Resolves configured copy destinations without requiring their sources to exist.
|
|
9134
|
+
*/
|
|
10834
9135
|
function listMonolithCopyEntries(packageDir, config) {
|
|
10835
9136
|
const distDir = PATH.resolve(packageDir, "dist");
|
|
10836
9137
|
const entries = [];
|
|
@@ -10881,7 +9182,9 @@ function publintRuleId$1(check) {
|
|
|
10881
9182
|
return `pub.${check}`;
|
|
10882
9183
|
}
|
|
10883
9184
|
ALL_PUBLINT_CHECKS.map(publintRuleId$1);
|
|
10884
|
-
/**
|
|
9185
|
+
/**
|
|
9186
|
+
Checks that only apply to published (non-private) packages
|
|
9187
|
+
*/
|
|
10885
9188
|
const PUBLISH_ONLY_CHECKS = [
|
|
10886
9189
|
"defaultExportOrder",
|
|
10887
9190
|
"files",
|
|
@@ -12219,7 +10522,7 @@ var init_main = __esmMin((() => {
|
|
|
12219
10522
|
z = R;
|
|
12220
10523
|
}));
|
|
12221
10524
|
//#endregion
|
|
12222
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
10525
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/utils.js
|
|
12223
10526
|
/**
|
|
12224
10527
|
* @param {string} packageManager
|
|
12225
10528
|
* @returns {string[]}
|
|
@@ -12242,7 +10545,7 @@ async function getTempPackDir() {
|
|
|
12242
10545
|
}
|
|
12243
10546
|
var init_utils$2 = __esmMin((() => {}));
|
|
12244
10547
|
//#endregion
|
|
12245
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
10548
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack.js
|
|
12246
10549
|
/** @type {import('../index.d.ts').pack} */
|
|
12247
10550
|
async function pack(dir, opts) {
|
|
12248
10551
|
const packageManager = opts?.packageManager ?? "npm";
|
|
@@ -12256,25 +10559,23 @@ async function pack(dir, opts) {
|
|
|
12256
10559
|
case "bun":
|
|
12257
10560
|
command.push("--destination", packDestination);
|
|
12258
10561
|
break;
|
|
12259
|
-
default:
|
|
12260
|
-
command.push("--pack-destination", packDestination);
|
|
12261
|
-
break;
|
|
10562
|
+
default: command.push("--pack-destination", packDestination);
|
|
12262
10563
|
}
|
|
12263
10564
|
if (opts?.ignoreScripts) switch (packageManager) {
|
|
12264
10565
|
case "pnpm":
|
|
12265
10566
|
command.push("--config.ignore-scripts=true");
|
|
12266
10567
|
break;
|
|
12267
10568
|
case "yarn": break;
|
|
12268
|
-
default:
|
|
12269
|
-
command.push("--ignore-scripts");
|
|
12270
|
-
break;
|
|
10569
|
+
default: command.push("--ignore-scripts");
|
|
12271
10570
|
}
|
|
12272
10571
|
const output = await z(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
|
|
12273
10572
|
const tarballFile = await fs$1.readdir(packDestination).then((files) => {
|
|
12274
10573
|
return files.find((file) => file.endsWith(".tgz") && output.stdout.includes(file));
|
|
12275
10574
|
});
|
|
12276
|
-
if (!tarballFile)
|
|
12277
|
-
|
|
10575
|
+
if (!tarballFile) {
|
|
10576
|
+
if (output.stdout.startsWith("yarn pack v1")) throw new Error(`Yarn 1 is not supported to pack files. Command output:\n${JSON.stringify(output, null, 2)}`);
|
|
10577
|
+
else throw new Error(`Failed to find packed tarball file in ${packDestination}. Command output:\n${JSON.stringify(output, null, 2)}`);
|
|
10578
|
+
}
|
|
12278
10579
|
return PATH.join(packDestination, tarballFile);
|
|
12279
10580
|
}
|
|
12280
10581
|
var init_pack = __esmMin((() => {
|
|
@@ -12282,7 +10583,7 @@ var init_pack = __esmMin((() => {
|
|
|
12282
10583
|
init_utils$2();
|
|
12283
10584
|
}));
|
|
12284
10585
|
//#endregion
|
|
12285
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
10586
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack-as-json.js
|
|
12286
10587
|
/** @type {import('../index.d.ts').packAsJson} */
|
|
12287
10588
|
async function packAsJson(dir, opts) {
|
|
12288
10589
|
const packageManager = opts?.packageManager ?? "npm";
|
|
@@ -12302,9 +10603,7 @@ async function packAsJson(dir, opts) {
|
|
|
12302
10603
|
command.push("--config.ignore-scripts=true");
|
|
12303
10604
|
break;
|
|
12304
10605
|
case "yarn": break;
|
|
12305
|
-
default:
|
|
12306
|
-
command.push("--ignore-scripts");
|
|
12307
|
-
break;
|
|
10606
|
+
default: command.push("--ignore-scripts");
|
|
12308
10607
|
}
|
|
12309
10608
|
let { stdout } = await z(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
|
|
12310
10609
|
try {
|
|
@@ -12343,7 +10642,7 @@ var init_pack_as_json = __esmMin((() => {
|
|
|
12343
10642
|
init_utils$2();
|
|
12344
10643
|
}));
|
|
12345
10644
|
//#endregion
|
|
12346
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
10645
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/buffer-stream.js
|
|
12347
10646
|
/**
|
|
12348
10647
|
* @param {ReadableStream<Uint8Array>} readableStream
|
|
12349
10648
|
* @returns {Promise<ArrayBuffer>}
|
|
@@ -12353,7 +10652,7 @@ async function readableStreamToArrayBuffer(readableStream) {
|
|
|
12353
10652
|
}
|
|
12354
10653
|
var init_buffer_stream = __esmMin((() => {}));
|
|
12355
10654
|
//#endregion
|
|
12356
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
10655
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/parse-tar.js
|
|
12357
10656
|
/**
|
|
12358
10657
|
* @param {ArrayBuffer} buffer
|
|
12359
10658
|
* @returns {import('../index.d.ts').TarballFile[]}
|
|
@@ -12397,7 +10696,7 @@ function getFilesRootDir(files) {
|
|
|
12397
10696
|
}
|
|
12398
10697
|
var init_parse_tar = __esmMin((() => {}));
|
|
12399
10698
|
//#endregion
|
|
12400
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
10699
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/unpack.js
|
|
12401
10700
|
/** @type {import('../index.d.ts').unpack} */
|
|
12402
10701
|
async function unpack(tarball) {
|
|
12403
10702
|
/** @type {ArrayBuffer} */
|
|
@@ -12418,7 +10717,7 @@ var init_unpack = __esmMin((() => {
|
|
|
12418
10717
|
init_parse_tar();
|
|
12419
10718
|
}));
|
|
12420
10719
|
//#endregion
|
|
12421
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
10720
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/pack-as-list.js
|
|
12422
10721
|
/** @type {import('../index.d.ts').packAsList} */
|
|
12423
10722
|
async function packAsList(dir, opts) {
|
|
12424
10723
|
const packageManager = opts?.packageManager ?? "npm";
|
|
@@ -12476,7 +10775,8 @@ async function packAsListWithPack(dir, packageManager, ignoreScripts) {
|
|
|
12476
10775
|
* @returns {string[]}
|
|
12477
10776
|
*/
|
|
12478
10777
|
function parseNpmPackJson(stdoutJson) {
|
|
12479
|
-
return stdoutJson[0].files.map((file) => file.path);
|
|
10778
|
+
if (Array.isArray(stdoutJson)) return stdoutJson[0].files.map((file) => file.path);
|
|
10779
|
+
else return stdoutJson[Object.keys(stdoutJson)[0]].files.map((file) => file.path);
|
|
12480
10780
|
}
|
|
12481
10781
|
/**
|
|
12482
10782
|
* @param {any} stdoutJson
|
|
@@ -12501,7 +10801,7 @@ var init_pack_as_list = __esmMin((() => {
|
|
|
12501
10801
|
init_utils$2();
|
|
12502
10802
|
}));
|
|
12503
10803
|
//#endregion
|
|
12504
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
10804
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/get-pack-directory.js
|
|
12505
10805
|
/** @type {import('../index.d.ts').getPackDirectory} */
|
|
12506
10806
|
async function getPackDirectory(dir, packageManager) {
|
|
12507
10807
|
if (packageManager === "pnpm") try {
|
|
@@ -12513,16 +10813,28 @@ async function getPackDirectory(dir, packageManager) {
|
|
|
12513
10813
|
}
|
|
12514
10814
|
var init_get_pack_directory = __esmMin((() => {}));
|
|
12515
10815
|
//#endregion
|
|
12516
|
-
//#region ../../node_modules/.pnpm/@publint+pack@0.1.
|
|
10816
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/shared/constants.js
|
|
10817
|
+
var supportedPackageManagers;
|
|
10818
|
+
var init_constants$2 = __esmMin((() => {
|
|
10819
|
+
supportedPackageManagers = [
|
|
10820
|
+
"npm",
|
|
10821
|
+
"yarn",
|
|
10822
|
+
"pnpm",
|
|
10823
|
+
"bun"
|
|
10824
|
+
];
|
|
10825
|
+
}));
|
|
10826
|
+
//#endregion
|
|
10827
|
+
//#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/index-node.js
|
|
12517
10828
|
var init_index_node$1 = __esmMin((() => {
|
|
12518
10829
|
init_pack();
|
|
12519
10830
|
init_pack_as_list();
|
|
12520
10831
|
init_pack_as_json();
|
|
12521
10832
|
init_get_pack_directory();
|
|
12522
10833
|
init_unpack();
|
|
10834
|
+
init_constants$2();
|
|
12523
10835
|
}));
|
|
12524
10836
|
//#endregion
|
|
12525
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
10837
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/node/vfs-node.js
|
|
12526
10838
|
/**
|
|
12527
10839
|
* Creates a node-compatible Vfs object
|
|
12528
10840
|
* @returns {import('../shared/core.js').Vfs}
|
|
@@ -12549,7 +10861,7 @@ function createNodeVfs() {
|
|
|
12549
10861
|
return PATH.join(...parts);
|
|
12550
10862
|
},
|
|
12551
10863
|
pathRelative(from, to) {
|
|
12552
|
-
return PATH.relative(from, to);
|
|
10864
|
+
return PATH.relative(from, to).replaceAll(PATH.sep, "/");
|
|
12553
10865
|
},
|
|
12554
10866
|
getDirName(path) {
|
|
12555
10867
|
return PATH.dirname(path);
|
|
@@ -12561,8 +10873,8 @@ function createNodeVfs() {
|
|
|
12561
10873
|
}
|
|
12562
10874
|
var init_vfs_node = __esmMin((() => {}));
|
|
12563
10875
|
//#endregion
|
|
12564
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
12565
|
-
var lintableFileExtensions, invalidJsxExtensions, knownBrowserishConditions, commonInternalPaths, licenseFiles;
|
|
10876
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/constants.js
|
|
10877
|
+
var lintableFileExtensions, invalidJsxExtensions, knownBrowserishConditions, commonInternalPaths, commonInternalTestFileRegex, licenseFiles;
|
|
12566
10878
|
var init_constants$1 = __esmMin((() => {
|
|
12567
10879
|
lintableFileExtensions = [
|
|
12568
10880
|
".js",
|
|
@@ -12584,11 +10896,37 @@ var init_constants$1 = __esmMin((() => {
|
|
|
12584
10896
|
"test/",
|
|
12585
10897
|
"tests/",
|
|
12586
10898
|
"__tests__/",
|
|
10899
|
+
"e2e/",
|
|
10900
|
+
".circleci/",
|
|
10901
|
+
".github/",
|
|
10902
|
+
".husky/",
|
|
10903
|
+
".vscode/",
|
|
12587
10904
|
".prettierrc",
|
|
10905
|
+
".prettierignore",
|
|
12588
10906
|
"prettier.config.js",
|
|
12589
10907
|
".eslintrc",
|
|
12590
|
-
".eslintrc.js"
|
|
10908
|
+
".eslintrc.js",
|
|
10909
|
+
".eslintignore",
|
|
10910
|
+
"eslint.config.js",
|
|
10911
|
+
"eslint.config.mjs",
|
|
10912
|
+
"eslint.config.cjs",
|
|
10913
|
+
".travis.yml",
|
|
10914
|
+
"azure-pipelines.yml",
|
|
10915
|
+
"appveyor.yml",
|
|
10916
|
+
".gitattributes",
|
|
10917
|
+
".gitignore",
|
|
10918
|
+
"package-lock.json",
|
|
10919
|
+
"yarn.lock",
|
|
10920
|
+
"pnpm-lock.yaml",
|
|
10921
|
+
"bun.lock",
|
|
10922
|
+
"bun.lockb",
|
|
10923
|
+
"CONTRIBUTING.md",
|
|
10924
|
+
"CODE_OF_CONDUCT.md",
|
|
10925
|
+
"CODEOWNERS",
|
|
10926
|
+
"Dockerfile",
|
|
10927
|
+
"tsconfig.tsbuildinfo"
|
|
12591
10928
|
];
|
|
10929
|
+
commonInternalTestFileRegex = /\.(test|spec)\.[cm]?[jt]sx?$/;
|
|
12592
10930
|
licenseFiles = [
|
|
12593
10931
|
/^copying/i,
|
|
12594
10932
|
/^licence/i,
|
|
@@ -12596,7 +10934,7 @@ var init_constants$1 = __esmMin((() => {
|
|
|
12596
10934
|
];
|
|
12597
10935
|
}));
|
|
12598
10936
|
//#endregion
|
|
12599
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
10937
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/utils.js
|
|
12600
10938
|
/**
|
|
12601
10939
|
* @param {string} code
|
|
12602
10940
|
*/
|
|
@@ -12707,23 +11045,25 @@ async function exportsGlob(globStr, vfs, packedFiles, exportsKey, exports) {
|
|
|
12707
11045
|
const items = await vfs.readDir(dirPath);
|
|
12708
11046
|
for (const item of items) {
|
|
12709
11047
|
const itemPath = vfs.pathJoin(dirPath, item);
|
|
12710
|
-
if (!packedFiles || packedFiles.some((file) => file.startsWith(itemPath)))
|
|
12711
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
if (matched
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
11048
|
+
if (!packedFiles || packedFiles.some((file) => file.startsWith(itemPath))) {
|
|
11049
|
+
if (await vfs.isPathDir(itemPath)) await scanDir(itemPath);
|
|
11050
|
+
else {
|
|
11051
|
+
const matched = slash(itemPath).match(globStrRe);
|
|
11052
|
+
if (matched) {
|
|
11053
|
+
if (matched.length > 2) {
|
|
11054
|
+
let allGlobSame = true;
|
|
11055
|
+
for (let i = 2; i < matched.length; i++) if (matched[i] !== matched[1]) {
|
|
11056
|
+
allGlobSame = false;
|
|
11057
|
+
break;
|
|
11058
|
+
}
|
|
11059
|
+
if (!allGlobSame) continue;
|
|
12719
11060
|
}
|
|
12720
|
-
if (
|
|
12721
|
-
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
|
|
11061
|
+
if (exportsKey && exports && excludedExportKeys.length) {
|
|
11062
|
+
const replacedExportsKey = exportsKey.replace("*", matched[1]);
|
|
11063
|
+
if (excludedExportKeys.some((re) => re.test(replacedExportsKey))) continue;
|
|
11064
|
+
}
|
|
11065
|
+
filePaths.push(itemPath);
|
|
12725
11066
|
}
|
|
12726
|
-
filePaths.push(itemPath);
|
|
12727
11067
|
}
|
|
12728
11068
|
}
|
|
12729
11069
|
}
|
|
@@ -12992,7 +11332,7 @@ var init_utils$1 = __esmMin((() => {
|
|
|
12992
11332
|
EXPORTS_DEFAULT_PATTERN_RE = /exports(?:\.default|\["default"\]|\['default'\])\s*=\s*([^\s]{7}.)/g;
|
|
12993
11333
|
MULTILINE_COMMENTS_RE = /\/\*(.|[\r\n])*?\*\//gm;
|
|
12994
11334
|
SINGLELINE_COMMENTS_RE = /\/\/.*/g;
|
|
12995
|
-
GIT_URL_RE = /^(?:(git\+https?|git\+ssh|https?|ssh|git):\/\/)?(?:[
|
|
11335
|
+
GIT_URL_RE = /^(?:(git\+https?|git\+ssh|https?|ssh|git):\/\/)?(?:[^@/]+@)?([\w.-]+)(?::([\w\d-]+))?(\/[^?#]+)\/?$/;
|
|
12996
11336
|
SHORTHAND_REPOSITORY_URL_RE = /^(?:(?:github|bitbucket|gitlab):[^/]+\/.+|gist:.+|[^/]+\/[^/]+)$/;
|
|
12997
11337
|
COMMON_CONDITIONS = [
|
|
12998
11338
|
"default",
|
|
@@ -13010,7 +11350,7 @@ var init_utils$1 = __esmMin((() => {
|
|
|
13010
11350
|
DTS_RE = /\.d\.[mc]?ts$/;
|
|
13011
11351
|
}));
|
|
13012
11352
|
//#endregion
|
|
13013
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
11353
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/core.js
|
|
13014
11354
|
/**
|
|
13015
11355
|
* @typedef Vfs
|
|
13016
11356
|
* @property {(path: string) => Promise<string>} readFile
|
|
@@ -13018,7 +11358,7 @@ var init_utils$1 = __esmMin((() => {
|
|
|
13018
11358
|
* @property {(path: string) => Promise<boolean>} isPathDir
|
|
13019
11359
|
* @property {(path: string) => Promise<boolean>} isPathExist
|
|
13020
11360
|
* @property {(...paths: string[]) => string} pathJoin
|
|
13021
|
-
* @property {(from: string, to: string) => string} pathRelative
|
|
11361
|
+
* @property {(from: string, to: string) => string} pathRelative Returned path uses `/` separators
|
|
13022
11362
|
* @property {(path: string) => string} getDirName
|
|
13023
11363
|
* @property {(path: string) => string} getExtName
|
|
13024
11364
|
*/
|
|
@@ -13050,20 +11390,29 @@ async function core({ pkgDir, vfs, level, strict, _packedFiles }) {
|
|
|
13050
11390
|
const [browser, browserPkgPath] = getPublishedField(rootPkg, "browser");
|
|
13051
11391
|
const [exports, exportsPkgPath] = getPublishedField(rootPkg, "exports");
|
|
13052
11392
|
const [imports, importsPkgPath] = getPublishedField(rootPkg, "imports");
|
|
11393
|
+
/** @type {string[]} */
|
|
11394
|
+
const internalTestFilePaths = [];
|
|
11395
|
+
const crawlNestedPackageJsonPromise = crawlNestedPackageJson(pkgDir);
|
|
11396
|
+
promiseQueue.push(() => crawlNestedPackageJsonPromise);
|
|
13053
11397
|
if (rootPkg.files == null) promiseQueue.push(async () => {
|
|
11398
|
+
/** @type {string[]} */
|
|
11399
|
+
const internalFilePaths = [];
|
|
13054
11400
|
for (const p of commonInternalPaths) {
|
|
13055
11401
|
const internalPath = vfs.pathJoin(pkgDir, p);
|
|
13056
|
-
if (_packedFiles
|
|
13057
|
-
|
|
13058
|
-
messages.push({
|
|
13059
|
-
code: "USE_FILES",
|
|
13060
|
-
args: {},
|
|
13061
|
-
path: ["name"],
|
|
13062
|
-
type: "suggestion"
|
|
13063
|
-
});
|
|
13064
|
-
break;
|
|
11402
|
+
if (_packedFiles) {
|
|
11403
|
+
if (!(p.endsWith("/") ? _packedFiles.some((f) => f.startsWith(internalPath)) : _packedFiles.includes(internalPath))) continue;
|
|
13065
11404
|
}
|
|
11405
|
+
if (await vfs.isPathExist(internalPath)) internalFilePaths.push("/" + p);
|
|
13066
11406
|
}
|
|
11407
|
+
await crawlNestedPackageJsonPromise;
|
|
11408
|
+
const matchedDirs = internalFilePaths.filter((p) => p.endsWith("/"));
|
|
11409
|
+
internalFilePaths.push(...internalTestFilePaths.filter((p) => !matchedDirs.some((d) => p.startsWith(d))));
|
|
11410
|
+
if (internalFilePaths.length > 0) messages.push({
|
|
11411
|
+
code: "USE_FILES",
|
|
11412
|
+
args: { internalFilePaths },
|
|
11413
|
+
path: ["name"],
|
|
11414
|
+
type: "suggestion"
|
|
11415
|
+
});
|
|
13067
11416
|
});
|
|
13068
11417
|
if (rootPkg.license == null) promiseQueue.push(async () => {
|
|
13069
11418
|
const topFiles = await vfs.readDir(pkgDir);
|
|
@@ -13301,9 +11650,6 @@ async function core({ pkgDir, vfs, level, strict, _packedFiles }) {
|
|
|
13301
11650
|
const [bin, binPkgPath] = getPublishedField(rootPkg, "bin");
|
|
13302
11651
|
if (bin) crawlBin(bin, binPkgPath);
|
|
13303
11652
|
if (imports && ensureTypeOfField(imports, ["object"], importsPkgPath)) crawlExportsOrImports(imports, importsPkgPath, true);
|
|
13304
|
-
promiseQueue.push(async () => {
|
|
13305
|
-
await crawlNestedPackageJson(pkgDir);
|
|
13306
|
-
});
|
|
13307
11653
|
await promiseQueue.wait();
|
|
13308
11654
|
if (strict) {
|
|
13309
11655
|
for (const message of messages) if (message.type === "warning") message.type = "error";
|
|
@@ -13469,18 +11815,20 @@ async function core({ pkgDir, vfs, level, strict, _packedFiles }) {
|
|
|
13469
11815
|
await readFile(vfs.pathJoin(pkgDir, fieldValue[key]), currentPath.concat(key), [".js", "/index.js"]);
|
|
13470
11816
|
});
|
|
13471
11817
|
}
|
|
13472
|
-
if (hasExports)
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
11818
|
+
if (hasExports) {
|
|
11819
|
+
if (typeof fieldValue === "string") messages.push({
|
|
11820
|
+
code: "USE_EXPORTS_BROWSER",
|
|
11821
|
+
args: {},
|
|
11822
|
+
path: currentPath,
|
|
11823
|
+
type: "suggestion"
|
|
11824
|
+
});
|
|
11825
|
+
else messages.push({
|
|
11826
|
+
code: "USE_EXPORTS_OR_IMPORTS_BROWSER",
|
|
11827
|
+
args: {},
|
|
11828
|
+
path: currentPath,
|
|
11829
|
+
type: "suggestion"
|
|
11830
|
+
});
|
|
11831
|
+
}
|
|
13484
11832
|
}
|
|
13485
11833
|
/**
|
|
13486
11834
|
* @param {string} exportsValue
|
|
@@ -13804,6 +12152,7 @@ async function core({ pkgDir, vfs, level, strict, _packedFiles }) {
|
|
|
13804
12152
|
await crawlNestedPackageJson(itemPath);
|
|
13805
12153
|
continue;
|
|
13806
12154
|
}
|
|
12155
|
+
if (rootPkg.files == null && commonInternalTestFileRegex.test(item) && (!_packedFiles || _packedFiles.includes(itemPath))) internalTestFilePaths.push("/" + vfs.pathRelative(pkgDir, itemPath));
|
|
13807
12156
|
if (item !== "package.json" || itemPath === rootPkgPath) continue;
|
|
13808
12157
|
if (_packedFiles && !_packedFiles.includes(itemPath)) continue;
|
|
13809
12158
|
let nestedPkg;
|
|
@@ -13877,7 +12226,7 @@ var init_core = __esmMin((() => {
|
|
|
13877
12226
|
init_utils$1();
|
|
13878
12227
|
}));
|
|
13879
12228
|
//#endregion
|
|
13880
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
12229
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/vfs-tarball.js
|
|
13881
12230
|
/**
|
|
13882
12231
|
* @param {import("../index.d.ts").PackFile[]} files
|
|
13883
12232
|
* @return {import("./core.js").Vfs}
|
|
@@ -14022,18 +12371,16 @@ async function detect(options = {}) {
|
|
|
14022
12371
|
if (result) return result;
|
|
14023
12372
|
break;
|
|
14024
12373
|
}
|
|
14025
|
-
case "install-metadata":
|
|
14026
|
-
|
|
14027
|
-
|
|
14028
|
-
|
|
14029
|
-
|
|
14030
|
-
|
|
14031
|
-
|
|
14032
|
-
|
|
14033
|
-
};
|
|
14034
|
-
}
|
|
12374
|
+
case "install-metadata": for (const metadata of Object.keys(INSTALL_METADATA)) {
|
|
12375
|
+
const fileOrDir = metadata.endsWith("/") ? "dir" : "file";
|
|
12376
|
+
if (await pathExists(PATH.join(directory, metadata), fileOrDir)) {
|
|
12377
|
+
const name = INSTALL_METADATA[metadata];
|
|
12378
|
+
return {
|
|
12379
|
+
name,
|
|
12380
|
+
agent: name === "yarn" ? isMetadataYarnClassic(metadata) ? "yarn" : "yarn@berry" : name
|
|
12381
|
+
};
|
|
14035
12382
|
}
|
|
14036
|
-
|
|
12383
|
+
}
|
|
14037
12384
|
}
|
|
14038
12385
|
if (stopDir?.(directory)) break;
|
|
14039
12386
|
}
|
|
@@ -14097,7 +12444,7 @@ var init_detect = __esmMin((() => {
|
|
|
14097
12444
|
init_constants();
|
|
14098
12445
|
}));
|
|
14099
12446
|
//#endregion
|
|
14100
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
12447
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/index-node.js
|
|
14101
12448
|
var index_node_exports = /* @__PURE__ */ __exportAll({ publint: () => publint });
|
|
14102
12449
|
/**
|
|
14103
12450
|
* @typedef {T extends string ? T : never} ExtractStringLiteral
|
|
@@ -14115,16 +12462,17 @@ async function publint(options) {
|
|
|
14115
12462
|
let resolvedPkgDir;
|
|
14116
12463
|
/** @type {string[] | undefined} */
|
|
14117
12464
|
let packedFiles;
|
|
14118
|
-
if (typeof pack === "object")
|
|
14119
|
-
if (
|
|
14120
|
-
|
|
14121
|
-
|
|
14122
|
-
|
|
12465
|
+
if (typeof pack === "object") {
|
|
12466
|
+
if ("tarball" in pack) {
|
|
12467
|
+
if (log) console.log("Unpacking tarball...");
|
|
12468
|
+
const result = await unpack(pack.tarball);
|
|
12469
|
+
vfs = createTarballVfs(result.files);
|
|
12470
|
+
resolvedPkgDir = options?.pkgDir ?? result.rootDir;
|
|
12471
|
+
} else {
|
|
12472
|
+
vfs = createTarballVfs(pack.files);
|
|
12473
|
+
resolvedPkgDir = options?.pkgDir ?? process.cwd();
|
|
12474
|
+
}
|
|
14123
12475
|
} else {
|
|
14124
|
-
vfs = createTarballVfs(pack.files);
|
|
14125
|
-
resolvedPkgDir = options?.pkgDir ?? process.cwd();
|
|
14126
|
-
}
|
|
14127
|
-
else {
|
|
14128
12476
|
if (pack !== false) {
|
|
14129
12477
|
const pkgDir = options?.pkgDir ?? process.cwd();
|
|
14130
12478
|
const packageManager = await detectPackageManager(pkgDir, pack);
|
|
@@ -14149,14 +12497,13 @@ async function publint(options) {
|
|
|
14149
12497
|
* @return {Promise<import('@publint/pack').PackageManager>}
|
|
14150
12498
|
*/
|
|
14151
12499
|
async function detectPackageManager(pkgDir, pack) {
|
|
14152
|
-
|
|
14153
|
-
if (packageManager === "auto") {
|
|
12500
|
+
if (pack === "auto") {
|
|
14154
12501
|
const { detect } = await Promise.resolve().then(() => (init_detect(), detect_exports));
|
|
14155
|
-
|
|
14156
|
-
if (detected
|
|
14157
|
-
|
|
12502
|
+
const detected = (await detect({ cwd: pkgDir }))?.name ?? "npm";
|
|
12503
|
+
if (supportedPackageManagers.includes(detected)) return detected;
|
|
12504
|
+
else return "npm";
|
|
14158
12505
|
}
|
|
14159
|
-
return
|
|
12506
|
+
return pack;
|
|
14160
12507
|
}
|
|
14161
12508
|
/**
|
|
14162
12509
|
* @param {string} pkgDir
|
|
@@ -14179,7 +12526,77 @@ var init_index_node = __esmMin((() => {
|
|
|
14179
12526
|
init_vfs_tarball();
|
|
14180
12527
|
}));
|
|
14181
12528
|
//#endregion
|
|
14182
|
-
//#region ../../node_modules/.pnpm/
|
|
12529
|
+
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
12530
|
+
var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
12531
|
+
let p = process || {};
|
|
12532
|
+
let argv = p.argv || [];
|
|
12533
|
+
let env = p.env || {};
|
|
12534
|
+
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);
|
|
12535
|
+
let formatter = (open, close, replace = open) => (input) => {
|
|
12536
|
+
let string = "" + input, index = string.indexOf(close, open.length);
|
|
12537
|
+
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
12538
|
+
};
|
|
12539
|
+
let replaceClose = (string, close, replace, index) => {
|
|
12540
|
+
let result = "", cursor = 0;
|
|
12541
|
+
do {
|
|
12542
|
+
result += string.substring(cursor, index) + replace;
|
|
12543
|
+
cursor = index + close.length;
|
|
12544
|
+
index = string.indexOf(close, cursor);
|
|
12545
|
+
} while (~index);
|
|
12546
|
+
return result + string.substring(cursor);
|
|
12547
|
+
};
|
|
12548
|
+
let createColors = (enabled = isColorSupported) => {
|
|
12549
|
+
let f = enabled ? formatter : () => String;
|
|
12550
|
+
return {
|
|
12551
|
+
isColorSupported: enabled,
|
|
12552
|
+
reset: f("\x1B[0m", "\x1B[0m"),
|
|
12553
|
+
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
12554
|
+
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
12555
|
+
italic: f("\x1B[3m", "\x1B[23m"),
|
|
12556
|
+
underline: f("\x1B[4m", "\x1B[24m"),
|
|
12557
|
+
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
12558
|
+
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
12559
|
+
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
12560
|
+
black: f("\x1B[30m", "\x1B[39m"),
|
|
12561
|
+
red: f("\x1B[31m", "\x1B[39m"),
|
|
12562
|
+
green: f("\x1B[32m", "\x1B[39m"),
|
|
12563
|
+
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
12564
|
+
blue: f("\x1B[34m", "\x1B[39m"),
|
|
12565
|
+
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
12566
|
+
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
12567
|
+
white: f("\x1B[37m", "\x1B[39m"),
|
|
12568
|
+
gray: f("\x1B[90m", "\x1B[39m"),
|
|
12569
|
+
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
12570
|
+
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
12571
|
+
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
12572
|
+
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
12573
|
+
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
12574
|
+
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
12575
|
+
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
12576
|
+
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
12577
|
+
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
12578
|
+
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
12579
|
+
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
12580
|
+
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
12581
|
+
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
12582
|
+
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
12583
|
+
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
12584
|
+
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
12585
|
+
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
12586
|
+
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
12587
|
+
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
12588
|
+
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
12589
|
+
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
12590
|
+
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
12591
|
+
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
12592
|
+
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
12593
|
+
};
|
|
12594
|
+
};
|
|
12595
|
+
module.exports = createColors();
|
|
12596
|
+
module.exports.createColors = createColors;
|
|
12597
|
+
}));
|
|
12598
|
+
//#endregion
|
|
12599
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/shared/message.js
|
|
14183
12600
|
/** @type {import('../utils.d.ts').formatMessage} */
|
|
14184
12601
|
function formatMessage(m, pkg, opts = {}) {
|
|
14185
12602
|
const h = getHighlighter(opts.color);
|
|
@@ -14256,7 +12673,12 @@ function formatMessage(m, pkg, opts = {}) {
|
|
|
14256
12673
|
}
|
|
14257
12674
|
case "USE_EXPORTS_BROWSER": return `${h.bold("pkg.browser")} with a string value can be refactored to use ${h.bold("pkg.exports")} and the ${h.bold("\"browser\"")} condition to declare browser-specific exports. e.g. ${h.bold("pkg.exports[\".\"].browser")}: "${h.bold(pv(m.path))}". (This may be a breaking change)`;
|
|
14258
12675
|
case "USE_EXPORTS_OR_IMPORTS_BROWSER": return `${h.bold("pkg.browser")} with an object value can be refactored to use ${h.bold("pkg.exports")}/${h.bold("pkg.imports")} and the ${h.bold("\"browser\"")} condition to declare browser-specific exports. (This may be a breaking change)`;
|
|
14259
|
-
case "USE_FILES":
|
|
12676
|
+
case "USE_FILES": {
|
|
12677
|
+
const paths = m.args.internalFilePaths;
|
|
12678
|
+
const shown = paths.slice(0, 5).map((p) => h.bold(p)).join(", ");
|
|
12679
|
+
const rest = paths.length > 5 ? ` and ${paths.length - 5} more` : "";
|
|
12680
|
+
return `The package ${h.bold("publishes internal tests or config files")} (${shown}${rest}). You can use ${h.bold("pkg.files")} to only publish certain files and save user bandwidth.`;
|
|
12681
|
+
}
|
|
14260
12682
|
case "USE_SIDE_EFFECTS": return `The package appears to be consumed by bundlers but does not specify ${h.bold("\"sideEffects\"")}. Consider adding ${h.bold("\"sideEffects\"")}: ${h.bold("false")} so bundlers can optimize tree-shaking if your package has no side effects.`;
|
|
14261
12683
|
case "USE_TYPE": return `The package does not specify the ${h.bold("\"type\"")} field. Node.js may attempt to detect the package type causing a small performance hit. Consider adding ${h.bold("\"type\"")}: "${h.bold("commonjs")}".`;
|
|
14262
12684
|
case "USE_ENGINES_NODE": return `The package does not specify the ${h.bold("\"engines.node\"")} field. Consumers may install it on an unsupported Node.js version. Consider adding the field with your actual minimum supported Node.js version. (This may be a breaking change)`;
|
|
@@ -14321,7 +12743,6 @@ function getHighlighter(color) {
|
|
|
14321
12743
|
default:
|
|
14322
12744
|
bold = (s) => import_picocolors.default.bold(s);
|
|
14323
12745
|
warn = (s) => import_picocolors.default.yellow(s);
|
|
14324
|
-
break;
|
|
14325
12746
|
}
|
|
14326
12747
|
return {
|
|
14327
12748
|
bold,
|
|
@@ -14344,7 +12765,7 @@ var init_message = __esmMin((() => {
|
|
|
14344
12765
|
EMPTY_MSG = "<empty>";
|
|
14345
12766
|
}));
|
|
14346
12767
|
//#endregion
|
|
14347
|
-
//#region ../../node_modules/.pnpm/publint@0.3.
|
|
12768
|
+
//#region ../../node_modules/.pnpm/publint@0.3.23/node_modules/publint/src/utils.js
|
|
14348
12769
|
var utils_exports = /* @__PURE__ */ __exportAll({
|
|
14349
12770
|
formatMessage: () => formatMessage,
|
|
14350
12771
|
formatMessagePath: () => formatMessagePath,
|