@rspack/browser 2.0.0-beta.4 → 2.0.0-beta.6
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/builtin-loader/swc/types.d.ts +9 -1
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +2 -2
- package/dist/checkNodeVersion.d.ts +1 -0
- package/dist/config/devServer.d.ts +96 -224
- package/dist/config/types.d.ts +9 -6
- package/dist/container/ContainerPlugin.d.ts +3 -2
- package/dist/container/ContainerReferencePlugin.d.ts +4 -3
- package/dist/container/ModuleFederationPlugin.d.ts +2 -1
- package/dist/container/ModuleFederationPluginV1.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +367 -140
- package/dist/napi-binding.d.ts +28 -7
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/dist/sharing/CollectSharedEntryPlugin.d.ts +2 -2
- package/dist/sharing/ConsumeSharedPlugin.d.ts +5 -5
- package/dist/sharing/ProvideSharedPlugin.d.ts +6 -5
- package/dist/sharing/SharePlugin.d.ts +9 -7
- package/dist/util/supportsColor.d.ts +6 -0
- package/dist/wasi-worker-browser.mjs +180 -67
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { AsyncParallelHook, AsyncSeriesBailHook, AsyncSeriesHook, AsyncSeriesWat
|
|
|
5
5
|
__webpack_require__.add({
|
|
6
6
|
"../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
7
7
|
var asn1 = exports;
|
|
8
|
-
asn1.bignum = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
8
|
+
asn1.bignum = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
9
9
|
asn1.define = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/api.js").define;
|
|
10
10
|
asn1.base = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/base/index.js");
|
|
11
11
|
asn1.constants = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/constants/index.js");
|
|
@@ -2697,7 +2697,7 @@ __webpack_require__.add({
|
|
|
2697
2697
|
isDeepStrictEqual: isDeepStrictEqual
|
|
2698
2698
|
};
|
|
2699
2699
|
},
|
|
2700
|
-
"../../node_modules/.pnpm/bn.js@4.12.
|
|
2700
|
+
"../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
2701
2701
|
module = __webpack_require__.nmd(module);
|
|
2702
2702
|
(function(module, exports) {
|
|
2703
2703
|
'use strict';
|
|
@@ -2731,7 +2731,7 @@ __webpack_require__.add({
|
|
|
2731
2731
|
BN.wordSize = 26;
|
|
2732
2732
|
var Buffer;
|
|
2733
2733
|
try {
|
|
2734
|
-
Buffer = "u" > typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?
|
|
2734
|
+
Buffer = "u" > typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?7763").Buffer;
|
|
2735
2735
|
} catch (e) {}
|
|
2736
2736
|
BN.isBN = function(num) {
|
|
2737
2737
|
if (num instanceof BN) return true;
|
|
@@ -4313,6 +4313,10 @@ __webpack_require__.add({
|
|
|
4313
4313
|
var mask = 0x3ffffff ^ 0x3ffffff >>> r << r;
|
|
4314
4314
|
this.words[this.length - 1] &= mask;
|
|
4315
4315
|
}
|
|
4316
|
+
if (0 === this.length) {
|
|
4317
|
+
this.words[0] = 0;
|
|
4318
|
+
this.length = 1;
|
|
4319
|
+
}
|
|
4316
4320
|
return this.strip();
|
|
4317
4321
|
};
|
|
4318
4322
|
BN.prototype.maskn = function(bits) {
|
|
@@ -5187,7 +5191,7 @@ __webpack_require__.add({
|
|
|
5187
5191
|
};
|
|
5188
5192
|
})(module, this);
|
|
5189
5193
|
},
|
|
5190
|
-
"../../node_modules/.pnpm/bn.js@5.2.
|
|
5194
|
+
"../../node_modules/.pnpm/bn.js@5.2.3/node_modules/bn.js/lib/bn.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
5191
5195
|
module = __webpack_require__.nmd(module);
|
|
5192
5196
|
(function(module, exports) {
|
|
5193
5197
|
'use strict';
|
|
@@ -5221,7 +5225,7 @@ __webpack_require__.add({
|
|
|
5221
5225
|
BN.wordSize = 26;
|
|
5222
5226
|
var Buffer;
|
|
5223
5227
|
try {
|
|
5224
|
-
Buffer = "u" > typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?
|
|
5228
|
+
Buffer = "u" > typeof window && void 0 !== window.Buffer ? window.Buffer : __webpack_require__("?5658").Buffer;
|
|
5225
5229
|
} catch (e) {}
|
|
5226
5230
|
BN.isBN = function(num) {
|
|
5227
5231
|
if (num instanceof BN) return true;
|
|
@@ -6852,6 +6856,10 @@ __webpack_require__.add({
|
|
|
6852
6856
|
var mask = 0x3ffffff ^ 0x3ffffff >>> r << r;
|
|
6853
6857
|
this.words[this.length - 1] &= mask;
|
|
6854
6858
|
}
|
|
6859
|
+
if (0 === this.length) {
|
|
6860
|
+
this.words[0] = 0;
|
|
6861
|
+
this.length = 1;
|
|
6862
|
+
}
|
|
6855
6863
|
return this._strip();
|
|
6856
6864
|
};
|
|
6857
6865
|
BN.prototype.maskn = function(bits) {
|
|
@@ -8700,7 +8708,7 @@ __webpack_require__.add({
|
|
|
8700
8708
|
};
|
|
8701
8709
|
},
|
|
8702
8710
|
"../../node_modules/.pnpm/browserify-rsa@4.1.1/node_modules/browserify-rsa/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
8703
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.
|
|
8711
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.3/node_modules/bn.js/lib/bn.js");
|
|
8704
8712
|
var randomBytes = __webpack_require__("../../node_modules/.pnpm/randombytes@2.1.0/node_modules/randombytes/browser.js");
|
|
8705
8713
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
8706
8714
|
function getr(priv) {
|
|
@@ -8815,7 +8823,7 @@ __webpack_require__.add({
|
|
|
8815
8823
|
var createHmac = __webpack_require__("../../node_modules/.pnpm/create-hmac@1.1.7/node_modules/create-hmac/browser.js");
|
|
8816
8824
|
var crt = __webpack_require__("../../node_modules/.pnpm/browserify-rsa@4.1.1/node_modules/browserify-rsa/index.js");
|
|
8817
8825
|
var EC = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic.js").ec;
|
|
8818
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.
|
|
8826
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.3/node_modules/bn.js/lib/bn.js");
|
|
8819
8827
|
var parseKeys = __webpack_require__("../../node_modules/.pnpm/parse-asn1@5.1.9/node_modules/parse-asn1/index.js");
|
|
8820
8828
|
var curves = __webpack_require__("../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/curves.json");
|
|
8821
8829
|
var RSA_PKCS1_PADDING = 1;
|
|
@@ -8973,7 +8981,7 @@ __webpack_require__.add({
|
|
|
8973
8981
|
},
|
|
8974
8982
|
"../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/verify.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
8975
8983
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
8976
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.
|
|
8984
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@5.2.3/node_modules/bn.js/lib/bn.js");
|
|
8977
8985
|
var EC = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic.js").ec;
|
|
8978
8986
|
var parseKeys = __webpack_require__("../../node_modules/.pnpm/parse-asn1@5.1.9/node_modules/parse-asn1/index.js");
|
|
8979
8987
|
var curves = __webpack_require__("../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/curves.json");
|
|
@@ -10006,7 +10014,7 @@ __webpack_require__.add({
|
|
|
10006
10014
|
"../../node_modules/.pnpm/create-ecdh@4.0.4/node_modules/create-ecdh/browser.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
10007
10015
|
var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
10008
10016
|
var elliptic = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic.js");
|
|
10009
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
10017
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
10010
10018
|
module.exports = function(curve) {
|
|
10011
10019
|
return new ECDH(curve);
|
|
10012
10020
|
};
|
|
@@ -11442,7 +11450,7 @@ __webpack_require__.add({
|
|
|
11442
11450
|
},
|
|
11443
11451
|
"../../node_modules/.pnpm/diffie-hellman@5.0.3/node_modules/diffie-hellman/lib/dh.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
11444
11452
|
var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
11445
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
11453
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
11446
11454
|
var MillerRabin = __webpack_require__("../../node_modules/.pnpm/miller-rabin@4.0.1/node_modules/miller-rabin/lib/mr.js");
|
|
11447
11455
|
var millerRabin = new MillerRabin();
|
|
11448
11456
|
var TWENTYFOUR = new BN(24);
|
|
@@ -11568,7 +11576,7 @@ __webpack_require__.add({
|
|
|
11568
11576
|
module.exports = findPrime;
|
|
11569
11577
|
findPrime.simpleSieve = simpleSieve;
|
|
11570
11578
|
findPrime.fermatTest = fermatTest;
|
|
11571
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
11579
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
11572
11580
|
var TWENTYFOUR = new BN(24);
|
|
11573
11581
|
var MillerRabin = __webpack_require__("../../node_modules/.pnpm/miller-rabin@4.0.1/node_modules/miller-rabin/lib/mr.js");
|
|
11574
11582
|
var millerRabin = new MillerRabin();
|
|
@@ -11660,7 +11668,7 @@ __webpack_require__.add({
|
|
|
11660
11668
|
elliptic.eddsa = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/eddsa/index.js");
|
|
11661
11669
|
},
|
|
11662
11670
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/base.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
11663
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
11671
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
11664
11672
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
11665
11673
|
var getNAF = utils.getNAF;
|
|
11666
11674
|
var getJSF = utils.getJSF;
|
|
@@ -11928,7 +11936,7 @@ __webpack_require__.add({
|
|
|
11928
11936
|
},
|
|
11929
11937
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/edwards.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
11930
11938
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
11931
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
11939
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
11932
11940
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
11933
11941
|
var Base = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/base.js");
|
|
11934
11942
|
var assert = utils.assert;
|
|
@@ -12202,7 +12210,7 @@ __webpack_require__.add({
|
|
|
12202
12210
|
curve.edwards = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/edwards.js");
|
|
12203
12211
|
},
|
|
12204
12212
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/mont.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
12205
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
12213
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
12206
12214
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
12207
12215
|
var Base = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/base.js");
|
|
12208
12216
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
@@ -12319,7 +12327,7 @@ __webpack_require__.add({
|
|
|
12319
12327
|
},
|
|
12320
12328
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/short.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
12321
12329
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
12322
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
12330
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
12323
12331
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
12324
12332
|
var Base = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curve/base.js");
|
|
12325
12333
|
var assert = utils.assert;
|
|
@@ -13142,7 +13150,7 @@ __webpack_require__.add({
|
|
|
13142
13150
|
});
|
|
13143
13151
|
},
|
|
13144
13152
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/ec/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
13145
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
13153
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
13146
13154
|
var HmacDRBG = __webpack_require__("../../node_modules/.pnpm/hmac-drbg@1.0.1/node_modules/hmac-drbg/lib/hmac-drbg.js");
|
|
13147
13155
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
13148
13156
|
var curves = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/curves.js");
|
|
@@ -13323,7 +13331,7 @@ __webpack_require__.add({
|
|
|
13323
13331
|
};
|
|
13324
13332
|
},
|
|
13325
13333
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/ec/key.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
13326
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
13334
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
13327
13335
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
13328
13336
|
var assert = utils.assert;
|
|
13329
13337
|
function KeyPair(ec, options) {
|
|
@@ -13408,7 +13416,7 @@ __webpack_require__.add({
|
|
|
13408
13416
|
};
|
|
13409
13417
|
},
|
|
13410
13418
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/ec/signature.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
13411
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
13419
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
13412
13420
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
13413
13421
|
var assert = utils.assert;
|
|
13414
13422
|
function Signature(options, enc) {
|
|
@@ -13661,7 +13669,7 @@ __webpack_require__.add({
|
|
|
13661
13669
|
module.exports = KeyPair;
|
|
13662
13670
|
},
|
|
13663
13671
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/eddsa/signature.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
13664
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
13672
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
13665
13673
|
var utils = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js");
|
|
13666
13674
|
var assert = utils.assert;
|
|
13667
13675
|
var cachedProperty = utils.cachedProperty;
|
|
@@ -14486,7 +14494,7 @@ __webpack_require__.add({
|
|
|
14486
14494
|
},
|
|
14487
14495
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic/utils.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
14488
14496
|
var utils = exports;
|
|
14489
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
14497
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
14490
14498
|
var minAssert = __webpack_require__("../../node_modules/.pnpm/minimalistic-assert@1.0.1/node_modules/minimalistic-assert/index.js");
|
|
14491
14499
|
var minUtils = __webpack_require__("../../node_modules/.pnpm/minimalistic-crypto-utils@1.0.1/node_modules/minimalistic-crypto-utils/lib/utils.js");
|
|
14492
14500
|
utils.assert = minAssert;
|
|
@@ -15332,6 +15340,10 @@ __webpack_require__.add({
|
|
|
15332
15340
|
var implementation = __webpack_require__("../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js");
|
|
15333
15341
|
module.exports = Function.prototype.bind || implementation;
|
|
15334
15342
|
},
|
|
15343
|
+
"../../node_modules/.pnpm/generator-function@2.0.1/node_modules/generator-function/index.js" (module) {
|
|
15344
|
+
const cached = (function*() {}).constructor;
|
|
15345
|
+
module.exports = ()=>cached;
|
|
15346
|
+
},
|
|
15335
15347
|
"../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
15336
15348
|
var undefined;
|
|
15337
15349
|
var $Object = __webpack_require__("../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js");
|
|
@@ -16672,6 +16684,92 @@ __webpack_require__.add({
|
|
|
16672
16684
|
return hasSymbols() && !!Symbol.toStringTag;
|
|
16673
16685
|
};
|
|
16674
16686
|
},
|
|
16687
|
+
"../../node_modules/.pnpm/hash-base@3.0.5/node_modules/hash-base/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
16688
|
+
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
16689
|
+
var Transform = __webpack_require__("../../node_modules/.pnpm/stream-browserify@3.0.0/node_modules/stream-browserify/index.js").Transform;
|
|
16690
|
+
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
16691
|
+
function HashBase(blockSize) {
|
|
16692
|
+
Transform.call(this);
|
|
16693
|
+
this._block = Buffer.allocUnsafe(blockSize);
|
|
16694
|
+
this._blockSize = blockSize;
|
|
16695
|
+
this._blockOffset = 0;
|
|
16696
|
+
this._length = [
|
|
16697
|
+
0,
|
|
16698
|
+
0,
|
|
16699
|
+
0,
|
|
16700
|
+
0
|
|
16701
|
+
];
|
|
16702
|
+
this._finalized = false;
|
|
16703
|
+
}
|
|
16704
|
+
inherits(HashBase, Transform);
|
|
16705
|
+
HashBase.prototype._transform = function(chunk, encoding, callback) {
|
|
16706
|
+
var error = null;
|
|
16707
|
+
try {
|
|
16708
|
+
this.update(chunk, encoding);
|
|
16709
|
+
} catch (err) {
|
|
16710
|
+
error = err;
|
|
16711
|
+
}
|
|
16712
|
+
callback(error);
|
|
16713
|
+
};
|
|
16714
|
+
HashBase.prototype._flush = function(callback) {
|
|
16715
|
+
var error = null;
|
|
16716
|
+
try {
|
|
16717
|
+
this.push(this.digest());
|
|
16718
|
+
} catch (err) {
|
|
16719
|
+
error = err;
|
|
16720
|
+
}
|
|
16721
|
+
callback(error);
|
|
16722
|
+
};
|
|
16723
|
+
var useUint8Array = "u" > typeof Uint8Array;
|
|
16724
|
+
var useArrayBuffer = "u" > typeof ArrayBuffer && "u" > typeof Uint8Array && ArrayBuffer.isView && (Buffer.prototype instanceof Uint8Array || Buffer.TYPED_ARRAY_SUPPORT);
|
|
16725
|
+
function toBuffer(data, encoding) {
|
|
16726
|
+
if (data instanceof Buffer) return data;
|
|
16727
|
+
if ('string' == typeof data) return Buffer.from(data, encoding);
|
|
16728
|
+
if (useArrayBuffer && ArrayBuffer.isView(data)) {
|
|
16729
|
+
if (0 === data.byteLength) return Buffer.alloc(0);
|
|
16730
|
+
var res = Buffer.from(data.buffer, data.byteOffset, data.byteLength);
|
|
16731
|
+
if (res.byteLength === data.byteLength) return res;
|
|
16732
|
+
}
|
|
16733
|
+
if (useUint8Array && data instanceof Uint8Array) return Buffer.from(data);
|
|
16734
|
+
if (Buffer.isBuffer(data) && data.constructor && 'function' == typeof data.constructor.isBuffer && data.constructor.isBuffer(data)) return Buffer.from(data);
|
|
16735
|
+
throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.');
|
|
16736
|
+
}
|
|
16737
|
+
HashBase.prototype.update = function(data, encoding) {
|
|
16738
|
+
if (this._finalized) throw new Error('Digest already called');
|
|
16739
|
+
data = toBuffer(data, encoding);
|
|
16740
|
+
var block = this._block;
|
|
16741
|
+
var offset = 0;
|
|
16742
|
+
while(this._blockOffset + data.length - offset >= this._blockSize){
|
|
16743
|
+
for(var i = this._blockOffset; i < this._blockSize;)block[i++] = data[offset++];
|
|
16744
|
+
this._update();
|
|
16745
|
+
this._blockOffset = 0;
|
|
16746
|
+
}
|
|
16747
|
+
while(offset < data.length)block[this._blockOffset++] = data[offset++];
|
|
16748
|
+
for(var j = 0, carry = 8 * data.length; carry > 0; ++j){
|
|
16749
|
+
this._length[j] += carry;
|
|
16750
|
+
carry = this._length[j] / 0x0100000000 | 0;
|
|
16751
|
+
if (carry > 0) this._length[j] -= 0x0100000000 * carry;
|
|
16752
|
+
}
|
|
16753
|
+
return this;
|
|
16754
|
+
};
|
|
16755
|
+
HashBase.prototype._update = function() {
|
|
16756
|
+
throw new Error('_update is not implemented');
|
|
16757
|
+
};
|
|
16758
|
+
HashBase.prototype.digest = function(encoding) {
|
|
16759
|
+
if (this._finalized) throw new Error('Digest already called');
|
|
16760
|
+
this._finalized = true;
|
|
16761
|
+
var digest = this._digest();
|
|
16762
|
+
if (void 0 !== encoding) digest = digest.toString(encoding);
|
|
16763
|
+
this._block.fill(0);
|
|
16764
|
+
this._blockOffset = 0;
|
|
16765
|
+
for(var i = 0; i < 4; ++i)this._length[i] = 0;
|
|
16766
|
+
return digest;
|
|
16767
|
+
};
|
|
16768
|
+
HashBase.prototype._digest = function() {
|
|
16769
|
+
throw new Error('_digest is not implemented');
|
|
16770
|
+
};
|
|
16771
|
+
module.exports = HashBase;
|
|
16772
|
+
},
|
|
16675
16773
|
"../../node_modules/.pnpm/hash-base@3.1.2/node_modules/hash-base/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
16676
16774
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
16677
16775
|
var toBuffer = __webpack_require__("../../node_modules/.pnpm/hash-base@3.1.2/node_modules/hash-base/to-buffer.js");
|
|
@@ -18426,7 +18524,7 @@ __webpack_require__.add({
|
|
|
18426
18524
|
return tryFunctionObject(value);
|
|
18427
18525
|
};
|
|
18428
18526
|
},
|
|
18429
|
-
"../../node_modules/.pnpm/is-generator-function@1.1.
|
|
18527
|
+
"../../node_modules/.pnpm/is-generator-function@1.1.2/node_modules/is-generator-function/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
18430
18528
|
var callBound = __webpack_require__("../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js");
|
|
18431
18529
|
var safeRegexTest = __webpack_require__("../../node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js");
|
|
18432
18530
|
var isFnRegex = safeRegexTest(/^\s*(?:function)?\*/);
|
|
@@ -18434,13 +18532,7 @@ __webpack_require__.add({
|
|
|
18434
18532
|
var getProto = __webpack_require__("../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js");
|
|
18435
18533
|
var toStr = callBound('Object.prototype.toString');
|
|
18436
18534
|
var fnToStr = callBound('Function.prototype.toString');
|
|
18437
|
-
var
|
|
18438
|
-
if (!hasToStringTag) return false;
|
|
18439
|
-
try {
|
|
18440
|
-
return Function('return function*() {}')();
|
|
18441
|
-
} catch (e) {}
|
|
18442
|
-
};
|
|
18443
|
-
var GeneratorFunction;
|
|
18535
|
+
var getGeneratorFunction = __webpack_require__("../../node_modules/.pnpm/generator-function@2.0.1/node_modules/generator-function/index.js");
|
|
18444
18536
|
module.exports = function(fn) {
|
|
18445
18537
|
if ('function' != typeof fn) return false;
|
|
18446
18538
|
if (isFnRegex(fnToStr(fn))) return true;
|
|
@@ -18449,11 +18541,8 @@ __webpack_require__.add({
|
|
|
18449
18541
|
return '[object GeneratorFunction]' === str;
|
|
18450
18542
|
}
|
|
18451
18543
|
if (!getProto) return false;
|
|
18452
|
-
|
|
18453
|
-
|
|
18454
|
-
GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
|
|
18455
|
-
}
|
|
18456
|
-
return getProto(fn) === GeneratorFunction;
|
|
18544
|
+
var GeneratorFunction = getGeneratorFunction();
|
|
18545
|
+
return GeneratorFunction && getProto(fn) === GeneratorFunction.prototype;
|
|
18457
18546
|
};
|
|
18458
18547
|
},
|
|
18459
18548
|
"../../node_modules/.pnpm/is-nan@1.3.2/node_modules/is-nan/implementation.js" (module) {
|
|
@@ -18536,7 +18625,7 @@ __webpack_require__.add({
|
|
|
18536
18625
|
module.exports = fn;
|
|
18537
18626
|
},
|
|
18538
18627
|
"../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
18539
|
-
var whichTypedArray = __webpack_require__("../../node_modules/.pnpm/which-typed-array@1.1.
|
|
18628
|
+
var whichTypedArray = __webpack_require__("../../node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js");
|
|
18540
18629
|
module.exports = function(value) {
|
|
18541
18630
|
return !!whichTypedArray(value);
|
|
18542
18631
|
};
|
|
@@ -18585,7 +18674,7 @@ __webpack_require__.add({
|
|
|
18585
18674
|
},
|
|
18586
18675
|
"../../node_modules/.pnpm/md5.js@1.3.5/node_modules/md5.js/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
18587
18676
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
18588
|
-
var HashBase = __webpack_require__("../../node_modules/.pnpm/hash-base@3.
|
|
18677
|
+
var HashBase = __webpack_require__("../../node_modules/.pnpm/hash-base@3.0.5/node_modules/hash-base/index.js");
|
|
18589
18678
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
18590
18679
|
var ARRAY16 = new Array(16);
|
|
18591
18680
|
function MD5() {
|
|
@@ -18708,7 +18797,7 @@ __webpack_require__.add({
|
|
|
18708
18797
|
module.exports = MD5;
|
|
18709
18798
|
},
|
|
18710
18799
|
"../../node_modules/.pnpm/miller-rabin@4.0.1/node_modules/miller-rabin/lib/mr.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
18711
|
-
var bn = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
18800
|
+
var bn = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
18712
18801
|
var brorand = __webpack_require__("../../node_modules/.pnpm/brorand@1.1.0/node_modules/brorand/index.js");
|
|
18713
18802
|
function MillerRabin(rand) {
|
|
18714
18803
|
this.rand = rand || new brorand.Rand();
|
|
@@ -23614,7 +23703,7 @@ __webpack_require__.add({
|
|
|
23614
23703
|
var parseKeys = __webpack_require__("../../node_modules/.pnpm/parse-asn1@5.1.9/node_modules/parse-asn1/index.js");
|
|
23615
23704
|
var mgf = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/mgf.js");
|
|
23616
23705
|
var xor = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/xor.js");
|
|
23617
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
23706
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
23618
23707
|
var crt = __webpack_require__("../../node_modules/.pnpm/browserify-rsa@4.1.1/node_modules/browserify-rsa/index.js");
|
|
23619
23708
|
var createHash = __webpack_require__("../../node_modules/.pnpm/create-hash@1.2.0/node_modules/create-hash/browser.js");
|
|
23620
23709
|
var withPublic = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/withPublic.js");
|
|
@@ -23686,7 +23775,7 @@ __webpack_require__.add({
|
|
|
23686
23775
|
var createHash = __webpack_require__("../../node_modules/.pnpm/create-hash@1.2.0/node_modules/create-hash/browser.js");
|
|
23687
23776
|
var mgf = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/mgf.js");
|
|
23688
23777
|
var xor = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/xor.js");
|
|
23689
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
23778
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
23690
23779
|
var withPublic = __webpack_require__("../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/withPublic.js");
|
|
23691
23780
|
var crt = __webpack_require__("../../node_modules/.pnpm/browserify-rsa@4.1.1/node_modules/browserify-rsa/index.js");
|
|
23692
23781
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
@@ -23761,7 +23850,7 @@ __webpack_require__.add({
|
|
|
23761
23850
|
}
|
|
23762
23851
|
},
|
|
23763
23852
|
"../../node_modules/.pnpm/public-encrypt@4.0.3/node_modules/public-encrypt/withPublic.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
23764
|
-
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.
|
|
23853
|
+
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
23765
23854
|
var Buffer = __webpack_require__("../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js").Buffer;
|
|
23766
23855
|
function withPublic(paddedMsg, key) {
|
|
23767
23856
|
return Buffer.from(paddedMsg.toRed(BN.mont(key.modulus)).redPow(new BN(key.publicExponent)).fromRed().toArray());
|
|
@@ -23955,7 +24044,7 @@ __webpack_require__.add({
|
|
|
23955
24044
|
else root.punycode = punycode;
|
|
23956
24045
|
})(this);
|
|
23957
24046
|
},
|
|
23958
|
-
"../../node_modules/.pnpm/qs@6.
|
|
24047
|
+
"../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/formats.js" (module) {
|
|
23959
24048
|
var replace = String.prototype.replace;
|
|
23960
24049
|
var percentTwenties = /%20/g;
|
|
23961
24050
|
var Format = {
|
|
@@ -23976,18 +24065,18 @@ __webpack_require__.add({
|
|
|
23976
24065
|
RFC3986: Format.RFC3986
|
|
23977
24066
|
};
|
|
23978
24067
|
},
|
|
23979
|
-
"../../node_modules/.pnpm/qs@6.
|
|
23980
|
-
var stringify = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
23981
|
-
var parse = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
23982
|
-
var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
24068
|
+
"../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
24069
|
+
var stringify = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/stringify.js");
|
|
24070
|
+
var parse = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/parse.js");
|
|
24071
|
+
var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/formats.js");
|
|
23983
24072
|
module.exports = {
|
|
23984
24073
|
formats: formats,
|
|
23985
24074
|
parse: parse,
|
|
23986
24075
|
stringify: stringify
|
|
23987
24076
|
};
|
|
23988
24077
|
},
|
|
23989
|
-
"../../node_modules/.pnpm/qs@6.
|
|
23990
|
-
var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
24078
|
+
"../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/parse.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
24079
|
+
var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/utils.js");
|
|
23991
24080
|
var has = Object.prototype.hasOwnProperty;
|
|
23992
24081
|
var isArray = Array.isArray;
|
|
23993
24082
|
var defaults = {
|
|
@@ -24010,6 +24099,7 @@ __webpack_require__.add({
|
|
|
24010
24099
|
parseArrays: true,
|
|
24011
24100
|
plainObjects: false,
|
|
24012
24101
|
strictDepth: false,
|
|
24102
|
+
strictMerge: true,
|
|
24013
24103
|
strictNullHandling: false,
|
|
24014
24104
|
throwOnLimitExceeded: false
|
|
24015
24105
|
};
|
|
@@ -24056,7 +24146,7 @@ __webpack_require__.add({
|
|
|
24056
24146
|
val = options.strictNullHandling ? null : '';
|
|
24057
24147
|
} else {
|
|
24058
24148
|
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
24059
|
-
val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
|
|
24149
|
+
if (null !== key) val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
|
|
24060
24150
|
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
24061
24151
|
});
|
|
24062
24152
|
}
|
|
@@ -24064,9 +24154,15 @@ __webpack_require__.add({
|
|
|
24064
24154
|
if (part.indexOf('[]=') > -1) val = isArray(val) ? [
|
|
24065
24155
|
val
|
|
24066
24156
|
] : val;
|
|
24067
|
-
|
|
24068
|
-
|
|
24069
|
-
|
|
24157
|
+
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
24158
|
+
if (options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
|
|
24159
|
+
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
24160
|
+
}
|
|
24161
|
+
if (null !== key) {
|
|
24162
|
+
var existing = has.call(obj, key);
|
|
24163
|
+
if (existing && ('combine' === options.duplicates || part.indexOf('[]=') > -1)) obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
|
|
24164
|
+
else if (!existing || 'last' === options.duplicates) obj[key] = val;
|
|
24165
|
+
}
|
|
24070
24166
|
}
|
|
24071
24167
|
return obj;
|
|
24072
24168
|
};
|
|
@@ -24080,7 +24176,7 @@ __webpack_require__.add({
|
|
|
24080
24176
|
for(var i = chain.length - 1; i >= 0; --i){
|
|
24081
24177
|
var obj;
|
|
24082
24178
|
var root = chain[i];
|
|
24083
|
-
if ('[]' === root && options.parseArrays) obj = options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : utils.combine([], leaf);
|
|
24179
|
+
if ('[]' === root && options.parseArrays) obj = utils.isOverflow(leaf) ? leaf : options.allowEmptyArrays && ('' === leaf || options.strictNullHandling && null === leaf) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects);
|
|
24084
24180
|
else {
|
|
24085
24181
|
obj = options.plainObjects ? {
|
|
24086
24182
|
__proto__: null
|
|
@@ -24088,10 +24184,15 @@ __webpack_require__.add({
|
|
|
24088
24184
|
var cleanRoot = '[' === root.charAt(0) && ']' === root.charAt(root.length - 1) ? root.slice(1, -1) : root;
|
|
24089
24185
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
|
|
24090
24186
|
var index = parseInt(decodedRoot, 10);
|
|
24187
|
+
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
24091
24188
|
if (options.parseArrays || '' !== decodedRoot) {
|
|
24092
|
-
if (
|
|
24189
|
+
if (isValidArrayIndex && index < options.arrayLimit) {
|
|
24093
24190
|
obj = [];
|
|
24094
24191
|
obj[index] = leaf;
|
|
24192
|
+
} else if (isValidArrayIndex && options.throwOnLimitExceeded) throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (1 === options.arrayLimit ? '' : 's') + ' allowed in an array.');
|
|
24193
|
+
else if (isValidArrayIndex) {
|
|
24194
|
+
obj[index] = leaf;
|
|
24195
|
+
utils.markOverflow(obj, index);
|
|
24095
24196
|
} else if ('__proto__' !== decodedRoot) obj[decodedRoot] = leaf;
|
|
24096
24197
|
} else obj = {
|
|
24097
24198
|
0: leaf
|
|
@@ -24101,32 +24202,46 @@ __webpack_require__.add({
|
|
|
24101
24202
|
}
|
|
24102
24203
|
return leaf;
|
|
24103
24204
|
};
|
|
24104
|
-
var
|
|
24105
|
-
if (!givenKey) return;
|
|
24205
|
+
var splitKeyIntoSegments = function(givenKey, options) {
|
|
24106
24206
|
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
24207
|
+
if (options.depth <= 0) {
|
|
24208
|
+
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
24209
|
+
if (!options.allowPrototypes) return;
|
|
24210
|
+
}
|
|
24211
|
+
return [
|
|
24212
|
+
key
|
|
24213
|
+
];
|
|
24214
|
+
}
|
|
24107
24215
|
var brackets = /(\[[^[\]]*])/;
|
|
24108
24216
|
var child = /(\[[^[\]]*])/g;
|
|
24109
|
-
var segment =
|
|
24217
|
+
var segment = brackets.exec(key);
|
|
24110
24218
|
var parent = segment ? key.slice(0, segment.index) : key;
|
|
24111
24219
|
var keys = [];
|
|
24112
24220
|
if (parent) {
|
|
24113
24221
|
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
24114
24222
|
if (!options.allowPrototypes) return;
|
|
24115
24223
|
}
|
|
24116
|
-
keys.
|
|
24224
|
+
keys[keys.length] = parent;
|
|
24117
24225
|
}
|
|
24118
24226
|
var i = 0;
|
|
24119
|
-
while(
|
|
24227
|
+
while(null !== (segment = child.exec(key)) && i < options.depth){
|
|
24120
24228
|
i += 1;
|
|
24121
|
-
|
|
24229
|
+
var segmentContent = segment[1].slice(1, -1);
|
|
24230
|
+
if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
|
|
24122
24231
|
if (!options.allowPrototypes) return;
|
|
24123
24232
|
}
|
|
24124
|
-
keys.
|
|
24233
|
+
keys[keys.length] = segment[1];
|
|
24125
24234
|
}
|
|
24126
24235
|
if (segment) {
|
|
24127
24236
|
if (true === options.strictDepth) throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
|
|
24128
|
-
keys.
|
|
24237
|
+
keys[keys.length] = '[' + key.slice(segment.index) + ']';
|
|
24129
24238
|
}
|
|
24239
|
+
return keys;
|
|
24240
|
+
};
|
|
24241
|
+
var parseKeys = function(givenKey, val, options, valuesParsed) {
|
|
24242
|
+
if (!givenKey) return;
|
|
24243
|
+
var keys = splitKeyIntoSegments(givenKey, options);
|
|
24244
|
+
if (!keys) return;
|
|
24130
24245
|
return parseObject(keys, val, options, valuesParsed);
|
|
24131
24246
|
};
|
|
24132
24247
|
var normalizeParseOptions = function(opts) {
|
|
@@ -24160,6 +24275,7 @@ __webpack_require__.add({
|
|
|
24160
24275
|
parseArrays: false !== opts.parseArrays,
|
|
24161
24276
|
plainObjects: 'boolean' == typeof opts.plainObjects ? opts.plainObjects : defaults.plainObjects,
|
|
24162
24277
|
strictDepth: 'boolean' == typeof opts.strictDepth ? !!opts.strictDepth : defaults.strictDepth,
|
|
24278
|
+
strictMerge: 'boolean' == typeof opts.strictMerge ? !!opts.strictMerge : defaults.strictMerge,
|
|
24163
24279
|
strictNullHandling: 'boolean' == typeof opts.strictNullHandling ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
24164
24280
|
throwOnLimitExceeded: 'boolean' == typeof opts.throwOnLimitExceeded ? opts.throwOnLimitExceeded : false
|
|
24165
24281
|
};
|
|
@@ -24183,10 +24299,10 @@ __webpack_require__.add({
|
|
|
24183
24299
|
return utils.compact(obj);
|
|
24184
24300
|
};
|
|
24185
24301
|
},
|
|
24186
|
-
"../../node_modules/.pnpm/qs@6.
|
|
24302
|
+
"../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/stringify.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
24187
24303
|
var getSideChannel = __webpack_require__("../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js");
|
|
24188
|
-
var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
24189
|
-
var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
24304
|
+
var utils = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/utils.js");
|
|
24305
|
+
var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/formats.js");
|
|
24190
24306
|
var has = Object.prototype.hasOwnProperty;
|
|
24191
24307
|
var arrayPrefixGenerators = {
|
|
24192
24308
|
brackets: function(prefix) {
|
|
@@ -24373,13 +24489,28 @@ __webpack_require__.add({
|
|
|
24373
24489
|
return joined.length > 0 ? prefix + joined : '';
|
|
24374
24490
|
};
|
|
24375
24491
|
},
|
|
24376
|
-
"../../node_modules/.pnpm/qs@6.
|
|
24377
|
-
var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
24492
|
+
"../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/utils.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
24493
|
+
var formats = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/formats.js");
|
|
24494
|
+
var getSideChannel = __webpack_require__("../../node_modules/.pnpm/side-channel@1.1.0/node_modules/side-channel/index.js");
|
|
24378
24495
|
var has = Object.prototype.hasOwnProperty;
|
|
24379
24496
|
var isArray = Array.isArray;
|
|
24497
|
+
var overflowChannel = getSideChannel();
|
|
24498
|
+
var markOverflow = function(obj, maxIndex) {
|
|
24499
|
+
overflowChannel.set(obj, maxIndex);
|
|
24500
|
+
return obj;
|
|
24501
|
+
};
|
|
24502
|
+
var isOverflow = function(obj) {
|
|
24503
|
+
return overflowChannel.has(obj);
|
|
24504
|
+
};
|
|
24505
|
+
var getMaxIndex = function(obj) {
|
|
24506
|
+
return overflowChannel.get(obj);
|
|
24507
|
+
};
|
|
24508
|
+
var setMaxIndex = function(obj, maxIndex) {
|
|
24509
|
+
overflowChannel.set(obj, maxIndex);
|
|
24510
|
+
};
|
|
24380
24511
|
var hexTable = function() {
|
|
24381
24512
|
var array = [];
|
|
24382
|
-
for(var i = 0; i < 256; ++i)array.
|
|
24513
|
+
for(var i = 0; i < 256; ++i)array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
|
|
24383
24514
|
return array;
|
|
24384
24515
|
}();
|
|
24385
24516
|
var compactQueue = function(queue) {
|
|
@@ -24388,7 +24519,7 @@ __webpack_require__.add({
|
|
|
24388
24519
|
var obj = item.obj[item.prop];
|
|
24389
24520
|
if (isArray(obj)) {
|
|
24390
24521
|
var compacted = [];
|
|
24391
|
-
for(var j = 0; j < obj.length; ++j)if (void 0 !== obj[j]) compacted.
|
|
24522
|
+
for(var j = 0; j < obj.length; ++j)if (void 0 !== obj[j]) compacted[compacted.length] = obj[j];
|
|
24392
24523
|
item.obj[item.prop] = compacted;
|
|
24393
24524
|
}
|
|
24394
24525
|
}
|
|
@@ -24403,17 +24534,46 @@ __webpack_require__.add({
|
|
|
24403
24534
|
var merge = function merge(target, source, options) {
|
|
24404
24535
|
if (!source) return target;
|
|
24405
24536
|
if ('object' != typeof source && 'function' != typeof source) {
|
|
24406
|
-
if (isArray(target))
|
|
24407
|
-
|
|
24537
|
+
if (isArray(target)) {
|
|
24538
|
+
var nextIndex = target.length;
|
|
24539
|
+
if (options && 'number' == typeof options.arrayLimit && nextIndex > options.arrayLimit) return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
24540
|
+
target[nextIndex] = source;
|
|
24541
|
+
} else if (!target || 'object' != typeof target) return [
|
|
24542
|
+
target,
|
|
24543
|
+
source
|
|
24544
|
+
];
|
|
24545
|
+
else if (isOverflow(target)) {
|
|
24546
|
+
var newIndex = getMaxIndex(target) + 1;
|
|
24547
|
+
target[newIndex] = source;
|
|
24548
|
+
setMaxIndex(target, newIndex);
|
|
24549
|
+
} else if (options && options.strictMerge) return [
|
|
24408
24550
|
target,
|
|
24409
24551
|
source
|
|
24410
24552
|
];
|
|
24411
24553
|
else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) target[source] = true;
|
|
24412
24554
|
return target;
|
|
24413
24555
|
}
|
|
24414
|
-
if (!target || 'object' != typeof target)
|
|
24415
|
-
|
|
24416
|
-
|
|
24556
|
+
if (!target || 'object' != typeof target) {
|
|
24557
|
+
if (isOverflow(source)) {
|
|
24558
|
+
var sourceKeys = Object.keys(source);
|
|
24559
|
+
var result = options && options.plainObjects ? {
|
|
24560
|
+
__proto__: null,
|
|
24561
|
+
0: target
|
|
24562
|
+
} : {
|
|
24563
|
+
0: target
|
|
24564
|
+
};
|
|
24565
|
+
for(var m = 0; m < sourceKeys.length; m++){
|
|
24566
|
+
var oldKey = parseInt(sourceKeys[m], 10);
|
|
24567
|
+
result[oldKey + 1] = source[sourceKeys[m]];
|
|
24568
|
+
}
|
|
24569
|
+
return markOverflow(result, getMaxIndex(source) + 1);
|
|
24570
|
+
}
|
|
24571
|
+
var combined = [
|
|
24572
|
+
target
|
|
24573
|
+
].concat(source);
|
|
24574
|
+
if (options && 'number' == typeof options.arrayLimit && combined.length > options.arrayLimit) return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
24575
|
+
return combined;
|
|
24576
|
+
}
|
|
24417
24577
|
var mergeTarget = target;
|
|
24418
24578
|
if (isArray(target) && !isArray(source)) mergeTarget = arrayToObject(target, options);
|
|
24419
24579
|
if (isArray(target) && isArray(source)) {
|
|
@@ -24421,7 +24581,7 @@ __webpack_require__.add({
|
|
|
24421
24581
|
if (has.call(target, i)) {
|
|
24422
24582
|
var targetItem = target[i];
|
|
24423
24583
|
if (targetItem && 'object' == typeof targetItem && item && 'object' == typeof item) target[i] = merge(targetItem, item, options);
|
|
24424
|
-
else target.
|
|
24584
|
+
else target[target.length] = item;
|
|
24425
24585
|
} else target[i] = item;
|
|
24426
24586
|
});
|
|
24427
24587
|
return target;
|
|
@@ -24430,6 +24590,11 @@ __webpack_require__.add({
|
|
|
24430
24590
|
var value = source[key];
|
|
24431
24591
|
if (has.call(acc, key)) acc[key] = merge(acc[key], value, options);
|
|
24432
24592
|
else acc[key] = value;
|
|
24593
|
+
if (isOverflow(source) && !isOverflow(acc)) markOverflow(acc, getMaxIndex(source));
|
|
24594
|
+
if (isOverflow(acc)) {
|
|
24595
|
+
var keyNum = parseInt(key, 10);
|
|
24596
|
+
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) setMaxIndex(acc, keyNum);
|
|
24597
|
+
}
|
|
24433
24598
|
return acc;
|
|
24434
24599
|
}, mergeTarget);
|
|
24435
24600
|
};
|
|
@@ -24505,11 +24670,11 @@ __webpack_require__.add({
|
|
|
24505
24670
|
var key = keys[j];
|
|
24506
24671
|
var val = obj[key];
|
|
24507
24672
|
if ('object' == typeof val && null !== val && -1 === refs.indexOf(val)) {
|
|
24508
|
-
queue.
|
|
24673
|
+
queue[queue.length] = {
|
|
24509
24674
|
obj: obj,
|
|
24510
24675
|
prop: key
|
|
24511
|
-
}
|
|
24512
|
-
refs.
|
|
24676
|
+
};
|
|
24677
|
+
refs[refs.length] = val;
|
|
24513
24678
|
}
|
|
24514
24679
|
}
|
|
24515
24680
|
}
|
|
@@ -24523,13 +24688,23 @@ __webpack_require__.add({
|
|
|
24523
24688
|
if (!obj || 'object' != typeof obj) return false;
|
|
24524
24689
|
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
24525
24690
|
};
|
|
24526
|
-
var combine = function(a, b) {
|
|
24527
|
-
|
|
24691
|
+
var combine = function(a, b, arrayLimit, plainObjects) {
|
|
24692
|
+
if (isOverflow(a)) {
|
|
24693
|
+
var newIndex = getMaxIndex(a) + 1;
|
|
24694
|
+
a[newIndex] = b;
|
|
24695
|
+
setMaxIndex(a, newIndex);
|
|
24696
|
+
return a;
|
|
24697
|
+
}
|
|
24698
|
+
var result = [].concat(a, b);
|
|
24699
|
+
if (result.length > arrayLimit) return markOverflow(arrayToObject(result, {
|
|
24700
|
+
plainObjects: plainObjects
|
|
24701
|
+
}), result.length - 1);
|
|
24702
|
+
return result;
|
|
24528
24703
|
};
|
|
24529
24704
|
var maybeMap = function(val, fn) {
|
|
24530
24705
|
if (isArray(val)) {
|
|
24531
24706
|
var mapped = [];
|
|
24532
|
-
for(var i = 0; i < val.length; i += 1)mapped.
|
|
24707
|
+
for(var i = 0; i < val.length; i += 1)mapped[mapped.length] = fn(val[i]);
|
|
24533
24708
|
return mapped;
|
|
24534
24709
|
}
|
|
24535
24710
|
return fn(val);
|
|
@@ -24542,7 +24717,9 @@ __webpack_require__.add({
|
|
|
24542
24717
|
decode: decode,
|
|
24543
24718
|
encode: encode,
|
|
24544
24719
|
isBuffer: isBuffer,
|
|
24720
|
+
isOverflow: isOverflow,
|
|
24545
24721
|
isRegExp: isRegExp,
|
|
24722
|
+
markOverflow: markOverflow,
|
|
24546
24723
|
maybeMap: maybeMap,
|
|
24547
24724
|
merge: merge
|
|
24548
24725
|
};
|
|
@@ -30735,7 +30912,7 @@ __webpack_require__.add({
|
|
|
30735
30912
|
'ftp:': true,
|
|
30736
30913
|
'gopher:': true,
|
|
30737
30914
|
'file:': true
|
|
30738
|
-
}, querystring = __webpack_require__("../../node_modules/.pnpm/qs@6.
|
|
30915
|
+
}, querystring = __webpack_require__("../../node_modules/.pnpm/qs@6.15.0/node_modules/qs/lib/index.js");
|
|
30739
30916
|
function urlParse(url, parseQueryString, slashesDenoteHost) {
|
|
30740
30917
|
if (url && 'object' == typeof url && url instanceof Url) return url;
|
|
30741
30918
|
var u = new Url();
|
|
@@ -31129,8 +31306,8 @@ __webpack_require__.add({
|
|
|
31129
31306
|
},
|
|
31130
31307
|
"../../node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
31131
31308
|
var isArgumentsObject = __webpack_require__("../../node_modules/.pnpm/is-arguments@1.2.0/node_modules/is-arguments/index.js");
|
|
31132
|
-
var isGeneratorFunction = __webpack_require__("../../node_modules/.pnpm/is-generator-function@1.1.
|
|
31133
|
-
var whichTypedArray = __webpack_require__("../../node_modules/.pnpm/which-typed-array@1.1.
|
|
31309
|
+
var isGeneratorFunction = __webpack_require__("../../node_modules/.pnpm/is-generator-function@1.1.2/node_modules/is-generator-function/index.js");
|
|
31310
|
+
var whichTypedArray = __webpack_require__("../../node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js");
|
|
31134
31311
|
var isTypedArray = __webpack_require__("../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js");
|
|
31135
31312
|
function uncurryThis(f) {
|
|
31136
31313
|
return f.call.bind(f);
|
|
@@ -35137,7 +35314,7 @@ __webpack_require__.add({
|
|
|
35137
35314
|
}
|
|
35138
35315
|
});
|
|
35139
35316
|
},
|
|
35140
|
-
"../../node_modules/.pnpm/which-typed-array@1.1.
|
|
35317
|
+
"../../node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
35141
35318
|
var forEach = __webpack_require__("../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js");
|
|
35142
35319
|
var availableTypedArrays = __webpack_require__("../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js");
|
|
35143
35320
|
var callBind = __webpack_require__("../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js");
|
|
@@ -35165,12 +35342,18 @@ __webpack_require__.add({
|
|
|
35165
35342
|
var superProto = getProto(proto);
|
|
35166
35343
|
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
35167
35344
|
}
|
|
35168
|
-
|
|
35345
|
+
if (descriptor && descriptor.get) {
|
|
35346
|
+
var bound = callBind(descriptor.get);
|
|
35347
|
+
cache['$' + typedArray] = bound;
|
|
35348
|
+
}
|
|
35169
35349
|
}
|
|
35170
35350
|
}) : forEach(typedArrays, function(typedArray) {
|
|
35171
35351
|
var arr = new g[typedArray]();
|
|
35172
35352
|
var fn = arr.slice || arr.set;
|
|
35173
|
-
if (fn)
|
|
35353
|
+
if (fn) {
|
|
35354
|
+
var bound = callBind(fn);
|
|
35355
|
+
cache['$' + typedArray] = bound;
|
|
35356
|
+
}
|
|
35174
35357
|
});
|
|
35175
35358
|
var tryTypedArrays = function(value) {
|
|
35176
35359
|
var found = false;
|
|
@@ -35247,8 +35430,8 @@ __webpack_require__.add({
|
|
|
35247
35430
|
"@rspack/binding" (module) {
|
|
35248
35431
|
module.exports = __rspack_external__rspack_wasi_browser_js_bd433424;
|
|
35249
35432
|
},
|
|
35250
|
-
"?
|
|
35251
|
-
"?
|
|
35433
|
+
"?7763" () {},
|
|
35434
|
+
"?5658" () {},
|
|
35252
35435
|
"?69f8" () {},
|
|
35253
35436
|
"?f42a" () {},
|
|
35254
35437
|
"?5f4e" () {},
|
|
@@ -50294,6 +50477,17 @@ __webpack_require__.d(ModuleFilenameHelpers_namespaceObject, {
|
|
|
50294
50477
|
matchObject: ()=>matchObject,
|
|
50295
50478
|
matchPart: ()=>matchPart
|
|
50296
50479
|
});
|
|
50480
|
+
var process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
50481
|
+
function checkNodeVersion() {
|
|
50482
|
+
const { node, bun, deno } = process.versions;
|
|
50483
|
+
if (!node || bun || deno) return;
|
|
50484
|
+
const [majorStr, minorStr] = node.split('.');
|
|
50485
|
+
const major = parseInt(majorStr, 10);
|
|
50486
|
+
const minor = parseInt(minorStr || '0', 10);
|
|
50487
|
+
const supported = 20 === major && minor >= 19 || 22 === major && minor >= 12 || major > 22;
|
|
50488
|
+
if (!supported) console.error(`Unsupported Node.js version "${node}". Rspack requires Node.js 20.19+ or 22.12+. Please upgrade your Node.js version.\n`);
|
|
50489
|
+
}
|
|
50490
|
+
checkNodeVersion();
|
|
50297
50491
|
const loaderFlag = 'LOADER_EXECUTION';
|
|
50298
50492
|
const cutOffByFlag = (stack, flag)=>{
|
|
50299
50493
|
const stacks = stack.split('\n');
|
|
@@ -50330,7 +50524,7 @@ Object.defineProperty(WebpackError.prototype, util_0.inspect.custom, {
|
|
|
50330
50524
|
configurable: true
|
|
50331
50525
|
});
|
|
50332
50526
|
const lib_WebpackError = WebpackError;
|
|
50333
|
-
var
|
|
50527
|
+
var Logger_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
50334
50528
|
const LogType = Object.freeze({
|
|
50335
50529
|
error: 'error',
|
|
50336
50530
|
warn: 'warn',
|
|
@@ -50416,12 +50610,12 @@ class Logger {
|
|
|
50416
50610
|
}
|
|
50417
50611
|
time(label) {
|
|
50418
50612
|
this[TIMERS_SYMBOL] = this[TIMERS_SYMBOL] || new Map();
|
|
50419
|
-
this[TIMERS_SYMBOL].set(label,
|
|
50613
|
+
this[TIMERS_SYMBOL].set(label, Logger_process.hrtime());
|
|
50420
50614
|
}
|
|
50421
50615
|
timeLog(label) {
|
|
50422
50616
|
const prev = this[TIMERS_SYMBOL]?.get(label);
|
|
50423
50617
|
if (!prev) throw new Error(`No such label '${label}' for WebpackLogger.timeLog()`);
|
|
50424
|
-
const time =
|
|
50618
|
+
const time = Logger_process.hrtime(prev);
|
|
50425
50619
|
this[LOG_SYMBOL](LogType.time, [
|
|
50426
50620
|
label,
|
|
50427
50621
|
...time
|
|
@@ -50430,7 +50624,7 @@ class Logger {
|
|
|
50430
50624
|
timeEnd(label) {
|
|
50431
50625
|
const prev = this[TIMERS_SYMBOL]?.get(label);
|
|
50432
50626
|
if (!prev) throw new Error(`No such label '${label}' for WebpackLogger.timeEnd()`);
|
|
50433
|
-
const time =
|
|
50627
|
+
const time = Logger_process.hrtime(prev);
|
|
50434
50628
|
this[TIMERS_SYMBOL].delete(label);
|
|
50435
50629
|
this[LOG_SYMBOL](LogType.time, [
|
|
50436
50630
|
label,
|
|
@@ -50440,7 +50634,7 @@ class Logger {
|
|
|
50440
50634
|
timeAggregate(label) {
|
|
50441
50635
|
const prev = this[TIMERS_SYMBOL]?.get(label);
|
|
50442
50636
|
if (!prev) throw new Error(`No such label '${label}' for WebpackLogger.timeAggregate()`);
|
|
50443
|
-
const time =
|
|
50637
|
+
const time = Logger_process.hrtime(prev);
|
|
50444
50638
|
this[TIMERS_SYMBOL].delete(label);
|
|
50445
50639
|
this[TIMERS_AGGREGATES_SYMBOL] = this[TIMERS_AGGREGATES_SYMBOL] || new Map();
|
|
50446
50640
|
const current = this[TIMERS_AGGREGATES_SYMBOL].get(label);
|
|
@@ -53063,6 +53257,13 @@ const _parseResourceWithoutFragment = (str)=>{
|
|
|
53063
53257
|
};
|
|
53064
53258
|
};
|
|
53065
53259
|
const parseResourceWithoutFragment = makeCacheable(_parseResourceWithoutFragment);
|
|
53260
|
+
var supportsColor_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
53261
|
+
function isStatsColorSupported() {
|
|
53262
|
+
if (void 0 === supportsColor_process) return false;
|
|
53263
|
+
const env = supportsColor_process.env ?? {};
|
|
53264
|
+
const argv = supportsColor_process.argv ?? [];
|
|
53265
|
+
return !('NO_COLOR' in env || argv.includes('--no-color')) && ('FORCE_COLOR' in env || argv.includes('--color') || 'win32' === supportsColor_process.platform || supportsColor_process.stdout?.isTTY && 'dumb' !== env.TERM || 'CI' in env);
|
|
53266
|
+
}
|
|
53066
53267
|
function encodeVersion(version) {
|
|
53067
53268
|
const [major, minor = 0, patch = 0] = version.split('-')[0].split('.').map((v)=>parseInt(v, 10));
|
|
53068
53269
|
if (Number.isNaN(major) || Number.isNaN(minor) || Number.isNaN(patch)) return null;
|
|
@@ -55028,11 +55229,12 @@ function getRawJavascriptParserOptions(parser) {
|
|
|
55028
55229
|
dynamicImportPreload: parser.dynamicImportPreload?.toString(),
|
|
55029
55230
|
dynamicImportPrefetch: parser.dynamicImportPrefetch?.toString(),
|
|
55030
55231
|
dynamicImportFetchPriority: parser.dynamicImportFetchPriority,
|
|
55031
|
-
importMeta: parser.importMeta,
|
|
55232
|
+
importMeta: 'boolean' == typeof parser.importMeta ? String(parser.importMeta) : parser.importMeta,
|
|
55032
55233
|
url: parser.url?.toString(),
|
|
55033
55234
|
exprContextCritical: parser.exprContextCritical,
|
|
55034
55235
|
unknownContextCritical: parser.unknownContextCritical,
|
|
55035
55236
|
wrappedContextCritical: parser.wrappedContextCritical,
|
|
55237
|
+
strictThisContextOnImports: parser.strictThisContextOnImports,
|
|
55036
55238
|
wrappedContextRegExp: parser.wrappedContextRegExp,
|
|
55037
55239
|
exportsPresence: false === parser.exportsPresence ? 'false' : parser.exportsPresence,
|
|
55038
55240
|
importExportsPresence: false === parser.importExportsPresence ? 'false' : parser.importExportsPresence,
|
|
@@ -55182,8 +55384,9 @@ function getRawNode(node) {
|
|
|
55182
55384
|
}
|
|
55183
55385
|
function getRawStats(stats) {
|
|
55184
55386
|
const statsOptions = normalizeStatsPreset(stats);
|
|
55387
|
+
const colors = void 0 === statsOptions.colors ? isStatsColorSupported() : Boolean(statsOptions.colors);
|
|
55185
55388
|
return {
|
|
55186
|
-
colors
|
|
55389
|
+
colors
|
|
55187
55390
|
};
|
|
55188
55391
|
}
|
|
55189
55392
|
class ExternalsPlugin extends RspackBuiltinPlugin {
|
|
@@ -56030,15 +56233,14 @@ class SubresourceIntegrityPlugin extends NativeSubresourceIntegrityPlugin {
|
|
|
56030
56233
|
}
|
|
56031
56234
|
let src = '';
|
|
56032
56235
|
if (isUrlSrc) {
|
|
56033
|
-
|
|
56236
|
+
const isLocalPublicPath = !publicPath || '/' === publicPath || './' === publicPath;
|
|
56237
|
+
if (isLocalPublicPath) return;
|
|
56034
56238
|
const protocolRelativePublicPath = publicPath.replace(HTTP_PROTOCOL_REGEX, '');
|
|
56035
56239
|
const protocolRelativeTagSrc = tagSrc.replace(HTTP_PROTOCOL_REGEX, '');
|
|
56036
56240
|
if (!protocolRelativeTagSrc.startsWith(protocolRelativePublicPath)) return;
|
|
56037
|
-
{
|
|
56038
|
-
|
|
56039
|
-
|
|
56040
|
-
src = (0, path_browserify.relative)(publicPathWithScheme, decodeURIComponent(tagSrcWithScheme));
|
|
56041
|
-
}
|
|
56241
|
+
const tagSrcWithScheme = `http:${protocolRelativeTagSrc}`;
|
|
56242
|
+
const publicPathWithScheme = protocolRelativePublicPath.startsWith('//') ? `http:${protocolRelativePublicPath}` : protocolRelativePublicPath;
|
|
56243
|
+
src = (0, path_browserify.relative)(publicPathWithScheme, decodeURIComponent(tagSrcWithScheme));
|
|
56042
56244
|
} else src = (0, path_browserify.relative)(publicPath, decodeURIComponent(tagSrc));
|
|
56043
56245
|
tag.attributes.integrity = this.getIntegrityChecksumForAsset(src) || computeIntegrity(this.options.hashFuncNames, (0, fs_0.readFileSync)((0, path_browserify.join)(outputPath, src)));
|
|
56044
56246
|
tag.attributes.crossorigin = crossOriginLoading || 'anonymous';
|
|
@@ -56121,27 +56323,39 @@ function SwcJsMinimizerPlugin_isObject(value) {
|
|
|
56121
56323
|
}
|
|
56122
56324
|
function getRawExtractCommentsOptions(extractComments) {
|
|
56123
56325
|
const conditionStr = (condition)=>{
|
|
56124
|
-
if (void 0 === condition || true === condition) return
|
|
56326
|
+
if (void 0 === condition || true === condition) return {
|
|
56327
|
+
source: '@preserve|@lic|@cc_on|^\\**!',
|
|
56328
|
+
flags: ''
|
|
56329
|
+
};
|
|
56125
56330
|
if (false === condition) throw Error('unreachable');
|
|
56126
|
-
return
|
|
56331
|
+
return {
|
|
56332
|
+
source: condition.source,
|
|
56333
|
+
flags: condition.flags
|
|
56334
|
+
};
|
|
56127
56335
|
};
|
|
56128
56336
|
if ('boolean' == typeof extractComments) {
|
|
56129
56337
|
if (!extractComments) return;
|
|
56338
|
+
const { source, flags } = conditionStr(extractComments);
|
|
56130
56339
|
const res = {
|
|
56131
|
-
condition:
|
|
56340
|
+
condition: source,
|
|
56341
|
+
conditionFlags: flags
|
|
56132
56342
|
};
|
|
56133
56343
|
return res;
|
|
56134
56344
|
}
|
|
56135
56345
|
if (extractComments instanceof RegExp) {
|
|
56346
|
+
const { source, flags } = conditionStr(extractComments);
|
|
56136
56347
|
const res = {
|
|
56137
|
-
condition:
|
|
56348
|
+
condition: source,
|
|
56349
|
+
conditionFlags: flags
|
|
56138
56350
|
};
|
|
56139
56351
|
return res;
|
|
56140
56352
|
}
|
|
56141
56353
|
if (SwcJsMinimizerPlugin_isObject(extractComments)) {
|
|
56142
56354
|
if (false === extractComments.condition) return;
|
|
56355
|
+
const { source, flags } = conditionStr(extractComments.condition);
|
|
56143
56356
|
const res = {
|
|
56144
|
-
condition:
|
|
56357
|
+
condition: source,
|
|
56358
|
+
conditionFlags: flags,
|
|
56145
56359
|
banner: extractComments.banner
|
|
56146
56360
|
};
|
|
56147
56361
|
return res;
|
|
@@ -57537,7 +57751,8 @@ const applyRspackOptionsDefaults = (options)=>{
|
|
|
57537
57751
|
targetProperties,
|
|
57538
57752
|
mode: options.mode,
|
|
57539
57753
|
uniqueName: options.output.uniqueName,
|
|
57540
|
-
deferImport: options.experiments.deferImport
|
|
57754
|
+
deferImport: options.experiments.deferImport,
|
|
57755
|
+
outputModule: options.output.module
|
|
57541
57756
|
});
|
|
57542
57757
|
applyOutputDefaults(options, {
|
|
57543
57758
|
context: options.context,
|
|
@@ -57623,7 +57838,7 @@ const applyIncrementalDefaults = (options)=>{
|
|
|
57623
57838
|
}
|
|
57624
57839
|
};
|
|
57625
57840
|
const applySnapshotDefaults = (_snapshot, _env)=>{};
|
|
57626
|
-
const applyJavascriptParserOptionsDefaults = (parserOptions, { deferImport })=>{
|
|
57841
|
+
const applyJavascriptParserOptionsDefaults = (parserOptions, { deferImport, outputModule })=>{
|
|
57627
57842
|
D(parserOptions, 'dynamicImportMode', 'lazy');
|
|
57628
57843
|
D(parserOptions, 'dynamicImportPrefetch', false);
|
|
57629
57844
|
D(parserOptions, 'dynamicImportPreload', false);
|
|
@@ -57631,6 +57846,7 @@ const applyJavascriptParserOptionsDefaults = (parserOptions, { deferImport })=>{
|
|
|
57631
57846
|
D(parserOptions, 'exprContextCritical', true);
|
|
57632
57847
|
D(parserOptions, 'unknownContextCritical', true);
|
|
57633
57848
|
D(parserOptions, 'wrappedContextCritical', false);
|
|
57849
|
+
D(parserOptions, 'strictThisContextOnImports', false);
|
|
57634
57850
|
D(parserOptions, 'wrappedContextRegExp', /.*/);
|
|
57635
57851
|
D(parserOptions, 'exportsPresence', 'error');
|
|
57636
57852
|
D(parserOptions, 'requireAsExpression', true);
|
|
@@ -57642,7 +57858,7 @@ const applyJavascriptParserOptionsDefaults = (parserOptions, { deferImport })=>{
|
|
|
57642
57858
|
D(parserOptions, 'worker', [
|
|
57643
57859
|
'...'
|
|
57644
57860
|
]);
|
|
57645
|
-
D(parserOptions, 'importMeta', true);
|
|
57861
|
+
D(parserOptions, 'importMeta', outputModule ? 'preserve-unknown' : true);
|
|
57646
57862
|
D(parserOptions, 'typeReexportsPresence', 'no-tolerant');
|
|
57647
57863
|
D(parserOptions, 'jsx', false);
|
|
57648
57864
|
D(parserOptions, 'deferImport', deferImport);
|
|
@@ -57654,7 +57870,7 @@ const applyCssGeneratorOptionsDefaults = (generatorOptions, { targetProperties }
|
|
|
57654
57870
|
const applyJsonGeneratorOptionsDefaults = (generatorOptions)=>{
|
|
57655
57871
|
D(generatorOptions, 'JSONParse', true);
|
|
57656
57872
|
};
|
|
57657
|
-
const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode, uniqueName, deferImport })=>{
|
|
57873
|
+
const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode, uniqueName, deferImport, outputModule })=>{
|
|
57658
57874
|
assertNotNill(module.parser);
|
|
57659
57875
|
assertNotNill(module.generator);
|
|
57660
57876
|
F(module.parser, "asset", ()=>({}));
|
|
@@ -57664,7 +57880,8 @@ const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode,
|
|
|
57664
57880
|
F(module.parser, "javascript", ()=>({}));
|
|
57665
57881
|
assertNotNill(module.parser.javascript);
|
|
57666
57882
|
applyJavascriptParserOptionsDefaults(module.parser.javascript, {
|
|
57667
|
-
deferImport
|
|
57883
|
+
deferImport,
|
|
57884
|
+
outputModule
|
|
57668
57885
|
});
|
|
57669
57886
|
F(module.parser, "json", ()=>({}));
|
|
57670
57887
|
assertNotNill(module.parser["json"]);
|
|
@@ -57724,7 +57941,7 @@ const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode,
|
|
|
57724
57941
|
type: "javascript/auto"
|
|
57725
57942
|
},
|
|
57726
57943
|
{
|
|
57727
|
-
test: /\.json
|
|
57944
|
+
test: /\.json$/,
|
|
57728
57945
|
type: 'json'
|
|
57729
57946
|
},
|
|
57730
57947
|
{
|
|
@@ -57732,22 +57949,22 @@ const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode,
|
|
|
57732
57949
|
type: 'json'
|
|
57733
57950
|
},
|
|
57734
57951
|
{
|
|
57735
|
-
test: /\.mjs
|
|
57952
|
+
test: /\.mjs$/,
|
|
57736
57953
|
...esm
|
|
57737
57954
|
},
|
|
57738
57955
|
{
|
|
57739
|
-
test: /\.js
|
|
57956
|
+
test: /\.js$/,
|
|
57740
57957
|
descriptionData: {
|
|
57741
57958
|
type: 'module'
|
|
57742
57959
|
},
|
|
57743
57960
|
...esm
|
|
57744
57961
|
},
|
|
57745
57962
|
{
|
|
57746
|
-
test: /\.cjs
|
|
57963
|
+
test: /\.cjs$/,
|
|
57747
57964
|
...commonjs
|
|
57748
57965
|
},
|
|
57749
57966
|
{
|
|
57750
|
-
test: /\.js
|
|
57967
|
+
test: /\.js$/,
|
|
57751
57968
|
descriptionData: {
|
|
57752
57969
|
type: 'commonjs'
|
|
57753
57970
|
},
|
|
@@ -57778,7 +57995,7 @@ const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode,
|
|
|
57778
57995
|
]
|
|
57779
57996
|
};
|
|
57780
57997
|
rules.push({
|
|
57781
|
-
test: /\.wasm
|
|
57998
|
+
test: /\.wasm$/,
|
|
57782
57999
|
...wasm
|
|
57783
58000
|
});
|
|
57784
58001
|
rules.push({
|
|
@@ -58024,7 +58241,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
|
|
|
58024
58241
|
});
|
|
58025
58242
|
D(output, 'bundlerInfo', {});
|
|
58026
58243
|
if ('object' == typeof output.bundlerInfo) {
|
|
58027
|
-
D(output.bundlerInfo, 'version', "2.0.0-beta.
|
|
58244
|
+
D(output.bundlerInfo, 'version', "2.0.0-beta.6");
|
|
58028
58245
|
D(output.bundlerInfo, 'bundler', 'rspack');
|
|
58029
58246
|
D(output.bundlerInfo, 'force', !output.library);
|
|
58030
58247
|
}
|
|
@@ -58137,7 +58354,7 @@ const applyOptimizationDefaults = (optimization, { production, development })=>{
|
|
|
58137
58354
|
F(cacheGroups, 'defaultVendors', ()=>({
|
|
58138
58355
|
idHint: 'vendors',
|
|
58139
58356
|
reuseExistingChunk: true,
|
|
58140
|
-
test: /[\\/]node_modules[\\/]
|
|
58357
|
+
test: /[\\/]node_modules[\\/]/,
|
|
58141
58358
|
priority: -10
|
|
58142
58359
|
}));
|
|
58143
58360
|
}
|
|
@@ -59686,7 +59903,7 @@ class MultiStats {
|
|
|
59686
59903
|
return obj;
|
|
59687
59904
|
});
|
|
59688
59905
|
if (childOptions.version) {
|
|
59689
|
-
obj.rspackVersion = "2.0.0-beta.
|
|
59906
|
+
obj.rspackVersion = "2.0.0-beta.6";
|
|
59690
59907
|
obj.version = "5.75.0";
|
|
59691
59908
|
}
|
|
59692
59909
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
|
|
@@ -61372,7 +61589,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
61372
61589
|
},
|
|
61373
61590
|
version: (object)=>{
|
|
61374
61591
|
object.version = "5.75.0";
|
|
61375
|
-
object.rspackVersion = "2.0.0-beta.
|
|
61592
|
+
object.rspackVersion = "2.0.0-beta.6";
|
|
61376
61593
|
},
|
|
61377
61594
|
env: (object, _compilation, _context, { _env })=>{
|
|
61378
61595
|
object.env = _env;
|
|
@@ -62015,7 +62232,7 @@ const DEFAULTS = {
|
|
|
62015
62232
|
chunksSort: ()=>false,
|
|
62016
62233
|
assetsSort: ()=>'!size',
|
|
62017
62234
|
outputPath: OFF_FOR_TO_STRING,
|
|
62018
|
-
colors: ()=>
|
|
62235
|
+
colors: ()=>isStatsColorSupported()
|
|
62019
62236
|
};
|
|
62020
62237
|
const normalizeFilter = (item)=>{
|
|
62021
62238
|
if ('string' == typeof item) {
|
|
@@ -65155,6 +65372,9 @@ class ProvideSharedPlugin extends RspackBuiltinPlugin {
|
|
|
65155
65372
|
return createBuiltinPlugin(this.name, rawOptions);
|
|
65156
65373
|
}
|
|
65157
65374
|
}
|
|
65375
|
+
function validateShareScope(shareScope, enhanced, pluginName) {
|
|
65376
|
+
if (Array.isArray(shareScope) && shareScope.length > 1 && !enhanced) throw new Error(`[${pluginName}] shareScope as an array with multiple entries requires enhanced=true, got: ${JSON.stringify(shareScope)}`);
|
|
65377
|
+
}
|
|
65158
65378
|
function normalizeSharedOptions(shared) {
|
|
65159
65379
|
return parseOptions(shared, (item, key)=>{
|
|
65160
65380
|
if ('string' != typeof item) throw new Error('Unexpected array in shared');
|
|
@@ -65423,7 +65643,7 @@ class CollectSharedEntryPlugin extends RspackBuiltinPlugin {
|
|
|
65423
65643
|
compiler.hooks.thisCompilation.tap('Collect shared entry', (compilation)=>{
|
|
65424
65644
|
compilation.hooks.processAssets.tap({
|
|
65425
65645
|
name: 'CollectSharedEntry',
|
|
65426
|
-
stage: compiler.
|
|
65646
|
+
stage: compiler.rspack.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE
|
|
65427
65647
|
}, ()=>{
|
|
65428
65648
|
compilation.getAssets().forEach((asset)=>{
|
|
65429
65649
|
if (asset.name === SHARE_ENTRY_ASSET) this._collectedEntries = JSON.parse(asset.source.source().toString());
|
|
@@ -65582,7 +65802,7 @@ class VirtualEntryPlugin {
|
|
|
65582
65802
|
compiler.hooks.thisCompilation.tap('RemoveVirtualEntryAsset', (compilation)=>{
|
|
65583
65803
|
compilation.hooks.processAssets.tap({
|
|
65584
65804
|
name: 'RemoveVirtualEntryAsset',
|
|
65585
|
-
stage: compiler.
|
|
65805
|
+
stage: compiler.rspack.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE
|
|
65586
65806
|
}, ()=>{
|
|
65587
65807
|
try {
|
|
65588
65808
|
const chunk = compilation.namedChunks.get(VIRTUAL_ENTRY_NAME);
|
|
@@ -65666,7 +65886,7 @@ class IndependentSharedPlugin {
|
|
|
65666
65886
|
}
|
|
65667
65887
|
});
|
|
65668
65888
|
});
|
|
65669
|
-
compilation.updateAsset(filename, new compiler.
|
|
65889
|
+
compilation.updateAsset(filename, new compiler.rspack.sources.RawSource(JSON.stringify(statsContent)));
|
|
65670
65890
|
};
|
|
65671
65891
|
injectBuildAssetsIntoStatsOrManifest(statsFileName);
|
|
65672
65892
|
injectBuildAssetsIntoStatsOrManifest(manifestFileName);
|
|
@@ -65935,7 +66155,7 @@ function getRemoteInfos(options) {
|
|
|
65935
66155
|
external: Array.isArray(item) ? item : [
|
|
65936
66156
|
item
|
|
65937
66157
|
],
|
|
65938
|
-
shareScope: options.shareScope
|
|
66158
|
+
shareScope: options.shareScope ?? 'default'
|
|
65939
66159
|
}), (item)=>({
|
|
65940
66160
|
external: Array.isArray(item.external) ? item.external : [
|
|
65941
66161
|
item.external
|
|
@@ -66020,9 +66240,12 @@ class ContainerPlugin extends RspackBuiltinPlugin {
|
|
|
66020
66240
|
_options;
|
|
66021
66241
|
constructor(options){
|
|
66022
66242
|
super();
|
|
66243
|
+
const shareScope = options.shareScope || 'default';
|
|
66244
|
+
const enhanced = options.enhanced ?? false;
|
|
66245
|
+
validateShareScope(shareScope, enhanced, 'ContainerPlugin');
|
|
66023
66246
|
this._options = {
|
|
66024
66247
|
name: options.name,
|
|
66025
|
-
shareScope
|
|
66248
|
+
shareScope,
|
|
66026
66249
|
library: options.library || {
|
|
66027
66250
|
type: 'global',
|
|
66028
66251
|
name: options.name
|
|
@@ -66040,7 +66263,7 @@ class ContainerPlugin extends RspackBuiltinPlugin {
|
|
|
66040
66263
|
],
|
|
66041
66264
|
name: item.name || void 0
|
|
66042
66265
|
})),
|
|
66043
|
-
enhanced
|
|
66266
|
+
enhanced
|
|
66044
66267
|
};
|
|
66045
66268
|
}
|
|
66046
66269
|
raw(compiler) {
|
|
@@ -66067,20 +66290,24 @@ class ContainerReferencePlugin extends RspackBuiltinPlugin {
|
|
|
66067
66290
|
_options;
|
|
66068
66291
|
constructor(options){
|
|
66069
66292
|
super();
|
|
66293
|
+
const enhanced = options.enhanced ?? false;
|
|
66294
|
+
if (options.shareScope) validateShareScope(options.shareScope, enhanced, 'ContainerReferencePlugin');
|
|
66295
|
+
const remotes = parseOptions(options.remotes, (item)=>({
|
|
66296
|
+
external: Array.isArray(item) ? item : [
|
|
66297
|
+
item
|
|
66298
|
+
],
|
|
66299
|
+
shareScope: options.shareScope || 'default'
|
|
66300
|
+
}), (item)=>({
|
|
66301
|
+
external: Array.isArray(item.external) ? item.external : [
|
|
66302
|
+
item.external
|
|
66303
|
+
],
|
|
66304
|
+
shareScope: item.shareScope || options.shareScope || 'default'
|
|
66305
|
+
}));
|
|
66306
|
+
for (const [, config] of remotes)validateShareScope(config.shareScope, enhanced, 'ContainerReferencePlugin');
|
|
66070
66307
|
this._options = {
|
|
66071
66308
|
remoteType: options.remoteType,
|
|
66072
|
-
remotes
|
|
66073
|
-
|
|
66074
|
-
item
|
|
66075
|
-
],
|
|
66076
|
-
shareScope: options.shareScope || 'default'
|
|
66077
|
-
}), (item)=>({
|
|
66078
|
-
external: Array.isArray(item.external) ? item.external : [
|
|
66079
|
-
item.external
|
|
66080
|
-
],
|
|
66081
|
-
shareScope: item.shareScope || options.shareScope || 'default'
|
|
66082
|
-
})),
|
|
66083
|
-
enhanced: options.enhanced ?? false
|
|
66309
|
+
remotes,
|
|
66310
|
+
enhanced
|
|
66084
66311
|
};
|
|
66085
66312
|
}
|
|
66086
66313
|
raw(compiler) {
|
|
@@ -66166,7 +66393,7 @@ function transformSync(source, options) {
|
|
|
66166
66393
|
const _options = JSON.stringify(options || {});
|
|
66167
66394
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
66168
66395
|
}
|
|
66169
|
-
const exports_rspackVersion = "2.0.0-beta.
|
|
66396
|
+
const exports_rspackVersion = "2.0.0-beta.6";
|
|
66170
66397
|
const exports_version = "5.75.0";
|
|
66171
66398
|
const exports_WebpackError = Error;
|
|
66172
66399
|
const exports_config = {
|