@qodalis/cli-lang-ro 2.0.0-beta.1
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/package.json +37 -0
- package/public-api.d.mts +10 -0
- package/public-api.d.ts +10 -0
- package/public-api.js +219 -0
- package/public-api.js.map +1 -0
- package/public-api.mjs +216 -0
- package/public-api.mjs.map +1 -0
- package/umd/cli-entrypoint.global.js +2890 -0
|
@@ -0,0 +1,2890 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var langRo = (() => {
|
|
3
|
+
// ../../../dist/core/public-api.mjs
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
11
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var require_constants = __commonJS({
|
|
30
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js"(exports$1, module) {
|
|
31
|
+
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
32
|
+
var MAX_LENGTH = 256;
|
|
33
|
+
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
34
|
+
9007199254740991;
|
|
35
|
+
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
36
|
+
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
37
|
+
var RELEASE_TYPES = [
|
|
38
|
+
"major",
|
|
39
|
+
"premajor",
|
|
40
|
+
"minor",
|
|
41
|
+
"preminor",
|
|
42
|
+
"patch",
|
|
43
|
+
"prepatch",
|
|
44
|
+
"prerelease"
|
|
45
|
+
];
|
|
46
|
+
module.exports = {
|
|
47
|
+
MAX_LENGTH,
|
|
48
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
49
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
50
|
+
MAX_SAFE_INTEGER,
|
|
51
|
+
RELEASE_TYPES,
|
|
52
|
+
SEMVER_SPEC_VERSION,
|
|
53
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
54
|
+
FLAG_LOOSE: 2
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
var require_debug = __commonJS({
|
|
59
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js"(exports$1, module) {
|
|
60
|
+
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
61
|
+
};
|
|
62
|
+
module.exports = debug;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
var require_re = __commonJS({
|
|
66
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js"(exports$1, module) {
|
|
67
|
+
var {
|
|
68
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
69
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
70
|
+
MAX_LENGTH
|
|
71
|
+
} = require_constants();
|
|
72
|
+
var debug = require_debug();
|
|
73
|
+
exports$1 = module.exports = {};
|
|
74
|
+
var re = exports$1.re = [];
|
|
75
|
+
var safeRe = exports$1.safeRe = [];
|
|
76
|
+
var src = exports$1.src = [];
|
|
77
|
+
var safeSrc = exports$1.safeSrc = [];
|
|
78
|
+
var t = exports$1.t = {};
|
|
79
|
+
var R = 0;
|
|
80
|
+
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
81
|
+
var safeRegexReplacements = [
|
|
82
|
+
["\\s", 1],
|
|
83
|
+
["\\d", MAX_LENGTH],
|
|
84
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
85
|
+
];
|
|
86
|
+
var makeSafeRegex = (value) => {
|
|
87
|
+
for (const [token, max] of safeRegexReplacements) {
|
|
88
|
+
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
89
|
+
}
|
|
90
|
+
return value;
|
|
91
|
+
};
|
|
92
|
+
var createToken = (name, value, isGlobal) => {
|
|
93
|
+
const safe = makeSafeRegex(value);
|
|
94
|
+
const index = R++;
|
|
95
|
+
debug(name, index, value);
|
|
96
|
+
t[name] = index;
|
|
97
|
+
src[index] = value;
|
|
98
|
+
safeSrc[index] = safe;
|
|
99
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
100
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
101
|
+
};
|
|
102
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
103
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
104
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
105
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
106
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
107
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
108
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
109
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
110
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
111
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
112
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
113
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
114
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
115
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
116
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
117
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
118
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
119
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
120
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
121
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
122
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
123
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
124
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
125
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
126
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
127
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
128
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
129
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
130
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
131
|
+
exports$1.tildeTrimReplace = "$1~";
|
|
132
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
133
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
134
|
+
createToken("LONECARET", "(?:\\^)");
|
|
135
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
136
|
+
exports$1.caretTrimReplace = "$1^";
|
|
137
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
138
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
139
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
140
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
141
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
142
|
+
exports$1.comparatorTrimReplace = "$1$2$3";
|
|
143
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
144
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
145
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
146
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
147
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
var require_parse_options = __commonJS({
|
|
151
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js"(exports$1, module) {
|
|
152
|
+
var looseOption = Object.freeze({ loose: true });
|
|
153
|
+
var emptyOpts = Object.freeze({});
|
|
154
|
+
var parseOptions = (options) => {
|
|
155
|
+
if (!options) {
|
|
156
|
+
return emptyOpts;
|
|
157
|
+
}
|
|
158
|
+
if (typeof options !== "object") {
|
|
159
|
+
return looseOption;
|
|
160
|
+
}
|
|
161
|
+
return options;
|
|
162
|
+
};
|
|
163
|
+
module.exports = parseOptions;
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
var require_identifiers = __commonJS({
|
|
167
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js"(exports$1, module) {
|
|
168
|
+
var numeric = /^[0-9]+$/;
|
|
169
|
+
var compareIdentifiers = (a, b) => {
|
|
170
|
+
if (typeof a === "number" && typeof b === "number") {
|
|
171
|
+
return a === b ? 0 : a < b ? -1 : 1;
|
|
172
|
+
}
|
|
173
|
+
const anum = numeric.test(a);
|
|
174
|
+
const bnum = numeric.test(b);
|
|
175
|
+
if (anum && bnum) {
|
|
176
|
+
a = +a;
|
|
177
|
+
b = +b;
|
|
178
|
+
}
|
|
179
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
180
|
+
};
|
|
181
|
+
var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
182
|
+
module.exports = {
|
|
183
|
+
compareIdentifiers,
|
|
184
|
+
rcompareIdentifiers
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
var require_semver = __commonJS({
|
|
189
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js"(exports$1, module) {
|
|
190
|
+
var debug = require_debug();
|
|
191
|
+
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
192
|
+
var { safeRe: re, t } = require_re();
|
|
193
|
+
var parseOptions = require_parse_options();
|
|
194
|
+
var { compareIdentifiers } = require_identifiers();
|
|
195
|
+
var SemVer = class _SemVer {
|
|
196
|
+
constructor(version, options) {
|
|
197
|
+
options = parseOptions(options);
|
|
198
|
+
if (version instanceof _SemVer) {
|
|
199
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
200
|
+
return version;
|
|
201
|
+
} else {
|
|
202
|
+
version = version.version;
|
|
203
|
+
}
|
|
204
|
+
} else if (typeof version !== "string") {
|
|
205
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
206
|
+
}
|
|
207
|
+
if (version.length > MAX_LENGTH) {
|
|
208
|
+
throw new TypeError(
|
|
209
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
debug("SemVer", version, options);
|
|
213
|
+
this.options = options;
|
|
214
|
+
this.loose = !!options.loose;
|
|
215
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
216
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
217
|
+
if (!m) {
|
|
218
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
219
|
+
}
|
|
220
|
+
this.raw = version;
|
|
221
|
+
this.major = +m[1];
|
|
222
|
+
this.minor = +m[2];
|
|
223
|
+
this.patch = +m[3];
|
|
224
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
225
|
+
throw new TypeError("Invalid major version");
|
|
226
|
+
}
|
|
227
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
228
|
+
throw new TypeError("Invalid minor version");
|
|
229
|
+
}
|
|
230
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
231
|
+
throw new TypeError("Invalid patch version");
|
|
232
|
+
}
|
|
233
|
+
if (!m[4]) {
|
|
234
|
+
this.prerelease = [];
|
|
235
|
+
} else {
|
|
236
|
+
this.prerelease = m[4].split(".").map((id) => {
|
|
237
|
+
if (/^[0-9]+$/.test(id)) {
|
|
238
|
+
const num = +id;
|
|
239
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
240
|
+
return num;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return id;
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
247
|
+
this.format();
|
|
248
|
+
}
|
|
249
|
+
format() {
|
|
250
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
251
|
+
if (this.prerelease.length) {
|
|
252
|
+
this.version += `-${this.prerelease.join(".")}`;
|
|
253
|
+
}
|
|
254
|
+
return this.version;
|
|
255
|
+
}
|
|
256
|
+
toString() {
|
|
257
|
+
return this.version;
|
|
258
|
+
}
|
|
259
|
+
compare(other) {
|
|
260
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
261
|
+
if (!(other instanceof _SemVer)) {
|
|
262
|
+
if (typeof other === "string" && other === this.version) {
|
|
263
|
+
return 0;
|
|
264
|
+
}
|
|
265
|
+
other = new _SemVer(other, this.options);
|
|
266
|
+
}
|
|
267
|
+
if (other.version === this.version) {
|
|
268
|
+
return 0;
|
|
269
|
+
}
|
|
270
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
271
|
+
}
|
|
272
|
+
compareMain(other) {
|
|
273
|
+
if (!(other instanceof _SemVer)) {
|
|
274
|
+
other = new _SemVer(other, this.options);
|
|
275
|
+
}
|
|
276
|
+
if (this.major < other.major) {
|
|
277
|
+
return -1;
|
|
278
|
+
}
|
|
279
|
+
if (this.major > other.major) {
|
|
280
|
+
return 1;
|
|
281
|
+
}
|
|
282
|
+
if (this.minor < other.minor) {
|
|
283
|
+
return -1;
|
|
284
|
+
}
|
|
285
|
+
if (this.minor > other.minor) {
|
|
286
|
+
return 1;
|
|
287
|
+
}
|
|
288
|
+
if (this.patch < other.patch) {
|
|
289
|
+
return -1;
|
|
290
|
+
}
|
|
291
|
+
if (this.patch > other.patch) {
|
|
292
|
+
return 1;
|
|
293
|
+
}
|
|
294
|
+
return 0;
|
|
295
|
+
}
|
|
296
|
+
comparePre(other) {
|
|
297
|
+
if (!(other instanceof _SemVer)) {
|
|
298
|
+
other = new _SemVer(other, this.options);
|
|
299
|
+
}
|
|
300
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
301
|
+
return -1;
|
|
302
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
303
|
+
return 1;
|
|
304
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
305
|
+
return 0;
|
|
306
|
+
}
|
|
307
|
+
let i = 0;
|
|
308
|
+
do {
|
|
309
|
+
const a = this.prerelease[i];
|
|
310
|
+
const b = other.prerelease[i];
|
|
311
|
+
debug("prerelease compare", i, a, b);
|
|
312
|
+
if (a === void 0 && b === void 0) {
|
|
313
|
+
return 0;
|
|
314
|
+
} else if (b === void 0) {
|
|
315
|
+
return 1;
|
|
316
|
+
} else if (a === void 0) {
|
|
317
|
+
return -1;
|
|
318
|
+
} else if (a === b) {
|
|
319
|
+
continue;
|
|
320
|
+
} else {
|
|
321
|
+
return compareIdentifiers(a, b);
|
|
322
|
+
}
|
|
323
|
+
} while (++i);
|
|
324
|
+
}
|
|
325
|
+
compareBuild(other) {
|
|
326
|
+
if (!(other instanceof _SemVer)) {
|
|
327
|
+
other = new _SemVer(other, this.options);
|
|
328
|
+
}
|
|
329
|
+
let i = 0;
|
|
330
|
+
do {
|
|
331
|
+
const a = this.build[i];
|
|
332
|
+
const b = other.build[i];
|
|
333
|
+
debug("build compare", i, a, b);
|
|
334
|
+
if (a === void 0 && b === void 0) {
|
|
335
|
+
return 0;
|
|
336
|
+
} else if (b === void 0) {
|
|
337
|
+
return 1;
|
|
338
|
+
} else if (a === void 0) {
|
|
339
|
+
return -1;
|
|
340
|
+
} else if (a === b) {
|
|
341
|
+
continue;
|
|
342
|
+
} else {
|
|
343
|
+
return compareIdentifiers(a, b);
|
|
344
|
+
}
|
|
345
|
+
} while (++i);
|
|
346
|
+
}
|
|
347
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
348
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
349
|
+
inc(release, identifier, identifierBase) {
|
|
350
|
+
if (release.startsWith("pre")) {
|
|
351
|
+
if (!identifier && identifierBase === false) {
|
|
352
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
353
|
+
}
|
|
354
|
+
if (identifier) {
|
|
355
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
356
|
+
if (!match || match[1] !== identifier) {
|
|
357
|
+
throw new Error(`invalid identifier: ${identifier}`);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
switch (release) {
|
|
362
|
+
case "premajor":
|
|
363
|
+
this.prerelease.length = 0;
|
|
364
|
+
this.patch = 0;
|
|
365
|
+
this.minor = 0;
|
|
366
|
+
this.major++;
|
|
367
|
+
this.inc("pre", identifier, identifierBase);
|
|
368
|
+
break;
|
|
369
|
+
case "preminor":
|
|
370
|
+
this.prerelease.length = 0;
|
|
371
|
+
this.patch = 0;
|
|
372
|
+
this.minor++;
|
|
373
|
+
this.inc("pre", identifier, identifierBase);
|
|
374
|
+
break;
|
|
375
|
+
case "prepatch":
|
|
376
|
+
this.prerelease.length = 0;
|
|
377
|
+
this.inc("patch", identifier, identifierBase);
|
|
378
|
+
this.inc("pre", identifier, identifierBase);
|
|
379
|
+
break;
|
|
380
|
+
// If the input is a non-prerelease version, this acts the same as
|
|
381
|
+
// prepatch.
|
|
382
|
+
case "prerelease":
|
|
383
|
+
if (this.prerelease.length === 0) {
|
|
384
|
+
this.inc("patch", identifier, identifierBase);
|
|
385
|
+
}
|
|
386
|
+
this.inc("pre", identifier, identifierBase);
|
|
387
|
+
break;
|
|
388
|
+
case "release":
|
|
389
|
+
if (this.prerelease.length === 0) {
|
|
390
|
+
throw new Error(`version ${this.raw} is not a prerelease`);
|
|
391
|
+
}
|
|
392
|
+
this.prerelease.length = 0;
|
|
393
|
+
break;
|
|
394
|
+
case "major":
|
|
395
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
396
|
+
this.major++;
|
|
397
|
+
}
|
|
398
|
+
this.minor = 0;
|
|
399
|
+
this.patch = 0;
|
|
400
|
+
this.prerelease = [];
|
|
401
|
+
break;
|
|
402
|
+
case "minor":
|
|
403
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
404
|
+
this.minor++;
|
|
405
|
+
}
|
|
406
|
+
this.patch = 0;
|
|
407
|
+
this.prerelease = [];
|
|
408
|
+
break;
|
|
409
|
+
case "patch":
|
|
410
|
+
if (this.prerelease.length === 0) {
|
|
411
|
+
this.patch++;
|
|
412
|
+
}
|
|
413
|
+
this.prerelease = [];
|
|
414
|
+
break;
|
|
415
|
+
// This probably shouldn't be used publicly.
|
|
416
|
+
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
417
|
+
case "pre": {
|
|
418
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
419
|
+
if (this.prerelease.length === 0) {
|
|
420
|
+
this.prerelease = [base];
|
|
421
|
+
} else {
|
|
422
|
+
let i = this.prerelease.length;
|
|
423
|
+
while (--i >= 0) {
|
|
424
|
+
if (typeof this.prerelease[i] === "number") {
|
|
425
|
+
this.prerelease[i]++;
|
|
426
|
+
i = -2;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
if (i === -1) {
|
|
430
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
431
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
432
|
+
}
|
|
433
|
+
this.prerelease.push(base);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
if (identifier) {
|
|
437
|
+
let prerelease = [identifier, base];
|
|
438
|
+
if (identifierBase === false) {
|
|
439
|
+
prerelease = [identifier];
|
|
440
|
+
}
|
|
441
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
442
|
+
if (isNaN(this.prerelease[1])) {
|
|
443
|
+
this.prerelease = prerelease;
|
|
444
|
+
}
|
|
445
|
+
} else {
|
|
446
|
+
this.prerelease = prerelease;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
break;
|
|
450
|
+
}
|
|
451
|
+
default:
|
|
452
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
453
|
+
}
|
|
454
|
+
this.raw = this.format();
|
|
455
|
+
if (this.build.length) {
|
|
456
|
+
this.raw += `+${this.build.join(".")}`;
|
|
457
|
+
}
|
|
458
|
+
return this;
|
|
459
|
+
}
|
|
460
|
+
};
|
|
461
|
+
module.exports = SemVer;
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
var require_parse = __commonJS({
|
|
465
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js"(exports$1, module) {
|
|
466
|
+
var SemVer = require_semver();
|
|
467
|
+
var parse = (version, options, throwErrors = false) => {
|
|
468
|
+
if (version instanceof SemVer) {
|
|
469
|
+
return version;
|
|
470
|
+
}
|
|
471
|
+
try {
|
|
472
|
+
return new SemVer(version, options);
|
|
473
|
+
} catch (er) {
|
|
474
|
+
if (!throwErrors) {
|
|
475
|
+
return null;
|
|
476
|
+
}
|
|
477
|
+
throw er;
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
module.exports = parse;
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
var require_valid = __commonJS({
|
|
484
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js"(exports$1, module) {
|
|
485
|
+
var parse = require_parse();
|
|
486
|
+
var valid2 = (version, options) => {
|
|
487
|
+
const v = parse(version, options);
|
|
488
|
+
return v ? v.version : null;
|
|
489
|
+
};
|
|
490
|
+
module.exports = valid2;
|
|
491
|
+
}
|
|
492
|
+
});
|
|
493
|
+
var require_clean = __commonJS({
|
|
494
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js"(exports$1, module) {
|
|
495
|
+
var parse = require_parse();
|
|
496
|
+
var clean = (version, options) => {
|
|
497
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
498
|
+
return s ? s.version : null;
|
|
499
|
+
};
|
|
500
|
+
module.exports = clean;
|
|
501
|
+
}
|
|
502
|
+
});
|
|
503
|
+
var require_inc = __commonJS({
|
|
504
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js"(exports$1, module) {
|
|
505
|
+
var SemVer = require_semver();
|
|
506
|
+
var inc = (version, release, options, identifier, identifierBase) => {
|
|
507
|
+
if (typeof options === "string") {
|
|
508
|
+
identifierBase = identifier;
|
|
509
|
+
identifier = options;
|
|
510
|
+
options = void 0;
|
|
511
|
+
}
|
|
512
|
+
try {
|
|
513
|
+
return new SemVer(
|
|
514
|
+
version instanceof SemVer ? version.version : version,
|
|
515
|
+
options
|
|
516
|
+
).inc(release, identifier, identifierBase).version;
|
|
517
|
+
} catch (er) {
|
|
518
|
+
return null;
|
|
519
|
+
}
|
|
520
|
+
};
|
|
521
|
+
module.exports = inc;
|
|
522
|
+
}
|
|
523
|
+
});
|
|
524
|
+
var require_diff = __commonJS({
|
|
525
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js"(exports$1, module) {
|
|
526
|
+
var parse = require_parse();
|
|
527
|
+
var diff = (version1, version2) => {
|
|
528
|
+
const v1 = parse(version1, null, true);
|
|
529
|
+
const v2 = parse(version2, null, true);
|
|
530
|
+
const comparison = v1.compare(v2);
|
|
531
|
+
if (comparison === 0) {
|
|
532
|
+
return null;
|
|
533
|
+
}
|
|
534
|
+
const v1Higher = comparison > 0;
|
|
535
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
536
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
537
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
538
|
+
const lowHasPre = !!lowVersion.prerelease.length;
|
|
539
|
+
if (lowHasPre && !highHasPre) {
|
|
540
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
541
|
+
return "major";
|
|
542
|
+
}
|
|
543
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
544
|
+
if (lowVersion.minor && !lowVersion.patch) {
|
|
545
|
+
return "minor";
|
|
546
|
+
}
|
|
547
|
+
return "patch";
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
const prefix = highHasPre ? "pre" : "";
|
|
551
|
+
if (v1.major !== v2.major) {
|
|
552
|
+
return prefix + "major";
|
|
553
|
+
}
|
|
554
|
+
if (v1.minor !== v2.minor) {
|
|
555
|
+
return prefix + "minor";
|
|
556
|
+
}
|
|
557
|
+
if (v1.patch !== v2.patch) {
|
|
558
|
+
return prefix + "patch";
|
|
559
|
+
}
|
|
560
|
+
return "prerelease";
|
|
561
|
+
};
|
|
562
|
+
module.exports = diff;
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
var require_major = __commonJS({
|
|
566
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js"(exports$1, module) {
|
|
567
|
+
var SemVer = require_semver();
|
|
568
|
+
var major = (a, loose) => new SemVer(a, loose).major;
|
|
569
|
+
module.exports = major;
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
var require_minor = __commonJS({
|
|
573
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js"(exports$1, module) {
|
|
574
|
+
var SemVer = require_semver();
|
|
575
|
+
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
576
|
+
module.exports = minor;
|
|
577
|
+
}
|
|
578
|
+
});
|
|
579
|
+
var require_patch = __commonJS({
|
|
580
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js"(exports$1, module) {
|
|
581
|
+
var SemVer = require_semver();
|
|
582
|
+
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
583
|
+
module.exports = patch;
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
var require_prerelease = __commonJS({
|
|
587
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js"(exports$1, module) {
|
|
588
|
+
var parse = require_parse();
|
|
589
|
+
var prerelease = (version, options) => {
|
|
590
|
+
const parsed = parse(version, options);
|
|
591
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
592
|
+
};
|
|
593
|
+
module.exports = prerelease;
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
var require_compare = __commonJS({
|
|
597
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js"(exports$1, module) {
|
|
598
|
+
var SemVer = require_semver();
|
|
599
|
+
var compare2 = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
600
|
+
module.exports = compare2;
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
var require_rcompare = __commonJS({
|
|
604
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js"(exports$1, module) {
|
|
605
|
+
var compare2 = require_compare();
|
|
606
|
+
var rcompare = (a, b, loose) => compare2(b, a, loose);
|
|
607
|
+
module.exports = rcompare;
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
var require_compare_loose = __commonJS({
|
|
611
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js"(exports$1, module) {
|
|
612
|
+
var compare2 = require_compare();
|
|
613
|
+
var compareLoose = (a, b) => compare2(a, b, true);
|
|
614
|
+
module.exports = compareLoose;
|
|
615
|
+
}
|
|
616
|
+
});
|
|
617
|
+
var require_compare_build = __commonJS({
|
|
618
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js"(exports$1, module) {
|
|
619
|
+
var SemVer = require_semver();
|
|
620
|
+
var compareBuild = (a, b, loose) => {
|
|
621
|
+
const versionA = new SemVer(a, loose);
|
|
622
|
+
const versionB = new SemVer(b, loose);
|
|
623
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
624
|
+
};
|
|
625
|
+
module.exports = compareBuild;
|
|
626
|
+
}
|
|
627
|
+
});
|
|
628
|
+
var require_sort = __commonJS({
|
|
629
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js"(exports$1, module) {
|
|
630
|
+
var compareBuild = require_compare_build();
|
|
631
|
+
var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
|
632
|
+
module.exports = sort;
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
var require_rsort = __commonJS({
|
|
636
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js"(exports$1, module) {
|
|
637
|
+
var compareBuild = require_compare_build();
|
|
638
|
+
var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
|
639
|
+
module.exports = rsort;
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
var require_gt = __commonJS({
|
|
643
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js"(exports$1, module) {
|
|
644
|
+
var compare2 = require_compare();
|
|
645
|
+
var gt = (a, b, loose) => compare2(a, b, loose) > 0;
|
|
646
|
+
module.exports = gt;
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
var require_lt = __commonJS({
|
|
650
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js"(exports$1, module) {
|
|
651
|
+
var compare2 = require_compare();
|
|
652
|
+
var lt = (a, b, loose) => compare2(a, b, loose) < 0;
|
|
653
|
+
module.exports = lt;
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
var require_eq = __commonJS({
|
|
657
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js"(exports$1, module) {
|
|
658
|
+
var compare2 = require_compare();
|
|
659
|
+
var eq = (a, b, loose) => compare2(a, b, loose) === 0;
|
|
660
|
+
module.exports = eq;
|
|
661
|
+
}
|
|
662
|
+
});
|
|
663
|
+
var require_neq = __commonJS({
|
|
664
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js"(exports$1, module) {
|
|
665
|
+
var compare2 = require_compare();
|
|
666
|
+
var neq = (a, b, loose) => compare2(a, b, loose) !== 0;
|
|
667
|
+
module.exports = neq;
|
|
668
|
+
}
|
|
669
|
+
});
|
|
670
|
+
var require_gte = __commonJS({
|
|
671
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js"(exports$1, module) {
|
|
672
|
+
var compare2 = require_compare();
|
|
673
|
+
var gte2 = (a, b, loose) => compare2(a, b, loose) >= 0;
|
|
674
|
+
module.exports = gte2;
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
var require_lte = __commonJS({
|
|
678
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js"(exports$1, module) {
|
|
679
|
+
var compare2 = require_compare();
|
|
680
|
+
var lte = (a, b, loose) => compare2(a, b, loose) <= 0;
|
|
681
|
+
module.exports = lte;
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
var require_cmp = __commonJS({
|
|
685
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js"(exports$1, module) {
|
|
686
|
+
var eq = require_eq();
|
|
687
|
+
var neq = require_neq();
|
|
688
|
+
var gt = require_gt();
|
|
689
|
+
var gte2 = require_gte();
|
|
690
|
+
var lt = require_lt();
|
|
691
|
+
var lte = require_lte();
|
|
692
|
+
var cmp = (a, op, b, loose) => {
|
|
693
|
+
switch (op) {
|
|
694
|
+
case "===":
|
|
695
|
+
if (typeof a === "object") {
|
|
696
|
+
a = a.version;
|
|
697
|
+
}
|
|
698
|
+
if (typeof b === "object") {
|
|
699
|
+
b = b.version;
|
|
700
|
+
}
|
|
701
|
+
return a === b;
|
|
702
|
+
case "!==":
|
|
703
|
+
if (typeof a === "object") {
|
|
704
|
+
a = a.version;
|
|
705
|
+
}
|
|
706
|
+
if (typeof b === "object") {
|
|
707
|
+
b = b.version;
|
|
708
|
+
}
|
|
709
|
+
return a !== b;
|
|
710
|
+
case "":
|
|
711
|
+
case "=":
|
|
712
|
+
case "==":
|
|
713
|
+
return eq(a, b, loose);
|
|
714
|
+
case "!=":
|
|
715
|
+
return neq(a, b, loose);
|
|
716
|
+
case ">":
|
|
717
|
+
return gt(a, b, loose);
|
|
718
|
+
case ">=":
|
|
719
|
+
return gte2(a, b, loose);
|
|
720
|
+
case "<":
|
|
721
|
+
return lt(a, b, loose);
|
|
722
|
+
case "<=":
|
|
723
|
+
return lte(a, b, loose);
|
|
724
|
+
default:
|
|
725
|
+
throw new TypeError(`Invalid operator: ${op}`);
|
|
726
|
+
}
|
|
727
|
+
};
|
|
728
|
+
module.exports = cmp;
|
|
729
|
+
}
|
|
730
|
+
});
|
|
731
|
+
var require_coerce = __commonJS({
|
|
732
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js"(exports$1, module) {
|
|
733
|
+
var SemVer = require_semver();
|
|
734
|
+
var parse = require_parse();
|
|
735
|
+
var { safeRe: re, t } = require_re();
|
|
736
|
+
var coerce2 = (version, options) => {
|
|
737
|
+
if (version instanceof SemVer) {
|
|
738
|
+
return version;
|
|
739
|
+
}
|
|
740
|
+
if (typeof version === "number") {
|
|
741
|
+
version = String(version);
|
|
742
|
+
}
|
|
743
|
+
if (typeof version !== "string") {
|
|
744
|
+
return null;
|
|
745
|
+
}
|
|
746
|
+
options = options || {};
|
|
747
|
+
let match = null;
|
|
748
|
+
if (!options.rtl) {
|
|
749
|
+
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
|
750
|
+
} else {
|
|
751
|
+
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL];
|
|
752
|
+
let next;
|
|
753
|
+
while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length)) {
|
|
754
|
+
if (!match || next.index + next[0].length !== match.index + match[0].length) {
|
|
755
|
+
match = next;
|
|
756
|
+
}
|
|
757
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
758
|
+
}
|
|
759
|
+
coerceRtlRegex.lastIndex = -1;
|
|
760
|
+
}
|
|
761
|
+
if (match === null) {
|
|
762
|
+
return null;
|
|
763
|
+
}
|
|
764
|
+
const major = match[2];
|
|
765
|
+
const minor = match[3] || "0";
|
|
766
|
+
const patch = match[4] || "0";
|
|
767
|
+
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
|
|
768
|
+
const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
|
769
|
+
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
770
|
+
};
|
|
771
|
+
module.exports = coerce2;
|
|
772
|
+
}
|
|
773
|
+
});
|
|
774
|
+
var require_lrucache = __commonJS({
|
|
775
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js"(exports$1, module) {
|
|
776
|
+
var LRUCache = class {
|
|
777
|
+
constructor() {
|
|
778
|
+
this.max = 1e3;
|
|
779
|
+
this.map = /* @__PURE__ */ new Map();
|
|
780
|
+
}
|
|
781
|
+
get(key) {
|
|
782
|
+
const value = this.map.get(key);
|
|
783
|
+
if (value === void 0) {
|
|
784
|
+
return void 0;
|
|
785
|
+
} else {
|
|
786
|
+
this.map.delete(key);
|
|
787
|
+
this.map.set(key, value);
|
|
788
|
+
return value;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
delete(key) {
|
|
792
|
+
return this.map.delete(key);
|
|
793
|
+
}
|
|
794
|
+
set(key, value) {
|
|
795
|
+
const deleted = this.delete(key);
|
|
796
|
+
if (!deleted && value !== void 0) {
|
|
797
|
+
if (this.map.size >= this.max) {
|
|
798
|
+
const firstKey = this.map.keys().next().value;
|
|
799
|
+
this.delete(firstKey);
|
|
800
|
+
}
|
|
801
|
+
this.map.set(key, value);
|
|
802
|
+
}
|
|
803
|
+
return this;
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
module.exports = LRUCache;
|
|
807
|
+
}
|
|
808
|
+
});
|
|
809
|
+
var require_range = __commonJS({
|
|
810
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js"(exports$1, module) {
|
|
811
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
812
|
+
var Range = class _Range {
|
|
813
|
+
constructor(range, options) {
|
|
814
|
+
options = parseOptions(options);
|
|
815
|
+
if (range instanceof _Range) {
|
|
816
|
+
if (range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease) {
|
|
817
|
+
return range;
|
|
818
|
+
} else {
|
|
819
|
+
return new _Range(range.raw, options);
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
if (range instanceof Comparator) {
|
|
823
|
+
this.raw = range.value;
|
|
824
|
+
this.set = [[range]];
|
|
825
|
+
this.formatted = void 0;
|
|
826
|
+
return this;
|
|
827
|
+
}
|
|
828
|
+
this.options = options;
|
|
829
|
+
this.loose = !!options.loose;
|
|
830
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
831
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
832
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
833
|
+
if (!this.set.length) {
|
|
834
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
835
|
+
}
|
|
836
|
+
if (this.set.length > 1) {
|
|
837
|
+
const first = this.set[0];
|
|
838
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
839
|
+
if (this.set.length === 0) {
|
|
840
|
+
this.set = [first];
|
|
841
|
+
} else if (this.set.length > 1) {
|
|
842
|
+
for (const c of this.set) {
|
|
843
|
+
if (c.length === 1 && isAny(c[0])) {
|
|
844
|
+
this.set = [c];
|
|
845
|
+
break;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
this.formatted = void 0;
|
|
851
|
+
}
|
|
852
|
+
get range() {
|
|
853
|
+
if (this.formatted === void 0) {
|
|
854
|
+
this.formatted = "";
|
|
855
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
856
|
+
if (i > 0) {
|
|
857
|
+
this.formatted += "||";
|
|
858
|
+
}
|
|
859
|
+
const comps = this.set[i];
|
|
860
|
+
for (let k = 0; k < comps.length; k++) {
|
|
861
|
+
if (k > 0) {
|
|
862
|
+
this.formatted += " ";
|
|
863
|
+
}
|
|
864
|
+
this.formatted += comps[k].toString().trim();
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
return this.formatted;
|
|
869
|
+
}
|
|
870
|
+
format() {
|
|
871
|
+
return this.range;
|
|
872
|
+
}
|
|
873
|
+
toString() {
|
|
874
|
+
return this.range;
|
|
875
|
+
}
|
|
876
|
+
parseRange(range) {
|
|
877
|
+
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
878
|
+
const memoKey = memoOpts + ":" + range;
|
|
879
|
+
const cached = cache.get(memoKey);
|
|
880
|
+
if (cached) {
|
|
881
|
+
return cached;
|
|
882
|
+
}
|
|
883
|
+
const loose = this.options.loose;
|
|
884
|
+
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
885
|
+
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
886
|
+
debug("hyphen replace", range);
|
|
887
|
+
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
888
|
+
debug("comparator trim", range);
|
|
889
|
+
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
890
|
+
debug("tilde trim", range);
|
|
891
|
+
range = range.replace(re[t.CARETTRIM], caretTrimReplace);
|
|
892
|
+
debug("caret trim", range);
|
|
893
|
+
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
894
|
+
if (loose) {
|
|
895
|
+
rangeList = rangeList.filter((comp) => {
|
|
896
|
+
debug("loose invalid filter", comp, this.options);
|
|
897
|
+
return !!comp.match(re[t.COMPARATORLOOSE]);
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
debug("range list", rangeList);
|
|
901
|
+
const rangeMap = /* @__PURE__ */ new Map();
|
|
902
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
903
|
+
for (const comp of comparators) {
|
|
904
|
+
if (isNullSet(comp)) {
|
|
905
|
+
return [comp];
|
|
906
|
+
}
|
|
907
|
+
rangeMap.set(comp.value, comp);
|
|
908
|
+
}
|
|
909
|
+
if (rangeMap.size > 1 && rangeMap.has("")) {
|
|
910
|
+
rangeMap.delete("");
|
|
911
|
+
}
|
|
912
|
+
const result = [...rangeMap.values()];
|
|
913
|
+
cache.set(memoKey, result);
|
|
914
|
+
return result;
|
|
915
|
+
}
|
|
916
|
+
intersects(range, options) {
|
|
917
|
+
if (!(range instanceof _Range)) {
|
|
918
|
+
throw new TypeError("a Range is required");
|
|
919
|
+
}
|
|
920
|
+
return this.set.some((thisComparators) => {
|
|
921
|
+
return isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => {
|
|
922
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
923
|
+
return rangeComparators.every((rangeComparator) => {
|
|
924
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
925
|
+
});
|
|
926
|
+
});
|
|
927
|
+
});
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
|
931
|
+
test(version) {
|
|
932
|
+
if (!version) {
|
|
933
|
+
return false;
|
|
934
|
+
}
|
|
935
|
+
if (typeof version === "string") {
|
|
936
|
+
try {
|
|
937
|
+
version = new SemVer(version, this.options);
|
|
938
|
+
} catch (er) {
|
|
939
|
+
return false;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
943
|
+
if (testSet(this.set[i], version, this.options)) {
|
|
944
|
+
return true;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
return false;
|
|
948
|
+
}
|
|
949
|
+
};
|
|
950
|
+
module.exports = Range;
|
|
951
|
+
var LRU = require_lrucache();
|
|
952
|
+
var cache = new LRU();
|
|
953
|
+
var parseOptions = require_parse_options();
|
|
954
|
+
var Comparator = require_comparator();
|
|
955
|
+
var debug = require_debug();
|
|
956
|
+
var SemVer = require_semver();
|
|
957
|
+
var {
|
|
958
|
+
safeRe: re,
|
|
959
|
+
t,
|
|
960
|
+
comparatorTrimReplace,
|
|
961
|
+
tildeTrimReplace,
|
|
962
|
+
caretTrimReplace
|
|
963
|
+
} = require_re();
|
|
964
|
+
var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
965
|
+
var isNullSet = (c) => c.value === "<0.0.0-0";
|
|
966
|
+
var isAny = (c) => c.value === "";
|
|
967
|
+
var isSatisfiable = (comparators, options) => {
|
|
968
|
+
let result = true;
|
|
969
|
+
const remainingComparators = comparators.slice();
|
|
970
|
+
let testComparator = remainingComparators.pop();
|
|
971
|
+
while (result && remainingComparators.length) {
|
|
972
|
+
result = remainingComparators.every((otherComparator) => {
|
|
973
|
+
return testComparator.intersects(otherComparator, options);
|
|
974
|
+
});
|
|
975
|
+
testComparator = remainingComparators.pop();
|
|
976
|
+
}
|
|
977
|
+
return result;
|
|
978
|
+
};
|
|
979
|
+
var parseComparator = (comp, options) => {
|
|
980
|
+
comp = comp.replace(re[t.BUILD], "");
|
|
981
|
+
debug("comp", comp, options);
|
|
982
|
+
comp = replaceCarets(comp, options);
|
|
983
|
+
debug("caret", comp);
|
|
984
|
+
comp = replaceTildes(comp, options);
|
|
985
|
+
debug("tildes", comp);
|
|
986
|
+
comp = replaceXRanges(comp, options);
|
|
987
|
+
debug("xrange", comp);
|
|
988
|
+
comp = replaceStars(comp, options);
|
|
989
|
+
debug("stars", comp);
|
|
990
|
+
return comp;
|
|
991
|
+
};
|
|
992
|
+
var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
993
|
+
var replaceTildes = (comp, options) => {
|
|
994
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
995
|
+
};
|
|
996
|
+
var replaceTilde = (comp, options) => {
|
|
997
|
+
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
998
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
999
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
1000
|
+
let ret;
|
|
1001
|
+
if (isX(M)) {
|
|
1002
|
+
ret = "";
|
|
1003
|
+
} else if (isX(m)) {
|
|
1004
|
+
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
1005
|
+
} else if (isX(p)) {
|
|
1006
|
+
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
1007
|
+
} else if (pr) {
|
|
1008
|
+
debug("replaceTilde pr", pr);
|
|
1009
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
1010
|
+
} else {
|
|
1011
|
+
ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
1012
|
+
}
|
|
1013
|
+
debug("tilde return", ret);
|
|
1014
|
+
return ret;
|
|
1015
|
+
});
|
|
1016
|
+
};
|
|
1017
|
+
var replaceCarets = (comp, options) => {
|
|
1018
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
1019
|
+
};
|
|
1020
|
+
var replaceCaret = (comp, options) => {
|
|
1021
|
+
debug("caret", comp, options);
|
|
1022
|
+
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET];
|
|
1023
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
1024
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
1025
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
1026
|
+
let ret;
|
|
1027
|
+
if (isX(M)) {
|
|
1028
|
+
ret = "";
|
|
1029
|
+
} else if (isX(m)) {
|
|
1030
|
+
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
1031
|
+
} else if (isX(p)) {
|
|
1032
|
+
if (M === "0") {
|
|
1033
|
+
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
1034
|
+
} else {
|
|
1035
|
+
ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
1036
|
+
}
|
|
1037
|
+
} else if (pr) {
|
|
1038
|
+
debug("replaceCaret pr", pr);
|
|
1039
|
+
if (M === "0") {
|
|
1040
|
+
if (m === "0") {
|
|
1041
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
1042
|
+
} else {
|
|
1043
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
1044
|
+
}
|
|
1045
|
+
} else {
|
|
1046
|
+
ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
1047
|
+
}
|
|
1048
|
+
} else {
|
|
1049
|
+
debug("no pr");
|
|
1050
|
+
if (M === "0") {
|
|
1051
|
+
if (m === "0") {
|
|
1052
|
+
ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
1053
|
+
} else {
|
|
1054
|
+
ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
1055
|
+
}
|
|
1056
|
+
} else {
|
|
1057
|
+
ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
debug("caret return", ret);
|
|
1061
|
+
return ret;
|
|
1062
|
+
});
|
|
1063
|
+
};
|
|
1064
|
+
var replaceXRanges = (comp, options) => {
|
|
1065
|
+
debug("replaceXRanges", comp, options);
|
|
1066
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
1067
|
+
};
|
|
1068
|
+
var replaceXRange = (comp, options) => {
|
|
1069
|
+
comp = comp.trim();
|
|
1070
|
+
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
1071
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
1072
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
1073
|
+
const xM = isX(M);
|
|
1074
|
+
const xm = xM || isX(m);
|
|
1075
|
+
const xp = xm || isX(p);
|
|
1076
|
+
const anyX = xp;
|
|
1077
|
+
if (gtlt === "=" && anyX) {
|
|
1078
|
+
gtlt = "";
|
|
1079
|
+
}
|
|
1080
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
1081
|
+
if (xM) {
|
|
1082
|
+
if (gtlt === ">" || gtlt === "<") {
|
|
1083
|
+
ret = "<0.0.0-0";
|
|
1084
|
+
} else {
|
|
1085
|
+
ret = "*";
|
|
1086
|
+
}
|
|
1087
|
+
} else if (gtlt && anyX) {
|
|
1088
|
+
if (xm) {
|
|
1089
|
+
m = 0;
|
|
1090
|
+
}
|
|
1091
|
+
p = 0;
|
|
1092
|
+
if (gtlt === ">") {
|
|
1093
|
+
gtlt = ">=";
|
|
1094
|
+
if (xm) {
|
|
1095
|
+
M = +M + 1;
|
|
1096
|
+
m = 0;
|
|
1097
|
+
p = 0;
|
|
1098
|
+
} else {
|
|
1099
|
+
m = +m + 1;
|
|
1100
|
+
p = 0;
|
|
1101
|
+
}
|
|
1102
|
+
} else if (gtlt === "<=") {
|
|
1103
|
+
gtlt = "<";
|
|
1104
|
+
if (xm) {
|
|
1105
|
+
M = +M + 1;
|
|
1106
|
+
} else {
|
|
1107
|
+
m = +m + 1;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
if (gtlt === "<") {
|
|
1111
|
+
pr = "-0";
|
|
1112
|
+
}
|
|
1113
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
1114
|
+
} else if (xm) {
|
|
1115
|
+
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
1116
|
+
} else if (xp) {
|
|
1117
|
+
ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
1118
|
+
}
|
|
1119
|
+
debug("xRange return", ret);
|
|
1120
|
+
return ret;
|
|
1121
|
+
});
|
|
1122
|
+
};
|
|
1123
|
+
var replaceStars = (comp, options) => {
|
|
1124
|
+
debug("replaceStars", comp, options);
|
|
1125
|
+
return comp.trim().replace(re[t.STAR], "");
|
|
1126
|
+
};
|
|
1127
|
+
var replaceGTE0 = (comp, options) => {
|
|
1128
|
+
debug("replaceGTE0", comp, options);
|
|
1129
|
+
return comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "");
|
|
1130
|
+
};
|
|
1131
|
+
var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
1132
|
+
if (isX(fM)) {
|
|
1133
|
+
from = "";
|
|
1134
|
+
} else if (isX(fm)) {
|
|
1135
|
+
from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
1136
|
+
} else if (isX(fp)) {
|
|
1137
|
+
from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
1138
|
+
} else if (fpr) {
|
|
1139
|
+
from = `>=${from}`;
|
|
1140
|
+
} else {
|
|
1141
|
+
from = `>=${from}${incPr ? "-0" : ""}`;
|
|
1142
|
+
}
|
|
1143
|
+
if (isX(tM)) {
|
|
1144
|
+
to = "";
|
|
1145
|
+
} else if (isX(tm)) {
|
|
1146
|
+
to = `<${+tM + 1}.0.0-0`;
|
|
1147
|
+
} else if (isX(tp)) {
|
|
1148
|
+
to = `<${tM}.${+tm + 1}.0-0`;
|
|
1149
|
+
} else if (tpr) {
|
|
1150
|
+
to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
1151
|
+
} else if (incPr) {
|
|
1152
|
+
to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
1153
|
+
} else {
|
|
1154
|
+
to = `<=${to}`;
|
|
1155
|
+
}
|
|
1156
|
+
return `${from} ${to}`.trim();
|
|
1157
|
+
};
|
|
1158
|
+
var testSet = (set, version, options) => {
|
|
1159
|
+
for (let i = 0; i < set.length; i++) {
|
|
1160
|
+
if (!set[i].test(version)) {
|
|
1161
|
+
return false;
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
if (version.prerelease.length && !options.includePrerelease) {
|
|
1165
|
+
for (let i = 0; i < set.length; i++) {
|
|
1166
|
+
debug(set[i].semver);
|
|
1167
|
+
if (set[i].semver === Comparator.ANY) {
|
|
1168
|
+
continue;
|
|
1169
|
+
}
|
|
1170
|
+
if (set[i].semver.prerelease.length > 0) {
|
|
1171
|
+
const allowed = set[i].semver;
|
|
1172
|
+
if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) {
|
|
1173
|
+
return true;
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
return false;
|
|
1178
|
+
}
|
|
1179
|
+
return true;
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
});
|
|
1183
|
+
var require_comparator = __commonJS({
|
|
1184
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js"(exports$1, module) {
|
|
1185
|
+
var ANY = /* @__PURE__ */ Symbol("SemVer ANY");
|
|
1186
|
+
var Comparator = class _Comparator {
|
|
1187
|
+
static get ANY() {
|
|
1188
|
+
return ANY;
|
|
1189
|
+
}
|
|
1190
|
+
constructor(comp, options) {
|
|
1191
|
+
options = parseOptions(options);
|
|
1192
|
+
if (comp instanceof _Comparator) {
|
|
1193
|
+
if (comp.loose === !!options.loose) {
|
|
1194
|
+
return comp;
|
|
1195
|
+
} else {
|
|
1196
|
+
comp = comp.value;
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
1200
|
+
debug("comparator", comp, options);
|
|
1201
|
+
this.options = options;
|
|
1202
|
+
this.loose = !!options.loose;
|
|
1203
|
+
this.parse(comp);
|
|
1204
|
+
if (this.semver === ANY) {
|
|
1205
|
+
this.value = "";
|
|
1206
|
+
} else {
|
|
1207
|
+
this.value = this.operator + this.semver.version;
|
|
1208
|
+
}
|
|
1209
|
+
debug("comp", this);
|
|
1210
|
+
}
|
|
1211
|
+
parse(comp) {
|
|
1212
|
+
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
|
|
1213
|
+
const m = comp.match(r);
|
|
1214
|
+
if (!m) {
|
|
1215
|
+
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
1216
|
+
}
|
|
1217
|
+
this.operator = m[1] !== void 0 ? m[1] : "";
|
|
1218
|
+
if (this.operator === "=") {
|
|
1219
|
+
this.operator = "";
|
|
1220
|
+
}
|
|
1221
|
+
if (!m[2]) {
|
|
1222
|
+
this.semver = ANY;
|
|
1223
|
+
} else {
|
|
1224
|
+
this.semver = new SemVer(m[2], this.options.loose);
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
toString() {
|
|
1228
|
+
return this.value;
|
|
1229
|
+
}
|
|
1230
|
+
test(version) {
|
|
1231
|
+
debug("Comparator.test", version, this.options.loose);
|
|
1232
|
+
if (this.semver === ANY || version === ANY) {
|
|
1233
|
+
return true;
|
|
1234
|
+
}
|
|
1235
|
+
if (typeof version === "string") {
|
|
1236
|
+
try {
|
|
1237
|
+
version = new SemVer(version, this.options);
|
|
1238
|
+
} catch (er) {
|
|
1239
|
+
return false;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
return cmp(version, this.operator, this.semver, this.options);
|
|
1243
|
+
}
|
|
1244
|
+
intersects(comp, options) {
|
|
1245
|
+
if (!(comp instanceof _Comparator)) {
|
|
1246
|
+
throw new TypeError("a Comparator is required");
|
|
1247
|
+
}
|
|
1248
|
+
if (this.operator === "") {
|
|
1249
|
+
if (this.value === "") {
|
|
1250
|
+
return true;
|
|
1251
|
+
}
|
|
1252
|
+
return new Range(comp.value, options).test(this.value);
|
|
1253
|
+
} else if (comp.operator === "") {
|
|
1254
|
+
if (comp.value === "") {
|
|
1255
|
+
return true;
|
|
1256
|
+
}
|
|
1257
|
+
return new Range(this.value, options).test(comp.semver);
|
|
1258
|
+
}
|
|
1259
|
+
options = parseOptions(options);
|
|
1260
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
|
|
1261
|
+
return false;
|
|
1262
|
+
}
|
|
1263
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
|
|
1264
|
+
return false;
|
|
1265
|
+
}
|
|
1266
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
|
|
1267
|
+
return true;
|
|
1268
|
+
}
|
|
1269
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
|
|
1270
|
+
return true;
|
|
1271
|
+
}
|
|
1272
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
|
|
1273
|
+
return true;
|
|
1274
|
+
}
|
|
1275
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
|
|
1276
|
+
return true;
|
|
1277
|
+
}
|
|
1278
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
|
|
1279
|
+
return true;
|
|
1280
|
+
}
|
|
1281
|
+
return false;
|
|
1282
|
+
}
|
|
1283
|
+
};
|
|
1284
|
+
module.exports = Comparator;
|
|
1285
|
+
var parseOptions = require_parse_options();
|
|
1286
|
+
var { safeRe: re, t } = require_re();
|
|
1287
|
+
var cmp = require_cmp();
|
|
1288
|
+
var debug = require_debug();
|
|
1289
|
+
var SemVer = require_semver();
|
|
1290
|
+
var Range = require_range();
|
|
1291
|
+
}
|
|
1292
|
+
});
|
|
1293
|
+
var require_satisfies = __commonJS({
|
|
1294
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js"(exports$1, module) {
|
|
1295
|
+
var Range = require_range();
|
|
1296
|
+
var satisfies2 = (version, range, options) => {
|
|
1297
|
+
try {
|
|
1298
|
+
range = new Range(range, options);
|
|
1299
|
+
} catch (er) {
|
|
1300
|
+
return false;
|
|
1301
|
+
}
|
|
1302
|
+
return range.test(version);
|
|
1303
|
+
};
|
|
1304
|
+
module.exports = satisfies2;
|
|
1305
|
+
}
|
|
1306
|
+
});
|
|
1307
|
+
var require_to_comparators = __commonJS({
|
|
1308
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js"(exports$1, module) {
|
|
1309
|
+
var Range = require_range();
|
|
1310
|
+
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
1311
|
+
module.exports = toComparators;
|
|
1312
|
+
}
|
|
1313
|
+
});
|
|
1314
|
+
var require_max_satisfying = __commonJS({
|
|
1315
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js"(exports$1, module) {
|
|
1316
|
+
var SemVer = require_semver();
|
|
1317
|
+
var Range = require_range();
|
|
1318
|
+
var maxSatisfying = (versions, range, options) => {
|
|
1319
|
+
let max = null;
|
|
1320
|
+
let maxSV = null;
|
|
1321
|
+
let rangeObj = null;
|
|
1322
|
+
try {
|
|
1323
|
+
rangeObj = new Range(range, options);
|
|
1324
|
+
} catch (er) {
|
|
1325
|
+
return null;
|
|
1326
|
+
}
|
|
1327
|
+
versions.forEach((v) => {
|
|
1328
|
+
if (rangeObj.test(v)) {
|
|
1329
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
1330
|
+
max = v;
|
|
1331
|
+
maxSV = new SemVer(max, options);
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
});
|
|
1335
|
+
return max;
|
|
1336
|
+
};
|
|
1337
|
+
module.exports = maxSatisfying;
|
|
1338
|
+
}
|
|
1339
|
+
});
|
|
1340
|
+
var require_min_satisfying = __commonJS({
|
|
1341
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js"(exports$1, module) {
|
|
1342
|
+
var SemVer = require_semver();
|
|
1343
|
+
var Range = require_range();
|
|
1344
|
+
var minSatisfying = (versions, range, options) => {
|
|
1345
|
+
let min = null;
|
|
1346
|
+
let minSV = null;
|
|
1347
|
+
let rangeObj = null;
|
|
1348
|
+
try {
|
|
1349
|
+
rangeObj = new Range(range, options);
|
|
1350
|
+
} catch (er) {
|
|
1351
|
+
return null;
|
|
1352
|
+
}
|
|
1353
|
+
versions.forEach((v) => {
|
|
1354
|
+
if (rangeObj.test(v)) {
|
|
1355
|
+
if (!min || minSV.compare(v) === 1) {
|
|
1356
|
+
min = v;
|
|
1357
|
+
minSV = new SemVer(min, options);
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
});
|
|
1361
|
+
return min;
|
|
1362
|
+
};
|
|
1363
|
+
module.exports = minSatisfying;
|
|
1364
|
+
}
|
|
1365
|
+
});
|
|
1366
|
+
var require_min_version = __commonJS({
|
|
1367
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js"(exports$1, module) {
|
|
1368
|
+
var SemVer = require_semver();
|
|
1369
|
+
var Range = require_range();
|
|
1370
|
+
var gt = require_gt();
|
|
1371
|
+
var minVersion = (range, loose) => {
|
|
1372
|
+
range = new Range(range, loose);
|
|
1373
|
+
let minver = new SemVer("0.0.0");
|
|
1374
|
+
if (range.test(minver)) {
|
|
1375
|
+
return minver;
|
|
1376
|
+
}
|
|
1377
|
+
minver = new SemVer("0.0.0-0");
|
|
1378
|
+
if (range.test(minver)) {
|
|
1379
|
+
return minver;
|
|
1380
|
+
}
|
|
1381
|
+
minver = null;
|
|
1382
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
1383
|
+
const comparators = range.set[i];
|
|
1384
|
+
let setMin = null;
|
|
1385
|
+
comparators.forEach((comparator) => {
|
|
1386
|
+
const compver = new SemVer(comparator.semver.version);
|
|
1387
|
+
switch (comparator.operator) {
|
|
1388
|
+
case ">":
|
|
1389
|
+
if (compver.prerelease.length === 0) {
|
|
1390
|
+
compver.patch++;
|
|
1391
|
+
} else {
|
|
1392
|
+
compver.prerelease.push(0);
|
|
1393
|
+
}
|
|
1394
|
+
compver.raw = compver.format();
|
|
1395
|
+
/* fallthrough */
|
|
1396
|
+
case "":
|
|
1397
|
+
case ">=":
|
|
1398
|
+
if (!setMin || gt(compver, setMin)) {
|
|
1399
|
+
setMin = compver;
|
|
1400
|
+
}
|
|
1401
|
+
break;
|
|
1402
|
+
case "<":
|
|
1403
|
+
case "<=":
|
|
1404
|
+
break;
|
|
1405
|
+
/* istanbul ignore next */
|
|
1406
|
+
default:
|
|
1407
|
+
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
1408
|
+
}
|
|
1409
|
+
});
|
|
1410
|
+
if (setMin && (!minver || gt(minver, setMin))) {
|
|
1411
|
+
minver = setMin;
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
if (minver && range.test(minver)) {
|
|
1415
|
+
return minver;
|
|
1416
|
+
}
|
|
1417
|
+
return null;
|
|
1418
|
+
};
|
|
1419
|
+
module.exports = minVersion;
|
|
1420
|
+
}
|
|
1421
|
+
});
|
|
1422
|
+
var require_valid2 = __commonJS({
|
|
1423
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js"(exports$1, module) {
|
|
1424
|
+
var Range = require_range();
|
|
1425
|
+
var validRange = (range, options) => {
|
|
1426
|
+
try {
|
|
1427
|
+
return new Range(range, options).range || "*";
|
|
1428
|
+
} catch (er) {
|
|
1429
|
+
return null;
|
|
1430
|
+
}
|
|
1431
|
+
};
|
|
1432
|
+
module.exports = validRange;
|
|
1433
|
+
}
|
|
1434
|
+
});
|
|
1435
|
+
var require_outside = __commonJS({
|
|
1436
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js"(exports$1, module) {
|
|
1437
|
+
var SemVer = require_semver();
|
|
1438
|
+
var Comparator = require_comparator();
|
|
1439
|
+
var { ANY } = Comparator;
|
|
1440
|
+
var Range = require_range();
|
|
1441
|
+
var satisfies2 = require_satisfies();
|
|
1442
|
+
var gt = require_gt();
|
|
1443
|
+
var lt = require_lt();
|
|
1444
|
+
var lte = require_lte();
|
|
1445
|
+
var gte2 = require_gte();
|
|
1446
|
+
var outside = (version, range, hilo, options) => {
|
|
1447
|
+
version = new SemVer(version, options);
|
|
1448
|
+
range = new Range(range, options);
|
|
1449
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
1450
|
+
switch (hilo) {
|
|
1451
|
+
case ">":
|
|
1452
|
+
gtfn = gt;
|
|
1453
|
+
ltefn = lte;
|
|
1454
|
+
ltfn = lt;
|
|
1455
|
+
comp = ">";
|
|
1456
|
+
ecomp = ">=";
|
|
1457
|
+
break;
|
|
1458
|
+
case "<":
|
|
1459
|
+
gtfn = lt;
|
|
1460
|
+
ltefn = gte2;
|
|
1461
|
+
ltfn = gt;
|
|
1462
|
+
comp = "<";
|
|
1463
|
+
ecomp = "<=";
|
|
1464
|
+
break;
|
|
1465
|
+
default:
|
|
1466
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
1467
|
+
}
|
|
1468
|
+
if (satisfies2(version, range, options)) {
|
|
1469
|
+
return false;
|
|
1470
|
+
}
|
|
1471
|
+
for (let i = 0; i < range.set.length; ++i) {
|
|
1472
|
+
const comparators = range.set[i];
|
|
1473
|
+
let high = null;
|
|
1474
|
+
let low = null;
|
|
1475
|
+
comparators.forEach((comparator) => {
|
|
1476
|
+
if (comparator.semver === ANY) {
|
|
1477
|
+
comparator = new Comparator(">=0.0.0");
|
|
1478
|
+
}
|
|
1479
|
+
high = high || comparator;
|
|
1480
|
+
low = low || comparator;
|
|
1481
|
+
if (gtfn(comparator.semver, high.semver, options)) {
|
|
1482
|
+
high = comparator;
|
|
1483
|
+
} else if (ltfn(comparator.semver, low.semver, options)) {
|
|
1484
|
+
low = comparator;
|
|
1485
|
+
}
|
|
1486
|
+
});
|
|
1487
|
+
if (high.operator === comp || high.operator === ecomp) {
|
|
1488
|
+
return false;
|
|
1489
|
+
}
|
|
1490
|
+
if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
|
|
1491
|
+
return false;
|
|
1492
|
+
} else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
|
1493
|
+
return false;
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
return true;
|
|
1497
|
+
};
|
|
1498
|
+
module.exports = outside;
|
|
1499
|
+
}
|
|
1500
|
+
});
|
|
1501
|
+
var require_gtr = __commonJS({
|
|
1502
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js"(exports$1, module) {
|
|
1503
|
+
var outside = require_outside();
|
|
1504
|
+
var gtr = (version, range, options) => outside(version, range, ">", options);
|
|
1505
|
+
module.exports = gtr;
|
|
1506
|
+
}
|
|
1507
|
+
});
|
|
1508
|
+
var require_ltr = __commonJS({
|
|
1509
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js"(exports$1, module) {
|
|
1510
|
+
var outside = require_outside();
|
|
1511
|
+
var ltr = (version, range, options) => outside(version, range, "<", options);
|
|
1512
|
+
module.exports = ltr;
|
|
1513
|
+
}
|
|
1514
|
+
});
|
|
1515
|
+
var require_intersects = __commonJS({
|
|
1516
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js"(exports$1, module) {
|
|
1517
|
+
var Range = require_range();
|
|
1518
|
+
var intersects = (r1, r2, options) => {
|
|
1519
|
+
r1 = new Range(r1, options);
|
|
1520
|
+
r2 = new Range(r2, options);
|
|
1521
|
+
return r1.intersects(r2, options);
|
|
1522
|
+
};
|
|
1523
|
+
module.exports = intersects;
|
|
1524
|
+
}
|
|
1525
|
+
});
|
|
1526
|
+
var require_simplify = __commonJS({
|
|
1527
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js"(exports$1, module) {
|
|
1528
|
+
var satisfies2 = require_satisfies();
|
|
1529
|
+
var compare2 = require_compare();
|
|
1530
|
+
module.exports = (versions, range, options) => {
|
|
1531
|
+
const set = [];
|
|
1532
|
+
let first = null;
|
|
1533
|
+
let prev = null;
|
|
1534
|
+
const v = versions.sort((a, b) => compare2(a, b, options));
|
|
1535
|
+
for (const version of v) {
|
|
1536
|
+
const included = satisfies2(version, range, options);
|
|
1537
|
+
if (included) {
|
|
1538
|
+
prev = version;
|
|
1539
|
+
if (!first) {
|
|
1540
|
+
first = version;
|
|
1541
|
+
}
|
|
1542
|
+
} else {
|
|
1543
|
+
if (prev) {
|
|
1544
|
+
set.push([first, prev]);
|
|
1545
|
+
}
|
|
1546
|
+
prev = null;
|
|
1547
|
+
first = null;
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
if (first) {
|
|
1551
|
+
set.push([first, null]);
|
|
1552
|
+
}
|
|
1553
|
+
const ranges = [];
|
|
1554
|
+
for (const [min, max] of set) {
|
|
1555
|
+
if (min === max) {
|
|
1556
|
+
ranges.push(min);
|
|
1557
|
+
} else if (!max && min === v[0]) {
|
|
1558
|
+
ranges.push("*");
|
|
1559
|
+
} else if (!max) {
|
|
1560
|
+
ranges.push(`>=${min}`);
|
|
1561
|
+
} else if (min === v[0]) {
|
|
1562
|
+
ranges.push(`<=${max}`);
|
|
1563
|
+
} else {
|
|
1564
|
+
ranges.push(`${min} - ${max}`);
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
const simplified = ranges.join(" || ");
|
|
1568
|
+
const original = typeof range.raw === "string" ? range.raw : String(range);
|
|
1569
|
+
return simplified.length < original.length ? simplified : range;
|
|
1570
|
+
};
|
|
1571
|
+
}
|
|
1572
|
+
});
|
|
1573
|
+
var require_subset = __commonJS({
|
|
1574
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js"(exports$1, module) {
|
|
1575
|
+
var Range = require_range();
|
|
1576
|
+
var Comparator = require_comparator();
|
|
1577
|
+
var { ANY } = Comparator;
|
|
1578
|
+
var satisfies2 = require_satisfies();
|
|
1579
|
+
var compare2 = require_compare();
|
|
1580
|
+
var subset = (sub, dom, options = {}) => {
|
|
1581
|
+
if (sub === dom) {
|
|
1582
|
+
return true;
|
|
1583
|
+
}
|
|
1584
|
+
sub = new Range(sub, options);
|
|
1585
|
+
dom = new Range(dom, options);
|
|
1586
|
+
let sawNonNull = false;
|
|
1587
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
1588
|
+
for (const simpleDom of dom.set) {
|
|
1589
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
1590
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
1591
|
+
if (isSub) {
|
|
1592
|
+
continue OUTER;
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
if (sawNonNull) {
|
|
1596
|
+
return false;
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
return true;
|
|
1600
|
+
};
|
|
1601
|
+
var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
1602
|
+
var minimumVersion = [new Comparator(">=0.0.0")];
|
|
1603
|
+
var simpleSubset = (sub, dom, options) => {
|
|
1604
|
+
if (sub === dom) {
|
|
1605
|
+
return true;
|
|
1606
|
+
}
|
|
1607
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
1608
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
1609
|
+
return true;
|
|
1610
|
+
} else if (options.includePrerelease) {
|
|
1611
|
+
sub = minimumVersionWithPreRelease;
|
|
1612
|
+
} else {
|
|
1613
|
+
sub = minimumVersion;
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
1617
|
+
if (options.includePrerelease) {
|
|
1618
|
+
return true;
|
|
1619
|
+
} else {
|
|
1620
|
+
dom = minimumVersion;
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
const eqSet = /* @__PURE__ */ new Set();
|
|
1624
|
+
let gt, lt;
|
|
1625
|
+
for (const c of sub) {
|
|
1626
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
1627
|
+
gt = higherGT(gt, c, options);
|
|
1628
|
+
} else if (c.operator === "<" || c.operator === "<=") {
|
|
1629
|
+
lt = lowerLT(lt, c, options);
|
|
1630
|
+
} else {
|
|
1631
|
+
eqSet.add(c.semver);
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
if (eqSet.size > 1) {
|
|
1635
|
+
return null;
|
|
1636
|
+
}
|
|
1637
|
+
let gtltComp;
|
|
1638
|
+
if (gt && lt) {
|
|
1639
|
+
gtltComp = compare2(gt.semver, lt.semver, options);
|
|
1640
|
+
if (gtltComp > 0) {
|
|
1641
|
+
return null;
|
|
1642
|
+
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) {
|
|
1643
|
+
return null;
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
for (const eq of eqSet) {
|
|
1647
|
+
if (gt && !satisfies2(eq, String(gt), options)) {
|
|
1648
|
+
return null;
|
|
1649
|
+
}
|
|
1650
|
+
if (lt && !satisfies2(eq, String(lt), options)) {
|
|
1651
|
+
return null;
|
|
1652
|
+
}
|
|
1653
|
+
for (const c of dom) {
|
|
1654
|
+
if (!satisfies2(eq, String(c), options)) {
|
|
1655
|
+
return false;
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
return true;
|
|
1659
|
+
}
|
|
1660
|
+
let higher, lower;
|
|
1661
|
+
let hasDomLT, hasDomGT;
|
|
1662
|
+
let needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
|
|
1663
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
1664
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
|
|
1665
|
+
needDomLTPre = false;
|
|
1666
|
+
}
|
|
1667
|
+
for (const c of dom) {
|
|
1668
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
1669
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
1670
|
+
if (gt) {
|
|
1671
|
+
if (needDomGTPre) {
|
|
1672
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
|
|
1673
|
+
needDomGTPre = false;
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
1677
|
+
higher = higherGT(gt, c, options);
|
|
1678
|
+
if (higher === c && higher !== gt) {
|
|
1679
|
+
return false;
|
|
1680
|
+
}
|
|
1681
|
+
} else if (gt.operator === ">=" && !satisfies2(gt.semver, String(c), options)) {
|
|
1682
|
+
return false;
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
if (lt) {
|
|
1686
|
+
if (needDomLTPre) {
|
|
1687
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
|
|
1688
|
+
needDomLTPre = false;
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
1692
|
+
lower = lowerLT(lt, c, options);
|
|
1693
|
+
if (lower === c && lower !== lt) {
|
|
1694
|
+
return false;
|
|
1695
|
+
}
|
|
1696
|
+
} else if (lt.operator === "<=" && !satisfies2(lt.semver, String(c), options)) {
|
|
1697
|
+
return false;
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0) {
|
|
1701
|
+
return false;
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0) {
|
|
1705
|
+
return false;
|
|
1706
|
+
}
|
|
1707
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0) {
|
|
1708
|
+
return false;
|
|
1709
|
+
}
|
|
1710
|
+
if (needDomGTPre || needDomLTPre) {
|
|
1711
|
+
return false;
|
|
1712
|
+
}
|
|
1713
|
+
return true;
|
|
1714
|
+
};
|
|
1715
|
+
var higherGT = (a, b, options) => {
|
|
1716
|
+
if (!a) {
|
|
1717
|
+
return b;
|
|
1718
|
+
}
|
|
1719
|
+
const comp = compare2(a.semver, b.semver, options);
|
|
1720
|
+
return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
|
|
1721
|
+
};
|
|
1722
|
+
var lowerLT = (a, b, options) => {
|
|
1723
|
+
if (!a) {
|
|
1724
|
+
return b;
|
|
1725
|
+
}
|
|
1726
|
+
const comp = compare2(a.semver, b.semver, options);
|
|
1727
|
+
return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
|
|
1728
|
+
};
|
|
1729
|
+
module.exports = subset;
|
|
1730
|
+
}
|
|
1731
|
+
});
|
|
1732
|
+
var require_semver2 = __commonJS({
|
|
1733
|
+
"../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js"(exports$1, module) {
|
|
1734
|
+
var internalRe = require_re();
|
|
1735
|
+
var constants2 = require_constants();
|
|
1736
|
+
var SemVer = require_semver();
|
|
1737
|
+
var identifiers = require_identifiers();
|
|
1738
|
+
var parse = require_parse();
|
|
1739
|
+
var valid2 = require_valid();
|
|
1740
|
+
var clean = require_clean();
|
|
1741
|
+
var inc = require_inc();
|
|
1742
|
+
var diff = require_diff();
|
|
1743
|
+
var major = require_major();
|
|
1744
|
+
var minor = require_minor();
|
|
1745
|
+
var patch = require_patch();
|
|
1746
|
+
var prerelease = require_prerelease();
|
|
1747
|
+
var compare2 = require_compare();
|
|
1748
|
+
var rcompare = require_rcompare();
|
|
1749
|
+
var compareLoose = require_compare_loose();
|
|
1750
|
+
var compareBuild = require_compare_build();
|
|
1751
|
+
var sort = require_sort();
|
|
1752
|
+
var rsort = require_rsort();
|
|
1753
|
+
var gt = require_gt();
|
|
1754
|
+
var lt = require_lt();
|
|
1755
|
+
var eq = require_eq();
|
|
1756
|
+
var neq = require_neq();
|
|
1757
|
+
var gte2 = require_gte();
|
|
1758
|
+
var lte = require_lte();
|
|
1759
|
+
var cmp = require_cmp();
|
|
1760
|
+
var coerce2 = require_coerce();
|
|
1761
|
+
var Comparator = require_comparator();
|
|
1762
|
+
var Range = require_range();
|
|
1763
|
+
var satisfies2 = require_satisfies();
|
|
1764
|
+
var toComparators = require_to_comparators();
|
|
1765
|
+
var maxSatisfying = require_max_satisfying();
|
|
1766
|
+
var minSatisfying = require_min_satisfying();
|
|
1767
|
+
var minVersion = require_min_version();
|
|
1768
|
+
var validRange = require_valid2();
|
|
1769
|
+
var outside = require_outside();
|
|
1770
|
+
var gtr = require_gtr();
|
|
1771
|
+
var ltr = require_ltr();
|
|
1772
|
+
var intersects = require_intersects();
|
|
1773
|
+
var simplifyRange = require_simplify();
|
|
1774
|
+
var subset = require_subset();
|
|
1775
|
+
module.exports = {
|
|
1776
|
+
parse,
|
|
1777
|
+
valid: valid2,
|
|
1778
|
+
clean,
|
|
1779
|
+
inc,
|
|
1780
|
+
diff,
|
|
1781
|
+
major,
|
|
1782
|
+
minor,
|
|
1783
|
+
patch,
|
|
1784
|
+
prerelease,
|
|
1785
|
+
compare: compare2,
|
|
1786
|
+
rcompare,
|
|
1787
|
+
compareLoose,
|
|
1788
|
+
compareBuild,
|
|
1789
|
+
sort,
|
|
1790
|
+
rsort,
|
|
1791
|
+
gt,
|
|
1792
|
+
lt,
|
|
1793
|
+
eq,
|
|
1794
|
+
neq,
|
|
1795
|
+
gte: gte2,
|
|
1796
|
+
lte,
|
|
1797
|
+
cmp,
|
|
1798
|
+
coerce: coerce2,
|
|
1799
|
+
Comparator,
|
|
1800
|
+
Range,
|
|
1801
|
+
satisfies: satisfies2,
|
|
1802
|
+
toComparators,
|
|
1803
|
+
maxSatisfying,
|
|
1804
|
+
minSatisfying,
|
|
1805
|
+
minVersion,
|
|
1806
|
+
validRange,
|
|
1807
|
+
outside,
|
|
1808
|
+
gtr,
|
|
1809
|
+
ltr,
|
|
1810
|
+
intersects,
|
|
1811
|
+
simplifyRange,
|
|
1812
|
+
subset,
|
|
1813
|
+
SemVer,
|
|
1814
|
+
re: internalRe.re,
|
|
1815
|
+
src: internalRe.src,
|
|
1816
|
+
tokens: internalRe.t,
|
|
1817
|
+
SEMVER_SPEC_VERSION: constants2.SEMVER_SPEC_VERSION,
|
|
1818
|
+
RELEASE_TYPES: constants2.RELEASE_TYPES,
|
|
1819
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
1820
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
1821
|
+
};
|
|
1822
|
+
}
|
|
1823
|
+
});
|
|
1824
|
+
var ICliTranslationService_TOKEN = "cli-translation-service";
|
|
1825
|
+
var semver = __toESM(require_semver2());
|
|
1826
|
+
var ServerVersionNegotiator = class {
|
|
1827
|
+
static {
|
|
1828
|
+
this.CLIENT_SUPPORTED_VERSIONS = [2];
|
|
1829
|
+
}
|
|
1830
|
+
/**
|
|
1831
|
+
* Given a server's version info, pick the highest mutually compatible version.
|
|
1832
|
+
* Returns null if no compatible version exists.
|
|
1833
|
+
*/
|
|
1834
|
+
static negotiate(serverInfo) {
|
|
1835
|
+
const common = this.CLIENT_SUPPORTED_VERSIONS.filter(
|
|
1836
|
+
(v) => serverInfo.supportedVersions.includes(v)
|
|
1837
|
+
);
|
|
1838
|
+
return common.length > 0 ? Math.max(...common) : null;
|
|
1839
|
+
}
|
|
1840
|
+
/**
|
|
1841
|
+
* Discover the server's supported versions and negotiate the best match.
|
|
1842
|
+
* Returns the negotiated API version and the base path for all subsequent calls,
|
|
1843
|
+
* or null if the server is unreachable or incompatible.
|
|
1844
|
+
*/
|
|
1845
|
+
static async discover(baseUrl) {
|
|
1846
|
+
try {
|
|
1847
|
+
const response = await fetch(`${baseUrl}/api/cli/versions`);
|
|
1848
|
+
if (!response.ok) return null;
|
|
1849
|
+
const info = await response.json();
|
|
1850
|
+
const version = this.negotiate(info);
|
|
1851
|
+
if (version === null) return null;
|
|
1852
|
+
return {
|
|
1853
|
+
apiVersion: version,
|
|
1854
|
+
basePath: `${baseUrl}/api/v${version}/cli`
|
|
1855
|
+
};
|
|
1856
|
+
} catch {
|
|
1857
|
+
return null;
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
};
|
|
1861
|
+
var API_VERSION = 2;
|
|
1862
|
+
var bootCliModule = async (module) => {
|
|
1863
|
+
if (typeof window !== "undefined" && window.__cliModuleRegistry) {
|
|
1864
|
+
await window.__cliModuleRegistry.register(module);
|
|
1865
|
+
}
|
|
1866
|
+
};
|
|
1867
|
+
var DefaultThemes = {
|
|
1868
|
+
default: {
|
|
1869
|
+
background: "#070b14",
|
|
1870
|
+
foreground: "#dee2ea",
|
|
1871
|
+
cursor: "#818cf8",
|
|
1872
|
+
selectionBackground: "#334155",
|
|
1873
|
+
selectionForeground: "#ffffff",
|
|
1874
|
+
black: "#0d1117",
|
|
1875
|
+
red: "#f87171",
|
|
1876
|
+
green: "#4ade80",
|
|
1877
|
+
yellow: "#fbbf24",
|
|
1878
|
+
blue: "#818cf8",
|
|
1879
|
+
magenta: "#c084fc",
|
|
1880
|
+
cyan: "#67e8f9",
|
|
1881
|
+
white: "#dee2ea",
|
|
1882
|
+
brightBlack: "#475569",
|
|
1883
|
+
brightRed: "#fca5a5",
|
|
1884
|
+
brightGreen: "#86efac",
|
|
1885
|
+
brightYellow: "#fde68a",
|
|
1886
|
+
brightBlue: "#a5b4fc",
|
|
1887
|
+
brightMagenta: "#d8b4fe",
|
|
1888
|
+
brightCyan: "#a5f3fc",
|
|
1889
|
+
brightWhite: "#f1f5f9"
|
|
1890
|
+
},
|
|
1891
|
+
classic: {
|
|
1892
|
+
background: "#0c0c0c",
|
|
1893
|
+
foreground: "#cccccc",
|
|
1894
|
+
cursor: "#cccccc",
|
|
1895
|
+
selectionBackground: "#264f78",
|
|
1896
|
+
selectionForeground: "#ffffff",
|
|
1897
|
+
black: "#0c0c0c",
|
|
1898
|
+
red: "#c50f1f",
|
|
1899
|
+
green: "#13a10e",
|
|
1900
|
+
yellow: "#c19c00",
|
|
1901
|
+
blue: "#0037da",
|
|
1902
|
+
magenta: "#881798",
|
|
1903
|
+
cyan: "#3a96dd",
|
|
1904
|
+
white: "#cccccc",
|
|
1905
|
+
brightBlack: "#767676",
|
|
1906
|
+
brightRed: "#e74856",
|
|
1907
|
+
brightGreen: "#16c60c",
|
|
1908
|
+
brightYellow: "#f9f1a5",
|
|
1909
|
+
brightBlue: "#3b78ff",
|
|
1910
|
+
brightMagenta: "#b4009e",
|
|
1911
|
+
brightCyan: "#61d6d6",
|
|
1912
|
+
brightWhite: "#f2f2f2"
|
|
1913
|
+
},
|
|
1914
|
+
dracula: {
|
|
1915
|
+
background: "#282A36",
|
|
1916
|
+
foreground: "#F8F8F2",
|
|
1917
|
+
cursor: "#50FA7B",
|
|
1918
|
+
black: "#21222C",
|
|
1919
|
+
red: "#FF5555",
|
|
1920
|
+
green: "#50FA7B",
|
|
1921
|
+
yellow: "#F1FA8C",
|
|
1922
|
+
blue: "#BD93F9",
|
|
1923
|
+
magenta: "#FF79C6",
|
|
1924
|
+
cyan: "#8BE9FD",
|
|
1925
|
+
white: "#F8F8F2",
|
|
1926
|
+
brightBlack: "#6272A4",
|
|
1927
|
+
brightRed: "#FF6E6E",
|
|
1928
|
+
brightGreen: "#69FF94",
|
|
1929
|
+
brightYellow: "#FFFFA5",
|
|
1930
|
+
brightBlue: "#D6ACFF",
|
|
1931
|
+
brightMagenta: "#FF92D0",
|
|
1932
|
+
brightCyan: "#A4FFFF",
|
|
1933
|
+
brightWhite: "#FFFFFF"
|
|
1934
|
+
},
|
|
1935
|
+
monokai: {
|
|
1936
|
+
background: "#272822",
|
|
1937
|
+
foreground: "#F8F8F2",
|
|
1938
|
+
cursor: "#F8F8F0",
|
|
1939
|
+
black: "#272822",
|
|
1940
|
+
red: "#F92672",
|
|
1941
|
+
green: "#A6E22E",
|
|
1942
|
+
yellow: "#F4BF75",
|
|
1943
|
+
blue: "#66D9EF",
|
|
1944
|
+
magenta: "#AE81FF",
|
|
1945
|
+
cyan: "#A1EFE4",
|
|
1946
|
+
white: "#F8F8F2",
|
|
1947
|
+
brightBlack: "#75715E",
|
|
1948
|
+
brightRed: "#F92672",
|
|
1949
|
+
brightGreen: "#A6E22E",
|
|
1950
|
+
brightYellow: "#F4BF75",
|
|
1951
|
+
brightBlue: "#66D9EF",
|
|
1952
|
+
brightMagenta: "#AE81FF",
|
|
1953
|
+
brightCyan: "#A1EFE4",
|
|
1954
|
+
brightWhite: "#F9F8F5"
|
|
1955
|
+
},
|
|
1956
|
+
solarizedDark: {
|
|
1957
|
+
background: "#002B36",
|
|
1958
|
+
foreground: "#839496",
|
|
1959
|
+
cursor: "#93A1A1",
|
|
1960
|
+
black: "#073642",
|
|
1961
|
+
red: "#DC322F",
|
|
1962
|
+
green: "#859900",
|
|
1963
|
+
yellow: "#B58900",
|
|
1964
|
+
blue: "#268BD2",
|
|
1965
|
+
magenta: "#D33682",
|
|
1966
|
+
cyan: "#2AA198",
|
|
1967
|
+
white: "#EEE8D5",
|
|
1968
|
+
brightBlack: "#002B36",
|
|
1969
|
+
brightRed: "#CB4B16",
|
|
1970
|
+
brightGreen: "#586E75",
|
|
1971
|
+
brightYellow: "#657B83",
|
|
1972
|
+
brightBlue: "#839496",
|
|
1973
|
+
brightMagenta: "#6C71C4",
|
|
1974
|
+
brightCyan: "#93A1A1",
|
|
1975
|
+
brightWhite: "#FDF6E3"
|
|
1976
|
+
},
|
|
1977
|
+
solarizedLight: {
|
|
1978
|
+
background: "#FDF6E3",
|
|
1979
|
+
foreground: "#657B83",
|
|
1980
|
+
cursor: "#586E75",
|
|
1981
|
+
black: "#073642",
|
|
1982
|
+
red: "#DC322F",
|
|
1983
|
+
green: "#859900",
|
|
1984
|
+
yellow: "#B58900",
|
|
1985
|
+
blue: "#268BD2",
|
|
1986
|
+
magenta: "#D33682",
|
|
1987
|
+
cyan: "#2AA198",
|
|
1988
|
+
white: "#EEE8D5",
|
|
1989
|
+
brightBlack: "#002B36",
|
|
1990
|
+
brightRed: "#CB4B16",
|
|
1991
|
+
brightGreen: "#586E75",
|
|
1992
|
+
brightYellow: "#657B83",
|
|
1993
|
+
brightBlue: "#839496",
|
|
1994
|
+
brightMagenta: "#6C71C4",
|
|
1995
|
+
brightCyan: "#93A1A1",
|
|
1996
|
+
brightWhite: "#FDF6E3"
|
|
1997
|
+
},
|
|
1998
|
+
gruvboxDark: {
|
|
1999
|
+
background: "#282828",
|
|
2000
|
+
foreground: "#EBDBB2",
|
|
2001
|
+
cursor: "#EBDBB2",
|
|
2002
|
+
black: "#282828",
|
|
2003
|
+
red: "#CC241D",
|
|
2004
|
+
green: "#98971A",
|
|
2005
|
+
yellow: "#D79921",
|
|
2006
|
+
blue: "#458588",
|
|
2007
|
+
magenta: "#B16286",
|
|
2008
|
+
cyan: "#689D6A",
|
|
2009
|
+
white: "#A89984",
|
|
2010
|
+
brightBlack: "#928374",
|
|
2011
|
+
brightRed: "#FB4934",
|
|
2012
|
+
brightGreen: "#B8BB26",
|
|
2013
|
+
brightYellow: "#FABD2F",
|
|
2014
|
+
brightBlue: "#83A598",
|
|
2015
|
+
brightMagenta: "#D3869B",
|
|
2016
|
+
brightCyan: "#8EC07C",
|
|
2017
|
+
brightWhite: "#EBDBB2"
|
|
2018
|
+
},
|
|
2019
|
+
gruvboxLight: {
|
|
2020
|
+
background: "#FBF1C7",
|
|
2021
|
+
foreground: "#3C3836",
|
|
2022
|
+
cursor: "#3C3836",
|
|
2023
|
+
black: "#FBF1C7",
|
|
2024
|
+
red: "#9D0006",
|
|
2025
|
+
green: "#79740E",
|
|
2026
|
+
yellow: "#B57614",
|
|
2027
|
+
blue: "#076678",
|
|
2028
|
+
magenta: "#8F3F71",
|
|
2029
|
+
cyan: "#427B58",
|
|
2030
|
+
white: "#3C3836",
|
|
2031
|
+
brightBlack: "#D5C4A1",
|
|
2032
|
+
brightRed: "#AF3A03",
|
|
2033
|
+
brightGreen: "#B8BB26",
|
|
2034
|
+
brightYellow: "#FABD2F",
|
|
2035
|
+
brightBlue: "#83A598",
|
|
2036
|
+
brightMagenta: "#D3869B",
|
|
2037
|
+
brightCyan: "#8EC07C",
|
|
2038
|
+
brightWhite: "#EBDBB2"
|
|
2039
|
+
},
|
|
2040
|
+
nord: {
|
|
2041
|
+
background: "#2E3440",
|
|
2042
|
+
foreground: "#D8DEE9",
|
|
2043
|
+
cursor: "#88C0D0",
|
|
2044
|
+
black: "#3B4252",
|
|
2045
|
+
red: "#BF616A",
|
|
2046
|
+
green: "#A3BE8C",
|
|
2047
|
+
yellow: "#EBCB8B",
|
|
2048
|
+
blue: "#81A1C1",
|
|
2049
|
+
magenta: "#B48EAD",
|
|
2050
|
+
cyan: "#88C0D0",
|
|
2051
|
+
white: "#E5E9F0",
|
|
2052
|
+
brightBlack: "#4C566A",
|
|
2053
|
+
brightRed: "#BF616A",
|
|
2054
|
+
brightGreen: "#A3BE8C",
|
|
2055
|
+
brightYellow: "#EBCB8B",
|
|
2056
|
+
brightBlue: "#81A1C1",
|
|
2057
|
+
brightMagenta: "#B48EAD",
|
|
2058
|
+
brightCyan: "#8FBCBB",
|
|
2059
|
+
brightWhite: "#ECEFF4"
|
|
2060
|
+
},
|
|
2061
|
+
oneDark: {
|
|
2062
|
+
background: "#282C34",
|
|
2063
|
+
foreground: "#ABB2BF",
|
|
2064
|
+
cursor: "#528BFF",
|
|
2065
|
+
black: "#282C34",
|
|
2066
|
+
red: "#E06C75",
|
|
2067
|
+
green: "#98C379",
|
|
2068
|
+
yellow: "#E5C07B",
|
|
2069
|
+
blue: "#61AFEF",
|
|
2070
|
+
magenta: "#C678DD",
|
|
2071
|
+
cyan: "#56B6C2",
|
|
2072
|
+
white: "#ABB2BF",
|
|
2073
|
+
brightBlack: "#5C6370",
|
|
2074
|
+
brightRed: "#E06C75",
|
|
2075
|
+
brightGreen: "#98C379",
|
|
2076
|
+
brightYellow: "#E5C07B",
|
|
2077
|
+
brightBlue: "#61AFEF",
|
|
2078
|
+
brightMagenta: "#C678DD",
|
|
2079
|
+
brightCyan: "#56B6C2",
|
|
2080
|
+
brightWhite: "#FFFFFF"
|
|
2081
|
+
},
|
|
2082
|
+
material: {
|
|
2083
|
+
background: "#263238",
|
|
2084
|
+
foreground: "#ECEFF1",
|
|
2085
|
+
cursor: "#FFCC00",
|
|
2086
|
+
black: "#263238",
|
|
2087
|
+
red: "#F07178",
|
|
2088
|
+
green: "#C3E88D",
|
|
2089
|
+
yellow: "#FFCB6B",
|
|
2090
|
+
blue: "#82AAFF",
|
|
2091
|
+
magenta: "#C792EA",
|
|
2092
|
+
cyan: "#89DDFF",
|
|
2093
|
+
white: "#EEFFFF",
|
|
2094
|
+
brightBlack: "#546E7A",
|
|
2095
|
+
brightRed: "#F07178",
|
|
2096
|
+
brightGreen: "#C3E88D",
|
|
2097
|
+
brightYellow: "#FFCB6B",
|
|
2098
|
+
brightBlue: "#82AAFF",
|
|
2099
|
+
brightMagenta: "#C792EA",
|
|
2100
|
+
brightCyan: "#89DDFF",
|
|
2101
|
+
brightWhite: "#FFFFFF"
|
|
2102
|
+
},
|
|
2103
|
+
highContrastLight: {
|
|
2104
|
+
background: "#FFFACD",
|
|
2105
|
+
foreground: "#000000",
|
|
2106
|
+
cursor: "#FFA500",
|
|
2107
|
+
selectionBackground: "#FFD700",
|
|
2108
|
+
black: "#3B3A32",
|
|
2109
|
+
red: "#D32F2F",
|
|
2110
|
+
green: "#388E3C",
|
|
2111
|
+
yellow: "#FBC02D",
|
|
2112
|
+
blue: "#1976D2",
|
|
2113
|
+
magenta: "#8E24AA",
|
|
2114
|
+
cyan: "#0097A7",
|
|
2115
|
+
white: "#FFFFFF",
|
|
2116
|
+
brightBlack: "#616161",
|
|
2117
|
+
brightRed: "#FF5252",
|
|
2118
|
+
brightGreen: "#69F0AE",
|
|
2119
|
+
brightYellow: "#FFEB3B",
|
|
2120
|
+
brightBlue: "#64B5F6",
|
|
2121
|
+
brightMagenta: "#BA68C8",
|
|
2122
|
+
brightCyan: "#4DD0E1",
|
|
2123
|
+
brightWhite: "#FAFAFA"
|
|
2124
|
+
},
|
|
2125
|
+
tokyoNight: {
|
|
2126
|
+
background: "#1a1b26",
|
|
2127
|
+
foreground: "#c0caf5",
|
|
2128
|
+
cursor: "#c0caf5",
|
|
2129
|
+
selectionBackground: "#33467c",
|
|
2130
|
+
black: "#15161e",
|
|
2131
|
+
red: "#f7768e",
|
|
2132
|
+
green: "#9ece6a",
|
|
2133
|
+
yellow: "#e0af68",
|
|
2134
|
+
blue: "#7aa2f7",
|
|
2135
|
+
magenta: "#bb9af7",
|
|
2136
|
+
cyan: "#7dcfff",
|
|
2137
|
+
white: "#a9b1d6",
|
|
2138
|
+
brightBlack: "#414868",
|
|
2139
|
+
brightRed: "#f7768e",
|
|
2140
|
+
brightGreen: "#9ece6a",
|
|
2141
|
+
brightYellow: "#e0af68",
|
|
2142
|
+
brightBlue: "#7aa2f7",
|
|
2143
|
+
brightMagenta: "#bb9af7",
|
|
2144
|
+
brightCyan: "#7dcfff",
|
|
2145
|
+
brightWhite: "#c0caf5"
|
|
2146
|
+
},
|
|
2147
|
+
catppuccinMocha: {
|
|
2148
|
+
background: "#1e1e2e",
|
|
2149
|
+
foreground: "#cdd6f4",
|
|
2150
|
+
cursor: "#f5e0dc",
|
|
2151
|
+
selectionBackground: "#45475a",
|
|
2152
|
+
black: "#45475a",
|
|
2153
|
+
red: "#f38ba8",
|
|
2154
|
+
green: "#a6e3a1",
|
|
2155
|
+
yellow: "#f9e2af",
|
|
2156
|
+
blue: "#89b4fa",
|
|
2157
|
+
magenta: "#f5c2e7",
|
|
2158
|
+
cyan: "#94e2d5",
|
|
2159
|
+
white: "#bac2de",
|
|
2160
|
+
brightBlack: "#585b70",
|
|
2161
|
+
brightRed: "#f38ba8",
|
|
2162
|
+
brightGreen: "#a6e3a1",
|
|
2163
|
+
brightYellow: "#f9e2af",
|
|
2164
|
+
brightBlue: "#89b4fa",
|
|
2165
|
+
brightMagenta: "#f5c2e7",
|
|
2166
|
+
brightCyan: "#94e2d5",
|
|
2167
|
+
brightWhite: "#a6adc8"
|
|
2168
|
+
},
|
|
2169
|
+
catppuccinFrappe: {
|
|
2170
|
+
background: "#303446",
|
|
2171
|
+
foreground: "#c6d0f5",
|
|
2172
|
+
cursor: "#f2d5cf",
|
|
2173
|
+
selectionBackground: "#51576d",
|
|
2174
|
+
black: "#51576d",
|
|
2175
|
+
red: "#e78284",
|
|
2176
|
+
green: "#a6d189",
|
|
2177
|
+
yellow: "#e5c890",
|
|
2178
|
+
blue: "#8caaee",
|
|
2179
|
+
magenta: "#f4b8e4",
|
|
2180
|
+
cyan: "#81c8be",
|
|
2181
|
+
white: "#b5bfe2",
|
|
2182
|
+
brightBlack: "#626880",
|
|
2183
|
+
brightRed: "#e78284",
|
|
2184
|
+
brightGreen: "#a6d189",
|
|
2185
|
+
brightYellow: "#e5c890",
|
|
2186
|
+
brightBlue: "#8caaee",
|
|
2187
|
+
brightMagenta: "#f4b8e4",
|
|
2188
|
+
brightCyan: "#81c8be",
|
|
2189
|
+
brightWhite: "#a5adce"
|
|
2190
|
+
},
|
|
2191
|
+
rosePine: {
|
|
2192
|
+
background: "#191724",
|
|
2193
|
+
foreground: "#e0def4",
|
|
2194
|
+
cursor: "#524f67",
|
|
2195
|
+
selectionBackground: "#2a283e",
|
|
2196
|
+
black: "#26233a",
|
|
2197
|
+
red: "#eb6f92",
|
|
2198
|
+
green: "#31748f",
|
|
2199
|
+
yellow: "#f6c177",
|
|
2200
|
+
blue: "#9ccfd8",
|
|
2201
|
+
magenta: "#c4a7e7",
|
|
2202
|
+
cyan: "#ebbcba",
|
|
2203
|
+
white: "#e0def4",
|
|
2204
|
+
brightBlack: "#6e6a86",
|
|
2205
|
+
brightRed: "#eb6f92",
|
|
2206
|
+
brightGreen: "#31748f",
|
|
2207
|
+
brightYellow: "#f6c177",
|
|
2208
|
+
brightBlue: "#9ccfd8",
|
|
2209
|
+
brightMagenta: "#c4a7e7",
|
|
2210
|
+
brightCyan: "#ebbcba",
|
|
2211
|
+
brightWhite: "#e0def4"
|
|
2212
|
+
},
|
|
2213
|
+
kanagawa: {
|
|
2214
|
+
background: "#1f1f28",
|
|
2215
|
+
foreground: "#dcd7ba",
|
|
2216
|
+
cursor: "#c8c093",
|
|
2217
|
+
selectionBackground: "#2d4f67",
|
|
2218
|
+
black: "#16161d",
|
|
2219
|
+
red: "#c34043",
|
|
2220
|
+
green: "#76946a",
|
|
2221
|
+
yellow: "#c0a36e",
|
|
2222
|
+
blue: "#7e9cd8",
|
|
2223
|
+
magenta: "#957fb8",
|
|
2224
|
+
cyan: "#6a9589",
|
|
2225
|
+
white: "#c8c093",
|
|
2226
|
+
brightBlack: "#727169",
|
|
2227
|
+
brightRed: "#e82424",
|
|
2228
|
+
brightGreen: "#98bb6c",
|
|
2229
|
+
brightYellow: "#e6c384",
|
|
2230
|
+
brightBlue: "#7fb4ca",
|
|
2231
|
+
brightMagenta: "#938aa9",
|
|
2232
|
+
brightCyan: "#7aa89f",
|
|
2233
|
+
brightWhite: "#dcd7ba"
|
|
2234
|
+
},
|
|
2235
|
+
everforestDark: {
|
|
2236
|
+
background: "#2d353b",
|
|
2237
|
+
foreground: "#d3c6aa",
|
|
2238
|
+
cursor: "#d3c6aa",
|
|
2239
|
+
selectionBackground: "#543a48",
|
|
2240
|
+
black: "#475258",
|
|
2241
|
+
red: "#e67e80",
|
|
2242
|
+
green: "#a7c080",
|
|
2243
|
+
yellow: "#dbbc7f",
|
|
2244
|
+
blue: "#7fbbb3",
|
|
2245
|
+
magenta: "#d699b6",
|
|
2246
|
+
cyan: "#83c092",
|
|
2247
|
+
white: "#d3c6aa",
|
|
2248
|
+
brightBlack: "#475258",
|
|
2249
|
+
brightRed: "#e67e80",
|
|
2250
|
+
brightGreen: "#a7c080",
|
|
2251
|
+
brightYellow: "#dbbc7f",
|
|
2252
|
+
brightBlue: "#7fbbb3",
|
|
2253
|
+
brightMagenta: "#d699b6",
|
|
2254
|
+
brightCyan: "#83c092",
|
|
2255
|
+
brightWhite: "#d3c6aa"
|
|
2256
|
+
},
|
|
2257
|
+
ayuDark: {
|
|
2258
|
+
background: "#0b0e14",
|
|
2259
|
+
foreground: "#bfbdb6",
|
|
2260
|
+
cursor: "#e6b450",
|
|
2261
|
+
selectionBackground: "#1b3a4b",
|
|
2262
|
+
black: "#01060e",
|
|
2263
|
+
red: "#ea6c73",
|
|
2264
|
+
green: "#91b362",
|
|
2265
|
+
yellow: "#f9af4f",
|
|
2266
|
+
blue: "#53bdfa",
|
|
2267
|
+
magenta: "#fae994",
|
|
2268
|
+
cyan: "#90e1c6",
|
|
2269
|
+
white: "#c7c7c7",
|
|
2270
|
+
brightBlack: "#686868",
|
|
2271
|
+
brightRed: "#f07178",
|
|
2272
|
+
brightGreen: "#c2d94c",
|
|
2273
|
+
brightYellow: "#ffb454",
|
|
2274
|
+
brightBlue: "#59c2ff",
|
|
2275
|
+
brightMagenta: "#ffee99",
|
|
2276
|
+
brightCyan: "#95e6cb",
|
|
2277
|
+
brightWhite: "#ffffff"
|
|
2278
|
+
},
|
|
2279
|
+
catppuccinLatte: {
|
|
2280
|
+
background: "#eff1f5",
|
|
2281
|
+
foreground: "#4c4f69",
|
|
2282
|
+
cursor: "#dc8a78",
|
|
2283
|
+
selectionBackground: "#acb0be",
|
|
2284
|
+
black: "#5c5f77",
|
|
2285
|
+
red: "#d20f39",
|
|
2286
|
+
green: "#40a02b",
|
|
2287
|
+
yellow: "#df8e1d",
|
|
2288
|
+
blue: "#1e66f5",
|
|
2289
|
+
magenta: "#ea76cb",
|
|
2290
|
+
cyan: "#179299",
|
|
2291
|
+
white: "#acb0be",
|
|
2292
|
+
brightBlack: "#6c6f85",
|
|
2293
|
+
brightRed: "#d20f39",
|
|
2294
|
+
brightGreen: "#40a02b",
|
|
2295
|
+
brightYellow: "#df8e1d",
|
|
2296
|
+
brightBlue: "#1e66f5",
|
|
2297
|
+
brightMagenta: "#ea76cb",
|
|
2298
|
+
brightCyan: "#179299",
|
|
2299
|
+
brightWhite: "#bcc0cc"
|
|
2300
|
+
},
|
|
2301
|
+
rosePineDawn: {
|
|
2302
|
+
background: "#faf4ed",
|
|
2303
|
+
foreground: "#575279",
|
|
2304
|
+
cursor: "#9893a5",
|
|
2305
|
+
selectionBackground: "#dfdad9",
|
|
2306
|
+
black: "#f2e9e1",
|
|
2307
|
+
red: "#b4637a",
|
|
2308
|
+
green: "#286983",
|
|
2309
|
+
yellow: "#ea9d34",
|
|
2310
|
+
blue: "#56949f",
|
|
2311
|
+
magenta: "#907aa9",
|
|
2312
|
+
cyan: "#d7827e",
|
|
2313
|
+
white: "#575279",
|
|
2314
|
+
brightBlack: "#9893a5",
|
|
2315
|
+
brightRed: "#b4637a",
|
|
2316
|
+
brightGreen: "#286983",
|
|
2317
|
+
brightYellow: "#ea9d34",
|
|
2318
|
+
brightBlue: "#56949f",
|
|
2319
|
+
brightMagenta: "#907aa9",
|
|
2320
|
+
brightCyan: "#d7827e",
|
|
2321
|
+
brightWhite: "#575279"
|
|
2322
|
+
},
|
|
2323
|
+
everforestLight: {
|
|
2324
|
+
background: "#fdf6e3",
|
|
2325
|
+
foreground: "#5c6a72",
|
|
2326
|
+
cursor: "#5c6a72",
|
|
2327
|
+
selectionBackground: "#e6e2cc",
|
|
2328
|
+
black: "#5c6a72",
|
|
2329
|
+
red: "#f85552",
|
|
2330
|
+
green: "#8da101",
|
|
2331
|
+
yellow: "#dfa000",
|
|
2332
|
+
blue: "#3a94c5",
|
|
2333
|
+
magenta: "#df69ba",
|
|
2334
|
+
cyan: "#35a77c",
|
|
2335
|
+
white: "#dfddc8",
|
|
2336
|
+
brightBlack: "#708089",
|
|
2337
|
+
brightRed: "#f85552",
|
|
2338
|
+
brightGreen: "#8da101",
|
|
2339
|
+
brightYellow: "#dfa000",
|
|
2340
|
+
brightBlue: "#3a94c5",
|
|
2341
|
+
brightMagenta: "#df69ba",
|
|
2342
|
+
brightCyan: "#35a77c",
|
|
2343
|
+
brightWhite: "#e8e5d0"
|
|
2344
|
+
},
|
|
2345
|
+
githubLight: {
|
|
2346
|
+
background: "#ffffff",
|
|
2347
|
+
foreground: "#24292f",
|
|
2348
|
+
cursor: "#044289",
|
|
2349
|
+
selectionBackground: "#0969da33",
|
|
2350
|
+
black: "#24292f",
|
|
2351
|
+
red: "#cf222e",
|
|
2352
|
+
green: "#116329",
|
|
2353
|
+
yellow: "#4d2d00",
|
|
2354
|
+
blue: "#0969da",
|
|
2355
|
+
magenta: "#8250df",
|
|
2356
|
+
cyan: "#1b7c83",
|
|
2357
|
+
white: "#6e7781",
|
|
2358
|
+
brightBlack: "#57606a",
|
|
2359
|
+
brightRed: "#a40e26",
|
|
2360
|
+
brightGreen: "#1a7f37",
|
|
2361
|
+
brightYellow: "#633c01",
|
|
2362
|
+
brightBlue: "#218bff",
|
|
2363
|
+
brightMagenta: "#a475f9",
|
|
2364
|
+
brightCyan: "#3192aa",
|
|
2365
|
+
brightWhite: "#8c959f"
|
|
2366
|
+
},
|
|
2367
|
+
cyberpunk: {
|
|
2368
|
+
background: "#0a0a1a",
|
|
2369
|
+
foreground: "#0abdc6",
|
|
2370
|
+
cursor: "#ff2079",
|
|
2371
|
+
selectionBackground: "#1a1a3a",
|
|
2372
|
+
black: "#000000",
|
|
2373
|
+
red: "#ff2079",
|
|
2374
|
+
green: "#00ff9c",
|
|
2375
|
+
yellow: "#fed230",
|
|
2376
|
+
blue: "#0abdc6",
|
|
2377
|
+
magenta: "#ea00d9",
|
|
2378
|
+
cyan: "#0abdc6",
|
|
2379
|
+
white: "#c7c7c7",
|
|
2380
|
+
brightBlack: "#686868",
|
|
2381
|
+
brightRed: "#ff4a9e",
|
|
2382
|
+
brightGreen: "#3df5b6",
|
|
2383
|
+
brightYellow: "#fef465",
|
|
2384
|
+
brightBlue: "#3ff1de",
|
|
2385
|
+
brightMagenta: "#ff79f0",
|
|
2386
|
+
brightCyan: "#3ff1de",
|
|
2387
|
+
brightWhite: "#ffffff"
|
|
2388
|
+
},
|
|
2389
|
+
retroGreen: {
|
|
2390
|
+
background: "#0a0a0a",
|
|
2391
|
+
foreground: "#33ff00",
|
|
2392
|
+
cursor: "#33ff00",
|
|
2393
|
+
selectionBackground: "#1a3a1a",
|
|
2394
|
+
black: "#0a0a0a",
|
|
2395
|
+
red: "#ff0000",
|
|
2396
|
+
green: "#33ff00",
|
|
2397
|
+
yellow: "#ffff00",
|
|
2398
|
+
blue: "#0066ff",
|
|
2399
|
+
magenta: "#cc00ff",
|
|
2400
|
+
cyan: "#00ffff",
|
|
2401
|
+
white: "#33ff00",
|
|
2402
|
+
brightBlack: "#1a5c1a",
|
|
2403
|
+
brightRed: "#ff3333",
|
|
2404
|
+
brightGreen: "#66ff33",
|
|
2405
|
+
brightYellow: "#ffff66",
|
|
2406
|
+
brightBlue: "#3399ff",
|
|
2407
|
+
brightMagenta: "#e550ff",
|
|
2408
|
+
brightCyan: "#66ffff",
|
|
2409
|
+
brightWhite: "#66ff33"
|
|
2410
|
+
},
|
|
2411
|
+
retroAmber: {
|
|
2412
|
+
background: "#0a0a00",
|
|
2413
|
+
foreground: "#ffb000",
|
|
2414
|
+
cursor: "#ffb000",
|
|
2415
|
+
selectionBackground: "#3a2a00",
|
|
2416
|
+
black: "#0a0a00",
|
|
2417
|
+
red: "#ff0000",
|
|
2418
|
+
green: "#ffb000",
|
|
2419
|
+
yellow: "#ffcc00",
|
|
2420
|
+
blue: "#cc8800",
|
|
2421
|
+
magenta: "#ff8800",
|
|
2422
|
+
cyan: "#ffcc66",
|
|
2423
|
+
white: "#ffb000",
|
|
2424
|
+
brightBlack: "#665500",
|
|
2425
|
+
brightRed: "#ff3333",
|
|
2426
|
+
brightGreen: "#ffc033",
|
|
2427
|
+
brightYellow: "#ffdd33",
|
|
2428
|
+
brightBlue: "#ddaa33",
|
|
2429
|
+
brightMagenta: "#ffaa33",
|
|
2430
|
+
brightCyan: "#ffdd99",
|
|
2431
|
+
brightWhite: "#ffc033"
|
|
2432
|
+
},
|
|
2433
|
+
matrix: {
|
|
2434
|
+
background: "#000000",
|
|
2435
|
+
foreground: "#00ff41",
|
|
2436
|
+
cursor: "#00ff41",
|
|
2437
|
+
selectionBackground: "#003300",
|
|
2438
|
+
black: "#000000",
|
|
2439
|
+
red: "#00ff41",
|
|
2440
|
+
green: "#00ff41",
|
|
2441
|
+
yellow: "#00ff41",
|
|
2442
|
+
blue: "#00cc33",
|
|
2443
|
+
magenta: "#009926",
|
|
2444
|
+
cyan: "#00ff41",
|
|
2445
|
+
white: "#00ff41",
|
|
2446
|
+
brightBlack: "#005500",
|
|
2447
|
+
brightRed: "#33ff66",
|
|
2448
|
+
brightGreen: "#33ff66",
|
|
2449
|
+
brightYellow: "#33ff66",
|
|
2450
|
+
brightBlue: "#00ff41",
|
|
2451
|
+
brightMagenta: "#00cc33",
|
|
2452
|
+
brightCyan: "#33ff66",
|
|
2453
|
+
brightWhite: "#66ff88"
|
|
2454
|
+
},
|
|
2455
|
+
synthwave: {
|
|
2456
|
+
background: "#2b213a",
|
|
2457
|
+
foreground: "#f0e4fc",
|
|
2458
|
+
cursor: "#72f1b8",
|
|
2459
|
+
selectionBackground: "#463465",
|
|
2460
|
+
black: "#2b213a",
|
|
2461
|
+
red: "#fe4450",
|
|
2462
|
+
green: "#72f1b8",
|
|
2463
|
+
yellow: "#fede5d",
|
|
2464
|
+
blue: "#2ee2fa",
|
|
2465
|
+
magenta: "#ff7edb",
|
|
2466
|
+
cyan: "#03edf9",
|
|
2467
|
+
white: "#f0e4fc",
|
|
2468
|
+
brightBlack: "#614d85",
|
|
2469
|
+
brightRed: "#fe4450",
|
|
2470
|
+
brightGreen: "#72f1b8",
|
|
2471
|
+
brightYellow: "#fede5d",
|
|
2472
|
+
brightBlue: "#2ee2fa",
|
|
2473
|
+
brightMagenta: "#ff7edb",
|
|
2474
|
+
brightCyan: "#03edf9",
|
|
2475
|
+
brightWhite: "#ffffff"
|
|
2476
|
+
},
|
|
2477
|
+
highContrastDark: {
|
|
2478
|
+
background: "#000000",
|
|
2479
|
+
foreground: "#ffffff",
|
|
2480
|
+
cursor: "#ffffff",
|
|
2481
|
+
selectionBackground: "#264f78",
|
|
2482
|
+
selectionForeground: "#ffffff",
|
|
2483
|
+
black: "#000000",
|
|
2484
|
+
red: "#ff0000",
|
|
2485
|
+
green: "#00ff00",
|
|
2486
|
+
yellow: "#ffff00",
|
|
2487
|
+
blue: "#3b78ff",
|
|
2488
|
+
magenta: "#ff00ff",
|
|
2489
|
+
cyan: "#00ffff",
|
|
2490
|
+
white: "#ffffff",
|
|
2491
|
+
brightBlack: "#808080",
|
|
2492
|
+
brightRed: "#ff3333",
|
|
2493
|
+
brightGreen: "#33ff33",
|
|
2494
|
+
brightYellow: "#ffff33",
|
|
2495
|
+
brightBlue: "#6699ff",
|
|
2496
|
+
brightMagenta: "#ff33ff",
|
|
2497
|
+
brightCyan: "#33ffff",
|
|
2498
|
+
brightWhite: "#ffffff"
|
|
2499
|
+
}
|
|
2500
|
+
};
|
|
2501
|
+
DefaultThemes.yellow = DefaultThemes.highContrastLight;
|
|
2502
|
+
var DefaultThemeInfos = {
|
|
2503
|
+
default: {
|
|
2504
|
+
theme: DefaultThemes.default,
|
|
2505
|
+
category: "dark",
|
|
2506
|
+
tags: ["built-in"],
|
|
2507
|
+
description: "Dark indigo theme with soft pastels"
|
|
2508
|
+
},
|
|
2509
|
+
classic: {
|
|
2510
|
+
theme: DefaultThemes.classic,
|
|
2511
|
+
category: "dark",
|
|
2512
|
+
tags: ["built-in"],
|
|
2513
|
+
description: "Classic Windows terminal palette"
|
|
2514
|
+
},
|
|
2515
|
+
dracula: {
|
|
2516
|
+
theme: DefaultThemes.dracula,
|
|
2517
|
+
category: "dark",
|
|
2518
|
+
tags: ["popular"],
|
|
2519
|
+
description: "Popular dark theme with vibrant colors"
|
|
2520
|
+
},
|
|
2521
|
+
monokai: {
|
|
2522
|
+
theme: DefaultThemes.monokai,
|
|
2523
|
+
category: "dark",
|
|
2524
|
+
tags: ["popular"],
|
|
2525
|
+
description: "Classic code editor dark theme"
|
|
2526
|
+
},
|
|
2527
|
+
solarizedDark: {
|
|
2528
|
+
theme: DefaultThemes.solarizedDark,
|
|
2529
|
+
category: "dark",
|
|
2530
|
+
tags: ["popular"],
|
|
2531
|
+
description: "Ethan Schoonover's precision dark palette"
|
|
2532
|
+
},
|
|
2533
|
+
solarizedLight: {
|
|
2534
|
+
theme: DefaultThemes.solarizedLight,
|
|
2535
|
+
category: "light",
|
|
2536
|
+
tags: ["popular"],
|
|
2537
|
+
description: "Ethan Schoonover's precision light palette"
|
|
2538
|
+
},
|
|
2539
|
+
gruvboxDark: {
|
|
2540
|
+
theme: DefaultThemes.gruvboxDark,
|
|
2541
|
+
category: "dark",
|
|
2542
|
+
tags: ["popular"],
|
|
2543
|
+
description: "Retro groove dark color scheme"
|
|
2544
|
+
},
|
|
2545
|
+
gruvboxLight: {
|
|
2546
|
+
theme: DefaultThemes.gruvboxLight,
|
|
2547
|
+
category: "light",
|
|
2548
|
+
tags: ["popular"],
|
|
2549
|
+
description: "Retro groove light color scheme"
|
|
2550
|
+
},
|
|
2551
|
+
nord: {
|
|
2552
|
+
theme: DefaultThemes.nord,
|
|
2553
|
+
category: "dark",
|
|
2554
|
+
tags: ["popular"],
|
|
2555
|
+
description: "Arctic, north-bluish clean palette"
|
|
2556
|
+
},
|
|
2557
|
+
oneDark: {
|
|
2558
|
+
theme: DefaultThemes.oneDark,
|
|
2559
|
+
category: "dark",
|
|
2560
|
+
tags: ["popular"],
|
|
2561
|
+
description: "Atom's iconic dark theme"
|
|
2562
|
+
},
|
|
2563
|
+
material: {
|
|
2564
|
+
theme: DefaultThemes.material,
|
|
2565
|
+
category: "dark",
|
|
2566
|
+
tags: ["popular"],
|
|
2567
|
+
description: "Material Design inspired dark theme"
|
|
2568
|
+
},
|
|
2569
|
+
highContrastLight: {
|
|
2570
|
+
theme: DefaultThemes.highContrastLight,
|
|
2571
|
+
category: "light",
|
|
2572
|
+
tags: ["accessibility"],
|
|
2573
|
+
description: "High contrast light theme for accessibility"
|
|
2574
|
+
},
|
|
2575
|
+
tokyoNight: {
|
|
2576
|
+
theme: DefaultThemes.tokyoNight,
|
|
2577
|
+
category: "dark",
|
|
2578
|
+
tags: ["popular"],
|
|
2579
|
+
description: "Cool blue-purple dark theme"
|
|
2580
|
+
},
|
|
2581
|
+
catppuccinMocha: {
|
|
2582
|
+
theme: DefaultThemes.catppuccinMocha,
|
|
2583
|
+
category: "dark",
|
|
2584
|
+
tags: ["popular", "pastel"],
|
|
2585
|
+
description: "Soothing pastel dark theme (warmest)"
|
|
2586
|
+
},
|
|
2587
|
+
catppuccinFrappe: {
|
|
2588
|
+
theme: DefaultThemes.catppuccinFrappe,
|
|
2589
|
+
category: "dark",
|
|
2590
|
+
tags: ["popular", "pastel"],
|
|
2591
|
+
description: "Soothing pastel mid-dark theme"
|
|
2592
|
+
},
|
|
2593
|
+
catppuccinLatte: {
|
|
2594
|
+
theme: DefaultThemes.catppuccinLatte,
|
|
2595
|
+
category: "light",
|
|
2596
|
+
tags: ["popular", "pastel"],
|
|
2597
|
+
description: "Soothing pastel light theme"
|
|
2598
|
+
},
|
|
2599
|
+
rosePine: {
|
|
2600
|
+
theme: DefaultThemes.rosePine,
|
|
2601
|
+
category: "dark",
|
|
2602
|
+
tags: ["popular"],
|
|
2603
|
+
description: "All natural pine, faux fur, and a bit of soho vibes"
|
|
2604
|
+
},
|
|
2605
|
+
rosePineDawn: {
|
|
2606
|
+
theme: DefaultThemes.rosePineDawn,
|
|
2607
|
+
category: "light",
|
|
2608
|
+
tags: ["popular"],
|
|
2609
|
+
description: "Rose Pine light variant"
|
|
2610
|
+
},
|
|
2611
|
+
kanagawa: {
|
|
2612
|
+
theme: DefaultThemes.kanagawa,
|
|
2613
|
+
category: "dark",
|
|
2614
|
+
tags: ["popular"],
|
|
2615
|
+
description: "Dark theme inspired by Katsushika Hokusai"
|
|
2616
|
+
},
|
|
2617
|
+
everforestDark: {
|
|
2618
|
+
theme: DefaultThemes.everforestDark,
|
|
2619
|
+
category: "dark",
|
|
2620
|
+
tags: ["popular"],
|
|
2621
|
+
description: "Comfortable green-tinted dark theme"
|
|
2622
|
+
},
|
|
2623
|
+
everforestLight: {
|
|
2624
|
+
theme: DefaultThemes.everforestLight,
|
|
2625
|
+
category: "light",
|
|
2626
|
+
tags: ["popular"],
|
|
2627
|
+
description: "Comfortable green-tinted light theme"
|
|
2628
|
+
},
|
|
2629
|
+
ayuDark: {
|
|
2630
|
+
theme: DefaultThemes.ayuDark,
|
|
2631
|
+
category: "dark",
|
|
2632
|
+
tags: ["popular"],
|
|
2633
|
+
description: "Simple, bright and elegant dark theme"
|
|
2634
|
+
},
|
|
2635
|
+
githubLight: {
|
|
2636
|
+
theme: DefaultThemes.githubLight,
|
|
2637
|
+
category: "light",
|
|
2638
|
+
tags: ["popular"],
|
|
2639
|
+
description: "GitHub's clean light interface theme"
|
|
2640
|
+
},
|
|
2641
|
+
cyberpunk: {
|
|
2642
|
+
theme: DefaultThemes.cyberpunk,
|
|
2643
|
+
category: "dark",
|
|
2644
|
+
tags: ["retro", "fun"],
|
|
2645
|
+
description: "Neon-lit cyberpunk aesthetic"
|
|
2646
|
+
},
|
|
2647
|
+
retroGreen: {
|
|
2648
|
+
theme: DefaultThemes.retroGreen,
|
|
2649
|
+
category: "dark",
|
|
2650
|
+
tags: ["retro", "fun"],
|
|
2651
|
+
description: "Classic green phosphor CRT monitor"
|
|
2652
|
+
},
|
|
2653
|
+
retroAmber: {
|
|
2654
|
+
theme: DefaultThemes.retroAmber,
|
|
2655
|
+
category: "dark",
|
|
2656
|
+
tags: ["retro", "fun"],
|
|
2657
|
+
description: "Warm amber CRT monitor"
|
|
2658
|
+
},
|
|
2659
|
+
matrix: {
|
|
2660
|
+
theme: DefaultThemes.matrix,
|
|
2661
|
+
category: "dark",
|
|
2662
|
+
tags: ["retro", "fun"],
|
|
2663
|
+
description: "Enter the Matrix - green on black"
|
|
2664
|
+
},
|
|
2665
|
+
synthwave: {
|
|
2666
|
+
theme: DefaultThemes.synthwave,
|
|
2667
|
+
category: "dark",
|
|
2668
|
+
tags: ["retro", "fun"],
|
|
2669
|
+
description: "80s synthwave purple/pink aesthetic"
|
|
2670
|
+
},
|
|
2671
|
+
highContrastDark: {
|
|
2672
|
+
theme: DefaultThemes.highContrastDark,
|
|
2673
|
+
category: "dark",
|
|
2674
|
+
tags: ["accessibility"],
|
|
2675
|
+
description: "Maximum contrast dark theme"
|
|
2676
|
+
}
|
|
2677
|
+
};
|
|
2678
|
+
|
|
2679
|
+
// src/lib/translations.ts
|
|
2680
|
+
var roTranslations = {
|
|
2681
|
+
"cli.common.usage": "Utilizare:",
|
|
2682
|
+
"cli.common.examples": "Exemple:",
|
|
2683
|
+
"cli.help.description": "Afi\u0219eaz\u0103 ajutorul pentru o comand\u0103",
|
|
2684
|
+
"cli.help.long_description": "Afi\u0219eaz\u0103 informa\u021Bii de ajutor pentru comenzi",
|
|
2685
|
+
"cli.help.shortcuts": "Scurt\u0103turi",
|
|
2686
|
+
"cli.help.type": "Tasta\u021Bi",
|
|
2687
|
+
"cli.help.help_command": "help <comand\u0103>",
|
|
2688
|
+
"cli.help.for_details": "pentru informa\u021Bii detaliate",
|
|
2689
|
+
"cli.help.unknown_command": "Comand\u0103 necunoscut\u0103: {command}",
|
|
2690
|
+
"cli.help.see_all": "pentru a vedea toate comenzile disponibile",
|
|
2691
|
+
"cli.help.extension_chain": "Lan\u021B de extensii",
|
|
2692
|
+
"cli.help.subcommands": "Subcomenzi",
|
|
2693
|
+
"cli.help.options": "Op\u021Biuni",
|
|
2694
|
+
"cli.help.global_options": "Op\u021Biuni globale",
|
|
2695
|
+
"cli.help.requires_server": "Necesit\u0103 un server conectat",
|
|
2696
|
+
"cli.help.aliases": "Aliasuri:",
|
|
2697
|
+
"cli.help.required": "(obligatoriu)",
|
|
2698
|
+
"cli.help.show_all": "Afi\u0219eaz\u0103 toate comenzile disponibile",
|
|
2699
|
+
"cli.help.show_details": "Afi\u0219eaz\u0103 detaliile unei comenzi",
|
|
2700
|
+
"cli.help.show_sub_details": "Afi\u0219eaz\u0103 detaliile unei subcomenzi",
|
|
2701
|
+
"cli.help.example_pkg": "Ajutor manager de pachete",
|
|
2702
|
+
"cli.help.example_theme": "Ajutor subcomand\u0103 theme apply",
|
|
2703
|
+
"cli.configure.description": "Gestionarea configura\u021Biei sistemului \u0219i a pluginurilor",
|
|
2704
|
+
"cli.configure.long_description": "Gestionarea configura\u021Biei sistemului \u0219i a pluginurilor interactiv sau prin subcomenzi",
|
|
2705
|
+
"cli.configure.open_menu": "Deschide meniul interactiv de configurare",
|
|
2706
|
+
"cli.configure.list_opts": "Listeaz\u0103 toate op\u021Biunile de configurare",
|
|
2707
|
+
"cli.configure.get_value": "Ob\u021Bine o valoare de configurare",
|
|
2708
|
+
"cli.configure.set_value": "Seteaz\u0103 o valoare de configurare",
|
|
2709
|
+
"cli.configure.reset_defaults": "Reseteaz\u0103 configura\u021Bia la valorile implicite",
|
|
2710
|
+
"cli.configure.system": "Sistem",
|
|
2711
|
+
"cli.configure.exit": "Ie\u0219ire",
|
|
2712
|
+
"cli.configure.back": "\xCEnapoi",
|
|
2713
|
+
"cli.configure.current_value": "Valoare curent\u0103:",
|
|
2714
|
+
"cli.configure.invalid_value": "Valoare invalid\u0103",
|
|
2715
|
+
"cli.configure.set_to": "{label} setat la {value}",
|
|
2716
|
+
"cli.configure.invalid_format_get": "Format invalid. Folosi\u021Bi: configure get <categorie.cheie>",
|
|
2717
|
+
"cli.configure.unknown_key": "Cheie de configurare necunoscut\u0103: {path}",
|
|
2718
|
+
"cli.configure.invalid_format_set": "Format invalid. Folosi\u021Bi: configure set <categorie.cheie> <valoare>",
|
|
2719
|
+
"cli.configure.set_success": "{path} setat la {value}",
|
|
2720
|
+
"cli.configure.system_reset": "Configura\u021Bia sistemului a fost resetat\u0103 la valorile implicite",
|
|
2721
|
+
"cli.configure.unknown_category": "Categorie necunoscut\u0103: {category}",
|
|
2722
|
+
"cli.configure.category_reset": 'Configura\u021Bia \u201E{category}" a fost resetat\u0103 la valorile implicite',
|
|
2723
|
+
"cli.configure.reset_confirm": "Reseta\u021Bi toat\u0103 configura\u021Bia la valorile implicite?",
|
|
2724
|
+
"cli.configure.reset_cancelled": "Resetare anulat\u0103",
|
|
2725
|
+
"cli.configure.all_reset": "Toat\u0103 configura\u021Bia a fost resetat\u0103 la valorile implicite",
|
|
2726
|
+
"cli.configure.invalid_number": "Num\u0103r invalid: {value}",
|
|
2727
|
+
"cli.configure.invalid_options": "Valoare invalid\u0103. Op\u021Biuni valide: {options}",
|
|
2728
|
+
"cli.echo.description": "Afi\u0219eaz\u0103 textul specificat",
|
|
2729
|
+
"cli.echo.long_description": "Afi\u0219eaz\u0103 textul specificat \xEEn terminal",
|
|
2730
|
+
"cli.echo.piping_note": "Suport\u0103 ie\u0219ire text \u0219i obiecte JSON prin conducte",
|
|
2731
|
+
"cli.clear.description": "Cur\u0103\u021B\u0103 terminalul",
|
|
2732
|
+
"cli.clear.long_description": "\u0218terge tot con\u021Binutul ecranului terminalului",
|
|
2733
|
+
"cli.clear.shortcut": "Scurt\u0103tur\u0103:",
|
|
2734
|
+
"cli.version.description": "Afi\u0219eaz\u0103 informa\u021Bii despre versiune",
|
|
2735
|
+
"cli.version.long_description": "Afi\u0219eaz\u0103 versiunea curent\u0103 a CLI \u0219i linkul c\u0103tre documenta\u021Bie",
|
|
2736
|
+
"cli.uname.long_description": "Afi\u0219eaz\u0103 informa\u021Bii detaliate despre sistem \u0219i browser, inclusiv:",
|
|
2737
|
+
"cli.uname.cli_versions": "Versiunile nucleului \u0219i bibliotecilor CLI",
|
|
2738
|
+
"cli.uname.browser_info": "Numele browserului, versiunea, user agent, limba \u0219i platforma",
|
|
2739
|
+
"cli.uname.os": "Sistem de operare",
|
|
2740
|
+
"cli.hash.description": "Genereaz\u0103 rezumate hash din text",
|
|
2741
|
+
"cli.hash.long_description": "Genereaz\u0103 rezumate hash criptografice folosind Web Crypto API",
|
|
2742
|
+
"cli.cal.description": "Afi\u0219eaz\u0103 un calendar",
|
|
2743
|
+
"cli.cal.long_description": "Afi\u0219eaz\u0103 un calendar lunar",
|
|
2744
|
+
"cli.cal.highlight_note": "Ziua curent\u0103 este eviden\u021Biat\u0103",
|
|
2745
|
+
"cli.cal.current_month": "Luna curent\u0103",
|
|
2746
|
+
"cli.cal.specific_month": "Lun\u0103 specific\u0103",
|
|
2747
|
+
"cli.time.description": "Afi\u0219eaz\u0103 ora local\u0103 curent\u0103 \u0219i UTC",
|
|
2748
|
+
"cli.time.long_description": "Afi\u0219eaz\u0103 ora local\u0103 curent\u0103 \u0219i UTC",
|
|
2749
|
+
"cli.time.show_current": "Afi\u0219eaz\u0103 ora local\u0103 curent\u0103 \u0219i UTC",
|
|
2750
|
+
"cli.uptime.description": "Afi\u0219eaz\u0103 timpul de func\u021Bionare al sesiunii",
|
|
2751
|
+
"cli.uptime.long_description": "Afi\u0219eaz\u0103 c\xE2t timp a fost activ\u0103 sesiunea curent\u0103 a terminalului",
|
|
2752
|
+
"cli.convert.description": "Conversie \xEEntre unit\u0103\u021Bi (lungime, greutate, temperatur\u0103, date)",
|
|
2753
|
+
"cli.convert.long_description": "Conversie \xEEntre diferite unit\u0103\u021Bi de m\u0103sur\u0103",
|
|
2754
|
+
"cli.convert.supported": "Suportate:",
|
|
2755
|
+
"cli.eval.description": "Evalueaz\u0103 o expresie JavaScript",
|
|
2756
|
+
"cli.eval.long_description": "Evalueaz\u0103 o expresie JavaScript",
|
|
2757
|
+
"cli.eval.supports": "Suport\u0103 aritmetic\u0103, \u0219iruri, tablouri, obiecte \u0219i orice JS valid",
|
|
2758
|
+
"cli.seq.description": "Afi\u0219eaz\u0103 o secven\u021B\u0103 de numere",
|
|
2759
|
+
"cli.seq.long_description": "Afi\u0219eaz\u0103 o secven\u021B\u0103 de numere",
|
|
2760
|
+
"cli.seq.numbers_to_end": "Numere de la 1 p\xE2n\u0103 la sf\xE2r\u0219it",
|
|
2761
|
+
"cli.seq.numbers_range": "Numere de la \xEEnceput p\xE2n\u0103 la sf\xE2r\u0219it",
|
|
2762
|
+
"cli.seq.with_step": "Cu pas personalizat",
|
|
2763
|
+
"cli.lorem.description": "Genereaz\u0103 text de umplutur\u0103 lorem ipsum",
|
|
2764
|
+
"cli.lorem.long_description": "Genereaz\u0103 text de umplutur\u0103 lorem ipsum",
|
|
2765
|
+
"cli.lorem.gen_words": "Genereaz\u0103 cuvinte",
|
|
2766
|
+
"cli.lorem.gen_sentences": "Genereaz\u0103 propozi\u021Bii",
|
|
2767
|
+
"cli.lorem.gen_paragraphs": "Genereaz\u0103 paragrafe",
|
|
2768
|
+
"cli.alias.description": "Gestionarea aliasurilor de comenzi",
|
|
2769
|
+
"cli.alias.long_description": "Crearea de aliasuri rapide pentru comenzile utilizate frecvent",
|
|
2770
|
+
"cli.alias.create_new": "Creeaz\u0103 un alias nou",
|
|
2771
|
+
"cli.alias.list_all": "Listeaz\u0103 toate aliasurile",
|
|
2772
|
+
"cli.alias.remove_hint": "Folosi\u021Bi {command} pentru a elimina un alias",
|
|
2773
|
+
"cli.unalias.description": "Elimin\u0103 aliasuri de comenzi",
|
|
2774
|
+
"cli.unalias.long_description": "Elimin\u0103 un alias de comand\u0103 definit anterior",
|
|
2775
|
+
"cli.open.description": "Deschide un URL \xEEntr-o fil\u0103 nou\u0103 a browserului",
|
|
2776
|
+
"cli.open.long_description": "Deschide un URL \xEEntr-o fil\u0103 nou\u0103 a browserului",
|
|
2777
|
+
"cli.open.auto_https": "Adaug\u0103 automat https:// dac\u0103 nu este specificat un protocol",
|
|
2778
|
+
"cli.color.description": "Converte\u0219te \u0219i previzualizeaz\u0103 culori (hex, rgb, hsl)",
|
|
2779
|
+
"cli.color.long_description": "Converte\u0219te \xEEntre formate de culori \u0219i previzualizeaz\u0103 culori",
|
|
2780
|
+
"cli.color.supported_formats": "Formate suportate:",
|
|
2781
|
+
"cli.history.long_description": "Afi\u0219eaz\u0103 istoricul comenzilor din sesiunea curent\u0103",
|
|
2782
|
+
"cli.history.show": "Afi\u0219eaz\u0103 istoricul comenzilor",
|
|
2783
|
+
"cli.history.search": "Caut\u0103 \xEEn istoric dup\u0103 model",
|
|
2784
|
+
"cli.history.clear": "\u0218terge tot istoricul",
|
|
2785
|
+
"cli.history.arrow_hint": "Folosi\u021Bi tastele s\u0103ge\u021Bi {keys} pentru a naviga \xEEn istoric",
|
|
2786
|
+
"cli.history.prefix_hint": "Tasta\u021Bi un prefix \u0219i ap\u0103sa\u021Bi {key} pentru a c\u0103uta \xEEn istoric dup\u0103 prefix",
|
|
2787
|
+
"cli.theme.description": "Interac\u021Biune cu tema",
|
|
2788
|
+
"cli.theme.long_description": "Personalizeaz\u0103 aspectul terminalului cu teme \u0219i culori",
|
|
2789
|
+
"cli.hex.description": "Codificare/decodificare hex \u0219i conversie de baz\u0103 numeric\u0103",
|
|
2790
|
+
"cli.hex.long_description": "Codific\u0103/decodific\u0103 text \xEEn hexazecimal \u0219i converte\u0219te numere \xEEntre baze",
|
|
2791
|
+
"cli.hex.text_to_hex": "Text \xEEn hexazecimal",
|
|
2792
|
+
"cli.hex.hex_to_text": "Hexazecimal \xEEn text",
|
|
2793
|
+
"cli.hex.base_conversion": "Conversie de baz\u0103",
|
|
2794
|
+
"cli.feedback.long_description": "Raporta\u021Bi erori, solicita\u021Bi func\u021Bionalit\u0103\u021Bi sau sugera\u021Bi comenzi noi \u2014 interactiv sau inline.",
|
|
2795
|
+
"cli.jwt.description": "Decodific\u0103 \u0219i inspecteaz\u0103 tokenuri JWT",
|
|
2796
|
+
"cli.jwt.long_description": "Decodific\u0103 \u0219i inspecteaz\u0103 JSON Web Token (JWT)",
|
|
2797
|
+
"cli.jwt.decode_display": "Decodific\u0103 \u0219i afi\u0219eaz\u0103 con\u021Binutul JWT",
|
|
2798
|
+
"cli.jwt.shows": "Afi\u0219eaz\u0103: antet, payload, stare expirare, dat\u0103 emitere",
|
|
2799
|
+
"cli.sleep.description": "Pune \xEEn pauz\u0103 execu\u021Bia pentru un timp specificat",
|
|
2800
|
+
"cli.sleep.long_description": "Pune \xEEn pauz\u0103 execu\u021Bia pentru durata specificat\u0103 (\xEEn milisecunde)",
|
|
2801
|
+
"cli.services.description": "Gestionarea serviciilor \xEEn fundal \u0219i a sarcinilor",
|
|
2802
|
+
"cli.services.long_description": "Gestionarea serviciilor \xEEn fundal \u0219i a sarcinilor",
|
|
2803
|
+
"cli.services.list_desc": "Listeaz\u0103 toate serviciile",
|
|
2804
|
+
"cli.services.start_desc": "Porne\u0219te un serviciu",
|
|
2805
|
+
"cli.services.stop_desc": "Opre\u0219te un serviciu",
|
|
2806
|
+
"cli.services.restart_desc": "Reporne\u0219te un serviciu",
|
|
2807
|
+
"cli.services.logs_desc": "Vizualizeaz\u0103 jurnalele serviciului",
|
|
2808
|
+
"cli.services.info_desc": "Detalii serviciu",
|
|
2809
|
+
"cli.yes.description": "Repet\u0103 continuu un \u0219ir de caractere",
|
|
2810
|
+
"cli.yes.long_description": "Repet\u0103 continuu un \u0219ir de caractere",
|
|
2811
|
+
"cli.clipboard.description": "Copiaz\u0103 sau lipe\u0219te din clipboard",
|
|
2812
|
+
"cli.clipboard.long_description": "Copiaz\u0103 text \xEEn clipboard-ul sistemului sau lipe\u0219te text din acesta",
|
|
2813
|
+
"cli.clipboard.copy_desc": "Copiaz\u0103 text \xEEn clipboard",
|
|
2814
|
+
"cli.clipboard.paste_desc": "Lipe\u0219te din clipboard",
|
|
2815
|
+
"cli.hotkeys.description": "Afi\u0219eaz\u0103 informa\u021Bii despre tastele rapide",
|
|
2816
|
+
"cli.hotkeys.long_description": "Afi\u0219eaz\u0103 toate scurt\u0103turile de tastatur\u0103 \u0219i tastele rapide disponibile",
|
|
2817
|
+
"cli.export.description": "Seteaz\u0103 variabile de mediu",
|
|
2818
|
+
"cli.export.long_description": "Seteaz\u0103 sau afi\u0219eaz\u0103 variabile de mediu",
|
|
2819
|
+
"cli.export.show_all": "Afi\u0219eaz\u0103 toate variabilele",
|
|
2820
|
+
"cli.export.set_var": "Seteaz\u0103 o variabil\u0103",
|
|
2821
|
+
"cli.export.set_spaces": "Seteaz\u0103 cu spa\u021Bii",
|
|
2822
|
+
"cli.unset.description": "Elimin\u0103 variabile de mediu",
|
|
2823
|
+
"cli.unset.long_description": "Elimin\u0103 o variabil\u0103 de mediu",
|
|
2824
|
+
"cli.env.description": "Afi\u0219eaz\u0103 variabile de mediu",
|
|
2825
|
+
"cli.env.long_description": "Afi\u0219eaz\u0103 variabile de mediu",
|
|
2826
|
+
"cli.env.show_all": "Afi\u0219eaz\u0103 toate variabilele",
|
|
2827
|
+
"cli.env.show_single": "Afi\u0219eaz\u0103 o singur\u0103 variabil\u0103",
|
|
2828
|
+
"cli.url.description": "Codific\u0103 sau decodific\u0103 URL-uri",
|
|
2829
|
+
"cli.url.long_description": "Codificare, decodificare \u0219i analiz\u0103 URL",
|
|
2830
|
+
"cli.url.encode_desc": "Codific\u0103 un \u0219ir ca URL",
|
|
2831
|
+
"cli.url.decode_desc": "Decodific\u0103 un \u0219ir URL",
|
|
2832
|
+
"cli.url.parse_desc": "Analizeaz\u0103 componentele unui URL",
|
|
2833
|
+
"cli.json.description": "Formateaz\u0103, minific\u0103 sau valideaz\u0103 JSON",
|
|
2834
|
+
"cli.json.long_description": "Formateaz\u0103, minific\u0103 sau valideaz\u0103 \u0219iruri JSON",
|
|
2835
|
+
"cli.json.format_desc": "Formateaz\u0103 JSON cu indentare",
|
|
2836
|
+
"cli.json.minify_desc": "Elimin\u0103 spa\u021Biile albe",
|
|
2837
|
+
"cli.json.validate_desc": "Verific\u0103 dac\u0103 este JSON valid",
|
|
2838
|
+
"cli.base64.description": "Codific\u0103 sau decodific\u0103 \u0219iruri Base64",
|
|
2839
|
+
"cli.base64.long_description": "Codificare \u0219i decodificare \u0219iruri Base64",
|
|
2840
|
+
"cli.base64.utf8_note": "Suport\u0103 codificarea textului UTF-8",
|
|
2841
|
+
"cli.base64.encode_desc": "Codific\u0103 text \xEEn Base64",
|
|
2842
|
+
"cli.base64.decode_desc": "Decodific\u0103 Base64 \xEEn text",
|
|
2843
|
+
"cli.timestamp.description": "Conversie \xEEntre marcaje temporale Unix \u0219i date",
|
|
2844
|
+
"cli.timestamp.long_description": "Conversie \xEEntre marcaje temporale Unix \u0219i date lizibile",
|
|
2845
|
+
"cli.timestamp.current": "Marcaj temporal Unix curent",
|
|
2846
|
+
"cli.timestamp.to_date": "Marcaj temporal \xEEn dat\u0103",
|
|
2847
|
+
"cli.timestamp.from_date": "Dat\u0103 \xEEn marcaj temporal",
|
|
2848
|
+
"cli.screen.description": "Afi\u0219eaz\u0103 informa\u021Bii despre ecran \u0219i terminal",
|
|
2849
|
+
"cli.screen.long_description": "Afi\u0219eaz\u0103 dimensiunile ecranului, viewport-ului \u0219i terminalului",
|
|
2850
|
+
"cli.screen.shows": "Afi\u0219eaz\u0103: rezolu\u021Bie, ad\xE2ncime culoare, raport pixeli, dimensiune fereastr\u0103, dimensiune terminal",
|
|
2851
|
+
"cli.random.description": "Genereaz\u0103 valori aleatorii",
|
|
2852
|
+
"cli.random.long_description": "Genereaz\u0103 numere, \u0219iruri, UUID-uri aleatorii \u0219i altele",
|
|
2853
|
+
"cli.random.number_desc": "Num\u0103r aleatoriu (0-100)",
|
|
2854
|
+
"cli.random.string_desc": "\u0218ir aleatoriu (16 caractere)",
|
|
2855
|
+
"cli.random.uuid_desc": "UUID v4 aleatoriu",
|
|
2856
|
+
"cli.random.coin_desc": "Arunc\u0103 o moned\u0103",
|
|
2857
|
+
"cli.random.dice_desc": "Arunc\u0103 un zar",
|
|
2858
|
+
"cli.ping.description": "Trimite ping de tip ICMP c\u0103tre o gazd\u0103",
|
|
2859
|
+
"cli.ping.long_description": "Trimite ping HTTP de tip ICMP c\u0103tre o gazd\u0103 \u0219i afi\u0219eaz\u0103 statistici",
|
|
2860
|
+
"cli.ping.ctrl_c": "Ap\u0103sa\u021Bi Ctrl+C pentru a opri \u0219i afi\u0219a statisticile.",
|
|
2861
|
+
"cli.nano.description": "Deschide editorul de text \xEEncorporat",
|
|
2862
|
+
"cli.nano.long_description": "Deschide editorul de text \xEEn stil nano \xEEncorporat",
|
|
2863
|
+
"cli.nano.open_empty": "Deschide un buffer gol",
|
|
2864
|
+
"cli.nano.open_file": "Deschide sau creeaz\u0103 un fi\u0219ier",
|
|
2865
|
+
"cli.nano.keyboard_shortcuts": "Scurt\u0103turi de tastatur\u0103:",
|
|
2866
|
+
"cli.debug.description": "Afi\u0219eaz\u0103 diagnostice detaliate ale sistemului \u0219i internelor CLI",
|
|
2867
|
+
"cli.debug.long_description": "Afi\u0219eaz\u0103 diagnostice detaliate ale sistemului \u0219i internelor CLI.",
|
|
2868
|
+
"cli.debug.hidden_note": "Aceast\u0103 comand\u0103 este ascuns\u0103 \xEEn lista de ajutor, dar este accesibil\u0103 direct.",
|
|
2869
|
+
"cli.debug.summary": "Rezumat sistem",
|
|
2870
|
+
"cli.debug.processors": "Toate procesoarele \xEEnregistrate",
|
|
2871
|
+
"cli.debug.modules": "Toate modulele \xEEnc\u0103rcate",
|
|
2872
|
+
"cli.debug.state": "Inspecteaz\u0103 depozitele de stare",
|
|
2873
|
+
"cli.packages.description": "Gestionarea pachetelor CLI"
|
|
2874
|
+
};
|
|
2875
|
+
|
|
2876
|
+
// src/public-api.ts
|
|
2877
|
+
var langRoModule = {
|
|
2878
|
+
apiVersion: API_VERSION,
|
|
2879
|
+
name: "@qodalis/cli-lang-ro",
|
|
2880
|
+
version: "1.0.0",
|
|
2881
|
+
description: "Romanian language pack for Qodalis CLI",
|
|
2882
|
+
async onInit(context) {
|
|
2883
|
+
const translator = context.services.get(ICliTranslationService_TOKEN);
|
|
2884
|
+
translator.addTranslations("ro", roTranslations);
|
|
2885
|
+
}
|
|
2886
|
+
};
|
|
2887
|
+
|
|
2888
|
+
// src/cli-entrypoint.ts
|
|
2889
|
+
bootCliModule(langRoModule);
|
|
2890
|
+
})();
|