@rspack-debug/browser 2.0.4 → 2.0.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/612.js +69 -0
- package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +11 -0
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +2 -1
- package/dist/config/target.d.ts +2 -0
- package/dist/config/types.d.ts +42 -0
- package/dist/exports.d.ts +2 -1
- package/dist/index.js +1779 -522
- package/dist/napi-binding.d.ts +25 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,72 +1,9 @@
|
|
|
1
1
|
/*! LICENSE: index.js.LICENSE.txt */
|
|
2
2
|
import rspack_wasi_browser, { AsyncDependenciesBlock, BuiltinPluginName as external_rspack_wasi_browser_js_BuiltinPluginName, Chunk, ChunkGraph, Chunks as external_rspack_wasi_browser_js_Chunks, ConcatenatedModule, ContextModule, Dependency, EnforceExtension, EntryDependency, ExternalModule, JsCoordinator, JsLoaderState, JsRspackSeverity, Module, ModuleGraphConnection, NormalModule, RawRuleSetConditionType, RegisterJsTapKind, ResolverFactory as external_rspack_wasi_browser_js_ResolverFactory, async as external_rspack_wasi_browser_js_async, cleanupGlobalTrace, formatDiagnostic, registerGlobalTrace, sync, syncTraceEvent, transformSync as external_rspack_wasi_browser_js_transformSync } from "./rspack.wasi-browser.js";
|
|
3
3
|
import { AsyncParallelHook, AsyncSeriesBailHook, HookMap, SyncBailHook, SyncHook, SyncWaterfallHook } from "@rspack/lite-tapable";
|
|
4
|
+
import { __webpack_require__ } from "./612.js";
|
|
4
5
|
import * as __rspack_external__rspack_wasi_browser_js_bd433424 from "./rspack.wasi-browser.js";
|
|
5
6
|
import * as __rspack_external__rspack_lite_tapable_c6bdf810 from "@rspack/lite-tapable";
|
|
6
|
-
var __webpack_modules__ = {};
|
|
7
|
-
var __webpack_module_cache__ = {};
|
|
8
|
-
function __webpack_require__(moduleId) {
|
|
9
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
10
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
11
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
12
|
-
exports: {}
|
|
13
|
-
};
|
|
14
|
-
__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
15
|
-
return module.exports;
|
|
16
|
-
}
|
|
17
|
-
__webpack_require__.m = __webpack_modules__;
|
|
18
|
-
(()=>{
|
|
19
|
-
__webpack_require__.n = (module)=>{
|
|
20
|
-
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
21
|
-
__webpack_require__.d(getter, {
|
|
22
|
-
a: getter
|
|
23
|
-
});
|
|
24
|
-
return getter;
|
|
25
|
-
};
|
|
26
|
-
})();
|
|
27
|
-
(()=>{
|
|
28
|
-
__webpack_require__.d = (exports, definition)=>{
|
|
29
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: definition[key]
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
(()=>{
|
|
36
|
-
__webpack_require__.add = function(modules) {
|
|
37
|
-
Object.assign(__webpack_require__.m, modules);
|
|
38
|
-
};
|
|
39
|
-
})();
|
|
40
|
-
(()=>{
|
|
41
|
-
__webpack_require__.g = (()=>{
|
|
42
|
-
if ('object' == typeof globalThis) return globalThis;
|
|
43
|
-
try {
|
|
44
|
-
return this || new Function('return this')();
|
|
45
|
-
} catch (e) {
|
|
46
|
-
if ('object' == typeof window) return window;
|
|
47
|
-
}
|
|
48
|
-
})();
|
|
49
|
-
})();
|
|
50
|
-
(()=>{
|
|
51
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
52
|
-
})();
|
|
53
|
-
(()=>{
|
|
54
|
-
__webpack_require__.r = (exports)=>{
|
|
55
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
|
|
56
|
-
value: 'Module'
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(exports, '__esModule', {
|
|
59
|
-
value: true
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
})();
|
|
63
|
-
(()=>{
|
|
64
|
-
__webpack_require__.nmd = (module)=>{
|
|
65
|
-
module.paths = [];
|
|
66
|
-
if (!module.children) module.children = [];
|
|
67
|
-
return module;
|
|
68
|
-
};
|
|
69
|
-
})();
|
|
70
7
|
__webpack_require__.add({
|
|
71
8
|
"../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
72
9
|
var asn1 = exports;
|
|
@@ -125,7 +62,7 @@ __webpack_require__.add({
|
|
|
125
62
|
"../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/base/buffer.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
126
63
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
127
64
|
var Reporter = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/base/index.js").Reporter;
|
|
128
|
-
var Buffer = __webpack_require__("
|
|
65
|
+
var Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js").Buffer;
|
|
129
66
|
function DecoderBuffer(base, options) {
|
|
130
67
|
Reporter.call(this, options);
|
|
131
68
|
if (!Buffer.isBuffer(base)) return void this.error('Input not Buffer');
|
|
@@ -1013,7 +950,7 @@ __webpack_require__.add({
|
|
|
1013
950
|
},
|
|
1014
951
|
"../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/decoders/pem.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1015
952
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
1016
|
-
var Buffer = __webpack_require__("
|
|
953
|
+
var Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js").Buffer;
|
|
1017
954
|
var DERDecoder = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/decoders/der.js");
|
|
1018
955
|
function PEMDecoder(entity) {
|
|
1019
956
|
DERDecoder.call(this, entity);
|
|
@@ -1049,7 +986,7 @@ __webpack_require__.add({
|
|
|
1049
986
|
},
|
|
1050
987
|
"../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1/encoders/der.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
1051
988
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
1052
|
-
var Buffer = __webpack_require__("
|
|
989
|
+
var Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js").Buffer;
|
|
1053
990
|
var asn1 = __webpack_require__("../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1.js");
|
|
1054
991
|
var base = asn1.base;
|
|
1055
992
|
var der = asn1.constants.der;
|
|
@@ -2761,6 +2698,95 @@ __webpack_require__.add({
|
|
|
2761
2698
|
isDeepStrictEqual: isDeepStrictEqual
|
|
2762
2699
|
};
|
|
2763
2700
|
},
|
|
2701
|
+
"../../node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js" (__unused_rspack_module, exports) {
|
|
2702
|
+
exports.byteLength = byteLength;
|
|
2703
|
+
exports.toByteArray = toByteArray;
|
|
2704
|
+
exports.fromByteArray = fromByteArray;
|
|
2705
|
+
var lookup = [];
|
|
2706
|
+
var revLookup = [];
|
|
2707
|
+
var Arr = "u" > typeof Uint8Array ? Uint8Array : Array;
|
|
2708
|
+
var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
|
2709
|
+
for(var i = 0, len = code.length; i < len; ++i){
|
|
2710
|
+
lookup[i] = code[i];
|
|
2711
|
+
revLookup[code.charCodeAt(i)] = i;
|
|
2712
|
+
}
|
|
2713
|
+
revLookup['-'.charCodeAt(0)] = 62;
|
|
2714
|
+
revLookup['_'.charCodeAt(0)] = 63;
|
|
2715
|
+
function getLens(b64) {
|
|
2716
|
+
var len = b64.length;
|
|
2717
|
+
if (len % 4 > 0) throw new Error('Invalid string. Length must be a multiple of 4');
|
|
2718
|
+
var validLen = b64.indexOf('=');
|
|
2719
|
+
if (-1 === validLen) validLen = len;
|
|
2720
|
+
var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;
|
|
2721
|
+
return [
|
|
2722
|
+
validLen,
|
|
2723
|
+
placeHoldersLen
|
|
2724
|
+
];
|
|
2725
|
+
}
|
|
2726
|
+
function byteLength(b64) {
|
|
2727
|
+
var lens = getLens(b64);
|
|
2728
|
+
var validLen = lens[0];
|
|
2729
|
+
var placeHoldersLen = lens[1];
|
|
2730
|
+
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
2731
|
+
}
|
|
2732
|
+
function _byteLength(b64, validLen, placeHoldersLen) {
|
|
2733
|
+
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
2734
|
+
}
|
|
2735
|
+
function toByteArray(b64) {
|
|
2736
|
+
var tmp;
|
|
2737
|
+
var lens = getLens(b64);
|
|
2738
|
+
var validLen = lens[0];
|
|
2739
|
+
var placeHoldersLen = lens[1];
|
|
2740
|
+
var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
|
|
2741
|
+
var curByte = 0;
|
|
2742
|
+
var len = placeHoldersLen > 0 ? validLen - 4 : validLen;
|
|
2743
|
+
var i;
|
|
2744
|
+
for(i = 0; i < len; i += 4){
|
|
2745
|
+
tmp = revLookup[b64.charCodeAt(i)] << 18 | revLookup[b64.charCodeAt(i + 1)] << 12 | revLookup[b64.charCodeAt(i + 2)] << 6 | revLookup[b64.charCodeAt(i + 3)];
|
|
2746
|
+
arr[curByte++] = tmp >> 16 & 0xFF;
|
|
2747
|
+
arr[curByte++] = tmp >> 8 & 0xFF;
|
|
2748
|
+
arr[curByte++] = 0xFF & tmp;
|
|
2749
|
+
}
|
|
2750
|
+
if (2 === placeHoldersLen) {
|
|
2751
|
+
tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4;
|
|
2752
|
+
arr[curByte++] = 0xFF & tmp;
|
|
2753
|
+
}
|
|
2754
|
+
if (1 === placeHoldersLen) {
|
|
2755
|
+
tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2;
|
|
2756
|
+
arr[curByte++] = tmp >> 8 & 0xFF;
|
|
2757
|
+
arr[curByte++] = 0xFF & tmp;
|
|
2758
|
+
}
|
|
2759
|
+
return arr;
|
|
2760
|
+
}
|
|
2761
|
+
function tripletToBase64(num) {
|
|
2762
|
+
return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[0x3F & num];
|
|
2763
|
+
}
|
|
2764
|
+
function encodeChunk(uint8, start, end) {
|
|
2765
|
+
var tmp;
|
|
2766
|
+
var output = [];
|
|
2767
|
+
for(var i = start; i < end; i += 3){
|
|
2768
|
+
tmp = (uint8[i] << 16 & 0xFF0000) + (uint8[i + 1] << 8 & 0xFF00) + (0xFF & uint8[i + 2]);
|
|
2769
|
+
output.push(tripletToBase64(tmp));
|
|
2770
|
+
}
|
|
2771
|
+
return output.join('');
|
|
2772
|
+
}
|
|
2773
|
+
function fromByteArray(uint8) {
|
|
2774
|
+
var tmp;
|
|
2775
|
+
var len = uint8.length;
|
|
2776
|
+
var extraBytes = len % 3;
|
|
2777
|
+
var parts = [];
|
|
2778
|
+
var maxChunkLength = 16383;
|
|
2779
|
+
for(var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength)parts.push(encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength));
|
|
2780
|
+
if (1 === extraBytes) {
|
|
2781
|
+
tmp = uint8[len - 1];
|
|
2782
|
+
parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 0x3F] + '==');
|
|
2783
|
+
} else if (2 === extraBytes) {
|
|
2784
|
+
tmp = (uint8[len - 2] << 8) + uint8[len - 1];
|
|
2785
|
+
parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 0x3F] + lookup[tmp << 2 & 0x3F] + '=');
|
|
2786
|
+
}
|
|
2787
|
+
return parts.join('');
|
|
2788
|
+
}
|
|
2789
|
+
},
|
|
2764
2790
|
"../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
2765
2791
|
module = __webpack_require__.nmd(module);
|
|
2766
2792
|
(function(module, exports) {
|
|
@@ -8600,7 +8626,7 @@ __webpack_require__.add({
|
|
|
8600
8626
|
module.exports = modes;
|
|
8601
8627
|
},
|
|
8602
8628
|
"../../node_modules/.pnpm/browserify-aes@1.2.0/node_modules/browserify-aes/modes/ofb.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
8603
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
8629
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
8604
8630
|
var xor = __webpack_require__("../../node_modules/.pnpm/buffer-xor@1.0.3/node_modules/buffer-xor/index.js");
|
|
8605
8631
|
function getBlock(self1) {
|
|
8606
8632
|
self1._prev = self1._cipher.encryptBlock(self1._prev);
|
|
@@ -9117,7 +9143,7 @@ __webpack_require__.add({
|
|
|
9117
9143
|
module.exports = verify;
|
|
9118
9144
|
},
|
|
9119
9145
|
"../../node_modules/.pnpm/browserify-zlib@0.2.0/node_modules/browserify-zlib/lib/binding.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
9120
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
9146
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
9121
9147
|
var process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
9122
9148
|
var assert = __webpack_require__("../../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/assert.js");
|
|
9123
9149
|
var Zstream = __webpack_require__("../../node_modules/.pnpm/pako@1.0.11/node_modules/pako/lib/zlib/zstream.js");
|
|
@@ -9378,12 +9404,12 @@ __webpack_require__.add({
|
|
|
9378
9404
|
},
|
|
9379
9405
|
"../../node_modules/.pnpm/browserify-zlib@0.2.0/node_modules/browserify-zlib/lib/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
9380
9406
|
var process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
9381
|
-
var Buffer = __webpack_require__("
|
|
9407
|
+
var Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js").Buffer;
|
|
9382
9408
|
var Transform = __webpack_require__("../../node_modules/.pnpm/stream-browserify@3.0.0/node_modules/stream-browserify/index.js").Transform;
|
|
9383
9409
|
var binding = __webpack_require__("../../node_modules/.pnpm/browserify-zlib@0.2.0/node_modules/browserify-zlib/lib/binding.js");
|
|
9384
9410
|
var util = __webpack_require__("../../node_modules/.pnpm/util@0.12.5/node_modules/util/util.js");
|
|
9385
9411
|
var assert = __webpack_require__("../../node_modules/.pnpm/assert@2.1.0/node_modules/assert/build/assert.js").ok;
|
|
9386
|
-
var kMaxLength = __webpack_require__("
|
|
9412
|
+
var kMaxLength = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js").kMaxLength;
|
|
9387
9413
|
var kRangeErrorMessage = "Cannot create final Buffer. It would be larger than 0x" + kMaxLength.toString(16) + ' bytes';
|
|
9388
9414
|
binding.Z_MIN_WINDOWBITS = 8;
|
|
9389
9415
|
binding.Z_MAX_WINDOWBITS = 15;
|
|
@@ -9485,320 +9511,1402 @@ __webpack_require__.add({
|
|
|
9485
9511
|
exports.deflateRawSync = function(buffer, opts) {
|
|
9486
9512
|
return zlibBufferSync(new DeflateRaw(opts), buffer);
|
|
9487
9513
|
};
|
|
9488
|
-
exports.unzip = function(buffer, opts, callback) {
|
|
9489
|
-
if ('function' == typeof opts) {
|
|
9490
|
-
callback = opts;
|
|
9491
|
-
opts = {};
|
|
9492
|
-
}
|
|
9493
|
-
return zlibBuffer(new Unzip(opts), buffer, callback);
|
|
9514
|
+
exports.unzip = function(buffer, opts, callback) {
|
|
9515
|
+
if ('function' == typeof opts) {
|
|
9516
|
+
callback = opts;
|
|
9517
|
+
opts = {};
|
|
9518
|
+
}
|
|
9519
|
+
return zlibBuffer(new Unzip(opts), buffer, callback);
|
|
9520
|
+
};
|
|
9521
|
+
exports.unzipSync = function(buffer, opts) {
|
|
9522
|
+
return zlibBufferSync(new Unzip(opts), buffer);
|
|
9523
|
+
};
|
|
9524
|
+
exports.inflate = function(buffer, opts, callback) {
|
|
9525
|
+
if ('function' == typeof opts) {
|
|
9526
|
+
callback = opts;
|
|
9527
|
+
opts = {};
|
|
9528
|
+
}
|
|
9529
|
+
return zlibBuffer(new Inflate(opts), buffer, callback);
|
|
9530
|
+
};
|
|
9531
|
+
exports.inflateSync = function(buffer, opts) {
|
|
9532
|
+
return zlibBufferSync(new Inflate(opts), buffer);
|
|
9533
|
+
};
|
|
9534
|
+
exports.gunzip = function(buffer, opts, callback) {
|
|
9535
|
+
if ('function' == typeof opts) {
|
|
9536
|
+
callback = opts;
|
|
9537
|
+
opts = {};
|
|
9538
|
+
}
|
|
9539
|
+
return zlibBuffer(new Gunzip(opts), buffer, callback);
|
|
9540
|
+
};
|
|
9541
|
+
exports.gunzipSync = function(buffer, opts) {
|
|
9542
|
+
return zlibBufferSync(new Gunzip(opts), buffer);
|
|
9543
|
+
};
|
|
9544
|
+
exports.inflateRaw = function(buffer, opts, callback) {
|
|
9545
|
+
if ('function' == typeof opts) {
|
|
9546
|
+
callback = opts;
|
|
9547
|
+
opts = {};
|
|
9548
|
+
}
|
|
9549
|
+
return zlibBuffer(new InflateRaw(opts), buffer, callback);
|
|
9550
|
+
};
|
|
9551
|
+
exports.inflateRawSync = function(buffer, opts) {
|
|
9552
|
+
return zlibBufferSync(new InflateRaw(opts), buffer);
|
|
9553
|
+
};
|
|
9554
|
+
function zlibBuffer(engine, buffer, callback) {
|
|
9555
|
+
var buffers = [];
|
|
9556
|
+
var nread = 0;
|
|
9557
|
+
engine.on('error', onError);
|
|
9558
|
+
engine.on('end', onEnd);
|
|
9559
|
+
engine.end(buffer);
|
|
9560
|
+
flow();
|
|
9561
|
+
function flow() {
|
|
9562
|
+
var chunk;
|
|
9563
|
+
while(null !== (chunk = engine.read())){
|
|
9564
|
+
buffers.push(chunk);
|
|
9565
|
+
nread += chunk.length;
|
|
9566
|
+
}
|
|
9567
|
+
engine.once('readable', flow);
|
|
9568
|
+
}
|
|
9569
|
+
function onError(err) {
|
|
9570
|
+
engine.removeListener('end', onEnd);
|
|
9571
|
+
engine.removeListener('readable', flow);
|
|
9572
|
+
callback(err);
|
|
9573
|
+
}
|
|
9574
|
+
function onEnd() {
|
|
9575
|
+
var buf;
|
|
9576
|
+
var err = null;
|
|
9577
|
+
if (nread >= kMaxLength) err = new RangeError(kRangeErrorMessage);
|
|
9578
|
+
else buf = Buffer.concat(buffers, nread);
|
|
9579
|
+
buffers = [];
|
|
9580
|
+
engine.close();
|
|
9581
|
+
callback(err, buf);
|
|
9582
|
+
}
|
|
9583
|
+
}
|
|
9584
|
+
function zlibBufferSync(engine, buffer) {
|
|
9585
|
+
if ('string' == typeof buffer) buffer = Buffer.from(buffer);
|
|
9586
|
+
if (!Buffer.isBuffer(buffer)) throw new TypeError('Not a string or buffer');
|
|
9587
|
+
var flushFlag = engine._finishFlushFlag;
|
|
9588
|
+
return engine._processChunk(buffer, flushFlag);
|
|
9589
|
+
}
|
|
9590
|
+
function Deflate(opts) {
|
|
9591
|
+
if (!(this instanceof Deflate)) return new Deflate(opts);
|
|
9592
|
+
Zlib.call(this, opts, binding.DEFLATE);
|
|
9593
|
+
}
|
|
9594
|
+
function Inflate(opts) {
|
|
9595
|
+
if (!(this instanceof Inflate)) return new Inflate(opts);
|
|
9596
|
+
Zlib.call(this, opts, binding.INFLATE);
|
|
9597
|
+
}
|
|
9598
|
+
function Gzip(opts) {
|
|
9599
|
+
if (!(this instanceof Gzip)) return new Gzip(opts);
|
|
9600
|
+
Zlib.call(this, opts, binding.GZIP);
|
|
9601
|
+
}
|
|
9602
|
+
function Gunzip(opts) {
|
|
9603
|
+
if (!(this instanceof Gunzip)) return new Gunzip(opts);
|
|
9604
|
+
Zlib.call(this, opts, binding.GUNZIP);
|
|
9605
|
+
}
|
|
9606
|
+
function DeflateRaw(opts) {
|
|
9607
|
+
if (!(this instanceof DeflateRaw)) return new DeflateRaw(opts);
|
|
9608
|
+
Zlib.call(this, opts, binding.DEFLATERAW);
|
|
9609
|
+
}
|
|
9610
|
+
function InflateRaw(opts) {
|
|
9611
|
+
if (!(this instanceof InflateRaw)) return new InflateRaw(opts);
|
|
9612
|
+
Zlib.call(this, opts, binding.INFLATERAW);
|
|
9613
|
+
}
|
|
9614
|
+
function Unzip(opts) {
|
|
9615
|
+
if (!(this instanceof Unzip)) return new Unzip(opts);
|
|
9616
|
+
Zlib.call(this, opts, binding.UNZIP);
|
|
9617
|
+
}
|
|
9618
|
+
function isValidFlushFlag(flag) {
|
|
9619
|
+
return flag === binding.Z_NO_FLUSH || flag === binding.Z_PARTIAL_FLUSH || flag === binding.Z_SYNC_FLUSH || flag === binding.Z_FULL_FLUSH || flag === binding.Z_FINISH || flag === binding.Z_BLOCK;
|
|
9620
|
+
}
|
|
9621
|
+
function Zlib(opts, mode) {
|
|
9622
|
+
var _this = this;
|
|
9623
|
+
this._opts = opts = opts || {};
|
|
9624
|
+
this._chunkSize = opts.chunkSize || exports.Z_DEFAULT_CHUNK;
|
|
9625
|
+
Transform.call(this, opts);
|
|
9626
|
+
if (opts.flush && !isValidFlushFlag(opts.flush)) throw new Error('Invalid flush flag: ' + opts.flush);
|
|
9627
|
+
if (opts.finishFlush && !isValidFlushFlag(opts.finishFlush)) throw new Error('Invalid flush flag: ' + opts.finishFlush);
|
|
9628
|
+
this._flushFlag = opts.flush || binding.Z_NO_FLUSH;
|
|
9629
|
+
this._finishFlushFlag = void 0 !== opts.finishFlush ? opts.finishFlush : binding.Z_FINISH;
|
|
9630
|
+
if (opts.chunkSize) {
|
|
9631
|
+
if (opts.chunkSize < exports.Z_MIN_CHUNK || opts.chunkSize > exports.Z_MAX_CHUNK) throw new Error('Invalid chunk size: ' + opts.chunkSize);
|
|
9632
|
+
}
|
|
9633
|
+
if (opts.windowBits) {
|
|
9634
|
+
if (opts.windowBits < exports.Z_MIN_WINDOWBITS || opts.windowBits > exports.Z_MAX_WINDOWBITS) throw new Error('Invalid windowBits: ' + opts.windowBits);
|
|
9635
|
+
}
|
|
9636
|
+
if (opts.level) {
|
|
9637
|
+
if (opts.level < exports.Z_MIN_LEVEL || opts.level > exports.Z_MAX_LEVEL) throw new Error('Invalid compression level: ' + opts.level);
|
|
9638
|
+
}
|
|
9639
|
+
if (opts.memLevel) {
|
|
9640
|
+
if (opts.memLevel < exports.Z_MIN_MEMLEVEL || opts.memLevel > exports.Z_MAX_MEMLEVEL) throw new Error('Invalid memLevel: ' + opts.memLevel);
|
|
9641
|
+
}
|
|
9642
|
+
if (opts.strategy) {
|
|
9643
|
+
if (opts.strategy != exports.Z_FILTERED && opts.strategy != exports.Z_HUFFMAN_ONLY && opts.strategy != exports.Z_RLE && opts.strategy != exports.Z_FIXED && opts.strategy != exports.Z_DEFAULT_STRATEGY) throw new Error('Invalid strategy: ' + opts.strategy);
|
|
9644
|
+
}
|
|
9645
|
+
if (opts.dictionary) {
|
|
9646
|
+
if (!Buffer.isBuffer(opts.dictionary)) throw new Error('Invalid dictionary: it should be a Buffer instance');
|
|
9647
|
+
}
|
|
9648
|
+
this._handle = new binding.Zlib(mode);
|
|
9649
|
+
var self1 = this;
|
|
9650
|
+
this._hadError = false;
|
|
9651
|
+
this._handle.onerror = function(message, errno) {
|
|
9652
|
+
_close(self1);
|
|
9653
|
+
self1._hadError = true;
|
|
9654
|
+
var error = new Error(message);
|
|
9655
|
+
error.errno = errno;
|
|
9656
|
+
error.code = exports.codes[errno];
|
|
9657
|
+
self1.emit('error', error);
|
|
9658
|
+
};
|
|
9659
|
+
var level = exports.Z_DEFAULT_COMPRESSION;
|
|
9660
|
+
if ('number' == typeof opts.level) level = opts.level;
|
|
9661
|
+
var strategy = exports.Z_DEFAULT_STRATEGY;
|
|
9662
|
+
if ('number' == typeof opts.strategy) strategy = opts.strategy;
|
|
9663
|
+
this._handle.init(opts.windowBits || exports.Z_DEFAULT_WINDOWBITS, level, opts.memLevel || exports.Z_DEFAULT_MEMLEVEL, strategy, opts.dictionary);
|
|
9664
|
+
this._buffer = Buffer.allocUnsafe(this._chunkSize);
|
|
9665
|
+
this._offset = 0;
|
|
9666
|
+
this._level = level;
|
|
9667
|
+
this._strategy = strategy;
|
|
9668
|
+
this.once('end', this.close);
|
|
9669
|
+
Object.defineProperty(this, '_closed', {
|
|
9670
|
+
get: function() {
|
|
9671
|
+
return !_this._handle;
|
|
9672
|
+
},
|
|
9673
|
+
configurable: true,
|
|
9674
|
+
enumerable: true
|
|
9675
|
+
});
|
|
9676
|
+
}
|
|
9677
|
+
util.inherits(Zlib, Transform);
|
|
9678
|
+
Zlib.prototype.params = function(level, strategy, callback) {
|
|
9679
|
+
if (level < exports.Z_MIN_LEVEL || level > exports.Z_MAX_LEVEL) throw new RangeError('Invalid compression level: ' + level);
|
|
9680
|
+
if (strategy != exports.Z_FILTERED && strategy != exports.Z_HUFFMAN_ONLY && strategy != exports.Z_RLE && strategy != exports.Z_FIXED && strategy != exports.Z_DEFAULT_STRATEGY) throw new TypeError('Invalid strategy: ' + strategy);
|
|
9681
|
+
if (this._level !== level || this._strategy !== strategy) {
|
|
9682
|
+
var self1 = this;
|
|
9683
|
+
this.flush(binding.Z_SYNC_FLUSH, function() {
|
|
9684
|
+
assert(self1._handle, 'zlib binding closed');
|
|
9685
|
+
self1._handle.params(level, strategy);
|
|
9686
|
+
if (!self1._hadError) {
|
|
9687
|
+
self1._level = level;
|
|
9688
|
+
self1._strategy = strategy;
|
|
9689
|
+
if (callback) callback();
|
|
9690
|
+
}
|
|
9691
|
+
});
|
|
9692
|
+
} else process.nextTick(callback);
|
|
9693
|
+
};
|
|
9694
|
+
Zlib.prototype.reset = function() {
|
|
9695
|
+
assert(this._handle, 'zlib binding closed');
|
|
9696
|
+
return this._handle.reset();
|
|
9697
|
+
};
|
|
9698
|
+
Zlib.prototype._flush = function(callback) {
|
|
9699
|
+
this._transform(Buffer.alloc(0), '', callback);
|
|
9700
|
+
};
|
|
9701
|
+
Zlib.prototype.flush = function(kind, callback) {
|
|
9702
|
+
var _this2 = this;
|
|
9703
|
+
var ws = this._writableState;
|
|
9704
|
+
if ('function' == typeof kind || void 0 === kind && !callback) {
|
|
9705
|
+
callback = kind;
|
|
9706
|
+
kind = binding.Z_FULL_FLUSH;
|
|
9707
|
+
}
|
|
9708
|
+
if (ws.ended) {
|
|
9709
|
+
if (callback) process.nextTick(callback);
|
|
9710
|
+
} else if (ws.ending) {
|
|
9711
|
+
if (callback) this.once('end', callback);
|
|
9712
|
+
} else if (ws.needDrain) {
|
|
9713
|
+
if (callback) this.once('drain', function() {
|
|
9714
|
+
return _this2.flush(kind, callback);
|
|
9715
|
+
});
|
|
9716
|
+
} else {
|
|
9717
|
+
this._flushFlag = kind;
|
|
9718
|
+
this.write(Buffer.alloc(0), '', callback);
|
|
9719
|
+
}
|
|
9720
|
+
};
|
|
9721
|
+
Zlib.prototype.close = function(callback) {
|
|
9722
|
+
_close(this, callback);
|
|
9723
|
+
process.nextTick(emitCloseNT, this);
|
|
9724
|
+
};
|
|
9725
|
+
function _close(engine, callback) {
|
|
9726
|
+
if (callback) process.nextTick(callback);
|
|
9727
|
+
if (!engine._handle) return;
|
|
9728
|
+
engine._handle.close();
|
|
9729
|
+
engine._handle = null;
|
|
9730
|
+
}
|
|
9731
|
+
function emitCloseNT(self1) {
|
|
9732
|
+
self1.emit('close');
|
|
9733
|
+
}
|
|
9734
|
+
Zlib.prototype._transform = function(chunk, encoding, cb) {
|
|
9735
|
+
var flushFlag;
|
|
9736
|
+
var ws = this._writableState;
|
|
9737
|
+
var ending = ws.ending || ws.ended;
|
|
9738
|
+
var last = ending && (!chunk || ws.length === chunk.length);
|
|
9739
|
+
if (null !== chunk && !Buffer.isBuffer(chunk)) return cb(new Error('invalid input'));
|
|
9740
|
+
if (!this._handle) return cb(new Error('zlib binding closed'));
|
|
9741
|
+
if (last) flushFlag = this._finishFlushFlag;
|
|
9742
|
+
else {
|
|
9743
|
+
flushFlag = this._flushFlag;
|
|
9744
|
+
if (chunk.length >= ws.length) this._flushFlag = this._opts.flush || binding.Z_NO_FLUSH;
|
|
9745
|
+
}
|
|
9746
|
+
this._processChunk(chunk, flushFlag, cb);
|
|
9747
|
+
};
|
|
9748
|
+
Zlib.prototype._processChunk = function(chunk, flushFlag, cb) {
|
|
9749
|
+
var availInBefore = chunk && chunk.length;
|
|
9750
|
+
var availOutBefore = this._chunkSize - this._offset;
|
|
9751
|
+
var inOff = 0;
|
|
9752
|
+
var self1 = this;
|
|
9753
|
+
var async = 'function' == typeof cb;
|
|
9754
|
+
if (!async) {
|
|
9755
|
+
var buffers = [];
|
|
9756
|
+
var nread = 0;
|
|
9757
|
+
var error;
|
|
9758
|
+
this.on('error', function(er) {
|
|
9759
|
+
error = er;
|
|
9760
|
+
});
|
|
9761
|
+
assert(this._handle, 'zlib binding closed');
|
|
9762
|
+
do var res = this._handle.writeSync(flushFlag, chunk, inOff, availInBefore, this._buffer, this._offset, availOutBefore);
|
|
9763
|
+
while (!this._hadError && callback(res[0], res[1]))
|
|
9764
|
+
if (this._hadError) throw error;
|
|
9765
|
+
if (nread >= kMaxLength) {
|
|
9766
|
+
_close(this);
|
|
9767
|
+
throw new RangeError(kRangeErrorMessage);
|
|
9768
|
+
}
|
|
9769
|
+
var buf = Buffer.concat(buffers, nread);
|
|
9770
|
+
_close(this);
|
|
9771
|
+
return buf;
|
|
9772
|
+
}
|
|
9773
|
+
assert(this._handle, 'zlib binding closed');
|
|
9774
|
+
var req = this._handle.write(flushFlag, chunk, inOff, availInBefore, this._buffer, this._offset, availOutBefore);
|
|
9775
|
+
req.buffer = chunk;
|
|
9776
|
+
req.callback = callback;
|
|
9777
|
+
function callback(availInAfter, availOutAfter) {
|
|
9778
|
+
if (this) {
|
|
9779
|
+
this.buffer = null;
|
|
9780
|
+
this.callback = null;
|
|
9781
|
+
}
|
|
9782
|
+
if (self1._hadError) return;
|
|
9783
|
+
var have = availOutBefore - availOutAfter;
|
|
9784
|
+
assert(have >= 0, 'have should not go down');
|
|
9785
|
+
if (have > 0) {
|
|
9786
|
+
var out = self1._buffer.slice(self1._offset, self1._offset + have);
|
|
9787
|
+
self1._offset += have;
|
|
9788
|
+
if (async) self1.push(out);
|
|
9789
|
+
else {
|
|
9790
|
+
buffers.push(out);
|
|
9791
|
+
nread += out.length;
|
|
9792
|
+
}
|
|
9793
|
+
}
|
|
9794
|
+
if (0 === availOutAfter || self1._offset >= self1._chunkSize) {
|
|
9795
|
+
availOutBefore = self1._chunkSize;
|
|
9796
|
+
self1._offset = 0;
|
|
9797
|
+
self1._buffer = Buffer.allocUnsafe(self1._chunkSize);
|
|
9798
|
+
}
|
|
9799
|
+
if (0 === availOutAfter) {
|
|
9800
|
+
inOff += availInBefore - availInAfter;
|
|
9801
|
+
availInBefore = availInAfter;
|
|
9802
|
+
if (!async) return true;
|
|
9803
|
+
var newReq = self1._handle.write(flushFlag, chunk, inOff, availInBefore, self1._buffer, self1._offset, self1._chunkSize);
|
|
9804
|
+
newReq.callback = callback;
|
|
9805
|
+
newReq.buffer = chunk;
|
|
9806
|
+
return;
|
|
9807
|
+
}
|
|
9808
|
+
if (!async) return false;
|
|
9809
|
+
cb();
|
|
9810
|
+
}
|
|
9811
|
+
};
|
|
9812
|
+
util.inherits(Deflate, Zlib);
|
|
9813
|
+
util.inherits(Inflate, Zlib);
|
|
9814
|
+
util.inherits(Gzip, Zlib);
|
|
9815
|
+
util.inherits(Gunzip, Zlib);
|
|
9816
|
+
util.inherits(DeflateRaw, Zlib);
|
|
9817
|
+
util.inherits(InflateRaw, Zlib);
|
|
9818
|
+
util.inherits(Unzip, Zlib);
|
|
9819
|
+
},
|
|
9820
|
+
"../../node_modules/.pnpm/buffer-xor@1.0.3/node_modules/buffer-xor/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
9821
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
9822
|
+
module.exports = function(a, b) {
|
|
9823
|
+
var length = Math.min(a.length, b.length);
|
|
9824
|
+
var buffer = new Buffer(length);
|
|
9825
|
+
for(var i = 0; i < length; ++i)buffer[i] = a[i] ^ b[i];
|
|
9826
|
+
return buffer;
|
|
9827
|
+
};
|
|
9828
|
+
},
|
|
9829
|
+
"../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
9830
|
+
/*!
|
|
9831
|
+
* The buffer module from node.js, for the browser.
|
|
9832
|
+
*
|
|
9833
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
9834
|
+
* @license MIT
|
|
9835
|
+
*/ var base64 = __webpack_require__("../../node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js");
|
|
9836
|
+
var ieee754 = __webpack_require__("../../node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js");
|
|
9837
|
+
var customInspectSymbol = 'function' == typeof Symbol && 'function' == typeof Symbol['for'] ? Symbol['for']('nodejs.util.inspect.custom') : null;
|
|
9838
|
+
exports.Buffer = Buffer;
|
|
9839
|
+
exports.SlowBuffer = SlowBuffer;
|
|
9840
|
+
exports.INSPECT_MAX_BYTES = 50;
|
|
9841
|
+
var K_MAX_LENGTH = 0x7fffffff;
|
|
9842
|
+
exports.kMaxLength = K_MAX_LENGTH;
|
|
9843
|
+
Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport();
|
|
9844
|
+
if (!Buffer.TYPED_ARRAY_SUPPORT && "u" > typeof console && 'function' == typeof console.error) console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
|
|
9845
|
+
function typedArraySupport() {
|
|
9846
|
+
try {
|
|
9847
|
+
var arr = new Uint8Array(1);
|
|
9848
|
+
var proto = {
|
|
9849
|
+
foo: function() {
|
|
9850
|
+
return 42;
|
|
9851
|
+
}
|
|
9852
|
+
};
|
|
9853
|
+
Object.setPrototypeOf(proto, Uint8Array.prototype);
|
|
9854
|
+
Object.setPrototypeOf(arr, proto);
|
|
9855
|
+
return 42 === arr.foo();
|
|
9856
|
+
} catch (e) {
|
|
9857
|
+
return false;
|
|
9858
|
+
}
|
|
9859
|
+
}
|
|
9860
|
+
Object.defineProperty(Buffer.prototype, 'parent', {
|
|
9861
|
+
enumerable: true,
|
|
9862
|
+
get: function() {
|
|
9863
|
+
if (!Buffer.isBuffer(this)) return;
|
|
9864
|
+
return this.buffer;
|
|
9865
|
+
}
|
|
9866
|
+
});
|
|
9867
|
+
Object.defineProperty(Buffer.prototype, 'offset', {
|
|
9868
|
+
enumerable: true,
|
|
9869
|
+
get: function() {
|
|
9870
|
+
if (!Buffer.isBuffer(this)) return;
|
|
9871
|
+
return this.byteOffset;
|
|
9872
|
+
}
|
|
9873
|
+
});
|
|
9874
|
+
function createBuffer(length) {
|
|
9875
|
+
if (length > K_MAX_LENGTH) throw new RangeError('The value "' + length + '" is invalid for option "size"');
|
|
9876
|
+
var buf = new Uint8Array(length);
|
|
9877
|
+
Object.setPrototypeOf(buf, Buffer.prototype);
|
|
9878
|
+
return buf;
|
|
9879
|
+
}
|
|
9880
|
+
function Buffer(arg, encodingOrOffset, length) {
|
|
9881
|
+
if ('number' == typeof arg) {
|
|
9882
|
+
if ('string' == typeof encodingOrOffset) throw new TypeError('The "string" argument must be of type string. Received type number');
|
|
9883
|
+
return allocUnsafe(arg);
|
|
9884
|
+
}
|
|
9885
|
+
return from(arg, encodingOrOffset, length);
|
|
9886
|
+
}
|
|
9887
|
+
Buffer.poolSize = 8192;
|
|
9888
|
+
function from(value, encodingOrOffset, length) {
|
|
9889
|
+
if ('string' == typeof value) return fromString(value, encodingOrOffset);
|
|
9890
|
+
if (ArrayBuffer.isView(value)) return fromArrayView(value);
|
|
9891
|
+
if (null == value) throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
|
|
9892
|
+
if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) return fromArrayBuffer(value, encodingOrOffset, length);
|
|
9893
|
+
if ("u" > typeof SharedArrayBuffer && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) return fromArrayBuffer(value, encodingOrOffset, length);
|
|
9894
|
+
if ('number' == typeof value) throw new TypeError('The "value" argument must not be of type number. Received type number');
|
|
9895
|
+
var valueOf = value.valueOf && value.valueOf();
|
|
9896
|
+
if (null != valueOf && valueOf !== value) return Buffer.from(valueOf, encodingOrOffset, length);
|
|
9897
|
+
var b = fromObject(value);
|
|
9898
|
+
if (b) return b;
|
|
9899
|
+
if ("u" > typeof Symbol && null != Symbol.toPrimitive && 'function' == typeof value[Symbol.toPrimitive]) return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length);
|
|
9900
|
+
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
|
|
9901
|
+
}
|
|
9902
|
+
Buffer.from = function(value, encodingOrOffset, length) {
|
|
9903
|
+
return from(value, encodingOrOffset, length);
|
|
9904
|
+
};
|
|
9905
|
+
Object.setPrototypeOf(Buffer.prototype, Uint8Array.prototype);
|
|
9906
|
+
Object.setPrototypeOf(Buffer, Uint8Array);
|
|
9907
|
+
function assertSize(size) {
|
|
9908
|
+
if ('number' != typeof size) throw new TypeError('"size" argument must be of type number');
|
|
9909
|
+
if (size < 0) throw new RangeError('The value "' + size + '" is invalid for option "size"');
|
|
9910
|
+
}
|
|
9911
|
+
function alloc(size, fill, encoding) {
|
|
9912
|
+
assertSize(size);
|
|
9913
|
+
if (size <= 0) return createBuffer(size);
|
|
9914
|
+
if (void 0 !== fill) return 'string' == typeof encoding ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill);
|
|
9915
|
+
return createBuffer(size);
|
|
9916
|
+
}
|
|
9917
|
+
Buffer.alloc = function(size, fill, encoding) {
|
|
9918
|
+
return alloc(size, fill, encoding);
|
|
9919
|
+
};
|
|
9920
|
+
function allocUnsafe(size) {
|
|
9921
|
+
assertSize(size);
|
|
9922
|
+
return createBuffer(size < 0 ? 0 : 0 | checked(size));
|
|
9923
|
+
}
|
|
9924
|
+
Buffer.allocUnsafe = function(size) {
|
|
9925
|
+
return allocUnsafe(size);
|
|
9926
|
+
};
|
|
9927
|
+
Buffer.allocUnsafeSlow = function(size) {
|
|
9928
|
+
return allocUnsafe(size);
|
|
9929
|
+
};
|
|
9930
|
+
function fromString(string, encoding) {
|
|
9931
|
+
if ('string' != typeof encoding || '' === encoding) encoding = 'utf8';
|
|
9932
|
+
if (!Buffer.isEncoding(encoding)) throw new TypeError('Unknown encoding: ' + encoding);
|
|
9933
|
+
var length = 0 | byteLength(string, encoding);
|
|
9934
|
+
var buf = createBuffer(length);
|
|
9935
|
+
var actual = buf.write(string, encoding);
|
|
9936
|
+
if (actual !== length) buf = buf.slice(0, actual);
|
|
9937
|
+
return buf;
|
|
9938
|
+
}
|
|
9939
|
+
function fromArrayLike(array) {
|
|
9940
|
+
var length = array.length < 0 ? 0 : 0 | checked(array.length);
|
|
9941
|
+
var buf = createBuffer(length);
|
|
9942
|
+
for(var i = 0; i < length; i += 1)buf[i] = 255 & array[i];
|
|
9943
|
+
return buf;
|
|
9944
|
+
}
|
|
9945
|
+
function fromArrayView(arrayView) {
|
|
9946
|
+
if (isInstance(arrayView, Uint8Array)) {
|
|
9947
|
+
var copy = new Uint8Array(arrayView);
|
|
9948
|
+
return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
|
|
9949
|
+
}
|
|
9950
|
+
return fromArrayLike(arrayView);
|
|
9951
|
+
}
|
|
9952
|
+
function fromArrayBuffer(array, byteOffset, length) {
|
|
9953
|
+
if (byteOffset < 0 || array.byteLength < byteOffset) throw new RangeError('"offset" is outside of buffer bounds');
|
|
9954
|
+
if (array.byteLength < byteOffset + (length || 0)) throw new RangeError('"length" is outside of buffer bounds');
|
|
9955
|
+
var buf;
|
|
9956
|
+
buf = void 0 === byteOffset && void 0 === length ? new Uint8Array(array) : void 0 === length ? new Uint8Array(array, byteOffset) : new Uint8Array(array, byteOffset, length);
|
|
9957
|
+
Object.setPrototypeOf(buf, Buffer.prototype);
|
|
9958
|
+
return buf;
|
|
9959
|
+
}
|
|
9960
|
+
function fromObject(obj) {
|
|
9961
|
+
if (Buffer.isBuffer(obj)) {
|
|
9962
|
+
var len = 0 | checked(obj.length);
|
|
9963
|
+
var buf = createBuffer(len);
|
|
9964
|
+
if (0 === buf.length) return buf;
|
|
9965
|
+
obj.copy(buf, 0, 0, len);
|
|
9966
|
+
return buf;
|
|
9967
|
+
}
|
|
9968
|
+
if (void 0 !== obj.length) {
|
|
9969
|
+
if ('number' != typeof obj.length || numberIsNaN(obj.length)) return createBuffer(0);
|
|
9970
|
+
return fromArrayLike(obj);
|
|
9971
|
+
}
|
|
9972
|
+
if ('Buffer' === obj.type && Array.isArray(obj.data)) return fromArrayLike(obj.data);
|
|
9973
|
+
}
|
|
9974
|
+
function checked(length) {
|
|
9975
|
+
if (length >= K_MAX_LENGTH) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + K_MAX_LENGTH.toString(16) + ' bytes');
|
|
9976
|
+
return 0 | length;
|
|
9977
|
+
}
|
|
9978
|
+
function SlowBuffer(length) {
|
|
9979
|
+
if (+length != length) length = 0;
|
|
9980
|
+
return Buffer.alloc(+length);
|
|
9981
|
+
}
|
|
9982
|
+
Buffer.isBuffer = function(b) {
|
|
9983
|
+
return null != b && true === b._isBuffer && b !== Buffer.prototype;
|
|
9984
|
+
};
|
|
9985
|
+
Buffer.compare = function(a, b) {
|
|
9986
|
+
if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength);
|
|
9987
|
+
if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength);
|
|
9988
|
+
if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
|
|
9989
|
+
if (a === b) return 0;
|
|
9990
|
+
var x = a.length;
|
|
9991
|
+
var y = b.length;
|
|
9992
|
+
for(var i = 0, len = Math.min(x, y); i < len; ++i)if (a[i] !== b[i]) {
|
|
9993
|
+
x = a[i];
|
|
9994
|
+
y = b[i];
|
|
9995
|
+
break;
|
|
9996
|
+
}
|
|
9997
|
+
if (x < y) return -1;
|
|
9998
|
+
if (y < x) return 1;
|
|
9999
|
+
return 0;
|
|
10000
|
+
};
|
|
10001
|
+
Buffer.isEncoding = function(encoding) {
|
|
10002
|
+
switch(String(encoding).toLowerCase()){
|
|
10003
|
+
case 'hex':
|
|
10004
|
+
case 'utf8':
|
|
10005
|
+
case 'utf-8':
|
|
10006
|
+
case 'ascii':
|
|
10007
|
+
case 'latin1':
|
|
10008
|
+
case 'binary':
|
|
10009
|
+
case 'base64':
|
|
10010
|
+
case 'ucs2':
|
|
10011
|
+
case 'ucs-2':
|
|
10012
|
+
case 'utf16le':
|
|
10013
|
+
case 'utf-16le':
|
|
10014
|
+
return true;
|
|
10015
|
+
default:
|
|
10016
|
+
return false;
|
|
10017
|
+
}
|
|
10018
|
+
};
|
|
10019
|
+
Buffer.concat = function(list, length) {
|
|
10020
|
+
if (!Array.isArray(list)) throw new TypeError('"list" argument must be an Array of Buffers');
|
|
10021
|
+
if (0 === list.length) return Buffer.alloc(0);
|
|
10022
|
+
var i;
|
|
10023
|
+
if (void 0 === length) {
|
|
10024
|
+
length = 0;
|
|
10025
|
+
for(i = 0; i < list.length; ++i)length += list[i].length;
|
|
10026
|
+
}
|
|
10027
|
+
var buffer = Buffer.allocUnsafe(length);
|
|
10028
|
+
var pos = 0;
|
|
10029
|
+
for(i = 0; i < list.length; ++i){
|
|
10030
|
+
var buf = list[i];
|
|
10031
|
+
if (isInstance(buf, Uint8Array)) if (pos + buf.length > buffer.length) Buffer.from(buf).copy(buffer, pos);
|
|
10032
|
+
else Uint8Array.prototype.set.call(buffer, buf, pos);
|
|
10033
|
+
else if (Buffer.isBuffer(buf)) buf.copy(buffer, pos);
|
|
10034
|
+
else throw new TypeError('"list" argument must be an Array of Buffers');
|
|
10035
|
+
pos += buf.length;
|
|
10036
|
+
}
|
|
10037
|
+
return buffer;
|
|
10038
|
+
};
|
|
10039
|
+
function byteLength(string, encoding) {
|
|
10040
|
+
if (Buffer.isBuffer(string)) return string.length;
|
|
10041
|
+
if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) return string.byteLength;
|
|
10042
|
+
if ('string' != typeof string) throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string);
|
|
10043
|
+
var len = string.length;
|
|
10044
|
+
var mustMatch = arguments.length > 2 && true === arguments[2];
|
|
10045
|
+
if (!mustMatch && 0 === len) return 0;
|
|
10046
|
+
var loweredCase = false;
|
|
10047
|
+
for(;;)switch(encoding){
|
|
10048
|
+
case 'ascii':
|
|
10049
|
+
case 'latin1':
|
|
10050
|
+
case 'binary':
|
|
10051
|
+
return len;
|
|
10052
|
+
case 'utf8':
|
|
10053
|
+
case 'utf-8':
|
|
10054
|
+
return utf8ToBytes(string).length;
|
|
10055
|
+
case 'ucs2':
|
|
10056
|
+
case 'ucs-2':
|
|
10057
|
+
case 'utf16le':
|
|
10058
|
+
case 'utf-16le':
|
|
10059
|
+
return 2 * len;
|
|
10060
|
+
case 'hex':
|
|
10061
|
+
return len >>> 1;
|
|
10062
|
+
case 'base64':
|
|
10063
|
+
return base64ToBytes(string).length;
|
|
10064
|
+
default:
|
|
10065
|
+
if (loweredCase) return mustMatch ? -1 : utf8ToBytes(string).length;
|
|
10066
|
+
encoding = ('' + encoding).toLowerCase();
|
|
10067
|
+
loweredCase = true;
|
|
10068
|
+
}
|
|
10069
|
+
}
|
|
10070
|
+
Buffer.byteLength = byteLength;
|
|
10071
|
+
function slowToString(encoding, start, end) {
|
|
10072
|
+
var loweredCase = false;
|
|
10073
|
+
if (void 0 === start || start < 0) start = 0;
|
|
10074
|
+
if (start > this.length) return '';
|
|
10075
|
+
if (void 0 === end || end > this.length) end = this.length;
|
|
10076
|
+
if (end <= 0) return '';
|
|
10077
|
+
end >>>= 0;
|
|
10078
|
+
start >>>= 0;
|
|
10079
|
+
if (end <= start) return '';
|
|
10080
|
+
if (!encoding) encoding = 'utf8';
|
|
10081
|
+
while(true)switch(encoding){
|
|
10082
|
+
case 'hex':
|
|
10083
|
+
return hexSlice(this, start, end);
|
|
10084
|
+
case 'utf8':
|
|
10085
|
+
case 'utf-8':
|
|
10086
|
+
return utf8Slice(this, start, end);
|
|
10087
|
+
case 'ascii':
|
|
10088
|
+
return asciiSlice(this, start, end);
|
|
10089
|
+
case 'latin1':
|
|
10090
|
+
case 'binary':
|
|
10091
|
+
return latin1Slice(this, start, end);
|
|
10092
|
+
case 'base64':
|
|
10093
|
+
return base64Slice(this, start, end);
|
|
10094
|
+
case 'ucs2':
|
|
10095
|
+
case 'ucs-2':
|
|
10096
|
+
case 'utf16le':
|
|
10097
|
+
case 'utf-16le':
|
|
10098
|
+
return utf16leSlice(this, start, end);
|
|
10099
|
+
default:
|
|
10100
|
+
if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding);
|
|
10101
|
+
encoding = (encoding + '').toLowerCase();
|
|
10102
|
+
loweredCase = true;
|
|
10103
|
+
}
|
|
10104
|
+
}
|
|
10105
|
+
Buffer.prototype._isBuffer = true;
|
|
10106
|
+
function swap(b, n, m) {
|
|
10107
|
+
var i = b[n];
|
|
10108
|
+
b[n] = b[m];
|
|
10109
|
+
b[m] = i;
|
|
10110
|
+
}
|
|
10111
|
+
Buffer.prototype.swap16 = function() {
|
|
10112
|
+
var len = this.length;
|
|
10113
|
+
if (len % 2 !== 0) throw new RangeError('Buffer size must be a multiple of 16-bits');
|
|
10114
|
+
for(var i = 0; i < len; i += 2)swap(this, i, i + 1);
|
|
10115
|
+
return this;
|
|
10116
|
+
};
|
|
10117
|
+
Buffer.prototype.swap32 = function() {
|
|
10118
|
+
var len = this.length;
|
|
10119
|
+
if (len % 4 !== 0) throw new RangeError('Buffer size must be a multiple of 32-bits');
|
|
10120
|
+
for(var i = 0; i < len; i += 4){
|
|
10121
|
+
swap(this, i, i + 3);
|
|
10122
|
+
swap(this, i + 1, i + 2);
|
|
10123
|
+
}
|
|
10124
|
+
return this;
|
|
10125
|
+
};
|
|
10126
|
+
Buffer.prototype.swap64 = function() {
|
|
10127
|
+
var len = this.length;
|
|
10128
|
+
if (len % 8 !== 0) throw new RangeError('Buffer size must be a multiple of 64-bits');
|
|
10129
|
+
for(var i = 0; i < len; i += 8){
|
|
10130
|
+
swap(this, i, i + 7);
|
|
10131
|
+
swap(this, i + 1, i + 6);
|
|
10132
|
+
swap(this, i + 2, i + 5);
|
|
10133
|
+
swap(this, i + 3, i + 4);
|
|
10134
|
+
}
|
|
10135
|
+
return this;
|
|
10136
|
+
};
|
|
10137
|
+
Buffer.prototype.toString = function() {
|
|
10138
|
+
var length = this.length;
|
|
10139
|
+
if (0 === length) return '';
|
|
10140
|
+
if (0 === arguments.length) return utf8Slice(this, 0, length);
|
|
10141
|
+
return slowToString.apply(this, arguments);
|
|
10142
|
+
};
|
|
10143
|
+
Buffer.prototype.toLocaleString = Buffer.prototype.toString;
|
|
10144
|
+
Buffer.prototype.equals = function(b) {
|
|
10145
|
+
if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer');
|
|
10146
|
+
if (this === b) return true;
|
|
10147
|
+
return 0 === Buffer.compare(this, b);
|
|
10148
|
+
};
|
|
10149
|
+
Buffer.prototype.inspect = function() {
|
|
10150
|
+
var str = '';
|
|
10151
|
+
var max = exports.INSPECT_MAX_BYTES;
|
|
10152
|
+
str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim();
|
|
10153
|
+
if (this.length > max) str += ' ... ';
|
|
10154
|
+
return '<Buffer ' + str + '>';
|
|
10155
|
+
};
|
|
10156
|
+
if (customInspectSymbol) Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect;
|
|
10157
|
+
Buffer.prototype.compare = function(target, start, end, thisStart, thisEnd) {
|
|
10158
|
+
if (isInstance(target, Uint8Array)) target = Buffer.from(target, target.offset, target.byteLength);
|
|
10159
|
+
if (!Buffer.isBuffer(target)) throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target);
|
|
10160
|
+
if (void 0 === start) start = 0;
|
|
10161
|
+
if (void 0 === end) end = target ? target.length : 0;
|
|
10162
|
+
if (void 0 === thisStart) thisStart = 0;
|
|
10163
|
+
if (void 0 === thisEnd) thisEnd = this.length;
|
|
10164
|
+
if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) throw new RangeError('out of range index');
|
|
10165
|
+
if (thisStart >= thisEnd && start >= end) return 0;
|
|
10166
|
+
if (thisStart >= thisEnd) return -1;
|
|
10167
|
+
if (start >= end) return 1;
|
|
10168
|
+
start >>>= 0;
|
|
10169
|
+
end >>>= 0;
|
|
10170
|
+
thisStart >>>= 0;
|
|
10171
|
+
thisEnd >>>= 0;
|
|
10172
|
+
if (this === target) return 0;
|
|
10173
|
+
var x = thisEnd - thisStart;
|
|
10174
|
+
var y = end - start;
|
|
10175
|
+
var len = Math.min(x, y);
|
|
10176
|
+
var thisCopy = this.slice(thisStart, thisEnd);
|
|
10177
|
+
var targetCopy = target.slice(start, end);
|
|
10178
|
+
for(var i = 0; i < len; ++i)if (thisCopy[i] !== targetCopy[i]) {
|
|
10179
|
+
x = thisCopy[i];
|
|
10180
|
+
y = targetCopy[i];
|
|
10181
|
+
break;
|
|
10182
|
+
}
|
|
10183
|
+
if (x < y) return -1;
|
|
10184
|
+
if (y < x) return 1;
|
|
10185
|
+
return 0;
|
|
10186
|
+
};
|
|
10187
|
+
function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
|
|
10188
|
+
if (0 === buffer.length) return -1;
|
|
10189
|
+
if ('string' == typeof byteOffset) {
|
|
10190
|
+
encoding = byteOffset;
|
|
10191
|
+
byteOffset = 0;
|
|
10192
|
+
} else if (byteOffset > 0x7fffffff) byteOffset = 0x7fffffff;
|
|
10193
|
+
else if (byteOffset < -2147483648) byteOffset = -2147483648;
|
|
10194
|
+
byteOffset *= 1;
|
|
10195
|
+
if (numberIsNaN(byteOffset)) byteOffset = dir ? 0 : buffer.length - 1;
|
|
10196
|
+
if (byteOffset < 0) byteOffset = buffer.length + byteOffset;
|
|
10197
|
+
if (byteOffset >= buffer.length) if (dir) return -1;
|
|
10198
|
+
else byteOffset = buffer.length - 1;
|
|
10199
|
+
else if (byteOffset < 0) if (!dir) return -1;
|
|
10200
|
+
else byteOffset = 0;
|
|
10201
|
+
if ('string' == typeof val) val = Buffer.from(val, encoding);
|
|
10202
|
+
if (Buffer.isBuffer(val)) {
|
|
10203
|
+
if (0 === val.length) return -1;
|
|
10204
|
+
return arrayIndexOf(buffer, val, byteOffset, encoding, dir);
|
|
10205
|
+
}
|
|
10206
|
+
if ('number' == typeof val) {
|
|
10207
|
+
val &= 0xFF;
|
|
10208
|
+
if ('function' == typeof Uint8Array.prototype.indexOf) if (dir) return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset);
|
|
10209
|
+
else return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset);
|
|
10210
|
+
return arrayIndexOf(buffer, [
|
|
10211
|
+
val
|
|
10212
|
+
], byteOffset, encoding, dir);
|
|
10213
|
+
}
|
|
10214
|
+
throw new TypeError('val must be string, number or Buffer');
|
|
10215
|
+
}
|
|
10216
|
+
function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
|
|
10217
|
+
var indexSize = 1;
|
|
10218
|
+
var arrLength = arr.length;
|
|
10219
|
+
var valLength = val.length;
|
|
10220
|
+
if (void 0 !== encoding) {
|
|
10221
|
+
encoding = String(encoding).toLowerCase();
|
|
10222
|
+
if ('ucs2' === encoding || 'ucs-2' === encoding || 'utf16le' === encoding || 'utf-16le' === encoding) {
|
|
10223
|
+
if (arr.length < 2 || val.length < 2) return -1;
|
|
10224
|
+
indexSize = 2;
|
|
10225
|
+
arrLength /= 2;
|
|
10226
|
+
valLength /= 2;
|
|
10227
|
+
byteOffset /= 2;
|
|
10228
|
+
}
|
|
10229
|
+
}
|
|
10230
|
+
function read(buf, i) {
|
|
10231
|
+
if (1 === indexSize) return buf[i];
|
|
10232
|
+
return buf.readUInt16BE(i * indexSize);
|
|
10233
|
+
}
|
|
10234
|
+
var i;
|
|
10235
|
+
if (dir) {
|
|
10236
|
+
var foundIndex = -1;
|
|
10237
|
+
for(i = byteOffset; i < arrLength; i++)if (read(arr, i) === read(val, -1 === foundIndex ? 0 : i - foundIndex)) {
|
|
10238
|
+
if (-1 === foundIndex) foundIndex = i;
|
|
10239
|
+
if (i - foundIndex + 1 === valLength) return foundIndex * indexSize;
|
|
10240
|
+
} else {
|
|
10241
|
+
if (-1 !== foundIndex) i -= i - foundIndex;
|
|
10242
|
+
foundIndex = -1;
|
|
10243
|
+
}
|
|
10244
|
+
} else {
|
|
10245
|
+
if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;
|
|
10246
|
+
for(i = byteOffset; i >= 0; i--){
|
|
10247
|
+
var found = true;
|
|
10248
|
+
for(var j = 0; j < valLength; j++)if (read(arr, i + j) !== read(val, j)) {
|
|
10249
|
+
found = false;
|
|
10250
|
+
break;
|
|
10251
|
+
}
|
|
10252
|
+
if (found) return i;
|
|
10253
|
+
}
|
|
10254
|
+
}
|
|
10255
|
+
return -1;
|
|
10256
|
+
}
|
|
10257
|
+
Buffer.prototype.includes = function(val, byteOffset, encoding) {
|
|
10258
|
+
return -1 !== this.indexOf(val, byteOffset, encoding);
|
|
10259
|
+
};
|
|
10260
|
+
Buffer.prototype.indexOf = function(val, byteOffset, encoding) {
|
|
10261
|
+
return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
|
|
10262
|
+
};
|
|
10263
|
+
Buffer.prototype.lastIndexOf = function(val, byteOffset, encoding) {
|
|
10264
|
+
return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
|
|
10265
|
+
};
|
|
10266
|
+
function hexWrite(buf, string, offset, length) {
|
|
10267
|
+
offset = Number(offset) || 0;
|
|
10268
|
+
var remaining = buf.length - offset;
|
|
10269
|
+
if (length) {
|
|
10270
|
+
length = Number(length);
|
|
10271
|
+
if (length > remaining) length = remaining;
|
|
10272
|
+
} else length = remaining;
|
|
10273
|
+
var strLen = string.length;
|
|
10274
|
+
if (length > strLen / 2) length = strLen / 2;
|
|
10275
|
+
for(var i = 0; i < length; ++i){
|
|
10276
|
+
var parsed = parseInt(string.substr(2 * i, 2), 16);
|
|
10277
|
+
if (numberIsNaN(parsed)) break;
|
|
10278
|
+
buf[offset + i] = parsed;
|
|
10279
|
+
}
|
|
10280
|
+
return i;
|
|
10281
|
+
}
|
|
10282
|
+
function utf8Write(buf, string, offset, length) {
|
|
10283
|
+
return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);
|
|
10284
|
+
}
|
|
10285
|
+
function asciiWrite(buf, string, offset, length) {
|
|
10286
|
+
return blitBuffer(asciiToBytes(string), buf, offset, length);
|
|
10287
|
+
}
|
|
10288
|
+
function base64Write(buf, string, offset, length) {
|
|
10289
|
+
return blitBuffer(base64ToBytes(string), buf, offset, length);
|
|
10290
|
+
}
|
|
10291
|
+
function ucs2Write(buf, string, offset, length) {
|
|
10292
|
+
return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
|
|
10293
|
+
}
|
|
10294
|
+
Buffer.prototype.write = function(string, offset, length, encoding) {
|
|
10295
|
+
if (void 0 === offset) {
|
|
10296
|
+
encoding = 'utf8';
|
|
10297
|
+
length = this.length;
|
|
10298
|
+
offset = 0;
|
|
10299
|
+
} else if (void 0 === length && 'string' == typeof offset) {
|
|
10300
|
+
encoding = offset;
|
|
10301
|
+
length = this.length;
|
|
10302
|
+
offset = 0;
|
|
10303
|
+
} else if (isFinite(offset)) {
|
|
10304
|
+
offset >>>= 0;
|
|
10305
|
+
if (isFinite(length)) {
|
|
10306
|
+
length >>>= 0;
|
|
10307
|
+
if (void 0 === encoding) encoding = 'utf8';
|
|
10308
|
+
} else {
|
|
10309
|
+
encoding = length;
|
|
10310
|
+
length = void 0;
|
|
10311
|
+
}
|
|
10312
|
+
} else throw new Error('Buffer.write(string, encoding, offset[, length]) is no longer supported');
|
|
10313
|
+
var remaining = this.length - offset;
|
|
10314
|
+
if (void 0 === length || length > remaining) length = remaining;
|
|
10315
|
+
if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) throw new RangeError('Attempt to write outside buffer bounds');
|
|
10316
|
+
if (!encoding) encoding = 'utf8';
|
|
10317
|
+
var loweredCase = false;
|
|
10318
|
+
for(;;)switch(encoding){
|
|
10319
|
+
case 'hex':
|
|
10320
|
+
return hexWrite(this, string, offset, length);
|
|
10321
|
+
case 'utf8':
|
|
10322
|
+
case 'utf-8':
|
|
10323
|
+
return utf8Write(this, string, offset, length);
|
|
10324
|
+
case 'ascii':
|
|
10325
|
+
case 'latin1':
|
|
10326
|
+
case 'binary':
|
|
10327
|
+
return asciiWrite(this, string, offset, length);
|
|
10328
|
+
case 'base64':
|
|
10329
|
+
return base64Write(this, string, offset, length);
|
|
10330
|
+
case 'ucs2':
|
|
10331
|
+
case 'ucs-2':
|
|
10332
|
+
case 'utf16le':
|
|
10333
|
+
case 'utf-16le':
|
|
10334
|
+
return ucs2Write(this, string, offset, length);
|
|
10335
|
+
default:
|
|
10336
|
+
if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding);
|
|
10337
|
+
encoding = ('' + encoding).toLowerCase();
|
|
10338
|
+
loweredCase = true;
|
|
10339
|
+
}
|
|
10340
|
+
};
|
|
10341
|
+
Buffer.prototype.toJSON = function() {
|
|
10342
|
+
return {
|
|
10343
|
+
type: 'Buffer',
|
|
10344
|
+
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
10345
|
+
};
|
|
10346
|
+
};
|
|
10347
|
+
function base64Slice(buf, start, end) {
|
|
10348
|
+
if (0 === start && end === buf.length) return base64.fromByteArray(buf);
|
|
10349
|
+
return base64.fromByteArray(buf.slice(start, end));
|
|
10350
|
+
}
|
|
10351
|
+
function utf8Slice(buf, start, end) {
|
|
10352
|
+
end = Math.min(buf.length, end);
|
|
10353
|
+
var res = [];
|
|
10354
|
+
var i = start;
|
|
10355
|
+
while(i < end){
|
|
10356
|
+
var firstByte = buf[i];
|
|
10357
|
+
var codePoint = null;
|
|
10358
|
+
var bytesPerSequence = firstByte > 0xEF ? 4 : firstByte > 0xDF ? 3 : firstByte > 0xBF ? 2 : 1;
|
|
10359
|
+
if (i + bytesPerSequence <= end) {
|
|
10360
|
+
var secondByte, thirdByte, fourthByte, tempCodePoint;
|
|
10361
|
+
switch(bytesPerSequence){
|
|
10362
|
+
case 1:
|
|
10363
|
+
if (firstByte < 0x80) codePoint = firstByte;
|
|
10364
|
+
break;
|
|
10365
|
+
case 2:
|
|
10366
|
+
secondByte = buf[i + 1];
|
|
10367
|
+
if ((0xC0 & secondByte) === 0x80) {
|
|
10368
|
+
tempCodePoint = (0x1F & firstByte) << 0x6 | 0x3F & secondByte;
|
|
10369
|
+
if (tempCodePoint > 0x7F) codePoint = tempCodePoint;
|
|
10370
|
+
}
|
|
10371
|
+
break;
|
|
10372
|
+
case 3:
|
|
10373
|
+
secondByte = buf[i + 1];
|
|
10374
|
+
thirdByte = buf[i + 2];
|
|
10375
|
+
if ((0xC0 & secondByte) === 0x80 && (0xC0 & thirdByte) === 0x80) {
|
|
10376
|
+
tempCodePoint = (0xF & firstByte) << 0xC | (0x3F & secondByte) << 0x6 | 0x3F & thirdByte;
|
|
10377
|
+
if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) codePoint = tempCodePoint;
|
|
10378
|
+
}
|
|
10379
|
+
break;
|
|
10380
|
+
case 4:
|
|
10381
|
+
secondByte = buf[i + 1];
|
|
10382
|
+
thirdByte = buf[i + 2];
|
|
10383
|
+
fourthByte = buf[i + 3];
|
|
10384
|
+
if ((0xC0 & secondByte) === 0x80 && (0xC0 & thirdByte) === 0x80 && (0xC0 & fourthByte) === 0x80) {
|
|
10385
|
+
tempCodePoint = (0xF & firstByte) << 0x12 | (0x3F & secondByte) << 0xC | (0x3F & thirdByte) << 0x6 | 0x3F & fourthByte;
|
|
10386
|
+
if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) codePoint = tempCodePoint;
|
|
10387
|
+
}
|
|
10388
|
+
}
|
|
10389
|
+
}
|
|
10390
|
+
if (null === codePoint) {
|
|
10391
|
+
codePoint = 0xFFFD;
|
|
10392
|
+
bytesPerSequence = 1;
|
|
10393
|
+
} else if (codePoint > 0xFFFF) {
|
|
10394
|
+
codePoint -= 0x10000;
|
|
10395
|
+
res.push(codePoint >>> 10 & 0x3FF | 0xD800);
|
|
10396
|
+
codePoint = 0xDC00 | 0x3FF & codePoint;
|
|
10397
|
+
}
|
|
10398
|
+
res.push(codePoint);
|
|
10399
|
+
i += bytesPerSequence;
|
|
10400
|
+
}
|
|
10401
|
+
return decodeCodePointsArray(res);
|
|
10402
|
+
}
|
|
10403
|
+
var MAX_ARGUMENTS_LENGTH = 0x1000;
|
|
10404
|
+
function decodeCodePointsArray(codePoints) {
|
|
10405
|
+
var len = codePoints.length;
|
|
10406
|
+
if (len <= MAX_ARGUMENTS_LENGTH) return String.fromCharCode.apply(String, codePoints);
|
|
10407
|
+
var res = '';
|
|
10408
|
+
var i = 0;
|
|
10409
|
+
while(i < len)res += String.fromCharCode.apply(String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH));
|
|
10410
|
+
return res;
|
|
10411
|
+
}
|
|
10412
|
+
function asciiSlice(buf, start, end) {
|
|
10413
|
+
var ret = '';
|
|
10414
|
+
end = Math.min(buf.length, end);
|
|
10415
|
+
for(var i = start; i < end; ++i)ret += String.fromCharCode(0x7F & buf[i]);
|
|
10416
|
+
return ret;
|
|
10417
|
+
}
|
|
10418
|
+
function latin1Slice(buf, start, end) {
|
|
10419
|
+
var ret = '';
|
|
10420
|
+
end = Math.min(buf.length, end);
|
|
10421
|
+
for(var i = start; i < end; ++i)ret += String.fromCharCode(buf[i]);
|
|
10422
|
+
return ret;
|
|
10423
|
+
}
|
|
10424
|
+
function hexSlice(buf, start, end) {
|
|
10425
|
+
var len = buf.length;
|
|
10426
|
+
if (!start || start < 0) start = 0;
|
|
10427
|
+
if (!end || end < 0 || end > len) end = len;
|
|
10428
|
+
var out = '';
|
|
10429
|
+
for(var i = start; i < end; ++i)out += hexSliceLookupTable[buf[i]];
|
|
10430
|
+
return out;
|
|
10431
|
+
}
|
|
10432
|
+
function utf16leSlice(buf, start, end) {
|
|
10433
|
+
var bytes = buf.slice(start, end);
|
|
10434
|
+
var res = '';
|
|
10435
|
+
for(var i = 0; i < bytes.length - 1; i += 2)res += String.fromCharCode(bytes[i] + 256 * bytes[i + 1]);
|
|
10436
|
+
return res;
|
|
10437
|
+
}
|
|
10438
|
+
Buffer.prototype.slice = function(start, end) {
|
|
10439
|
+
var len = this.length;
|
|
10440
|
+
start = ~~start;
|
|
10441
|
+
end = void 0 === end ? len : ~~end;
|
|
10442
|
+
if (start < 0) {
|
|
10443
|
+
start += len;
|
|
10444
|
+
if (start < 0) start = 0;
|
|
10445
|
+
} else if (start > len) start = len;
|
|
10446
|
+
if (end < 0) {
|
|
10447
|
+
end += len;
|
|
10448
|
+
if (end < 0) end = 0;
|
|
10449
|
+
} else if (end > len) end = len;
|
|
10450
|
+
if (end < start) end = start;
|
|
10451
|
+
var newBuf = this.subarray(start, end);
|
|
10452
|
+
Object.setPrototypeOf(newBuf, Buffer.prototype);
|
|
10453
|
+
return newBuf;
|
|
10454
|
+
};
|
|
10455
|
+
function checkOffset(offset, ext, length) {
|
|
10456
|
+
if (offset % 1 !== 0 || offset < 0) throw new RangeError('offset is not uint');
|
|
10457
|
+
if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length');
|
|
10458
|
+
}
|
|
10459
|
+
Buffer.prototype.readUintLE = Buffer.prototype.readUIntLE = function(offset, byteLength, noAssert) {
|
|
10460
|
+
offset >>>= 0;
|
|
10461
|
+
byteLength >>>= 0;
|
|
10462
|
+
if (!noAssert) checkOffset(offset, byteLength, this.length);
|
|
10463
|
+
var val = this[offset];
|
|
10464
|
+
var mul = 1;
|
|
10465
|
+
var i = 0;
|
|
10466
|
+
while(++i < byteLength && (mul *= 0x100))val += this[offset + i] * mul;
|
|
10467
|
+
return val;
|
|
10468
|
+
};
|
|
10469
|
+
Buffer.prototype.readUintBE = Buffer.prototype.readUIntBE = function(offset, byteLength, noAssert) {
|
|
10470
|
+
offset >>>= 0;
|
|
10471
|
+
byteLength >>>= 0;
|
|
10472
|
+
if (!noAssert) checkOffset(offset, byteLength, this.length);
|
|
10473
|
+
var val = this[offset + --byteLength];
|
|
10474
|
+
var mul = 1;
|
|
10475
|
+
while(byteLength > 0 && (mul *= 0x100))val += this[offset + --byteLength] * mul;
|
|
10476
|
+
return val;
|
|
10477
|
+
};
|
|
10478
|
+
Buffer.prototype.readUint8 = Buffer.prototype.readUInt8 = function(offset, noAssert) {
|
|
10479
|
+
offset >>>= 0;
|
|
10480
|
+
if (!noAssert) checkOffset(offset, 1, this.length);
|
|
10481
|
+
return this[offset];
|
|
10482
|
+
};
|
|
10483
|
+
Buffer.prototype.readUint16LE = Buffer.prototype.readUInt16LE = function(offset, noAssert) {
|
|
10484
|
+
offset >>>= 0;
|
|
10485
|
+
if (!noAssert) checkOffset(offset, 2, this.length);
|
|
10486
|
+
return this[offset] | this[offset + 1] << 8;
|
|
10487
|
+
};
|
|
10488
|
+
Buffer.prototype.readUint16BE = Buffer.prototype.readUInt16BE = function(offset, noAssert) {
|
|
10489
|
+
offset >>>= 0;
|
|
10490
|
+
if (!noAssert) checkOffset(offset, 2, this.length);
|
|
10491
|
+
return this[offset] << 8 | this[offset + 1];
|
|
10492
|
+
};
|
|
10493
|
+
Buffer.prototype.readUint32LE = Buffer.prototype.readUInt32LE = function(offset, noAssert) {
|
|
10494
|
+
offset >>>= 0;
|
|
10495
|
+
if (!noAssert) checkOffset(offset, 4, this.length);
|
|
10496
|
+
return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + 0x1000000 * this[offset + 3];
|
|
10497
|
+
};
|
|
10498
|
+
Buffer.prototype.readUint32BE = Buffer.prototype.readUInt32BE = function(offset, noAssert) {
|
|
10499
|
+
offset >>>= 0;
|
|
10500
|
+
if (!noAssert) checkOffset(offset, 4, this.length);
|
|
10501
|
+
return 0x1000000 * this[offset] + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
|
|
10502
|
+
};
|
|
10503
|
+
Buffer.prototype.readIntLE = function(offset, byteLength, noAssert) {
|
|
10504
|
+
offset >>>= 0;
|
|
10505
|
+
byteLength >>>= 0;
|
|
10506
|
+
if (!noAssert) checkOffset(offset, byteLength, this.length);
|
|
10507
|
+
var val = this[offset];
|
|
10508
|
+
var mul = 1;
|
|
10509
|
+
var i = 0;
|
|
10510
|
+
while(++i < byteLength && (mul *= 0x100))val += this[offset + i] * mul;
|
|
10511
|
+
mul *= 0x80;
|
|
10512
|
+
if (val >= mul) val -= Math.pow(2, 8 * byteLength);
|
|
10513
|
+
return val;
|
|
10514
|
+
};
|
|
10515
|
+
Buffer.prototype.readIntBE = function(offset, byteLength, noAssert) {
|
|
10516
|
+
offset >>>= 0;
|
|
10517
|
+
byteLength >>>= 0;
|
|
10518
|
+
if (!noAssert) checkOffset(offset, byteLength, this.length);
|
|
10519
|
+
var i = byteLength;
|
|
10520
|
+
var mul = 1;
|
|
10521
|
+
var val = this[offset + --i];
|
|
10522
|
+
while(i > 0 && (mul *= 0x100))val += this[offset + --i] * mul;
|
|
10523
|
+
mul *= 0x80;
|
|
10524
|
+
if (val >= mul) val -= Math.pow(2, 8 * byteLength);
|
|
10525
|
+
return val;
|
|
10526
|
+
};
|
|
10527
|
+
Buffer.prototype.readInt8 = function(offset, noAssert) {
|
|
10528
|
+
offset >>>= 0;
|
|
10529
|
+
if (!noAssert) checkOffset(offset, 1, this.length);
|
|
10530
|
+
if (!(0x80 & this[offset])) return this[offset];
|
|
10531
|
+
return (0xff - this[offset] + 1) * -1;
|
|
10532
|
+
};
|
|
10533
|
+
Buffer.prototype.readInt16LE = function(offset, noAssert) {
|
|
10534
|
+
offset >>>= 0;
|
|
10535
|
+
if (!noAssert) checkOffset(offset, 2, this.length);
|
|
10536
|
+
var val = this[offset] | this[offset + 1] << 8;
|
|
10537
|
+
return 0x8000 & val ? 0xFFFF0000 | val : val;
|
|
10538
|
+
};
|
|
10539
|
+
Buffer.prototype.readInt16BE = function(offset, noAssert) {
|
|
10540
|
+
offset >>>= 0;
|
|
10541
|
+
if (!noAssert) checkOffset(offset, 2, this.length);
|
|
10542
|
+
var val = this[offset + 1] | this[offset] << 8;
|
|
10543
|
+
return 0x8000 & val ? 0xFFFF0000 | val : val;
|
|
10544
|
+
};
|
|
10545
|
+
Buffer.prototype.readInt32LE = function(offset, noAssert) {
|
|
10546
|
+
offset >>>= 0;
|
|
10547
|
+
if (!noAssert) checkOffset(offset, 4, this.length);
|
|
10548
|
+
return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
|
|
10549
|
+
};
|
|
10550
|
+
Buffer.prototype.readInt32BE = function(offset, noAssert) {
|
|
10551
|
+
offset >>>= 0;
|
|
10552
|
+
if (!noAssert) checkOffset(offset, 4, this.length);
|
|
10553
|
+
return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
|
|
10554
|
+
};
|
|
10555
|
+
Buffer.prototype.readFloatLE = function(offset, noAssert) {
|
|
10556
|
+
offset >>>= 0;
|
|
10557
|
+
if (!noAssert) checkOffset(offset, 4, this.length);
|
|
10558
|
+
return ieee754.read(this, offset, true, 23, 4);
|
|
10559
|
+
};
|
|
10560
|
+
Buffer.prototype.readFloatBE = function(offset, noAssert) {
|
|
10561
|
+
offset >>>= 0;
|
|
10562
|
+
if (!noAssert) checkOffset(offset, 4, this.length);
|
|
10563
|
+
return ieee754.read(this, offset, false, 23, 4);
|
|
10564
|
+
};
|
|
10565
|
+
Buffer.prototype.readDoubleLE = function(offset, noAssert) {
|
|
10566
|
+
offset >>>= 0;
|
|
10567
|
+
if (!noAssert) checkOffset(offset, 8, this.length);
|
|
10568
|
+
return ieee754.read(this, offset, true, 52, 8);
|
|
10569
|
+
};
|
|
10570
|
+
Buffer.prototype.readDoubleBE = function(offset, noAssert) {
|
|
10571
|
+
offset >>>= 0;
|
|
10572
|
+
if (!noAssert) checkOffset(offset, 8, this.length);
|
|
10573
|
+
return ieee754.read(this, offset, false, 52, 8);
|
|
10574
|
+
};
|
|
10575
|
+
function checkInt(buf, value, offset, ext, max, min) {
|
|
10576
|
+
if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
10577
|
+
if (value > max || value < min) throw new RangeError('"value" argument is out of bounds');
|
|
10578
|
+
if (offset + ext > buf.length) throw new RangeError('Index out of range');
|
|
10579
|
+
}
|
|
10580
|
+
Buffer.prototype.writeUintLE = Buffer.prototype.writeUIntLE = function(value, offset, byteLength, noAssert) {
|
|
10581
|
+
value *= 1;
|
|
10582
|
+
offset >>>= 0;
|
|
10583
|
+
byteLength >>>= 0;
|
|
10584
|
+
if (!noAssert) {
|
|
10585
|
+
var maxBytes = Math.pow(2, 8 * byteLength) - 1;
|
|
10586
|
+
checkInt(this, value, offset, byteLength, maxBytes, 0);
|
|
10587
|
+
}
|
|
10588
|
+
var mul = 1;
|
|
10589
|
+
var i = 0;
|
|
10590
|
+
this[offset] = 0xFF & value;
|
|
10591
|
+
while(++i < byteLength && (mul *= 0x100))this[offset + i] = value / mul & 0xFF;
|
|
10592
|
+
return offset + byteLength;
|
|
10593
|
+
};
|
|
10594
|
+
Buffer.prototype.writeUintBE = Buffer.prototype.writeUIntBE = function(value, offset, byteLength, noAssert) {
|
|
10595
|
+
value *= 1;
|
|
10596
|
+
offset >>>= 0;
|
|
10597
|
+
byteLength >>>= 0;
|
|
10598
|
+
if (!noAssert) {
|
|
10599
|
+
var maxBytes = Math.pow(2, 8 * byteLength) - 1;
|
|
10600
|
+
checkInt(this, value, offset, byteLength, maxBytes, 0);
|
|
10601
|
+
}
|
|
10602
|
+
var i = byteLength - 1;
|
|
10603
|
+
var mul = 1;
|
|
10604
|
+
this[offset + i] = 0xFF & value;
|
|
10605
|
+
while(--i >= 0 && (mul *= 0x100))this[offset + i] = value / mul & 0xFF;
|
|
10606
|
+
return offset + byteLength;
|
|
10607
|
+
};
|
|
10608
|
+
Buffer.prototype.writeUint8 = Buffer.prototype.writeUInt8 = function(value, offset, noAssert) {
|
|
10609
|
+
value *= 1;
|
|
10610
|
+
offset >>>= 0;
|
|
10611
|
+
if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0);
|
|
10612
|
+
this[offset] = 0xff & value;
|
|
10613
|
+
return offset + 1;
|
|
10614
|
+
};
|
|
10615
|
+
Buffer.prototype.writeUint16LE = Buffer.prototype.writeUInt16LE = function(value, offset, noAssert) {
|
|
10616
|
+
value *= 1;
|
|
10617
|
+
offset >>>= 0;
|
|
10618
|
+
if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0);
|
|
10619
|
+
this[offset] = 0xff & value;
|
|
10620
|
+
this[offset + 1] = value >>> 8;
|
|
10621
|
+
return offset + 2;
|
|
10622
|
+
};
|
|
10623
|
+
Buffer.prototype.writeUint16BE = Buffer.prototype.writeUInt16BE = function(value, offset, noAssert) {
|
|
10624
|
+
value *= 1;
|
|
10625
|
+
offset >>>= 0;
|
|
10626
|
+
if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0);
|
|
10627
|
+
this[offset] = value >>> 8;
|
|
10628
|
+
this[offset + 1] = 0xff & value;
|
|
10629
|
+
return offset + 2;
|
|
10630
|
+
};
|
|
10631
|
+
Buffer.prototype.writeUint32LE = Buffer.prototype.writeUInt32LE = function(value, offset, noAssert) {
|
|
10632
|
+
value *= 1;
|
|
10633
|
+
offset >>>= 0;
|
|
10634
|
+
if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0);
|
|
10635
|
+
this[offset + 3] = value >>> 24;
|
|
10636
|
+
this[offset + 2] = value >>> 16;
|
|
10637
|
+
this[offset + 1] = value >>> 8;
|
|
10638
|
+
this[offset] = 0xff & value;
|
|
10639
|
+
return offset + 4;
|
|
10640
|
+
};
|
|
10641
|
+
Buffer.prototype.writeUint32BE = Buffer.prototype.writeUInt32BE = function(value, offset, noAssert) {
|
|
10642
|
+
value *= 1;
|
|
10643
|
+
offset >>>= 0;
|
|
10644
|
+
if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0);
|
|
10645
|
+
this[offset] = value >>> 24;
|
|
10646
|
+
this[offset + 1] = value >>> 16;
|
|
10647
|
+
this[offset + 2] = value >>> 8;
|
|
10648
|
+
this[offset + 3] = 0xff & value;
|
|
10649
|
+
return offset + 4;
|
|
10650
|
+
};
|
|
10651
|
+
Buffer.prototype.writeIntLE = function(value, offset, byteLength, noAssert) {
|
|
10652
|
+
value *= 1;
|
|
10653
|
+
offset >>>= 0;
|
|
10654
|
+
if (!noAssert) {
|
|
10655
|
+
var limit = Math.pow(2, 8 * byteLength - 1);
|
|
10656
|
+
checkInt(this, value, offset, byteLength, limit - 1, -limit);
|
|
10657
|
+
}
|
|
10658
|
+
var i = 0;
|
|
10659
|
+
var mul = 1;
|
|
10660
|
+
var sub = 0;
|
|
10661
|
+
this[offset] = 0xFF & value;
|
|
10662
|
+
while(++i < byteLength && (mul *= 0x100)){
|
|
10663
|
+
if (value < 0 && 0 === sub && 0 !== this[offset + i - 1]) sub = 1;
|
|
10664
|
+
this[offset + i] = (value / mul | 0) - sub & 0xFF;
|
|
10665
|
+
}
|
|
10666
|
+
return offset + byteLength;
|
|
10667
|
+
};
|
|
10668
|
+
Buffer.prototype.writeIntBE = function(value, offset, byteLength, noAssert) {
|
|
10669
|
+
value *= 1;
|
|
10670
|
+
offset >>>= 0;
|
|
10671
|
+
if (!noAssert) {
|
|
10672
|
+
var limit = Math.pow(2, 8 * byteLength - 1);
|
|
10673
|
+
checkInt(this, value, offset, byteLength, limit - 1, -limit);
|
|
10674
|
+
}
|
|
10675
|
+
var i = byteLength - 1;
|
|
10676
|
+
var mul = 1;
|
|
10677
|
+
var sub = 0;
|
|
10678
|
+
this[offset + i] = 0xFF & value;
|
|
10679
|
+
while(--i >= 0 && (mul *= 0x100)){
|
|
10680
|
+
if (value < 0 && 0 === sub && 0 !== this[offset + i + 1]) sub = 1;
|
|
10681
|
+
this[offset + i] = (value / mul | 0) - sub & 0xFF;
|
|
10682
|
+
}
|
|
10683
|
+
return offset + byteLength;
|
|
10684
|
+
};
|
|
10685
|
+
Buffer.prototype.writeInt8 = function(value, offset, noAssert) {
|
|
10686
|
+
value *= 1;
|
|
10687
|
+
offset >>>= 0;
|
|
10688
|
+
if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -128);
|
|
10689
|
+
if (value < 0) value = 0xff + value + 1;
|
|
10690
|
+
this[offset] = 0xff & value;
|
|
10691
|
+
return offset + 1;
|
|
10692
|
+
};
|
|
10693
|
+
Buffer.prototype.writeInt16LE = function(value, offset, noAssert) {
|
|
10694
|
+
value *= 1;
|
|
10695
|
+
offset >>>= 0;
|
|
10696
|
+
if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -32768);
|
|
10697
|
+
this[offset] = 0xff & value;
|
|
10698
|
+
this[offset + 1] = value >>> 8;
|
|
10699
|
+
return offset + 2;
|
|
10700
|
+
};
|
|
10701
|
+
Buffer.prototype.writeInt16BE = function(value, offset, noAssert) {
|
|
10702
|
+
value *= 1;
|
|
10703
|
+
offset >>>= 0;
|
|
10704
|
+
if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -32768);
|
|
10705
|
+
this[offset] = value >>> 8;
|
|
10706
|
+
this[offset + 1] = 0xff & value;
|
|
10707
|
+
return offset + 2;
|
|
10708
|
+
};
|
|
10709
|
+
Buffer.prototype.writeInt32LE = function(value, offset, noAssert) {
|
|
10710
|
+
value *= 1;
|
|
10711
|
+
offset >>>= 0;
|
|
10712
|
+
if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -2147483648);
|
|
10713
|
+
this[offset] = 0xff & value;
|
|
10714
|
+
this[offset + 1] = value >>> 8;
|
|
10715
|
+
this[offset + 2] = value >>> 16;
|
|
10716
|
+
this[offset + 3] = value >>> 24;
|
|
10717
|
+
return offset + 4;
|
|
10718
|
+
};
|
|
10719
|
+
Buffer.prototype.writeInt32BE = function(value, offset, noAssert) {
|
|
10720
|
+
value *= 1;
|
|
10721
|
+
offset >>>= 0;
|
|
10722
|
+
if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -2147483648);
|
|
10723
|
+
if (value < 0) value = 0xffffffff + value + 1;
|
|
10724
|
+
this[offset] = value >>> 24;
|
|
10725
|
+
this[offset + 1] = value >>> 16;
|
|
10726
|
+
this[offset + 2] = value >>> 8;
|
|
10727
|
+
this[offset + 3] = 0xff & value;
|
|
10728
|
+
return offset + 4;
|
|
9494
10729
|
};
|
|
9495
|
-
|
|
9496
|
-
|
|
10730
|
+
function checkIEEE754(buf, value, offset, ext, max, min) {
|
|
10731
|
+
if (offset + ext > buf.length) throw new RangeError('Index out of range');
|
|
10732
|
+
if (offset < 0) throw new RangeError('Index out of range');
|
|
10733
|
+
}
|
|
10734
|
+
function writeFloat(buf, value, offset, littleEndian, noAssert) {
|
|
10735
|
+
value *= 1;
|
|
10736
|
+
offset >>>= 0;
|
|
10737
|
+
if (!noAssert) checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38);
|
|
10738
|
+
ieee754.write(buf, value, offset, littleEndian, 23, 4);
|
|
10739
|
+
return offset + 4;
|
|
10740
|
+
}
|
|
10741
|
+
Buffer.prototype.writeFloatLE = function(value, offset, noAssert) {
|
|
10742
|
+
return writeFloat(this, value, offset, true, noAssert);
|
|
9497
10743
|
};
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
callback = opts;
|
|
9501
|
-
opts = {};
|
|
9502
|
-
}
|
|
9503
|
-
return zlibBuffer(new Inflate(opts), buffer, callback);
|
|
10744
|
+
Buffer.prototype.writeFloatBE = function(value, offset, noAssert) {
|
|
10745
|
+
return writeFloat(this, value, offset, false, noAssert);
|
|
9504
10746
|
};
|
|
9505
|
-
|
|
9506
|
-
|
|
10747
|
+
function writeDouble(buf, value, offset, littleEndian, noAssert) {
|
|
10748
|
+
value *= 1;
|
|
10749
|
+
offset >>>= 0;
|
|
10750
|
+
if (!noAssert) checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157e+308);
|
|
10751
|
+
ieee754.write(buf, value, offset, littleEndian, 52, 8);
|
|
10752
|
+
return offset + 8;
|
|
10753
|
+
}
|
|
10754
|
+
Buffer.prototype.writeDoubleLE = function(value, offset, noAssert) {
|
|
10755
|
+
return writeDouble(this, value, offset, true, noAssert);
|
|
9507
10756
|
};
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
callback = opts;
|
|
9511
|
-
opts = {};
|
|
9512
|
-
}
|
|
9513
|
-
return zlibBuffer(new Gunzip(opts), buffer, callback);
|
|
10757
|
+
Buffer.prototype.writeDoubleBE = function(value, offset, noAssert) {
|
|
10758
|
+
return writeDouble(this, value, offset, false, noAssert);
|
|
9514
10759
|
};
|
|
9515
|
-
|
|
9516
|
-
|
|
10760
|
+
Buffer.prototype.copy = function(target, targetStart, start, end) {
|
|
10761
|
+
if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer');
|
|
10762
|
+
if (!start) start = 0;
|
|
10763
|
+
if (!end && 0 !== end) end = this.length;
|
|
10764
|
+
if (targetStart >= target.length) targetStart = target.length;
|
|
10765
|
+
if (!targetStart) targetStart = 0;
|
|
10766
|
+
if (end > 0 && end < start) end = start;
|
|
10767
|
+
if (end === start) return 0;
|
|
10768
|
+
if (0 === target.length || 0 === this.length) return 0;
|
|
10769
|
+
if (targetStart < 0) throw new RangeError('targetStart out of bounds');
|
|
10770
|
+
if (start < 0 || start >= this.length) throw new RangeError('Index out of range');
|
|
10771
|
+
if (end < 0) throw new RangeError('sourceEnd out of bounds');
|
|
10772
|
+
if (end > this.length) end = this.length;
|
|
10773
|
+
if (target.length - targetStart < end - start) end = target.length - targetStart + start;
|
|
10774
|
+
var len = end - start;
|
|
10775
|
+
if (this === target && 'function' == typeof Uint8Array.prototype.copyWithin) this.copyWithin(targetStart, start, end);
|
|
10776
|
+
else Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart);
|
|
10777
|
+
return len;
|
|
9517
10778
|
};
|
|
9518
|
-
|
|
9519
|
-
if ('
|
|
9520
|
-
|
|
9521
|
-
|
|
10779
|
+
Buffer.prototype.fill = function(val, start, end, encoding) {
|
|
10780
|
+
if ('string' == typeof val) {
|
|
10781
|
+
if ('string' == typeof start) {
|
|
10782
|
+
encoding = start;
|
|
10783
|
+
start = 0;
|
|
10784
|
+
end = this.length;
|
|
10785
|
+
} else if ('string' == typeof end) {
|
|
10786
|
+
encoding = end;
|
|
10787
|
+
end = this.length;
|
|
10788
|
+
}
|
|
10789
|
+
if (void 0 !== encoding && 'string' != typeof encoding) throw new TypeError('encoding must be a string');
|
|
10790
|
+
if ('string' == typeof encoding && !Buffer.isEncoding(encoding)) throw new TypeError('Unknown encoding: ' + encoding);
|
|
10791
|
+
if (1 === val.length) {
|
|
10792
|
+
var code = val.charCodeAt(0);
|
|
10793
|
+
if ('utf8' === encoding && code < 128 || 'latin1' === encoding) val = code;
|
|
10794
|
+
}
|
|
10795
|
+
} else if ('number' == typeof val) val &= 255;
|
|
10796
|
+
else if ('boolean' == typeof val) val = Number(val);
|
|
10797
|
+
if (start < 0 || this.length < start || this.length < end) throw new RangeError('Out of range index');
|
|
10798
|
+
if (end <= start) return this;
|
|
10799
|
+
start >>>= 0;
|
|
10800
|
+
end = void 0 === end ? this.length : end >>> 0;
|
|
10801
|
+
if (!val) val = 0;
|
|
10802
|
+
var i;
|
|
10803
|
+
if ('number' == typeof val) for(i = start; i < end; ++i)this[i] = val;
|
|
10804
|
+
else {
|
|
10805
|
+
var bytes = Buffer.isBuffer(val) ? val : Buffer.from(val, encoding);
|
|
10806
|
+
var len = bytes.length;
|
|
10807
|
+
if (0 === len) throw new TypeError('The value "' + val + '" is invalid for argument "value"');
|
|
10808
|
+
for(i = 0; i < end - start; ++i)this[i + start] = bytes[i % len];
|
|
9522
10809
|
}
|
|
9523
|
-
return
|
|
9524
|
-
};
|
|
9525
|
-
exports.inflateRawSync = function(buffer, opts) {
|
|
9526
|
-
return zlibBufferSync(new InflateRaw(opts), buffer);
|
|
10810
|
+
return this;
|
|
9527
10811
|
};
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
10812
|
+
var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
|
|
10813
|
+
function base64clean(str) {
|
|
10814
|
+
str = str.split('=')[0];
|
|
10815
|
+
str = str.trim().replace(INVALID_BASE64_RE, '');
|
|
10816
|
+
if (str.length < 2) return '';
|
|
10817
|
+
while(str.length % 4 !== 0)str += '=';
|
|
10818
|
+
return str;
|
|
10819
|
+
}
|
|
10820
|
+
function utf8ToBytes(string, units) {
|
|
10821
|
+
units = units || 1 / 0;
|
|
10822
|
+
var codePoint;
|
|
10823
|
+
var length = string.length;
|
|
10824
|
+
var leadSurrogate = null;
|
|
10825
|
+
var bytes = [];
|
|
10826
|
+
for(var i = 0; i < length; ++i){
|
|
10827
|
+
codePoint = string.charCodeAt(i);
|
|
10828
|
+
if (codePoint > 0xD7FF && codePoint < 0xE000) {
|
|
10829
|
+
if (!leadSurrogate) {
|
|
10830
|
+
if (codePoint > 0xDBFF) {
|
|
10831
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);
|
|
10832
|
+
continue;
|
|
10833
|
+
}
|
|
10834
|
+
if (i + 1 === length) {
|
|
10835
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);
|
|
10836
|
+
continue;
|
|
10837
|
+
}
|
|
10838
|
+
leadSurrogate = codePoint;
|
|
10839
|
+
continue;
|
|
10840
|
+
}
|
|
10841
|
+
if (codePoint < 0xDC00) {
|
|
10842
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);
|
|
10843
|
+
leadSurrogate = codePoint;
|
|
10844
|
+
continue;
|
|
10845
|
+
}
|
|
10846
|
+
codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000;
|
|
10847
|
+
} else if (leadSurrogate) {
|
|
10848
|
+
if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD);
|
|
9540
10849
|
}
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
9549
|
-
|
|
9550
|
-
|
|
9551
|
-
if (
|
|
9552
|
-
|
|
9553
|
-
|
|
9554
|
-
|
|
9555
|
-
callback(err, buf);
|
|
10850
|
+
leadSurrogate = null;
|
|
10851
|
+
if (codePoint < 0x80) {
|
|
10852
|
+
if ((units -= 1) < 0) break;
|
|
10853
|
+
bytes.push(codePoint);
|
|
10854
|
+
} else if (codePoint < 0x800) {
|
|
10855
|
+
if ((units -= 2) < 0) break;
|
|
10856
|
+
bytes.push(codePoint >> 0x6 | 0xC0, 0x3F & codePoint | 0x80);
|
|
10857
|
+
} else if (codePoint < 0x10000) {
|
|
10858
|
+
if ((units -= 3) < 0) break;
|
|
10859
|
+
bytes.push(codePoint >> 0xC | 0xE0, codePoint >> 0x6 & 0x3F | 0x80, 0x3F & codePoint | 0x80);
|
|
10860
|
+
} else if (codePoint < 0x110000) {
|
|
10861
|
+
if ((units -= 4) < 0) break;
|
|
10862
|
+
bytes.push(codePoint >> 0x12 | 0xF0, codePoint >> 0xC & 0x3F | 0x80, codePoint >> 0x6 & 0x3F | 0x80, 0x3F & codePoint | 0x80);
|
|
10863
|
+
} else throw new Error('Invalid code point');
|
|
9556
10864
|
}
|
|
10865
|
+
return bytes;
|
|
9557
10866
|
}
|
|
9558
|
-
function
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
return engine._processChunk(buffer, flushFlag);
|
|
9563
|
-
}
|
|
9564
|
-
function Deflate(opts) {
|
|
9565
|
-
if (!(this instanceof Deflate)) return new Deflate(opts);
|
|
9566
|
-
Zlib.call(this, opts, binding.DEFLATE);
|
|
9567
|
-
}
|
|
9568
|
-
function Inflate(opts) {
|
|
9569
|
-
if (!(this instanceof Inflate)) return new Inflate(opts);
|
|
9570
|
-
Zlib.call(this, opts, binding.INFLATE);
|
|
9571
|
-
}
|
|
9572
|
-
function Gzip(opts) {
|
|
9573
|
-
if (!(this instanceof Gzip)) return new Gzip(opts);
|
|
9574
|
-
Zlib.call(this, opts, binding.GZIP);
|
|
9575
|
-
}
|
|
9576
|
-
function Gunzip(opts) {
|
|
9577
|
-
if (!(this instanceof Gunzip)) return new Gunzip(opts);
|
|
9578
|
-
Zlib.call(this, opts, binding.GUNZIP);
|
|
9579
|
-
}
|
|
9580
|
-
function DeflateRaw(opts) {
|
|
9581
|
-
if (!(this instanceof DeflateRaw)) return new DeflateRaw(opts);
|
|
9582
|
-
Zlib.call(this, opts, binding.DEFLATERAW);
|
|
9583
|
-
}
|
|
9584
|
-
function InflateRaw(opts) {
|
|
9585
|
-
if (!(this instanceof InflateRaw)) return new InflateRaw(opts);
|
|
9586
|
-
Zlib.call(this, opts, binding.INFLATERAW);
|
|
10867
|
+
function asciiToBytes(str) {
|
|
10868
|
+
var byteArray = [];
|
|
10869
|
+
for(var i = 0; i < str.length; ++i)byteArray.push(0xFF & str.charCodeAt(i));
|
|
10870
|
+
return byteArray;
|
|
9587
10871
|
}
|
|
9588
|
-
function
|
|
9589
|
-
|
|
9590
|
-
|
|
10872
|
+
function utf16leToBytes(str, units) {
|
|
10873
|
+
var c, hi, lo;
|
|
10874
|
+
var byteArray = [];
|
|
10875
|
+
for(var i = 0; i < str.length; ++i){
|
|
10876
|
+
if ((units -= 2) < 0) break;
|
|
10877
|
+
c = str.charCodeAt(i);
|
|
10878
|
+
hi = c >> 8;
|
|
10879
|
+
lo = c % 256;
|
|
10880
|
+
byteArray.push(lo);
|
|
10881
|
+
byteArray.push(hi);
|
|
10882
|
+
}
|
|
10883
|
+
return byteArray;
|
|
9591
10884
|
}
|
|
9592
|
-
function
|
|
9593
|
-
return
|
|
10885
|
+
function base64ToBytes(str) {
|
|
10886
|
+
return base64.toByteArray(base64clean(str));
|
|
9594
10887
|
}
|
|
9595
|
-
function
|
|
9596
|
-
var
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
Transform.call(this, opts);
|
|
9600
|
-
if (opts.flush && !isValidFlushFlag(opts.flush)) throw new Error('Invalid flush flag: ' + opts.flush);
|
|
9601
|
-
if (opts.finishFlush && !isValidFlushFlag(opts.finishFlush)) throw new Error('Invalid flush flag: ' + opts.finishFlush);
|
|
9602
|
-
this._flushFlag = opts.flush || binding.Z_NO_FLUSH;
|
|
9603
|
-
this._finishFlushFlag = void 0 !== opts.finishFlush ? opts.finishFlush : binding.Z_FINISH;
|
|
9604
|
-
if (opts.chunkSize) {
|
|
9605
|
-
if (opts.chunkSize < exports.Z_MIN_CHUNK || opts.chunkSize > exports.Z_MAX_CHUNK) throw new Error('Invalid chunk size: ' + opts.chunkSize);
|
|
9606
|
-
}
|
|
9607
|
-
if (opts.windowBits) {
|
|
9608
|
-
if (opts.windowBits < exports.Z_MIN_WINDOWBITS || opts.windowBits > exports.Z_MAX_WINDOWBITS) throw new Error('Invalid windowBits: ' + opts.windowBits);
|
|
9609
|
-
}
|
|
9610
|
-
if (opts.level) {
|
|
9611
|
-
if (opts.level < exports.Z_MIN_LEVEL || opts.level > exports.Z_MAX_LEVEL) throw new Error('Invalid compression level: ' + opts.level);
|
|
9612
|
-
}
|
|
9613
|
-
if (opts.memLevel) {
|
|
9614
|
-
if (opts.memLevel < exports.Z_MIN_MEMLEVEL || opts.memLevel > exports.Z_MAX_MEMLEVEL) throw new Error('Invalid memLevel: ' + opts.memLevel);
|
|
9615
|
-
}
|
|
9616
|
-
if (opts.strategy) {
|
|
9617
|
-
if (opts.strategy != exports.Z_FILTERED && opts.strategy != exports.Z_HUFFMAN_ONLY && opts.strategy != exports.Z_RLE && opts.strategy != exports.Z_FIXED && opts.strategy != exports.Z_DEFAULT_STRATEGY) throw new Error('Invalid strategy: ' + opts.strategy);
|
|
9618
|
-
}
|
|
9619
|
-
if (opts.dictionary) {
|
|
9620
|
-
if (!Buffer.isBuffer(opts.dictionary)) throw new Error('Invalid dictionary: it should be a Buffer instance');
|
|
10888
|
+
function blitBuffer(src, dst, offset, length) {
|
|
10889
|
+
for(var i = 0; i < length; ++i){
|
|
10890
|
+
if (i + offset >= dst.length || i >= src.length) break;
|
|
10891
|
+
dst[i + offset] = src[i];
|
|
9621
10892
|
}
|
|
9622
|
-
|
|
9623
|
-
var self1 = this;
|
|
9624
|
-
this._hadError = false;
|
|
9625
|
-
this._handle.onerror = function(message, errno) {
|
|
9626
|
-
_close(self1);
|
|
9627
|
-
self1._hadError = true;
|
|
9628
|
-
var error = new Error(message);
|
|
9629
|
-
error.errno = errno;
|
|
9630
|
-
error.code = exports.codes[errno];
|
|
9631
|
-
self1.emit('error', error);
|
|
9632
|
-
};
|
|
9633
|
-
var level = exports.Z_DEFAULT_COMPRESSION;
|
|
9634
|
-
if ('number' == typeof opts.level) level = opts.level;
|
|
9635
|
-
var strategy = exports.Z_DEFAULT_STRATEGY;
|
|
9636
|
-
if ('number' == typeof opts.strategy) strategy = opts.strategy;
|
|
9637
|
-
this._handle.init(opts.windowBits || exports.Z_DEFAULT_WINDOWBITS, level, opts.memLevel || exports.Z_DEFAULT_MEMLEVEL, strategy, opts.dictionary);
|
|
9638
|
-
this._buffer = Buffer.allocUnsafe(this._chunkSize);
|
|
9639
|
-
this._offset = 0;
|
|
9640
|
-
this._level = level;
|
|
9641
|
-
this._strategy = strategy;
|
|
9642
|
-
this.once('end', this.close);
|
|
9643
|
-
Object.defineProperty(this, '_closed', {
|
|
9644
|
-
get: function() {
|
|
9645
|
-
return !_this._handle;
|
|
9646
|
-
},
|
|
9647
|
-
configurable: true,
|
|
9648
|
-
enumerable: true
|
|
9649
|
-
});
|
|
10893
|
+
return i;
|
|
9650
10894
|
}
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
if (level < exports.Z_MIN_LEVEL || level > exports.Z_MAX_LEVEL) throw new RangeError('Invalid compression level: ' + level);
|
|
9654
|
-
if (strategy != exports.Z_FILTERED && strategy != exports.Z_HUFFMAN_ONLY && strategy != exports.Z_RLE && strategy != exports.Z_FIXED && strategy != exports.Z_DEFAULT_STRATEGY) throw new TypeError('Invalid strategy: ' + strategy);
|
|
9655
|
-
if (this._level !== level || this._strategy !== strategy) {
|
|
9656
|
-
var self1 = this;
|
|
9657
|
-
this.flush(binding.Z_SYNC_FLUSH, function() {
|
|
9658
|
-
assert(self1._handle, 'zlib binding closed');
|
|
9659
|
-
self1._handle.params(level, strategy);
|
|
9660
|
-
if (!self1._hadError) {
|
|
9661
|
-
self1._level = level;
|
|
9662
|
-
self1._strategy = strategy;
|
|
9663
|
-
if (callback) callback();
|
|
9664
|
-
}
|
|
9665
|
-
});
|
|
9666
|
-
} else process.nextTick(callback);
|
|
9667
|
-
};
|
|
9668
|
-
Zlib.prototype.reset = function() {
|
|
9669
|
-
assert(this._handle, 'zlib binding closed');
|
|
9670
|
-
return this._handle.reset();
|
|
9671
|
-
};
|
|
9672
|
-
Zlib.prototype._flush = function(callback) {
|
|
9673
|
-
this._transform(Buffer.alloc(0), '', callback);
|
|
9674
|
-
};
|
|
9675
|
-
Zlib.prototype.flush = function(kind, callback) {
|
|
9676
|
-
var _this2 = this;
|
|
9677
|
-
var ws = this._writableState;
|
|
9678
|
-
if ('function' == typeof kind || void 0 === kind && !callback) {
|
|
9679
|
-
callback = kind;
|
|
9680
|
-
kind = binding.Z_FULL_FLUSH;
|
|
9681
|
-
}
|
|
9682
|
-
if (ws.ended) {
|
|
9683
|
-
if (callback) process.nextTick(callback);
|
|
9684
|
-
} else if (ws.ending) {
|
|
9685
|
-
if (callback) this.once('end', callback);
|
|
9686
|
-
} else if (ws.needDrain) {
|
|
9687
|
-
if (callback) this.once('drain', function() {
|
|
9688
|
-
return _this2.flush(kind, callback);
|
|
9689
|
-
});
|
|
9690
|
-
} else {
|
|
9691
|
-
this._flushFlag = kind;
|
|
9692
|
-
this.write(Buffer.alloc(0), '', callback);
|
|
9693
|
-
}
|
|
9694
|
-
};
|
|
9695
|
-
Zlib.prototype.close = function(callback) {
|
|
9696
|
-
_close(this, callback);
|
|
9697
|
-
process.nextTick(emitCloseNT, this);
|
|
9698
|
-
};
|
|
9699
|
-
function _close(engine, callback) {
|
|
9700
|
-
if (callback) process.nextTick(callback);
|
|
9701
|
-
if (!engine._handle) return;
|
|
9702
|
-
engine._handle.close();
|
|
9703
|
-
engine._handle = null;
|
|
10895
|
+
function isInstance(obj, type) {
|
|
10896
|
+
return obj instanceof type || null != obj && null != obj.constructor && null != obj.constructor.name && obj.constructor.name === type.name;
|
|
9704
10897
|
}
|
|
9705
|
-
function
|
|
9706
|
-
|
|
10898
|
+
function numberIsNaN(obj) {
|
|
10899
|
+
return obj !== obj;
|
|
9707
10900
|
}
|
|
9708
|
-
|
|
9709
|
-
var
|
|
9710
|
-
var
|
|
9711
|
-
var
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
if (!this._handle) return cb(new Error('zlib binding closed'));
|
|
9715
|
-
if (last) flushFlag = this._finishFlushFlag;
|
|
9716
|
-
else {
|
|
9717
|
-
flushFlag = this._flushFlag;
|
|
9718
|
-
if (chunk.length >= ws.length) this._flushFlag = this._opts.flush || binding.Z_NO_FLUSH;
|
|
9719
|
-
}
|
|
9720
|
-
this._processChunk(chunk, flushFlag, cb);
|
|
9721
|
-
};
|
|
9722
|
-
Zlib.prototype._processChunk = function(chunk, flushFlag, cb) {
|
|
9723
|
-
var availInBefore = chunk && chunk.length;
|
|
9724
|
-
var availOutBefore = this._chunkSize - this._offset;
|
|
9725
|
-
var inOff = 0;
|
|
9726
|
-
var self1 = this;
|
|
9727
|
-
var async = 'function' == typeof cb;
|
|
9728
|
-
if (!async) {
|
|
9729
|
-
var buffers = [];
|
|
9730
|
-
var nread = 0;
|
|
9731
|
-
var error;
|
|
9732
|
-
this.on('error', function(er) {
|
|
9733
|
-
error = er;
|
|
9734
|
-
});
|
|
9735
|
-
assert(this._handle, 'zlib binding closed');
|
|
9736
|
-
do var res = this._handle.writeSync(flushFlag, chunk, inOff, availInBefore, this._buffer, this._offset, availOutBefore);
|
|
9737
|
-
while (!this._hadError && callback(res[0], res[1]))
|
|
9738
|
-
if (this._hadError) throw error;
|
|
9739
|
-
if (nread >= kMaxLength) {
|
|
9740
|
-
_close(this);
|
|
9741
|
-
throw new RangeError(kRangeErrorMessage);
|
|
9742
|
-
}
|
|
9743
|
-
var buf = Buffer.concat(buffers, nread);
|
|
9744
|
-
_close(this);
|
|
9745
|
-
return buf;
|
|
9746
|
-
}
|
|
9747
|
-
assert(this._handle, 'zlib binding closed');
|
|
9748
|
-
var req = this._handle.write(flushFlag, chunk, inOff, availInBefore, this._buffer, this._offset, availOutBefore);
|
|
9749
|
-
req.buffer = chunk;
|
|
9750
|
-
req.callback = callback;
|
|
9751
|
-
function callback(availInAfter, availOutAfter) {
|
|
9752
|
-
if (this) {
|
|
9753
|
-
this.buffer = null;
|
|
9754
|
-
this.callback = null;
|
|
9755
|
-
}
|
|
9756
|
-
if (self1._hadError) return;
|
|
9757
|
-
var have = availOutBefore - availOutAfter;
|
|
9758
|
-
assert(have >= 0, 'have should not go down');
|
|
9759
|
-
if (have > 0) {
|
|
9760
|
-
var out = self1._buffer.slice(self1._offset, self1._offset + have);
|
|
9761
|
-
self1._offset += have;
|
|
9762
|
-
if (async) self1.push(out);
|
|
9763
|
-
else {
|
|
9764
|
-
buffers.push(out);
|
|
9765
|
-
nread += out.length;
|
|
9766
|
-
}
|
|
9767
|
-
}
|
|
9768
|
-
if (0 === availOutAfter || self1._offset >= self1._chunkSize) {
|
|
9769
|
-
availOutBefore = self1._chunkSize;
|
|
9770
|
-
self1._offset = 0;
|
|
9771
|
-
self1._buffer = Buffer.allocUnsafe(self1._chunkSize);
|
|
9772
|
-
}
|
|
9773
|
-
if (0 === availOutAfter) {
|
|
9774
|
-
inOff += availInBefore - availInAfter;
|
|
9775
|
-
availInBefore = availInAfter;
|
|
9776
|
-
if (!async) return true;
|
|
9777
|
-
var newReq = self1._handle.write(flushFlag, chunk, inOff, availInBefore, self1._buffer, self1._offset, self1._chunkSize);
|
|
9778
|
-
newReq.callback = callback;
|
|
9779
|
-
newReq.buffer = chunk;
|
|
9780
|
-
return;
|
|
9781
|
-
}
|
|
9782
|
-
if (!async) return false;
|
|
9783
|
-
cb();
|
|
10901
|
+
var hexSliceLookupTable = function() {
|
|
10902
|
+
var alphabet = '0123456789abcdef';
|
|
10903
|
+
var table = new Array(256);
|
|
10904
|
+
for(var i = 0; i < 16; ++i){
|
|
10905
|
+
var i16 = 16 * i;
|
|
10906
|
+
for(var j = 0; j < 16; ++j)table[i16 + j] = alphabet[i] + alphabet[j];
|
|
9784
10907
|
}
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
util.inherits(Inflate, Zlib);
|
|
9788
|
-
util.inherits(Gzip, Zlib);
|
|
9789
|
-
util.inherits(Gunzip, Zlib);
|
|
9790
|
-
util.inherits(DeflateRaw, Zlib);
|
|
9791
|
-
util.inherits(InflateRaw, Zlib);
|
|
9792
|
-
util.inherits(Unzip, Zlib);
|
|
9793
|
-
},
|
|
9794
|
-
"../../node_modules/.pnpm/buffer-xor@1.0.3/node_modules/buffer-xor/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
9795
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
9796
|
-
module.exports = function(a, b) {
|
|
9797
|
-
var length = Math.min(a.length, b.length);
|
|
9798
|
-
var buffer = new Buffer(length);
|
|
9799
|
-
for(var i = 0; i < length; ++i)buffer[i] = a[i] ^ b[i];
|
|
9800
|
-
return buffer;
|
|
9801
|
-
};
|
|
10908
|
+
return table;
|
|
10909
|
+
}();
|
|
9802
10910
|
},
|
|
9803
10911
|
"../../node_modules/.pnpm/builtin-status-codes@3.0.0/node_modules/builtin-status-codes/browser.js" (module) {
|
|
9804
10912
|
module.exports = {
|
|
@@ -10070,13 +11178,13 @@ __webpack_require__.add({
|
|
|
10070
11178
|
return null === arg || 'boolean' == typeof arg || 'number' == typeof arg || 'string' == typeof arg || 'symbol' == typeof arg || void 0 === arg;
|
|
10071
11179
|
}
|
|
10072
11180
|
exports.isPrimitive = isPrimitive;
|
|
10073
|
-
exports.isBuffer = __webpack_require__("
|
|
11181
|
+
exports.isBuffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js").Buffer.isBuffer;
|
|
10074
11182
|
function objectToString(o) {
|
|
10075
11183
|
return Object.prototype.toString.call(o);
|
|
10076
11184
|
}
|
|
10077
11185
|
},
|
|
10078
11186
|
"../../node_modules/.pnpm/create-ecdh@4.0.4/node_modules/create-ecdh/browser.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
10079
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
11187
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
10080
11188
|
var elliptic = __webpack_require__("../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/lib/elliptic.js");
|
|
10081
11189
|
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
10082
11190
|
module.exports = function(curve) {
|
|
@@ -11461,7 +12569,7 @@ __webpack_require__.add({
|
|
|
11461
12569
|
};
|
|
11462
12570
|
},
|
|
11463
12571
|
"../../node_modules/.pnpm/diffie-hellman@5.0.3/node_modules/diffie-hellman/browser.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
11464
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
12572
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
11465
12573
|
var generatePrime = __webpack_require__("../../node_modules/.pnpm/diffie-hellman@5.0.3/node_modules/diffie-hellman/lib/generatePrime.js");
|
|
11466
12574
|
var primes = __webpack_require__("../../node_modules/.pnpm/diffie-hellman@5.0.3/node_modules/diffie-hellman/lib/primes.json");
|
|
11467
12575
|
var DH = __webpack_require__("../../node_modules/.pnpm/diffie-hellman@5.0.3/node_modules/diffie-hellman/lib/dh.js");
|
|
@@ -11491,7 +12599,7 @@ __webpack_require__.add({
|
|
|
11491
12599
|
exports.createDiffieHellman = exports.DiffieHellman = createDiffieHellman;
|
|
11492
12600
|
},
|
|
11493
12601
|
"../../node_modules/.pnpm/diffie-hellman@5.0.3/node_modules/diffie-hellman/lib/dh.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
11494
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
12602
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
11495
12603
|
var BN = __webpack_require__("../../node_modules/.pnpm/bn.js@4.12.3/node_modules/bn.js/lib/bn.js");
|
|
11496
12604
|
var MillerRabin = __webpack_require__("../../node_modules/.pnpm/miller-rabin@4.0.1/node_modules/miller-rabin/lib/mr.js");
|
|
11497
12605
|
var millerRabin = new MillerRabin();
|
|
@@ -14617,7 +15725,7 @@ __webpack_require__.add({
|
|
|
14617
15725
|
utils.intFromLE = intFromLE;
|
|
14618
15726
|
},
|
|
14619
15727
|
"../../node_modules/.pnpm/enhanced-resolve@5.21.3/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
14620
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
15728
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
14621
15729
|
const { nextTick } = __webpack_require__("../../node_modules/.pnpm/enhanced-resolve@5.21.3/node_modules/enhanced-resolve/lib/util/process-browser.js");
|
|
14622
15730
|
const dirname = (path)=>{
|
|
14623
15731
|
let idx = path.length - 1;
|
|
@@ -18357,6 +19465,76 @@ __webpack_require__.add({
|
|
|
18357
19465
|
return params;
|
|
18358
19466
|
}
|
|
18359
19467
|
},
|
|
19468
|
+
"../../node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js" (__unused_rspack_module, exports) {
|
|
19469
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ exports.read = function(buffer, offset, isLE, mLen, nBytes) {
|
|
19470
|
+
var e, m;
|
|
19471
|
+
var eLen = 8 * nBytes - mLen - 1;
|
|
19472
|
+
var eMax = (1 << eLen) - 1;
|
|
19473
|
+
var eBias = eMax >> 1;
|
|
19474
|
+
var nBits = -7;
|
|
19475
|
+
var i = isLE ? nBytes - 1 : 0;
|
|
19476
|
+
var d = isLE ? -1 : 1;
|
|
19477
|
+
var s = buffer[offset + i];
|
|
19478
|
+
i += d;
|
|
19479
|
+
e = s & (1 << -nBits) - 1;
|
|
19480
|
+
s >>= -nBits;
|
|
19481
|
+
nBits += eLen;
|
|
19482
|
+
for(; nBits > 0; e = 256 * e + buffer[offset + i], i += d, nBits -= 8);
|
|
19483
|
+
m = e & (1 << -nBits) - 1;
|
|
19484
|
+
e >>= -nBits;
|
|
19485
|
+
nBits += mLen;
|
|
19486
|
+
for(; nBits > 0; m = 256 * m + buffer[offset + i], i += d, nBits -= 8);
|
|
19487
|
+
if (0 === e) e = 1 - eBias;
|
|
19488
|
+
else {
|
|
19489
|
+
if (e === eMax) return m ? NaN : 1 / 0 * (s ? -1 : 1);
|
|
19490
|
+
m += Math.pow(2, mLen);
|
|
19491
|
+
e -= eBias;
|
|
19492
|
+
}
|
|
19493
|
+
return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
|
|
19494
|
+
};
|
|
19495
|
+
exports.write = function(buffer, value, offset, isLE, mLen, nBytes) {
|
|
19496
|
+
var e, m, c;
|
|
19497
|
+
var eLen = 8 * nBytes - mLen - 1;
|
|
19498
|
+
var eMax = (1 << eLen) - 1;
|
|
19499
|
+
var eBias = eMax >> 1;
|
|
19500
|
+
var rt = 23 === mLen ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
|
|
19501
|
+
var i = isLE ? 0 : nBytes - 1;
|
|
19502
|
+
var d = isLE ? 1 : -1;
|
|
19503
|
+
var s = value < 0 || 0 === value && 1 / value < 0 ? 1 : 0;
|
|
19504
|
+
value = Math.abs(value);
|
|
19505
|
+
if (isNaN(value) || value === 1 / 0) {
|
|
19506
|
+
m = isNaN(value) ? 1 : 0;
|
|
19507
|
+
e = eMax;
|
|
19508
|
+
} else {
|
|
19509
|
+
e = Math.floor(Math.log(value) / Math.LN2);
|
|
19510
|
+
if (value * (c = Math.pow(2, -e)) < 1) {
|
|
19511
|
+
e--;
|
|
19512
|
+
c *= 2;
|
|
19513
|
+
}
|
|
19514
|
+
if (e + eBias >= 1) value += rt / c;
|
|
19515
|
+
else value += rt * Math.pow(2, 1 - eBias);
|
|
19516
|
+
if (value * c >= 2) {
|
|
19517
|
+
e++;
|
|
19518
|
+
c /= 2;
|
|
19519
|
+
}
|
|
19520
|
+
if (e + eBias >= eMax) {
|
|
19521
|
+
m = 0;
|
|
19522
|
+
e = eMax;
|
|
19523
|
+
} else if (e + eBias >= 1) {
|
|
19524
|
+
m = (value * c - 1) * Math.pow(2, mLen);
|
|
19525
|
+
e += eBias;
|
|
19526
|
+
} else {
|
|
19527
|
+
m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
|
|
19528
|
+
e = 0;
|
|
19529
|
+
}
|
|
19530
|
+
}
|
|
19531
|
+
for(; mLen >= 8; buffer[offset + i] = 0xff & m, i += d, m /= 256, mLen -= 8);
|
|
19532
|
+
e = e << mLen | m;
|
|
19533
|
+
eLen += mLen;
|
|
19534
|
+
for(; eLen > 0; buffer[offset + i] = 0xff & e, i += d, e /= 256, eLen -= 8);
|
|
19535
|
+
buffer[offset + i - d] |= 128 * s;
|
|
19536
|
+
};
|
|
19537
|
+
},
|
|
18360
19538
|
"../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js" (module) {
|
|
18361
19539
|
if ('function' == typeof Object.create) module.exports = function(ctor, superCtor) {
|
|
18362
19540
|
if (superCtor) {
|
|
@@ -26340,7 +27518,7 @@ __webpack_require__.add({
|
|
|
26340
27518
|
return emitter.listeners(type).length;
|
|
26341
27519
|
};
|
|
26342
27520
|
var Stream = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/stream-browser.js");
|
|
26343
|
-
var Buffer = __webpack_require__("
|
|
27521
|
+
var Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js").Buffer;
|
|
26344
27522
|
var OurUint8Array = (void 0 !== __webpack_require__.g ? __webpack_require__.g : "u" > typeof window ? window : "u" > typeof self ? self : {}).Uint8Array || function() {};
|
|
26345
27523
|
function _uint8ArrayToBuffer(chunk) {
|
|
26346
27524
|
return Buffer.from(chunk);
|
|
@@ -27089,7 +28267,7 @@ __webpack_require__.add({
|
|
|
27089
28267
|
deprecate: __webpack_require__("../../node_modules/.pnpm/util-deprecate@1.0.2/node_modules/util-deprecate/browser.js")
|
|
27090
28268
|
};
|
|
27091
28269
|
var Stream = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/stream-browser.js");
|
|
27092
|
-
var Buffer = __webpack_require__("
|
|
28270
|
+
var Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js").Buffer;
|
|
27093
28271
|
var OurUint8Array = (void 0 !== __webpack_require__.g ? __webpack_require__.g : "u" > typeof window ? window : "u" > typeof self ? self : {}).Uint8Array || function() {};
|
|
27094
28272
|
function _uint8ArrayToBuffer(chunk) {
|
|
27095
28273
|
return Buffer.from(chunk);
|
|
@@ -27724,7 +28902,7 @@ __webpack_require__.add({
|
|
|
27724
28902
|
}
|
|
27725
28903
|
return ("string" === hint ? String : Number)(input);
|
|
27726
28904
|
}
|
|
27727
|
-
var _require = __webpack_require__("
|
|
28905
|
+
var _require = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js"), Buffer = _require.Buffer;
|
|
27728
28906
|
var _require2 = __webpack_require__("?c028"), inspect = _require2.inspect;
|
|
27729
28907
|
var custom = inspect && inspect.custom || 'inspect';
|
|
27730
28908
|
function copyBuffer(src, target, offset) {
|
|
@@ -28164,7 +29342,7 @@ __webpack_require__.add({
|
|
|
28164
29342
|
exports.pipeline = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/lib/internal/streams/pipeline.js");
|
|
28165
29343
|
},
|
|
28166
29344
|
"../../node_modules/.pnpm/ripemd160@2.0.3/node_modules/ripemd160/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
28167
|
-
var Buffer = __webpack_require__("
|
|
29345
|
+
var Buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js").Buffer;
|
|
28168
29346
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
28169
29347
|
var HashBase = __webpack_require__("../../node_modules/.pnpm/hash-base@3.1.2/node_modules/hash-base/index.js");
|
|
28170
29348
|
var ARRAY16 = new Array(16);
|
|
@@ -28610,7 +29788,7 @@ __webpack_require__.add({
|
|
|
28610
29788
|
module.exports = RIPEMD160;
|
|
28611
29789
|
},
|
|
28612
29790
|
"../../node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js" (module, exports, __webpack_require__) {
|
|
28613
|
-
var buffer = __webpack_require__("
|
|
29791
|
+
var buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js");
|
|
28614
29792
|
var Buffer = buffer.Buffer;
|
|
28615
29793
|
function copyProps(src, dst) {
|
|
28616
29794
|
for(var key in src)dst[key] = src[key];
|
|
@@ -28646,7 +29824,7 @@ __webpack_require__.add({
|
|
|
28646
29824
|
};
|
|
28647
29825
|
},
|
|
28648
29826
|
"../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js" (module, exports, __webpack_require__) {
|
|
28649
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ var buffer = __webpack_require__("
|
|
29827
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ var buffer = __webpack_require__("../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js");
|
|
28650
29828
|
var Buffer = buffer.Buffer;
|
|
28651
29829
|
function copyProps(src, dst) {
|
|
28652
29830
|
for(var key in src)dst[key] = src[key];
|
|
@@ -29850,7 +31028,7 @@ __webpack_require__.add({
|
|
|
29850
31028
|
xhr = null;
|
|
29851
31029
|
},
|
|
29852
31030
|
"../../node_modules/.pnpm/stream-http@3.2.0/node_modules/stream-http/lib/request.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
29853
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
31031
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
29854
31032
|
var process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
29855
31033
|
var capability = __webpack_require__("../../node_modules/.pnpm/stream-http@3.2.0/node_modules/stream-http/lib/capability.js");
|
|
29856
31034
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
@@ -30102,7 +31280,7 @@ __webpack_require__.add({
|
|
|
30102
31280
|
},
|
|
30103
31281
|
"../../node_modules/.pnpm/stream-http@3.2.0/node_modules/stream-http/lib/response.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
30104
31282
|
var process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
|
|
30105
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
31283
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
30106
31284
|
var capability = __webpack_require__("../../node_modules/.pnpm/stream-http@3.2.0/node_modules/stream-http/lib/capability.js");
|
|
30107
31285
|
var inherits = __webpack_require__("../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js");
|
|
30108
31286
|
var stream = __webpack_require__("../../node_modules/.pnpm/readable-stream@3.6.2/node_modules/readable-stream/readable-browser.js");
|
|
@@ -33242,7 +34420,7 @@ __webpack_require__.add({
|
|
|
33242
34420
|
};
|
|
33243
34421
|
},
|
|
33244
34422
|
"../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/CachedSource.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
33245
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
34423
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
33246
34424
|
const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
|
|
33247
34425
|
const streamAndGetSourceAndMap = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamAndGetSourceAndMap.js");
|
|
33248
34426
|
const streamChunksOfRawSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunksOfRawSource.js");
|
|
@@ -33467,7 +34645,7 @@ __webpack_require__.add({
|
|
|
33467
34645
|
module.exports = CompatSource;
|
|
33468
34646
|
},
|
|
33469
34647
|
"../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/ConcatSource.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
33470
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
34648
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
33471
34649
|
const RawSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/RawSource.js");
|
|
33472
34650
|
const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
|
|
33473
34651
|
const { getMap, getSourceAndMap } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js");
|
|
@@ -33643,7 +34821,7 @@ __webpack_require__.add({
|
|
|
33643
34821
|
module.exports = ConcatSource;
|
|
33644
34822
|
},
|
|
33645
34823
|
"../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/OriginalSource.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
33646
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
34824
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
33647
34825
|
const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
|
|
33648
34826
|
const { getMap, getSourceAndMap } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js");
|
|
33649
34827
|
const getGeneratedSourceInfo = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getGeneratedSourceInfo.js");
|
|
@@ -33744,7 +34922,7 @@ __webpack_require__.add({
|
|
|
33744
34922
|
module.exports = OriginalSource;
|
|
33745
34923
|
},
|
|
33746
34924
|
"../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/PrefixSource.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
33747
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
34925
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
33748
34926
|
const RawSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/RawSource.js");
|
|
33749
34927
|
const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
|
|
33750
34928
|
const { getMap, getSourceAndMap } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js");
|
|
@@ -33803,7 +34981,7 @@ __webpack_require__.add({
|
|
|
33803
34981
|
module.exports = PrefixSource;
|
|
33804
34982
|
},
|
|
33805
34983
|
"../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/RawSource.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
33806
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
34984
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
33807
34985
|
const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
|
|
33808
34986
|
const streamChunksOfRawSource = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunksOfRawSource.js");
|
|
33809
34987
|
const { internString, isDualStringBufferCachingEnabled } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/stringBufferUtils.js");
|
|
@@ -34161,7 +35339,7 @@ __webpack_require__.add({
|
|
|
34161
35339
|
module.exports = SizeOnlySource;
|
|
34162
35340
|
},
|
|
34163
35341
|
"../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
34164
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
35342
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
34165
35343
|
class Source {
|
|
34166
35344
|
source() {
|
|
34167
35345
|
throw new Error("Abstract");
|
|
@@ -34190,7 +35368,7 @@ __webpack_require__.add({
|
|
|
34190
35368
|
module.exports = Source;
|
|
34191
35369
|
},
|
|
34192
35370
|
"../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/SourceMapSource.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
34193
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
35371
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
34194
35372
|
const Source = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/Source.js");
|
|
34195
35373
|
const { getMap, getSourceAndMap } = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/getFromStreamChunks.js");
|
|
34196
35374
|
const streamChunksOfCombinedSourceMap = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/helpers/streamChunksOfCombinedSourceMap.js");
|
|
@@ -35318,35 +36496,34 @@ __webpack_require__.add({
|
|
|
35318
36496
|
}
|
|
35319
36497
|
},
|
|
35320
36498
|
"./src/browser/buffer.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
35321
|
-
__webpack_require__.
|
|
36499
|
+
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.1.4_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0/node_modules/@napi-rs/wasm-runtime/dist/fs.js");
|
|
35322
36500
|
__webpack_require__.d(__webpack_exports__, {
|
|
35323
|
-
|
|
36501
|
+
h: ()=>_napi_rs_wasm_runtime_fs__rspack_import_0.hp
|
|
35324
36502
|
});
|
|
35325
|
-
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.1.4_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0/node_modules/@napi-rs/wasm-runtime/dist/fs.js");
|
|
35326
36503
|
},
|
|
35327
36504
|
"./src/browser/fs.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
35328
36505
|
__webpack_require__.r(__webpack_exports__);
|
|
35329
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
35330
|
-
default: ()=>__rspack_default_export,
|
|
35331
|
-
existsSync: ()=>existsSync,
|
|
35332
|
-
fs: ()=>fs,
|
|
35333
|
-
lstat: ()=>lstat,
|
|
35334
|
-
memfs: ()=>memfs,
|
|
35335
|
-
readFileSync: ()=>readFileSync,
|
|
35336
|
-
readdir: ()=>readdir,
|
|
35337
|
-
readdirSync: ()=>readdirSync,
|
|
35338
|
-
volume: ()=>volume,
|
|
35339
|
-
watch: ()=>watch
|
|
35340
|
-
});
|
|
35341
36506
|
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.1.4_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0/node_modules/@napi-rs/wasm-runtime/dist/fs.js");
|
|
35342
|
-
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding?
|
|
36507
|
+
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding?1a47");
|
|
35343
36508
|
const fs = _rspack_binding__rspack_import_1.__fs;
|
|
35344
36509
|
const volume = _rspack_binding__rspack_import_1.__volume;
|
|
35345
36510
|
const memfs = _napi_rs_wasm_runtime_fs__rspack_import_0.tO;
|
|
35346
36511
|
const { readFileSync, readdirSync, lstat, existsSync, readdir, watch } = fs;
|
|
35347
36512
|
const __rspack_default_export = fs;
|
|
36513
|
+
__webpack_require__.d(__webpack_exports__, {}, {
|
|
36514
|
+
default: __rspack_default_export,
|
|
36515
|
+
existsSync: existsSync,
|
|
36516
|
+
fs: fs,
|
|
36517
|
+
lstat: lstat,
|
|
36518
|
+
memfs: memfs,
|
|
36519
|
+
readFileSync: readFileSync,
|
|
36520
|
+
readdir: readdir,
|
|
36521
|
+
readdirSync: readdirSync,
|
|
36522
|
+
volume: volume,
|
|
36523
|
+
watch: watch
|
|
36524
|
+
});
|
|
35348
36525
|
},
|
|
35349
|
-
"@rspack/binding?
|
|
36526
|
+
"@rspack/binding?1a47" (module) {
|
|
35350
36527
|
module.exports = __rspack_external__rspack_wasi_browser_js_bd433424;
|
|
35351
36528
|
},
|
|
35352
36529
|
"?7763" () {},
|
|
@@ -35367,10 +36544,6 @@ __webpack_require__.add({
|
|
|
35367
36544
|
};
|
|
35368
36545
|
},
|
|
35369
36546
|
"../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.1.4_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0/node_modules/@napi-rs/wasm-runtime/dist/fs.js" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
35370
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
35371
|
-
hp: ()=>Buffer,
|
|
35372
|
-
tO: ()=>memfs
|
|
35373
|
-
});
|
|
35374
36547
|
function _mergeNamespaces(n, m) {
|
|
35375
36548
|
m.forEach(function(e) {
|
|
35376
36549
|
e && 'string' != typeof e && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
@@ -53947,21 +55120,26 @@ __webpack_require__.add({
|
|
|
53947
55120
|
libExports
|
|
53948
55121
|
]);
|
|
53949
55122
|
const { createFsFromVolume, Volume, fs, memfs } = memfsExported;
|
|
55123
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
55124
|
+
hp: ()=>Buffer
|
|
55125
|
+
}, {
|
|
55126
|
+
tO: memfs
|
|
55127
|
+
});
|
|
53950
55128
|
},
|
|
53951
55129
|
"../../node_modules/.pnpm/browserify-aes@1.2.0/node_modules/browserify-aes/modes/list.json" (module) {
|
|
53952
|
-
module.exports = JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}');
|
|
55130
|
+
module.exports = /*#__PURE__*/ JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}');
|
|
53953
55131
|
},
|
|
53954
55132
|
"../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/algorithms.json" (module) {
|
|
53955
|
-
module.exports = JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}');
|
|
55133
|
+
module.exports = /*#__PURE__*/ JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}');
|
|
53956
55134
|
},
|
|
53957
55135
|
"../../node_modules/.pnpm/browserify-sign@4.2.5/node_modules/browserify-sign/browser/curves.json" (module) {
|
|
53958
|
-
module.exports = JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}');
|
|
55136
|
+
module.exports = /*#__PURE__*/ JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}');
|
|
53959
55137
|
},
|
|
53960
55138
|
"../../node_modules/.pnpm/constants-browserify@1.0.0/node_modules/constants-browserify/constants.json" (module) {
|
|
53961
|
-
module.exports = JSON.parse('{"O_RDONLY":0,"O_WRONLY":1,"O_RDWR":2,"S_IFMT":61440,"S_IFREG":32768,"S_IFDIR":16384,"S_IFCHR":8192,"S_IFBLK":24576,"S_IFIFO":4096,"S_IFLNK":40960,"S_IFSOCK":49152,"O_CREAT":512,"O_EXCL":2048,"O_NOCTTY":131072,"O_TRUNC":1024,"O_APPEND":8,"O_DIRECTORY":1048576,"O_NOFOLLOW":256,"O_SYNC":128,"O_SYMLINK":2097152,"O_NONBLOCK":4,"S_IRWXU":448,"S_IRUSR":256,"S_IWUSR":128,"S_IXUSR":64,"S_IRWXG":56,"S_IRGRP":32,"S_IWGRP":16,"S_IXGRP":8,"S_IRWXO":7,"S_IROTH":4,"S_IWOTH":2,"S_IXOTH":1,"E2BIG":7,"EACCES":13,"EADDRINUSE":48,"EADDRNOTAVAIL":49,"EAFNOSUPPORT":47,"EAGAIN":35,"EALREADY":37,"EBADF":9,"EBADMSG":94,"EBUSY":16,"ECANCELED":89,"ECHILD":10,"ECONNABORTED":53,"ECONNREFUSED":61,"ECONNRESET":54,"EDEADLK":11,"EDESTADDRREQ":39,"EDOM":33,"EDQUOT":69,"EEXIST":17,"EFAULT":14,"EFBIG":27,"EHOSTUNREACH":65,"EIDRM":90,"EILSEQ":92,"EINPROGRESS":36,"EINTR":4,"EINVAL":22,"EIO":5,"EISCONN":56,"EISDIR":21,"ELOOP":62,"EMFILE":24,"EMLINK":31,"EMSGSIZE":40,"EMULTIHOP":95,"ENAMETOOLONG":63,"ENETDOWN":50,"ENETRESET":52,"ENETUNREACH":51,"ENFILE":23,"ENOBUFS":55,"ENODATA":96,"ENODEV":19,"ENOENT":2,"ENOEXEC":8,"ENOLCK":77,"ENOLINK":97,"ENOMEM":12,"ENOMSG":91,"ENOPROTOOPT":42,"ENOSPC":28,"ENOSR":98,"ENOSTR":99,"ENOSYS":78,"ENOTCONN":57,"ENOTDIR":20,"ENOTEMPTY":66,"ENOTSOCK":38,"ENOTSUP":45,"ENOTTY":25,"ENXIO":6,"EOPNOTSUPP":102,"EOVERFLOW":84,"EPERM":1,"EPIPE":32,"EPROTO":100,"EPROTONOSUPPORT":43,"EPROTOTYPE":41,"ERANGE":34,"EROFS":30,"ESPIPE":29,"ESRCH":3,"ESTALE":70,"ETIME":101,"ETIMEDOUT":60,"ETXTBSY":26,"EWOULDBLOCK":35,"EXDEV":18,"SIGHUP":1,"SIGINT":2,"SIGQUIT":3,"SIGILL":4,"SIGTRAP":5,"SIGABRT":6,"SIGIOT":6,"SIGBUS":10,"SIGFPE":8,"SIGKILL":9,"SIGUSR1":30,"SIGSEGV":11,"SIGUSR2":31,"SIGPIPE":13,"SIGALRM":14,"SIGTERM":15,"SIGCHLD":20,"SIGCONT":19,"SIGSTOP":17,"SIGTSTP":18,"SIGTTIN":21,"SIGTTOU":22,"SIGURG":16,"SIGXCPU":24,"SIGXFSZ":25,"SIGVTALRM":26,"SIGPROF":27,"SIGWINCH":28,"SIGIO":23,"SIGSYS":12,"SSL_OP_ALL":2147486719,"SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION":262144,"SSL_OP_CIPHER_SERVER_PREFERENCE":4194304,"SSL_OP_CISCO_ANYCONNECT":32768,"SSL_OP_COOKIE_EXCHANGE":8192,"SSL_OP_CRYPTOPRO_TLSEXT_BUG":2147483648,"SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS":2048,"SSL_OP_EPHEMERAL_RSA":0,"SSL_OP_LEGACY_SERVER_CONNECT":4,"SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER":32,"SSL_OP_MICROSOFT_SESS_ID_BUG":1,"SSL_OP_MSIE_SSLV2_RSA_PADDING":0,"SSL_OP_NETSCAPE_CA_DN_BUG":536870912,"SSL_OP_NETSCAPE_CHALLENGE_BUG":2,"SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG":1073741824,"SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG":8,"SSL_OP_NO_COMPRESSION":131072,"SSL_OP_NO_QUERY_MTU":4096,"SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION":65536,"SSL_OP_NO_SSLv2":16777216,"SSL_OP_NO_SSLv3":33554432,"SSL_OP_NO_TICKET":16384,"SSL_OP_NO_TLSv1":67108864,"SSL_OP_NO_TLSv1_1":268435456,"SSL_OP_NO_TLSv1_2":134217728,"SSL_OP_PKCS1_CHECK_1":0,"SSL_OP_PKCS1_CHECK_2":0,"SSL_OP_SINGLE_DH_USE":1048576,"SSL_OP_SINGLE_ECDH_USE":524288,"SSL_OP_SSLEAY_080_CLIENT_DH_BUG":128,"SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG":0,"SSL_OP_TLS_BLOCK_PADDING_BUG":512,"SSL_OP_TLS_D5_BUG":256,"SSL_OP_TLS_ROLLBACK_BUG":8388608,"ENGINE_METHOD_DSA":2,"ENGINE_METHOD_DH":4,"ENGINE_METHOD_RAND":8,"ENGINE_METHOD_ECDH":16,"ENGINE_METHOD_ECDSA":32,"ENGINE_METHOD_CIPHERS":64,"ENGINE_METHOD_DIGESTS":128,"ENGINE_METHOD_STORE":256,"ENGINE_METHOD_PKEY_METHS":512,"ENGINE_METHOD_PKEY_ASN1_METHS":1024,"ENGINE_METHOD_ALL":65535,"ENGINE_METHOD_NONE":0,"DH_CHECK_P_NOT_SAFE_PRIME":2,"DH_CHECK_P_NOT_PRIME":1,"DH_UNABLE_TO_CHECK_GENERATOR":4,"DH_NOT_SUITABLE_GENERATOR":8,"NPN_ENABLED":1,"RSA_PKCS1_PADDING":1,"RSA_SSLV23_PADDING":2,"RSA_NO_PADDING":3,"RSA_PKCS1_OAEP_PADDING":4,"RSA_X931_PADDING":5,"RSA_PKCS1_PSS_PADDING":6,"POINT_CONVERSION_COMPRESSED":2,"POINT_CONVERSION_UNCOMPRESSED":4,"POINT_CONVERSION_HYBRID":6,"F_OK":0,"R_OK":4,"W_OK":2,"X_OK":1,"UV_UDP_REUSEADDR":4}');
|
|
55139
|
+
module.exports = /*#__PURE__*/ JSON.parse('{"O_RDONLY":0,"O_WRONLY":1,"O_RDWR":2,"S_IFMT":61440,"S_IFREG":32768,"S_IFDIR":16384,"S_IFCHR":8192,"S_IFBLK":24576,"S_IFIFO":4096,"S_IFLNK":40960,"S_IFSOCK":49152,"O_CREAT":512,"O_EXCL":2048,"O_NOCTTY":131072,"O_TRUNC":1024,"O_APPEND":8,"O_DIRECTORY":1048576,"O_NOFOLLOW":256,"O_SYNC":128,"O_SYMLINK":2097152,"O_NONBLOCK":4,"S_IRWXU":448,"S_IRUSR":256,"S_IWUSR":128,"S_IXUSR":64,"S_IRWXG":56,"S_IRGRP":32,"S_IWGRP":16,"S_IXGRP":8,"S_IRWXO":7,"S_IROTH":4,"S_IWOTH":2,"S_IXOTH":1,"E2BIG":7,"EACCES":13,"EADDRINUSE":48,"EADDRNOTAVAIL":49,"EAFNOSUPPORT":47,"EAGAIN":35,"EALREADY":37,"EBADF":9,"EBADMSG":94,"EBUSY":16,"ECANCELED":89,"ECHILD":10,"ECONNABORTED":53,"ECONNREFUSED":61,"ECONNRESET":54,"EDEADLK":11,"EDESTADDRREQ":39,"EDOM":33,"EDQUOT":69,"EEXIST":17,"EFAULT":14,"EFBIG":27,"EHOSTUNREACH":65,"EIDRM":90,"EILSEQ":92,"EINPROGRESS":36,"EINTR":4,"EINVAL":22,"EIO":5,"EISCONN":56,"EISDIR":21,"ELOOP":62,"EMFILE":24,"EMLINK":31,"EMSGSIZE":40,"EMULTIHOP":95,"ENAMETOOLONG":63,"ENETDOWN":50,"ENETRESET":52,"ENETUNREACH":51,"ENFILE":23,"ENOBUFS":55,"ENODATA":96,"ENODEV":19,"ENOENT":2,"ENOEXEC":8,"ENOLCK":77,"ENOLINK":97,"ENOMEM":12,"ENOMSG":91,"ENOPROTOOPT":42,"ENOSPC":28,"ENOSR":98,"ENOSTR":99,"ENOSYS":78,"ENOTCONN":57,"ENOTDIR":20,"ENOTEMPTY":66,"ENOTSOCK":38,"ENOTSUP":45,"ENOTTY":25,"ENXIO":6,"EOPNOTSUPP":102,"EOVERFLOW":84,"EPERM":1,"EPIPE":32,"EPROTO":100,"EPROTONOSUPPORT":43,"EPROTOTYPE":41,"ERANGE":34,"EROFS":30,"ESPIPE":29,"ESRCH":3,"ESTALE":70,"ETIME":101,"ETIMEDOUT":60,"ETXTBSY":26,"EWOULDBLOCK":35,"EXDEV":18,"SIGHUP":1,"SIGINT":2,"SIGQUIT":3,"SIGILL":4,"SIGTRAP":5,"SIGABRT":6,"SIGIOT":6,"SIGBUS":10,"SIGFPE":8,"SIGKILL":9,"SIGUSR1":30,"SIGSEGV":11,"SIGUSR2":31,"SIGPIPE":13,"SIGALRM":14,"SIGTERM":15,"SIGCHLD":20,"SIGCONT":19,"SIGSTOP":17,"SIGTSTP":18,"SIGTTIN":21,"SIGTTOU":22,"SIGURG":16,"SIGXCPU":24,"SIGXFSZ":25,"SIGVTALRM":26,"SIGPROF":27,"SIGWINCH":28,"SIGIO":23,"SIGSYS":12,"SSL_OP_ALL":2147486719,"SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION":262144,"SSL_OP_CIPHER_SERVER_PREFERENCE":4194304,"SSL_OP_CISCO_ANYCONNECT":32768,"SSL_OP_COOKIE_EXCHANGE":8192,"SSL_OP_CRYPTOPRO_TLSEXT_BUG":2147483648,"SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS":2048,"SSL_OP_EPHEMERAL_RSA":0,"SSL_OP_LEGACY_SERVER_CONNECT":4,"SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER":32,"SSL_OP_MICROSOFT_SESS_ID_BUG":1,"SSL_OP_MSIE_SSLV2_RSA_PADDING":0,"SSL_OP_NETSCAPE_CA_DN_BUG":536870912,"SSL_OP_NETSCAPE_CHALLENGE_BUG":2,"SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG":1073741824,"SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG":8,"SSL_OP_NO_COMPRESSION":131072,"SSL_OP_NO_QUERY_MTU":4096,"SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION":65536,"SSL_OP_NO_SSLv2":16777216,"SSL_OP_NO_SSLv3":33554432,"SSL_OP_NO_TICKET":16384,"SSL_OP_NO_TLSv1":67108864,"SSL_OP_NO_TLSv1_1":268435456,"SSL_OP_NO_TLSv1_2":134217728,"SSL_OP_PKCS1_CHECK_1":0,"SSL_OP_PKCS1_CHECK_2":0,"SSL_OP_SINGLE_DH_USE":1048576,"SSL_OP_SINGLE_ECDH_USE":524288,"SSL_OP_SSLEAY_080_CLIENT_DH_BUG":128,"SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG":0,"SSL_OP_TLS_BLOCK_PADDING_BUG":512,"SSL_OP_TLS_D5_BUG":256,"SSL_OP_TLS_ROLLBACK_BUG":8388608,"ENGINE_METHOD_DSA":2,"ENGINE_METHOD_DH":4,"ENGINE_METHOD_RAND":8,"ENGINE_METHOD_ECDH":16,"ENGINE_METHOD_ECDSA":32,"ENGINE_METHOD_CIPHERS":64,"ENGINE_METHOD_DIGESTS":128,"ENGINE_METHOD_STORE":256,"ENGINE_METHOD_PKEY_METHS":512,"ENGINE_METHOD_PKEY_ASN1_METHS":1024,"ENGINE_METHOD_ALL":65535,"ENGINE_METHOD_NONE":0,"DH_CHECK_P_NOT_SAFE_PRIME":2,"DH_CHECK_P_NOT_PRIME":1,"DH_UNABLE_TO_CHECK_GENERATOR":4,"DH_NOT_SUITABLE_GENERATOR":8,"NPN_ENABLED":1,"RSA_PKCS1_PADDING":1,"RSA_SSLV23_PADDING":2,"RSA_NO_PADDING":3,"RSA_PKCS1_OAEP_PADDING":4,"RSA_X931_PADDING":5,"RSA_PKCS1_PSS_PADDING":6,"POINT_CONVERSION_COMPRESSED":2,"POINT_CONVERSION_UNCOMPRESSED":4,"POINT_CONVERSION_HYBRID":6,"F_OK":0,"R_OK":4,"W_OK":2,"X_OK":1,"UV_UDP_REUSEADDR":4}');
|
|
53962
55140
|
},
|
|
53963
55141
|
"../../node_modules/.pnpm/diffie-hellman@5.0.3/node_modules/diffie-hellman/lib/primes.json" (module) {
|
|
53964
|
-
module.exports = JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}');
|
|
55142
|
+
module.exports = /*#__PURE__*/ JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}');
|
|
53965
55143
|
},
|
|
53966
55144
|
"../../node_modules/.pnpm/elliptic@6.6.1/node_modules/elliptic/package.json" (module) {
|
|
53967
55145
|
module.exports = {
|
|
@@ -53969,7 +55147,7 @@ __webpack_require__.add({
|
|
|
53969
55147
|
};
|
|
53970
55148
|
},
|
|
53971
55149
|
"../../node_modules/.pnpm/parse-asn1@5.1.9/node_modules/parse-asn1/aesid.json" (module) {
|
|
53972
|
-
module.exports = JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}');
|
|
55150
|
+
module.exports = /*#__PURE__*/ JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}');
|
|
53973
55151
|
}
|
|
53974
55152
|
});
|
|
53975
55153
|
var browserslistTargetHandler_namespaceObject = {};
|
|
@@ -55106,7 +56284,7 @@ function createFakeCompilationDependencies(getDeps, addDeps) {
|
|
|
55106
56284
|
};
|
|
55107
56285
|
}
|
|
55108
56286
|
const webpack_sources_lib = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.4_patch_hash=0d62122aa5f9ac77d9ad3b4959c3c0492778a5948c0b00b45a673f3facfca327/node_modules/webpack-sources/lib/index.js");
|
|
55109
|
-
var Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
56287
|
+
var Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
55110
56288
|
class SourceAdapter {
|
|
55111
56289
|
static fromBinding(source) {
|
|
55112
56290
|
if (!source.map) return new webpack_sources_lib.RawSource(source.source);
|
|
@@ -56121,7 +57299,7 @@ function canInherentFromParent(affectedHooks) {
|
|
|
56121
57299
|
if (void 0 === affectedHooks) return false;
|
|
56122
57300
|
return !HOOKS_CAN_NOT_INHERENT_FROM_PARENT.includes(affectedHooks);
|
|
56123
57301
|
}
|
|
56124
|
-
class
|
|
57302
|
+
class RspackBuiltinPlugin {
|
|
56125
57303
|
affectedHooks;
|
|
56126
57304
|
apply(compiler) {
|
|
56127
57305
|
const raw = this.raw(compiler);
|
|
@@ -56131,14 +57309,14 @@ class base_RspackBuiltinPlugin {
|
|
|
56131
57309
|
}
|
|
56132
57310
|
}
|
|
56133
57311
|
}
|
|
56134
|
-
function
|
|
57312
|
+
function createBuiltinPlugin(name, options) {
|
|
56135
57313
|
return {
|
|
56136
57314
|
name: name,
|
|
56137
57315
|
options: options ?? false
|
|
56138
57316
|
};
|
|
56139
57317
|
}
|
|
56140
57318
|
function base_create(name, resolve, affectedHooks) {
|
|
56141
|
-
class Plugin extends
|
|
57319
|
+
class Plugin extends RspackBuiltinPlugin {
|
|
56142
57320
|
name = name;
|
|
56143
57321
|
_args;
|
|
56144
57322
|
affectedHooks = affectedHooks;
|
|
@@ -56147,7 +57325,7 @@ function base_create(name, resolve, affectedHooks) {
|
|
|
56147
57325
|
this._args = args;
|
|
56148
57326
|
}
|
|
56149
57327
|
raw(compiler) {
|
|
56150
|
-
return
|
|
57328
|
+
return createBuiltinPlugin(name, resolve.apply(compiler, this._args));
|
|
56151
57329
|
}
|
|
56152
57330
|
}
|
|
56153
57331
|
Object.defineProperty(Plugin, 'name', {
|
|
@@ -56186,13 +57364,13 @@ const BundlerInfoRspackPlugin = base_create(external_rspack_wasi_browser_js_Buil
|
|
|
56186
57364
|
}));
|
|
56187
57365
|
const CaseSensitivePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CaseSensitivePlugin, ()=>{}, 'compilation');
|
|
56188
57366
|
const ChunkPrefetchPreloadPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ChunkPrefetchPreloadPlugin, ()=>{});
|
|
56189
|
-
class CircularModulesInfoPlugin extends
|
|
56190
|
-
name =
|
|
57367
|
+
class CircularModulesInfoPlugin extends RspackBuiltinPlugin {
|
|
57368
|
+
name = external_rspack_wasi_browser_js_BuiltinPluginName.CircularModulesInfoPlugin;
|
|
56191
57369
|
raw(_compiler) {
|
|
56192
57370
|
return createBuiltinPlugin(this.name, void 0);
|
|
56193
57371
|
}
|
|
56194
57372
|
}
|
|
56195
|
-
class CircularDependencyRspackPlugin extends
|
|
57373
|
+
class CircularDependencyRspackPlugin extends RspackBuiltinPlugin {
|
|
56196
57374
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.CircularDependencyRspackPlugin;
|
|
56197
57375
|
_options;
|
|
56198
57376
|
constructor(options){
|
|
@@ -56222,7 +57400,7 @@ class CircularDependencyRspackPlugin extends base_RspackBuiltinPlugin {
|
|
|
56222
57400
|
this._options.onEnd(compilation);
|
|
56223
57401
|
} : void 0
|
|
56224
57402
|
};
|
|
56225
|
-
return
|
|
57403
|
+
return createBuiltinPlugin(this.name, rawOptions);
|
|
56226
57404
|
}
|
|
56227
57405
|
}
|
|
56228
57406
|
const CommonJsChunkFormatPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.CommonJsChunkFormatPlugin, ()=>{});
|
|
@@ -56373,18 +57551,24 @@ const normalizeValue = (define1, supportsBigIntLiteral)=>{
|
|
|
56373
57551
|
};
|
|
56374
57552
|
return normalizeObject(define1);
|
|
56375
57553
|
};
|
|
56376
|
-
class DeterministicChunkIdsPlugin extends
|
|
57554
|
+
class DeterministicChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
56377
57555
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.DeterministicChunkIdsPlugin;
|
|
56378
57556
|
affectedHooks = 'compilation';
|
|
56379
57557
|
raw() {
|
|
56380
|
-
return
|
|
57558
|
+
return createBuiltinPlugin(this.name, void 0);
|
|
56381
57559
|
}
|
|
56382
57560
|
}
|
|
56383
|
-
class DeterministicModuleIdsPlugin extends
|
|
57561
|
+
class DeterministicModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
57562
|
+
options;
|
|
56384
57563
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.DeterministicModuleIdsPlugin;
|
|
56385
57564
|
affectedHooks = 'compilation';
|
|
57565
|
+
constructor(options = {}){
|
|
57566
|
+
super(), this.options = options;
|
|
57567
|
+
}
|
|
56386
57568
|
raw() {
|
|
56387
|
-
return
|
|
57569
|
+
return createBuiltinPlugin(this.name, {
|
|
57570
|
+
...this.options
|
|
57571
|
+
});
|
|
56388
57572
|
}
|
|
56389
57573
|
}
|
|
56390
57574
|
const DllEntryPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.DllEntryPlugin, (context, entries, options)=>({
|
|
@@ -56453,7 +57637,7 @@ function getRawEntryOptions(entry) {
|
|
|
56453
57637
|
dependOn: entry.dependOn
|
|
56454
57638
|
};
|
|
56455
57639
|
}
|
|
56456
|
-
class DynamicEntryPlugin extends
|
|
57640
|
+
class DynamicEntryPlugin extends RspackBuiltinPlugin {
|
|
56457
57641
|
context;
|
|
56458
57642
|
entry;
|
|
56459
57643
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.DynamicEntryPlugin;
|
|
@@ -56475,7 +57659,7 @@ class DynamicEntryPlugin extends base_RspackBuiltinPlugin {
|
|
|
56475
57659
|
});
|
|
56476
57660
|
}
|
|
56477
57661
|
};
|
|
56478
|
-
return
|
|
57662
|
+
return createBuiltinPlugin(this.name, raw);
|
|
56479
57663
|
}
|
|
56480
57664
|
}
|
|
56481
57665
|
const ElectronTargetPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ElectronTargetPlugin, (context)=>context ?? 'none');
|
|
@@ -56532,7 +57716,7 @@ class JsSplitChunkSizes {
|
|
|
56532
57716
|
return sizes;
|
|
56533
57717
|
}
|
|
56534
57718
|
}
|
|
56535
|
-
class SplitChunksPlugin extends
|
|
57719
|
+
class SplitChunksPlugin extends RspackBuiltinPlugin {
|
|
56536
57720
|
options;
|
|
56537
57721
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.SplitChunksPlugin;
|
|
56538
57722
|
affectedHooks = 'thisCompilation';
|
|
@@ -56542,7 +57726,7 @@ class SplitChunksPlugin extends base_RspackBuiltinPlugin {
|
|
|
56542
57726
|
raw(compiler) {
|
|
56543
57727
|
const rawOptions = SplitChunksPlugin_toRawSplitChunksOptions(this.options, compiler);
|
|
56544
57728
|
if (void 0 === rawOptions) throw new Error('rawOptions should not be undefined');
|
|
56545
|
-
return
|
|
57729
|
+
return createBuiltinPlugin(this.name, rawOptions);
|
|
56546
57730
|
}
|
|
56547
57731
|
}
|
|
56548
57732
|
function SplitChunksPlugin_toRawSplitChunksOptions(sc, compiler) {
|
|
@@ -56615,7 +57799,7 @@ const EnableLibraryPlugin_getEnabledTypes = (compiler)=>{
|
|
|
56615
57799
|
}
|
|
56616
57800
|
return set;
|
|
56617
57801
|
};
|
|
56618
|
-
class EnableLibraryPlugin extends
|
|
57802
|
+
class EnableLibraryPlugin extends RspackBuiltinPlugin {
|
|
56619
57803
|
type;
|
|
56620
57804
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.EnableLibraryPlugin;
|
|
56621
57805
|
constructor(type){
|
|
@@ -56632,7 +57816,7 @@ class EnableLibraryPlugin extends base_RspackBuiltinPlugin {
|
|
|
56632
57816
|
const enabled = EnableLibraryPlugin_getEnabledTypes(compiler);
|
|
56633
57817
|
if (enabled.has(type)) return;
|
|
56634
57818
|
enabled.add(type);
|
|
56635
|
-
return
|
|
57819
|
+
return createBuiltinPlugin(this.name, {
|
|
56636
57820
|
libraryType: type,
|
|
56637
57821
|
preserveModules: compiler.options.output.library?.preserveModules,
|
|
56638
57822
|
splitChunks: SplitChunksPlugin_toRawSplitChunksOptions(compiler.options.optimization.splitChunks ?? false, compiler)
|
|
@@ -56664,7 +57848,7 @@ function applyLimits(options) {
|
|
|
56664
57848
|
base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EsmNodeTargetPlugin, ()=>void 0);
|
|
56665
57849
|
const EvalDevToolModulePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, 'compilation');
|
|
56666
57850
|
const EvalSourceMapDevToolPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
56667
|
-
var util_Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
57851
|
+
var util_Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
56668
57852
|
function isNil(value) {
|
|
56669
57853
|
return null == value;
|
|
56670
57854
|
}
|
|
@@ -57362,7 +58546,7 @@ class Hash {
|
|
|
57362
58546
|
throw new AbstractMethodError();
|
|
57363
58547
|
}
|
|
57364
58548
|
}
|
|
57365
|
-
var wasm_hash_Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
58549
|
+
var wasm_hash_Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
57366
58550
|
const MAX_SHORT_STRING = -4 & Math.floor(16368);
|
|
57367
58551
|
class WasmHash {
|
|
57368
58552
|
exports;
|
|
@@ -57481,7 +58665,7 @@ const wasm_hash_create = (wasmModule, instancesPool, chunkSize, digestSize)=>{
|
|
|
57481
58665
|
return new WasmHash(new WebAssembly.Instance(wasmModule), instancesPool, chunkSize, digestSize);
|
|
57482
58666
|
};
|
|
57483
58667
|
const wasm_hash = wasm_hash_create;
|
|
57484
|
-
var md4_Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
58668
|
+
var md4_Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
57485
58669
|
let createMd4;
|
|
57486
58670
|
const hash_md4 = ()=>{
|
|
57487
58671
|
if (!createMd4) {
|
|
@@ -57490,7 +58674,7 @@ const hash_md4 = ()=>{
|
|
|
57490
58674
|
}
|
|
57491
58675
|
return createMd4();
|
|
57492
58676
|
};
|
|
57493
|
-
var xxhash64_Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
58677
|
+
var xxhash64_Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
57494
58678
|
let createXxhash64;
|
|
57495
58679
|
const hash_xxhash64 = ()=>{
|
|
57496
58680
|
if (!createXxhash64) {
|
|
@@ -57499,7 +58683,7 @@ const hash_xxhash64 = ()=>{
|
|
|
57499
58683
|
}
|
|
57500
58684
|
return createXxhash64();
|
|
57501
58685
|
};
|
|
57502
|
-
var createHash_Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
58686
|
+
var createHash_Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
57503
58687
|
const BULK_SIZE = 2000;
|
|
57504
58688
|
const digestCaches = {};
|
|
57505
58689
|
class BulkUpdateDecorator extends Hash {
|
|
@@ -57670,7 +58854,7 @@ function handleResult(loader, module, callback) {
|
|
|
57670
58854
|
if ('function' != typeof loader.normal && 'function' != typeof loader.pitch) return callback(new LoaderLoadingError(`Module '${loader.path}' is not a loader (must have normal or pitch function)`));
|
|
57671
58855
|
callback();
|
|
57672
58856
|
}
|
|
57673
|
-
var utils_Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
58857
|
+
var utils_Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
57674
58858
|
const decoder = new TextDecoder();
|
|
57675
58859
|
function utf8BufferToString(buf) {
|
|
57676
58860
|
const isShared = buf.buffer instanceof SharedArrayBuffer || buf.buffer.constructor?.name === 'SharedArrayBuffer';
|
|
@@ -58571,6 +59755,7 @@ function getRawOutput(output) {
|
|
|
58571
59755
|
function getRawOutputEnvironment(environment = {}) {
|
|
58572
59756
|
return {
|
|
58573
59757
|
const: Boolean(environment.const),
|
|
59758
|
+
computedProperty: Boolean(environment.computedProperty),
|
|
58574
59759
|
methodShorthand: Boolean(environment.methodShorthand),
|
|
58575
59760
|
arrowFunction: Boolean(environment.arrowFunction),
|
|
58576
59761
|
nodePrefixForCoreModules: Boolean(environment.nodePrefixForCoreModules),
|
|
@@ -58805,7 +59990,7 @@ function getRawParserOptions(parser, type) {
|
|
|
58805
59990
|
};
|
|
58806
59991
|
if ('css' === type) return {
|
|
58807
59992
|
type: 'css',
|
|
58808
|
-
css:
|
|
59993
|
+
css: getRawCssParserOptionsForCss(parser)
|
|
58809
59994
|
};
|
|
58810
59995
|
if ('css/auto' === type) return {
|
|
58811
59996
|
type: 'css/auto',
|
|
@@ -58877,7 +60062,22 @@ function getRawCssParserOptions(parser) {
|
|
|
58877
60062
|
return {
|
|
58878
60063
|
namedExports: parser.namedExports,
|
|
58879
60064
|
url: parser.url,
|
|
58880
|
-
|
|
60065
|
+
import: parser.import,
|
|
60066
|
+
resolveImport: parser.resolveImport,
|
|
60067
|
+
animation: parser.animation,
|
|
60068
|
+
customIdents: parser.customIdents,
|
|
60069
|
+
dashedIdents: parser.dashedIdents
|
|
60070
|
+
};
|
|
60071
|
+
}
|
|
60072
|
+
function getRawCssParserOptionsForCss(parser) {
|
|
60073
|
+
return {
|
|
60074
|
+
namedExports: parser.namedExports,
|
|
60075
|
+
url: parser.url,
|
|
60076
|
+
import: parser.import,
|
|
60077
|
+
resolveImport: parser.resolveImport,
|
|
60078
|
+
animation: parser.animation,
|
|
60079
|
+
customIdents: parser.customIdents,
|
|
60080
|
+
dashedIdents: parser.dashedIdents
|
|
58881
60081
|
};
|
|
58882
60082
|
}
|
|
58883
60083
|
function getRawJsonParserOptions(parser) {
|
|
@@ -59001,26 +60201,28 @@ function getRawStats(stats) {
|
|
|
59001
60201
|
colors
|
|
59002
60202
|
};
|
|
59003
60203
|
}
|
|
59004
|
-
class ExternalsPlugin extends
|
|
60204
|
+
class ExternalsPlugin extends RspackBuiltinPlugin {
|
|
59005
60205
|
type;
|
|
59006
60206
|
externals;
|
|
59007
60207
|
placeInInitial;
|
|
60208
|
+
fallbackType;
|
|
59008
60209
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ExternalsPlugin;
|
|
59009
60210
|
#resolveRequestCache = new Map();
|
|
59010
|
-
constructor(type, externals, placeInInitial){
|
|
59011
|
-
super(), this.type = type, this.externals = externals, this.placeInInitial = placeInInitial;
|
|
60211
|
+
constructor(type, externals, placeInInitial, fallbackType){
|
|
60212
|
+
super(), this.type = type, this.externals = externals, this.placeInInitial = placeInInitial, this.fallbackType = fallbackType;
|
|
59012
60213
|
}
|
|
59013
60214
|
raw() {
|
|
59014
60215
|
const type = this.type;
|
|
59015
60216
|
const externals = this.externals;
|
|
59016
60217
|
const raw = {
|
|
59017
60218
|
type,
|
|
60219
|
+
fallbackType: this.fallbackType,
|
|
59018
60220
|
externals: (Array.isArray(externals) ? externals : [
|
|
59019
60221
|
externals
|
|
59020
60222
|
]).filter(Boolean).map((item)=>this.#getRawExternalItem(item)),
|
|
59021
60223
|
placeInInitial: this.placeInInitial ?? false
|
|
59022
60224
|
};
|
|
59023
|
-
return
|
|
60225
|
+
return createBuiltinPlugin(this.name, raw);
|
|
59024
60226
|
}
|
|
59025
60227
|
#processResolveResult = (text)=>{
|
|
59026
60228
|
if (!text) return;
|
|
@@ -59109,7 +60311,7 @@ function getRawExternalItemValue(value) {
|
|
|
59109
60311
|
const FetchCompileAsyncWasmPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FetchCompileAsyncWasmPlugin, ()=>{}, 'thisCompilation');
|
|
59110
60312
|
const FileUriPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FileUriPlugin, ()=>{}, 'compilation');
|
|
59111
60313
|
const FlagDependencyExportsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.FlagDependencyExportsPlugin, ()=>{}, 'compilation');
|
|
59112
|
-
class FlagDependencyUsagePlugin extends
|
|
60314
|
+
class FlagDependencyUsagePlugin extends RspackBuiltinPlugin {
|
|
59113
60315
|
global;
|
|
59114
60316
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.FlagDependencyUsagePlugin;
|
|
59115
60317
|
affectedHooks = 'compilation';
|
|
@@ -59117,23 +60319,23 @@ class FlagDependencyUsagePlugin extends base_RspackBuiltinPlugin {
|
|
|
59117
60319
|
super(), this.global = global;
|
|
59118
60320
|
}
|
|
59119
60321
|
raw() {
|
|
59120
|
-
return
|
|
60322
|
+
return createBuiltinPlugin(this.name, this.global);
|
|
59121
60323
|
}
|
|
59122
60324
|
}
|
|
59123
60325
|
const HashedModuleIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.HashedModuleIdsPlugin, (options)=>({
|
|
59124
60326
|
...options
|
|
59125
60327
|
}), 'compilation');
|
|
59126
|
-
class HotModuleReplacementPlugin extends
|
|
60328
|
+
class HotModuleReplacementPlugin extends RspackBuiltinPlugin {
|
|
59127
60329
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.HotModuleReplacementPlugin;
|
|
59128
60330
|
raw(compiler) {
|
|
59129
60331
|
if (void 0 === compiler.options.output.strictModuleErrorHandling) compiler.options.output.strictModuleErrorHandling = true;
|
|
59130
|
-
return
|
|
60332
|
+
return createBuiltinPlugin(this.name, void 0);
|
|
59131
60333
|
}
|
|
59132
60334
|
}
|
|
59133
60335
|
const HttpExternalsRspackPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.HttpExternalsRspackPlugin, (webAsync)=>({
|
|
59134
60336
|
webAsync
|
|
59135
60337
|
}));
|
|
59136
|
-
var HttpUriPlugin_Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
60338
|
+
var HttpUriPlugin_Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
59137
60339
|
memoize(()=>__webpack_require__("../../node_modules/.pnpm/stream-http@3.2.0/node_modules/stream-http/index.js"));
|
|
59138
60340
|
memoize(()=>__webpack_require__("../../node_modules/.pnpm/https-browserify@1.0.0/node_modules/https-browserify/index.js"));
|
|
59139
60341
|
const defaultHttpClientForBrowser = async (url, headers)=>{
|
|
@@ -59149,7 +60351,7 @@ const defaultHttpClientForBrowser = async (url, headers)=>{
|
|
|
59149
60351
|
body: HttpUriPlugin_Buffer.from(await res.arrayBuffer())
|
|
59150
60352
|
};
|
|
59151
60353
|
};
|
|
59152
|
-
class HttpUriPlugin extends
|
|
60354
|
+
class HttpUriPlugin extends RspackBuiltinPlugin {
|
|
59153
60355
|
options;
|
|
59154
60356
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.HttpUriPlugin;
|
|
59155
60357
|
affectedHooks = 'compilation';
|
|
@@ -59168,7 +60370,7 @@ class HttpUriPlugin extends base_RspackBuiltinPlugin {
|
|
|
59168
60370
|
upgrade: options.upgrade ?? false,
|
|
59169
60371
|
httpClient: options.httpClient ?? defaultHttpClient
|
|
59170
60372
|
};
|
|
59171
|
-
return
|
|
60373
|
+
return createBuiltinPlugin(this.name, raw);
|
|
59172
60374
|
}
|
|
59173
60375
|
}
|
|
59174
60376
|
const compilationOptionsMap = new WeakMap();
|
|
@@ -59384,11 +60586,11 @@ const IgnorePlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginNa
|
|
|
59384
60586
|
const InferAsyncModulesPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.InferAsyncModulesPlugin, ()=>{}, 'compilation');
|
|
59385
60587
|
const InlineExportsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.InlineExportsPlugin, ()=>{}, 'compilation');
|
|
59386
60588
|
const JavascriptModulesPlugin_compilationHooksMap = new WeakMap();
|
|
59387
|
-
class JavascriptModulesPlugin extends
|
|
60589
|
+
class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
59388
60590
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.JavascriptModulesPlugin;
|
|
59389
60591
|
affectedHooks = 'compilation';
|
|
59390
60592
|
raw() {
|
|
59391
|
-
return
|
|
60593
|
+
return createBuiltinPlugin(this.name, void 0);
|
|
59392
60594
|
}
|
|
59393
60595
|
static getCompilationHooks(compilation) {
|
|
59394
60596
|
checkCompilation(compilation);
|
|
@@ -59455,7 +60657,7 @@ const LimitChunkCountPlugin = base_create(external_rspack_wasi_browser_js_Builti
|
|
|
59455
60657
|
const lazyCompilationMiddleware = ()=>{
|
|
59456
60658
|
throw new Error('lazy compilation middleware is not supported in browser');
|
|
59457
60659
|
};
|
|
59458
|
-
class MangleExportsPlugin extends
|
|
60660
|
+
class MangleExportsPlugin extends RspackBuiltinPlugin {
|
|
59459
60661
|
deterministic;
|
|
59460
60662
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.MangleExportsPlugin;
|
|
59461
60663
|
affectedHooks = 'compilation';
|
|
@@ -59463,33 +60665,33 @@ class MangleExportsPlugin extends base_RspackBuiltinPlugin {
|
|
|
59463
60665
|
super(), this.deterministic = deterministic;
|
|
59464
60666
|
}
|
|
59465
60667
|
raw() {
|
|
59466
|
-
return
|
|
60668
|
+
return createBuiltinPlugin(this.name, this.deterministic);
|
|
59467
60669
|
}
|
|
59468
60670
|
}
|
|
59469
60671
|
const MergeDuplicateChunksPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.MergeDuplicateChunksPlugin, ()=>{});
|
|
59470
60672
|
const ModuleChunkFormatPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ModuleChunkFormatPlugin, ()=>{});
|
|
59471
|
-
class ModuleConcatenationPlugin extends
|
|
60673
|
+
class ModuleConcatenationPlugin extends RspackBuiltinPlugin {
|
|
59472
60674
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ModuleConcatenationPlugin;
|
|
59473
60675
|
affectedHooks = 'compilation';
|
|
59474
60676
|
raw() {
|
|
59475
|
-
return
|
|
60677
|
+
return createBuiltinPlugin(this.name, void 0);
|
|
59476
60678
|
}
|
|
59477
60679
|
}
|
|
59478
60680
|
const ModuleInfoHeaderPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.ModuleInfoHeaderPlugin, (verbose)=>verbose, 'compilation');
|
|
59479
60681
|
const NamedChunkIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NamedChunkIdsPlugin, ()=>{}, 'compilation');
|
|
59480
60682
|
const NamedModuleIdsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NamedModuleIdsPlugin, ()=>{}, 'compilation');
|
|
59481
|
-
class NaturalChunkIdsPlugin extends
|
|
60683
|
+
class NaturalChunkIdsPlugin extends RspackBuiltinPlugin {
|
|
59482
60684
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.NaturalChunkIdsPlugin;
|
|
59483
60685
|
affectedHooks = 'compilation';
|
|
59484
60686
|
raw() {
|
|
59485
|
-
return
|
|
60687
|
+
return createBuiltinPlugin(this.name, void 0);
|
|
59486
60688
|
}
|
|
59487
60689
|
}
|
|
59488
|
-
class NaturalModuleIdsPlugin extends
|
|
60690
|
+
class NaturalModuleIdsPlugin extends RspackBuiltinPlugin {
|
|
59489
60691
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.NaturalModuleIdsPlugin;
|
|
59490
60692
|
affectedHooks = 'compilation';
|
|
59491
60693
|
raw() {
|
|
59492
|
-
return
|
|
60694
|
+
return createBuiltinPlugin(this.name, void 0);
|
|
59493
60695
|
}
|
|
59494
60696
|
}
|
|
59495
60697
|
const NodeTargetPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.NodeTargetPlugin, ()=>void 0);
|
|
@@ -59711,7 +60913,7 @@ class Coordinator {
|
|
|
59711
60913
|
});
|
|
59712
60914
|
}
|
|
59713
60915
|
}
|
|
59714
|
-
class RscClientPlugin extends
|
|
60916
|
+
class RscClientPlugin extends RspackBuiltinPlugin {
|
|
59715
60917
|
name = 'RscClientPlugin';
|
|
59716
60918
|
#options;
|
|
59717
60919
|
constructor(options){
|
|
@@ -59720,12 +60922,12 @@ class RscClientPlugin extends base_RspackBuiltinPlugin {
|
|
|
59720
60922
|
}
|
|
59721
60923
|
raw(compiler) {
|
|
59722
60924
|
this.#options.coordinator.applyClientCompiler(compiler);
|
|
59723
|
-
return
|
|
60925
|
+
return createBuiltinPlugin(this.name, {
|
|
59724
60926
|
coordinator: this.#options.coordinator[GET_OR_INIT_BINDING]()
|
|
59725
60927
|
});
|
|
59726
60928
|
}
|
|
59727
60929
|
}
|
|
59728
|
-
class RscServerPlugin extends
|
|
60930
|
+
class RscServerPlugin extends RspackBuiltinPlugin {
|
|
59729
60931
|
name = 'RscServerPlugin';
|
|
59730
60932
|
#options;
|
|
59731
60933
|
constructor(options){
|
|
@@ -59737,7 +60939,7 @@ class RscServerPlugin extends base_RspackBuiltinPlugin {
|
|
|
59737
60939
|
const { coordinator, onServerComponentChanges } = this.#options;
|
|
59738
60940
|
let onManifest;
|
|
59739
60941
|
if (this.#options.onManifest) onManifest = (json)=>Promise.resolve(this.#options.onManifest(JSON.parse(json)));
|
|
59740
|
-
return
|
|
60942
|
+
return createBuiltinPlugin(this.name, {
|
|
59741
60943
|
coordinator: coordinator[GET_OR_INIT_BINDING](),
|
|
59742
60944
|
cssLink: this.#options.cssLink,
|
|
59743
60945
|
onServerComponentChanges,
|
|
@@ -59771,7 +60973,7 @@ const rsc = {
|
|
|
59771
60973
|
ssr: 'server-side-rendering'
|
|
59772
60974
|
}
|
|
59773
60975
|
};
|
|
59774
|
-
class SideEffectsFlagPlugin extends
|
|
60976
|
+
class SideEffectsFlagPlugin extends RspackBuiltinPlugin {
|
|
59775
60977
|
analyzeSideEffectsFree;
|
|
59776
60978
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.SideEffectsFlagPlugin;
|
|
59777
60979
|
affectedHooks = 'compilation';
|
|
@@ -59779,7 +60981,7 @@ class SideEffectsFlagPlugin extends base_RspackBuiltinPlugin {
|
|
|
59779
60981
|
super(), this.analyzeSideEffectsFree = analyzeSideEffectsFree;
|
|
59780
60982
|
}
|
|
59781
60983
|
raw() {
|
|
59782
|
-
return
|
|
60984
|
+
return createBuiltinPlugin(this.name, this.analyzeSideEffectsFree);
|
|
59783
60985
|
}
|
|
59784
60986
|
}
|
|
59785
60987
|
const SizeLimitsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SizeLimitsPlugin, (options)=>{
|
|
@@ -59790,7 +60992,7 @@ const SizeLimitsPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPlug
|
|
|
59790
60992
|
};
|
|
59791
60993
|
});
|
|
59792
60994
|
const SourceMapDevToolPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.SourceMapDevToolPlugin, (options)=>options, 'compilation');
|
|
59793
|
-
var SubresourceIntegrityPlugin_Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
60995
|
+
var SubresourceIntegrityPlugin_Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
59794
60996
|
const SubresourceIntegrityPlugin_PLUGIN_NAME = 'SubresourceIntegrityPlugin';
|
|
59795
60997
|
const NATIVE_HTML_PLUGIN = 'HtmlRspackPlugin';
|
|
59796
60998
|
const HTTP_PROTOCOL_REGEX = /^https?:/;
|
|
@@ -60021,7 +61223,7 @@ const SwcJsMinimizerRspackPlugin = base_create(external_rspack_wasi_browser_js_B
|
|
|
60021
61223
|
};
|
|
60022
61224
|
}, 'compilation');
|
|
60023
61225
|
const URLPlugin = base_create(external_rspack_wasi_browser_js_BuiltinPluginName.URLPlugin, ()=>{}, 'compilation');
|
|
60024
|
-
class WorkerPlugin extends
|
|
61226
|
+
class WorkerPlugin extends RspackBuiltinPlugin {
|
|
60025
61227
|
chunkLoading;
|
|
60026
61228
|
wasmLoading;
|
|
60027
61229
|
module;
|
|
@@ -60034,7 +61236,7 @@ class WorkerPlugin extends base_RspackBuiltinPlugin {
|
|
|
60034
61236
|
raw(compiler) {
|
|
60035
61237
|
if (this.chunkLoading) new EnableChunkLoadingPlugin(this.chunkLoading).apply(compiler);
|
|
60036
61238
|
if (this.wasmLoading) new EnableWasmLoadingPlugin(this.wasmLoading).apply(compiler);
|
|
60037
|
-
return
|
|
61239
|
+
return createBuiltinPlugin(this.name, void 0);
|
|
60038
61240
|
}
|
|
60039
61241
|
}
|
|
60040
61242
|
class ContextModuleFactory {
|
|
@@ -60587,6 +61789,24 @@ const aliases = {
|
|
|
60587
61789
|
and_ff: 'firefox'
|
|
60588
61790
|
};
|
|
60589
61791
|
const renameBrowser = (name)=>aliases[name] || name;
|
|
61792
|
+
const resolveESVersion = (version, thresholds)=>{
|
|
61793
|
+
const index = thresholds.findIndex((threshold)=>version < threshold);
|
|
61794
|
+
const defaultVersion = 2024;
|
|
61795
|
+
if (-1 === index) return defaultVersion;
|
|
61796
|
+
const ES_VERSIONS = [
|
|
61797
|
+
2015,
|
|
61798
|
+
2016,
|
|
61799
|
+
2017,
|
|
61800
|
+
2018,
|
|
61801
|
+
2019,
|
|
61802
|
+
2020,
|
|
61803
|
+
2021,
|
|
61804
|
+
2022,
|
|
61805
|
+
2023,
|
|
61806
|
+
2024
|
|
61807
|
+
];
|
|
61808
|
+
return ES_VERSIONS[index - 1] ?? 5;
|
|
61809
|
+
};
|
|
60590
61810
|
function browsersToESVersion(browsers) {
|
|
60591
61811
|
let esVersion = 2024;
|
|
60592
61812
|
for (const item of browsers){
|
|
@@ -60600,18 +61820,9 @@ function browsersToESVersion(browsers) {
|
|
|
60600
61820
|
break;
|
|
60601
61821
|
}
|
|
60602
61822
|
const versions = ES_VERSIONS_MAP[browser];
|
|
60603
|
-
if (versions)
|
|
60604
|
-
|
|
60605
|
-
|
|
60606
|
-
else if (version < versions[2]) esVersion = Math.min(2016, esVersion);
|
|
60607
|
-
else if (version < versions[3]) esVersion = Math.min(2017, esVersion);
|
|
60608
|
-
else if (version < versions[4]) esVersion = Math.min(2018, esVersion);
|
|
60609
|
-
else if (version < versions[5]) esVersion = Math.min(2019, esVersion);
|
|
60610
|
-
else if (version < versions[6]) esVersion = Math.min(2020, esVersion);
|
|
60611
|
-
else if (version < versions[7]) esVersion = Math.min(2021, esVersion);
|
|
60612
|
-
else if (version < versions[8]) esVersion = Math.min(2022, esVersion);
|
|
60613
|
-
else if (version < versions[9]) esVersion = Math.min(2023, esVersion);
|
|
60614
|
-
}
|
|
61823
|
+
if (!versions) continue;
|
|
61824
|
+
const targetVersion = resolveESVersion(version, versions);
|
|
61825
|
+
esVersion = Math.min(targetVersion, esVersion);
|
|
60615
61826
|
}
|
|
60616
61827
|
return esVersion;
|
|
60617
61828
|
}
|
|
@@ -60746,6 +61957,35 @@ const browserslistTargetHandler_resolve = (browsers)=>{
|
|
|
60746
61957
|
9
|
|
60747
61958
|
]
|
|
60748
61959
|
}),
|
|
61960
|
+
computedProperty: rawChecker({
|
|
61961
|
+
chrome: 47,
|
|
61962
|
+
and_chr: 47,
|
|
61963
|
+
edge: 12,
|
|
61964
|
+
firefox: 34,
|
|
61965
|
+
and_ff: 34,
|
|
61966
|
+
opera: 34,
|
|
61967
|
+
op_mob: 34,
|
|
61968
|
+
safari: 8,
|
|
61969
|
+
ios_saf: 8,
|
|
61970
|
+
samsung: 5,
|
|
61971
|
+
android: 47,
|
|
61972
|
+
and_qq: [
|
|
61973
|
+
14,
|
|
61974
|
+
9
|
|
61975
|
+
],
|
|
61976
|
+
and_uc: [
|
|
61977
|
+
15,
|
|
61978
|
+
5
|
|
61979
|
+
],
|
|
61980
|
+
kaios: [
|
|
61981
|
+
2,
|
|
61982
|
+
5
|
|
61983
|
+
],
|
|
61984
|
+
node: [
|
|
61985
|
+
4,
|
|
61986
|
+
0
|
|
61987
|
+
]
|
|
61988
|
+
}),
|
|
60749
61989
|
arrowFunction: rawChecker({
|
|
60750
61990
|
chrome: 45,
|
|
60751
61991
|
and_chr: 45,
|
|
@@ -61165,6 +62405,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
61165
62405
|
importScriptsInWorker: false,
|
|
61166
62406
|
globalThis: v(12),
|
|
61167
62407
|
const: v(6),
|
|
62408
|
+
computedProperty: v(4),
|
|
61168
62409
|
templateLiteral: v(4),
|
|
61169
62410
|
optionalChaining: v(14),
|
|
61170
62411
|
methodShorthand: v(4),
|
|
@@ -61210,6 +62451,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
61210
62451
|
importScriptsInWorker: true,
|
|
61211
62452
|
globalThis: v(5),
|
|
61212
62453
|
const: v(1, 1),
|
|
62454
|
+
computedProperty: v(1, 1),
|
|
61213
62455
|
templateLiteral: v(1, 1),
|
|
61214
62456
|
optionalChaining: v(8),
|
|
61215
62457
|
methodShorthand: v(1, 1),
|
|
@@ -61250,6 +62492,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
61250
62492
|
require: false,
|
|
61251
62493
|
globalThis: v(0, 43),
|
|
61252
62494
|
const: v(0, 15),
|
|
62495
|
+
computedProperty: v(0, 15),
|
|
61253
62496
|
templateLiteral: v(0, 13),
|
|
61254
62497
|
optionalChaining: v(0, 44),
|
|
61255
62498
|
methodShorthand: v(0, 15),
|
|
@@ -61274,6 +62517,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
61274
62517
|
return {
|
|
61275
62518
|
esVersion: v > 2022 ? 2022 : v,
|
|
61276
62519
|
const: v >= 2015,
|
|
62520
|
+
computedProperty: v >= 2015,
|
|
61277
62521
|
templateLiteral: v >= 2015,
|
|
61278
62522
|
optionalChaining: v >= 2020,
|
|
61279
62523
|
methodShorthand: v >= 2015,
|
|
@@ -61510,6 +62754,11 @@ const applyCssModuleGeneratorOptionsDefaults = (generatorOptions, { hashFunction
|
|
|
61510
62754
|
D(generatorOptions, 'localIdentHashDigest', 'base64url');
|
|
61511
62755
|
D(generatorOptions, 'localIdentHashDigestLength', 6);
|
|
61512
62756
|
};
|
|
62757
|
+
const applyCssModuleParserOptionsDefaults = (parserOptions)=>{
|
|
62758
|
+
D(parserOptions, 'namedExports', true);
|
|
62759
|
+
D(parserOptions, 'url', true);
|
|
62760
|
+
D(parserOptions, 'import', true);
|
|
62761
|
+
};
|
|
61513
62762
|
const applyJsonGeneratorOptionsDefaults = (generatorOptions)=>{
|
|
61514
62763
|
D(generatorOptions, 'JSONParse', true);
|
|
61515
62764
|
};
|
|
@@ -61536,18 +62785,17 @@ const applyModuleDefaults = (module, { asyncWebAssembly, targetProperties, mode,
|
|
|
61536
62785
|
assertNotNill(module.parser.css);
|
|
61537
62786
|
D(module.parser.css, 'namedExports', true);
|
|
61538
62787
|
D(module.parser.css, 'url', true);
|
|
62788
|
+
D(module.parser.css, 'import', true);
|
|
62789
|
+
D(module.parser.css, 'animation', true);
|
|
61539
62790
|
F(module.parser, 'css/auto', ()=>({}));
|
|
61540
62791
|
assertNotNill(module.parser['css/auto']);
|
|
61541
|
-
|
|
61542
|
-
D(module.parser['css/auto'], 'url', true);
|
|
62792
|
+
applyCssModuleParserOptionsDefaults(module.parser['css/auto']);
|
|
61543
62793
|
F(module.parser, 'css/global', ()=>({}));
|
|
61544
62794
|
assertNotNill(module.parser['css/global']);
|
|
61545
|
-
|
|
61546
|
-
D(module.parser['css/global'], 'url', true);
|
|
62795
|
+
applyCssModuleParserOptionsDefaults(module.parser['css/global']);
|
|
61547
62796
|
F(module.parser, 'css/module', ()=>({}));
|
|
61548
62797
|
assertNotNill(module.parser['css/module']);
|
|
61549
|
-
|
|
61550
|
-
D(module.parser['css/module'], 'url', true);
|
|
62798
|
+
applyCssModuleParserOptionsDefaults(module.parser['css/module']);
|
|
61551
62799
|
F(module.generator, 'css', ()=>({}));
|
|
61552
62800
|
assertNotNill(module.generator.css);
|
|
61553
62801
|
applyCssGeneratorOptionsDefaults(module.generator.css, {
|
|
@@ -61743,6 +62991,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
|
|
|
61743
62991
|
F(environment, 'globalThis', ()=>tp && tp.globalThis);
|
|
61744
62992
|
F(environment, 'bigIntLiteral', ()=>tp && optimistic(tp.bigIntLiteral));
|
|
61745
62993
|
F(environment, 'const', ()=>tp && optimistic(tp.const));
|
|
62994
|
+
F(environment, 'computedProperty', ()=>tp && optimistic(tp.computedProperty));
|
|
61746
62995
|
F(environment, 'methodShorthand', ()=>tp && optimistic(tp.methodShorthand));
|
|
61747
62996
|
F(environment, 'arrowFunction', ()=>tp && optimistic(tp.arrowFunction));
|
|
61748
62997
|
F(environment, 'asyncFunction', ()=>tp && optimistic(tp.asyncFunction));
|
|
@@ -61902,7 +63151,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
|
|
|
61902
63151
|
});
|
|
61903
63152
|
D(output, 'bundlerInfo', {});
|
|
61904
63153
|
if ('object' == typeof output.bundlerInfo) {
|
|
61905
|
-
D(output.bundlerInfo, 'version', "2.0.
|
|
63154
|
+
D(output.bundlerInfo, 'version', "2.0.6");
|
|
61906
63155
|
D(output.bundlerInfo, 'bundler', 'rspack');
|
|
61907
63156
|
D(output.bundlerInfo, 'force', false);
|
|
61908
63157
|
}
|
|
@@ -62873,7 +64122,7 @@ const mkdirp = (fs, p, callback)=>{
|
|
|
62873
64122
|
callback();
|
|
62874
64123
|
});
|
|
62875
64124
|
};
|
|
62876
|
-
var FileSystem_Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
64125
|
+
var FileSystem_Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
62877
64126
|
const BUFFER_SIZE = 1000;
|
|
62878
64127
|
const ASYNC_NOOP = async ()=>{};
|
|
62879
64128
|
const NOOP_FILESYSTEM = {
|
|
@@ -63560,7 +64809,7 @@ class MultiStats {
|
|
|
63560
64809
|
return obj;
|
|
63561
64810
|
});
|
|
63562
64811
|
if (childOptions.version) {
|
|
63563
|
-
obj.rspackVersion = "2.0.
|
|
64812
|
+
obj.rspackVersion = "2.0.6";
|
|
63564
64813
|
obj.version = "5.75.0";
|
|
63565
64814
|
}
|
|
63566
64815
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
|
|
@@ -65266,7 +66515,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
65266
66515
|
},
|
|
65267
66516
|
version: (object)=>{
|
|
65268
66517
|
object.version = "5.75.0";
|
|
65269
|
-
object.rspackVersion = "2.0.
|
|
66518
|
+
object.rspackVersion = "2.0.6";
|
|
65270
66519
|
},
|
|
65271
66520
|
env: (object, _compilation, _context, { _env })=>{
|
|
65272
66521
|
object.env = _env;
|
|
@@ -66770,7 +68019,7 @@ class RspackOptionsApply {
|
|
|
66770
68019
|
compiler.outputFileSystem = fs_0["default"];
|
|
66771
68020
|
if (options.externals) {
|
|
66772
68021
|
if (!options.externalsType) throw new Error('options.externalsType should have a value after `applyRspackOptionsDefaults`');
|
|
66773
|
-
new ExternalsPlugin(options.externalsType, options.externals, false).apply(compiler);
|
|
68022
|
+
new ExternalsPlugin(options.externalsType, options.externals, false, getModernModuleCjsExternalType(options)).apply(compiler);
|
|
66774
68023
|
}
|
|
66775
68024
|
if (options.externalsPresets.node) {
|
|
66776
68025
|
new NodeTargetPlugin().apply(compiler);
|
|
@@ -66848,6 +68097,7 @@ class RspackOptionsApply {
|
|
|
66848
68097
|
if (options.optimization.mergeDuplicateChunks) new MergeDuplicateChunksPlugin().apply(compiler);
|
|
66849
68098
|
if (options.optimization.sideEffects) new SideEffectsFlagPlugin(options.experiments.pureFunctions).apply(compiler);
|
|
66850
68099
|
if (options.optimization.providedExports) new FlagDependencyExportsPlugin().apply(compiler);
|
|
68100
|
+
if ('production' === options.mode) new CircularModulesInfoPlugin().apply(compiler);
|
|
66851
68101
|
if (options.optimization.usedExports) new FlagDependencyUsagePlugin('global' === options.optimization.usedExports).apply(compiler);
|
|
66852
68102
|
if (options.optimization.concatenateModules) new ModuleConcatenationPlugin().apply(compiler);
|
|
66853
68103
|
if (options.optimization.inlineExports) new InlineExportsPlugin().apply(compiler);
|
|
@@ -66933,6 +68183,13 @@ class RspackOptionsApply {
|
|
|
66933
68183
|
compiler.hooks.afterResolvers.call(compiler);
|
|
66934
68184
|
}
|
|
66935
68185
|
}
|
|
68186
|
+
function getModernModuleCjsExternalType(options) {
|
|
68187
|
+
const { context, target } = options;
|
|
68188
|
+
assertNotNill(context);
|
|
68189
|
+
if (null == target || false === target) return 'commonjs';
|
|
68190
|
+
const targetProperties = 'string' == typeof target ? getTargetProperties(target, context) : getTargetsProperties(target, context);
|
|
68191
|
+
return targetProperties.nodeBuiltins ? 'node-commonjs' : 'commonjs';
|
|
68192
|
+
}
|
|
66936
68193
|
const validateConfig_ERROR_PREFIX = 'Invalid Rspack configuration:';
|
|
66937
68194
|
const validateContext = ({ context })=>{
|
|
66938
68195
|
if (context && !(0, path_browserify.isAbsolute)(context)) throw new Error(`${validateConfig_ERROR_PREFIX} "context" must be an absolute path, get "${context}".`);
|
|
@@ -67155,7 +68412,7 @@ const createHtmlPluginHooksRegisters = (getCompiler, createTap)=>{
|
|
|
67155
68412
|
})
|
|
67156
68413
|
};
|
|
67157
68414
|
};
|
|
67158
|
-
var compilation_Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
68415
|
+
var compilation_Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
67159
68416
|
class CodeGenerationResult {
|
|
67160
68417
|
#inner;
|
|
67161
68418
|
constructor(result){
|
|
@@ -67623,7 +68880,7 @@ const createContextModuleFactoryHooksRegisters = (getCompiler, createTap)=>({
|
|
|
67623
68880
|
};
|
|
67624
68881
|
})
|
|
67625
68882
|
});
|
|
67626
|
-
var javascriptModules_Buffer = __webpack_require__("./src/browser/buffer.ts")
|
|
68883
|
+
var javascriptModules_Buffer = __webpack_require__("./src/browser/buffer.ts").h;
|
|
67627
68884
|
const createJavaScriptModulesHooksRegisters = (getCompiler, createTap)=>({
|
|
67628
68885
|
registerJavascriptModulesChunkHashTaps: createTap(rspack_wasi_browser.RegisterJsTapKind.JavascriptModulesChunkHash, function() {
|
|
67629
68886
|
return JavascriptModulesPlugin.getCompilationHooks(getCompiler().__internal__get_compilation()).chunkHash;
|
|
@@ -68056,6 +69313,7 @@ class Compiler {
|
|
|
68056
69313
|
#platform;
|
|
68057
69314
|
#target;
|
|
68058
69315
|
options;
|
|
69316
|
+
#rawOptions;
|
|
68059
69317
|
unsafeFastDrop = false;
|
|
68060
69318
|
__internal_browser_require;
|
|
68061
69319
|
constructor(context, options){
|
|
@@ -68438,7 +69696,6 @@ class Compiler {
|
|
|
68438
69696
|
});
|
|
68439
69697
|
}
|
|
68440
69698
|
close(callback) {
|
|
68441
|
-
if (this.#compilation) this.#bindingCompilationMap.delete(this.#compilation.__internal_getInner());
|
|
68442
69699
|
if (this.watching) return void this.watching.close(()=>{
|
|
68443
69700
|
this.close(callback);
|
|
68444
69701
|
});
|
|
@@ -68470,8 +69727,7 @@ class Compiler {
|
|
|
68470
69727
|
}
|
|
68471
69728
|
__internal__create_compilation(native) {
|
|
68472
69729
|
let compilation = this.#bindingCompilationMap.get(native);
|
|
68473
|
-
if (compilation)
|
|
68474
|
-
else {
|
|
69730
|
+
if (!compilation) {
|
|
68475
69731
|
compilation = new Compilation(this, native);
|
|
68476
69732
|
compilation.name = this.name;
|
|
68477
69733
|
this.#bindingCompilationMap.set(native, compilation);
|
|
@@ -68505,14 +69761,14 @@ class Compiler {
|
|
|
68505
69761
|
if (error) return callback(error);
|
|
68506
69762
|
if (this.#instance) return callback(null, this.#instance);
|
|
68507
69763
|
const { options } = this;
|
|
68508
|
-
|
|
68509
|
-
rawOptions.__references = Object.fromEntries(this.#ruleSet.builtinReferences.entries());
|
|
68510
|
-
rawOptions.__virtual_files = VirtualModulesPlugin.__internal__take_virtual_files(this);
|
|
68511
|
-
const instanceBinding = __webpack_require__("@rspack/binding?
|
|
69764
|
+
this.#rawOptions = getRawOptions(options, this);
|
|
69765
|
+
this.#rawOptions.__references = Object.fromEntries(this.#ruleSet.builtinReferences.entries());
|
|
69766
|
+
this.#rawOptions.__virtual_files = VirtualModulesPlugin.__internal__take_virtual_files(this);
|
|
69767
|
+
const instanceBinding = __webpack_require__("@rspack/binding?1a47");
|
|
68512
69768
|
this.#registers = this.#createHooksRegisters();
|
|
68513
69769
|
const inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
|
|
68514
69770
|
try {
|
|
68515
|
-
this.#instance = new instanceBinding.JsCompiler(this.compilerPath, rawOptions, this.#builtinPlugins, this.#registers, ThreadsafeOutputNodeFS.__to_binding(this.outputFileSystem), this.intermediateFileSystem ? ThreadsafeIntermediateNodeFS.__to_binding(this.intermediateFileSystem) : void 0, inputFileSystem, ResolverFactory.__to_binding(this.resolverFactory), this.unsafeFastDrop, this.#platform);
|
|
69771
|
+
this.#instance = new instanceBinding.JsCompiler(this.compilerPath, this.#rawOptions, this.#builtinPlugins, this.#registers, ThreadsafeOutputNodeFS.__to_binding(this.outputFileSystem), this.intermediateFileSystem ? ThreadsafeIntermediateNodeFS.__to_binding(this.intermediateFileSystem) : void 0, inputFileSystem, ResolverFactory.__to_binding(this.resolverFactory), this.unsafeFastDrop, this.#platform);
|
|
68516
69772
|
callback(null, this.#instance);
|
|
68517
69773
|
} catch (err) {
|
|
68518
69774
|
if (err instanceof Error) delete err.stack;
|
|
@@ -68951,7 +70207,7 @@ function isSingleton(compiler) {
|
|
|
68951
70207
|
function setSingleton(compiler) {
|
|
68952
70208
|
compilerSet.add(compiler);
|
|
68953
70209
|
}
|
|
68954
|
-
class ShareRuntimePlugin extends
|
|
70210
|
+
class ShareRuntimePlugin extends RspackBuiltinPlugin {
|
|
68955
70211
|
enhanced;
|
|
68956
70212
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ShareRuntimePlugin;
|
|
68957
70213
|
constructor(enhanced = false){
|
|
@@ -68960,7 +70216,7 @@ class ShareRuntimePlugin extends base_RspackBuiltinPlugin {
|
|
|
68960
70216
|
raw(compiler) {
|
|
68961
70217
|
if (isSingleton(compiler)) return;
|
|
68962
70218
|
setSingleton(compiler);
|
|
68963
|
-
return
|
|
70219
|
+
return createBuiltinPlugin(this.name, this.enhanced);
|
|
68964
70220
|
}
|
|
68965
70221
|
}
|
|
68966
70222
|
const VERSION_PATTERN_REGEXP = /^([\d^=v<>~]|[*xX]$)/;
|
|
@@ -69008,7 +70264,7 @@ function normalizeConsumeShareOptions(consumes, shareScope) {
|
|
|
69008
70264
|
treeShakingMode: item.treeShakingMode
|
|
69009
70265
|
}));
|
|
69010
70266
|
}
|
|
69011
|
-
class ConsumeSharedPlugin extends
|
|
70267
|
+
class ConsumeSharedPlugin extends RspackBuiltinPlugin {
|
|
69012
70268
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ConsumeSharedPlugin;
|
|
69013
70269
|
_options;
|
|
69014
70270
|
constructor(options){
|
|
@@ -69027,7 +70283,7 @@ class ConsumeSharedPlugin extends base_RspackBuiltinPlugin {
|
|
|
69027
70283
|
})),
|
|
69028
70284
|
enhanced: this._options.enhanced
|
|
69029
70285
|
};
|
|
69030
|
-
return
|
|
70286
|
+
return createBuiltinPlugin(this.name, rawOptions);
|
|
69031
70287
|
}
|
|
69032
70288
|
}
|
|
69033
70289
|
function normalizeProvideShareOptions(options, shareScope, enhanced) {
|
|
@@ -69059,7 +70315,7 @@ function normalizeProvideShareOptions(options, shareScope, enhanced) {
|
|
|
69059
70315
|
return raw;
|
|
69060
70316
|
});
|
|
69061
70317
|
}
|
|
69062
|
-
class ProvideSharedPlugin extends
|
|
70318
|
+
class ProvideSharedPlugin extends RspackBuiltinPlugin {
|
|
69063
70319
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ProvideSharedPlugin;
|
|
69064
70320
|
_provides;
|
|
69065
70321
|
_enhanced;
|
|
@@ -69074,7 +70330,7 @@ class ProvideSharedPlugin extends base_RspackBuiltinPlugin {
|
|
|
69074
70330
|
key,
|
|
69075
70331
|
...v
|
|
69076
70332
|
}));
|
|
69077
|
-
return
|
|
70333
|
+
return createBuiltinPlugin(this.name, rawOptions);
|
|
69078
70334
|
}
|
|
69079
70335
|
}
|
|
69080
70336
|
function validateShareScope(shareScope, enhanced, pluginName) {
|
|
@@ -69299,7 +70555,7 @@ function normalizeManifestOptions(mfConfig) {
|
|
|
69299
70555
|
name: containerName
|
|
69300
70556
|
};
|
|
69301
70557
|
}
|
|
69302
|
-
class ModuleFederationManifestPlugin extends
|
|
70558
|
+
class ModuleFederationManifestPlugin extends RspackBuiltinPlugin {
|
|
69303
70559
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ModuleFederationManifestPlugin;
|
|
69304
70560
|
rawOpts;
|
|
69305
70561
|
constructor(opts){
|
|
@@ -69323,11 +70579,11 @@ class ModuleFederationManifestPlugin extends base_RspackBuiltinPlugin {
|
|
|
69323
70579
|
shared,
|
|
69324
70580
|
buildInfo: getBuildInfo('development' === compiler.options.mode, compiler, this.rawOpts)
|
|
69325
70581
|
};
|
|
69326
|
-
return
|
|
70582
|
+
return createBuiltinPlugin(this.name, rawOptions);
|
|
69327
70583
|
}
|
|
69328
70584
|
}
|
|
69329
70585
|
const SHARE_ENTRY_ASSET = 'collect-shared-entries.json';
|
|
69330
|
-
class CollectSharedEntryPlugin extends
|
|
70586
|
+
class CollectSharedEntryPlugin extends RspackBuiltinPlugin {
|
|
69331
70587
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.CollectSharedEntryPlugin;
|
|
69332
70588
|
sharedOptions;
|
|
69333
70589
|
_collectedEntries;
|
|
@@ -69367,14 +70623,14 @@ class CollectSharedEntryPlugin extends base_RspackBuiltinPlugin {
|
|
|
69367
70623
|
})),
|
|
69368
70624
|
filename: this.getFilename()
|
|
69369
70625
|
};
|
|
69370
|
-
return
|
|
70626
|
+
return createBuiltinPlugin(this.name, rawOptions);
|
|
69371
70627
|
}
|
|
69372
70628
|
}
|
|
69373
70629
|
function assert(condition, msg) {
|
|
69374
70630
|
if (!condition) throw new Error(msg);
|
|
69375
70631
|
}
|
|
69376
70632
|
const HOT_UPDATE_SUFFIX = '.hot-update';
|
|
69377
|
-
class SharedContainerPlugin extends
|
|
70633
|
+
class SharedContainerPlugin extends RspackBuiltinPlugin {
|
|
69378
70634
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.SharedContainerPlugin;
|
|
69379
70635
|
filename = '';
|
|
69380
70636
|
_options;
|
|
@@ -69411,7 +70667,7 @@ class SharedContainerPlugin extends base_RspackBuiltinPlugin {
|
|
|
69411
70667
|
raw(compiler) {
|
|
69412
70668
|
const { library } = this._options;
|
|
69413
70669
|
if (!compiler.options.output.enabledLibraryTypes.includes(library.type)) compiler.options.output.enabledLibraryTypes.push(library.type);
|
|
69414
|
-
return
|
|
70670
|
+
return createBuiltinPlugin(this.name, this._options);
|
|
69415
70671
|
}
|
|
69416
70672
|
apply(compiler) {
|
|
69417
70673
|
super.apply(compiler);
|
|
@@ -69432,7 +70688,7 @@ class SharedContainerPlugin extends base_RspackBuiltinPlugin {
|
|
|
69432
70688
|
});
|
|
69433
70689
|
}
|
|
69434
70690
|
}
|
|
69435
|
-
class SharedUsedExportsOptimizerPlugin extends
|
|
70691
|
+
class SharedUsedExportsOptimizerPlugin extends RspackBuiltinPlugin {
|
|
69436
70692
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.SharedUsedExportsOptimizerPlugin;
|
|
69437
70693
|
sharedOptions;
|
|
69438
70694
|
injectTreeShakingUsedExports;
|
|
@@ -69459,7 +70715,7 @@ class SharedUsedExportsOptimizerPlugin extends base_RspackBuiltinPlugin {
|
|
|
69459
70715
|
}
|
|
69460
70716
|
raw() {
|
|
69461
70717
|
if (!this.sharedOptions.length) return;
|
|
69462
|
-
return
|
|
70718
|
+
return createBuiltinPlugin(this.name, this.buildOptions());
|
|
69463
70719
|
}
|
|
69464
70720
|
}
|
|
69465
70721
|
const VIRTUAL_ENTRY = './virtual-entry.js';
|
|
@@ -69940,7 +71196,7 @@ function getDefaultEntryRuntime(paths, options, compiler, treeShakingShareFallba
|
|
|
69940
71196
|
].join(';');
|
|
69941
71197
|
return `@module-federation/runtime/rspack.js!=!data:text/javascript,${encodeURIComponent(content)}`;
|
|
69942
71198
|
}
|
|
69943
|
-
class ContainerPlugin extends
|
|
71199
|
+
class ContainerPlugin extends RspackBuiltinPlugin {
|
|
69944
71200
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ContainerPlugin;
|
|
69945
71201
|
_options;
|
|
69946
71202
|
constructor(options){
|
|
@@ -69987,10 +71243,10 @@ class ContainerPlugin extends base_RspackBuiltinPlugin {
|
|
|
69987
71243
|
})),
|
|
69988
71244
|
enhanced
|
|
69989
71245
|
};
|
|
69990
|
-
return
|
|
71246
|
+
return createBuiltinPlugin(this.name, rawOptions);
|
|
69991
71247
|
}
|
|
69992
71248
|
}
|
|
69993
|
-
class ContainerReferencePlugin extends
|
|
71249
|
+
class ContainerReferencePlugin extends RspackBuiltinPlugin {
|
|
69994
71250
|
name = external_rspack_wasi_browser_js_BuiltinPluginName.ContainerReferencePlugin;
|
|
69995
71251
|
_options;
|
|
69996
71252
|
constructor(options){
|
|
@@ -70040,7 +71296,7 @@ class ContainerReferencePlugin extends base_RspackBuiltinPlugin {
|
|
|
70040
71296
|
})),
|
|
70041
71297
|
enhanced: this._options.enhanced
|
|
70042
71298
|
};
|
|
70043
|
-
return
|
|
71299
|
+
return createBuiltinPlugin(this.name, rawOptions);
|
|
70044
71300
|
}
|
|
70045
71301
|
}
|
|
70046
71302
|
class ModuleFederationPluginV1 {
|
|
@@ -70098,7 +71354,7 @@ function transformSync(source, options) {
|
|
|
70098
71354
|
const _options = JSON.stringify(options || {});
|
|
70099
71355
|
return rspack_wasi_browser.transformSync(source, _options);
|
|
70100
71356
|
}
|
|
70101
|
-
const exports_rspackVersion = "2.0.
|
|
71357
|
+
const exports_rspackVersion = "2.0.6";
|
|
70102
71358
|
const exports_version = "5.75.0";
|
|
70103
71359
|
const exports_WebpackError = Error;
|
|
70104
71360
|
const exports_config = {
|
|
@@ -70124,6 +71380,7 @@ const electron = {
|
|
|
70124
71380
|
ElectronTargetPlugin: ElectronTargetPlugin
|
|
70125
71381
|
};
|
|
70126
71382
|
const ids = {
|
|
71383
|
+
DeterministicModuleIdsPlugin: DeterministicModuleIdsPlugin,
|
|
70127
71384
|
HashedModuleIdsPlugin: HashedModuleIdsPlugin
|
|
70128
71385
|
};
|
|
70129
71386
|
const exports_library = {
|