@modern-js/repo-generator 0.0.0-next-20240227075921 → 0.0.0-next-20240228075637
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +263 -347
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -18187,9 +18187,9 @@ var require_src3 = __commonJS({
|
|
|
18187
18187
|
}
|
|
18188
18188
|
});
|
|
18189
18189
|
|
|
18190
|
-
// ../../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
18190
|
+
// ../../../../node_modules/.pnpm/follow-redirects@1.15.1/node_modules/follow-redirects/debug.js
|
|
18191
18191
|
var require_debug = __commonJS({
|
|
18192
|
-
"../../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
18192
|
+
"../../../../node_modules/.pnpm/follow-redirects@1.15.1/node_modules/follow-redirects/debug.js"(exports, module2) {
|
|
18193
18193
|
"use strict";
|
|
18194
18194
|
var debug;
|
|
18195
18195
|
module2.exports = function() {
|
|
@@ -18208,9 +18208,9 @@ var require_debug = __commonJS({
|
|
|
18208
18208
|
}
|
|
18209
18209
|
});
|
|
18210
18210
|
|
|
18211
|
-
// ../../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
18211
|
+
// ../../../../node_modules/.pnpm/follow-redirects@1.15.1/node_modules/follow-redirects/index.js
|
|
18212
18212
|
var require_follow_redirects = __commonJS({
|
|
18213
|
-
"../../../../node_modules/.pnpm/follow-redirects@1.15.
|
|
18213
|
+
"../../../../node_modules/.pnpm/follow-redirects@1.15.1/node_modules/follow-redirects/index.js"(exports, module2) {
|
|
18214
18214
|
"use strict";
|
|
18215
18215
|
var url2 = require("url");
|
|
18216
18216
|
var URL2 = url2.URL;
|
|
@@ -18219,25 +18219,6 @@ var require_follow_redirects = __commonJS({
|
|
|
18219
18219
|
var Writable = require("stream").Writable;
|
|
18220
18220
|
var assert = require("assert");
|
|
18221
18221
|
var debug = require_debug();
|
|
18222
|
-
var useNativeURL = false;
|
|
18223
|
-
try {
|
|
18224
|
-
assert(new URL2());
|
|
18225
|
-
} catch (error) {
|
|
18226
|
-
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
18227
|
-
}
|
|
18228
|
-
var preservedUrlFields = [
|
|
18229
|
-
"auth",
|
|
18230
|
-
"host",
|
|
18231
|
-
"hostname",
|
|
18232
|
-
"href",
|
|
18233
|
-
"path",
|
|
18234
|
-
"pathname",
|
|
18235
|
-
"port",
|
|
18236
|
-
"protocol",
|
|
18237
|
-
"query",
|
|
18238
|
-
"search",
|
|
18239
|
-
"hash"
|
|
18240
|
-
];
|
|
18241
18222
|
var events = ["abort", "aborted", "connect", "error", "socket", "timeout"];
|
|
18242
18223
|
var eventHandlers = /* @__PURE__ */ Object.create(null);
|
|
18243
18224
|
events.forEach(function(event) {
|
|
@@ -18245,19 +18226,13 @@ var require_follow_redirects = __commonJS({
|
|
|
18245
18226
|
this._redirectable.emit(event, arg1, arg2, arg3);
|
|
18246
18227
|
};
|
|
18247
18228
|
});
|
|
18248
|
-
var InvalidUrlError = createErrorType(
|
|
18249
|
-
"ERR_INVALID_URL",
|
|
18250
|
-
"Invalid URL",
|
|
18251
|
-
TypeError
|
|
18252
|
-
);
|
|
18253
18229
|
var RedirectionError = createErrorType(
|
|
18254
18230
|
"ERR_FR_REDIRECTION_FAILURE",
|
|
18255
18231
|
"Redirected request failed"
|
|
18256
18232
|
);
|
|
18257
18233
|
var TooManyRedirectsError = createErrorType(
|
|
18258
18234
|
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
18259
|
-
"Maximum number of redirects exceeded"
|
|
18260
|
-
RedirectionError
|
|
18235
|
+
"Maximum number of redirects exceeded"
|
|
18261
18236
|
);
|
|
18262
18237
|
var MaxBodyLengthExceededError = createErrorType(
|
|
18263
18238
|
"ERR_FR_MAX_BODY_LENGTH_EXCEEDED",
|
|
@@ -18267,7 +18242,6 @@ var require_follow_redirects = __commonJS({
|
|
|
18267
18242
|
"ERR_STREAM_WRITE_AFTER_END",
|
|
18268
18243
|
"write after end"
|
|
18269
18244
|
);
|
|
18270
|
-
var destroy2 = Writable.prototype.destroy || noop2;
|
|
18271
18245
|
function RedirectableRequest(options, responseCallback) {
|
|
18272
18246
|
Writable.call(this);
|
|
18273
18247
|
this._sanitizeOptions(options);
|
|
@@ -18283,33 +18257,23 @@ var require_follow_redirects = __commonJS({
|
|
|
18283
18257
|
}
|
|
18284
18258
|
var self3 = this;
|
|
18285
18259
|
this._onNativeResponse = function(response) {
|
|
18286
|
-
|
|
18287
|
-
self3._processResponse(response);
|
|
18288
|
-
} catch (cause) {
|
|
18289
|
-
self3.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
|
|
18290
|
-
}
|
|
18260
|
+
self3._processResponse(response);
|
|
18291
18261
|
};
|
|
18292
18262
|
this._performRequest();
|
|
18293
18263
|
}
|
|
18294
18264
|
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
|
18295
18265
|
RedirectableRequest.prototype.abort = function() {
|
|
18296
|
-
|
|
18297
|
-
this._currentRequest.abort();
|
|
18266
|
+
abortRequest(this._currentRequest);
|
|
18298
18267
|
this.emit("abort");
|
|
18299
18268
|
};
|
|
18300
|
-
RedirectableRequest.prototype.destroy = function(error) {
|
|
18301
|
-
destroyRequest(this._currentRequest, error);
|
|
18302
|
-
destroy2.call(this, error);
|
|
18303
|
-
return this;
|
|
18304
|
-
};
|
|
18305
18269
|
RedirectableRequest.prototype.write = function(data, encoding, callback) {
|
|
18306
18270
|
if (this._ending) {
|
|
18307
18271
|
throw new WriteAfterEndError();
|
|
18308
18272
|
}
|
|
18309
|
-
if (!
|
|
18273
|
+
if (!(typeof data === "string" || typeof data === "object" && "length" in data)) {
|
|
18310
18274
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
|
18311
18275
|
}
|
|
18312
|
-
if (
|
|
18276
|
+
if (typeof encoding === "function") {
|
|
18313
18277
|
callback = encoding;
|
|
18314
18278
|
encoding = null;
|
|
18315
18279
|
}
|
|
@@ -18329,10 +18293,10 @@ var require_follow_redirects = __commonJS({
|
|
|
18329
18293
|
}
|
|
18330
18294
|
};
|
|
18331
18295
|
RedirectableRequest.prototype.end = function(data, encoding, callback) {
|
|
18332
|
-
if (
|
|
18296
|
+
if (typeof data === "function") {
|
|
18333
18297
|
callback = data;
|
|
18334
18298
|
data = encoding = null;
|
|
18335
|
-
} else if (
|
|
18299
|
+
} else if (typeof encoding === "function") {
|
|
18336
18300
|
callback = encoding;
|
|
18337
18301
|
encoding = null;
|
|
18338
18302
|
}
|
|
@@ -18382,7 +18346,6 @@ var require_follow_redirects = __commonJS({
|
|
|
18382
18346
|
self3.removeListener("abort", clearTimer);
|
|
18383
18347
|
self3.removeListener("error", clearTimer);
|
|
18384
18348
|
self3.removeListener("response", clearTimer);
|
|
18385
|
-
self3.removeListener("close", clearTimer);
|
|
18386
18349
|
if (callback) {
|
|
18387
18350
|
self3.removeListener("timeout", callback);
|
|
18388
18351
|
}
|
|
@@ -18402,7 +18365,6 @@ var require_follow_redirects = __commonJS({
|
|
|
18402
18365
|
this.on("abort", clearTimer);
|
|
18403
18366
|
this.on("error", clearTimer);
|
|
18404
18367
|
this.on("response", clearTimer);
|
|
18405
|
-
this.on("close", clearTimer);
|
|
18406
18368
|
return this;
|
|
18407
18369
|
};
|
|
18408
18370
|
[
|
|
@@ -18446,7 +18408,8 @@ var require_follow_redirects = __commonJS({
|
|
|
18446
18408
|
var protocol = this._options.protocol;
|
|
18447
18409
|
var nativeProtocol = this._options.nativeProtocols[protocol];
|
|
18448
18410
|
if (!nativeProtocol) {
|
|
18449
|
-
|
|
18411
|
+
this.emit("error", new TypeError("Unsupported protocol " + protocol));
|
|
18412
|
+
return;
|
|
18450
18413
|
}
|
|
18451
18414
|
if (this._options.agents) {
|
|
18452
18415
|
var scheme = protocol.slice(0, -1);
|
|
@@ -18460,7 +18423,7 @@ var require_follow_redirects = __commonJS({
|
|
|
18460
18423
|
this._currentUrl = /^\//.test(this._options.path) ? url2.format(this._options) : (
|
|
18461
18424
|
// When making a request to a proxy, […]
|
|
18462
18425
|
// a client MUST send the target URI in absolute-form […].
|
|
18463
|
-
this._options.path
|
|
18426
|
+
this._currentUrl = this._options.path
|
|
18464
18427
|
);
|
|
18465
18428
|
if (this._isRedirect) {
|
|
18466
18429
|
var i = 0;
|
|
@@ -18499,10 +18462,11 @@ var require_follow_redirects = __commonJS({
|
|
|
18499
18462
|
this._requestBodyBuffers = [];
|
|
18500
18463
|
return;
|
|
18501
18464
|
}
|
|
18502
|
-
|
|
18465
|
+
abortRequest(this._currentRequest);
|
|
18503
18466
|
response.destroy();
|
|
18504
18467
|
if (++this._redirectCount > this._options.maxRedirects) {
|
|
18505
|
-
|
|
18468
|
+
this.emit("error", new TooManyRedirectsError());
|
|
18469
|
+
return;
|
|
18506
18470
|
}
|
|
18507
18471
|
var requestHeaders;
|
|
18508
18472
|
var beforeRedirect = this._options.beforeRedirect;
|
|
@@ -18523,17 +18487,24 @@ var require_follow_redirects = __commonJS({
|
|
|
18523
18487
|
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
18524
18488
|
}
|
|
18525
18489
|
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
18526
|
-
var currentUrlParts =
|
|
18490
|
+
var currentUrlParts = url2.parse(this._currentUrl);
|
|
18527
18491
|
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
18528
18492
|
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url2.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
18529
|
-
var redirectUrl
|
|
18530
|
-
|
|
18493
|
+
var redirectUrl;
|
|
18494
|
+
try {
|
|
18495
|
+
redirectUrl = url2.resolve(currentUrl, location);
|
|
18496
|
+
} catch (cause) {
|
|
18497
|
+
this.emit("error", new RedirectionError(cause));
|
|
18498
|
+
return;
|
|
18499
|
+
}
|
|
18500
|
+
debug("redirecting to", redirectUrl);
|
|
18531
18501
|
this._isRedirect = true;
|
|
18532
|
-
|
|
18533
|
-
|
|
18502
|
+
var redirectUrlParts = url2.parse(redirectUrl);
|
|
18503
|
+
Object.assign(this._options, redirectUrlParts);
|
|
18504
|
+
if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
|
|
18534
18505
|
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
18535
18506
|
}
|
|
18536
|
-
if (
|
|
18507
|
+
if (typeof beforeRedirect === "function") {
|
|
18537
18508
|
var responseDetails = {
|
|
18538
18509
|
headers: response.headers,
|
|
18539
18510
|
statusCode
|
|
@@ -18543,10 +18514,19 @@ var require_follow_redirects = __commonJS({
|
|
|
18543
18514
|
method,
|
|
18544
18515
|
headers: requestHeaders
|
|
18545
18516
|
};
|
|
18546
|
-
|
|
18517
|
+
try {
|
|
18518
|
+
beforeRedirect(this._options, responseDetails, requestDetails);
|
|
18519
|
+
} catch (err) {
|
|
18520
|
+
this.emit("error", err);
|
|
18521
|
+
return;
|
|
18522
|
+
}
|
|
18547
18523
|
this._sanitizeOptions(this._options);
|
|
18548
18524
|
}
|
|
18549
|
-
|
|
18525
|
+
try {
|
|
18526
|
+
this._performRequest();
|
|
18527
|
+
} catch (cause) {
|
|
18528
|
+
this.emit("error", new RedirectionError(cause));
|
|
18529
|
+
}
|
|
18550
18530
|
};
|
|
18551
18531
|
function wrap(protocols) {
|
|
18552
18532
|
var exports2 = {
|
|
@@ -18559,16 +18539,21 @@ var require_follow_redirects = __commonJS({
|
|
|
18559
18539
|
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
|
18560
18540
|
var wrappedProtocol = exports2[scheme] = Object.create(nativeProtocol);
|
|
18561
18541
|
function request(input, options, callback) {
|
|
18562
|
-
if (
|
|
18563
|
-
|
|
18564
|
-
|
|
18565
|
-
|
|
18542
|
+
if (typeof input === "string") {
|
|
18543
|
+
var urlStr = input;
|
|
18544
|
+
try {
|
|
18545
|
+
input = urlToOptions(new URL2(urlStr));
|
|
18546
|
+
} catch (err) {
|
|
18547
|
+
input = url2.parse(urlStr);
|
|
18548
|
+
}
|
|
18549
|
+
} else if (URL2 && input instanceof URL2) {
|
|
18550
|
+
input = urlToOptions(input);
|
|
18566
18551
|
} else {
|
|
18567
18552
|
callback = options;
|
|
18568
|
-
options =
|
|
18553
|
+
options = input;
|
|
18569
18554
|
input = { protocol };
|
|
18570
18555
|
}
|
|
18571
|
-
if (
|
|
18556
|
+
if (typeof options === "function") {
|
|
18572
18557
|
callback = options;
|
|
18573
18558
|
options = null;
|
|
18574
18559
|
}
|
|
@@ -18577,9 +18562,6 @@ var require_follow_redirects = __commonJS({
|
|
|
18577
18562
|
maxBodyLength: exports2.maxBodyLength
|
|
18578
18563
|
}, input, options);
|
|
18579
18564
|
options.nativeProtocols = nativeProtocols;
|
|
18580
|
-
if (!isString5(options.host) && !isString5(options.hostname)) {
|
|
18581
|
-
options.hostname = "::1";
|
|
18582
|
-
}
|
|
18583
18565
|
assert.equal(options.protocol, protocol, "protocol mismatch");
|
|
18584
18566
|
debug("options", options);
|
|
18585
18567
|
return new RedirectableRequest(options, callback);
|
|
@@ -18598,43 +18580,23 @@ var require_follow_redirects = __commonJS({
|
|
|
18598
18580
|
}
|
|
18599
18581
|
function noop2() {
|
|
18600
18582
|
}
|
|
18601
|
-
function
|
|
18602
|
-
var
|
|
18603
|
-
|
|
18604
|
-
|
|
18605
|
-
|
|
18606
|
-
|
|
18607
|
-
|
|
18608
|
-
|
|
18609
|
-
|
|
18610
|
-
|
|
18611
|
-
|
|
18612
|
-
|
|
18613
|
-
|
|
18614
|
-
|
|
18615
|
-
|
|
18616
|
-
function validateUrl(input) {
|
|
18617
|
-
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
|
18618
|
-
throw new InvalidUrlError({ input: input.href || input });
|
|
18619
|
-
}
|
|
18620
|
-
if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {
|
|
18621
|
-
throw new InvalidUrlError({ input: input.href || input });
|
|
18622
|
-
}
|
|
18623
|
-
return input;
|
|
18624
|
-
}
|
|
18625
|
-
function spreadUrlObject(urlObject, target) {
|
|
18626
|
-
var spread3 = target || {};
|
|
18627
|
-
for (var key of preservedUrlFields) {
|
|
18628
|
-
spread3[key] = urlObject[key];
|
|
18629
|
-
}
|
|
18630
|
-
if (spread3.hostname.startsWith("[")) {
|
|
18631
|
-
spread3.hostname = spread3.hostname.slice(1, -1);
|
|
18632
|
-
}
|
|
18633
|
-
if (spread3.port !== "") {
|
|
18634
|
-
spread3.port = Number(spread3.port);
|
|
18583
|
+
function urlToOptions(urlObject) {
|
|
18584
|
+
var options = {
|
|
18585
|
+
protocol: urlObject.protocol,
|
|
18586
|
+
hostname: urlObject.hostname.startsWith("[") ? (
|
|
18587
|
+
/* istanbul ignore next */
|
|
18588
|
+
urlObject.hostname.slice(1, -1)
|
|
18589
|
+
) : urlObject.hostname,
|
|
18590
|
+
hash: urlObject.hash,
|
|
18591
|
+
search: urlObject.search,
|
|
18592
|
+
pathname: urlObject.pathname,
|
|
18593
|
+
path: urlObject.pathname + urlObject.search,
|
|
18594
|
+
href: urlObject.href
|
|
18595
|
+
};
|
|
18596
|
+
if (urlObject.port !== "") {
|
|
18597
|
+
options.port = Number(urlObject.port);
|
|
18635
18598
|
}
|
|
18636
|
-
|
|
18637
|
-
return spread3;
|
|
18599
|
+
return options;
|
|
18638
18600
|
}
|
|
18639
18601
|
function removeMatchingHeaders(regex2, headers) {
|
|
18640
18602
|
var lastValue;
|
|
@@ -18646,50 +18608,33 @@ var require_follow_redirects = __commonJS({
|
|
|
18646
18608
|
}
|
|
18647
18609
|
return lastValue === null || typeof lastValue === "undefined" ? void 0 : String(lastValue).trim();
|
|
18648
18610
|
}
|
|
18649
|
-
function createErrorType(code,
|
|
18650
|
-
function CustomError(
|
|
18611
|
+
function createErrorType(code, defaultMessage) {
|
|
18612
|
+
function CustomError(cause) {
|
|
18651
18613
|
Error.captureStackTrace(this, this.constructor);
|
|
18652
|
-
|
|
18653
|
-
|
|
18654
|
-
|
|
18655
|
-
|
|
18656
|
-
|
|
18657
|
-
Object.defineProperties(CustomError.prototype, {
|
|
18658
|
-
constructor: {
|
|
18659
|
-
value: CustomError,
|
|
18660
|
-
enumerable: false
|
|
18661
|
-
},
|
|
18662
|
-
name: {
|
|
18663
|
-
value: "Error [" + code + "]",
|
|
18664
|
-
enumerable: false
|
|
18614
|
+
if (!cause) {
|
|
18615
|
+
this.message = defaultMessage;
|
|
18616
|
+
} else {
|
|
18617
|
+
this.message = defaultMessage + ": " + cause.message;
|
|
18618
|
+
this.cause = cause;
|
|
18665
18619
|
}
|
|
18666
|
-
}
|
|
18620
|
+
}
|
|
18621
|
+
CustomError.prototype = new Error();
|
|
18622
|
+
CustomError.prototype.constructor = CustomError;
|
|
18623
|
+
CustomError.prototype.name = "Error [" + code + "]";
|
|
18624
|
+
CustomError.prototype.code = code;
|
|
18667
18625
|
return CustomError;
|
|
18668
18626
|
}
|
|
18669
|
-
function
|
|
18627
|
+
function abortRequest(request) {
|
|
18670
18628
|
for (var event of events) {
|
|
18671
18629
|
request.removeListener(event, eventHandlers[event]);
|
|
18672
18630
|
}
|
|
18673
18631
|
request.on("error", noop2);
|
|
18674
|
-
request.
|
|
18632
|
+
request.abort();
|
|
18675
18633
|
}
|
|
18676
18634
|
function isSubdomain(subdomain, domain) {
|
|
18677
|
-
|
|
18678
|
-
var dot = subdomain.length - domain.length - 1;
|
|
18635
|
+
const dot = subdomain.length - domain.length - 1;
|
|
18679
18636
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
18680
18637
|
}
|
|
18681
|
-
function isString5(value) {
|
|
18682
|
-
return typeof value === "string" || value instanceof String;
|
|
18683
|
-
}
|
|
18684
|
-
function isFunction5(value) {
|
|
18685
|
-
return typeof value === "function";
|
|
18686
|
-
}
|
|
18687
|
-
function isBuffer2(value) {
|
|
18688
|
-
return typeof value === "object" && "length" in value;
|
|
18689
|
-
}
|
|
18690
|
-
function isURL(value) {
|
|
18691
|
-
return URL2 && value instanceof URL2;
|
|
18692
|
-
}
|
|
18693
18638
|
module2.exports = wrap({ http: http2, https: https2 });
|
|
18694
18639
|
module2.exports.wrap = wrap;
|
|
18695
18640
|
}
|
|
@@ -31459,9 +31404,9 @@ var require_ejs = __commonJS({
|
|
|
31459
31404
|
}
|
|
31460
31405
|
});
|
|
31461
31406
|
|
|
31462
|
-
// ../../../../node_modules/.pnpm/@modern-js+utils@2.
|
|
31407
|
+
// ../../../../node_modules/.pnpm/@modern-js+utils@2.45.0/node_modules/@modern-js/utils/dist/compiled/chalk/index.js
|
|
31463
31408
|
var require_chalk = __commonJS({
|
|
31464
|
-
"../../../../node_modules/.pnpm/@modern-js+utils@2.
|
|
31409
|
+
"../../../../node_modules/.pnpm/@modern-js+utils@2.45.0/node_modules/@modern-js/utils/dist/compiled/chalk/index.js"(exports, module2) {
|
|
31465
31410
|
"use strict";
|
|
31466
31411
|
(() => {
|
|
31467
31412
|
var e = { 44: (e2, t2, n2) => {
|
|
@@ -68856,12 +68801,12 @@ function _define_property(obj, key, value) {
|
|
|
68856
68801
|
return obj;
|
|
68857
68802
|
}
|
|
68858
68803
|
|
|
68859
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
68804
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
68860
68805
|
var import_utils46 = require("@modern-js/utils");
|
|
68861
68806
|
var import_lodash6 = require("@modern-js/utils/lodash");
|
|
68862
68807
|
var import_comment_json = __toESM(require_src2());
|
|
68863
68808
|
|
|
68864
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
68809
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
|
|
68865
68810
|
var import_utils = require("@modern-js/utils");
|
|
68866
68811
|
async function canUseNvm() {
|
|
68867
68812
|
try {
|
|
@@ -68911,7 +68856,7 @@ async function canUsePnpm() {
|
|
|
68911
68856
|
}
|
|
68912
68857
|
}
|
|
68913
68858
|
|
|
68914
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
68859
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
|
|
68915
68860
|
var import_utils2 = require("@modern-js/utils");
|
|
68916
68861
|
function execaWithStreamLog(command, args, options) {
|
|
68917
68862
|
const promise = (0, import_utils2.execa)(command, args, {
|
|
@@ -69007,7 +68952,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
|
|
|
69007
68952
|
throw new Error("please install pnpm first");
|
|
69008
68953
|
}
|
|
69009
68954
|
|
|
69010
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
68955
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.4/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
|
|
69011
68956
|
var NpmAPI = class {
|
|
69012
68957
|
npmInstall({ cwd, registryUrl, ignoreScripts }) {
|
|
69013
68958
|
return npmInstall({
|
|
@@ -69036,7 +68981,7 @@ var NpmAPI = class {
|
|
|
69036
68981
|
}
|
|
69037
68982
|
};
|
|
69038
68983
|
|
|
69039
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
|
68984
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
|
|
69040
68985
|
var import_utils4 = require("@modern-js/utils");
|
|
69041
68986
|
async function canUseGit() {
|
|
69042
68987
|
try {
|
|
@@ -69111,7 +69056,7 @@ async function gitCommit(cwd, commitMessage) {
|
|
|
69111
69056
|
});
|
|
69112
69057
|
}
|
|
69113
69058
|
|
|
69114
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
|
69059
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
|
|
69115
69060
|
var GitAPI = class {
|
|
69116
69061
|
async isInGitRepo(cwd = this.generatorCore.outputPath) {
|
|
69117
69062
|
const canUse = await canUseGit();
|
|
@@ -69163,7 +69108,7 @@ var GitAPI = class {
|
|
|
69163
69108
|
}
|
|
69164
69109
|
};
|
|
69165
69110
|
|
|
69166
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69111
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
|
|
69167
69112
|
var LoggerLevel;
|
|
69168
69113
|
(function(LoggerLevel2) {
|
|
69169
69114
|
LoggerLevel2["Error"] = "error";
|
|
@@ -69184,7 +69129,7 @@ var LevelPriority = [
|
|
|
69184
69129
|
LoggerLevel.Stream
|
|
69185
69130
|
];
|
|
69186
69131
|
|
|
69187
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69132
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
|
|
69188
69133
|
var import_utils6 = require("@modern-js/utils");
|
|
69189
69134
|
var Logger = class {
|
|
69190
69135
|
get currentLevelIndex() {
|
|
@@ -69245,23 +69190,23 @@ var Logger = class {
|
|
|
69245
69190
|
}
|
|
69246
69191
|
};
|
|
69247
69192
|
|
|
69248
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69193
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
|
69249
69194
|
var import_path7 = __toESM(require("path"));
|
|
69250
69195
|
|
|
69251
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69196
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
|
69252
69197
|
var import_path4 = __toESM(require("path"));
|
|
69253
69198
|
var import_events = require("events");
|
|
69254
69199
|
var import_utils11 = require("@modern-js/utils");
|
|
69255
69200
|
|
|
69256
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69201
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
|
69257
69202
|
var import_path2 = __toESM(require("path"));
|
|
69258
69203
|
var import_utils8 = require("@modern-js/utils");
|
|
69259
69204
|
|
|
69260
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69205
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
69261
69206
|
var import_path = __toESM(require("path"));
|
|
69262
69207
|
var import_utils7 = require("@modern-js/utils");
|
|
69263
69208
|
|
|
69264
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69209
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
|
|
69265
69210
|
var IMAGE_EXT_LIST = [
|
|
69266
69211
|
".jpg",
|
|
69267
69212
|
".jpeg",
|
|
@@ -69275,7 +69220,7 @@ var IMAGE_EXT_LIST = [
|
|
|
69275
69220
|
".wmf"
|
|
69276
69221
|
];
|
|
69277
69222
|
|
|
69278
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69223
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
69279
69224
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
69280
69225
|
var FsResource = class {
|
|
69281
69226
|
async value() {
|
|
@@ -69301,7 +69246,7 @@ var FsResource = class {
|
|
|
69301
69246
|
}
|
|
69302
69247
|
};
|
|
69303
69248
|
|
|
69304
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69249
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
|
69305
69250
|
var promisifyGlob = function(pattern, options) {
|
|
69306
69251
|
return new Promise((resolve, reject) => {
|
|
69307
69252
|
(0, import_utils8.glob)(pattern, options, (err, files) => err === null ? resolve(files) : reject(err));
|
|
@@ -69329,7 +69274,7 @@ var FsMaterial = class {
|
|
|
69329
69274
|
}
|
|
69330
69275
|
};
|
|
69331
69276
|
|
|
69332
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69277
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
|
|
69333
69278
|
var nodeRequire = (path18) => {
|
|
69334
69279
|
try {
|
|
69335
69280
|
const module2 = __non_webpack_require__(path18);
|
|
@@ -69346,11 +69291,11 @@ var nodeRequire = (path18) => {
|
|
|
69346
69291
|
}
|
|
69347
69292
|
};
|
|
69348
69293
|
|
|
69349
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69294
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
|
|
69350
69295
|
var import_path3 = __toESM(require("path"));
|
|
69351
69296
|
var import_utils10 = require("@modern-js/utils");
|
|
69352
69297
|
|
|
69353
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69298
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
|
69354
69299
|
var import_utils9 = require("@modern-js/utils");
|
|
69355
69300
|
async function fsExists(path18) {
|
|
69356
69301
|
try {
|
|
@@ -69361,7 +69306,7 @@ async function fsExists(path18) {
|
|
|
69361
69306
|
}
|
|
69362
69307
|
}
|
|
69363
69308
|
|
|
69364
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69309
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
|
|
69365
69310
|
var MaxTimes = 5;
|
|
69366
69311
|
async function getGeneratorDir(generator) {
|
|
69367
69312
|
let result = generator;
|
|
@@ -69380,7 +69325,7 @@ async function getGeneratorDir(generator) {
|
|
|
69380
69325
|
return result;
|
|
69381
69326
|
}
|
|
69382
69327
|
|
|
69383
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69328
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
|
69384
69329
|
var GeneratorCore = class {
|
|
69385
69330
|
get lifeCycleMethod() {
|
|
69386
69331
|
return {
|
|
@@ -69585,10 +69530,10 @@ check path: ${import_utils11.chalk.blue.underline(generator)} exist a package.js
|
|
|
69585
69530
|
}
|
|
69586
69531
|
};
|
|
69587
69532
|
|
|
69588
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69533
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
|
|
69589
69534
|
var import_path6 = __toESM(require("path"));
|
|
69590
69535
|
|
|
69591
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69536
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
|
|
69592
69537
|
var import_path5 = __toESM(require("path"));
|
|
69593
69538
|
var import_utils12 = require("@modern-js/utils");
|
|
69594
69539
|
async function canUseYarn2() {
|
|
@@ -69636,6 +69581,7 @@ async function runInstall(targetDir, registryUrl) {
|
|
|
69636
69581
|
"install",
|
|
69637
69582
|
"--prod",
|
|
69638
69583
|
"--reporter=silent",
|
|
69584
|
+
"--prefer-offline",
|
|
69639
69585
|
"--ignore-scripts"
|
|
69640
69586
|
];
|
|
69641
69587
|
if (registryUrl) {
|
|
@@ -69658,6 +69604,7 @@ async function runInstall(targetDir, registryUrl) {
|
|
|
69658
69604
|
"install",
|
|
69659
69605
|
"--production",
|
|
69660
69606
|
"--loglevel=error",
|
|
69607
|
+
"--prefer-offline",
|
|
69661
69608
|
"--ignore-scripts"
|
|
69662
69609
|
];
|
|
69663
69610
|
if (registryUrl) {
|
|
@@ -69667,7 +69614,7 @@ async function runInstall(targetDir, registryUrl) {
|
|
|
69667
69614
|
}
|
|
69668
69615
|
}
|
|
69669
69616
|
|
|
69670
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69617
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
|
|
69671
69618
|
async function timeoutPromise(promise, ms, reason = "Operation") {
|
|
69672
69619
|
let timeoutId = null;
|
|
69673
69620
|
const delayPromise = (ms2) => new Promise((resolve) => {
|
|
@@ -69689,18 +69636,18 @@ async function timeoutPromise(promise, ms, reason = "Operation") {
|
|
|
69689
69636
|
}
|
|
69690
69637
|
}
|
|
69691
69638
|
|
|
69692
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69639
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
|
69693
69640
|
var import_os = __toESM(require("os"));
|
|
69694
69641
|
var import_utils38 = require("@modern-js/utils");
|
|
69695
69642
|
|
|
69696
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
69643
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/bind.js
|
|
69697
69644
|
function bind(fn, thisArg) {
|
|
69698
69645
|
return function wrap() {
|
|
69699
69646
|
return fn.apply(thisArg, arguments);
|
|
69700
69647
|
};
|
|
69701
69648
|
}
|
|
69702
69649
|
|
|
69703
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
69650
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/utils.js
|
|
69704
69651
|
var { toString } = Object.prototype;
|
|
69705
69652
|
var { getPrototypeOf } = Object;
|
|
69706
69653
|
var kindOf = ((cache) => (thing) => {
|
|
@@ -70059,7 +70006,7 @@ var utils_default = {
|
|
|
70059
70006
|
isThenable
|
|
70060
70007
|
};
|
|
70061
70008
|
|
|
70062
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70009
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/AxiosError.js
|
|
70063
70010
|
function AxiosError(message, code, config, request, response) {
|
|
70064
70011
|
Error.call(this);
|
|
70065
70012
|
if (Error.captureStackTrace) {
|
|
@@ -70131,11 +70078,11 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
|
70131
70078
|
};
|
|
70132
70079
|
var AxiosError_default = AxiosError;
|
|
70133
70080
|
|
|
70134
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70081
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/platform/node/classes/FormData.js
|
|
70135
70082
|
var import_form_data = __toESM(require_form_data());
|
|
70136
70083
|
var FormData_default = import_form_data.default;
|
|
70137
70084
|
|
|
70138
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70085
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/toFormData.js
|
|
70139
70086
|
function isVisitable(thing) {
|
|
70140
70087
|
return utils_default.isPlainObject(thing) || utils_default.isArray(thing);
|
|
70141
70088
|
}
|
|
@@ -70250,7 +70197,7 @@ function toFormData(obj, formData, options) {
|
|
|
70250
70197
|
}
|
|
70251
70198
|
var toFormData_default = toFormData;
|
|
70252
70199
|
|
|
70253
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70200
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
70254
70201
|
function encode(str) {
|
|
70255
70202
|
const charMap = {
|
|
70256
70203
|
"!": "%21",
|
|
@@ -70283,7 +70230,7 @@ prototype2.toString = function toString2(encoder) {
|
|
|
70283
70230
|
};
|
|
70284
70231
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
70285
70232
|
|
|
70286
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70233
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/buildURL.js
|
|
70287
70234
|
function encode2(val) {
|
|
70288
70235
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
70289
70236
|
}
|
|
@@ -70309,7 +70256,7 @@ function buildURL(url2, params, options) {
|
|
|
70309
70256
|
return url2;
|
|
70310
70257
|
}
|
|
70311
70258
|
|
|
70312
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70259
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/InterceptorManager.js
|
|
70313
70260
|
var InterceptorManager = class {
|
|
70314
70261
|
constructor() {
|
|
70315
70262
|
this.handlers = [];
|
|
@@ -70373,18 +70320,18 @@ var InterceptorManager = class {
|
|
|
70373
70320
|
};
|
|
70374
70321
|
var InterceptorManager_default = InterceptorManager;
|
|
70375
70322
|
|
|
70376
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70323
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/defaults/transitional.js
|
|
70377
70324
|
var transitional_default = {
|
|
70378
70325
|
silentJSONParsing: true,
|
|
70379
70326
|
forcedJSONParsing: true,
|
|
70380
70327
|
clarifyTimeoutError: false
|
|
70381
70328
|
};
|
|
70382
70329
|
|
|
70383
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70330
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
70384
70331
|
var import_url = __toESM(require("url"));
|
|
70385
70332
|
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
70386
70333
|
|
|
70387
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70334
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/platform/node/index.js
|
|
70388
70335
|
var node_default = {
|
|
70389
70336
|
isNode: true,
|
|
70390
70337
|
classes: {
|
|
@@ -70395,33 +70342,11 @@ var node_default = {
|
|
|
70395
70342
|
protocols: ["http", "https", "file", "data"]
|
|
70396
70343
|
};
|
|
70397
70344
|
|
|
70398
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70399
|
-
var utils_exports = {};
|
|
70400
|
-
__export(utils_exports, {
|
|
70401
|
-
hasBrowserEnv: () => hasBrowserEnv,
|
|
70402
|
-
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
70403
|
-
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
|
|
70404
|
-
});
|
|
70405
|
-
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
70406
|
-
var hasStandardBrowserEnv = ((product) => {
|
|
70407
|
-
return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
|
|
70408
|
-
})(typeof navigator !== "undefined" && navigator.product);
|
|
70409
|
-
var hasStandardBrowserWebWorkerEnv = (() => {
|
|
70410
|
-
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
70411
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
70412
|
-
})();
|
|
70413
|
-
|
|
70414
|
-
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/platform/index.js
|
|
70415
|
-
var platform_default = {
|
|
70416
|
-
...utils_exports,
|
|
70417
|
-
...node_default
|
|
70418
|
-
};
|
|
70419
|
-
|
|
70420
|
-
// ../../../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
70345
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
70421
70346
|
function toURLEncodedForm(data, options) {
|
|
70422
|
-
return toFormData_default(data, new
|
|
70347
|
+
return toFormData_default(data, new node_default.classes.URLSearchParams(), Object.assign({
|
|
70423
70348
|
visitor: function(value, key, path18, helpers) {
|
|
70424
|
-
if (
|
|
70349
|
+
if (node_default.isNode && utils_default.isBuffer(value)) {
|
|
70425
70350
|
this.append(key, value.toString("base64"));
|
|
70426
70351
|
return false;
|
|
70427
70352
|
}
|
|
@@ -70430,7 +70355,7 @@ function toURLEncodedForm(data, options) {
|
|
|
70430
70355
|
}, options));
|
|
70431
70356
|
}
|
|
70432
70357
|
|
|
70433
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70358
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
70434
70359
|
function parsePropPath(name) {
|
|
70435
70360
|
return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
70436
70361
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
@@ -70451,8 +70376,6 @@ function arrayToObject(arr) {
|
|
|
70451
70376
|
function formDataToJSON(formData) {
|
|
70452
70377
|
function buildPath(path18, value, target, index) {
|
|
70453
70378
|
let name = path18[index++];
|
|
70454
|
-
if (name === "__proto__")
|
|
70455
|
-
return true;
|
|
70456
70379
|
const isNumericKey = Number.isFinite(+name);
|
|
70457
70380
|
const isLast = index >= path18.length;
|
|
70458
70381
|
name = !name && utils_default.isArray(target) ? target.length : name;
|
|
@@ -70484,7 +70407,7 @@ function formDataToJSON(formData) {
|
|
|
70484
70407
|
}
|
|
70485
70408
|
var formDataToJSON_default = formDataToJSON;
|
|
70486
70409
|
|
|
70487
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70410
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/defaults/index.js
|
|
70488
70411
|
function stringifySafely(rawValue, parser, encoder) {
|
|
70489
70412
|
if (utils_default.isString(rawValue)) {
|
|
70490
70413
|
try {
|
|
@@ -70510,6 +70433,9 @@ var defaults = {
|
|
|
70510
70433
|
}
|
|
70511
70434
|
const isFormData2 = utils_default.isFormData(data);
|
|
70512
70435
|
if (isFormData2) {
|
|
70436
|
+
if (!hasJSONContentType) {
|
|
70437
|
+
return data;
|
|
70438
|
+
}
|
|
70513
70439
|
return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
|
|
70514
70440
|
}
|
|
70515
70441
|
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
|
|
@@ -70572,8 +70498,8 @@ var defaults = {
|
|
|
70572
70498
|
maxContentLength: -1,
|
|
70573
70499
|
maxBodyLength: -1,
|
|
70574
70500
|
env: {
|
|
70575
|
-
FormData:
|
|
70576
|
-
Blob:
|
|
70501
|
+
FormData: node_default.classes.FormData,
|
|
70502
|
+
Blob: node_default.classes.Blob
|
|
70577
70503
|
},
|
|
70578
70504
|
validateStatus: function validateStatus(status) {
|
|
70579
70505
|
return status >= 200 && status < 300;
|
|
@@ -70590,7 +70516,7 @@ utils_default.forEach(["delete", "get", "head", "post", "put", "patch"], (method
|
|
|
70590
70516
|
});
|
|
70591
70517
|
var defaults_default = defaults;
|
|
70592
70518
|
|
|
70593
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70519
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/parseHeaders.js
|
|
70594
70520
|
var ignoreDuplicateOf = utils_default.toObjectSet([
|
|
70595
70521
|
"age",
|
|
70596
70522
|
"authorization",
|
|
@@ -70635,7 +70561,7 @@ var parseHeaders_default = (rawHeaders) => {
|
|
|
70635
70561
|
return parsed;
|
|
70636
70562
|
};
|
|
70637
70563
|
|
|
70638
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70564
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/AxiosHeaders.js
|
|
70639
70565
|
var $internals = Symbol("internals");
|
|
70640
70566
|
function normalizeHeader(header) {
|
|
70641
70567
|
return header && String(header).trim().toLowerCase();
|
|
@@ -70853,7 +70779,7 @@ utils_default.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
|
70853
70779
|
utils_default.freezeMethods(AxiosHeaders);
|
|
70854
70780
|
var AxiosHeaders_default = AxiosHeaders;
|
|
70855
70781
|
|
|
70856
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70782
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/transformData.js
|
|
70857
70783
|
function transformData(fns, response) {
|
|
70858
70784
|
const config = this || defaults_default;
|
|
70859
70785
|
const context = response || config;
|
|
@@ -70866,12 +70792,12 @@ function transformData(fns, response) {
|
|
|
70866
70792
|
return data;
|
|
70867
70793
|
}
|
|
70868
70794
|
|
|
70869
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70795
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/cancel/isCancel.js
|
|
70870
70796
|
function isCancel(value) {
|
|
70871
70797
|
return !!(value && value.__CANCEL__);
|
|
70872
70798
|
}
|
|
70873
70799
|
|
|
70874
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70800
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/cancel/CanceledError.js
|
|
70875
70801
|
function CanceledError(message, config, request) {
|
|
70876
70802
|
AxiosError_default.call(this, message == null ? "canceled" : message, AxiosError_default.ERR_CANCELED, config, request);
|
|
70877
70803
|
this.name = "CanceledError";
|
|
@@ -70881,7 +70807,7 @@ utils_default.inherits(CanceledError, AxiosError_default, {
|
|
|
70881
70807
|
});
|
|
70882
70808
|
var CanceledError_default = CanceledError;
|
|
70883
70809
|
|
|
70884
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70810
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/settle.js
|
|
70885
70811
|
function settle(resolve, reject, response) {
|
|
70886
70812
|
const validateStatus2 = response.config.validateStatus;
|
|
70887
70813
|
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
@@ -70897,17 +70823,17 @@ function settle(resolve, reject, response) {
|
|
|
70897
70823
|
}
|
|
70898
70824
|
}
|
|
70899
70825
|
|
|
70900
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70826
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
70901
70827
|
function isAbsoluteURL(url2) {
|
|
70902
70828
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2);
|
|
70903
70829
|
}
|
|
70904
70830
|
|
|
70905
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70831
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/combineURLs.js
|
|
70906
70832
|
function combineURLs(baseURL, relativeURL) {
|
|
70907
|
-
return relativeURL ? baseURL.replace(
|
|
70833
|
+
return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
70908
70834
|
}
|
|
70909
70835
|
|
|
70910
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70836
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/buildFullPath.js
|
|
70911
70837
|
function buildFullPath(baseURL, requestedURL) {
|
|
70912
70838
|
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
70913
70839
|
return combineURLs(baseURL, requestedURL);
|
|
@@ -70915,7 +70841,7 @@ function buildFullPath(baseURL, requestedURL) {
|
|
|
70915
70841
|
return requestedURL;
|
|
70916
70842
|
}
|
|
70917
70843
|
|
|
70918
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70844
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
|
|
70919
70845
|
var import_proxy_from_env = __toESM(require_proxy_from_env());
|
|
70920
70846
|
var import_http = __toESM(require("http"));
|
|
70921
70847
|
var import_https = __toESM(require("https"));
|
|
@@ -70923,19 +70849,19 @@ var import_util2 = __toESM(require("util"));
|
|
|
70923
70849
|
var import_follow_redirects = __toESM(require_follow_redirects());
|
|
70924
70850
|
var import_zlib = __toESM(require("zlib"));
|
|
70925
70851
|
|
|
70926
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70927
|
-
var VERSION = "1.6.
|
|
70852
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/env/data.js
|
|
70853
|
+
var VERSION = "1.6.0";
|
|
70928
70854
|
|
|
70929
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70855
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/parseProtocol.js
|
|
70930
70856
|
function parseProtocol(url2) {
|
|
70931
70857
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
|
|
70932
70858
|
return match && match[1] || "";
|
|
70933
70859
|
}
|
|
70934
70860
|
|
|
70935
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70861
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/fromDataURI.js
|
|
70936
70862
|
var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
|
70937
70863
|
function fromDataURI(uri, asBlob, options) {
|
|
70938
|
-
const _Blob = options && options.Blob ||
|
|
70864
|
+
const _Blob = options && options.Blob || node_default.classes.Blob;
|
|
70939
70865
|
const protocol = parseProtocol(uri);
|
|
70940
70866
|
if (asBlob === void 0 && _Blob) {
|
|
70941
70867
|
asBlob = true;
|
|
@@ -70961,13 +70887,13 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
70961
70887
|
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
70962
70888
|
}
|
|
70963
70889
|
|
|
70964
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70890
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
|
|
70965
70891
|
var import_stream4 = __toESM(require("stream"));
|
|
70966
70892
|
|
|
70967
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70893
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
70968
70894
|
var import_stream = __toESM(require("stream"));
|
|
70969
70895
|
|
|
70970
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70896
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/throttle.js
|
|
70971
70897
|
function throttle(fn, freq) {
|
|
70972
70898
|
let timestamp = 0;
|
|
70973
70899
|
const threshold = 1e3 / freq;
|
|
@@ -70993,7 +70919,7 @@ function throttle(fn, freq) {
|
|
|
70993
70919
|
}
|
|
70994
70920
|
var throttle_default = throttle;
|
|
70995
70921
|
|
|
70996
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70922
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/speedometer.js
|
|
70997
70923
|
function speedometer(samplesCount, min) {
|
|
70998
70924
|
samplesCount = samplesCount || 10;
|
|
70999
70925
|
const bytes = new Array(samplesCount);
|
|
@@ -71029,7 +70955,7 @@ function speedometer(samplesCount, min) {
|
|
|
71029
70955
|
}
|
|
71030
70956
|
var speedometer_default = speedometer;
|
|
71031
70957
|
|
|
71032
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
70958
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
71033
70959
|
var kInternals = Symbol("internals");
|
|
71034
70960
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
71035
70961
|
constructor(options) {
|
|
@@ -71179,14 +71105,14 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
71179
71105
|
};
|
|
71180
71106
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
71181
71107
|
|
|
71182
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71108
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
|
|
71183
71109
|
var import_events2 = __toESM(require("events"));
|
|
71184
71110
|
|
|
71185
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71111
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/formDataToStream.js
|
|
71186
71112
|
var import_util = require("util");
|
|
71187
71113
|
var import_stream2 = require("stream");
|
|
71188
71114
|
|
|
71189
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71115
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/readBlob.js
|
|
71190
71116
|
var { asyncIterator } = Symbol;
|
|
71191
71117
|
var readBlob = async function* (blob) {
|
|
71192
71118
|
if (blob.stream) {
|
|
@@ -71201,7 +71127,7 @@ var readBlob = async function* (blob) {
|
|
|
71201
71127
|
};
|
|
71202
71128
|
var readBlob_default = readBlob;
|
|
71203
71129
|
|
|
71204
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71130
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/formDataToStream.js
|
|
71205
71131
|
var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
71206
71132
|
var textEncoder = new import_util.TextEncoder();
|
|
71207
71133
|
var CRLF = "\r\n";
|
|
@@ -71280,7 +71206,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
71280
71206
|
};
|
|
71281
71207
|
var formDataToStream_default = formDataToStream;
|
|
71282
71208
|
|
|
71283
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71209
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js
|
|
71284
71210
|
var import_stream3 = __toESM(require("stream"));
|
|
71285
71211
|
var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
71286
71212
|
__transform(chunk, encoding, callback) {
|
|
@@ -71302,7 +71228,7 @@ var ZlibHeaderTransformStream = class extends import_stream3.default.Transform {
|
|
|
71302
71228
|
};
|
|
71303
71229
|
var ZlibHeaderTransformStream_default = ZlibHeaderTransformStream;
|
|
71304
71230
|
|
|
71305
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71231
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/callbackify.js
|
|
71306
71232
|
var callbackify = (fn, reducer) => {
|
|
71307
71233
|
return utils_default.isAsyncFn(fn) ? function(...args) {
|
|
71308
71234
|
const cb = args.pop();
|
|
@@ -71317,7 +71243,7 @@ var callbackify = (fn, reducer) => {
|
|
|
71317
71243
|
};
|
|
71318
71244
|
var callbackify_default = callbackify;
|
|
71319
71245
|
|
|
71320
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71246
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/http.js
|
|
71321
71247
|
var zlibOptions = {
|
|
71322
71248
|
flush: import_zlib.default.constants.Z_SYNC_FLUSH,
|
|
71323
71249
|
finishFlush: import_zlib.default.constants.Z_SYNC_FLUSH
|
|
@@ -71329,15 +71255,15 @@ var brotliOptions = {
|
|
|
71329
71255
|
var isBrotliSupported = utils_default.isFunction(import_zlib.default.createBrotliDecompress);
|
|
71330
71256
|
var { http: httpFollow, https: httpsFollow } = import_follow_redirects.default;
|
|
71331
71257
|
var isHttps = /https:?/;
|
|
71332
|
-
var supportedProtocols =
|
|
71258
|
+
var supportedProtocols = node_default.protocols.map((protocol) => {
|
|
71333
71259
|
return protocol + ":";
|
|
71334
71260
|
});
|
|
71335
|
-
function dispatchBeforeRedirect(options
|
|
71261
|
+
function dispatchBeforeRedirect(options) {
|
|
71336
71262
|
if (options.beforeRedirects.proxy) {
|
|
71337
71263
|
options.beforeRedirects.proxy(options);
|
|
71338
71264
|
}
|
|
71339
71265
|
if (options.beforeRedirects.config) {
|
|
71340
|
-
options.beforeRedirects.config(options
|
|
71266
|
+
options.beforeRedirects.config(options);
|
|
71341
71267
|
}
|
|
71342
71268
|
}
|
|
71343
71269
|
function setProxy(options, configProxy, location) {
|
|
@@ -71417,9 +71343,6 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
71417
71343
|
const _lookup = callbackify_default(lookup, (value) => utils_default.isArray(value) ? value : [value]);
|
|
71418
71344
|
lookup = (hostname, opt, cb) => {
|
|
71419
71345
|
_lookup(hostname, opt, (err, arg0, arg1) => {
|
|
71420
|
-
if (err) {
|
|
71421
|
-
return cb(err);
|
|
71422
|
-
}
|
|
71423
71346
|
const addresses = utils_default.isArray(arg0) ? arg0.map((addr) => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];
|
|
71424
71347
|
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
|
71425
71348
|
});
|
|
@@ -71816,44 +71739,57 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
71816
71739
|
});
|
|
71817
71740
|
};
|
|
71818
71741
|
|
|
71819
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71820
|
-
var cookies_default =
|
|
71742
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/cookies.js
|
|
71743
|
+
var cookies_default = node_default.isStandardBrowserEnv ? (
|
|
71821
71744
|
// Standard browser envs support document.cookie
|
|
71822
|
-
{
|
|
71823
|
-
|
|
71824
|
-
|
|
71825
|
-
|
|
71826
|
-
|
|
71827
|
-
|
|
71828
|
-
|
|
71829
|
-
|
|
71830
|
-
|
|
71831
|
-
|
|
71832
|
-
|
|
71833
|
-
|
|
71834
|
-
|
|
71835
|
-
|
|
71836
|
-
|
|
71837
|
-
|
|
71838
|
-
|
|
71745
|
+
function standardBrowserEnv() {
|
|
71746
|
+
return {
|
|
71747
|
+
write: function write(name, value, expires, path18, domain, secure) {
|
|
71748
|
+
const cookie = [];
|
|
71749
|
+
cookie.push(name + "=" + encodeURIComponent(value));
|
|
71750
|
+
if (utils_default.isNumber(expires)) {
|
|
71751
|
+
cookie.push("expires=" + new Date(expires).toGMTString());
|
|
71752
|
+
}
|
|
71753
|
+
if (utils_default.isString(path18)) {
|
|
71754
|
+
cookie.push("path=" + path18);
|
|
71755
|
+
}
|
|
71756
|
+
if (utils_default.isString(domain)) {
|
|
71757
|
+
cookie.push("domain=" + domain);
|
|
71758
|
+
}
|
|
71759
|
+
if (secure === true) {
|
|
71760
|
+
cookie.push("secure");
|
|
71761
|
+
}
|
|
71762
|
+
document.cookie = cookie.join("; ");
|
|
71763
|
+
},
|
|
71764
|
+
read: function read(name) {
|
|
71765
|
+
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
71766
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
71767
|
+
},
|
|
71768
|
+
remove: function remove(name) {
|
|
71769
|
+
this.write(name, "", Date.now() - 864e5);
|
|
71770
|
+
}
|
|
71771
|
+
};
|
|
71772
|
+
}()
|
|
71839
71773
|
) : (
|
|
71840
|
-
// Non
|
|
71841
|
-
{
|
|
71842
|
-
|
|
71843
|
-
|
|
71844
|
-
|
|
71845
|
-
|
|
71846
|
-
|
|
71847
|
-
|
|
71848
|
-
|
|
71849
|
-
|
|
71774
|
+
// Non standard browser env (web workers, react-native) lack needed support.
|
|
71775
|
+
function nonStandardBrowserEnv() {
|
|
71776
|
+
return {
|
|
71777
|
+
write: function write() {
|
|
71778
|
+
},
|
|
71779
|
+
read: function read() {
|
|
71780
|
+
return null;
|
|
71781
|
+
},
|
|
71782
|
+
remove: function remove() {
|
|
71783
|
+
}
|
|
71784
|
+
};
|
|
71785
|
+
}()
|
|
71850
71786
|
);
|
|
71851
71787
|
|
|
71852
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71853
|
-
var isURLSameOrigin_default =
|
|
71788
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
71789
|
+
var isURLSameOrigin_default = node_default.isStandardBrowserEnv ? (
|
|
71854
71790
|
// Standard browser envs have full support of the APIs needed to test
|
|
71855
71791
|
// whether the request URL is of the same origin as current location.
|
|
71856
|
-
function
|
|
71792
|
+
function standardBrowserEnv2() {
|
|
71857
71793
|
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
71858
71794
|
const urlParsingNode = document.createElement("a");
|
|
71859
71795
|
let originURL;
|
|
@@ -71883,14 +71819,14 @@ var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
|
|
|
71883
71819
|
}()
|
|
71884
71820
|
) : (
|
|
71885
71821
|
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
71886
|
-
function
|
|
71822
|
+
function nonStandardBrowserEnv2() {
|
|
71887
71823
|
return function isURLSameOrigin() {
|
|
71888
71824
|
return true;
|
|
71889
71825
|
};
|
|
71890
71826
|
}()
|
|
71891
71827
|
);
|
|
71892
71828
|
|
|
71893
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71829
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/xhr.js
|
|
71894
71830
|
function progressEventReducer(listener, isDownloadStream) {
|
|
71895
71831
|
let bytesNotified = 0;
|
|
71896
71832
|
const _speedometer = speedometer_default(50, 250);
|
|
@@ -71919,7 +71855,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
71919
71855
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
71920
71856
|
let requestData = config.data;
|
|
71921
71857
|
const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
|
|
71922
|
-
|
|
71858
|
+
const responseType = config.responseType;
|
|
71923
71859
|
let onCanceled;
|
|
71924
71860
|
function done() {
|
|
71925
71861
|
if (config.cancelToken) {
|
|
@@ -71931,11 +71867,12 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
71931
71867
|
}
|
|
71932
71868
|
let contentType;
|
|
71933
71869
|
if (utils_default.isFormData(requestData)) {
|
|
71934
|
-
if (
|
|
71870
|
+
if (node_default.isStandardBrowserEnv || node_default.isStandardBrowserWebWorkerEnv) {
|
|
71935
71871
|
requestHeaders.setContentType(false);
|
|
71936
|
-
} else if (
|
|
71937
|
-
|
|
71938
|
-
|
|
71872
|
+
} else if (!requestHeaders.getContentType(/^\s*multipart\/form-data/)) {
|
|
71873
|
+
requestHeaders.setContentType("multipart/form-data");
|
|
71874
|
+
} else if (utils_default.isString(contentType = requestHeaders.getContentType())) {
|
|
71875
|
+
requestHeaders.setContentType(contentType.replace(/^\s*(multipart\/form-data);+/, "$1"));
|
|
71939
71876
|
}
|
|
71940
71877
|
}
|
|
71941
71878
|
let request = new XMLHttpRequest();
|
|
@@ -72010,13 +71947,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
72010
71947
|
));
|
|
72011
71948
|
request = null;
|
|
72012
71949
|
};
|
|
72013
|
-
if (
|
|
72014
|
-
|
|
72015
|
-
if (
|
|
72016
|
-
|
|
72017
|
-
if (xsrfValue) {
|
|
72018
|
-
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
|
72019
|
-
}
|
|
71950
|
+
if (node_default.isStandardBrowserEnv) {
|
|
71951
|
+
const xsrfValue = isURLSameOrigin_default(fullPath) && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
|
|
71952
|
+
if (xsrfValue) {
|
|
71953
|
+
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
|
72020
71954
|
}
|
|
72021
71955
|
}
|
|
72022
71956
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
@@ -72052,7 +71986,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
72052
71986
|
}
|
|
72053
71987
|
}
|
|
72054
71988
|
const protocol = parseProtocol(fullPath);
|
|
72055
|
-
if (protocol &&
|
|
71989
|
+
if (protocol && node_default.protocols.indexOf(protocol) === -1) {
|
|
72056
71990
|
reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
|
|
72057
71991
|
return;
|
|
72058
71992
|
}
|
|
@@ -72060,7 +71994,7 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
72060
71994
|
});
|
|
72061
71995
|
};
|
|
72062
71996
|
|
|
72063
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
71997
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/adapters/adapters.js
|
|
72064
71998
|
var knownAdapters = {
|
|
72065
71999
|
http: http_default,
|
|
72066
72000
|
xhr: xhr_default
|
|
@@ -72113,7 +72047,7 @@ var adapters_default = {
|
|
|
72113
72047
|
adapters: knownAdapters
|
|
72114
72048
|
};
|
|
72115
72049
|
|
|
72116
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72050
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/dispatchRequest.js
|
|
72117
72051
|
function throwIfCancellationRequested(config) {
|
|
72118
72052
|
if (config.cancelToken) {
|
|
72119
72053
|
config.cancelToken.throwIfRequested();
|
|
@@ -72158,7 +72092,7 @@ function dispatchRequest(config) {
|
|
|
72158
72092
|
});
|
|
72159
72093
|
}
|
|
72160
72094
|
|
|
72161
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72095
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/mergeConfig.js
|
|
72162
72096
|
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? thing.toJSON() : thing;
|
|
72163
72097
|
function mergeConfig(config1, config2) {
|
|
72164
72098
|
config2 = config2 || {};
|
|
@@ -72210,7 +72144,6 @@ function mergeConfig(config1, config2) {
|
|
|
72210
72144
|
timeout: defaultToConfig2,
|
|
72211
72145
|
timeoutMessage: defaultToConfig2,
|
|
72212
72146
|
withCredentials: defaultToConfig2,
|
|
72213
|
-
withXSRFToken: defaultToConfig2,
|
|
72214
72147
|
adapter: defaultToConfig2,
|
|
72215
72148
|
responseType: defaultToConfig2,
|
|
72216
72149
|
xsrfCookieName: defaultToConfig2,
|
|
@@ -72238,7 +72171,7 @@ function mergeConfig(config1, config2) {
|
|
|
72238
72171
|
return config;
|
|
72239
72172
|
}
|
|
72240
72173
|
|
|
72241
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72174
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/validator.js
|
|
72242
72175
|
var validators = {};
|
|
72243
72176
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
72244
72177
|
validators[type] = function validator(thing) {
|
|
@@ -72296,7 +72229,7 @@ var validator_default = {
|
|
|
72296
72229
|
validators
|
|
72297
72230
|
};
|
|
72298
72231
|
|
|
72299
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72232
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/core/Axios.js
|
|
72300
72233
|
var validators2 = validator_default.validators;
|
|
72301
72234
|
var Axios = class {
|
|
72302
72235
|
constructor(instanceConfig) {
|
|
@@ -72314,24 +72247,7 @@ var Axios = class {
|
|
|
72314
72247
|
*
|
|
72315
72248
|
* @returns {Promise} The Promise to be fulfilled
|
|
72316
72249
|
*/
|
|
72317
|
-
|
|
72318
|
-
try {
|
|
72319
|
-
return await this._request(configOrUrl, config);
|
|
72320
|
-
} catch (err) {
|
|
72321
|
-
if (err instanceof Error) {
|
|
72322
|
-
let dummy;
|
|
72323
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
|
|
72324
|
-
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
|
|
72325
|
-
if (!err.stack) {
|
|
72326
|
-
err.stack = stack;
|
|
72327
|
-
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
|
|
72328
|
-
err.stack += "\n" + stack;
|
|
72329
|
-
}
|
|
72330
|
-
}
|
|
72331
|
-
throw err;
|
|
72332
|
-
}
|
|
72333
|
-
}
|
|
72334
|
-
_request(configOrUrl, config) {
|
|
72250
|
+
request(configOrUrl, config) {
|
|
72335
72251
|
if (typeof configOrUrl === "string") {
|
|
72336
72252
|
config = config || {};
|
|
72337
72253
|
config.url = configOrUrl;
|
|
@@ -72456,7 +72372,7 @@ utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(m
|
|
|
72456
72372
|
});
|
|
72457
72373
|
var Axios_default = Axios;
|
|
72458
72374
|
|
|
72459
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72375
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/cancel/CancelToken.js
|
|
72460
72376
|
var CancelToken = class _CancelToken {
|
|
72461
72377
|
constructor(executor) {
|
|
72462
72378
|
if (typeof executor !== "function") {
|
|
@@ -72546,19 +72462,19 @@ var CancelToken = class _CancelToken {
|
|
|
72546
72462
|
};
|
|
72547
72463
|
var CancelToken_default = CancelToken;
|
|
72548
72464
|
|
|
72549
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72465
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/spread.js
|
|
72550
72466
|
function spread(callback) {
|
|
72551
72467
|
return function wrap(arr) {
|
|
72552
72468
|
return callback.apply(null, arr);
|
|
72553
72469
|
};
|
|
72554
72470
|
}
|
|
72555
72471
|
|
|
72556
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72472
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/isAxiosError.js
|
|
72557
72473
|
function isAxiosError(payload) {
|
|
72558
72474
|
return utils_default.isObject(payload) && payload.isAxiosError === true;
|
|
72559
72475
|
}
|
|
72560
72476
|
|
|
72561
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72477
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
72562
72478
|
var HttpStatusCode = {
|
|
72563
72479
|
Continue: 100,
|
|
72564
72480
|
SwitchingProtocols: 101,
|
|
@@ -72629,7 +72545,7 @@ Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
|
|
72629
72545
|
});
|
|
72630
72546
|
var HttpStatusCode_default = HttpStatusCode;
|
|
72631
72547
|
|
|
72632
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72548
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/lib/axios.js
|
|
72633
72549
|
function createInstance(defaultConfig) {
|
|
72634
72550
|
const context = new Axios_default(defaultConfig);
|
|
72635
72551
|
const instance = bind(Axios_default.prototype.request, context);
|
|
@@ -72662,7 +72578,7 @@ axios.HttpStatusCode = HttpStatusCode_default;
|
|
|
72662
72578
|
axios.default = axios;
|
|
72663
72579
|
var axios_default = axios;
|
|
72664
72580
|
|
|
72665
|
-
// ../../../../node_modules/.pnpm/axios@1.6.
|
|
72581
|
+
// ../../../../node_modules/.pnpm/axios@1.6.0/node_modules/axios/index.js
|
|
72666
72582
|
var {
|
|
72667
72583
|
Axios: Axios2,
|
|
72668
72584
|
AxiosError: AxiosError2,
|
|
@@ -72682,17 +72598,17 @@ var {
|
|
|
72682
72598
|
mergeConfig: mergeConfig2
|
|
72683
72599
|
} = axios_default;
|
|
72684
72600
|
|
|
72685
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72601
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
|
72686
72602
|
var import_tar = __toESM(require_tar());
|
|
72687
72603
|
|
|
72688
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72604
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
|
|
72689
72605
|
var import_utils36 = require("@modern-js/utils");
|
|
72690
72606
|
|
|
72691
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72607
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
|
|
72692
72608
|
var NPM_API_TIMEOUT = 3e4;
|
|
72693
72609
|
var CATCHE_VALIDITY_PREIOD = 12 * 3600 * 1e3;
|
|
72694
72610
|
|
|
72695
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72611
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
|
|
72696
72612
|
async function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
|
72697
72613
|
const { registryUrl } = options || {};
|
|
72698
72614
|
const params = [
|
|
@@ -72715,7 +72631,7 @@ async function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
|
|
72715
72631
|
}
|
|
72716
72632
|
}
|
|
72717
72633
|
|
|
72718
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72634
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
|
|
72719
72635
|
var import_utils37 = require("@modern-js/utils");
|
|
72720
72636
|
async function getNpmVersion(packageName, options) {
|
|
72721
72637
|
const { version, registryUrl } = options || {};
|
|
@@ -72737,7 +72653,7 @@ async function getNpmVersion(packageName, options) {
|
|
|
72737
72653
|
return stdout;
|
|
72738
72654
|
}
|
|
72739
72655
|
|
|
72740
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72656
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
|
72741
72657
|
async function isValidCache(cacheDir) {
|
|
72742
72658
|
if (await fsExists(`${cacheDir}/.codesmith.completed`)) {
|
|
72743
72659
|
const preCacheTimeStr = await import_utils38.fs.readFile(`${cacheDir}/.codesmith.completed`, {
|
|
@@ -72817,7 +72733,7 @@ async function downloadPackage(pkgName, pkgVersion = "latest", options = {}) {
|
|
|
72817
72733
|
return targetDir;
|
|
72818
72734
|
}
|
|
72819
72735
|
|
|
72820
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72736
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
|
|
72821
72737
|
var import_utils39 = require("@modern-js/utils");
|
|
72822
72738
|
function getPackageInfo(packageName) {
|
|
72823
72739
|
if (!packageName) {
|
|
@@ -72842,7 +72758,7 @@ function getPackageInfo(packageName) {
|
|
|
72842
72758
|
};
|
|
72843
72759
|
}
|
|
72844
72760
|
|
|
72845
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72761
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
|
|
72846
72762
|
var MaterialsManager = class {
|
|
72847
72763
|
loadLocalGenerator(generator) {
|
|
72848
72764
|
if (!import_path6.default.isAbsolute(generator)) {
|
|
@@ -72873,7 +72789,7 @@ var MaterialsManager = class {
|
|
|
72873
72789
|
}
|
|
72874
72790
|
};
|
|
72875
72791
|
|
|
72876
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72792
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
|
72877
72793
|
var CodeSmith = class {
|
|
72878
72794
|
async forge({ tasks, pwd }) {
|
|
72879
72795
|
var _this_logger_timing, _this_logger;
|
|
@@ -72917,7 +72833,7 @@ var CodeSmith = class {
|
|
|
72917
72833
|
}
|
|
72918
72834
|
};
|
|
72919
72835
|
|
|
72920
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
|
72836
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
|
|
72921
72837
|
var import_handlebars = __toESM(require_lib());
|
|
72922
72838
|
function renderString(template, fullData, registers) {
|
|
72923
72839
|
const helpers = {
|
|
@@ -72931,7 +72847,7 @@ function renderString(template, fullData, registers) {
|
|
|
72931
72847
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
72932
72848
|
}
|
|
72933
72849
|
|
|
72934
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
|
72850
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
|
|
72935
72851
|
var HandlebarsAPI = class {
|
|
72936
72852
|
async registerHelp(helpers) {
|
|
72937
72853
|
this.registers.helpers = {
|
|
@@ -72981,13 +72897,13 @@ var HandlebarsAPI = class {
|
|
|
72981
72897
|
}
|
|
72982
72898
|
};
|
|
72983
72899
|
|
|
72984
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
|
72900
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
|
|
72985
72901
|
var import_ejs = __toESM(require_ejs());
|
|
72986
72902
|
function renderString2(template, fullData) {
|
|
72987
72903
|
return import_ejs.default.render(template, fullData) || "";
|
|
72988
72904
|
}
|
|
72989
72905
|
|
|
72990
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
|
72906
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
|
|
72991
72907
|
var EjsAPI = class {
|
|
72992
72908
|
async renderTemplate(templateResource, target, parameters = {}) {
|
|
72993
72909
|
if (templateResource._type !== FS_RESOURCE) {
|
|
@@ -73020,7 +72936,7 @@ var EjsAPI = class {
|
|
|
73020
72936
|
}
|
|
73021
72937
|
};
|
|
73022
72938
|
|
|
73023
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.
|
|
72939
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.4_@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
|
|
73024
72940
|
var import_path8 = __toESM(require("path"));
|
|
73025
72941
|
var import_utils43 = require("@modern-js/utils");
|
|
73026
72942
|
var FsAPI = class {
|
|
@@ -73048,7 +72964,7 @@ var FsAPI = class {
|
|
|
73048
72964
|
}
|
|
73049
72965
|
};
|
|
73050
72966
|
|
|
73051
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
72967
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
|
|
73052
72968
|
var import_lodash2 = require("@modern-js/utils/lodash");
|
|
73053
72969
|
|
|
73054
72970
|
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
|
@@ -82683,10 +82599,10 @@ var Schema = (
|
|
|
82683
82599
|
}()
|
|
82684
82600
|
);
|
|
82685
82601
|
|
|
82686
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
82602
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
82687
82603
|
var import_inquirer = __toESM(require_inquirer());
|
|
82688
82604
|
|
|
82689
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
82605
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
|
|
82690
82606
|
var import_lodash = require("@modern-js/utils/lodash");
|
|
82691
82607
|
function validateSchema(schema) {
|
|
82692
82608
|
const { type, properties } = schema;
|
|
@@ -82778,7 +82694,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
|
82778
82694
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
82779
82695
|
}
|
|
82780
82696
|
|
|
82781
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
82697
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
82782
82698
|
var compileRule = (rule, scope) => {
|
|
82783
82699
|
const state = Schema.compile(rule, {
|
|
82784
82700
|
$self: {},
|
|
@@ -82882,7 +82798,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
|
|
|
82882
82798
|
return answers;
|
|
82883
82799
|
}
|
|
82884
82800
|
|
|
82885
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
82801
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
|
|
82886
82802
|
var CLIReader = class {
|
|
82887
82803
|
getAnswers() {
|
|
82888
82804
|
return this.answers;
|
|
@@ -82913,7 +82829,7 @@ var CLIReader = class {
|
|
|
82913
82829
|
}
|
|
82914
82830
|
};
|
|
82915
82831
|
|
|
82916
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
82832
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
|
|
82917
82833
|
var FormilyAPI = class {
|
|
82918
82834
|
mergeAnswers(answers, configValue) {
|
|
82919
82835
|
const inputData = (0, import_lodash2.merge)(answers, configValue);
|
|
@@ -82936,7 +82852,7 @@ var FormilyAPI = class {
|
|
|
82936
82852
|
}
|
|
82937
82853
|
};
|
|
82938
82854
|
|
|
82939
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
82855
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
82940
82856
|
var import_inquirer3 = __toESM(require_inquirer2());
|
|
82941
82857
|
|
|
82942
82858
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -83002,7 +82918,7 @@ var I18n = class {
|
|
|
83002
82918
|
}
|
|
83003
82919
|
};
|
|
83004
82920
|
|
|
83005
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
82921
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
|
|
83006
82922
|
var ZH_LOCALE = {
|
|
83007
82923
|
environment: {
|
|
83008
82924
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -83029,7 +82945,7 @@ var ZH_LOCALE = {
|
|
|
83029
82945
|
}
|
|
83030
82946
|
};
|
|
83031
82947
|
|
|
83032
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
82948
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
|
|
83033
82949
|
var EN_LOCALE = {
|
|
83034
82950
|
environment: {
|
|
83035
82951
|
node_version: "please upgrade node to lts version",
|
|
@@ -83056,14 +82972,14 @@ var EN_LOCALE = {
|
|
|
83056
82972
|
}
|
|
83057
82973
|
};
|
|
83058
82974
|
|
|
83059
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
82975
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
|
|
83060
82976
|
var i18n = new I18n();
|
|
83061
82977
|
var localeKeys = i18n.init("zh", {
|
|
83062
82978
|
zh: ZH_LOCALE,
|
|
83063
82979
|
en: EN_LOCALE
|
|
83064
82980
|
});
|
|
83065
82981
|
|
|
83066
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
82982
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
|
|
83067
82983
|
var import_lodash5 = require("@modern-js/utils/lodash");
|
|
83068
82984
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
|
83069
82985
|
for (const question of questions) {
|
|
@@ -83091,7 +83007,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
|
83091
83007
|
return questions;
|
|
83092
83008
|
}
|
|
83093
83009
|
|
|
83094
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
83010
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
|
|
83095
83011
|
var import_path10 = __toESM(require("path"));
|
|
83096
83012
|
var import_utils45 = require("@modern-js/utils");
|
|
83097
83013
|
var NODE_MAJOR_VERSION_MAP = {
|
|
@@ -83139,7 +83055,7 @@ async function checkUseNvm(cwd, logger2) {
|
|
|
83139
83055
|
}
|
|
83140
83056
|
}
|
|
83141
83057
|
|
|
83142
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
83058
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.4_@modern-js+codesmith@2.3.4_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
83143
83059
|
var AppAPI = class {
|
|
83144
83060
|
async checkEnvironment(nodeVersion) {
|
|
83145
83061
|
if (import_utils46.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
|
|
@@ -84732,11 +84648,11 @@ var import_lodash14 = require("@modern-js/utils/lodash");
|
|
|
84732
84648
|
// ../../generator-plugin/dist/esm/context/file.js
|
|
84733
84649
|
var import_path13 = __toESM(require("path"));
|
|
84734
84650
|
|
|
84735
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
84651
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
84736
84652
|
var import_comment_json2 = __toESM(require_src2());
|
|
84737
84653
|
var declarationUpdate = __toESM(require_dist());
|
|
84738
84654
|
|
|
84739
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
84655
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
|
|
84740
84656
|
async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
84741
84657
|
const originJsonValue = await resource.value();
|
|
84742
84658
|
const newJsonString = await getNewJsonValue(originJsonValue.content);
|
|
@@ -84749,7 +84665,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
|
84749
84665
|
return newJsonString;
|
|
84750
84666
|
}
|
|
84751
84667
|
|
|
84752
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
84668
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.4/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
84753
84669
|
var JsonAPI = class {
|
|
84754
84670
|
async get(resource) {
|
|
84755
84671
|
const originJsonValue = await resource.value();
|