@sykoramaros/marosh-components 0.2.0 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.cjs +510 -534
- package/dist/index.d.ts +17 -1
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2900 -1944
- package/dist/index.mjs.map +1 -1
- package/package.json +26 -25
- package/src/components/basicComponents/LanguageSwitcher.stories.tsx +52 -0
- package/src/components/basicComponents/LanguageSwitcher.tsx +84 -0
- package/src/components/ui/dropdown-menu.tsx +171 -0
- package/src/components/ui/sidebar.tsx +1 -0
- package/src/hooks/use-mobile.ts +5 -6
- package/src/index.ts +5 -0
- package/src/providers/ThemeContextProvider.tsx +1 -1
- package/src/App.css +0 -42
- package/src/App.tsx +0 -44
- package/src/main.tsx +0 -23
package/dist/cli/index.cjs
CHANGED
|
@@ -1214,7 +1214,7 @@ var require_command = __commonJS({
|
|
|
1214
1214
|
init_cjs_shims();
|
|
1215
1215
|
var EventEmitter = require("events").EventEmitter;
|
|
1216
1216
|
var childProcess = require("child_process");
|
|
1217
|
-
var
|
|
1217
|
+
var path3 = require("path");
|
|
1218
1218
|
var fs2 = require("fs");
|
|
1219
1219
|
var process4 = require("process");
|
|
1220
1220
|
var { Argument: Argument2, humanReadableArgName } = require_argument();
|
|
@@ -1840,9 +1840,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1840
1840
|
if (typeof fn === "function") {
|
|
1841
1841
|
option.default(defaultValue).argParser(fn);
|
|
1842
1842
|
} else if (fn instanceof RegExp) {
|
|
1843
|
-
const
|
|
1843
|
+
const regex = fn;
|
|
1844
1844
|
fn = (val, def) => {
|
|
1845
|
-
const m =
|
|
1845
|
+
const m = regex.exec(val);
|
|
1846
1846
|
return m ? m[0] : def;
|
|
1847
1847
|
};
|
|
1848
1848
|
option.default(defaultValue).argParser(fn);
|
|
@@ -2227,9 +2227,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2227
2227
|
let launchWithNode = false;
|
|
2228
2228
|
const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"];
|
|
2229
2229
|
function findFile(baseDir, baseName) {
|
|
2230
|
-
const localBin =
|
|
2230
|
+
const localBin = path3.resolve(baseDir, baseName);
|
|
2231
2231
|
if (fs2.existsSync(localBin)) return localBin;
|
|
2232
|
-
if (sourceExt.includes(
|
|
2232
|
+
if (sourceExt.includes(path3.extname(baseName))) return void 0;
|
|
2233
2233
|
const foundExt = sourceExt.find(
|
|
2234
2234
|
(ext) => fs2.existsSync(`${localBin}${ext}`)
|
|
2235
2235
|
);
|
|
@@ -2247,17 +2247,17 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2247
2247
|
} catch {
|
|
2248
2248
|
resolvedScriptPath = this._scriptPath;
|
|
2249
2249
|
}
|
|
2250
|
-
executableDir =
|
|
2251
|
-
|
|
2250
|
+
executableDir = path3.resolve(
|
|
2251
|
+
path3.dirname(resolvedScriptPath),
|
|
2252
2252
|
executableDir
|
|
2253
2253
|
);
|
|
2254
2254
|
}
|
|
2255
2255
|
if (executableDir) {
|
|
2256
2256
|
let localFile = findFile(executableDir, executableFile);
|
|
2257
2257
|
if (!localFile && !subcommand._executableFile && this._scriptPath) {
|
|
2258
|
-
const legacyName =
|
|
2258
|
+
const legacyName = path3.basename(
|
|
2259
2259
|
this._scriptPath,
|
|
2260
|
-
|
|
2260
|
+
path3.extname(this._scriptPath)
|
|
2261
2261
|
);
|
|
2262
2262
|
if (legacyName !== this._name) {
|
|
2263
2263
|
localFile = findFile(
|
|
@@ -2268,7 +2268,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2268
2268
|
}
|
|
2269
2269
|
executableFile = localFile || executableFile;
|
|
2270
2270
|
}
|
|
2271
|
-
launchWithNode = sourceExt.includes(
|
|
2271
|
+
launchWithNode = sourceExt.includes(path3.extname(executableFile));
|
|
2272
2272
|
let proc;
|
|
2273
2273
|
if (process4.platform !== "win32") {
|
|
2274
2274
|
if (launchWithNode) {
|
|
@@ -3183,7 +3183,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3183
3183
|
* @return {Command}
|
|
3184
3184
|
*/
|
|
3185
3185
|
nameFromFilename(filename) {
|
|
3186
|
-
this._name =
|
|
3186
|
+
this._name = path3.basename(filename, path3.extname(filename));
|
|
3187
3187
|
return this;
|
|
3188
3188
|
}
|
|
3189
3189
|
/**
|
|
@@ -3197,9 +3197,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
3197
3197
|
* @param {string} [path]
|
|
3198
3198
|
* @return {(string|null|Command)}
|
|
3199
3199
|
*/
|
|
3200
|
-
executableDir(
|
|
3201
|
-
if (
|
|
3202
|
-
this._executableDir =
|
|
3200
|
+
executableDir(path4) {
|
|
3201
|
+
if (path4 === void 0) return this._executableDir;
|
|
3202
|
+
this._executableDir = path4;
|
|
3203
3203
|
return this;
|
|
3204
3204
|
}
|
|
3205
3205
|
/**
|
|
@@ -3562,14 +3562,14 @@ var require_polyfills = __commonJS({
|
|
|
3562
3562
|
fs2.fstatSync = statFixSync(fs2.fstatSync);
|
|
3563
3563
|
fs2.lstatSync = statFixSync(fs2.lstatSync);
|
|
3564
3564
|
if (fs2.chmod && !fs2.lchmod) {
|
|
3565
|
-
fs2.lchmod = function(
|
|
3565
|
+
fs2.lchmod = function(path3, mode, cb) {
|
|
3566
3566
|
if (cb) process.nextTick(cb);
|
|
3567
3567
|
};
|
|
3568
3568
|
fs2.lchmodSync = function() {
|
|
3569
3569
|
};
|
|
3570
3570
|
}
|
|
3571
3571
|
if (fs2.chown && !fs2.lchown) {
|
|
3572
|
-
fs2.lchown = function(
|
|
3572
|
+
fs2.lchown = function(path3, uid, gid, cb) {
|
|
3573
3573
|
if (cb) process.nextTick(cb);
|
|
3574
3574
|
};
|
|
3575
3575
|
fs2.lchownSync = function() {
|
|
@@ -3636,9 +3636,9 @@ var require_polyfills = __commonJS({
|
|
|
3636
3636
|
};
|
|
3637
3637
|
})(fs2.readSync);
|
|
3638
3638
|
function patchLchmod(fs3) {
|
|
3639
|
-
fs3.lchmod = function(
|
|
3639
|
+
fs3.lchmod = function(path3, mode, callback) {
|
|
3640
3640
|
fs3.open(
|
|
3641
|
-
|
|
3641
|
+
path3,
|
|
3642
3642
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
3643
3643
|
mode,
|
|
3644
3644
|
function(err, fd) {
|
|
@@ -3654,8 +3654,8 @@ var require_polyfills = __commonJS({
|
|
|
3654
3654
|
}
|
|
3655
3655
|
);
|
|
3656
3656
|
};
|
|
3657
|
-
fs3.lchmodSync = function(
|
|
3658
|
-
var fd = fs3.openSync(
|
|
3657
|
+
fs3.lchmodSync = function(path3, mode) {
|
|
3658
|
+
var fd = fs3.openSync(path3, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
3659
3659
|
var threw = true;
|
|
3660
3660
|
var ret;
|
|
3661
3661
|
try {
|
|
@@ -3676,8 +3676,8 @@ var require_polyfills = __commonJS({
|
|
|
3676
3676
|
}
|
|
3677
3677
|
function patchLutimes(fs3) {
|
|
3678
3678
|
if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
|
|
3679
|
-
fs3.lutimes = function(
|
|
3680
|
-
fs3.open(
|
|
3679
|
+
fs3.lutimes = function(path3, at, mt, cb) {
|
|
3680
|
+
fs3.open(path3, constants.O_SYMLINK, function(er, fd) {
|
|
3681
3681
|
if (er) {
|
|
3682
3682
|
if (cb) cb(er);
|
|
3683
3683
|
return;
|
|
@@ -3689,8 +3689,8 @@ var require_polyfills = __commonJS({
|
|
|
3689
3689
|
});
|
|
3690
3690
|
});
|
|
3691
3691
|
};
|
|
3692
|
-
fs3.lutimesSync = function(
|
|
3693
|
-
var fd = fs3.openSync(
|
|
3692
|
+
fs3.lutimesSync = function(path3, at, mt) {
|
|
3693
|
+
var fd = fs3.openSync(path3, constants.O_SYMLINK);
|
|
3694
3694
|
var ret;
|
|
3695
3695
|
var threw = true;
|
|
3696
3696
|
try {
|
|
@@ -3810,11 +3810,11 @@ var require_legacy_streams = __commonJS({
|
|
|
3810
3810
|
ReadStream,
|
|
3811
3811
|
WriteStream
|
|
3812
3812
|
};
|
|
3813
|
-
function ReadStream(
|
|
3814
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
3813
|
+
function ReadStream(path3, options) {
|
|
3814
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path3, options);
|
|
3815
3815
|
Stream.call(this);
|
|
3816
3816
|
var self = this;
|
|
3817
|
-
this.path =
|
|
3817
|
+
this.path = path3;
|
|
3818
3818
|
this.fd = null;
|
|
3819
3819
|
this.readable = true;
|
|
3820
3820
|
this.paused = false;
|
|
@@ -3859,10 +3859,10 @@ var require_legacy_streams = __commonJS({
|
|
|
3859
3859
|
self._read();
|
|
3860
3860
|
});
|
|
3861
3861
|
}
|
|
3862
|
-
function WriteStream(
|
|
3863
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
3862
|
+
function WriteStream(path3, options) {
|
|
3863
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path3, options);
|
|
3864
3864
|
Stream.call(this);
|
|
3865
|
-
this.path =
|
|
3865
|
+
this.path = path3;
|
|
3866
3866
|
this.fd = null;
|
|
3867
3867
|
this.writable = true;
|
|
3868
3868
|
this.flags = "w";
|
|
@@ -4008,14 +4008,14 @@ var require_graceful_fs = __commonJS({
|
|
|
4008
4008
|
fs3.createWriteStream = createWriteStream;
|
|
4009
4009
|
var fs$readFile = fs3.readFile;
|
|
4010
4010
|
fs3.readFile = readFile;
|
|
4011
|
-
function readFile(
|
|
4011
|
+
function readFile(path3, options, cb) {
|
|
4012
4012
|
if (typeof options === "function")
|
|
4013
4013
|
cb = options, options = null;
|
|
4014
|
-
return go$readFile(
|
|
4015
|
-
function go$readFile(
|
|
4016
|
-
return fs$readFile(
|
|
4014
|
+
return go$readFile(path3, options, cb);
|
|
4015
|
+
function go$readFile(path4, options2, cb2, startTime) {
|
|
4016
|
+
return fs$readFile(path4, options2, function(err) {
|
|
4017
4017
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4018
|
-
enqueue([go$readFile, [
|
|
4018
|
+
enqueue([go$readFile, [path4, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4019
4019
|
else {
|
|
4020
4020
|
if (typeof cb2 === "function")
|
|
4021
4021
|
cb2.apply(this, arguments);
|
|
@@ -4025,14 +4025,14 @@ var require_graceful_fs = __commonJS({
|
|
|
4025
4025
|
}
|
|
4026
4026
|
var fs$writeFile = fs3.writeFile;
|
|
4027
4027
|
fs3.writeFile = writeFile;
|
|
4028
|
-
function writeFile(
|
|
4028
|
+
function writeFile(path3, data, options, cb) {
|
|
4029
4029
|
if (typeof options === "function")
|
|
4030
4030
|
cb = options, options = null;
|
|
4031
|
-
return go$writeFile(
|
|
4032
|
-
function go$writeFile(
|
|
4033
|
-
return fs$writeFile(
|
|
4031
|
+
return go$writeFile(path3, data, options, cb);
|
|
4032
|
+
function go$writeFile(path4, data2, options2, cb2, startTime) {
|
|
4033
|
+
return fs$writeFile(path4, data2, options2, function(err) {
|
|
4034
4034
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4035
|
-
enqueue([go$writeFile, [
|
|
4035
|
+
enqueue([go$writeFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4036
4036
|
else {
|
|
4037
4037
|
if (typeof cb2 === "function")
|
|
4038
4038
|
cb2.apply(this, arguments);
|
|
@@ -4043,14 +4043,14 @@ var require_graceful_fs = __commonJS({
|
|
|
4043
4043
|
var fs$appendFile = fs3.appendFile;
|
|
4044
4044
|
if (fs$appendFile)
|
|
4045
4045
|
fs3.appendFile = appendFile;
|
|
4046
|
-
function appendFile(
|
|
4046
|
+
function appendFile(path3, data, options, cb) {
|
|
4047
4047
|
if (typeof options === "function")
|
|
4048
4048
|
cb = options, options = null;
|
|
4049
|
-
return go$appendFile(
|
|
4050
|
-
function go$appendFile(
|
|
4051
|
-
return fs$appendFile(
|
|
4049
|
+
return go$appendFile(path3, data, options, cb);
|
|
4050
|
+
function go$appendFile(path4, data2, options2, cb2, startTime) {
|
|
4051
|
+
return fs$appendFile(path4, data2, options2, function(err) {
|
|
4052
4052
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4053
|
-
enqueue([go$appendFile, [
|
|
4053
|
+
enqueue([go$appendFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4054
4054
|
else {
|
|
4055
4055
|
if (typeof cb2 === "function")
|
|
4056
4056
|
cb2.apply(this, arguments);
|
|
@@ -4081,31 +4081,31 @@ var require_graceful_fs = __commonJS({
|
|
|
4081
4081
|
var fs$readdir = fs3.readdir;
|
|
4082
4082
|
fs3.readdir = readdir;
|
|
4083
4083
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
4084
|
-
function readdir(
|
|
4084
|
+
function readdir(path3, options, cb) {
|
|
4085
4085
|
if (typeof options === "function")
|
|
4086
4086
|
cb = options, options = null;
|
|
4087
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
4088
|
-
return fs$readdir(
|
|
4089
|
-
|
|
4087
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path4, options2, cb2, startTime) {
|
|
4088
|
+
return fs$readdir(path4, fs$readdirCallback(
|
|
4089
|
+
path4,
|
|
4090
4090
|
options2,
|
|
4091
4091
|
cb2,
|
|
4092
4092
|
startTime
|
|
4093
4093
|
));
|
|
4094
|
-
} : function go$readdir2(
|
|
4095
|
-
return fs$readdir(
|
|
4096
|
-
|
|
4094
|
+
} : function go$readdir2(path4, options2, cb2, startTime) {
|
|
4095
|
+
return fs$readdir(path4, options2, fs$readdirCallback(
|
|
4096
|
+
path4,
|
|
4097
4097
|
options2,
|
|
4098
4098
|
cb2,
|
|
4099
4099
|
startTime
|
|
4100
4100
|
));
|
|
4101
4101
|
};
|
|
4102
|
-
return go$readdir(
|
|
4103
|
-
function fs$readdirCallback(
|
|
4102
|
+
return go$readdir(path3, options, cb);
|
|
4103
|
+
function fs$readdirCallback(path4, options2, cb2, startTime) {
|
|
4104
4104
|
return function(err, files) {
|
|
4105
4105
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4106
4106
|
enqueue([
|
|
4107
4107
|
go$readdir,
|
|
4108
|
-
[
|
|
4108
|
+
[path4, options2, cb2],
|
|
4109
4109
|
err,
|
|
4110
4110
|
startTime || Date.now(),
|
|
4111
4111
|
Date.now()
|
|
@@ -4176,7 +4176,7 @@ var require_graceful_fs = __commonJS({
|
|
|
4176
4176
|
enumerable: true,
|
|
4177
4177
|
configurable: true
|
|
4178
4178
|
});
|
|
4179
|
-
function ReadStream(
|
|
4179
|
+
function ReadStream(path3, options) {
|
|
4180
4180
|
if (this instanceof ReadStream)
|
|
4181
4181
|
return fs$ReadStream.apply(this, arguments), this;
|
|
4182
4182
|
else
|
|
@@ -4196,7 +4196,7 @@ var require_graceful_fs = __commonJS({
|
|
|
4196
4196
|
}
|
|
4197
4197
|
});
|
|
4198
4198
|
}
|
|
4199
|
-
function WriteStream(
|
|
4199
|
+
function WriteStream(path3, options) {
|
|
4200
4200
|
if (this instanceof WriteStream)
|
|
4201
4201
|
return fs$WriteStream.apply(this, arguments), this;
|
|
4202
4202
|
else
|
|
@@ -4214,22 +4214,22 @@ var require_graceful_fs = __commonJS({
|
|
|
4214
4214
|
}
|
|
4215
4215
|
});
|
|
4216
4216
|
}
|
|
4217
|
-
function createReadStream(
|
|
4218
|
-
return new fs3.ReadStream(
|
|
4217
|
+
function createReadStream(path3, options) {
|
|
4218
|
+
return new fs3.ReadStream(path3, options);
|
|
4219
4219
|
}
|
|
4220
|
-
function createWriteStream(
|
|
4221
|
-
return new fs3.WriteStream(
|
|
4220
|
+
function createWriteStream(path3, options) {
|
|
4221
|
+
return new fs3.WriteStream(path3, options);
|
|
4222
4222
|
}
|
|
4223
4223
|
var fs$open = fs3.open;
|
|
4224
4224
|
fs3.open = open;
|
|
4225
|
-
function open(
|
|
4225
|
+
function open(path3, flags, mode, cb) {
|
|
4226
4226
|
if (typeof mode === "function")
|
|
4227
4227
|
cb = mode, mode = null;
|
|
4228
|
-
return go$open(
|
|
4229
|
-
function go$open(
|
|
4230
|
-
return fs$open(
|
|
4228
|
+
return go$open(path3, flags, mode, cb);
|
|
4229
|
+
function go$open(path4, flags2, mode2, cb2, startTime) {
|
|
4230
|
+
return fs$open(path4, flags2, mode2, function(err, fd) {
|
|
4231
4231
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
4232
|
-
enqueue([go$open, [
|
|
4232
|
+
enqueue([go$open, [path4, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
4233
4233
|
else {
|
|
4234
4234
|
if (typeof cb2 === "function")
|
|
4235
4235
|
cb2.apply(this, arguments);
|
|
@@ -4414,10 +4414,10 @@ var require_utils = __commonJS({
|
|
|
4414
4414
|
"node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
|
|
4415
4415
|
"use strict";
|
|
4416
4416
|
init_cjs_shims();
|
|
4417
|
-
var
|
|
4417
|
+
var path3 = require("path");
|
|
4418
4418
|
module2.exports.checkPath = function checkPath(pth) {
|
|
4419
4419
|
if (process.platform === "win32") {
|
|
4420
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
4420
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path3.parse(pth).root, ""));
|
|
4421
4421
|
if (pathHasInvalidWinCharacters) {
|
|
4422
4422
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
4423
4423
|
error.code = "EINVAL";
|
|
@@ -4484,8 +4484,8 @@ var require_path_exists = __commonJS({
|
|
|
4484
4484
|
init_cjs_shims();
|
|
4485
4485
|
var u = require_universalify().fromPromise;
|
|
4486
4486
|
var fs2 = require_fs();
|
|
4487
|
-
function pathExists(
|
|
4488
|
-
return fs2.access(
|
|
4487
|
+
function pathExists(path3) {
|
|
4488
|
+
return fs2.access(path3).then(() => true).catch(() => false);
|
|
4489
4489
|
}
|
|
4490
4490
|
module2.exports = {
|
|
4491
4491
|
pathExists: u(pathExists),
|
|
@@ -4501,26 +4501,41 @@ var require_utimes = __commonJS({
|
|
|
4501
4501
|
init_cjs_shims();
|
|
4502
4502
|
var fs2 = require_fs();
|
|
4503
4503
|
var u = require_universalify().fromPromise;
|
|
4504
|
-
async function utimesMillis(
|
|
4505
|
-
const fd = await fs2.open(
|
|
4506
|
-
let
|
|
4504
|
+
async function utimesMillis(path3, atime, mtime) {
|
|
4505
|
+
const fd = await fs2.open(path3, "r+");
|
|
4506
|
+
let error = null;
|
|
4507
4507
|
try {
|
|
4508
4508
|
await fs2.futimes(fd, atime, mtime);
|
|
4509
|
+
} catch (futimesErr) {
|
|
4510
|
+
error = futimesErr;
|
|
4509
4511
|
} finally {
|
|
4510
4512
|
try {
|
|
4511
4513
|
await fs2.close(fd);
|
|
4512
|
-
} catch (
|
|
4513
|
-
|
|
4514
|
+
} catch (closeErr) {
|
|
4515
|
+
if (!error) error = closeErr;
|
|
4514
4516
|
}
|
|
4515
4517
|
}
|
|
4516
|
-
if (
|
|
4517
|
-
throw
|
|
4518
|
+
if (error) {
|
|
4519
|
+
throw error;
|
|
4518
4520
|
}
|
|
4519
4521
|
}
|
|
4520
|
-
function utimesMillisSync(
|
|
4521
|
-
const fd = fs2.openSync(
|
|
4522
|
-
|
|
4523
|
-
|
|
4522
|
+
function utimesMillisSync(path3, atime, mtime) {
|
|
4523
|
+
const fd = fs2.openSync(path3, "r+");
|
|
4524
|
+
let error = null;
|
|
4525
|
+
try {
|
|
4526
|
+
fs2.futimesSync(fd, atime, mtime);
|
|
4527
|
+
} catch (futimesErr) {
|
|
4528
|
+
error = futimesErr;
|
|
4529
|
+
} finally {
|
|
4530
|
+
try {
|
|
4531
|
+
fs2.closeSync(fd);
|
|
4532
|
+
} catch (closeErr) {
|
|
4533
|
+
if (!error) error = closeErr;
|
|
4534
|
+
}
|
|
4535
|
+
}
|
|
4536
|
+
if (error) {
|
|
4537
|
+
throw error;
|
|
4538
|
+
}
|
|
4524
4539
|
}
|
|
4525
4540
|
module2.exports = {
|
|
4526
4541
|
utimesMillis: u(utimesMillis),
|
|
@@ -4535,7 +4550,7 @@ var require_stat = __commonJS({
|
|
|
4535
4550
|
"use strict";
|
|
4536
4551
|
init_cjs_shims();
|
|
4537
4552
|
var fs2 = require_fs();
|
|
4538
|
-
var
|
|
4553
|
+
var path3 = require("path");
|
|
4539
4554
|
var u = require_universalify().fromPromise;
|
|
4540
4555
|
function getStats(src, dest, opts) {
|
|
4541
4556
|
const statFunc = opts.dereference ? (file) => fs2.stat(file, { bigint: true }) : (file) => fs2.lstat(file, { bigint: true });
|
|
@@ -4563,8 +4578,8 @@ var require_stat = __commonJS({
|
|
|
4563
4578
|
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
4564
4579
|
if (destStat) {
|
|
4565
4580
|
if (areIdentical(srcStat, destStat)) {
|
|
4566
|
-
const srcBaseName =
|
|
4567
|
-
const destBaseName =
|
|
4581
|
+
const srcBaseName = path3.basename(src);
|
|
4582
|
+
const destBaseName = path3.basename(dest);
|
|
4568
4583
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
4569
4584
|
return { srcStat, destStat, isChangingCase: true };
|
|
4570
4585
|
}
|
|
@@ -4586,8 +4601,8 @@ var require_stat = __commonJS({
|
|
|
4586
4601
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
4587
4602
|
if (destStat) {
|
|
4588
4603
|
if (areIdentical(srcStat, destStat)) {
|
|
4589
|
-
const srcBaseName =
|
|
4590
|
-
const destBaseName =
|
|
4604
|
+
const srcBaseName = path3.basename(src);
|
|
4605
|
+
const destBaseName = path3.basename(dest);
|
|
4591
4606
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
4592
4607
|
return { srcStat, destStat, isChangingCase: true };
|
|
4593
4608
|
}
|
|
@@ -4606,9 +4621,9 @@ var require_stat = __commonJS({
|
|
|
4606
4621
|
return { srcStat, destStat };
|
|
4607
4622
|
}
|
|
4608
4623
|
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
4609
|
-
const srcParent =
|
|
4610
|
-
const destParent =
|
|
4611
|
-
if (destParent === srcParent || destParent ===
|
|
4624
|
+
const srcParent = path3.resolve(path3.dirname(src));
|
|
4625
|
+
const destParent = path3.resolve(path3.dirname(dest));
|
|
4626
|
+
if (destParent === srcParent || destParent === path3.parse(destParent).root) return;
|
|
4612
4627
|
let destStat;
|
|
4613
4628
|
try {
|
|
4614
4629
|
destStat = await fs2.stat(destParent, { bigint: true });
|
|
@@ -4622,9 +4637,9 @@ var require_stat = __commonJS({
|
|
|
4622
4637
|
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
4623
4638
|
}
|
|
4624
4639
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
4625
|
-
const srcParent =
|
|
4626
|
-
const destParent =
|
|
4627
|
-
if (destParent === srcParent || destParent ===
|
|
4640
|
+
const srcParent = path3.resolve(path3.dirname(src));
|
|
4641
|
+
const destParent = path3.resolve(path3.dirname(dest));
|
|
4642
|
+
if (destParent === srcParent || destParent === path3.parse(destParent).root) return;
|
|
4628
4643
|
let destStat;
|
|
4629
4644
|
try {
|
|
4630
4645
|
destStat = fs2.statSync(destParent, { bigint: true });
|
|
@@ -4641,8 +4656,8 @@ var require_stat = __commonJS({
|
|
|
4641
4656
|
return destStat.ino !== void 0 && destStat.dev !== void 0 && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
4642
4657
|
}
|
|
4643
4658
|
function isSrcSubdir(src, dest) {
|
|
4644
|
-
const srcArr =
|
|
4645
|
-
const destArr =
|
|
4659
|
+
const srcArr = path3.resolve(src).split(path3.sep).filter((i) => i);
|
|
4660
|
+
const destArr = path3.resolve(dest).split(path3.sep).filter((i) => i);
|
|
4646
4661
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
4647
4662
|
}
|
|
4648
4663
|
function errMsg(src, dest, funcName) {
|
|
@@ -4697,7 +4712,7 @@ var require_copy = __commonJS({
|
|
|
4697
4712
|
"use strict";
|
|
4698
4713
|
init_cjs_shims();
|
|
4699
4714
|
var fs2 = require_fs();
|
|
4700
|
-
var
|
|
4715
|
+
var path3 = require("path");
|
|
4701
4716
|
var { mkdirs } = require_mkdirs();
|
|
4702
4717
|
var { pathExists } = require_path_exists();
|
|
4703
4718
|
var { utimesMillis } = require_utimes();
|
|
@@ -4720,7 +4735,7 @@ var require_copy = __commonJS({
|
|
|
4720
4735
|
await stat.checkParentPaths(src, srcStat, dest, "copy");
|
|
4721
4736
|
const include = await runFilter(src, dest, opts);
|
|
4722
4737
|
if (!include) return;
|
|
4723
|
-
const destParent =
|
|
4738
|
+
const destParent = path3.dirname(dest);
|
|
4724
4739
|
const dirExists = await pathExists(destParent);
|
|
4725
4740
|
if (!dirExists) {
|
|
4726
4741
|
await mkdirs(destParent);
|
|
@@ -4773,8 +4788,8 @@ var require_copy = __commonJS({
|
|
|
4773
4788
|
await fs2.mkdir(dest);
|
|
4774
4789
|
}
|
|
4775
4790
|
await asyncIteratorConcurrentProcess(await fs2.opendir(src), async (item) => {
|
|
4776
|
-
const srcItem =
|
|
4777
|
-
const destItem =
|
|
4791
|
+
const srcItem = path3.join(src, item.name);
|
|
4792
|
+
const destItem = path3.join(dest, item.name);
|
|
4778
4793
|
const include = await runFilter(srcItem, destItem, opts);
|
|
4779
4794
|
if (include) {
|
|
4780
4795
|
const { destStat: destStat2 } = await stat.checkPaths(srcItem, destItem, "copy", opts);
|
|
@@ -4788,7 +4803,7 @@ var require_copy = __commonJS({
|
|
|
4788
4803
|
async function onLink(destStat, src, dest, opts) {
|
|
4789
4804
|
let resolvedSrc = await fs2.readlink(src);
|
|
4790
4805
|
if (opts.dereference) {
|
|
4791
|
-
resolvedSrc =
|
|
4806
|
+
resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
|
|
4792
4807
|
}
|
|
4793
4808
|
if (!destStat) {
|
|
4794
4809
|
return fs2.symlink(resolvedSrc, dest);
|
|
@@ -4801,7 +4816,7 @@ var require_copy = __commonJS({
|
|
|
4801
4816
|
throw e;
|
|
4802
4817
|
}
|
|
4803
4818
|
if (opts.dereference) {
|
|
4804
|
-
resolvedDest =
|
|
4819
|
+
resolvedDest = path3.resolve(process.cwd(), resolvedDest);
|
|
4805
4820
|
}
|
|
4806
4821
|
if (resolvedSrc !== resolvedDest) {
|
|
4807
4822
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
@@ -4824,7 +4839,7 @@ var require_copy_sync = __commonJS({
|
|
|
4824
4839
|
"use strict";
|
|
4825
4840
|
init_cjs_shims();
|
|
4826
4841
|
var fs2 = require_graceful_fs();
|
|
4827
|
-
var
|
|
4842
|
+
var path3 = require("path");
|
|
4828
4843
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
4829
4844
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
4830
4845
|
var stat = require_stat();
|
|
@@ -4845,7 +4860,7 @@ var require_copy_sync = __commonJS({
|
|
|
4845
4860
|
const { srcStat, destStat } = stat.checkPathsSync(src, dest, "copy", opts);
|
|
4846
4861
|
stat.checkParentPathsSync(src, srcStat, dest, "copy");
|
|
4847
4862
|
if (opts.filter && !opts.filter(src, dest)) return;
|
|
4848
|
-
const destParent =
|
|
4863
|
+
const destParent = path3.dirname(dest);
|
|
4849
4864
|
if (!fs2.existsSync(destParent)) mkdirsSync(destParent);
|
|
4850
4865
|
return getStats(destStat, src, dest, opts);
|
|
4851
4866
|
}
|
|
@@ -4914,8 +4929,8 @@ var require_copy_sync = __commonJS({
|
|
|
4914
4929
|
}
|
|
4915
4930
|
}
|
|
4916
4931
|
function copyDirItem(item, src, dest, opts) {
|
|
4917
|
-
const srcItem =
|
|
4918
|
-
const destItem =
|
|
4932
|
+
const srcItem = path3.join(src, item);
|
|
4933
|
+
const destItem = path3.join(dest, item);
|
|
4919
4934
|
if (opts.filter && !opts.filter(srcItem, destItem)) return;
|
|
4920
4935
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
4921
4936
|
return getStats(destStat, srcItem, destItem, opts);
|
|
@@ -4923,7 +4938,7 @@ var require_copy_sync = __commonJS({
|
|
|
4923
4938
|
function onLink(destStat, src, dest, opts) {
|
|
4924
4939
|
let resolvedSrc = fs2.readlinkSync(src);
|
|
4925
4940
|
if (opts.dereference) {
|
|
4926
|
-
resolvedSrc =
|
|
4941
|
+
resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
|
|
4927
4942
|
}
|
|
4928
4943
|
if (!destStat) {
|
|
4929
4944
|
return fs2.symlinkSync(resolvedSrc, dest);
|
|
@@ -4936,7 +4951,7 @@ var require_copy_sync = __commonJS({
|
|
|
4936
4951
|
throw err;
|
|
4937
4952
|
}
|
|
4938
4953
|
if (opts.dereference) {
|
|
4939
|
-
resolvedDest =
|
|
4954
|
+
resolvedDest = path3.resolve(process.cwd(), resolvedDest);
|
|
4940
4955
|
}
|
|
4941
4956
|
if (resolvedSrc !== resolvedDest) {
|
|
4942
4957
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
@@ -4977,11 +4992,11 @@ var require_remove = __commonJS({
|
|
|
4977
4992
|
init_cjs_shims();
|
|
4978
4993
|
var fs2 = require_graceful_fs();
|
|
4979
4994
|
var u = require_universalify().fromCallback;
|
|
4980
|
-
function remove(
|
|
4981
|
-
fs2.rm(
|
|
4995
|
+
function remove(path3, callback) {
|
|
4996
|
+
fs2.rm(path3, { recursive: true, force: true }, callback);
|
|
4982
4997
|
}
|
|
4983
|
-
function removeSync(
|
|
4984
|
-
fs2.rmSync(
|
|
4998
|
+
function removeSync(path3) {
|
|
4999
|
+
fs2.rmSync(path3, { recursive: true, force: true });
|
|
4985
5000
|
}
|
|
4986
5001
|
module2.exports = {
|
|
4987
5002
|
remove: u(remove),
|
|
@@ -4997,7 +5012,7 @@ var require_empty = __commonJS({
|
|
|
4997
5012
|
init_cjs_shims();
|
|
4998
5013
|
var u = require_universalify().fromPromise;
|
|
4999
5014
|
var fs2 = require_fs();
|
|
5000
|
-
var
|
|
5015
|
+
var path3 = require("path");
|
|
5001
5016
|
var mkdir = require_mkdirs();
|
|
5002
5017
|
var remove = require_remove();
|
|
5003
5018
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -5007,7 +5022,7 @@ var require_empty = __commonJS({
|
|
|
5007
5022
|
} catch {
|
|
5008
5023
|
return mkdir.mkdirs(dir);
|
|
5009
5024
|
}
|
|
5010
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
5025
|
+
return Promise.all(items.map((item) => remove.remove(path3.join(dir, item))));
|
|
5011
5026
|
});
|
|
5012
5027
|
function emptyDirSync(dir) {
|
|
5013
5028
|
let items;
|
|
@@ -5017,7 +5032,7 @@ var require_empty = __commonJS({
|
|
|
5017
5032
|
return mkdir.mkdirsSync(dir);
|
|
5018
5033
|
}
|
|
5019
5034
|
items.forEach((item) => {
|
|
5020
|
-
item =
|
|
5035
|
+
item = path3.join(dir, item);
|
|
5021
5036
|
remove.removeSync(item);
|
|
5022
5037
|
});
|
|
5023
5038
|
}
|
|
@@ -5036,7 +5051,7 @@ var require_file = __commonJS({
|
|
|
5036
5051
|
"use strict";
|
|
5037
5052
|
init_cjs_shims();
|
|
5038
5053
|
var u = require_universalify().fromPromise;
|
|
5039
|
-
var
|
|
5054
|
+
var path3 = require("path");
|
|
5040
5055
|
var fs2 = require_fs();
|
|
5041
5056
|
var mkdir = require_mkdirs();
|
|
5042
5057
|
async function createFile(file) {
|
|
@@ -5046,7 +5061,7 @@ var require_file = __commonJS({
|
|
|
5046
5061
|
} catch {
|
|
5047
5062
|
}
|
|
5048
5063
|
if (stats && stats.isFile()) return;
|
|
5049
|
-
const dir =
|
|
5064
|
+
const dir = path3.dirname(file);
|
|
5050
5065
|
let dirStats = null;
|
|
5051
5066
|
try {
|
|
5052
5067
|
dirStats = await fs2.stat(dir);
|
|
@@ -5072,7 +5087,7 @@ var require_file = __commonJS({
|
|
|
5072
5087
|
} catch {
|
|
5073
5088
|
}
|
|
5074
5089
|
if (stats && stats.isFile()) return;
|
|
5075
|
-
const dir =
|
|
5090
|
+
const dir = path3.dirname(file);
|
|
5076
5091
|
try {
|
|
5077
5092
|
if (!fs2.statSync(dir).isDirectory()) {
|
|
5078
5093
|
fs2.readdirSync(dir);
|
|
@@ -5096,7 +5111,7 @@ var require_link = __commonJS({
|
|
|
5096
5111
|
"use strict";
|
|
5097
5112
|
init_cjs_shims();
|
|
5098
5113
|
var u = require_universalify().fromPromise;
|
|
5099
|
-
var
|
|
5114
|
+
var path3 = require("path");
|
|
5100
5115
|
var fs2 = require_fs();
|
|
5101
5116
|
var mkdir = require_mkdirs();
|
|
5102
5117
|
var { pathExists } = require_path_exists();
|
|
@@ -5104,18 +5119,18 @@ var require_link = __commonJS({
|
|
|
5104
5119
|
async function createLink(srcpath, dstpath) {
|
|
5105
5120
|
let dstStat;
|
|
5106
5121
|
try {
|
|
5107
|
-
dstStat = await fs2.lstat(dstpath);
|
|
5122
|
+
dstStat = await fs2.lstat(dstpath, { bigint: true });
|
|
5108
5123
|
} catch {
|
|
5109
5124
|
}
|
|
5110
5125
|
let srcStat;
|
|
5111
5126
|
try {
|
|
5112
|
-
srcStat = await fs2.lstat(srcpath);
|
|
5127
|
+
srcStat = await fs2.lstat(srcpath, { bigint: true });
|
|
5113
5128
|
} catch (err) {
|
|
5114
5129
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
5115
5130
|
throw err;
|
|
5116
5131
|
}
|
|
5117
5132
|
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
5118
|
-
const dir =
|
|
5133
|
+
const dir = path3.dirname(dstpath);
|
|
5119
5134
|
const dirExists = await pathExists(dir);
|
|
5120
5135
|
if (!dirExists) {
|
|
5121
5136
|
await mkdir.mkdirs(dir);
|
|
@@ -5125,17 +5140,17 @@ var require_link = __commonJS({
|
|
|
5125
5140
|
function createLinkSync(srcpath, dstpath) {
|
|
5126
5141
|
let dstStat;
|
|
5127
5142
|
try {
|
|
5128
|
-
dstStat = fs2.lstatSync(dstpath);
|
|
5143
|
+
dstStat = fs2.lstatSync(dstpath, { bigint: true });
|
|
5129
5144
|
} catch {
|
|
5130
5145
|
}
|
|
5131
5146
|
try {
|
|
5132
|
-
const srcStat = fs2.lstatSync(srcpath);
|
|
5147
|
+
const srcStat = fs2.lstatSync(srcpath, { bigint: true });
|
|
5133
5148
|
if (dstStat && areIdentical(srcStat, dstStat)) return;
|
|
5134
5149
|
} catch (err) {
|
|
5135
5150
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
5136
5151
|
throw err;
|
|
5137
5152
|
}
|
|
5138
|
-
const dir =
|
|
5153
|
+
const dir = path3.dirname(dstpath);
|
|
5139
5154
|
const dirExists = fs2.existsSync(dir);
|
|
5140
5155
|
if (dirExists) return fs2.linkSync(srcpath, dstpath);
|
|
5141
5156
|
mkdir.mkdirsSync(dir);
|
|
@@ -5153,12 +5168,12 @@ var require_symlink_paths = __commonJS({
|
|
|
5153
5168
|
"node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
|
|
5154
5169
|
"use strict";
|
|
5155
5170
|
init_cjs_shims();
|
|
5156
|
-
var
|
|
5171
|
+
var path3 = require("path");
|
|
5157
5172
|
var fs2 = require_fs();
|
|
5158
5173
|
var { pathExists } = require_path_exists();
|
|
5159
5174
|
var u = require_universalify().fromPromise;
|
|
5160
5175
|
async function symlinkPaths(srcpath, dstpath) {
|
|
5161
|
-
if (
|
|
5176
|
+
if (path3.isAbsolute(srcpath)) {
|
|
5162
5177
|
try {
|
|
5163
5178
|
await fs2.lstat(srcpath);
|
|
5164
5179
|
} catch (err) {
|
|
@@ -5170,8 +5185,8 @@ var require_symlink_paths = __commonJS({
|
|
|
5170
5185
|
toDst: srcpath
|
|
5171
5186
|
};
|
|
5172
5187
|
}
|
|
5173
|
-
const dstdir =
|
|
5174
|
-
const relativeToDst =
|
|
5188
|
+
const dstdir = path3.dirname(dstpath);
|
|
5189
|
+
const relativeToDst = path3.join(dstdir, srcpath);
|
|
5175
5190
|
const exists = await pathExists(relativeToDst);
|
|
5176
5191
|
if (exists) {
|
|
5177
5192
|
return {
|
|
@@ -5187,11 +5202,11 @@ var require_symlink_paths = __commonJS({
|
|
|
5187
5202
|
}
|
|
5188
5203
|
return {
|
|
5189
5204
|
toCwd: srcpath,
|
|
5190
|
-
toDst:
|
|
5205
|
+
toDst: path3.relative(dstdir, srcpath)
|
|
5191
5206
|
};
|
|
5192
5207
|
}
|
|
5193
5208
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
5194
|
-
if (
|
|
5209
|
+
if (path3.isAbsolute(srcpath)) {
|
|
5195
5210
|
const exists2 = fs2.existsSync(srcpath);
|
|
5196
5211
|
if (!exists2) throw new Error("absolute srcpath does not exist");
|
|
5197
5212
|
return {
|
|
@@ -5199,8 +5214,8 @@ var require_symlink_paths = __commonJS({
|
|
|
5199
5214
|
toDst: srcpath
|
|
5200
5215
|
};
|
|
5201
5216
|
}
|
|
5202
|
-
const dstdir =
|
|
5203
|
-
const relativeToDst =
|
|
5217
|
+
const dstdir = path3.dirname(dstpath);
|
|
5218
|
+
const relativeToDst = path3.join(dstdir, srcpath);
|
|
5204
5219
|
const exists = fs2.existsSync(relativeToDst);
|
|
5205
5220
|
if (exists) {
|
|
5206
5221
|
return {
|
|
@@ -5212,7 +5227,7 @@ var require_symlink_paths = __commonJS({
|
|
|
5212
5227
|
if (!srcExists) throw new Error("relative srcpath does not exist");
|
|
5213
5228
|
return {
|
|
5214
5229
|
toCwd: srcpath,
|
|
5215
|
-
toDst:
|
|
5230
|
+
toDst: path3.relative(dstdir, srcpath)
|
|
5216
5231
|
};
|
|
5217
5232
|
}
|
|
5218
5233
|
module2.exports = {
|
|
@@ -5262,7 +5277,7 @@ var require_symlink = __commonJS({
|
|
|
5262
5277
|
"use strict";
|
|
5263
5278
|
init_cjs_shims();
|
|
5264
5279
|
var u = require_universalify().fromPromise;
|
|
5265
|
-
var
|
|
5280
|
+
var path3 = require("path");
|
|
5266
5281
|
var fs2 = require_fs();
|
|
5267
5282
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
5268
5283
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
@@ -5276,16 +5291,25 @@ var require_symlink = __commonJS({
|
|
|
5276
5291
|
} catch {
|
|
5277
5292
|
}
|
|
5278
5293
|
if (stats && stats.isSymbolicLink()) {
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
fs2.stat(
|
|
5282
|
-
|
|
5294
|
+
let srcStat;
|
|
5295
|
+
if (path3.isAbsolute(srcpath)) {
|
|
5296
|
+
srcStat = await fs2.stat(srcpath, { bigint: true });
|
|
5297
|
+
} else {
|
|
5298
|
+
const dstdir = path3.dirname(dstpath);
|
|
5299
|
+
const relativeToDst = path3.join(dstdir, srcpath);
|
|
5300
|
+
try {
|
|
5301
|
+
srcStat = await fs2.stat(relativeToDst, { bigint: true });
|
|
5302
|
+
} catch {
|
|
5303
|
+
srcStat = await fs2.stat(srcpath, { bigint: true });
|
|
5304
|
+
}
|
|
5305
|
+
}
|
|
5306
|
+
const dstStat = await fs2.stat(dstpath, { bigint: true });
|
|
5283
5307
|
if (areIdentical(srcStat, dstStat)) return;
|
|
5284
5308
|
}
|
|
5285
5309
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
5286
5310
|
srcpath = relative.toDst;
|
|
5287
5311
|
const toType = await symlinkType(relative.toCwd, type);
|
|
5288
|
-
const dir =
|
|
5312
|
+
const dir = path3.dirname(dstpath);
|
|
5289
5313
|
if (!await pathExists(dir)) {
|
|
5290
5314
|
await mkdirs(dir);
|
|
5291
5315
|
}
|
|
@@ -5298,14 +5322,25 @@ var require_symlink = __commonJS({
|
|
|
5298
5322
|
} catch {
|
|
5299
5323
|
}
|
|
5300
5324
|
if (stats && stats.isSymbolicLink()) {
|
|
5301
|
-
|
|
5302
|
-
|
|
5325
|
+
let srcStat;
|
|
5326
|
+
if (path3.isAbsolute(srcpath)) {
|
|
5327
|
+
srcStat = fs2.statSync(srcpath, { bigint: true });
|
|
5328
|
+
} else {
|
|
5329
|
+
const dstdir = path3.dirname(dstpath);
|
|
5330
|
+
const relativeToDst = path3.join(dstdir, srcpath);
|
|
5331
|
+
try {
|
|
5332
|
+
srcStat = fs2.statSync(relativeToDst, { bigint: true });
|
|
5333
|
+
} catch {
|
|
5334
|
+
srcStat = fs2.statSync(srcpath, { bigint: true });
|
|
5335
|
+
}
|
|
5336
|
+
}
|
|
5337
|
+
const dstStat = fs2.statSync(dstpath, { bigint: true });
|
|
5303
5338
|
if (areIdentical(srcStat, dstStat)) return;
|
|
5304
5339
|
}
|
|
5305
5340
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
5306
5341
|
srcpath = relative.toDst;
|
|
5307
5342
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
5308
|
-
const dir =
|
|
5343
|
+
const dir = path3.dirname(dstpath);
|
|
5309
5344
|
const exists = fs2.existsSync(dir);
|
|
5310
5345
|
if (exists) return fs2.symlinkSync(srcpath, dstpath, type);
|
|
5311
5346
|
mkdirsSync(dir);
|
|
@@ -5461,18 +5496,18 @@ var require_output_file = __commonJS({
|
|
|
5461
5496
|
init_cjs_shims();
|
|
5462
5497
|
var u = require_universalify().fromPromise;
|
|
5463
5498
|
var fs2 = require_fs();
|
|
5464
|
-
var
|
|
5499
|
+
var path3 = require("path");
|
|
5465
5500
|
var mkdir = require_mkdirs();
|
|
5466
5501
|
var pathExists = require_path_exists().pathExists;
|
|
5467
5502
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
5468
|
-
const dir =
|
|
5503
|
+
const dir = path3.dirname(file);
|
|
5469
5504
|
if (!await pathExists(dir)) {
|
|
5470
5505
|
await mkdir.mkdirs(dir);
|
|
5471
5506
|
}
|
|
5472
5507
|
return fs2.writeFile(file, data, encoding);
|
|
5473
5508
|
}
|
|
5474
5509
|
function outputFileSync(file, ...args) {
|
|
5475
|
-
const dir =
|
|
5510
|
+
const dir = path3.dirname(file);
|
|
5476
5511
|
if (!fs2.existsSync(dir)) {
|
|
5477
5512
|
mkdir.mkdirsSync(dir);
|
|
5478
5513
|
}
|
|
@@ -5540,7 +5575,7 @@ var require_move = __commonJS({
|
|
|
5540
5575
|
"use strict";
|
|
5541
5576
|
init_cjs_shims();
|
|
5542
5577
|
var fs2 = require_fs();
|
|
5543
|
-
var
|
|
5578
|
+
var path3 = require("path");
|
|
5544
5579
|
var { copy } = require_copy2();
|
|
5545
5580
|
var { remove } = require_remove();
|
|
5546
5581
|
var { mkdirp } = require_mkdirs();
|
|
@@ -5550,8 +5585,8 @@ var require_move = __commonJS({
|
|
|
5550
5585
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
5551
5586
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
|
|
5552
5587
|
await stat.checkParentPaths(src, srcStat, dest, "move");
|
|
5553
|
-
const destParent =
|
|
5554
|
-
const parsedParentPath =
|
|
5588
|
+
const destParent = path3.dirname(dest);
|
|
5589
|
+
const parsedParentPath = path3.parse(destParent);
|
|
5555
5590
|
if (parsedParentPath.root !== destParent) {
|
|
5556
5591
|
await mkdirp(destParent);
|
|
5557
5592
|
}
|
|
@@ -5593,7 +5628,7 @@ var require_move_sync = __commonJS({
|
|
|
5593
5628
|
"use strict";
|
|
5594
5629
|
init_cjs_shims();
|
|
5595
5630
|
var fs2 = require_graceful_fs();
|
|
5596
|
-
var
|
|
5631
|
+
var path3 = require("path");
|
|
5597
5632
|
var copySync = require_copy2().copySync;
|
|
5598
5633
|
var removeSync = require_remove().removeSync;
|
|
5599
5634
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -5603,12 +5638,12 @@ var require_move_sync = __commonJS({
|
|
|
5603
5638
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
5604
5639
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
5605
5640
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
5606
|
-
if (!isParentRoot(dest)) mkdirpSync(
|
|
5641
|
+
if (!isParentRoot(dest)) mkdirpSync(path3.dirname(dest));
|
|
5607
5642
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
5608
5643
|
}
|
|
5609
5644
|
function isParentRoot(dest) {
|
|
5610
|
-
const parent =
|
|
5611
|
-
const parsedPath =
|
|
5645
|
+
const parent = path3.dirname(dest);
|
|
5646
|
+
const parsedPath = path3.parse(parent);
|
|
5612
5647
|
return parsedPath.root === parent;
|
|
5613
5648
|
}
|
|
5614
5649
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -6037,6 +6072,9 @@ var effectScheduler = {
|
|
|
6037
6072
|
};
|
|
6038
6073
|
|
|
6039
6074
|
// node_modules/@inquirer/core/dist/lib/use-state.js
|
|
6075
|
+
function isFactory(value) {
|
|
6076
|
+
return typeof value === "function";
|
|
6077
|
+
}
|
|
6040
6078
|
function useState(defaultValue) {
|
|
6041
6079
|
return withPointer((pointer) => {
|
|
6042
6080
|
const setState = import_node_async_hooks2.AsyncResource.bind(function setState2(newValue) {
|
|
@@ -6048,7 +6086,7 @@ function useState(defaultValue) {
|
|
|
6048
6086
|
if (pointer.initialized) {
|
|
6049
6087
|
return [pointer.get(), setState];
|
|
6050
6088
|
}
|
|
6051
|
-
const value =
|
|
6089
|
+
const value = isFactory(defaultValue) ? defaultValue() : defaultValue;
|
|
6052
6090
|
pointer.set(value);
|
|
6053
6091
|
return [value, setState];
|
|
6054
6092
|
});
|
|
@@ -6078,10 +6116,11 @@ var import_node_util = require("util");
|
|
|
6078
6116
|
init_cjs_shims();
|
|
6079
6117
|
var import_node_process = __toESM(require("process"), 1);
|
|
6080
6118
|
function isUnicodeSupported() {
|
|
6081
|
-
if (import_node_process.default.platform
|
|
6119
|
+
if (!import_node_process.default.platform.startsWith("win")) {
|
|
6082
6120
|
return import_node_process.default.env["TERM"] !== "linux";
|
|
6083
6121
|
}
|
|
6084
|
-
return Boolean(import_node_process.default.env["
|
|
6122
|
+
return Boolean(import_node_process.default.env["CI"]) || // CI environments generally support unicode
|
|
6123
|
+
Boolean(import_node_process.default.env["WT_SESSION"]) || // Windows Terminal
|
|
6085
6124
|
Boolean(import_node_process.default.env["TERMINUS_SUBLIME"]) || // Terminus (<0.2.27)
|
|
6086
6125
|
import_node_process.default.env["ConEmuTask"] === "{cmd::Cmder}" || // ConEmu and cmder
|
|
6087
6126
|
import_node_process.default.env["TERM_PROGRAM"] === "Terminus-Sublime" || import_node_process.default.env["TERM_PROGRAM"] === "vscode" || import_node_process.default.env["TERM"] === "xterm-256color" || import_node_process.default.env["TERM"] === "alacritty" || import_node_process.default.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
|
|
@@ -6494,335 +6533,202 @@ init_cjs_shims();
|
|
|
6494
6533
|
init_cjs_shims();
|
|
6495
6534
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
|
6496
6535
|
|
|
6497
|
-
// node_modules/wrap-ansi/
|
|
6536
|
+
// node_modules/fast-wrap-ansi/lib/main.js
|
|
6498
6537
|
init_cjs_shims();
|
|
6499
6538
|
|
|
6500
|
-
// node_modules/
|
|
6539
|
+
// node_modules/fast-string-width/dist/index.js
|
|
6501
6540
|
init_cjs_shims();
|
|
6502
6541
|
|
|
6503
|
-
// node_modules/
|
|
6542
|
+
// node_modules/fast-string-truncated-width/dist/index.js
|
|
6504
6543
|
init_cjs_shims();
|
|
6505
6544
|
|
|
6506
|
-
// node_modules/
|
|
6545
|
+
// node_modules/fast-string-truncated-width/dist/utils.js
|
|
6507
6546
|
init_cjs_shims();
|
|
6508
|
-
|
|
6509
|
-
const
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
6521
|
-
}
|
|
6522
|
-
return string.replace(regex, "");
|
|
6523
|
-
}
|
|
6524
|
-
|
|
6525
|
-
// node_modules/get-east-asian-width/index.js
|
|
6526
|
-
init_cjs_shims();
|
|
6527
|
-
|
|
6528
|
-
// node_modules/get-east-asian-width/lookup.js
|
|
6529
|
-
init_cjs_shims();
|
|
6530
|
-
function isAmbiguous(x) {
|
|
6531
|
-
return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
|
|
6532
|
-
}
|
|
6533
|
-
function isFullWidth(x) {
|
|
6547
|
+
var getCodePointsLength = /* @__PURE__ */ (() => {
|
|
6548
|
+
const SURROGATE_PAIR_RE = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
6549
|
+
return (input) => {
|
|
6550
|
+
let surrogatePairsNr = 0;
|
|
6551
|
+
SURROGATE_PAIR_RE.lastIndex = 0;
|
|
6552
|
+
while (SURROGATE_PAIR_RE.test(input)) {
|
|
6553
|
+
surrogatePairsNr += 1;
|
|
6554
|
+
}
|
|
6555
|
+
return input.length - surrogatePairsNr;
|
|
6556
|
+
};
|
|
6557
|
+
})();
|
|
6558
|
+
var isFullWidth = (x) => {
|
|
6534
6559
|
return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
|
|
6535
|
-
}
|
|
6536
|
-
|
|
6537
|
-
return x
|
|
6538
|
-
}
|
|
6539
|
-
|
|
6540
|
-
// node_modules/get-east-asian-width/index.js
|
|
6541
|
-
function validate(codePoint) {
|
|
6542
|
-
if (!Number.isSafeInteger(codePoint)) {
|
|
6543
|
-
throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
|
|
6544
|
-
}
|
|
6545
|
-
}
|
|
6546
|
-
function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
|
|
6547
|
-
validate(codePoint);
|
|
6548
|
-
if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
|
|
6549
|
-
return 2;
|
|
6550
|
-
}
|
|
6551
|
-
return 1;
|
|
6552
|
-
}
|
|
6553
|
-
|
|
6554
|
-
// node_modules/wrap-ansi/node_modules/string-width/node_modules/emoji-regex/index.mjs
|
|
6555
|
-
init_cjs_shims();
|
|
6556
|
-
var emoji_regex_default = () => {
|
|
6557
|
-
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
6560
|
+
};
|
|
6561
|
+
var isWideNotCJKTNotEmoji = (x) => {
|
|
6562
|
+
return x === 8987 || x === 9001 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
|
|
6558
6563
|
};
|
|
6559
6564
|
|
|
6560
|
-
// node_modules/
|
|
6561
|
-
var
|
|
6562
|
-
var
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6565
|
+
// node_modules/fast-string-truncated-width/dist/index.js
|
|
6566
|
+
var ANSI_RE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y;
|
|
6567
|
+
var CONTROL_RE = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y;
|
|
6568
|
+
var CJKT_WIDE_RE = /(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu;
|
|
6569
|
+
var TAB_RE = /\t{1,1000}/y;
|
|
6570
|
+
var EMOJI_RE = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu");
|
|
6571
|
+
var LATIN_RE = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y;
|
|
6572
|
+
var MODIFIER_RE = new RegExp("\\p{M}+", "gu");
|
|
6573
|
+
var NO_TRUNCATION = { limit: Infinity, ellipsis: "" };
|
|
6574
|
+
var getStringTruncatedWidth = (input, truncationOptions = {}, widthOptions = {}) => {
|
|
6575
|
+
const LIMIT = truncationOptions.limit ?? Infinity;
|
|
6576
|
+
const ELLIPSIS = truncationOptions.ellipsis ?? "";
|
|
6577
|
+
const ELLIPSIS_WIDTH = truncationOptions?.ellipsisWidth ?? (ELLIPSIS ? getStringTruncatedWidth(ELLIPSIS, NO_TRUNCATION, widthOptions).width : 0);
|
|
6578
|
+
const ANSI_WIDTH = 0;
|
|
6579
|
+
const CONTROL_WIDTH = widthOptions.controlWidth ?? 0;
|
|
6580
|
+
const TAB_WIDTH = widthOptions.tabWidth ?? 8;
|
|
6581
|
+
const EMOJI_WIDTH = widthOptions.emojiWidth ?? 2;
|
|
6582
|
+
const FULL_WIDTH_WIDTH = 2;
|
|
6583
|
+
const REGULAR_WIDTH = widthOptions.regularWidth ?? 1;
|
|
6584
|
+
const WIDE_WIDTH = widthOptions.wideWidth ?? FULL_WIDTH_WIDTH;
|
|
6585
|
+
const PARSE_BLOCKS = [
|
|
6586
|
+
[LATIN_RE, REGULAR_WIDTH],
|
|
6587
|
+
[ANSI_RE, ANSI_WIDTH],
|
|
6588
|
+
[CONTROL_RE, CONTROL_WIDTH],
|
|
6589
|
+
[TAB_RE, TAB_WIDTH],
|
|
6590
|
+
[EMOJI_RE, EMOJI_WIDTH],
|
|
6591
|
+
[CJKT_WIDE_RE, WIDE_WIDTH]
|
|
6592
|
+
];
|
|
6593
|
+
let indexPrev = 0;
|
|
6594
|
+
let index = 0;
|
|
6595
|
+
let length = input.length;
|
|
6596
|
+
let lengthExtra = 0;
|
|
6597
|
+
let truncationEnabled = false;
|
|
6598
|
+
let truncationIndex = length;
|
|
6599
|
+
let truncationLimit = Math.max(0, LIMIT - ELLIPSIS_WIDTH);
|
|
6600
|
+
let unmatchedStart = 0;
|
|
6601
|
+
let unmatchedEnd = 0;
|
|
6577
6602
|
let width = 0;
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6603
|
+
let widthExtra = 0;
|
|
6604
|
+
outer: while (true) {
|
|
6605
|
+
if (unmatchedEnd > unmatchedStart || index >= length && index > indexPrev) {
|
|
6606
|
+
const unmatched = input.slice(unmatchedStart, unmatchedEnd) || input.slice(indexPrev, index);
|
|
6607
|
+
lengthExtra = 0;
|
|
6608
|
+
for (const char of unmatched.replaceAll(MODIFIER_RE, "")) {
|
|
6609
|
+
const codePoint = char.codePointAt(0) || 0;
|
|
6610
|
+
if (isFullWidth(codePoint)) {
|
|
6611
|
+
widthExtra = FULL_WIDTH_WIDTH;
|
|
6612
|
+
} else if (isWideNotCJKTNotEmoji(codePoint)) {
|
|
6613
|
+
widthExtra = WIDE_WIDTH;
|
|
6614
|
+
} else {
|
|
6615
|
+
widthExtra = REGULAR_WIDTH;
|
|
6616
|
+
}
|
|
6617
|
+
if (width + widthExtra > truncationLimit) {
|
|
6618
|
+
truncationIndex = Math.min(truncationIndex, Math.max(unmatchedStart, indexPrev) + lengthExtra);
|
|
6619
|
+
}
|
|
6620
|
+
if (width + widthExtra > LIMIT) {
|
|
6621
|
+
truncationEnabled = true;
|
|
6622
|
+
break outer;
|
|
6623
|
+
}
|
|
6624
|
+
lengthExtra += char.length;
|
|
6625
|
+
width += widthExtra;
|
|
6626
|
+
}
|
|
6627
|
+
unmatchedStart = unmatchedEnd = 0;
|
|
6595
6628
|
}
|
|
6596
|
-
if (
|
|
6597
|
-
|
|
6629
|
+
if (index >= length) {
|
|
6630
|
+
break outer;
|
|
6598
6631
|
}
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6632
|
+
for (let i = 0, l = PARSE_BLOCKS.length; i < l; i++) {
|
|
6633
|
+
const [BLOCK_RE, BLOCK_WIDTH] = PARSE_BLOCKS[i];
|
|
6634
|
+
BLOCK_RE.lastIndex = index;
|
|
6635
|
+
if (BLOCK_RE.test(input)) {
|
|
6636
|
+
lengthExtra = BLOCK_RE === CJKT_WIDE_RE ? getCodePointsLength(input.slice(index, BLOCK_RE.lastIndex)) : BLOCK_RE === EMOJI_RE ? 1 : BLOCK_RE.lastIndex - index;
|
|
6637
|
+
widthExtra = lengthExtra * BLOCK_WIDTH;
|
|
6638
|
+
if (width + widthExtra > truncationLimit) {
|
|
6639
|
+
truncationIndex = Math.min(truncationIndex, index + Math.floor((truncationLimit - width) / BLOCK_WIDTH));
|
|
6640
|
+
}
|
|
6641
|
+
if (width + widthExtra > LIMIT) {
|
|
6642
|
+
truncationEnabled = true;
|
|
6643
|
+
break outer;
|
|
6644
|
+
}
|
|
6645
|
+
width += widthExtra;
|
|
6646
|
+
unmatchedStart = indexPrev;
|
|
6647
|
+
unmatchedEnd = index;
|
|
6648
|
+
index = indexPrev = BLOCK_RE.lastIndex;
|
|
6649
|
+
continue outer;
|
|
6650
|
+
}
|
|
6602
6651
|
}
|
|
6603
|
-
|
|
6652
|
+
index += 1;
|
|
6604
6653
|
}
|
|
6605
|
-
return
|
|
6606
|
-
|
|
6654
|
+
return {
|
|
6655
|
+
width: truncationEnabled ? truncationLimit : width,
|
|
6656
|
+
index: truncationEnabled ? truncationIndex : length,
|
|
6657
|
+
truncated: truncationEnabled,
|
|
6658
|
+
ellipsed: truncationEnabled && LIMIT >= ELLIPSIS_WIDTH
|
|
6659
|
+
};
|
|
6660
|
+
};
|
|
6661
|
+
var dist_default2 = getStringTruncatedWidth;
|
|
6607
6662
|
|
|
6608
|
-
// node_modules/
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
|
|
6614
|
-
var styles = {
|
|
6615
|
-
modifier: {
|
|
6616
|
-
reset: [0, 0],
|
|
6617
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
6618
|
-
bold: [1, 22],
|
|
6619
|
-
dim: [2, 22],
|
|
6620
|
-
italic: [3, 23],
|
|
6621
|
-
underline: [4, 24],
|
|
6622
|
-
overline: [53, 55],
|
|
6623
|
-
inverse: [7, 27],
|
|
6624
|
-
hidden: [8, 28],
|
|
6625
|
-
strikethrough: [9, 29]
|
|
6626
|
-
},
|
|
6627
|
-
color: {
|
|
6628
|
-
black: [30, 39],
|
|
6629
|
-
red: [31, 39],
|
|
6630
|
-
green: [32, 39],
|
|
6631
|
-
yellow: [33, 39],
|
|
6632
|
-
blue: [34, 39],
|
|
6633
|
-
magenta: [35, 39],
|
|
6634
|
-
cyan: [36, 39],
|
|
6635
|
-
white: [37, 39],
|
|
6636
|
-
// Bright color
|
|
6637
|
-
blackBright: [90, 39],
|
|
6638
|
-
gray: [90, 39],
|
|
6639
|
-
// Alias of `blackBright`
|
|
6640
|
-
grey: [90, 39],
|
|
6641
|
-
// Alias of `blackBright`
|
|
6642
|
-
redBright: [91, 39],
|
|
6643
|
-
greenBright: [92, 39],
|
|
6644
|
-
yellowBright: [93, 39],
|
|
6645
|
-
blueBright: [94, 39],
|
|
6646
|
-
magentaBright: [95, 39],
|
|
6647
|
-
cyanBright: [96, 39],
|
|
6648
|
-
whiteBright: [97, 39]
|
|
6649
|
-
},
|
|
6650
|
-
bgColor: {
|
|
6651
|
-
bgBlack: [40, 49],
|
|
6652
|
-
bgRed: [41, 49],
|
|
6653
|
-
bgGreen: [42, 49],
|
|
6654
|
-
bgYellow: [43, 49],
|
|
6655
|
-
bgBlue: [44, 49],
|
|
6656
|
-
bgMagenta: [45, 49],
|
|
6657
|
-
bgCyan: [46, 49],
|
|
6658
|
-
bgWhite: [47, 49],
|
|
6659
|
-
// Bright color
|
|
6660
|
-
bgBlackBright: [100, 49],
|
|
6661
|
-
bgGray: [100, 49],
|
|
6662
|
-
// Alias of `bgBlackBright`
|
|
6663
|
-
bgGrey: [100, 49],
|
|
6664
|
-
// Alias of `bgBlackBright`
|
|
6665
|
-
bgRedBright: [101, 49],
|
|
6666
|
-
bgGreenBright: [102, 49],
|
|
6667
|
-
bgYellowBright: [103, 49],
|
|
6668
|
-
bgBlueBright: [104, 49],
|
|
6669
|
-
bgMagentaBright: [105, 49],
|
|
6670
|
-
bgCyanBright: [106, 49],
|
|
6671
|
-
bgWhiteBright: [107, 49]
|
|
6672
|
-
}
|
|
6663
|
+
// node_modules/fast-string-width/dist/index.js
|
|
6664
|
+
var NO_TRUNCATION2 = {
|
|
6665
|
+
limit: Infinity,
|
|
6666
|
+
ellipsis: "",
|
|
6667
|
+
ellipsisWidth: 0
|
|
6673
6668
|
};
|
|
6674
|
-
var
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
var
|
|
6678
|
-
function assembleStyles() {
|
|
6679
|
-
const codes = /* @__PURE__ */ new Map();
|
|
6680
|
-
for (const [groupName, group] of Object.entries(styles)) {
|
|
6681
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
6682
|
-
styles[styleName] = {
|
|
6683
|
-
open: `\x1B[${style[0]}m`,
|
|
6684
|
-
close: `\x1B[${style[1]}m`
|
|
6685
|
-
};
|
|
6686
|
-
group[styleName] = styles[styleName];
|
|
6687
|
-
codes.set(style[0], style[1]);
|
|
6688
|
-
}
|
|
6689
|
-
Object.defineProperty(styles, groupName, {
|
|
6690
|
-
value: group,
|
|
6691
|
-
enumerable: false
|
|
6692
|
-
});
|
|
6693
|
-
}
|
|
6694
|
-
Object.defineProperty(styles, "codes", {
|
|
6695
|
-
value: codes,
|
|
6696
|
-
enumerable: false
|
|
6697
|
-
});
|
|
6698
|
-
styles.color.close = "\x1B[39m";
|
|
6699
|
-
styles.bgColor.close = "\x1B[49m";
|
|
6700
|
-
styles.color.ansi = wrapAnsi16();
|
|
6701
|
-
styles.color.ansi256 = wrapAnsi256();
|
|
6702
|
-
styles.color.ansi16m = wrapAnsi16m();
|
|
6703
|
-
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
6704
|
-
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
6705
|
-
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
6706
|
-
Object.defineProperties(styles, {
|
|
6707
|
-
rgbToAnsi256: {
|
|
6708
|
-
value(red, green, blue) {
|
|
6709
|
-
if (red === green && green === blue) {
|
|
6710
|
-
if (red < 8) {
|
|
6711
|
-
return 16;
|
|
6712
|
-
}
|
|
6713
|
-
if (red > 248) {
|
|
6714
|
-
return 231;
|
|
6715
|
-
}
|
|
6716
|
-
return Math.round((red - 8) / 247 * 24) + 232;
|
|
6717
|
-
}
|
|
6718
|
-
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
6719
|
-
},
|
|
6720
|
-
enumerable: false
|
|
6721
|
-
},
|
|
6722
|
-
hexToRgb: {
|
|
6723
|
-
value(hex) {
|
|
6724
|
-
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
6725
|
-
if (!matches) {
|
|
6726
|
-
return [0, 0, 0];
|
|
6727
|
-
}
|
|
6728
|
-
let [colorString] = matches;
|
|
6729
|
-
if (colorString.length === 3) {
|
|
6730
|
-
colorString = [...colorString].map((character) => character + character).join("");
|
|
6731
|
-
}
|
|
6732
|
-
const integer = Number.parseInt(colorString, 16);
|
|
6733
|
-
return [
|
|
6734
|
-
/* eslint-disable no-bitwise */
|
|
6735
|
-
integer >> 16 & 255,
|
|
6736
|
-
integer >> 8 & 255,
|
|
6737
|
-
integer & 255
|
|
6738
|
-
/* eslint-enable no-bitwise */
|
|
6739
|
-
];
|
|
6740
|
-
},
|
|
6741
|
-
enumerable: false
|
|
6742
|
-
},
|
|
6743
|
-
hexToAnsi256: {
|
|
6744
|
-
value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
|
|
6745
|
-
enumerable: false
|
|
6746
|
-
},
|
|
6747
|
-
ansi256ToAnsi: {
|
|
6748
|
-
value(code) {
|
|
6749
|
-
if (code < 8) {
|
|
6750
|
-
return 30 + code;
|
|
6751
|
-
}
|
|
6752
|
-
if (code < 16) {
|
|
6753
|
-
return 90 + (code - 8);
|
|
6754
|
-
}
|
|
6755
|
-
let red;
|
|
6756
|
-
let green;
|
|
6757
|
-
let blue;
|
|
6758
|
-
if (code >= 232) {
|
|
6759
|
-
red = ((code - 232) * 10 + 8) / 255;
|
|
6760
|
-
green = red;
|
|
6761
|
-
blue = red;
|
|
6762
|
-
} else {
|
|
6763
|
-
code -= 16;
|
|
6764
|
-
const remainder = code % 36;
|
|
6765
|
-
red = Math.floor(code / 36) / 5;
|
|
6766
|
-
green = Math.floor(remainder / 6) / 5;
|
|
6767
|
-
blue = remainder % 6 / 5;
|
|
6768
|
-
}
|
|
6769
|
-
const value = Math.max(red, green, blue) * 2;
|
|
6770
|
-
if (value === 0) {
|
|
6771
|
-
return 30;
|
|
6772
|
-
}
|
|
6773
|
-
let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
6774
|
-
if (value === 2) {
|
|
6775
|
-
result += 60;
|
|
6776
|
-
}
|
|
6777
|
-
return result;
|
|
6778
|
-
},
|
|
6779
|
-
enumerable: false
|
|
6780
|
-
},
|
|
6781
|
-
rgbToAnsi: {
|
|
6782
|
-
value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
|
|
6783
|
-
enumerable: false
|
|
6784
|
-
},
|
|
6785
|
-
hexToAnsi: {
|
|
6786
|
-
value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
|
|
6787
|
-
enumerable: false
|
|
6788
|
-
}
|
|
6789
|
-
});
|
|
6790
|
-
return styles;
|
|
6791
|
-
}
|
|
6792
|
-
var ansiStyles = assembleStyles();
|
|
6793
|
-
var ansi_styles_default = ansiStyles;
|
|
6669
|
+
var fastStringWidth = (input, options = {}) => {
|
|
6670
|
+
return dist_default2(input, NO_TRUNCATION2, options).width;
|
|
6671
|
+
};
|
|
6672
|
+
var dist_default3 = fastStringWidth;
|
|
6794
6673
|
|
|
6795
|
-
// node_modules/wrap-ansi/
|
|
6796
|
-
var
|
|
6797
|
-
|
|
6798
|
-
"\x9B"
|
|
6799
|
-
]);
|
|
6674
|
+
// node_modules/fast-wrap-ansi/lib/main.js
|
|
6675
|
+
var ESC = "\x1B";
|
|
6676
|
+
var CSI = "\x9B";
|
|
6800
6677
|
var END_CODE = 39;
|
|
6801
6678
|
var ANSI_ESCAPE_BELL = "\x07";
|
|
6802
6679
|
var ANSI_CSI = "[";
|
|
6803
6680
|
var ANSI_OSC = "]";
|
|
6804
6681
|
var ANSI_SGR_TERMINATOR = "m";
|
|
6805
6682
|
var ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
|
|
6806
|
-
var
|
|
6807
|
-
var
|
|
6808
|
-
|
|
6683
|
+
var GROUP_REGEX = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`, "y");
|
|
6684
|
+
var getClosingCode = (openingCode) => {
|
|
6685
|
+
if (openingCode >= 30 && openingCode <= 37)
|
|
6686
|
+
return 39;
|
|
6687
|
+
if (openingCode >= 90 && openingCode <= 97)
|
|
6688
|
+
return 39;
|
|
6689
|
+
if (openingCode >= 40 && openingCode <= 47)
|
|
6690
|
+
return 49;
|
|
6691
|
+
if (openingCode >= 100 && openingCode <= 107)
|
|
6692
|
+
return 49;
|
|
6693
|
+
if (openingCode === 1 || openingCode === 2)
|
|
6694
|
+
return 22;
|
|
6695
|
+
if (openingCode === 3)
|
|
6696
|
+
return 23;
|
|
6697
|
+
if (openingCode === 4)
|
|
6698
|
+
return 24;
|
|
6699
|
+
if (openingCode === 7)
|
|
6700
|
+
return 27;
|
|
6701
|
+
if (openingCode === 8)
|
|
6702
|
+
return 28;
|
|
6703
|
+
if (openingCode === 9)
|
|
6704
|
+
return 29;
|
|
6705
|
+
if (openingCode === 0)
|
|
6706
|
+
return 0;
|
|
6707
|
+
return void 0;
|
|
6708
|
+
};
|
|
6709
|
+
var wrapAnsiCode = (code) => `${ESC}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`;
|
|
6710
|
+
var wrapAnsiHyperlink = (url) => `${ESC}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`;
|
|
6809
6711
|
var wrapWord = (rows, word, columns) => {
|
|
6810
|
-
const characters = [
|
|
6712
|
+
const characters = word[Symbol.iterator]();
|
|
6811
6713
|
let isInsideEscape = false;
|
|
6812
6714
|
let isInsideLinkEscape = false;
|
|
6813
|
-
let
|
|
6814
|
-
|
|
6815
|
-
|
|
6715
|
+
let lastRow = rows.at(-1);
|
|
6716
|
+
let visible = lastRow === void 0 ? 0 : dist_default3(lastRow);
|
|
6717
|
+
let currentCharacter = characters.next();
|
|
6718
|
+
let nextCharacter = characters.next();
|
|
6719
|
+
let rawCharacterIndex = 0;
|
|
6720
|
+
while (!currentCharacter.done) {
|
|
6721
|
+
const character = currentCharacter.value;
|
|
6722
|
+
const characterLength = dist_default3(character);
|
|
6816
6723
|
if (visible + characterLength <= columns) {
|
|
6817
6724
|
rows[rows.length - 1] += character;
|
|
6818
6725
|
} else {
|
|
6819
6726
|
rows.push(character);
|
|
6820
6727
|
visible = 0;
|
|
6821
6728
|
}
|
|
6822
|
-
if (
|
|
6729
|
+
if (character === ESC || character === CSI) {
|
|
6823
6730
|
isInsideEscape = true;
|
|
6824
|
-
|
|
6825
|
-
isInsideLinkEscape = ansiEscapeLinkCandidate === ANSI_ESCAPE_LINK;
|
|
6731
|
+
isInsideLinkEscape = word.startsWith(ANSI_ESCAPE_LINK, rawCharacterIndex + 1);
|
|
6826
6732
|
}
|
|
6827
6733
|
if (isInsideEscape) {
|
|
6828
6734
|
if (isInsideLinkEscape) {
|
|
@@ -6833,23 +6739,27 @@ var wrapWord = (rows, word, columns) => {
|
|
|
6833
6739
|
} else if (character === ANSI_SGR_TERMINATOR) {
|
|
6834
6740
|
isInsideEscape = false;
|
|
6835
6741
|
}
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6742
|
+
} else {
|
|
6743
|
+
visible += characterLength;
|
|
6744
|
+
if (visible === columns && !nextCharacter.done) {
|
|
6745
|
+
rows.push("");
|
|
6746
|
+
visible = 0;
|
|
6747
|
+
}
|
|
6842
6748
|
}
|
|
6749
|
+
currentCharacter = nextCharacter;
|
|
6750
|
+
nextCharacter = characters.next();
|
|
6751
|
+
rawCharacterIndex += character.length;
|
|
6843
6752
|
}
|
|
6844
|
-
|
|
6753
|
+
lastRow = rows.at(-1);
|
|
6754
|
+
if (!visible && lastRow !== void 0 && lastRow.length && rows.length > 1) {
|
|
6845
6755
|
rows[rows.length - 2] += rows.pop();
|
|
6846
6756
|
}
|
|
6847
6757
|
};
|
|
6848
6758
|
var stringVisibleTrimSpacesRight = (string) => {
|
|
6849
6759
|
const words = string.split(" ");
|
|
6850
6760
|
let last = words.length;
|
|
6851
|
-
while (last
|
|
6852
|
-
if (
|
|
6761
|
+
while (last) {
|
|
6762
|
+
if (dist_default3(words[last - 1])) {
|
|
6853
6763
|
break;
|
|
6854
6764
|
}
|
|
6855
6765
|
last--;
|
|
@@ -6866,85 +6776,107 @@ var exec = (string, columns, options = {}) => {
|
|
|
6866
6776
|
let returnValue = "";
|
|
6867
6777
|
let escapeCode;
|
|
6868
6778
|
let escapeUrl;
|
|
6869
|
-
const
|
|
6779
|
+
const words = string.split(" ");
|
|
6870
6780
|
let rows = [""];
|
|
6871
|
-
|
|
6781
|
+
let rowLength = 0;
|
|
6782
|
+
for (let index = 0; index < words.length; index++) {
|
|
6783
|
+
const word = words[index];
|
|
6872
6784
|
if (options.trim !== false) {
|
|
6873
|
-
|
|
6785
|
+
const row = rows.at(-1) ?? "";
|
|
6786
|
+
const trimmed = row.trimStart();
|
|
6787
|
+
if (row.length !== trimmed.length) {
|
|
6788
|
+
rows[rows.length - 1] = trimmed;
|
|
6789
|
+
rowLength = dist_default3(trimmed);
|
|
6790
|
+
}
|
|
6874
6791
|
}
|
|
6875
|
-
let rowLength = stringWidth(rows.at(-1));
|
|
6876
6792
|
if (index !== 0) {
|
|
6877
6793
|
if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
|
|
6878
6794
|
rows.push("");
|
|
6879
6795
|
rowLength = 0;
|
|
6880
6796
|
}
|
|
6881
|
-
if (rowLength
|
|
6797
|
+
if (rowLength || options.trim === false) {
|
|
6882
6798
|
rows[rows.length - 1] += " ";
|
|
6883
6799
|
rowLength++;
|
|
6884
6800
|
}
|
|
6885
6801
|
}
|
|
6886
|
-
|
|
6802
|
+
const wordLength = dist_default3(word);
|
|
6803
|
+
if (options.hard && wordLength > columns) {
|
|
6887
6804
|
const remainingColumns = columns - rowLength;
|
|
6888
|
-
const breaksStartingThisLine = 1 + Math.floor((
|
|
6889
|
-
const breaksStartingNextLine = Math.floor((
|
|
6805
|
+
const breaksStartingThisLine = 1 + Math.floor((wordLength - remainingColumns - 1) / columns);
|
|
6806
|
+
const breaksStartingNextLine = Math.floor((wordLength - 1) / columns);
|
|
6890
6807
|
if (breaksStartingNextLine < breaksStartingThisLine) {
|
|
6891
6808
|
rows.push("");
|
|
6892
6809
|
}
|
|
6893
6810
|
wrapWord(rows, word, columns);
|
|
6811
|
+
rowLength = dist_default3(rows.at(-1) ?? "");
|
|
6894
6812
|
continue;
|
|
6895
6813
|
}
|
|
6896
|
-
if (rowLength +
|
|
6814
|
+
if (rowLength + wordLength > columns && rowLength && wordLength) {
|
|
6897
6815
|
if (options.wordWrap === false && rowLength < columns) {
|
|
6898
6816
|
wrapWord(rows, word, columns);
|
|
6817
|
+
rowLength = dist_default3(rows.at(-1) ?? "");
|
|
6899
6818
|
continue;
|
|
6900
6819
|
}
|
|
6901
6820
|
rows.push("");
|
|
6821
|
+
rowLength = 0;
|
|
6902
6822
|
}
|
|
6903
|
-
if (rowLength +
|
|
6823
|
+
if (rowLength + wordLength > columns && options.wordWrap === false) {
|
|
6904
6824
|
wrapWord(rows, word, columns);
|
|
6825
|
+
rowLength = dist_default3(rows.at(-1) ?? "");
|
|
6905
6826
|
continue;
|
|
6906
6827
|
}
|
|
6907
6828
|
rows[rows.length - 1] += word;
|
|
6829
|
+
rowLength += wordLength;
|
|
6908
6830
|
}
|
|
6909
6831
|
if (options.trim !== false) {
|
|
6910
6832
|
rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
|
|
6911
6833
|
}
|
|
6912
6834
|
const preString = rows.join("\n");
|
|
6913
|
-
|
|
6914
|
-
let
|
|
6915
|
-
|
|
6835
|
+
let inSurrogate = false;
|
|
6836
|
+
for (let i = 0; i < preString.length; i++) {
|
|
6837
|
+
const character = preString[i];
|
|
6916
6838
|
returnValue += character;
|
|
6917
|
-
if (
|
|
6918
|
-
|
|
6919
|
-
if (
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6839
|
+
if (!inSurrogate) {
|
|
6840
|
+
inSurrogate = character >= "\uD800" && character <= "\uDBFF";
|
|
6841
|
+
if (inSurrogate) {
|
|
6842
|
+
continue;
|
|
6843
|
+
}
|
|
6844
|
+
} else {
|
|
6845
|
+
inSurrogate = false;
|
|
6846
|
+
}
|
|
6847
|
+
if (character === ESC || character === CSI) {
|
|
6848
|
+
GROUP_REGEX.lastIndex = i + 1;
|
|
6849
|
+
const groupsResult = GROUP_REGEX.exec(preString);
|
|
6850
|
+
const groups = groupsResult?.groups;
|
|
6851
|
+
if (groups?.code !== void 0) {
|
|
6852
|
+
const code = Number.parseFloat(groups.code);
|
|
6853
|
+
escapeCode = code === END_CODE ? void 0 : code;
|
|
6854
|
+
} else if (groups?.uri !== void 0) {
|
|
6923
6855
|
escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
|
|
6924
6856
|
}
|
|
6925
6857
|
}
|
|
6926
|
-
|
|
6927
|
-
if (pre[index + 1] === "\n") {
|
|
6858
|
+
if (preString[i + 1] === "\n") {
|
|
6928
6859
|
if (escapeUrl) {
|
|
6929
6860
|
returnValue += wrapAnsiHyperlink("");
|
|
6930
6861
|
}
|
|
6931
|
-
|
|
6932
|
-
|
|
6862
|
+
const closingCode = escapeCode ? getClosingCode(escapeCode) : void 0;
|
|
6863
|
+
if (escapeCode && closingCode) {
|
|
6864
|
+
returnValue += wrapAnsiCode(closingCode);
|
|
6933
6865
|
}
|
|
6934
6866
|
} else if (character === "\n") {
|
|
6935
|
-
if (escapeCode &&
|
|
6867
|
+
if (escapeCode && getClosingCode(escapeCode)) {
|
|
6936
6868
|
returnValue += wrapAnsiCode(escapeCode);
|
|
6937
6869
|
}
|
|
6938
6870
|
if (escapeUrl) {
|
|
6939
6871
|
returnValue += wrapAnsiHyperlink(escapeUrl);
|
|
6940
6872
|
}
|
|
6941
6873
|
}
|
|
6942
|
-
preStringIndex += character.length;
|
|
6943
6874
|
}
|
|
6944
6875
|
return returnValue;
|
|
6945
6876
|
};
|
|
6877
|
+
var CRLF_OR_LF = /\r?\n/;
|
|
6946
6878
|
function wrapAnsi(string, columns, options) {
|
|
6947
|
-
return String(string).normalize().
|
|
6879
|
+
return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join("\n");
|
|
6948
6880
|
}
|
|
6949
6881
|
|
|
6950
6882
|
// node_modules/@inquirer/core/dist/lib/utils.js
|
|
@@ -7311,19 +7243,19 @@ var import_node_util2 = require("util");
|
|
|
7311
7243
|
|
|
7312
7244
|
// node_modules/@inquirer/ansi/dist/index.js
|
|
7313
7245
|
init_cjs_shims();
|
|
7314
|
-
var
|
|
7315
|
-
var cursorLeft =
|
|
7316
|
-
var cursorHide =
|
|
7317
|
-
var cursorShow =
|
|
7318
|
-
var cursorUp = (rows = 1) => rows > 0 ? `${
|
|
7319
|
-
var cursorDown = (rows = 1) => rows > 0 ? `${
|
|
7246
|
+
var ESC2 = "\x1B[";
|
|
7247
|
+
var cursorLeft = ESC2 + "G";
|
|
7248
|
+
var cursorHide = ESC2 + "?25l";
|
|
7249
|
+
var cursorShow = ESC2 + "?25h";
|
|
7250
|
+
var cursorUp = (rows = 1) => rows > 0 ? `${ESC2}${rows}A` : "";
|
|
7251
|
+
var cursorDown = (rows = 1) => rows > 0 ? `${ESC2}${rows}B` : "";
|
|
7320
7252
|
var cursorTo = (x, y) => {
|
|
7321
7253
|
if (typeof y === "number" && !Number.isNaN(y)) {
|
|
7322
|
-
return `${
|
|
7254
|
+
return `${ESC2}${y + 1};${x + 1}H`;
|
|
7323
7255
|
}
|
|
7324
|
-
return `${
|
|
7256
|
+
return `${ESC2}${x + 1}G`;
|
|
7325
7257
|
};
|
|
7326
|
-
var eraseLine =
|
|
7258
|
+
var eraseLine = ESC2 + "2K";
|
|
7327
7259
|
var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
|
|
7328
7260
|
|
|
7329
7261
|
// node_modules/@inquirer/core/dist/lib/screen-manager.js
|
|
@@ -7380,6 +7312,7 @@ var ScreenManager = class {
|
|
|
7380
7312
|
this.rl.setPrompt("");
|
|
7381
7313
|
let output = cursorDown(this.extraLinesUnderPrompt);
|
|
7382
7314
|
output += clearContent ? eraseLines(this.height) : "\n";
|
|
7315
|
+
output += cursorLeft;
|
|
7383
7316
|
output += cursorShow;
|
|
7384
7317
|
this.write(output);
|
|
7385
7318
|
this.rl.close();
|
|
@@ -7403,8 +7336,10 @@ var PromisePolyfill = class extends Promise {
|
|
|
7403
7336
|
};
|
|
7404
7337
|
|
|
7405
7338
|
// node_modules/@inquirer/core/dist/lib/create-prompt.js
|
|
7339
|
+
var import_node_path = __toESM(require("path"), 1);
|
|
7340
|
+
var nativeSetImmediate = globalThis.setImmediate;
|
|
7406
7341
|
function getCallSites() {
|
|
7407
|
-
const
|
|
7342
|
+
const savedPrepareStackTrace = Error.prepareStackTrace;
|
|
7408
7343
|
let result = [];
|
|
7409
7344
|
try {
|
|
7410
7345
|
Error.prepareStackTrace = (_, callSites) => {
|
|
@@ -7416,7 +7351,7 @@ function getCallSites() {
|
|
|
7416
7351
|
} catch {
|
|
7417
7352
|
return result;
|
|
7418
7353
|
}
|
|
7419
|
-
Error.prepareStackTrace =
|
|
7354
|
+
Error.prepareStackTrace = savedPrepareStackTrace;
|
|
7420
7355
|
return result;
|
|
7421
7356
|
}
|
|
7422
7357
|
function createPrompt(view) {
|
|
@@ -7431,6 +7366,7 @@ function createPrompt(view) {
|
|
|
7431
7366
|
input,
|
|
7432
7367
|
output
|
|
7433
7368
|
});
|
|
7369
|
+
output.mute();
|
|
7434
7370
|
const screen = new ScreenManager(rl);
|
|
7435
7371
|
const { promise, resolve, reject } = PromisePolyfill.withResolver();
|
|
7436
7372
|
const cancel = () => reject(new CancelPromptError());
|
|
@@ -7449,30 +7385,52 @@ function createPrompt(view) {
|
|
|
7449
7385
|
const sigint = () => reject(new ExitPromptError(`User force closed the prompt with SIGINT`));
|
|
7450
7386
|
rl.on("SIGINT", sigint);
|
|
7451
7387
|
cleanups.add(() => rl.removeListener("SIGINT", sigint));
|
|
7452
|
-
const checkCursorPos = () => screen.checkCursorPos();
|
|
7453
|
-
rl.input.on("keypress", checkCursorPos);
|
|
7454
|
-
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
|
7455
7388
|
return withHooks(rl, (cycle) => {
|
|
7456
7389
|
const hooksCleanup = import_node_async_hooks3.AsyncResource.bind(() => effectScheduler.clearAll());
|
|
7457
7390
|
rl.on("close", hooksCleanup);
|
|
7458
7391
|
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
|
|
7463
|
-
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7392
|
+
const startCycle = () => {
|
|
7393
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
|
7394
|
+
rl.input.on("keypress", checkCursorPos);
|
|
7395
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
|
7396
|
+
let pendingDone = null;
|
|
7397
|
+
cycle(() => {
|
|
7398
|
+
let effectsSettled = false;
|
|
7399
|
+
try {
|
|
7400
|
+
const nextView = view(config, (value) => {
|
|
7401
|
+
if (effectsSettled) {
|
|
7402
|
+
resolve(value);
|
|
7403
|
+
} else {
|
|
7404
|
+
pendingDone = { value };
|
|
7405
|
+
}
|
|
7406
|
+
});
|
|
7407
|
+
if (nextView === void 0) {
|
|
7408
|
+
let callerFilename = callSites[1]?.getFileName();
|
|
7409
|
+
if (callerFilename && !callerFilename.startsWith("file://")) {
|
|
7410
|
+
callerFilename = import_node_path.default.resolve(callerFilename);
|
|
7411
|
+
}
|
|
7412
|
+
throw new Error(`Prompt functions must return a string.
|
|
7467
7413
|
at ${callerFilename}`);
|
|
7414
|
+
}
|
|
7415
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
|
7416
|
+
screen.render(content, bottomContent);
|
|
7417
|
+
effectScheduler.run();
|
|
7418
|
+
} catch (error) {
|
|
7419
|
+
reject(error);
|
|
7468
7420
|
}
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
|
|
7421
|
+
effectsSettled = true;
|
|
7422
|
+
if (pendingDone !== null) {
|
|
7423
|
+
const { value } = pendingDone;
|
|
7424
|
+
pendingDone = null;
|
|
7425
|
+
resolve(value);
|
|
7426
|
+
}
|
|
7427
|
+
});
|
|
7428
|
+
};
|
|
7429
|
+
if ("readableFlowing" in input) {
|
|
7430
|
+
nativeSetImmediate(startCycle);
|
|
7431
|
+
} else {
|
|
7432
|
+
startCycle();
|
|
7433
|
+
}
|
|
7476
7434
|
return Object.assign(promise.then((answer) => {
|
|
7477
7435
|
effectScheduler.clearAll();
|
|
7478
7436
|
return answer;
|
|
@@ -7511,21 +7469,27 @@ var checkboxTheme = {
|
|
|
7511
7469
|
icon: {
|
|
7512
7470
|
checked: (0, import_node_util4.styleText)("green", dist_default.circleFilled),
|
|
7513
7471
|
unchecked: dist_default.circle,
|
|
7514
|
-
cursor: dist_default.pointer
|
|
7472
|
+
cursor: dist_default.pointer,
|
|
7473
|
+
disabledChecked: (0, import_node_util4.styleText)("green", dist_default.circleDouble),
|
|
7474
|
+
disabledUnchecked: "-"
|
|
7515
7475
|
},
|
|
7516
7476
|
style: {
|
|
7517
|
-
|
|
7477
|
+
disabled: (text) => (0, import_node_util4.styleText)("dim", text),
|
|
7518
7478
|
renderSelectedChoices: (selectedChoices) => selectedChoices.map((choice) => choice.short).join(", "),
|
|
7519
7479
|
description: (text) => (0, import_node_util4.styleText)("cyan", text),
|
|
7520
7480
|
keysHelpTip: (keys) => keys.map(([key, action]) => `${(0, import_node_util4.styleText)("bold", key)} ${(0, import_node_util4.styleText)("dim", action)}`).join((0, import_node_util4.styleText)("dim", " \u2022 "))
|
|
7521
7481
|
},
|
|
7482
|
+
i18n: { disabledError: "This option is disabled and cannot be toggled." },
|
|
7522
7483
|
keybindings: []
|
|
7523
7484
|
};
|
|
7524
7485
|
function isSelectable(item) {
|
|
7525
7486
|
return !Separator.isSeparator(item) && !item.disabled;
|
|
7526
7487
|
}
|
|
7488
|
+
function isNavigable(item) {
|
|
7489
|
+
return !Separator.isSeparator(item);
|
|
7490
|
+
}
|
|
7527
7491
|
function isChecked(item) {
|
|
7528
|
-
return
|
|
7492
|
+
return !Separator.isSeparator(item) && item.checked;
|
|
7529
7493
|
}
|
|
7530
7494
|
function toggle(item) {
|
|
7531
7495
|
return isSelectable(item) ? { ...item, checked: !item.checked } : item;
|
|
@@ -7539,12 +7503,13 @@ function normalizeChoices(choices) {
|
|
|
7539
7503
|
return choices.map((choice) => {
|
|
7540
7504
|
if (Separator.isSeparator(choice))
|
|
7541
7505
|
return choice;
|
|
7542
|
-
if (typeof choice === "
|
|
7506
|
+
if (typeof choice !== "object" || choice === null || !("value" in choice)) {
|
|
7507
|
+
const name2 = String(choice);
|
|
7543
7508
|
return {
|
|
7544
7509
|
value: choice,
|
|
7545
|
-
name:
|
|
7546
|
-
short:
|
|
7547
|
-
checkedName:
|
|
7510
|
+
name: name2,
|
|
7511
|
+
short: name2,
|
|
7512
|
+
checkedName: name2,
|
|
7548
7513
|
disabled: false,
|
|
7549
7514
|
checked: false
|
|
7550
7515
|
};
|
|
@@ -7564,8 +7529,8 @@ function normalizeChoices(choices) {
|
|
|
7564
7529
|
return normalizedChoice;
|
|
7565
7530
|
});
|
|
7566
7531
|
}
|
|
7567
|
-
var
|
|
7568
|
-
const { pageSize = 7, loop = true, required, validate
|
|
7532
|
+
var dist_default4 = createPrompt((config, done) => {
|
|
7533
|
+
const { pageSize = 7, loop = true, required, validate = () => true } = config;
|
|
7569
7534
|
const shortcuts = { all: "a", invert: "i", ...config.shortcuts };
|
|
7570
7535
|
const theme = makeTheme(checkboxTheme, config.theme);
|
|
7571
7536
|
const { keybindings } = theme;
|
|
@@ -7573,8 +7538,8 @@ var dist_default2 = createPrompt((config, done) => {
|
|
|
7573
7538
|
const prefix = usePrefix({ status, theme });
|
|
7574
7539
|
const [items, setItems] = useState(normalizeChoices(config.choices));
|
|
7575
7540
|
const bounds = useMemo(() => {
|
|
7576
|
-
const first = items.findIndex(
|
|
7577
|
-
const last = items.findLastIndex(
|
|
7541
|
+
const first = items.findIndex(isNavigable);
|
|
7542
|
+
const last = items.findLastIndex(isNavigable);
|
|
7578
7543
|
if (first === -1) {
|
|
7579
7544
|
throw new ValidationError("[checkbox prompt] No selectable choices. All choices are disabled.");
|
|
7580
7545
|
}
|
|
@@ -7585,8 +7550,8 @@ var dist_default2 = createPrompt((config, done) => {
|
|
|
7585
7550
|
useKeypress(async (key) => {
|
|
7586
7551
|
if (isEnterKey(key)) {
|
|
7587
7552
|
const selection = items.filter(isChecked);
|
|
7588
|
-
const isValid = await
|
|
7589
|
-
if (required && !
|
|
7553
|
+
const isValid = await validate([...selection]);
|
|
7554
|
+
if (required && !selection.length) {
|
|
7590
7555
|
setError("At least one choice must be selected");
|
|
7591
7556
|
} else if (isValid === true) {
|
|
7592
7557
|
setStatus("done");
|
|
@@ -7595,17 +7560,27 @@ var dist_default2 = createPrompt((config, done) => {
|
|
|
7595
7560
|
setError(isValid || "You must select a valid value");
|
|
7596
7561
|
}
|
|
7597
7562
|
} else if (isUpKey(key, keybindings) || isDownKey(key, keybindings)) {
|
|
7563
|
+
if (errorMsg) {
|
|
7564
|
+
setError(void 0);
|
|
7565
|
+
}
|
|
7598
7566
|
if (loop || isUpKey(key, keybindings) && active !== bounds.first || isDownKey(key, keybindings) && active !== bounds.last) {
|
|
7599
7567
|
const offset = isUpKey(key, keybindings) ? -1 : 1;
|
|
7600
7568
|
let next = active;
|
|
7601
7569
|
do {
|
|
7602
7570
|
next = (next + offset + items.length) % items.length;
|
|
7603
|
-
} while (!
|
|
7571
|
+
} while (!isNavigable(items[next]));
|
|
7604
7572
|
setActive(next);
|
|
7605
7573
|
}
|
|
7606
7574
|
} else if (isSpaceKey(key)) {
|
|
7607
|
-
|
|
7608
|
-
|
|
7575
|
+
const activeItem = items[active];
|
|
7576
|
+
if (activeItem && !Separator.isSeparator(activeItem)) {
|
|
7577
|
+
if (activeItem.disabled) {
|
|
7578
|
+
setError(theme.i18n.disabledError);
|
|
7579
|
+
} else {
|
|
7580
|
+
setError(void 0);
|
|
7581
|
+
setItems(items.map((choice, i) => i === active ? toggle(choice) : choice));
|
|
7582
|
+
}
|
|
7583
|
+
}
|
|
7609
7584
|
} else if (key.name === shortcuts.all) {
|
|
7610
7585
|
const selectAll = items.some((choice) => isSelectable(choice) && !choice.checked);
|
|
7611
7586
|
setItems(items.map(check(selectAll)));
|
|
@@ -7636,9 +7611,11 @@ var dist_default2 = createPrompt((config, done) => {
|
|
|
7636
7611
|
if (Separator.isSeparator(item)) {
|
|
7637
7612
|
return ` ${item.separator}`;
|
|
7638
7613
|
}
|
|
7614
|
+
const cursor = isActive ? theme.icon.cursor : " ";
|
|
7639
7615
|
if (item.disabled) {
|
|
7640
7616
|
const disabledLabel = typeof item.disabled === "string" ? item.disabled : "(disabled)";
|
|
7641
|
-
|
|
7617
|
+
const checkbox2 = item.checked ? theme.icon.disabledChecked : theme.icon.disabledUnchecked;
|
|
7618
|
+
return theme.style.disabled(`${cursor}${checkbox2} ${item.name} ${disabledLabel}`);
|
|
7642
7619
|
}
|
|
7643
7620
|
if (isActive) {
|
|
7644
7621
|
description = item.description;
|
|
@@ -7646,7 +7623,6 @@ var dist_default2 = createPrompt((config, done) => {
|
|
|
7646
7623
|
const checkbox = item.checked ? theme.icon.checked : theme.icon.unchecked;
|
|
7647
7624
|
const name = item.checked ? item.checkedName : item.name;
|
|
7648
7625
|
const color = isActive ? theme.style.highlight : (x) => x;
|
|
7649
|
-
const cursor = isActive ? theme.icon.cursor : " ";
|
|
7650
7626
|
return color(`${cursor}${checkbox} ${name}`);
|
|
7651
7627
|
},
|
|
7652
7628
|
pageSize,
|
|
@@ -7691,7 +7667,7 @@ function getBooleanValue(value, defaultValue) {
|
|
|
7691
7667
|
function boolToString(value) {
|
|
7692
7668
|
return value ? "Yes" : "No";
|
|
7693
7669
|
}
|
|
7694
|
-
var
|
|
7670
|
+
var dist_default5 = createPrompt((config, done) => {
|
|
7695
7671
|
const { transformer = boolToString } = config;
|
|
7696
7672
|
const [status, setStatus] = useState("idle");
|
|
7697
7673
|
const [value, setValue] = useState("");
|
|
@@ -7781,7 +7757,7 @@ program2.command("add").description("P\u0159idat komponenty do projektu").action
|
|
|
7781
7757
|
console.log("\u274C \u017D\xE1dn\xE9 komponenty nenalezeny");
|
|
7782
7758
|
return;
|
|
7783
7759
|
}
|
|
7784
|
-
const selected = await
|
|
7760
|
+
const selected = await dist_default4({
|
|
7785
7761
|
message: "Vyber komponenty k p\u0159id\xE1n\xED:",
|
|
7786
7762
|
choices: components.map((f) => ({
|
|
7787
7763
|
name: f.replace(".tsx", ""),
|
|
@@ -7824,7 +7800,7 @@ program2.command("update").description("Aktualizovat komponenty z knihovny").act
|
|
|
7824
7800
|
);
|
|
7825
7801
|
return;
|
|
7826
7802
|
}
|
|
7827
|
-
const shouldUpdate = await
|
|
7803
|
+
const shouldUpdate = await dist_default5({
|
|
7828
7804
|
message: "\u26A0\uFE0F Toto p\u0159ep\xED\u0161e lok\xE1ln\xED zm\u011Bny! Pokra\u010Dovat?",
|
|
7829
7805
|
default: false
|
|
7830
7806
|
});
|