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