@modern-js/server-generator 2.2.1 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1823 -919
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -5380,7 +5380,7 @@ var require_ora = __commonJSMin((exports, module2) => {
5380
5380
  if (typeof Symbol === "function") {
5381
5381
  Readable.prototype[Symbol.asyncIterator] = function() {
5382
5382
  if (S === void 0) {
5383
- S = r2(243);
5383
+ S = r2(87);
5384
5384
  }
5385
5385
  return S(this);
5386
5386
  };
@@ -6005,7 +6005,7 @@ var require_ora = __commonJSMin((exports, module2) => {
6005
6005
  Writable.prototype._destroy = function(e3, t3) {
6006
6006
  t3(e3);
6007
6007
  };
6008
- }, 243: (e2, t2, r2) => {
6008
+ }, 87: (e2, t2, r2) => {
6009
6009
  "use strict";
6010
6010
  var i;
6011
6011
  function _defineProperty2(e3, t3, r3) {
@@ -6761,7 +6761,7 @@ var require_ora = __commonJSMin((exports, module2) => {
6761
6761
  }, 598: (e2, t2, r2) => {
6762
6762
  "use strict";
6763
6763
  const i = r2(591);
6764
- const n = r2(160);
6764
+ const n = r2(580);
6765
6765
  e2.exports = i(() => {
6766
6766
  n(() => {
6767
6767
  process.stderr.write("\x1B[?25h");
@@ -6820,17 +6820,19 @@ var require_ora = __commonJSMin((exports, module2) => {
6820
6820
  }
6821
6821
  return i.SlowBuffer(e3);
6822
6822
  };
6823
- }, 160: (e2, t2, r2) => {
6823
+ }, 580: (e2, t2, r2) => {
6824
6824
  var i = global.process;
6825
6825
  const processOk = function(e3) {
6826
6826
  return e3 && typeof e3 === "object" && typeof e3.removeListener === "function" && typeof e3.emit === "function" && typeof e3.reallyExit === "function" && typeof e3.listeners === "function" && typeof e3.kill === "function" && typeof e3.pid === "number" && typeof e3.on === "function";
6827
6827
  };
6828
6828
  if (!processOk(i)) {
6829
6829
  e2.exports = function() {
6830
+ return function() {
6831
+ };
6830
6832
  };
6831
6833
  } else {
6832
6834
  var n = r2(491);
6833
- var s = r2(87);
6835
+ var s = r2(357);
6834
6836
  var a = /^win/i.test(i.platform);
6835
6837
  var o = r2(361);
6836
6838
  if (typeof o !== "function") {
@@ -6850,7 +6852,8 @@ var require_ora = __commonJSMin((exports, module2) => {
6850
6852
  }
6851
6853
  e2.exports = function(e3, t3) {
6852
6854
  if (!processOk(global.process)) {
6853
- return;
6855
+ return function() {
6856
+ };
6854
6857
  }
6855
6858
  n.equal(typeof e3, "function", "a callback must be provided for exit handler");
6856
6859
  if (d === false) {
@@ -6957,7 +6960,7 @@ var require_ora = __commonJSMin((exports, module2) => {
6957
6960
  }
6958
6961
  };
6959
6962
  }
6960
- }, 87: (e2) => {
6963
+ }, 357: (e2) => {
6961
6964
  e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
6962
6965
  if (process.platform !== "win32") {
6963
6966
  e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
@@ -7495,13 +7498,13 @@ var require_glob = __commonJSMin((exports, module2) => {
7495
7498
  } else {
7496
7499
  E = String(S);
7497
7500
  if (k) {
7498
- var O = g - E.length;
7499
- if (O > 0) {
7500
- var x = new Array(O + 1).join("0");
7501
+ var x = g - E.length;
7502
+ if (x > 0) {
7503
+ var O = new Array(x + 1).join("0");
7501
7504
  if (S < 0)
7502
- E = "-" + x + E.slice(1);
7505
+ E = "-" + O + E.slice(1);
7503
7506
  else
7504
- E = x + E;
7507
+ E = O + E;
7505
7508
  }
7506
7509
  }
7507
7510
  }
@@ -7808,7 +7811,7 @@ var require_glob = __commonJSMin((exports, module2) => {
7808
7811
  }
7809
7812
  var i = r2(147);
7810
7813
  var a = r2(17);
7811
- var n = r2(435);
7814
+ var n = r2(235);
7812
7815
  var s = r2(249);
7813
7816
  var o = n.Minimatch;
7814
7817
  function alphasort(t3, e3) {
@@ -7983,7 +7986,7 @@ var require_glob = __commonJSMin((exports, module2) => {
7983
7986
  }, 978: (t2, e2, r2) => {
7984
7987
  t2.exports = glob;
7985
7988
  var i = r2(737);
7986
- var a = r2(435);
7989
+ var a = r2(235);
7987
7990
  var n = a.Minimatch;
7988
7991
  var s = r2(315);
7989
7992
  var o = r2(361).EventEmitter;
@@ -8532,7 +8535,7 @@ var require_glob = __commonJSMin((exports, module2) => {
8532
8535
  t2.exports = globSync;
8533
8536
  globSync.GlobSync = GlobSync;
8534
8537
  var i = r2(737);
8535
- var a = r2(435);
8538
+ var a = r2(235);
8536
8539
  var n = a.Minimatch;
8537
8540
  var s = r2(978).Glob;
8538
8541
  var o = r2(837);
@@ -8944,14 +8947,16 @@ var require_glob = __commonJSMin((exports, module2) => {
8944
8947
  }
8945
8948
  };
8946
8949
  }
8947
- }, 435: (t2, e2, r2) => {
8950
+ }, 235: (t2, e2, r2) => {
8948
8951
  t2.exports = minimatch;
8949
8952
  minimatch.Minimatch = Minimatch;
8950
- var i = { sep: "/" };
8951
- try {
8952
- i = r2(17);
8953
- } catch (t3) {
8954
- }
8953
+ var i = function() {
8954
+ try {
8955
+ return r2(17);
8956
+ } catch (t3) {
8957
+ }
8958
+ }() || { sep: "/" };
8959
+ minimatch.sep = i.sep;
8955
8960
  var a = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
8956
8961
  var n = r2(847);
8957
8962
  var s = { "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, "?": { open: "(?:", close: ")?" }, "+": { open: "(?:", close: ")+" }, "*": { open: "(?:", close: ")*" }, "@": { open: "(?:", close: ")" } };
@@ -8975,58 +8980,68 @@ var require_glob = __commonJSMin((exports, module2) => {
8975
8980
  };
8976
8981
  }
8977
8982
  function ext(t3, e3) {
8978
- t3 = t3 || {};
8979
8983
  e3 = e3 || {};
8980
8984
  var r3 = {};
8981
- Object.keys(e3).forEach(function(t4) {
8982
- r3[t4] = e3[t4];
8983
- });
8984
8985
  Object.keys(t3).forEach(function(e4) {
8985
8986
  r3[e4] = t3[e4];
8986
8987
  });
8988
+ Object.keys(e3).forEach(function(t4) {
8989
+ r3[t4] = e3[t4];
8990
+ });
8987
8991
  return r3;
8988
8992
  }
8989
8993
  minimatch.defaults = function(t3) {
8990
- if (!t3 || !Object.keys(t3).length)
8994
+ if (!t3 || typeof t3 !== "object" || !Object.keys(t3).length) {
8991
8995
  return minimatch;
8996
+ }
8992
8997
  var e3 = minimatch;
8993
8998
  var r3 = function minimatch2(r4, i2, a2) {
8994
- return e3.minimatch(r4, i2, ext(t3, a2));
8999
+ return e3(r4, i2, ext(t3, a2));
8995
9000
  };
8996
9001
  r3.Minimatch = function Minimatch2(r4, i2) {
8997
9002
  return new e3.Minimatch(r4, ext(t3, i2));
8998
9003
  };
9004
+ r3.Minimatch.defaults = function defaults(r4) {
9005
+ return e3.defaults(ext(t3, r4)).Minimatch;
9006
+ };
9007
+ r3.filter = function filter4(r4, i2) {
9008
+ return e3.filter(r4, ext(t3, i2));
9009
+ };
9010
+ r3.defaults = function defaults(r4) {
9011
+ return e3.defaults(ext(t3, r4));
9012
+ };
9013
+ r3.makeRe = function makeRe2(r4, i2) {
9014
+ return e3.makeRe(r4, ext(t3, i2));
9015
+ };
9016
+ r3.braceExpand = function braceExpand2(r4, i2) {
9017
+ return e3.braceExpand(r4, ext(t3, i2));
9018
+ };
9019
+ r3.match = function(r4, i2, a2) {
9020
+ return e3.match(r4, i2, ext(t3, a2));
9021
+ };
8999
9022
  return r3;
9000
9023
  };
9001
9024
  Minimatch.defaults = function(t3) {
9002
- if (!t3 || !Object.keys(t3).length)
9003
- return Minimatch;
9004
9025
  return minimatch.defaults(t3).Minimatch;
9005
9026
  };
9006
9027
  function minimatch(t3, e3, r3) {
9007
- if (typeof e3 !== "string") {
9008
- throw new TypeError("glob pattern string required");
9009
- }
9028
+ assertValidPattern(e3);
9010
9029
  if (!r3)
9011
9030
  r3 = {};
9012
9031
  if (!r3.nocomment && e3.charAt(0) === "#") {
9013
9032
  return false;
9014
9033
  }
9015
- if (e3.trim() === "")
9016
- return t3 === "";
9017
9034
  return new Minimatch(e3, r3).match(t3);
9018
9035
  }
9019
9036
  function Minimatch(t3, e3) {
9020
9037
  if (!(this instanceof Minimatch)) {
9021
9038
  return new Minimatch(t3, e3);
9022
9039
  }
9023
- if (typeof t3 !== "string") {
9024
- throw new TypeError("glob pattern string required");
9025
- }
9040
+ assertValidPattern(t3);
9026
9041
  if (!e3)
9027
9042
  e3 = {};
9028
9043
  t3 = t3.trim();
9029
- if (i.sep !== "/") {
9044
+ if (!e3.allowWindowsEscape && i.sep !== "/") {
9030
9045
  t3 = t3.split(i.sep).join("/");
9031
9046
  }
9032
9047
  this.options = e3;
@@ -9036,14 +9051,13 @@ var require_glob = __commonJSMin((exports, module2) => {
9036
9051
  this.negate = false;
9037
9052
  this.comment = false;
9038
9053
  this.empty = false;
9054
+ this.partial = !!e3.partial;
9039
9055
  this.make();
9040
9056
  }
9041
9057
  Minimatch.prototype.debug = function() {
9042
9058
  };
9043
9059
  Minimatch.prototype.make = make;
9044
9060
  function make() {
9045
- if (this._made)
9046
- return;
9047
9061
  var t3 = this.pattern;
9048
9062
  var e3 = this.options;
9049
9063
  if (!e3.nocomment && t3.charAt(0) === "#") {
@@ -9057,7 +9071,9 @@ var require_glob = __commonJSMin((exports, module2) => {
9057
9071
  this.parseNegate();
9058
9072
  var r3 = this.globSet = this.braceExpand();
9059
9073
  if (e3.debug)
9060
- this.debug = console.error;
9074
+ this.debug = function debug() {
9075
+ console.error.apply(console, arguments);
9076
+ };
9061
9077
  this.debug(this.pattern, r3);
9062
9078
  r3 = this.globParts = r3.map(function(t4) {
9063
9079
  return t4.split(p);
@@ -9102,23 +9118,32 @@ var require_glob = __commonJSMin((exports, module2) => {
9102
9118
  }
9103
9119
  }
9104
9120
  t3 = typeof t3 === "undefined" ? this.pattern : t3;
9105
- if (typeof t3 === "undefined") {
9106
- throw new TypeError("undefined pattern");
9107
- }
9108
- if (e3.nobrace || !t3.match(/\{.*\}/)) {
9121
+ assertValidPattern(t3);
9122
+ if (e3.nobrace || !/\{(?:(?!\{).)*\}/.test(t3)) {
9109
9123
  return [t3];
9110
9124
  }
9111
9125
  return n(t3);
9112
9126
  }
9113
- Minimatch.prototype.parse = parse;
9114
- var v = {};
9115
- function parse(t3, e3) {
9116
- if (t3.length > 1024 * 64) {
9127
+ var v = 1024 * 64;
9128
+ var assertValidPattern = function(t3) {
9129
+ if (typeof t3 !== "string") {
9130
+ throw new TypeError("invalid pattern");
9131
+ }
9132
+ if (t3.length > v) {
9117
9133
  throw new TypeError("pattern is too long");
9118
9134
  }
9135
+ };
9136
+ Minimatch.prototype.parse = parse;
9137
+ var d = {};
9138
+ function parse(t3, e3) {
9139
+ assertValidPattern(t3);
9119
9140
  var r3 = this.options;
9120
- if (!r3.noglobstar && t3 === "**")
9121
- return a;
9141
+ if (t3 === "**") {
9142
+ if (!r3.noglobstar)
9143
+ return a;
9144
+ else
9145
+ t3 = "*";
9146
+ }
9122
9147
  if (t3 === "")
9123
9148
  return "";
9124
9149
  var i2 = "";
@@ -9126,15 +9151,15 @@ var require_glob = __commonJSMin((exports, module2) => {
9126
9151
  var h2 = false;
9127
9152
  var l2 = [];
9128
9153
  var p2 = [];
9129
- var d;
9154
+ var v2;
9130
9155
  var m = false;
9131
9156
  var b = -1;
9132
9157
  var g = -1;
9133
9158
  var y = t3.charAt(0) === "." ? "" : r3.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
9134
9159
  var _ = this;
9135
9160
  function clearStateChar() {
9136
- if (d) {
9137
- switch (d) {
9161
+ if (v2) {
9162
+ switch (v2) {
9138
9163
  case "*":
9139
9164
  i2 += c;
9140
9165
  n2 = true;
@@ -9144,11 +9169,11 @@ var require_glob = __commonJSMin((exports, module2) => {
9144
9169
  n2 = true;
9145
9170
  break;
9146
9171
  default:
9147
- i2 += "\\" + d;
9172
+ i2 += "\\" + v2;
9148
9173
  break;
9149
9174
  }
9150
- _.debug("clearStateChar %j %j", d, i2);
9151
- d = false;
9175
+ _.debug("clearStateChar %j %j", v2, i2);
9176
+ v2 = false;
9152
9177
  }
9153
9178
  }
9154
9179
  for (var w = 0, k = t3.length, S; w < k && (S = t3.charAt(w)); w++) {
@@ -9159,8 +9184,9 @@ var require_glob = __commonJSMin((exports, module2) => {
9159
9184
  continue;
9160
9185
  }
9161
9186
  switch (S) {
9162
- case "/":
9187
+ case "/": {
9163
9188
  return false;
9189
+ }
9164
9190
  case "\\":
9165
9191
  clearStateChar();
9166
9192
  h2 = true;
@@ -9178,9 +9204,9 @@ var require_glob = __commonJSMin((exports, module2) => {
9178
9204
  i2 += S;
9179
9205
  continue;
9180
9206
  }
9181
- _.debug("call clearStateChar %j", d);
9207
+ _.debug("call clearStateChar %j", v2);
9182
9208
  clearStateChar();
9183
- d = S;
9209
+ v2 = S;
9184
9210
  if (r3.noext)
9185
9211
  clearStateChar();
9186
9212
  continue;
@@ -9189,14 +9215,14 @@ var require_glob = __commonJSMin((exports, module2) => {
9189
9215
  i2 += "(";
9190
9216
  continue;
9191
9217
  }
9192
- if (!d) {
9218
+ if (!v2) {
9193
9219
  i2 += "\\(";
9194
9220
  continue;
9195
9221
  }
9196
- l2.push({ type: d, start: w - 1, reStart: i2.length, open: s[d].open, close: s[d].close });
9197
- i2 += d === "!" ? "(?:(?!(?:" : "(?:";
9198
- this.debug("plType %j %j", d, i2);
9199
- d = false;
9222
+ l2.push({ type: v2, start: w - 1, reStart: i2.length, open: s[v2].open, close: s[v2].close });
9223
+ i2 += v2 === "!" ? "(?:(?!(?:" : "(?:";
9224
+ this.debug("plType %j %j", v2, i2);
9225
+ v2 = false;
9200
9226
  continue;
9201
9227
  case ")":
9202
9228
  if (m || !l2.length) {
@@ -9238,17 +9264,15 @@ var require_glob = __commonJSMin((exports, module2) => {
9238
9264
  h2 = false;
9239
9265
  continue;
9240
9266
  }
9241
- if (m) {
9242
- var O = t3.substring(g + 1, w);
9243
- try {
9244
- RegExp("[" + O + "]");
9245
- } catch (t4) {
9246
- var x = this.parse(O, v);
9247
- i2 = i2.substr(0, b) + "\\[" + x[0] + "\\]";
9248
- n2 = n2 || x[1];
9249
- m = false;
9250
- continue;
9251
- }
9267
+ var x = t3.substring(g + 1, w);
9268
+ try {
9269
+ RegExp("[" + x + "]");
9270
+ } catch (t4) {
9271
+ var O = this.parse(x, d);
9272
+ i2 = i2.substr(0, b) + "\\[" + O[0] + "\\]";
9273
+ n2 = n2 || O[1];
9274
+ m = false;
9275
+ continue;
9252
9276
  }
9253
9277
  n2 = true;
9254
9278
  m = false;
@@ -9265,10 +9289,10 @@ var require_glob = __commonJSMin((exports, module2) => {
9265
9289
  }
9266
9290
  }
9267
9291
  if (m) {
9268
- O = t3.substr(g + 1);
9269
- x = this.parse(O, v);
9270
- i2 = i2.substr(0, b) + "\\[" + x[0];
9271
- n2 = n2 || x[1];
9292
+ x = t3.substr(g + 1);
9293
+ O = this.parse(x, d);
9294
+ i2 = i2.substr(0, b) + "\\[" + O[0];
9295
+ n2 = n2 || O[1];
9272
9296
  }
9273
9297
  for (E = l2.pop(); E; E = l2.pop()) {
9274
9298
  var A = i2.slice(E.reStart + E.open.length);
@@ -9290,29 +9314,29 @@ var require_glob = __commonJSMin((exports, module2) => {
9290
9314
  }
9291
9315
  var j = false;
9292
9316
  switch (i2.charAt(0)) {
9293
- case ".":
9294
9317
  case "[":
9318
+ case ".":
9295
9319
  case "(":
9296
9320
  j = true;
9297
9321
  }
9298
- for (var I = p2.length - 1; I > -1; I--) {
9299
- var M = p2[I];
9300
- var C = i2.slice(0, M.reStart);
9301
- var L = i2.slice(M.reStart, M.reEnd - 8);
9302
- var R = i2.slice(M.reEnd - 8, M.reEnd);
9303
- var T = i2.slice(M.reEnd);
9304
- R += T;
9305
- var N = C.split("(").length - 1;
9306
- var P = T;
9307
- for (w = 0; w < N; w++) {
9322
+ for (var M = p2.length - 1; M > -1; M--) {
9323
+ var I = p2[M];
9324
+ var R = i2.slice(0, I.reStart);
9325
+ var C = i2.slice(I.reStart, I.reEnd - 8);
9326
+ var L = i2.slice(I.reEnd - 8, I.reEnd);
9327
+ var N = i2.slice(I.reEnd);
9328
+ L += N;
9329
+ var T = R.split("(").length - 1;
9330
+ var P = N;
9331
+ for (w = 0; w < T; w++) {
9308
9332
  P = P.replace(/\)[+*?]?/, "");
9309
9333
  }
9310
- T = P;
9334
+ N = P;
9311
9335
  var D = "";
9312
- if (T === "" && e3 !== v) {
9336
+ if (N === "" && e3 !== d) {
9313
9337
  D = "$";
9314
9338
  }
9315
- var $ = C + L + T + D + R;
9339
+ var $ = R + C + N + D + L;
9316
9340
  i2 = $;
9317
9341
  }
9318
9342
  if (i2 !== "" && n2) {
@@ -9321,7 +9345,7 @@ var require_glob = __commonJSMin((exports, module2) => {
9321
9345
  if (j) {
9322
9346
  i2 = y + i2;
9323
9347
  }
9324
- if (e3 === v) {
9348
+ if (e3 === d) {
9325
9349
  return [i2, n2];
9326
9350
  }
9327
9351
  if (!n2) {
@@ -9329,13 +9353,13 @@ var require_glob = __commonJSMin((exports, module2) => {
9329
9353
  }
9330
9354
  var F = r3.nocase ? "i" : "";
9331
9355
  try {
9332
- var q = new RegExp("^" + i2 + "$", F);
9356
+ var B = new RegExp("^" + i2 + "$", F);
9333
9357
  } catch (t4) {
9334
9358
  return new RegExp("$.");
9335
9359
  }
9336
- q._glob = t3;
9337
- q._src = i2;
9338
- return q;
9360
+ B._glob = t3;
9361
+ B._src = i2;
9362
+ return B;
9339
9363
  }
9340
9364
  minimatch.makeRe = function(t3, e3) {
9341
9365
  return new Minimatch(t3, e3 || {}).makeRe();
@@ -9378,8 +9402,9 @@ var require_glob = __commonJSMin((exports, module2) => {
9378
9402
  }
9379
9403
  return t3;
9380
9404
  };
9381
- Minimatch.prototype.match = match;
9382
- function match(t3, e3) {
9405
+ Minimatch.prototype.match = function match(t3, e3) {
9406
+ if (typeof e3 === "undefined")
9407
+ e3 = this.partial;
9383
9408
  this.debug("match", t3, this.pattern);
9384
9409
  if (this.comment)
9385
9410
  return false;
@@ -9418,7 +9443,7 @@ var require_glob = __commonJSMin((exports, module2) => {
9418
9443
  if (r3.flipNegate)
9419
9444
  return false;
9420
9445
  return this.negate;
9421
- }
9446
+ };
9422
9447
  Minimatch.prototype.matchOne = function(t3, e3, r3) {
9423
9448
  var i2 = this.options;
9424
9449
  this.debug("matchOne", { this: this, file: t3, pattern: e3 });
@@ -9464,19 +9489,15 @@ var require_glob = __commonJSMin((exports, module2) => {
9464
9489
  }
9465
9490
  return false;
9466
9491
  }
9467
- var d;
9492
+ var d2;
9468
9493
  if (typeof h2 === "string") {
9469
- if (i2.nocase) {
9470
- d = l2.toLowerCase() === h2.toLowerCase();
9471
- } else {
9472
- d = l2 === h2;
9473
- }
9474
- this.debug("string match", h2, l2, d);
9494
+ d2 = l2 === h2;
9495
+ this.debug("string match", h2, l2, d2);
9475
9496
  } else {
9476
- d = l2.match(h2);
9477
- this.debug("pattern match", h2, l2, d);
9497
+ d2 = l2.match(h2);
9498
+ this.debug("pattern match", h2, l2, d2);
9478
9499
  }
9479
- if (!d)
9500
+ if (!d2)
9480
9501
  return false;
9481
9502
  }
9482
9503
  if (n2 === o2 && s2 === c2) {
@@ -9484,8 +9505,7 @@ var require_glob = __commonJSMin((exports, module2) => {
9484
9505
  } else if (n2 === o2) {
9485
9506
  return r3;
9486
9507
  } else if (s2 === c2) {
9487
- var m = n2 === o2 - 1 && t3[n2] === "";
9488
- return m;
9508
+ return n2 === o2 - 1 && t3[n2] === "";
9489
9509
  }
9490
9510
  throw new Error("wtf?");
9491
9511
  };
@@ -13110,7 +13130,7 @@ ${o.message}` : x;
13110
13130
  }, 878: (e2, t2, n2) => {
13111
13131
  "use strict";
13112
13132
  const r = n2(37);
13113
- const o = n2(160);
13133
+ const o = n2(580);
13114
13134
  const s = 1e3 * 5;
13115
13135
  const spawnedKill = (e3, t3 = "SIGTERM", n3 = {}) => {
13116
13136
  const r2 = e3(t3);
@@ -13733,17 +13753,19 @@ ${o.message}` : x;
13733
13753
  }, 609: (e2) => {
13734
13754
  "use strict";
13735
13755
  e2.exports = /^#!(.*)/;
13736
- }, 160: (e2, t2, n2) => {
13756
+ }, 580: (e2, t2, n2) => {
13737
13757
  var r = global.process;
13738
13758
  const processOk = function(e3) {
13739
13759
  return e3 && typeof e3 === "object" && typeof e3.removeListener === "function" && typeof e3.emit === "function" && typeof e3.reallyExit === "function" && typeof e3.listeners === "function" && typeof e3.kill === "function" && typeof e3.pid === "number" && typeof e3.on === "function";
13740
13760
  };
13741
13761
  if (!processOk(r)) {
13742
13762
  e2.exports = function() {
13763
+ return function() {
13764
+ };
13743
13765
  };
13744
13766
  } else {
13745
13767
  var o = n2(491);
13746
- var s = n2(87);
13768
+ var s = n2(357);
13747
13769
  var i = /^win/i.test(r.platform);
13748
13770
  var a = n2(361);
13749
13771
  if (typeof a !== "function") {
@@ -13763,7 +13785,8 @@ ${o.message}` : x;
13763
13785
  }
13764
13786
  e2.exports = function(e3, t3) {
13765
13787
  if (!processOk(global.process)) {
13766
- return;
13788
+ return function() {
13789
+ };
13767
13790
  }
13768
13791
  o.equal(typeof e3, "function", "a callback must be provided for exit handler");
13769
13792
  if (f === false) {
@@ -13870,7 +13893,7 @@ ${o.message}` : x;
13870
13893
  }
13871
13894
  };
13872
13895
  }
13873
- }, 87: (e2) => {
13896
+ }, 357: (e2) => {
13874
13897
  e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
13875
13898
  if (process.platform !== "win32") {
13876
13899
  e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
@@ -19478,8 +19501,8 @@ var require_lodash = __commonJSMin((exports, module2) => {
19478
19501
  if (result2 instanceof LazyWrapper) {
19479
19502
  result2 = result2.value();
19480
19503
  }
19481
- return arrayReduce(actions, function(result3, action) {
19482
- return action.func.apply(action.thisArg, arrayPush([result3], action.args));
19504
+ return arrayReduce(actions, function(result3, action2) {
19505
+ return action2.func.apply(action2.thisArg, arrayPush([result3], action2.args));
19483
19506
  }, result2);
19484
19507
  }
19485
19508
  function baseXor(arrays, iteratee2, comparator) {
@@ -24937,7 +24960,7 @@ var require_fast_glob = __commonJSMin((exports, module2) => {
24937
24960
  e2.matchAny = e2.convertPatternsToRe = e2.makeRe = e2.getPatternParts = e2.expandBraceExpansion = e2.expandPatternsWithBraceExpansion = e2.isAffectDepthOfReadingPattern = e2.endsWithSlashGlobStar = e2.hasGlobStar = e2.getBaseDirectory = e2.isPatternRelatedToParentDirectory = e2.getPatternsOutsideCurrentDirectory = e2.getPatternsInsideCurrentDirectory = e2.getPositivePatterns = e2.getNegativePatterns = e2.isPositivePattern = e2.isNegativePattern = e2.convertToNegativePattern = e2.convertToPositivePattern = e2.isDynamicPattern = e2.isStaticPattern = void 0;
24938
24961
  const n = r2(1017);
24939
24962
  const s = r2(5976);
24940
- const i = r2(1224);
24963
+ const i = r2(8627);
24941
24964
  const o = "**";
24942
24965
  const a = "\\";
24943
24966
  const u = /[*?]|^!/;
@@ -25792,7 +25815,7 @@ var require_fast_glob = __commonJSMin((exports, module2) => {
25792
25815
  }
25793
25816
  return t3;
25794
25817
  }
25795
- }, 1224: (t2, e2, r2) => {
25818
+ }, 8627: (t2, e2, r2) => {
25796
25819
  "use strict";
25797
25820
  const n = r2(3837);
25798
25821
  const s = r2(1570);
@@ -25855,9 +25878,9 @@ var require_fast_glob = __commonJSMin((exports, module2) => {
25855
25878
  r3.onResult(t4);
25856
25879
  s2.push(t4.output);
25857
25880
  };
25858
- let i2 = micromatch(t3, e3, { ...r3, onResult });
25881
+ let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
25859
25882
  for (let t4 of s2) {
25860
- if (!i2.includes(t4)) {
25883
+ if (!i2.has(t4)) {
25861
25884
  n2.add(t4);
25862
25885
  }
25863
25886
  }
@@ -30730,11 +30753,11 @@ var require_browserslist = __commonJSMin((exports, module2) => {
30730
30753
  BrowserslistError.prototype = Error.prototype;
30731
30754
  e2.exports = BrowserslistError;
30732
30755
  }, 751: (e2, s2, r2) => {
30733
- var n = r2(936);
30756
+ var n = r2(330);
30734
30757
  var t = r2(768).agents;
30735
- var a = r2(178);
30758
+ var a = r2(97);
30736
30759
  var i = r2(17);
30737
- var o = r2(158);
30760
+ var o = r2(333);
30738
30761
  var l = r2(923);
30739
30762
  var f = r2(347);
30740
30763
  var u = 365.259641 * 24 * 60 * 60 * 1e3;
@@ -31883,8 +31906,8 @@ var require_browserslist = __commonJSMin((exports, module2) => {
31883
31906
  }, currentNode: function currentNode() {
31884
31907
  return "node " + process.versions.node;
31885
31908
  } };
31886
- }, 158: (e2) => {
31887
- e2.exports = { "0.20": "39", 0.21: "41", 0.22: "41", 0.23: "41", 0.24: "41", 0.25: "42", 0.26: "42", 0.27: "43", 0.28: "43", 0.29: "43", "0.30": "44", 0.31: "45", 0.32: "45", 0.33: "45", 0.34: "45", 0.35: "45", 0.36: "47", 0.37: "49", "1.0": "49", 1.1: "50", 1.2: "51", 1.3: "52", 1.4: "53", 1.5: "54", 1.6: "56", 1.7: "58", 1.8: "59", "2.0": "61", 2.1: "61", "3.0": "66", 3.1: "66", "4.0": "69", 4.1: "69", 4.2: "69", "5.0": "73", "6.0": "76", 6.1: "76", "7.0": "78", 7.1: "78", 7.2: "78", 7.3: "78", "8.0": "80", 8.1: "80", 8.2: "80", 8.3: "80", 8.4: "80", 8.5: "80", "9.0": "83", 9.1: "83", 9.2: "83", 9.3: "83", 9.4: "83", "10.0": "85", 10.1: "85", 10.2: "85", 10.3: "85", 10.4: "85", "11.0": "87", 11.1: "87", 11.2: "87", 11.3: "87", 11.4: "87", 11.5: "87", "12.0": "89", 12.1: "89", 12.2: "89", "13.0": "91", 13.1: "91", 13.2: "91", 13.3: "91", 13.4: "91", 13.5: "91", 13.6: "91", "14.0": "93", 14.1: "93", 14.2: "93", "15.0": "94", 15.1: "94", 15.2: "94", 15.3: "94", 15.4: "94", "16.0": "96", 16.1: "96", "17.0": "98", 17.1: "98", "18.0": "100" };
31909
+ }, 333: (e2) => {
31910
+ e2.exports = { "0.20": "39", 0.21: "41", 0.22: "41", 0.23: "41", 0.24: "41", 0.25: "42", 0.26: "42", 0.27: "43", 0.28: "43", 0.29: "43", "0.30": "44", 0.31: "45", 0.32: "45", 0.33: "45", 0.34: "45", 0.35: "45", 0.36: "47", 0.37: "49", "1.0": "49", 1.1: "50", 1.2: "51", 1.3: "52", 1.4: "53", 1.5: "54", 1.6: "56", 1.7: "58", 1.8: "59", "2.0": "61", 2.1: "61", "3.0": "66", 3.1: "66", "4.0": "69", 4.1: "69", 4.2: "69", "5.0": "73", "6.0": "76", 6.1: "76", "7.0": "78", 7.1: "78", 7.2: "78", 7.3: "78", "8.0": "80", 8.1: "80", 8.2: "80", 8.3: "80", 8.4: "80", 8.5: "80", "9.0": "83", 9.1: "83", 9.2: "83", 9.3: "83", 9.4: "83", "10.0": "85", 10.1: "85", 10.2: "85", 10.3: "85", 10.4: "85", "11.0": "87", 11.1: "87", 11.2: "87", 11.3: "87", 11.4: "87", 11.5: "87", "12.0": "89", 12.1: "89", 12.2: "89", "13.0": "91", 13.1: "91", 13.2: "91", 13.3: "91", 13.4: "91", 13.5: "91", 13.6: "91", "14.0": "93", 14.1: "93", 14.2: "93", "15.0": "94", 15.1: "94", 15.2: "94", 15.3: "94", 15.4: "94", 15.5: "94", "16.0": "96", 16.1: "96", 16.2: "96", "17.0": "98", 17.1: "98", 17.2: "98", 17.3: "98", 17.4: "98", "18.0": "100", 18.1: "100", 18.2: "100", 18.3: "100", "19.0": "102", "20.0": "104" };
31888
31911
  }, 174: (e2) => {
31889
31912
  function webpackEmptyContext(e3) {
31890
31913
  var s2 = new Error("Cannot find module '" + e3 + "'");
@@ -31910,12 +31933,12 @@ var require_browserslist = __commonJSMin((exports, module2) => {
31910
31933
  }, 17: (e2) => {
31911
31934
  "use strict";
31912
31935
  e2.exports = __require("path");
31913
- }, 936: (e2) => {
31936
+ }, 330: (e2) => {
31914
31937
  "use strict";
31915
- e2.exports = JSON.parse('[{"name":"nodejs","version":"0.2.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.3.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.4.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.5.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.6.0","date":"2011-11-04","lts":false,"security":false},{"name":"nodejs","version":"0.7.0","date":"2012-01-17","lts":false,"security":false},{"name":"nodejs","version":"0.8.0","date":"2012-06-22","lts":false,"security":false},{"name":"nodejs","version":"0.9.0","date":"2012-07-20","lts":false,"security":false},{"name":"nodejs","version":"0.10.0","date":"2013-03-11","lts":false,"security":false},{"name":"nodejs","version":"0.11.0","date":"2013-03-28","lts":false,"security":false},{"name":"nodejs","version":"0.12.0","date":"2015-02-06","lts":false,"security":false},{"name":"nodejs","version":"4.0.0","date":"2015-09-08","lts":false,"security":false},{"name":"nodejs","version":"4.1.0","date":"2015-09-17","lts":false,"security":false},{"name":"nodejs","version":"4.2.0","date":"2015-10-12","lts":"Argon","security":false},{"name":"nodejs","version":"4.3.0","date":"2016-02-09","lts":"Argon","security":false},{"name":"nodejs","version":"4.4.0","date":"2016-03-08","lts":"Argon","security":false},{"name":"nodejs","version":"4.5.0","date":"2016-08-16","lts":"Argon","security":false},{"name":"nodejs","version":"4.6.0","date":"2016-09-27","lts":"Argon","security":true},{"name":"nodejs","version":"4.7.0","date":"2016-12-06","lts":"Argon","security":false},{"name":"nodejs","version":"4.8.0","date":"2017-02-21","lts":"Argon","security":false},{"name":"nodejs","version":"4.9.0","date":"2018-03-28","lts":"Argon","security":true},{"name":"nodejs","version":"5.0.0","date":"2015-10-29","lts":false,"security":false},{"name":"nodejs","version":"5.1.0","date":"2015-11-17","lts":false,"security":false},{"name":"nodejs","version":"5.2.0","date":"2015-12-09","lts":false,"security":false},{"name":"nodejs","version":"5.3.0","date":"2015-12-15","lts":false,"security":false},{"name":"nodejs","version":"5.4.0","date":"2016-01-06","lts":false,"security":false},{"name":"nodejs","version":"5.5.0","date":"2016-01-21","lts":false,"security":false},{"name":"nodejs","version":"5.6.0","date":"2016-02-09","lts":false,"security":false},{"name":"nodejs","version":"5.7.0","date":"2016-02-23","lts":false,"security":false},{"name":"nodejs","version":"5.8.0","date":"2016-03-09","lts":false,"security":false},{"name":"nodejs","version":"5.9.0","date":"2016-03-16","lts":false,"security":false},{"name":"nodejs","version":"5.10.0","date":"2016-04-01","lts":false,"security":false},{"name":"nodejs","version":"5.11.0","date":"2016-04-21","lts":false,"security":false},{"name":"nodejs","version":"5.12.0","date":"2016-06-23","lts":false,"security":false},{"name":"nodejs","version":"6.0.0","date":"2016-04-26","lts":false,"security":false},{"name":"nodejs","version":"6.1.0","date":"2016-05-05","lts":false,"security":false},{"name":"nodejs","version":"6.2.0","date":"2016-05-17","lts":false,"security":false},{"name":"nodejs","version":"6.3.0","date":"2016-07-06","lts":false,"security":false},{"name":"nodejs","version":"6.4.0","date":"2016-08-12","lts":false,"security":false},{"name":"nodejs","version":"6.5.0","date":"2016-08-26","lts":false,"security":false},{"name":"nodejs","version":"6.6.0","date":"2016-09-14","lts":false,"security":false},{"name":"nodejs","version":"6.7.0","date":"2016-09-27","lts":false,"security":true},{"name":"nodejs","version":"6.8.0","date":"2016-10-12","lts":false,"security":false},{"name":"nodejs","version":"6.9.0","date":"2016-10-18","lts":"Boron","security":false},{"name":"nodejs","version":"6.10.0","date":"2017-02-21","lts":"Boron","security":false},{"name":"nodejs","version":"6.11.0","date":"2017-06-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.12.0","date":"2017-11-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.13.0","date":"2018-02-10","lts":"Boron","security":false},{"name":"nodejs","version":"6.14.0","date":"2018-03-28","lts":"Boron","security":true},{"name":"nodejs","version":"6.15.0","date":"2018-11-27","lts":"Boron","security":true},{"name":"nodejs","version":"6.16.0","date":"2018-12-26","lts":"Boron","security":false},{"name":"nodejs","version":"6.17.0","date":"2019-02-28","lts":"Boron","security":true},{"name":"nodejs","version":"7.0.0","date":"2016-10-25","lts":false,"security":false},{"name":"nodejs","version":"7.1.0","date":"2016-11-08","lts":false,"security":false},{"name":"nodejs","version":"7.2.0","date":"2016-11-22","lts":false,"security":false},{"name":"nodejs","version":"7.3.0","date":"2016-12-20","lts":false,"security":false},{"name":"nodejs","version":"7.4.0","date":"2017-01-04","lts":false,"security":false},{"name":"nodejs","version":"7.5.0","date":"2017-01-31","lts":false,"security":false},{"name":"nodejs","version":"7.6.0","date":"2017-02-21","lts":false,"security":false},{"name":"nodejs","version":"7.7.0","date":"2017-02-28","lts":false,"security":false},{"name":"nodejs","version":"7.8.0","date":"2017-03-29","lts":false,"security":false},{"name":"nodejs","version":"7.9.0","date":"2017-04-11","lts":false,"security":false},{"name":"nodejs","version":"7.10.0","date":"2017-05-02","lts":false,"security":false},{"name":"nodejs","version":"8.0.0","date":"2017-05-30","lts":false,"security":false},{"name":"nodejs","version":"8.1.0","date":"2017-06-08","lts":false,"security":false},{"name":"nodejs","version":"8.2.0","date":"2017-07-19","lts":false,"security":false},{"name":"nodejs","version":"8.3.0","date":"2017-08-08","lts":false,"security":false},{"name":"nodejs","version":"8.4.0","date":"2017-08-15","lts":false,"security":false},{"name":"nodejs","version":"8.5.0","date":"2017-09-12","lts":false,"security":false},{"name":"nodejs","version":"8.6.0","date":"2017-09-26","lts":false,"security":false},{"name":"nodejs","version":"8.7.0","date":"2017-10-11","lts":false,"security":false},{"name":"nodejs","version":"8.8.0","date":"2017-10-24","lts":false,"security":false},{"name":"nodejs","version":"8.9.0","date":"2017-10-31","lts":"Carbon","security":false},{"name":"nodejs","version":"8.10.0","date":"2018-03-06","lts":"Carbon","security":false},{"name":"nodejs","version":"8.11.0","date":"2018-03-28","lts":"Carbon","security":true},{"name":"nodejs","version":"8.12.0","date":"2018-09-10","lts":"Carbon","security":false},{"name":"nodejs","version":"8.13.0","date":"2018-11-20","lts":"Carbon","security":false},{"name":"nodejs","version":"8.14.0","date":"2018-11-27","lts":"Carbon","security":true},{"name":"nodejs","version":"8.15.0","date":"2018-12-26","lts":"Carbon","security":false},{"name":"nodejs","version":"8.16.0","date":"2019-04-16","lts":"Carbon","security":false},{"name":"nodejs","version":"8.17.0","date":"2019-12-17","lts":"Carbon","security":true},{"name":"nodejs","version":"9.0.0","date":"2017-10-31","lts":false,"security":false},{"name":"nodejs","version":"9.1.0","date":"2017-11-07","lts":false,"security":false},{"name":"nodejs","version":"9.2.0","date":"2017-11-14","lts":false,"security":false},{"name":"nodejs","version":"9.3.0","date":"2017-12-12","lts":false,"security":false},{"name":"nodejs","version":"9.4.0","date":"2018-01-10","lts":false,"security":false},{"name":"nodejs","version":"9.5.0","date":"2018-01-31","lts":false,"security":false},{"name":"nodejs","version":"9.6.0","date":"2018-02-21","lts":false,"security":false},{"name":"nodejs","version":"9.7.0","date":"2018-03-01","lts":false,"security":false},{"name":"nodejs","version":"9.8.0","date":"2018-03-07","lts":false,"security":false},{"name":"nodejs","version":"9.9.0","date":"2018-03-21","lts":false,"security":false},{"name":"nodejs","version":"9.10.0","date":"2018-03-28","lts":false,"security":true},{"name":"nodejs","version":"9.11.0","date":"2018-04-04","lts":false,"security":false},{"name":"nodejs","version":"10.0.0","date":"2018-04-24","lts":false,"security":false},{"name":"nodejs","version":"10.1.0","date":"2018-05-08","lts":false,"security":false},{"name":"nodejs","version":"10.2.0","date":"2018-05-23","lts":false,"security":false},{"name":"nodejs","version":"10.3.0","date":"2018-05-29","lts":false,"security":false},{"name":"nodejs","version":"10.4.0","date":"2018-06-06","lts":false,"security":false},{"name":"nodejs","version":"10.5.0","date":"2018-06-20","lts":false,"security":false},{"name":"nodejs","version":"10.6.0","date":"2018-07-04","lts":false,"security":false},{"name":"nodejs","version":"10.7.0","date":"2018-07-18","lts":false,"security":false},{"name":"nodejs","version":"10.8.0","date":"2018-08-01","lts":false,"security":false},{"name":"nodejs","version":"10.9.0","date":"2018-08-15","lts":false,"security":false},{"name":"nodejs","version":"10.10.0","date":"2018-09-06","lts":false,"security":false},{"name":"nodejs","version":"10.11.0","date":"2018-09-19","lts":false,"security":false},{"name":"nodejs","version":"10.12.0","date":"2018-10-10","lts":false,"security":false},{"name":"nodejs","version":"10.13.0","date":"2018-10-30","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.14.0","date":"2018-11-27","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.15.0","date":"2018-12-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.16.0","date":"2019-05-28","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.17.0","date":"2019-10-22","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.18.0","date":"2019-12-17","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.19.0","date":"2020-02-05","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.20.0","date":"2020-03-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.21.0","date":"2020-06-02","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.22.0","date":"2020-07-21","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.23.0","date":"2020-10-27","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.24.0","date":"2021-02-23","lts":"Dubnium","security":true},{"name":"nodejs","version":"11.0.0","date":"2018-10-23","lts":false,"security":false},{"name":"nodejs","version":"11.1.0","date":"2018-10-30","lts":false,"security":false},{"name":"nodejs","version":"11.2.0","date":"2018-11-15","lts":false,"security":false},{"name":"nodejs","version":"11.3.0","date":"2018-11-27","lts":false,"security":true},{"name":"nodejs","version":"11.4.0","date":"2018-12-07","lts":false,"security":false},{"name":"nodejs","version":"11.5.0","date":"2018-12-18","lts":false,"security":false},{"name":"nodejs","version":"11.6.0","date":"2018-12-26","lts":false,"security":false},{"name":"nodejs","version":"11.7.0","date":"2019-01-17","lts":false,"security":false},{"name":"nodejs","version":"11.8.0","date":"2019-01-24","lts":false,"security":false},{"name":"nodejs","version":"11.9.0","date":"2019-01-30","lts":false,"security":false},{"name":"nodejs","version":"11.10.0","date":"2019-02-14","lts":false,"security":false},{"name":"nodejs","version":"11.11.0","date":"2019-03-05","lts":false,"security":false},{"name":"nodejs","version":"11.12.0","date":"2019-03-14","lts":false,"security":false},{"name":"nodejs","version":"11.13.0","date":"2019-03-28","lts":false,"security":false},{"name":"nodejs","version":"11.14.0","date":"2019-04-10","lts":false,"security":false},{"name":"nodejs","version":"11.15.0","date":"2019-04-30","lts":false,"security":false},{"name":"nodejs","version":"12.0.0","date":"2019-04-23","lts":false,"security":false},{"name":"nodejs","version":"12.1.0","date":"2019-04-29","lts":false,"security":false},{"name":"nodejs","version":"12.2.0","date":"2019-05-07","lts":false,"security":false},{"name":"nodejs","version":"12.3.0","date":"2019-05-21","lts":false,"security":false},{"name":"nodejs","version":"12.4.0","date":"2019-06-04","lts":false,"security":false},{"name":"nodejs","version":"12.5.0","date":"2019-06-26","lts":false,"security":false},{"name":"nodejs","version":"12.6.0","date":"2019-07-03","lts":false,"security":false},{"name":"nodejs","version":"12.7.0","date":"2019-07-23","lts":false,"security":false},{"name":"nodejs","version":"12.8.0","date":"2019-08-06","lts":false,"security":false},{"name":"nodejs","version":"12.9.0","date":"2019-08-20","lts":false,"security":false},{"name":"nodejs","version":"12.10.0","date":"2019-09-04","lts":false,"security":false},{"name":"nodejs","version":"12.11.0","date":"2019-09-25","lts":false,"security":false},{"name":"nodejs","version":"12.12.0","date":"2019-10-11","lts":false,"security":false},{"name":"nodejs","version":"12.13.0","date":"2019-10-21","lts":"Erbium","security":false},{"name":"nodejs","version":"12.14.0","date":"2019-12-17","lts":"Erbium","security":true},{"name":"nodejs","version":"12.15.0","date":"2020-02-05","lts":"Erbium","security":true},{"name":"nodejs","version":"12.16.0","date":"2020-02-11","lts":"Erbium","security":false},{"name":"nodejs","version":"12.17.0","date":"2020-05-26","lts":"Erbium","security":false},{"name":"nodejs","version":"12.18.0","date":"2020-06-02","lts":"Erbium","security":true},{"name":"nodejs","version":"12.19.0","date":"2020-10-06","lts":"Erbium","security":false},{"name":"nodejs","version":"12.20.0","date":"2020-11-24","lts":"Erbium","security":false},{"name":"nodejs","version":"12.21.0","date":"2021-02-23","lts":"Erbium","security":true},{"name":"nodejs","version":"12.22.0","date":"2021-03-30","lts":"Erbium","security":false},{"name":"nodejs","version":"13.0.0","date":"2019-10-22","lts":false,"security":false},{"name":"nodejs","version":"13.1.0","date":"2019-11-05","lts":false,"security":false},{"name":"nodejs","version":"13.2.0","date":"2019-11-21","lts":false,"security":false},{"name":"nodejs","version":"13.3.0","date":"2019-12-03","lts":false,"security":false},{"name":"nodejs","version":"13.4.0","date":"2019-12-17","lts":false,"security":true},{"name":"nodejs","version":"13.5.0","date":"2019-12-18","lts":false,"security":false},{"name":"nodejs","version":"13.6.0","date":"2020-01-07","lts":false,"security":false},{"name":"nodejs","version":"13.7.0","date":"2020-01-21","lts":false,"security":false},{"name":"nodejs","version":"13.8.0","date":"2020-02-05","lts":false,"security":true},{"name":"nodejs","version":"13.9.0","date":"2020-02-18","lts":false,"security":false},{"name":"nodejs","version":"13.10.0","date":"2020-03-04","lts":false,"security":false},{"name":"nodejs","version":"13.11.0","date":"2020-03-12","lts":false,"security":false},{"name":"nodejs","version":"13.12.0","date":"2020-03-26","lts":false,"security":false},{"name":"nodejs","version":"13.13.0","date":"2020-04-14","lts":false,"security":false},{"name":"nodejs","version":"13.14.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.0.0","date":"2020-04-21","lts":false,"security":false},{"name":"nodejs","version":"14.1.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.2.0","date":"2020-05-05","lts":false,"security":false},{"name":"nodejs","version":"14.3.0","date":"2020-05-19","lts":false,"security":false},{"name":"nodejs","version":"14.4.0","date":"2020-06-02","lts":false,"security":true},{"name":"nodejs","version":"14.5.0","date":"2020-06-30","lts":false,"security":false},{"name":"nodejs","version":"14.6.0","date":"2020-07-20","lts":false,"security":false},{"name":"nodejs","version":"14.7.0","date":"2020-07-29","lts":false,"security":false},{"name":"nodejs","version":"14.8.0","date":"2020-08-11","lts":false,"security":false},{"name":"nodejs","version":"14.9.0","date":"2020-08-27","lts":false,"security":false},{"name":"nodejs","version":"14.10.0","date":"2020-09-08","lts":false,"security":false},{"name":"nodejs","version":"14.11.0","date":"2020-09-15","lts":false,"security":true},{"name":"nodejs","version":"14.12.0","date":"2020-09-22","lts":false,"security":false},{"name":"nodejs","version":"14.13.0","date":"2020-09-29","lts":false,"security":false},{"name":"nodejs","version":"14.14.0","date":"2020-10-15","lts":false,"security":false},{"name":"nodejs","version":"14.15.0","date":"2020-10-27","lts":"Fermium","security":false},{"name":"nodejs","version":"14.16.0","date":"2021-02-23","lts":"Fermium","security":true},{"name":"nodejs","version":"14.17.0","date":"2021-05-11","lts":"Fermium","security":false},{"name":"nodejs","version":"14.18.0","date":"2021-09-28","lts":"Fermium","security":false},{"name":"nodejs","version":"14.19.0","date":"2022-02-01","lts":"Fermium","security":false},{"name":"nodejs","version":"15.0.0","date":"2020-10-20","lts":false,"security":false},{"name":"nodejs","version":"15.1.0","date":"2020-11-04","lts":false,"security":false},{"name":"nodejs","version":"15.2.0","date":"2020-11-10","lts":false,"security":false},{"name":"nodejs","version":"15.3.0","date":"2020-11-24","lts":false,"security":false},{"name":"nodejs","version":"15.4.0","date":"2020-12-09","lts":false,"security":false},{"name":"nodejs","version":"15.5.0","date":"2020-12-22","lts":false,"security":false},{"name":"nodejs","version":"15.6.0","date":"2021-01-14","lts":false,"security":false},{"name":"nodejs","version":"15.7.0","date":"2021-01-25","lts":false,"security":false},{"name":"nodejs","version":"15.8.0","date":"2021-02-02","lts":false,"security":false},{"name":"nodejs","version":"15.9.0","date":"2021-02-18","lts":false,"security":false},{"name":"nodejs","version":"15.10.0","date":"2021-02-23","lts":false,"security":true},{"name":"nodejs","version":"15.11.0","date":"2021-03-03","lts":false,"security":false},{"name":"nodejs","version":"15.12.0","date":"2021-03-17","lts":false,"security":false},{"name":"nodejs","version":"15.13.0","date":"2021-03-31","lts":false,"security":false},{"name":"nodejs","version":"15.14.0","date":"2021-04-06","lts":false,"security":false},{"name":"nodejs","version":"16.0.0","date":"2021-04-20","lts":false,"security":false},{"name":"nodejs","version":"16.1.0","date":"2021-05-04","lts":false,"security":false},{"name":"nodejs","version":"16.2.0","date":"2021-05-19","lts":false,"security":false},{"name":"nodejs","version":"16.3.0","date":"2021-06-03","lts":false,"security":false},{"name":"nodejs","version":"16.4.0","date":"2021-06-23","lts":false,"security":false},{"name":"nodejs","version":"16.5.0","date":"2021-07-14","lts":false,"security":false},{"name":"nodejs","version":"16.6.0","date":"2021-07-29","lts":false,"security":true},{"name":"nodejs","version":"16.7.0","date":"2021-08-18","lts":false,"security":false},{"name":"nodejs","version":"16.8.0","date":"2021-08-25","lts":false,"security":false},{"name":"nodejs","version":"16.9.0","date":"2021-09-07","lts":false,"security":false},{"name":"nodejs","version":"16.10.0","date":"2021-09-22","lts":false,"security":false},{"name":"nodejs","version":"16.11.0","date":"2021-10-08","lts":false,"security":false},{"name":"nodejs","version":"16.12.0","date":"2021-10-20","lts":false,"security":false},{"name":"nodejs","version":"16.13.0","date":"2021-10-26","lts":"Gallium","security":false},{"name":"nodejs","version":"17.0.0","date":"2021-10-19","lts":false,"security":false},{"name":"nodejs","version":"17.1.0","date":"2021-11-09","lts":false,"security":false},{"name":"nodejs","version":"17.2.0","date":"2021-11-30","lts":false,"security":false},{"name":"nodejs","version":"17.3.0","date":"2021-12-17","lts":false,"security":false},{"name":"nodejs","version":"17.4.0","date":"2022-01-18","lts":false,"security":false}]');
31916
- }, 178: (e2) => {
31938
+ e2.exports = JSON.parse('[{"name":"nodejs","version":"0.2.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.3.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.4.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.5.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.6.0","date":"2011-11-04","lts":false,"security":false},{"name":"nodejs","version":"0.7.0","date":"2012-01-17","lts":false,"security":false},{"name":"nodejs","version":"0.8.0","date":"2012-06-22","lts":false,"security":false},{"name":"nodejs","version":"0.9.0","date":"2012-07-20","lts":false,"security":false},{"name":"nodejs","version":"0.10.0","date":"2013-03-11","lts":false,"security":false},{"name":"nodejs","version":"0.11.0","date":"2013-03-28","lts":false,"security":false},{"name":"nodejs","version":"0.12.0","date":"2015-02-06","lts":false,"security":false},{"name":"nodejs","version":"4.0.0","date":"2015-09-08","lts":false,"security":false},{"name":"nodejs","version":"4.1.0","date":"2015-09-17","lts":false,"security":false},{"name":"nodejs","version":"4.2.0","date":"2015-10-12","lts":"Argon","security":false},{"name":"nodejs","version":"4.3.0","date":"2016-02-09","lts":"Argon","security":false},{"name":"nodejs","version":"4.4.0","date":"2016-03-08","lts":"Argon","security":false},{"name":"nodejs","version":"4.5.0","date":"2016-08-16","lts":"Argon","security":false},{"name":"nodejs","version":"4.6.0","date":"2016-09-27","lts":"Argon","security":true},{"name":"nodejs","version":"4.7.0","date":"2016-12-06","lts":"Argon","security":false},{"name":"nodejs","version":"4.8.0","date":"2017-02-21","lts":"Argon","security":false},{"name":"nodejs","version":"4.9.0","date":"2018-03-28","lts":"Argon","security":true},{"name":"nodejs","version":"5.0.0","date":"2015-10-29","lts":false,"security":false},{"name":"nodejs","version":"5.1.0","date":"2015-11-17","lts":false,"security":false},{"name":"nodejs","version":"5.2.0","date":"2015-12-09","lts":false,"security":false},{"name":"nodejs","version":"5.3.0","date":"2015-12-15","lts":false,"security":false},{"name":"nodejs","version":"5.4.0","date":"2016-01-06","lts":false,"security":false},{"name":"nodejs","version":"5.5.0","date":"2016-01-21","lts":false,"security":false},{"name":"nodejs","version":"5.6.0","date":"2016-02-09","lts":false,"security":false},{"name":"nodejs","version":"5.7.0","date":"2016-02-23","lts":false,"security":false},{"name":"nodejs","version":"5.8.0","date":"2016-03-09","lts":false,"security":false},{"name":"nodejs","version":"5.9.0","date":"2016-03-16","lts":false,"security":false},{"name":"nodejs","version":"5.10.0","date":"2016-04-01","lts":false,"security":false},{"name":"nodejs","version":"5.11.0","date":"2016-04-21","lts":false,"security":false},{"name":"nodejs","version":"5.12.0","date":"2016-06-23","lts":false,"security":false},{"name":"nodejs","version":"6.0.0","date":"2016-04-26","lts":false,"security":false},{"name":"nodejs","version":"6.1.0","date":"2016-05-05","lts":false,"security":false},{"name":"nodejs","version":"6.2.0","date":"2016-05-17","lts":false,"security":false},{"name":"nodejs","version":"6.3.0","date":"2016-07-06","lts":false,"security":false},{"name":"nodejs","version":"6.4.0","date":"2016-08-12","lts":false,"security":false},{"name":"nodejs","version":"6.5.0","date":"2016-08-26","lts":false,"security":false},{"name":"nodejs","version":"6.6.0","date":"2016-09-14","lts":false,"security":false},{"name":"nodejs","version":"6.7.0","date":"2016-09-27","lts":false,"security":true},{"name":"nodejs","version":"6.8.0","date":"2016-10-12","lts":false,"security":false},{"name":"nodejs","version":"6.9.0","date":"2016-10-18","lts":"Boron","security":false},{"name":"nodejs","version":"6.10.0","date":"2017-02-21","lts":"Boron","security":false},{"name":"nodejs","version":"6.11.0","date":"2017-06-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.12.0","date":"2017-11-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.13.0","date":"2018-02-10","lts":"Boron","security":false},{"name":"nodejs","version":"6.14.0","date":"2018-03-28","lts":"Boron","security":true},{"name":"nodejs","version":"6.15.0","date":"2018-11-27","lts":"Boron","security":true},{"name":"nodejs","version":"6.16.0","date":"2018-12-26","lts":"Boron","security":false},{"name":"nodejs","version":"6.17.0","date":"2019-02-28","lts":"Boron","security":true},{"name":"nodejs","version":"7.0.0","date":"2016-10-25","lts":false,"security":false},{"name":"nodejs","version":"7.1.0","date":"2016-11-08","lts":false,"security":false},{"name":"nodejs","version":"7.2.0","date":"2016-11-22","lts":false,"security":false},{"name":"nodejs","version":"7.3.0","date":"2016-12-20","lts":false,"security":false},{"name":"nodejs","version":"7.4.0","date":"2017-01-04","lts":false,"security":false},{"name":"nodejs","version":"7.5.0","date":"2017-01-31","lts":false,"security":false},{"name":"nodejs","version":"7.6.0","date":"2017-02-21","lts":false,"security":false},{"name":"nodejs","version":"7.7.0","date":"2017-02-28","lts":false,"security":false},{"name":"nodejs","version":"7.8.0","date":"2017-03-29","lts":false,"security":false},{"name":"nodejs","version":"7.9.0","date":"2017-04-11","lts":false,"security":false},{"name":"nodejs","version":"7.10.0","date":"2017-05-02","lts":false,"security":false},{"name":"nodejs","version":"8.0.0","date":"2017-05-30","lts":false,"security":false},{"name":"nodejs","version":"8.1.0","date":"2017-06-08","lts":false,"security":false},{"name":"nodejs","version":"8.2.0","date":"2017-07-19","lts":false,"security":false},{"name":"nodejs","version":"8.3.0","date":"2017-08-08","lts":false,"security":false},{"name":"nodejs","version":"8.4.0","date":"2017-08-15","lts":false,"security":false},{"name":"nodejs","version":"8.5.0","date":"2017-09-12","lts":false,"security":false},{"name":"nodejs","version":"8.6.0","date":"2017-09-26","lts":false,"security":false},{"name":"nodejs","version":"8.7.0","date":"2017-10-11","lts":false,"security":false},{"name":"nodejs","version":"8.8.0","date":"2017-10-24","lts":false,"security":false},{"name":"nodejs","version":"8.9.0","date":"2017-10-31","lts":"Carbon","security":false},{"name":"nodejs","version":"8.10.0","date":"2018-03-06","lts":"Carbon","security":false},{"name":"nodejs","version":"8.11.0","date":"2018-03-28","lts":"Carbon","security":true},{"name":"nodejs","version":"8.12.0","date":"2018-09-10","lts":"Carbon","security":false},{"name":"nodejs","version":"8.13.0","date":"2018-11-20","lts":"Carbon","security":false},{"name":"nodejs","version":"8.14.0","date":"2018-11-27","lts":"Carbon","security":true},{"name":"nodejs","version":"8.15.0","date":"2018-12-26","lts":"Carbon","security":false},{"name":"nodejs","version":"8.16.0","date":"2019-04-16","lts":"Carbon","security":false},{"name":"nodejs","version":"8.17.0","date":"2019-12-17","lts":"Carbon","security":true},{"name":"nodejs","version":"9.0.0","date":"2017-10-31","lts":false,"security":false},{"name":"nodejs","version":"9.1.0","date":"2017-11-07","lts":false,"security":false},{"name":"nodejs","version":"9.2.0","date":"2017-11-14","lts":false,"security":false},{"name":"nodejs","version":"9.3.0","date":"2017-12-12","lts":false,"security":false},{"name":"nodejs","version":"9.4.0","date":"2018-01-10","lts":false,"security":false},{"name":"nodejs","version":"9.5.0","date":"2018-01-31","lts":false,"security":false},{"name":"nodejs","version":"9.6.0","date":"2018-02-21","lts":false,"security":false},{"name":"nodejs","version":"9.7.0","date":"2018-03-01","lts":false,"security":false},{"name":"nodejs","version":"9.8.0","date":"2018-03-07","lts":false,"security":false},{"name":"nodejs","version":"9.9.0","date":"2018-03-21","lts":false,"security":false},{"name":"nodejs","version":"9.10.0","date":"2018-03-28","lts":false,"security":true},{"name":"nodejs","version":"9.11.0","date":"2018-04-04","lts":false,"security":false},{"name":"nodejs","version":"10.0.0","date":"2018-04-24","lts":false,"security":false},{"name":"nodejs","version":"10.1.0","date":"2018-05-08","lts":false,"security":false},{"name":"nodejs","version":"10.2.0","date":"2018-05-23","lts":false,"security":false},{"name":"nodejs","version":"10.3.0","date":"2018-05-29","lts":false,"security":false},{"name":"nodejs","version":"10.4.0","date":"2018-06-06","lts":false,"security":false},{"name":"nodejs","version":"10.5.0","date":"2018-06-20","lts":false,"security":false},{"name":"nodejs","version":"10.6.0","date":"2018-07-04","lts":false,"security":false},{"name":"nodejs","version":"10.7.0","date":"2018-07-18","lts":false,"security":false},{"name":"nodejs","version":"10.8.0","date":"2018-08-01","lts":false,"security":false},{"name":"nodejs","version":"10.9.0","date":"2018-08-15","lts":false,"security":false},{"name":"nodejs","version":"10.10.0","date":"2018-09-06","lts":false,"security":false},{"name":"nodejs","version":"10.11.0","date":"2018-09-19","lts":false,"security":false},{"name":"nodejs","version":"10.12.0","date":"2018-10-10","lts":false,"security":false},{"name":"nodejs","version":"10.13.0","date":"2018-10-30","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.14.0","date":"2018-11-27","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.15.0","date":"2018-12-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.16.0","date":"2019-05-28","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.17.0","date":"2019-10-22","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.18.0","date":"2019-12-17","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.19.0","date":"2020-02-05","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.20.0","date":"2020-03-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.21.0","date":"2020-06-02","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.22.0","date":"2020-07-21","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.23.0","date":"2020-10-27","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.24.0","date":"2021-02-23","lts":"Dubnium","security":true},{"name":"nodejs","version":"11.0.0","date":"2018-10-23","lts":false,"security":false},{"name":"nodejs","version":"11.1.0","date":"2018-10-30","lts":false,"security":false},{"name":"nodejs","version":"11.2.0","date":"2018-11-15","lts":false,"security":false},{"name":"nodejs","version":"11.3.0","date":"2018-11-27","lts":false,"security":true},{"name":"nodejs","version":"11.4.0","date":"2018-12-07","lts":false,"security":false},{"name":"nodejs","version":"11.5.0","date":"2018-12-18","lts":false,"security":false},{"name":"nodejs","version":"11.6.0","date":"2018-12-26","lts":false,"security":false},{"name":"nodejs","version":"11.7.0","date":"2019-01-17","lts":false,"security":false},{"name":"nodejs","version":"11.8.0","date":"2019-01-24","lts":false,"security":false},{"name":"nodejs","version":"11.9.0","date":"2019-01-30","lts":false,"security":false},{"name":"nodejs","version":"11.10.0","date":"2019-02-14","lts":false,"security":false},{"name":"nodejs","version":"11.11.0","date":"2019-03-05","lts":false,"security":false},{"name":"nodejs","version":"11.12.0","date":"2019-03-14","lts":false,"security":false},{"name":"nodejs","version":"11.13.0","date":"2019-03-28","lts":false,"security":false},{"name":"nodejs","version":"11.14.0","date":"2019-04-10","lts":false,"security":false},{"name":"nodejs","version":"11.15.0","date":"2019-04-30","lts":false,"security":false},{"name":"nodejs","version":"12.0.0","date":"2019-04-23","lts":false,"security":false},{"name":"nodejs","version":"12.1.0","date":"2019-04-29","lts":false,"security":false},{"name":"nodejs","version":"12.2.0","date":"2019-05-07","lts":false,"security":false},{"name":"nodejs","version":"12.3.0","date":"2019-05-21","lts":false,"security":false},{"name":"nodejs","version":"12.4.0","date":"2019-06-04","lts":false,"security":false},{"name":"nodejs","version":"12.5.0","date":"2019-06-26","lts":false,"security":false},{"name":"nodejs","version":"12.6.0","date":"2019-07-03","lts":false,"security":false},{"name":"nodejs","version":"12.7.0","date":"2019-07-23","lts":false,"security":false},{"name":"nodejs","version":"12.8.0","date":"2019-08-06","lts":false,"security":false},{"name":"nodejs","version":"12.9.0","date":"2019-08-20","lts":false,"security":false},{"name":"nodejs","version":"12.10.0","date":"2019-09-04","lts":false,"security":false},{"name":"nodejs","version":"12.11.0","date":"2019-09-25","lts":false,"security":false},{"name":"nodejs","version":"12.12.0","date":"2019-10-11","lts":false,"security":false},{"name":"nodejs","version":"12.13.0","date":"2019-10-21","lts":"Erbium","security":false},{"name":"nodejs","version":"12.14.0","date":"2019-12-17","lts":"Erbium","security":true},{"name":"nodejs","version":"12.15.0","date":"2020-02-05","lts":"Erbium","security":true},{"name":"nodejs","version":"12.16.0","date":"2020-02-11","lts":"Erbium","security":false},{"name":"nodejs","version":"12.17.0","date":"2020-05-26","lts":"Erbium","security":false},{"name":"nodejs","version":"12.18.0","date":"2020-06-02","lts":"Erbium","security":true},{"name":"nodejs","version":"12.19.0","date":"2020-10-06","lts":"Erbium","security":false},{"name":"nodejs","version":"12.20.0","date":"2020-11-24","lts":"Erbium","security":false},{"name":"nodejs","version":"12.21.0","date":"2021-02-23","lts":"Erbium","security":true},{"name":"nodejs","version":"12.22.0","date":"2021-03-30","lts":"Erbium","security":false},{"name":"nodejs","version":"13.0.0","date":"2019-10-22","lts":false,"security":false},{"name":"nodejs","version":"13.1.0","date":"2019-11-05","lts":false,"security":false},{"name":"nodejs","version":"13.2.0","date":"2019-11-21","lts":false,"security":false},{"name":"nodejs","version":"13.3.0","date":"2019-12-03","lts":false,"security":false},{"name":"nodejs","version":"13.4.0","date":"2019-12-17","lts":false,"security":true},{"name":"nodejs","version":"13.5.0","date":"2019-12-18","lts":false,"security":false},{"name":"nodejs","version":"13.6.0","date":"2020-01-07","lts":false,"security":false},{"name":"nodejs","version":"13.7.0","date":"2020-01-21","lts":false,"security":false},{"name":"nodejs","version":"13.8.0","date":"2020-02-05","lts":false,"security":true},{"name":"nodejs","version":"13.9.0","date":"2020-02-18","lts":false,"security":false},{"name":"nodejs","version":"13.10.0","date":"2020-03-04","lts":false,"security":false},{"name":"nodejs","version":"13.11.0","date":"2020-03-12","lts":false,"security":false},{"name":"nodejs","version":"13.12.0","date":"2020-03-26","lts":false,"security":false},{"name":"nodejs","version":"13.13.0","date":"2020-04-14","lts":false,"security":false},{"name":"nodejs","version":"13.14.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.0.0","date":"2020-04-21","lts":false,"security":false},{"name":"nodejs","version":"14.1.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.2.0","date":"2020-05-05","lts":false,"security":false},{"name":"nodejs","version":"14.3.0","date":"2020-05-19","lts":false,"security":false},{"name":"nodejs","version":"14.4.0","date":"2020-06-02","lts":false,"security":true},{"name":"nodejs","version":"14.5.0","date":"2020-06-30","lts":false,"security":false},{"name":"nodejs","version":"14.6.0","date":"2020-07-20","lts":false,"security":false},{"name":"nodejs","version":"14.7.0","date":"2020-07-29","lts":false,"security":false},{"name":"nodejs","version":"14.8.0","date":"2020-08-11","lts":false,"security":false},{"name":"nodejs","version":"14.9.0","date":"2020-08-27","lts":false,"security":false},{"name":"nodejs","version":"14.10.0","date":"2020-09-08","lts":false,"security":false},{"name":"nodejs","version":"14.11.0","date":"2020-09-15","lts":false,"security":true},{"name":"nodejs","version":"14.12.0","date":"2020-09-22","lts":false,"security":false},{"name":"nodejs","version":"14.13.0","date":"2020-09-29","lts":false,"security":false},{"name":"nodejs","version":"14.14.0","date":"2020-10-15","lts":false,"security":false},{"name":"nodejs","version":"14.15.0","date":"2020-10-27","lts":"Fermium","security":false},{"name":"nodejs","version":"14.16.0","date":"2021-02-23","lts":"Fermium","security":true},{"name":"nodejs","version":"14.17.0","date":"2021-05-11","lts":"Fermium","security":false},{"name":"nodejs","version":"14.18.0","date":"2021-09-28","lts":"Fermium","security":false},{"name":"nodejs","version":"14.19.0","date":"2022-02-01","lts":"Fermium","security":false},{"name":"nodejs","version":"15.0.0","date":"2020-10-20","lts":false,"security":false},{"name":"nodejs","version":"15.1.0","date":"2020-11-04","lts":false,"security":false},{"name":"nodejs","version":"15.2.0","date":"2020-11-10","lts":false,"security":false},{"name":"nodejs","version":"15.3.0","date":"2020-11-24","lts":false,"security":false},{"name":"nodejs","version":"15.4.0","date":"2020-12-09","lts":false,"security":false},{"name":"nodejs","version":"15.5.0","date":"2020-12-22","lts":false,"security":false},{"name":"nodejs","version":"15.6.0","date":"2021-01-14","lts":false,"security":false},{"name":"nodejs","version":"15.7.0","date":"2021-01-25","lts":false,"security":false},{"name":"nodejs","version":"15.8.0","date":"2021-02-02","lts":false,"security":false},{"name":"nodejs","version":"15.9.0","date":"2021-02-18","lts":false,"security":false},{"name":"nodejs","version":"15.10.0","date":"2021-02-23","lts":false,"security":true},{"name":"nodejs","version":"15.11.0","date":"2021-03-03","lts":false,"security":false},{"name":"nodejs","version":"15.12.0","date":"2021-03-17","lts":false,"security":false},{"name":"nodejs","version":"15.13.0","date":"2021-03-31","lts":false,"security":false},{"name":"nodejs","version":"15.14.0","date":"2021-04-06","lts":false,"security":false},{"name":"nodejs","version":"16.0.0","date":"2021-04-20","lts":false,"security":false},{"name":"nodejs","version":"16.1.0","date":"2021-05-04","lts":false,"security":false},{"name":"nodejs","version":"16.2.0","date":"2021-05-19","lts":false,"security":false},{"name":"nodejs","version":"16.3.0","date":"2021-06-03","lts":false,"security":false},{"name":"nodejs","version":"16.4.0","date":"2021-06-23","lts":false,"security":false},{"name":"nodejs","version":"16.5.0","date":"2021-07-14","lts":false,"security":false},{"name":"nodejs","version":"16.6.0","date":"2021-07-29","lts":false,"security":true},{"name":"nodejs","version":"16.7.0","date":"2021-08-18","lts":false,"security":false},{"name":"nodejs","version":"16.8.0","date":"2021-08-25","lts":false,"security":false},{"name":"nodejs","version":"16.9.0","date":"2021-09-07","lts":false,"security":false},{"name":"nodejs","version":"16.10.0","date":"2021-09-22","lts":false,"security":false},{"name":"nodejs","version":"16.11.0","date":"2021-10-08","lts":false,"security":false},{"name":"nodejs","version":"16.12.0","date":"2021-10-20","lts":false,"security":false},{"name":"nodejs","version":"16.13.0","date":"2021-10-26","lts":"Gallium","security":false},{"name":"nodejs","version":"16.14.0","date":"2022-02-08","lts":"Gallium","security":false},{"name":"nodejs","version":"16.15.0","date":"2022-04-26","lts":"Gallium","security":false},{"name":"nodejs","version":"17.0.0","date":"2021-10-19","lts":false,"security":false},{"name":"nodejs","version":"17.1.0","date":"2021-11-09","lts":false,"security":false},{"name":"nodejs","version":"17.2.0","date":"2021-11-30","lts":false,"security":false},{"name":"nodejs","version":"17.3.0","date":"2021-12-17","lts":false,"security":false},{"name":"nodejs","version":"17.4.0","date":"2022-01-18","lts":false,"security":false},{"name":"nodejs","version":"17.5.0","date":"2022-02-10","lts":false,"security":false},{"name":"nodejs","version":"17.6.0","date":"2022-02-22","lts":false,"security":false},{"name":"nodejs","version":"17.7.0","date":"2022-03-09","lts":false,"security":false},{"name":"nodejs","version":"17.8.0","date":"2022-03-22","lts":false,"security":false},{"name":"nodejs","version":"17.9.0","date":"2022-04-07","lts":false,"security":false},{"name":"nodejs","version":"18.0.0","date":"2022-04-18","lts":false,"security":false},{"name":"nodejs","version":"18.1.0","date":"2022-05-03","lts":false,"security":false},{"name":"nodejs","version":"18.2.0","date":"2022-05-17","lts":false,"security":false}]');
31939
+ }, 97: (e2) => {
31917
31940
  "use strict";
31918
- e2.exports = JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"v0.10":{"start":"2013-03-11","end":"2016-10-31"},"v0.12":{"start":"2015-02-06","end":"2016-12-31"},"v4":{"start":"2015-09-08","lts":"2015-10-12","maintenance":"2017-04-01","end":"2018-04-30","codename":"Argon"},"v5":{"start":"2015-10-29","maintenance":"2016-04-30","end":"2016-06-30"},"v6":{"start":"2016-04-26","lts":"2016-10-18","maintenance":"2018-04-30","end":"2019-04-30","codename":"Boron"},"v7":{"start":"2016-10-25","maintenance":"2017-04-30","end":"2017-06-30"},"v8":{"start":"2017-05-30","lts":"2017-10-31","maintenance":"2019-01-01","end":"2019-12-31","codename":"Carbon"},"v9":{"start":"2017-10-01","maintenance":"2018-04-01","end":"2018-06-30"},"v10":{"start":"2018-04-24","lts":"2018-10-30","maintenance":"2020-05-19","end":"2021-04-30","codename":"Dubnium"},"v11":{"start":"2018-10-23","maintenance":"2019-04-22","end":"2019-06-01"},"v12":{"start":"2019-04-23","lts":"2019-10-21","maintenance":"2020-11-30","end":"2022-04-30","codename":"Erbium"},"v13":{"start":"2019-10-22","maintenance":"2020-04-01","end":"2020-06-01"},"v14":{"start":"2020-04-21","lts":"2020-10-27","maintenance":"2021-10-19","end":"2023-04-30","codename":"Fermium"},"v15":{"start":"2020-10-20","maintenance":"2021-04-01","end":"2021-06-01"},"v16":{"start":"2021-04-20","lts":"2021-10-26","maintenance":"2022-10-18","end":"2024-04-30","codename":"Gallium"},"v17":{"start":"2021-10-19","maintenance":"2022-04-01","end":"2022-06-01"},"v18":{"start":"2022-04-19","lts":"2022-10-25","maintenance":"2023-10-18","end":"2025-04-30","codename":""}}');
31941
+ e2.exports = JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"v0.10":{"start":"2013-03-11","end":"2016-10-31"},"v0.12":{"start":"2015-02-06","end":"2016-12-31"},"v4":{"start":"2015-09-08","lts":"2015-10-12","maintenance":"2017-04-01","end":"2018-04-30","codename":"Argon"},"v5":{"start":"2015-10-29","maintenance":"2016-04-30","end":"2016-06-30"},"v6":{"start":"2016-04-26","lts":"2016-10-18","maintenance":"2018-04-30","end":"2019-04-30","codename":"Boron"},"v7":{"start":"2016-10-25","maintenance":"2017-04-30","end":"2017-06-30"},"v8":{"start":"2017-05-30","lts":"2017-10-31","maintenance":"2019-01-01","end":"2019-12-31","codename":"Carbon"},"v9":{"start":"2017-10-01","maintenance":"2018-04-01","end":"2018-06-30"},"v10":{"start":"2018-04-24","lts":"2018-10-30","maintenance":"2020-05-19","end":"2021-04-30","codename":"Dubnium"},"v11":{"start":"2018-10-23","maintenance":"2019-04-22","end":"2019-06-01"},"v12":{"start":"2019-04-23","lts":"2019-10-21","maintenance":"2020-11-30","end":"2022-04-30","codename":"Erbium"},"v13":{"start":"2019-10-22","maintenance":"2020-04-01","end":"2020-06-01"},"v14":{"start":"2020-04-21","lts":"2020-10-27","maintenance":"2021-10-19","end":"2023-04-30","codename":"Fermium"},"v15":{"start":"2020-10-20","maintenance":"2021-04-01","end":"2021-06-01"},"v16":{"start":"2021-04-20","lts":"2021-10-26","maintenance":"2022-10-18","end":"2024-04-30","codename":"Gallium"},"v17":{"start":"2021-10-19","maintenance":"2022-04-01","end":"2022-06-01"},"v18":{"start":"2022-04-19","lts":"2022-10-25","maintenance":"2023-10-18","end":"2025-04-30","codename":""},"v19":{"start":"2022-10-18","maintenance":"2023-04-01","end":"2023-06-01"},"v20":{"start":"2023-04-18","lts":"2023-10-24","maintenance":"2024-10-22","end":"2026-04-30","codename":""}}');
31919
31942
  } };
31920
31943
  var s = {};
31921
31944
  function __nccwpck_require__(r2) {
@@ -34483,7 +34506,7 @@ var require_compiled = __commonJSMin((exports) => {
34483
34506
  var require_format = __commonJSMin((exports) => {
34484
34507
  "use strict";
34485
34508
  Object.defineProperty(exports, "__esModule", { value: true });
34486
- exports.formatProxyOptions = exports.formatWebpackMessages = void 0;
34509
+ exports.formatWebpackMessages = void 0;
34487
34510
  var friendlySyntaxErrorLabel = "SyntaxError:";
34488
34511
  function isLikelyASyntaxError(message) {
34489
34512
  return message.includes(friendlySyntaxErrorLabel);
@@ -34549,29 +34572,6 @@ ${stats.stack}` : "";
34549
34572
  return result;
34550
34573
  }
34551
34574
  exports.formatWebpackMessages = formatWebpackMessages;
34552
- function formatProxyOptions(proxyOptions) {
34553
- const formattedProxy = [];
34554
- if (!Array.isArray(proxyOptions)) {
34555
- if ("target" in proxyOptions) {
34556
- formattedProxy.push(proxyOptions);
34557
- } else {
34558
- Array.prototype.push.apply(formattedProxy, Object.keys(proxyOptions).reduce((total, source) => {
34559
- const option = proxyOptions[source];
34560
- total.push({
34561
- context: source,
34562
- changeOrigin: true,
34563
- logLevel: "warn",
34564
- ...typeof option === "string" ? { target: option } : option
34565
- });
34566
- return total;
34567
- }, []));
34568
- }
34569
- } else {
34570
- formattedProxy.push(...proxyOptions);
34571
- }
34572
- return formattedProxy;
34573
- }
34574
- exports.formatProxyOptions = formatProxyOptions;
34575
34575
  });
34576
34576
  var require_logger = __commonJSMin((exports) => {
34577
34577
  "use strict";
@@ -34649,17 +34649,17 @@ var require_logger = __commonJSMin((exports) => {
34649
34649
  if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
34650
34650
  return;
34651
34651
  }
34652
- let label10 = "";
34652
+ let label21 = "";
34653
34653
  let text = "";
34654
34654
  const logType = this.types[type];
34655
34655
  if (this.config.displayLabel && logType.label) {
34656
- label10 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
34656
+ label21 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
34657
34657
  if (this.config.underlineLabel) {
34658
- label10 = underline(label10).padEnd(this.longestUnderlinedLabel.length + 1);
34658
+ label21 = underline(label21).padEnd(this.longestUnderlinedLabel.length + 1);
34659
34659
  } else {
34660
- label10 = label10.padEnd(this.longestLabel.length + 1);
34660
+ label21 = label21.padEnd(this.longestLabel.length + 1);
34661
34661
  }
34662
- label10 = logType.color ? chalk_1.default[logType.color](label10) : label10;
34662
+ label21 = logType.color ? chalk_1.default[logType.color](label21) : label21;
34663
34663
  }
34664
34664
  if (message instanceof Error) {
34665
34665
  if (message.stack) {
@@ -34675,15 +34675,15 @@ ${grey(rest.join("\n"))}`;
34675
34675
  if (logType.level === "warn" || logType.level === "error") {
34676
34676
  this.retainLog(type, text);
34677
34677
  }
34678
- const log = label10.length > 0 ? `${label10} ${text}` : text;
34678
+ const log = label21.length > 0 ? `${label21} ${text}` : text;
34679
34679
  console.log(log, ...args);
34680
34680
  }
34681
34681
  getLongestLabel() {
34682
34682
  let longestLabel = "";
34683
34683
  Object.keys(this.types).forEach((type) => {
34684
- const { label: label10 = "" } = this.types[type];
34685
- if (label10.length > longestLabel.length) {
34686
- longestLabel = label10;
34684
+ const { label: label21 = "" } = this.types[type];
34685
+ if (label21.length > longestLabel.length) {
34686
+ longestLabel = label21;
34687
34687
  }
34688
34688
  });
34689
34689
  return longestLabel;
@@ -35039,7 +35039,7 @@ var require_constants = __commonJSMin((exports) => {
35039
35039
  "use strict";
35040
35040
  Object.defineProperty(exports, "__esModule", { value: true });
35041
35041
  exports.PLUGIN_SCHEMAS = exports.INTERNAL_PLUGINS = exports.DEFAULT_SERVER_CONFIG = exports.OUTPUT_CONFIG_FILE = exports.CONFIG_FILE_EXTENSIONS = exports.CONFIG_CACHE_DIR = exports.SHARED_DIR = exports.SERVER_DIR = exports.API_DIR = exports.LOADABLE_STATS_FILE = exports.SERVER_RENDER_FUNCTION_NAME = exports.ENTRY_NAME_PATTERN = exports.SERVER_BUNDLE_DIRECTORY = exports.LAUNCH_EDITOR_ENDPOINT = exports.MAIN_ENTRY_NAME = exports.ROUTE_SPEC_FILE = exports.HMR_SOCK_PATH = void 0;
35042
- exports.HMR_SOCK_PATH = "/_modern_js_hmr_ws";
35042
+ exports.HMR_SOCK_PATH = "/webpack-hmr";
35043
35043
  exports.ROUTE_SPEC_FILE = "route.json";
35044
35044
  exports.MAIN_ENTRY_NAME = "main";
35045
35045
  exports.LAUNCH_EDITOR_ENDPOINT = "/__open-stack-frame-in-editor";
@@ -35096,20 +35096,10 @@ var require_constants = __commonJSMin((exports) => {
35096
35096
  cli: "@modern-js/plugin-garfish/cli"
35097
35097
  },
35098
35098
  "@modern-js/plugin-tailwindcss": { cli: "@modern-js/plugin-tailwindcss/cli" },
35099
- "@modern-js/plugin-lambda-fc": { cli: "@modern-js/plugin-lambda-fc/cli" },
35100
- "@modern-js/plugin-lambda-scf": { cli: "@modern-js/plugin-lambda-scf/cli" },
35101
- "@modern-js/plugin-cdn-oss": { cli: "@modern-js/plugin-cdn-oss/cli" },
35102
- "@modern-js/plugin-cdn-cos": { cli: "@modern-js/plugin-cdn-cos/cli" },
35103
- "@modern-js/plugin-static-hosting": {
35104
- cli: "@modern-js/plugin-static-hosting/cli"
35105
- },
35106
35099
  "@modern-js/plugin-polyfill": {
35107
35100
  cli: "@modern-js/plugin-polyfill/cli",
35108
35101
  server: "@modern-js/plugin-polyfill"
35109
35102
  },
35110
- "@modern-js/plugin-multiprocess": {
35111
- cli: "@modern-js/plugin-multiprocess/cli"
35112
- },
35113
35103
  "@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" }
35114
35104
  };
35115
35105
  exports.PLUGIN_SCHEMAS = {
@@ -35565,14 +35555,16 @@ var require_path = __commonJSMin((exports) => {
35565
35555
  return mod && mod.__esModule ? mod : { "default": mod };
35566
35556
  };
35567
35557
  Object.defineProperty(exports, "__esModule", { value: true });
35568
- exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = void 0;
35558
+ exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
35569
35559
  var path_1 = __importDefault(__require("path"));
35570
35560
  var compiled_1 = require_compiled();
35561
+ var isPathString = (test) => path_1.default.posix.basename(test) !== test || path_1.default.win32.basename(test) !== test;
35562
+ exports.isPathString = isPathString;
35571
35563
  var isRelativePath = (test) => /^\.\.?($|[\\/])/.test(test);
35572
35564
  exports.isRelativePath = isRelativePath;
35573
35565
  var normalizeOutputPath = (s) => s.replace(/\\/g, "\\\\");
35574
35566
  exports.normalizeOutputPath = normalizeOutputPath;
35575
- var normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p || ""));
35567
+ var normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p || "")).replace(/^([a-zA-Z]+):/, (_, m) => `/${m.toLowerCase()}`);
35576
35568
  exports.normalizeToPosixPath = normalizeToPosixPath;
35577
35569
  });
35578
35570
  var require_runtimeExports = __commonJSMin((exports) => {
@@ -35598,18 +35590,14 @@ var require_runtimeExports = __commonJSMin((exports) => {
35598
35590
  return res;
35599
35591
  };
35600
35592
  };
35601
- exports.createRuntimeExportsUtils = memo((pwd = "", namespace, ts = false) => {
35602
- const entryExportFile = path_1.default.join(pwd, `.runtime-exports/${namespace ? `${namespace}.js` : "index.js"}`);
35603
- const entryExportTsFile = path_1.default.join(pwd, `.runtime-exports/${namespace ? `${namespace}.d.ts` : "index.d.ts"}`);
35593
+ exports.createRuntimeExportsUtils = memo((pwd = "", namespace = "index") => {
35594
+ const entryExportFile = path_1.default.join(pwd, `.runtime-exports/${namespace}.js`);
35604
35595
  const addExport = (statement) => {
35605
35596
  statement = (0, path_2.normalizeOutputPath)(statement);
35606
35597
  try {
35607
35598
  compiled_1.fs.ensureFileSync(entryExportFile);
35608
- compiled_1.fs.ensureFileSync(entryExportTsFile);
35609
35599
  if (!compiled_1.fs.readFileSync(entryExportFile, "utf8").includes(statement)) {
35610
35600
  compiled_1.fs.appendFileSync(entryExportFile, `${statement}
35611
- `);
35612
- ts && compiled_1.fs.appendFileSync(entryExportTsFile, `${statement.replace(".js", ".d")}
35613
35601
  `);
35614
35602
  }
35615
35603
  } catch {
@@ -35685,7 +35673,7 @@ var require_prettyInstructions = __commonJSMin((exports) => {
35685
35673
  return mod && mod.__esModule ? mod : { "default": mod };
35686
35674
  };
35687
35675
  Object.defineProperty(exports, "__esModule", { value: true });
35688
- exports.prettyInstructions = exports.getIpv4Interfaces = exports.isSingleEntry = void 0;
35676
+ exports.prettyInstructions = exports.getAddressUrls = exports.getIpv4Interfaces = exports.isSingleEntry = void 0;
35689
35677
  var os_1 = __importDefault(__require("os"));
35690
35678
  var compiled_1 = require_compiled();
35691
35679
  var is_1 = require_is();
@@ -35719,9 +35707,10 @@ var require_prettyInstructions = __commonJSMin((exports) => {
35719
35707
  return memo;
35720
35708
  }, []);
35721
35709
  };
35710
+ exports.getAddressUrls = getAddressUrls;
35722
35711
  var prettyInstructions = (appContext, config) => {
35723
35712
  const { entrypoints, serverRoutes, port, apiOnly, checkedEntries } = appContext;
35724
- const urls = getAddressUrls(config.dev.https && (0, is_1.isDev)() ? "https" : "http", port);
35713
+ const urls = (0, exports.getAddressUrls)(config.dev.https && (0, is_1.isDev)() ? "https" : "http", port);
35725
35714
  const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
35726
35715
  let message = "App running at:\n\n";
35727
35716
  if ((0, exports.isSingleEntry)(entrypoints) || apiOnly) {
@@ -36098,8 +36087,8 @@ var require_analyzeProject = __commonJSMin((exports) => {
36098
36087
  exports.isApiOnly = void 0;
36099
36088
  var path2 = __importStar(__require("path"));
36100
36089
  var compiled_1 = require_compiled();
36101
- var isApiOnly = async (appDirectory) => {
36102
- const srcDir = path2.join(appDirectory, "src");
36090
+ var isApiOnly = async (appDirectory, entryDir) => {
36091
+ const srcDir = path2.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src");
36103
36092
  const existSrc = await compiled_1.fs.pathExists(srcDir);
36104
36093
  const options3 = (0, compiled_1.minimist)(process.argv.slice(2));
36105
36094
  return !existSrc || Boolean(options3["api-only"]);
@@ -36116,11 +36105,16 @@ var require_chainId = __commonJSMin((exports) => {
36116
36105
  LOADERS: "loaders",
36117
36106
  FONT: "font",
36118
36107
  IMAGE: "image",
36108
+ MEDIA: "media",
36119
36109
  JS: "js",
36120
36110
  TS: "ts",
36121
36111
  CSS: "css",
36122
36112
  LESS: "less",
36123
- SASS: "sass"
36113
+ SASS: "sass",
36114
+ SVG: "svg",
36115
+ PUG: "pug",
36116
+ TOML: "toml",
36117
+ YAML: "yaml"
36124
36118
  },
36125
36119
  ONE_OF: {
36126
36120
  JS: "js",
@@ -36138,6 +36132,7 @@ var require_chainId = __commonJSMin((exports) => {
36138
36132
  SASS_MODULES: "sass-modules",
36139
36133
  SVG: "svg",
36140
36134
  SVG_URL: "svg-url",
36135
+ SVG_ASSET: "svg-asset",
36141
36136
  SVG_INLINE: "svg-inline",
36142
36137
  ASSETS: "assets",
36143
36138
  ASSETS_URL: "assets-url",
@@ -36149,12 +36144,14 @@ var require_chainId = __commonJSMin((exports) => {
36149
36144
  SASS: "sass",
36150
36145
  LESS: "less",
36151
36146
  URL: "url",
36147
+ PUG: "pug",
36152
36148
  FILE: "file",
36153
36149
  SVGR: "svgr",
36154
36150
  YAML: "yaml",
36155
36151
  TOML: "toml",
36156
36152
  HTML: "html",
36157
36153
  BABEL: "babel",
36154
+ ESBUILD: "esbuild",
36158
36155
  STYLE: "style-loader",
36159
36156
  POSTCSS: "postcss",
36160
36157
  MARKDOWN: "markdown",
@@ -36169,6 +36166,7 @@ var require_chainId = __commonJSMin((exports) => {
36169
36166
  IGNORE: "ignore",
36170
36167
  BANNER: "banner",
36171
36168
  PROGRESS: "progress",
36169
+ INSPECTOR: "inspector",
36172
36170
  APP_ICON: "app-icon",
36173
36171
  LOADABLE: "loadable",
36174
36172
  MANIFEST: "webpack-manifest",
@@ -36176,9 +36174,12 @@ var require_chainId = __commonJSMin((exports) => {
36176
36174
  INLINE_HTML: "inline-html",
36177
36175
  BUNDLE_ANALYZER: "bundle-analyze",
36178
36176
  BOTTOM_TEMPLATE: "bottom-template",
36177
+ HTML_CROSS_ORIGIN: "html-cross-origin",
36179
36178
  MINI_CSS_EXTRACT: "mini-css-extract",
36180
36179
  REACT_FAST_REFRESH: "react-fast-refresh",
36181
- NODE_POLYFILL_PROVIDE: "node-polyfill-provide"
36180
+ NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
36181
+ MODULE_DEPENDENCY_ERROR: "module-dependency-error",
36182
+ SUBRESOURCE_INTEGRITY: "subresource-integrity"
36182
36183
  },
36183
36184
  MINIMIZER: {
36184
36185
  JS: "js",
@@ -36191,6 +36192,32 @@ var require_chainId = __commonJSMin((exports) => {
36191
36192
  }
36192
36193
  };
36193
36194
  });
36195
+ var require_reactVersion = __commonJSMin((exports) => {
36196
+ "use strict";
36197
+ var __importDefault = exports && exports.__importDefault || function(mod) {
36198
+ return mod && mod.__esModule ? mod : { "default": mod };
36199
+ };
36200
+ Object.defineProperty(exports, "__esModule", { value: true });
36201
+ exports.isReact18 = void 0;
36202
+ var path_1 = __importDefault(__require("path"));
36203
+ var compiled_1 = require_compiled();
36204
+ var isReact18 = (cwd) => {
36205
+ const pkgPath = path_1.default.join(cwd, "package.json");
36206
+ if (!compiled_1.fs.existsSync(pkgPath)) {
36207
+ return false;
36208
+ }
36209
+ const pkgInfo = JSON.parse(compiled_1.fs.readFileSync(pkgPath, "utf8"));
36210
+ const deps = {
36211
+ ...pkgInfo.devDependencies,
36212
+ ...pkgInfo.dependencies
36213
+ };
36214
+ if (typeof deps.react !== "string") {
36215
+ return false;
36216
+ }
36217
+ return compiled_1.semver.satisfies(compiled_1.semver.minVersion(deps.react), ">=18.0.0");
36218
+ };
36219
+ exports.isReact18 = isReact18;
36220
+ });
36194
36221
  var require_dist = __commonJSMin((exports) => {
36195
36222
  "use strict";
36196
36223
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -36250,25 +36277,22 @@ var require_dist = __commonJSMin((exports) => {
36250
36277
  __exportStar(require_tryResolve(), exports);
36251
36278
  __exportStar(require_analyzeProject(), exports);
36252
36279
  __exportStar(require_chainId(), exports);
36280
+ __exportStar(require_reactVersion(), exports);
36253
36281
  });
36254
- var require_strip_ansi2 = __commonJSMin((exports) => {
36255
- "use strict";
36256
- Object.defineProperty(exports, "__esModule", {
36257
- value: true
36258
- });
36259
- exports.stripAnsi = stripAnsi;
36260
- function ansiRegex({
36261
- onlyFirst = false
36262
- } = {}) {
36263
- const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
36264
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
36265
- }
36266
- function stripAnsi(string) {
36267
- if (typeof string !== "string") {
36268
- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
36269
- }
36270
- return string.replace(ansiRegex(), "");
36282
+ function _defineProperty(obj, key, value) {
36283
+ if (key in obj) {
36284
+ Object.defineProperty(obj, key, {
36285
+ value,
36286
+ enumerable: true,
36287
+ configurable: true,
36288
+ writable: true
36289
+ });
36290
+ } else {
36291
+ obj[key] = value;
36271
36292
  }
36293
+ return obj;
36294
+ }
36295
+ var init_defineProperty = __esmMin(() => {
36272
36296
  });
36273
36297
  function _classCallCheck(instance, Constructor) {
36274
36298
  if (!(instance instanceof Constructor)) {
@@ -36299,21 +36323,6 @@ function _createClass(Constructor, protoProps, staticProps) {
36299
36323
  }
36300
36324
  var init_createClass = __esmMin(() => {
36301
36325
  });
36302
- function _defineProperty(obj, key, value) {
36303
- if (key in obj) {
36304
- Object.defineProperty(obj, key, {
36305
- value,
36306
- enumerable: true,
36307
- configurable: true,
36308
- writable: true
36309
- });
36310
- } else {
36311
- obj[key] = value;
36312
- }
36313
- return obj;
36314
- }
36315
- var init_defineProperty = __esmMin(() => {
36316
- });
36317
36326
  function getObjKeyMap(obj) {
36318
36327
  var prefix = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
36319
36328
  var result = {};
@@ -36416,6 +36425,1272 @@ var init_treeshaking = __esmMin(() => {
36416
36425
  return I18n3;
36417
36426
  }();
36418
36427
  });
36428
+ var ZH_LOCALE;
36429
+ var init_zh = __esmMin(() => {
36430
+ ZH_LOCALE = {
36431
+ solution: {
36432
+ self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
36433
+ mwa: "\u5E94\u7528",
36434
+ module: "\u6A21\u5757",
36435
+ monorepo: "Monorepo",
36436
+ custom: "\u81EA\u5B9A\u4E49",
36437
+ "default": "\u9ED8\u8BA4"
36438
+ },
36439
+ scenes: {
36440
+ self: "\u8BF7\u9009\u62E9\u9879\u76EE\u573A\u666F"
36441
+ },
36442
+ sub_solution: {
36443
+ self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
36444
+ mwa: "\u5E94\u7528",
36445
+ mwa_test: "\u5E94\u7528\uFF08\u6D4B\u8BD5\uFF09",
36446
+ module: "\u6A21\u5757",
36447
+ inner_module: "\u6A21\u5757\uFF08\u5185\u90E8\uFF09"
36448
+ },
36449
+ action: {
36450
+ self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u8981\u7684\u64CD\u4F5C",
36451
+ "function": {
36452
+ self: "\u542F\u7528\u53EF\u9009\u529F\u80FD",
36453
+ tailwindcss: "\u542F\u7528 Tailwind CSS \u652F\u6301",
36454
+ less: "\u542F\u7528 Less \u652F\u6301",
36455
+ sass: "\u542F\u7528 Sass \u652F\u6301",
36456
+ bff: "\u542F\u7528\u300CBFF\u300D\u529F\u80FD",
36457
+ micro_frontend: "\u542F\u7528\u300C\u5FAE\u524D\u7AEF\u300D\u6A21\u5F0F",
36458
+ electron: "\u542F\u7528\u300CElectron\u300D\u6A21\u5F0F",
36459
+ i18n: "\u542F\u7528\u300C\u56FD\u9645\u5316\uFF08i18n\uFF09\u300D\u529F\u80FD",
36460
+ test: "\u542F\u7528\u300C\u5355\u5143\u6D4B\u8BD5 / \u96C6\u6210\u6D4B\u8BD5\u300D\u529F\u80FD",
36461
+ e2e_test: "\u542F\u7528\u300CE2E \u6D4B\u8BD5\u300D\u529F\u80FD",
36462
+ doc: "\u542F\u7528\u300C\u6587\u6863\u7AD9\u300D\u529F\u80FD",
36463
+ storybook: "\u542F\u7528\u300CStorybook\u300D",
36464
+ runtime_api: "\u542F\u7528\u300CRuntime API\u300D",
36465
+ mwa_storybook: "\u542F\u7528\u300CVisual Testing (Storybook)\u300D\u6A21\u5F0F",
36466
+ ssg: "\u542F\u7528\u300CSSG\u300D\u529F\u80FD",
36467
+ polyfill: "\u542F\u7528\u300C\u57FA\u4E8E UA \u7684 Polyfill\u300D\u529F\u80FD",
36468
+ proxy: "\u542F\u7528\u300C\u5168\u5C40\u4EE3\u7406\u300D"
36469
+ },
36470
+ element: {
36471
+ self: "\u521B\u5EFA\u5DE5\u7A0B\u5143\u7D20",
36472
+ entry: "\u65B0\u5EFA\u300C\u5E94\u7528\u5165\u53E3\u300D",
36473
+ server: "\u65B0\u5EFA\u300CServer \u81EA\u5B9A\u4E49\u300D\u6E90\u7801\u76EE\u5F55"
36474
+ },
36475
+ refactor: {
36476
+ self: "\u81EA\u52A8\u91CD\u6784",
36477
+ bff_to_app: "BFF \u5207\u6362\u6846\u67B6\u6A21\u5F0F"
36478
+ }
36479
+ },
36480
+ "boolean": {
36481
+ yes: "\u662F",
36482
+ no: "\u5426"
36483
+ },
36484
+ language: {
36485
+ self: "\u8BF7\u9009\u62E9\u5F00\u53D1\u8BED\u8A00"
36486
+ },
36487
+ packageManager: {
36488
+ self: "\u8BF7\u9009\u62E9\u5305\u7BA1\u7406\u5DE5\u5177"
36489
+ },
36490
+ runWay: {
36491
+ self: "\u662F\u5426\u9700\u8981\u652F\u6301\u4EE5\u4E0B\u7C7B\u578B\u5E94\u7528",
36492
+ no: "\u4E0D\u9700\u8981",
36493
+ electron: "Electron"
36494
+ },
36495
+ entry: {
36496
+ name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
36497
+ no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
36498
+ no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
36499
+ needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
36500
+ clientRoute: {
36501
+ self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
36502
+ selfControlRoute: "\u81EA\u63A7\u8DEF\u7531",
36503
+ conventionalRoute: "\u7EA6\u5B9A\u5F0F\u8DEF\u7531"
36504
+ }
36505
+ },
36506
+ packageName: {
36507
+ self: "\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",
36508
+ sub_name: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u540D\u79F0",
36509
+ no_empty: "\u9879\u76EE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01"
36510
+ },
36511
+ packagePath: {
36512
+ self: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u76EE\u5F55\u540D\u79F0",
36513
+ no_empty: "\u76EE\u5F55\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
36514
+ format: "\u76EE\u5F55\u540D\u79F0\u53EA\u80FD\u4F7F\u7528\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u548C\u5206\u9694\u7EBF\uFF08-\uFF09\u3001\u4E0B\u5212\u7EBF\uFF08_\uFF09\u548C\u76EE\u5F55\u5206\u9694\u7B26\uFF08/\uFF09"
36515
+ },
36516
+ framework: {
36517
+ self: "\u8BF7\u9009\u62E9\u8FD0\u884C\u65F6\u6846\u67B6",
36518
+ egg: "Egg",
36519
+ express: "Express",
36520
+ koa: "Koa",
36521
+ nest: "Nest"
36522
+ },
36523
+ bff: {
36524
+ bffType: {
36525
+ self: "\u8BF7\u9009\u62E9 BFF \u7C7B\u578B",
36526
+ func: "\u51FD\u6570\u6A21\u5F0F",
36527
+ framework: "\u6846\u67B6\u6A21\u5F0F"
36528
+ }
36529
+ }
36530
+ };
36531
+ });
36532
+ var EN_LOCALE;
36533
+ var init_en = __esmMin(() => {
36534
+ EN_LOCALE = {
36535
+ solution: {
36536
+ self: "Please select the solution you want to create",
36537
+ mwa: "MWA Solution",
36538
+ module: "Module Solution",
36539
+ monorepo: "Monorepo Solution",
36540
+ custom: "Custom Solution",
36541
+ "default": "Default"
36542
+ },
36543
+ scenes: {
36544
+ self: "Please select the scene you want to create"
36545
+ },
36546
+ sub_solution: {
36547
+ self: "Please select the solution you want to create",
36548
+ mwa: "MWA Solution",
36549
+ mwa_test: "MWA Solution(Test)",
36550
+ module: "Module Solution",
36551
+ inner_module: "Module Solution(Inner)",
36552
+ monorepo: "Monorepo Solution"
36553
+ },
36554
+ action: {
36555
+ self: "Action",
36556
+ "function": {
36557
+ self: "Enable features",
36558
+ tailwindcss: "Enable Tailwind CSS",
36559
+ less: "Enable Less",
36560
+ sass: "Enable Sass",
36561
+ bff: "Enable BFF",
36562
+ micro_frontend: "Enable Micro Frontend",
36563
+ electron: "Enable Electron",
36564
+ i18n: "Enable Internationalization (i18n)",
36565
+ test: "Enable Unit Test / Integration Test",
36566
+ e2e_test: "Enable E2E Test",
36567
+ doc: "Enable Document Station",
36568
+ storybook: "Enable Storybook",
36569
+ runtime_api: "Enable Runtime API",
36570
+ mwa_storybook: "Enable Visual Testing (Storybook)",
36571
+ ssg: "Enable SSG",
36572
+ polyfill: "Enable UA-based Polyfill Feature",
36573
+ proxy: "Enable Global Proxy"
36574
+ },
36575
+ element: {
36576
+ self: "Create project element",
36577
+ entry: 'New "entry"',
36578
+ server: 'New "Server Custom" source code directory'
36579
+ },
36580
+ refactor: {
36581
+ self: "Automatic refactor",
36582
+ bff_to_app: "Transform BFF to frame mode"
36583
+ }
36584
+ },
36585
+ "boolean": {
36586
+ yes: "Yes",
36587
+ no: "No"
36588
+ },
36589
+ language: {
36590
+ self: "Development Language"
36591
+ },
36592
+ packageManager: {
36593
+ self: "Package Management Tool"
36594
+ },
36595
+ packageName: {
36596
+ self: "Package Name",
36597
+ sub_name: "Package Name",
36598
+ no_empty: "The package name cannot be empty!"
36599
+ },
36600
+ packagePath: {
36601
+ self: "Package Path",
36602
+ no_empty: "The package path cannot be empty!",
36603
+ format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
36604
+ },
36605
+ runWay: {
36606
+ self: "Do you need to support the following types of applications",
36607
+ no: "Not Enabled",
36608
+ electron: "Electron"
36609
+ },
36610
+ entry: {
36611
+ name: "Entry name",
36612
+ no_empty: "The entry name cannot be empty!",
36613
+ no_pages: 'The entry name cannot be "pages"!',
36614
+ needModifyConfig: "Modify the Default Configuration?",
36615
+ clientRoute: {
36616
+ self: "Client Routing",
36617
+ selfControlRoute: "Self Control Route",
36618
+ conventionalRoute: "Conventional Route"
36619
+ }
36620
+ },
36621
+ framework: {
36622
+ self: "Please select the framework you want to use",
36623
+ egg: "Egg",
36624
+ express: "Express",
36625
+ koa: "Koa",
36626
+ nest: "Nest"
36627
+ },
36628
+ bff: {
36629
+ bffType: {
36630
+ self: "BFF Type",
36631
+ func: "Function",
36632
+ framework: "Framework"
36633
+ }
36634
+ }
36635
+ };
36636
+ });
36637
+ var i18n, localeKeys;
36638
+ var init_locale = __esmMin(() => {
36639
+ init_treeshaking();
36640
+ init_zh();
36641
+ init_en();
36642
+ i18n = new I18n();
36643
+ localeKeys = i18n.init("zh", {
36644
+ zh: ZH_LOCALE,
36645
+ en: EN_LOCALE
36646
+ });
36647
+ });
36648
+ var _BooleanConfigName, BooleanConfig, BooleanConfigName, BooleanSchemas;
36649
+ var init_boolean = __esmMin(() => {
36650
+ init_defineProperty();
36651
+ init_locale();
36652
+ (function(BooleanConfig2) {
36653
+ BooleanConfig2["NO"] = "no";
36654
+ BooleanConfig2["YES"] = "yes";
36655
+ })(BooleanConfig || (BooleanConfig = {}));
36656
+ BooleanConfigName = (_BooleanConfigName = {}, _defineProperty(_BooleanConfigName, BooleanConfig.NO, function() {
36657
+ return i18n.t(localeKeys["boolean"].no);
36658
+ }), _defineProperty(_BooleanConfigName, BooleanConfig.YES, function() {
36659
+ return i18n.t(localeKeys["boolean"].yes);
36660
+ }), _BooleanConfigName);
36661
+ BooleanSchemas = [{
36662
+ key: BooleanConfig.NO,
36663
+ label: BooleanConfigName[BooleanConfig.NO]
36664
+ }, {
36665
+ key: BooleanConfig.YES,
36666
+ label: BooleanConfigName[BooleanConfig.YES]
36667
+ }];
36668
+ });
36669
+ function _arrayLikeToArray(arr, len) {
36670
+ if (len == null || len > arr.length)
36671
+ len = arr.length;
36672
+ for (var i = 0, arr2 = new Array(len); i < len; i++) {
36673
+ arr2[i] = arr[i];
36674
+ }
36675
+ return arr2;
36676
+ }
36677
+ var init_arrayLikeToArray = __esmMin(() => {
36678
+ });
36679
+ function _arrayWithoutHoles(arr) {
36680
+ if (Array.isArray(arr))
36681
+ return _arrayLikeToArray(arr);
36682
+ }
36683
+ var init_arrayWithoutHoles = __esmMin(() => {
36684
+ init_arrayLikeToArray();
36685
+ });
36686
+ function _iterableToArray(iter) {
36687
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
36688
+ return Array.from(iter);
36689
+ }
36690
+ var init_iterableToArray = __esmMin(() => {
36691
+ });
36692
+ function _unsupportedIterableToArray(o, minLen) {
36693
+ if (!o)
36694
+ return;
36695
+ if (typeof o === "string")
36696
+ return _arrayLikeToArray(o, minLen);
36697
+ var n = Object.prototype.toString.call(o).slice(8, -1);
36698
+ if (n === "Object" && o.constructor)
36699
+ n = o.constructor.name;
36700
+ if (n === "Map" || n === "Set")
36701
+ return Array.from(o);
36702
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
36703
+ return _arrayLikeToArray(o, minLen);
36704
+ }
36705
+ var init_unsupportedIterableToArray = __esmMin(() => {
36706
+ init_arrayLikeToArray();
36707
+ });
36708
+ function _nonIterableSpread() {
36709
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
36710
+ }
36711
+ var init_nonIterableSpread = __esmMin(() => {
36712
+ });
36713
+ function _toConsumableArray(arr) {
36714
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
36715
+ }
36716
+ var init_toConsumableArray = __esmMin(() => {
36717
+ init_arrayWithoutHoles();
36718
+ init_iterableToArray();
36719
+ init_unsupportedIterableToArray();
36720
+ init_nonIterableSpread();
36721
+ });
36722
+ function getSolutionNameFromSubSolution(solution) {
36723
+ if (solution === SubSolution.MWATest) {
36724
+ return Solution.MWA;
36725
+ }
36726
+ if (solution === SubSolution.InnerModule) {
36727
+ return Solution.Module;
36728
+ }
36729
+ return solution;
36730
+ }
36731
+ var _SolutionText, _SubSolutionText, _SolutionToolsMap, _SolutionGenerator, _SubSolutionGenerator, Solution, SubSolution, SolutionText, SubSolutionText, SolutionToolsMap, SolutionSchema, SubSolutionSchema, BaseGenerator, SolutionGenerator, SubSolutionGenerator, ChangesetGenerator, DependenceGenerator, EntryGenerator, ElectronGenerator, EslintGenerator;
36732
+ var init_solution = __esmMin(() => {
36733
+ init_toConsumableArray();
36734
+ init_defineProperty();
36735
+ init_locale();
36736
+ (function(Solution2) {
36737
+ Solution2["MWA"] = "mwa";
36738
+ Solution2["Module"] = "module";
36739
+ Solution2["Monorepo"] = "monorepo";
36740
+ })(Solution || (Solution = {}));
36741
+ (function(SubSolution2) {
36742
+ SubSolution2["MWA"] = "mwa";
36743
+ SubSolution2["MWATest"] = "mwa_test";
36744
+ SubSolution2["Module"] = "module";
36745
+ SubSolution2["InnerModule"] = "inner_module";
36746
+ })(SubSolution || (SubSolution = {}));
36747
+ SolutionText = (_SolutionText = {}, _defineProperty(_SolutionText, Solution.MWA, function() {
36748
+ return i18n.t(localeKeys.solution.mwa);
36749
+ }), _defineProperty(_SolutionText, Solution.Module, function() {
36750
+ return i18n.t(localeKeys.solution.module);
36751
+ }), _defineProperty(_SolutionText, Solution.Monorepo, function() {
36752
+ return i18n.t(localeKeys.solution.monorepo);
36753
+ }), _SolutionText);
36754
+ SubSolutionText = (_SubSolutionText = {}, _defineProperty(_SubSolutionText, SubSolution.MWA, function() {
36755
+ return i18n.t(localeKeys.sub_solution.mwa);
36756
+ }), _defineProperty(_SubSolutionText, SubSolution.MWATest, function() {
36757
+ return i18n.t(localeKeys.sub_solution.mwa_test);
36758
+ }), _defineProperty(_SubSolutionText, SubSolution.Module, function() {
36759
+ return i18n.t(localeKeys.sub_solution.module);
36760
+ }), _defineProperty(_SubSolutionText, SubSolution.InnerModule, function() {
36761
+ return i18n.t(localeKeys.sub_solution.inner_module);
36762
+ }), _SubSolutionText);
36763
+ SolutionToolsMap = (_SolutionToolsMap = {}, _defineProperty(_SolutionToolsMap, Solution.MWA, "@modern-js/app-tools"), _defineProperty(_SolutionToolsMap, Solution.Module, "@modern-js/module-tools"), _defineProperty(_SolutionToolsMap, Solution.Monorepo, "@modern-js/monorepo-tools"), _SolutionToolsMap);
36764
+ SolutionSchema = {
36765
+ key: "solution_schema",
36766
+ isObject: true,
36767
+ items: [{
36768
+ key: "solution",
36769
+ label: function label() {
36770
+ return i18n.t(localeKeys.solution.self);
36771
+ },
36772
+ type: ["string"],
36773
+ mutualExclusion: true,
36774
+ items: function items(_data, extra) {
36775
+ var _extra$customPlugin, _extra$customPlugin$c;
36776
+ var items5 = Object.values(Solution).filter(function(solution) {
36777
+ return !(extra !== null && extra !== void 0 && extra.isSubProject && solution === Solution.Monorepo);
36778
+ }).map(function(solution) {
36779
+ return {
36780
+ key: solution,
36781
+ label: SolutionText[solution]
36782
+ };
36783
+ });
36784
+ if (extra !== null && extra !== void 0 && (_extra$customPlugin = extra.customPlugin) !== null && _extra$customPlugin !== void 0 && (_extra$customPlugin$c = _extra$customPlugin.custom) !== null && _extra$customPlugin$c !== void 0 && _extra$customPlugin$c.length) {
36785
+ return [].concat(_toConsumableArray(items5), [{
36786
+ key: "custom",
36787
+ label: i18n.t(localeKeys.solution.custom)
36788
+ }]);
36789
+ }
36790
+ return items5;
36791
+ }
36792
+ }, {
36793
+ key: "scenes",
36794
+ label: function label2() {
36795
+ return i18n.t(localeKeys.scenes.self);
36796
+ },
36797
+ type: ["string"],
36798
+ mutualExclusion: true,
36799
+ when: function when(data, extra) {
36800
+ return (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[data.solution] && extra.customPlugin[data.solution].length > 0;
36801
+ },
36802
+ items: function items2(data, extra) {
36803
+ var items5 = (extra !== null && extra !== void 0 && extra.customPlugin ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[data.solution]) || [] : []).map(function(plugin) {
36804
+ return {
36805
+ key: plugin.key,
36806
+ label: plugin.name
36807
+ };
36808
+ });
36809
+ if (data.solution && data.solution !== "custom") {
36810
+ items5.unshift({
36811
+ key: data.solution,
36812
+ label: "".concat(SolutionText[data.solution](), "(").concat(i18n.t(localeKeys.solution["default"]), ")")
36813
+ });
36814
+ }
36815
+ return items5;
36816
+ }
36817
+ }]
36818
+ };
36819
+ SubSolutionSchema = {
36820
+ key: "sub_solution_schema",
36821
+ isObject: true,
36822
+ items: [{
36823
+ key: "solution",
36824
+ label: function label3() {
36825
+ return i18n.t(localeKeys.sub_solution.self);
36826
+ },
36827
+ type: ["string"],
36828
+ mutualExclusion: true,
36829
+ items: function items3(_data, extra) {
36830
+ var _extra$customPlugin2, _extra$customPlugin2$;
36831
+ var items5 = Object.values(SubSolution).map(function(solution) {
36832
+ return {
36833
+ key: solution,
36834
+ label: SubSolutionText[solution]
36835
+ };
36836
+ });
36837
+ if (extra !== null && extra !== void 0 && (_extra$customPlugin2 = extra.customPlugin) !== null && _extra$customPlugin2 !== void 0 && (_extra$customPlugin2$ = _extra$customPlugin2.custom) !== null && _extra$customPlugin2$ !== void 0 && _extra$customPlugin2$.length) {
36838
+ return [].concat(_toConsumableArray(items5), [{
36839
+ key: "custom",
36840
+ label: i18n.t(localeKeys.solution.custom)
36841
+ }]);
36842
+ }
36843
+ return items5;
36844
+ }
36845
+ }, {
36846
+ key: "scenes",
36847
+ label: function label4() {
36848
+ return i18n.t(localeKeys.scenes.self);
36849
+ },
36850
+ type: ["string"],
36851
+ mutualExclusion: true,
36852
+ when: function when2(data, extra) {
36853
+ return (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[getSolutionNameFromSubSolution(data.solution)] && extra.customPlugin[getSolutionNameFromSubSolution(data.solution)].length > 0;
36854
+ },
36855
+ items: function items4(data, extra) {
36856
+ var solution = getSolutionNameFromSubSolution(data.solution);
36857
+ var items5 = (extra !== null && extra !== void 0 && extra.customPlugin ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[solution]) || [] : []).map(function(plugin) {
36858
+ return {
36859
+ key: plugin.key,
36860
+ label: plugin.name
36861
+ };
36862
+ });
36863
+ if (data.solution && data.solution !== "custom") {
36864
+ items5.unshift({
36865
+ key: data.solution,
36866
+ label: "".concat(SubSolutionText[data.solution](), "(").concat(i18n.t(localeKeys.solution["default"]), ")")
36867
+ });
36868
+ }
36869
+ return items5;
36870
+ }
36871
+ }]
36872
+ };
36873
+ BaseGenerator = "@modern-js/base-generator";
36874
+ SolutionGenerator = (_SolutionGenerator = {}, _defineProperty(_SolutionGenerator, Solution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SolutionGenerator, Solution.Module, "@modern-js/module-generator"), _defineProperty(_SolutionGenerator, Solution.Monorepo, "@modern-js/monorepo-generator"), _SolutionGenerator);
36875
+ SubSolutionGenerator = (_SubSolutionGenerator = {}, _defineProperty(_SubSolutionGenerator, SubSolution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.MWATest, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.Module, "@modern-js/module-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.InnerModule, "@modern-js/module-generator"), _SubSolutionGenerator);
36876
+ ChangesetGenerator = "@modern-js/changeset-generator";
36877
+ DependenceGenerator = "@modern-js/dependence-generator";
36878
+ EntryGenerator = "@modern-js/entry-generator";
36879
+ ElectronGenerator = "@modern-js/electron-generator";
36880
+ EslintGenerator = "@modern-js/eslint-generator";
36881
+ });
36882
+ var _LanguageName, Language, LanguageName, LanguageSchema;
36883
+ var init_language = __esmMin(() => {
36884
+ init_defineProperty();
36885
+ init_locale();
36886
+ (function(Language2) {
36887
+ Language2["TS"] = "ts";
36888
+ Language2["JS"] = "js";
36889
+ })(Language || (Language = {}));
36890
+ LanguageName = (_LanguageName = {}, _defineProperty(_LanguageName, Language.TS, function() {
36891
+ return "TS";
36892
+ }), _defineProperty(_LanguageName, Language.JS, function() {
36893
+ return "ES6+";
36894
+ }), _LanguageName);
36895
+ LanguageSchema = {
36896
+ key: "language",
36897
+ type: ["string"],
36898
+ label: function label5() {
36899
+ return i18n.t(localeKeys.language.self);
36900
+ },
36901
+ mutualExclusion: true,
36902
+ items: Object.values(Language).map(function(language) {
36903
+ return {
36904
+ key: language,
36905
+ label: LanguageName[language]
36906
+ };
36907
+ })
36908
+ };
36909
+ });
36910
+ var _PackageManagerName, PackageManager, PackageManagerName, PackageManagerSchema;
36911
+ var init_package_manager = __esmMin(() => {
36912
+ init_defineProperty();
36913
+ init_locale();
36914
+ (function(PackageManager2) {
36915
+ PackageManager2["Pnpm"] = "pnpm";
36916
+ PackageManager2["Yarn"] = "yarn";
36917
+ PackageManager2["Npm"] = "npm";
36918
+ })(PackageManager || (PackageManager = {}));
36919
+ PackageManagerName = (_PackageManagerName = {}, _defineProperty(_PackageManagerName, PackageManager.Pnpm, function() {
36920
+ return "pnpm";
36921
+ }), _defineProperty(_PackageManagerName, PackageManager.Yarn, function() {
36922
+ return "Yarn";
36923
+ }), _defineProperty(_PackageManagerName, PackageManager.Npm, function() {
36924
+ return "npm";
36925
+ }), _PackageManagerName);
36926
+ PackageManagerSchema = {
36927
+ key: "packageManager",
36928
+ type: ["string"],
36929
+ label: function label6() {
36930
+ return i18n.t(localeKeys.packageManager.self);
36931
+ },
36932
+ mutualExclusion: true,
36933
+ when: function when3(_values, extra) {
36934
+ return !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject) && !(extra !== null && extra !== void 0 && extra.isSubProject);
36935
+ },
36936
+ items: Object.values(PackageManager).map(function(packageManager) {
36937
+ return {
36938
+ key: packageManager,
36939
+ label: PackageManagerName[packageManager]
36940
+ };
36941
+ })
36942
+ };
36943
+ });
36944
+ var PackageNameSchema;
36945
+ var init_package_name = __esmMin(() => {
36946
+ init_locale();
36947
+ PackageNameSchema = {
36948
+ key: "packageName",
36949
+ label: function label7(_, extra) {
36950
+ return extra !== null && extra !== void 0 && extra.isMonorepoSubProject ? i18n.t(localeKeys.packageName.sub_name) : i18n.t(localeKeys.packageName.self);
36951
+ },
36952
+ type: ["string"],
36953
+ when: function when4(_, extra) {
36954
+ return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) || !(extra !== null && extra !== void 0 && extra.isMwa);
36955
+ },
36956
+ validate: function validate(value) {
36957
+ if (!value) {
36958
+ return {
36959
+ success: false,
36960
+ error: i18n.t(localeKeys.packageName.no_empty)
36961
+ };
36962
+ }
36963
+ return {
36964
+ success: true
36965
+ };
36966
+ }
36967
+ };
36968
+ });
36969
+ var PackagePathRegex, PackagePathSchema;
36970
+ var init_package_path = __esmMin(() => {
36971
+ init_locale();
36972
+ PackagePathRegex = new RegExp("^[a-z0-9]*[-_/]?([a-z0-9]*[-_]?[a-z0-9]*)*[-_/]?[a-z0-9-_]+$");
36973
+ PackagePathSchema = {
36974
+ key: "packagePath",
36975
+ label: function label8() {
36976
+ return i18n.t(localeKeys.packagePath.self);
36977
+ },
36978
+ type: ["string"],
36979
+ when: function when5(_, extra) {
36980
+ return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject);
36981
+ },
36982
+ state: {
36983
+ value: {
36984
+ effectedByFields: ["packageName"],
36985
+ action: function action(data) {
36986
+ return "".concat(data.packageName || "");
36987
+ }
36988
+ }
36989
+ },
36990
+ validate: function validate2(value) {
36991
+ if (!value) {
36992
+ return {
36993
+ success: false,
36994
+ error: i18n.t(localeKeys.packagePath.no_empty)
36995
+ };
36996
+ }
36997
+ if (!PackagePathRegex.test(value)) {
36998
+ return {
36999
+ success: false,
37000
+ error: i18n.t(localeKeys.packagePath.format)
37001
+ };
37002
+ }
37003
+ return {
37004
+ success: true
37005
+ };
37006
+ }
37007
+ };
37008
+ });
37009
+ var init_common = __esmMin(() => {
37010
+ init_boolean();
37011
+ init_solution();
37012
+ init_language();
37013
+ init_package_manager();
37014
+ init_package_name();
37015
+ init_package_path();
37016
+ });
37017
+ var BaseSchemas, BaseSchema, BaseDefaultConfig;
37018
+ var init_project = __esmMin(() => {
37019
+ init_common();
37020
+ BaseSchemas = [PackageManagerSchema];
37021
+ BaseSchema = {
37022
+ key: "base",
37023
+ isObject: true,
37024
+ items: BaseSchemas
37025
+ };
37026
+ BaseDefaultConfig = {
37027
+ packageManager: PackageManager.Pnpm
37028
+ };
37029
+ });
37030
+ var init_base = __esmMin(() => {
37031
+ init_project();
37032
+ });
37033
+ var ModuleSchemas, ModuleSchema, ModuleDefaultConfig;
37034
+ var init_project2 = __esmMin(() => {
37035
+ init_common();
37036
+ ModuleSchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema];
37037
+ ModuleSchema = {
37038
+ key: "module",
37039
+ isObject: true,
37040
+ items: ModuleSchemas
37041
+ };
37042
+ ModuleDefaultConfig = {
37043
+ language: Language.TS,
37044
+ packageManager: PackageManager.Pnpm
37045
+ };
37046
+ });
37047
+ var init_module = __esmMin(() => {
37048
+ init_project2();
37049
+ });
37050
+ function ownKeys(object, enumerableOnly) {
37051
+ var keys = Object.keys(object);
37052
+ if (Object.getOwnPropertySymbols) {
37053
+ var symbols = Object.getOwnPropertySymbols(object);
37054
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
37055
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
37056
+ })), keys.push.apply(keys, symbols);
37057
+ }
37058
+ return keys;
37059
+ }
37060
+ function _objectSpread2(target) {
37061
+ for (var i = 1; i < arguments.length; i++) {
37062
+ var source = arguments[i] != null ? arguments[i] : {};
37063
+ i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
37064
+ _defineProperty(target, key, source[key]);
37065
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
37066
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
37067
+ });
37068
+ }
37069
+ return target;
37070
+ }
37071
+ var init_objectSpread2 = __esmMin(() => {
37072
+ init_defineProperty();
37073
+ });
37074
+ var MonorepoPackageManagerSchema, MonorepoSchemas, MonorepoSchema, MonorepoDefaultConfig;
37075
+ var init_project3 = __esmMin(() => {
37076
+ init_objectSpread2();
37077
+ init_common();
37078
+ MonorepoPackageManagerSchema = _objectSpread2(_objectSpread2({}, PackageManagerSchema), {}, {
37079
+ items: PackageManagerSchema.items.filter(function(item) {
37080
+ return item.key !== PackageManager.Npm;
37081
+ })
37082
+ });
37083
+ MonorepoSchemas = [MonorepoPackageManagerSchema];
37084
+ MonorepoSchema = {
37085
+ key: "monorepo",
37086
+ isObject: true,
37087
+ items: MonorepoSchemas
37088
+ };
37089
+ MonorepoDefaultConfig = {
37090
+ packageManager: PackageManager.Pnpm
37091
+ };
37092
+ });
37093
+ var init_monorepo = __esmMin(() => {
37094
+ init_project3();
37095
+ });
37096
+ var _FrameworkAppendTypeC, mwaConfigWhenFunc, RunWay, RunWaySchema, ClientRoute, ClientRouteSchema, NeedModifyMWAConfigSchema, Framework, FrameworkSchema, FrameworkAppendTypeContent;
37097
+ var init_common2 = __esmMin(() => {
37098
+ init_defineProperty();
37099
+ init_locale();
37100
+ init_boolean();
37101
+ mwaConfigWhenFunc = function mwaConfigWhenFunc2(values) {
37102
+ return values.needModifyMWAConfig === BooleanConfig.YES;
37103
+ };
37104
+ (function(RunWay2) {
37105
+ RunWay2["No"] = "no";
37106
+ RunWay2["Electron"] = "electron";
37107
+ })(RunWay || (RunWay = {}));
37108
+ RunWaySchema = {
37109
+ key: "runWay",
37110
+ type: ["string"],
37111
+ label: function label9() {
37112
+ return i18n.t(localeKeys.runWay.self);
37113
+ },
37114
+ mutualExclusion: true,
37115
+ when: function when6(_, extra) {
37116
+ return (extra === null || extra === void 0 ? void 0 : extra.isEmptySrc) === void 0 ? true : Boolean(extra === null || extra === void 0 ? void 0 : extra.isEmptySrc);
37117
+ },
37118
+ state: {
37119
+ value: RunWay.No
37120
+ },
37121
+ items: Object.values(RunWay).map(function(runWay) {
37122
+ return {
37123
+ key: runWay,
37124
+ label: function label21() {
37125
+ return i18n.t(localeKeys.runWay[runWay]);
37126
+ }
37127
+ };
37128
+ })
37129
+ };
37130
+ (function(ClientRoute2) {
37131
+ ClientRoute2["SelfControlRoute"] = "selfControlRoute";
37132
+ ClientRoute2["ConventionalRoute"] = "conventionalRoute";
37133
+ })(ClientRoute || (ClientRoute = {}));
37134
+ ClientRouteSchema = {
37135
+ key: "clientRoute",
37136
+ type: ["string"],
37137
+ label: function label10() {
37138
+ return i18n.t(localeKeys.entry.clientRoute.self);
37139
+ },
37140
+ mutualExclusion: true,
37141
+ when: mwaConfigWhenFunc,
37142
+ state: {
37143
+ value: ClientRoute.SelfControlRoute
37144
+ },
37145
+ items: Object.values(ClientRoute).map(function(clientRoute) {
37146
+ return {
37147
+ key: clientRoute,
37148
+ label: function label21() {
37149
+ return i18n.t(localeKeys.entry.clientRoute[clientRoute]);
37150
+ }
37151
+ };
37152
+ })
37153
+ };
37154
+ NeedModifyMWAConfigSchema = {
37155
+ key: "needModifyMWAConfig",
37156
+ label: function label11() {
37157
+ return i18n.t(localeKeys.entry.needModifyConfig);
37158
+ },
37159
+ type: ["string"],
37160
+ mutualExclusion: true,
37161
+ state: {
37162
+ value: BooleanConfig.NO
37163
+ },
37164
+ items: BooleanSchemas
37165
+ };
37166
+ (function(Framework2) {
37167
+ Framework2["Express"] = "express";
37168
+ Framework2["Koa"] = "koa";
37169
+ Framework2["Egg"] = "egg";
37170
+ Framework2["Nest"] = "nest";
37171
+ })(Framework || (Framework = {}));
37172
+ FrameworkSchema = {
37173
+ key: "framework",
37174
+ type: ["string"],
37175
+ label: function label12() {
37176
+ return i18n.t(localeKeys.framework.self);
37177
+ },
37178
+ mutualExclusion: true,
37179
+ items: Object.values(Framework).map(function(framework) {
37180
+ return {
37181
+ key: framework,
37182
+ label: function label21() {
37183
+ return i18n.t(localeKeys.framework[framework]);
37184
+ }
37185
+ };
37186
+ })
37187
+ };
37188
+ FrameworkAppendTypeContent = (_FrameworkAppendTypeC = {}, _defineProperty(_FrameworkAppendTypeC, Framework.Express, "/// <reference types='@modern-js/plugin-express/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Koa, "/// <reference types='@modern-js/plugin-koa/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Egg, "/// <reference types='@modern-js/plugin-egg/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Nest, "/// <reference types='@modern-js/plugin-nest/types' />"), _FrameworkAppendTypeC);
37189
+ });
37190
+ var EntryNameSchema, EntrySchemas, EntrySchema, MWADefaultEntryConfig;
37191
+ var init_entry = __esmMin(() => {
37192
+ init_locale();
37193
+ init_common();
37194
+ init_common2();
37195
+ EntryNameSchema = {
37196
+ key: "name",
37197
+ type: ["string"],
37198
+ label: function label13() {
37199
+ return i18n.t(localeKeys.entry.name);
37200
+ },
37201
+ state: {
37202
+ value: "entry"
37203
+ },
37204
+ validate: function validate3(value) {
37205
+ if (!value) {
37206
+ return {
37207
+ success: false,
37208
+ error: i18n.t(localeKeys.entry.no_empty)
37209
+ };
37210
+ }
37211
+ if (value === "pages") {
37212
+ return {
37213
+ success: false,
37214
+ error: i18n.t(localeKeys.entry.no_pages)
37215
+ };
37216
+ }
37217
+ return {
37218
+ success: true
37219
+ };
37220
+ },
37221
+ when: function when7(_values, extra) {
37222
+ if (extra !== null && extra !== void 0 && extra.isEmptySrc) {
37223
+ return false;
37224
+ }
37225
+ return true;
37226
+ }
37227
+ };
37228
+ EntrySchemas = [EntryNameSchema, NeedModifyMWAConfigSchema, ClientRouteSchema];
37229
+ EntrySchema = {
37230
+ key: "entry",
37231
+ label: function label14() {
37232
+ return i18n.t(localeKeys.action.element.entry);
37233
+ },
37234
+ isObject: true,
37235
+ items: EntrySchemas
37236
+ };
37237
+ MWADefaultEntryConfig = {
37238
+ needModifyMWAConfig: BooleanConfig.NO,
37239
+ clientRoute: ClientRoute.SelfControlRoute
37240
+ };
37241
+ });
37242
+ var BFFType, BFFTypeSchema, BFFSchemas, BFFSchema, MWADefaultBffConfig;
37243
+ var init_bff = __esmMin(() => {
37244
+ init_locale();
37245
+ init_common2();
37246
+ (function(BFFType2) {
37247
+ BFFType2["Func"] = "func";
37248
+ BFFType2["Framework"] = "framework";
37249
+ })(BFFType || (BFFType = {}));
37250
+ BFFTypeSchema = {
37251
+ key: "bffType",
37252
+ type: ["string"],
37253
+ label: function label15() {
37254
+ return i18n.t(localeKeys.bff.bffType.self);
37255
+ },
37256
+ mutualExclusion: true,
37257
+ items: Object.values(BFFType).map(function(bffType) {
37258
+ return {
37259
+ key: bffType,
37260
+ label: function label21() {
37261
+ return i18n.t(localeKeys.bff.bffType[bffType]);
37262
+ }
37263
+ };
37264
+ })
37265
+ };
37266
+ BFFSchemas = [BFFTypeSchema, FrameworkSchema];
37267
+ BFFSchema = {
37268
+ key: "bff",
37269
+ label: function label16() {
37270
+ return i18n.t(localeKeys.action["function"].bff);
37271
+ },
37272
+ isObject: true,
37273
+ items: BFFSchemas
37274
+ };
37275
+ MWADefaultBffConfig = {
37276
+ bffType: BFFType.Func,
37277
+ frameWork: Framework.Express
37278
+ };
37279
+ });
37280
+ var MWASchemas, MWASchema, MWADefaultConfig;
37281
+ var init_project4 = __esmMin(() => {
37282
+ init_common();
37283
+ init_common2();
37284
+ MWASchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, RunWaySchema, NeedModifyMWAConfigSchema, ClientRouteSchema];
37285
+ MWASchema = {
37286
+ key: "mwa",
37287
+ isObject: true,
37288
+ items: MWASchemas
37289
+ };
37290
+ MWADefaultConfig = {
37291
+ language: Language.TS,
37292
+ packageManager: PackageManager.Pnpm,
37293
+ runWay: RunWay.No,
37294
+ needModifyMWAConfig: BooleanConfig.NO,
37295
+ clientRoute: ClientRoute.SelfControlRoute
37296
+ };
37297
+ });
37298
+ var ServerSchemas, ServerSchema, MWADefaultServerConfig;
37299
+ var init_server = __esmMin(() => {
37300
+ init_locale();
37301
+ init_common2();
37302
+ ServerSchemas = [FrameworkSchema];
37303
+ ServerSchema = {
37304
+ key: "server",
37305
+ label: function label17() {
37306
+ return i18n.t(localeKeys.action.element.server);
37307
+ },
37308
+ isObject: true,
37309
+ items: ServerSchemas
37310
+ };
37311
+ MWADefaultServerConfig = {
37312
+ framework: Framework.Express
37313
+ };
37314
+ });
37315
+ var init_mwa = __esmMin(() => {
37316
+ init_common2();
37317
+ init_entry();
37318
+ init_bff();
37319
+ init_project4();
37320
+ init_server();
37321
+ });
37322
+ var _ActionTypeText, _ActionElementText, _ActionFunctionText, _ActionTypeTextMap, ActionType, ActionElement, ActionFunction, ActionRefactor, ActionTypeText, ActionElementText, ActionFunctionText, ActionRefactorText, ActionTypeTextMap;
37323
+ var init_common3 = __esmMin(() => {
37324
+ init_defineProperty();
37325
+ init_locale();
37326
+ (function(ActionType2) {
37327
+ ActionType2["Function"] = "function";
37328
+ ActionType2["Element"] = "element";
37329
+ ActionType2["Refactor"] = "refactor";
37330
+ })(ActionType || (ActionType = {}));
37331
+ (function(ActionElement2) {
37332
+ ActionElement2["Entry"] = "entry";
37333
+ ActionElement2["Server"] = "server";
37334
+ })(ActionElement || (ActionElement = {}));
37335
+ (function(ActionFunction2) {
37336
+ ActionFunction2["TailwindCSS"] = "tailwindcss";
37337
+ ActionFunction2["Less"] = "less";
37338
+ ActionFunction2["Sass"] = "sass";
37339
+ ActionFunction2["BFF"] = "bff";
37340
+ ActionFunction2["MicroFrontend"] = "micro_frontend";
37341
+ ActionFunction2["Electron"] = "electron";
37342
+ ActionFunction2["I18n"] = "i18n";
37343
+ ActionFunction2["Test"] = "test";
37344
+ ActionFunction2["E2ETest"] = "e2e_test";
37345
+ ActionFunction2["Doc"] = "doc";
37346
+ ActionFunction2["Storybook"] = "storybook";
37347
+ ActionFunction2["RuntimeApi"] = "runtimeApi";
37348
+ ActionFunction2["SSG"] = "ssg";
37349
+ ActionFunction2["Polyfill"] = "polyfill";
37350
+ ActionFunction2["Proxy"] = "proxy";
37351
+ })(ActionFunction || (ActionFunction = {}));
37352
+ (function(ActionRefactor2) {
37353
+ ActionRefactor2["BFFToApp"] = "bff_to_app";
37354
+ })(ActionRefactor || (ActionRefactor = {}));
37355
+ ActionTypeText = (_ActionTypeText = {}, _defineProperty(_ActionTypeText, ActionType.Function, function() {
37356
+ return i18n.t(localeKeys.action["function"].self);
37357
+ }), _defineProperty(_ActionTypeText, ActionType.Element, function() {
37358
+ return i18n.t(localeKeys.action.element.self);
37359
+ }), _defineProperty(_ActionTypeText, ActionType.Refactor, function() {
37360
+ return i18n.t(localeKeys.action.refactor.self);
37361
+ }), _ActionTypeText);
37362
+ ActionElementText = (_ActionElementText = {}, _defineProperty(_ActionElementText, ActionElement.Entry, function() {
37363
+ return i18n.t(localeKeys.action.element.entry);
37364
+ }), _defineProperty(_ActionElementText, ActionElement.Server, function() {
37365
+ return i18n.t(localeKeys.action.element.server);
37366
+ }), _ActionElementText);
37367
+ ActionFunctionText = (_ActionFunctionText = {}, _defineProperty(_ActionFunctionText, ActionFunction.TailwindCSS, function() {
37368
+ return i18n.t(localeKeys.action["function"].tailwindcss);
37369
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Less, function() {
37370
+ return i18n.t(localeKeys.action["function"].less);
37371
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Sass, function() {
37372
+ return i18n.t(localeKeys.action["function"].sass);
37373
+ }), _defineProperty(_ActionFunctionText, ActionFunction.BFF, function() {
37374
+ return i18n.t(localeKeys.action["function"].bff);
37375
+ }), _defineProperty(_ActionFunctionText, ActionFunction.MicroFrontend, function() {
37376
+ return i18n.t(localeKeys.action["function"].micro_frontend);
37377
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Electron, function() {
37378
+ return i18n.t(localeKeys.action["function"].electron);
37379
+ }), _defineProperty(_ActionFunctionText, ActionFunction.I18n, function() {
37380
+ return i18n.t(localeKeys.action["function"].i18n);
37381
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Test, function() {
37382
+ return i18n.t(localeKeys.action["function"].test);
37383
+ }), _defineProperty(_ActionFunctionText, ActionFunction.E2ETest, function() {
37384
+ return i18n.t(localeKeys.action["function"].e2e_test);
37385
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Doc, function() {
37386
+ return i18n.t(localeKeys.action["function"].doc);
37387
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Storybook, function() {
37388
+ return i18n.t(localeKeys.action["function"].storybook);
37389
+ }), _defineProperty(_ActionFunctionText, ActionFunction.RuntimeApi, function() {
37390
+ return i18n.t(localeKeys.action["function"].runtime_api);
37391
+ }), _defineProperty(_ActionFunctionText, ActionFunction.SSG, function() {
37392
+ return i18n.t(localeKeys.action["function"].ssg);
37393
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Polyfill, function() {
37394
+ return i18n.t(localeKeys.action["function"].polyfill);
37395
+ }), _defineProperty(_ActionFunctionText, ActionFunction.Proxy, function() {
37396
+ return i18n.t(localeKeys.action["function"].proxy);
37397
+ }), _ActionFunctionText);
37398
+ ActionRefactorText = _defineProperty({}, ActionRefactor.BFFToApp, function() {
37399
+ return i18n.t(localeKeys.action.refactor.bff_to_app);
37400
+ });
37401
+ ActionTypeTextMap = (_ActionTypeTextMap = {}, _defineProperty(_ActionTypeTextMap, ActionType.Element, ActionElementText), _defineProperty(_ActionTypeTextMap, ActionType.Function, ActionFunctionText), _defineProperty(_ActionTypeTextMap, ActionType.Refactor, ActionRefactorText), _ActionTypeTextMap);
37402
+ });
37403
+ var _MWAActionTypesMap, _MWAActionFunctionsDe, _MWAActionFunctionsDe2, _ActionType$Element, _ActionType$Function, _MWANewActionGenerato, MWAActionTypes, MWAActionFunctions, MWAActionElements, MWAActionReactors, MWAActionTypesMap, MWASpecialSchemaMap, MWANewActionSchema, MWAActionFunctionsDevDependencies, MWAActionFunctionsDependencies, MWAActionFunctionsAppendTypeContent, MWANewActionGenerators;
37404
+ var init_mwa2 = __esmMin(() => {
37405
+ init_defineProperty();
37406
+ init_common3();
37407
+ init_locale();
37408
+ MWAActionTypes = [
37409
+ ActionType.Element,
37410
+ ActionType.Function
37411
+ ];
37412
+ MWAActionFunctions = [
37413
+ ActionFunction.TailwindCSS,
37414
+ ActionFunction.Less,
37415
+ ActionFunction.Sass,
37416
+ ActionFunction.BFF,
37417
+ ActionFunction.SSG,
37418
+ ActionFunction.MicroFrontend,
37419
+ ActionFunction.Electron,
37420
+ ActionFunction.Test,
37421
+ ActionFunction.Storybook,
37422
+ ActionFunction.Polyfill,
37423
+ ActionFunction.Proxy
37424
+ ];
37425
+ MWAActionElements = [ActionElement.Entry, ActionElement.Server];
37426
+ MWAActionReactors = [ActionRefactor.BFFToApp];
37427
+ MWAActionTypesMap = (_MWAActionTypesMap = {}, _defineProperty(_MWAActionTypesMap, ActionType.Element, MWAActionElements), _defineProperty(_MWAActionTypesMap, ActionType.Function, MWAActionFunctions), _defineProperty(_MWAActionTypesMap, ActionType.Refactor, MWAActionReactors), _MWAActionTypesMap);
37428
+ MWASpecialSchemaMap = _defineProperty({}, ActionFunction.Storybook, {
37429
+ key: ActionFunction.Storybook,
37430
+ label: function label18() {
37431
+ return i18n.t(localeKeys.action["function"].mwa_storybook);
37432
+ }
37433
+ });
37434
+ MWANewActionSchema = {
37435
+ key: "mwa_new_action",
37436
+ isObject: true,
37437
+ items: [{
37438
+ key: "actionType",
37439
+ label: function label19() {
37440
+ return i18n.t(localeKeys.action.self);
37441
+ },
37442
+ type: ["string"],
37443
+ mutualExclusion: true,
37444
+ items: MWAActionTypes.map(function(type) {
37445
+ return {
37446
+ key: type,
37447
+ label: ActionTypeText[type],
37448
+ type: ["string"],
37449
+ mutualExclusion: true,
37450
+ items: MWAActionTypesMap[type].map(function(item) {
37451
+ return MWASpecialSchemaMap[item] || {
37452
+ key: item,
37453
+ label: ActionTypeTextMap[type][item]
37454
+ };
37455
+ })
37456
+ };
37457
+ })
37458
+ }]
37459
+ };
37460
+ MWAActionFunctionsDevDependencies = (_MWAActionFunctionsDe = {}, _defineProperty(_MWAActionFunctionsDe, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.SSG, "@modern-js/plugin-ssg"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Test, "@modern-js/plugin-testing"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.E2ETest, "@modern-js/plugin-e2e"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Electron, "@modern-js/plugin-electron"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Proxy, "@modern-js/plugin-proxy"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.TailwindCSS, "tailwindcss"), _MWAActionFunctionsDe);
37461
+ MWAActionFunctionsDependencies = (_MWAActionFunctionsDe2 = {}, _defineProperty(_MWAActionFunctionsDe2, ActionFunction.BFF, "@modern-js/plugin-bff"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.MicroFrontend, "@modern-js/plugin-garfish"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.Polyfill, "@modern-js/plugin-polyfill"), _MWAActionFunctionsDe2);
37462
+ MWAActionFunctionsAppendTypeContent = _defineProperty({}, ActionFunction.MicroFrontend, "/// <reference types='@modern-js/plugin-garfish/types' />");
37463
+ MWANewActionGenerators = (_MWANewActionGenerato = {}, _defineProperty(_MWANewActionGenerato, ActionType.Element, (_ActionType$Element = {}, _defineProperty(_ActionType$Element, ActionElement.Entry, "@modern-js/entry-generator"), _defineProperty(_ActionType$Element, ActionElement.Server, "@modern-js/server-generator"), _ActionType$Element)), _defineProperty(_MWANewActionGenerato, ActionType.Function, (_ActionType$Function = {}, _defineProperty(_ActionType$Function, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.BFF, "@modern-js/bff-generator"), _defineProperty(_ActionType$Function, ActionFunction.MicroFrontend, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Electron, "@modern-js/electron-generator"), _defineProperty(_ActionType$Function, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Test, "@modern-js/test-generator"), _defineProperty(_ActionType$Function, ActionFunction.E2ETest, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Storybook, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.SSG, "@modern-js/ssg-generator"), _defineProperty(_ActionType$Function, ActionFunction.Polyfill, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Proxy, "@modern-js/dependence-generator"), _ActionType$Function)), _defineProperty(_MWANewActionGenerato, ActionType.Refactor, _defineProperty({}, ActionRefactor.BFFToApp, "@modern-js/bff-refactor-generator")), _MWANewActionGenerato);
37464
+ });
37465
+ var _ModuleActionFunction, _ModuleActionFunction2, _ModuleActionFunction3, _ActionType$Function2, ModuleActionTypes, ModuleActionFunctions, ModuleActionTypesMap, ModuleSpecialSchemaMap, ModuleNewActionSchema, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies, ModuleActionFunctionsDependencies, ModuleNewActionGenerators;
37466
+ var init_module2 = __esmMin(() => {
37467
+ init_defineProperty();
37468
+ init_common3();
37469
+ init_locale();
37470
+ ModuleActionTypes = [ActionType.Function];
37471
+ ModuleActionFunctions = [
37472
+ ActionFunction.TailwindCSS,
37473
+ ActionFunction.Less,
37474
+ ActionFunction.Sass,
37475
+ ActionFunction.Storybook,
37476
+ ActionFunction.RuntimeApi
37477
+ ];
37478
+ ModuleActionTypesMap = _defineProperty({}, ActionType.Function, ModuleActionFunctions);
37479
+ ModuleSpecialSchemaMap = {};
37480
+ ModuleNewActionSchema = {
37481
+ key: "Module_new_action",
37482
+ isObject: true,
37483
+ items: [{
37484
+ key: "actionType",
37485
+ label: function label20() {
37486
+ return i18n.t(localeKeys.action.self);
37487
+ },
37488
+ type: ["string"],
37489
+ mutualExclusion: true,
37490
+ items: ModuleActionTypes.map(function(type) {
37491
+ return {
37492
+ key: type,
37493
+ label: ActionTypeText[type],
37494
+ type: ["string"],
37495
+ mutualExclusion: true,
37496
+ items: ModuleActionFunctions.map(function(func) {
37497
+ return ModuleSpecialSchemaMap[func] || {
37498
+ key: func,
37499
+ label: ActionFunctionText[func]
37500
+ };
37501
+ })
37502
+ };
37503
+ })
37504
+ }]
37505
+ };
37506
+ ModuleActionFunctionsDevDependencies = (_ModuleActionFunction = {}, _defineProperty(_ModuleActionFunction, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_ModuleActionFunction, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_ModuleActionFunction, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_ModuleActionFunction, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction);
37507
+ ModuleActionFunctionsPeerDependencies = (_ModuleActionFunction2 = {}, _defineProperty(_ModuleActionFunction2, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction2, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction2);
37508
+ ModuleActionFunctionsDependencies = (_ModuleActionFunction3 = {}, _defineProperty(_ModuleActionFunction3, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_ModuleActionFunction3, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _ModuleActionFunction3);
37509
+ ModuleNewActionGenerators = _defineProperty({}, ActionType.Function, (_ActionType$Function2 = {}, _defineProperty(_ActionType$Function2, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Test, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Storybook, "@modern-js/storybook-generator"), _defineProperty(_ActionType$Function2, ActionFunction.RuntimeApi, "@modern-js/dependence-generator"), _ActionType$Function2));
37510
+ });
37511
+ var _MonorepoNewActionCon, MonorepoNewActionSchema, MonorepoNewActionConfig;
37512
+ var init_monorepo2 = __esmMin(() => {
37513
+ init_defineProperty();
37514
+ init_common();
37515
+ MonorepoNewActionSchema = {
37516
+ key: "monorepo_new_action",
37517
+ isObject: true,
37518
+ items: [SubSolutionSchema]
37519
+ };
37520
+ MonorepoNewActionConfig = (_MonorepoNewActionCon = {}, _defineProperty(_MonorepoNewActionCon, SubSolution.MWA, {
37521
+ isMonorepoSubProject: true,
37522
+ isTest: false
37523
+ }), _defineProperty(_MonorepoNewActionCon, SubSolution.MWATest, {
37524
+ isMonorepoSubProject: true,
37525
+ isTest: true
37526
+ }), _defineProperty(_MonorepoNewActionCon, SubSolution.Module, {
37527
+ isMonorepoSubProject: true,
37528
+ isPublic: true
37529
+ }), _defineProperty(_MonorepoNewActionCon, SubSolution.InnerModule, {
37530
+ isMonorepoSubProject: true,
37531
+ isPublic: false
37532
+ }), _MonorepoNewActionCon);
37533
+ });
37534
+ var init_newAction = __esmMin(() => {
37535
+ init_common3();
37536
+ init_mwa2();
37537
+ init_module2();
37538
+ init_monorepo2();
37539
+ });
37540
+ var GeneratorSchemas, GeneratorSchema, GeneratorDefaultConfig;
37541
+ var init_generator = __esmMin(() => {
37542
+ init_common();
37543
+ GeneratorSchemas = [PackageNameSchema, PackagePathSchema, PackageManagerSchema, LanguageSchema];
37544
+ GeneratorSchema = {
37545
+ key: "generator-generator",
37546
+ isObject: true,
37547
+ items: Object.values(GeneratorSchemas)
37548
+ };
37549
+ GeneratorDefaultConfig = {
37550
+ packageManager: PackageManager.Pnpm,
37551
+ language: Language.TS
37552
+ };
37553
+ });
37554
+ var init_expand = __esmMin(() => {
37555
+ init_generator();
37556
+ });
37557
+ var treeshaking_exports2 = {};
37558
+ __export2(treeshaking_exports2, {
37559
+ ActionElement: () => ActionElement,
37560
+ ActionElementText: () => ActionElementText,
37561
+ ActionFunction: () => ActionFunction,
37562
+ ActionFunctionText: () => ActionFunctionText,
37563
+ ActionRefactor: () => ActionRefactor,
37564
+ ActionRefactorText: () => ActionRefactorText,
37565
+ ActionType: () => ActionType,
37566
+ ActionTypeText: () => ActionTypeText,
37567
+ ActionTypeTextMap: () => ActionTypeTextMap,
37568
+ BFFSchema: () => BFFSchema,
37569
+ BFFSchemas: () => BFFSchemas,
37570
+ BFFType: () => BFFType,
37571
+ BFFTypeSchema: () => BFFTypeSchema,
37572
+ BaseDefaultConfig: () => BaseDefaultConfig,
37573
+ BaseGenerator: () => BaseGenerator,
37574
+ BaseSchema: () => BaseSchema,
37575
+ BaseSchemas: () => BaseSchemas,
37576
+ BooleanConfig: () => BooleanConfig,
37577
+ BooleanConfigName: () => BooleanConfigName,
37578
+ BooleanSchemas: () => BooleanSchemas,
37579
+ ChangesetGenerator: () => ChangesetGenerator,
37580
+ ClientRoute: () => ClientRoute,
37581
+ ClientRouteSchema: () => ClientRouteSchema,
37582
+ DependenceGenerator: () => DependenceGenerator,
37583
+ ElectronGenerator: () => ElectronGenerator,
37584
+ EntryGenerator: () => EntryGenerator,
37585
+ EntrySchema: () => EntrySchema,
37586
+ EntrySchemas: () => EntrySchemas,
37587
+ EslintGenerator: () => EslintGenerator,
37588
+ Framework: () => Framework,
37589
+ FrameworkAppendTypeContent: () => FrameworkAppendTypeContent,
37590
+ FrameworkSchema: () => FrameworkSchema,
37591
+ GeneratorDefaultConfig: () => GeneratorDefaultConfig,
37592
+ GeneratorSchema: () => GeneratorSchema,
37593
+ Language: () => Language,
37594
+ LanguageName: () => LanguageName,
37595
+ LanguageSchema: () => LanguageSchema,
37596
+ MWAActionElements: () => MWAActionElements,
37597
+ MWAActionFunctions: () => MWAActionFunctions,
37598
+ MWAActionFunctionsAppendTypeContent: () => MWAActionFunctionsAppendTypeContent,
37599
+ MWAActionFunctionsDependencies: () => MWAActionFunctionsDependencies,
37600
+ MWAActionFunctionsDevDependencies: () => MWAActionFunctionsDevDependencies,
37601
+ MWAActionReactors: () => MWAActionReactors,
37602
+ MWAActionTypes: () => MWAActionTypes,
37603
+ MWAActionTypesMap: () => MWAActionTypesMap,
37604
+ MWADefaultBffConfig: () => MWADefaultBffConfig,
37605
+ MWADefaultConfig: () => MWADefaultConfig,
37606
+ MWADefaultEntryConfig: () => MWADefaultEntryConfig,
37607
+ MWADefaultServerConfig: () => MWADefaultServerConfig,
37608
+ MWANewActionGenerators: () => MWANewActionGenerators,
37609
+ MWANewActionSchema: () => MWANewActionSchema,
37610
+ MWASchema: () => MWASchema,
37611
+ MWASchemas: () => MWASchemas,
37612
+ MWASpecialSchemaMap: () => MWASpecialSchemaMap,
37613
+ ModuleActionFunctions: () => ModuleActionFunctions,
37614
+ ModuleActionFunctionsDependencies: () => ModuleActionFunctionsDependencies,
37615
+ ModuleActionFunctionsDevDependencies: () => ModuleActionFunctionsDevDependencies,
37616
+ ModuleActionFunctionsPeerDependencies: () => ModuleActionFunctionsPeerDependencies,
37617
+ ModuleActionTypes: () => ModuleActionTypes,
37618
+ ModuleActionTypesMap: () => ModuleActionTypesMap,
37619
+ ModuleDefaultConfig: () => ModuleDefaultConfig,
37620
+ ModuleNewActionGenerators: () => ModuleNewActionGenerators,
37621
+ ModuleNewActionSchema: () => ModuleNewActionSchema,
37622
+ ModuleSchema: () => ModuleSchema,
37623
+ ModuleSchemas: () => ModuleSchemas,
37624
+ ModuleSpecialSchemaMap: () => ModuleSpecialSchemaMap,
37625
+ MonorepoDefaultConfig: () => MonorepoDefaultConfig,
37626
+ MonorepoNewActionConfig: () => MonorepoNewActionConfig,
37627
+ MonorepoNewActionSchema: () => MonorepoNewActionSchema,
37628
+ MonorepoSchema: () => MonorepoSchema,
37629
+ MonorepoSchemas: () => MonorepoSchemas,
37630
+ NeedModifyMWAConfigSchema: () => NeedModifyMWAConfigSchema,
37631
+ PackageManager: () => PackageManager,
37632
+ PackageManagerName: () => PackageManagerName,
37633
+ PackageManagerSchema: () => PackageManagerSchema,
37634
+ PackageNameSchema: () => PackageNameSchema,
37635
+ PackagePathSchema: () => PackagePathSchema,
37636
+ RunWay: () => RunWay,
37637
+ RunWaySchema: () => RunWaySchema,
37638
+ ServerSchema: () => ServerSchema,
37639
+ ServerSchemas: () => ServerSchemas,
37640
+ Solution: () => Solution,
37641
+ SolutionDefaultConfig: () => SolutionDefaultConfig,
37642
+ SolutionGenerator: () => SolutionGenerator,
37643
+ SolutionSchema: () => SolutionSchema,
37644
+ SolutionSchemas: () => SolutionSchemas,
37645
+ SolutionText: () => SolutionText,
37646
+ SolutionToolsMap: () => SolutionToolsMap,
37647
+ SubSolution: () => SubSolution,
37648
+ SubSolutionGenerator: () => SubSolutionGenerator,
37649
+ SubSolutionSchema: () => SubSolutionSchema,
37650
+ SubSolutionText: () => SubSolutionText,
37651
+ getSolutionNameFromSubSolution: () => getSolutionNameFromSubSolution,
37652
+ i18n: () => i18n,
37653
+ localeKeys: () => localeKeys,
37654
+ mwaConfigWhenFunc: () => mwaConfigWhenFunc
37655
+ });
37656
+ var _SolutionDefaultConfi, _SolutionSchemas, SolutionDefaultConfig, SolutionSchemas;
37657
+ var init_treeshaking2 = __esmMin(() => {
37658
+ init_defineProperty();
37659
+ init_base();
37660
+ init_common();
37661
+ init_module();
37662
+ init_monorepo();
37663
+ init_mwa();
37664
+ init_locale();
37665
+ init_common();
37666
+ init_newAction();
37667
+ init_mwa();
37668
+ init_module();
37669
+ init_monorepo();
37670
+ init_expand();
37671
+ init_base();
37672
+ SolutionDefaultConfig = (_SolutionDefaultConfi = {}, _defineProperty(_SolutionDefaultConfi, Solution.MWA, MWADefaultConfig), _defineProperty(_SolutionDefaultConfi, Solution.Module, ModuleDefaultConfig), _defineProperty(_SolutionDefaultConfi, Solution.Monorepo, MonorepoDefaultConfig), _SolutionDefaultConfi);
37673
+ SolutionSchemas = (_SolutionSchemas = {}, _defineProperty(_SolutionSchemas, Solution.MWA, MWASchemas), _defineProperty(_SolutionSchemas, Solution.Module, ModuleSchemas), _defineProperty(_SolutionSchemas, Solution.Monorepo, MonorepoSchemas), _defineProperty(_SolutionSchemas, "custom", BaseSchemas), _SolutionSchemas);
37674
+ });
37675
+ var require_strip_ansi2 = __commonJSMin((exports) => {
37676
+ "use strict";
37677
+ Object.defineProperty(exports, "__esModule", {
37678
+ value: true
37679
+ });
37680
+ exports.stripAnsi = stripAnsi;
37681
+ function ansiRegex({
37682
+ onlyFirst = false
37683
+ } = {}) {
37684
+ const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
37685
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
37686
+ }
37687
+ function stripAnsi(string) {
37688
+ if (typeof string !== "string") {
37689
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
37690
+ }
37691
+ return string.replace(ansiRegex(), "");
37692
+ }
37693
+ });
36419
37694
  var require_zh = __commonJSMin((exports) => {
36420
37695
  "use strict";
36421
37696
  Object.defineProperty(exports, "__esModule", {
@@ -36465,6 +37740,78 @@ var require_locale = __commonJSMin((exports) => {
36465
37740
  });
36466
37741
  exports.localeKeys = localeKeys2;
36467
37742
  });
37743
+ var require_package = __commonJSMin((exports) => {
37744
+ "use strict";
37745
+ Object.defineProperty(exports, "__esModule", {
37746
+ value: true
37747
+ });
37748
+ exports.getAvailableVersion = getAvailableVersion;
37749
+ exports.isPackageDeprecated = isPackageDeprecated;
37750
+ exports.isPackageExist = isPackageExist;
37751
+ exports.semverDecrease = semverDecrease;
37752
+ var _utils = require_dist();
37753
+ async function isPackageExist(packageName, registry) {
37754
+ if (await (0, _utils.canUseNpm)()) {
37755
+ const args = ["view", packageName, "version"];
37756
+ if (registry) {
37757
+ args.push(`--registry=${registry}`);
37758
+ }
37759
+ const result = await (0, _utils.execa)("npm", args);
37760
+ return (0, _utils.stripAnsi)(result.stdout);
37761
+ }
37762
+ throw new Error("not found npm, please install npm before");
37763
+ }
37764
+ async function isPackageDeprecated(packageName, registry) {
37765
+ if (await (0, _utils.canUseNpm)()) {
37766
+ const args = ["view", packageName, "deprecated"];
37767
+ if (registry) {
37768
+ args.push(`--registry=${registry}`);
37769
+ }
37770
+ const result = await (0, _utils.execa)("npm", args);
37771
+ return (0, _utils.stripAnsi)(result.stdout);
37772
+ }
37773
+ throw new Error("not found npm, please install npm before");
37774
+ }
37775
+ function semverDecrease(version4) {
37776
+ const versionObj = _utils.semver.parse(version4, {
37777
+ loose: true
37778
+ });
37779
+ if (!versionObj) {
37780
+ throw new Error(`Version ${version4} is not valid semver`);
37781
+ }
37782
+ versionObj.build = [];
37783
+ versionObj.prerelease = [];
37784
+ versionObj.patch--;
37785
+ const result = versionObj.format();
37786
+ if (!_utils.semver.valid(result)) {
37787
+ _utils.logger.debug(`Version ${result} is not valid semver`);
37788
+ return version4;
37789
+ }
37790
+ return result;
37791
+ }
37792
+ async function getAvailableVersion(packageName, currentVersion, registry) {
37793
+ let times = 5;
37794
+ let version4 = currentVersion;
37795
+ while (times) {
37796
+ if (!await isPackageExist(`${packageName}@${version4}`, registry) || await isPackageDeprecated(`${packageName}@${version4}`, registry)) {
37797
+ version4 = _utils.semver.inc(version4, "patch");
37798
+ times--;
37799
+ continue;
37800
+ }
37801
+ return version4;
37802
+ }
37803
+ times = 5;
37804
+ while (times) {
37805
+ version4 = semverDecrease(version4);
37806
+ if (!await isPackageExist(`${packageName}@${version4}`, registry) || await isPackageDeprecated(`${packageName}@${version4}`, registry)) {
37807
+ times--;
37808
+ continue;
37809
+ }
37810
+ return version4;
37811
+ }
37812
+ return currentVersion;
37813
+ }
37814
+ });
36468
37815
  var require_utils = __commonJSMin((exports) => {
36469
37816
  "use strict";
36470
37817
  Object.defineProperty(exports, "__esModule", {
@@ -36483,6 +37830,19 @@ var require_utils = __commonJSMin((exports) => {
36483
37830
  }
36484
37831
  });
36485
37832
  });
37833
+ var _package = require_package();
37834
+ Object.keys(_package).forEach(function(key) {
37835
+ if (key === "default" || key === "__esModule")
37836
+ return;
37837
+ if (key in exports && exports[key] === _package[key])
37838
+ return;
37839
+ Object.defineProperty(exports, key, {
37840
+ enumerable: true,
37841
+ get: function() {
37842
+ return _package[key];
37843
+ }
37844
+ });
37845
+ });
36486
37846
  });
36487
37847
  var require_node = __commonJSMin((exports) => {
36488
37848
  "use strict";
@@ -36491,6 +37851,8 @@ var require_node = __commonJSMin((exports) => {
36491
37851
  });
36492
37852
  var _exportNames = {
36493
37853
  getPackageVersion: true,
37854
+ getModernVersion: true,
37855
+ getModernPluginVersion: true,
36494
37856
  getPackageManagerText: true,
36495
37857
  isTsProject: true,
36496
37858
  getPackageObj: true,
@@ -36499,13 +37861,16 @@ var require_node = __commonJSMin((exports) => {
36499
37861
  validatePackagePath: true,
36500
37862
  getModuleProjectPath: true,
36501
37863
  getMWAProjectPath: true,
37864
+ ora: true,
36502
37865
  fs: true,
37866
+ semver: true,
36503
37867
  execa: true,
36504
37868
  readTsConfigByFile: true,
36505
37869
  getPackageManager: true,
36506
37870
  canUseNpm: true,
36507
37871
  canUsePnpm: true,
36508
37872
  canUseYarn: true,
37873
+ isReact18: true,
36509
37874
  i18n: true
36510
37875
  };
36511
37876
  Object.defineProperty(exports, "canUseNpm", {
@@ -36540,6 +37905,8 @@ var require_node = __commonJSMin((exports) => {
36540
37905
  });
36541
37906
  exports.getAllPackages = getAllPackages;
36542
37907
  exports.getMWAProjectPath = getMWAProjectPath;
37908
+ exports.getModernPluginVersion = getModernPluginVersion2;
37909
+ exports.getModernVersion = getModernVersion;
36543
37910
  exports.getModuleProjectPath = getModuleProjectPath;
36544
37911
  Object.defineProperty(exports, "getPackageManager", {
36545
37912
  enumerable: true,
@@ -36556,19 +37923,39 @@ var require_node = __commonJSMin((exports) => {
36556
37923
  return _locale.i18n;
36557
37924
  }
36558
37925
  });
37926
+ Object.defineProperty(exports, "isReact18", {
37927
+ enumerable: true,
37928
+ get: function() {
37929
+ return _utils.isReact18;
37930
+ }
37931
+ });
36559
37932
  exports.isTsProject = isTsProject2;
37933
+ Object.defineProperty(exports, "ora", {
37934
+ enumerable: true,
37935
+ get: function() {
37936
+ return _utils.ora;
37937
+ }
37938
+ });
36560
37939
  Object.defineProperty(exports, "readTsConfigByFile", {
36561
37940
  enumerable: true,
36562
37941
  get: function() {
36563
37942
  return _utils.readTsConfigByFile;
36564
37943
  }
36565
37944
  });
37945
+ Object.defineProperty(exports, "semver", {
37946
+ enumerable: true,
37947
+ get: function() {
37948
+ return _utils.semver;
37949
+ }
37950
+ });
36566
37951
  exports.validatePackageName = validatePackageName;
36567
37952
  exports.validatePackagePath = validatePackagePath;
36568
37953
  var _path = _interopRequireDefault(__require("path"));
36569
37954
  var _utils = require_dist();
37955
+ var _generatorCommon = (init_treeshaking2(), __toCommonJS2(treeshaking_exports2));
36570
37956
  var _stripAnsi = require_strip_ansi2();
36571
37957
  var _locale = require_locale();
37958
+ var _package = require_package();
36572
37959
  var _utils2 = require_utils();
36573
37960
  Object.keys(_utils2).forEach(function(key) {
36574
37961
  if (key === "default" || key === "__esModule")
@@ -36620,6 +38007,39 @@ var require_node = __commonJSMin((exports) => {
36620
38007
  spinner.stop();
36621
38008
  throw new Error("not found npm, please install npm before");
36622
38009
  }
38010
+ async function getModernVersion(solution, registry) {
38011
+ const dep = _generatorCommon.SolutionToolsMap[solution];
38012
+ const modernVersion = await getPackageVersion2(dep, registry);
38013
+ return modernVersion;
38014
+ }
38015
+ async function getModernPluginVersion2(solution, packageName, options3 = {}) {
38016
+ const {
38017
+ cwd = process.cwd(),
38018
+ registry
38019
+ } = options3;
38020
+ const getLatetPluginVersion = async () => {
38021
+ const version4 = await getPackageVersion2(packageName, registry);
38022
+ return version4;
38023
+ };
38024
+ if (!packageName.startsWith("@modern-js")) {
38025
+ return getLatetPluginVersion();
38026
+ }
38027
+ const pkgPath = _path.default.join(__require.resolve(_generatorCommon.SolutionToolsMap[solution], {
38028
+ paths: [cwd]
38029
+ }), "../../../../", "package.json");
38030
+ if (_utils.fs.existsSync(pkgPath)) {
38031
+ const pkgInfo = _utils.fs.readJSONSync(pkgPath);
38032
+ const modernVersion = pkgInfo.version;
38033
+ if (typeof modernVersion !== "string") {
38034
+ return getLatetPluginVersion();
38035
+ }
38036
+ if (_utils.semver.lt(modernVersion, "1.15.0")) {
38037
+ return getLatetPluginVersion();
38038
+ }
38039
+ return (0, _package.getAvailableVersion)(packageName, modernVersion, registry);
38040
+ }
38041
+ return getLatetPluginVersion();
38042
+ }
36623
38043
  function getPackageManagerText(packageManager) {
36624
38044
  return packageManager === "yarn" ? "yarn" : `${packageManager} run`;
36625
38045
  }
@@ -66899,20 +68319,28 @@ var require_compiled2 = __commonJSMin((exports) => {
66899
68319
  var require_format2 = __commonJSMin((exports) => {
66900
68320
  "use strict";
66901
68321
  Object.defineProperty(exports, "__esModule", { value: true });
66902
- exports.formatProxyOptions = exports.formatWebpackMessages = void 0;
66903
- var friendlySyntaxErrorLabel = "Syntax error:";
68322
+ exports.formatWebpackMessages = void 0;
68323
+ var friendlySyntaxErrorLabel = "SyntaxError:";
66904
68324
  function isLikelyASyntaxError(message) {
66905
68325
  return message.includes(friendlySyntaxErrorLabel);
66906
68326
  }
66907
- function formatMessage(message) {
66908
- var _a;
68327
+ function formatMessage(stats) {
66909
68328
  let lines = [];
66910
- if (typeof message === "object") {
66911
- message = `${message.moduleName && `${message.moduleName}
66912
- `}${message.details || message.stack || message.message}`;
68329
+ let message;
68330
+ if (typeof stats === "object") {
68331
+ const fileName = stats.moduleName ? `File: ${stats.moduleName}
68332
+ ` : "";
68333
+ const mainMessage = stats.message;
68334
+ const details = stats.details ? `
68335
+ Details: ${stats.details}
68336
+ ` : "";
68337
+ const stack = stats.stack ? `
68338
+ ${stats.stack}` : "";
68339
+ message = `${fileName}${mainMessage}${details}${stack}`;
68340
+ } else {
68341
+ message = stats;
66913
68342
  }
66914
68343
  lines = message.split("\n");
66915
- lines = lines.filter((line3) => !/Module [A-z ]+\(from/.test(line3));
66916
68344
  lines = lines.map((line3) => {
66917
68345
  const parsingError = /Line (\d+):(?:(\d+):)?\s*Parsing error: (.+)$/.exec(line3);
66918
68346
  if (!parsingError) {
@@ -66929,11 +68357,8 @@ var require_format2 = __commonJSMin((exports) => {
66929
68357
  lines.splice(1, 1);
66930
68358
  }
66931
68359
  lines[0] = lines[0].replace(/^(.*) \d+:\d+-\d+$/, "$1");
66932
- if ((_a = lines[1]) === null || _a === void 0 ? void 0 : _a.startsWith("Module not found: ")) {
66933
- lines = [
66934
- lines[0],
66935
- lines[1].replace("Error: ", "").replace("Module not found: Cannot find file:", "Cannot find file:").replace("[CaseSensitivePathsPlugin] ", "").replace("Cannot resolve 'file' or 'directory' ", "")
66936
- ];
68360
+ if (lines[1] && lines[1].indexOf("Module not found:") !== -1) {
68361
+ lines[1] = lines[1].replace("Error: ", "");
66937
68362
  }
66938
68363
  message = lines.join("\n");
66939
68364
  message = message.replace(/^\s*at\s((?!webpack:).)*:\d+:\d+[\s)]*(\n|$)/gm, "");
@@ -66960,29 +68385,6 @@ var require_format2 = __commonJSMin((exports) => {
66960
68385
  return result;
66961
68386
  }
66962
68387
  exports.formatWebpackMessages = formatWebpackMessages;
66963
- function formatProxyOptions(proxyOptions) {
66964
- const formattedProxy = [];
66965
- if (!Array.isArray(proxyOptions)) {
66966
- if ("target" in proxyOptions) {
66967
- formattedProxy.push(proxyOptions);
66968
- } else {
66969
- Array.prototype.push.apply(formattedProxy, Object.keys(proxyOptions).reduce((total, source) => {
66970
- const option = proxyOptions[source];
66971
- total.push({
66972
- context: source,
66973
- changeOrigin: true,
66974
- logLevel: "warn",
66975
- ...typeof option === "string" ? { target: option } : option
66976
- });
66977
- return total;
66978
- }, []));
66979
- }
66980
- } else {
66981
- formattedProxy.push(...proxyOptions);
66982
- }
66983
- return formattedProxy;
66984
- }
66985
- exports.formatProxyOptions = formatProxyOptions;
66986
68388
  });
66987
68389
  var require_logger2 = __commonJSMin((exports) => {
66988
68390
  "use strict";
@@ -67060,17 +68462,17 @@ var require_logger2 = __commonJSMin((exports) => {
67060
68462
  if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
67061
68463
  return;
67062
68464
  }
67063
- let label10 = "";
68465
+ let label21 = "";
67064
68466
  let text = "";
67065
68467
  const logType = this.types[type];
67066
68468
  if (this.config.displayLabel && logType.label) {
67067
- label10 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
68469
+ label21 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
67068
68470
  if (this.config.underlineLabel) {
67069
- label10 = underline(label10).padEnd(this.longestUnderlinedLabel.length + 1);
68471
+ label21 = underline(label21).padEnd(this.longestUnderlinedLabel.length + 1);
67070
68472
  } else {
67071
- label10 = label10.padEnd(this.longestLabel.length + 1);
68473
+ label21 = label21.padEnd(this.longestLabel.length + 1);
67072
68474
  }
67073
- label10 = logType.color ? chalk_1.default[logType.color](label10) : label10;
68475
+ label21 = logType.color ? chalk_1.default[logType.color](label21) : label21;
67074
68476
  }
67075
68477
  if (message instanceof Error) {
67076
68478
  if (message.stack) {
@@ -67086,15 +68488,15 @@ ${grey(rest.join("\n"))}`;
67086
68488
  if (logType.level === "warn" || logType.level === "error") {
67087
68489
  this.retainLog(type, text);
67088
68490
  }
67089
- const log = label10.length > 0 ? `${label10} ${text}` : text;
68491
+ const log = label21.length > 0 ? `${label21} ${text}` : text;
67090
68492
  console.log(log, ...args);
67091
68493
  }
67092
68494
  getLongestLabel() {
67093
68495
  let longestLabel = "";
67094
68496
  Object.keys(this.types).forEach((type) => {
67095
- const { label: label10 = "" } = this.types[type];
67096
- if (label10.length > longestLabel.length) {
67097
- longestLabel = label10;
68497
+ const { label: label21 = "" } = this.types[type];
68498
+ if (label21.length > longestLabel.length) {
68499
+ longestLabel = label21;
67098
68500
  }
67099
68501
  });
67100
68502
  return longestLabel;
@@ -67482,7 +68884,6 @@ var require_constants2 = __commonJSMin((exports) => {
67482
68884
  "@modern-js/plugin-electron": { cli: "@modern-js/plugin-electron/cli" },
67483
68885
  "@modern-js/plugin-testing": { cli: "@modern-js/plugin-testing/cli" },
67484
68886
  "@modern-js/plugin-storybook": { cli: "@modern-js/plugin-storybook/cli" },
67485
- "@modern-js/plugin-docsite": { cli: "@modern-js/plugin-docsite/cli" },
67486
68887
  "@modern-js/plugin-express": {
67487
68888
  cli: "@modern-js/plugin-express/cli",
67488
68889
  server: "@modern-js/plugin-express"
@@ -67500,7 +68901,6 @@ var require_constants2 = __commonJSMin((exports) => {
67500
68901
  server: "@modern-js/plugin-nest/server"
67501
68902
  },
67502
68903
  "@modern-js/plugin-unbundle": { cli: "@modern-js/plugin-unbundle" },
67503
- "@modern-js/plugin-server-build": { cli: "@modern-js/plugin-server-build" },
67504
68904
  "@modern-js/plugin-server": {
67505
68905
  cli: "@modern-js/plugin-server/cli",
67506
68906
  server: "@modern-js/plugin-server/server"
@@ -67508,26 +68908,12 @@ var require_constants2 = __commonJSMin((exports) => {
67508
68908
  "@modern-js/plugin-garfish": {
67509
68909
  cli: "@modern-js/plugin-garfish/cli"
67510
68910
  },
67511
- "@modern-js/plugin-jarvis": { cli: "@modern-js/plugin-jarvis/cli" },
67512
68911
  "@modern-js/plugin-tailwindcss": { cli: "@modern-js/plugin-tailwindcss/cli" },
67513
- "@modern-js/plugin-lambda-fc": { cli: "@modern-js/plugin-lambda-fc/cli" },
67514
- "@modern-js/plugin-lambda-scf": { cli: "@modern-js/plugin-lambda-scf/cli" },
67515
- "@modern-js/plugin-cdn-oss": { cli: "@modern-js/plugin-cdn-oss/cli" },
67516
- "@modern-js/plugin-cdn-cos": { cli: "@modern-js/plugin-cdn-cos/cli" },
67517
- "@modern-js/plugin-static-hosting": {
67518
- cli: "@modern-js/plugin-static-hosting/cli"
67519
- },
67520
68912
  "@modern-js/plugin-polyfill": {
67521
68913
  cli: "@modern-js/plugin-polyfill/cli",
67522
68914
  server: "@modern-js/plugin-polyfill"
67523
68915
  },
67524
- "@modern-js/plugin-multiprocess": {
67525
- cli: "@modern-js/plugin-multiprocess/cli"
67526
- },
67527
- "@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" },
67528
- "@modern-js/plugin-design-token": {
67529
- cli: "@modern-js/plugin-design-token/cli"
67530
- }
68916
+ "@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" }
67531
68917
  };
67532
68918
  exports.PLUGIN_SCHEMAS = {
67533
68919
  "@modern-js/runtime": [
@@ -68515,8 +69901,8 @@ var require_analyzeProject2 = __commonJSMin((exports) => {
68515
69901
  exports.isApiOnly = void 0;
68516
69902
  var path2 = __importStar(__require("path"));
68517
69903
  var compiled_1 = require_compiled2();
68518
- var isApiOnly = async (appDirectory) => {
68519
- const srcDir = path2.join(appDirectory, "src");
69904
+ var isApiOnly = async (appDirectory, entryDir) => {
69905
+ const srcDir = path2.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src");
68520
69906
  const existSrc = await compiled_1.fs.pathExists(srcDir);
68521
69907
  const options3 = (0, compiled_1.minimist)(process.argv.slice(2));
68522
69908
  return !existSrc || Boolean(options3["api-only"]);
@@ -68530,7 +69916,18 @@ var require_chainId2 = __commonJSMin((exports) => {
68530
69916
  exports.CHAIN_ID = {
68531
69917
  RULE: {
68532
69918
  MJS: "mjs",
68533
- LOADERS: "loaders"
69919
+ LOADERS: "loaders",
69920
+ FONT: "font",
69921
+ IMAGE: "image",
69922
+ MEDIA: "media",
69923
+ JS: "js",
69924
+ TS: "ts",
69925
+ CSS: "css",
69926
+ LESS: "less",
69927
+ SASS: "sass",
69928
+ SVG: "svg",
69929
+ SVG_INLINE: "svg-inline",
69930
+ SVG_URL: "svg-url"
68534
69931
  },
68535
69932
  ONE_OF: {
68536
69933
  JS: "js",
@@ -68556,6 +69953,8 @@ var require_chainId2 = __commonJSMin((exports) => {
68556
69953
  USE: {
68557
69954
  TS: "ts",
68558
69955
  CSS: "css",
69956
+ SASS: "sass",
69957
+ LESS: "less",
68559
69958
  URL: "url",
68560
69959
  FILE: "file",
68561
69960
  SVGR: "svgr",
@@ -68584,6 +69983,7 @@ var require_chainId2 = __commonJSMin((exports) => {
68584
69983
  INLINE_HTML: "inline-html",
68585
69984
  BUNDLE_ANALYZER: "bundle-analyze",
68586
69985
  BOTTOM_TEMPLATE: "bottom-template",
69986
+ HTML_CROSS_ORIGIN: "html-cross-origin",
68587
69987
  MINI_CSS_EXTRACT: "mini-css-extract",
68588
69988
  REACT_FAST_REFRESH: "react-fast-refresh",
68589
69989
  NODE_POLYFILL_PROVIDE: "node-polyfill-provide"
@@ -68599,6 +69999,32 @@ var require_chainId2 = __commonJSMin((exports) => {
68599
69999
  }
68600
70000
  };
68601
70001
  });
70002
+ var require_reactVersion2 = __commonJSMin((exports) => {
70003
+ "use strict";
70004
+ var __importDefault = exports && exports.__importDefault || function(mod) {
70005
+ return mod && mod.__esModule ? mod : { "default": mod };
70006
+ };
70007
+ Object.defineProperty(exports, "__esModule", { value: true });
70008
+ exports.isReact18 = void 0;
70009
+ var path_1 = __importDefault(__require("path"));
70010
+ var compiled_1 = require_compiled2();
70011
+ var isReact18 = (cwd) => {
70012
+ const pkgPath = path_1.default.join(cwd, "package.json");
70013
+ if (!compiled_1.fs.existsSync(pkgPath)) {
70014
+ return false;
70015
+ }
70016
+ const pkgInfo = JSON.parse(compiled_1.fs.readFileSync(pkgPath, "utf8"));
70017
+ const deps = {
70018
+ ...pkgInfo.devDependencies,
70019
+ ...pkgInfo.dependencies
70020
+ };
70021
+ if (typeof deps.react !== "string") {
70022
+ return false;
70023
+ }
70024
+ return compiled_1.semver.satisfies(compiled_1.semver.minVersion(deps.react), ">=18.0.0");
70025
+ };
70026
+ exports.isReact18 = isReact18;
70027
+ });
68602
70028
  var require_dist2 = __commonJSMin((exports) => {
68603
70029
  "use strict";
68604
70030
  var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -68658,6 +70084,7 @@ var require_dist2 = __commonJSMin((exports) => {
68658
70084
  __exportStar(require_tryResolve2(), exports);
68659
70085
  __exportStar(require_analyzeProject2(), exports);
68660
70086
  __exportStar(require_chainId2(), exports);
70087
+ __exportStar(require_reactVersion2(), exports);
68661
70088
  });
68662
70089
  var require_esprima = __commonJSMin((exports, module2) => {
68663
70090
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -69779,9 +71206,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
69779
71206
  }();
69780
71207
  exports2.BlockStatement = BlockStatement;
69781
71208
  var BreakStatement = function() {
69782
- function BreakStatement2(label10) {
71209
+ function BreakStatement2(label21) {
69783
71210
  this.type = syntax_1.Syntax.BreakStatement;
69784
- this.label = label10;
71211
+ this.label = label21;
69785
71212
  }
69786
71213
  return BreakStatement2;
69787
71214
  }();
@@ -69853,9 +71280,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
69853
71280
  }();
69854
71281
  exports2.ConditionalExpression = ConditionalExpression;
69855
71282
  var ContinueStatement = function() {
69856
- function ContinueStatement2(label10) {
71283
+ function ContinueStatement2(label21) {
69857
71284
  this.type = syntax_1.Syntax.ContinueStatement;
69858
- this.label = label10;
71285
+ this.label = label21;
69859
71286
  }
69860
71287
  return ContinueStatement2;
69861
71288
  }();
@@ -70046,9 +71473,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
70046
71473
  }();
70047
71474
  exports2.ImportSpecifier = ImportSpecifier;
70048
71475
  var LabeledStatement = function() {
70049
- function LabeledStatement2(label10, body) {
71476
+ function LabeledStatement2(label21, body) {
70050
71477
  this.type = syntax_1.Syntax.LabeledStatement;
70051
- this.label = label10;
71478
+ this.label = label21;
70052
71479
  this.body = body;
70053
71480
  }
70054
71481
  return LabeledStatement2;
@@ -72195,38 +73622,38 @@ var require_esprima = __commonJSMin((exports, module2) => {
72195
73622
  Parser2.prototype.parseContinueStatement = function() {
72196
73623
  var node = this.createNode();
72197
73624
  this.expectKeyword("continue");
72198
- var label10 = null;
73625
+ var label21 = null;
72199
73626
  if (this.lookahead.type === 3 && !this.hasLineTerminator) {
72200
73627
  var id = this.parseVariableIdentifier();
72201
- label10 = id;
73628
+ label21 = id;
72202
73629
  var key = "$" + id.name;
72203
73630
  if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
72204
73631
  this.throwError(messages_1.Messages.UnknownLabel, id.name);
72205
73632
  }
72206
73633
  }
72207
73634
  this.consumeSemicolon();
72208
- if (label10 === null && !this.context.inIteration) {
73635
+ if (label21 === null && !this.context.inIteration) {
72209
73636
  this.throwError(messages_1.Messages.IllegalContinue);
72210
73637
  }
72211
- return this.finalize(node, new Node.ContinueStatement(label10));
73638
+ return this.finalize(node, new Node.ContinueStatement(label21));
72212
73639
  };
72213
73640
  Parser2.prototype.parseBreakStatement = function() {
72214
73641
  var node = this.createNode();
72215
73642
  this.expectKeyword("break");
72216
- var label10 = null;
73643
+ var label21 = null;
72217
73644
  if (this.lookahead.type === 3 && !this.hasLineTerminator) {
72218
73645
  var id = this.parseVariableIdentifier();
72219
73646
  var key = "$" + id.name;
72220
73647
  if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
72221
73648
  this.throwError(messages_1.Messages.UnknownLabel, id.name);
72222
73649
  }
72223
- label10 = id;
73650
+ label21 = id;
72224
73651
  }
72225
73652
  this.consumeSemicolon();
72226
- if (label10 === null && !this.context.inIteration && !this.context.inSwitch) {
73653
+ if (label21 === null && !this.context.inIteration && !this.context.inSwitch) {
72227
73654
  this.throwError(messages_1.Messages.IllegalBreak);
72228
73655
  }
72229
- return this.finalize(node, new Node.BreakStatement(label10));
73656
+ return this.finalize(node, new Node.BreakStatement(label21));
72230
73657
  };
72231
73658
  Parser2.prototype.parseReturnStatement = function() {
72232
73659
  if (!this.context.inFunctionBody) {
@@ -75705,7 +77132,7 @@ var require_array = __commonJSMin((exports, module2) => {
75705
77132
  splice(...args) {
75706
77133
  const { length } = this;
75707
77134
  const ret = super.splice(...args);
75708
- let [begin, deleteCount, ...items] = args;
77135
+ let [begin, deleteCount, ...items5] = args;
75709
77136
  if (begin < 0) {
75710
77137
  begin += length;
75711
77138
  }
@@ -75716,7 +77143,7 @@ var require_array = __commonJSMin((exports, module2) => {
75716
77143
  }
75717
77144
  const {
75718
77145
  length: item_length
75719
- } = items;
77146
+ } = items5;
75720
77147
  const offset = item_length - deleteCount;
75721
77148
  const start = begin + deleteCount;
75722
77149
  const count = length - start;
@@ -75743,12 +77170,12 @@ var require_array = __commonJSMin((exports, module2) => {
75743
77170
  move_comments(array, this, begin, before - begin, -begin);
75744
77171
  return array;
75745
77172
  }
75746
- unshift(...items) {
77173
+ unshift(...items5) {
75747
77174
  const { length } = this;
75748
- const ret = super.unshift(...items);
77175
+ const ret = super.unshift(...items5);
75749
77176
  const {
75750
77177
  length: items_length
75751
- } = items;
77178
+ } = items5;
75752
77179
  if (items_length > 0) {
75753
77180
  move_comments(this, this, 0, length, items_length, true);
75754
77181
  }
@@ -75771,14 +77198,14 @@ var require_array = __commonJSMin((exports, module2) => {
75771
77198
  remove_comments(this, this.length);
75772
77199
  return ret;
75773
77200
  }
75774
- concat(...items) {
77201
+ concat(...items5) {
75775
77202
  let { length } = this;
75776
- const ret = super.concat(...items);
75777
- if (!items.length) {
77203
+ const ret = super.concat(...items5);
77204
+ if (!items5.length) {
75778
77205
  return ret;
75779
77206
  }
75780
77207
  move_comments(ret, this, 0, this.length, 0);
75781
- items.forEach((item) => {
77208
+ items5.forEach((item) => {
75782
77209
  const prev = length;
75783
77210
  length += isArray(item) ? item.length : 1;
75784
77211
  if (!(item instanceof CommentArray)) {
@@ -77027,6 +78454,7 @@ var require_generator = __commonJSMin((exports) => {
77027
78454
  this.materialsManager = materialsManager;
77028
78455
  this.outputPath = outputPath;
77029
78456
  this.event = new _events.EventEmitter();
78457
+ this.event.setMaxListeners(15);
77030
78458
  this._context = _objectSpread({
77031
78459
  materials: {},
77032
78460
  config: {},
@@ -86484,18 +87912,18 @@ var require_parser = __commonJSMin((exports, module2) => {
86484
87912
  }
86485
87913
  return token;
86486
87914
  }
86487
- var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
87915
+ var symbol, preErrorSymbol, state, action2, a, r, yyval = {}, p, len, newState, expected;
86488
87916
  while (true) {
86489
87917
  state = stack[stack.length - 1];
86490
87918
  if (this.defaultActions[state]) {
86491
- action = this.defaultActions[state];
87919
+ action2 = this.defaultActions[state];
86492
87920
  } else {
86493
87921
  if (symbol === null || typeof symbol == "undefined") {
86494
87922
  symbol = lex();
86495
87923
  }
86496
- action = table[state] && table[state][symbol];
87924
+ action2 = table[state] && table[state][symbol];
86497
87925
  }
86498
- if (typeof action === "undefined" || !action.length || !action[0]) {
87926
+ if (typeof action2 === "undefined" || !action2.length || !action2[0]) {
86499
87927
  var errStr = "";
86500
87928
  if (!recovering) {
86501
87929
  expected = [];
@@ -86511,15 +87939,15 @@ var require_parser = __commonJSMin((exports, module2) => {
86511
87939
  this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected });
86512
87940
  }
86513
87941
  }
86514
- if (action[0] instanceof Array && action.length > 1) {
87942
+ if (action2[0] instanceof Array && action2.length > 1) {
86515
87943
  throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
86516
87944
  }
86517
- switch (action[0]) {
87945
+ switch (action2[0]) {
86518
87946
  case 1:
86519
87947
  stack.push(symbol);
86520
87948
  vstack.push(this.lexer.yytext);
86521
87949
  lstack.push(this.lexer.yylloc);
86522
- stack.push(action[1]);
87950
+ stack.push(action2[1]);
86523
87951
  symbol = null;
86524
87952
  if (!preErrorSymbol) {
86525
87953
  yyleng = this.lexer.yyleng;
@@ -86534,13 +87962,13 @@ var require_parser = __commonJSMin((exports, module2) => {
86534
87962
  }
86535
87963
  break;
86536
87964
  case 2:
86537
- len = this.productions_[action[1]][1];
87965
+ len = this.productions_[action2[1]][1];
86538
87966
  yyval.$ = vstack[vstack.length - len];
86539
87967
  yyval._$ = { first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column };
86540
87968
  if (ranges) {
86541
87969
  yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
86542
87970
  }
86543
- r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
87971
+ r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action2[1], vstack, lstack);
86544
87972
  if (typeof r !== "undefined") {
86545
87973
  return r;
86546
87974
  }
@@ -86549,7 +87977,7 @@ var require_parser = __commonJSMin((exports, module2) => {
86549
87977
  vstack = vstack.slice(0, -1 * len);
86550
87978
  lstack = lstack.slice(0, -1 * len);
86551
87979
  }
86552
- stack.push(this.productions_[action[1]][0]);
87980
+ stack.push(this.productions_[action2[1]][0]);
86553
87981
  vstack.push(yyval.$);
86554
87982
  lstack.push(yyval._$);
86555
87983
  newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
@@ -90014,11 +91442,11 @@ var require_javascript_compiler = __commonJSMin((exports, module2) => {
90014
91442
  var functionCall = this.source.functionCall(functionLookupCode, "call", helper.callParams);
90015
91443
  this.push(functionCall);
90016
91444
  },
90017
- itemsSeparatedBy: function itemsSeparatedBy(items, separator) {
91445
+ itemsSeparatedBy: function itemsSeparatedBy(items5, separator) {
90018
91446
  var result = [];
90019
- result.push(items[0]);
90020
- for (var i = 1; i < items.length; i++) {
90021
- result.push(separator, items[i]);
91447
+ result.push(items5[0]);
91448
+ for (var i = 1; i < items5.length; i++) {
91449
+ result.push(separator, items5[i]);
90022
91450
  }
90023
91451
  return result;
90024
91452
  },
@@ -95393,8 +96821,8 @@ var require_AsapAction = __commonJSMin((exports) => {
95393
96821
  if (delay != null && delay > 0 || delay == null && this.delay > 0) {
95394
96822
  return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
95395
96823
  }
95396
- if (!scheduler.actions.some(function(action) {
95397
- return action.id === id;
96824
+ if (!scheduler.actions.some(function(action2) {
96825
+ return action2.id === id;
95398
96826
  })) {
95399
96827
  immediateProvider_1.immediateProvider.clearImmediate(id);
95400
96828
  scheduler._scheduled = void 0;
@@ -95467,23 +96895,23 @@ var require_AsyncScheduler = __commonJSMin((exports) => {
95467
96895
  _this._scheduled = void 0;
95468
96896
  return _this;
95469
96897
  }
95470
- AsyncScheduler2.prototype.flush = function(action) {
96898
+ AsyncScheduler2.prototype.flush = function(action2) {
95471
96899
  var actions = this.actions;
95472
96900
  if (this._active) {
95473
- actions.push(action);
96901
+ actions.push(action2);
95474
96902
  return;
95475
96903
  }
95476
96904
  var error;
95477
96905
  this._active = true;
95478
96906
  do {
95479
- if (error = action.execute(action.state, action.delay)) {
96907
+ if (error = action2.execute(action2.state, action2.delay)) {
95480
96908
  break;
95481
96909
  }
95482
- } while (action = actions.shift());
96910
+ } while (action2 = actions.shift());
95483
96911
  this._active = false;
95484
96912
  if (error) {
95485
- while (action = actions.shift()) {
95486
- action.unsubscribe();
96913
+ while (action2 = actions.shift()) {
96914
+ action2.unsubscribe();
95487
96915
  }
95488
96916
  throw error;
95489
96917
  }
@@ -95523,22 +96951,22 @@ var require_AsapScheduler = __commonJSMin((exports) => {
95523
96951
  function AsapScheduler2() {
95524
96952
  return _super !== null && _super.apply(this, arguments) || this;
95525
96953
  }
95526
- AsapScheduler2.prototype.flush = function(action) {
96954
+ AsapScheduler2.prototype.flush = function(action2) {
95527
96955
  this._active = true;
95528
96956
  var flushId = this._scheduled;
95529
96957
  this._scheduled = void 0;
95530
96958
  var actions = this.actions;
95531
96959
  var error;
95532
- action = action || actions.shift();
96960
+ action2 = action2 || actions.shift();
95533
96961
  do {
95534
- if (error = action.execute(action.state, action.delay)) {
96962
+ if (error = action2.execute(action2.state, action2.delay)) {
95535
96963
  break;
95536
96964
  }
95537
- } while ((action = actions[0]) && action.id === flushId && actions.shift());
96965
+ } while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
95538
96966
  this._active = false;
95539
96967
  if (error) {
95540
- while ((action = actions[0]) && action.id === flushId && actions.shift()) {
95541
- action.unsubscribe();
96968
+ while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
96969
+ action2.unsubscribe();
95542
96970
  }
95543
96971
  throw error;
95544
96972
  }
@@ -95725,8 +97153,8 @@ var require_AnimationFrameAction = __commonJSMin((exports) => {
95725
97153
  if (delay != null && delay > 0 || delay == null && this.delay > 0) {
95726
97154
  return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
95727
97155
  }
95728
- if (!scheduler.actions.some(function(action) {
95729
- return action.id === id;
97156
+ if (!scheduler.actions.some(function(action2) {
97157
+ return action2.id === id;
95730
97158
  })) {
95731
97159
  animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
95732
97160
  scheduler._scheduled = void 0;
@@ -95768,22 +97196,22 @@ var require_AnimationFrameScheduler = __commonJSMin((exports) => {
95768
97196
  function AnimationFrameScheduler2() {
95769
97197
  return _super !== null && _super.apply(this, arguments) || this;
95770
97198
  }
95771
- AnimationFrameScheduler2.prototype.flush = function(action) {
97199
+ AnimationFrameScheduler2.prototype.flush = function(action2) {
95772
97200
  this._active = true;
95773
97201
  var flushId = this._scheduled;
95774
97202
  this._scheduled = void 0;
95775
97203
  var actions = this.actions;
95776
97204
  var error;
95777
- action = action || actions.shift();
97205
+ action2 = action2 || actions.shift();
95778
97206
  do {
95779
- if (error = action.execute(action.state, action.delay)) {
97207
+ if (error = action2.execute(action2.state, action2.delay)) {
95780
97208
  break;
95781
97209
  }
95782
- } while ((action = actions[0]) && action.id === flushId && actions.shift());
97210
+ } while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
95783
97211
  this._active = false;
95784
97212
  if (error) {
95785
- while ((action = actions[0]) && action.id === flushId && actions.shift()) {
95786
- action.unsubscribe();
97213
+ while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
97214
+ action2.unsubscribe();
95787
97215
  }
95788
97216
  throw error;
95789
97217
  }
@@ -95849,17 +97277,17 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
95849
97277
  VirtualTimeScheduler2.prototype.flush = function() {
95850
97278
  var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
95851
97279
  var error;
95852
- var action;
95853
- while ((action = actions[0]) && action.delay <= maxFrames) {
97280
+ var action2;
97281
+ while ((action2 = actions[0]) && action2.delay <= maxFrames) {
95854
97282
  actions.shift();
95855
- this.frame = action.delay;
95856
- if (error = action.execute(action.state, action.delay)) {
97283
+ this.frame = action2.delay;
97284
+ if (error = action2.execute(action2.state, action2.delay)) {
95857
97285
  break;
95858
97286
  }
95859
97287
  }
95860
97288
  if (error) {
95861
- while (action = actions.shift()) {
95862
- action.unsubscribe();
97289
+ while (action2 = actions.shift()) {
97290
+ action2.unsubscribe();
95863
97291
  }
95864
97292
  throw error;
95865
97293
  }
@@ -95891,9 +97319,9 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
95891
97319
  return _super.prototype.schedule.call(this, state, delay);
95892
97320
  }
95893
97321
  this.active = false;
95894
- var action = new VirtualAction2(this.scheduler, this.work);
95895
- this.add(action);
95896
- return action.schedule(state, delay);
97322
+ var action2 = new VirtualAction2(this.scheduler, this.work);
97323
+ this.add(action2);
97324
+ return action2.schedule(state, delay);
95897
97325
  } else {
95898
97326
  return Subscription_1.Subscription.EMPTY;
95899
97327
  }
@@ -109603,15 +111031,15 @@ var require_ora3 = __commonJSMin((exports, module2) => {
109603
111031
  return new Ora(options3);
109604
111032
  };
109605
111033
  module2.exports = oraFactory;
109606
- module2.exports.promise = (action, options3) => {
109607
- if (typeof action.then !== "function") {
111034
+ module2.exports.promise = (action2, options3) => {
111035
+ if (typeof action2.then !== "function") {
109608
111036
  throw new TypeError("Parameter `action` must be a Promise");
109609
111037
  }
109610
111038
  const spinner = new Ora(options3);
109611
111039
  spinner.start();
109612
111040
  (async () => {
109613
111041
  try {
109614
- await action;
111042
+ await action2;
109615
111043
  spinner.succeed();
109616
111044
  } catch {
109617
111045
  spinner.fail();
@@ -109792,13 +111220,13 @@ var require_base3 = __commonJSMin((exports, module2) => {
109792
111220
  }
109793
111221
  handleSubmitEvents(submit) {
109794
111222
  const self2 = this;
109795
- const validate = runAsync(this.opt.validate);
111223
+ const validate4 = runAsync(this.opt.validate);
109796
111224
  const asyncFilter = runAsync(this.opt.filter);
109797
111225
  const validation = submit.pipe(flatMap((value) => {
109798
111226
  this.startSpinner(value, this.opt.filteringText);
109799
111227
  return asyncFilter(value, self2.answers).then((filteredValue) => {
109800
111228
  this.startSpinner(filteredValue, this.opt.validatingText);
109801
- return validate(filteredValue, self2.answers).then((isValid) => ({ isValid, value: filteredValue }), (err) => ({ isValid: err, value: filteredValue }));
111229
+ return validate4(filteredValue, self2.answers).then((isValid) => ({ isValid, value: filteredValue }), (err) => ({ isValid: err, value: filteredValue }));
109802
111230
  }, (err) => ({ isValid: err }));
109803
111231
  }), share());
109804
111232
  const success = validation.pipe(filter3((state) => state.isValid === true), take(1));
@@ -127445,32 +128873,6 @@ var require_inquirer = __commonJSMin((exports, module2) => {
127445
128873
  inquirer.prompt.restoreDefaultPrompts();
127446
128874
  };
127447
128875
  });
127448
- function _arrayLikeToArray(arr, len) {
127449
- if (len == null || len > arr.length)
127450
- len = arr.length;
127451
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
127452
- arr2[i] = arr[i];
127453
- }
127454
- return arr2;
127455
- }
127456
- var init_arrayLikeToArray = __esmMin(() => {
127457
- });
127458
- function _unsupportedIterableToArray(o, minLen) {
127459
- if (!o)
127460
- return;
127461
- if (typeof o === "string")
127462
- return _arrayLikeToArray(o, minLen);
127463
- var n = Object.prototype.toString.call(o).slice(8, -1);
127464
- if (n === "Object" && o.constructor)
127465
- n = o.constructor.name;
127466
- if (n === "Map" || n === "Set")
127467
- return Array.from(o);
127468
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
127469
- return _arrayLikeToArray(o, minLen);
127470
- }
127471
- var init_unsupportedIterableToArray = __esmMin(() => {
127472
- init_arrayLikeToArray();
127473
- });
127474
128876
  function _createForOfIteratorHelper(o, allowArrayLike) {
127475
128877
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
127476
128878
  if (!it) {
@@ -127528,30 +128930,6 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
127528
128930
  var init_createForOfIteratorHelper = __esmMin(() => {
127529
128931
  init_unsupportedIterableToArray();
127530
128932
  });
127531
- function ownKeys(object, enumerableOnly) {
127532
- var keys = Object.keys(object);
127533
- if (Object.getOwnPropertySymbols) {
127534
- var symbols = Object.getOwnPropertySymbols(object);
127535
- enumerableOnly && (symbols = symbols.filter(function(sym) {
127536
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
127537
- })), keys.push.apply(keys, symbols);
127538
- }
127539
- return keys;
127540
- }
127541
- function _objectSpread2(target) {
127542
- for (var i = 1; i < arguments.length; i++) {
127543
- var source = arguments[i] != null ? arguments[i] : {};
127544
- i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
127545
- _defineProperty(target, key, source[key]);
127546
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
127547
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
127548
- });
127549
- }
127550
- return target;
127551
- }
127552
- var init_objectSpread2 = __esmMin(() => {
127553
- init_defineProperty();
127554
- });
127555
128933
  function _objectWithoutPropertiesLoose(source, excluded) {
127556
128934
  if (source == null)
127557
128935
  return {};
@@ -127651,33 +129029,6 @@ var init_constant = __esmMin(() => {
127651
129029
  SCHEMA_SHOULD_NOT_BE_EMPTY: "schema should not be empty"
127652
129030
  };
127653
129031
  });
127654
- function _arrayWithoutHoles(arr) {
127655
- if (Array.isArray(arr))
127656
- return _arrayLikeToArray(arr);
127657
- }
127658
- var init_arrayWithoutHoles = __esmMin(() => {
127659
- init_arrayLikeToArray();
127660
- });
127661
- function _iterableToArray(iter) {
127662
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
127663
- return Array.from(iter);
127664
- }
127665
- var init_iterableToArray = __esmMin(() => {
127666
- });
127667
- function _nonIterableSpread() {
127668
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
127669
- }
127670
- var init_nonIterableSpread = __esmMin(() => {
127671
- });
127672
- function _toConsumableArray(arr) {
127673
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
127674
- }
127675
- var init_toConsumableArray = __esmMin(() => {
127676
- init_arrayWithoutHoles();
127677
- init_iterableToArray();
127678
- init_unsupportedIterableToArray();
127679
- init_nonIterableSpread();
127680
- });
127681
129032
  var require_mergeWith2 = __commonJSMin((exports, module2) => {
127682
129033
  var baseMerge = require_baseMerge();
127683
129034
  var createAssigner = require_createAssigner();
@@ -127756,7 +129107,7 @@ var init_stateField = __esmMin(() => {
127756
129107
  if (typeof value.action === "function") {
127757
129108
  schema.state.value = {
127758
129109
  effectedByFields: value.effectedByFields,
127759
- action: function action(data, lastValue) {
129110
+ action: function action2(data, lastValue) {
127760
129111
  return value.action(data, lastValue || initValue);
127761
129112
  }
127762
129113
  };
@@ -128074,8 +129425,8 @@ var init_checkSchema = __esmMin(() => {
128074
129425
  };
128075
129426
  checkRepeatItems = function checkRepeatItems2(schema, extra) {
128076
129427
  if (schema.items && schema.items.length > 0) {
128077
- var items = getItems(schema, {}, extra);
128078
- var keys = items.map(function(x) {
129428
+ var items5 = getItems(schema, {}, extra);
129429
+ var keys = items5.map(function(x) {
128079
129430
  return x.key;
128080
129431
  });
128081
129432
  var tmp = [];
@@ -128257,9 +129608,9 @@ var init_baseReader = __esmMin(() => {
128257
129608
  initValues[_schema.key] = _this.getSchemaDefaultValue(_schema, brothers, isRoot);
128258
129609
  }
128259
129610
  if (_schema.items) {
128260
- var items = getItems(_schema, _this.data, _this.extra);
128261
- items.forEach(function(each) {
128262
- return readDefaultValue2(each, items.map(function(x) {
129611
+ var items5 = getItems(_schema, _this.data, _this.extra);
129612
+ items5.forEach(function(each) {
129613
+ return readDefaultValue2(each, items5.map(function(x) {
128263
129614
  return x.key;
128264
129615
  }), false);
128265
129616
  });
@@ -128277,7 +129628,7 @@ var init_baseReader = __esmMin(() => {
128277
129628
  if (!isEffectedValue(val)) {
128278
129629
  return val;
128279
129630
  }
128280
- var _ref = val, _ref$effectedByFields = _ref.effectedByFields, effectedByFields = _ref$effectedByFields === void 0 ? [] : _ref$effectedByFields, action = _ref.action, rest = _objectWithoutProperties(_ref, _excluded);
129631
+ var _ref = val, _ref$effectedByFields = _ref.effectedByFields, effectedByFields = _ref$effectedByFields === void 0 ? [] : _ref$effectedByFields, action2 = _ref.action, rest = _objectWithoutProperties(_ref, _excluded);
128281
129632
  if (isRoot) {
128282
129633
  throw Error("[".concat(schema.key, "] top level should not have effects"));
128283
129634
  }
@@ -128289,7 +129640,7 @@ var init_baseReader = __esmMin(() => {
128289
129640
  }
128290
129641
  return _objectSpread2({
128291
129642
  effectedByFields: curNodeEffectedByFields,
128292
- action
129643
+ action: action2
128293
129644
  }, rest);
128294
129645
  };
128295
129646
  return handleEffects(state.value);
@@ -128853,8 +130204,8 @@ var init_effectUtil = __esmMin(() => {
128853
130204
  return EffectUtil2;
128854
130205
  }();
128855
130206
  });
128856
- var treeshaking_exports2 = {};
128857
- __export2(treeshaking_exports2, {
130207
+ var treeshaking_exports3 = {};
130208
+ __export2(treeshaking_exports3, {
128858
130209
  BaseReader: () => BaseReader,
128859
130210
  EffectUtil: () => EffectUtil,
128860
130211
  MESSAGE: () => MESSAGE,
@@ -128883,7 +130234,7 @@ __export2(treeshaking_exports2, {
128883
130234
  setSchemaInitValue: () => setSchemaInitValue,
128884
130235
  toBoolean: () => toBoolean
128885
130236
  });
128886
- var init_treeshaking2 = __esmMin(() => {
130237
+ var init_treeshaking3 = __esmMin(() => {
128887
130238
  init_baseReader();
128888
130239
  init_types();
128889
130240
  init_constant();
@@ -128915,7 +130266,7 @@ var require_baseCliReader = __commonJSMin((exports) => {
128915
130266
  value: true
128916
130267
  });
128917
130268
  exports.BaseCliReader = void 0;
128918
- var _easyFormCore = (init_treeshaking2(), __toCommonJS2(treeshaking_exports2));
130269
+ var _easyFormCore = (init_treeshaking3(), __toCommonJS2(treeshaking_exports3));
128919
130270
  var _constant = require_constant2();
128920
130271
  function ownKeys2(object, enumerableOnly) {
128921
130272
  var keys = Object.keys(object);
@@ -129093,7 +130444,7 @@ var require_utils9 = __commonJSMin((exports) => {
129093
130444
  value: true
129094
130445
  });
129095
130446
  exports.toPromiseQuestionHandlerLoop = exports.toPromiseQuestionHandler = exports.getWhen = exports.getValidate = exports.getTransformer = exports.getQuestion = exports.getMessage = exports.getFilter = exports.getDefaultValue = exports.getChoices = void 0;
129096
- var _easyFormCore = (init_treeshaking2(), __toCommonJS2(treeshaking_exports2));
130447
+ var _easyFormCore = (init_treeshaking3(), __toCommonJS2(treeshaking_exports3));
129097
130448
  function ownKeys2(object, enumerableOnly) {
129098
130449
  var keys = Object.keys(object);
129099
130450
  if (Object.getOwnPropertySymbols) {
@@ -129273,7 +130624,7 @@ var require_utils9 = __commonJSMin((exports) => {
129273
130624
  }, choices);
129274
130625
  };
129275
130626
  exports.getQuestion = getQuestion;
129276
- var when2 = (schema, answers, extra) => {
130627
+ var when8 = (schema, answers, extra) => {
129277
130628
  if (schema.when && typeof schema.when === "function") {
129278
130629
  return schema.when(answers, extra);
129279
130630
  }
@@ -129299,7 +130650,7 @@ var require_utils9 = __commonJSMin((exports) => {
129299
130650
  });
129300
130651
  return (answers) => {
129301
130652
  try {
129302
- if (!when2(schema, answers, nodeInfo.extra)) {
130653
+ if (!when8(schema, answers, nodeInfo.extra)) {
129303
130654
  return Promise.resolve(true);
129304
130655
  }
129305
130656
  const question = getQuestion({
@@ -129919,7 +131270,7 @@ var require_node6 = __commonJSMin((exports) => {
129919
131270
  }
129920
131271
  });
129921
131272
  });
129922
- var _easyFormCore = (init_treeshaking2(), __toCommonJS2(treeshaking_exports2));
131273
+ var _easyFormCore = (init_treeshaking3(), __toCommonJS2(treeshaking_exports3));
129923
131274
  Object.keys(_easyFormCore).forEach(function(key) {
129924
131275
  if (key === "default" || key === "__esModule")
129925
131276
  return;
@@ -129957,18 +131308,18 @@ var require_transformSchema = __commonJSMin((exports) => {
129957
131308
  schemaItem.label = schemaItem.state.cliLabel;
129958
131309
  }
129959
131310
  const {
129960
- when: when2,
129961
- validate
131311
+ when: when8,
131312
+ validate: validate4
129962
131313
  } = schemaItem;
129963
131314
  schemaItem.when = (values, extra) => {
129964
131315
  if (!(0, _isUndefined2.default)(configValue[schemaItem.key])) {
129965
131316
  return false;
129966
131317
  }
129967
- return when2 ? when2(values, extra) : true;
131318
+ return when8 ? when8(values, extra) : true;
129968
131319
  };
129969
131320
  schemaItem.validate = async (value, data, extra) => {
129970
- if (validate) {
129971
- const result = await validate(value, data, extra);
131321
+ if (validate4) {
131322
+ const result = await validate4(value, data, extra);
129972
131323
  if (!result.success) {
129973
131324
  return result;
129974
131325
  }
@@ -130333,12 +131684,12 @@ var import_lodash3;
130333
131684
  var init_utils3 = __esmMin(() => {
130334
131685
  import_lodash3 = __toESM2(require_lodash3());
130335
131686
  });
130336
- var treeshaking_exports3 = {};
130337
- __export2(treeshaking_exports3, {
131687
+ var treeshaking_exports4 = {};
131688
+ __export2(treeshaking_exports4, {
130338
131689
  I18n: () => I18n2
130339
131690
  });
130340
131691
  var import_lodash4, I18n2;
130341
- var init_treeshaking3 = __esmMin(() => {
131692
+ var init_treeshaking4 = __esmMin(() => {
130342
131693
  init_classCallCheck();
130343
131694
  init_createClass();
130344
131695
  init_defineProperty();
@@ -130497,7 +131848,7 @@ var require_locale2 = __commonJSMin((exports) => {
130497
131848
  }
130498
131849
  });
130499
131850
  exports.localeKeys = exports.i18n = void 0;
130500
- var _pluginI18n = (init_treeshaking3(), __toCommonJS2(treeshaking_exports3));
131851
+ var _pluginI18n = (init_treeshaking4(), __toCommonJS2(treeshaking_exports4));
130501
131852
  var _zh = require_zh2();
130502
131853
  var _en = require_en2();
130503
131854
  var i18n2 = new _pluginI18n.I18n();
@@ -131711,459 +133062,7 @@ var require_node9 = __commonJSMin((exports) => {
131711
133062
  var import_generator_utils = __toESM2(require_node());
131712
133063
  var import_codesmith_api_app = __toESM2(require_node8());
131713
133064
  var import_codesmith_api_json = __toESM2(require_node9());
131714
- init_defineProperty();
131715
- init_treeshaking();
131716
- var ZH_LOCALE = {
131717
- solution: {
131718
- self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
131719
- mwa: "\u5E94\u7528",
131720
- module: "\u6A21\u5757",
131721
- monorepo: "Monorepo",
131722
- custom: "\u81EA\u5B9A\u4E49",
131723
- "default": "\u9ED8\u8BA4"
131724
- },
131725
- scenes: {
131726
- self: "\u8BF7\u9009\u62E9\u9879\u76EE\u573A\u666F"
131727
- },
131728
- sub_solution: {
131729
- self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
131730
- mwa: "\u5E94\u7528",
131731
- mwa_test: "\u5E94\u7528\uFF08\u6D4B\u8BD5\uFF09",
131732
- module: "\u6A21\u5757",
131733
- inner_module: "\u6A21\u5757\uFF08\u5185\u90E8\uFF09"
131734
- },
131735
- action: {
131736
- self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u8981\u7684\u64CD\u4F5C",
131737
- "function": {
131738
- self: "\u542F\u7528\u53EF\u9009\u529F\u80FD",
131739
- tailwindcss: "\u542F\u7528 Tailwind CSS \u652F\u6301",
131740
- less: "\u542F\u7528 Less \u652F\u6301",
131741
- sass: "\u542F\u7528 Sass \u652F\u6301",
131742
- bff: "\u542F\u7528\u300CBFF\u300D\u529F\u80FD",
131743
- micro_frontend: "\u542F\u7528\u300C\u5FAE\u524D\u7AEF\u300D\u6A21\u5F0F",
131744
- electron: "\u542F\u7528\u300CElectron\u300D\u6A21\u5F0F",
131745
- i18n: "\u542F\u7528\u300C\u56FD\u9645\u5316\uFF08i18n\uFF09\u300D\u529F\u80FD",
131746
- test: "\u542F\u7528\u300C\u5355\u5143\u6D4B\u8BD5 / \u96C6\u6210\u6D4B\u8BD5\u300D\u529F\u80FD",
131747
- e2e_test: "\u542F\u7528\u300CE2E \u6D4B\u8BD5\u300D\u529F\u80FD",
131748
- doc: "\u542F\u7528\u300C\u6587\u6863\u7AD9\u300D\u529F\u80FD",
131749
- storybook: "\u542F\u7528\u300CStorybook\u300D",
131750
- runtime_api: "\u542F\u7528\u300CRuntime API\u300D",
131751
- mwa_storybook: "\u542F\u7528\u300CVisual Testing (Storybook)\u300D\u6A21\u5F0F",
131752
- ssg: "\u542F\u7528\u300CSSG\u300D\u529F\u80FD",
131753
- polyfill: "\u542F\u7528\u300C\u57FA\u4E8E UA \u7684 Polyfill\u300D\u529F\u80FD",
131754
- deploy: "\u542F\u7528\u300C\u90E8\u7F72\u300D\u529F\u80FD",
131755
- proxy: "\u542F\u7528\u300C\u5168\u5C40\u4EE3\u7406\u300D"
131756
- },
131757
- element: {
131758
- self: "\u521B\u5EFA\u5DE5\u7A0B\u5143\u7D20",
131759
- entry: "\u65B0\u5EFA\u300C\u5E94\u7528\u5165\u53E3\u300D",
131760
- server: "\u65B0\u5EFA\u300CServer \u81EA\u5B9A\u4E49\u300D\u6E90\u7801\u76EE\u5F55"
131761
- },
131762
- refactor: {
131763
- self: "\u81EA\u52A8\u91CD\u6784",
131764
- bff_to_app: "BFF \u5207\u6362\u6846\u67B6\u6A21\u5F0F"
131765
- }
131766
- },
131767
- "boolean": {
131768
- yes: "\u662F",
131769
- no: "\u5426"
131770
- },
131771
- language: {
131772
- self: "\u8BF7\u9009\u62E9\u5F00\u53D1\u8BED\u8A00"
131773
- },
131774
- packageManager: {
131775
- self: "\u8BF7\u9009\u62E9\u5305\u7BA1\u7406\u5DE5\u5177"
131776
- },
131777
- runWay: {
131778
- self: "\u662F\u5426\u9700\u8981\u652F\u6301\u4EE5\u4E0B\u7C7B\u578B\u5E94\u7528",
131779
- no: "\u4E0D\u9700\u8981",
131780
- electron: "Electron"
131781
- },
131782
- needModifyConfig: {
131783
- self: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
131784
- enableLess: "\u662F\u5426\u542F\u7528 Less \u652F\u6301?",
131785
- enableSass: "\u662F\u5426\u542F\u7528 Sass \u652F\u6301?"
131786
- },
131787
- entry: {
131788
- name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
131789
- no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
131790
- no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
131791
- needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
131792
- disableStateManagement: "\u662F\u5426\u5173\u95ED\u300C\u5E94\u7528\u72B6\u6001\u7BA1\u7406\u300D\u529F\u80FD?",
131793
- clientRoute: {
131794
- self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
131795
- selfControlRoute: "\u542F\u7528\u81EA\u63A7\u8DEF\u7531",
131796
- conventionalRoute: "\u542F\u7528\u7EA6\u5B9A\u5F0F\u8DEF\u7531",
131797
- no: "\u4E0D\u542F\u7528"
131798
- }
131799
- },
131800
- packageName: {
131801
- self: "\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",
131802
- sub_name: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u540D\u79F0",
131803
- no_empty: "\u9879\u76EE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01"
131804
- },
131805
- packagePath: {
131806
- self: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u76EE\u5F55\u540D\u79F0",
131807
- no_empty: "\u76EE\u5F55\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
131808
- format: "\u76EE\u5F55\u540D\u79F0\u53EA\u80FD\u4F7F\u7528\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u548C\u5206\u9694\u7EBF\uFF08-\uFF09\u3001\u4E0B\u5212\u7EBF\uFF08_\uFF09\u548C\u76EE\u5F55\u5206\u9694\u7B26\uFF08/\uFF09"
131809
- },
131810
- framework: {
131811
- self: "\u8BF7\u9009\u62E9\u8FD0\u884C\u65F6\u6846\u67B6",
131812
- egg: "Egg",
131813
- express: "Express",
131814
- koa: "Koa",
131815
- nest: "Nest"
131816
- },
131817
- bff: {
131818
- bffType: {
131819
- self: "\u8BF7\u9009\u62E9 BFF \u7C7B\u578B",
131820
- func: "\u51FD\u6570\u6A21\u5F0F",
131821
- framework: "\u6846\u67B6\u6A21\u5F0F"
131822
- }
131823
- },
131824
- deploy: {
131825
- cloud: {
131826
- self: "\u9ED8\u8BA4\u4F7F\u7528\u6846\u67B6\u5185\u7F6E\u7684\u4EA7\u54C1\u7EA7 Web \u670D\u52A1\u5668\uFF0C\u662F\u5426\u8C03\u6574\uFF1F"
131827
- },
131828
- cdn: {
131829
- self: "\u8BF7\u9009\u62E9 CDN \u5E73\u53F0",
131830
- oss: "\u963F\u91CC\u4E91 OSS",
131831
- cos: "\u817E\u8BAF\u4E91 COS",
131832
- no: "\u4E0D\u4F7F\u7528 CDN"
131833
- },
131834
- lambda: {
131835
- self: "\u8BF7\u9009\u62E9\u4E91\u51FD\u6570\u5E73\u53F0",
131836
- fc: "\u963F\u91CC\u4E91 FC",
131837
- scf: "\u817E\u8BAF\u4E91 SCF",
131838
- no: "\u4E0D\u4F7F\u7528\u4E91\u51FD\u6570\u90E8\u7F72"
131839
- }
131840
- }
131841
- };
131842
- var EN_LOCALE = {
131843
- solution: {
131844
- self: "Please select the solution you want to create",
131845
- mwa: "MWA Solution",
131846
- module: "Module Solution",
131847
- monorepo: "Monorepo Solution",
131848
- custom: "Custom Solution",
131849
- "default": "Default"
131850
- },
131851
- scenes: {
131852
- self: "Please select the scene you want to create"
131853
- },
131854
- sub_solution: {
131855
- self: "Please select the solution you want to create",
131856
- mwa: "MWA Solution",
131857
- mwa_test: "MWA Solution(Test)",
131858
- module: "Module Solution",
131859
- inner_module: "Module Solution(Inner)",
131860
- monorepo: "Monorepo Solution"
131861
- },
131862
- action: {
131863
- self: "Action",
131864
- "function": {
131865
- self: "Enable features",
131866
- tailwindcss: "Enable Tailwind CSS",
131867
- less: "Enable Less",
131868
- sass: "Enable Sass",
131869
- bff: "Enable BFF",
131870
- micro_frontend: "Enable Micro Frontend",
131871
- electron: "Enable Electron",
131872
- i18n: "Enable Internationalization (i18n)",
131873
- test: "Enable Unit Test / Integration Test",
131874
- e2e_test: "Enable E2E Test",
131875
- doc: "Enable Document Station",
131876
- storybook: "Enable Storybook",
131877
- runtime_api: "Enable Runtime API",
131878
- mwa_storybook: "Enable Visual Testing (Storybook)",
131879
- ssg: "Enable SSG",
131880
- polyfill: "Enable UA-based Polyfill Feature",
131881
- deploy: "Enable Deploy",
131882
- proxy: "Enable Global Proxy"
131883
- },
131884
- element: {
131885
- self: "Create project element",
131886
- entry: 'New "entry"',
131887
- server: 'New "Server Custom" source code directory'
131888
- },
131889
- refactor: {
131890
- self: "Automatic refactor",
131891
- bff_to_app: "Transform BFF to frame mode"
131892
- }
131893
- },
131894
- "boolean": {
131895
- yes: "Yes",
131896
- no: "No"
131897
- },
131898
- language: {
131899
- self: "Development Language"
131900
- },
131901
- packageManager: {
131902
- self: "Package Management Tool"
131903
- },
131904
- packageName: {
131905
- self: "Package Name",
131906
- sub_name: "Package Name",
131907
- no_empty: "The package name cannot be empty!"
131908
- },
131909
- packagePath: {
131910
- self: "Package Path",
131911
- no_empty: "The package path cannot be empty!",
131912
- format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
131913
- },
131914
- runWay: {
131915
- self: "Do you need to support the following types of applications",
131916
- no: "Not Enabled",
131917
- electron: "Electron"
131918
- },
131919
- needModifyConfig: {
131920
- self: "Modify the Default Configuration?",
131921
- enableLess: "Enable Less?",
131922
- enableSass: "Enable Sass?"
131923
- },
131924
- entry: {
131925
- name: "Entry name",
131926
- no_empty: "The entry name cannot be empty!",
131927
- no_pages: 'The entry name cannot be "pages"!',
131928
- disableStateManagement: "Disable App State Management?",
131929
- clientRoute: {
131930
- self: "Client Routing",
131931
- selfControlRoute: "Enable Self Control Route",
131932
- conventionalRoute: "Enable Conventional Route",
131933
- no: "Not Enabled"
131934
- }
131935
- },
131936
- framework: {
131937
- self: "Please select the framework you want to use",
131938
- egg: "Egg",
131939
- express: "Express",
131940
- koa: "Koa",
131941
- nest: "Nest"
131942
- },
131943
- bff: {
131944
- bffType: {
131945
- self: "BFF Type",
131946
- func: "Function",
131947
- framework: "Framework"
131948
- }
131949
- },
131950
- deploy: {
131951
- cloud: {
131952
- self: "Modify the default Web Server?"
131953
- },
131954
- cdn: {
131955
- self: "Please select the cdn platform you want to use",
131956
- oss: "Aliyun OSS",
131957
- cos: "Tencent COS",
131958
- no: "Not Enabled"
131959
- },
131960
- lambda: {
131961
- self: "Please select the lambda you want to use",
131962
- fc: "Aliyun FC",
131963
- scf: "Tencent SCF",
131964
- no: "Not Enabled"
131965
- }
131966
- }
131967
- };
131968
- var i18n = new I18n();
131969
- var localeKeys = i18n.init("zh", {
131970
- zh: ZH_LOCALE,
131971
- en: EN_LOCALE
131972
- });
131973
- var _BooleanConfigName;
131974
- var BooleanConfig;
131975
- (function(BooleanConfig2) {
131976
- BooleanConfig2["NO"] = "no";
131977
- BooleanConfig2["YES"] = "yes";
131978
- })(BooleanConfig || (BooleanConfig = {}));
131979
- var BooleanConfigName = (_BooleanConfigName = {}, _defineProperty(_BooleanConfigName, BooleanConfig.NO, function() {
131980
- return i18n.t(localeKeys["boolean"].no);
131981
- }), _defineProperty(_BooleanConfigName, BooleanConfig.YES, function() {
131982
- return i18n.t(localeKeys["boolean"].yes);
131983
- }), _BooleanConfigName);
131984
- var BooleanSchemas = [{
131985
- key: BooleanConfig.NO,
131986
- label: BooleanConfigName[BooleanConfig.NO]
131987
- }, {
131988
- key: BooleanConfig.YES,
131989
- label: BooleanConfigName[BooleanConfig.YES]
131990
- }];
131991
- init_defineProperty();
131992
- var _LanguageName;
131993
- var Language;
131994
- (function(Language2) {
131995
- Language2["TS"] = "ts";
131996
- Language2["JS"] = "js";
131997
- })(Language || (Language = {}));
131998
- var LanguageName = (_LanguageName = {}, _defineProperty(_LanguageName, Language.TS, function() {
131999
- return "TS";
132000
- }), _defineProperty(_LanguageName, Language.JS, function() {
132001
- return "ES6+";
132002
- }), _LanguageName);
132003
- var LanguageSchema = {
132004
- key: "language",
132005
- type: ["string"],
132006
- label: function label() {
132007
- return i18n.t(localeKeys.language.self);
132008
- },
132009
- mutualExclusion: true,
132010
- items: Object.values(Language).map(function(language) {
132011
- return {
132012
- key: language,
132013
- label: LanguageName[language]
132014
- };
132015
- })
132016
- };
132017
- var EnableLessSchema = {
132018
- key: "enableLess",
132019
- type: ["string"],
132020
- label: function label2() {
132021
- return i18n.t(localeKeys.needModifyConfig.enableLess);
132022
- },
132023
- mutualExclusion: true,
132024
- state: {
132025
- value: BooleanConfig.NO
132026
- },
132027
- items: BooleanSchemas
132028
- };
132029
- var EnableSassSchema = {
132030
- key: "enableSass",
132031
- type: ["string"],
132032
- label: function label3() {
132033
- return i18n.t(localeKeys.needModifyConfig.enableSass);
132034
- },
132035
- mutualExclusion: true,
132036
- state: {
132037
- value: BooleanConfig.NO
132038
- },
132039
- items: BooleanSchemas
132040
- };
132041
- init_defineProperty();
132042
- init_objectSpread2();
132043
- var _FrameworkAppendTypeC;
132044
- var mwaConfigWhenFunc = function mwaConfigWhenFunc2(values) {
132045
- return values.needModifyMWAConfig === BooleanConfig.YES;
132046
- };
132047
- var RunWay;
132048
- (function(RunWay2) {
132049
- RunWay2["No"] = "no";
132050
- RunWay2["Electron"] = "electron";
132051
- })(RunWay || (RunWay = {}));
132052
- var RunWaySchema = {
132053
- key: "runWay",
132054
- type: ["string"],
132055
- label: function label4() {
132056
- return i18n.t(localeKeys.runWay.self);
132057
- },
132058
- mutualExclusion: true,
132059
- when: function when(_, extra) {
132060
- return (extra === null || extra === void 0 ? void 0 : extra.isEmptySrc) === void 0 ? true : Boolean(extra === null || extra === void 0 ? void 0 : extra.isEmptySrc);
132061
- },
132062
- state: {
132063
- value: RunWay.No
132064
- },
132065
- items: Object.values(RunWay).map(function(runWay) {
132066
- return {
132067
- key: runWay,
132068
- label: function label10() {
132069
- return i18n.t(localeKeys.runWay[runWay]);
132070
- }
132071
- };
132072
- })
132073
- };
132074
- var ClientRoute;
132075
- (function(ClientRoute2) {
132076
- ClientRoute2["SelfControlRoute"] = "selfControlRoute";
132077
- ClientRoute2["ConventionalRoute"] = "conventionalRoute";
132078
- ClientRoute2["No"] = "no";
132079
- })(ClientRoute || (ClientRoute = {}));
132080
- var ClientRouteSchema = {
132081
- key: "clientRoute",
132082
- type: ["string"],
132083
- label: function label5() {
132084
- return i18n.t(localeKeys.entry.clientRoute.self);
132085
- },
132086
- mutualExclusion: true,
132087
- when: mwaConfigWhenFunc,
132088
- state: {
132089
- value: ClientRoute.SelfControlRoute
132090
- },
132091
- items: Object.values(ClientRoute).map(function(clientRoute) {
132092
- return {
132093
- key: clientRoute,
132094
- label: function label10() {
132095
- return i18n.t(localeKeys.entry.clientRoute[clientRoute]);
132096
- }
132097
- };
132098
- })
132099
- };
132100
- var DisableStateManagementSchema = {
132101
- key: "disableStateManagement",
132102
- type: ["string"],
132103
- label: function label6() {
132104
- return i18n.t(localeKeys.entry.disableStateManagement);
132105
- },
132106
- mutualExclusion: true,
132107
- when: mwaConfigWhenFunc,
132108
- state: {
132109
- value: BooleanConfig.NO
132110
- },
132111
- items: BooleanSchemas
132112
- };
132113
- var EnableMWALessSchema = _objectSpread2(_objectSpread2({}, EnableLessSchema), {}, {
132114
- when: mwaConfigWhenFunc
132115
- });
132116
- var EnableMWASassSchema = _objectSpread2(_objectSpread2({}, EnableSassSchema), {}, {
132117
- when: mwaConfigWhenFunc
132118
- });
132119
- var NeedModifyMWAConfigSchema = {
132120
- key: "needModifyMWAConfig",
132121
- label: function label7() {
132122
- return i18n.t(localeKeys.needModifyConfig.self);
132123
- },
132124
- type: ["string"],
132125
- mutualExclusion: true,
132126
- state: {
132127
- value: BooleanConfig.NO
132128
- },
132129
- items: BooleanSchemas
132130
- };
132131
- var Framework;
132132
- (function(Framework2) {
132133
- Framework2["Express"] = "express";
132134
- Framework2["Koa"] = "koa";
132135
- Framework2["Egg"] = "egg";
132136
- Framework2["Nest"] = "nest";
132137
- })(Framework || (Framework = {}));
132138
- var FrameworkSchema = {
132139
- key: "framework",
132140
- type: ["string"],
132141
- label: function label8() {
132142
- return i18n.t(localeKeys.framework.self);
132143
- },
132144
- mutualExclusion: true,
132145
- items: Object.values(Framework).map(function(framework) {
132146
- return {
132147
- key: framework,
132148
- label: function label10() {
132149
- return i18n.t(localeKeys.framework[framework]);
132150
- }
132151
- };
132152
- })
132153
- };
132154
- var FrameworkAppendTypeContent = (_FrameworkAppendTypeC = {}, _defineProperty(_FrameworkAppendTypeC, Framework.Express, "/// <reference types='@modern-js/plugin-express/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Koa, "/// <reference types='@modern-js/plugin-koa/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Egg, "/// <reference types='@modern-js/plugin-egg/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Nest, "/// <reference types='@modern-js/plugin-nest/types' />"), _FrameworkAppendTypeC);
132155
- var ServerSchemas = [FrameworkSchema];
132156
- var ServerSchema = {
132157
- key: "server",
132158
- label: function label9() {
132159
- return i18n.t(localeKeys.action.element.server);
132160
- },
132161
- isObject: true,
132162
- items: ServerSchemas
132163
- };
132164
- var MWADefaultServerConfig = {
132165
- framework: Framework.Express
132166
- };
133065
+ init_treeshaking2();
132167
133066
  function isEmptyServerDir(serverDir) {
132168
133067
  const files = import_generator_utils.fs.readdirSync(serverDir);
132169
133068
  if (files.length === 0) {
@@ -132214,12 +133113,17 @@ var handleTemplateFile = async (context, generator, appApi) => {
132214
133113
  [`dependencies.${framework}`]: `^${await (0, import_generator_utils.getPackageVersion)(framework)}`
132215
133114
  };
132216
133115
  }
133116
+ const getServerPluginVersion = (packageName) => {
133117
+ return (0, import_generator_utils.getModernPluginVersion)(Solution.MWA, packageName, {
133118
+ registry: context.config.registry
133119
+ });
133120
+ };
132217
133121
  await jsonAPI.update(context.materials.default.get(import_path.default.join(appDir, "package.json")), {
132218
133122
  query: {},
132219
133123
  update: {
132220
133124
  $set: {
132221
- "dependencies.@modern-js/plugin-server": `^${await (0, import_generator_utils.getPackageVersion)("@modern-js/plugin-server")}`,
132222
- [`dependencies.@modern-js/plugin-${framework}`]: `^${await (0, import_generator_utils.getPackageVersion)(`@modern-js/plugin-${framework}`)}`,
133125
+ "dependencies.@modern-js/plugin-server": `${await getServerPluginVersion("@modern-js/plugin-server")}`,
133126
+ [`dependencies.@modern-js/plugin-${framework}`]: `${await getServerPluginVersion(`@modern-js/plugin-${framework}`)}`,
132223
133127
  ...updateInfo
132224
133128
  }
132225
133129
  }