@skip-go/widget 3.14.5 → 3.14.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/build/{add-BJQPsA8k.js → add-OU9UR09f.js} +1 -1
- package/build/{all-wallets-B11_4Ybe.js → all-wallets-CnC4K8P_.js} +1 -1
- package/build/{app-store-CARimMW3.js → app-store-BNT7XXF6.js} +1 -1
- package/build/{apple-DEuxqvQi.js → apple-VlWBFQL3.js} +1 -1
- package/build/{arrow-bottom-BsHbGBdB.js → arrow-bottom-BrTpz555.js} +1 -1
- package/build/{arrow-bottom-circle-Cs2knW0e.js → arrow-bottom-circle-BFqNXfAJ.js} +1 -1
- package/build/{arrow-left-DzEykZh_.js → arrow-left-DTSO5oTj.js} +1 -1
- package/build/{arrow-right-BhBVwf9g.js → arrow-right-CHmRiK5M.js} +1 -1
- package/build/{arrow-top-CQFpDrN4.js → arrow-top-HOpXRBeh.js} +1 -1
- package/build/{bank-CjU2Dyen.js → bank-D9n-fWz5.js} +1 -1
- package/build/{basic-DEapmA0E.js → basic-HCdYkMDV.js} +2 -2
- package/build/{browser-DuTL2ZwF.js → browser-D3bwXmI4.js} +1 -1
- package/build/{card-H_VBjXH3.js → card-D9vxcllp.js} +1 -1
- package/build/{checkmark-Dtjtjmf1.js → checkmark-CWuCFCbc.js} +1 -1
- package/build/{checkmark-bold-z4hM-TsC.js → checkmark-bold-C-ofvBtG.js} +1 -1
- package/build/{chevron-bottom-CtArV2wF.js → chevron-bottom-DdxUv2fD.js} +1 -1
- package/build/{chevron-left-DdvY2CTb.js → chevron-left-CBSBkfMZ.js} +1 -1
- package/build/{chevron-right-CFXUESPe.js → chevron-right-DAlUsIyJ.js} +1 -1
- package/build/{chevron-top-Dy9Hw3fV.js → chevron-top-DOHisvoY.js} +1 -1
- package/build/{chrome-store-C_pTffOw.js → chrome-store-ckBKFu2u.js} +1 -1
- package/build/{clock-CMOyk9S9.js → clock-EVWQaxj4.js} +1 -1
- package/build/{close-Dms7aMSR.js → close-Kju9mNwB.js} +1 -1
- package/build/{coinPlaceholder-B2cZTC3R.js → coinPlaceholder-DSj4kRrT.js} +1 -1
- package/build/{compass-DNOfEAM2.js → compass-CK1JIozN.js} +1 -1
- package/build/{copy-DZbibH1K.js → copy-BVAzSylU.js} +1 -1
- package/build/{core-BfKZ4PIC.js → core-C5Tt1lSh.js} +4 -4
- package/build/{cursor-BbBjTjwp.js → cursor-7fWVYUTS.js} +1 -1
- package/build/{cursor-transparent-DCOjv2sR.js → cursor-transparent-D06UOvOi.js} +1 -1
- package/build/{desktop-uyYbF0Mn.js → desktop-DKKUnNl6.js} +1 -1
- package/build/{disconnect-CetZ4edH.js → disconnect-Vh90GXp6.js} +1 -1
- package/build/{discord-Cf_HZf3N.js → discord-CjN6c_PW.js} +1 -1
- package/build/{etherscan-C4OLKng2.js → etherscan-CkbQizFu.js} +1 -1
- package/build/{exclamation-triangle-uVxTDhvu.js → exclamation-triangle-CbRMu3fz.js} +1 -1
- package/build/{extension-DxctmiWz.js → extension-BMBjiq_p.js} +1 -1
- package/build/{external-link-MqCcqsdd.js → external-link-UULbZUf4.js} +1 -1
- package/build/{facebook-C4dd-ziA.js → facebook-C91t60c_.js} +1 -1
- package/build/{farcaster-CeVdeAEP.js → farcaster-DYbQRXPh.js} +1 -1
- package/build/{filters-BiMkQFV8.js → filters-DFnZXBsy.js} +1 -1
- package/build/{github-CU_W_N6N.js → github-DbU7ZrOo.js} +1 -1
- package/build/{google-7s8MQVzB.js → google-kNiA63Ur.js} +1 -1
- package/build/{help-circle-C3-nycKi.js → help-circle-C7uFI7Ku.js} +1 -1
- package/build/{id-C2tHtjX6.js → id-Bg-Zp7io.js} +1 -1
- package/build/{image-DPaMR_cv.js → image-DB--nbLZ.js} +1 -1
- package/build/{index-jvbs7eGH.js → index-BY1pAz15.js} +1916 -62
- package/build/{index-omwtuTW1.js → index-CusgsBvY.js} +78 -78
- package/build/{index.es-LTt2Eg_D.js → index.es-CyMUlQCP.js} +20 -1787
- package/build/index.js +1 -1
- package/build/{info-qKe_hnXy.js → info-BiDa0NUh.js} +1 -1
- package/build/{info-circle-B_IxCfxa.js → info-circle-jDRUilD2.js} +1 -1
- package/build/{lightbulb-1XI0Bxv-.js → lightbulb-Cjzd_5vT.js} +1 -1
- package/build/{mail-CJW1dmhW.js → mail-BhHxMnnb.js} +1 -1
- package/build/{mobile-DHY_7Eey.js → mobile-CVEErxrI.js} +1 -1
- package/build/{more-CHCKQBcM.js → more-CfbjsXii.js} +1 -1
- package/build/{network-placeholder-Bjoe5sTj.js → network-placeholder-D9Hcdrem.js} +1 -1
- package/build/{nftPlaceholder-BfGB28hh.js → nftPlaceholder-CCUcacNJ.js} +1 -1
- package/build/{off-Bf2iuTEi.js → off-ocoCgFJP.js} +1 -1
- package/build/{play-store-BIvS0r4I.js → play-store-83Y_snPu.js} +1 -1
- package/build/{plus-qgz3JQAB.js → plus-CD7xYh2p.js} +1 -1
- package/build/{qr-code-BuWsCw2z.js → qr-code-BW0gz7pJ.js} +1 -1
- package/build/{recycle-horizontal-B1CVSSLJ.js → recycle-horizontal-Ds7s7Sit.js} +1 -1
- package/build/{refresh-BhvhNniM.js → refresh-CJ9Y8DnB.js} +1 -1
- package/build/{reown-logo-C5z3wp07.js → reown-logo-BGBwEvrd.js} +1 -1
- package/build/{search-BTpo0HGA.js → search--iTcbqZy.js} +1 -1
- package/build/{send-B8pnkBAp.js → send-CLkzavxP.js} +1 -1
- package/build/{swapHorizontal-A29wlFie.js → swapHorizontal-CKPsXWdA.js} +1 -1
- package/build/{swapHorizontalBold-CG4RbMR8.js → swapHorizontalBold-DDCTIIzG.js} +1 -1
- package/build/{swapHorizontalMedium-BZPbiWG7.js → swapHorizontalMedium-lUQACbbW.js} +1 -1
- package/build/{swapHorizontalRoundedBold-CgYvX4sR.js → swapHorizontalRoundedBold-Cg9aevUh.js} +1 -1
- package/build/{swapVertical-DGjhPMtl.js → swapVertical-DNTwnj6a.js} +1 -1
- package/build/{telegram-BTYv80UF.js → telegram-C4O1GO_a.js} +1 -1
- package/build/{three-dots-CK7eAfOP.js → three-dots-DoPYPHEn.js} +1 -1
- package/build/{twitch-K05X_UT8.js → twitch-B3UmQm3u.js} +1 -1
- package/build/{twitterIcon-BE4qUrhF.js → twitterIcon-oHOf3N21.js} +1 -1
- package/build/{verify-zHV40_w6.js → verify-DfKajNvm.js} +1 -1
- package/build/{verify-filled-BfZdE__v.js → verify-filled-2w9LL51n.js} +1 -1
- package/build/{w3m-modal-DkheqxGa.js → w3m-modal-CwfW-8ec.js} +2 -2
- package/build/{wallet-BTbqWApb.js → wallet-CMhaBAHn.js} +1 -1
- package/build/{wallet-placeholder-B6hnZ20G.js → wallet-placeholder-CtnQLBLW.js} +1 -1
- package/build/{walletconnect-BgwXLnVI.js → walletconnect-BddWPfWc.js} +1 -1
- package/build/{warning-circle-B-OJt-sc.js → warning-circle-BGMkOv-1.js} +1 -1
- package/build/{x-Dd85BL0v.js → x-B6DiY0ts.js} +1 -1
- package/package.json +2 -2
|
@@ -1,1772 +1,6 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, a as getAugmentedNamespace, c as commonjsGlobal, p as process$1 } from "./index-
|
|
1
|
+
import { g as getDefaultExportFromCjs, a as getAugmentedNamespace, c as commonjsGlobal, p as process$1, B as Buffer } from "./index-BY1pAz15.js";
|
|
2
2
|
import "viem";
|
|
3
3
|
import $t$2 from "@walletconnect/sign-client";
|
|
4
|
-
var buffer = {};
|
|
5
|
-
var base64Js = {};
|
|
6
|
-
base64Js.byteLength = byteLength;
|
|
7
|
-
base64Js.toByteArray = toByteArray;
|
|
8
|
-
base64Js.fromByteArray = fromByteArray;
|
|
9
|
-
var lookup = [];
|
|
10
|
-
var revLookup = [];
|
|
11
|
-
var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
12
|
-
var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
13
|
-
for (var i$1 = 0, len = code.length; i$1 < len; ++i$1) {
|
|
14
|
-
lookup[i$1] = code[i$1];
|
|
15
|
-
revLookup[code.charCodeAt(i$1)] = i$1;
|
|
16
|
-
}
|
|
17
|
-
revLookup["-".charCodeAt(0)] = 62;
|
|
18
|
-
revLookup["_".charCodeAt(0)] = 63;
|
|
19
|
-
function getLens(b64) {
|
|
20
|
-
var len = b64.length;
|
|
21
|
-
if (len % 4 > 0) {
|
|
22
|
-
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
23
|
-
}
|
|
24
|
-
var validLen = b64.indexOf("=");
|
|
25
|
-
if (validLen === -1) validLen = len;
|
|
26
|
-
var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;
|
|
27
|
-
return [validLen, placeHoldersLen];
|
|
28
|
-
}
|
|
29
|
-
function byteLength(b64) {
|
|
30
|
-
var lens = getLens(b64);
|
|
31
|
-
var validLen = lens[0];
|
|
32
|
-
var placeHoldersLen = lens[1];
|
|
33
|
-
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
34
|
-
}
|
|
35
|
-
function _byteLength(b64, validLen, placeHoldersLen) {
|
|
36
|
-
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
37
|
-
}
|
|
38
|
-
function toByteArray(b64) {
|
|
39
|
-
var tmp;
|
|
40
|
-
var lens = getLens(b64);
|
|
41
|
-
var validLen = lens[0];
|
|
42
|
-
var placeHoldersLen = lens[1];
|
|
43
|
-
var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
|
|
44
|
-
var curByte = 0;
|
|
45
|
-
var len = placeHoldersLen > 0 ? validLen - 4 : validLen;
|
|
46
|
-
var i2;
|
|
47
|
-
for (i2 = 0; i2 < len; i2 += 4) {
|
|
48
|
-
tmp = revLookup[b64.charCodeAt(i2)] << 18 | revLookup[b64.charCodeAt(i2 + 1)] << 12 | revLookup[b64.charCodeAt(i2 + 2)] << 6 | revLookup[b64.charCodeAt(i2 + 3)];
|
|
49
|
-
arr[curByte++] = tmp >> 16 & 255;
|
|
50
|
-
arr[curByte++] = tmp >> 8 & 255;
|
|
51
|
-
arr[curByte++] = tmp & 255;
|
|
52
|
-
}
|
|
53
|
-
if (placeHoldersLen === 2) {
|
|
54
|
-
tmp = revLookup[b64.charCodeAt(i2)] << 2 | revLookup[b64.charCodeAt(i2 + 1)] >> 4;
|
|
55
|
-
arr[curByte++] = tmp & 255;
|
|
56
|
-
}
|
|
57
|
-
if (placeHoldersLen === 1) {
|
|
58
|
-
tmp = revLookup[b64.charCodeAt(i2)] << 10 | revLookup[b64.charCodeAt(i2 + 1)] << 4 | revLookup[b64.charCodeAt(i2 + 2)] >> 2;
|
|
59
|
-
arr[curByte++] = tmp >> 8 & 255;
|
|
60
|
-
arr[curByte++] = tmp & 255;
|
|
61
|
-
}
|
|
62
|
-
return arr;
|
|
63
|
-
}
|
|
64
|
-
function tripletToBase64(num) {
|
|
65
|
-
return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
|
|
66
|
-
}
|
|
67
|
-
function encodeChunk(uint8, start, end) {
|
|
68
|
-
var tmp;
|
|
69
|
-
var output = [];
|
|
70
|
-
for (var i2 = start; i2 < end; i2 += 3) {
|
|
71
|
-
tmp = (uint8[i2] << 16 & 16711680) + (uint8[i2 + 1] << 8 & 65280) + (uint8[i2 + 2] & 255);
|
|
72
|
-
output.push(tripletToBase64(tmp));
|
|
73
|
-
}
|
|
74
|
-
return output.join("");
|
|
75
|
-
}
|
|
76
|
-
function fromByteArray(uint8) {
|
|
77
|
-
var tmp;
|
|
78
|
-
var len = uint8.length;
|
|
79
|
-
var extraBytes = len % 3;
|
|
80
|
-
var parts = [];
|
|
81
|
-
var maxChunkLength = 16383;
|
|
82
|
-
for (var i2 = 0, len2 = len - extraBytes; i2 < len2; i2 += maxChunkLength) {
|
|
83
|
-
parts.push(encodeChunk(uint8, i2, i2 + maxChunkLength > len2 ? len2 : i2 + maxChunkLength));
|
|
84
|
-
}
|
|
85
|
-
if (extraBytes === 1) {
|
|
86
|
-
tmp = uint8[len - 1];
|
|
87
|
-
parts.push(
|
|
88
|
-
lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "=="
|
|
89
|
-
);
|
|
90
|
-
} else if (extraBytes === 2) {
|
|
91
|
-
tmp = (uint8[len - 2] << 8) + uint8[len - 1];
|
|
92
|
-
parts.push(
|
|
93
|
-
lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "="
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
return parts.join("");
|
|
97
|
-
}
|
|
98
|
-
var ieee754 = {};
|
|
99
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
100
|
-
ieee754.read = function(buffer2, offset, isLE, mLen, nBytes) {
|
|
101
|
-
var e2, m2;
|
|
102
|
-
var eLen = nBytes * 8 - mLen - 1;
|
|
103
|
-
var eMax = (1 << eLen) - 1;
|
|
104
|
-
var eBias = eMax >> 1;
|
|
105
|
-
var nBits = -7;
|
|
106
|
-
var i2 = isLE ? nBytes - 1 : 0;
|
|
107
|
-
var d3 = isLE ? -1 : 1;
|
|
108
|
-
var s = buffer2[offset + i2];
|
|
109
|
-
i2 += d3;
|
|
110
|
-
e2 = s & (1 << -nBits) - 1;
|
|
111
|
-
s >>= -nBits;
|
|
112
|
-
nBits += eLen;
|
|
113
|
-
for (; nBits > 0; e2 = e2 * 256 + buffer2[offset + i2], i2 += d3, nBits -= 8) {
|
|
114
|
-
}
|
|
115
|
-
m2 = e2 & (1 << -nBits) - 1;
|
|
116
|
-
e2 >>= -nBits;
|
|
117
|
-
nBits += mLen;
|
|
118
|
-
for (; nBits > 0; m2 = m2 * 256 + buffer2[offset + i2], i2 += d3, nBits -= 8) {
|
|
119
|
-
}
|
|
120
|
-
if (e2 === 0) {
|
|
121
|
-
e2 = 1 - eBias;
|
|
122
|
-
} else if (e2 === eMax) {
|
|
123
|
-
return m2 ? NaN : (s ? -1 : 1) * Infinity;
|
|
124
|
-
} else {
|
|
125
|
-
m2 = m2 + Math.pow(2, mLen);
|
|
126
|
-
e2 = e2 - eBias;
|
|
127
|
-
}
|
|
128
|
-
return (s ? -1 : 1) * m2 * Math.pow(2, e2 - mLen);
|
|
129
|
-
};
|
|
130
|
-
ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
|
|
131
|
-
var e2, m2, c2;
|
|
132
|
-
var eLen = nBytes * 8 - mLen - 1;
|
|
133
|
-
var eMax = (1 << eLen) - 1;
|
|
134
|
-
var eBias = eMax >> 1;
|
|
135
|
-
var rt2 = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
|
|
136
|
-
var i2 = isLE ? 0 : nBytes - 1;
|
|
137
|
-
var d3 = isLE ? 1 : -1;
|
|
138
|
-
var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
|
|
139
|
-
value = Math.abs(value);
|
|
140
|
-
if (isNaN(value) || value === Infinity) {
|
|
141
|
-
m2 = isNaN(value) ? 1 : 0;
|
|
142
|
-
e2 = eMax;
|
|
143
|
-
} else {
|
|
144
|
-
e2 = Math.floor(Math.log(value) / Math.LN2);
|
|
145
|
-
if (value * (c2 = Math.pow(2, -e2)) < 1) {
|
|
146
|
-
e2--;
|
|
147
|
-
c2 *= 2;
|
|
148
|
-
}
|
|
149
|
-
if (e2 + eBias >= 1) {
|
|
150
|
-
value += rt2 / c2;
|
|
151
|
-
} else {
|
|
152
|
-
value += rt2 * Math.pow(2, 1 - eBias);
|
|
153
|
-
}
|
|
154
|
-
if (value * c2 >= 2) {
|
|
155
|
-
e2++;
|
|
156
|
-
c2 /= 2;
|
|
157
|
-
}
|
|
158
|
-
if (e2 + eBias >= eMax) {
|
|
159
|
-
m2 = 0;
|
|
160
|
-
e2 = eMax;
|
|
161
|
-
} else if (e2 + eBias >= 1) {
|
|
162
|
-
m2 = (value * c2 - 1) * Math.pow(2, mLen);
|
|
163
|
-
e2 = e2 + eBias;
|
|
164
|
-
} else {
|
|
165
|
-
m2 = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
|
|
166
|
-
e2 = 0;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
for (; mLen >= 8; buffer2[offset + i2] = m2 & 255, i2 += d3, m2 /= 256, mLen -= 8) {
|
|
170
|
-
}
|
|
171
|
-
e2 = e2 << mLen | m2;
|
|
172
|
-
eLen += mLen;
|
|
173
|
-
for (; eLen > 0; buffer2[offset + i2] = e2 & 255, i2 += d3, e2 /= 256, eLen -= 8) {
|
|
174
|
-
}
|
|
175
|
-
buffer2[offset + i2 - d3] |= s * 128;
|
|
176
|
-
};
|
|
177
|
-
/*!
|
|
178
|
-
* The buffer module from node.js, for the browser.
|
|
179
|
-
*
|
|
180
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
181
|
-
* @license MIT
|
|
182
|
-
*/
|
|
183
|
-
(function(exports) {
|
|
184
|
-
const base64 = base64Js;
|
|
185
|
-
const ieee754$1 = ieee754;
|
|
186
|
-
const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
|
|
187
|
-
exports.Buffer = Buffer2;
|
|
188
|
-
exports.SlowBuffer = SlowBuffer;
|
|
189
|
-
exports.INSPECT_MAX_BYTES = 50;
|
|
190
|
-
const K_MAX_LENGTH = 2147483647;
|
|
191
|
-
exports.kMaxLength = K_MAX_LENGTH;
|
|
192
|
-
const { Uint8Array: GlobalUint8Array, ArrayBuffer: GlobalArrayBuffer, SharedArrayBuffer: GlobalSharedArrayBuffer } = globalThis;
|
|
193
|
-
Buffer2.TYPED_ARRAY_SUPPORT = typedArraySupport();
|
|
194
|
-
if (!Buffer2.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
|
|
195
|
-
console.error(
|
|
196
|
-
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
197
|
-
);
|
|
198
|
-
}
|
|
199
|
-
function typedArraySupport() {
|
|
200
|
-
try {
|
|
201
|
-
const arr = new GlobalUint8Array(1);
|
|
202
|
-
const proto = { foo: function() {
|
|
203
|
-
return 42;
|
|
204
|
-
} };
|
|
205
|
-
Object.setPrototypeOf(proto, GlobalUint8Array.prototype);
|
|
206
|
-
Object.setPrototypeOf(arr, proto);
|
|
207
|
-
return arr.foo() === 42;
|
|
208
|
-
} catch (e2) {
|
|
209
|
-
return false;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
Object.defineProperty(Buffer2.prototype, "parent", {
|
|
213
|
-
enumerable: true,
|
|
214
|
-
get: function() {
|
|
215
|
-
if (!Buffer2.isBuffer(this)) return void 0;
|
|
216
|
-
return this.buffer;
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
Object.defineProperty(Buffer2.prototype, "offset", {
|
|
220
|
-
enumerable: true,
|
|
221
|
-
get: function() {
|
|
222
|
-
if (!Buffer2.isBuffer(this)) return void 0;
|
|
223
|
-
return this.byteOffset;
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
function createBuffer(length) {
|
|
227
|
-
if (length > K_MAX_LENGTH) {
|
|
228
|
-
throw new RangeError('The value "' + length + '" is invalid for option "size"');
|
|
229
|
-
}
|
|
230
|
-
const buf = new GlobalUint8Array(length);
|
|
231
|
-
Object.setPrototypeOf(buf, Buffer2.prototype);
|
|
232
|
-
return buf;
|
|
233
|
-
}
|
|
234
|
-
function Buffer2(arg, encodingOrOffset, length) {
|
|
235
|
-
if (typeof arg === "number") {
|
|
236
|
-
if (typeof encodingOrOffset === "string") {
|
|
237
|
-
throw new TypeError(
|
|
238
|
-
'The "string" argument must be of type string. Received type number'
|
|
239
|
-
);
|
|
240
|
-
}
|
|
241
|
-
return allocUnsafe(arg);
|
|
242
|
-
}
|
|
243
|
-
return from2(arg, encodingOrOffset, length);
|
|
244
|
-
}
|
|
245
|
-
Buffer2.poolSize = 8192;
|
|
246
|
-
function from2(value, encodingOrOffset, length) {
|
|
247
|
-
if (typeof value === "string") {
|
|
248
|
-
return fromString2(value, encodingOrOffset);
|
|
249
|
-
}
|
|
250
|
-
if (GlobalArrayBuffer.isView(value)) {
|
|
251
|
-
return fromArrayView(value);
|
|
252
|
-
}
|
|
253
|
-
if (value == null) {
|
|
254
|
-
throw new TypeError(
|
|
255
|
-
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
|
|
256
|
-
);
|
|
257
|
-
}
|
|
258
|
-
if (isInstance(value, GlobalArrayBuffer) || value && isInstance(value.buffer, GlobalArrayBuffer)) {
|
|
259
|
-
return fromArrayBuffer(value, encodingOrOffset, length);
|
|
260
|
-
}
|
|
261
|
-
if (typeof GlobalSharedArrayBuffer !== "undefined" && (isInstance(value, GlobalSharedArrayBuffer) || value && isInstance(value.buffer, GlobalSharedArrayBuffer))) {
|
|
262
|
-
return fromArrayBuffer(value, encodingOrOffset, length);
|
|
263
|
-
}
|
|
264
|
-
if (typeof value === "number") {
|
|
265
|
-
throw new TypeError(
|
|
266
|
-
'The "value" argument must not be of type number. Received type number'
|
|
267
|
-
);
|
|
268
|
-
}
|
|
269
|
-
const valueOf = value.valueOf && value.valueOf();
|
|
270
|
-
if (valueOf != null && valueOf !== value) {
|
|
271
|
-
return Buffer2.from(valueOf, encodingOrOffset, length);
|
|
272
|
-
}
|
|
273
|
-
const b2 = fromObject(value);
|
|
274
|
-
if (b2) return b2;
|
|
275
|
-
if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
|
|
276
|
-
return Buffer2.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
|
|
277
|
-
}
|
|
278
|
-
throw new TypeError(
|
|
279
|
-
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
|
|
280
|
-
);
|
|
281
|
-
}
|
|
282
|
-
Buffer2.from = function(value, encodingOrOffset, length) {
|
|
283
|
-
return from2(value, encodingOrOffset, length);
|
|
284
|
-
};
|
|
285
|
-
Object.setPrototypeOf(Buffer2.prototype, GlobalUint8Array.prototype);
|
|
286
|
-
Object.setPrototypeOf(Buffer2, GlobalUint8Array);
|
|
287
|
-
function assertSize(size) {
|
|
288
|
-
if (typeof size !== "number") {
|
|
289
|
-
throw new TypeError('"size" argument must be of type number');
|
|
290
|
-
} else if (size < 0) {
|
|
291
|
-
throw new RangeError('The value "' + size + '" is invalid for option "size"');
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
function alloc(size, fill, encoding) {
|
|
295
|
-
assertSize(size);
|
|
296
|
-
if (size <= 0) {
|
|
297
|
-
return createBuffer(size);
|
|
298
|
-
}
|
|
299
|
-
if (fill !== void 0) {
|
|
300
|
-
return typeof encoding === "string" ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill);
|
|
301
|
-
}
|
|
302
|
-
return createBuffer(size);
|
|
303
|
-
}
|
|
304
|
-
Buffer2.alloc = function(size, fill, encoding) {
|
|
305
|
-
return alloc(size, fill, encoding);
|
|
306
|
-
};
|
|
307
|
-
function allocUnsafe(size) {
|
|
308
|
-
assertSize(size);
|
|
309
|
-
return createBuffer(size < 0 ? 0 : checked(size) | 0);
|
|
310
|
-
}
|
|
311
|
-
Buffer2.allocUnsafe = function(size) {
|
|
312
|
-
return allocUnsafe(size);
|
|
313
|
-
};
|
|
314
|
-
Buffer2.allocUnsafeSlow = function(size) {
|
|
315
|
-
return allocUnsafe(size);
|
|
316
|
-
};
|
|
317
|
-
function fromString2(string, encoding) {
|
|
318
|
-
if (typeof encoding !== "string" || encoding === "") {
|
|
319
|
-
encoding = "utf8";
|
|
320
|
-
}
|
|
321
|
-
if (!Buffer2.isEncoding(encoding)) {
|
|
322
|
-
throw new TypeError("Unknown encoding: " + encoding);
|
|
323
|
-
}
|
|
324
|
-
const length = byteLength2(string, encoding) | 0;
|
|
325
|
-
let buf = createBuffer(length);
|
|
326
|
-
const actual = buf.write(string, encoding);
|
|
327
|
-
if (actual !== length) {
|
|
328
|
-
buf = buf.slice(0, actual);
|
|
329
|
-
}
|
|
330
|
-
return buf;
|
|
331
|
-
}
|
|
332
|
-
function fromArrayLike(array) {
|
|
333
|
-
const length = array.length < 0 ? 0 : checked(array.length) | 0;
|
|
334
|
-
const buf = createBuffer(length);
|
|
335
|
-
for (let i2 = 0; i2 < length; i2 += 1) {
|
|
336
|
-
buf[i2] = array[i2] & 255;
|
|
337
|
-
}
|
|
338
|
-
return buf;
|
|
339
|
-
}
|
|
340
|
-
function fromArrayView(arrayView) {
|
|
341
|
-
if (isInstance(arrayView, GlobalUint8Array)) {
|
|
342
|
-
const copy = new GlobalUint8Array(arrayView);
|
|
343
|
-
return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
|
|
344
|
-
}
|
|
345
|
-
return fromArrayLike(arrayView);
|
|
346
|
-
}
|
|
347
|
-
function fromArrayBuffer(array, byteOffset, length) {
|
|
348
|
-
if (byteOffset < 0 || array.byteLength < byteOffset) {
|
|
349
|
-
throw new RangeError('"offset" is outside of buffer bounds');
|
|
350
|
-
}
|
|
351
|
-
if (array.byteLength < byteOffset + (length || 0)) {
|
|
352
|
-
throw new RangeError('"length" is outside of buffer bounds');
|
|
353
|
-
}
|
|
354
|
-
let buf;
|
|
355
|
-
if (byteOffset === void 0 && length === void 0) {
|
|
356
|
-
buf = new GlobalUint8Array(array);
|
|
357
|
-
} else if (length === void 0) {
|
|
358
|
-
buf = new GlobalUint8Array(array, byteOffset);
|
|
359
|
-
} else {
|
|
360
|
-
buf = new GlobalUint8Array(array, byteOffset, length);
|
|
361
|
-
}
|
|
362
|
-
Object.setPrototypeOf(buf, Buffer2.prototype);
|
|
363
|
-
return buf;
|
|
364
|
-
}
|
|
365
|
-
function fromObject(obj) {
|
|
366
|
-
if (Buffer2.isBuffer(obj)) {
|
|
367
|
-
const len = checked(obj.length) | 0;
|
|
368
|
-
const buf = createBuffer(len);
|
|
369
|
-
if (buf.length === 0) {
|
|
370
|
-
return buf;
|
|
371
|
-
}
|
|
372
|
-
obj.copy(buf, 0, 0, len);
|
|
373
|
-
return buf;
|
|
374
|
-
}
|
|
375
|
-
if (obj.length !== void 0) {
|
|
376
|
-
if (typeof obj.length !== "number" || numberIsNaN(obj.length)) {
|
|
377
|
-
return createBuffer(0);
|
|
378
|
-
}
|
|
379
|
-
return fromArrayLike(obj);
|
|
380
|
-
}
|
|
381
|
-
if (obj.type === "Buffer" && Array.isArray(obj.data)) {
|
|
382
|
-
return fromArrayLike(obj.data);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
function checked(length) {
|
|
386
|
-
if (length >= K_MAX_LENGTH) {
|
|
387
|
-
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + K_MAX_LENGTH.toString(16) + " bytes");
|
|
388
|
-
}
|
|
389
|
-
return length | 0;
|
|
390
|
-
}
|
|
391
|
-
function SlowBuffer(length) {
|
|
392
|
-
if (+length != length) {
|
|
393
|
-
length = 0;
|
|
394
|
-
}
|
|
395
|
-
return Buffer2.alloc(+length);
|
|
396
|
-
}
|
|
397
|
-
Buffer2.isBuffer = function isBuffer(b2) {
|
|
398
|
-
return b2 != null && b2._isBuffer === true && b2 !== Buffer2.prototype;
|
|
399
|
-
};
|
|
400
|
-
Buffer2.compare = function compare(a, b2) {
|
|
401
|
-
if (isInstance(a, GlobalUint8Array)) a = Buffer2.from(a, a.offset, a.byteLength);
|
|
402
|
-
if (isInstance(b2, GlobalUint8Array)) b2 = Buffer2.from(b2, b2.offset, b2.byteLength);
|
|
403
|
-
if (!Buffer2.isBuffer(a) || !Buffer2.isBuffer(b2)) {
|
|
404
|
-
throw new TypeError(
|
|
405
|
-
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
406
|
-
);
|
|
407
|
-
}
|
|
408
|
-
if (a === b2) return 0;
|
|
409
|
-
let x2 = a.length;
|
|
410
|
-
let y2 = b2.length;
|
|
411
|
-
for (let i2 = 0, len = Math.min(x2, y2); i2 < len; ++i2) {
|
|
412
|
-
if (a[i2] !== b2[i2]) {
|
|
413
|
-
x2 = a[i2];
|
|
414
|
-
y2 = b2[i2];
|
|
415
|
-
break;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
if (x2 < y2) return -1;
|
|
419
|
-
if (y2 < x2) return 1;
|
|
420
|
-
return 0;
|
|
421
|
-
};
|
|
422
|
-
Buffer2.isEncoding = function isEncoding(encoding) {
|
|
423
|
-
switch (String(encoding).toLowerCase()) {
|
|
424
|
-
case "hex":
|
|
425
|
-
case "utf8":
|
|
426
|
-
case "utf-8":
|
|
427
|
-
case "ascii":
|
|
428
|
-
case "latin1":
|
|
429
|
-
case "binary":
|
|
430
|
-
case "base64":
|
|
431
|
-
case "ucs2":
|
|
432
|
-
case "ucs-2":
|
|
433
|
-
case "utf16le":
|
|
434
|
-
case "utf-16le":
|
|
435
|
-
return true;
|
|
436
|
-
default:
|
|
437
|
-
return false;
|
|
438
|
-
}
|
|
439
|
-
};
|
|
440
|
-
Buffer2.concat = function concat(list, length) {
|
|
441
|
-
if (!Array.isArray(list)) {
|
|
442
|
-
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
443
|
-
}
|
|
444
|
-
if (list.length === 0) {
|
|
445
|
-
return Buffer2.alloc(0);
|
|
446
|
-
}
|
|
447
|
-
let i2;
|
|
448
|
-
if (length === void 0) {
|
|
449
|
-
length = 0;
|
|
450
|
-
for (i2 = 0; i2 < list.length; ++i2) {
|
|
451
|
-
length += list[i2].length;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
const buffer2 = Buffer2.allocUnsafe(length);
|
|
455
|
-
let pos = 0;
|
|
456
|
-
for (i2 = 0; i2 < list.length; ++i2) {
|
|
457
|
-
let buf = list[i2];
|
|
458
|
-
if (isInstance(buf, GlobalUint8Array)) {
|
|
459
|
-
if (pos + buf.length > buffer2.length) {
|
|
460
|
-
if (!Buffer2.isBuffer(buf)) buf = Buffer2.from(buf);
|
|
461
|
-
buf.copy(buffer2, pos);
|
|
462
|
-
} else {
|
|
463
|
-
GlobalUint8Array.prototype.set.call(
|
|
464
|
-
buffer2,
|
|
465
|
-
buf,
|
|
466
|
-
pos
|
|
467
|
-
);
|
|
468
|
-
}
|
|
469
|
-
} else if (!Buffer2.isBuffer(buf)) {
|
|
470
|
-
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
471
|
-
} else {
|
|
472
|
-
buf.copy(buffer2, pos);
|
|
473
|
-
}
|
|
474
|
-
pos += buf.length;
|
|
475
|
-
}
|
|
476
|
-
return buffer2;
|
|
477
|
-
};
|
|
478
|
-
function byteLength2(string, encoding) {
|
|
479
|
-
if (Buffer2.isBuffer(string)) {
|
|
480
|
-
return string.length;
|
|
481
|
-
}
|
|
482
|
-
if (GlobalArrayBuffer.isView(string) || isInstance(string, GlobalArrayBuffer)) {
|
|
483
|
-
return string.byteLength;
|
|
484
|
-
}
|
|
485
|
-
if (typeof string !== "string") {
|
|
486
|
-
throw new TypeError(
|
|
487
|
-
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string
|
|
488
|
-
);
|
|
489
|
-
}
|
|
490
|
-
const len = string.length;
|
|
491
|
-
const mustMatch = arguments.length > 2 && arguments[2] === true;
|
|
492
|
-
if (!mustMatch && len === 0) return 0;
|
|
493
|
-
let loweredCase = false;
|
|
494
|
-
for (; ; ) {
|
|
495
|
-
switch (encoding) {
|
|
496
|
-
case "ascii":
|
|
497
|
-
case "latin1":
|
|
498
|
-
case "binary":
|
|
499
|
-
return len;
|
|
500
|
-
case "utf8":
|
|
501
|
-
case "utf-8":
|
|
502
|
-
return utf8ToBytes(string).length;
|
|
503
|
-
case "ucs2":
|
|
504
|
-
case "ucs-2":
|
|
505
|
-
case "utf16le":
|
|
506
|
-
case "utf-16le":
|
|
507
|
-
return len * 2;
|
|
508
|
-
case "hex":
|
|
509
|
-
return len >>> 1;
|
|
510
|
-
case "base64":
|
|
511
|
-
return base64ToBytes(string).length;
|
|
512
|
-
default:
|
|
513
|
-
if (loweredCase) {
|
|
514
|
-
return mustMatch ? -1 : utf8ToBytes(string).length;
|
|
515
|
-
}
|
|
516
|
-
encoding = ("" + encoding).toLowerCase();
|
|
517
|
-
loweredCase = true;
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
Buffer2.byteLength = byteLength2;
|
|
522
|
-
function slowToString(encoding, start, end) {
|
|
523
|
-
let loweredCase = false;
|
|
524
|
-
if (start === void 0 || start < 0) {
|
|
525
|
-
start = 0;
|
|
526
|
-
}
|
|
527
|
-
if (start > this.length) {
|
|
528
|
-
return "";
|
|
529
|
-
}
|
|
530
|
-
if (end === void 0 || end > this.length) {
|
|
531
|
-
end = this.length;
|
|
532
|
-
}
|
|
533
|
-
if (end <= 0) {
|
|
534
|
-
return "";
|
|
535
|
-
}
|
|
536
|
-
end >>>= 0;
|
|
537
|
-
start >>>= 0;
|
|
538
|
-
if (end <= start) {
|
|
539
|
-
return "";
|
|
540
|
-
}
|
|
541
|
-
if (!encoding) encoding = "utf8";
|
|
542
|
-
while (true) {
|
|
543
|
-
switch (encoding) {
|
|
544
|
-
case "hex":
|
|
545
|
-
return hexSlice(this, start, end);
|
|
546
|
-
case "utf8":
|
|
547
|
-
case "utf-8":
|
|
548
|
-
return utf8Slice(this, start, end);
|
|
549
|
-
case "ascii":
|
|
550
|
-
return asciiSlice(this, start, end);
|
|
551
|
-
case "latin1":
|
|
552
|
-
case "binary":
|
|
553
|
-
return latin1Slice(this, start, end);
|
|
554
|
-
case "base64":
|
|
555
|
-
return base64Slice(this, start, end);
|
|
556
|
-
case "ucs2":
|
|
557
|
-
case "ucs-2":
|
|
558
|
-
case "utf16le":
|
|
559
|
-
case "utf-16le":
|
|
560
|
-
return utf16leSlice(this, start, end);
|
|
561
|
-
default:
|
|
562
|
-
if (loweredCase) throw new TypeError("Unknown encoding: " + encoding);
|
|
563
|
-
encoding = (encoding + "").toLowerCase();
|
|
564
|
-
loweredCase = true;
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
Buffer2.prototype._isBuffer = true;
|
|
569
|
-
function swap(b2, n2, m2) {
|
|
570
|
-
const i2 = b2[n2];
|
|
571
|
-
b2[n2] = b2[m2];
|
|
572
|
-
b2[m2] = i2;
|
|
573
|
-
}
|
|
574
|
-
Buffer2.prototype.swap16 = function swap16() {
|
|
575
|
-
const len = this.length;
|
|
576
|
-
if (len % 2 !== 0) {
|
|
577
|
-
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
578
|
-
}
|
|
579
|
-
for (let i2 = 0; i2 < len; i2 += 2) {
|
|
580
|
-
swap(this, i2, i2 + 1);
|
|
581
|
-
}
|
|
582
|
-
return this;
|
|
583
|
-
};
|
|
584
|
-
Buffer2.prototype.swap32 = function swap32() {
|
|
585
|
-
const len = this.length;
|
|
586
|
-
if (len % 4 !== 0) {
|
|
587
|
-
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
588
|
-
}
|
|
589
|
-
for (let i2 = 0; i2 < len; i2 += 4) {
|
|
590
|
-
swap(this, i2, i2 + 3);
|
|
591
|
-
swap(this, i2 + 1, i2 + 2);
|
|
592
|
-
}
|
|
593
|
-
return this;
|
|
594
|
-
};
|
|
595
|
-
Buffer2.prototype.swap64 = function swap64() {
|
|
596
|
-
const len = this.length;
|
|
597
|
-
if (len % 8 !== 0) {
|
|
598
|
-
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
599
|
-
}
|
|
600
|
-
for (let i2 = 0; i2 < len; i2 += 8) {
|
|
601
|
-
swap(this, i2, i2 + 7);
|
|
602
|
-
swap(this, i2 + 1, i2 + 6);
|
|
603
|
-
swap(this, i2 + 2, i2 + 5);
|
|
604
|
-
swap(this, i2 + 3, i2 + 4);
|
|
605
|
-
}
|
|
606
|
-
return this;
|
|
607
|
-
};
|
|
608
|
-
Buffer2.prototype.toString = function toString2() {
|
|
609
|
-
const length = this.length;
|
|
610
|
-
if (length === 0) return "";
|
|
611
|
-
if (arguments.length === 0) return utf8Slice(this, 0, length);
|
|
612
|
-
return slowToString.apply(this, arguments);
|
|
613
|
-
};
|
|
614
|
-
Buffer2.prototype.toLocaleString = Buffer2.prototype.toString;
|
|
615
|
-
Buffer2.prototype.equals = function equals(b2) {
|
|
616
|
-
if (!Buffer2.isBuffer(b2)) throw new TypeError("Argument must be a Buffer");
|
|
617
|
-
if (this === b2) return true;
|
|
618
|
-
return Buffer2.compare(this, b2) === 0;
|
|
619
|
-
};
|
|
620
|
-
Buffer2.prototype.inspect = function inspect() {
|
|
621
|
-
let str = "";
|
|
622
|
-
const max = exports.INSPECT_MAX_BYTES;
|
|
623
|
-
str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
|
|
624
|
-
if (this.length > max) str += " ... ";
|
|
625
|
-
return "<Buffer " + str + ">";
|
|
626
|
-
};
|
|
627
|
-
if (customInspectSymbol) {
|
|
628
|
-
Buffer2.prototype[customInspectSymbol] = Buffer2.prototype.inspect;
|
|
629
|
-
}
|
|
630
|
-
Buffer2.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
|
|
631
|
-
if (isInstance(target, GlobalUint8Array)) {
|
|
632
|
-
target = Buffer2.from(target, target.offset, target.byteLength);
|
|
633
|
-
}
|
|
634
|
-
if (!Buffer2.isBuffer(target)) {
|
|
635
|
-
throw new TypeError(
|
|
636
|
-
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target
|
|
637
|
-
);
|
|
638
|
-
}
|
|
639
|
-
if (start === void 0) {
|
|
640
|
-
start = 0;
|
|
641
|
-
}
|
|
642
|
-
if (end === void 0) {
|
|
643
|
-
end = target ? target.length : 0;
|
|
644
|
-
}
|
|
645
|
-
if (thisStart === void 0) {
|
|
646
|
-
thisStart = 0;
|
|
647
|
-
}
|
|
648
|
-
if (thisEnd === void 0) {
|
|
649
|
-
thisEnd = this.length;
|
|
650
|
-
}
|
|
651
|
-
if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
|
|
652
|
-
throw new RangeError("out of range index");
|
|
653
|
-
}
|
|
654
|
-
if (thisStart >= thisEnd && start >= end) {
|
|
655
|
-
return 0;
|
|
656
|
-
}
|
|
657
|
-
if (thisStart >= thisEnd) {
|
|
658
|
-
return -1;
|
|
659
|
-
}
|
|
660
|
-
if (start >= end) {
|
|
661
|
-
return 1;
|
|
662
|
-
}
|
|
663
|
-
start >>>= 0;
|
|
664
|
-
end >>>= 0;
|
|
665
|
-
thisStart >>>= 0;
|
|
666
|
-
thisEnd >>>= 0;
|
|
667
|
-
if (this === target) return 0;
|
|
668
|
-
let x2 = thisEnd - thisStart;
|
|
669
|
-
let y2 = end - start;
|
|
670
|
-
const len = Math.min(x2, y2);
|
|
671
|
-
const thisCopy = this.slice(thisStart, thisEnd);
|
|
672
|
-
const targetCopy = target.slice(start, end);
|
|
673
|
-
for (let i2 = 0; i2 < len; ++i2) {
|
|
674
|
-
if (thisCopy[i2] !== targetCopy[i2]) {
|
|
675
|
-
x2 = thisCopy[i2];
|
|
676
|
-
y2 = targetCopy[i2];
|
|
677
|
-
break;
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
if (x2 < y2) return -1;
|
|
681
|
-
if (y2 < x2) return 1;
|
|
682
|
-
return 0;
|
|
683
|
-
};
|
|
684
|
-
function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
|
|
685
|
-
if (buffer2.length === 0) return -1;
|
|
686
|
-
if (typeof byteOffset === "string") {
|
|
687
|
-
encoding = byteOffset;
|
|
688
|
-
byteOffset = 0;
|
|
689
|
-
} else if (byteOffset > 2147483647) {
|
|
690
|
-
byteOffset = 2147483647;
|
|
691
|
-
} else if (byteOffset < -2147483648) {
|
|
692
|
-
byteOffset = -2147483648;
|
|
693
|
-
}
|
|
694
|
-
byteOffset = +byteOffset;
|
|
695
|
-
if (numberIsNaN(byteOffset)) {
|
|
696
|
-
byteOffset = dir ? 0 : buffer2.length - 1;
|
|
697
|
-
}
|
|
698
|
-
if (byteOffset < 0) byteOffset = buffer2.length + byteOffset;
|
|
699
|
-
if (byteOffset >= buffer2.length) {
|
|
700
|
-
if (dir) return -1;
|
|
701
|
-
else byteOffset = buffer2.length - 1;
|
|
702
|
-
} else if (byteOffset < 0) {
|
|
703
|
-
if (dir) byteOffset = 0;
|
|
704
|
-
else return -1;
|
|
705
|
-
}
|
|
706
|
-
if (typeof val === "string") {
|
|
707
|
-
val = Buffer2.from(val, encoding);
|
|
708
|
-
}
|
|
709
|
-
if (Buffer2.isBuffer(val)) {
|
|
710
|
-
if (val.length === 0) {
|
|
711
|
-
return -1;
|
|
712
|
-
}
|
|
713
|
-
return arrayIndexOf(buffer2, val, byteOffset, encoding, dir);
|
|
714
|
-
} else if (typeof val === "number") {
|
|
715
|
-
val = val & 255;
|
|
716
|
-
if (typeof GlobalUint8Array.prototype.indexOf === "function") {
|
|
717
|
-
if (dir) {
|
|
718
|
-
return GlobalUint8Array.prototype.indexOf.call(buffer2, val, byteOffset);
|
|
719
|
-
} else {
|
|
720
|
-
return GlobalUint8Array.prototype.lastIndexOf.call(buffer2, val, byteOffset);
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
return arrayIndexOf(buffer2, [val], byteOffset, encoding, dir);
|
|
724
|
-
}
|
|
725
|
-
throw new TypeError("val must be string, number or Buffer");
|
|
726
|
-
}
|
|
727
|
-
function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
|
|
728
|
-
let indexSize = 1;
|
|
729
|
-
let arrLength = arr.length;
|
|
730
|
-
let valLength = val.length;
|
|
731
|
-
if (encoding !== void 0) {
|
|
732
|
-
encoding = String(encoding).toLowerCase();
|
|
733
|
-
if (encoding === "ucs2" || encoding === "ucs-2" || encoding === "utf16le" || encoding === "utf-16le") {
|
|
734
|
-
if (arr.length < 2 || val.length < 2) {
|
|
735
|
-
return -1;
|
|
736
|
-
}
|
|
737
|
-
indexSize = 2;
|
|
738
|
-
arrLength /= 2;
|
|
739
|
-
valLength /= 2;
|
|
740
|
-
byteOffset /= 2;
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
function read(buf, i3) {
|
|
744
|
-
if (indexSize === 1) {
|
|
745
|
-
return buf[i3];
|
|
746
|
-
} else {
|
|
747
|
-
return buf.readUInt16BE(i3 * indexSize);
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
let i2;
|
|
751
|
-
if (dir) {
|
|
752
|
-
let foundIndex = -1;
|
|
753
|
-
for (i2 = byteOffset; i2 < arrLength; i2++) {
|
|
754
|
-
if (read(arr, i2) === read(val, foundIndex === -1 ? 0 : i2 - foundIndex)) {
|
|
755
|
-
if (foundIndex === -1) foundIndex = i2;
|
|
756
|
-
if (i2 - foundIndex + 1 === valLength) return foundIndex * indexSize;
|
|
757
|
-
} else {
|
|
758
|
-
if (foundIndex !== -1) i2 -= i2 - foundIndex;
|
|
759
|
-
foundIndex = -1;
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
} else {
|
|
763
|
-
if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;
|
|
764
|
-
for (i2 = byteOffset; i2 >= 0; i2--) {
|
|
765
|
-
let found = true;
|
|
766
|
-
for (let j2 = 0; j2 < valLength; j2++) {
|
|
767
|
-
if (read(arr, i2 + j2) !== read(val, j2)) {
|
|
768
|
-
found = false;
|
|
769
|
-
break;
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
if (found) return i2;
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
return -1;
|
|
776
|
-
}
|
|
777
|
-
Buffer2.prototype.includes = function includes(val, byteOffset, encoding) {
|
|
778
|
-
return this.indexOf(val, byteOffset, encoding) !== -1;
|
|
779
|
-
};
|
|
780
|
-
Buffer2.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
|
|
781
|
-
return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
|
|
782
|
-
};
|
|
783
|
-
Buffer2.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
|
|
784
|
-
return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
|
|
785
|
-
};
|
|
786
|
-
function hexWrite(buf, string, offset, length) {
|
|
787
|
-
offset = Number(offset) || 0;
|
|
788
|
-
const remaining = buf.length - offset;
|
|
789
|
-
if (!length) {
|
|
790
|
-
length = remaining;
|
|
791
|
-
} else {
|
|
792
|
-
length = Number(length);
|
|
793
|
-
if (length > remaining) {
|
|
794
|
-
length = remaining;
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
const strLen = string.length;
|
|
798
|
-
if (length > strLen / 2) {
|
|
799
|
-
length = strLen / 2;
|
|
800
|
-
}
|
|
801
|
-
let i2;
|
|
802
|
-
for (i2 = 0; i2 < length; ++i2) {
|
|
803
|
-
const parsed = parseInt(string.substr(i2 * 2, 2), 16);
|
|
804
|
-
if (numberIsNaN(parsed)) return i2;
|
|
805
|
-
buf[offset + i2] = parsed;
|
|
806
|
-
}
|
|
807
|
-
return i2;
|
|
808
|
-
}
|
|
809
|
-
function utf8Write(buf, string, offset, length) {
|
|
810
|
-
return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);
|
|
811
|
-
}
|
|
812
|
-
function asciiWrite(buf, string, offset, length) {
|
|
813
|
-
return blitBuffer(asciiToBytes(string), buf, offset, length);
|
|
814
|
-
}
|
|
815
|
-
function base64Write(buf, string, offset, length) {
|
|
816
|
-
return blitBuffer(base64ToBytes(string), buf, offset, length);
|
|
817
|
-
}
|
|
818
|
-
function ucs2Write(buf, string, offset, length) {
|
|
819
|
-
return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
|
|
820
|
-
}
|
|
821
|
-
Buffer2.prototype.write = function write(string, offset, length, encoding) {
|
|
822
|
-
if (offset === void 0) {
|
|
823
|
-
encoding = "utf8";
|
|
824
|
-
length = this.length;
|
|
825
|
-
offset = 0;
|
|
826
|
-
} else if (length === void 0 && typeof offset === "string") {
|
|
827
|
-
encoding = offset;
|
|
828
|
-
length = this.length;
|
|
829
|
-
offset = 0;
|
|
830
|
-
} else if (isFinite(offset)) {
|
|
831
|
-
offset = offset >>> 0;
|
|
832
|
-
if (isFinite(length)) {
|
|
833
|
-
length = length >>> 0;
|
|
834
|
-
if (encoding === void 0) encoding = "utf8";
|
|
835
|
-
} else {
|
|
836
|
-
encoding = length;
|
|
837
|
-
length = void 0;
|
|
838
|
-
}
|
|
839
|
-
} else {
|
|
840
|
-
throw new Error(
|
|
841
|
-
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
842
|
-
);
|
|
843
|
-
}
|
|
844
|
-
const remaining = this.length - offset;
|
|
845
|
-
if (length === void 0 || length > remaining) length = remaining;
|
|
846
|
-
if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {
|
|
847
|
-
throw new RangeError("Attempt to write outside buffer bounds");
|
|
848
|
-
}
|
|
849
|
-
if (!encoding) encoding = "utf8";
|
|
850
|
-
let loweredCase = false;
|
|
851
|
-
for (; ; ) {
|
|
852
|
-
switch (encoding) {
|
|
853
|
-
case "hex":
|
|
854
|
-
return hexWrite(this, string, offset, length);
|
|
855
|
-
case "utf8":
|
|
856
|
-
case "utf-8":
|
|
857
|
-
return utf8Write(this, string, offset, length);
|
|
858
|
-
case "ascii":
|
|
859
|
-
case "latin1":
|
|
860
|
-
case "binary":
|
|
861
|
-
return asciiWrite(this, string, offset, length);
|
|
862
|
-
case "base64":
|
|
863
|
-
return base64Write(this, string, offset, length);
|
|
864
|
-
case "ucs2":
|
|
865
|
-
case "ucs-2":
|
|
866
|
-
case "utf16le":
|
|
867
|
-
case "utf-16le":
|
|
868
|
-
return ucs2Write(this, string, offset, length);
|
|
869
|
-
default:
|
|
870
|
-
if (loweredCase) throw new TypeError("Unknown encoding: " + encoding);
|
|
871
|
-
encoding = ("" + encoding).toLowerCase();
|
|
872
|
-
loweredCase = true;
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
};
|
|
876
|
-
Buffer2.prototype.toJSON = function toJSON() {
|
|
877
|
-
return {
|
|
878
|
-
type: "Buffer",
|
|
879
|
-
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
880
|
-
};
|
|
881
|
-
};
|
|
882
|
-
function base64Slice(buf, start, end) {
|
|
883
|
-
if (start === 0 && end === buf.length) {
|
|
884
|
-
return base64.fromByteArray(buf);
|
|
885
|
-
} else {
|
|
886
|
-
return base64.fromByteArray(buf.slice(start, end));
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
function utf8Slice(buf, start, end) {
|
|
890
|
-
end = Math.min(buf.length, end);
|
|
891
|
-
const res = [];
|
|
892
|
-
let i2 = start;
|
|
893
|
-
while (i2 < end) {
|
|
894
|
-
const firstByte = buf[i2];
|
|
895
|
-
let codePoint = null;
|
|
896
|
-
let bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
|
|
897
|
-
if (i2 + bytesPerSequence <= end) {
|
|
898
|
-
let secondByte, thirdByte, fourthByte, tempCodePoint;
|
|
899
|
-
switch (bytesPerSequence) {
|
|
900
|
-
case 1:
|
|
901
|
-
if (firstByte < 128) {
|
|
902
|
-
codePoint = firstByte;
|
|
903
|
-
}
|
|
904
|
-
break;
|
|
905
|
-
case 2:
|
|
906
|
-
secondByte = buf[i2 + 1];
|
|
907
|
-
if ((secondByte & 192) === 128) {
|
|
908
|
-
tempCodePoint = (firstByte & 31) << 6 | secondByte & 63;
|
|
909
|
-
if (tempCodePoint > 127) {
|
|
910
|
-
codePoint = tempCodePoint;
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
break;
|
|
914
|
-
case 3:
|
|
915
|
-
secondByte = buf[i2 + 1];
|
|
916
|
-
thirdByte = buf[i2 + 2];
|
|
917
|
-
if ((secondByte & 192) === 128 && (thirdByte & 192) === 128) {
|
|
918
|
-
tempCodePoint = (firstByte & 15) << 12 | (secondByte & 63) << 6 | thirdByte & 63;
|
|
919
|
-
if (tempCodePoint > 2047 && (tempCodePoint < 55296 || tempCodePoint > 57343)) {
|
|
920
|
-
codePoint = tempCodePoint;
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
break;
|
|
924
|
-
case 4:
|
|
925
|
-
secondByte = buf[i2 + 1];
|
|
926
|
-
thirdByte = buf[i2 + 2];
|
|
927
|
-
fourthByte = buf[i2 + 3];
|
|
928
|
-
if ((secondByte & 192) === 128 && (thirdByte & 192) === 128 && (fourthByte & 192) === 128) {
|
|
929
|
-
tempCodePoint = (firstByte & 15) << 18 | (secondByte & 63) << 12 | (thirdByte & 63) << 6 | fourthByte & 63;
|
|
930
|
-
if (tempCodePoint > 65535 && tempCodePoint < 1114112) {
|
|
931
|
-
codePoint = tempCodePoint;
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
if (codePoint === null) {
|
|
937
|
-
codePoint = 65533;
|
|
938
|
-
bytesPerSequence = 1;
|
|
939
|
-
} else if (codePoint > 65535) {
|
|
940
|
-
codePoint -= 65536;
|
|
941
|
-
res.push(codePoint >>> 10 & 1023 | 55296);
|
|
942
|
-
codePoint = 56320 | codePoint & 1023;
|
|
943
|
-
}
|
|
944
|
-
res.push(codePoint);
|
|
945
|
-
i2 += bytesPerSequence;
|
|
946
|
-
}
|
|
947
|
-
return decodeCodePointsArray(res);
|
|
948
|
-
}
|
|
949
|
-
const MAX_ARGUMENTS_LENGTH = 4096;
|
|
950
|
-
function decodeCodePointsArray(codePoints) {
|
|
951
|
-
const len = codePoints.length;
|
|
952
|
-
if (len <= MAX_ARGUMENTS_LENGTH) {
|
|
953
|
-
return String.fromCharCode.apply(String, codePoints);
|
|
954
|
-
}
|
|
955
|
-
let res = "";
|
|
956
|
-
let i2 = 0;
|
|
957
|
-
while (i2 < len) {
|
|
958
|
-
res += String.fromCharCode.apply(
|
|
959
|
-
String,
|
|
960
|
-
codePoints.slice(i2, i2 += MAX_ARGUMENTS_LENGTH)
|
|
961
|
-
);
|
|
962
|
-
}
|
|
963
|
-
return res;
|
|
964
|
-
}
|
|
965
|
-
function asciiSlice(buf, start, end) {
|
|
966
|
-
let ret = "";
|
|
967
|
-
end = Math.min(buf.length, end);
|
|
968
|
-
for (let i2 = start; i2 < end; ++i2) {
|
|
969
|
-
ret += String.fromCharCode(buf[i2] & 127);
|
|
970
|
-
}
|
|
971
|
-
return ret;
|
|
972
|
-
}
|
|
973
|
-
function latin1Slice(buf, start, end) {
|
|
974
|
-
let ret = "";
|
|
975
|
-
end = Math.min(buf.length, end);
|
|
976
|
-
for (let i2 = start; i2 < end; ++i2) {
|
|
977
|
-
ret += String.fromCharCode(buf[i2]);
|
|
978
|
-
}
|
|
979
|
-
return ret;
|
|
980
|
-
}
|
|
981
|
-
function hexSlice(buf, start, end) {
|
|
982
|
-
const len = buf.length;
|
|
983
|
-
if (!start || start < 0) start = 0;
|
|
984
|
-
if (!end || end < 0 || end > len) end = len;
|
|
985
|
-
let out = "";
|
|
986
|
-
for (let i2 = start; i2 < end; ++i2) {
|
|
987
|
-
out += hexSliceLookupTable[buf[i2]];
|
|
988
|
-
}
|
|
989
|
-
return out;
|
|
990
|
-
}
|
|
991
|
-
function utf16leSlice(buf, start, end) {
|
|
992
|
-
const bytes = buf.slice(start, end);
|
|
993
|
-
let res = "";
|
|
994
|
-
for (let i2 = 0; i2 < bytes.length - 1; i2 += 2) {
|
|
995
|
-
res += String.fromCharCode(bytes[i2] + bytes[i2 + 1] * 256);
|
|
996
|
-
}
|
|
997
|
-
return res;
|
|
998
|
-
}
|
|
999
|
-
Buffer2.prototype.slice = function slice(start, end) {
|
|
1000
|
-
const len = this.length;
|
|
1001
|
-
start = ~~start;
|
|
1002
|
-
end = end === void 0 ? len : ~~end;
|
|
1003
|
-
if (start < 0) {
|
|
1004
|
-
start += len;
|
|
1005
|
-
if (start < 0) start = 0;
|
|
1006
|
-
} else if (start > len) {
|
|
1007
|
-
start = len;
|
|
1008
|
-
}
|
|
1009
|
-
if (end < 0) {
|
|
1010
|
-
end += len;
|
|
1011
|
-
if (end < 0) end = 0;
|
|
1012
|
-
} else if (end > len) {
|
|
1013
|
-
end = len;
|
|
1014
|
-
}
|
|
1015
|
-
if (end < start) end = start;
|
|
1016
|
-
const newBuf = this.subarray(start, end);
|
|
1017
|
-
Object.setPrototypeOf(newBuf, Buffer2.prototype);
|
|
1018
|
-
return newBuf;
|
|
1019
|
-
};
|
|
1020
|
-
function checkOffset(offset, ext, length) {
|
|
1021
|
-
if (offset % 1 !== 0 || offset < 0) throw new RangeError("offset is not uint");
|
|
1022
|
-
if (offset + ext > length) throw new RangeError("Trying to access beyond buffer length");
|
|
1023
|
-
}
|
|
1024
|
-
Buffer2.prototype.readUintLE = Buffer2.prototype.readUIntLE = function readUIntLE(offset, byteLength3, noAssert) {
|
|
1025
|
-
offset = offset >>> 0;
|
|
1026
|
-
byteLength3 = byteLength3 >>> 0;
|
|
1027
|
-
if (!noAssert) checkOffset(offset, byteLength3, this.length);
|
|
1028
|
-
let val = this[offset];
|
|
1029
|
-
let mul = 1;
|
|
1030
|
-
let i2 = 0;
|
|
1031
|
-
while (++i2 < byteLength3 && (mul *= 256)) {
|
|
1032
|
-
val += this[offset + i2] * mul;
|
|
1033
|
-
}
|
|
1034
|
-
return val;
|
|
1035
|
-
};
|
|
1036
|
-
Buffer2.prototype.readUintBE = Buffer2.prototype.readUIntBE = function readUIntBE(offset, byteLength3, noAssert) {
|
|
1037
|
-
offset = offset >>> 0;
|
|
1038
|
-
byteLength3 = byteLength3 >>> 0;
|
|
1039
|
-
if (!noAssert) {
|
|
1040
|
-
checkOffset(offset, byteLength3, this.length);
|
|
1041
|
-
}
|
|
1042
|
-
let val = this[offset + --byteLength3];
|
|
1043
|
-
let mul = 1;
|
|
1044
|
-
while (byteLength3 > 0 && (mul *= 256)) {
|
|
1045
|
-
val += this[offset + --byteLength3] * mul;
|
|
1046
|
-
}
|
|
1047
|
-
return val;
|
|
1048
|
-
};
|
|
1049
|
-
Buffer2.prototype.readUint8 = Buffer2.prototype.readUInt8 = function readUInt8(offset, noAssert) {
|
|
1050
|
-
offset = offset >>> 0;
|
|
1051
|
-
if (!noAssert) checkOffset(offset, 1, this.length);
|
|
1052
|
-
return this[offset];
|
|
1053
|
-
};
|
|
1054
|
-
Buffer2.prototype.readUint16LE = Buffer2.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
|
|
1055
|
-
offset = offset >>> 0;
|
|
1056
|
-
if (!noAssert) checkOffset(offset, 2, this.length);
|
|
1057
|
-
return this[offset] | this[offset + 1] << 8;
|
|
1058
|
-
};
|
|
1059
|
-
Buffer2.prototype.readUint16BE = Buffer2.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
|
|
1060
|
-
offset = offset >>> 0;
|
|
1061
|
-
if (!noAssert) checkOffset(offset, 2, this.length);
|
|
1062
|
-
return this[offset] << 8 | this[offset + 1];
|
|
1063
|
-
};
|
|
1064
|
-
Buffer2.prototype.readUint32LE = Buffer2.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
|
|
1065
|
-
offset = offset >>> 0;
|
|
1066
|
-
if (!noAssert) checkOffset(offset, 4, this.length);
|
|
1067
|
-
return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
|
|
1068
|
-
};
|
|
1069
|
-
Buffer2.prototype.readUint32BE = Buffer2.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
|
|
1070
|
-
offset = offset >>> 0;
|
|
1071
|
-
if (!noAssert) checkOffset(offset, 4, this.length);
|
|
1072
|
-
return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
|
|
1073
|
-
};
|
|
1074
|
-
Buffer2.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
|
|
1075
|
-
offset = offset >>> 0;
|
|
1076
|
-
validateNumber(offset, "offset");
|
|
1077
|
-
const first = this[offset];
|
|
1078
|
-
const last = this[offset + 7];
|
|
1079
|
-
if (first === void 0 || last === void 0) {
|
|
1080
|
-
boundsError(offset, this.length - 8);
|
|
1081
|
-
}
|
|
1082
|
-
const lo2 = first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24;
|
|
1083
|
-
const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last * 2 ** 24;
|
|
1084
|
-
return BigInt(lo2) + (BigInt(hi) << BigInt(32));
|
|
1085
|
-
});
|
|
1086
|
-
Buffer2.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
|
|
1087
|
-
offset = offset >>> 0;
|
|
1088
|
-
validateNumber(offset, "offset");
|
|
1089
|
-
const first = this[offset];
|
|
1090
|
-
const last = this[offset + 7];
|
|
1091
|
-
if (first === void 0 || last === void 0) {
|
|
1092
|
-
boundsError(offset, this.length - 8);
|
|
1093
|
-
}
|
|
1094
|
-
const hi = first * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
|
|
1095
|
-
const lo2 = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last;
|
|
1096
|
-
return (BigInt(hi) << BigInt(32)) + BigInt(lo2);
|
|
1097
|
-
});
|
|
1098
|
-
Buffer2.prototype.readIntLE = function readIntLE(offset, byteLength3, noAssert) {
|
|
1099
|
-
offset = offset >>> 0;
|
|
1100
|
-
byteLength3 = byteLength3 >>> 0;
|
|
1101
|
-
if (!noAssert) checkOffset(offset, byteLength3, this.length);
|
|
1102
|
-
let val = this[offset];
|
|
1103
|
-
let mul = 1;
|
|
1104
|
-
let i2 = 0;
|
|
1105
|
-
while (++i2 < byteLength3 && (mul *= 256)) {
|
|
1106
|
-
val += this[offset + i2] * mul;
|
|
1107
|
-
}
|
|
1108
|
-
mul *= 128;
|
|
1109
|
-
if (val >= mul) val -= Math.pow(2, 8 * byteLength3);
|
|
1110
|
-
return val;
|
|
1111
|
-
};
|
|
1112
|
-
Buffer2.prototype.readIntBE = function readIntBE(offset, byteLength3, noAssert) {
|
|
1113
|
-
offset = offset >>> 0;
|
|
1114
|
-
byteLength3 = byteLength3 >>> 0;
|
|
1115
|
-
if (!noAssert) checkOffset(offset, byteLength3, this.length);
|
|
1116
|
-
let i2 = byteLength3;
|
|
1117
|
-
let mul = 1;
|
|
1118
|
-
let val = this[offset + --i2];
|
|
1119
|
-
while (i2 > 0 && (mul *= 256)) {
|
|
1120
|
-
val += this[offset + --i2] * mul;
|
|
1121
|
-
}
|
|
1122
|
-
mul *= 128;
|
|
1123
|
-
if (val >= mul) val -= Math.pow(2, 8 * byteLength3);
|
|
1124
|
-
return val;
|
|
1125
|
-
};
|
|
1126
|
-
Buffer2.prototype.readInt8 = function readInt8(offset, noAssert) {
|
|
1127
|
-
offset = offset >>> 0;
|
|
1128
|
-
if (!noAssert) checkOffset(offset, 1, this.length);
|
|
1129
|
-
if (!(this[offset] & 128)) return this[offset];
|
|
1130
|
-
return (255 - this[offset] + 1) * -1;
|
|
1131
|
-
};
|
|
1132
|
-
Buffer2.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
|
|
1133
|
-
offset = offset >>> 0;
|
|
1134
|
-
if (!noAssert) checkOffset(offset, 2, this.length);
|
|
1135
|
-
const val = this[offset] | this[offset + 1] << 8;
|
|
1136
|
-
return val & 32768 ? val | 4294901760 : val;
|
|
1137
|
-
};
|
|
1138
|
-
Buffer2.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
|
|
1139
|
-
offset = offset >>> 0;
|
|
1140
|
-
if (!noAssert) checkOffset(offset, 2, this.length);
|
|
1141
|
-
const val = this[offset + 1] | this[offset] << 8;
|
|
1142
|
-
return val & 32768 ? val | 4294901760 : val;
|
|
1143
|
-
};
|
|
1144
|
-
Buffer2.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
|
|
1145
|
-
offset = offset >>> 0;
|
|
1146
|
-
if (!noAssert) checkOffset(offset, 4, this.length);
|
|
1147
|
-
return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
|
|
1148
|
-
};
|
|
1149
|
-
Buffer2.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
|
|
1150
|
-
offset = offset >>> 0;
|
|
1151
|
-
if (!noAssert) checkOffset(offset, 4, this.length);
|
|
1152
|
-
return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
|
|
1153
|
-
};
|
|
1154
|
-
Buffer2.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
|
|
1155
|
-
offset = offset >>> 0;
|
|
1156
|
-
validateNumber(offset, "offset");
|
|
1157
|
-
const first = this[offset];
|
|
1158
|
-
const last = this[offset + 7];
|
|
1159
|
-
if (first === void 0 || last === void 0) {
|
|
1160
|
-
boundsError(offset, this.length - 8);
|
|
1161
|
-
}
|
|
1162
|
-
const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last << 24);
|
|
1163
|
-
return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);
|
|
1164
|
-
});
|
|
1165
|
-
Buffer2.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
|
|
1166
|
-
offset = offset >>> 0;
|
|
1167
|
-
validateNumber(offset, "offset");
|
|
1168
|
-
const first = this[offset];
|
|
1169
|
-
const last = this[offset + 7];
|
|
1170
|
-
if (first === void 0 || last === void 0) {
|
|
1171
|
-
boundsError(offset, this.length - 8);
|
|
1172
|
-
}
|
|
1173
|
-
const val = (first << 24) + // Overflow
|
|
1174
|
-
this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
|
|
1175
|
-
return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last);
|
|
1176
|
-
});
|
|
1177
|
-
Buffer2.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
|
|
1178
|
-
offset = offset >>> 0;
|
|
1179
|
-
if (!noAssert) checkOffset(offset, 4, this.length);
|
|
1180
|
-
return ieee754$1.read(this, offset, true, 23, 4);
|
|
1181
|
-
};
|
|
1182
|
-
Buffer2.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
|
|
1183
|
-
offset = offset >>> 0;
|
|
1184
|
-
if (!noAssert) checkOffset(offset, 4, this.length);
|
|
1185
|
-
return ieee754$1.read(this, offset, false, 23, 4);
|
|
1186
|
-
};
|
|
1187
|
-
Buffer2.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
|
|
1188
|
-
offset = offset >>> 0;
|
|
1189
|
-
if (!noAssert) checkOffset(offset, 8, this.length);
|
|
1190
|
-
return ieee754$1.read(this, offset, true, 52, 8);
|
|
1191
|
-
};
|
|
1192
|
-
Buffer2.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
|
|
1193
|
-
offset = offset >>> 0;
|
|
1194
|
-
if (!noAssert) checkOffset(offset, 8, this.length);
|
|
1195
|
-
return ieee754$1.read(this, offset, false, 52, 8);
|
|
1196
|
-
};
|
|
1197
|
-
function checkInt(buf, value, offset, ext, max, min) {
|
|
1198
|
-
if (!Buffer2.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
1199
|
-
if (value > max || value < min) throw new RangeError('"value" argument is out of bounds');
|
|
1200
|
-
if (offset + ext > buf.length) throw new RangeError("Index out of range");
|
|
1201
|
-
}
|
|
1202
|
-
Buffer2.prototype.writeUintLE = Buffer2.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength3, noAssert) {
|
|
1203
|
-
value = +value;
|
|
1204
|
-
offset = offset >>> 0;
|
|
1205
|
-
byteLength3 = byteLength3 >>> 0;
|
|
1206
|
-
if (!noAssert) {
|
|
1207
|
-
const maxBytes = Math.pow(2, 8 * byteLength3) - 1;
|
|
1208
|
-
checkInt(this, value, offset, byteLength3, maxBytes, 0);
|
|
1209
|
-
}
|
|
1210
|
-
let mul = 1;
|
|
1211
|
-
let i2 = 0;
|
|
1212
|
-
this[offset] = value & 255;
|
|
1213
|
-
while (++i2 < byteLength3 && (mul *= 256)) {
|
|
1214
|
-
this[offset + i2] = value / mul & 255;
|
|
1215
|
-
}
|
|
1216
|
-
return offset + byteLength3;
|
|
1217
|
-
};
|
|
1218
|
-
Buffer2.prototype.writeUintBE = Buffer2.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength3, noAssert) {
|
|
1219
|
-
value = +value;
|
|
1220
|
-
offset = offset >>> 0;
|
|
1221
|
-
byteLength3 = byteLength3 >>> 0;
|
|
1222
|
-
if (!noAssert) {
|
|
1223
|
-
const maxBytes = Math.pow(2, 8 * byteLength3) - 1;
|
|
1224
|
-
checkInt(this, value, offset, byteLength3, maxBytes, 0);
|
|
1225
|
-
}
|
|
1226
|
-
let i2 = byteLength3 - 1;
|
|
1227
|
-
let mul = 1;
|
|
1228
|
-
this[offset + i2] = value & 255;
|
|
1229
|
-
while (--i2 >= 0 && (mul *= 256)) {
|
|
1230
|
-
this[offset + i2] = value / mul & 255;
|
|
1231
|
-
}
|
|
1232
|
-
return offset + byteLength3;
|
|
1233
|
-
};
|
|
1234
|
-
Buffer2.prototype.writeUint8 = Buffer2.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
|
|
1235
|
-
value = +value;
|
|
1236
|
-
offset = offset >>> 0;
|
|
1237
|
-
if (!noAssert) checkInt(this, value, offset, 1, 255, 0);
|
|
1238
|
-
this[offset] = value & 255;
|
|
1239
|
-
return offset + 1;
|
|
1240
|
-
};
|
|
1241
|
-
Buffer2.prototype.writeUint16LE = Buffer2.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
|
|
1242
|
-
value = +value;
|
|
1243
|
-
offset = offset >>> 0;
|
|
1244
|
-
if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
|
|
1245
|
-
this[offset] = value & 255;
|
|
1246
|
-
this[offset + 1] = value >>> 8;
|
|
1247
|
-
return offset + 2;
|
|
1248
|
-
};
|
|
1249
|
-
Buffer2.prototype.writeUint16BE = Buffer2.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
|
|
1250
|
-
value = +value;
|
|
1251
|
-
offset = offset >>> 0;
|
|
1252
|
-
if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
|
|
1253
|
-
this[offset] = value >>> 8;
|
|
1254
|
-
this[offset + 1] = value & 255;
|
|
1255
|
-
return offset + 2;
|
|
1256
|
-
};
|
|
1257
|
-
Buffer2.prototype.writeUint32LE = Buffer2.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
|
|
1258
|
-
value = +value;
|
|
1259
|
-
offset = offset >>> 0;
|
|
1260
|
-
if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
|
|
1261
|
-
this[offset + 3] = value >>> 24;
|
|
1262
|
-
this[offset + 2] = value >>> 16;
|
|
1263
|
-
this[offset + 1] = value >>> 8;
|
|
1264
|
-
this[offset] = value & 255;
|
|
1265
|
-
return offset + 4;
|
|
1266
|
-
};
|
|
1267
|
-
Buffer2.prototype.writeUint32BE = Buffer2.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
|
|
1268
|
-
value = +value;
|
|
1269
|
-
offset = offset >>> 0;
|
|
1270
|
-
if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
|
|
1271
|
-
this[offset] = value >>> 24;
|
|
1272
|
-
this[offset + 1] = value >>> 16;
|
|
1273
|
-
this[offset + 2] = value >>> 8;
|
|
1274
|
-
this[offset + 3] = value & 255;
|
|
1275
|
-
return offset + 4;
|
|
1276
|
-
};
|
|
1277
|
-
function wrtBigUInt64LE(buf, value, offset, min, max) {
|
|
1278
|
-
checkIntBI(value, min, max, buf, offset, 7);
|
|
1279
|
-
let lo2 = Number(value & BigInt(4294967295));
|
|
1280
|
-
buf[offset++] = lo2;
|
|
1281
|
-
lo2 = lo2 >> 8;
|
|
1282
|
-
buf[offset++] = lo2;
|
|
1283
|
-
lo2 = lo2 >> 8;
|
|
1284
|
-
buf[offset++] = lo2;
|
|
1285
|
-
lo2 = lo2 >> 8;
|
|
1286
|
-
buf[offset++] = lo2;
|
|
1287
|
-
let hi = Number(value >> BigInt(32) & BigInt(4294967295));
|
|
1288
|
-
buf[offset++] = hi;
|
|
1289
|
-
hi = hi >> 8;
|
|
1290
|
-
buf[offset++] = hi;
|
|
1291
|
-
hi = hi >> 8;
|
|
1292
|
-
buf[offset++] = hi;
|
|
1293
|
-
hi = hi >> 8;
|
|
1294
|
-
buf[offset++] = hi;
|
|
1295
|
-
return offset;
|
|
1296
|
-
}
|
|
1297
|
-
function wrtBigUInt64BE(buf, value, offset, min, max) {
|
|
1298
|
-
checkIntBI(value, min, max, buf, offset, 7);
|
|
1299
|
-
let lo2 = Number(value & BigInt(4294967295));
|
|
1300
|
-
buf[offset + 7] = lo2;
|
|
1301
|
-
lo2 = lo2 >> 8;
|
|
1302
|
-
buf[offset + 6] = lo2;
|
|
1303
|
-
lo2 = lo2 >> 8;
|
|
1304
|
-
buf[offset + 5] = lo2;
|
|
1305
|
-
lo2 = lo2 >> 8;
|
|
1306
|
-
buf[offset + 4] = lo2;
|
|
1307
|
-
let hi = Number(value >> BigInt(32) & BigInt(4294967295));
|
|
1308
|
-
buf[offset + 3] = hi;
|
|
1309
|
-
hi = hi >> 8;
|
|
1310
|
-
buf[offset + 2] = hi;
|
|
1311
|
-
hi = hi >> 8;
|
|
1312
|
-
buf[offset + 1] = hi;
|
|
1313
|
-
hi = hi >> 8;
|
|
1314
|
-
buf[offset] = hi;
|
|
1315
|
-
return offset + 8;
|
|
1316
|
-
}
|
|
1317
|
-
Buffer2.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
|
|
1318
|
-
return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1319
|
-
});
|
|
1320
|
-
Buffer2.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
|
|
1321
|
-
return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1322
|
-
});
|
|
1323
|
-
Buffer2.prototype.writeIntLE = function writeIntLE(value, offset, byteLength3, noAssert) {
|
|
1324
|
-
value = +value;
|
|
1325
|
-
offset = offset >>> 0;
|
|
1326
|
-
if (!noAssert) {
|
|
1327
|
-
const limit = Math.pow(2, 8 * byteLength3 - 1);
|
|
1328
|
-
checkInt(this, value, offset, byteLength3, limit - 1, -limit);
|
|
1329
|
-
}
|
|
1330
|
-
let i2 = 0;
|
|
1331
|
-
let mul = 1;
|
|
1332
|
-
let sub = 0;
|
|
1333
|
-
this[offset] = value & 255;
|
|
1334
|
-
while (++i2 < byteLength3 && (mul *= 256)) {
|
|
1335
|
-
if (value < 0 && sub === 0 && this[offset + i2 - 1] !== 0) {
|
|
1336
|
-
sub = 1;
|
|
1337
|
-
}
|
|
1338
|
-
this[offset + i2] = (value / mul >> 0) - sub & 255;
|
|
1339
|
-
}
|
|
1340
|
-
return offset + byteLength3;
|
|
1341
|
-
};
|
|
1342
|
-
Buffer2.prototype.writeIntBE = function writeIntBE(value, offset, byteLength3, noAssert) {
|
|
1343
|
-
value = +value;
|
|
1344
|
-
offset = offset >>> 0;
|
|
1345
|
-
if (!noAssert) {
|
|
1346
|
-
const limit = Math.pow(2, 8 * byteLength3 - 1);
|
|
1347
|
-
checkInt(this, value, offset, byteLength3, limit - 1, -limit);
|
|
1348
|
-
}
|
|
1349
|
-
let i2 = byteLength3 - 1;
|
|
1350
|
-
let mul = 1;
|
|
1351
|
-
let sub = 0;
|
|
1352
|
-
this[offset + i2] = value & 255;
|
|
1353
|
-
while (--i2 >= 0 && (mul *= 256)) {
|
|
1354
|
-
if (value < 0 && sub === 0 && this[offset + i2 + 1] !== 0) {
|
|
1355
|
-
sub = 1;
|
|
1356
|
-
}
|
|
1357
|
-
this[offset + i2] = (value / mul >> 0) - sub & 255;
|
|
1358
|
-
}
|
|
1359
|
-
return offset + byteLength3;
|
|
1360
|
-
};
|
|
1361
|
-
Buffer2.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
|
|
1362
|
-
value = +value;
|
|
1363
|
-
offset = offset >>> 0;
|
|
1364
|
-
if (!noAssert) checkInt(this, value, offset, 1, 127, -128);
|
|
1365
|
-
if (value < 0) value = 255 + value + 1;
|
|
1366
|
-
this[offset] = value & 255;
|
|
1367
|
-
return offset + 1;
|
|
1368
|
-
};
|
|
1369
|
-
Buffer2.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
|
|
1370
|
-
value = +value;
|
|
1371
|
-
offset = offset >>> 0;
|
|
1372
|
-
if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);
|
|
1373
|
-
this[offset] = value & 255;
|
|
1374
|
-
this[offset + 1] = value >>> 8;
|
|
1375
|
-
return offset + 2;
|
|
1376
|
-
};
|
|
1377
|
-
Buffer2.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
|
|
1378
|
-
value = +value;
|
|
1379
|
-
offset = offset >>> 0;
|
|
1380
|
-
if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);
|
|
1381
|
-
this[offset] = value >>> 8;
|
|
1382
|
-
this[offset + 1] = value & 255;
|
|
1383
|
-
return offset + 2;
|
|
1384
|
-
};
|
|
1385
|
-
Buffer2.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
|
|
1386
|
-
value = +value;
|
|
1387
|
-
offset = offset >>> 0;
|
|
1388
|
-
if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);
|
|
1389
|
-
this[offset] = value & 255;
|
|
1390
|
-
this[offset + 1] = value >>> 8;
|
|
1391
|
-
this[offset + 2] = value >>> 16;
|
|
1392
|
-
this[offset + 3] = value >>> 24;
|
|
1393
|
-
return offset + 4;
|
|
1394
|
-
};
|
|
1395
|
-
Buffer2.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
|
|
1396
|
-
value = +value;
|
|
1397
|
-
offset = offset >>> 0;
|
|
1398
|
-
if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);
|
|
1399
|
-
if (value < 0) value = 4294967295 + value + 1;
|
|
1400
|
-
this[offset] = value >>> 24;
|
|
1401
|
-
this[offset + 1] = value >>> 16;
|
|
1402
|
-
this[offset + 2] = value >>> 8;
|
|
1403
|
-
this[offset + 3] = value & 255;
|
|
1404
|
-
return offset + 4;
|
|
1405
|
-
};
|
|
1406
|
-
Buffer2.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
|
|
1407
|
-
return wrtBigUInt64LE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1408
|
-
});
|
|
1409
|
-
Buffer2.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
|
|
1410
|
-
return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1411
|
-
});
|
|
1412
|
-
function checkIEEE754(buf, value, offset, ext, max, min) {
|
|
1413
|
-
if (offset + ext > buf.length) throw new RangeError("Index out of range");
|
|
1414
|
-
if (offset < 0) throw new RangeError("Index out of range");
|
|
1415
|
-
}
|
|
1416
|
-
function writeFloat(buf, value, offset, littleEndian, noAssert) {
|
|
1417
|
-
value = +value;
|
|
1418
|
-
offset = offset >>> 0;
|
|
1419
|
-
if (!noAssert) {
|
|
1420
|
-
checkIEEE754(buf, value, offset, 4);
|
|
1421
|
-
}
|
|
1422
|
-
ieee754$1.write(buf, value, offset, littleEndian, 23, 4);
|
|
1423
|
-
return offset + 4;
|
|
1424
|
-
}
|
|
1425
|
-
Buffer2.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
|
|
1426
|
-
return writeFloat(this, value, offset, true, noAssert);
|
|
1427
|
-
};
|
|
1428
|
-
Buffer2.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
|
|
1429
|
-
return writeFloat(this, value, offset, false, noAssert);
|
|
1430
|
-
};
|
|
1431
|
-
function writeDouble(buf, value, offset, littleEndian, noAssert) {
|
|
1432
|
-
value = +value;
|
|
1433
|
-
offset = offset >>> 0;
|
|
1434
|
-
if (!noAssert) {
|
|
1435
|
-
checkIEEE754(buf, value, offset, 8);
|
|
1436
|
-
}
|
|
1437
|
-
ieee754$1.write(buf, value, offset, littleEndian, 52, 8);
|
|
1438
|
-
return offset + 8;
|
|
1439
|
-
}
|
|
1440
|
-
Buffer2.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
|
|
1441
|
-
return writeDouble(this, value, offset, true, noAssert);
|
|
1442
|
-
};
|
|
1443
|
-
Buffer2.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
|
|
1444
|
-
return writeDouble(this, value, offset, false, noAssert);
|
|
1445
|
-
};
|
|
1446
|
-
Buffer2.prototype.copy = function copy(target, targetStart, start, end) {
|
|
1447
|
-
if (!Buffer2.isBuffer(target)) throw new TypeError("argument should be a Buffer");
|
|
1448
|
-
if (!start) start = 0;
|
|
1449
|
-
if (!end && end !== 0) end = this.length;
|
|
1450
|
-
if (targetStart >= target.length) targetStart = target.length;
|
|
1451
|
-
if (!targetStart) targetStart = 0;
|
|
1452
|
-
if (end > 0 && end < start) end = start;
|
|
1453
|
-
if (end === start) return 0;
|
|
1454
|
-
if (target.length === 0 || this.length === 0) return 0;
|
|
1455
|
-
if (targetStart < 0) {
|
|
1456
|
-
throw new RangeError("targetStart out of bounds");
|
|
1457
|
-
}
|
|
1458
|
-
if (start < 0 || start >= this.length) throw new RangeError("Index out of range");
|
|
1459
|
-
if (end < 0) throw new RangeError("sourceEnd out of bounds");
|
|
1460
|
-
if (end > this.length) end = this.length;
|
|
1461
|
-
if (target.length - targetStart < end - start) {
|
|
1462
|
-
end = target.length - targetStart + start;
|
|
1463
|
-
}
|
|
1464
|
-
const len = end - start;
|
|
1465
|
-
if (this === target && typeof GlobalUint8Array.prototype.copyWithin === "function") {
|
|
1466
|
-
this.copyWithin(targetStart, start, end);
|
|
1467
|
-
} else {
|
|
1468
|
-
GlobalUint8Array.prototype.set.call(
|
|
1469
|
-
target,
|
|
1470
|
-
this.subarray(start, end),
|
|
1471
|
-
targetStart
|
|
1472
|
-
);
|
|
1473
|
-
}
|
|
1474
|
-
return len;
|
|
1475
|
-
};
|
|
1476
|
-
Buffer2.prototype.fill = function fill(val, start, end, encoding) {
|
|
1477
|
-
if (typeof val === "string") {
|
|
1478
|
-
if (typeof start === "string") {
|
|
1479
|
-
encoding = start;
|
|
1480
|
-
start = 0;
|
|
1481
|
-
end = this.length;
|
|
1482
|
-
} else if (typeof end === "string") {
|
|
1483
|
-
encoding = end;
|
|
1484
|
-
end = this.length;
|
|
1485
|
-
}
|
|
1486
|
-
if (encoding !== void 0 && typeof encoding !== "string") {
|
|
1487
|
-
throw new TypeError("encoding must be a string");
|
|
1488
|
-
}
|
|
1489
|
-
if (typeof encoding === "string" && !Buffer2.isEncoding(encoding)) {
|
|
1490
|
-
throw new TypeError("Unknown encoding: " + encoding);
|
|
1491
|
-
}
|
|
1492
|
-
if (val.length === 1) {
|
|
1493
|
-
const code2 = val.charCodeAt(0);
|
|
1494
|
-
if (encoding === "utf8" && code2 < 128 || encoding === "latin1") {
|
|
1495
|
-
val = code2;
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
} else if (typeof val === "number") {
|
|
1499
|
-
val = val & 255;
|
|
1500
|
-
} else if (typeof val === "boolean") {
|
|
1501
|
-
val = Number(val);
|
|
1502
|
-
}
|
|
1503
|
-
if (start < 0 || this.length < start || this.length < end) {
|
|
1504
|
-
throw new RangeError("Out of range index");
|
|
1505
|
-
}
|
|
1506
|
-
if (end <= start) {
|
|
1507
|
-
return this;
|
|
1508
|
-
}
|
|
1509
|
-
start = start >>> 0;
|
|
1510
|
-
end = end === void 0 ? this.length : end >>> 0;
|
|
1511
|
-
if (!val) val = 0;
|
|
1512
|
-
let i2;
|
|
1513
|
-
if (typeof val === "number") {
|
|
1514
|
-
for (i2 = start; i2 < end; ++i2) {
|
|
1515
|
-
this[i2] = val;
|
|
1516
|
-
}
|
|
1517
|
-
} else {
|
|
1518
|
-
const bytes = Buffer2.isBuffer(val) ? val : Buffer2.from(val, encoding);
|
|
1519
|
-
const len = bytes.length;
|
|
1520
|
-
if (len === 0) {
|
|
1521
|
-
throw new TypeError('The value "' + val + '" is invalid for argument "value"');
|
|
1522
|
-
}
|
|
1523
|
-
for (i2 = 0; i2 < end - start; ++i2) {
|
|
1524
|
-
this[i2 + start] = bytes[i2 % len];
|
|
1525
|
-
}
|
|
1526
|
-
}
|
|
1527
|
-
return this;
|
|
1528
|
-
};
|
|
1529
|
-
const errors = {};
|
|
1530
|
-
function E2(sym, getMessage, Base) {
|
|
1531
|
-
errors[sym] = class NodeError extends Base {
|
|
1532
|
-
constructor() {
|
|
1533
|
-
super();
|
|
1534
|
-
Object.defineProperty(this, "message", {
|
|
1535
|
-
value: getMessage.apply(this, arguments),
|
|
1536
|
-
writable: true,
|
|
1537
|
-
configurable: true
|
|
1538
|
-
});
|
|
1539
|
-
this.name = `${this.name} [${sym}]`;
|
|
1540
|
-
this.stack;
|
|
1541
|
-
delete this.name;
|
|
1542
|
-
}
|
|
1543
|
-
get code() {
|
|
1544
|
-
return sym;
|
|
1545
|
-
}
|
|
1546
|
-
set code(value) {
|
|
1547
|
-
Object.defineProperty(this, "code", {
|
|
1548
|
-
configurable: true,
|
|
1549
|
-
enumerable: true,
|
|
1550
|
-
value,
|
|
1551
|
-
writable: true
|
|
1552
|
-
});
|
|
1553
|
-
}
|
|
1554
|
-
toString() {
|
|
1555
|
-
return `${this.name} [${sym}]: ${this.message}`;
|
|
1556
|
-
}
|
|
1557
|
-
};
|
|
1558
|
-
}
|
|
1559
|
-
E2(
|
|
1560
|
-
"ERR_BUFFER_OUT_OF_BOUNDS",
|
|
1561
|
-
function(name) {
|
|
1562
|
-
if (name) {
|
|
1563
|
-
return `${name} is outside of buffer bounds`;
|
|
1564
|
-
}
|
|
1565
|
-
return "Attempt to access memory outside buffer bounds";
|
|
1566
|
-
},
|
|
1567
|
-
RangeError
|
|
1568
|
-
);
|
|
1569
|
-
E2(
|
|
1570
|
-
"ERR_INVALID_ARG_TYPE",
|
|
1571
|
-
function(name, actual) {
|
|
1572
|
-
return `The "${name}" argument must be of type number. Received type ${typeof actual}`;
|
|
1573
|
-
},
|
|
1574
|
-
TypeError
|
|
1575
|
-
);
|
|
1576
|
-
E2(
|
|
1577
|
-
"ERR_OUT_OF_RANGE",
|
|
1578
|
-
function(str, range, input) {
|
|
1579
|
-
let msg = `The value of "${str}" is out of range.`;
|
|
1580
|
-
let received = input;
|
|
1581
|
-
if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
|
|
1582
|
-
received = addNumericalSeparator(String(input));
|
|
1583
|
-
} else if (typeof input === "bigint") {
|
|
1584
|
-
received = String(input);
|
|
1585
|
-
if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {
|
|
1586
|
-
received = addNumericalSeparator(received);
|
|
1587
|
-
}
|
|
1588
|
-
received += "n";
|
|
1589
|
-
}
|
|
1590
|
-
msg += ` It must be ${range}. Received ${received}`;
|
|
1591
|
-
return msg;
|
|
1592
|
-
},
|
|
1593
|
-
RangeError
|
|
1594
|
-
);
|
|
1595
|
-
function addNumericalSeparator(val) {
|
|
1596
|
-
let res = "";
|
|
1597
|
-
let i2 = val.length;
|
|
1598
|
-
const start = val[0] === "-" ? 1 : 0;
|
|
1599
|
-
for (; i2 >= start + 4; i2 -= 3) {
|
|
1600
|
-
res = `_${val.slice(i2 - 3, i2)}${res}`;
|
|
1601
|
-
}
|
|
1602
|
-
return `${val.slice(0, i2)}${res}`;
|
|
1603
|
-
}
|
|
1604
|
-
function checkBounds(buf, offset, byteLength3) {
|
|
1605
|
-
validateNumber(offset, "offset");
|
|
1606
|
-
if (buf[offset] === void 0 || buf[offset + byteLength3] === void 0) {
|
|
1607
|
-
boundsError(offset, buf.length - (byteLength3 + 1));
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
|
-
function checkIntBI(value, min, max, buf, offset, byteLength3) {
|
|
1611
|
-
if (value > max || value < min) {
|
|
1612
|
-
const n2 = typeof min === "bigint" ? "n" : "";
|
|
1613
|
-
let range;
|
|
1614
|
-
{
|
|
1615
|
-
if (min === 0 || min === BigInt(0)) {
|
|
1616
|
-
range = `>= 0${n2} and < 2${n2} ** ${(byteLength3 + 1) * 8}${n2}`;
|
|
1617
|
-
} else {
|
|
1618
|
-
range = `>= -(2${n2} ** ${(byteLength3 + 1) * 8 - 1}${n2}) and < 2 ** ${(byteLength3 + 1) * 8 - 1}${n2}`;
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
throw new errors.ERR_OUT_OF_RANGE("value", range, value);
|
|
1622
|
-
}
|
|
1623
|
-
checkBounds(buf, offset, byteLength3);
|
|
1624
|
-
}
|
|
1625
|
-
function validateNumber(value, name) {
|
|
1626
|
-
if (typeof value !== "number") {
|
|
1627
|
-
throw new errors.ERR_INVALID_ARG_TYPE(name, "number", value);
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
function boundsError(value, length, type) {
|
|
1631
|
-
if (Math.floor(value) !== value) {
|
|
1632
|
-
validateNumber(value, type);
|
|
1633
|
-
throw new errors.ERR_OUT_OF_RANGE("offset", "an integer", value);
|
|
1634
|
-
}
|
|
1635
|
-
if (length < 0) {
|
|
1636
|
-
throw new errors.ERR_BUFFER_OUT_OF_BOUNDS();
|
|
1637
|
-
}
|
|
1638
|
-
throw new errors.ERR_OUT_OF_RANGE(
|
|
1639
|
-
"offset",
|
|
1640
|
-
`>= ${0} and <= ${length}`,
|
|
1641
|
-
value
|
|
1642
|
-
);
|
|
1643
|
-
}
|
|
1644
|
-
const INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
|
|
1645
|
-
function base64clean(str) {
|
|
1646
|
-
str = str.split("=")[0];
|
|
1647
|
-
str = str.trim().replace(INVALID_BASE64_RE, "");
|
|
1648
|
-
if (str.length < 2) return "";
|
|
1649
|
-
while (str.length % 4 !== 0) {
|
|
1650
|
-
str = str + "=";
|
|
1651
|
-
}
|
|
1652
|
-
return str;
|
|
1653
|
-
}
|
|
1654
|
-
function utf8ToBytes(string, units) {
|
|
1655
|
-
units = units || Infinity;
|
|
1656
|
-
let codePoint;
|
|
1657
|
-
const length = string.length;
|
|
1658
|
-
let leadSurrogate = null;
|
|
1659
|
-
const bytes = [];
|
|
1660
|
-
for (let i2 = 0; i2 < length; ++i2) {
|
|
1661
|
-
codePoint = string.charCodeAt(i2);
|
|
1662
|
-
if (codePoint > 55295 && codePoint < 57344) {
|
|
1663
|
-
if (!leadSurrogate) {
|
|
1664
|
-
if (codePoint > 56319) {
|
|
1665
|
-
if ((units -= 3) > -1) bytes.push(239, 191, 189);
|
|
1666
|
-
continue;
|
|
1667
|
-
} else if (i2 + 1 === length) {
|
|
1668
|
-
if ((units -= 3) > -1) bytes.push(239, 191, 189);
|
|
1669
|
-
continue;
|
|
1670
|
-
}
|
|
1671
|
-
leadSurrogate = codePoint;
|
|
1672
|
-
continue;
|
|
1673
|
-
}
|
|
1674
|
-
if (codePoint < 56320) {
|
|
1675
|
-
if ((units -= 3) > -1) bytes.push(239, 191, 189);
|
|
1676
|
-
leadSurrogate = codePoint;
|
|
1677
|
-
continue;
|
|
1678
|
-
}
|
|
1679
|
-
codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536;
|
|
1680
|
-
} else if (leadSurrogate) {
|
|
1681
|
-
if ((units -= 3) > -1) bytes.push(239, 191, 189);
|
|
1682
|
-
}
|
|
1683
|
-
leadSurrogate = null;
|
|
1684
|
-
if (codePoint < 128) {
|
|
1685
|
-
if ((units -= 1) < 0) break;
|
|
1686
|
-
bytes.push(codePoint);
|
|
1687
|
-
} else if (codePoint < 2048) {
|
|
1688
|
-
if ((units -= 2) < 0) break;
|
|
1689
|
-
bytes.push(
|
|
1690
|
-
codePoint >> 6 | 192,
|
|
1691
|
-
codePoint & 63 | 128
|
|
1692
|
-
);
|
|
1693
|
-
} else if (codePoint < 65536) {
|
|
1694
|
-
if ((units -= 3) < 0) break;
|
|
1695
|
-
bytes.push(
|
|
1696
|
-
codePoint >> 12 | 224,
|
|
1697
|
-
codePoint >> 6 & 63 | 128,
|
|
1698
|
-
codePoint & 63 | 128
|
|
1699
|
-
);
|
|
1700
|
-
} else if (codePoint < 1114112) {
|
|
1701
|
-
if ((units -= 4) < 0) break;
|
|
1702
|
-
bytes.push(
|
|
1703
|
-
codePoint >> 18 | 240,
|
|
1704
|
-
codePoint >> 12 & 63 | 128,
|
|
1705
|
-
codePoint >> 6 & 63 | 128,
|
|
1706
|
-
codePoint & 63 | 128
|
|
1707
|
-
);
|
|
1708
|
-
} else {
|
|
1709
|
-
throw new Error("Invalid code point");
|
|
1710
|
-
}
|
|
1711
|
-
}
|
|
1712
|
-
return bytes;
|
|
1713
|
-
}
|
|
1714
|
-
function asciiToBytes(str) {
|
|
1715
|
-
const byteArray = [];
|
|
1716
|
-
for (let i2 = 0; i2 < str.length; ++i2) {
|
|
1717
|
-
byteArray.push(str.charCodeAt(i2) & 255);
|
|
1718
|
-
}
|
|
1719
|
-
return byteArray;
|
|
1720
|
-
}
|
|
1721
|
-
function utf16leToBytes(str, units) {
|
|
1722
|
-
let c2, hi, lo2;
|
|
1723
|
-
const byteArray = [];
|
|
1724
|
-
for (let i2 = 0; i2 < str.length; ++i2) {
|
|
1725
|
-
if ((units -= 2) < 0) break;
|
|
1726
|
-
c2 = str.charCodeAt(i2);
|
|
1727
|
-
hi = c2 >> 8;
|
|
1728
|
-
lo2 = c2 % 256;
|
|
1729
|
-
byteArray.push(lo2);
|
|
1730
|
-
byteArray.push(hi);
|
|
1731
|
-
}
|
|
1732
|
-
return byteArray;
|
|
1733
|
-
}
|
|
1734
|
-
function base64ToBytes(str) {
|
|
1735
|
-
return base64.toByteArray(base64clean(str));
|
|
1736
|
-
}
|
|
1737
|
-
function blitBuffer(src2, dst, offset, length) {
|
|
1738
|
-
let i2;
|
|
1739
|
-
for (i2 = 0; i2 < length; ++i2) {
|
|
1740
|
-
if (i2 + offset >= dst.length || i2 >= src2.length) break;
|
|
1741
|
-
dst[i2 + offset] = src2[i2];
|
|
1742
|
-
}
|
|
1743
|
-
return i2;
|
|
1744
|
-
}
|
|
1745
|
-
function isInstance(obj, type) {
|
|
1746
|
-
return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;
|
|
1747
|
-
}
|
|
1748
|
-
function numberIsNaN(obj) {
|
|
1749
|
-
return obj !== obj;
|
|
1750
|
-
}
|
|
1751
|
-
const hexSliceLookupTable = function() {
|
|
1752
|
-
const alphabet2 = "0123456789abcdef";
|
|
1753
|
-
const table = new Array(256);
|
|
1754
|
-
for (let i2 = 0; i2 < 16; ++i2) {
|
|
1755
|
-
const i16 = i2 * 16;
|
|
1756
|
-
for (let j2 = 0; j2 < 16; ++j2) {
|
|
1757
|
-
table[i16 + j2] = alphabet2[i2] + alphabet2[j2];
|
|
1758
|
-
}
|
|
1759
|
-
}
|
|
1760
|
-
return table;
|
|
1761
|
-
}();
|
|
1762
|
-
function defineBigIntMethod(fn) {
|
|
1763
|
-
return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
|
|
1764
|
-
}
|
|
1765
|
-
function BufferBigIntNotDefined() {
|
|
1766
|
-
throw new Error("BigInt not supported");
|
|
1767
|
-
}
|
|
1768
|
-
})(buffer);
|
|
1769
|
-
const Buffer = buffer.Buffer;
|
|
1770
4
|
var events = { exports: {} };
|
|
1771
5
|
var R$2 = typeof Reflect === "object" ? Reflect : null;
|
|
1772
6
|
var ReflectApply = R$2 && typeof R$2.apply === "function" ? R$2.apply : function ReflectApply2(target, receiver, args) {
|
|
@@ -2915,9 +1149,9 @@ function base$1(ALPHABET2) {
|
|
|
2915
1149
|
return vch;
|
|
2916
1150
|
}
|
|
2917
1151
|
function decode2(string) {
|
|
2918
|
-
const
|
|
2919
|
-
if (
|
|
2920
|
-
return
|
|
1152
|
+
const buffer = decodeUnsafe(string);
|
|
1153
|
+
if (buffer) {
|
|
1154
|
+
return buffer;
|
|
2921
1155
|
}
|
|
2922
1156
|
throw new Error("Non-base" + BASE + " character");
|
|
2923
1157
|
}
|
|
@@ -3963,9 +2197,9 @@ function base(ALPHABET2, name) {
|
|
|
3963
2197
|
return vch;
|
|
3964
2198
|
}
|
|
3965
2199
|
function decode2(string) {
|
|
3966
|
-
var
|
|
3967
|
-
if (
|
|
3968
|
-
return
|
|
2200
|
+
var buffer = decodeUnsafe(string);
|
|
2201
|
+
if (buffer) {
|
|
2202
|
+
return buffer;
|
|
3969
2203
|
}
|
|
3970
2204
|
throw new Error(`Non-${name} character`);
|
|
3971
2205
|
}
|
|
@@ -4085,21 +2319,21 @@ const decode$1 = (string, alphabet2, bitsPerChar, name) => {
|
|
|
4085
2319
|
}
|
|
4086
2320
|
const out = new Uint8Array(end * bitsPerChar / 8 | 0);
|
|
4087
2321
|
let bits = 0;
|
|
4088
|
-
let
|
|
2322
|
+
let buffer = 0;
|
|
4089
2323
|
let written = 0;
|
|
4090
2324
|
for (let i2 = 0; i2 < end; ++i2) {
|
|
4091
2325
|
const value = codes[string[i2]];
|
|
4092
2326
|
if (value === void 0) {
|
|
4093
2327
|
throw new SyntaxError(`Non-${name} character`);
|
|
4094
2328
|
}
|
|
4095
|
-
|
|
2329
|
+
buffer = buffer << bitsPerChar | value;
|
|
4096
2330
|
bits += bitsPerChar;
|
|
4097
2331
|
if (bits >= 8) {
|
|
4098
2332
|
bits -= 8;
|
|
4099
|
-
out[written++] = 255 &
|
|
2333
|
+
out[written++] = 255 & buffer >> bits;
|
|
4100
2334
|
}
|
|
4101
2335
|
}
|
|
4102
|
-
if (bits >= bitsPerChar || 255 &
|
|
2336
|
+
if (bits >= bitsPerChar || 255 & buffer << 8 - bits) {
|
|
4103
2337
|
throw new SyntaxError("Unexpected end of data");
|
|
4104
2338
|
}
|
|
4105
2339
|
return out;
|
|
@@ -4109,17 +2343,17 @@ const encode$1 = (data, alphabet2, bitsPerChar) => {
|
|
|
4109
2343
|
const mask = (1 << bitsPerChar) - 1;
|
|
4110
2344
|
let out = "";
|
|
4111
2345
|
let bits = 0;
|
|
4112
|
-
let
|
|
2346
|
+
let buffer = 0;
|
|
4113
2347
|
for (let i2 = 0; i2 < data.length; ++i2) {
|
|
4114
|
-
|
|
2348
|
+
buffer = buffer << 8 | data[i2];
|
|
4115
2349
|
bits += 8;
|
|
4116
2350
|
while (bits > bitsPerChar) {
|
|
4117
2351
|
bits -= bitsPerChar;
|
|
4118
|
-
out += alphabet2[mask &
|
|
2352
|
+
out += alphabet2[mask & buffer >> bits];
|
|
4119
2353
|
}
|
|
4120
2354
|
}
|
|
4121
2355
|
if (bits) {
|
|
4122
|
-
out += alphabet2[mask &
|
|
2356
|
+
out += alphabet2[mask & buffer << bitsPerChar - bits];
|
|
4123
2357
|
}
|
|
4124
2358
|
if (pad) {
|
|
4125
2359
|
while (out.length * bitsPerChar & 7) {
|
|
@@ -6953,8 +5187,8 @@ const STANDARD_ERROR_MAP = {
|
|
|
6953
5187
|
[SERVER_ERROR]: { code: -32e3, message: "Server error" }
|
|
6954
5188
|
};
|
|
6955
5189
|
const DEFAULT_ERROR = SERVER_ERROR;
|
|
6956
|
-
function isReservedErrorCode(
|
|
6957
|
-
return RESERVED_ERROR_CODES.includes(
|
|
5190
|
+
function isReservedErrorCode(code) {
|
|
5191
|
+
return RESERVED_ERROR_CODES.includes(code);
|
|
6958
5192
|
}
|
|
6959
5193
|
function getError(type) {
|
|
6960
5194
|
if (!Object.keys(STANDARD_ERROR_MAP).includes(type)) {
|
|
@@ -6962,8 +5196,8 @@ function getError(type) {
|
|
|
6962
5196
|
}
|
|
6963
5197
|
return STANDARD_ERROR_MAP[type];
|
|
6964
5198
|
}
|
|
6965
|
-
function getErrorByCode(
|
|
6966
|
-
const match = Object.values(STANDARD_ERROR_MAP).find((e2) => e2.code ===
|
|
5199
|
+
function getErrorByCode(code) {
|
|
5200
|
+
const match = Object.values(STANDARD_ERROR_MAP).find((e2) => e2.code === code);
|
|
6967
5201
|
if (!match) {
|
|
6968
5202
|
return STANDARD_ERROR_MAP[DEFAULT_ERROR];
|
|
6969
5203
|
}
|
|
@@ -8439,7 +6673,7 @@ let B$1 = class B2 {
|
|
|
8439
6673
|
};
|
|
8440
6674
|
const es = B$1;
|
|
8441
6675
|
const $ = "wc", k = "ethereum_provider", q = `${$}@2:${k}:`, U = "https://rpc.walletconnect.org/v1/", f2 = ["eth_sendTransaction", "personal_sign"], A = ["eth_accounts", "eth_requestAccounts", "eth_sendRawTransaction", "eth_sign", "eth_signTransaction", "eth_signTypedData", "eth_signTypedData_v3", "eth_signTypedData_v4", "eth_sendTransaction", "personal_sign", "wallet_switchEthereumChain", "wallet_addEthereumChain", "wallet_getPermissions", "wallet_requestPermissions", "wallet_registerOnboarding", "wallet_watchAsset", "wallet_scanQRCode", "wallet_sendCalls", "wallet_getCapabilities", "wallet_getCallsStatus", "wallet_showCallsStatus"], C = ["chainChanged", "accountsChanged"], P = ["chainChanged", "accountsChanged", "message", "disconnect", "connect"], D = async () => {
|
|
8442
|
-
const { createAppKit: s } = await import("./core-
|
|
6676
|
+
const { createAppKit: s } = await import("./core-C5Tt1lSh.js").then((n2) => n2.G);
|
|
8443
6677
|
return s;
|
|
8444
6678
|
};
|
|
8445
6679
|
var z = Object.defineProperty, L2 = Object.defineProperties, K = Object.getOwnPropertyDescriptors, M = Object.getOwnPropertySymbols, Q = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable, _ = (s, t, e2) => t in s ? z(s, t, { enumerable: true, configurable: true, writable: true, value: e2 }) : s[t] = e2, v = (s, t) => {
|
|
@@ -8699,7 +6933,6 @@ const index_es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
8699
6933
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8700
6934
|
export {
|
|
8701
6935
|
A$2 as A,
|
|
8702
|
-
Buffer as B,
|
|
8703
6936
|
Nt$2 as N,
|
|
8704
6937
|
Ot as O,
|
|
8705
6938
|
f$1 as a,
|