@modern-js/create 2.1.0 → 2.2.0
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/index.js +1229 -1101
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
9
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __pow = Math.pow;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
7
25
|
var __commonJS = (cb, mod) => function __require() {
|
|
8
26
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
27
|
};
|
|
@@ -24,6 +42,26 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
42
|
mod
|
|
25
43
|
));
|
|
26
44
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
45
|
+
var __async = (__this, __arguments, generator) => {
|
|
46
|
+
return new Promise((resolve, reject) => {
|
|
47
|
+
var fulfilled = (value) => {
|
|
48
|
+
try {
|
|
49
|
+
step(generator.next(value));
|
|
50
|
+
} catch (e) {
|
|
51
|
+
reject(e);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var rejected = (value) => {
|
|
55
|
+
try {
|
|
56
|
+
step(generator.throw(value));
|
|
57
|
+
} catch (e) {
|
|
58
|
+
reject(e);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
62
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
63
|
+
});
|
|
64
|
+
};
|
|
27
65
|
|
|
28
66
|
// ../utils/compiled/import-lazy/index.js
|
|
29
67
|
var require_import_lazy = __commonJS({
|
|
@@ -465,20 +503,22 @@ var require_fs_extra = __commonJS({
|
|
|
465
503
|
const o = r2(17);
|
|
466
504
|
const c = r2(971);
|
|
467
505
|
const s = r2(95);
|
|
468
|
-
const a = n(
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
506
|
+
const a = n(function emptyDir(e3) {
|
|
507
|
+
return __async(this, null, function* () {
|
|
508
|
+
let t3;
|
|
509
|
+
try {
|
|
510
|
+
t3 = yield i.readdir(e3);
|
|
511
|
+
} catch (e4) {
|
|
512
|
+
return c.mkdirs(e3);
|
|
513
|
+
}
|
|
514
|
+
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
515
|
+
});
|
|
476
516
|
});
|
|
477
517
|
function emptyDirSync(e3) {
|
|
478
518
|
let t3;
|
|
479
519
|
try {
|
|
480
520
|
t3 = i.readdirSync(e3);
|
|
481
|
-
} catch {
|
|
521
|
+
} catch (e4) {
|
|
482
522
|
return c.mkdirsSync(e3);
|
|
483
523
|
}
|
|
484
524
|
t3.forEach((t4) => {
|
|
@@ -531,7 +571,7 @@ var require_fs_extra = __commonJS({
|
|
|
531
571
|
let t3;
|
|
532
572
|
try {
|
|
533
573
|
t3 = o.statSync(e3);
|
|
534
|
-
} catch {
|
|
574
|
+
} catch (e4) {
|
|
535
575
|
}
|
|
536
576
|
if (t3 && t3.isFile())
|
|
537
577
|
return;
|
|
@@ -598,7 +638,7 @@ var require_fs_extra = __commonJS({
|
|
|
598
638
|
let r3;
|
|
599
639
|
try {
|
|
600
640
|
r3 = o.lstatSync(t3);
|
|
601
|
-
} catch {
|
|
641
|
+
} catch (e4) {
|
|
602
642
|
}
|
|
603
643
|
try {
|
|
604
644
|
const t4 = o.lstatSync(e3);
|
|
@@ -693,7 +733,7 @@ var require_fs_extra = __commonJS({
|
|
|
693
733
|
return t3;
|
|
694
734
|
try {
|
|
695
735
|
r3 = n.lstatSync(e3);
|
|
696
|
-
} catch {
|
|
736
|
+
} catch (e4) {
|
|
697
737
|
return "file";
|
|
698
738
|
}
|
|
699
739
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
|
@@ -756,7 +796,7 @@ var require_fs_extra = __commonJS({
|
|
|
756
796
|
let n2;
|
|
757
797
|
try {
|
|
758
798
|
n2 = o.lstatSync(t3);
|
|
759
|
-
} catch {
|
|
799
|
+
} catch (e4) {
|
|
760
800
|
}
|
|
761
801
|
if (n2 && n2.isSymbolicLink()) {
|
|
762
802
|
const r4 = o.statSync(e3);
|
|
@@ -831,7 +871,7 @@ var require_fs_extra = __commonJS({
|
|
|
831
871
|
}
|
|
832
872
|
}, 81: (e2, t2, r2) => {
|
|
833
873
|
"use strict";
|
|
834
|
-
e2.exports = {
|
|
874
|
+
e2.exports = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, r2(812)), r2(2)), r2(708)), r2(726)), r2(779)), r2(971)), r2(511)), r2(701)), r2(725)), r2(95));
|
|
835
875
|
}, 779: (e2, t2, r2) => {
|
|
836
876
|
"use strict";
|
|
837
877
|
const n = r2(5).fromPromise;
|
|
@@ -862,9 +902,11 @@ var require_fs_extra = __commonJS({
|
|
|
862
902
|
"use strict";
|
|
863
903
|
const { stringify: n } = r2(208);
|
|
864
904
|
const { outputFile: i } = r2(701);
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
905
|
+
function outputJson(_0, _1) {
|
|
906
|
+
return __async(this, arguments, function* (e3, t3, r3 = {}) {
|
|
907
|
+
const o = n(t3, r3);
|
|
908
|
+
yield i(e3, o, r3);
|
|
909
|
+
});
|
|
868
910
|
}
|
|
869
911
|
e2.exports = outputJson;
|
|
870
912
|
}, 971: (e2, t2, r2) => {
|
|
@@ -881,12 +923,12 @@ var require_fs_extra = __commonJS({
|
|
|
881
923
|
const t3 = { mode: 511 };
|
|
882
924
|
if (typeof e3 === "number")
|
|
883
925
|
return e3;
|
|
884
|
-
return {
|
|
926
|
+
return __spreadValues(__spreadValues({}, t3), e3).mode;
|
|
885
927
|
};
|
|
886
|
-
e2.exports.makeDir =
|
|
928
|
+
e2.exports.makeDir = (e3, t3) => __async(exports, null, function* () {
|
|
887
929
|
i(e3);
|
|
888
930
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
|
889
|
-
};
|
|
931
|
+
});
|
|
890
932
|
e2.exports.makeDirSync = (e3, t3) => {
|
|
891
933
|
i(e3);
|
|
892
934
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
|
@@ -1304,7 +1346,7 @@ var require_fs_extra = __commonJS({
|
|
|
1304
1346
|
try {
|
|
1305
1347
|
const r4 = t3.rmdirSync(e3, t3);
|
|
1306
1348
|
return r4;
|
|
1307
|
-
} catch {
|
|
1349
|
+
} catch (e4) {
|
|
1308
1350
|
}
|
|
1309
1351
|
} while (Date.now() - r3 < 500);
|
|
1310
1352
|
} else {
|
|
@@ -2203,26 +2245,28 @@ var require_fs_extra = __commonJS({
|
|
|
2203
2245
|
}
|
|
2204
2246
|
const i = r2(5);
|
|
2205
2247
|
const { stringify: o, stripBom: c } = r2(208);
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2248
|
+
function _readFile(_0) {
|
|
2249
|
+
return __async(this, arguments, function* (e3, t3 = {}) {
|
|
2250
|
+
if (typeof t3 === "string") {
|
|
2251
|
+
t3 = { encoding: t3 };
|
|
2252
|
+
}
|
|
2253
|
+
const r3 = t3.fs || n;
|
|
2254
|
+
const o2 = "throws" in t3 ? t3.throws : true;
|
|
2255
|
+
let s2 = yield i.fromCallback(r3.readFile)(e3, t3);
|
|
2256
|
+
s2 = c(s2);
|
|
2257
|
+
let a2;
|
|
2258
|
+
try {
|
|
2259
|
+
a2 = JSON.parse(s2, t3 ? t3.reviver : null);
|
|
2260
|
+
} catch (t4) {
|
|
2261
|
+
if (o2) {
|
|
2262
|
+
t4.message = `${e3}: ${t4.message}`;
|
|
2263
|
+
throw t4;
|
|
2264
|
+
} else {
|
|
2265
|
+
return null;
|
|
2266
|
+
}
|
|
2223
2267
|
}
|
|
2224
|
-
|
|
2225
|
-
|
|
2268
|
+
return a2;
|
|
2269
|
+
});
|
|
2226
2270
|
}
|
|
2227
2271
|
const s = i.fromPromise(_readFile);
|
|
2228
2272
|
function readFileSync(e3, t3 = {}) {
|
|
@@ -2244,10 +2288,12 @@ var require_fs_extra = __commonJS({
|
|
|
2244
2288
|
}
|
|
2245
2289
|
}
|
|
2246
2290
|
}
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2291
|
+
function _writeFile(_0, _1) {
|
|
2292
|
+
return __async(this, arguments, function* (e3, t3, r3 = {}) {
|
|
2293
|
+
const c2 = r3.fs || n;
|
|
2294
|
+
const s2 = o(t3, r3);
|
|
2295
|
+
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
2296
|
+
});
|
|
2251
2297
|
}
|
|
2252
2298
|
const a = i.fromPromise(_writeFile);
|
|
2253
2299
|
function writeFileSync(e3, t3, r3 = {}) {
|
|
@@ -2475,11 +2521,11 @@ var require_chalk = __commonJS({
|
|
|
2475
2521
|
} };
|
|
2476
2522
|
}
|
|
2477
2523
|
const f = Object.defineProperties(() => {
|
|
2478
|
-
}, {
|
|
2524
|
+
}, __spreadProps(__spreadValues({}, u), { level: { enumerable: true, get() {
|
|
2479
2525
|
return this._generator.level;
|
|
2480
2526
|
}, set(e3) {
|
|
2481
2527
|
this._generator.level = e3;
|
|
2482
|
-
} } });
|
|
2528
|
+
} } }));
|
|
2483
2529
|
const createStyler = (e3, t3, n3) => {
|
|
2484
2530
|
let r2;
|
|
2485
2531
|
let s2;
|
|
@@ -2790,7 +2836,7 @@ var require_chalk = __commonJS({
|
|
|
2790
2836
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
|
2791
2837
|
};
|
|
2792
2838
|
function comparativeDistance(e3, t3) {
|
|
2793
|
-
return (e3[0] - t3[0]
|
|
2839
|
+
return __pow(e3[0] - t3[0], 2) + __pow(e3[1] - t3[1], 2) + __pow(e3[2] - t3[2], 2);
|
|
2794
2840
|
}
|
|
2795
2841
|
o.rgb.keyword = function(e3) {
|
|
2796
2842
|
const t3 = s[e3];
|
|
@@ -2816,9 +2862,9 @@ var require_chalk = __commonJS({
|
|
|
2816
2862
|
let t3 = e3[0] / 255;
|
|
2817
2863
|
let n3 = e3[1] / 255;
|
|
2818
2864
|
let r2 = e3[2] / 255;
|
|
2819
|
-
t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055
|
|
2820
|
-
n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055
|
|
2821
|
-
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055
|
|
2865
|
+
t3 = t3 > 0.04045 ? __pow((t3 + 0.055) / 1.055, 2.4) : t3 / 12.92;
|
|
2866
|
+
n3 = n3 > 0.04045 ? __pow((n3 + 0.055) / 1.055, 2.4) : n3 / 12.92;
|
|
2867
|
+
r2 = r2 > 0.04045 ? __pow((r2 + 0.055) / 1.055, 2.4) : r2 / 12.92;
|
|
2822
2868
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
|
2823
2869
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
|
2824
2870
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
|
@@ -2832,9 +2878,9 @@ var require_chalk = __commonJS({
|
|
|
2832
2878
|
n3 /= 95.047;
|
|
2833
2879
|
r2 /= 100;
|
|
2834
2880
|
s2 /= 108.883;
|
|
2835
|
-
n3 = n3 > 8856e-6 ? n3
|
|
2836
|
-
r2 = r2 > 8856e-6 ? r2
|
|
2837
|
-
s2 = s2 > 8856e-6 ? s2
|
|
2881
|
+
n3 = n3 > 8856e-6 ? __pow(n3, 1 / 3) : 7.787 * n3 + 16 / 116;
|
|
2882
|
+
r2 = r2 > 8856e-6 ? __pow(r2, 1 / 3) : 7.787 * r2 + 16 / 116;
|
|
2883
|
+
s2 = s2 > 8856e-6 ? __pow(s2, 1 / 3) : 7.787 * s2 + 16 / 116;
|
|
2838
2884
|
const l = 116 * r2 - 16;
|
|
2839
2885
|
const c = 500 * (n3 - r2);
|
|
2840
2886
|
const i = 200 * (r2 - s2);
|
|
@@ -3008,9 +3054,9 @@ var require_chalk = __commonJS({
|
|
|
3008
3054
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
|
3009
3055
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
|
3010
3056
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
|
3011
|
-
s2 = s2 > 31308e-7 ? 1.055 * s2
|
|
3012
|
-
o2 = o2 > 31308e-7 ? 1.055 * o2
|
|
3013
|
-
l = l > 31308e-7 ? 1.055 * l
|
|
3057
|
+
s2 = s2 > 31308e-7 ? 1.055 * __pow(s2, 1 / 2.4) - 0.055 : s2 * 12.92;
|
|
3058
|
+
o2 = o2 > 31308e-7 ? 1.055 * __pow(o2, 1 / 2.4) - 0.055 : o2 * 12.92;
|
|
3059
|
+
l = l > 31308e-7 ? 1.055 * __pow(l, 1 / 2.4) - 0.055 : l * 12.92;
|
|
3014
3060
|
s2 = Math.min(Math.max(0, s2), 1);
|
|
3015
3061
|
o2 = Math.min(Math.max(0, o2), 1);
|
|
3016
3062
|
l = Math.min(Math.max(0, l), 1);
|
|
@@ -3023,9 +3069,9 @@ var require_chalk = __commonJS({
|
|
|
3023
3069
|
t3 /= 95.047;
|
|
3024
3070
|
n3 /= 100;
|
|
3025
3071
|
r2 /= 108.883;
|
|
3026
|
-
t3 = t3 > 8856e-6 ? t3
|
|
3027
|
-
n3 = n3 > 8856e-6 ? n3
|
|
3028
|
-
r2 = r2 > 8856e-6 ? r2
|
|
3072
|
+
t3 = t3 > 8856e-6 ? __pow(t3, 1 / 3) : 7.787 * t3 + 16 / 116;
|
|
3073
|
+
n3 = n3 > 8856e-6 ? __pow(n3, 1 / 3) : 7.787 * n3 + 16 / 116;
|
|
3074
|
+
r2 = r2 > 8856e-6 ? __pow(r2, 1 / 3) : 7.787 * r2 + 16 / 116;
|
|
3029
3075
|
const s2 = 116 * n3 - 16;
|
|
3030
3076
|
const o2 = 500 * (t3 - n3);
|
|
3031
3077
|
const l = 200 * (n3 - r2);
|
|
@@ -3041,9 +3087,9 @@ var require_chalk = __commonJS({
|
|
|
3041
3087
|
o2 = (t3 + 16) / 116;
|
|
3042
3088
|
s2 = n3 / 500 + o2;
|
|
3043
3089
|
l = o2 - r2 / 200;
|
|
3044
|
-
const c = o2
|
|
3045
|
-
const i = s2
|
|
3046
|
-
const a = l
|
|
3090
|
+
const c = __pow(o2, 3);
|
|
3091
|
+
const i = __pow(s2, 3);
|
|
3092
|
+
const a = __pow(l, 3);
|
|
3047
3093
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
|
3048
3094
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
|
3049
3095
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
|
@@ -4299,7 +4345,7 @@ var require_ora = __commonJS({
|
|
|
4299
4345
|
if (typeof e3 === "string") {
|
|
4300
4346
|
e3 = { text: e3 };
|
|
4301
4347
|
}
|
|
4302
|
-
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true,
|
|
4348
|
+
this.options = __spreadValues({ text: "", color: "cyan", stream: process.stderr, discardStdin: true }, e3);
|
|
4303
4349
|
this.spinner = this.options.spinner;
|
|
4304
4350
|
this.color = this.options.color;
|
|
4305
4351
|
this.hideCursor = this.options.hideCursor !== false;
|
|
@@ -4516,14 +4562,14 @@ var require_ora = __commonJS({
|
|
|
4516
4562
|
}
|
|
4517
4563
|
const r3 = new Ora(t3);
|
|
4518
4564
|
r3.start();
|
|
4519
|
-
(
|
|
4565
|
+
(() => __async(exports, null, function* () {
|
|
4520
4566
|
try {
|
|
4521
|
-
|
|
4567
|
+
yield e3;
|
|
4522
4568
|
r3.succeed();
|
|
4523
|
-
} catch {
|
|
4569
|
+
} catch (e4) {
|
|
4524
4570
|
r3.fail();
|
|
4525
4571
|
}
|
|
4526
|
-
})();
|
|
4572
|
+
}))();
|
|
4527
4573
|
return r3;
|
|
4528
4574
|
};
|
|
4529
4575
|
}, 959: (e2) => {
|
|
@@ -12943,7 +12989,7 @@ var require_execa = __commonJS({
|
|
|
12943
12989
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
|
12944
12990
|
const T = 1e3 * 1e3 * 100;
|
|
12945
12991
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
|
12946
|
-
const s2 = t3 ? {
|
|
12992
|
+
const s2 = t3 ? __spreadValues(__spreadValues({}, process.env), e3) : e3;
|
|
12947
12993
|
if (n3) {
|
|
12948
12994
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
|
12949
12995
|
}
|
|
@@ -12954,7 +13000,7 @@ var require_execa = __commonJS({
|
|
|
12954
13000
|
e3 = o2.command;
|
|
12955
13001
|
t3 = o2.args;
|
|
12956
13002
|
n3 = o2.options;
|
|
12957
|
-
n3 = { maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true,
|
|
13003
|
+
n3 = __spreadValues({ maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true }, n3);
|
|
12958
13004
|
n3.env = getEnv(n3);
|
|
12959
13005
|
n3.stdio = u(n3);
|
|
12960
13006
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
|
@@ -12990,8 +13036,8 @@ var require_execa = __commonJS({
|
|
|
12990
13036
|
const T2 = { isCanceled: false };
|
|
12991
13037
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
|
12992
13038
|
a2.cancel = f.bind(null, a2, T2);
|
|
12993
|
-
const handlePromise =
|
|
12994
|
-
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] =
|
|
13039
|
+
const handlePromise = () => __async(exports, null, function* () {
|
|
13040
|
+
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = yield h(a2, r2.options, E2);
|
|
12995
13041
|
const f2 = handleOutput(r2.options, c2);
|
|
12996
13042
|
const p2 = handleOutput(r2.options, u3);
|
|
12997
13043
|
const m2 = handleOutput(r2.options, l2);
|
|
@@ -13003,7 +13049,7 @@ var require_execa = __commonJS({
|
|
|
13003
13049
|
throw c3;
|
|
13004
13050
|
}
|
|
13005
13051
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
|
13006
|
-
};
|
|
13052
|
+
});
|
|
13007
13053
|
const C = c(handlePromise);
|
|
13008
13054
|
x(a2, r2.options.input);
|
|
13009
13055
|
a2.all = y(a2, r2.options);
|
|
@@ -13048,7 +13094,7 @@ var require_execa = __commonJS({
|
|
|
13048
13094
|
const r2 = u.node(n3);
|
|
13049
13095
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
|
13050
13096
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
|
13051
|
-
return execa(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], {
|
|
13097
|
+
return execa(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], __spreadProps(__spreadValues({}, n3), { stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false }));
|
|
13052
13098
|
};
|
|
13053
13099
|
}, 192: (e2) => {
|
|
13054
13100
|
"use strict";
|
|
@@ -13204,7 +13250,7 @@ ${o.message}` : x;
|
|
|
13204
13250
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
|
13205
13251
|
}
|
|
13206
13252
|
};
|
|
13207
|
-
const setExitHandler =
|
|
13253
|
+
const setExitHandler = (_0, _1, _2) => __async(exports, [_0, _1, _2], function* (e3, { cleanup: t3, detached: n3 }, r2) {
|
|
13208
13254
|
if (!t3 || n3) {
|
|
13209
13255
|
return r2;
|
|
13210
13256
|
}
|
|
@@ -13214,17 +13260,17 @@ ${o.message}` : x;
|
|
|
13214
13260
|
return r2.finally(() => {
|
|
13215
13261
|
s2();
|
|
13216
13262
|
});
|
|
13217
|
-
};
|
|
13263
|
+
});
|
|
13218
13264
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
|
13219
13265
|
}, 210: (e2) => {
|
|
13220
13266
|
"use strict";
|
|
13221
|
-
const t2 = (
|
|
13222
|
-
})().constructor.prototype;
|
|
13267
|
+
const t2 = (() => __async(exports, null, function* () {
|
|
13268
|
+
}))().constructor.prototype;
|
|
13223
13269
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
|
13224
13270
|
const mergePromise = (e3, t3) => {
|
|
13225
13271
|
for (const [r, o] of n2) {
|
|
13226
13272
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
|
13227
|
-
Reflect.defineProperty(e3, r, {
|
|
13273
|
+
Reflect.defineProperty(e3, r, __spreadProps(__spreadValues({}, o), { value: n3 }));
|
|
13228
13274
|
}
|
|
13229
13275
|
return e3;
|
|
13230
13276
|
};
|
|
@@ -13308,17 +13354,17 @@ ${o.message}` : x;
|
|
|
13308
13354
|
}
|
|
13309
13355
|
return n3;
|
|
13310
13356
|
};
|
|
13311
|
-
const getBufferedData =
|
|
13357
|
+
const getBufferedData = (e3, t3) => __async(exports, null, function* () {
|
|
13312
13358
|
if (!e3) {
|
|
13313
13359
|
return;
|
|
13314
13360
|
}
|
|
13315
13361
|
e3.destroy();
|
|
13316
13362
|
try {
|
|
13317
|
-
return
|
|
13363
|
+
return yield t3;
|
|
13318
13364
|
} catch (e4) {
|
|
13319
13365
|
return e4.bufferedData;
|
|
13320
13366
|
}
|
|
13321
|
-
};
|
|
13367
|
+
});
|
|
13322
13368
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
|
13323
13369
|
if (!e3 || !n3) {
|
|
13324
13370
|
return;
|
|
@@ -13328,16 +13374,16 @@ ${o.message}` : x;
|
|
|
13328
13374
|
}
|
|
13329
13375
|
return o.buffer(e3, { maxBuffer: r2 });
|
|
13330
13376
|
};
|
|
13331
|
-
const getSpawnedResult =
|
|
13377
|
+
const getSpawnedResult = (_0, _1, _2) => __async(exports, [_0, _1, _2], function* ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) {
|
|
13332
13378
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
13333
13379
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
13334
13380
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
|
13335
13381
|
try {
|
|
13336
|
-
return
|
|
13382
|
+
return yield Promise.all([i, a, c, d]);
|
|
13337
13383
|
} catch (r3) {
|
|
13338
13384
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
|
13339
13385
|
}
|
|
13340
|
-
};
|
|
13386
|
+
});
|
|
13341
13387
|
const validateInputSync = ({ input: e3 }) => {
|
|
13342
13388
|
if (r(e3)) {
|
|
13343
13389
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
@@ -13348,7 +13394,7 @@ ${o.message}` : x;
|
|
|
13348
13394
|
"use strict";
|
|
13349
13395
|
const { PassThrough: r } = n2(781);
|
|
13350
13396
|
e2.exports = (e3) => {
|
|
13351
|
-
e3 = {
|
|
13397
|
+
e3 = __spreadValues({}, e3);
|
|
13352
13398
|
const { array: t3 } = e3;
|
|
13353
13399
|
let { encoding: n3 } = e3;
|
|
13354
13400
|
const o = n3 === "buffer";
|
|
@@ -13397,39 +13443,41 @@ ${o.message}` : x;
|
|
|
13397
13443
|
this.name = "MaxBufferError";
|
|
13398
13444
|
}
|
|
13399
13445
|
}
|
|
13400
|
-
|
|
13401
|
-
|
|
13402
|
-
|
|
13403
|
-
|
|
13404
|
-
|
|
13405
|
-
|
|
13406
|
-
|
|
13407
|
-
|
|
13408
|
-
|
|
13409
|
-
|
|
13410
|
-
e4
|
|
13411
|
-
|
|
13412
|
-
|
|
13413
|
-
|
|
13414
|
-
|
|
13415
|
-
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
|
|
13419
|
-
|
|
13420
|
-
|
|
13421
|
-
|
|
13422
|
-
|
|
13423
|
-
|
|
13424
|
-
|
|
13425
|
-
|
|
13446
|
+
function getStream(e3, t3) {
|
|
13447
|
+
return __async(this, null, function* () {
|
|
13448
|
+
if (!e3) {
|
|
13449
|
+
throw new Error("Expected a stream");
|
|
13450
|
+
}
|
|
13451
|
+
t3 = __spreadValues({ maxBuffer: Infinity }, t3);
|
|
13452
|
+
const { maxBuffer: n3 } = t3;
|
|
13453
|
+
const o2 = i(t3);
|
|
13454
|
+
yield new Promise((t4, s2) => {
|
|
13455
|
+
const rejectPromise = (e4) => {
|
|
13456
|
+
if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
|
|
13457
|
+
e4.bufferedData = o2.getBufferedValue();
|
|
13458
|
+
}
|
|
13459
|
+
s2(e4);
|
|
13460
|
+
};
|
|
13461
|
+
(() => __async(this, null, function* () {
|
|
13462
|
+
try {
|
|
13463
|
+
yield a(e3, o2);
|
|
13464
|
+
t4();
|
|
13465
|
+
} catch (e4) {
|
|
13466
|
+
rejectPromise(e4);
|
|
13467
|
+
}
|
|
13468
|
+
}))();
|
|
13469
|
+
o2.on("data", () => {
|
|
13470
|
+
if (o2.getBufferedLength() > n3) {
|
|
13471
|
+
rejectPromise(new MaxBufferError());
|
|
13472
|
+
}
|
|
13473
|
+
});
|
|
13426
13474
|
});
|
|
13475
|
+
return o2.getBufferedValue();
|
|
13427
13476
|
});
|
|
13428
|
-
return o2.getBufferedValue();
|
|
13429
13477
|
}
|
|
13430
13478
|
e2.exports = getStream;
|
|
13431
|
-
e2.exports.buffer = (e3, t3) => getStream(e3, {
|
|
13432
|
-
e2.exports.array = (e3, t3) => getStream(e3, {
|
|
13479
|
+
e2.exports.buffer = (e3, t3) => getStream(e3, __spreadProps(__spreadValues({}, t3), { encoding: "buffer" }));
|
|
13480
|
+
e2.exports.array = (e3, t3) => getStream(e3, __spreadProps(__spreadValues({}, t3), { array: true }));
|
|
13433
13481
|
e2.exports.MaxBufferError = MaxBufferError;
|
|
13434
13482
|
}, 221: (e2, t2) => {
|
|
13435
13483
|
"use strict";
|
|
@@ -13449,7 +13497,7 @@ ${o.message}` : x;
|
|
|
13449
13497
|
return e3.reduce(getSignalByName, {});
|
|
13450
13498
|
};
|
|
13451
13499
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
|
13452
|
-
return {
|
|
13500
|
+
return __spreadProps(__spreadValues({}, e3), { [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } });
|
|
13453
13501
|
};
|
|
13454
13502
|
const i = getSignalsByName();
|
|
13455
13503
|
t2.signalsByName = i;
|
|
@@ -13681,7 +13729,7 @@ ${o.message}` : x;
|
|
|
13681
13729
|
const r = n2(17);
|
|
13682
13730
|
const o = n2(460);
|
|
13683
13731
|
const npmRunPath = (e3) => {
|
|
13684
|
-
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath,
|
|
13732
|
+
e3 = __spreadValues({ cwd: process.cwd(), path: process.env[o()], execPath: process.execPath }, e3);
|
|
13685
13733
|
let t3;
|
|
13686
13734
|
let n3 = r.resolve(e3.cwd);
|
|
13687
13735
|
const s = [];
|
|
@@ -13697,8 +13745,8 @@ ${o.message}` : x;
|
|
|
13697
13745
|
e2.exports = npmRunPath;
|
|
13698
13746
|
e2.exports["default"] = npmRunPath;
|
|
13699
13747
|
e2.exports.env = (t3) => {
|
|
13700
|
-
t3 = { env: process.env,
|
|
13701
|
-
const n3 = {
|
|
13748
|
+
t3 = __spreadValues({ env: process.env }, t3);
|
|
13749
|
+
const n3 = __spreadValues({}, t3.env);
|
|
13702
13750
|
const r2 = o({ env: n3 });
|
|
13703
13751
|
t3.path = n3[r2];
|
|
13704
13752
|
n3[r2] = e2.exports(t3);
|
|
@@ -14067,20 +14115,20 @@ ${o.message}` : x;
|
|
|
14067
14115
|
var require_json5 = __commonJS({
|
|
14068
14116
|
"../utils/compiled/json5/index.js"(exports, module2) {
|
|
14069
14117
|
(() => {
|
|
14070
|
-
var u = {
|
|
14071
|
-
const r = e2(
|
|
14072
|
-
const F = e2(
|
|
14118
|
+
var u = { 361: (u2, D2, e2) => {
|
|
14119
|
+
const r = e2(108);
|
|
14120
|
+
const F = e2(440);
|
|
14073
14121
|
const C = { parse: r, stringify: F };
|
|
14074
14122
|
u2.exports = C;
|
|
14075
|
-
},
|
|
14076
|
-
const r = e2(
|
|
14123
|
+
}, 108: (u2, D2, e2) => {
|
|
14124
|
+
const r = e2(812);
|
|
14077
14125
|
let F;
|
|
14078
14126
|
let C;
|
|
14079
14127
|
let t;
|
|
14080
14128
|
let A;
|
|
14081
14129
|
let n;
|
|
14082
|
-
let E;
|
|
14083
14130
|
let a;
|
|
14131
|
+
let E;
|
|
14084
14132
|
let i;
|
|
14085
14133
|
let B;
|
|
14086
14134
|
u2.exports = function parse(u3, D3) {
|
|
@@ -14089,14 +14137,14 @@ var require_json5 = __commonJS({
|
|
|
14089
14137
|
t = [];
|
|
14090
14138
|
A = 0;
|
|
14091
14139
|
n = 1;
|
|
14092
|
-
|
|
14093
|
-
|
|
14140
|
+
a = 0;
|
|
14141
|
+
E = void 0;
|
|
14094
14142
|
i = void 0;
|
|
14095
14143
|
B = void 0;
|
|
14096
14144
|
do {
|
|
14097
|
-
|
|
14145
|
+
E = lex();
|
|
14098
14146
|
p[C]();
|
|
14099
|
-
} while (
|
|
14147
|
+
} while (E.type !== "eof");
|
|
14100
14148
|
if (typeof D3 === "function") {
|
|
14101
14149
|
return internalize({ "": B }, "", D3);
|
|
14102
14150
|
}
|
|
@@ -14105,12 +14153,24 @@ var require_json5 = __commonJS({
|
|
|
14105
14153
|
function internalize(u3, D3, e3) {
|
|
14106
14154
|
const r2 = u3[D3];
|
|
14107
14155
|
if (r2 != null && typeof r2 === "object") {
|
|
14108
|
-
|
|
14109
|
-
|
|
14110
|
-
|
|
14111
|
-
|
|
14112
|
-
|
|
14113
|
-
|
|
14156
|
+
if (Array.isArray(r2)) {
|
|
14157
|
+
for (let u4 = 0; u4 < r2.length; u4++) {
|
|
14158
|
+
const D4 = String(u4);
|
|
14159
|
+
const F2 = internalize(r2, D4, e3);
|
|
14160
|
+
if (F2 === void 0) {
|
|
14161
|
+
delete r2[D4];
|
|
14162
|
+
} else {
|
|
14163
|
+
Object.defineProperty(r2, D4, { value: F2, writable: true, enumerable: true, configurable: true });
|
|
14164
|
+
}
|
|
14165
|
+
}
|
|
14166
|
+
} else {
|
|
14167
|
+
for (const u4 in r2) {
|
|
14168
|
+
const D4 = internalize(r2, u4, e3);
|
|
14169
|
+
if (D4 === void 0) {
|
|
14170
|
+
delete r2[u4];
|
|
14171
|
+
} else {
|
|
14172
|
+
Object.defineProperty(r2, u4, { value: D4, writable: true, enumerable: true, configurable: true });
|
|
14173
|
+
}
|
|
14114
14174
|
}
|
|
14115
14175
|
}
|
|
14116
14176
|
}
|
|
@@ -14119,15 +14179,15 @@ var require_json5 = __commonJS({
|
|
|
14119
14179
|
let s;
|
|
14120
14180
|
let c;
|
|
14121
14181
|
let o;
|
|
14122
|
-
let d;
|
|
14123
14182
|
let l;
|
|
14183
|
+
let d;
|
|
14124
14184
|
function lex() {
|
|
14125
14185
|
s = "default";
|
|
14126
14186
|
c = "";
|
|
14127
14187
|
o = false;
|
|
14128
|
-
|
|
14188
|
+
l = 1;
|
|
14129
14189
|
for (; ; ) {
|
|
14130
|
-
|
|
14190
|
+
d = peek();
|
|
14131
14191
|
const u3 = f[s]();
|
|
14132
14192
|
if (u3) {
|
|
14133
14193
|
return u3;
|
|
@@ -14143,11 +14203,11 @@ var require_json5 = __commonJS({
|
|
|
14143
14203
|
const u3 = peek();
|
|
14144
14204
|
if (u3 === "\n") {
|
|
14145
14205
|
n++;
|
|
14146
|
-
|
|
14206
|
+
a = 0;
|
|
14147
14207
|
} else if (u3) {
|
|
14148
|
-
|
|
14208
|
+
a += u3.length;
|
|
14149
14209
|
} else {
|
|
14150
|
-
|
|
14210
|
+
a++;
|
|
14151
14211
|
}
|
|
14152
14212
|
if (u3) {
|
|
14153
14213
|
A += u3.length;
|
|
@@ -14155,7 +14215,7 @@ var require_json5 = __commonJS({
|
|
|
14155
14215
|
return u3;
|
|
14156
14216
|
}
|
|
14157
14217
|
const f = { default() {
|
|
14158
|
-
switch (
|
|
14218
|
+
switch (d) {
|
|
14159
14219
|
case " ":
|
|
14160
14220
|
case "\v":
|
|
14161
14221
|
case "\f":
|
|
@@ -14176,13 +14236,13 @@ var require_json5 = __commonJS({
|
|
|
14176
14236
|
read();
|
|
14177
14237
|
return newToken("eof");
|
|
14178
14238
|
}
|
|
14179
|
-
if (r.isSpaceSeparator(
|
|
14239
|
+
if (r.isSpaceSeparator(d)) {
|
|
14180
14240
|
read();
|
|
14181
14241
|
return;
|
|
14182
14242
|
}
|
|
14183
14243
|
return f[C]();
|
|
14184
14244
|
}, comment() {
|
|
14185
|
-
switch (
|
|
14245
|
+
switch (d) {
|
|
14186
14246
|
case "*":
|
|
14187
14247
|
read();
|
|
14188
14248
|
s = "multiLineComment";
|
|
@@ -14194,7 +14254,7 @@ var require_json5 = __commonJS({
|
|
|
14194
14254
|
}
|
|
14195
14255
|
throw invalidChar(read());
|
|
14196
14256
|
}, multiLineComment() {
|
|
14197
|
-
switch (
|
|
14257
|
+
switch (d) {
|
|
14198
14258
|
case "*":
|
|
14199
14259
|
read();
|
|
14200
14260
|
s = "multiLineCommentAsterisk";
|
|
@@ -14204,7 +14264,7 @@ var require_json5 = __commonJS({
|
|
|
14204
14264
|
}
|
|
14205
14265
|
read();
|
|
14206
14266
|
}, multiLineCommentAsterisk() {
|
|
14207
|
-
switch (
|
|
14267
|
+
switch (d) {
|
|
14208
14268
|
case "*":
|
|
14209
14269
|
read();
|
|
14210
14270
|
return;
|
|
@@ -14218,7 +14278,7 @@ var require_json5 = __commonJS({
|
|
|
14218
14278
|
read();
|
|
14219
14279
|
s = "multiLineComment";
|
|
14220
14280
|
}, singleLineComment() {
|
|
14221
|
-
switch (
|
|
14281
|
+
switch (d) {
|
|
14222
14282
|
case "\n":
|
|
14223
14283
|
case "\r":
|
|
14224
14284
|
case "\u2028":
|
|
@@ -14232,7 +14292,7 @@ var require_json5 = __commonJS({
|
|
|
14232
14292
|
}
|
|
14233
14293
|
read();
|
|
14234
14294
|
}, value() {
|
|
14235
|
-
switch (
|
|
14295
|
+
switch (d) {
|
|
14236
14296
|
case "{":
|
|
14237
14297
|
case "[":
|
|
14238
14298
|
return newToken("punctuator", read());
|
|
@@ -14251,7 +14311,7 @@ var require_json5 = __commonJS({
|
|
|
14251
14311
|
case "-":
|
|
14252
14312
|
case "+":
|
|
14253
14313
|
if (read() === "-") {
|
|
14254
|
-
|
|
14314
|
+
l = -1;
|
|
14255
14315
|
}
|
|
14256
14316
|
s = "sign";
|
|
14257
14317
|
return;
|
|
@@ -14292,7 +14352,7 @@ var require_json5 = __commonJS({
|
|
|
14292
14352
|
}
|
|
14293
14353
|
throw invalidChar(read());
|
|
14294
14354
|
}, identifierNameStartEscape() {
|
|
14295
|
-
if (
|
|
14355
|
+
if (d !== "u") {
|
|
14296
14356
|
throw invalidChar(read());
|
|
14297
14357
|
}
|
|
14298
14358
|
read();
|
|
@@ -14310,7 +14370,7 @@ var require_json5 = __commonJS({
|
|
|
14310
14370
|
c += u3;
|
|
14311
14371
|
s = "identifierName";
|
|
14312
14372
|
}, identifierName() {
|
|
14313
|
-
switch (
|
|
14373
|
+
switch (d) {
|
|
14314
14374
|
case "$":
|
|
14315
14375
|
case "_":
|
|
14316
14376
|
case "":
|
|
@@ -14322,13 +14382,13 @@ var require_json5 = __commonJS({
|
|
|
14322
14382
|
s = "identifierNameEscape";
|
|
14323
14383
|
return;
|
|
14324
14384
|
}
|
|
14325
|
-
if (r.isIdContinueChar(
|
|
14385
|
+
if (r.isIdContinueChar(d)) {
|
|
14326
14386
|
c += read();
|
|
14327
14387
|
return;
|
|
14328
14388
|
}
|
|
14329
14389
|
return newToken("identifier", c);
|
|
14330
14390
|
}, identifierNameEscape() {
|
|
14331
|
-
if (
|
|
14391
|
+
if (d !== "u") {
|
|
14332
14392
|
throw invalidChar(read());
|
|
14333
14393
|
}
|
|
14334
14394
|
read();
|
|
@@ -14348,7 +14408,7 @@ var require_json5 = __commonJS({
|
|
|
14348
14408
|
c += u3;
|
|
14349
14409
|
s = "identifierName";
|
|
14350
14410
|
}, sign() {
|
|
14351
|
-
switch (
|
|
14411
|
+
switch (d) {
|
|
14352
14412
|
case ".":
|
|
14353
14413
|
c = read();
|
|
14354
14414
|
s = "decimalPointLeading";
|
|
@@ -14372,7 +14432,7 @@ var require_json5 = __commonJS({
|
|
|
14372
14432
|
case "I":
|
|
14373
14433
|
read();
|
|
14374
14434
|
literal("nfinity");
|
|
14375
|
-
return newToken("numeric",
|
|
14435
|
+
return newToken("numeric", l * Infinity);
|
|
14376
14436
|
case "N":
|
|
14377
14437
|
read();
|
|
14378
14438
|
literal("aN");
|
|
@@ -14380,7 +14440,7 @@ var require_json5 = __commonJS({
|
|
|
14380
14440
|
}
|
|
14381
14441
|
throw invalidChar(read());
|
|
14382
14442
|
}, zero() {
|
|
14383
|
-
switch (
|
|
14443
|
+
switch (d) {
|
|
14384
14444
|
case ".":
|
|
14385
14445
|
c += read();
|
|
14386
14446
|
s = "decimalPoint";
|
|
@@ -14396,9 +14456,9 @@ var require_json5 = __commonJS({
|
|
|
14396
14456
|
s = "hexadecimal";
|
|
14397
14457
|
return;
|
|
14398
14458
|
}
|
|
14399
|
-
return newToken("numeric",
|
|
14459
|
+
return newToken("numeric", l * 0);
|
|
14400
14460
|
}, decimalInteger() {
|
|
14401
|
-
switch (
|
|
14461
|
+
switch (d) {
|
|
14402
14462
|
case ".":
|
|
14403
14463
|
c += read();
|
|
14404
14464
|
s = "decimalPoint";
|
|
@@ -14409,87 +14469,87 @@ var require_json5 = __commonJS({
|
|
|
14409
14469
|
s = "decimalExponent";
|
|
14410
14470
|
return;
|
|
14411
14471
|
}
|
|
14412
|
-
if (r.isDigit(
|
|
14472
|
+
if (r.isDigit(d)) {
|
|
14413
14473
|
c += read();
|
|
14414
14474
|
return;
|
|
14415
14475
|
}
|
|
14416
|
-
return newToken("numeric",
|
|
14476
|
+
return newToken("numeric", l * Number(c));
|
|
14417
14477
|
}, decimalPointLeading() {
|
|
14418
|
-
if (r.isDigit(
|
|
14478
|
+
if (r.isDigit(d)) {
|
|
14419
14479
|
c += read();
|
|
14420
14480
|
s = "decimalFraction";
|
|
14421
14481
|
return;
|
|
14422
14482
|
}
|
|
14423
14483
|
throw invalidChar(read());
|
|
14424
14484
|
}, decimalPoint() {
|
|
14425
|
-
switch (
|
|
14485
|
+
switch (d) {
|
|
14426
14486
|
case "e":
|
|
14427
14487
|
case "E":
|
|
14428
14488
|
c += read();
|
|
14429
14489
|
s = "decimalExponent";
|
|
14430
14490
|
return;
|
|
14431
14491
|
}
|
|
14432
|
-
if (r.isDigit(
|
|
14492
|
+
if (r.isDigit(d)) {
|
|
14433
14493
|
c += read();
|
|
14434
14494
|
s = "decimalFraction";
|
|
14435
14495
|
return;
|
|
14436
14496
|
}
|
|
14437
|
-
return newToken("numeric",
|
|
14497
|
+
return newToken("numeric", l * Number(c));
|
|
14438
14498
|
}, decimalFraction() {
|
|
14439
|
-
switch (
|
|
14499
|
+
switch (d) {
|
|
14440
14500
|
case "e":
|
|
14441
14501
|
case "E":
|
|
14442
14502
|
c += read();
|
|
14443
14503
|
s = "decimalExponent";
|
|
14444
14504
|
return;
|
|
14445
14505
|
}
|
|
14446
|
-
if (r.isDigit(
|
|
14506
|
+
if (r.isDigit(d)) {
|
|
14447
14507
|
c += read();
|
|
14448
14508
|
return;
|
|
14449
14509
|
}
|
|
14450
|
-
return newToken("numeric",
|
|
14510
|
+
return newToken("numeric", l * Number(c));
|
|
14451
14511
|
}, decimalExponent() {
|
|
14452
|
-
switch (
|
|
14512
|
+
switch (d) {
|
|
14453
14513
|
case "+":
|
|
14454
14514
|
case "-":
|
|
14455
14515
|
c += read();
|
|
14456
14516
|
s = "decimalExponentSign";
|
|
14457
14517
|
return;
|
|
14458
14518
|
}
|
|
14459
|
-
if (r.isDigit(
|
|
14519
|
+
if (r.isDigit(d)) {
|
|
14460
14520
|
c += read();
|
|
14461
14521
|
s = "decimalExponentInteger";
|
|
14462
14522
|
return;
|
|
14463
14523
|
}
|
|
14464
14524
|
throw invalidChar(read());
|
|
14465
14525
|
}, decimalExponentSign() {
|
|
14466
|
-
if (r.isDigit(
|
|
14526
|
+
if (r.isDigit(d)) {
|
|
14467
14527
|
c += read();
|
|
14468
14528
|
s = "decimalExponentInteger";
|
|
14469
14529
|
return;
|
|
14470
14530
|
}
|
|
14471
14531
|
throw invalidChar(read());
|
|
14472
14532
|
}, decimalExponentInteger() {
|
|
14473
|
-
if (r.isDigit(
|
|
14533
|
+
if (r.isDigit(d)) {
|
|
14474
14534
|
c += read();
|
|
14475
14535
|
return;
|
|
14476
14536
|
}
|
|
14477
|
-
return newToken("numeric",
|
|
14537
|
+
return newToken("numeric", l * Number(c));
|
|
14478
14538
|
}, hexadecimal() {
|
|
14479
|
-
if (r.isHexDigit(
|
|
14539
|
+
if (r.isHexDigit(d)) {
|
|
14480
14540
|
c += read();
|
|
14481
14541
|
s = "hexadecimalInteger";
|
|
14482
14542
|
return;
|
|
14483
14543
|
}
|
|
14484
14544
|
throw invalidChar(read());
|
|
14485
14545
|
}, hexadecimalInteger() {
|
|
14486
|
-
if (r.isHexDigit(
|
|
14546
|
+
if (r.isHexDigit(d)) {
|
|
14487
14547
|
c += read();
|
|
14488
14548
|
return;
|
|
14489
14549
|
}
|
|
14490
|
-
return newToken("numeric",
|
|
14550
|
+
return newToken("numeric", l * Number(c));
|
|
14491
14551
|
}, string() {
|
|
14492
|
-
switch (
|
|
14552
|
+
switch (d) {
|
|
14493
14553
|
case "\\":
|
|
14494
14554
|
read();
|
|
14495
14555
|
c += escape();
|
|
@@ -14513,21 +14573,21 @@ var require_json5 = __commonJS({
|
|
|
14513
14573
|
throw invalidChar(read());
|
|
14514
14574
|
case "\u2028":
|
|
14515
14575
|
case "\u2029":
|
|
14516
|
-
separatorChar(
|
|
14576
|
+
separatorChar(d);
|
|
14517
14577
|
break;
|
|
14518
14578
|
case void 0:
|
|
14519
14579
|
throw invalidChar(read());
|
|
14520
14580
|
}
|
|
14521
14581
|
c += read();
|
|
14522
14582
|
}, start() {
|
|
14523
|
-
switch (
|
|
14583
|
+
switch (d) {
|
|
14524
14584
|
case "{":
|
|
14525
14585
|
case "[":
|
|
14526
14586
|
return newToken("punctuator", read());
|
|
14527
14587
|
}
|
|
14528
14588
|
s = "value";
|
|
14529
14589
|
}, beforePropertyName() {
|
|
14530
|
-
switch (
|
|
14590
|
+
switch (d) {
|
|
14531
14591
|
case "$":
|
|
14532
14592
|
case "_":
|
|
14533
14593
|
c = read();
|
|
@@ -14545,33 +14605,33 @@ var require_json5 = __commonJS({
|
|
|
14545
14605
|
s = "string";
|
|
14546
14606
|
return;
|
|
14547
14607
|
}
|
|
14548
|
-
if (r.isIdStartChar(
|
|
14608
|
+
if (r.isIdStartChar(d)) {
|
|
14549
14609
|
c += read();
|
|
14550
14610
|
s = "identifierName";
|
|
14551
14611
|
return;
|
|
14552
14612
|
}
|
|
14553
14613
|
throw invalidChar(read());
|
|
14554
14614
|
}, afterPropertyName() {
|
|
14555
|
-
if (
|
|
14615
|
+
if (d === ":") {
|
|
14556
14616
|
return newToken("punctuator", read());
|
|
14557
14617
|
}
|
|
14558
14618
|
throw invalidChar(read());
|
|
14559
14619
|
}, beforePropertyValue() {
|
|
14560
14620
|
s = "value";
|
|
14561
14621
|
}, afterPropertyValue() {
|
|
14562
|
-
switch (
|
|
14622
|
+
switch (d) {
|
|
14563
14623
|
case ",":
|
|
14564
14624
|
case "}":
|
|
14565
14625
|
return newToken("punctuator", read());
|
|
14566
14626
|
}
|
|
14567
14627
|
throw invalidChar(read());
|
|
14568
14628
|
}, beforeArrayValue() {
|
|
14569
|
-
if (
|
|
14629
|
+
if (d === "]") {
|
|
14570
14630
|
return newToken("punctuator", read());
|
|
14571
14631
|
}
|
|
14572
14632
|
s = "value";
|
|
14573
14633
|
}, afterArrayValue() {
|
|
14574
|
-
switch (
|
|
14634
|
+
switch (d) {
|
|
14575
14635
|
case ",":
|
|
14576
14636
|
case "]":
|
|
14577
14637
|
return newToken("punctuator", read());
|
|
@@ -14581,7 +14641,7 @@ var require_json5 = __commonJS({
|
|
|
14581
14641
|
throw invalidChar(read());
|
|
14582
14642
|
} };
|
|
14583
14643
|
function newToken(u3, D3) {
|
|
14584
|
-
return { type: u3, value: D3, line: n, column:
|
|
14644
|
+
return { type: u3, value: D3, line: n, column: a };
|
|
14585
14645
|
}
|
|
14586
14646
|
function literal(u3) {
|
|
14587
14647
|
for (const D3 of u3) {
|
|
@@ -14678,15 +14738,15 @@ var require_json5 = __commonJS({
|
|
|
14678
14738
|
return String.fromCodePoint(parseInt(u3, 16));
|
|
14679
14739
|
}
|
|
14680
14740
|
const p = { start() {
|
|
14681
|
-
if (
|
|
14741
|
+
if (E.type === "eof") {
|
|
14682
14742
|
throw invalidEOF();
|
|
14683
14743
|
}
|
|
14684
14744
|
push();
|
|
14685
14745
|
}, beforePropertyName() {
|
|
14686
|
-
switch (
|
|
14746
|
+
switch (E.type) {
|
|
14687
14747
|
case "identifier":
|
|
14688
14748
|
case "string":
|
|
14689
|
-
i =
|
|
14749
|
+
i = E.value;
|
|
14690
14750
|
C = "afterPropertyName";
|
|
14691
14751
|
return;
|
|
14692
14752
|
case "punctuator":
|
|
@@ -14696,29 +14756,29 @@ var require_json5 = __commonJS({
|
|
|
14696
14756
|
throw invalidEOF();
|
|
14697
14757
|
}
|
|
14698
14758
|
}, afterPropertyName() {
|
|
14699
|
-
if (
|
|
14759
|
+
if (E.type === "eof") {
|
|
14700
14760
|
throw invalidEOF();
|
|
14701
14761
|
}
|
|
14702
14762
|
C = "beforePropertyValue";
|
|
14703
14763
|
}, beforePropertyValue() {
|
|
14704
|
-
if (
|
|
14764
|
+
if (E.type === "eof") {
|
|
14705
14765
|
throw invalidEOF();
|
|
14706
14766
|
}
|
|
14707
14767
|
push();
|
|
14708
14768
|
}, beforeArrayValue() {
|
|
14709
|
-
if (
|
|
14769
|
+
if (E.type === "eof") {
|
|
14710
14770
|
throw invalidEOF();
|
|
14711
14771
|
}
|
|
14712
|
-
if (
|
|
14772
|
+
if (E.type === "punctuator" && E.value === "]") {
|
|
14713
14773
|
pop();
|
|
14714
14774
|
return;
|
|
14715
14775
|
}
|
|
14716
14776
|
push();
|
|
14717
14777
|
}, afterPropertyValue() {
|
|
14718
|
-
if (
|
|
14778
|
+
if (E.type === "eof") {
|
|
14719
14779
|
throw invalidEOF();
|
|
14720
14780
|
}
|
|
14721
|
-
switch (
|
|
14781
|
+
switch (E.value) {
|
|
14722
14782
|
case ",":
|
|
14723
14783
|
C = "beforePropertyName";
|
|
14724
14784
|
return;
|
|
@@ -14726,10 +14786,10 @@ var require_json5 = __commonJS({
|
|
|
14726
14786
|
pop();
|
|
14727
14787
|
}
|
|
14728
14788
|
}, afterArrayValue() {
|
|
14729
|
-
if (
|
|
14789
|
+
if (E.type === "eof") {
|
|
14730
14790
|
throw invalidEOF();
|
|
14731
14791
|
}
|
|
14732
|
-
switch (
|
|
14792
|
+
switch (E.value) {
|
|
14733
14793
|
case ",":
|
|
14734
14794
|
C = "beforeArrayValue";
|
|
14735
14795
|
return;
|
|
@@ -14740,9 +14800,9 @@ var require_json5 = __commonJS({
|
|
|
14740
14800
|
} };
|
|
14741
14801
|
function push() {
|
|
14742
14802
|
let u3;
|
|
14743
|
-
switch (
|
|
14803
|
+
switch (E.type) {
|
|
14744
14804
|
case "punctuator":
|
|
14745
|
-
switch (
|
|
14805
|
+
switch (E.value) {
|
|
14746
14806
|
case "{":
|
|
14747
14807
|
u3 = {};
|
|
14748
14808
|
break;
|
|
@@ -14755,7 +14815,7 @@ var require_json5 = __commonJS({
|
|
|
14755
14815
|
case "boolean":
|
|
14756
14816
|
case "numeric":
|
|
14757
14817
|
case "string":
|
|
14758
|
-
u3 =
|
|
14818
|
+
u3 = E.value;
|
|
14759
14819
|
break;
|
|
14760
14820
|
}
|
|
14761
14821
|
if (B === void 0) {
|
|
@@ -14765,7 +14825,7 @@ var require_json5 = __commonJS({
|
|
|
14765
14825
|
if (Array.isArray(D3)) {
|
|
14766
14826
|
D3.push(u3);
|
|
14767
14827
|
} else {
|
|
14768
|
-
D3
|
|
14828
|
+
Object.defineProperty(D3, i, { value: u3, writable: true, enumerable: true, configurable: true });
|
|
14769
14829
|
}
|
|
14770
14830
|
}
|
|
14771
14831
|
if (u3 !== null && typeof u3 === "object") {
|
|
@@ -14799,16 +14859,16 @@ var require_json5 = __commonJS({
|
|
|
14799
14859
|
}
|
|
14800
14860
|
function invalidChar(u3) {
|
|
14801
14861
|
if (u3 === void 0) {
|
|
14802
|
-
return syntaxError(`JSON5: invalid end of input at ${n}:${
|
|
14862
|
+
return syntaxError(`JSON5: invalid end of input at ${n}:${a}`);
|
|
14803
14863
|
}
|
|
14804
|
-
return syntaxError(`JSON5: invalid character '${formatChar(u3)}' at ${n}:${
|
|
14864
|
+
return syntaxError(`JSON5: invalid character '${formatChar(u3)}' at ${n}:${a}`);
|
|
14805
14865
|
}
|
|
14806
14866
|
function invalidEOF() {
|
|
14807
|
-
return syntaxError(`JSON5: invalid end of input at ${n}:${
|
|
14867
|
+
return syntaxError(`JSON5: invalid end of input at ${n}:${a}`);
|
|
14808
14868
|
}
|
|
14809
14869
|
function invalidIdentifier() {
|
|
14810
|
-
|
|
14811
|
-
return syntaxError(`JSON5: invalid identifier character at ${n}:${
|
|
14870
|
+
a -= 5;
|
|
14871
|
+
return syntaxError(`JSON5: invalid identifier character at ${n}:${a}`);
|
|
14812
14872
|
}
|
|
14813
14873
|
function separatorChar(u3) {
|
|
14814
14874
|
console.warn(`JSON5: '${formatChar(u3)}' in strings is not valid ECMAScript; consider escaping`);
|
|
@@ -14827,21 +14887,21 @@ var require_json5 = __commonJS({
|
|
|
14827
14887
|
function syntaxError(u3) {
|
|
14828
14888
|
const D3 = new SyntaxError(u3);
|
|
14829
14889
|
D3.lineNumber = n;
|
|
14830
|
-
D3.columnNumber =
|
|
14890
|
+
D3.columnNumber = a;
|
|
14831
14891
|
return D3;
|
|
14832
14892
|
}
|
|
14833
|
-
},
|
|
14834
|
-
const r = e2(
|
|
14893
|
+
}, 440: (u2, D2, e2) => {
|
|
14894
|
+
const r = e2(812);
|
|
14835
14895
|
u2.exports = function stringify(u3, D3, e3) {
|
|
14836
14896
|
const F = [];
|
|
14837
14897
|
let C = "";
|
|
14838
14898
|
let t;
|
|
14839
14899
|
let A;
|
|
14840
14900
|
let n = "";
|
|
14841
|
-
let
|
|
14901
|
+
let a;
|
|
14842
14902
|
if (D3 != null && typeof D3 === "object" && !Array.isArray(D3)) {
|
|
14843
14903
|
e3 = D3.space;
|
|
14844
|
-
|
|
14904
|
+
a = D3.quote;
|
|
14845
14905
|
D3 = D3.replacer;
|
|
14846
14906
|
}
|
|
14847
14907
|
if (typeof D3 === "function") {
|
|
@@ -14941,7 +15001,7 @@ var require_json5 = __commonJS({
|
|
|
14941
15001
|
}
|
|
14942
15002
|
F2 += t2;
|
|
14943
15003
|
}
|
|
14944
|
-
const C2 =
|
|
15004
|
+
const C2 = a || Object.keys(D4).reduce((u5, e5) => D4[u5] < D4[e5] ? u5 : e5);
|
|
14945
15005
|
F2 = F2.replace(new RegExp(C2, "g"), e4[C2]);
|
|
14946
15006
|
return C2 + F2 + C2;
|
|
14947
15007
|
}
|
|
@@ -15028,12 +15088,12 @@ var require_json5 = __commonJS({
|
|
|
15028
15088
|
return r2;
|
|
15029
15089
|
}
|
|
15030
15090
|
};
|
|
15031
|
-
},
|
|
15091
|
+
}, 271: (u2) => {
|
|
15032
15092
|
u2.exports.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
15033
15093
|
u2.exports.ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;
|
|
15034
15094
|
u2.exports.ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;
|
|
15035
|
-
},
|
|
15036
|
-
const r = e2(
|
|
15095
|
+
}, 812: (u2, D2, e2) => {
|
|
15096
|
+
const r = e2(271);
|
|
15037
15097
|
u2.exports = { isSpaceSeparator(u3) {
|
|
15038
15098
|
return typeof u3 === "string" && r.Space_Separator.test(u3);
|
|
15039
15099
|
}, isIdStartChar(u3) {
|
|
@@ -15065,7 +15125,7 @@ var require_json5 = __commonJS({
|
|
|
15065
15125
|
}
|
|
15066
15126
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
15067
15127
|
__nccwpck_require__.ab = __dirname + "/";
|
|
15068
|
-
var e = __nccwpck_require__(
|
|
15128
|
+
var e = __nccwpck_require__(361);
|
|
15069
15129
|
module2.exports = e;
|
|
15070
15130
|
})();
|
|
15071
15131
|
}
|
|
@@ -15095,7 +15155,7 @@ var require_upath = __commonJS({
|
|
|
15095
15155
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
|
15096
15156
|
p = function(e3) {
|
|
15097
15157
|
e3 = e3.replace(/\\/g, "/");
|
|
15098
|
-
e3 = e3.replace(
|
|
15158
|
+
e3 = e3.replace(new RegExp("(?<!^)\\/+", "g"), "/");
|
|
15099
15159
|
return e3;
|
|
15100
15160
|
};
|
|
15101
15161
|
for (c in o) {
|
|
@@ -15391,7 +15451,9 @@ var require_pkg_up = __commonJS({
|
|
|
15391
15451
|
};
|
|
15392
15452
|
}, 800: (e2, r2, n2) => {
|
|
15393
15453
|
const t = n2(485);
|
|
15394
|
-
e2.exports =
|
|
15454
|
+
e2.exports = (..._0) => __async(exports, [..._0], function* ({ cwd: e3 } = {}) {
|
|
15455
|
+
return t("package.json", { cwd: e3 });
|
|
15456
|
+
});
|
|
15395
15457
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
|
15396
15458
|
}, 147: (e2) => {
|
|
15397
15459
|
e2.exports = require("fs");
|
|
@@ -23880,7 +23942,7 @@ var require_fast_glob = __commonJS({
|
|
|
23880
23942
|
}
|
|
23881
23943
|
if (t4.nodes && t4.ranges > 0) {
|
|
23882
23944
|
let r4 = s.reduce(t4.nodes);
|
|
23883
|
-
let i2 = n(...r4, {
|
|
23945
|
+
let i2 = n(...r4, __spreadProps(__spreadValues({}, e3), { wrap: false, toRegex: true }));
|
|
23884
23946
|
if (i2.length !== 0) {
|
|
23885
23947
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
|
23886
23948
|
}
|
|
@@ -24306,11 +24368,13 @@ var require_fast_glob = __commonJS({
|
|
|
24306
24368
|
const a = r2(1066);
|
|
24307
24369
|
const u = r2(7190);
|
|
24308
24370
|
const c = r2(3828);
|
|
24309
|
-
|
|
24310
|
-
|
|
24311
|
-
|
|
24312
|
-
|
|
24313
|
-
|
|
24371
|
+
function FastGlob(t3, e3) {
|
|
24372
|
+
return __async(this, null, function* () {
|
|
24373
|
+
assertPatternsInput(t3);
|
|
24374
|
+
const r3 = getWorks(t3, i.default, e3);
|
|
24375
|
+
const n2 = yield Promise.all(r3);
|
|
24376
|
+
return c.array.flatten(n2);
|
|
24377
|
+
});
|
|
24314
24378
|
}
|
|
24315
24379
|
(function(t3) {
|
|
24316
24380
|
function sync(t4, e3) {
|
|
@@ -25481,7 +25545,7 @@ var require_fast_glob = __commonJS({
|
|
|
25481
25545
|
};
|
|
25482
25546
|
const toRange = (t3, e3, r3, n2) => {
|
|
25483
25547
|
if (r3) {
|
|
25484
|
-
return s(t3, e3, { wrap: false,
|
|
25548
|
+
return s(t3, e3, __spreadValues({ wrap: false }, n2));
|
|
25485
25549
|
}
|
|
25486
25550
|
let i = String.fromCharCode(t3);
|
|
25487
25551
|
if (t3 === e3)
|
|
@@ -25547,7 +25611,7 @@ var require_fast_glob = __commonJS({
|
|
|
25547
25611
|
g++;
|
|
25548
25612
|
}
|
|
25549
25613
|
if (n2.toRegex === true) {
|
|
25550
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false,
|
|
25614
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, __spreadValues({ wrap: false }, n2));
|
|
25551
25615
|
}
|
|
25552
25616
|
return _;
|
|
25553
25617
|
};
|
|
@@ -25589,7 +25653,7 @@ var require_fast_glob = __commonJS({
|
|
|
25589
25653
|
if (isObject2(r3)) {
|
|
25590
25654
|
return fill(t3, e3, 0, r3);
|
|
25591
25655
|
}
|
|
25592
|
-
let s2 = {
|
|
25656
|
+
let s2 = __spreadValues({}, n2);
|
|
25593
25657
|
if (s2.capture === true)
|
|
25594
25658
|
s2.wrap = true;
|
|
25595
25659
|
r3 = r3 || s2.step || 1;
|
|
@@ -25913,7 +25977,7 @@ var require_fast_glob = __commonJS({
|
|
|
25913
25977
|
}
|
|
25914
25978
|
};
|
|
25915
25979
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
25916
|
-
let u2 = i(String(e3[o3]), {
|
|
25980
|
+
let u2 = i(String(e3[o3]), __spreadProps(__spreadValues({}, r3), { onResult }), true);
|
|
25917
25981
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
|
25918
25982
|
if (c2)
|
|
25919
25983
|
a++;
|
|
@@ -25955,7 +26019,7 @@ var require_fast_glob = __commonJS({
|
|
|
25955
26019
|
r3.onResult(t4);
|
|
25956
26020
|
s2.push(t4.output);
|
|
25957
26021
|
};
|
|
25958
|
-
let i2 = new Set(micromatch(t3, e3, {
|
|
26022
|
+
let i2 = new Set(micromatch(t3, e3, __spreadProps(__spreadValues({}, r3), { onResult })));
|
|
25959
26023
|
for (let t4 of s2) {
|
|
25960
26024
|
if (!i2.has(t4)) {
|
|
25961
26025
|
n2.add(t4);
|
|
@@ -25978,7 +26042,7 @@ var require_fast_glob = __commonJS({
|
|
|
25978
26042
|
return true;
|
|
25979
26043
|
}
|
|
25980
26044
|
}
|
|
25981
|
-
return micromatch.isMatch(t3, e3, {
|
|
26045
|
+
return micromatch.isMatch(t3, e3, __spreadProps(__spreadValues({}, r3), { contains: true }));
|
|
25982
26046
|
};
|
|
25983
26047
|
micromatch.matchKeys = (t3, e3, r3) => {
|
|
25984
26048
|
if (!o.isObject(t3)) {
|
|
@@ -26018,7 +26082,7 @@ var require_fast_glob = __commonJS({
|
|
|
26018
26082
|
};
|
|
26019
26083
|
micromatch.capture = (t3, e3, r3) => {
|
|
26020
26084
|
let n2 = o.isWindows(r3);
|
|
26021
|
-
let s2 = i.makeRe(String(t3), {
|
|
26085
|
+
let s2 = i.makeRe(String(t3), __spreadProps(__spreadValues({}, r3), { capture: true }));
|
|
26022
26086
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
|
26023
26087
|
if (a) {
|
|
26024
26088
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
|
@@ -26046,7 +26110,7 @@ var require_fast_glob = __commonJS({
|
|
|
26046
26110
|
micromatch.braceExpand = (t3, e3) => {
|
|
26047
26111
|
if (typeof t3 !== "string")
|
|
26048
26112
|
throw new TypeError("Expected a string");
|
|
26049
|
-
return micromatch.braces(t3, {
|
|
26113
|
+
return micromatch.braces(t3, __spreadProps(__spreadValues({}, e3), { expand: true }));
|
|
26050
26114
|
};
|
|
26051
26115
|
t2.exports = micromatch;
|
|
26052
26116
|
}, 376: (t2, e2, r2) => {
|
|
@@ -26073,7 +26137,7 @@ var require_fast_glob = __commonJS({
|
|
|
26073
26137
|
const m = `[^.${c}]`;
|
|
26074
26138
|
const v = `${f}*?`;
|
|
26075
26139
|
const E = { DOT_LITERAL: o, PLUS_LITERAL: a, QMARK_LITERAL: u, SLASH_LITERAL: c, ONE_CHAR: l, QMARK: f, END_ANCHOR: p, DOTS_SLASH: d, NO_DOT: _, NO_DOTS: g, NO_DOT_SLASH: y, NO_DOTS_SLASH: S, QMARK_NO_DOT: m, STAR: v, START_ANCHOR: h };
|
|
26076
|
-
const A = {
|
|
26140
|
+
const A = __spreadProps(__spreadValues({}, E), { SLASH_LITERAL: `[${s}]`, QMARK: i, STAR: `${i}*?`, DOTS_SLASH: `${o}{1,2}(?:[${s}]|$)`, NO_DOT: `(?!${o})`, NO_DOTS: `(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`, NO_DOT_SLASH: `(?!${o}{0,1}(?:[${s}]|$))`, NO_DOTS_SLASH: `(?!${o}{1,2}(?:[${s}]|$))`, QMARK_NO_DOT: `[^.${s}]`, START_ANCHOR: `(?:^|[${s}])`, END_ANCHOR: `(?:[${s}]|$)` });
|
|
26077
26141
|
const b = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
|
|
26078
26142
|
t2.exports = { MAX_LENGTH: 1024 * 64, POSIX_REGEX_SOURCE: b, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, SEP: n.sep, extglobChars(t3) {
|
|
26079
26143
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
|
@@ -26104,7 +26168,7 @@ var require_fast_glob = __commonJS({
|
|
|
26104
26168
|
throw new TypeError("Expected a string");
|
|
26105
26169
|
}
|
|
26106
26170
|
t3 = c[t3] || t3;
|
|
26107
|
-
const r3 = {
|
|
26171
|
+
const r3 = __spreadValues({}, e3);
|
|
26108
26172
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
26109
26173
|
let f = t3.length;
|
|
26110
26174
|
if (f > l) {
|
|
@@ -26196,7 +26260,7 @@ var require_fast_glob = __commonJS({
|
|
|
26196
26260
|
M = t4;
|
|
26197
26261
|
};
|
|
26198
26262
|
const extglobOpen = (t4, e4) => {
|
|
26199
|
-
const n2 = {
|
|
26263
|
+
const n2 = __spreadProps(__spreadValues({}, y[e4]), { conditions: 1, inner: "" });
|
|
26200
26264
|
n2.prev = M;
|
|
26201
26265
|
n2.parens = H.parens;
|
|
26202
26266
|
n2.output = H.output;
|
|
@@ -26218,7 +26282,7 @@ var require_fast_glob = __commonJS({
|
|
|
26218
26282
|
n2 = t4.close = `)$))${i2}`;
|
|
26219
26283
|
}
|
|
26220
26284
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
|
26221
|
-
const r4 = parse(s2, {
|
|
26285
|
+
const r4 = parse(s2, __spreadProps(__spreadValues({}, e3), { fastpaths: false })).output;
|
|
26222
26286
|
n2 = t4.close = `)${r4})${i2})`;
|
|
26223
26287
|
}
|
|
26224
26288
|
if (t4.prev.type === "bos") {
|
|
@@ -26740,7 +26804,7 @@ var require_fast_glob = __commonJS({
|
|
|
26740
26804
|
return H;
|
|
26741
26805
|
};
|
|
26742
26806
|
parse.fastpaths = (t3, e3) => {
|
|
26743
|
-
const r3 = {
|
|
26807
|
+
const r3 = __spreadValues({}, e3);
|
|
26744
26808
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
26745
26809
|
const a2 = t3.length;
|
|
26746
26810
|
if (a2 > o2) {
|
|
@@ -26831,7 +26895,7 @@ var require_fast_glob = __commonJS({
|
|
|
26831
26895
|
delete a2.state;
|
|
26832
26896
|
let isIgnored = () => false;
|
|
26833
26897
|
if (s2.ignore) {
|
|
26834
|
-
const t4 = {
|
|
26898
|
+
const t4 = __spreadProps(__spreadValues({}, e3), { ignore: null, onMatch: null, onResult: null });
|
|
26835
26899
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
|
26836
26900
|
}
|
|
26837
26901
|
const matcher = (r4, n3 = false) => {
|
|
@@ -26893,7 +26957,7 @@ var require_fast_glob = __commonJS({
|
|
|
26893
26957
|
picomatch.parse = (t3, e3) => {
|
|
26894
26958
|
if (Array.isArray(t3))
|
|
26895
26959
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
|
26896
|
-
return i(t3, {
|
|
26960
|
+
return i(t3, __spreadProps(__spreadValues({}, e3), { fastpaths: false }));
|
|
26897
26961
|
};
|
|
26898
26962
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
|
26899
26963
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
|
@@ -27358,7 +27422,7 @@ var require_fast_glob = __commonJS({
|
|
|
27358
27422
|
if (n(e3) === false) {
|
|
27359
27423
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
27360
27424
|
}
|
|
27361
|
-
let s = { relaxZeros: true,
|
|
27425
|
+
let s = __spreadValues({ relaxZeros: true }, r3);
|
|
27362
27426
|
if (typeof s.strictZeros === "boolean") {
|
|
27363
27427
|
s.relaxZeros = s.strictZeros === false;
|
|
27364
27428
|
}
|
|
@@ -27636,19 +27700,19 @@ var require_globby = __commonJS({
|
|
|
27636
27700
|
}
|
|
27637
27701
|
return [n.posix.join(t3, "**")];
|
|
27638
27702
|
};
|
|
27639
|
-
t2.exports =
|
|
27640
|
-
e3 = { cwd: process.cwd(),
|
|
27703
|
+
t2.exports = (t3, e3) => __async(exports, null, function* () {
|
|
27704
|
+
e3 = __spreadValues({ cwd: process.cwd() }, e3);
|
|
27641
27705
|
if (typeof e3.cwd !== "string") {
|
|
27642
27706
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
27643
27707
|
}
|
|
27644
|
-
const r3 =
|
|
27645
|
-
const r4 =
|
|
27708
|
+
const r3 = yield Promise.all([].concat(t3).map((t4) => __async(exports, null, function* () {
|
|
27709
|
+
const r4 = yield s.isDirectory(getPath(t4, e3.cwd));
|
|
27646
27710
|
return r4 ? getGlob(t4, e3) : t4;
|
|
27647
|
-
}));
|
|
27711
|
+
})));
|
|
27648
27712
|
return [].concat.apply([], r3);
|
|
27649
|
-
};
|
|
27713
|
+
});
|
|
27650
27714
|
t2.exports.sync = (t3, e3) => {
|
|
27651
|
-
e3 = { cwd: process.cwd(),
|
|
27715
|
+
e3 = __spreadValues({ cwd: process.cwd() }, e3);
|
|
27652
27716
|
if (typeof e3.cwd !== "string") {
|
|
27653
27717
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
27654
27718
|
}
|
|
@@ -27693,24 +27757,24 @@ var require_globby = __commonJS({
|
|
|
27693
27757
|
return o.join(t3, e3);
|
|
27694
27758
|
};
|
|
27695
27759
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
|
27696
|
-
const getFile =
|
|
27760
|
+
const getFile = (t3, e3) => __async(exports, null, function* () {
|
|
27697
27761
|
const r3 = o.join(e3, t3);
|
|
27698
|
-
const n2 =
|
|
27762
|
+
const n2 = yield u(r3, "utf8");
|
|
27699
27763
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
27700
|
-
};
|
|
27764
|
+
});
|
|
27701
27765
|
const getFileSync = (t3, e3) => {
|
|
27702
27766
|
const r3 = o.join(e3, t3);
|
|
27703
27767
|
const n2 = s.readFileSync(r3, "utf8");
|
|
27704
27768
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
27705
27769
|
};
|
|
27706
27770
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
|
27707
|
-
t2.exports =
|
|
27771
|
+
t2.exports = (t3) => __async(exports, null, function* () {
|
|
27708
27772
|
t3 = normalizeOptions(t3);
|
|
27709
|
-
const e3 =
|
|
27710
|
-
const r3 =
|
|
27773
|
+
const e3 = yield i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
27774
|
+
const r3 = yield Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
|
|
27711
27775
|
const n2 = reduceIgnore(r3);
|
|
27712
27776
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
|
27713
|
-
};
|
|
27777
|
+
});
|
|
27714
27778
|
t2.exports.sync = (t3) => {
|
|
27715
27779
|
t3 = normalizeOptions(t3);
|
|
27716
27780
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
@@ -27741,7 +27805,7 @@ var require_globby = __commonJS({
|
|
|
27741
27805
|
let e3;
|
|
27742
27806
|
try {
|
|
27743
27807
|
e3 = n.statSync(t3.cwd);
|
|
27744
|
-
} catch {
|
|
27808
|
+
} catch (e4) {
|
|
27745
27809
|
return;
|
|
27746
27810
|
}
|
|
27747
27811
|
if (!e3.isDirectory()) {
|
|
@@ -27754,13 +27818,13 @@ var require_globby = __commonJS({
|
|
|
27754
27818
|
assertPatternsInput(t3);
|
|
27755
27819
|
checkCwdOption(e3);
|
|
27756
27820
|
const r3 = [];
|
|
27757
|
-
e3 = { ignore: [], expandDirectories: true,
|
|
27821
|
+
e3 = __spreadValues({ ignore: [], expandDirectories: true }, e3);
|
|
27758
27822
|
for (const [n2, s2] of t3.entries()) {
|
|
27759
27823
|
if (isNegative(s2)) {
|
|
27760
27824
|
continue;
|
|
27761
27825
|
}
|
|
27762
27826
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
|
27763
|
-
const i2 = {
|
|
27827
|
+
const i2 = __spreadProps(__spreadValues({}, e3), { ignore: e3.ignore.concat(o2) });
|
|
27764
27828
|
r3.push({ pattern: s2, options: i2 });
|
|
27765
27829
|
}
|
|
27766
27830
|
return r3;
|
|
@@ -27771,9 +27835,9 @@ var require_globby = __commonJS({
|
|
|
27771
27835
|
r3.cwd = t3.options.cwd;
|
|
27772
27836
|
}
|
|
27773
27837
|
if (Array.isArray(t3.options.expandDirectories)) {
|
|
27774
|
-
r3 = {
|
|
27838
|
+
r3 = __spreadProps(__spreadValues({}, r3), { files: t3.options.expandDirectories });
|
|
27775
27839
|
} else if (typeof t3.options.expandDirectories === "object") {
|
|
27776
|
-
r3 = {
|
|
27840
|
+
r3 = __spreadValues(__spreadValues({}, r3), t3.options.expandDirectories);
|
|
27777
27841
|
}
|
|
27778
27842
|
return e3(t3.pattern, r3);
|
|
27779
27843
|
};
|
|
@@ -27786,20 +27850,22 @@ var require_globby = __commonJS({
|
|
|
27786
27850
|
}
|
|
27787
27851
|
return { pattern: e3, options: r3 };
|
|
27788
27852
|
};
|
|
27789
|
-
t2.exports =
|
|
27853
|
+
t2.exports = (t3, e3) => __async(exports, null, function* () {
|
|
27790
27854
|
const r3 = generateGlobTasks(t3, e3);
|
|
27791
|
-
const getFilter =
|
|
27792
|
-
|
|
27793
|
-
|
|
27794
|
-
|
|
27855
|
+
const getFilter = () => __async(exports, null, function* () {
|
|
27856
|
+
return e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
|
|
27857
|
+
});
|
|
27858
|
+
const getTasks = () => __async(exports, null, function* () {
|
|
27859
|
+
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
|
27860
|
+
const e4 = yield getPattern(t5, c);
|
|
27795
27861
|
return Promise.all(e4.map(globToTask(t5)));
|
|
27796
|
-
}));
|
|
27862
|
+
})));
|
|
27797
27863
|
return s(...t4);
|
|
27798
|
-
};
|
|
27799
|
-
const [n2, o2] =
|
|
27800
|
-
const p2 =
|
|
27864
|
+
});
|
|
27865
|
+
const [n2, o2] = yield Promise.all([getFilter(), getTasks()]);
|
|
27866
|
+
const p2 = yield Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
|
|
27801
27867
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
|
27802
|
-
};
|
|
27868
|
+
});
|
|
27803
27869
|
t2.exports.sync = (t3, e3) => {
|
|
27804
27870
|
const r3 = generateGlobTasks(t3, e3);
|
|
27805
27871
|
const n2 = [];
|
|
@@ -28153,19 +28219,21 @@ var require_globby = __commonJS({
|
|
|
28153
28219
|
"use strict";
|
|
28154
28220
|
const { promisify: n } = r2(837);
|
|
28155
28221
|
const s = r2(147);
|
|
28156
|
-
|
|
28157
|
-
|
|
28158
|
-
|
|
28159
|
-
|
|
28160
|
-
try {
|
|
28161
|
-
const o = await n(s[t3])(r3);
|
|
28162
|
-
return o[e3]();
|
|
28163
|
-
} catch (t4) {
|
|
28164
|
-
if (t4.code === "ENOENT") {
|
|
28165
|
-
return false;
|
|
28222
|
+
function isType(t3, e3, r3) {
|
|
28223
|
+
return __async(this, null, function* () {
|
|
28224
|
+
if (typeof r3 !== "string") {
|
|
28225
|
+
throw new TypeError(`Expected a string, got ${typeof r3}`);
|
|
28166
28226
|
}
|
|
28167
|
-
|
|
28168
|
-
|
|
28227
|
+
try {
|
|
28228
|
+
const o = yield n(s[t3])(r3);
|
|
28229
|
+
return o[e3]();
|
|
28230
|
+
} catch (t4) {
|
|
28231
|
+
if (t4.code === "ENOENT") {
|
|
28232
|
+
return false;
|
|
28233
|
+
}
|
|
28234
|
+
throw t4;
|
|
28235
|
+
}
|
|
28236
|
+
});
|
|
28169
28237
|
}
|
|
28170
28238
|
function isTypeSync(t3, e3, r3) {
|
|
28171
28239
|
if (typeof r3 !== "string") {
|
|
@@ -30540,15 +30608,15 @@ var require_gzip_size = __commonJS({
|
|
|
30540
30608
|
const i = t2(796);
|
|
30541
30609
|
const { promisify: a } = t2(837);
|
|
30542
30610
|
const s = t2(325);
|
|
30543
|
-
const getOptions = (e3) => ({ level: 9,
|
|
30611
|
+
const getOptions = (e3) => __spreadValues({ level: 9 }, e3);
|
|
30544
30612
|
const p = a(i.gzip);
|
|
30545
|
-
e2.exports =
|
|
30613
|
+
e2.exports = (e3, r3) => __async(exports, null, function* () {
|
|
30546
30614
|
if (!e3) {
|
|
30547
30615
|
return 0;
|
|
30548
30616
|
}
|
|
30549
|
-
const t3 =
|
|
30617
|
+
const t3 = yield p(e3, getOptions(r3));
|
|
30550
30618
|
return t3.length;
|
|
30551
|
-
};
|
|
30619
|
+
});
|
|
30552
30620
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
|
30553
30621
|
e2.exports.stream = (e3) => {
|
|
30554
30622
|
const r3 = new o.PassThrough();
|
|
@@ -33492,10 +33560,12 @@ Expecting one of '${i3.join("', '")}'`);
|
|
|
33492
33560
|
this._parseCommand([], i3);
|
|
33493
33561
|
return this;
|
|
33494
33562
|
}
|
|
33495
|
-
|
|
33496
|
-
|
|
33497
|
-
|
|
33498
|
-
|
|
33563
|
+
parseAsync(e3, t3) {
|
|
33564
|
+
return __async(this, null, function* () {
|
|
33565
|
+
const i3 = this._prepareUserArgs(e3, t3);
|
|
33566
|
+
yield this._parseCommand([], i3);
|
|
33567
|
+
return this;
|
|
33568
|
+
});
|
|
33499
33569
|
}
|
|
33500
33570
|
_executeSubCommand(e3, t3) {
|
|
33501
33571
|
t3 = t3.slice();
|
|
@@ -34767,11 +34837,8 @@ var require_logger = __commonJS({
|
|
|
34767
34837
|
var Logger2 = class {
|
|
34768
34838
|
constructor(options = {}) {
|
|
34769
34839
|
this.level = options.level || LOG_TYPES.log.level;
|
|
34770
|
-
this.config = {
|
|
34771
|
-
this.types = {
|
|
34772
|
-
...LOG_TYPES,
|
|
34773
|
-
...options.types || {}
|
|
34774
|
-
};
|
|
34840
|
+
this.config = __spreadValues(__spreadValues({}, DEFAULT_CONFIG), options.config || {});
|
|
34841
|
+
this.types = __spreadValues(__spreadValues({}, LOG_TYPES), options.types || {});
|
|
34775
34842
|
this.longestLabel = this.getLongestLabel();
|
|
34776
34843
|
Object.keys(this.types).forEach((type) => {
|
|
34777
34844
|
this[type] = this._log.bind(this, type);
|
|
@@ -35180,11 +35247,10 @@ var require_compatRequire = __commonJS({
|
|
|
35180
35247
|
exports.compatRequire = compatRequire;
|
|
35181
35248
|
exports.dynamicImport = new Function("modulePath", "return import(modulePath)");
|
|
35182
35249
|
var requireExistModule = (filename, opt) => {
|
|
35183
|
-
const final = {
|
|
35250
|
+
const final = __spreadValues({
|
|
35184
35251
|
extensions: [".ts", ".js"],
|
|
35185
|
-
interop: true
|
|
35186
|
-
|
|
35187
|
-
};
|
|
35252
|
+
interop: true
|
|
35253
|
+
}, opt);
|
|
35188
35254
|
const exist = (0, findExists_1.findExists)(final.extensions.map((ext) => `${filename}${ext}`));
|
|
35189
35255
|
if (!exist) {
|
|
35190
35256
|
return null;
|
|
@@ -35544,7 +35610,7 @@ var require_getEntryOptions = __commonJS({
|
|
|
35544
35610
|
if (optionsByEntry === void 0 && name === constants_1.MAIN_ENTRY_NAME && packageName) {
|
|
35545
35611
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
|
35546
35612
|
}
|
|
35547
|
-
return optionsByEntry !== void 0 ? (0, is_1.isPlainObject)(optionsByEntry) && (0, is_1.isPlainObject)(baseOptions) ? {
|
|
35613
|
+
return optionsByEntry !== void 0 ? (0, is_1.isPlainObject)(optionsByEntry) && (0, is_1.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
|
|
35548
35614
|
} else {
|
|
35549
35615
|
return baseOptions;
|
|
35550
35616
|
}
|
|
@@ -35566,7 +35632,7 @@ var require_getPort = __commonJS({
|
|
|
35566
35632
|
var net_1 = __importDefault(require("net"));
|
|
35567
35633
|
var compiled_1 = require_compiled();
|
|
35568
35634
|
var logger_1 = require_logger();
|
|
35569
|
-
var getPort =
|
|
35635
|
+
var getPort = (_0, ..._1) => __async(exports, [_0, ..._1], function* (port, { tryLimits = 20, strictPort = false } = {}) {
|
|
35570
35636
|
if (typeof port === "string") {
|
|
35571
35637
|
port = parseInt(port, 10);
|
|
35572
35638
|
}
|
|
@@ -35578,7 +35644,7 @@ var require_getPort = __commonJS({
|
|
|
35578
35644
|
let attempts = 0;
|
|
35579
35645
|
while (!found && attempts <= tryLimits) {
|
|
35580
35646
|
try {
|
|
35581
|
-
|
|
35647
|
+
yield new Promise((resolve, reject) => {
|
|
35582
35648
|
const server = net_1.default.createServer();
|
|
35583
35649
|
server.unref();
|
|
35584
35650
|
server.on("error", reject);
|
|
@@ -35606,7 +35672,7 @@ var require_getPort = __commonJS({
|
|
|
35606
35672
|
}
|
|
35607
35673
|
}
|
|
35608
35674
|
return port;
|
|
35609
|
-
};
|
|
35675
|
+
});
|
|
35610
35676
|
exports.getPort = getPort;
|
|
35611
35677
|
}
|
|
35612
35678
|
});
|
|
@@ -35651,10 +35717,7 @@ var require_monorepo = __commonJS({
|
|
|
35651
35717
|
return false;
|
|
35652
35718
|
}
|
|
35653
35719
|
const json = JSON.parse(fs_1.default.readFileSync(pkgJsonPath, "utf8"));
|
|
35654
|
-
const deps = {
|
|
35655
|
-
...json.dependencies || {},
|
|
35656
|
-
...json.devDependencies || {}
|
|
35657
|
-
};
|
|
35720
|
+
const deps = __spreadValues(__spreadValues({}, json.dependencies || {}), json.devDependencies || {});
|
|
35658
35721
|
return Boolean(deps["@modern-js/monorepo-tools"]);
|
|
35659
35722
|
};
|
|
35660
35723
|
exports.isModernjsMonorepo = isModernjsMonorepo;
|
|
@@ -35702,31 +35765,37 @@ var require_nodeEnv = __commonJS({
|
|
|
35702
35765
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35703
35766
|
exports.canUsePnpm = exports.canUseYarn = exports.canUseNpm = void 0;
|
|
35704
35767
|
var compiled_1 = require_compiled();
|
|
35705
|
-
|
|
35706
|
-
|
|
35707
|
-
|
|
35708
|
-
|
|
35709
|
-
|
|
35710
|
-
|
|
35711
|
-
|
|
35768
|
+
function canUseNpm() {
|
|
35769
|
+
return __async(this, null, function* () {
|
|
35770
|
+
try {
|
|
35771
|
+
yield (0, compiled_1.execa)("npm", ["--version"], { env: process.env });
|
|
35772
|
+
return true;
|
|
35773
|
+
} catch (e) {
|
|
35774
|
+
return false;
|
|
35775
|
+
}
|
|
35776
|
+
});
|
|
35712
35777
|
}
|
|
35713
35778
|
exports.canUseNpm = canUseNpm;
|
|
35714
|
-
|
|
35715
|
-
|
|
35716
|
-
|
|
35717
|
-
|
|
35718
|
-
|
|
35719
|
-
|
|
35720
|
-
|
|
35779
|
+
function canUseYarn() {
|
|
35780
|
+
return __async(this, null, function* () {
|
|
35781
|
+
try {
|
|
35782
|
+
yield (0, compiled_1.execa)("yarn", ["--version"], { env: process.env });
|
|
35783
|
+
return true;
|
|
35784
|
+
} catch (e) {
|
|
35785
|
+
return false;
|
|
35786
|
+
}
|
|
35787
|
+
});
|
|
35721
35788
|
}
|
|
35722
35789
|
exports.canUseYarn = canUseYarn;
|
|
35723
|
-
|
|
35724
|
-
|
|
35725
|
-
|
|
35726
|
-
|
|
35727
|
-
|
|
35728
|
-
|
|
35729
|
-
|
|
35790
|
+
function canUsePnpm() {
|
|
35791
|
+
return __async(this, null, function* () {
|
|
35792
|
+
try {
|
|
35793
|
+
yield (0, compiled_1.execa)("pnpm", ["--version"], { env: process.env });
|
|
35794
|
+
return true;
|
|
35795
|
+
} catch (e) {
|
|
35796
|
+
return false;
|
|
35797
|
+
}
|
|
35798
|
+
});
|
|
35730
35799
|
}
|
|
35731
35800
|
exports.canUsePnpm = canUsePnpm;
|
|
35732
35801
|
}
|
|
@@ -35746,29 +35815,31 @@ var require_getPackageManager = __commonJS({
|
|
|
35746
35815
|
var compiled_1 = require_compiled();
|
|
35747
35816
|
var nodeEnv_1 = require_nodeEnv();
|
|
35748
35817
|
var MAX_TIMES = 5;
|
|
35749
|
-
|
|
35750
|
-
|
|
35751
|
-
|
|
35752
|
-
|
|
35753
|
-
times
|
|
35754
|
-
|
|
35818
|
+
function getPackageManager() {
|
|
35819
|
+
return __async(this, arguments, function* (cwd = process.cwd()) {
|
|
35820
|
+
let appDirectory = cwd;
|
|
35821
|
+
let times = 0;
|
|
35822
|
+
while (os_1.default.homedir() !== appDirectory && times < MAX_TIMES) {
|
|
35823
|
+
times++;
|
|
35824
|
+
if (compiled_1.fs.existsSync(path_1.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
|
35825
|
+
return "pnpm";
|
|
35826
|
+
}
|
|
35827
|
+
if (compiled_1.fs.existsSync(path_1.default.resolve(appDirectory, "yarn.lock"))) {
|
|
35828
|
+
return "yarn";
|
|
35829
|
+
}
|
|
35830
|
+
if (compiled_1.fs.existsSync(path_1.default.resolve(appDirectory, "package-lock.json"))) {
|
|
35831
|
+
return "npm";
|
|
35832
|
+
}
|
|
35833
|
+
appDirectory = path_1.default.join(appDirectory, "..");
|
|
35834
|
+
}
|
|
35835
|
+
if (yield (0, nodeEnv_1.canUsePnpm)()) {
|
|
35755
35836
|
return "pnpm";
|
|
35756
35837
|
}
|
|
35757
|
-
if (
|
|
35838
|
+
if (yield (0, nodeEnv_1.canUseYarn)()) {
|
|
35758
35839
|
return "yarn";
|
|
35759
35840
|
}
|
|
35760
|
-
|
|
35761
|
-
|
|
35762
|
-
}
|
|
35763
|
-
appDirectory = path_1.default.join(appDirectory, "..");
|
|
35764
|
-
}
|
|
35765
|
-
if (await (0, nodeEnv_1.canUsePnpm)()) {
|
|
35766
|
-
return "pnpm";
|
|
35767
|
-
}
|
|
35768
|
-
if (await (0, nodeEnv_1.canUseYarn)()) {
|
|
35769
|
-
return "yarn";
|
|
35770
|
-
}
|
|
35771
|
-
return "npm";
|
|
35841
|
+
return "npm";
|
|
35842
|
+
});
|
|
35772
35843
|
}
|
|
35773
35844
|
exports.getPackageManager = getPackageManager;
|
|
35774
35845
|
}
|
|
@@ -35822,7 +35893,7 @@ var require_path = __commonJS({
|
|
|
35822
35893
|
try {
|
|
35823
35894
|
ret = os_1.default.tmpdir();
|
|
35824
35895
|
ret = fs_1.default.realpathSync(ret);
|
|
35825
|
-
} catch {
|
|
35896
|
+
} catch (e) {
|
|
35826
35897
|
}
|
|
35827
35898
|
return ret;
|
|
35828
35899
|
}
|
|
@@ -35869,7 +35940,7 @@ var require_runtimeExports = __commonJS({
|
|
|
35869
35940
|
compiled_1.fs.appendFileSync(entryExportFile, `${statement}
|
|
35870
35941
|
`);
|
|
35871
35942
|
}
|
|
35872
|
-
} catch {
|
|
35943
|
+
} catch (e) {
|
|
35873
35944
|
}
|
|
35874
35945
|
};
|
|
35875
35946
|
const getPath = () => entryExportFile;
|
|
@@ -35939,7 +36010,7 @@ var require_pathSerializer = __commonJS({
|
|
|
35939
36010
|
var createDefaultPathMatchers = (root) => {
|
|
35940
36011
|
const ret = [
|
|
35941
36012
|
{
|
|
35942
|
-
match:
|
|
36013
|
+
match: new RegExp("(?<=\\/)(\\.pnpm\\/.+?\\/node_modules)(?=\\/)"),
|
|
35943
36014
|
mark: "pnpmInner"
|
|
35944
36015
|
}
|
|
35945
36016
|
];
|
|
@@ -36118,10 +36189,7 @@ var require_alias = __commonJS({
|
|
|
36118
36189
|
const baseUrl = (_a = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _a === void 0 ? void 0 : _a.baseUrl;
|
|
36119
36190
|
return {
|
|
36120
36191
|
absoluteBaseUrl: baseUrl ? path_1.default.join(option.appDirectory, baseUrl) : option.appDirectory,
|
|
36121
|
-
paths: {
|
|
36122
|
-
...alias,
|
|
36123
|
-
...(_b = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _b === void 0 ? void 0 : _b.paths
|
|
36124
|
-
},
|
|
36192
|
+
paths: __spreadValues(__spreadValues({}, alias), (_b = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _b === void 0 ? void 0 : _b.paths),
|
|
36125
36193
|
isTsPath: true,
|
|
36126
36194
|
isTsProject
|
|
36127
36195
|
};
|
|
@@ -36188,20 +36256,20 @@ var require_watch = __commonJS({
|
|
|
36188
36256
|
ignored
|
|
36189
36257
|
});
|
|
36190
36258
|
watcher.on("ready", () => ready = true);
|
|
36191
|
-
watcher.on("change",
|
|
36259
|
+
watcher.on("change", (filePath) => __async(exports, null, function* () {
|
|
36192
36260
|
const changedFilePath = path4.resolve(filePath);
|
|
36193
|
-
|
|
36194
|
-
});
|
|
36195
|
-
watcher.on("add",
|
|
36261
|
+
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.CHANGE });
|
|
36262
|
+
}));
|
|
36263
|
+
watcher.on("add", (filePath) => __async(exports, null, function* () {
|
|
36196
36264
|
const changedFilePath = path4.resolve(filePath);
|
|
36197
36265
|
if (ready) {
|
|
36198
|
-
|
|
36266
|
+
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.ADD });
|
|
36199
36267
|
}
|
|
36200
|
-
});
|
|
36201
|
-
watcher.on("unlink",
|
|
36268
|
+
}));
|
|
36269
|
+
watcher.on("unlink", (filePath) => __async(exports, null, function* () {
|
|
36202
36270
|
const changedFilePath = path4.resolve(filePath);
|
|
36203
|
-
|
|
36204
|
-
});
|
|
36271
|
+
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.UNLINK });
|
|
36272
|
+
}));
|
|
36205
36273
|
watcher.on("error", (err) => {
|
|
36206
36274
|
throw err;
|
|
36207
36275
|
});
|
|
@@ -36231,11 +36299,11 @@ var require_emptyDir = __commonJS({
|
|
|
36231
36299
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36232
36300
|
exports.emptyDir = void 0;
|
|
36233
36301
|
var compiled_1 = require_compiled();
|
|
36234
|
-
var emptyDir =
|
|
36235
|
-
if (
|
|
36236
|
-
|
|
36302
|
+
var emptyDir = (dir) => __async(exports, null, function* () {
|
|
36303
|
+
if (yield compiled_1.fs.pathExists(dir)) {
|
|
36304
|
+
yield compiled_1.fs.emptyDir(dir);
|
|
36237
36305
|
}
|
|
36238
|
-
};
|
|
36306
|
+
});
|
|
36239
36307
|
exports.emptyDir = emptyDir;
|
|
36240
36308
|
}
|
|
36241
36309
|
});
|
|
@@ -36281,10 +36349,10 @@ var require_getServerConfig = __commonJS({
|
|
|
36281
36349
|
var path4 = __importStar(require("path"));
|
|
36282
36350
|
var constants_1 = require_constants();
|
|
36283
36351
|
var findExists_1 = require_findExists();
|
|
36284
|
-
var getServerConfig =
|
|
36352
|
+
var getServerConfig = (appDirectory, configFile) => __async(exports, null, function* () {
|
|
36285
36353
|
const configFilePath = (0, findExists_1.findExists)(constants_1.CONFIG_FILE_EXTENSIONS.map((extension) => path4.resolve(appDirectory, `${configFile}${extension}`)));
|
|
36286
36354
|
return configFilePath;
|
|
36287
|
-
};
|
|
36355
|
+
});
|
|
36288
36356
|
exports.getServerConfig = getServerConfig;
|
|
36289
36357
|
}
|
|
36290
36358
|
});
|
|
@@ -36454,12 +36522,12 @@ var require_analyzeProject = __commonJS({
|
|
|
36454
36522
|
exports.isApiOnly = void 0;
|
|
36455
36523
|
var path4 = __importStar(require("path"));
|
|
36456
36524
|
var compiled_1 = require_compiled();
|
|
36457
|
-
var isApiOnly =
|
|
36525
|
+
var isApiOnly = (appDirectory, entryDir) => __async(exports, null, function* () {
|
|
36458
36526
|
const srcDir = path4.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src");
|
|
36459
|
-
const existSrc =
|
|
36527
|
+
const existSrc = yield compiled_1.fs.pathExists(srcDir);
|
|
36460
36528
|
const options = (0, compiled_1.minimist)(process.argv.slice(2));
|
|
36461
36529
|
return !existSrc || Boolean(options["api-only"]);
|
|
36462
|
-
};
|
|
36530
|
+
});
|
|
36463
36531
|
exports.isApiOnly = isApiOnly;
|
|
36464
36532
|
}
|
|
36465
36533
|
});
|
|
@@ -36591,9 +36659,11 @@ var require_version = __commonJS({
|
|
|
36591
36659
|
exports.isReact18 = exports.getPnpmVersion = void 0;
|
|
36592
36660
|
var path_1 = __importDefault(require("path"));
|
|
36593
36661
|
var compiled_1 = require_compiled();
|
|
36594
|
-
|
|
36595
|
-
|
|
36596
|
-
|
|
36662
|
+
function getPnpmVersion() {
|
|
36663
|
+
return __async(this, null, function* () {
|
|
36664
|
+
const { stdout } = yield (0, compiled_1.execa)("pnpm", ["--version"]);
|
|
36665
|
+
return stdout;
|
|
36666
|
+
});
|
|
36597
36667
|
}
|
|
36598
36668
|
exports.getPnpmVersion = getPnpmVersion;
|
|
36599
36669
|
var isReact18 = (cwd) => {
|
|
@@ -36602,10 +36672,7 @@ var require_version = __commonJS({
|
|
|
36602
36672
|
return false;
|
|
36603
36673
|
}
|
|
36604
36674
|
const pkgInfo = JSON.parse(compiled_1.fs.readFileSync(pkgPath, "utf8"));
|
|
36605
|
-
const deps = {
|
|
36606
|
-
...pkgInfo.devDependencies,
|
|
36607
|
-
...pkgInfo.dependencies
|
|
36608
|
-
};
|
|
36675
|
+
const deps = __spreadValues(__spreadValues({}, pkgInfo.devDependencies), pkgInfo.dependencies);
|
|
36609
36676
|
if (typeof deps.react !== "string") {
|
|
36610
36677
|
return false;
|
|
36611
36678
|
}
|
|
@@ -36762,10 +36829,7 @@ var require_react = __commonJS({
|
|
|
36762
36829
|
return false;
|
|
36763
36830
|
}
|
|
36764
36831
|
const pkgInfo = JSON.parse(_1.fs.readFileSync(pkgPath, "utf8"));
|
|
36765
|
-
const deps = {
|
|
36766
|
-
...pkgInfo.devDependencies,
|
|
36767
|
-
...pkgInfo.dependencies
|
|
36768
|
-
};
|
|
36832
|
+
const deps = __spreadValues(__spreadValues({}, pkgInfo.devDependencies), pkgInfo.dependencies);
|
|
36769
36833
|
if (typeof deps.react !== "string") {
|
|
36770
36834
|
return false;
|
|
36771
36835
|
}
|
|
@@ -37309,20 +37373,22 @@ var require_fs_extra2 = __commonJS({
|
|
|
37309
37373
|
const o = r2(17);
|
|
37310
37374
|
const c = r2(971);
|
|
37311
37375
|
const s = r2(95);
|
|
37312
|
-
const a = n(
|
|
37313
|
-
|
|
37314
|
-
|
|
37315
|
-
|
|
37316
|
-
|
|
37317
|
-
|
|
37318
|
-
|
|
37319
|
-
|
|
37376
|
+
const a = n(function emptyDir(e3) {
|
|
37377
|
+
return __async(this, null, function* () {
|
|
37378
|
+
let t3;
|
|
37379
|
+
try {
|
|
37380
|
+
t3 = yield i.readdir(e3);
|
|
37381
|
+
} catch (e4) {
|
|
37382
|
+
return c.mkdirs(e3);
|
|
37383
|
+
}
|
|
37384
|
+
return Promise.all(t3.map((t4) => s.remove(o.join(e3, t4))));
|
|
37385
|
+
});
|
|
37320
37386
|
});
|
|
37321
37387
|
function emptyDirSync(e3) {
|
|
37322
37388
|
let t3;
|
|
37323
37389
|
try {
|
|
37324
37390
|
t3 = i.readdirSync(e3);
|
|
37325
|
-
} catch {
|
|
37391
|
+
} catch (e4) {
|
|
37326
37392
|
return c.mkdirsSync(e3);
|
|
37327
37393
|
}
|
|
37328
37394
|
t3.forEach((t4) => {
|
|
@@ -37375,7 +37441,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
37375
37441
|
let t3;
|
|
37376
37442
|
try {
|
|
37377
37443
|
t3 = o.statSync(e3);
|
|
37378
|
-
} catch {
|
|
37444
|
+
} catch (e4) {
|
|
37379
37445
|
}
|
|
37380
37446
|
if (t3 && t3.isFile())
|
|
37381
37447
|
return;
|
|
@@ -37442,7 +37508,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
37442
37508
|
let r3;
|
|
37443
37509
|
try {
|
|
37444
37510
|
r3 = o.lstatSync(t3);
|
|
37445
|
-
} catch {
|
|
37511
|
+
} catch (e4) {
|
|
37446
37512
|
}
|
|
37447
37513
|
try {
|
|
37448
37514
|
const t4 = o.lstatSync(e3);
|
|
@@ -37537,7 +37603,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
37537
37603
|
return t3;
|
|
37538
37604
|
try {
|
|
37539
37605
|
r3 = n.lstatSync(e3);
|
|
37540
|
-
} catch {
|
|
37606
|
+
} catch (e4) {
|
|
37541
37607
|
return "file";
|
|
37542
37608
|
}
|
|
37543
37609
|
return r3 && r3.isDirectory() ? "dir" : "file";
|
|
@@ -37600,7 +37666,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
37600
37666
|
let n2;
|
|
37601
37667
|
try {
|
|
37602
37668
|
n2 = o.lstatSync(t3);
|
|
37603
|
-
} catch {
|
|
37669
|
+
} catch (e4) {
|
|
37604
37670
|
}
|
|
37605
37671
|
if (n2 && n2.isSymbolicLink()) {
|
|
37606
37672
|
const r4 = o.statSync(e3);
|
|
@@ -37675,7 +37741,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
37675
37741
|
}
|
|
37676
37742
|
}, 81: (e2, t2, r2) => {
|
|
37677
37743
|
"use strict";
|
|
37678
|
-
e2.exports = {
|
|
37744
|
+
e2.exports = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, r2(812)), r2(2)), r2(708)), r2(726)), r2(779)), r2(971)), r2(511)), r2(701)), r2(725)), r2(95));
|
|
37679
37745
|
}, 779: (e2, t2, r2) => {
|
|
37680
37746
|
"use strict";
|
|
37681
37747
|
const n = r2(5).fromPromise;
|
|
@@ -37706,9 +37772,11 @@ var require_fs_extra2 = __commonJS({
|
|
|
37706
37772
|
"use strict";
|
|
37707
37773
|
const { stringify: n } = r2(208);
|
|
37708
37774
|
const { outputFile: i } = r2(701);
|
|
37709
|
-
|
|
37710
|
-
|
|
37711
|
-
|
|
37775
|
+
function outputJson(_0, _1) {
|
|
37776
|
+
return __async(this, arguments, function* (e3, t3, r3 = {}) {
|
|
37777
|
+
const o = n(t3, r3);
|
|
37778
|
+
yield i(e3, o, r3);
|
|
37779
|
+
});
|
|
37712
37780
|
}
|
|
37713
37781
|
e2.exports = outputJson;
|
|
37714
37782
|
}, 971: (e2, t2, r2) => {
|
|
@@ -37725,12 +37793,12 @@ var require_fs_extra2 = __commonJS({
|
|
|
37725
37793
|
const t3 = { mode: 511 };
|
|
37726
37794
|
if (typeof e3 === "number")
|
|
37727
37795
|
return e3;
|
|
37728
|
-
return {
|
|
37796
|
+
return __spreadValues(__spreadValues({}, t3), e3).mode;
|
|
37729
37797
|
};
|
|
37730
|
-
e2.exports.makeDir =
|
|
37798
|
+
e2.exports.makeDir = (e3, t3) => __async(exports, null, function* () {
|
|
37731
37799
|
i(e3);
|
|
37732
37800
|
return n.mkdir(e3, { mode: getMode(t3), recursive: true });
|
|
37733
|
-
};
|
|
37801
|
+
});
|
|
37734
37802
|
e2.exports.makeDirSync = (e3, t3) => {
|
|
37735
37803
|
i(e3);
|
|
37736
37804
|
return n.mkdirSync(e3, { mode: getMode(t3), recursive: true });
|
|
@@ -38148,7 +38216,7 @@ var require_fs_extra2 = __commonJS({
|
|
|
38148
38216
|
try {
|
|
38149
38217
|
const r4 = t3.rmdirSync(e3, t3);
|
|
38150
38218
|
return r4;
|
|
38151
|
-
} catch {
|
|
38219
|
+
} catch (e4) {
|
|
38152
38220
|
}
|
|
38153
38221
|
} while (Date.now() - r3 < 500);
|
|
38154
38222
|
} else {
|
|
@@ -39047,26 +39115,28 @@ var require_fs_extra2 = __commonJS({
|
|
|
39047
39115
|
}
|
|
39048
39116
|
const i = r2(5);
|
|
39049
39117
|
const { stringify: o, stripBom: c } = r2(208);
|
|
39050
|
-
|
|
39051
|
-
|
|
39052
|
-
|
|
39053
|
-
|
|
39054
|
-
|
|
39055
|
-
|
|
39056
|
-
|
|
39057
|
-
|
|
39058
|
-
|
|
39059
|
-
|
|
39060
|
-
|
|
39061
|
-
|
|
39062
|
-
|
|
39063
|
-
|
|
39064
|
-
|
|
39065
|
-
|
|
39066
|
-
|
|
39118
|
+
function _readFile(_0) {
|
|
39119
|
+
return __async(this, arguments, function* (e3, t3 = {}) {
|
|
39120
|
+
if (typeof t3 === "string") {
|
|
39121
|
+
t3 = { encoding: t3 };
|
|
39122
|
+
}
|
|
39123
|
+
const r3 = t3.fs || n;
|
|
39124
|
+
const o2 = "throws" in t3 ? t3.throws : true;
|
|
39125
|
+
let s2 = yield i.fromCallback(r3.readFile)(e3, t3);
|
|
39126
|
+
s2 = c(s2);
|
|
39127
|
+
let a2;
|
|
39128
|
+
try {
|
|
39129
|
+
a2 = JSON.parse(s2, t3 ? t3.reviver : null);
|
|
39130
|
+
} catch (t4) {
|
|
39131
|
+
if (o2) {
|
|
39132
|
+
t4.message = `${e3}: ${t4.message}`;
|
|
39133
|
+
throw t4;
|
|
39134
|
+
} else {
|
|
39135
|
+
return null;
|
|
39136
|
+
}
|
|
39067
39137
|
}
|
|
39068
|
-
|
|
39069
|
-
|
|
39138
|
+
return a2;
|
|
39139
|
+
});
|
|
39070
39140
|
}
|
|
39071
39141
|
const s = i.fromPromise(_readFile);
|
|
39072
39142
|
function readFileSync(e3, t3 = {}) {
|
|
@@ -39088,10 +39158,12 @@ var require_fs_extra2 = __commonJS({
|
|
|
39088
39158
|
}
|
|
39089
39159
|
}
|
|
39090
39160
|
}
|
|
39091
|
-
|
|
39092
|
-
|
|
39093
|
-
|
|
39094
|
-
|
|
39161
|
+
function _writeFile(_0, _1) {
|
|
39162
|
+
return __async(this, arguments, function* (e3, t3, r3 = {}) {
|
|
39163
|
+
const c2 = r3.fs || n;
|
|
39164
|
+
const s2 = o(t3, r3);
|
|
39165
|
+
yield i.fromCallback(c2.writeFile)(e3, s2, r3);
|
|
39166
|
+
});
|
|
39095
39167
|
}
|
|
39096
39168
|
const a = i.fromPromise(_writeFile);
|
|
39097
39169
|
function writeFileSync(e3, t3, r3 = {}) {
|
|
@@ -39319,11 +39391,11 @@ var require_chalk2 = __commonJS({
|
|
|
39319
39391
|
} };
|
|
39320
39392
|
}
|
|
39321
39393
|
const f = Object.defineProperties(() => {
|
|
39322
|
-
}, {
|
|
39394
|
+
}, __spreadProps(__spreadValues({}, u), { level: { enumerable: true, get() {
|
|
39323
39395
|
return this._generator.level;
|
|
39324
39396
|
}, set(e3) {
|
|
39325
39397
|
this._generator.level = e3;
|
|
39326
|
-
} } });
|
|
39398
|
+
} } }));
|
|
39327
39399
|
const createStyler = (e3, t3, n3) => {
|
|
39328
39400
|
let r2;
|
|
39329
39401
|
let s2;
|
|
@@ -39634,7 +39706,7 @@ var require_chalk2 = __commonJS({
|
|
|
39634
39706
|
return [o2 * 100, l * 100, c * 100, s2 * 100];
|
|
39635
39707
|
};
|
|
39636
39708
|
function comparativeDistance(e3, t3) {
|
|
39637
|
-
return (e3[0] - t3[0]
|
|
39709
|
+
return __pow(e3[0] - t3[0], 2) + __pow(e3[1] - t3[1], 2) + __pow(e3[2] - t3[2], 2);
|
|
39638
39710
|
}
|
|
39639
39711
|
o.rgb.keyword = function(e3) {
|
|
39640
39712
|
const t3 = s[e3];
|
|
@@ -39660,9 +39732,9 @@ var require_chalk2 = __commonJS({
|
|
|
39660
39732
|
let t3 = e3[0] / 255;
|
|
39661
39733
|
let n3 = e3[1] / 255;
|
|
39662
39734
|
let r2 = e3[2] / 255;
|
|
39663
|
-
t3 = t3 > 0.04045 ? ((t3 + 0.055) / 1.055
|
|
39664
|
-
n3 = n3 > 0.04045 ? ((n3 + 0.055) / 1.055
|
|
39665
|
-
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055
|
|
39735
|
+
t3 = t3 > 0.04045 ? __pow((t3 + 0.055) / 1.055, 2.4) : t3 / 12.92;
|
|
39736
|
+
n3 = n3 > 0.04045 ? __pow((n3 + 0.055) / 1.055, 2.4) : n3 / 12.92;
|
|
39737
|
+
r2 = r2 > 0.04045 ? __pow((r2 + 0.055) / 1.055, 2.4) : r2 / 12.92;
|
|
39666
39738
|
const s2 = t3 * 0.4124 + n3 * 0.3576 + r2 * 0.1805;
|
|
39667
39739
|
const o2 = t3 * 0.2126 + n3 * 0.7152 + r2 * 0.0722;
|
|
39668
39740
|
const l = t3 * 0.0193 + n3 * 0.1192 + r2 * 0.9505;
|
|
@@ -39676,9 +39748,9 @@ var require_chalk2 = __commonJS({
|
|
|
39676
39748
|
n3 /= 95.047;
|
|
39677
39749
|
r2 /= 100;
|
|
39678
39750
|
s2 /= 108.883;
|
|
39679
|
-
n3 = n3 > 8856e-6 ? n3
|
|
39680
|
-
r2 = r2 > 8856e-6 ? r2
|
|
39681
|
-
s2 = s2 > 8856e-6 ? s2
|
|
39751
|
+
n3 = n3 > 8856e-6 ? __pow(n3, 1 / 3) : 7.787 * n3 + 16 / 116;
|
|
39752
|
+
r2 = r2 > 8856e-6 ? __pow(r2, 1 / 3) : 7.787 * r2 + 16 / 116;
|
|
39753
|
+
s2 = s2 > 8856e-6 ? __pow(s2, 1 / 3) : 7.787 * s2 + 16 / 116;
|
|
39682
39754
|
const l = 116 * r2 - 16;
|
|
39683
39755
|
const c = 500 * (n3 - r2);
|
|
39684
39756
|
const i = 200 * (r2 - s2);
|
|
@@ -39852,9 +39924,9 @@ var require_chalk2 = __commonJS({
|
|
|
39852
39924
|
s2 = t3 * 3.2406 + n3 * -1.5372 + r2 * -0.4986;
|
|
39853
39925
|
o2 = t3 * -0.9689 + n3 * 1.8758 + r2 * 0.0415;
|
|
39854
39926
|
l = t3 * 0.0557 + n3 * -0.204 + r2 * 1.057;
|
|
39855
|
-
s2 = s2 > 31308e-7 ? 1.055 * s2
|
|
39856
|
-
o2 = o2 > 31308e-7 ? 1.055 * o2
|
|
39857
|
-
l = l > 31308e-7 ? 1.055 * l
|
|
39927
|
+
s2 = s2 > 31308e-7 ? 1.055 * __pow(s2, 1 / 2.4) - 0.055 : s2 * 12.92;
|
|
39928
|
+
o2 = o2 > 31308e-7 ? 1.055 * __pow(o2, 1 / 2.4) - 0.055 : o2 * 12.92;
|
|
39929
|
+
l = l > 31308e-7 ? 1.055 * __pow(l, 1 / 2.4) - 0.055 : l * 12.92;
|
|
39858
39930
|
s2 = Math.min(Math.max(0, s2), 1);
|
|
39859
39931
|
o2 = Math.min(Math.max(0, o2), 1);
|
|
39860
39932
|
l = Math.min(Math.max(0, l), 1);
|
|
@@ -39867,9 +39939,9 @@ var require_chalk2 = __commonJS({
|
|
|
39867
39939
|
t3 /= 95.047;
|
|
39868
39940
|
n3 /= 100;
|
|
39869
39941
|
r2 /= 108.883;
|
|
39870
|
-
t3 = t3 > 8856e-6 ? t3
|
|
39871
|
-
n3 = n3 > 8856e-6 ? n3
|
|
39872
|
-
r2 = r2 > 8856e-6 ? r2
|
|
39942
|
+
t3 = t3 > 8856e-6 ? __pow(t3, 1 / 3) : 7.787 * t3 + 16 / 116;
|
|
39943
|
+
n3 = n3 > 8856e-6 ? __pow(n3, 1 / 3) : 7.787 * n3 + 16 / 116;
|
|
39944
|
+
r2 = r2 > 8856e-6 ? __pow(r2, 1 / 3) : 7.787 * r2 + 16 / 116;
|
|
39873
39945
|
const s2 = 116 * n3 - 16;
|
|
39874
39946
|
const o2 = 500 * (t3 - n3);
|
|
39875
39947
|
const l = 200 * (n3 - r2);
|
|
@@ -39885,9 +39957,9 @@ var require_chalk2 = __commonJS({
|
|
|
39885
39957
|
o2 = (t3 + 16) / 116;
|
|
39886
39958
|
s2 = n3 / 500 + o2;
|
|
39887
39959
|
l = o2 - r2 / 200;
|
|
39888
|
-
const c = o2
|
|
39889
|
-
const i = s2
|
|
39890
|
-
const a = l
|
|
39960
|
+
const c = __pow(o2, 3);
|
|
39961
|
+
const i = __pow(s2, 3);
|
|
39962
|
+
const a = __pow(l, 3);
|
|
39891
39963
|
o2 = c > 8856e-6 ? c : (o2 - 16 / 116) / 7.787;
|
|
39892
39964
|
s2 = i > 8856e-6 ? i : (s2 - 16 / 116) / 7.787;
|
|
39893
39965
|
l = a > 8856e-6 ? a : (l - 16 / 116) / 7.787;
|
|
@@ -41143,7 +41215,7 @@ var require_ora2 = __commonJS({
|
|
|
41143
41215
|
if (typeof e3 === "string") {
|
|
41144
41216
|
e3 = { text: e3 };
|
|
41145
41217
|
}
|
|
41146
|
-
this.options = { text: "", color: "cyan", stream: process.stderr, discardStdin: true,
|
|
41218
|
+
this.options = __spreadValues({ text: "", color: "cyan", stream: process.stderr, discardStdin: true }, e3);
|
|
41147
41219
|
this.spinner = this.options.spinner;
|
|
41148
41220
|
this.color = this.options.color;
|
|
41149
41221
|
this.hideCursor = this.options.hideCursor !== false;
|
|
@@ -41360,14 +41432,14 @@ var require_ora2 = __commonJS({
|
|
|
41360
41432
|
}
|
|
41361
41433
|
const r3 = new Ora(t3);
|
|
41362
41434
|
r3.start();
|
|
41363
|
-
(
|
|
41435
|
+
(() => __async(exports, null, function* () {
|
|
41364
41436
|
try {
|
|
41365
|
-
|
|
41437
|
+
yield e3;
|
|
41366
41438
|
r3.succeed();
|
|
41367
|
-
} catch {
|
|
41439
|
+
} catch (e4) {
|
|
41368
41440
|
r3.fail();
|
|
41369
41441
|
}
|
|
41370
|
-
})();
|
|
41442
|
+
}))();
|
|
41371
41443
|
return r3;
|
|
41372
41444
|
};
|
|
41373
41445
|
}, 959: (e2) => {
|
|
@@ -49787,7 +49859,7 @@ var require_execa2 = __commonJS({
|
|
|
49787
49859
|
const { joinCommand: w, parseCommand: E, getEscapedCommand: I } = n2(192);
|
|
49788
49860
|
const T = 1e3 * 1e3 * 100;
|
|
49789
49861
|
const getEnv = ({ env: e3, extendEnv: t3, preferLocal: n3, localDir: r2, execPath: o2 }) => {
|
|
49790
|
-
const s2 = t3 ? {
|
|
49862
|
+
const s2 = t3 ? __spreadValues(__spreadValues({}, process.env), e3) : e3;
|
|
49791
49863
|
if (n3) {
|
|
49792
49864
|
return a.env({ env: s2, cwd: r2, execPath: o2 });
|
|
49793
49865
|
}
|
|
@@ -49798,7 +49870,7 @@ var require_execa2 = __commonJS({
|
|
|
49798
49870
|
e3 = o2.command;
|
|
49799
49871
|
t3 = o2.args;
|
|
49800
49872
|
n3 = o2.options;
|
|
49801
|
-
n3 = { maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true,
|
|
49873
|
+
n3 = __spreadValues({ maxBuffer: T, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: n3.cwd || process.cwd(), execPath: process.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true }, n3);
|
|
49802
49874
|
n3.env = getEnv(n3);
|
|
49803
49875
|
n3.stdio = u(n3);
|
|
49804
49876
|
if (process.platform === "win32" && r.basename(e3, ".exe") === "cmd") {
|
|
@@ -49834,8 +49906,8 @@ var require_execa2 = __commonJS({
|
|
|
49834
49906
|
const T2 = { isCanceled: false };
|
|
49835
49907
|
a2.kill = l.bind(null, a2.kill.bind(a2));
|
|
49836
49908
|
a2.cancel = f.bind(null, a2, T2);
|
|
49837
|
-
const handlePromise =
|
|
49838
|
-
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] =
|
|
49909
|
+
const handlePromise = () => __async(exports, null, function* () {
|
|
49910
|
+
const [{ error: e4, exitCode: t4, signal: n4, timedOut: o2 }, c2, u3, l2] = yield h(a2, r2.options, E2);
|
|
49839
49911
|
const f2 = handleOutput(r2.options, c2);
|
|
49840
49912
|
const p2 = handleOutput(r2.options, u3);
|
|
49841
49913
|
const m2 = handleOutput(r2.options, l2);
|
|
@@ -49847,7 +49919,7 @@ var require_execa2 = __commonJS({
|
|
|
49847
49919
|
throw c3;
|
|
49848
49920
|
}
|
|
49849
49921
|
return { command: s2, escapedCommand: i2, exitCode: 0, stdout: f2, stderr: p2, all: m2, failed: false, timedOut: false, isCanceled: false, killed: false };
|
|
49850
|
-
};
|
|
49922
|
+
});
|
|
49851
49923
|
const C = c(handlePromise);
|
|
49852
49924
|
x(a2, r2.options.input);
|
|
49853
49925
|
a2.all = y(a2, r2.options);
|
|
@@ -49892,7 +49964,7 @@ var require_execa2 = __commonJS({
|
|
|
49892
49964
|
const r2 = u.node(n3);
|
|
49893
49965
|
const o2 = process.execArgv.filter((e4) => !e4.startsWith("--inspect"));
|
|
49894
49966
|
const { nodePath: s2 = process.execPath, nodeOptions: i2 = o2 } = n3;
|
|
49895
|
-
return execa(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], {
|
|
49967
|
+
return execa(s2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], __spreadProps(__spreadValues({}, n3), { stdin: void 0, stdout: void 0, stderr: void 0, stdio: r2, shell: false }));
|
|
49896
49968
|
};
|
|
49897
49969
|
}, 192: (e2) => {
|
|
49898
49970
|
"use strict";
|
|
@@ -50048,7 +50120,7 @@ ${o.message}` : x;
|
|
|
50048
50120
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`);
|
|
50049
50121
|
}
|
|
50050
50122
|
};
|
|
50051
|
-
const setExitHandler =
|
|
50123
|
+
const setExitHandler = (_0, _1, _2) => __async(exports, [_0, _1, _2], function* (e3, { cleanup: t3, detached: n3 }, r2) {
|
|
50052
50124
|
if (!t3 || n3) {
|
|
50053
50125
|
return r2;
|
|
50054
50126
|
}
|
|
@@ -50058,17 +50130,17 @@ ${o.message}` : x;
|
|
|
50058
50130
|
return r2.finally(() => {
|
|
50059
50131
|
s2();
|
|
50060
50132
|
});
|
|
50061
|
-
};
|
|
50133
|
+
});
|
|
50062
50134
|
e2.exports = { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler };
|
|
50063
50135
|
}, 210: (e2) => {
|
|
50064
50136
|
"use strict";
|
|
50065
|
-
const t2 = (
|
|
50066
|
-
})().constructor.prototype;
|
|
50137
|
+
const t2 = (() => __async(exports, null, function* () {
|
|
50138
|
+
}))().constructor.prototype;
|
|
50067
50139
|
const n2 = ["then", "catch", "finally"].map((e3) => [e3, Reflect.getOwnPropertyDescriptor(t2, e3)]);
|
|
50068
50140
|
const mergePromise = (e3, t3) => {
|
|
50069
50141
|
for (const [r, o] of n2) {
|
|
50070
50142
|
const n3 = typeof t3 === "function" ? (...e4) => Reflect.apply(o.value, t3(), e4) : o.value.bind(t3);
|
|
50071
|
-
Reflect.defineProperty(e3, r, {
|
|
50143
|
+
Reflect.defineProperty(e3, r, __spreadProps(__spreadValues({}, o), { value: n3 }));
|
|
50072
50144
|
}
|
|
50073
50145
|
return e3;
|
|
50074
50146
|
};
|
|
@@ -50152,17 +50224,17 @@ ${o.message}` : x;
|
|
|
50152
50224
|
}
|
|
50153
50225
|
return n3;
|
|
50154
50226
|
};
|
|
50155
|
-
const getBufferedData =
|
|
50227
|
+
const getBufferedData = (e3, t3) => __async(exports, null, function* () {
|
|
50156
50228
|
if (!e3) {
|
|
50157
50229
|
return;
|
|
50158
50230
|
}
|
|
50159
50231
|
e3.destroy();
|
|
50160
50232
|
try {
|
|
50161
|
-
return
|
|
50233
|
+
return yield t3;
|
|
50162
50234
|
} catch (e4) {
|
|
50163
50235
|
return e4.bufferedData;
|
|
50164
50236
|
}
|
|
50165
|
-
};
|
|
50237
|
+
});
|
|
50166
50238
|
const getStreamPromise = (e3, { encoding: t3, buffer: n3, maxBuffer: r2 }) => {
|
|
50167
50239
|
if (!e3 || !n3) {
|
|
50168
50240
|
return;
|
|
@@ -50172,16 +50244,16 @@ ${o.message}` : x;
|
|
|
50172
50244
|
}
|
|
50173
50245
|
return o.buffer(e3, { maxBuffer: r2 });
|
|
50174
50246
|
};
|
|
50175
|
-
const getSpawnedResult =
|
|
50247
|
+
const getSpawnedResult = (_0, _1, _2) => __async(exports, [_0, _1, _2], function* ({ stdout: e3, stderr: t3, all: n3 }, { encoding: r2, buffer: o2, maxBuffer: s2 }, i) {
|
|
50176
50248
|
const a = getStreamPromise(e3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
50177
50249
|
const c = getStreamPromise(t3, { encoding: r2, buffer: o2, maxBuffer: s2 });
|
|
50178
50250
|
const d = getStreamPromise(n3, { encoding: r2, buffer: o2, maxBuffer: s2 * 2 });
|
|
50179
50251
|
try {
|
|
50180
|
-
return
|
|
50252
|
+
return yield Promise.all([i, a, c, d]);
|
|
50181
50253
|
} catch (r3) {
|
|
50182
50254
|
return Promise.all([{ error: r3, signal: r3.signal, timedOut: r3.timedOut }, getBufferedData(e3, a), getBufferedData(t3, c), getBufferedData(n3, d)]);
|
|
50183
50255
|
}
|
|
50184
|
-
};
|
|
50256
|
+
});
|
|
50185
50257
|
const validateInputSync = ({ input: e3 }) => {
|
|
50186
50258
|
if (r(e3)) {
|
|
50187
50259
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
@@ -50192,7 +50264,7 @@ ${o.message}` : x;
|
|
|
50192
50264
|
"use strict";
|
|
50193
50265
|
const { PassThrough: r } = n2(781);
|
|
50194
50266
|
e2.exports = (e3) => {
|
|
50195
|
-
e3 = {
|
|
50267
|
+
e3 = __spreadValues({}, e3);
|
|
50196
50268
|
const { array: t3 } = e3;
|
|
50197
50269
|
let { encoding: n3 } = e3;
|
|
50198
50270
|
const o = n3 === "buffer";
|
|
@@ -50241,39 +50313,41 @@ ${o.message}` : x;
|
|
|
50241
50313
|
this.name = "MaxBufferError";
|
|
50242
50314
|
}
|
|
50243
50315
|
}
|
|
50244
|
-
|
|
50245
|
-
|
|
50246
|
-
|
|
50247
|
-
|
|
50248
|
-
|
|
50249
|
-
|
|
50250
|
-
|
|
50251
|
-
|
|
50252
|
-
|
|
50253
|
-
|
|
50254
|
-
e4
|
|
50255
|
-
|
|
50256
|
-
|
|
50257
|
-
|
|
50258
|
-
|
|
50259
|
-
|
|
50260
|
-
|
|
50261
|
-
|
|
50262
|
-
|
|
50263
|
-
|
|
50264
|
-
|
|
50265
|
-
|
|
50266
|
-
|
|
50267
|
-
|
|
50268
|
-
|
|
50269
|
-
|
|
50316
|
+
function getStream(e3, t3) {
|
|
50317
|
+
return __async(this, null, function* () {
|
|
50318
|
+
if (!e3) {
|
|
50319
|
+
throw new Error("Expected a stream");
|
|
50320
|
+
}
|
|
50321
|
+
t3 = __spreadValues({ maxBuffer: Infinity }, t3);
|
|
50322
|
+
const { maxBuffer: n3 } = t3;
|
|
50323
|
+
const o2 = i(t3);
|
|
50324
|
+
yield new Promise((t4, s2) => {
|
|
50325
|
+
const rejectPromise = (e4) => {
|
|
50326
|
+
if (e4 && o2.getBufferedLength() <= r.MAX_LENGTH) {
|
|
50327
|
+
e4.bufferedData = o2.getBufferedValue();
|
|
50328
|
+
}
|
|
50329
|
+
s2(e4);
|
|
50330
|
+
};
|
|
50331
|
+
(() => __async(this, null, function* () {
|
|
50332
|
+
try {
|
|
50333
|
+
yield a(e3, o2);
|
|
50334
|
+
t4();
|
|
50335
|
+
} catch (e4) {
|
|
50336
|
+
rejectPromise(e4);
|
|
50337
|
+
}
|
|
50338
|
+
}))();
|
|
50339
|
+
o2.on("data", () => {
|
|
50340
|
+
if (o2.getBufferedLength() > n3) {
|
|
50341
|
+
rejectPromise(new MaxBufferError());
|
|
50342
|
+
}
|
|
50343
|
+
});
|
|
50270
50344
|
});
|
|
50345
|
+
return o2.getBufferedValue();
|
|
50271
50346
|
});
|
|
50272
|
-
return o2.getBufferedValue();
|
|
50273
50347
|
}
|
|
50274
50348
|
e2.exports = getStream;
|
|
50275
|
-
e2.exports.buffer = (e3, t3) => getStream(e3, {
|
|
50276
|
-
e2.exports.array = (e3, t3) => getStream(e3, {
|
|
50349
|
+
e2.exports.buffer = (e3, t3) => getStream(e3, __spreadProps(__spreadValues({}, t3), { encoding: "buffer" }));
|
|
50350
|
+
e2.exports.array = (e3, t3) => getStream(e3, __spreadProps(__spreadValues({}, t3), { array: true }));
|
|
50277
50351
|
e2.exports.MaxBufferError = MaxBufferError;
|
|
50278
50352
|
}, 221: (e2, t2) => {
|
|
50279
50353
|
"use strict";
|
|
@@ -50293,7 +50367,7 @@ ${o.message}` : x;
|
|
|
50293
50367
|
return e3.reduce(getSignalByName, {});
|
|
50294
50368
|
};
|
|
50295
50369
|
const getSignalByName = function(e3, { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 }) {
|
|
50296
|
-
return {
|
|
50370
|
+
return __spreadProps(__spreadValues({}, e3), { [t3]: { name: t3, number: n3, description: r2, supported: o2, action: s2, forced: i2, standard: a2 } });
|
|
50297
50371
|
};
|
|
50298
50372
|
const i = getSignalsByName();
|
|
50299
50373
|
t2.signalsByName = i;
|
|
@@ -50525,7 +50599,7 @@ ${o.message}` : x;
|
|
|
50525
50599
|
const r = n2(17);
|
|
50526
50600
|
const o = n2(460);
|
|
50527
50601
|
const npmRunPath = (e3) => {
|
|
50528
|
-
e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath,
|
|
50602
|
+
e3 = __spreadValues({ cwd: process.cwd(), path: process.env[o()], execPath: process.execPath }, e3);
|
|
50529
50603
|
let t3;
|
|
50530
50604
|
let n3 = r.resolve(e3.cwd);
|
|
50531
50605
|
const s = [];
|
|
@@ -50541,8 +50615,8 @@ ${o.message}` : x;
|
|
|
50541
50615
|
e2.exports = npmRunPath;
|
|
50542
50616
|
e2.exports["default"] = npmRunPath;
|
|
50543
50617
|
e2.exports.env = (t3) => {
|
|
50544
|
-
t3 = { env: process.env,
|
|
50545
|
-
const n3 = {
|
|
50618
|
+
t3 = __spreadValues({ env: process.env }, t3);
|
|
50619
|
+
const n3 = __spreadValues({}, t3.env);
|
|
50546
50620
|
const r2 = o({ env: n3 });
|
|
50547
50621
|
t3.path = n3[r2];
|
|
50548
50622
|
n3[r2] = e2.exports(t3);
|
|
@@ -51939,7 +52013,7 @@ var require_upath2 = __commonJS({
|
|
|
51939
52013
|
_.VERSION = typeof n !== "undefined" && n !== null ? n : "NO-VERSION";
|
|
51940
52014
|
p = function(e3) {
|
|
51941
52015
|
e3 = e3.replace(/\\/g, "/");
|
|
51942
|
-
e3 = e3.replace(
|
|
52016
|
+
e3 = e3.replace(new RegExp("(?<!^)\\/+", "g"), "/");
|
|
51943
52017
|
return e3;
|
|
51944
52018
|
};
|
|
51945
52019
|
for (c in o) {
|
|
@@ -52235,7 +52309,9 @@ var require_pkg_up2 = __commonJS({
|
|
|
52235
52309
|
};
|
|
52236
52310
|
}, 800: (e2, r2, n2) => {
|
|
52237
52311
|
const t = n2(485);
|
|
52238
|
-
e2.exports =
|
|
52312
|
+
e2.exports = (..._0) => __async(exports, [..._0], function* ({ cwd: e3 } = {}) {
|
|
52313
|
+
return t("package.json", { cwd: e3 });
|
|
52314
|
+
});
|
|
52239
52315
|
e2.exports.sync = ({ cwd: e3 } = {}) => t.sync("package.json", { cwd: e3 });
|
|
52240
52316
|
}, 147: (e2) => {
|
|
52241
52317
|
e2.exports = require("fs");
|
|
@@ -55286,7 +55362,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
55286
55362
|
}
|
|
55287
55363
|
if (t4.nodes && t4.ranges > 0) {
|
|
55288
55364
|
let r4 = s.reduce(t4.nodes);
|
|
55289
|
-
let i2 = n(...r4, {
|
|
55365
|
+
let i2 = n(...r4, __spreadProps(__spreadValues({}, e3), { wrap: false, toRegex: true }));
|
|
55290
55366
|
if (i2.length !== 0) {
|
|
55291
55367
|
return r4.length > 1 && i2.length > 1 ? `(${i2})` : i2;
|
|
55292
55368
|
}
|
|
@@ -55712,11 +55788,13 @@ var require_fast_glob2 = __commonJS({
|
|
|
55712
55788
|
const a = r2(1066);
|
|
55713
55789
|
const u = r2(7190);
|
|
55714
55790
|
const c = r2(3828);
|
|
55715
|
-
|
|
55716
|
-
|
|
55717
|
-
|
|
55718
|
-
|
|
55719
|
-
|
|
55791
|
+
function FastGlob(t3, e3) {
|
|
55792
|
+
return __async(this, null, function* () {
|
|
55793
|
+
assertPatternsInput(t3);
|
|
55794
|
+
const r3 = getWorks(t3, i.default, e3);
|
|
55795
|
+
const n2 = yield Promise.all(r3);
|
|
55796
|
+
return c.array.flatten(n2);
|
|
55797
|
+
});
|
|
55720
55798
|
}
|
|
55721
55799
|
(function(t3) {
|
|
55722
55800
|
function sync(t4, e3) {
|
|
@@ -56887,7 +56965,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
56887
56965
|
};
|
|
56888
56966
|
const toRange = (t3, e3, r3, n2) => {
|
|
56889
56967
|
if (r3) {
|
|
56890
|
-
return s(t3, e3, { wrap: false,
|
|
56968
|
+
return s(t3, e3, __spreadValues({ wrap: false }, n2));
|
|
56891
56969
|
}
|
|
56892
56970
|
let i = String.fromCharCode(t3);
|
|
56893
56971
|
if (t3 === e3)
|
|
@@ -56953,7 +57031,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
56953
57031
|
g++;
|
|
56954
57032
|
}
|
|
56955
57033
|
if (n2.toRegex === true) {
|
|
56956
|
-
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, { wrap: false,
|
|
57034
|
+
return r3 > 1 ? toSequence(d, n2) : toRegex(_, null, __spreadValues({ wrap: false }, n2));
|
|
56957
57035
|
}
|
|
56958
57036
|
return _;
|
|
56959
57037
|
};
|
|
@@ -56995,7 +57073,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
56995
57073
|
if (isObject2(r3)) {
|
|
56996
57074
|
return fill(t3, e3, 0, r3);
|
|
56997
57075
|
}
|
|
56998
|
-
let s2 = {
|
|
57076
|
+
let s2 = __spreadValues({}, n2);
|
|
56999
57077
|
if (s2.capture === true)
|
|
57000
57078
|
s2.wrap = true;
|
|
57001
57079
|
r3 = r3 || s2.step || 1;
|
|
@@ -57319,7 +57397,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57319
57397
|
}
|
|
57320
57398
|
};
|
|
57321
57399
|
for (let o3 = 0; o3 < e3.length; o3++) {
|
|
57322
|
-
let u2 = i(String(e3[o3]), {
|
|
57400
|
+
let u2 = i(String(e3[o3]), __spreadProps(__spreadValues({}, r3), { onResult }), true);
|
|
57323
57401
|
let c2 = u2.state.negated || u2.state.negatedExtglob;
|
|
57324
57402
|
if (c2)
|
|
57325
57403
|
a++;
|
|
@@ -57361,7 +57439,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57361
57439
|
r3.onResult(t4);
|
|
57362
57440
|
s2.push(t4.output);
|
|
57363
57441
|
};
|
|
57364
|
-
let i2 = new Set(micromatch(t3, e3, {
|
|
57442
|
+
let i2 = new Set(micromatch(t3, e3, __spreadProps(__spreadValues({}, r3), { onResult })));
|
|
57365
57443
|
for (let t4 of s2) {
|
|
57366
57444
|
if (!i2.has(t4)) {
|
|
57367
57445
|
n2.add(t4);
|
|
@@ -57384,7 +57462,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57384
57462
|
return true;
|
|
57385
57463
|
}
|
|
57386
57464
|
}
|
|
57387
|
-
return micromatch.isMatch(t3, e3, {
|
|
57465
|
+
return micromatch.isMatch(t3, e3, __spreadProps(__spreadValues({}, r3), { contains: true }));
|
|
57388
57466
|
};
|
|
57389
57467
|
micromatch.matchKeys = (t3, e3, r3) => {
|
|
57390
57468
|
if (!o.isObject(t3)) {
|
|
@@ -57424,7 +57502,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57424
57502
|
};
|
|
57425
57503
|
micromatch.capture = (t3, e3, r3) => {
|
|
57426
57504
|
let n2 = o.isWindows(r3);
|
|
57427
|
-
let s2 = i.makeRe(String(t3), {
|
|
57505
|
+
let s2 = i.makeRe(String(t3), __spreadProps(__spreadValues({}, r3), { capture: true }));
|
|
57428
57506
|
let a = s2.exec(n2 ? o.toPosixSlashes(e3) : e3);
|
|
57429
57507
|
if (a) {
|
|
57430
57508
|
return a.slice(1).map((t4) => t4 === void 0 ? "" : t4);
|
|
@@ -57452,7 +57530,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57452
57530
|
micromatch.braceExpand = (t3, e3) => {
|
|
57453
57531
|
if (typeof t3 !== "string")
|
|
57454
57532
|
throw new TypeError("Expected a string");
|
|
57455
|
-
return micromatch.braces(t3, {
|
|
57533
|
+
return micromatch.braces(t3, __spreadProps(__spreadValues({}, e3), { expand: true }));
|
|
57456
57534
|
};
|
|
57457
57535
|
t2.exports = micromatch;
|
|
57458
57536
|
}, 376: (t2, e2, r2) => {
|
|
@@ -57479,7 +57557,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57479
57557
|
const m = `[^.${c}]`;
|
|
57480
57558
|
const v = `${f}*?`;
|
|
57481
57559
|
const E = { DOT_LITERAL: o, PLUS_LITERAL: a, QMARK_LITERAL: u, SLASH_LITERAL: c, ONE_CHAR: l, QMARK: f, END_ANCHOR: p, DOTS_SLASH: d, NO_DOT: _, NO_DOTS: g, NO_DOT_SLASH: y, NO_DOTS_SLASH: S, QMARK_NO_DOT: m, STAR: v, START_ANCHOR: h };
|
|
57482
|
-
const A = {
|
|
57560
|
+
const A = __spreadProps(__spreadValues({}, E), { SLASH_LITERAL: `[${s}]`, QMARK: i, STAR: `${i}*?`, DOTS_SLASH: `${o}{1,2}(?:[${s}]|$)`, NO_DOT: `(?!${o})`, NO_DOTS: `(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`, NO_DOT_SLASH: `(?!${o}{0,1}(?:[${s}]|$))`, NO_DOTS_SLASH: `(?!${o}{1,2}(?:[${s}]|$))`, QMARK_NO_DOT: `[^.${s}]`, START_ANCHOR: `(?:^|[${s}])`, END_ANCHOR: `(?:[${s}]|$)` });
|
|
57483
57561
|
const b = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
|
|
57484
57562
|
t2.exports = { MAX_LENGTH: 1024 * 64, POSIX_REGEX_SOURCE: b, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, SEP: n.sep, extglobChars(t3) {
|
|
57485
57563
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${t3.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
|
@@ -57510,7 +57588,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57510
57588
|
throw new TypeError("Expected a string");
|
|
57511
57589
|
}
|
|
57512
57590
|
t3 = c[t3] || t3;
|
|
57513
|
-
const r3 = {
|
|
57591
|
+
const r3 = __spreadValues({}, e3);
|
|
57514
57592
|
const l = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
57515
57593
|
let f = t3.length;
|
|
57516
57594
|
if (f > l) {
|
|
@@ -57602,7 +57680,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57602
57680
|
M = t4;
|
|
57603
57681
|
};
|
|
57604
57682
|
const extglobOpen = (t4, e4) => {
|
|
57605
|
-
const n2 = {
|
|
57683
|
+
const n2 = __spreadProps(__spreadValues({}, y[e4]), { conditions: 1, inner: "" });
|
|
57606
57684
|
n2.prev = M;
|
|
57607
57685
|
n2.parens = H.parens;
|
|
57608
57686
|
n2.output = H.output;
|
|
@@ -57624,7 +57702,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
57624
57702
|
n2 = t4.close = `)$))${i2}`;
|
|
57625
57703
|
}
|
|
57626
57704
|
if (t4.inner.includes("*") && (s2 = remaining()) && /^\.[^\\/.]+$/.test(s2)) {
|
|
57627
|
-
const r4 = parse(s2, {
|
|
57705
|
+
const r4 = parse(s2, __spreadProps(__spreadValues({}, e3), { fastpaths: false })).output;
|
|
57628
57706
|
n2 = t4.close = `)${r4})${i2})`;
|
|
57629
57707
|
}
|
|
57630
57708
|
if (t4.prev.type === "bos") {
|
|
@@ -58146,7 +58224,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
58146
58224
|
return H;
|
|
58147
58225
|
};
|
|
58148
58226
|
parse.fastpaths = (t3, e3) => {
|
|
58149
|
-
const r3 = {
|
|
58227
|
+
const r3 = __spreadValues({}, e3);
|
|
58150
58228
|
const o2 = typeof r3.maxLength === "number" ? Math.min(i, r3.maxLength) : i;
|
|
58151
58229
|
const a2 = t3.length;
|
|
58152
58230
|
if (a2 > o2) {
|
|
@@ -58237,7 +58315,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
58237
58315
|
delete a2.state;
|
|
58238
58316
|
let isIgnored = () => false;
|
|
58239
58317
|
if (s2.ignore) {
|
|
58240
|
-
const t4 = {
|
|
58318
|
+
const t4 = __spreadProps(__spreadValues({}, e3), { ignore: null, onMatch: null, onResult: null });
|
|
58241
58319
|
isIgnored = picomatch(s2.ignore, t4, r3);
|
|
58242
58320
|
}
|
|
58243
58321
|
const matcher = (r4, n3 = false) => {
|
|
@@ -58299,7 +58377,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
58299
58377
|
picomatch.parse = (t3, e3) => {
|
|
58300
58378
|
if (Array.isArray(t3))
|
|
58301
58379
|
return t3.map((t4) => picomatch.parse(t4, e3));
|
|
58302
|
-
return i(t3, {
|
|
58380
|
+
return i(t3, __spreadProps(__spreadValues({}, e3), { fastpaths: false }));
|
|
58303
58381
|
};
|
|
58304
58382
|
picomatch.scan = (t3, e3) => s(t3, e3);
|
|
58305
58383
|
picomatch.compileRe = (t3, e3, r3 = false, n2 = false) => {
|
|
@@ -58764,7 +58842,7 @@ var require_fast_glob2 = __commonJS({
|
|
|
58764
58842
|
if (n(e3) === false) {
|
|
58765
58843
|
throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
58766
58844
|
}
|
|
58767
|
-
let s = { relaxZeros: true,
|
|
58845
|
+
let s = __spreadValues({ relaxZeros: true }, r3);
|
|
58768
58846
|
if (typeof s.strictZeros === "boolean") {
|
|
58769
58847
|
s.relaxZeros = s.strictZeros === false;
|
|
58770
58848
|
}
|
|
@@ -59042,19 +59120,19 @@ var require_globby2 = __commonJS({
|
|
|
59042
59120
|
}
|
|
59043
59121
|
return [n.posix.join(t3, "**")];
|
|
59044
59122
|
};
|
|
59045
|
-
t2.exports =
|
|
59046
|
-
e3 = { cwd: process.cwd(),
|
|
59123
|
+
t2.exports = (t3, e3) => __async(exports, null, function* () {
|
|
59124
|
+
e3 = __spreadValues({ cwd: process.cwd() }, e3);
|
|
59047
59125
|
if (typeof e3.cwd !== "string") {
|
|
59048
59126
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
59049
59127
|
}
|
|
59050
|
-
const r3 =
|
|
59051
|
-
const r4 =
|
|
59128
|
+
const r3 = yield Promise.all([].concat(t3).map((t4) => __async(exports, null, function* () {
|
|
59129
|
+
const r4 = yield s.isDirectory(getPath(t4, e3.cwd));
|
|
59052
59130
|
return r4 ? getGlob(t4, e3) : t4;
|
|
59053
|
-
}));
|
|
59131
|
+
})));
|
|
59054
59132
|
return [].concat.apply([], r3);
|
|
59055
|
-
};
|
|
59133
|
+
});
|
|
59056
59134
|
t2.exports.sync = (t3, e3) => {
|
|
59057
|
-
e3 = { cwd: process.cwd(),
|
|
59135
|
+
e3 = __spreadValues({ cwd: process.cwd() }, e3);
|
|
59058
59136
|
if (typeof e3.cwd !== "string") {
|
|
59059
59137
|
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e3.cwd}\``);
|
|
59060
59138
|
}
|
|
@@ -59099,24 +59177,24 @@ var require_globby2 = __commonJS({
|
|
|
59099
59177
|
return o.join(t3, e3);
|
|
59100
59178
|
};
|
|
59101
59179
|
const getIsIgnoredPredecate = (t3, e3) => (r3) => t3.ignores(a(o.relative(e3, ensureAbsolutePathForCwd(e3, r3.path || r3))));
|
|
59102
|
-
const getFile =
|
|
59180
|
+
const getFile = (t3, e3) => __async(exports, null, function* () {
|
|
59103
59181
|
const r3 = o.join(e3, t3);
|
|
59104
|
-
const n2 =
|
|
59182
|
+
const n2 = yield u(r3, "utf8");
|
|
59105
59183
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
59106
|
-
};
|
|
59184
|
+
});
|
|
59107
59185
|
const getFileSync = (t3, e3) => {
|
|
59108
59186
|
const r3 = o.join(e3, t3);
|
|
59109
59187
|
const n2 = s.readFileSync(r3, "utf8");
|
|
59110
59188
|
return { cwd: e3, filePath: r3, content: n2 };
|
|
59111
59189
|
};
|
|
59112
59190
|
const normalizeOptions = ({ ignore: t3 = [], cwd: e3 = a(process.cwd()) } = {}) => ({ ignore: t3, cwd: e3 });
|
|
59113
|
-
t2.exports =
|
|
59191
|
+
t2.exports = (t3) => __async(exports, null, function* () {
|
|
59114
59192
|
t3 = normalizeOptions(t3);
|
|
59115
|
-
const e3 =
|
|
59116
|
-
const r3 =
|
|
59193
|
+
const e3 = yield i("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
59194
|
+
const r3 = yield Promise.all(e3.map((e4) => getFile(e4, t3.cwd)));
|
|
59117
59195
|
const n2 = reduceIgnore(r3);
|
|
59118
59196
|
return getIsIgnoredPredecate(n2, t3.cwd);
|
|
59119
|
-
};
|
|
59197
|
+
});
|
|
59120
59198
|
t2.exports.sync = (t3) => {
|
|
59121
59199
|
t3 = normalizeOptions(t3);
|
|
59122
59200
|
const e3 = i.sync("**/.gitignore", { ignore: p.concat(t3.ignore), cwd: t3.cwd });
|
|
@@ -59147,7 +59225,7 @@ var require_globby2 = __commonJS({
|
|
|
59147
59225
|
let e3;
|
|
59148
59226
|
try {
|
|
59149
59227
|
e3 = n.statSync(t3.cwd);
|
|
59150
|
-
} catch {
|
|
59228
|
+
} catch (e4) {
|
|
59151
59229
|
return;
|
|
59152
59230
|
}
|
|
59153
59231
|
if (!e3.isDirectory()) {
|
|
@@ -59160,13 +59238,13 @@ var require_globby2 = __commonJS({
|
|
|
59160
59238
|
assertPatternsInput(t3);
|
|
59161
59239
|
checkCwdOption(e3);
|
|
59162
59240
|
const r3 = [];
|
|
59163
|
-
e3 = { ignore: [], expandDirectories: true,
|
|
59241
|
+
e3 = __spreadValues({ ignore: [], expandDirectories: true }, e3);
|
|
59164
59242
|
for (const [n2, s2] of t3.entries()) {
|
|
59165
59243
|
if (isNegative(s2)) {
|
|
59166
59244
|
continue;
|
|
59167
59245
|
}
|
|
59168
59246
|
const o2 = t3.slice(n2).filter((t4) => isNegative(t4)).map((t4) => t4.slice(1));
|
|
59169
|
-
const i2 = {
|
|
59247
|
+
const i2 = __spreadProps(__spreadValues({}, e3), { ignore: e3.ignore.concat(o2) });
|
|
59170
59248
|
r3.push({ pattern: s2, options: i2 });
|
|
59171
59249
|
}
|
|
59172
59250
|
return r3;
|
|
@@ -59177,9 +59255,9 @@ var require_globby2 = __commonJS({
|
|
|
59177
59255
|
r3.cwd = t3.options.cwd;
|
|
59178
59256
|
}
|
|
59179
59257
|
if (Array.isArray(t3.options.expandDirectories)) {
|
|
59180
|
-
r3 = {
|
|
59258
|
+
r3 = __spreadProps(__spreadValues({}, r3), { files: t3.options.expandDirectories });
|
|
59181
59259
|
} else if (typeof t3.options.expandDirectories === "object") {
|
|
59182
|
-
r3 = {
|
|
59260
|
+
r3 = __spreadValues(__spreadValues({}, r3), t3.options.expandDirectories);
|
|
59183
59261
|
}
|
|
59184
59262
|
return e3(t3.pattern, r3);
|
|
59185
59263
|
};
|
|
@@ -59192,20 +59270,22 @@ var require_globby2 = __commonJS({
|
|
|
59192
59270
|
}
|
|
59193
59271
|
return { pattern: e3, options: r3 };
|
|
59194
59272
|
};
|
|
59195
|
-
t2.exports =
|
|
59273
|
+
t2.exports = (t3, e3) => __async(exports, null, function* () {
|
|
59196
59274
|
const r3 = generateGlobTasks(t3, e3);
|
|
59197
|
-
const getFilter =
|
|
59198
|
-
|
|
59199
|
-
|
|
59200
|
-
|
|
59275
|
+
const getFilter = () => __async(exports, null, function* () {
|
|
59276
|
+
return e3 && e3.gitignore ? a({ cwd: e3.cwd, ignore: e3.ignore }) : DEFAULT_FILTER;
|
|
59277
|
+
});
|
|
59278
|
+
const getTasks = () => __async(exports, null, function* () {
|
|
59279
|
+
const t4 = yield Promise.all(r3.map((t5) => __async(exports, null, function* () {
|
|
59280
|
+
const e4 = yield getPattern(t5, c);
|
|
59201
59281
|
return Promise.all(e4.map(globToTask(t5)));
|
|
59202
|
-
}));
|
|
59282
|
+
})));
|
|
59203
59283
|
return s(...t4);
|
|
59204
|
-
};
|
|
59205
|
-
const [n2, o2] =
|
|
59206
|
-
const p2 =
|
|
59284
|
+
});
|
|
59285
|
+
const [n2, o2] = yield Promise.all([getFilter(), getTasks()]);
|
|
59286
|
+
const p2 = yield Promise.all(o2.map((t4) => i(t4.pattern, t4.options)));
|
|
59207
59287
|
return s(...p2).filter((t4) => !n2(getPathString(t4)));
|
|
59208
|
-
};
|
|
59288
|
+
});
|
|
59209
59289
|
t2.exports.sync = (t3, e3) => {
|
|
59210
59290
|
const r3 = generateGlobTasks(t3, e3);
|
|
59211
59291
|
const n2 = [];
|
|
@@ -59559,19 +59639,21 @@ var require_globby2 = __commonJS({
|
|
|
59559
59639
|
"use strict";
|
|
59560
59640
|
const { promisify: n } = r2(837);
|
|
59561
59641
|
const s = r2(147);
|
|
59562
|
-
|
|
59563
|
-
|
|
59564
|
-
|
|
59565
|
-
|
|
59566
|
-
try {
|
|
59567
|
-
const o = await n(s[t3])(r3);
|
|
59568
|
-
return o[e3]();
|
|
59569
|
-
} catch (t4) {
|
|
59570
|
-
if (t4.code === "ENOENT") {
|
|
59571
|
-
return false;
|
|
59642
|
+
function isType(t3, e3, r3) {
|
|
59643
|
+
return __async(this, null, function* () {
|
|
59644
|
+
if (typeof r3 !== "string") {
|
|
59645
|
+
throw new TypeError(`Expected a string, got ${typeof r3}`);
|
|
59572
59646
|
}
|
|
59573
|
-
|
|
59574
|
-
|
|
59647
|
+
try {
|
|
59648
|
+
const o = yield n(s[t3])(r3);
|
|
59649
|
+
return o[e3]();
|
|
59650
|
+
} catch (t4) {
|
|
59651
|
+
if (t4.code === "ENOENT") {
|
|
59652
|
+
return false;
|
|
59653
|
+
}
|
|
59654
|
+
throw t4;
|
|
59655
|
+
}
|
|
59656
|
+
});
|
|
59575
59657
|
}
|
|
59576
59658
|
function isTypeSync(t3, e3, r3) {
|
|
59577
59659
|
if (typeof r3 !== "string") {
|
|
@@ -61946,15 +62028,15 @@ var require_gzip_size2 = __commonJS({
|
|
|
61946
62028
|
const i = t2(796);
|
|
61947
62029
|
const { promisify: a } = t2(837);
|
|
61948
62030
|
const s = t2(325);
|
|
61949
|
-
const getOptions = (e3) => ({ level: 9,
|
|
62031
|
+
const getOptions = (e3) => __spreadValues({ level: 9 }, e3);
|
|
61950
62032
|
const p = a(i.gzip);
|
|
61951
|
-
e2.exports =
|
|
62033
|
+
e2.exports = (e3, r3) => __async(exports, null, function* () {
|
|
61952
62034
|
if (!e3) {
|
|
61953
62035
|
return 0;
|
|
61954
62036
|
}
|
|
61955
|
-
const t3 =
|
|
62037
|
+
const t3 = yield p(e3, getOptions(r3));
|
|
61956
62038
|
return t3.length;
|
|
61957
|
-
};
|
|
62039
|
+
});
|
|
61958
62040
|
e2.exports.sync = (e3, r3) => i.gzipSync(e3, getOptions(r3)).length;
|
|
61959
62041
|
e2.exports.stream = (e3) => {
|
|
61960
62042
|
const r3 = new o.PassThrough();
|
|
@@ -64713,10 +64795,12 @@ Expecting one of '${i3.join("', '")}'`);
|
|
|
64713
64795
|
this._parseCommand([], i3);
|
|
64714
64796
|
return this;
|
|
64715
64797
|
}
|
|
64716
|
-
|
|
64717
|
-
|
|
64718
|
-
|
|
64719
|
-
|
|
64798
|
+
parseAsync(e3, t3) {
|
|
64799
|
+
return __async(this, null, function* () {
|
|
64800
|
+
const i3 = this._prepareUserArgs(e3, t3);
|
|
64801
|
+
yield this._parseCommand([], i3);
|
|
64802
|
+
return this;
|
|
64803
|
+
});
|
|
64720
64804
|
}
|
|
64721
64805
|
_executeSubCommand(e3, t3) {
|
|
64722
64806
|
t3 = t3.slice();
|
|
@@ -65988,11 +66072,8 @@ var require_logger2 = __commonJS({
|
|
|
65988
66072
|
var Logger2 = class {
|
|
65989
66073
|
constructor(options = {}) {
|
|
65990
66074
|
this.level = options.level || LOG_TYPES.log.level;
|
|
65991
|
-
this.config = {
|
|
65992
|
-
this.types = {
|
|
65993
|
-
...LOG_TYPES,
|
|
65994
|
-
...options.types || {}
|
|
65995
|
-
};
|
|
66075
|
+
this.config = __spreadValues(__spreadValues({}, DEFAULT_CONFIG), options.config || {});
|
|
66076
|
+
this.types = __spreadValues(__spreadValues({}, LOG_TYPES), options.types || {});
|
|
65996
66077
|
this.longestLabel = this.getLongestLabel();
|
|
65997
66078
|
Object.keys(this.types).forEach((type) => {
|
|
65998
66079
|
this[type] = this._log.bind(this, type);
|
|
@@ -66747,7 +66828,7 @@ var require_getEntryOptions2 = __commonJS({
|
|
|
66747
66828
|
if (optionsByEntry === void 0 && name === constants_1.MAIN_ENTRY_NAME && packageName) {
|
|
66748
66829
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
|
66749
66830
|
}
|
|
66750
|
-
return optionsByEntry !== void 0 ? (0, is_1.isPlainObject)(optionsByEntry) && (0, is_1.isPlainObject)(baseOptions) ? {
|
|
66831
|
+
return optionsByEntry !== void 0 ? (0, is_1.isPlainObject)(optionsByEntry) && (0, is_1.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
|
|
66751
66832
|
} else {
|
|
66752
66833
|
return baseOptions;
|
|
66753
66834
|
}
|
|
@@ -66769,7 +66850,7 @@ var require_getPort2 = __commonJS({
|
|
|
66769
66850
|
var net_1 = __importDefault(require("net"));
|
|
66770
66851
|
var compiled_1 = require_compiled2();
|
|
66771
66852
|
var logger_1 = require_logger2();
|
|
66772
|
-
var getPort =
|
|
66853
|
+
var getPort = (_0, ..._1) => __async(exports, [_0, ..._1], function* (port, { tryLimits = 20, strictPort = false } = {}) {
|
|
66773
66854
|
if (typeof port === "string") {
|
|
66774
66855
|
port = parseInt(port, 10);
|
|
66775
66856
|
}
|
|
@@ -66781,7 +66862,7 @@ var require_getPort2 = __commonJS({
|
|
|
66781
66862
|
let attempts = 0;
|
|
66782
66863
|
while (!found && attempts <= tryLimits) {
|
|
66783
66864
|
try {
|
|
66784
|
-
|
|
66865
|
+
yield new Promise((resolve, reject) => {
|
|
66785
66866
|
const server = net_1.default.createServer();
|
|
66786
66867
|
server.unref();
|
|
66787
66868
|
server.on("error", reject);
|
|
@@ -66809,7 +66890,7 @@ var require_getPort2 = __commonJS({
|
|
|
66809
66890
|
}
|
|
66810
66891
|
}
|
|
66811
66892
|
return port;
|
|
66812
|
-
};
|
|
66893
|
+
});
|
|
66813
66894
|
exports.getPort = getPort;
|
|
66814
66895
|
}
|
|
66815
66896
|
});
|
|
@@ -66854,10 +66935,7 @@ var require_monorepo2 = __commonJS({
|
|
|
66854
66935
|
return false;
|
|
66855
66936
|
}
|
|
66856
66937
|
const json = JSON.parse(fs_1.default.readFileSync(pkgJsonPath, "utf8"));
|
|
66857
|
-
const deps = {
|
|
66858
|
-
...json.dependencies || {},
|
|
66859
|
-
...json.devDependencies || {}
|
|
66860
|
-
};
|
|
66938
|
+
const deps = __spreadValues(__spreadValues({}, json.dependencies || {}), json.devDependencies || {});
|
|
66861
66939
|
return Boolean(deps["@modern-js/monorepo-tools"]);
|
|
66862
66940
|
};
|
|
66863
66941
|
exports.isModernjsMonorepo = isModernjsMonorepo;
|
|
@@ -66905,31 +66983,37 @@ var require_nodeEnv2 = __commonJS({
|
|
|
66905
66983
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66906
66984
|
exports.canUsePnpm = exports.canUseYarn = exports.canUseNpm = void 0;
|
|
66907
66985
|
var compiled_1 = require_compiled2();
|
|
66908
|
-
|
|
66909
|
-
|
|
66910
|
-
|
|
66911
|
-
|
|
66912
|
-
|
|
66913
|
-
|
|
66914
|
-
|
|
66986
|
+
function canUseNpm() {
|
|
66987
|
+
return __async(this, null, function* () {
|
|
66988
|
+
try {
|
|
66989
|
+
yield (0, compiled_1.execa)("npm", ["--version"], { env: process.env });
|
|
66990
|
+
return true;
|
|
66991
|
+
} catch (e) {
|
|
66992
|
+
return false;
|
|
66993
|
+
}
|
|
66994
|
+
});
|
|
66915
66995
|
}
|
|
66916
66996
|
exports.canUseNpm = canUseNpm;
|
|
66917
|
-
|
|
66918
|
-
|
|
66919
|
-
|
|
66920
|
-
|
|
66921
|
-
|
|
66922
|
-
|
|
66923
|
-
|
|
66997
|
+
function canUseYarn() {
|
|
66998
|
+
return __async(this, null, function* () {
|
|
66999
|
+
try {
|
|
67000
|
+
yield (0, compiled_1.execa)("yarn", ["--version"], { env: process.env });
|
|
67001
|
+
return true;
|
|
67002
|
+
} catch (e) {
|
|
67003
|
+
return false;
|
|
67004
|
+
}
|
|
67005
|
+
});
|
|
66924
67006
|
}
|
|
66925
67007
|
exports.canUseYarn = canUseYarn;
|
|
66926
|
-
|
|
66927
|
-
|
|
66928
|
-
|
|
66929
|
-
|
|
66930
|
-
|
|
66931
|
-
|
|
66932
|
-
|
|
67008
|
+
function canUsePnpm() {
|
|
67009
|
+
return __async(this, null, function* () {
|
|
67010
|
+
try {
|
|
67011
|
+
yield (0, compiled_1.execa)("pnpm", ["--version"], { env: process.env });
|
|
67012
|
+
return true;
|
|
67013
|
+
} catch (e) {
|
|
67014
|
+
return false;
|
|
67015
|
+
}
|
|
67016
|
+
});
|
|
66933
67017
|
}
|
|
66934
67018
|
exports.canUsePnpm = canUsePnpm;
|
|
66935
67019
|
}
|
|
@@ -66949,29 +67033,31 @@ var require_getPackageManager2 = __commonJS({
|
|
|
66949
67033
|
var compiled_1 = require_compiled2();
|
|
66950
67034
|
var nodeEnv_1 = require_nodeEnv2();
|
|
66951
67035
|
var MAX_TIMES = 5;
|
|
66952
|
-
|
|
66953
|
-
|
|
66954
|
-
|
|
66955
|
-
|
|
66956
|
-
times
|
|
66957
|
-
|
|
67036
|
+
function getPackageManager() {
|
|
67037
|
+
return __async(this, arguments, function* (cwd = process.cwd()) {
|
|
67038
|
+
let appDirectory = cwd;
|
|
67039
|
+
let times = 0;
|
|
67040
|
+
while (os_1.default.homedir() !== appDirectory && times < MAX_TIMES) {
|
|
67041
|
+
times++;
|
|
67042
|
+
if (compiled_1.fs.existsSync(path_1.default.resolve(appDirectory, "pnpm-lock.yaml"))) {
|
|
67043
|
+
return "pnpm";
|
|
67044
|
+
}
|
|
67045
|
+
if (compiled_1.fs.existsSync(path_1.default.resolve(appDirectory, "yarn.lock"))) {
|
|
67046
|
+
return "yarn";
|
|
67047
|
+
}
|
|
67048
|
+
if (compiled_1.fs.existsSync(path_1.default.resolve(appDirectory, "package-lock.json"))) {
|
|
67049
|
+
return "npm";
|
|
67050
|
+
}
|
|
67051
|
+
appDirectory = path_1.default.join(appDirectory, "..");
|
|
67052
|
+
}
|
|
67053
|
+
if (yield (0, nodeEnv_1.canUsePnpm)()) {
|
|
66958
67054
|
return "pnpm";
|
|
66959
67055
|
}
|
|
66960
|
-
if (
|
|
67056
|
+
if (yield (0, nodeEnv_1.canUseYarn)()) {
|
|
66961
67057
|
return "yarn";
|
|
66962
67058
|
}
|
|
66963
|
-
|
|
66964
|
-
|
|
66965
|
-
}
|
|
66966
|
-
appDirectory = path_1.default.join(appDirectory, "..");
|
|
66967
|
-
}
|
|
66968
|
-
if (await (0, nodeEnv_1.canUsePnpm)()) {
|
|
66969
|
-
return "pnpm";
|
|
66970
|
-
}
|
|
66971
|
-
if (await (0, nodeEnv_1.canUseYarn)()) {
|
|
66972
|
-
return "yarn";
|
|
66973
|
-
}
|
|
66974
|
-
return "npm";
|
|
67059
|
+
return "npm";
|
|
67060
|
+
});
|
|
66975
67061
|
}
|
|
66976
67062
|
exports.getPackageManager = getPackageManager;
|
|
66977
67063
|
}
|
|
@@ -67044,7 +67130,7 @@ var require_runtimeExports2 = __commonJS({
|
|
|
67044
67130
|
compiled_1.fs.appendFileSync(entryExportFile, `${statement}
|
|
67045
67131
|
`);
|
|
67046
67132
|
}
|
|
67047
|
-
} catch {
|
|
67133
|
+
} catch (e) {
|
|
67048
67134
|
}
|
|
67049
67135
|
};
|
|
67050
67136
|
const getPath = () => entryExportFile;
|
|
@@ -67241,10 +67327,7 @@ var require_alias2 = __commonJS({
|
|
|
67241
67327
|
const baseUrl = (_a = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _a === void 0 ? void 0 : _a.baseUrl;
|
|
67242
67328
|
aliasConfig = {
|
|
67243
67329
|
absoluteBaseUrl: baseUrl ? path_1.default.join(option.appDirectory, baseUrl) : option.appDirectory,
|
|
67244
|
-
paths: {
|
|
67245
|
-
...aliasOption || {},
|
|
67246
|
-
...(_b = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _b === void 0 ? void 0 : _b.paths
|
|
67247
|
-
},
|
|
67330
|
+
paths: __spreadValues(__spreadValues({}, aliasOption || {}), (_b = tsconfig === null || tsconfig === void 0 ? void 0 : tsconfig.compilerOptions) === null || _b === void 0 ? void 0 : _b.paths),
|
|
67248
67331
|
isTsPath: true,
|
|
67249
67332
|
isTsProject
|
|
67250
67333
|
};
|
|
@@ -67313,20 +67396,20 @@ var require_watch2 = __commonJS({
|
|
|
67313
67396
|
ignored
|
|
67314
67397
|
});
|
|
67315
67398
|
watcher.on("ready", () => ready = true);
|
|
67316
|
-
watcher.on("change",
|
|
67399
|
+
watcher.on("change", (filePath) => __async(exports, null, function* () {
|
|
67317
67400
|
const changedFilePath = path4.resolve(filePath);
|
|
67318
|
-
|
|
67319
|
-
});
|
|
67320
|
-
watcher.on("add",
|
|
67401
|
+
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.CHANGE });
|
|
67402
|
+
}));
|
|
67403
|
+
watcher.on("add", (filePath) => __async(exports, null, function* () {
|
|
67321
67404
|
const changedFilePath = path4.resolve(filePath);
|
|
67322
67405
|
if (ready) {
|
|
67323
|
-
|
|
67406
|
+
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.ADD });
|
|
67324
67407
|
}
|
|
67325
|
-
});
|
|
67326
|
-
watcher.on("unlink",
|
|
67408
|
+
}));
|
|
67409
|
+
watcher.on("unlink", (filePath) => __async(exports, null, function* () {
|
|
67327
67410
|
const changedFilePath = path4.resolve(filePath);
|
|
67328
|
-
|
|
67329
|
-
});
|
|
67411
|
+
yield runTask({ changedFilePath, changeType: exports.WatchChangeType.UNLINK });
|
|
67412
|
+
}));
|
|
67330
67413
|
watcher.on("error", (err) => {
|
|
67331
67414
|
throw err;
|
|
67332
67415
|
});
|
|
@@ -67356,11 +67439,11 @@ var require_emptyDir2 = __commonJS({
|
|
|
67356
67439
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67357
67440
|
exports.emptyDir = void 0;
|
|
67358
67441
|
var compiled_1 = require_compiled2();
|
|
67359
|
-
var emptyDir =
|
|
67360
|
-
if (
|
|
67361
|
-
|
|
67442
|
+
var emptyDir = (dir) => __async(exports, null, function* () {
|
|
67443
|
+
if (yield compiled_1.fs.pathExists(dir)) {
|
|
67444
|
+
yield compiled_1.fs.emptyDir(dir);
|
|
67362
67445
|
}
|
|
67363
|
-
};
|
|
67446
|
+
});
|
|
67364
67447
|
exports.emptyDir = emptyDir;
|
|
67365
67448
|
}
|
|
67366
67449
|
});
|
|
@@ -67406,10 +67489,10 @@ var require_getServerConfig2 = __commonJS({
|
|
|
67406
67489
|
var path4 = __importStar(require("path"));
|
|
67407
67490
|
var constants_1 = require_constants3();
|
|
67408
67491
|
var findExists_1 = require_findExists2();
|
|
67409
|
-
var getServerConfig =
|
|
67492
|
+
var getServerConfig = (appDirectory, configFile) => __async(exports, null, function* () {
|
|
67410
67493
|
const configFilePath = (0, findExists_1.findExists)(constants_1.CONFIG_FILE_EXTENSIONS.map((extension) => path4.resolve(appDirectory, `${configFile}${extension}`)));
|
|
67411
67494
|
return configFilePath;
|
|
67412
|
-
};
|
|
67495
|
+
});
|
|
67413
67496
|
exports.getServerConfig = getServerConfig;
|
|
67414
67497
|
}
|
|
67415
67498
|
});
|
|
@@ -67579,12 +67662,12 @@ var require_analyzeProject2 = __commonJS({
|
|
|
67579
67662
|
exports.isApiOnly = void 0;
|
|
67580
67663
|
var path4 = __importStar(require("path"));
|
|
67581
67664
|
var compiled_1 = require_compiled2();
|
|
67582
|
-
var isApiOnly =
|
|
67665
|
+
var isApiOnly = (appDirectory, entryDir) => __async(exports, null, function* () {
|
|
67583
67666
|
const srcDir = path4.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src");
|
|
67584
|
-
const existSrc =
|
|
67667
|
+
const existSrc = yield compiled_1.fs.pathExists(srcDir);
|
|
67585
67668
|
const options = (0, compiled_1.minimist)(process.argv.slice(2));
|
|
67586
67669
|
return !existSrc || Boolean(options["api-only"]);
|
|
67587
|
-
};
|
|
67670
|
+
});
|
|
67588
67671
|
exports.isApiOnly = isApiOnly;
|
|
67589
67672
|
}
|
|
67590
67673
|
});
|
|
@@ -67703,9 +67786,11 @@ var require_version2 = __commonJS({
|
|
|
67703
67786
|
exports.isReact18 = exports.getPnpmVersion = void 0;
|
|
67704
67787
|
var path_1 = __importDefault(require("path"));
|
|
67705
67788
|
var compiled_1 = require_compiled2();
|
|
67706
|
-
|
|
67707
|
-
|
|
67708
|
-
|
|
67789
|
+
function getPnpmVersion() {
|
|
67790
|
+
return __async(this, null, function* () {
|
|
67791
|
+
const { stdout } = yield (0, compiled_1.execa)("pnpm", ["--version"]);
|
|
67792
|
+
return stdout;
|
|
67793
|
+
});
|
|
67709
67794
|
}
|
|
67710
67795
|
exports.getPnpmVersion = getPnpmVersion;
|
|
67711
67796
|
var isReact18 = (cwd) => {
|
|
@@ -67714,10 +67799,7 @@ var require_version2 = __commonJS({
|
|
|
67714
67799
|
return false;
|
|
67715
67800
|
}
|
|
67716
67801
|
const pkgInfo = JSON.parse(compiled_1.fs.readFileSync(pkgPath, "utf8"));
|
|
67717
|
-
const deps = {
|
|
67718
|
-
...pkgInfo.devDependencies,
|
|
67719
|
-
...pkgInfo.dependencies
|
|
67720
|
-
};
|
|
67802
|
+
const deps = __spreadValues(__spreadValues({}, pkgInfo.devDependencies), pkgInfo.dependencies);
|
|
67721
67803
|
if (typeof deps.react !== "string") {
|
|
67722
67804
|
return false;
|
|
67723
67805
|
}
|
|
@@ -67907,19 +67989,21 @@ var require_FsResource = __commonJS({
|
|
|
67907
67989
|
this.filePath = filePath;
|
|
67908
67990
|
this.resourceKey = resourceKey;
|
|
67909
67991
|
}
|
|
67910
|
-
|
|
67911
|
-
|
|
67912
|
-
|
|
67913
|
-
|
|
67914
|
-
|
|
67915
|
-
|
|
67916
|
-
|
|
67917
|
-
|
|
67918
|
-
|
|
67919
|
-
|
|
67920
|
-
|
|
67921
|
-
|
|
67922
|
-
|
|
67992
|
+
value() {
|
|
67993
|
+
return __async(this, null, function* () {
|
|
67994
|
+
const resourceFileExt = _path.default.extname(this.filePath);
|
|
67995
|
+
if (_constants.IMAGE_EXT_LIST.includes(resourceFileExt)) {
|
|
67996
|
+
const buffer = yield _utils.fs.readFile(_path.default.resolve(this.filePath));
|
|
67997
|
+
return {
|
|
67998
|
+
content: buffer
|
|
67999
|
+
};
|
|
68000
|
+
} else {
|
|
68001
|
+
const text = yield _utils.fs.readFile(_path.default.resolve(this.filePath), "utf8");
|
|
68002
|
+
return {
|
|
68003
|
+
content: text
|
|
68004
|
+
};
|
|
68005
|
+
}
|
|
68006
|
+
});
|
|
67923
68007
|
}
|
|
67924
68008
|
};
|
|
67925
68009
|
exports.FsResource = FsResource;
|
|
@@ -67961,17 +68045,19 @@ var require_FsMaterial = __commonJS({
|
|
|
67961
68045
|
get(resourceKey) {
|
|
67962
68046
|
return new _FsResource.FsResource(_path.default.resolve(this.basePath, resourceKey), resourceKey);
|
|
67963
68047
|
}
|
|
67964
|
-
|
|
67965
|
-
|
|
67966
|
-
|
|
67967
|
-
|
|
67968
|
-
|
|
67969
|
-
|
|
68048
|
+
find(globStr, options) {
|
|
68049
|
+
return __async(this, null, function* () {
|
|
68050
|
+
const matches = yield promisifyGlob(globStr, {
|
|
68051
|
+
cwd: _path.default.resolve(this.basePath),
|
|
68052
|
+
nodir: options === null || options === void 0 ? void 0 : options.nodir,
|
|
68053
|
+
dot: options === null || options === void 0 ? void 0 : options.dot,
|
|
68054
|
+
ignore: options === null || options === void 0 ? void 0 : options.ignore
|
|
68055
|
+
});
|
|
68056
|
+
return matches.reduce((pre, cur) => {
|
|
68057
|
+
pre[cur] = new _FsResource.FsResource(_path.default.resolve(this.basePath, cur), cur);
|
|
68058
|
+
return pre;
|
|
68059
|
+
}, {});
|
|
67970
68060
|
});
|
|
67971
|
-
return matches.reduce((pre, cur) => {
|
|
67972
|
-
pre[cur] = new _FsResource.FsResource(_path.default.resolve(this.basePath, cur), cur);
|
|
67973
|
-
return pre;
|
|
67974
|
-
}, {});
|
|
67975
68061
|
}
|
|
67976
68062
|
};
|
|
67977
68063
|
exports.FsMaterial = FsMaterial;
|
|
@@ -68014,13 +68100,15 @@ var require_fsExists = __commonJS({
|
|
|
68014
68100
|
});
|
|
68015
68101
|
exports.fsExists = fsExists;
|
|
68016
68102
|
var _utils = require_dist2();
|
|
68017
|
-
|
|
68018
|
-
|
|
68019
|
-
|
|
68020
|
-
|
|
68021
|
-
|
|
68022
|
-
|
|
68023
|
-
|
|
68103
|
+
function fsExists(path4) {
|
|
68104
|
+
return __async(this, null, function* () {
|
|
68105
|
+
try {
|
|
68106
|
+
yield _utils.fs.access(path4);
|
|
68107
|
+
return true;
|
|
68108
|
+
} catch (e) {
|
|
68109
|
+
return false;
|
|
68110
|
+
}
|
|
68111
|
+
});
|
|
68024
68112
|
}
|
|
68025
68113
|
}
|
|
68026
68114
|
});
|
|
@@ -68040,21 +68128,23 @@ var require_getGeneratorDir = __commonJS({
|
|
|
68040
68128
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
68041
68129
|
}
|
|
68042
68130
|
var MaxTimes = 5;
|
|
68043
|
-
|
|
68044
|
-
|
|
68045
|
-
|
|
68046
|
-
|
|
68047
|
-
|
|
68048
|
-
|
|
68049
|
-
|
|
68050
|
-
|
|
68051
|
-
|
|
68052
|
-
|
|
68053
|
-
|
|
68054
|
-
|
|
68055
|
-
|
|
68056
|
-
|
|
68057
|
-
|
|
68131
|
+
function getGeneratorDir(generator) {
|
|
68132
|
+
return __async(this, null, function* () {
|
|
68133
|
+
let result = generator;
|
|
68134
|
+
const isDirectory = (yield _utils.fs.stat(generator)).isDirectory();
|
|
68135
|
+
if (!isDirectory) {
|
|
68136
|
+
result = _path.default.dirname(generator);
|
|
68137
|
+
}
|
|
68138
|
+
let times = 0;
|
|
68139
|
+
while (times < MaxTimes && !(yield (0, _fsExists.fsExists)(_path.default.join(result, "package.json")))) {
|
|
68140
|
+
result = _path.default.join(result, "../");
|
|
68141
|
+
times++;
|
|
68142
|
+
}
|
|
68143
|
+
if (times >= MaxTimes) {
|
|
68144
|
+
throw Error("generator is not valid");
|
|
68145
|
+
}
|
|
68146
|
+
return result;
|
|
68147
|
+
});
|
|
68058
68148
|
}
|
|
68059
68149
|
}
|
|
68060
68150
|
});
|
|
@@ -68115,11 +68205,11 @@ var require_generator = __commonJS({
|
|
|
68115
68205
|
_defineProperty(this, "materialsManager", void 0);
|
|
68116
68206
|
_defineProperty(this, "outputPath", void 0);
|
|
68117
68207
|
_defineProperty(this, "output", {
|
|
68118
|
-
fs:
|
|
68208
|
+
fs: (file, content, options) => __async(this, null, function* () {
|
|
68119
68209
|
const filePath = _path.default.resolve(this.outputPath, file.toString());
|
|
68120
|
-
|
|
68121
|
-
|
|
68122
|
-
}
|
|
68210
|
+
yield _utils.fs.mkdirp(_path.default.dirname(filePath));
|
|
68211
|
+
yield _utils.fs.writeFile(filePath, content, options);
|
|
68212
|
+
})
|
|
68123
68213
|
});
|
|
68124
68214
|
_defineProperty(this, "_context", void 0);
|
|
68125
68215
|
_defineProperty(this, "event", void 0);
|
|
@@ -68152,58 +68242,62 @@ var require_generator = __commonJS({
|
|
|
68152
68242
|
setOutputPath(outputPath) {
|
|
68153
68243
|
this.outputPath = outputPath;
|
|
68154
68244
|
}
|
|
68155
|
-
|
|
68156
|
-
this
|
|
68157
|
-
|
|
68158
|
-
|
|
68159
|
-
|
|
68160
|
-
|
|
68161
|
-
|
|
68162
|
-
|
|
68163
|
-
|
|
68164
|
-
|
|
68165
|
-
|
|
68166
|
-
|
|
68167
|
-
|
|
68168
|
-
|
|
68169
|
-
|
|
68170
|
-
|
|
68171
|
-
|
|
68172
|
-
|
|
68173
|
-
|
|
68245
|
+
loadLocalGenerator(generator) {
|
|
68246
|
+
return __async(this, null, function* () {
|
|
68247
|
+
this.logger.debug("[runGenerator] generator is absolute, using local generator");
|
|
68248
|
+
let generatorPkg;
|
|
68249
|
+
let pkgJson;
|
|
68250
|
+
try {
|
|
68251
|
+
const generatorDir = yield (0, _getGeneratorDir.getGeneratorDir)(generator);
|
|
68252
|
+
generatorPkg = yield this.materialsManager.loadLocalGenerator(generatorDir);
|
|
68253
|
+
} catch (e) {
|
|
68254
|
+
this.logger.debug("load local generator failed:", e);
|
|
68255
|
+
return {
|
|
68256
|
+
generatorPkg: null
|
|
68257
|
+
};
|
|
68258
|
+
}
|
|
68259
|
+
try {
|
|
68260
|
+
pkgJson = (0, _nodeRequire.nodeRequire)(generatorPkg.get("package.json").filePath);
|
|
68261
|
+
} catch (e) {
|
|
68262
|
+
this.logger.debug("nodeRequire fail:", e);
|
|
68263
|
+
this.logger.error("can not require package.json");
|
|
68264
|
+
this.logger.warn(`generator need a package.json in top directory
|
|
68174
68265
|
check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file or not`);
|
|
68175
|
-
|
|
68176
|
-
|
|
68177
|
-
|
|
68178
|
-
|
|
68179
|
-
|
|
68180
|
-
|
|
68181
|
-
|
|
68182
|
-
return {
|
|
68183
|
-
generatorPkg,
|
|
68184
|
-
pkgJson,
|
|
68185
|
-
materialKey
|
|
68186
|
-
};
|
|
68187
|
-
}
|
|
68188
|
-
async loadRemoteGenerator(generator) {
|
|
68189
|
-
this.logger.debug("[runGenerator] task.generator is remote package");
|
|
68190
|
-
try {
|
|
68191
|
-
const generatorPkg = await this.materialsManager.loadRemoteGenerator(generator);
|
|
68192
|
-
const pkgJson = (0, _nodeRequire.nodeRequire)(generatorPkg.get("package.json").filePath);
|
|
68193
|
-
const materialKey = `${pkgJson.name}@${pkgJson.version}`;
|
|
68194
|
-
this.logger.debug(`[runTask] loaded remote generator, ${pkgJson.name}@${pkgJson.version}`);
|
|
68266
|
+
return {
|
|
68267
|
+
generatorPkg: null
|
|
68268
|
+
};
|
|
68269
|
+
}
|
|
68270
|
+
this.logger.debug(`[runGenerator] generator version is ${pkgJson.version}`);
|
|
68271
|
+
const materialKey = `${pkgJson.name}@local`;
|
|
68272
|
+
this.logger.debug(`[runGenerator] loaded local generator, ${generator}`);
|
|
68195
68273
|
return {
|
|
68196
68274
|
generatorPkg,
|
|
68197
68275
|
pkgJson,
|
|
68198
68276
|
materialKey
|
|
68199
68277
|
};
|
|
68200
|
-
}
|
|
68201
|
-
|
|
68202
|
-
|
|
68203
|
-
|
|
68204
|
-
|
|
68205
|
-
|
|
68206
|
-
|
|
68278
|
+
});
|
|
68279
|
+
}
|
|
68280
|
+
loadRemoteGenerator(generator) {
|
|
68281
|
+
return __async(this, null, function* () {
|
|
68282
|
+
this.logger.debug("[runGenerator] task.generator is remote package");
|
|
68283
|
+
try {
|
|
68284
|
+
const generatorPkg = yield this.materialsManager.loadRemoteGenerator(generator);
|
|
68285
|
+
const pkgJson = (0, _nodeRequire.nodeRequire)(generatorPkg.get("package.json").filePath);
|
|
68286
|
+
const materialKey = `${pkgJson.name}@${pkgJson.version}`;
|
|
68287
|
+
this.logger.debug(`[runTask] loaded remote generator, ${pkgJson.name}@${pkgJson.version}`);
|
|
68288
|
+
return {
|
|
68289
|
+
generatorPkg,
|
|
68290
|
+
pkgJson,
|
|
68291
|
+
materialKey
|
|
68292
|
+
};
|
|
68293
|
+
} catch (e) {
|
|
68294
|
+
this.logger.debug("load remote generator failed:", e);
|
|
68295
|
+
this.logger.error(`load remote generator failed: Package ${generator} could not be found or get timeout`);
|
|
68296
|
+
return {
|
|
68297
|
+
generatorPkg: null
|
|
68298
|
+
};
|
|
68299
|
+
}
|
|
68300
|
+
});
|
|
68207
68301
|
}
|
|
68208
68302
|
handleForged(generatorName, context, needWait = false, projectPath = "") {
|
|
68209
68303
|
if (needWait) {
|
|
@@ -68218,79 +68312,85 @@ check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file
|
|
|
68218
68312
|
}
|
|
68219
68313
|
return Promise.resolve();
|
|
68220
68314
|
}
|
|
68221
|
-
|
|
68222
|
-
|
|
68223
|
-
|
|
68224
|
-
|
|
68225
|
-
|
|
68226
|
-
|
|
68227
|
-
|
|
68228
|
-
|
|
68229
|
-
|
|
68230
|
-
|
|
68231
|
-
|
|
68232
|
-
|
|
68233
|
-
|
|
68234
|
-
|
|
68235
|
-
|
|
68236
|
-
|
|
68237
|
-
|
|
68238
|
-
|
|
68239
|
-
|
|
68240
|
-
|
|
68241
|
-
|
|
68242
|
-
|
|
68243
|
-
async runGenerator(generator, config = {}) {
|
|
68244
|
-
const spinner = (0, _utils.ora)({
|
|
68245
|
-
text: "Load Generator...",
|
|
68246
|
-
spinner: "runner"
|
|
68247
|
-
}).start();
|
|
68248
|
-
const {
|
|
68249
|
-
materialKey,
|
|
68250
|
-
generatorPkg,
|
|
68251
|
-
generatorScript
|
|
68252
|
-
} = await this.loadGenerator(generator);
|
|
68253
|
-
if (!materialKey || !generatorPkg) {
|
|
68254
|
-
throw new Error("load generator failed");
|
|
68255
|
-
}
|
|
68256
|
-
this.addMaterial(materialKey, generatorPkg);
|
|
68257
|
-
this.setConfig(config || {});
|
|
68258
|
-
this.setCurrent({
|
|
68259
|
-
material: generatorPkg
|
|
68315
|
+
loadGenerator(generator) {
|
|
68316
|
+
return __async(this, null, function* () {
|
|
68317
|
+
const loadGeneratorPromise = _path.default.isAbsolute(generator) ? this.loadLocalGenerator(generator) : this.loadRemoteGenerator(generator);
|
|
68318
|
+
const {
|
|
68319
|
+
generatorPkg,
|
|
68320
|
+
pkgJson,
|
|
68321
|
+
materialKey
|
|
68322
|
+
} = yield loadGeneratorPromise;
|
|
68323
|
+
if (!generatorPkg || !pkgJson || !materialKey) {
|
|
68324
|
+
return {};
|
|
68325
|
+
}
|
|
68326
|
+
this.logger.debug("[runGenerator] task.generator loaded");
|
|
68327
|
+
const generatorScript = (0, _nodeRequire.nodeRequire)(generatorPkg.basePath);
|
|
68328
|
+
if (typeof generatorScript !== "function") {
|
|
68329
|
+
this.logger.debug(`generator module [${pkgJson.name}] export default is not a function`, generatorScript);
|
|
68330
|
+
throw new Error(`generator module [${pkgJson.name}] export default is not a function`);
|
|
68331
|
+
}
|
|
68332
|
+
return {
|
|
68333
|
+
materialKey,
|
|
68334
|
+
generatorPkg,
|
|
68335
|
+
generatorScript
|
|
68336
|
+
};
|
|
68260
68337
|
});
|
|
68261
|
-
|
|
68262
|
-
|
|
68263
|
-
this
|
|
68264
|
-
|
|
68265
|
-
|
|
68266
|
-
|
|
68267
|
-
|
|
68268
|
-
|
|
68269
|
-
|
|
68270
|
-
|
|
68271
|
-
|
|
68272
|
-
|
|
68273
|
-
|
|
68274
|
-
|
|
68275
|
-
|
|
68276
|
-
|
|
68277
|
-
|
|
68278
|
-
|
|
68279
|
-
const subContext = _objectSpread(_objectSpread({}, this._context), {}, {
|
|
68280
|
-
config: _objectSpread(_objectSpread({}, this._context.config), config),
|
|
68281
|
-
materials: _objectSpread(_objectSpread({}, this._context.materials), {}, {
|
|
68282
|
-
default: new _FsMaterial.FsMaterial(_path.default.resolve(this.outputPath, relativePwdPath))
|
|
68283
|
-
}),
|
|
68284
|
-
current: {
|
|
68338
|
+
}
|
|
68339
|
+
runGenerator(_0) {
|
|
68340
|
+
return __async(this, arguments, function* (generator, config = {}) {
|
|
68341
|
+
const spinner = (0, _utils.ora)({
|
|
68342
|
+
text: "Load Generator...",
|
|
68343
|
+
spinner: "runner"
|
|
68344
|
+
}).start();
|
|
68345
|
+
const {
|
|
68346
|
+
materialKey,
|
|
68347
|
+
generatorPkg,
|
|
68348
|
+
generatorScript
|
|
68349
|
+
} = yield this.loadGenerator(generator);
|
|
68350
|
+
if (!materialKey || !generatorPkg) {
|
|
68351
|
+
throw new Error("load generator failed");
|
|
68352
|
+
}
|
|
68353
|
+
this.addMaterial(materialKey, generatorPkg);
|
|
68354
|
+
this.setConfig(config || {});
|
|
68355
|
+
this.setCurrent({
|
|
68285
68356
|
material: generatorPkg
|
|
68286
|
-
}
|
|
68357
|
+
});
|
|
68358
|
+
spinner.stop();
|
|
68359
|
+
yield generatorScript(this._context, this);
|
|
68360
|
+
this.setCurrent(null);
|
|
68361
|
+
});
|
|
68362
|
+
}
|
|
68363
|
+
runSubGenerator(subGenerator, relativePwdPath = "", config) {
|
|
68364
|
+
return __async(this, null, function* () {
|
|
68365
|
+
const spinner = (0, _utils.ora)({
|
|
68366
|
+
text: "Load Generator...",
|
|
68367
|
+
spinner: "runner"
|
|
68368
|
+
}).start();
|
|
68369
|
+
const {
|
|
68370
|
+
materialKey,
|
|
68371
|
+
generatorPkg,
|
|
68372
|
+
generatorScript
|
|
68373
|
+
} = yield this.loadGenerator(subGenerator);
|
|
68374
|
+
if (!materialKey || !generatorPkg) {
|
|
68375
|
+
throw new Error("load generator failed");
|
|
68376
|
+
}
|
|
68377
|
+
this.addMaterial(materialKey, generatorPkg);
|
|
68378
|
+
const subContext = _objectSpread(_objectSpread({}, this._context), {}, {
|
|
68379
|
+
config: _objectSpread(_objectSpread({}, this._context.config), config),
|
|
68380
|
+
materials: _objectSpread(_objectSpread({}, this._context.materials), {}, {
|
|
68381
|
+
default: new _FsMaterial.FsMaterial(_path.default.resolve(this.outputPath, relativePwdPath))
|
|
68382
|
+
}),
|
|
68383
|
+
current: {
|
|
68384
|
+
material: generatorPkg
|
|
68385
|
+
}
|
|
68386
|
+
});
|
|
68387
|
+
this.logger.debug("subContext", subContext);
|
|
68388
|
+
const preOutputPath = this.outputPath;
|
|
68389
|
+
this.setOutputPath(_path.default.resolve(this.outputPath, relativePwdPath || ""));
|
|
68390
|
+
spinner.stop();
|
|
68391
|
+
yield generatorScript(subContext, this);
|
|
68392
|
+
this.setOutputPath(preOutputPath);
|
|
68287
68393
|
});
|
|
68288
|
-
this.logger.debug("subContext", subContext);
|
|
68289
|
-
const preOutputPath = this.outputPath;
|
|
68290
|
-
this.setOutputPath(_path.default.resolve(this.outputPath, relativePwdPath || ""));
|
|
68291
|
-
spinner.stop();
|
|
68292
|
-
await generatorScript(subContext, this);
|
|
68293
|
-
this.setOutputPath(preOutputPath);
|
|
68294
68394
|
}
|
|
68295
68395
|
};
|
|
68296
68396
|
exports.GeneratorCore = GeneratorCore;
|
|
@@ -68312,61 +68412,67 @@ var require_packageManager = __commonJS({
|
|
|
68312
68412
|
function _interopRequireDefault(obj) {
|
|
68313
68413
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
68314
68414
|
}
|
|
68315
|
-
|
|
68316
|
-
|
|
68317
|
-
|
|
68318
|
-
|
|
68319
|
-
|
|
68320
|
-
|
|
68321
|
-
|
|
68322
|
-
|
|
68323
|
-
|
|
68324
|
-
|
|
68325
|
-
|
|
68326
|
-
try {
|
|
68327
|
-
await (0, _utils.execa)("pnpm", ["--version"], {
|
|
68328
|
-
env: process.env
|
|
68329
|
-
});
|
|
68330
|
-
return true;
|
|
68331
|
-
} catch (e) {
|
|
68332
|
-
return false;
|
|
68333
|
-
}
|
|
68415
|
+
function canUseYarn() {
|
|
68416
|
+
return __async(this, null, function* () {
|
|
68417
|
+
try {
|
|
68418
|
+
yield (0, _utils.execa)("yarn", ["--version"], {
|
|
68419
|
+
env: process.env
|
|
68420
|
+
});
|
|
68421
|
+
return true;
|
|
68422
|
+
} catch (e) {
|
|
68423
|
+
return false;
|
|
68424
|
+
}
|
|
68425
|
+
});
|
|
68334
68426
|
}
|
|
68335
|
-
|
|
68336
|
-
|
|
68337
|
-
|
|
68338
|
-
|
|
68339
|
-
|
|
68340
|
-
|
|
68341
|
-
|
|
68342
|
-
|
|
68343
|
-
|
|
68344
|
-
}));
|
|
68345
|
-
delete pkgJSON.devDependencies;
|
|
68346
|
-
_utils.fs.writeFileSync(pkgPath, JSON.stringify(pkgJSON, null, 2), {
|
|
68347
|
-
encoding: "utf-8"
|
|
68348
|
-
});
|
|
68349
|
-
} catch (e) {
|
|
68350
|
-
}
|
|
68351
|
-
if (await canUsePnpm()) {
|
|
68352
|
-
const params = ["install", "--prod", "--reporter=silent", "--prefer-offline", "--ignore-scripts"];
|
|
68353
|
-
if (registryUrl) {
|
|
68354
|
-
params.push(`--registry=${registryUrl}`);
|
|
68427
|
+
function canUsePnpm() {
|
|
68428
|
+
return __async(this, null, function* () {
|
|
68429
|
+
try {
|
|
68430
|
+
yield (0, _utils.execa)("pnpm", ["--version"], {
|
|
68431
|
+
env: process.env
|
|
68432
|
+
});
|
|
68433
|
+
return true;
|
|
68434
|
+
} catch (e) {
|
|
68435
|
+
return false;
|
|
68355
68436
|
}
|
|
68356
|
-
|
|
68357
|
-
|
|
68358
|
-
|
|
68359
|
-
|
|
68360
|
-
|
|
68437
|
+
});
|
|
68438
|
+
}
|
|
68439
|
+
function runInstall(targetDir, registryUrl) {
|
|
68440
|
+
return __async(this, null, function* () {
|
|
68441
|
+
const options = {
|
|
68442
|
+
cwd: targetDir,
|
|
68443
|
+
env: process.env
|
|
68444
|
+
};
|
|
68445
|
+
try {
|
|
68446
|
+
const pkgPath = _path.default.join(targetDir, "package.json");
|
|
68447
|
+
const pkgJSON = JSON.parse(_utils.fs.readFileSync(pkgPath, {
|
|
68448
|
+
encoding: "utf-8"
|
|
68449
|
+
}));
|
|
68450
|
+
delete pkgJSON.devDependencies;
|
|
68451
|
+
_utils.fs.writeFileSync(pkgPath, JSON.stringify(pkgJSON, null, 2), {
|
|
68452
|
+
encoding: "utf-8"
|
|
68453
|
+
});
|
|
68454
|
+
} catch (e) {
|
|
68361
68455
|
}
|
|
68362
|
-
|
|
68363
|
-
|
|
68364
|
-
|
|
68365
|
-
|
|
68366
|
-
|
|
68456
|
+
if (yield canUsePnpm()) {
|
|
68457
|
+
const params = ["install", "--prod", "--reporter=silent", "--prefer-offline", "--ignore-scripts"];
|
|
68458
|
+
if (registryUrl) {
|
|
68459
|
+
params.push(`--registry=${registryUrl}`);
|
|
68460
|
+
}
|
|
68461
|
+
yield (0, _utils.execa)("pnpm", params, options);
|
|
68462
|
+
} else if (yield canUseYarn()) {
|
|
68463
|
+
const params = ["install", "--production", "--silent", "--ignore-scripts"];
|
|
68464
|
+
if (registryUrl) {
|
|
68465
|
+
params.push(`--registry=${registryUrl}`);
|
|
68466
|
+
}
|
|
68467
|
+
yield (0, _utils.execa)("yarn", params, options);
|
|
68468
|
+
} else {
|
|
68469
|
+
const params = ["install", "--production", "--loglevel=error", "--prefer-offline", "--ignore-scripts"];
|
|
68470
|
+
if (registryUrl) {
|
|
68471
|
+
params.push(`--registry=${registryUrl}`);
|
|
68472
|
+
}
|
|
68473
|
+
yield (0, _utils.execa)("npm", params, options);
|
|
68367
68474
|
}
|
|
68368
|
-
|
|
68369
|
-
}
|
|
68475
|
+
});
|
|
68370
68476
|
}
|
|
68371
68477
|
}
|
|
68372
68478
|
});
|
|
@@ -68379,22 +68485,24 @@ var require_timeoutPromise = __commonJS({
|
|
|
68379
68485
|
value: true
|
|
68380
68486
|
});
|
|
68381
68487
|
exports.timeoutPromise = timeoutPromise;
|
|
68382
|
-
|
|
68383
|
-
|
|
68384
|
-
|
|
68385
|
-
|
|
68386
|
-
|
|
68387
|
-
|
|
68388
|
-
|
|
68389
|
-
|
|
68390
|
-
|
|
68391
|
-
|
|
68392
|
-
|
|
68393
|
-
|
|
68394
|
-
|
|
68395
|
-
|
|
68488
|
+
function timeoutPromise(promise, ms, reason = "Operation") {
|
|
68489
|
+
return __async(this, null, function* () {
|
|
68490
|
+
let timeoutId = null;
|
|
68491
|
+
const delayPromise = (ms2) => new Promise((resolve) => {
|
|
68492
|
+
timeoutId = setTimeout(resolve, ms2);
|
|
68493
|
+
});
|
|
68494
|
+
const timeout = delayPromise(ms).then(() => {
|
|
68495
|
+
throw new Error(`${reason} timed out after ${ms}ms`);
|
|
68496
|
+
});
|
|
68497
|
+
try {
|
|
68498
|
+
const result = yield Promise.race([promise, timeout]);
|
|
68499
|
+
return result;
|
|
68500
|
+
} finally {
|
|
68501
|
+
if (timeoutId) {
|
|
68502
|
+
clearTimeout(timeoutId);
|
|
68503
|
+
}
|
|
68396
68504
|
}
|
|
68397
|
-
}
|
|
68505
|
+
});
|
|
68398
68506
|
}
|
|
68399
68507
|
}
|
|
68400
68508
|
});
|
|
@@ -74714,7 +74822,7 @@ var require_opts_arg = __commonJS({
|
|
|
74714
74822
|
if (!opts)
|
|
74715
74823
|
opts = { mode: 511, fs: fs3 };
|
|
74716
74824
|
else if (typeof opts === "object")
|
|
74717
|
-
opts = { mode: 511, fs: fs3,
|
|
74825
|
+
opts = __spreadValues({ mode: 511, fs: fs3 }, opts);
|
|
74718
74826
|
else if (typeof opts === "number")
|
|
74719
74827
|
opts = { mode: opts, fs: fs3 };
|
|
74720
74828
|
else if (typeof opts === "string")
|
|
@@ -76141,25 +76249,27 @@ var require_getNpmTarballUrl = __commonJS({
|
|
|
76141
76249
|
var _utils = require_dist2();
|
|
76142
76250
|
var _timeoutPromise = require_timeoutPromise();
|
|
76143
76251
|
var _constants = require_constants6();
|
|
76144
|
-
|
|
76145
|
-
|
|
76146
|
-
|
|
76147
|
-
|
|
76148
|
-
|
|
76149
|
-
|
|
76150
|
-
|
|
76151
|
-
|
|
76152
|
-
|
|
76153
|
-
|
|
76154
|
-
|
|
76155
|
-
|
|
76156
|
-
|
|
76157
|
-
|
|
76158
|
-
|
|
76159
|
-
|
|
76160
|
-
|
|
76161
|
-
|
|
76162
|
-
|
|
76252
|
+
function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
|
76253
|
+
return __async(this, null, function* () {
|
|
76254
|
+
const {
|
|
76255
|
+
registryUrl
|
|
76256
|
+
} = options || {};
|
|
76257
|
+
const params = ["view", `${pkgName}@${pkgVersion}`, "dist", "--json"];
|
|
76258
|
+
if (registryUrl) {
|
|
76259
|
+
params.push("--registry");
|
|
76260
|
+
params.push(registryUrl);
|
|
76261
|
+
}
|
|
76262
|
+
const getPkgInfoPromise = (0, _utils.execa)("npm", params);
|
|
76263
|
+
const {
|
|
76264
|
+
stdout
|
|
76265
|
+
} = yield (0, _timeoutPromise.timeoutPromise)(getPkgInfoPromise, _constants.NPM_API_TIMEOUT, `Get npm tarball of '${pkgName}'`);
|
|
76266
|
+
try {
|
|
76267
|
+
const pkgDistInfo = JSON.parse(stdout);
|
|
76268
|
+
return pkgDistInfo.tarball;
|
|
76269
|
+
} catch (e) {
|
|
76270
|
+
throw new Error(`Version \`${pkgVersion}\` for package \`${pkgName}\` could not be found`);
|
|
76271
|
+
}
|
|
76272
|
+
});
|
|
76163
76273
|
}
|
|
76164
76274
|
}
|
|
76165
76275
|
});
|
|
@@ -76175,27 +76285,29 @@ var require_getNpmVersion = __commonJS({
|
|
|
76175
76285
|
var _utils = require_dist2();
|
|
76176
76286
|
var _timeoutPromise = require_timeoutPromise();
|
|
76177
76287
|
var _constants = require_constants6();
|
|
76178
|
-
|
|
76179
|
-
|
|
76180
|
-
|
|
76181
|
-
|
|
76182
|
-
|
|
76183
|
-
|
|
76184
|
-
|
|
76185
|
-
|
|
76186
|
-
|
|
76187
|
-
|
|
76188
|
-
|
|
76189
|
-
|
|
76190
|
-
|
|
76191
|
-
|
|
76192
|
-
|
|
76193
|
-
|
|
76194
|
-
|
|
76195
|
-
|
|
76196
|
-
|
|
76197
|
-
|
|
76198
|
-
|
|
76288
|
+
function getNpmVersion(packageName, options) {
|
|
76289
|
+
return __async(this, null, function* () {
|
|
76290
|
+
const {
|
|
76291
|
+
version: version2,
|
|
76292
|
+
registryUrl
|
|
76293
|
+
} = options || {};
|
|
76294
|
+
const params = ["view"];
|
|
76295
|
+
if (version2) {
|
|
76296
|
+
params.push(`${packageName}@${version2}`);
|
|
76297
|
+
} else {
|
|
76298
|
+
params.push(packageName);
|
|
76299
|
+
}
|
|
76300
|
+
params.push("version");
|
|
76301
|
+
if (registryUrl) {
|
|
76302
|
+
params.push("--registry");
|
|
76303
|
+
params.push(registryUrl);
|
|
76304
|
+
}
|
|
76305
|
+
const getPkgInfoPromise = (0, _utils.execa)("npm", params);
|
|
76306
|
+
const {
|
|
76307
|
+
stdout
|
|
76308
|
+
} = yield (0, _timeoutPromise.timeoutPromise)(getPkgInfoPromise, _constants.NPM_API_TIMEOUT, `Get npm version of '${packageName}'`);
|
|
76309
|
+
return stdout;
|
|
76310
|
+
});
|
|
76199
76311
|
}
|
|
76200
76312
|
}
|
|
76201
76313
|
});
|
|
@@ -76220,84 +76332,90 @@ var require_downloadPackage = __commonJS({
|
|
|
76220
76332
|
function _interopRequireDefault(obj) {
|
|
76221
76333
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
76222
76334
|
}
|
|
76223
|
-
|
|
76224
|
-
|
|
76225
|
-
|
|
76226
|
-
|
|
76227
|
-
|
|
76228
|
-
|
|
76229
|
-
|
|
76230
|
-
|
|
76335
|
+
function isValidCache(cacheDir) {
|
|
76336
|
+
return __async(this, null, function* () {
|
|
76337
|
+
if (yield (0, _fsExists.fsExists)(`${cacheDir}/.codesmith.completed`)) {
|
|
76338
|
+
const preCacheTimeStr = yield _utils.fs.readFile(`${cacheDir}/.codesmith.completed`, {
|
|
76339
|
+
encoding: "utf-8"
|
|
76340
|
+
});
|
|
76341
|
+
const preCacheTime = preCacheTimeStr ? new Date(preCacheTimeStr) : new Date(0);
|
|
76342
|
+
if (Number(new Date()) - Number(preCacheTime) < _constants.CATCHE_VALIDITY_PREIOD) {
|
|
76343
|
+
return true;
|
|
76344
|
+
}
|
|
76345
|
+
return false;
|
|
76231
76346
|
}
|
|
76232
76347
|
return false;
|
|
76233
|
-
}
|
|
76234
|
-
return false;
|
|
76235
|
-
}
|
|
76236
|
-
async function downloadAndDecompressTargz(tarballPkg, targetDir) {
|
|
76237
|
-
const response = await (0, _axios.default)({
|
|
76238
|
-
method: "get",
|
|
76239
|
-
url: tarballPkg,
|
|
76240
|
-
responseType: "stream"
|
|
76241
76348
|
});
|
|
76242
|
-
|
|
76243
|
-
|
|
76244
|
-
|
|
76245
|
-
|
|
76246
|
-
|
|
76247
|
-
|
|
76248
|
-
|
|
76249
|
-
await new Promise((resolve, reject) => {
|
|
76250
|
-
response.data.pipe(dest);
|
|
76251
|
-
response.data.on("error", (err) => {
|
|
76252
|
-
reject(err);
|
|
76349
|
+
}
|
|
76350
|
+
function downloadAndDecompressTargz(tarballPkg, targetDir) {
|
|
76351
|
+
return __async(this, null, function* () {
|
|
76352
|
+
const response = yield (0, _axios.default)({
|
|
76353
|
+
method: "get",
|
|
76354
|
+
url: tarballPkg,
|
|
76355
|
+
responseType: "stream"
|
|
76253
76356
|
});
|
|
76254
|
-
|
|
76255
|
-
|
|
76357
|
+
if (response.status !== 200) {
|
|
76358
|
+
throw new Error(`download tar package get bad status code: ${response.status}`);
|
|
76359
|
+
}
|
|
76360
|
+
const contentLength = Number(response.headers["content-length"]);
|
|
76361
|
+
const randomId = Math.floor(Math.random() * 1e4);
|
|
76362
|
+
const tempTgzFilePath = `${_os.default.tmpdir()}/temp-${randomId}.tgz`;
|
|
76363
|
+
const dest = _utils.fs.createWriteStream(tempTgzFilePath);
|
|
76364
|
+
yield new Promise((resolve, reject) => {
|
|
76365
|
+
response.data.pipe(dest);
|
|
76366
|
+
response.data.on("error", (err) => {
|
|
76367
|
+
reject(err);
|
|
76368
|
+
});
|
|
76369
|
+
dest.on("finish", () => {
|
|
76370
|
+
resolve();
|
|
76371
|
+
});
|
|
76256
76372
|
});
|
|
76257
|
-
|
|
76258
|
-
|
|
76259
|
-
|
|
76260
|
-
|
|
76261
|
-
|
|
76262
|
-
|
|
76263
|
-
|
|
76264
|
-
|
|
76265
|
-
|
|
76266
|
-
|
|
76267
|
-
|
|
76268
|
-
|
|
76373
|
+
if ((yield _utils.fs.stat(tempTgzFilePath)).size !== contentLength) {
|
|
76374
|
+
throw new Error("download tar package get bad content length");
|
|
76375
|
+
}
|
|
76376
|
+
yield new Promise((resolve, reject) => {
|
|
76377
|
+
_utils.fs.createReadStream(tempTgzFilePath).pipe(_tar.default.x({
|
|
76378
|
+
strip: 1,
|
|
76379
|
+
C: `${targetDir}`
|
|
76380
|
+
})).on("finish", () => {
|
|
76381
|
+
resolve();
|
|
76382
|
+
}).on("error", (err) => {
|
|
76383
|
+
reject(err);
|
|
76384
|
+
});
|
|
76269
76385
|
});
|
|
76270
76386
|
});
|
|
76271
76387
|
}
|
|
76272
|
-
|
|
76273
|
-
|
|
76274
|
-
|
|
76275
|
-
|
|
76276
|
-
|
|
76277
|
-
|
|
76278
|
-
|
|
76279
|
-
|
|
76280
|
-
|
|
76281
|
-
|
|
76282
|
-
|
|
76283
|
-
|
|
76284
|
-
|
|
76285
|
-
|
|
76388
|
+
function downloadPackage(_0) {
|
|
76389
|
+
return __async(this, arguments, function* (pkgName, pkgVersion = "latest", options = {}) {
|
|
76390
|
+
const {
|
|
76391
|
+
registryUrl,
|
|
76392
|
+
install
|
|
76393
|
+
} = options;
|
|
76394
|
+
const version2 = yield (0, _getNpmVersion.getNpmVersion)(pkgName, {
|
|
76395
|
+
registryUrl,
|
|
76396
|
+
version: pkgVersion
|
|
76397
|
+
});
|
|
76398
|
+
if (version2 === void 0) {
|
|
76399
|
+
throw new Error(`package ${pkgName}@${pkgVersion} not found in registry`);
|
|
76400
|
+
}
|
|
76401
|
+
const targetDir = `${_os.default.tmpdir()}/csmith-generator/${pkgName}@${version2}`;
|
|
76402
|
+
if ((yield (0, _fsExists.fsExists)(targetDir)) && (yield isValidCache(targetDir))) {
|
|
76403
|
+
return targetDir;
|
|
76404
|
+
}
|
|
76405
|
+
yield _utils.fs.remove(targetDir);
|
|
76406
|
+
yield _utils.fs.mkdirp(targetDir);
|
|
76407
|
+
const tarballPkg = yield (0, _getNpmTarballUrl.getNpmTarballUrl)(pkgName, version2, {
|
|
76408
|
+
registryUrl
|
|
76409
|
+
});
|
|
76410
|
+
yield downloadAndDecompressTargz(tarballPkg, targetDir);
|
|
76411
|
+
if (install) {
|
|
76412
|
+
yield (0, _packageManager.runInstall)(targetDir, registryUrl);
|
|
76413
|
+
}
|
|
76414
|
+
yield _utils.fs.writeFile(`${targetDir}/.codesmith.completed`, new Date().toISOString(), {
|
|
76415
|
+
encoding: "utf-8"
|
|
76416
|
+
});
|
|
76286
76417
|
return targetDir;
|
|
76287
|
-
}
|
|
76288
|
-
await _utils.fs.remove(targetDir);
|
|
76289
|
-
await _utils.fs.mkdirp(targetDir);
|
|
76290
|
-
const tarballPkg = await (0, _getNpmTarballUrl.getNpmTarballUrl)(pkgName, version2, {
|
|
76291
|
-
registryUrl
|
|
76292
76418
|
});
|
|
76293
|
-
await downloadAndDecompressTargz(tarballPkg, targetDir);
|
|
76294
|
-
if (install) {
|
|
76295
|
-
await (0, _packageManager.runInstall)(targetDir, registryUrl);
|
|
76296
|
-
}
|
|
76297
|
-
await _utils.fs.writeFile(`${targetDir}/.codesmith.completed`, new Date().toISOString(), {
|
|
76298
|
-
encoding: "utf-8"
|
|
76299
|
-
});
|
|
76300
|
-
return targetDir;
|
|
76301
76419
|
}
|
|
76302
76420
|
}
|
|
76303
76421
|
});
|
|
@@ -76453,19 +76571,21 @@ var require_materials = __commonJS({
|
|
|
76453
76571
|
this.materialMap[generator] = fsMaterial;
|
|
76454
76572
|
return Promise.resolve(fsMaterial);
|
|
76455
76573
|
}
|
|
76456
|
-
|
|
76457
|
-
|
|
76458
|
-
|
|
76459
|
-
|
|
76460
|
-
|
|
76461
|
-
|
|
76462
|
-
|
|
76463
|
-
|
|
76574
|
+
loadRemoteGenerator(generator) {
|
|
76575
|
+
return __async(this, null, function* () {
|
|
76576
|
+
const {
|
|
76577
|
+
name,
|
|
76578
|
+
version: version2
|
|
76579
|
+
} = (0, _utils.getPackageInfo)(generator);
|
|
76580
|
+
const localPath = yield (0, _utils.downloadPackage)(name, version2, {
|
|
76581
|
+
registryUrl: this.registryUrl,
|
|
76582
|
+
install: true
|
|
76583
|
+
});
|
|
76584
|
+
const pkgJson = (0, _utils.nodeRequire)(`${localPath}/package.json`);
|
|
76585
|
+
const materialKey = `${pkgJson.name}@${pkgJson.version}`;
|
|
76586
|
+
this.materialMap[materialKey] = new _FsMaterial.FsMaterial(localPath);
|
|
76587
|
+
return Promise.resolve(this.materialMap[materialKey]);
|
|
76464
76588
|
});
|
|
76465
|
-
const pkgJson = (0, _utils.nodeRequire)(`${localPath}/package.json`);
|
|
76466
|
-
const materialKey = `${pkgJson.name}@${pkgJson.version}`;
|
|
76467
|
-
this.materialMap[materialKey] = new _FsMaterial.FsMaterial(localPath);
|
|
76468
|
-
return Promise.resolve(this.materialMap[materialKey]);
|
|
76469
76589
|
}
|
|
76470
76590
|
};
|
|
76471
76591
|
exports.MaterialsManager = MaterialsManager;
|
|
@@ -76511,34 +76631,38 @@ var require_codesmith = __commonJS({
|
|
|
76511
76631
|
this.logger = logger || new _logger.Logger(debug ? _constants.LoggerLevel.Debug : _constants.LoggerLevel.Info);
|
|
76512
76632
|
this.materialsManager = new _materials.MaterialsManager(this.logger, registryUrl);
|
|
76513
76633
|
}
|
|
76514
|
-
|
|
76515
|
-
|
|
76516
|
-
|
|
76517
|
-
|
|
76518
|
-
|
|
76519
|
-
|
|
76520
|
-
|
|
76521
|
-
|
|
76522
|
-
|
|
76523
|
-
|
|
76524
|
-
|
|
76525
|
-
|
|
76526
|
-
|
|
76634
|
+
forge(_0) {
|
|
76635
|
+
return __async(this, arguments, function* ({
|
|
76636
|
+
tasks,
|
|
76637
|
+
pwd
|
|
76638
|
+
}) {
|
|
76639
|
+
this.core = new _generator.GeneratorCore({
|
|
76640
|
+
logger: this.logger,
|
|
76641
|
+
materialsManager: this.materialsManager,
|
|
76642
|
+
outputPath: pwd || process.cwd()
|
|
76643
|
+
});
|
|
76644
|
+
this.core.addMaterial("default", new _FsMaterial.FsMaterial(_path.default.resolve(pwd || process.cwd())));
|
|
76645
|
+
try {
|
|
76646
|
+
for (const task of tasks) {
|
|
76647
|
+
yield this.runTask(task);
|
|
76648
|
+
}
|
|
76649
|
+
} catch (e) {
|
|
76650
|
+
this.logger.error("run task error:", e);
|
|
76651
|
+
throw new Error("run task error");
|
|
76527
76652
|
}
|
|
76528
|
-
}
|
|
76529
|
-
this.logger.error("run task error:", e);
|
|
76530
|
-
throw new Error("run task error");
|
|
76531
|
-
}
|
|
76653
|
+
});
|
|
76532
76654
|
}
|
|
76533
|
-
|
|
76534
|
-
|
|
76535
|
-
|
|
76536
|
-
|
|
76537
|
-
|
|
76538
|
-
|
|
76539
|
-
|
|
76540
|
-
|
|
76541
|
-
|
|
76655
|
+
runTask(task) {
|
|
76656
|
+
return __async(this, null, function* () {
|
|
76657
|
+
if (!this.core) {
|
|
76658
|
+
throw new Error("no core in 'runTask'");
|
|
76659
|
+
}
|
|
76660
|
+
const {
|
|
76661
|
+
generator,
|
|
76662
|
+
config
|
|
76663
|
+
} = task;
|
|
76664
|
+
yield this.core.runGenerator(generator, config);
|
|
76665
|
+
});
|
|
76542
76666
|
}
|
|
76543
76667
|
};
|
|
76544
76668
|
exports.CodeSmith = CodeSmith2;
|
|
@@ -76655,7 +76779,7 @@ var import_path2 = __toESM(require("path"));
|
|
|
76655
76779
|
var import_codesmith = __toESM(require_node());
|
|
76656
76780
|
|
|
76657
76781
|
// package.json
|
|
76658
|
-
var version = "2.
|
|
76782
|
+
var version = "2.2.0";
|
|
76659
76783
|
|
|
76660
76784
|
// ../../cli/plugin-i18n/dist/js/modern/index.js
|
|
76661
76785
|
var import_lodash2 = __toESM(require_lodash2());
|
|
@@ -76896,81 +77020,85 @@ function getDefaultConfig(projectDir = import_path2.default.basename(process.cwd
|
|
|
76896
77020
|
}
|
|
76897
77021
|
return initialConfig;
|
|
76898
77022
|
}
|
|
76899
|
-
|
|
76900
|
-
|
|
76901
|
-
|
|
76902
|
-
|
|
76903
|
-
|
|
76904
|
-
|
|
76905
|
-
|
|
76906
|
-
|
|
76907
|
-
|
|
76908
|
-
|
|
76909
|
-
|
|
76910
|
-
|
|
76911
|
-
|
|
76912
|
-
if (lang) {
|
|
76913
|
-
i18n.changeLanguage({ locale: lang });
|
|
76914
|
-
}
|
|
76915
|
-
if (version2) {
|
|
76916
|
-
smith.logger.info("@modern-js/create", `v${version}`);
|
|
76917
|
-
return;
|
|
76918
|
-
}
|
|
76919
|
-
smith.logger.debug("@modern-js/create", projectDir || "", options);
|
|
76920
|
-
let pwd = process.cwd();
|
|
76921
|
-
try {
|
|
76922
|
-
pwd = projectDir ? createDir(projectDir, pwd) : pwd;
|
|
76923
|
-
} catch (e) {
|
|
76924
|
-
smith.logger.error(
|
|
76925
|
-
i18n.t(localeKeys.tooltip.dir_exists, { dirName: projectDir })
|
|
76926
|
-
);
|
|
76927
|
-
process.exit(1);
|
|
76928
|
-
}
|
|
76929
|
-
const config = getDefaultConfig(projectDir, options, smith.logger);
|
|
76930
|
-
let generator = customGenerator || REPO_GENERATOR;
|
|
76931
|
-
if (process.env.CODESMITH_ENV === "development" && generator === REPO_GENERATOR) {
|
|
76932
|
-
generator = require.resolve(REPO_GENERATOR);
|
|
76933
|
-
} else if (!import_path2.default.isAbsolute(generator) && distTag) {
|
|
76934
|
-
generator = `${generator}@${distTag}`;
|
|
76935
|
-
}
|
|
76936
|
-
const task = [
|
|
76937
|
-
{
|
|
76938
|
-
name: generator,
|
|
76939
|
-
config
|
|
76940
|
-
}
|
|
76941
|
-
];
|
|
76942
|
-
try {
|
|
76943
|
-
await smith.forge({
|
|
76944
|
-
tasks: task.map((runner) => ({
|
|
76945
|
-
generator: runner.name,
|
|
76946
|
-
config: runner.config
|
|
76947
|
-
})),
|
|
76948
|
-
pwd
|
|
77023
|
+
function createAction(projectDir, options) {
|
|
77024
|
+
return __async(this, null, function* () {
|
|
77025
|
+
const {
|
|
77026
|
+
lang,
|
|
77027
|
+
version: version2,
|
|
77028
|
+
debug,
|
|
77029
|
+
registry,
|
|
77030
|
+
distTag,
|
|
77031
|
+
generator: customGenerator
|
|
77032
|
+
} = options;
|
|
77033
|
+
const smith = new import_codesmith.CodeSmith({
|
|
77034
|
+
debug,
|
|
77035
|
+
registryUrl: registry
|
|
76949
77036
|
});
|
|
76950
|
-
|
|
76951
|
-
|
|
76952
|
-
|
|
76953
|
-
|
|
76954
|
-
|
|
76955
|
-
|
|
76956
|
-
|
|
76957
|
-
|
|
77037
|
+
if (lang) {
|
|
77038
|
+
i18n.changeLanguage({ locale: lang });
|
|
77039
|
+
}
|
|
77040
|
+
if (version2) {
|
|
77041
|
+
smith.logger.info("@modern-js/create", `v${version}`);
|
|
77042
|
+
return;
|
|
77043
|
+
}
|
|
77044
|
+
smith.logger.debug("@modern-js/create", projectDir || "", options);
|
|
77045
|
+
let pwd = process.cwd();
|
|
77046
|
+
try {
|
|
77047
|
+
pwd = projectDir ? createDir(projectDir, pwd) : pwd;
|
|
77048
|
+
} catch (e) {
|
|
77049
|
+
smith.logger.error(
|
|
77050
|
+
i18n.t(localeKeys.tooltip.dir_exists, { dirName: projectDir })
|
|
77051
|
+
);
|
|
77052
|
+
process.exit(1);
|
|
77053
|
+
}
|
|
77054
|
+
const config = getDefaultConfig(projectDir, options, smith.logger);
|
|
77055
|
+
let generator = customGenerator || REPO_GENERATOR;
|
|
77056
|
+
if (process.env.CODESMITH_ENV === "development" && generator === REPO_GENERATOR) {
|
|
77057
|
+
generator = require.resolve(REPO_GENERATOR);
|
|
77058
|
+
} else if (!import_path2.default.isAbsolute(generator) && distTag) {
|
|
77059
|
+
generator = `${generator}@${distTag}`;
|
|
77060
|
+
}
|
|
77061
|
+
const task = [
|
|
77062
|
+
{
|
|
77063
|
+
name: generator,
|
|
77064
|
+
config
|
|
77065
|
+
}
|
|
77066
|
+
];
|
|
77067
|
+
try {
|
|
77068
|
+
yield smith.forge({
|
|
77069
|
+
tasks: task.map((runner) => ({
|
|
77070
|
+
generator: runner.name,
|
|
77071
|
+
config: runner.config
|
|
77072
|
+
})),
|
|
77073
|
+
pwd
|
|
77074
|
+
});
|
|
77075
|
+
} catch (e) {
|
|
77076
|
+
process.exit(1);
|
|
77077
|
+
}
|
|
77078
|
+
if (projectDir) {
|
|
77079
|
+
smith.logger.info(
|
|
77080
|
+
i18n.t(localeKeys.tooltip.dir_entry, { dirName: projectDir })
|
|
77081
|
+
);
|
|
77082
|
+
}
|
|
77083
|
+
});
|
|
76958
77084
|
}
|
|
76959
77085
|
|
|
76960
77086
|
// src/cleanCacheAction.ts
|
|
76961
77087
|
var import_os = __toESM(require("os"));
|
|
76962
77088
|
var import_path3 = __toESM(require("path"));
|
|
76963
77089
|
var import_utils4 = __toESM(require_dist());
|
|
76964
|
-
|
|
76965
|
-
|
|
76966
|
-
|
|
76967
|
-
|
|
76968
|
-
|
|
76969
|
-
|
|
76970
|
-
|
|
76971
|
-
|
|
76972
|
-
|
|
76973
|
-
|
|
77090
|
+
function cleanCacheAction() {
|
|
77091
|
+
return __async(this, null, function* () {
|
|
77092
|
+
const tmpDir = import_os.default.tmpdir();
|
|
77093
|
+
const spinner = (0, import_utils4.ora)({
|
|
77094
|
+
text: "Load Generator...",
|
|
77095
|
+
spinner: "runner"
|
|
77096
|
+
}).start();
|
|
77097
|
+
const cacheDir = import_path3.default.join(tmpDir, "csmith-generator");
|
|
77098
|
+
import_utils4.fs.emptyDirSync(cacheDir);
|
|
77099
|
+
spinner.stop();
|
|
77100
|
+
console.info(`[INFO] ${i18n.t(localeKeys.tooltip.clean_cache_success)}`);
|
|
77101
|
+
});
|
|
76974
77102
|
}
|
|
76975
77103
|
|
|
76976
77104
|
// src/index.ts
|