@ecency/wallets 1.3.12 → 1.3.14
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/ecency-sdk.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CONFIG as
|
|
1
|
+
import { CONFIG as $e, getAccountFullQueryOptions as _t, getQueryClient as Ne, getDynamicPropsQueryOptions as ur, Keychain as qt, useBroadcastMutation as h0, EcencyAnalytics as hc, getAccessToken as l0, useAccountUpdate as d0 } from "@ecency/sdk";
|
|
2
2
|
import { useQuery as Yt, queryOptions as it, infiniteQueryOptions as qr, useQueryClient as ln, useMutation as Wt } from "@tanstack/react-query";
|
|
3
3
|
import p0, { mnemonicToSeedSync as lc } from "bip39";
|
|
4
4
|
import { LRUCache as b0 } from "lru-cache";
|
|
@@ -10,14 +10,14 @@ import { SolWallet as w0 } from "@okxweb3/coin-solana";
|
|
|
10
10
|
import { AtomWallet as x0 } from "@okxweb3/coin-cosmos";
|
|
11
11
|
import { AptosWallet as E0 } from "@okxweb3/coin-aptos";
|
|
12
12
|
import { bip32 as A0 } from "@okxweb3/crypto-lib";
|
|
13
|
-
import { PrivateKey as jt,
|
|
13
|
+
import { PrivateKey as jt, utils as Ht } from "@hiveio/dhive";
|
|
14
14
|
import dc from "crypto";
|
|
15
15
|
import Pr from "dayjs";
|
|
16
16
|
import pt from "hivesigner";
|
|
17
|
-
import { useCallback as
|
|
17
|
+
import { useCallback as S0 } from "react";
|
|
18
18
|
import * as $t from "remeda";
|
|
19
19
|
var Oe = /* @__PURE__ */ ((i) => (i.BTC = "BTC", i.ETH = "ETH", i.APT = "APT", i.ATOM = "ATOM", i.TON = "TON", i.TRON = "TRX", i.SOL = "SOL", i))(Oe || {}), ut = /* @__PURE__ */ ((i) => (i.Points = "POINTS", i.HivePower = "HP", i.Hive = "HIVE", i.HiveDollar = "HBD", i.Spk = "SPK", i))(ut || {});
|
|
20
|
-
function
|
|
20
|
+
function Dp(i, h) {
|
|
21
21
|
return Yt({
|
|
22
22
|
queryKey: ["ecency-wallets", "external-wallet-balance", i, h],
|
|
23
23
|
queryFn: async () => {
|
|
@@ -85,7 +85,7 @@ function Np(i, h) {
|
|
|
85
85
|
method: "POST",
|
|
86
86
|
headers: {
|
|
87
87
|
"Content-Type": "application/json",
|
|
88
|
-
"X-API-KEY":
|
|
88
|
+
"X-API-KEY": $e.bitqueryApiKey || ""
|
|
89
89
|
},
|
|
90
90
|
body: a.query(h)
|
|
91
91
|
});
|
|
@@ -127,7 +127,7 @@ function Np(i, h) {
|
|
|
127
127
|
case Oe.SOL:
|
|
128
128
|
return y(async () => {
|
|
129
129
|
const s = await fetch(
|
|
130
|
-
`https://rpc.helius.xyz/?api-key=${
|
|
130
|
+
`https://rpc.helius.xyz/?api-key=${$e.heliusApiKey}`,
|
|
131
131
|
{
|
|
132
132
|
method: "POST",
|
|
133
133
|
body: JSON.stringify({
|
|
@@ -190,7 +190,7 @@ function pc(i) {
|
|
|
190
190
|
queryFn: async () => p0.generateMnemonic(128)
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const I0 = {
|
|
194
194
|
max: 500,
|
|
195
195
|
// how long to live in ms
|
|
196
196
|
ttl: 1e3 * 60 * 5,
|
|
@@ -198,11 +198,11 @@ const T0 = {
|
|
|
198
198
|
allowStale: !1,
|
|
199
199
|
updateAgeOnGet: !1,
|
|
200
200
|
updateAgeOnHas: !1
|
|
201
|
-
}, bc = new b0(
|
|
201
|
+
}, bc = new b0(I0), go = Symbol("undefined"), T0 = (i, h) => bc.set(i, h === void 0 ? go : h), B0 = (i) => {
|
|
202
202
|
const h = bc.get(i);
|
|
203
203
|
return h === go ? void 0 : h;
|
|
204
204
|
};
|
|
205
|
-
function
|
|
205
|
+
function Np(i) {
|
|
206
206
|
return Yt({
|
|
207
207
|
queryKey: ["ecency-wallets", "coingecko-price", i],
|
|
208
208
|
queryFn: async () => {
|
|
@@ -223,7 +223,7 @@ function qp(i) {
|
|
|
223
223
|
default:
|
|
224
224
|
h = i;
|
|
225
225
|
}
|
|
226
|
-
let b =
|
|
226
|
+
let b = B0("gecko"), y;
|
|
227
227
|
if (b)
|
|
228
228
|
y = b;
|
|
229
229
|
else {
|
|
@@ -239,7 +239,7 @@ function qp(i) {
|
|
|
239
239
|
})
|
|
240
240
|
}
|
|
241
241
|
)).json();
|
|
242
|
-
|
|
242
|
+
T0("gecko", p === void 0 ? go : p), y = p;
|
|
243
243
|
}
|
|
244
244
|
return 1 / +y[Object.keys(y)[0]].usd;
|
|
245
245
|
},
|
|
@@ -269,17 +269,17 @@ function vo(i) {
|
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function qp(i) {
|
|
273
273
|
return lc(i).toString("hex");
|
|
274
274
|
}
|
|
275
|
-
const
|
|
275
|
+
const R0 = {
|
|
276
276
|
owner: 0,
|
|
277
277
|
active: 1,
|
|
278
278
|
posting: 2,
|
|
279
279
|
memo: 3
|
|
280
280
|
};
|
|
281
281
|
function Vr(i, h, b = 0) {
|
|
282
|
-
const y = lc(i), s = A0.fromSeed(y), a = `m/44'/3054'/${b}'/0'/${
|
|
282
|
+
const y = lc(i), s = A0.fromSeed(y), a = `m/44'/3054'/${b}'/0'/${R0[h]}'`, p = s.derivePath(a);
|
|
283
283
|
if (!p.privateKey)
|
|
284
284
|
throw new Error("[Ecency][Wallets] - hive key derivation failed");
|
|
285
285
|
const f = jt.from(p.privateKey);
|
|
@@ -308,7 +308,7 @@ function Hr(i, h, b) {
|
|
|
308
308
|
publicKey: y.createPublic().toString()
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function M0(i, h) {
|
|
312
312
|
const b = Hr(i, h, "owner"), y = Hr(i, h, "active"), s = Hr(
|
|
313
313
|
i,
|
|
314
314
|
h,
|
|
@@ -325,8 +325,11 @@ function P0(i, h) {
|
|
|
325
325
|
memoPubkey: a.publicKey
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
-
async function
|
|
329
|
-
|
|
328
|
+
async function P0(i, h, b = "active") {
|
|
329
|
+
await $e.queryClient.prefetchQuery(_t(i));
|
|
330
|
+
const y = $e.queryClient.getQueryData(
|
|
331
|
+
_t(i).queryKey
|
|
332
|
+
);
|
|
330
333
|
if (!y)
|
|
331
334
|
throw new Error(`[Ecency][Wallets] - account ${i} not found`);
|
|
332
335
|
const a = gc(h).activePubkey;
|
|
@@ -334,22 +337,18 @@ async function F0(i, h, b = new S0("https://api.hive.blog")) {
|
|
|
334
337
|
([n]) => n.toString() === a
|
|
335
338
|
))
|
|
336
339
|
return "bip44";
|
|
337
|
-
const f = jt.fromLogin(
|
|
338
|
-
|
|
339
|
-
h,
|
|
340
|
-
"active"
|
|
341
|
-
).createPublic().toString();
|
|
342
|
-
return y.active.key_auths.some(
|
|
340
|
+
const f = jt.fromLogin(i, h, b).createPublic().toString();
|
|
341
|
+
return y[b].key_auths.some(
|
|
343
342
|
([n]) => n.toString() === f
|
|
344
343
|
) ? "master-password" : "unknown";
|
|
345
344
|
}
|
|
346
345
|
var vc = {}, dn = {};
|
|
347
|
-
dn.byteLength =
|
|
348
|
-
dn.toByteArray =
|
|
349
|
-
dn.fromByteArray =
|
|
350
|
-
var
|
|
351
|
-
for (var tr = 0,
|
|
352
|
-
|
|
346
|
+
dn.byteLength = D0;
|
|
347
|
+
dn.toByteArray = q0;
|
|
348
|
+
dn.fromByteArray = C0;
|
|
349
|
+
var Pt = [], mt = [], F0 = typeof Uint8Array < "u" ? Uint8Array : Array, En = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
350
|
+
for (var tr = 0, O0 = En.length; tr < O0; ++tr)
|
|
351
|
+
Pt[tr] = En[tr], mt[En.charCodeAt(tr)] = tr;
|
|
353
352
|
mt[45] = 62;
|
|
354
353
|
mt[95] = 63;
|
|
355
354
|
function mc(i) {
|
|
@@ -361,34 +360,34 @@ function mc(i) {
|
|
|
361
360
|
var y = b === h ? 0 : 4 - b % 4;
|
|
362
361
|
return [b, y];
|
|
363
362
|
}
|
|
364
|
-
function
|
|
363
|
+
function D0(i) {
|
|
365
364
|
var h = mc(i), b = h[0], y = h[1];
|
|
366
365
|
return (b + y) * 3 / 4 - y;
|
|
367
366
|
}
|
|
368
|
-
function
|
|
367
|
+
function N0(i, h, b) {
|
|
369
368
|
return (h + b) * 3 / 4 - b;
|
|
370
369
|
}
|
|
371
|
-
function
|
|
372
|
-
var h, b = mc(i), y = b[0], s = b[1], a = new
|
|
370
|
+
function q0(i) {
|
|
371
|
+
var h, b = mc(i), y = b[0], s = b[1], a = new F0(N0(i, y, s)), p = 0, f = s > 0 ? y - 4 : y, l;
|
|
373
372
|
for (l = 0; l < f; l += 4)
|
|
374
373
|
h = mt[i.charCodeAt(l)] << 18 | mt[i.charCodeAt(l + 1)] << 12 | mt[i.charCodeAt(l + 2)] << 6 | mt[i.charCodeAt(l + 3)], a[p++] = h >> 16 & 255, a[p++] = h >> 8 & 255, a[p++] = h & 255;
|
|
375
374
|
return s === 2 && (h = mt[i.charCodeAt(l)] << 2 | mt[i.charCodeAt(l + 1)] >> 4, a[p++] = h & 255), s === 1 && (h = mt[i.charCodeAt(l)] << 10 | mt[i.charCodeAt(l + 1)] << 4 | mt[i.charCodeAt(l + 2)] >> 2, a[p++] = h >> 8 & 255, a[p++] = h & 255), a;
|
|
376
375
|
}
|
|
377
|
-
function
|
|
378
|
-
return
|
|
376
|
+
function L0(i) {
|
|
377
|
+
return Pt[i >> 18 & 63] + Pt[i >> 12 & 63] + Pt[i >> 6 & 63] + Pt[i & 63];
|
|
379
378
|
}
|
|
380
|
-
function
|
|
379
|
+
function k0(i, h, b) {
|
|
381
380
|
for (var y, s = [], a = h; a < b; a += 3)
|
|
382
|
-
y = (i[a] << 16 & 16711680) + (i[a + 1] << 8 & 65280) + (i[a + 2] & 255), s.push(
|
|
381
|
+
y = (i[a] << 16 & 16711680) + (i[a + 1] << 8 & 65280) + (i[a + 2] & 255), s.push(L0(y));
|
|
383
382
|
return s.join("");
|
|
384
383
|
}
|
|
385
|
-
function
|
|
384
|
+
function C0(i) {
|
|
386
385
|
for (var h, b = i.length, y = b % 3, s = [], a = 16383, p = 0, f = b - y; p < f; p += a)
|
|
387
|
-
s.push(
|
|
386
|
+
s.push(k0(i, p, p + a > f ? f : p + a));
|
|
388
387
|
return y === 1 ? (h = i[b - 1], s.push(
|
|
389
|
-
|
|
388
|
+
Pt[h >> 2] + Pt[h << 4 & 63] + "=="
|
|
390
389
|
)) : y === 2 && (h = (i[b - 2] << 8) + i[b - 1], s.push(
|
|
391
|
-
|
|
390
|
+
Pt[h >> 10] + Pt[h >> 4 & 63] + Pt[h << 2 & 63] + "="
|
|
392
391
|
)), s.join("");
|
|
393
392
|
}
|
|
394
393
|
var mo = {};
|
|
@@ -1362,16 +1361,16 @@ mo.write = function(i, h, b, y, s, a) {
|
|
|
1362
1361
|
throw new Error("BigInt not supported");
|
|
1363
1362
|
}
|
|
1364
1363
|
})(vc);
|
|
1365
|
-
const
|
|
1366
|
-
function
|
|
1367
|
-
const b = jt.fromString(h), y = typeof i == "string" ?
|
|
1364
|
+
const Ke = vc.Buffer;
|
|
1365
|
+
function kp(i, h) {
|
|
1366
|
+
const b = jt.fromString(h), y = typeof i == "string" ? Ke.from(i, "hex") : i;
|
|
1368
1367
|
return b.sign(y).toString();
|
|
1369
1368
|
}
|
|
1370
1369
|
var yt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, An = {};
|
|
1371
|
-
function
|
|
1370
|
+
function U0(i) {
|
|
1372
1371
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
1373
1372
|
}
|
|
1374
|
-
var _c = { exports: {} }, st = _c.exports = {},
|
|
1373
|
+
var _c = { exports: {} }, st = _c.exports = {}, Rt, Mt;
|
|
1375
1374
|
function lo() {
|
|
1376
1375
|
throw new Error("setTimeout has not been defined");
|
|
1377
1376
|
}
|
|
@@ -1380,60 +1379,60 @@ function po() {
|
|
|
1380
1379
|
}
|
|
1381
1380
|
(function() {
|
|
1382
1381
|
try {
|
|
1383
|
-
typeof setTimeout == "function" ?
|
|
1382
|
+
typeof setTimeout == "function" ? Rt = setTimeout : Rt = lo;
|
|
1384
1383
|
} catch {
|
|
1385
|
-
|
|
1384
|
+
Rt = lo;
|
|
1386
1385
|
}
|
|
1387
1386
|
try {
|
|
1388
|
-
typeof clearTimeout == "function" ?
|
|
1387
|
+
typeof clearTimeout == "function" ? Mt = clearTimeout : Mt = po;
|
|
1389
1388
|
} catch {
|
|
1390
|
-
|
|
1389
|
+
Mt = po;
|
|
1391
1390
|
}
|
|
1392
1391
|
})();
|
|
1393
1392
|
function wc(i) {
|
|
1394
|
-
if (
|
|
1393
|
+
if (Rt === setTimeout)
|
|
1395
1394
|
return setTimeout(i, 0);
|
|
1396
|
-
if ((
|
|
1397
|
-
return
|
|
1395
|
+
if ((Rt === lo || !Rt) && setTimeout)
|
|
1396
|
+
return Rt = setTimeout, setTimeout(i, 0);
|
|
1398
1397
|
try {
|
|
1399
|
-
return
|
|
1398
|
+
return Rt(i, 0);
|
|
1400
1399
|
} catch {
|
|
1401
1400
|
try {
|
|
1402
|
-
return
|
|
1401
|
+
return Rt.call(null, i, 0);
|
|
1403
1402
|
} catch {
|
|
1404
|
-
return
|
|
1403
|
+
return Rt.call(this, i, 0);
|
|
1405
1404
|
}
|
|
1406
1405
|
}
|
|
1407
1406
|
}
|
|
1408
|
-
function
|
|
1409
|
-
if (
|
|
1407
|
+
function j0(i) {
|
|
1408
|
+
if (Mt === clearTimeout)
|
|
1410
1409
|
return clearTimeout(i);
|
|
1411
|
-
if ((
|
|
1412
|
-
return
|
|
1410
|
+
if ((Mt === po || !Mt) && clearTimeout)
|
|
1411
|
+
return Mt = clearTimeout, clearTimeout(i);
|
|
1413
1412
|
try {
|
|
1414
|
-
return
|
|
1413
|
+
return Mt(i);
|
|
1415
1414
|
} catch {
|
|
1416
1415
|
try {
|
|
1417
|
-
return
|
|
1416
|
+
return Mt.call(null, i);
|
|
1418
1417
|
} catch {
|
|
1419
|
-
return
|
|
1418
|
+
return Mt.call(this, i);
|
|
1420
1419
|
}
|
|
1421
1420
|
}
|
|
1422
1421
|
}
|
|
1423
1422
|
var Nt = [], sr = !1, Kt, on = -1;
|
|
1424
|
-
function
|
|
1423
|
+
function z0() {
|
|
1425
1424
|
!sr || !Kt || (sr = !1, Kt.length ? Nt = Kt.concat(Nt) : on = -1, Nt.length && xc());
|
|
1426
1425
|
}
|
|
1427
1426
|
function xc() {
|
|
1428
1427
|
if (!sr) {
|
|
1429
|
-
var i = wc(
|
|
1428
|
+
var i = wc(z0);
|
|
1430
1429
|
sr = !0;
|
|
1431
1430
|
for (var h = Nt.length; h; ) {
|
|
1432
1431
|
for (Kt = Nt, Nt = []; ++on < h; )
|
|
1433
1432
|
Kt && Kt[on].run();
|
|
1434
1433
|
on = -1, h = Nt.length;
|
|
1435
1434
|
}
|
|
1436
|
-
Kt = null, sr = !1,
|
|
1435
|
+
Kt = null, sr = !1, j0(i);
|
|
1437
1436
|
}
|
|
1438
1437
|
}
|
|
1439
1438
|
st.nextTick = function(i) {
|
|
@@ -1481,8 +1480,8 @@ st.chdir = function(i) {
|
|
|
1481
1480
|
st.umask = function() {
|
|
1482
1481
|
return 0;
|
|
1483
1482
|
};
|
|
1484
|
-
var
|
|
1485
|
-
const ke = /* @__PURE__ */
|
|
1483
|
+
var V0 = _c.exports;
|
|
1484
|
+
const ke = /* @__PURE__ */ U0(V0);
|
|
1486
1485
|
var Sn = { exports: {} }, In = {}, Tn = {}, Bn = {}, Rn, Co;
|
|
1487
1486
|
function _o() {
|
|
1488
1487
|
return Co || (Co = 1, Rn = function() {
|
|
@@ -1527,19 +1526,19 @@ function wo() {
|
|
|
1527
1526
|
return jo || (jo = 1, Pn = Object), Pn;
|
|
1528
1527
|
}
|
|
1529
1528
|
var Fn, zo;
|
|
1530
|
-
function
|
|
1529
|
+
function H0() {
|
|
1531
1530
|
return zo || (zo = 1, Fn = Error), Fn;
|
|
1532
1531
|
}
|
|
1533
1532
|
var On, Vo;
|
|
1534
|
-
function
|
|
1533
|
+
function $0() {
|
|
1535
1534
|
return Vo || (Vo = 1, On = EvalError), On;
|
|
1536
1535
|
}
|
|
1537
1536
|
var Dn, Ho;
|
|
1538
|
-
function
|
|
1537
|
+
function K0() {
|
|
1539
1538
|
return Ho || (Ho = 1, Dn = RangeError), Dn;
|
|
1540
1539
|
}
|
|
1541
1540
|
var Nn, $o;
|
|
1542
|
-
function
|
|
1541
|
+
function G0() {
|
|
1543
1542
|
return $o || ($o = 1, Nn = ReferenceError), Nn;
|
|
1544
1543
|
}
|
|
1545
1544
|
var qn, Ko;
|
|
@@ -1551,57 +1550,57 @@ function Lr() {
|
|
|
1551
1550
|
return Go || (Go = 1, Ln = TypeError), Ln;
|
|
1552
1551
|
}
|
|
1553
1552
|
var kn, Yo;
|
|
1554
|
-
function
|
|
1553
|
+
function Y0() {
|
|
1555
1554
|
return Yo || (Yo = 1, kn = URIError), kn;
|
|
1556
1555
|
}
|
|
1557
1556
|
var Cn, Wo;
|
|
1558
|
-
function
|
|
1557
|
+
function W0() {
|
|
1559
1558
|
return Wo || (Wo = 1, Cn = Math.abs), Cn;
|
|
1560
1559
|
}
|
|
1561
1560
|
var Un, Jo;
|
|
1562
|
-
function
|
|
1561
|
+
function J0() {
|
|
1563
1562
|
return Jo || (Jo = 1, Un = Math.floor), Un;
|
|
1564
1563
|
}
|
|
1565
1564
|
var jn, Qo;
|
|
1566
|
-
function
|
|
1565
|
+
function Q0() {
|
|
1567
1566
|
return Qo || (Qo = 1, jn = Math.max), jn;
|
|
1568
1567
|
}
|
|
1569
1568
|
var zn, Zo;
|
|
1570
|
-
function
|
|
1569
|
+
function Z0() {
|
|
1571
1570
|
return Zo || (Zo = 1, zn = Math.min), zn;
|
|
1572
1571
|
}
|
|
1573
1572
|
var Vn, Xo;
|
|
1574
|
-
function
|
|
1573
|
+
function X0() {
|
|
1575
1574
|
return Xo || (Xo = 1, Vn = Math.pow), Vn;
|
|
1576
1575
|
}
|
|
1577
1576
|
var Hn, ef;
|
|
1578
|
-
function
|
|
1577
|
+
function eh() {
|
|
1579
1578
|
return ef || (ef = 1, Hn = Math.round), Hn;
|
|
1580
1579
|
}
|
|
1581
1580
|
var $n, tf;
|
|
1582
|
-
function
|
|
1581
|
+
function th() {
|
|
1583
1582
|
return tf || (tf = 1, $n = Number.isNaN || function(h) {
|
|
1584
1583
|
return h !== h;
|
|
1585
1584
|
}), $n;
|
|
1586
1585
|
}
|
|
1587
1586
|
var Kn, rf;
|
|
1588
|
-
function
|
|
1587
|
+
function rh() {
|
|
1589
1588
|
if (rf) return Kn;
|
|
1590
1589
|
rf = 1;
|
|
1591
|
-
var i = /* @__PURE__ */
|
|
1590
|
+
var i = /* @__PURE__ */ th();
|
|
1592
1591
|
return Kn = function(b) {
|
|
1593
1592
|
return i(b) || b === 0 ? b : b < 0 ? -1 : 1;
|
|
1594
1593
|
}, Kn;
|
|
1595
1594
|
}
|
|
1596
1595
|
var Gn, nf;
|
|
1597
|
-
function
|
|
1596
|
+
function nh() {
|
|
1598
1597
|
return nf || (nf = 1, Gn = Object.getOwnPropertyDescriptor), Gn;
|
|
1599
1598
|
}
|
|
1600
1599
|
var Yn, af;
|
|
1601
1600
|
function lr() {
|
|
1602
1601
|
if (af) return Yn;
|
|
1603
1602
|
af = 1;
|
|
1604
|
-
var i = /* @__PURE__ */
|
|
1603
|
+
var i = /* @__PURE__ */ nh();
|
|
1605
1604
|
if (i)
|
|
1606
1605
|
try {
|
|
1607
1606
|
i([], "length");
|
|
@@ -1624,7 +1623,7 @@ function bn() {
|
|
|
1624
1623
|
return Wn = i, Wn;
|
|
1625
1624
|
}
|
|
1626
1625
|
var Jn, ff;
|
|
1627
|
-
function
|
|
1626
|
+
function ih() {
|
|
1628
1627
|
if (ff) return Jn;
|
|
1629
1628
|
ff = 1;
|
|
1630
1629
|
var i = typeof Symbol < "u" && Symbol, h = _o();
|
|
@@ -1644,7 +1643,7 @@ function Ic() {
|
|
|
1644
1643
|
return Zn = i.getPrototypeOf || null, Zn;
|
|
1645
1644
|
}
|
|
1646
1645
|
var Xn, cf;
|
|
1647
|
-
function
|
|
1646
|
+
function ah() {
|
|
1648
1647
|
if (cf) return Xn;
|
|
1649
1648
|
cf = 1;
|
|
1650
1649
|
var i = "Function.prototype.bind called on incompatible ", h = Object.prototype.toString, b = Math.max, y = "[object Function]", s = function(l, n) {
|
|
@@ -1692,7 +1691,7 @@ var ei, hf;
|
|
|
1692
1691
|
function kr() {
|
|
1693
1692
|
if (hf) return ei;
|
|
1694
1693
|
hf = 1;
|
|
1695
|
-
var i =
|
|
1694
|
+
var i = ah();
|
|
1696
1695
|
return ei = Function.prototype.bind || i, ei;
|
|
1697
1696
|
}
|
|
1698
1697
|
var ti, lf;
|
|
@@ -1704,14 +1703,14 @@ function Eo() {
|
|
|
1704
1703
|
return df || (df = 1, ri = Function.prototype.apply), ri;
|
|
1705
1704
|
}
|
|
1706
1705
|
var ni, pf;
|
|
1707
|
-
function
|
|
1706
|
+
function oh() {
|
|
1708
1707
|
return pf || (pf = 1, ni = typeof Reflect < "u" && Reflect && Reflect.apply), ni;
|
|
1709
1708
|
}
|
|
1710
1709
|
var ii, bf;
|
|
1711
1710
|
function Tc() {
|
|
1712
1711
|
if (bf) return ii;
|
|
1713
1712
|
bf = 1;
|
|
1714
|
-
var i = kr(), h = Eo(), b = xo(), y =
|
|
1713
|
+
var i = kr(), h = Eo(), b = xo(), y = oh();
|
|
1715
1714
|
return ii = y || i.call(b, h), ii;
|
|
1716
1715
|
}
|
|
1717
1716
|
var ai, yf;
|
|
@@ -1726,7 +1725,7 @@ function Ao() {
|
|
|
1726
1725
|
}, ai;
|
|
1727
1726
|
}
|
|
1728
1727
|
var oi, gf;
|
|
1729
|
-
function
|
|
1728
|
+
function fh() {
|
|
1730
1729
|
if (gf) return oi;
|
|
1731
1730
|
gf = 1;
|
|
1732
1731
|
var i = Ao(), h = /* @__PURE__ */ lr(), b;
|
|
@@ -1753,7 +1752,7 @@ var fi, vf;
|
|
|
1753
1752
|
function So() {
|
|
1754
1753
|
if (vf) return fi;
|
|
1755
1754
|
vf = 1;
|
|
1756
|
-
var i = Sc(), h = Ic(), b = /* @__PURE__ */
|
|
1755
|
+
var i = Sc(), h = Ic(), b = /* @__PURE__ */ fh();
|
|
1757
1756
|
return fi = i ? function(s) {
|
|
1758
1757
|
return i(s);
|
|
1759
1758
|
} : h ? function(s) {
|
|
@@ -1775,7 +1774,7 @@ var ui, _f;
|
|
|
1775
1774
|
function Io() {
|
|
1776
1775
|
if (_f) return ui;
|
|
1777
1776
|
_f = 1;
|
|
1778
|
-
var i, h = /* @__PURE__ */ wo(), b = /* @__PURE__ */
|
|
1777
|
+
var i, h = /* @__PURE__ */ wo(), b = /* @__PURE__ */ H0(), y = /* @__PURE__ */ $0(), s = /* @__PURE__ */ K0(), a = /* @__PURE__ */ G0(), p = /* @__PURE__ */ Ac(), f = /* @__PURE__ */ Lr(), l = /* @__PURE__ */ Y0(), n = /* @__PURE__ */ W0(), r = /* @__PURE__ */ J0(), e = /* @__PURE__ */ Q0(), t = /* @__PURE__ */ Z0(), o = /* @__PURE__ */ X0(), u = /* @__PURE__ */ eh(), d = /* @__PURE__ */ rh(), m = Function, g = function(oe) {
|
|
1779
1778
|
try {
|
|
1780
1779
|
return m('"use strict"; return (' + oe + ").constructor;")();
|
|
1781
1780
|
} catch {
|
|
@@ -1792,7 +1791,7 @@ function Io() {
|
|
|
1792
1791
|
return I;
|
|
1793
1792
|
}
|
|
1794
1793
|
}
|
|
1795
|
-
}() : I, D =
|
|
1794
|
+
}() : I, D = ih()(), k = So(), $ = Ic(), U = Sc(), Q = Eo(), R = xo(), c = {}, x = typeof Uint8Array > "u" || !k ? i : k(Uint8Array), S = {
|
|
1796
1795
|
__proto__: null,
|
|
1797
1796
|
"%AggregateError%": typeof AggregateError > "u" ? i : AggregateError,
|
|
1798
1797
|
"%Array%": Array,
|
|
@@ -2025,7 +2024,7 @@ function dr() {
|
|
|
2025
2024
|
}, ci;
|
|
2026
2025
|
}
|
|
2027
2026
|
var hi, xf;
|
|
2028
|
-
function
|
|
2027
|
+
function sh() {
|
|
2029
2028
|
if (xf) return hi;
|
|
2030
2029
|
xf = 1;
|
|
2031
2030
|
var i = pn()(), h = /* @__PURE__ */ dr(), b = h("Object.prototype.toString"), y = function(f) {
|
|
@@ -2038,7 +2037,7 @@ function uh() {
|
|
|
2038
2037
|
return y.isLegacyArguments = s, hi = a ? y : s, hi;
|
|
2039
2038
|
}
|
|
2040
2039
|
var li, Ef;
|
|
2041
|
-
function
|
|
2040
|
+
function uh() {
|
|
2042
2041
|
if (Ef) return li;
|
|
2043
2042
|
Ef = 1;
|
|
2044
2043
|
var i = /* @__PURE__ */ dr(), h = pn()(), b = /* @__PURE__ */ Bc(), y = /* @__PURE__ */ lr(), s;
|
|
@@ -2082,10 +2081,10 @@ function ch() {
|
|
|
2082
2081
|
return li = s, li;
|
|
2083
2082
|
}
|
|
2084
2083
|
var di, Af;
|
|
2085
|
-
function
|
|
2084
|
+
function ch() {
|
|
2086
2085
|
if (Af) return di;
|
|
2087
2086
|
Af = 1;
|
|
2088
|
-
var i = /* @__PURE__ */ dr(), h =
|
|
2087
|
+
var i = /* @__PURE__ */ dr(), h = uh(), b = i("RegExp.prototype.exec"), y = /* @__PURE__ */ Lr();
|
|
2089
2088
|
return di = function(a) {
|
|
2090
2089
|
if (!h(a))
|
|
2091
2090
|
throw new y("`regex` must be a RegExp");
|
|
@@ -2095,10 +2094,10 @@ function hh() {
|
|
|
2095
2094
|
}, di;
|
|
2096
2095
|
}
|
|
2097
2096
|
var pi, Sf;
|
|
2098
|
-
function
|
|
2097
|
+
function hh() {
|
|
2099
2098
|
if (Sf) return pi;
|
|
2100
2099
|
Sf = 1;
|
|
2101
|
-
var i = /* @__PURE__ */ dr(), h = /* @__PURE__ */
|
|
2100
|
+
var i = /* @__PURE__ */ dr(), h = /* @__PURE__ */ ch(), b = h(/^\s*(?:function)?\*/), y = pn()(), s = So(), a = i("Object.prototype.toString"), p = i("Function.prototype.toString"), f = function() {
|
|
2102
2101
|
if (!y)
|
|
2103
2102
|
return !1;
|
|
2104
2103
|
try {
|
|
@@ -2128,7 +2127,7 @@ function lh() {
|
|
|
2128
2127
|
}, pi;
|
|
2129
2128
|
}
|
|
2130
2129
|
var bi, If;
|
|
2131
|
-
function
|
|
2130
|
+
function lh() {
|
|
2132
2131
|
if (If) return bi;
|
|
2133
2132
|
If = 1;
|
|
2134
2133
|
var i = Function.prototype.toString, h = typeof Reflect == "object" && Reflect !== null && Reflect.apply, b, y;
|
|
@@ -2200,10 +2199,10 @@ function dh() {
|
|
|
2200
2199
|
}, bi;
|
|
2201
2200
|
}
|
|
2202
2201
|
var yi, Tf;
|
|
2203
|
-
function
|
|
2202
|
+
function dh() {
|
|
2204
2203
|
if (Tf) return yi;
|
|
2205
2204
|
Tf = 1;
|
|
2206
|
-
var i =
|
|
2205
|
+
var i = lh(), h = Object.prototype.toString, b = Object.prototype.hasOwnProperty, y = function(l, n, r) {
|
|
2207
2206
|
for (var e = 0, t = l.length; e < t; e++)
|
|
2208
2207
|
b.call(l, e) && (r == null ? n(l[e], e, l) : n.call(r, l[e], e, l));
|
|
2209
2208
|
}, s = function(l, n, r) {
|
|
@@ -2224,7 +2223,7 @@ function ph() {
|
|
|
2224
2223
|
}, yi;
|
|
2225
2224
|
}
|
|
2226
2225
|
var gi, Bf;
|
|
2227
|
-
function
|
|
2226
|
+
function ph() {
|
|
2228
2227
|
return Bf || (Bf = 1, gi = [
|
|
2229
2228
|
"Float16Array",
|
|
2230
2229
|
"Float32Array",
|
|
@@ -2241,10 +2240,10 @@ function bh() {
|
|
|
2241
2240
|
]), gi;
|
|
2242
2241
|
}
|
|
2243
2242
|
var vi, Rf;
|
|
2244
|
-
function
|
|
2243
|
+
function bh() {
|
|
2245
2244
|
if (Rf) return vi;
|
|
2246
2245
|
Rf = 1;
|
|
2247
|
-
var i = /* @__PURE__ */
|
|
2246
|
+
var i = /* @__PURE__ */ ph(), h = typeof globalThis > "u" ? yt : globalThis;
|
|
2248
2247
|
return vi = function() {
|
|
2249
2248
|
for (var y = [], s = 0; s < i.length; s++)
|
|
2250
2249
|
typeof h[i[s]] == "function" && (y[y.length] = i[s]);
|
|
@@ -2301,7 +2300,7 @@ function Mc() {
|
|
|
2301
2300
|
}, wi = h, wi;
|
|
2302
2301
|
}
|
|
2303
2302
|
var xi, Ff;
|
|
2304
|
-
function
|
|
2303
|
+
function yh() {
|
|
2305
2304
|
if (Ff) return xi;
|
|
2306
2305
|
Ff = 1;
|
|
2307
2306
|
var i = /* @__PURE__ */ Io(), h = /* @__PURE__ */ Rc(), b = /* @__PURE__ */ Mc()(), y = /* @__PURE__ */ lr(), s = /* @__PURE__ */ Lr(), a = i("%Math.floor%");
|
|
@@ -2331,7 +2330,7 @@ function gh() {
|
|
|
2331
2330
|
}, xi;
|
|
2332
2331
|
}
|
|
2333
2332
|
var Ei, Of;
|
|
2334
|
-
function
|
|
2333
|
+
function gh() {
|
|
2335
2334
|
if (Of) return Ei;
|
|
2336
2335
|
Of = 1;
|
|
2337
2336
|
var i = kr(), h = Eo(), b = Tc();
|
|
@@ -2342,7 +2341,7 @@ function vh() {
|
|
|
2342
2341
|
var Df;
|
|
2343
2342
|
function yn() {
|
|
2344
2343
|
return Df || (Df = 1, function(i) {
|
|
2345
|
-
var h = /* @__PURE__ */
|
|
2344
|
+
var h = /* @__PURE__ */ yh(), b = /* @__PURE__ */ bn(), y = Ao(), s = gh();
|
|
2346
2345
|
i.exports = function(p) {
|
|
2347
2346
|
var f = y(arguments), l = p.length - (arguments.length - 1);
|
|
2348
2347
|
return h(
|
|
@@ -2357,7 +2356,7 @@ var Ai, Nf;
|
|
|
2357
2356
|
function Pc() {
|
|
2358
2357
|
if (Nf) return Ai;
|
|
2359
2358
|
Nf = 1;
|
|
2360
|
-
var i =
|
|
2359
|
+
var i = dh(), h = /* @__PURE__ */ bh(), b = yn(), y = /* @__PURE__ */ dr(), s = /* @__PURE__ */ lr(), a = So(), p = y("Object.prototype.toString"), f = pn()(), l = typeof globalThis > "u" ? yt : globalThis, n = h(), r = y("String.prototype.slice"), e = y("Array.prototype.indexOf", !0) || function(m, g) {
|
|
2361
2360
|
for (var w = 0; w < m.length; w += 1)
|
|
2362
2361
|
if (m[w] === g)
|
|
2363
2362
|
return w;
|
|
@@ -2424,7 +2423,7 @@ function Pc() {
|
|
|
2424
2423
|
}, Ai;
|
|
2425
2424
|
}
|
|
2426
2425
|
var Si, qf;
|
|
2427
|
-
function
|
|
2426
|
+
function vh() {
|
|
2428
2427
|
if (qf) return Si;
|
|
2429
2428
|
qf = 1;
|
|
2430
2429
|
var i = /* @__PURE__ */ Pc();
|
|
@@ -2433,9 +2432,9 @@ function mh() {
|
|
|
2433
2432
|
}, Si;
|
|
2434
2433
|
}
|
|
2435
2434
|
var Lf;
|
|
2436
|
-
function
|
|
2435
|
+
function mh() {
|
|
2437
2436
|
return Lf || (Lf = 1, function(i) {
|
|
2438
|
-
var h = /* @__PURE__ */
|
|
2437
|
+
var h = /* @__PURE__ */ sh(), b = hh(), y = /* @__PURE__ */ Pc(), s = /* @__PURE__ */ vh();
|
|
2439
2438
|
function a(pe) {
|
|
2440
2439
|
return pe.call.bind(pe);
|
|
2441
2440
|
}
|
|
@@ -2620,7 +2619,7 @@ function _h() {
|
|
|
2620
2619
|
}(Bn)), Bn;
|
|
2621
2620
|
}
|
|
2622
2621
|
var Ii, kf;
|
|
2623
|
-
function
|
|
2622
|
+
function _h() {
|
|
2624
2623
|
return kf || (kf = 1, Ii = function(h) {
|
|
2625
2624
|
return h && typeof h == "object" && typeof h.copy == "function" && typeof h.fill == "function" && typeof h.readUInt8 == "function";
|
|
2626
2625
|
}), Ii;
|
|
@@ -2866,7 +2865,7 @@ function Ft() {
|
|
|
2866
2865
|
`) + " " + G.join(`,
|
|
2867
2866
|
`) + " " + H[1] : H[0] + te + " " + G.join(", ") + " " + H[1];
|
|
2868
2867
|
}
|
|
2869
|
-
i.types =
|
|
2868
|
+
i.types = mh();
|
|
2870
2869
|
function m(G) {
|
|
2871
2870
|
return Array.isArray(G);
|
|
2872
2871
|
}
|
|
@@ -2923,7 +2922,7 @@ function Ft() {
|
|
|
2923
2922
|
return G === null || typeof G == "boolean" || typeof G == "number" || typeof G == "string" || typeof G == "symbol" || // ES6 symbol
|
|
2924
2923
|
typeof G > "u";
|
|
2925
2924
|
}
|
|
2926
|
-
i.isPrimitive = x, i.isBuffer =
|
|
2925
|
+
i.isPrimitive = x, i.isBuffer = _h();
|
|
2927
2926
|
function S(G) {
|
|
2928
2927
|
return Object.prototype.toString.call(G);
|
|
2929
2928
|
}
|
|
@@ -3143,7 +3142,7 @@ function Fc() {
|
|
|
3143
3142
|
return typeof I != "number" && (I = 0), I + E.length > w.length ? !1 : w.indexOf(E, I) !== -1;
|
|
3144
3143
|
}
|
|
3145
3144
|
return o("ERR_AMBIGUOUS_ARGUMENT", 'The "%s" argument is ambiguous. %s', TypeError), o("ERR_INVALID_ARG_TYPE", function(w, E, I) {
|
|
3146
|
-
e === void 0 && (e =
|
|
3145
|
+
e === void 0 && (e = wt()), e(typeof w == "string", "'name' must be a string");
|
|
3147
3146
|
var P;
|
|
3148
3147
|
typeof E == "string" && d(E, "not ") ? (P = "must not be", E = E.replace(/^not /, "")) : P = "must be";
|
|
3149
3148
|
var D;
|
|
@@ -3165,7 +3164,7 @@ function Fc() {
|
|
|
3165
3164
|
}, TypeError), o("ERR_MISSING_ARGS", function() {
|
|
3166
3165
|
for (var w = arguments.length, E = new Array(w), I = 0; I < w; I++)
|
|
3167
3166
|
E[I] = arguments[I];
|
|
3168
|
-
e === void 0 && (e =
|
|
3167
|
+
e === void 0 && (e = wt()), e(E.length > 0, "At least one arg needs to be specified");
|
|
3169
3168
|
var P = "The ", D = E.length;
|
|
3170
3169
|
switch (E = E.map(function(k) {
|
|
3171
3170
|
return '"'.concat(k, '"');
|
|
@@ -3184,7 +3183,7 @@ function Fc() {
|
|
|
3184
3183
|
}, TypeError), In.codes = r, In;
|
|
3185
3184
|
}
|
|
3186
3185
|
var Ti, zf;
|
|
3187
|
-
function
|
|
3186
|
+
function wh() {
|
|
3188
3187
|
if (zf) return Ti;
|
|
3189
3188
|
zf = 1;
|
|
3190
3189
|
function i(O, v) {
|
|
@@ -3521,7 +3520,7 @@ function Oc() {
|
|
|
3521
3520
|
}, Bi;
|
|
3522
3521
|
}
|
|
3523
3522
|
var Ri, Hf;
|
|
3524
|
-
function
|
|
3523
|
+
function xh() {
|
|
3525
3524
|
if (Hf) return Ri;
|
|
3526
3525
|
Hf = 1;
|
|
3527
3526
|
var i;
|
|
@@ -3614,7 +3613,7 @@ function Dc() {
|
|
|
3614
3613
|
$f = 1;
|
|
3615
3614
|
var i = Array.prototype.slice, h = Oc(), b = Object.keys, y = b ? function(p) {
|
|
3616
3615
|
return b(p);
|
|
3617
|
-
} :
|
|
3616
|
+
} : xh(), s = Object.keys;
|
|
3618
3617
|
return y.shim = function() {
|
|
3619
3618
|
if (Object.keys) {
|
|
3620
3619
|
var p = function() {
|
|
@@ -3630,7 +3629,7 @@ function Dc() {
|
|
|
3630
3629
|
}, Mi = y, Mi;
|
|
3631
3630
|
}
|
|
3632
3631
|
var Pi, Kf;
|
|
3633
|
-
function
|
|
3632
|
+
function Eh() {
|
|
3634
3633
|
if (Kf) return Pi;
|
|
3635
3634
|
Kf = 1;
|
|
3636
3635
|
var i = Dc(), h = _o()(), b = /* @__PURE__ */ dr(), y = /* @__PURE__ */ wo(), s = b("Array.prototype.push"), a = b("Object.prototype.propertyIsEnumerable"), p = h ? y.getOwnPropertySymbols : null;
|
|
@@ -3659,10 +3658,10 @@ function Ah() {
|
|
|
3659
3658
|
}, Pi;
|
|
3660
3659
|
}
|
|
3661
3660
|
var Fi, Gf;
|
|
3662
|
-
function
|
|
3661
|
+
function Ah() {
|
|
3663
3662
|
if (Gf) return Fi;
|
|
3664
3663
|
Gf = 1;
|
|
3665
|
-
var i =
|
|
3664
|
+
var i = Eh(), h = function() {
|
|
3666
3665
|
if (!Object.assign)
|
|
3667
3666
|
return !1;
|
|
3668
3667
|
for (var y = "abcdefghijklmnopqrst", s = y.split(""), a = {}, p = 0; p < s.length; ++p)
|
|
@@ -3707,7 +3706,7 @@ function To() {
|
|
|
3707
3706
|
}, Di;
|
|
3708
3707
|
}
|
|
3709
3708
|
var Ni, Jf;
|
|
3710
|
-
function
|
|
3709
|
+
function Sh() {
|
|
3711
3710
|
if (Jf) return Ni;
|
|
3712
3711
|
Jf = 1;
|
|
3713
3712
|
var i = /* @__PURE__ */ Io(), h = yn(), b = h(i("String.prototype.indexOf"));
|
|
@@ -3740,7 +3739,7 @@ function gn() {
|
|
|
3740
3739
|
return l.supportsDescriptors = !!p, qi = l, qi;
|
|
3741
3740
|
}
|
|
3742
3741
|
var Li, Zf;
|
|
3743
|
-
function
|
|
3742
|
+
function Ih() {
|
|
3744
3743
|
if (Zf) return Li;
|
|
3745
3744
|
Zf = 1;
|
|
3746
3745
|
var i = To(), h = gn();
|
|
@@ -3754,10 +3753,10 @@ function Th() {
|
|
|
3754
3753
|
}, Li;
|
|
3755
3754
|
}
|
|
3756
3755
|
var ki, Xf;
|
|
3757
|
-
function
|
|
3756
|
+
function Th() {
|
|
3758
3757
|
if (Xf) return ki;
|
|
3759
3758
|
Xf = 1;
|
|
3760
|
-
var i = gn(), h = yn(), b = Nc(), y = To(), s =
|
|
3759
|
+
var i = gn(), h = yn(), b = Nc(), y = To(), s = Ih(), a = h(y(), Object);
|
|
3761
3760
|
return i(a, {
|
|
3762
3761
|
getPolyfill: y,
|
|
3763
3762
|
implementation: b,
|
|
@@ -3780,7 +3779,7 @@ function Lc() {
|
|
|
3780
3779
|
}, Ui;
|
|
3781
3780
|
}
|
|
3782
3781
|
var ji, rs;
|
|
3783
|
-
function
|
|
3782
|
+
function Bh() {
|
|
3784
3783
|
if (rs) return ji;
|
|
3785
3784
|
rs = 1;
|
|
3786
3785
|
var i = gn(), h = Lc();
|
|
@@ -3794,10 +3793,10 @@ function Rh() {
|
|
|
3794
3793
|
}, ji;
|
|
3795
3794
|
}
|
|
3796
3795
|
var zi, ns;
|
|
3797
|
-
function
|
|
3796
|
+
function Rh() {
|
|
3798
3797
|
if (ns) return zi;
|
|
3799
3798
|
ns = 1;
|
|
3800
|
-
var i = yn(), h = gn(), b = qc(), y = Lc(), s =
|
|
3799
|
+
var i = yn(), h = gn(), b = qc(), y = Lc(), s = Bh(), a = i(y(), Number);
|
|
3801
3800
|
return h(a, {
|
|
3802
3801
|
getPolyfill: y,
|
|
3803
3802
|
implementation: b,
|
|
@@ -3805,7 +3804,7 @@ function Mh() {
|
|
|
3805
3804
|
}), zi = a, zi;
|
|
3806
3805
|
}
|
|
3807
3806
|
var Vi, is;
|
|
3808
|
-
function
|
|
3807
|
+
function Mh() {
|
|
3809
3808
|
if (is) return Vi;
|
|
3810
3809
|
is = 1;
|
|
3811
3810
|
function i(ae, se) {
|
|
@@ -3867,9 +3866,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3867
3866
|
return se.forEach(function(xe, _e) {
|
|
3868
3867
|
return we.push([_e, xe]);
|
|
3869
3868
|
}), we;
|
|
3870
|
-
}, r = Object.is ? Object.is :
|
|
3869
|
+
}, r = Object.is ? Object.is : Th(), e = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols : function() {
|
|
3871
3870
|
return [];
|
|
3872
|
-
}, t = Number.isNaN ? Number.isNaN :
|
|
3871
|
+
}, t = Number.isNaN ? Number.isNaN : Rh();
|
|
3873
3872
|
function o(ae) {
|
|
3874
3873
|
return ae.call.bind(ae);
|
|
3875
3874
|
}
|
|
@@ -4171,7 +4170,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4171
4170
|
}, Vi;
|
|
4172
4171
|
}
|
|
4173
4172
|
var as;
|
|
4174
|
-
function
|
|
4173
|
+
function wt() {
|
|
4175
4174
|
if (as) return Sn.exports;
|
|
4176
4175
|
as = 1;
|
|
4177
4176
|
function i(H) {
|
|
@@ -4189,9 +4188,9 @@ function _t() {
|
|
|
4189
4188
|
if (!(H instanceof re))
|
|
4190
4189
|
throw new TypeError("Cannot call a class as a function");
|
|
4191
4190
|
}
|
|
4192
|
-
var y = Fc(), s = y.codes, a = s.ERR_AMBIGUOUS_ARGUMENT, p = s.ERR_INVALID_ARG_TYPE, f = s.ERR_INVALID_ARG_VALUE, l = s.ERR_INVALID_RETURN_VALUE, n = s.ERR_MISSING_ARGS, r =
|
|
4191
|
+
var y = Fc(), s = y.codes, a = s.ERR_AMBIGUOUS_ARGUMENT, p = s.ERR_INVALID_ARG_TYPE, f = s.ERR_INVALID_ARG_VALUE, l = s.ERR_INVALID_RETURN_VALUE, n = s.ERR_MISSING_ARGS, r = wh(), e = Ft(), t = e.inspect, o = Ft().types, u = o.isPromise, d = o.isRegExp, m = Ah()(), g = To()(), w = Sh()("RegExp.prototype.test"), E, I;
|
|
4193
4192
|
function P() {
|
|
4194
|
-
var H =
|
|
4193
|
+
var H = Mh();
|
|
4195
4194
|
E = H.isDeepEqual, I = H.isDeepStrictEqual;
|
|
4196
4195
|
}
|
|
4197
4196
|
var D = !1, k = Sn.exports = c, $ = {};
|
|
@@ -4546,8 +4545,8 @@ function _t() {
|
|
|
4546
4545
|
notDeepEqual: k.notDeepStrictEqual
|
|
4547
4546
|
}), k.strict.strict = k.strict, Sn.exports;
|
|
4548
4547
|
}
|
|
4549
|
-
const
|
|
4550
|
-
version:
|
|
4548
|
+
const Ph = "1.4.2", Fh = {
|
|
4549
|
+
version: Ph
|
|
4551
4550
|
};
|
|
4552
4551
|
var Hi, os;
|
|
4553
4552
|
function kc() {
|
|
@@ -4559,7 +4558,7 @@ function kc() {
|
|
|
4559
4558
|
q != null && (typeof q == "number" ? this.fromNumber(q, j, J) : j == null && typeof q != "string" ? this.fromString(q, 256) : this.fromString(q, j));
|
|
4560
4559
|
}
|
|
4561
4560
|
var h = i.prototype;
|
|
4562
|
-
h.__bigi =
|
|
4561
|
+
h.__bigi = Fh.version, i.isBigInteger = function(q, j) {
|
|
4563
4562
|
return q && q.__bigi && (!j || q.__bigi === h.__bigi);
|
|
4564
4563
|
};
|
|
4565
4564
|
var b;
|
|
@@ -4731,18 +4730,18 @@ function kc() {
|
|
|
4731
4730
|
return;
|
|
4732
4731
|
}
|
|
4733
4732
|
J == null && (J = new i());
|
|
4734
|
-
var Se = new i(), Re = ce.s, He = q.s,
|
|
4735
|
-
|
|
4733
|
+
var Se = new i(), Re = ce.s, He = q.s, Et = ce.DB - P(le[le.t - 1]);
|
|
4734
|
+
Et > 0 ? (le.lShiftTo(Et, Se), Ee.lShiftTo(Et, J)) : (le.copyTo(Se), Ee.copyTo(J));
|
|
4736
4735
|
var gt = Se.t, bt = Se[gt - 1];
|
|
4737
4736
|
if (bt != 0) {
|
|
4738
|
-
var
|
|
4737
|
+
var Tt = bt * (1 << ce.F1) + (gt > 1 ? Se[gt - 2] >> ce.F2 : 0), jr = ce.FV / Tt, At = (1 << ce.F1) / Tt, Xt = 1 << ce.F2, er = J.t, zr = er - gt, Ct = j ?? new i();
|
|
4739
4738
|
for (Se.dlShiftTo(zr, Ct), J.compareTo(Ct) >= 0 && (J[J.t++] = 1, J.subTo(Ct, J)), i.ONE.dlShiftTo(gt, Ct), Ct.subTo(Se, Se); Se.t < gt; ) Se[Se.t++] = 0;
|
|
4740
4739
|
for (; --zr >= 0; ) {
|
|
4741
|
-
var xn = J[--er] == bt ? ce.DM : Math.floor(J[er] * jr + (J[er - 1] + Xt) *
|
|
4740
|
+
var xn = J[--er] == bt ? ce.DM : Math.floor(J[er] * jr + (J[er - 1] + Xt) * At);
|
|
4742
4741
|
if ((J[er] += Se.am(0, xn, J, zr, 0, gt)) < xn)
|
|
4743
4742
|
for (Se.dlShiftTo(zr, Ct), J.subTo(Ct, J); J[er] < --xn; ) J.subTo(Ct, J);
|
|
4744
4743
|
}
|
|
4745
|
-
j != null && (J.drShiftTo(gt, j), Re != He && i.ZERO.subTo(j, j)), J.t = gt, J.clamp(),
|
|
4744
|
+
j != null && (J.drShiftTo(gt, j), Re != He && i.ZERO.subTo(j, j)), J.t = gt, J.clamp(), Et > 0 && J.rShiftTo(Et, J), Re < 0 && i.ZERO.subTo(J, J);
|
|
4746
4745
|
}
|
|
4747
4746
|
}
|
|
4748
4747
|
}
|
|
@@ -4860,12 +4859,12 @@ function kc() {
|
|
|
4860
4859
|
var J = this;
|
|
4861
4860
|
J.fromInt(0), j == null && (j = 10);
|
|
4862
4861
|
for (var ce = J.chunkSize(j), le = Math.pow(j, ce), Ee = !1, Se = 0, Re = 0, He = 0; He < q.length; ++He) {
|
|
4863
|
-
var
|
|
4864
|
-
if (
|
|
4862
|
+
var Et = e(q, He);
|
|
4863
|
+
if (Et < 0) {
|
|
4865
4864
|
q.charAt(He) == "-" && J.signum() == 0 && (Ee = !0);
|
|
4866
4865
|
continue;
|
|
4867
4866
|
}
|
|
4868
|
-
Re = j * Re +
|
|
4867
|
+
Re = j * Re + Et, ++Se >= ce && (J.dMultiply(le), J.dAddOffset(Re, 0), Se = 0, Re = 0);
|
|
4869
4868
|
}
|
|
4870
4869
|
Se > 0 && (J.dMultiply(Math.pow(j, Se)), J.dAddOffset(Re, 0)), Ee && i.ZERO.subTo(J, J);
|
|
4871
4870
|
}
|
|
@@ -5070,7 +5069,7 @@ function kc() {
|
|
|
5070
5069
|
J[this.t + ce - j] = this.am(j - ce, q[ce], J, 0, 0, this.t + ce - j);
|
|
5071
5070
|
J.clamp(), J.drShiftTo(1, J);
|
|
5072
5071
|
}
|
|
5073
|
-
function
|
|
5072
|
+
function It(q) {
|
|
5074
5073
|
this.r2 = new i(), this.q3 = new i(), i.ONE.dlShiftTo(2 * q.t, this.r2), this.mu = this.r2.divide(q), this.m = q;
|
|
5075
5074
|
}
|
|
5076
5075
|
function mr(q) {
|
|
@@ -5093,30 +5092,30 @@ function kc() {
|
|
|
5093
5092
|
function Er(q, j, J) {
|
|
5094
5093
|
q.multiplyTo(j, J), this.reduce(J);
|
|
5095
5094
|
}
|
|
5096
|
-
|
|
5095
|
+
It.prototype.convert = mr, It.prototype.revert = _r, It.prototype.reduce = wr, It.prototype.mulTo = Er, It.prototype.sqrTo = xr;
|
|
5097
5096
|
function Ar(q, j) {
|
|
5098
5097
|
var J = q.bitLength(), ce, le = u(1), Ee;
|
|
5099
5098
|
if (J <= 0) return le;
|
|
5100
|
-
J < 18 ? ce = 1 : J < 48 ? ce = 3 : J < 144 ? ce = 4 : J < 768 ? ce = 5 : ce = 6, J < 8 ? Ee = new N(j) : j.isEven() ? Ee = new
|
|
5101
|
-
var Se = new Array(), Re = 3, He = ce - 1,
|
|
5099
|
+
J < 18 ? ce = 1 : J < 48 ? ce = 3 : J < 144 ? ce = 4 : J < 768 ? ce = 5 : ce = 6, J < 8 ? Ee = new N(j) : j.isEven() ? Ee = new It(j) : Ee = new H(j);
|
|
5100
|
+
var Se = new Array(), Re = 3, He = ce - 1, Et = (1 << ce) - 1;
|
|
5102
5101
|
if (Se[1] = Ee.convert(this), ce > 1) {
|
|
5103
5102
|
var gt = new i();
|
|
5104
|
-
for (Ee.sqrTo(Se[1], gt); Re <=
|
|
5103
|
+
for (Ee.sqrTo(Se[1], gt); Re <= Et; )
|
|
5105
5104
|
Se[Re] = new i(), Ee.mulTo(gt, Se[Re - 2], Se[Re]), Re += 2;
|
|
5106
5105
|
}
|
|
5107
|
-
var bt = q.t - 1,
|
|
5106
|
+
var bt = q.t - 1, Tt, jr = !0, At = new i(), Xt;
|
|
5108
5107
|
for (J = P(q[bt]) - 1; bt >= 0; ) {
|
|
5109
|
-
for (J >= He ?
|
|
5110
|
-
|
|
5108
|
+
for (J >= He ? Tt = q[bt] >> J - He & Et : (Tt = (q[bt] & (1 << J + 1) - 1) << He - J, bt > 0 && (Tt |= q[bt - 1] >> this.DB + J - He)), Re = ce; (Tt & 1) == 0; )
|
|
5109
|
+
Tt >>= 1, --Re;
|
|
5111
5110
|
if ((J -= Re) < 0 && (J += this.DB, --bt), jr)
|
|
5112
|
-
Se[
|
|
5111
|
+
Se[Tt].copyTo(le), jr = !1;
|
|
5113
5112
|
else {
|
|
5114
5113
|
for (; Re > 1; )
|
|
5115
|
-
Ee.sqrTo(le,
|
|
5116
|
-
Re > 0 ? Ee.sqrTo(le,
|
|
5114
|
+
Ee.sqrTo(le, At), Ee.sqrTo(At, le), Re -= 2;
|
|
5115
|
+
Re > 0 ? Ee.sqrTo(le, At) : (Xt = le, le = At, At = Xt), Ee.mulTo(At, Se[Tt], le);
|
|
5117
5116
|
}
|
|
5118
5117
|
for (; bt >= 0 && (q[bt] & 1 << J) == 0; )
|
|
5119
|
-
Ee.sqrTo(le,
|
|
5118
|
+
Ee.sqrTo(le, At), Xt = le, le = At, At = Xt, --J < 0 && (J = this.DB - 1, --bt);
|
|
5120
5119
|
}
|
|
5121
5120
|
return Ee.revert(le);
|
|
5122
5121
|
}
|
|
@@ -5362,10 +5361,10 @@ function kc() {
|
|
|
5362
5361
|
return h.chunkSize = Me, h.toRadix = pe, h.fromRadix = We, h.fromNumber = Te, h.bitwiseTo = we, h.changeBit = Ye, h.addTo = Zt, h.dMultiply = Pe, h.dAddOffset = rt, h.multiplyLowerTo = gr, h.multiplyUpperTo = vr, h.modInt = Ir, h.millerRabin = Mr, h.clone = he, h.intValue = ve, h.byteValue = Ae, h.shortValue = me, h.signum = Fe, h.toByteArray = Ie, h.equals = Ce, h.min = ae, h.max = se, h.and = _e, h.or = L, h.xor = B, h.andNot = ie, h.not = de, h.shiftLeft = ye, h.shiftRight = Be, h.getLowestSetBit = De, h.bitCount = Ge, h.testBit = tt, h.setBit = kt, h.clearBit = nt, h.flipBit = Qe, h.add = z, h.subtract = T, h.multiply = F, h.divide = fe, h.remainder = be, h.divideAndRemainder = ge, h.modPow = Ar, h.modInverse = Tr, h.pow = ft, h.gcd = Sr, h.isProbablePrime = Rr, h.square = ee, i.ZERO = u(0), i.ONE = u(1), i.valueOf = u, Hi = i, Hi;
|
|
5363
5362
|
}
|
|
5364
5363
|
var fs = {}, ss;
|
|
5365
|
-
function
|
|
5364
|
+
function Oh() {
|
|
5366
5365
|
if (ss) return fs;
|
|
5367
5366
|
ss = 1;
|
|
5368
|
-
var i =
|
|
5367
|
+
var i = wt(), h = kc();
|
|
5369
5368
|
return h.fromByteArrayUnsigned = function(b) {
|
|
5370
5369
|
return b[0] & 128 ? new h([0].concat(b)) : new h(b);
|
|
5371
5370
|
}, h.prototype.toByteArrayUnsigned = function() {
|
|
@@ -5383,7 +5382,7 @@ function Dh() {
|
|
|
5383
5382
|
return b === "" ? h.ZERO : (i.equal(b, b.match(/^[A-Fa-f0-9]+/), "Invalid hex string"), i.equal(b.length % 2, 0, "Incomplete hex"), new h(b, 16));
|
|
5384
5383
|
}, h.prototype.toBuffer = function(b) {
|
|
5385
5384
|
for (var y = this.toByteArrayUnsigned(), s = [], a = b - y.length; s.length < a; ) s.push(0);
|
|
5386
|
-
return new
|
|
5385
|
+
return new Ke(s.concat(y));
|
|
5387
5386
|
}, h.prototype.toHex = function(b) {
|
|
5388
5387
|
return this.toBuffer(b).toString("hex");
|
|
5389
5388
|
}, fs;
|
|
@@ -5393,7 +5392,7 @@ function vn() {
|
|
|
5393
5392
|
if (us) return $i;
|
|
5394
5393
|
us = 1;
|
|
5395
5394
|
var i = kc();
|
|
5396
|
-
return
|
|
5395
|
+
return Oh(), $i = i, $i;
|
|
5397
5396
|
}
|
|
5398
5397
|
var Kr = { exports: {} }, Ki = {}, cs;
|
|
5399
5398
|
function Jt() {
|
|
@@ -6451,7 +6450,7 @@ function lt() {
|
|
|
6451
6450
|
}(Kr, Kr.exports)), Kr.exports;
|
|
6452
6451
|
}
|
|
6453
6452
|
var Gi, ls;
|
|
6454
|
-
function
|
|
6453
|
+
function Dh() {
|
|
6455
6454
|
if (ls) return Gi;
|
|
6456
6455
|
ls = 1;
|
|
6457
6456
|
var i = lt().Buffer;
|
|
@@ -6533,14 +6532,14 @@ var Yi, ds;
|
|
|
6533
6532
|
function Cc() {
|
|
6534
6533
|
if (ds) return Yi;
|
|
6535
6534
|
ds = 1;
|
|
6536
|
-
var i =
|
|
6535
|
+
var i = Dh(), h = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
6537
6536
|
return Yi = i(h), Yi;
|
|
6538
6537
|
}
|
|
6539
|
-
function
|
|
6538
|
+
function Nh(i) {
|
|
6540
6539
|
throw new Error('Could not dynamically require "' + i + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
6541
6540
|
}
|
|
6542
|
-
var fn = { exports: {} },
|
|
6543
|
-
function
|
|
6541
|
+
var fn = { exports: {} }, qh = fn.exports, ps;
|
|
6542
|
+
function Lh() {
|
|
6544
6543
|
return ps || (ps = 1, function(i) {
|
|
6545
6544
|
/**
|
|
6546
6545
|
* @license long.js (c) 2013 Daniel Wirtz <dcode@dcode.io>
|
|
@@ -6548,8 +6547,8 @@ function kh() {
|
|
|
6548
6547
|
* see: https://github.com/dcodeIO/long.js for details
|
|
6549
6548
|
*/
|
|
6550
6549
|
(function(h, b) {
|
|
6551
|
-
typeof
|
|
6552
|
-
})(
|
|
6550
|
+
typeof Nh == "function" && i && i.exports ? i.exports = b() : (h.dcodeIO = h.dcodeIO || {}).Long = b();
|
|
6551
|
+
})(qh, function() {
|
|
6553
6552
|
function h(Q, R, c) {
|
|
6554
6553
|
this.low = Q | 0, this.high = R | 0, this.unsigned = !!c;
|
|
6555
6554
|
}
|
|
@@ -6838,7 +6837,7 @@ function Cr() {
|
|
|
6838
6837
|
* see: https://github.com/dcodeIO/bytebuffer.js for details
|
|
6839
6838
|
*/
|
|
6840
6839
|
return Wi = function() {
|
|
6841
|
-
var i = Jt(), h = i.Buffer, b =
|
|
6840
|
+
var i = Jt(), h = i.Buffer, b = Lh(), y = null, s = function(e, t, o) {
|
|
6842
6841
|
if (typeof e > "u" && (e = s.DEFAULT_CAPACITY), typeof t > "u" && (t = s.DEFAULT_ENDIAN), typeof o > "u" && (o = s.DEFAULT_NOASSERT), !o) {
|
|
6843
6842
|
if (e = e | 0, e < 0)
|
|
6844
6843
|
throw RangeError("Illegal capacity");
|
|
@@ -7925,7 +7924,7 @@ var Ji, ys;
|
|
|
7925
7924
|
function Uc() {
|
|
7926
7925
|
if (ys) return Ji;
|
|
7927
7926
|
ys = 1;
|
|
7928
|
-
var i =
|
|
7927
|
+
var i = wt(), h = lt().Buffer, b = vn(), y = b.valueOf(3);
|
|
7929
7928
|
function s(a, p, f, l) {
|
|
7930
7929
|
i.notStrictEqual(l, void 0, "Missing Z coordinate"), this.curve = a, this.x = p, this.y = f, this.z = l, this._zInv = null, this.compressed = !0;
|
|
7931
7930
|
}
|
|
@@ -8007,7 +8006,7 @@ var Qi, gs;
|
|
|
8007
8006
|
function jc() {
|
|
8008
8007
|
if (gs) return Qi;
|
|
8009
8008
|
gs = 1;
|
|
8010
|
-
var i =
|
|
8009
|
+
var i = wt(), h = vn(), b = Uc();
|
|
8011
8010
|
function y(s, a, p, f, l, n, r) {
|
|
8012
8011
|
this.p = s, this.a = a, this.b = p, this.G = b.fromAffine(this, f, l), this.n = n, this.h = r, this.infinity = new b(this, null, null, h.ZERO), this.pOverFour = s.add(h.ONE).shiftRight(2), this.pLength = Math.floor((this.p.bitLength() + 7) / 8);
|
|
8013
8012
|
}
|
|
@@ -8028,20 +8027,20 @@ function jc() {
|
|
|
8028
8027
|
return i(this.isInfinity(a), "Point is not a scalar multiple of G"), !0;
|
|
8029
8028
|
}, Qi = y, Qi;
|
|
8030
8029
|
}
|
|
8031
|
-
const
|
|
8032
|
-
secp128r1:
|
|
8033
|
-
secp160k1:
|
|
8034
|
-
secp160r1:
|
|
8035
|
-
secp192k1:
|
|
8036
|
-
secp192r1:
|
|
8037
|
-
secp256k1:
|
|
8038
|
-
secp256r1:
|
|
8030
|
+
const kh = { p: "fffffffdffffffffffffffffffffffff", a: "fffffffdfffffffffffffffffffffffc", b: "e87579c11079f43dd824993c2cee5ed3", n: "fffffffe0000000075a30d1b9038a115", h: "01", Gx: "161ff7528b899b2d0c28607ca52c5b86", Gy: "cf5ac8395bafeb13c02da292dded7a83" }, Ch = { p: "fffffffffffffffffffffffffffffffeffffac73", a: "00", b: "07", n: "0100000000000000000001b8fa16dfab9aca16b6b3", h: "01", Gx: "3b4c382ce37aa192a4019e763036f4f5dd4d7ebb", Gy: "938cf935318fdced6bc28286531733c3f03c4fee" }, Uh = { p: "ffffffffffffffffffffffffffffffff7fffffff", a: "ffffffffffffffffffffffffffffffff7ffffffc", b: "1c97befc54bd7a8b65acf89f81d4d4adc565fa45", n: "0100000000000000000001f4c8f927aed3ca752257", h: "01", Gx: "4a96b5688ef573284664698968c38bb913cbfc82", Gy: "23a628553168947d59dcc912042351377ac5fb32" }, jh = { p: "fffffffffffffffffffffffffffffffffffffffeffffee37", a: "00", b: "03", n: "fffffffffffffffffffffffe26f2fc170f69466a74defd8d", h: "01", Gx: "db4ff10ec057e9ae26b07d0280b7f4341da5d1b1eae06c7d", Gy: "9b2f2f6d9c5628a7844163d015be86344082aa88d95e2f9d" }, zh = { p: "fffffffffffffffffffffffffffffffeffffffffffffffff", a: "fffffffffffffffffffffffffffffffefffffffffffffffc", b: "64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1", n: "ffffffffffffffffffffffff99def836146bc9b1b4d22831", h: "01", Gx: "188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012", Gy: "07192b95ffc8da78631011ed6b24cdd573f977a11e794811" }, Vh = { p: "fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f", a: "00", b: "07", n: "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141", h: "01", Gx: "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", Gy: "483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8" }, Hh = { p: "ffffffff00000001000000000000000000000000ffffffffffffffffffffffff", a: "ffffffff00000001000000000000000000000000fffffffffffffffffffffffc", b: "5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b", n: "ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551", h: "01", Gx: "6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296", Gy: "4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5" }, $h = {
|
|
8031
|
+
secp128r1: kh,
|
|
8032
|
+
secp160k1: Ch,
|
|
8033
|
+
secp160r1: Uh,
|
|
8034
|
+
secp192k1: jh,
|
|
8035
|
+
secp192r1: zh,
|
|
8036
|
+
secp256k1: Vh,
|
|
8037
|
+
secp256r1: Hh
|
|
8039
8038
|
};
|
|
8040
8039
|
var Zi, vs;
|
|
8041
|
-
function
|
|
8040
|
+
function Kh() {
|
|
8042
8041
|
if (vs) return Zi;
|
|
8043
8042
|
vs = 1;
|
|
8044
|
-
var i = vn(), h =
|
|
8043
|
+
var i = vn(), h = $h, b = jc();
|
|
8045
8044
|
function y(s) {
|
|
8046
8045
|
var a = h[s];
|
|
8047
8046
|
if (!a) return null;
|
|
@@ -8051,10 +8050,10 @@ function Gh() {
|
|
|
8051
8050
|
return Zi = y, Zi;
|
|
8052
8051
|
}
|
|
8053
8052
|
var Xi, ms;
|
|
8054
|
-
function
|
|
8053
|
+
function Gh() {
|
|
8055
8054
|
if (ms) return Xi;
|
|
8056
8055
|
ms = 1;
|
|
8057
|
-
var i = Uc(), h = jc(), b =
|
|
8056
|
+
var i = Uc(), h = jc(), b = Kh();
|
|
8058
8057
|
return Xi = {
|
|
8059
8058
|
Curve: h,
|
|
8060
8059
|
Point: i,
|
|
@@ -8278,7 +8277,7 @@ function zc() {
|
|
|
8278
8277
|
return ws || (ws = 1, ea = Bo().EventEmitter), ea;
|
|
8279
8278
|
}
|
|
8280
8279
|
var ta, xs;
|
|
8281
|
-
function
|
|
8280
|
+
function Yh() {
|
|
8282
8281
|
if (xs) return ta;
|
|
8283
8282
|
xs = 1;
|
|
8284
8283
|
function i(u, d) {
|
|
@@ -8559,7 +8558,7 @@ function Hc() {
|
|
|
8559
8558
|
}, ia;
|
|
8560
8559
|
}
|
|
8561
8560
|
var aa, Is;
|
|
8562
|
-
function
|
|
8561
|
+
function Wh() {
|
|
8563
8562
|
if (Is) return aa;
|
|
8564
8563
|
Is = 1, aa = i;
|
|
8565
8564
|
function i(b, y) {
|
|
@@ -8600,7 +8599,7 @@ function Ro() {
|
|
|
8600
8599
|
var h;
|
|
8601
8600
|
$.WritableState = D;
|
|
8602
8601
|
var b = {
|
|
8603
|
-
deprecate:
|
|
8602
|
+
deprecate: Wh()
|
|
8604
8603
|
}, y = zc(), s = Jt().Buffer, a = (typeof yt < "u" ? yt : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
8605
8604
|
};
|
|
8606
8605
|
function p(V) {
|
|
@@ -9084,7 +9083,7 @@ function mn() {
|
|
|
9084
9083
|
return ua = s, ua;
|
|
9085
9084
|
}
|
|
9086
9085
|
var ca, Ps;
|
|
9087
|
-
function
|
|
9086
|
+
function Jh() {
|
|
9088
9087
|
if (Ps) return ca;
|
|
9089
9088
|
Ps = 1;
|
|
9090
9089
|
var i;
|
|
@@ -9210,7 +9209,7 @@ function Qh() {
|
|
|
9210
9209
|
return ca = w, ca;
|
|
9211
9210
|
}
|
|
9212
9211
|
var ha, Fs;
|
|
9213
|
-
function
|
|
9212
|
+
function Qh() {
|
|
9214
9213
|
return Fs || (Fs = 1, ha = function() {
|
|
9215
9214
|
throw new Error("Readable.from is not available in the browser");
|
|
9216
9215
|
}), ha;
|
|
@@ -9234,7 +9233,7 @@ function Mo() {
|
|
|
9234
9233
|
var f = Ft(), l;
|
|
9235
9234
|
f && f.debuglog ? l = f.debuglog("stream") : l = function() {
|
|
9236
9235
|
};
|
|
9237
|
-
var n =
|
|
9236
|
+
var n = Yh(), r = Vc(), e = Hc(), t = e.getHighWaterMark, o = pr().codes, u = o.ERR_INVALID_ARG_TYPE, d = o.ERR_STREAM_PUSH_AFTER_EOF, m = o.ERR_METHOD_NOT_IMPLEMENTED, g = o.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, w, E, I;
|
|
9238
9237
|
at()(U, b);
|
|
9239
9238
|
var P = r.errorOrDestroy, D = ["error", "close", "destroy", "pause", "resume"];
|
|
9240
9239
|
function k(W, Y, he) {
|
|
@@ -9491,7 +9490,7 @@ function Mo() {
|
|
|
9491
9490
|
l("wrapped _read", Me), ve && (ve = !1, W.resume());
|
|
9492
9491
|
}, this;
|
|
9493
9492
|
}, typeof Symbol == "function" && (U.prototype[Symbol.asyncIterator] = function() {
|
|
9494
|
-
return E === void 0 && (E =
|
|
9493
|
+
return E === void 0 && (E = Jh()), E(this);
|
|
9495
9494
|
}), Object.defineProperty(U.prototype, "readableHighWaterMark", {
|
|
9496
9495
|
// making it explicit this property is not enumerable
|
|
9497
9496
|
// because otherwise some prototype manipulation in
|
|
@@ -9544,7 +9543,7 @@ function Mo() {
|
|
|
9544
9543
|
}
|
|
9545
9544
|
}
|
|
9546
9545
|
typeof Symbol == "function" && (U.from = function(W, Y) {
|
|
9547
|
-
return I === void 0 && (I =
|
|
9546
|
+
return I === void 0 && (I = Qh()), I(U, W, Y);
|
|
9548
9547
|
});
|
|
9549
9548
|
function ue(W, Y) {
|
|
9550
9549
|
for (var he = 0, ve = W.length; he < ve; he++)
|
|
@@ -9697,7 +9696,7 @@ function Gc() {
|
|
|
9697
9696
|
}(Gr, Gr.exports)), Gr.exports;
|
|
9698
9697
|
}
|
|
9699
9698
|
var ya, ks;
|
|
9700
|
-
function
|
|
9699
|
+
function Zh() {
|
|
9701
9700
|
if (ks) return ya;
|
|
9702
9701
|
ks = 1;
|
|
9703
9702
|
var i = lt().Buffer, h = Gc().Transform, b = at();
|
|
@@ -9752,7 +9751,7 @@ var ga, Cs;
|
|
|
9752
9751
|
function Yc() {
|
|
9753
9752
|
if (Cs) return ga;
|
|
9754
9753
|
Cs = 1;
|
|
9755
|
-
var i = Jt().Buffer, h = at(), b =
|
|
9754
|
+
var i = Jt().Buffer, h = at(), b = Zh(), y = new Array(16), s = [
|
|
9756
9755
|
0,
|
|
9757
9756
|
1,
|
|
9758
9757
|
2,
|
|
@@ -10114,7 +10113,7 @@ function Yc() {
|
|
|
10114
10113
|
return ga = r, ga;
|
|
10115
10114
|
}
|
|
10116
10115
|
var vt = {}, Us;
|
|
10117
|
-
function
|
|
10116
|
+
function Xh() {
|
|
10118
10117
|
if (Us) return vt;
|
|
10119
10118
|
Us = 1;
|
|
10120
10119
|
var i = Object.prototype.toString;
|
|
@@ -10123,7 +10122,7 @@ function el() {
|
|
|
10123
10122
|
}, vt.isBoolean = function(h, b) {
|
|
10124
10123
|
if (i.call(h) !== "[object Boolean]") throw TypeError(b);
|
|
10125
10124
|
}, vt.isBuffer = function(h, b) {
|
|
10126
|
-
if (
|
|
10125
|
+
if (!Ke.isBuffer(h)) throw TypeError(b);
|
|
10127
10126
|
}, vt.isFunction = function(h, b) {
|
|
10128
10127
|
if (i.call(h) !== "[object Function]") throw TypeError(b);
|
|
10129
10128
|
}, vt.isNumber = function(h, b) {
|
|
@@ -10141,7 +10140,7 @@ function el() {
|
|
|
10141
10140
|
}, vt;
|
|
10142
10141
|
}
|
|
10143
10142
|
var zt = {}, va, js;
|
|
10144
|
-
function
|
|
10143
|
+
function el() {
|
|
10145
10144
|
if (js) return va;
|
|
10146
10145
|
js = 1;
|
|
10147
10146
|
var i = lt().Buffer;
|
|
@@ -10194,10 +10193,10 @@ function tl() {
|
|
|
10194
10193
|
}, va;
|
|
10195
10194
|
}
|
|
10196
10195
|
var zs;
|
|
10197
|
-
function
|
|
10196
|
+
function tl() {
|
|
10198
10197
|
if (zs) return zt;
|
|
10199
10198
|
zs = 1;
|
|
10200
|
-
var i = lt().Buffer, h =
|
|
10199
|
+
var i = lt().Buffer, h = el(), b = i.from([
|
|
10201
10200
|
// begin
|
|
10202
10201
|
48,
|
|
10203
10202
|
129,
|
|
@@ -10766,47 +10765,47 @@ function rl() {
|
|
|
10766
10765
|
}
|
|
10767
10766
|
}, zt;
|
|
10768
10767
|
}
|
|
10769
|
-
const
|
|
10770
|
-
COMPRESSED_TYPE_INVALID:
|
|
10771
|
-
EC_PRIVATE_KEY_TYPE_INVALID:
|
|
10772
|
-
EC_PRIVATE_KEY_LENGTH_INVALID:
|
|
10773
|
-
EC_PRIVATE_KEY_RANGE_INVALID:
|
|
10774
|
-
EC_PRIVATE_KEY_TWEAK_ADD_FAIL:
|
|
10775
|
-
EC_PRIVATE_KEY_TWEAK_MUL_FAIL:
|
|
10776
|
-
EC_PRIVATE_KEY_EXPORT_DER_FAIL:
|
|
10777
|
-
EC_PRIVATE_KEY_IMPORT_DER_FAIL:
|
|
10778
|
-
EC_PUBLIC_KEYS_TYPE_INVALID:
|
|
10779
|
-
EC_PUBLIC_KEYS_LENGTH_INVALID:
|
|
10780
|
-
EC_PUBLIC_KEY_TYPE_INVALID:
|
|
10781
|
-
EC_PUBLIC_KEY_LENGTH_INVALID:
|
|
10782
|
-
EC_PUBLIC_KEY_PARSE_FAIL:
|
|
10783
|
-
EC_PUBLIC_KEY_CREATE_FAIL:
|
|
10784
|
-
EC_PUBLIC_KEY_TWEAK_ADD_FAIL:
|
|
10785
|
-
EC_PUBLIC_KEY_TWEAK_MUL_FAIL:
|
|
10786
|
-
EC_PUBLIC_KEY_COMBINE_FAIL:
|
|
10787
|
-
ECDH_FAIL:
|
|
10788
|
-
ECDSA_SIGNATURE_TYPE_INVALID:
|
|
10789
|
-
ECDSA_SIGNATURE_LENGTH_INVALID:
|
|
10790
|
-
ECDSA_SIGNATURE_PARSE_FAIL:
|
|
10791
|
-
ECDSA_SIGNATURE_PARSE_DER_FAIL:
|
|
10792
|
-
ECDSA_SIGN_FAIL:
|
|
10793
|
-
ECDSA_RECOVER_FAIL:
|
|
10794
|
-
MSG32_TYPE_INVALID:
|
|
10795
|
-
MSG32_LENGTH_INVALID:
|
|
10796
|
-
OPTIONS_TYPE_INVALID:
|
|
10797
|
-
OPTIONS_DATA_TYPE_INVALID:
|
|
10798
|
-
OPTIONS_DATA_LENGTH_INVALID:
|
|
10799
|
-
OPTIONS_NONCEFN_TYPE_INVALID:
|
|
10800
|
-
RECOVERY_ID_TYPE_INVALID:
|
|
10801
|
-
RECOVERY_ID_VALUE_INVALID:
|
|
10802
|
-
TWEAK_TYPE_INVALID:
|
|
10803
|
-
TWEAK_LENGTH_INVALID:
|
|
10768
|
+
const rl = "compressed should be a boolean", nl = "private key should be a Buffer", il = "private key length is invalid", al = "private key range is invalid", ol = "tweak out of range or resulting private key is invalid", fl = "tweak out of range", sl = "couldn't export to DER format", ul = "couldn't import from DER format", cl = "public keys should be an Array", hl = "public keys Array should have at least 1 element", ll = "public key should be a Buffer", dl = "public key length is invalid", pl = "the public key could not be parsed or is invalid", bl = "private was invalid, try again", yl = "tweak out of range or resulting public key is invalid", gl = "tweak out of range", vl = "the sum of the public keys is not valid", ml = "scalar was invalid (zero or overflow)", _l = "signature should be a Buffer", wl = "signature length is invalid", xl = "couldn't parse signature", El = "couldn't parse DER signature", Al = "nonce generation function failed or private key is invalid", Sl = "couldn't recover public key from signature", Il = "message should be a Buffer", Tl = "message length is invalid", Bl = "options should be an Object", Rl = "options.data should be a Buffer", Ml = "options.data length is invalid", Pl = "options.noncefn should be a Function", Fl = "recovery should be a Number", Ol = "recovery should have value between -1 and 4", Dl = "tweak should be a Buffer", Nl = "tweak length is invalid", Wc = {
|
|
10769
|
+
COMPRESSED_TYPE_INVALID: rl,
|
|
10770
|
+
EC_PRIVATE_KEY_TYPE_INVALID: nl,
|
|
10771
|
+
EC_PRIVATE_KEY_LENGTH_INVALID: il,
|
|
10772
|
+
EC_PRIVATE_KEY_RANGE_INVALID: al,
|
|
10773
|
+
EC_PRIVATE_KEY_TWEAK_ADD_FAIL: ol,
|
|
10774
|
+
EC_PRIVATE_KEY_TWEAK_MUL_FAIL: fl,
|
|
10775
|
+
EC_PRIVATE_KEY_EXPORT_DER_FAIL: sl,
|
|
10776
|
+
EC_PRIVATE_KEY_IMPORT_DER_FAIL: ul,
|
|
10777
|
+
EC_PUBLIC_KEYS_TYPE_INVALID: cl,
|
|
10778
|
+
EC_PUBLIC_KEYS_LENGTH_INVALID: hl,
|
|
10779
|
+
EC_PUBLIC_KEY_TYPE_INVALID: ll,
|
|
10780
|
+
EC_PUBLIC_KEY_LENGTH_INVALID: dl,
|
|
10781
|
+
EC_PUBLIC_KEY_PARSE_FAIL: pl,
|
|
10782
|
+
EC_PUBLIC_KEY_CREATE_FAIL: bl,
|
|
10783
|
+
EC_PUBLIC_KEY_TWEAK_ADD_FAIL: yl,
|
|
10784
|
+
EC_PUBLIC_KEY_TWEAK_MUL_FAIL: gl,
|
|
10785
|
+
EC_PUBLIC_KEY_COMBINE_FAIL: vl,
|
|
10786
|
+
ECDH_FAIL: ml,
|
|
10787
|
+
ECDSA_SIGNATURE_TYPE_INVALID: _l,
|
|
10788
|
+
ECDSA_SIGNATURE_LENGTH_INVALID: wl,
|
|
10789
|
+
ECDSA_SIGNATURE_PARSE_FAIL: xl,
|
|
10790
|
+
ECDSA_SIGNATURE_PARSE_DER_FAIL: El,
|
|
10791
|
+
ECDSA_SIGN_FAIL: Al,
|
|
10792
|
+
ECDSA_RECOVER_FAIL: Sl,
|
|
10793
|
+
MSG32_TYPE_INVALID: Il,
|
|
10794
|
+
MSG32_LENGTH_INVALID: Tl,
|
|
10795
|
+
OPTIONS_TYPE_INVALID: Bl,
|
|
10796
|
+
OPTIONS_DATA_TYPE_INVALID: Rl,
|
|
10797
|
+
OPTIONS_DATA_LENGTH_INVALID: Ml,
|
|
10798
|
+
OPTIONS_NONCEFN_TYPE_INVALID: Pl,
|
|
10799
|
+
RECOVERY_ID_TYPE_INVALID: Fl,
|
|
10800
|
+
RECOVERY_ID_VALUE_INVALID: Ol,
|
|
10801
|
+
TWEAK_TYPE_INVALID: Dl,
|
|
10802
|
+
TWEAK_LENGTH_INVALID: Nl
|
|
10804
10803
|
};
|
|
10805
10804
|
var ma, Vs;
|
|
10806
|
-
function
|
|
10805
|
+
function ql() {
|
|
10807
10806
|
if (Vs) return ma;
|
|
10808
10807
|
Vs = 1;
|
|
10809
|
-
var i =
|
|
10808
|
+
var i = Xh(), h = tl(), b = Wc;
|
|
10810
10809
|
function y(s, a) {
|
|
10811
10810
|
return s === void 0 ? a : (i.isBoolean(s, b.COMPRESSED_TYPE_INVALID), s);
|
|
10812
10811
|
}
|
|
@@ -10898,7 +10897,7 @@ function Ll() {
|
|
|
10898
10897
|
}, ma;
|
|
10899
10898
|
}
|
|
10900
10899
|
var _a = {}, wa, Hs;
|
|
10901
|
-
function
|
|
10900
|
+
function Ll() {
|
|
10902
10901
|
if (Hs) return wa;
|
|
10903
10902
|
Hs = 1;
|
|
10904
10903
|
var i = lt().Buffer, h = Gc().Transform, b = at();
|
|
@@ -10950,10 +10949,10 @@ function kl() {
|
|
|
10950
10949
|
}, wa = s, wa;
|
|
10951
10950
|
}
|
|
10952
10951
|
var xa, $s;
|
|
10953
|
-
function
|
|
10952
|
+
function kl() {
|
|
10954
10953
|
if ($s) return xa;
|
|
10955
10954
|
$s = 1;
|
|
10956
|
-
var i = at(), h =
|
|
10955
|
+
var i = at(), h = Ll(), b = lt().Buffer, y = new Array(16);
|
|
10957
10956
|
function s() {
|
|
10958
10957
|
h.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878;
|
|
10959
10958
|
}
|
|
@@ -11017,7 +11016,7 @@ function br() {
|
|
|
11017
11016
|
}, Aa = h, Aa;
|
|
11018
11017
|
}
|
|
11019
11018
|
var Sa, Gs;
|
|
11020
|
-
function
|
|
11019
|
+
function Cl() {
|
|
11021
11020
|
if (Gs) return Sa;
|
|
11022
11021
|
Gs = 1;
|
|
11023
11022
|
var i = at(), h = br(), b = lt().Buffer, y = [
|
|
@@ -11055,7 +11054,7 @@ function Ul() {
|
|
|
11055
11054
|
}, Sa = a, Sa;
|
|
11056
11055
|
}
|
|
11057
11056
|
var Ia, Ys;
|
|
11058
|
-
function
|
|
11057
|
+
function Ul() {
|
|
11059
11058
|
if (Ys) return Ia;
|
|
11060
11059
|
Ys = 1;
|
|
11061
11060
|
var i = at(), h = br(), b = lt().Buffer, y = [
|
|
@@ -11203,7 +11202,7 @@ function Jc() {
|
|
|
11203
11202
|
}, Ta = a, Ta;
|
|
11204
11203
|
}
|
|
11205
11204
|
var Ba, Js;
|
|
11206
|
-
function
|
|
11205
|
+
function jl() {
|
|
11207
11206
|
if (Js) return Ba;
|
|
11208
11207
|
Js = 1;
|
|
11209
11208
|
var i = at(), h = Jc(), b = br(), y = lt().Buffer, s = new Array(64);
|
|
@@ -11442,7 +11441,7 @@ function Qc() {
|
|
|
11442
11441
|
}, Ra = a, Ra;
|
|
11443
11442
|
}
|
|
11444
11443
|
var Ma, Zs;
|
|
11445
|
-
function
|
|
11444
|
+
function zl() {
|
|
11446
11445
|
if (Zs) return Ma;
|
|
11447
11446
|
Zs = 1;
|
|
11448
11447
|
var i = at(), h = Qc(), b = br(), y = lt().Buffer, s = new Array(160);
|
|
@@ -11460,7 +11459,7 @@ function Vl() {
|
|
|
11460
11459
|
}, Ma = a, Ma;
|
|
11461
11460
|
}
|
|
11462
11461
|
var Xs;
|
|
11463
|
-
function
|
|
11462
|
+
function Vl() {
|
|
11464
11463
|
if (Xs) return Ea.exports;
|
|
11465
11464
|
Xs = 1;
|
|
11466
11465
|
var i = Ea.exports = function(b) {
|
|
@@ -11469,7 +11468,7 @@ function Hl() {
|
|
|
11469
11468
|
if (!y) throw new Error(b + " is not supported (we accept pull requests)");
|
|
11470
11469
|
return new y();
|
|
11471
11470
|
};
|
|
11472
|
-
return i.sha =
|
|
11471
|
+
return i.sha = Cl(), i.sha1 = Ul(), i.sha224 = jl(), i.sha256 = Jc(), i.sha384 = zl(), i.sha512 = Qc(), Ea.exports;
|
|
11473
11472
|
}
|
|
11474
11473
|
var Pa, eu;
|
|
11475
11474
|
function Fo() {
|
|
@@ -11509,7 +11508,7 @@ function Fo() {
|
|
|
11509
11508
|
}, Pa;
|
|
11510
11509
|
}
|
|
11511
11510
|
var Fa, tu;
|
|
11512
|
-
function
|
|
11511
|
+
function Hl() {
|
|
11513
11512
|
if (tu) return Fa;
|
|
11514
11513
|
tu = 1;
|
|
11515
11514
|
var i = lt().Buffer, h = Fo().Transform, b = bo().StringDecoder, y = at();
|
|
@@ -11572,10 +11571,10 @@ function $l() {
|
|
|
11572
11571
|
}, Fa = s, Fa;
|
|
11573
11572
|
}
|
|
11574
11573
|
var Oa, ru;
|
|
11575
|
-
function
|
|
11574
|
+
function $l() {
|
|
11576
11575
|
if (ru) return Oa;
|
|
11577
11576
|
ru = 1;
|
|
11578
|
-
var i = at(), h =
|
|
11577
|
+
var i = at(), h = kl(), b = Yc(), y = Vl(), s = Hl();
|
|
11579
11578
|
function a(p) {
|
|
11580
11579
|
s.call(this, "digest"), this._hash = p;
|
|
11581
11580
|
}
|
|
@@ -11587,7 +11586,7 @@ function Kl() {
|
|
|
11587
11586
|
return f = f.toLowerCase(), f === "md5" ? new h() : f === "rmd160" || f === "ripemd160" ? new b() : new a(y(f));
|
|
11588
11587
|
}, Oa;
|
|
11589
11588
|
}
|
|
11590
|
-
var sn = { exports: {} },
|
|
11589
|
+
var sn = { exports: {} }, Kl = sn.exports, nu;
|
|
11591
11590
|
function Ot() {
|
|
11592
11591
|
return nu || (nu = 1, function(i) {
|
|
11593
11592
|
(function(h, b) {
|
|
@@ -12026,8 +12025,8 @@ function Ot() {
|
|
|
12026
12025
|
K = (C + (v >>> 13) | 0) + (gr >>> 26) | 0, gr &= 67108863, O = Math.imul(V, Z), v = Math.imul(V, ie), v = v + Math.imul(X, Z) | 0, C = Math.imul(X, ie), O = O + Math.imul(te, ye) | 0, v = v + Math.imul(te, Be) | 0, v = v + Math.imul(H, ye) | 0, C = C + Math.imul(H, Be) | 0;
|
|
12027
12026
|
var vr = (K + O | 0) + ((v & 8191) << 13) | 0;
|
|
12028
12027
|
K = (C + (v >>> 13) | 0) + (vr >>> 26) | 0, vr &= 67108863, O = Math.imul(oe, Z), v = Math.imul(oe, ie), v = v + Math.imul(ue, Z) | 0, C = Math.imul(ue, ie), O = O + Math.imul(V, ye) | 0, v = v + Math.imul(V, Be) | 0, v = v + Math.imul(X, ye) | 0, C = C + Math.imul(X, Be) | 0, O = O + Math.imul(te, De) | 0, v = v + Math.imul(te, Ue) | 0, v = v + Math.imul(H, De) | 0, C = C + Math.imul(H, Ue) | 0;
|
|
12029
|
-
var
|
|
12030
|
-
K = (C + (v >>> 13) | 0) + (
|
|
12028
|
+
var It = (K + O | 0) + ((v & 8191) << 13) | 0;
|
|
12029
|
+
K = (C + (v >>> 13) | 0) + (It >>> 26) | 0, It &= 67108863, O = Math.imul(Y, Z), v = Math.imul(Y, ie), v = v + Math.imul(he, Z) | 0, C = Math.imul(he, ie), O = O + Math.imul(oe, ye) | 0, v = v + Math.imul(oe, Be) | 0, v = v + Math.imul(ue, ye) | 0, C = C + Math.imul(ue, Be) | 0, O = O + Math.imul(V, De) | 0, v = v + Math.imul(V, Ue) | 0, v = v + Math.imul(X, De) | 0, C = C + Math.imul(X, Ue) | 0, O = O + Math.imul(te, tt) | 0, v = v + Math.imul(te, Ye) | 0, v = v + Math.imul(H, tt) | 0, C = C + Math.imul(H, Ye) | 0;
|
|
12031
12030
|
var mr = (K + O | 0) + ((v & 8191) << 13) | 0;
|
|
12032
12031
|
K = (C + (v >>> 13) | 0) + (mr >>> 26) | 0, mr &= 67108863, O = Math.imul(Ae, Z), v = Math.imul(Ae, ie), v = v + Math.imul(me, Z) | 0, C = Math.imul(me, ie), O = O + Math.imul(Y, ye) | 0, v = v + Math.imul(Y, Be) | 0, v = v + Math.imul(he, ye) | 0, C = C + Math.imul(he, Be) | 0, O = O + Math.imul(oe, De) | 0, v = v + Math.imul(oe, Ue) | 0, v = v + Math.imul(ue, De) | 0, C = C + Math.imul(ue, Ue) | 0, O = O + Math.imul(V, tt) | 0, v = v + Math.imul(V, Ye) | 0, v = v + Math.imul(X, tt) | 0, C = C + Math.imul(X, Ye) | 0, O = O + Math.imul(te, nt) | 0, v = v + Math.imul(te, Qe) | 0, v = v + Math.imul(H, nt) | 0, C = C + Math.imul(H, Qe) | 0;
|
|
12033
12032
|
var _r = (K + O | 0) + ((v & 8191) << 13) | 0;
|
|
@@ -12059,7 +12058,7 @@ function Ot() {
|
|
|
12059
12058
|
var j = (K + O | 0) + ((v & 8191) << 13) | 0;
|
|
12060
12059
|
K = (C + (v >>> 13) | 0) + (j >>> 26) | 0, j &= 67108863, O = Math.imul(L, ot), v = Math.imul(L, ft), v = v + Math.imul(A, ot) | 0, C = Math.imul(A, ft);
|
|
12061
12060
|
var J = (K + O | 0) + ((v & 8191) << 13) | 0;
|
|
12062
|
-
return K = (C + (v >>> 13) | 0) + (J >>> 26) | 0, J &= 67108863, N[0] = gr, N[1] = vr, N[2] =
|
|
12061
|
+
return K = (C + (v >>> 13) | 0) + (J >>> 26) | 0, J &= 67108863, N[0] = gr, N[1] = vr, N[2] = It, N[3] = mr, N[4] = _r, N[5] = wr, N[6] = xr, N[7] = Er, N[8] = Ar, N[9] = Sr, N[10] = Ir, N[11] = Tr, N[12] = ct, N[13] = Br, N[14] = Rr, N[15] = Mr, N[16] = q, N[17] = j, N[18] = J, K !== 0 && (N[19] = K, S.length++), S;
|
|
12063
12062
|
};
|
|
12064
12063
|
Math.imul || (d = u);
|
|
12065
12064
|
function m(R, c, x) {
|
|
@@ -12737,12 +12736,12 @@ function Ot() {
|
|
|
12737
12736
|
var x = this.imod(c._invmp(this.m).mul(this.r2));
|
|
12738
12737
|
return x._forceRed(this);
|
|
12739
12738
|
};
|
|
12740
|
-
})(i,
|
|
12739
|
+
})(i, Kl);
|
|
12741
12740
|
}(sn)), sn.exports;
|
|
12742
12741
|
}
|
|
12743
12742
|
var Da = {};
|
|
12744
|
-
const
|
|
12745
|
-
version:
|
|
12743
|
+
const Gl = "6.6.1", Yl = {
|
|
12744
|
+
version: Gl
|
|
12746
12745
|
};
|
|
12747
12746
|
var Na = {}, qa, iu;
|
|
12748
12747
|
function Qt() {
|
|
@@ -12799,7 +12798,7 @@ function Zc() {
|
|
|
12799
12798
|
}(La)), La;
|
|
12800
12799
|
}
|
|
12801
12800
|
var ou;
|
|
12802
|
-
function
|
|
12801
|
+
function xt() {
|
|
12803
12802
|
return ou || (ou = 1, function(i) {
|
|
12804
12803
|
var h = i, b = Ot(), y = Qt(), s = Zc();
|
|
12805
12804
|
h.assert = y, h.toArray = s.toArray, h.zero2 = s.zero2, h.toHex = s.toHex, h.encode = s.encode;
|
|
@@ -12894,7 +12893,7 @@ var ka = {}, Ca, su;
|
|
|
12894
12893
|
function _n() {
|
|
12895
12894
|
if (su) return Ca;
|
|
12896
12895
|
su = 1;
|
|
12897
|
-
var i = Ot(), h =
|
|
12896
|
+
var i = Ot(), h = xt(), b = h.getNAF, y = h.getJSF, s = h.assert;
|
|
12898
12897
|
function a(f, l) {
|
|
12899
12898
|
this.type = f, this.p = new i(l.p, 16), this.red = l.prime ? i.red(l.prime) : i.mont(this.p), this.zero = new i(0).toRed(this.red), this.one = new i(1).toRed(this.red), this.two = new i(2).toRed(this.red), this.n = l.n && new i(l.n, 16), this.g = l.g && this.pointFromJSON(l.g, l.gRed), this._wnafT1 = new Array(4), this._wnafT2 = new Array(4), this._wnafT3 = new Array(4), this._wnafT4 = new Array(4), this._bitLength = this.n ? this.n.bitLength() : 0;
|
|
12900
12899
|
var n = this.n && this.p.div(this.n);
|
|
@@ -13074,10 +13073,10 @@ function _n() {
|
|
|
13074
13073
|
}, Ca;
|
|
13075
13074
|
}
|
|
13076
13075
|
var Ua, uu;
|
|
13077
|
-
function
|
|
13076
|
+
function Wl() {
|
|
13078
13077
|
if (uu) return Ua;
|
|
13079
13078
|
uu = 1;
|
|
13080
|
-
var i =
|
|
13079
|
+
var i = xt(), h = Ot(), b = at(), y = _n(), s = i.assert;
|
|
13081
13080
|
function a(l) {
|
|
13082
13081
|
y.call(this, "short", l), this.a = new h(l.a, 16).toRed(this.red), this.b = new h(l.b, 16).toRed(this.red), this.tinv = this.two.redInvm(), this.zeroA = this.a.fromRed().cmpn(0) === 0, this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0, this.endo = this._getEndomorphism(l), this._endoWnafT1 = new Array(4), this._endoWnafT2 = new Array(4);
|
|
13083
13082
|
}
|
|
@@ -13422,10 +13421,10 @@ function Jl() {
|
|
|
13422
13421
|
}, Ua;
|
|
13423
13422
|
}
|
|
13424
13423
|
var ja, cu;
|
|
13425
|
-
function
|
|
13424
|
+
function Jl() {
|
|
13426
13425
|
if (cu) return ja;
|
|
13427
13426
|
cu = 1;
|
|
13428
|
-
var i = Ot(), h = at(), b = _n(), y =
|
|
13427
|
+
var i = Ot(), h = at(), b = _n(), y = xt();
|
|
13429
13428
|
function s(p) {
|
|
13430
13429
|
b.call(this, "mont", p), this.a = new i(p.a, 16).toRed(this.red), this.b = new i(p.b, 16).toRed(this.red), this.i4 = new i(4).toRed(this.red).redInvm(), this.two = new i(2).toRed(this.red), this.a24 = this.i4.redMul(this.a.redAdd(this.two));
|
|
13431
13430
|
}
|
|
@@ -13478,10 +13477,10 @@ function Ql() {
|
|
|
13478
13477
|
}, ja;
|
|
13479
13478
|
}
|
|
13480
13479
|
var za, hu;
|
|
13481
|
-
function
|
|
13480
|
+
function Ql() {
|
|
13482
13481
|
if (hu) return za;
|
|
13483
13482
|
hu = 1;
|
|
13484
|
-
var i =
|
|
13483
|
+
var i = xt(), h = Ot(), b = at(), y = _n(), s = i.assert;
|
|
13485
13484
|
function a(f) {
|
|
13486
13485
|
this.twisted = (f.a | 0) !== 1, this.mOneA = this.twisted && (f.a | 0) === -1, this.extended = this.mOneA, y.call(this, "edwards", f), this.a = new h(f.a, 16).umod(this.red.m), this.a = this.a.toRed(this.red), this.c = new h(f.c, 16).toRed(this.red), this.c2 = this.c.redSqr(), this.d = new h(f.d, 16).toRed(this.red), this.dd = this.d.redAdd(this.d), s(!this.twisted || this.c.fromRed().cmpn(1) === 0), this.oneC = (f.c | 0) === 1;
|
|
13487
13486
|
}
|
|
@@ -13594,7 +13593,7 @@ var lu;
|
|
|
13594
13593
|
function e0() {
|
|
13595
13594
|
return lu || (lu = 1, function(i) {
|
|
13596
13595
|
var h = i;
|
|
13597
|
-
h.base = _n(), h.short =
|
|
13596
|
+
h.base = _n(), h.short = Wl(), h.mont = Jl(), h.edwards = Ql();
|
|
13598
13597
|
}(ka)), ka;
|
|
13599
13598
|
}
|
|
13600
13599
|
var Va = {}, Ha = {}, Xe = {}, du;
|
|
@@ -13789,9 +13788,9 @@ function Ur() {
|
|
|
13789
13788
|
return f;
|
|
13790
13789
|
}, $a;
|
|
13791
13790
|
}
|
|
13792
|
-
var Vt = {},
|
|
13791
|
+
var Vt = {}, Bt = {}, bu;
|
|
13793
13792
|
function t0() {
|
|
13794
|
-
if (bu) return
|
|
13793
|
+
if (bu) return Bt;
|
|
13795
13794
|
bu = 1;
|
|
13796
13795
|
var i = Dt(), h = i.rotr32;
|
|
13797
13796
|
function b(r, e, t, o) {
|
|
@@ -13802,38 +13801,38 @@ function t0() {
|
|
|
13802
13801
|
if (r === 2)
|
|
13803
13802
|
return s(e, t, o);
|
|
13804
13803
|
}
|
|
13805
|
-
|
|
13804
|
+
Bt.ft_1 = b;
|
|
13806
13805
|
function y(r, e, t) {
|
|
13807
13806
|
return r & e ^ ~r & t;
|
|
13808
13807
|
}
|
|
13809
|
-
|
|
13808
|
+
Bt.ch32 = y;
|
|
13810
13809
|
function s(r, e, t) {
|
|
13811
13810
|
return r & e ^ r & t ^ e & t;
|
|
13812
13811
|
}
|
|
13813
|
-
|
|
13812
|
+
Bt.maj32 = s;
|
|
13814
13813
|
function a(r, e, t) {
|
|
13815
13814
|
return r ^ e ^ t;
|
|
13816
13815
|
}
|
|
13817
|
-
|
|
13816
|
+
Bt.p32 = a;
|
|
13818
13817
|
function p(r) {
|
|
13819
13818
|
return h(r, 2) ^ h(r, 13) ^ h(r, 22);
|
|
13820
13819
|
}
|
|
13821
|
-
|
|
13820
|
+
Bt.s0_256 = p;
|
|
13822
13821
|
function f(r) {
|
|
13823
13822
|
return h(r, 6) ^ h(r, 11) ^ h(r, 25);
|
|
13824
13823
|
}
|
|
13825
|
-
|
|
13824
|
+
Bt.s1_256 = f;
|
|
13826
13825
|
function l(r) {
|
|
13827
13826
|
return h(r, 7) ^ h(r, 18) ^ r >>> 3;
|
|
13828
13827
|
}
|
|
13829
|
-
|
|
13828
|
+
Bt.g0_256 = l;
|
|
13830
13829
|
function n(r) {
|
|
13831
13830
|
return h(r, 17) ^ h(r, 19) ^ r >>> 10;
|
|
13832
13831
|
}
|
|
13833
|
-
return
|
|
13832
|
+
return Bt.g1_256 = n, Bt;
|
|
13834
13833
|
}
|
|
13835
13834
|
var Ka, yu;
|
|
13836
|
-
function
|
|
13835
|
+
function Zl() {
|
|
13837
13836
|
if (yu) return Ka;
|
|
13838
13837
|
yu = 1;
|
|
13839
13838
|
var i = Dt(), h = Ur(), b = t0(), y = i.rotl32, s = i.sum32, a = i.sum32_5, p = b.ft_1, f = h.BlockHash, l = [
|
|
@@ -13968,7 +13967,7 @@ function r0() {
|
|
|
13968
13967
|
}, Ga;
|
|
13969
13968
|
}
|
|
13970
13969
|
var Ya, vu;
|
|
13971
|
-
function
|
|
13970
|
+
function Xl() {
|
|
13972
13971
|
if (vu) return Ya;
|
|
13973
13972
|
vu = 1;
|
|
13974
13973
|
var i = Dt(), h = r0();
|
|
@@ -14290,7 +14289,7 @@ function n0() {
|
|
|
14290
14289
|
return Wa;
|
|
14291
14290
|
}
|
|
14292
14291
|
var Ja, _u;
|
|
14293
|
-
function
|
|
14292
|
+
function ed() {
|
|
14294
14293
|
if (_u) return Ja;
|
|
14295
14294
|
_u = 1;
|
|
14296
14295
|
var i = Dt(), h = n0();
|
|
@@ -14321,11 +14320,11 @@ function td() {
|
|
|
14321
14320
|
}, Ja;
|
|
14322
14321
|
}
|
|
14323
14322
|
var wu;
|
|
14324
|
-
function
|
|
14325
|
-
return wu || (wu = 1, Vt.sha1 =
|
|
14323
|
+
function td() {
|
|
14324
|
+
return wu || (wu = 1, Vt.sha1 = Zl(), Vt.sha224 = Xl(), Vt.sha256 = r0(), Vt.sha384 = ed(), Vt.sha512 = n0()), Vt;
|
|
14326
14325
|
}
|
|
14327
14326
|
var Qa = {}, xu;
|
|
14328
|
-
function
|
|
14327
|
+
function rd() {
|
|
14329
14328
|
if (xu) return Qa;
|
|
14330
14329
|
xu = 1;
|
|
14331
14330
|
var i = Dt(), h = Ur(), b = i.rotl32, y = i.sum32, s = i.sum32_3, a = i.sum32_4, p = h.BlockHash;
|
|
@@ -14692,7 +14691,7 @@ function nd() {
|
|
|
14692
14691
|
return Qa;
|
|
14693
14692
|
}
|
|
14694
14693
|
var Za, Eu;
|
|
14695
|
-
function
|
|
14694
|
+
function nd() {
|
|
14696
14695
|
if (Eu) return Za;
|
|
14697
14696
|
Eu = 1;
|
|
14698
14697
|
var i = Dt(), h = Qt();
|
|
@@ -14720,11 +14719,11 @@ var Au;
|
|
|
14720
14719
|
function Oo() {
|
|
14721
14720
|
return Au || (Au = 1, function(i) {
|
|
14722
14721
|
var h = i;
|
|
14723
|
-
h.utils = Dt(), h.common = Ur(), h.sha =
|
|
14722
|
+
h.utils = Dt(), h.common = Ur(), h.sha = td(), h.ripemd = rd(), h.hmac = nd(), h.sha1 = h.sha.sha1, h.sha256 = h.sha.sha256, h.sha224 = h.sha.sha224, h.sha384 = h.sha.sha384, h.sha512 = h.sha.sha512, h.ripemd160 = h.ripemd.ripemd160;
|
|
14724
14723
|
}(Ha)), Ha;
|
|
14725
14724
|
}
|
|
14726
14725
|
var Xa, Su;
|
|
14727
|
-
function
|
|
14726
|
+
function id() {
|
|
14728
14727
|
return Su || (Su = 1, Xa = {
|
|
14729
14728
|
doubles: {
|
|
14730
14729
|
step: 4,
|
|
@@ -15509,7 +15508,7 @@ function ad() {
|
|
|
15509
15508
|
var Iu;
|
|
15510
15509
|
function Do() {
|
|
15511
15510
|
return Iu || (Iu = 1, function(i) {
|
|
15512
|
-
var h = i, b = Oo(), y = e0(), s =
|
|
15511
|
+
var h = i, b = Oo(), y = e0(), s = xt(), a = s.assert;
|
|
15513
15512
|
function p(n) {
|
|
15514
15513
|
n.type === "short" ? this.curve = new y.short(n) : n.type === "edwards" ? this.curve = new y.edwards(n) : this.curve = new y.mont(n), this.g = this.curve.g, this.n = this.curve.n, this.hash = n.hash, a(this.g.validate(), "Invalid curve"), a(this.g.mul(this.n).isInfinity(), "Invalid curve, G*N != O");
|
|
15515
15514
|
}
|
|
@@ -15624,7 +15623,7 @@ function Do() {
|
|
|
15624
15623
|
});
|
|
15625
15624
|
var l;
|
|
15626
15625
|
try {
|
|
15627
|
-
l =
|
|
15626
|
+
l = id();
|
|
15628
15627
|
} catch {
|
|
15629
15628
|
l = void 0;
|
|
15630
15629
|
}
|
|
@@ -15660,7 +15659,7 @@ function Do() {
|
|
|
15660
15659
|
}(Va)), Va;
|
|
15661
15660
|
}
|
|
15662
15661
|
var eo, Tu;
|
|
15663
|
-
function
|
|
15662
|
+
function ad() {
|
|
15664
15663
|
if (Tu) return eo;
|
|
15665
15664
|
Tu = 1;
|
|
15666
15665
|
var i = Oo(), h = Zc(), b = Qt();
|
|
@@ -15701,10 +15700,10 @@ function od() {
|
|
|
15701
15700
|
}, eo;
|
|
15702
15701
|
}
|
|
15703
15702
|
var to, Bu;
|
|
15704
|
-
function
|
|
15703
|
+
function od() {
|
|
15705
15704
|
if (Bu) return to;
|
|
15706
15705
|
Bu = 1;
|
|
15707
|
-
var i = Ot(), h =
|
|
15706
|
+
var i = Ot(), h = xt(), b = h.assert;
|
|
15708
15707
|
function y(s, a) {
|
|
15709
15708
|
this.ec = s, this.priv = null, this.pub = null, a.priv && this._importPrivate(a.priv, a.privEnc), a.pub && this._importPublic(a.pub, a.pubEnc);
|
|
15710
15709
|
}
|
|
@@ -15744,10 +15743,10 @@ function fd() {
|
|
|
15744
15743
|
}, to;
|
|
15745
15744
|
}
|
|
15746
15745
|
var ro, Ru;
|
|
15747
|
-
function
|
|
15746
|
+
function fd() {
|
|
15748
15747
|
if (Ru) return ro;
|
|
15749
15748
|
Ru = 1;
|
|
15750
|
-
var i = Ot(), h =
|
|
15749
|
+
var i = Ot(), h = xt(), b = h.assert;
|
|
15751
15750
|
function y(l, n) {
|
|
15752
15751
|
if (l instanceof y)
|
|
15753
15752
|
return l;
|
|
@@ -15824,10 +15823,10 @@ function sd() {
|
|
|
15824
15823
|
}, ro;
|
|
15825
15824
|
}
|
|
15826
15825
|
var no, Mu;
|
|
15827
|
-
function
|
|
15826
|
+
function sd() {
|
|
15828
15827
|
if (Mu) return no;
|
|
15829
15828
|
Mu = 1;
|
|
15830
|
-
var i = Ot(), h =
|
|
15829
|
+
var i = Ot(), h = ad(), b = xt(), y = Do(), s = Xc(), a = b.assert, p = od(), f = fd();
|
|
15831
15830
|
function l(n) {
|
|
15832
15831
|
if (!(this instanceof l))
|
|
15833
15832
|
return new l(n);
|
|
@@ -15934,10 +15933,10 @@ function ud() {
|
|
|
15934
15933
|
}, no;
|
|
15935
15934
|
}
|
|
15936
15935
|
var io, Pu;
|
|
15937
|
-
function
|
|
15936
|
+
function ud() {
|
|
15938
15937
|
if (Pu) return io;
|
|
15939
15938
|
Pu = 1;
|
|
15940
|
-
var i =
|
|
15939
|
+
var i = xt(), h = i.assert, b = i.parseBytes, y = i.cachedProperty;
|
|
15941
15940
|
function s(a, p) {
|
|
15942
15941
|
this.eddsa = a, this._secret = b(p.secret), a.isPoint(p.pub) ? this._pub = p.pub : this._pubBytes = b(p.pub);
|
|
15943
15942
|
}
|
|
@@ -15971,10 +15970,10 @@ function cd() {
|
|
|
15971
15970
|
}, io = s, io;
|
|
15972
15971
|
}
|
|
15973
15972
|
var ao, Fu;
|
|
15974
|
-
function
|
|
15973
|
+
function cd() {
|
|
15975
15974
|
if (Fu) return ao;
|
|
15976
15975
|
Fu = 1;
|
|
15977
|
-
var i = Ot(), h =
|
|
15976
|
+
var i = Ot(), h = xt(), b = h.assert, y = h.cachedProperty, s = h.parseBytes;
|
|
15978
15977
|
function a(p, f) {
|
|
15979
15978
|
this.eddsa = p, typeof f != "object" && (f = s(f)), Array.isArray(f) && (b(f.length === p.encodingLength * 2, "Signature has invalid size"), f = {
|
|
15980
15979
|
R: f.slice(0, p.encodingLength),
|
|
@@ -15996,10 +15995,10 @@ function hd() {
|
|
|
15996
15995
|
}, ao = a, ao;
|
|
15997
15996
|
}
|
|
15998
15997
|
var oo, Ou;
|
|
15999
|
-
function
|
|
15998
|
+
function hd() {
|
|
16000
15999
|
if (Ou) return oo;
|
|
16001
16000
|
Ou = 1;
|
|
16002
|
-
var i = Oo(), h = Do(), b =
|
|
16001
|
+
var i = Oo(), h = Do(), b = xt(), y = b.assert, s = b.parseBytes, a = ud(), p = cd();
|
|
16003
16002
|
function f(l) {
|
|
16004
16003
|
if (y(l === "ed25519", "only tested with ed25519 so far"), !(this instanceof f))
|
|
16005
16004
|
return new f(l);
|
|
@@ -16040,16 +16039,16 @@ function ld() {
|
|
|
16040
16039
|
}, oo;
|
|
16041
16040
|
}
|
|
16042
16041
|
var Du;
|
|
16043
|
-
function
|
|
16042
|
+
function ld() {
|
|
16044
16043
|
return Du || (Du = 1, function(i) {
|
|
16045
16044
|
var h = i;
|
|
16046
|
-
h.version =
|
|
16045
|
+
h.version = Yl.version, h.utils = xt(), h.rand = Xc(), h.curve = e0(), h.curves = Do(), h.ec = sd(), h.eddsa = hd();
|
|
16047
16046
|
}(Da)), Da;
|
|
16048
16047
|
}
|
|
16049
16048
|
var Nu;
|
|
16050
|
-
function
|
|
16049
|
+
function dd() {
|
|
16051
16050
|
return Nu || (Nu = 1, function(i) {
|
|
16052
|
-
var h = lt().Buffer, b =
|
|
16051
|
+
var h = lt().Buffer, b = $l(), y = Ot(), s = ld().ec, a = Wc, p = new s("secp256k1"), f = p.curve;
|
|
16053
16052
|
function l(e, t) {
|
|
16054
16053
|
var o = new y(t);
|
|
16055
16054
|
if (o.cmp(f.p) >= 0) return null;
|
|
@@ -16196,14 +16195,14 @@ function pd() {
|
|
|
16196
16195
|
}(_a)), _a;
|
|
16197
16196
|
}
|
|
16198
16197
|
var fo, qu;
|
|
16199
|
-
function
|
|
16200
|
-
return qu || (qu = 1, fo =
|
|
16198
|
+
function pd() {
|
|
16199
|
+
return qu || (qu = 1, fo = ql()(dd())), fo;
|
|
16201
16200
|
}
|
|
16202
16201
|
var so, Lu;
|
|
16203
|
-
function
|
|
16202
|
+
function bd() {
|
|
16204
16203
|
if (Lu) return so;
|
|
16205
16204
|
Lu = 1;
|
|
16206
|
-
var i =
|
|
16205
|
+
var i = wt(), h = Fo().Stream, b = Ft(), y = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
16207
16206
|
function s(r) {
|
|
16208
16207
|
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
16209
16208
|
}
|
|
@@ -16254,7 +16253,7 @@ function yd() {
|
|
|
16254
16253
|
},
|
|
16255
16254
|
buffer: {
|
|
16256
16255
|
check: function(r) {
|
|
16257
|
-
return
|
|
16256
|
+
return Ke.isBuffer(r);
|
|
16258
16257
|
},
|
|
16259
16258
|
operator: "Buffer.isBuffer"
|
|
16260
16259
|
},
|
|
@@ -16358,10 +16357,10 @@ function yd() {
|
|
|
16358
16357
|
return so = n(ke.env.NODE_NDEBUG), so;
|
|
16359
16358
|
}
|
|
16360
16359
|
var Fr = {}, ku;
|
|
16361
|
-
function
|
|
16360
|
+
function yd() {
|
|
16362
16361
|
if (ku) return Fr;
|
|
16363
16362
|
ku = 1;
|
|
16364
|
-
var i =
|
|
16363
|
+
var i = wt(), h = Ft();
|
|
16365
16364
|
Fr.sprintf = b, Fr.printf = s, Fr.fprintf = a;
|
|
16366
16365
|
function b(l) {
|
|
16367
16366
|
var n = [
|
|
@@ -16482,7 +16481,7 @@ Caused by: ` + f(r));
|
|
|
16482
16481
|
return Fr;
|
|
16483
16482
|
}
|
|
16484
16483
|
var ht = {}, Cu;
|
|
16485
|
-
function
|
|
16484
|
+
function gd() {
|
|
16486
16485
|
if (Cu) return ht;
|
|
16487
16486
|
Cu = 1;
|
|
16488
16487
|
function i(d) {
|
|
@@ -16541,7 +16540,7 @@ function vd() {
|
|
|
16541
16540
|
return d === null || typeof d == "boolean" || typeof d == "number" || typeof d == "string" || typeof d == "symbol" || // ES6 symbol
|
|
16542
16541
|
typeof d > "u";
|
|
16543
16542
|
}
|
|
16544
|
-
ht.isPrimitive = o, ht.isBuffer =
|
|
16543
|
+
ht.isPrimitive = o, ht.isBuffer = Ke.isBuffer;
|
|
16545
16544
|
function u(d) {
|
|
16546
16545
|
return Object.prototype.toString.call(d);
|
|
16547
16546
|
}
|
|
@@ -16551,7 +16550,7 @@ var uo, Uu;
|
|
|
16551
16550
|
function i0() {
|
|
16552
16551
|
if (Uu) return uo;
|
|
16553
16552
|
Uu = 1;
|
|
16554
|
-
var i =
|
|
16553
|
+
var i = bd(), h = Ft(), b = yd(), y = gd().isError, s = b.sprintf;
|
|
16555
16554
|
uo = p, p.VError = p, p.SError = f, p.WError = n, p.MultiError = l;
|
|
16556
16555
|
function a(r) {
|
|
16557
16556
|
var e, t, o, u, d;
|
|
@@ -16696,7 +16695,7 @@ function wn() {
|
|
|
16696
16695
|
* in the design, construction, operation or maintenance of any military facility.
|
|
16697
16696
|
*/
|
|
16698
16697
|
Object.defineProperty(Or, "__esModule", { value: !0 });
|
|
16699
|
-
const i =
|
|
16698
|
+
const i = wt();
|
|
16700
16699
|
class h {
|
|
16701
16700
|
constructor(s, a) {
|
|
16702
16701
|
this.amount = s, this.symbol = a;
|
|
@@ -16868,7 +16867,7 @@ function a0() {
|
|
|
16868
16867
|
* Convenience to create a new HexBuffer, does not copy data if value passed is already a buffer.
|
|
16869
16868
|
*/
|
|
16870
16869
|
static from(a) {
|
|
16871
|
-
return a instanceof h ? a : a instanceof
|
|
16870
|
+
return a instanceof h ? a : a instanceof Ke ? new h(a) : typeof a == "string" ? new h(Ke.from(a, "hex")) : new h(Ke.from(a));
|
|
16872
16871
|
}
|
|
16873
16872
|
toString(a = "hex") {
|
|
16874
16873
|
return this.buffer.toString(a);
|
|
@@ -16962,7 +16961,7 @@ function No() {
|
|
|
16962
16961
|
}, m = (O, v) => {
|
|
16963
16962
|
O.writeUint32(Math.floor((/* @__PURE__ */ new Date(v + "Z")).getTime() / 1e3));
|
|
16964
16963
|
}, g = (O, v) => {
|
|
16965
|
-
v === null || typeof v == "string" && v.endsWith("1111111111111111111111111111111114T1Anm") ? O.append(
|
|
16964
|
+
v === null || typeof v == "string" && v.endsWith("1111111111111111111111111111111114T1Anm") ? O.append(Ke.alloc(33, 0)) : O.append(i.PublicKey.from(v).key);
|
|
16966
16965
|
}, w = (O) => (v, C) => {
|
|
16967
16966
|
C = b.HexBuffer.from(C);
|
|
16968
16967
|
const G = C.buffer.length;
|
|
@@ -17346,11 +17345,11 @@ function No() {
|
|
|
17346
17345
|
}, Jr;
|
|
17347
17346
|
}
|
|
17348
17347
|
var Dr = {}, Qr = {}, Hu;
|
|
17349
|
-
function
|
|
17348
|
+
function vd() {
|
|
17350
17349
|
return Hu || (Hu = 1, Object.defineProperty(Qr, "__esModule", { value: !0 }), Qr.default = "1.3.2"), Qr;
|
|
17351
17350
|
}
|
|
17352
|
-
var
|
|
17353
|
-
function
|
|
17351
|
+
var St = {}, dt = {}, Zr = { exports: {} }, $u;
|
|
17352
|
+
function md() {
|
|
17354
17353
|
return $u || ($u = 1, function(i, h) {
|
|
17355
17354
|
var b = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof yt < "u" && yt, y = function() {
|
|
17356
17355
|
function a() {
|
|
@@ -17690,12 +17689,12 @@ function _d() {
|
|
|
17690
17689
|
h = s.fetch, h.default = s.fetch, h.fetch = s.fetch, h.Headers = s.Headers, h.Request = s.Request, h.Response = s.Response, i.exports = h;
|
|
17691
17690
|
}(Zr, Zr.exports)), Zr.exports;
|
|
17692
17691
|
}
|
|
17693
|
-
var un = { exports: {} },
|
|
17694
|
-
function
|
|
17692
|
+
var un = { exports: {} }, _d = un.exports, Ku;
|
|
17693
|
+
function wd() {
|
|
17695
17694
|
return Ku || (Ku = 1, function(i, h) {
|
|
17696
17695
|
(function(b, y) {
|
|
17697
17696
|
i.exports = y();
|
|
17698
|
-
})(
|
|
17697
|
+
})(_d, function() {
|
|
17699
17698
|
var b = Math.imul, y = Math.clz32, s = Math.abs, a = Math.max, p = Math.floor;
|
|
17700
17699
|
class f extends Array {
|
|
17701
17700
|
constructor(n, r) {
|
|
@@ -18793,7 +18792,7 @@ function qo() {
|
|
|
18793
18792
|
}
|
|
18794
18793
|
};
|
|
18795
18794
|
Object.defineProperty(dt, "__esModule", { value: !0 });
|
|
18796
|
-
const b =
|
|
18795
|
+
const b = md(), y = Fo(), s = ["timeout", "ENOTFOUND", "ECONNREFUSED", "database lock", "CERT_HAS_EXPIRED", "EHOSTUNREACH", "ECONNRESET", "ERR_TLS_CERT_ALTNAME_INVALID", "EAI_AGAIN"];
|
|
18797
18796
|
function a(g, w) {
|
|
18798
18797
|
return new Promise((E, I) => {
|
|
18799
18798
|
g.once(w, E);
|
|
@@ -18906,7 +18905,7 @@ function qo() {
|
|
|
18906
18905
|
}
|
|
18907
18906
|
return E.props.sort((I, P) => I[0].localeCompare(P[0])), ["witness_set_properties", E];
|
|
18908
18907
|
};
|
|
18909
|
-
const u =
|
|
18908
|
+
const u = wd();
|
|
18910
18909
|
dt.operationOrders = {
|
|
18911
18910
|
vote: 0,
|
|
18912
18911
|
// tslint:disable-next-line: object-literal-sort-keys
|
|
@@ -19010,7 +19009,7 @@ function qo() {
|
|
|
19010
19009
|
return dt;
|
|
19011
19010
|
}
|
|
19012
19011
|
var Yu;
|
|
19013
|
-
function
|
|
19012
|
+
function xd() {
|
|
19014
19013
|
return Yu || (Yu = 1, function(i) {
|
|
19015
19014
|
/**
|
|
19016
19015
|
* @file Hive blockchain helpers.
|
|
@@ -19046,7 +19045,7 @@ function Ed() {
|
|
|
19046
19045
|
* You acknowledge that this software is not designed, licensed or intended for use
|
|
19047
19046
|
* in the design, construction, operation or maintenance of any military facility.
|
|
19048
19047
|
*/
|
|
19049
|
-
var h =
|
|
19048
|
+
var h = St && St.__awaiter || function(l, n, r, e) {
|
|
19050
19049
|
function t(o) {
|
|
19051
19050
|
return o instanceof r ? o : new r(function(u) {
|
|
19052
19051
|
u(o);
|
|
@@ -19072,9 +19071,9 @@ function Ed() {
|
|
|
19072
19071
|
}
|
|
19073
19072
|
g((e = e.apply(l, n || [])).next());
|
|
19074
19073
|
});
|
|
19075
|
-
}, b =
|
|
19074
|
+
}, b = St && St.__await || function(l) {
|
|
19076
19075
|
return this instanceof b ? (this.v = l, this) : new b(l);
|
|
19077
|
-
}, y =
|
|
19076
|
+
}, y = St && St.__asyncGenerator || function(l, n, r) {
|
|
19078
19077
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
19079
19078
|
var e = r.apply(l, n || []), t, o = [];
|
|
19080
19079
|
return t = {}, u("next"), u("throw"), u("return"), t[Symbol.asyncIterator] = function() {
|
|
@@ -19106,7 +19105,7 @@ function Ed() {
|
|
|
19106
19105
|
function E(I, P) {
|
|
19107
19106
|
I(P), o.shift(), o.length && d(o[0][0], o[0][1]);
|
|
19108
19107
|
}
|
|
19109
|
-
}, s =
|
|
19108
|
+
}, s = St && St.__asyncValues || function(l) {
|
|
19110
19109
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
19111
19110
|
var n = l[Symbol.asyncIterator], r;
|
|
19112
19111
|
return n ? n.call(l) : (l = typeof __values == "function" ? __values(l) : l[Symbol.iterator](), r = {}, e("next"), e("throw"), e("return"), r[Symbol.asyncIterator] = function() {
|
|
@@ -19249,10 +19248,10 @@ function Ed() {
|
|
|
19249
19248
|
}
|
|
19250
19249
|
}
|
|
19251
19250
|
i.Blockchain = f;
|
|
19252
|
-
}(
|
|
19251
|
+
}(St)), St;
|
|
19253
19252
|
}
|
|
19254
19253
|
var nr = {}, Xr = {}, Wu;
|
|
19255
|
-
function
|
|
19254
|
+
function Ed() {
|
|
19256
19255
|
if (Wu) return Xr;
|
|
19257
19256
|
Wu = 1;
|
|
19258
19257
|
/**
|
|
@@ -19309,7 +19308,7 @@ function Ad() {
|
|
|
19309
19308
|
return Xr.Authority = h, Xr;
|
|
19310
19309
|
}
|
|
19311
19310
|
var Ju;
|
|
19312
|
-
function
|
|
19311
|
+
function Ad() {
|
|
19313
19312
|
if (Ju) return nr;
|
|
19314
19313
|
Ju = 1;
|
|
19315
19314
|
/**
|
|
@@ -19374,7 +19373,7 @@ function Sd() {
|
|
|
19374
19373
|
});
|
|
19375
19374
|
};
|
|
19376
19375
|
Object.defineProperty(nr, "__esModule", { value: !0 });
|
|
19377
|
-
const h =
|
|
19376
|
+
const h = wt(), b = Ed(), y = wn(), s = yr();
|
|
19378
19377
|
class a {
|
|
19379
19378
|
constructor(f) {
|
|
19380
19379
|
this.client = f, this.expireTime = 60 * 1e3;
|
|
@@ -19536,7 +19535,7 @@ function Sd() {
|
|
|
19536
19535
|
*/
|
|
19537
19536
|
sendOperations(f, l) {
|
|
19538
19537
|
return i(this, void 0, void 0, function* () {
|
|
19539
|
-
const n = yield this.client.database.getDynamicGlobalProperties(), r = n.head_block_number & 65535, e =
|
|
19538
|
+
const n = yield this.client.database.getDynamicGlobalProperties(), r = n.head_block_number & 65535, e = Ke.from(n.head_block_id, "hex").readUInt32LE(4), u = {
|
|
19540
19539
|
expiration: new Date((/* @__PURE__ */ new Date(n.time + "Z")).getTime() + this.expireTime).toISOString().slice(0, -5),
|
|
19541
19540
|
extensions: [],
|
|
19542
19541
|
operations: f,
|
|
@@ -19571,7 +19570,7 @@ function Sd() {
|
|
|
19571
19570
|
return nr.BroadcastAPI = a, nr;
|
|
19572
19571
|
}
|
|
19573
19572
|
var ir = {}, Qu;
|
|
19574
|
-
function
|
|
19573
|
+
function Sd() {
|
|
19575
19574
|
if (Qu) return ir;
|
|
19576
19575
|
Qu = 1;
|
|
19577
19576
|
/**
|
|
@@ -19794,7 +19793,7 @@ function Id() {
|
|
|
19794
19793
|
return ir.DatabaseAPI = b, ir;
|
|
19795
19794
|
}
|
|
19796
19795
|
var en = {}, Zu;
|
|
19797
|
-
function
|
|
19796
|
+
function Id() {
|
|
19798
19797
|
if (Zu) return en;
|
|
19799
19798
|
Zu = 1, Object.defineProperty(en, "__esModule", { value: !0 });
|
|
19800
19799
|
class i {
|
|
@@ -19857,7 +19856,7 @@ function Td() {
|
|
|
19857
19856
|
return en.HivemindAPI = i, en;
|
|
19858
19857
|
}
|
|
19859
19858
|
var ar = {}, Xu;
|
|
19860
|
-
function
|
|
19859
|
+
function Td() {
|
|
19861
19860
|
if (Xu) return ar;
|
|
19862
19861
|
Xu = 1;
|
|
19863
19862
|
var i = ar && ar.__awaiter || function(b, y, s, a) {
|
|
@@ -19910,7 +19909,7 @@ function Bd() {
|
|
|
19910
19909
|
return ar.AccountByKeyAPI = h, ar;
|
|
19911
19910
|
}
|
|
19912
19911
|
var or = {}, ec;
|
|
19913
|
-
function
|
|
19912
|
+
function Bd() {
|
|
19914
19913
|
if (ec) return or;
|
|
19915
19914
|
ec = 1;
|
|
19916
19915
|
var i = or && or.__awaiter || function(y, s, a, p) {
|
|
@@ -20020,7 +20019,7 @@ function Rd() {
|
|
|
20020
20019
|
return or.RCAPI = b, or;
|
|
20021
20020
|
}
|
|
20022
20021
|
var fr = {}, tc;
|
|
20023
|
-
function
|
|
20022
|
+
function Rd() {
|
|
20024
20023
|
if (tc) return fr;
|
|
20025
20024
|
tc = 1;
|
|
20026
20025
|
var i = fr && fr.__awaiter || function(b, y, s, a) {
|
|
@@ -20076,7 +20075,7 @@ function Md() {
|
|
|
20076
20075
|
return fr.TransactionStatusAPI = h, fr;
|
|
20077
20076
|
}
|
|
20078
20077
|
var rc;
|
|
20079
|
-
function
|
|
20078
|
+
function Md() {
|
|
20080
20079
|
return rc || (rc = 1, function(i) {
|
|
20081
20080
|
/**
|
|
20082
20081
|
* @file Hive RPC client implementation.
|
|
@@ -20140,8 +20139,8 @@ function Pd() {
|
|
|
20140
20139
|
});
|
|
20141
20140
|
};
|
|
20142
20141
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
20143
|
-
const b =
|
|
20144
|
-
i.VERSION = s.default, i.DEFAULT_CHAIN_ID =
|
|
20142
|
+
const b = wt(), y = i0(), s = vd(), a = xd(), p = Ad(), f = Sd(), l = Id(), n = Td(), r = Bd(), e = Rd(), t = qo();
|
|
20143
|
+
i.VERSION = s.default, i.DEFAULT_CHAIN_ID = Ke.from("beeab0de00000000000000000000000000000000000000000000000000000000", "hex"), i.DEFAULT_ADDRESS_PREFIX = "STM";
|
|
20145
20144
|
class o {
|
|
20146
20145
|
/**
|
|
20147
20146
|
* @param address The address to the Hive RPC server,
|
|
@@ -20149,7 +20148,7 @@ function Pd() {
|
|
|
20149
20148
|
* @param options Client options.
|
|
20150
20149
|
*/
|
|
20151
20150
|
constructor(m, g = {}) {
|
|
20152
|
-
g.rebrandedApi && console.log("Warning: rebrandedApi is deprecated and safely can be removed from client options"), this.currentAddress = Array.isArray(m) ? m[0] : m, this.address = m, this.options = g, this.chainId = g.chainId ?
|
|
20151
|
+
g.rebrandedApi && console.log("Warning: rebrandedApi is deprecated and safely can be removed from client options"), this.currentAddress = Array.isArray(m) ? m[0] : m, this.address = m, this.options = g, this.chainId = g.chainId ? Ke.from(g.chainId, "hex") : i.DEFAULT_CHAIN_ID, b.equal(this.chainId.length, 32, "invalid chain id"), this.addressPrefix = g.addressPrefix || i.DEFAULT_ADDRESS_PREFIX, this.timeout = g.timeout || 60 * 1e3, this.backoff = g.backoff || u, this.failoverThreshold = g.failoverThreshold || 3, this.consoleOnFailover = g.consoleOnFailover || !1, this.database = new f.DatabaseAPI(this), this.broadcast = new p.BroadcastAPI(this), this.blockchain = new a.Blockchain(this), this.rc = new r.RCAPI(this), this.hivemind = new l.HivemindAPI(this), this.keys = new n.AccountByKeyAPI(this), this.transaction = new e.TransactionStatusAPI(this);
|
|
20153
20152
|
}
|
|
20154
20153
|
/**
|
|
20155
20154
|
* Create a new client instance configured for the testnet.
|
|
@@ -20174,7 +20173,7 @@ function Pd() {
|
|
|
20174
20173
|
method: m + "." + g,
|
|
20175
20174
|
params: w
|
|
20176
20175
|
}, P = {
|
|
20177
|
-
body: JSON.stringify(E, (U, Q) => Q && typeof Q == "object" && Q.type === "Buffer" ?
|
|
20176
|
+
body: JSON.stringify(E, (U, Q) => Q && typeof Q == "object" && Q.type === "Buffer" ? Ke.from(Q.data).toString("hex") : Q),
|
|
20178
20177
|
cache: "no-cache",
|
|
20179
20178
|
headers: {
|
|
20180
20179
|
Accept: "application/json, text/plain, */*",
|
|
@@ -20259,8 +20258,8 @@ function yr() {
|
|
|
20259
20258
|
* in the design, construction, operation or maintenance of any military facility.
|
|
20260
20259
|
*/
|
|
20261
20260
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
20262
|
-
const h =
|
|
20263
|
-
i.NETWORK_ID =
|
|
20261
|
+
const h = wt(), b = dc, y = vn(), s = Cc(), a = Cr(), p = Gh(), f = Yc(), l = pd(), n = i0(), r = No(), e = Md(), t = qo(), o = p.getCurveByName("secp256k1");
|
|
20262
|
+
i.NETWORK_ID = Ke.from([128]);
|
|
20264
20263
|
function u(S) {
|
|
20265
20264
|
return new f().update(S).digest();
|
|
20266
20265
|
}
|
|
@@ -20275,7 +20274,7 @@ function yr() {
|
|
|
20275
20274
|
}
|
|
20276
20275
|
function w(S, _) {
|
|
20277
20276
|
const M = u(S);
|
|
20278
|
-
return _ + s.encode(
|
|
20277
|
+
return _ + s.encode(Ke.concat([S, M.slice(0, 4)]));
|
|
20279
20278
|
}
|
|
20280
20279
|
function E(S) {
|
|
20281
20280
|
const _ = S.slice(0, 3);
|
|
@@ -20286,7 +20285,7 @@ function yr() {
|
|
|
20286
20285
|
function I(S) {
|
|
20287
20286
|
h.equal(S.readUInt8(0), 128, "private key network id mismatch");
|
|
20288
20287
|
const _ = g(S);
|
|
20289
|
-
return s.encode(
|
|
20288
|
+
return s.encode(Ke.concat([S, _.slice(0, 4)]));
|
|
20290
20289
|
}
|
|
20291
20290
|
function P(S) {
|
|
20292
20291
|
const _ = s.decode(S);
|
|
@@ -20299,7 +20298,7 @@ function yr() {
|
|
|
20299
20298
|
}
|
|
20300
20299
|
function k(S) {
|
|
20301
20300
|
try {
|
|
20302
|
-
const _ = new
|
|
20301
|
+
const _ = new Ke(s.decode(S)), M = _.slice(0, -4), N = _.slice(-4);
|
|
20303
20302
|
let K = d(M);
|
|
20304
20303
|
return K = d(K), K = K.slice(0, 4), N.toString() === K.toString();
|
|
20305
20304
|
} catch {
|
|
@@ -20308,7 +20307,7 @@ function yr() {
|
|
|
20308
20307
|
}
|
|
20309
20308
|
class $ {
|
|
20310
20309
|
constructor(_, M = e.DEFAULT_ADDRESS_PREFIX) {
|
|
20311
|
-
this.key = _, this.prefix = M, h(l.publicKeyVerify(_), "invalid public key"), this.uncompressed =
|
|
20310
|
+
this.key = _, this.prefix = M, h(l.publicKeyVerify(_), "invalid public key"), this.uncompressed = Ke.from(l.publicKeyConvert(_, !1));
|
|
20312
20311
|
}
|
|
20313
20312
|
static fromBuffer(_) {
|
|
20314
20313
|
return h(l.publicKeyVerify(_), "invalid buffer as public key"), { key: _ };
|
|
@@ -20384,7 +20383,7 @@ function yr() {
|
|
|
20384
20383
|
return U.fromSeed(K);
|
|
20385
20384
|
}
|
|
20386
20385
|
multiply(_) {
|
|
20387
|
-
return
|
|
20386
|
+
return Ke.from(l.publicKeyTweakMul(_.key, this.secret, !1));
|
|
20388
20387
|
}
|
|
20389
20388
|
/**
|
|
20390
20389
|
* Sign message.
|
|
@@ -20394,7 +20393,7 @@ function yr() {
|
|
|
20394
20393
|
let M, N = 0;
|
|
20395
20394
|
do {
|
|
20396
20395
|
const K = {
|
|
20397
|
-
data: d(
|
|
20396
|
+
data: d(Ke.concat([_, Ke.alloc(1, ++N)]))
|
|
20398
20397
|
};
|
|
20399
20398
|
M = l.sign(_, this.key, K);
|
|
20400
20399
|
} while (!D(M.signature));
|
|
@@ -20410,7 +20409,7 @@ function yr() {
|
|
|
20410
20409
|
* Return a WIF-encoded representation of the key.
|
|
20411
20410
|
*/
|
|
20412
20411
|
toString() {
|
|
20413
|
-
return I(
|
|
20412
|
+
return I(Ke.concat([i.NETWORK_ID, this.key]));
|
|
20414
20413
|
}
|
|
20415
20414
|
/**
|
|
20416
20415
|
* Used by `utils.inspect` and `console.log` in node.js. Does not show the full key
|
|
@@ -20439,7 +20438,7 @@ function yr() {
|
|
|
20439
20438
|
return new Q(N, M);
|
|
20440
20439
|
}
|
|
20441
20440
|
static fromString(_) {
|
|
20442
|
-
return Q.fromBuffer(
|
|
20441
|
+
return Q.fromBuffer(Ke.from(_, "hex"));
|
|
20443
20442
|
}
|
|
20444
20443
|
/**
|
|
20445
20444
|
* Recover public key from signature by providing original signed message.
|
|
@@ -20449,7 +20448,7 @@ function yr() {
|
|
|
20449
20448
|
return new $(l.recover(_, this.data, this.recovery), M);
|
|
20450
20449
|
}
|
|
20451
20450
|
toBuffer() {
|
|
20452
|
-
const _ =
|
|
20451
|
+
const _ = Ke.alloc(65);
|
|
20453
20452
|
return _.writeUInt8(this.recovery + 31, 0), this.data.copy(_, 1), _;
|
|
20454
20453
|
}
|
|
20455
20454
|
toString() {
|
|
@@ -20465,8 +20464,8 @@ function yr() {
|
|
|
20465
20464
|
throw new n.VError({ cause: O, name: "SerializationError" }, "Unable to serialize transaction");
|
|
20466
20465
|
}
|
|
20467
20466
|
M.flip();
|
|
20468
|
-
const N =
|
|
20469
|
-
return d(
|
|
20467
|
+
const N = Ke.from(M.toBuffer());
|
|
20468
|
+
return d(Ke.concat([_, N]));
|
|
20470
20469
|
}
|
|
20471
20470
|
function c(S, _, M = e.DEFAULT_CHAIN_ID) {
|
|
20472
20471
|
const N = R(S, M), K = t.copy(S);
|
|
@@ -20485,7 +20484,7 @@ function yr() {
|
|
|
20485
20484
|
throw new n.VError({ cause: N, name: "SerializationError" }, "Unable to serialize transaction");
|
|
20486
20485
|
}
|
|
20487
20486
|
_.flip();
|
|
20488
|
-
const M =
|
|
20487
|
+
const M = Ke.from(_.toBuffer());
|
|
20489
20488
|
return i.cryptoUtils.sha256(M).toString("hex").slice(0, 40);
|
|
20490
20489
|
}
|
|
20491
20490
|
i.cryptoUtils = {
|
|
@@ -20503,17 +20502,17 @@ function yr() {
|
|
|
20503
20502
|
};
|
|
20504
20503
|
}(An)), An;
|
|
20505
20504
|
}
|
|
20506
|
-
var
|
|
20507
|
-
function
|
|
20508
|
-
const y = jt.fromString(h), s = b ?
|
|
20509
|
-
return
|
|
20505
|
+
var Pd = yr();
|
|
20506
|
+
function Fd(i, h, b) {
|
|
20507
|
+
const y = jt.fromString(h), s = b ? Ke.from(b, "hex") : void 0;
|
|
20508
|
+
return Pd.cryptoUtils.signTransaction(i, y, s);
|
|
20510
20509
|
}
|
|
20511
|
-
async function
|
|
20512
|
-
const s =
|
|
20510
|
+
async function Up(i, h, b, y) {
|
|
20511
|
+
const s = Fd(h, b, y);
|
|
20513
20512
|
return i.broadcast.send(s);
|
|
20514
20513
|
}
|
|
20515
20514
|
var tn = {}, rn = {}, ic;
|
|
20516
|
-
function
|
|
20515
|
+
function Od() {
|
|
20517
20516
|
if (ic) return rn;
|
|
20518
20517
|
ic = 1, Object.defineProperty(rn, "__esModule", { value: !0 });
|
|
20519
20518
|
const i = Cr(), h = yr(), b = (n) => {
|
|
@@ -20521,7 +20520,7 @@ function Dd() {
|
|
|
20521
20520
|
return h.PublicKey.fromBuffer(r);
|
|
20522
20521
|
}, y = (n) => n.readUint64(), s = (n) => n.readUint32(), a = (n) => {
|
|
20523
20522
|
const r = n.readVarint32(), e = n.copy(n.offset, n.offset + r);
|
|
20524
|
-
return n.skip(r),
|
|
20523
|
+
return n.skip(r), Ke.from(e.toBinary(), "binary");
|
|
20525
20524
|
}, p = (n) => (r) => {
|
|
20526
20525
|
const e = {};
|
|
20527
20526
|
for (const [t, o] of n)
|
|
@@ -20535,7 +20534,7 @@ function Dd() {
|
|
|
20535
20534
|
function f(n, r) {
|
|
20536
20535
|
if (n) {
|
|
20537
20536
|
const e = n.copy(n.offset, n.offset + r);
|
|
20538
|
-
return n.skip(r),
|
|
20537
|
+
return n.skip(r), Ke.from(e.toBinary(), "binary");
|
|
20539
20538
|
} else
|
|
20540
20539
|
throw Error("No buffer found on first parameter");
|
|
20541
20540
|
}
|
|
@@ -20551,15 +20550,15 @@ function Dd() {
|
|
|
20551
20550
|
}, rn;
|
|
20552
20551
|
}
|
|
20553
20552
|
var co = {}, ac;
|
|
20554
|
-
function
|
|
20553
|
+
function Dd() {
|
|
20555
20554
|
return ac || (ac = 1, function(i) {
|
|
20556
20555
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
20557
|
-
const h =
|
|
20556
|
+
const h = wt(), b = dc, y = Cr(), s = y.Long;
|
|
20558
20557
|
i.encrypt = (n, r, e, t = f()) => a(n, r, t, e), i.decrypt = (n, r, e, t, o) => a(n, r, e, t, o).message;
|
|
20559
20558
|
const a = (n, r, e, t, o) => {
|
|
20560
20559
|
const u = l(e), d = n.get_shared_secret(r);
|
|
20561
20560
|
let m = new y(y.DEFAULT_CAPACITY, y.LITTLE_ENDIAN);
|
|
20562
|
-
m.writeUint64(u), m.append(d.toString("binary"), "binary"), m =
|
|
20561
|
+
m.writeUint64(u), m.append(d.toString("binary"), "binary"), m = Ke.from(m.copy(0, m.offset).toBinary(), "binary");
|
|
20563
20562
|
const g = b.createHash("sha512").update(m).digest(), w = g.slice(32, 48), E = g.slice(0, 32), I = b.createHash("sha256").update(g).digest().slice(0, 4), P = y.fromBinary(I.toString("binary"), y.DEFAULT_CAPACITY, y.LITTLE_ENDIAN);
|
|
20564
20563
|
y.fromBinary(I.toString("binary"), y.DEFAULT_CAPACITY, y.LITTLE_ENDIAN);
|
|
20565
20564
|
const D = P.readUint32();
|
|
@@ -20575,12 +20574,12 @@ function Nd() {
|
|
|
20575
20574
|
h(n, "Missing cipher text");
|
|
20576
20575
|
let t = n;
|
|
20577
20576
|
const o = b.createDecipheriv("aes-256-cbc", r, e);
|
|
20578
|
-
return t =
|
|
20577
|
+
return t = Ke.concat([o.update(t), o.final()]), t;
|
|
20579
20578
|
}, i.cryptoJsEncrypt = (n, r, e) => {
|
|
20580
20579
|
h(n, "Missing plain text");
|
|
20581
20580
|
let t = n;
|
|
20582
20581
|
const o = b.createCipheriv("aes-256-cbc", r, e);
|
|
20583
|
-
return t =
|
|
20582
|
+
return t = Ke.concat([o.update(t), o.final()]), t;
|
|
20584
20583
|
};
|
|
20585
20584
|
let p = null;
|
|
20586
20585
|
const f = () => {
|
|
@@ -20597,16 +20596,16 @@ function Nd() {
|
|
|
20597
20596
|
}(co)), co;
|
|
20598
20597
|
}
|
|
20599
20598
|
var oc;
|
|
20600
|
-
function
|
|
20599
|
+
function Nd() {
|
|
20601
20600
|
if (oc) return tn;
|
|
20602
20601
|
oc = 1, Object.defineProperty(tn, "__esModule", { value: !0 });
|
|
20603
|
-
const i = Cc(), h = Cr(), b =
|
|
20602
|
+
const i = Cc(), h = Cr(), b = Od(), y = No(), s = yr(), a = Dd(), p = (t, o, u, d) => {
|
|
20604
20603
|
if (!u.startsWith("#"))
|
|
20605
20604
|
return u;
|
|
20606
20605
|
u = u.substring(1), n(), t = r(t), o = e(o);
|
|
20607
20606
|
const m = new h(h.DEFAULT_CAPACITY, h.LITTLE_ENDIAN);
|
|
20608
20607
|
m.writeVString(u);
|
|
20609
|
-
const g =
|
|
20608
|
+
const g = Ke.from(m.copy(0, m.offset).toBinary(), "binary"), { nonce: w, message: E, checksum: I } = a.encrypt(t, o, g, d), P = new h(h.DEFAULT_CAPACITY, h.LITTLE_ENDIAN);
|
|
20610
20609
|
y.Types.EncryptedMemo(P, {
|
|
20611
20610
|
check: I,
|
|
20612
20611
|
encrypted: E,
|
|
@@ -20614,20 +20613,20 @@ function qd() {
|
|
|
20614
20613
|
nonce: w,
|
|
20615
20614
|
to: o
|
|
20616
20615
|
}), P.flip();
|
|
20617
|
-
const D =
|
|
20616
|
+
const D = Ke.from(P.toBuffer());
|
|
20618
20617
|
return "#" + i.encode(D);
|
|
20619
20618
|
}, f = (t, o) => {
|
|
20620
20619
|
if (!o.startsWith("#"))
|
|
20621
20620
|
return o;
|
|
20622
20621
|
o = o.substring(1), n(), t = r(t), o = i.decode(o);
|
|
20623
|
-
let u = b.types.EncryptedMemoD(
|
|
20622
|
+
let u = b.types.EncryptedMemoD(Ke.from(o, "binary"));
|
|
20624
20623
|
const { from: d, to: m, nonce: g, check: w, encrypted: E } = u, P = t.createPublic().toString() === new s.PublicKey(d.key).toString() ? new s.PublicKey(m.key) : new s.PublicKey(d.key);
|
|
20625
20624
|
u = a.decrypt(t, P, g, E, w);
|
|
20626
20625
|
const D = h.fromBinary(u.toString("binary"), h.LITTLE_ENDIAN);
|
|
20627
20626
|
try {
|
|
20628
20627
|
return D.mark(), "#" + D.readVString();
|
|
20629
20628
|
} catch {
|
|
20630
|
-
return D.reset(), o =
|
|
20629
|
+
return D.reset(), o = Ke.from(D.toString("binary"), "binary").toString("utf-8"), "#" + o;
|
|
20631
20630
|
}
|
|
20632
20631
|
};
|
|
20633
20632
|
let l;
|
|
@@ -20652,27 +20651,27 @@ function qd() {
|
|
|
20652
20651
|
encode: p
|
|
20653
20652
|
}, tn;
|
|
20654
20653
|
}
|
|
20655
|
-
var Lo =
|
|
20656
|
-
function
|
|
20654
|
+
var Lo = Nd();
|
|
20655
|
+
function jp(i, h, b) {
|
|
20657
20656
|
return Lo.Memo.encode(jt.fromString(i), h, b);
|
|
20658
20657
|
}
|
|
20659
|
-
async function
|
|
20658
|
+
async function zp(i, h, b, y) {
|
|
20660
20659
|
const [s] = await i.database.getAccounts([b]);
|
|
20661
20660
|
if (!s)
|
|
20662
20661
|
throw new Error("Account not found");
|
|
20663
20662
|
return Lo.Memo.encode(jt.fromString(h), s.memo_key, y);
|
|
20664
20663
|
}
|
|
20665
|
-
function
|
|
20664
|
+
function qd(i, h) {
|
|
20666
20665
|
return Lo.Memo.decode(jt.fromString(i), h);
|
|
20667
20666
|
}
|
|
20668
|
-
const
|
|
20669
|
-
async function
|
|
20667
|
+
const Vp = qd;
|
|
20668
|
+
async function Ld(i, h) {
|
|
20670
20669
|
const b = vo(i);
|
|
20671
20670
|
if (!b) throw new Error("Unsupported currency");
|
|
20672
20671
|
return b.signTransaction(h);
|
|
20673
20672
|
}
|
|
20674
|
-
async function
|
|
20675
|
-
const b = await
|
|
20673
|
+
async function Hp(i, h) {
|
|
20674
|
+
const b = await Ld(i, h);
|
|
20676
20675
|
switch (i) {
|
|
20677
20676
|
case Oe.BTC: {
|
|
20678
20677
|
const y = await fetch("https://mempool.space/api/tx", {
|
|
@@ -20698,7 +20697,7 @@ async function $p(i, h) {
|
|
|
20698
20697
|
}
|
|
20699
20698
|
case Oe.SOL: {
|
|
20700
20699
|
const s = await (await fetch(
|
|
20701
|
-
`https://rpc.helius.xyz/?api-key=${
|
|
20700
|
+
`https://rpc.helius.xyz/?api-key=${$e.heliusApiKey}`,
|
|
20702
20701
|
{
|
|
20703
20702
|
method: "POST",
|
|
20704
20703
|
headers: { "Content-Type": "application/json" },
|
|
@@ -20764,9 +20763,12 @@ async function $p(i, h) {
|
|
|
20764
20763
|
throw new Error("Unsupported currency");
|
|
20765
20764
|
}
|
|
20766
20765
|
}
|
|
20767
|
-
function
|
|
20766
|
+
function kd(i, h, b) {
|
|
20768
20767
|
return g0(i, h, b);
|
|
20769
20768
|
}
|
|
20769
|
+
function $p(i) {
|
|
20770
|
+
return i;
|
|
20771
|
+
}
|
|
20770
20772
|
function Kp(i) {
|
|
20771
20773
|
return i;
|
|
20772
20774
|
}
|
|
@@ -20782,13 +20784,10 @@ function Wp(i) {
|
|
|
20782
20784
|
function Jp(i) {
|
|
20783
20785
|
return i;
|
|
20784
20786
|
}
|
|
20785
|
-
function Qp(i) {
|
|
20786
|
-
return i;
|
|
20787
|
-
}
|
|
20788
|
-
function Zp(i, h) {
|
|
20787
|
+
function Qp(i, h) {
|
|
20789
20788
|
switch (i) {
|
|
20790
20789
|
case Oe.BTC:
|
|
20791
|
-
return
|
|
20790
|
+
return kd(h);
|
|
20792
20791
|
case Oe.ETH:
|
|
20793
20792
|
return h;
|
|
20794
20793
|
case Oe.SOL:
|
|
@@ -20805,7 +20804,7 @@ function Zp(i, h) {
|
|
|
20805
20804
|
throw new Error("Unsupported currency");
|
|
20806
20805
|
}
|
|
20807
20806
|
}
|
|
20808
|
-
function
|
|
20807
|
+
function Cd(i) {
|
|
20809
20808
|
const { data: h } = pc(i);
|
|
20810
20809
|
return Yt({
|
|
20811
20810
|
queryKey: ["ecencу-wallets", "hive-keys", i, h],
|
|
@@ -20813,9 +20812,9 @@ function Ud(i) {
|
|
|
20813
20812
|
queryFn: async () => {
|
|
20814
20813
|
if (!h)
|
|
20815
20814
|
throw new Error("[Ecency][Wallets] - no seed to create Hive account");
|
|
20816
|
-
const y = await
|
|
20815
|
+
const y = await P0(i, h).catch(
|
|
20817
20816
|
() => "bip44"
|
|
20818
|
-
) === "master-password" ?
|
|
20817
|
+
) === "master-password" ? M0(i, h) : gc(h);
|
|
20819
20818
|
return {
|
|
20820
20819
|
username: i,
|
|
20821
20820
|
...y
|
|
@@ -20839,13 +20838,13 @@ function et(i) {
|
|
|
20839
20838
|
symbol: f0[i.nai]
|
|
20840
20839
|
};
|
|
20841
20840
|
}
|
|
20842
|
-
function
|
|
20841
|
+
function Zp(i) {
|
|
20843
20842
|
return i === void 0 ? !0 : parseInt(i.split("-")[0], 10) < 1980;
|
|
20844
20843
|
}
|
|
20845
20844
|
function ho(i, h) {
|
|
20846
20845
|
return i / 1e6 * h;
|
|
20847
20846
|
}
|
|
20848
|
-
function
|
|
20847
|
+
function Ud(i, h) {
|
|
20849
20848
|
let b = 0, y = 0, s = 0, a = 0, p = i.head_block - i.spk_block;
|
|
20850
20849
|
if (i.spk_block) {
|
|
20851
20850
|
if (p < 28800)
|
|
@@ -20871,12 +20870,12 @@ function Ut(i) {
|
|
|
20871
20870
|
refetchInterval: 9e4,
|
|
20872
20871
|
queryFn: async () => {
|
|
20873
20872
|
await Ne().prefetchQuery(ur()), await Ne().prefetchQuery(
|
|
20874
|
-
|
|
20873
|
+
_t(i)
|
|
20875
20874
|
);
|
|
20876
20875
|
const h = Ne().getQueryData(
|
|
20877
20876
|
ur().queryKey
|
|
20878
20877
|
), b = Ne().getQueryData(
|
|
20879
|
-
|
|
20878
|
+
_t(i).queryKey
|
|
20880
20879
|
);
|
|
20881
20880
|
return {
|
|
20882
20881
|
name: "HIVE",
|
|
@@ -20887,7 +20886,7 @@ function Ut(i) {
|
|
|
20887
20886
|
}
|
|
20888
20887
|
});
|
|
20889
20888
|
}
|
|
20890
|
-
function
|
|
20889
|
+
function jd(i) {
|
|
20891
20890
|
let l = 9.5 - (i.headBlock - 7e6) / 25e4 * 0.01;
|
|
20892
20891
|
l < 0.95 && (l = 0.95);
|
|
20893
20892
|
const n = i.vestingRewardPercent / 1e4, r = i.virtualSupply, e = i.totalVestingFund;
|
|
@@ -20900,12 +20899,12 @@ function s0(i) {
|
|
|
20900
20899
|
refetchInterval: 9e4,
|
|
20901
20900
|
queryFn: async () => {
|
|
20902
20901
|
await Ne().prefetchQuery(ur()), await Ne().prefetchQuery(
|
|
20903
|
-
|
|
20902
|
+
_t(i)
|
|
20904
20903
|
);
|
|
20905
20904
|
const h = Ne().getQueryData(
|
|
20906
20905
|
ur().queryKey
|
|
20907
20906
|
), b = Ne().getQueryData(
|
|
20908
|
-
|
|
20907
|
+
_t(i).queryKey
|
|
20909
20908
|
);
|
|
20910
20909
|
return !h || !b ? {
|
|
20911
20910
|
name: "HP",
|
|
@@ -20923,7 +20922,7 @@ function s0(i) {
|
|
|
20923
20922
|
// nextVestingSharesWithdrawal,
|
|
20924
20923
|
h.hivePerMVests
|
|
20925
20924
|
).toFixed(3),
|
|
20926
|
-
apr:
|
|
20925
|
+
apr: jd(h),
|
|
20927
20926
|
parts: [
|
|
20928
20927
|
{
|
|
20929
20928
|
name: "delegating",
|
|
@@ -20944,17 +20943,17 @@ function s0(i) {
|
|
|
20944
20943
|
}
|
|
20945
20944
|
});
|
|
20946
20945
|
}
|
|
20947
|
-
function
|
|
20946
|
+
function zd(i) {
|
|
20948
20947
|
return it({
|
|
20949
20948
|
queryKey: ["assets", "hbd", "general-info", i],
|
|
20950
20949
|
staleTime: 6e4,
|
|
20951
20950
|
refetchInterval: 9e4,
|
|
20952
20951
|
queryFn: async () => {
|
|
20953
20952
|
await Ne().prefetchQuery(ur()), await Ne().prefetchQuery(
|
|
20954
|
-
|
|
20953
|
+
_t(i)
|
|
20955
20954
|
);
|
|
20956
20955
|
const h = Ne().getQueryData(
|
|
20957
|
-
|
|
20956
|
+
_t(i).queryKey
|
|
20958
20957
|
), b = Ne().getQueryData(
|
|
20959
20958
|
ur().queryKey
|
|
20960
20959
|
);
|
|
@@ -21063,7 +21062,7 @@ function u0(i, h = 20, b) {
|
|
|
21063
21062
|
default:
|
|
21064
21063
|
s = Ht.makeBitMaskFilter([]);
|
|
21065
21064
|
}
|
|
21066
|
-
return (await
|
|
21065
|
+
return (await $e.hiveClient.call(
|
|
21067
21066
|
"condenser_api",
|
|
21068
21067
|
"get_account_history",
|
|
21069
21068
|
[i, y, h, ...s]
|
|
@@ -21118,7 +21117,7 @@ function u0(i, h = 20, b) {
|
|
|
21118
21117
|
})
|
|
21119
21118
|
});
|
|
21120
21119
|
}
|
|
21121
|
-
function
|
|
21120
|
+
function Xp(i, h = 20, b) {
|
|
21122
21121
|
return qr({
|
|
21123
21122
|
...u0(i, h, b),
|
|
21124
21123
|
queryKey: ["assets", "hive-power", "transactions", i, h, b],
|
|
@@ -21160,7 +21159,7 @@ function e1(i, h = 20, b) {
|
|
|
21160
21159
|
})
|
|
21161
21160
|
});
|
|
21162
21161
|
}
|
|
21163
|
-
function
|
|
21162
|
+
function e1(i, h = 20, b) {
|
|
21164
21163
|
return qr({
|
|
21165
21164
|
...u0(i, h, b),
|
|
21166
21165
|
queryKey: ["assets", "hbd", "transactions", i, h, b],
|
|
@@ -21195,10 +21194,10 @@ function t1(i, h = 20, b) {
|
|
|
21195
21194
|
})
|
|
21196
21195
|
});
|
|
21197
21196
|
}
|
|
21198
|
-
function
|
|
21197
|
+
function t1(i = 86400) {
|
|
21199
21198
|
return qr({
|
|
21200
21199
|
queryKey: ["assets", "hive", "metrics", i],
|
|
21201
|
-
queryFn: async ({ pageParam: [h, b] }) => (await
|
|
21200
|
+
queryFn: async ({ pageParam: [h, b] }) => (await $e.hiveClient.call(
|
|
21202
21201
|
"condenser_api",
|
|
21203
21202
|
"get_market_history",
|
|
21204
21203
|
[
|
|
@@ -21225,31 +21224,31 @@ function r1(i = 86400) {
|
|
|
21225
21224
|
]
|
|
21226
21225
|
});
|
|
21227
21226
|
}
|
|
21228
|
-
function
|
|
21227
|
+
function r1(i) {
|
|
21229
21228
|
return it({
|
|
21230
21229
|
queryKey: ["assets", "hive", "withdrawal-routes", i],
|
|
21231
|
-
queryFn: () =>
|
|
21230
|
+
queryFn: () => $e.hiveClient.database.call("get_withdraw_routes", [
|
|
21232
21231
|
i,
|
|
21233
21232
|
"outgoing"
|
|
21234
21233
|
])
|
|
21235
21234
|
});
|
|
21236
21235
|
}
|
|
21237
|
-
function
|
|
21236
|
+
function n1(i, h = 50) {
|
|
21238
21237
|
return it({
|
|
21239
21238
|
queryKey: ["assets", "hive-power", "delegates", i],
|
|
21240
21239
|
enabled: !!i,
|
|
21241
|
-
queryFn: () =>
|
|
21240
|
+
queryFn: () => $e.hiveClient.database.call("get_vesting_delegations", [
|
|
21242
21241
|
i,
|
|
21243
21242
|
"",
|
|
21244
21243
|
h
|
|
21245
21244
|
])
|
|
21246
21245
|
});
|
|
21247
21246
|
}
|
|
21248
|
-
function
|
|
21247
|
+
function i1(i) {
|
|
21249
21248
|
return it({
|
|
21250
21249
|
queryKey: ["assets", "hive-power", "delegatings", i],
|
|
21251
21250
|
queryFn: async () => (await (await fetch(
|
|
21252
|
-
|
|
21251
|
+
$e.privateApiHost + `/private-api/received-vesting/${i}`,
|
|
21253
21252
|
{
|
|
21254
21253
|
headers: {
|
|
21255
21254
|
"Content-Type": "application/json"
|
|
@@ -21265,7 +21264,7 @@ async function fc(i) {
|
|
|
21265
21264
|
const b = et(i.amount).symbol;
|
|
21266
21265
|
if (i.type === "key" && "key" in i) {
|
|
21267
21266
|
const { key: y, type: s, ...a } = i;
|
|
21268
|
-
return
|
|
21267
|
+
return $e.hiveClient.broadcast.transfer(
|
|
21269
21268
|
{
|
|
21270
21269
|
from: a.from,
|
|
21271
21270
|
to: a.to,
|
|
@@ -21308,7 +21307,7 @@ async function fc(i) {
|
|
|
21308
21307
|
async function sc(i) {
|
|
21309
21308
|
if (i.type === "key" && "key" in i) {
|
|
21310
21309
|
const { key: h, type: b, ...y } = i;
|
|
21311
|
-
return
|
|
21310
|
+
return $e.hiveClient.broadcast.sendOperations(
|
|
21312
21311
|
[["transfer_to_savings", y]],
|
|
21313
21312
|
h
|
|
21314
21313
|
);
|
|
@@ -21323,10 +21322,10 @@ async function sc(i) {
|
|
|
21323
21322
|
}
|
|
21324
21323
|
);
|
|
21325
21324
|
}
|
|
21326
|
-
async function
|
|
21325
|
+
async function Vd(i) {
|
|
21327
21326
|
if (i.type === "key" && "key" in i) {
|
|
21328
21327
|
const { key: h, type: b, ...y } = i;
|
|
21329
|
-
return
|
|
21328
|
+
return $e.hiveClient.broadcast.sendOperations(
|
|
21330
21329
|
[["transfer_to_vesting", y]],
|
|
21331
21330
|
h
|
|
21332
21331
|
);
|
|
@@ -21341,10 +21340,10 @@ async function Hd(i) {
|
|
|
21341
21340
|
}
|
|
21342
21341
|
);
|
|
21343
21342
|
}
|
|
21344
|
-
async function
|
|
21343
|
+
async function Hd(i) {
|
|
21345
21344
|
if (i.type === "key" && "key" in i) {
|
|
21346
21345
|
const { key: h, type: b, ...y } = i;
|
|
21347
|
-
return
|
|
21346
|
+
return $e.hiveClient.broadcast.sendOperations(
|
|
21348
21347
|
[["delegate_vesting_shares", y]],
|
|
21349
21348
|
h
|
|
21350
21349
|
);
|
|
@@ -21359,10 +21358,10 @@ async function $d(i) {
|
|
|
21359
21358
|
}
|
|
21360
21359
|
);
|
|
21361
21360
|
}
|
|
21362
|
-
async function
|
|
21361
|
+
async function $d(i) {
|
|
21363
21362
|
if (i.type === "key" && "key" in i) {
|
|
21364
21363
|
const { key: h, type: b, ...y } = i;
|
|
21365
|
-
return
|
|
21364
|
+
return $e.hiveClient.broadcast.sendOperations(
|
|
21366
21365
|
[["withdraw_vesting", y]],
|
|
21367
21366
|
h
|
|
21368
21367
|
);
|
|
@@ -21377,10 +21376,10 @@ async function Kd(i) {
|
|
|
21377
21376
|
}
|
|
21378
21377
|
);
|
|
21379
21378
|
}
|
|
21380
|
-
async function
|
|
21379
|
+
async function Kd(i) {
|
|
21381
21380
|
if (i.type === "key" && "key" in i) {
|
|
21382
21381
|
const { key: y, type: s, ...a } = i;
|
|
21383
|
-
return
|
|
21382
|
+
return $e.hiveClient.broadcast.sendOperations(
|
|
21384
21383
|
[["set_withdraw_vesting_route", a]],
|
|
21385
21384
|
y
|
|
21386
21385
|
);
|
|
@@ -21401,8 +21400,8 @@ async function Gd(i) {
|
|
|
21401
21400
|
}
|
|
21402
21401
|
);
|
|
21403
21402
|
}
|
|
21404
|
-
function
|
|
21405
|
-
const { data: b } = Yt(
|
|
21403
|
+
function a1(i, h) {
|
|
21404
|
+
const { data: b } = Yt(_t(i)), y = ln();
|
|
21406
21405
|
return h0(
|
|
21407
21406
|
["assets", "hive", "claim-rewards", b == null ? void 0 : b.name],
|
|
21408
21407
|
i,
|
|
@@ -21428,7 +21427,7 @@ function o1(i, h) {
|
|
|
21428
21427
|
},
|
|
21429
21428
|
async () => {
|
|
21430
21429
|
h(), await yc(1e3), y.invalidateQueries({
|
|
21431
|
-
queryKey:
|
|
21430
|
+
queryKey: _t(i).queryKey
|
|
21432
21431
|
}), y.invalidateQueries({
|
|
21433
21432
|
queryKey: s0(i).queryKey
|
|
21434
21433
|
});
|
|
@@ -21436,7 +21435,7 @@ function o1(i, h) {
|
|
|
21436
21435
|
);
|
|
21437
21436
|
}
|
|
21438
21437
|
var ze = /* @__PURE__ */ ((i) => (i.Transfer = "transfer", i.TransferToSavings = "transfer-saving", i.Delegate = "delegate", i.PowerUp = "power-up", i.PowerDown = "power-down", i.WithdrawRoutes = "withdraw-saving", i.Swap = "swap", i.Gift = "gift", i.Promote = "promote", i.Claim = "claim", i.Buy = "buy", i.LockLiquidity = "lock", i.Stake = "stake", i.Unstake = "unstake", i.Undelegate = "undelegate", i))(ze || {});
|
|
21439
|
-
async function
|
|
21438
|
+
async function Gd(i) {
|
|
21440
21439
|
const h = JSON.stringify({
|
|
21441
21440
|
to: i.to,
|
|
21442
21441
|
amount: +i.amount * 1e3,
|
|
@@ -21449,7 +21448,7 @@ async function Yd(i) {
|
|
|
21449
21448
|
};
|
|
21450
21449
|
if (i.type === "key" && "key" in i) {
|
|
21451
21450
|
const { key: y } = i;
|
|
21452
|
-
return
|
|
21451
|
+
return $e.hiveClient.broadcast.json(b, y);
|
|
21453
21452
|
} else {
|
|
21454
21453
|
if (i.type === "keychain")
|
|
21455
21454
|
return qt.customJson(
|
|
@@ -21479,7 +21478,7 @@ async function Yd(i) {
|
|
|
21479
21478
|
}
|
|
21480
21479
|
}
|
|
21481
21480
|
}
|
|
21482
|
-
const
|
|
21481
|
+
const Yd = async (i) => {
|
|
21483
21482
|
const h = JSON.stringify({ amount: +i.amount * 1e3 }), b = {
|
|
21484
21483
|
id: i.mode === "lock" ? "spkcc_gov_up" : "spkcc_gov_down",
|
|
21485
21484
|
json: h,
|
|
@@ -21488,7 +21487,7 @@ const Wd = async (i) => {
|
|
|
21488
21487
|
};
|
|
21489
21488
|
if (i.type === "key" && "key" in i) {
|
|
21490
21489
|
const { key: y } = i;
|
|
21491
|
-
return
|
|
21490
|
+
return $e.hiveClient.broadcast.json(b, y);
|
|
21492
21491
|
} else {
|
|
21493
21492
|
if (i.type === "keychain")
|
|
21494
21493
|
return qt.customJson(
|
|
@@ -21514,7 +21513,7 @@ const Wd = async (i) => {
|
|
|
21514
21513
|
}
|
|
21515
21514
|
}
|
|
21516
21515
|
};
|
|
21517
|
-
async function
|
|
21516
|
+
async function Wd(i) {
|
|
21518
21517
|
const h = JSON.stringify({ amount: +i.amount * 1e3 }), b = {
|
|
21519
21518
|
id: `spkcc_power_${i.mode}`,
|
|
21520
21519
|
json: h,
|
|
@@ -21523,7 +21522,7 @@ async function Jd(i) {
|
|
|
21523
21522
|
};
|
|
21524
21523
|
if (i.type === "key" && "key" in i) {
|
|
21525
21524
|
const { key: y } = i;
|
|
21526
|
-
return
|
|
21525
|
+
return $e.hiveClient.broadcast.json(b, y);
|
|
21527
21526
|
} else {
|
|
21528
21527
|
if (i.type === "keychain")
|
|
21529
21528
|
return qt.customJson(
|
|
@@ -21555,7 +21554,7 @@ function cr() {
|
|
|
21555
21554
|
staleTime: 6e4,
|
|
21556
21555
|
refetchInterval: 9e4,
|
|
21557
21556
|
queryFn: async () => {
|
|
21558
|
-
const h = await (await fetch(`${
|
|
21557
|
+
const h = await (await fetch(`${$e.spkNode}/markets`)).json();
|
|
21559
21558
|
return {
|
|
21560
21559
|
list: Object.entries(h.markets.node).map(([b, y]) => ({
|
|
21561
21560
|
name: b,
|
|
@@ -21569,7 +21568,7 @@ function cr() {
|
|
|
21569
21568
|
function hr(i) {
|
|
21570
21569
|
return it({
|
|
21571
21570
|
queryKey: ["assets", "spk", "wallet", i],
|
|
21572
|
-
queryFn: async () => (await fetch(
|
|
21571
|
+
queryFn: async () => (await fetch($e.spkNode + `/@${i}`)).json(),
|
|
21573
21572
|
enabled: !!i,
|
|
21574
21573
|
staleTime: 6e4,
|
|
21575
21574
|
refetchInterval: 9e4
|
|
@@ -21578,7 +21577,7 @@ function hr(i) {
|
|
|
21578
21577
|
function uc(i) {
|
|
21579
21578
|
return i.toFixed(3);
|
|
21580
21579
|
}
|
|
21581
|
-
function
|
|
21580
|
+
function Jd(i) {
|
|
21582
21581
|
return it({
|
|
21583
21582
|
queryKey: ["assets", "larynx", "general-info", i],
|
|
21584
21583
|
staleTime: 6e4,
|
|
@@ -21617,7 +21616,7 @@ function Qd(i) {
|
|
|
21617
21616
|
function nn(i) {
|
|
21618
21617
|
return i.toFixed(3);
|
|
21619
21618
|
}
|
|
21620
|
-
function
|
|
21619
|
+
function Qd(i) {
|
|
21621
21620
|
return it({
|
|
21622
21621
|
queryKey: ["assets", "spk", "general-info", i],
|
|
21623
21622
|
staleTime: 6e4,
|
|
@@ -21643,7 +21642,7 @@ function Zd(i) {
|
|
|
21643
21642
|
const s = +nn(
|
|
21644
21643
|
(h.gov + h.spk) / 1e3 * +h.tick * ((y == null ? void 0 : y.price) ?? 0)
|
|
21645
21644
|
), a = +nn(
|
|
21646
|
-
(h.spk +
|
|
21645
|
+
(h.spk + Ud(
|
|
21647
21646
|
h,
|
|
21648
21647
|
b.raw.stats || {
|
|
21649
21648
|
spk_rate_lgov: "0.001",
|
|
@@ -21668,7 +21667,7 @@ function Zd(i) {
|
|
|
21668
21667
|
function an(i) {
|
|
21669
21668
|
return i.toFixed(3);
|
|
21670
21669
|
}
|
|
21671
|
-
function
|
|
21670
|
+
function Zd(i) {
|
|
21672
21671
|
return it({
|
|
21673
21672
|
queryKey: ["assets", "larynx-power", "general-info", i],
|
|
21674
21673
|
staleTime: 6e4,
|
|
@@ -21721,7 +21720,7 @@ function cn(i) {
|
|
|
21721
21720
|
staleTime: 6e4,
|
|
21722
21721
|
refetchInterval: 9e4,
|
|
21723
21722
|
queryFn: async () => (await (await fetch(
|
|
21724
|
-
`${
|
|
21723
|
+
`${$e.privateApiHost}/private-api/engine-api`,
|
|
21725
21724
|
{
|
|
21726
21725
|
method: "POST",
|
|
21727
21726
|
body: JSON.stringify({
|
|
@@ -21773,7 +21772,7 @@ function ko(i) {
|
|
|
21773
21772
|
staleTime: 6e4,
|
|
21774
21773
|
refetchInterval: 9e4,
|
|
21775
21774
|
queryFn: async () => (await (await fetch(
|
|
21776
|
-
`${
|
|
21775
|
+
`${$e.privateApiHost}/private-api/engine-api`,
|
|
21777
21776
|
{
|
|
21778
21777
|
method: "POST",
|
|
21779
21778
|
body: JSON.stringify({
|
|
@@ -21793,13 +21792,13 @@ function ko(i) {
|
|
|
21793
21792
|
)).json()).result
|
|
21794
21793
|
});
|
|
21795
21794
|
}
|
|
21796
|
-
function
|
|
21795
|
+
function Xd() {
|
|
21797
21796
|
return it({
|
|
21798
21797
|
queryKey: ["assets", "hive-engine", "markets"],
|
|
21799
21798
|
staleTime: 6e4,
|
|
21800
21799
|
refetchInterval: 9e4,
|
|
21801
21800
|
queryFn: async () => (await (await fetch(
|
|
21802
|
-
`${
|
|
21801
|
+
`${$e.privateApiHost}/private-api/engine-api`,
|
|
21803
21802
|
{
|
|
21804
21803
|
method: "POST",
|
|
21805
21804
|
body: JSON.stringify({
|
|
@@ -21817,7 +21816,7 @@ function ep() {
|
|
|
21817
21816
|
)).json()).result
|
|
21818
21817
|
});
|
|
21819
21818
|
}
|
|
21820
|
-
function
|
|
21819
|
+
function ep(i, h) {
|
|
21821
21820
|
return it({
|
|
21822
21821
|
queryKey: ["assets", "hive-engine", h, "general-info", i],
|
|
21823
21822
|
enabled: !!h && !!i,
|
|
@@ -21836,7 +21835,7 @@ function tp(i, h) {
|
|
|
21836
21835
|
await Ne().prefetchQuery(s);
|
|
21837
21836
|
const a = Ne().getQueryData(s.queryKey), p = ko(i);
|
|
21838
21837
|
await Ne().prefetchQuery(p);
|
|
21839
|
-
const f = Ne().getQueryData(p.queryKey), l =
|
|
21838
|
+
const f = Ne().getQueryData(p.queryKey), l = Xd();
|
|
21840
21839
|
await Ne().prefetchQuery(l);
|
|
21841
21840
|
const n = Ne().getQueryData(l.queryKey), r = a == null ? void 0 : a.find((u) => u.symbol === h), e = f == null ? void 0 : f.find((u) => u.symbol === h), t = n == null ? void 0 : n.find((u) => u.symbol === h), o = +((t == null ? void 0 : t.lastPrice) ?? "0");
|
|
21842
21841
|
return {
|
|
@@ -21849,7 +21848,7 @@ function tp(i, h) {
|
|
|
21849
21848
|
}
|
|
21850
21849
|
});
|
|
21851
21850
|
}
|
|
21852
|
-
function
|
|
21851
|
+
function o1(i, h, b = 20) {
|
|
21853
21852
|
return qr({
|
|
21854
21853
|
queryKey: ["assets", "hive-engine", h, "transactions", i],
|
|
21855
21854
|
enabled: !!h && !!i,
|
|
@@ -21861,7 +21860,7 @@ function f1(i, h, b = 20) {
|
|
|
21861
21860
|
"[SDK][Wallets] – hive engine token or username missed"
|
|
21862
21861
|
);
|
|
21863
21862
|
const s = new URL(
|
|
21864
|
-
`${
|
|
21863
|
+
`${$e.privateApiHost}/private-api/engine-account-history`
|
|
21865
21864
|
);
|
|
21866
21865
|
return s.searchParams.set("account", i), s.searchParams.set("symbol", h), s.searchParams.set("limit", b.toString()), s.searchParams.set("offset", y.toString()), await (await fetch(s, {
|
|
21867
21866
|
method: "GET",
|
|
@@ -21870,14 +21869,14 @@ function f1(i, h, b = 20) {
|
|
|
21870
21869
|
}
|
|
21871
21870
|
});
|
|
21872
21871
|
}
|
|
21873
|
-
function
|
|
21872
|
+
function f1(i, h = "daily") {
|
|
21874
21873
|
return it({
|
|
21875
21874
|
queryKey: ["assets", "hive-engine", i],
|
|
21876
21875
|
staleTime: 6e4,
|
|
21877
21876
|
refetchInterval: 9e4,
|
|
21878
21877
|
queryFn: async () => {
|
|
21879
21878
|
const b = new URL(
|
|
21880
|
-
`${
|
|
21879
|
+
`${$e.privateApiHost}/private-api/engine-chart-api`
|
|
21881
21880
|
);
|
|
21882
21881
|
return b.searchParams.set("symbol", i), b.searchParams.set("interval", h), await (await fetch(b, {
|
|
21883
21882
|
headers: { "Content-type": "application/json" }
|
|
@@ -21885,7 +21884,7 @@ function s1(i, h = "daily") {
|
|
|
21885
21884
|
}
|
|
21886
21885
|
});
|
|
21887
21886
|
}
|
|
21888
|
-
async function
|
|
21887
|
+
async function tp(i) {
|
|
21889
21888
|
const b = et(i.amount).amount.toString();
|
|
21890
21889
|
if (i.type === "key" && "key" in i) {
|
|
21891
21890
|
const { key: y, type: s, ...a } = i, p = {
|
|
@@ -21902,7 +21901,7 @@ async function rp(i) {
|
|
|
21902
21901
|
required_auths: [a.from],
|
|
21903
21902
|
required_posting_auths: []
|
|
21904
21903
|
};
|
|
21905
|
-
return
|
|
21904
|
+
return $e.hiveClient.broadcast.json(p, y);
|
|
21906
21905
|
} else return i.type === "keychain" ? new Promise(
|
|
21907
21906
|
(y, s) => {
|
|
21908
21907
|
var a;
|
|
@@ -21948,7 +21947,7 @@ async function rp(i) {
|
|
|
21948
21947
|
}
|
|
21949
21948
|
);
|
|
21950
21949
|
}
|
|
21951
|
-
async function
|
|
21950
|
+
async function rp(i) {
|
|
21952
21951
|
const b = et(i.amount).amount.toString();
|
|
21953
21952
|
if (i.type === "key" && "key" in i) {
|
|
21954
21953
|
const { key: y, type: s, ...a } = i, p = {
|
|
@@ -21965,7 +21964,7 @@ async function np(i) {
|
|
|
21965
21964
|
required_auths: [a.from],
|
|
21966
21965
|
required_posting_auths: []
|
|
21967
21966
|
};
|
|
21968
|
-
return
|
|
21967
|
+
return $e.hiveClient.broadcast.json(p, y);
|
|
21969
21968
|
} else return i.type === "keychain" ? new Promise(
|
|
21970
21969
|
(y, s) => {
|
|
21971
21970
|
var a;
|
|
@@ -22011,7 +22010,7 @@ async function np(i) {
|
|
|
22011
22010
|
}
|
|
22012
22011
|
);
|
|
22013
22012
|
}
|
|
22014
|
-
async function
|
|
22013
|
+
async function np(i) {
|
|
22015
22014
|
const b = et(i.amount).amount.toString();
|
|
22016
22015
|
if (i.type === "key" && "key" in i) {
|
|
22017
22016
|
const { key: y, type: s, ...a } = i, p = {
|
|
@@ -22028,7 +22027,7 @@ async function ip(i) {
|
|
|
22028
22027
|
required_auths: [a.from],
|
|
22029
22028
|
required_posting_auths: []
|
|
22030
22029
|
};
|
|
22031
|
-
return
|
|
22030
|
+
return $e.hiveClient.broadcast.json(p, y);
|
|
22032
22031
|
} else return i.type === "keychain" ? new Promise(
|
|
22033
22032
|
(y, s) => {
|
|
22034
22033
|
var a;
|
|
@@ -22074,7 +22073,7 @@ async function ip(i) {
|
|
|
22074
22073
|
}
|
|
22075
22074
|
);
|
|
22076
22075
|
}
|
|
22077
|
-
async function
|
|
22076
|
+
async function ip(i) {
|
|
22078
22077
|
const b = et(i.amount).amount.toString();
|
|
22079
22078
|
if (i.type === "key" && "key" in i) {
|
|
22080
22079
|
const { key: y, type: s, ...a } = i, p = {
|
|
@@ -22091,7 +22090,7 @@ async function ap(i) {
|
|
|
22091
22090
|
required_auths: [a.from],
|
|
22092
22091
|
required_posting_auths: []
|
|
22093
22092
|
};
|
|
22094
|
-
return
|
|
22093
|
+
return $e.hiveClient.broadcast.json(p, y);
|
|
22095
22094
|
} else return i.type === "keychain" ? new Promise(
|
|
22096
22095
|
(y, s) => {
|
|
22097
22096
|
var a;
|
|
@@ -22137,7 +22136,7 @@ async function ap(i) {
|
|
|
22137
22136
|
}
|
|
22138
22137
|
);
|
|
22139
22138
|
}
|
|
22140
|
-
async function
|
|
22139
|
+
async function ap(i) {
|
|
22141
22140
|
const b = et(i.amount).amount.toString();
|
|
22142
22141
|
if (i.type === "key" && "key" in i) {
|
|
22143
22142
|
const { key: y, type: s, ...a } = i, p = {
|
|
@@ -22155,7 +22154,7 @@ async function op(i) {
|
|
|
22155
22154
|
required_auths: [a.from],
|
|
22156
22155
|
required_posting_auths: []
|
|
22157
22156
|
};
|
|
22158
|
-
return
|
|
22157
|
+
return $e.hiveClient.broadcast.json(p, y);
|
|
22159
22158
|
} else return i.type === "keychain" ? new Promise(
|
|
22160
22159
|
(y, s) => {
|
|
22161
22160
|
var a;
|
|
@@ -22212,7 +22211,7 @@ function yo(i) {
|
|
|
22212
22211
|
"[SDK][Wallets][Assets][Points][Query] – username wasn`t provided"
|
|
22213
22212
|
);
|
|
22214
22213
|
const b = await (await fetch(
|
|
22215
|
-
|
|
22214
|
+
$e.privateApiHost + "/private-api/points",
|
|
22216
22215
|
{
|
|
22217
22216
|
method: "POST",
|
|
22218
22217
|
headers: {
|
|
@@ -22232,7 +22231,7 @@ function yo(i) {
|
|
|
22232
22231
|
enabled: !!i
|
|
22233
22232
|
});
|
|
22234
22233
|
}
|
|
22235
|
-
function
|
|
22234
|
+
function op(i) {
|
|
22236
22235
|
return it({
|
|
22237
22236
|
queryKey: ["assets", "points", "general-info", i],
|
|
22238
22237
|
staleTime: 6e4,
|
|
@@ -22251,11 +22250,11 @@ function fp(i) {
|
|
|
22251
22250
|
}
|
|
22252
22251
|
});
|
|
22253
22252
|
}
|
|
22254
|
-
function
|
|
22253
|
+
function s1(i, h) {
|
|
22255
22254
|
return it({
|
|
22256
22255
|
queryKey: ["assets", "points", "transactions", i, h],
|
|
22257
22256
|
queryFn: async () => (await (await fetch(
|
|
22258
|
-
`${
|
|
22257
|
+
`${$e.privateApiHost}/private-api/point-list`,
|
|
22259
22258
|
{
|
|
22260
22259
|
method: "POST",
|
|
22261
22260
|
body: JSON.stringify({
|
|
@@ -22276,7 +22275,7 @@ function u1(i, h) {
|
|
|
22276
22275
|
}))
|
|
22277
22276
|
});
|
|
22278
22277
|
}
|
|
22279
|
-
function
|
|
22278
|
+
function u1(i, h, b) {
|
|
22280
22279
|
const { mutateAsync: y } = hc.useRecordActivity(
|
|
22281
22280
|
i,
|
|
22282
22281
|
"points-claimed"
|
|
@@ -22287,7 +22286,7 @@ function c1(i, h, b) {
|
|
|
22287
22286
|
throw new Error(
|
|
22288
22287
|
"[SDK][Wallets][Assets][Points][Claim] – username wasn`t provided"
|
|
22289
22288
|
);
|
|
22290
|
-
return fetch(
|
|
22289
|
+
return fetch($e.privateApiHost + "/private-api/points-claim", {
|
|
22291
22290
|
method: "POST",
|
|
22292
22291
|
headers: {
|
|
22293
22292
|
"Content-Type": "application/json"
|
|
@@ -22297,7 +22296,7 @@ function c1(i, h, b) {
|
|
|
22297
22296
|
},
|
|
22298
22297
|
onError: b,
|
|
22299
22298
|
onSuccess: () => {
|
|
22300
|
-
y(),
|
|
22299
|
+
y(), $e.queryClient.setQueryData(
|
|
22301
22300
|
yo(i).queryKey,
|
|
22302
22301
|
(s) => s && {
|
|
22303
22302
|
points: (parseFloat(s.points) + parseFloat(s.uPoints)).toFixed(3),
|
|
@@ -22307,7 +22306,7 @@ function c1(i, h, b) {
|
|
|
22307
22306
|
}
|
|
22308
22307
|
});
|
|
22309
22308
|
}
|
|
22310
|
-
async function
|
|
22309
|
+
async function fp({
|
|
22311
22310
|
from: i,
|
|
22312
22311
|
to: h,
|
|
22313
22312
|
amount: b,
|
|
@@ -22331,7 +22330,7 @@ async function sp({
|
|
|
22331
22330
|
];
|
|
22332
22331
|
if (s === "key" && "key" in a) {
|
|
22333
22332
|
const { key: f } = a;
|
|
22334
|
-
return
|
|
22333
|
+
return $e.hiveClient.broadcast.sendOperations([p], f);
|
|
22335
22334
|
}
|
|
22336
22335
|
return s === "keychain" ? qt.broadcast(i, [p], "Active") : pt.sendOperation(
|
|
22337
22336
|
p,
|
|
@@ -22340,8 +22339,8 @@ async function sp({
|
|
|
22340
22339
|
}
|
|
22341
22340
|
);
|
|
22342
22341
|
}
|
|
22343
|
-
var
|
|
22344
|
-
function
|
|
22342
|
+
var sp = /* @__PURE__ */ ((i) => (i[i.CHECKIN = 10] = "CHECKIN", i[i.LOGIN = 20] = "LOGIN", i[i.CHECKIN_EXTRA = 30] = "CHECKIN_EXTRA", i[i.POST = 100] = "POST", i[i.COMMENT = 110] = "COMMENT", i[i.VOTE = 120] = "VOTE", i[i.REBLOG = 130] = "REBLOG", i[i.DELEGATION = 150] = "DELEGATION", i[i.REFERRAL = 160] = "REFERRAL", i[i.COMMUNITY = 170] = "COMMUNITY", i[i.TRANSFER_SENT = 998] = "TRANSFER_SENT", i[i.TRANSFER_INCOMING = 999] = "TRANSFER_INCOMING", i[i.MINTED = 991] = "MINTED", i))(sp || {});
|
|
22343
|
+
function c1(i) {
|
|
22345
22344
|
return it({
|
|
22346
22345
|
queryKey: ["ecency-wallets", "all-tokens-list", i],
|
|
22347
22346
|
queryFn: async () => {
|
|
@@ -22365,13 +22364,13 @@ function h1(i) {
|
|
|
22365
22364
|
}
|
|
22366
22365
|
});
|
|
22367
22366
|
}
|
|
22368
|
-
function
|
|
22367
|
+
function up(i) {
|
|
22369
22368
|
return it({
|
|
22370
22369
|
queryKey: ["ecency-wallets", "list", i],
|
|
22371
22370
|
enabled: !!i,
|
|
22372
22371
|
queryFn: async () => {
|
|
22373
22372
|
var y;
|
|
22374
|
-
const h =
|
|
22373
|
+
const h = _t(i);
|
|
22375
22374
|
await Ne().fetchQuery({
|
|
22376
22375
|
queryKey: h.queryKey
|
|
22377
22376
|
});
|
|
@@ -22398,7 +22397,7 @@ function cp(i) {
|
|
|
22398
22397
|
}
|
|
22399
22398
|
});
|
|
22400
22399
|
}
|
|
22401
|
-
function
|
|
22400
|
+
function cp(i, h, b = { refetch: !1 }) {
|
|
22402
22401
|
const y = async (s) => (b.refetch ? await Ne().fetchQuery(s) : await Ne().prefetchQuery(s), Ne().getQueryData(
|
|
22403
22402
|
s.queryKey
|
|
22404
22403
|
));
|
|
@@ -22410,18 +22409,18 @@ function hp(i, h, b = { refetch: !1 }) {
|
|
|
22410
22409
|
if (h === "HP")
|
|
22411
22410
|
return y(s0(i));
|
|
22412
22411
|
if (h === "HBD")
|
|
22413
|
-
return y(
|
|
22412
|
+
return y(zd(i));
|
|
22414
22413
|
if (h === "SPK")
|
|
22415
|
-
return y(Zd(i));
|
|
22416
|
-
if (h === "LARYNX")
|
|
22417
22414
|
return y(Qd(i));
|
|
22415
|
+
if (h === "LARYNX")
|
|
22416
|
+
return y(Jd(i));
|
|
22418
22417
|
if (h === "LP")
|
|
22419
|
-
return y(
|
|
22418
|
+
return y(Zd(i));
|
|
22420
22419
|
if (h === "POINTS")
|
|
22421
|
-
return y(
|
|
22420
|
+
return y(op(i));
|
|
22422
22421
|
if (hn.includes(h))
|
|
22423
22422
|
return await y(
|
|
22424
|
-
|
|
22423
|
+
ep(i, h)
|
|
22425
22424
|
);
|
|
22426
22425
|
throw new Error(
|
|
22427
22426
|
"[SDK][Wallets] – has requested unrecognized asset info"
|
|
@@ -22429,7 +22428,7 @@ function hp(i, h, b = { refetch: !1 }) {
|
|
|
22429
22428
|
}
|
|
22430
22429
|
});
|
|
22431
22430
|
}
|
|
22432
|
-
function
|
|
22431
|
+
function h1(i, h, b = !1) {
|
|
22433
22432
|
return it({
|
|
22434
22433
|
queryKey: ["wallets", "token-operations", i, h, b],
|
|
22435
22434
|
queryFn: async () => {
|
|
@@ -22494,7 +22493,7 @@ function l1(i, h, b = !1) {
|
|
|
22494
22493
|
}
|
|
22495
22494
|
});
|
|
22496
22495
|
}
|
|
22497
|
-
const
|
|
22496
|
+
const hp = {
|
|
22498
22497
|
[Oe.BTC]: "m/44'/0'/0'/0/0",
|
|
22499
22498
|
// Bitcoin (BIP44)
|
|
22500
22499
|
[Oe.ETH]: "m/44'/60'/0'/0/0",
|
|
@@ -22510,7 +22509,7 @@ const lp = {
|
|
|
22510
22509
|
[Oe.ATOM]: "m/44'/118'/0'/0/0"
|
|
22511
22510
|
// Cosmos (BIP44)
|
|
22512
22511
|
};
|
|
22513
|
-
function
|
|
22512
|
+
function l1(i, h) {
|
|
22514
22513
|
const { data: b } = pc(i), y = ln(), s = Wt({
|
|
22515
22514
|
mutationKey: ["ecency-wallets", "create-wallet", i, h],
|
|
22516
22515
|
mutationFn: async () => {
|
|
@@ -22518,7 +22517,7 @@ function d1(i, h) {
|
|
|
22518
22517
|
throw new Error("[Ecency][Wallets] - No seed to create a wallet");
|
|
22519
22518
|
const p = vo(h), f = await (p == null ? void 0 : p.getDerivedPrivateKey({
|
|
22520
22519
|
mnemonic: b,
|
|
22521
|
-
hdPath:
|
|
22520
|
+
hdPath: hp[h]
|
|
22522
22521
|
}));
|
|
22523
22522
|
await yc(1e3);
|
|
22524
22523
|
const l = await (p == null ? void 0 : p.getNewAddress({
|
|
@@ -22541,20 +22540,20 @@ function d1(i, h) {
|
|
|
22541
22540
|
)
|
|
22542
22541
|
);
|
|
22543
22542
|
}
|
|
22544
|
-
}), a =
|
|
22543
|
+
}), a = S0(() => {
|
|
22545
22544
|
}, []);
|
|
22546
22545
|
return {
|
|
22547
22546
|
createWallet: s,
|
|
22548
22547
|
importWallet: a
|
|
22549
22548
|
};
|
|
22550
22549
|
}
|
|
22551
|
-
function
|
|
22550
|
+
function lp(i) {
|
|
22552
22551
|
const { data: h } = Yt({
|
|
22553
22552
|
queryKey: ["ecency-wallets", "wallets", i]
|
|
22554
|
-
}), { data: b } =
|
|
22553
|
+
}), { data: b } = Cd(i);
|
|
22555
22554
|
return Wt({
|
|
22556
22555
|
mutationKey: ["ecency-wallets", "create-account-with-wallets", i],
|
|
22557
|
-
mutationFn: ({ currency: y, address: s }) => fetch(
|
|
22556
|
+
mutationFn: ({ currency: y, address: s }) => fetch($e.privateApiHost + "/private-api/wallets-add", {
|
|
22558
22557
|
method: "POST",
|
|
22559
22558
|
headers: {
|
|
22560
22559
|
"Content-Type": "application/json"
|
|
@@ -22584,7 +22583,7 @@ function c0() {
|
|
|
22584
22583
|
return Wt({
|
|
22585
22584
|
mutationKey: ["ecency-wallets", "check-wallet-existence"],
|
|
22586
22585
|
mutationFn: async ({ address: i, currency: h }) => (await (await fetch(
|
|
22587
|
-
|
|
22586
|
+
$e.privateApiHost + "/private-api/wallets-exist",
|
|
22588
22587
|
{
|
|
22589
22588
|
method: "POST",
|
|
22590
22589
|
headers: {
|
|
@@ -22598,11 +22597,11 @@ function c0() {
|
|
|
22598
22597
|
)).json()).length === 0
|
|
22599
22598
|
});
|
|
22600
22599
|
}
|
|
22601
|
-
const
|
|
22600
|
+
const d1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22602
22601
|
__proto__: null,
|
|
22603
22602
|
useCheckWalletExistence: c0,
|
|
22604
|
-
useCreateAccountWithWallets:
|
|
22605
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
22603
|
+
useCreateAccountWithWallets: lp
|
|
22604
|
+
}, Symbol.toStringTag, { value: "Module" })), dp = {
|
|
22606
22605
|
[Oe.BTC]: ["m/84'/0'/0'/0/0"],
|
|
22607
22606
|
[Oe.ETH]: ["m/84'/60'/0'/0/0"],
|
|
22608
22607
|
// its not working for Trust, Exodus, todo: check others below
|
|
@@ -22613,8 +22612,8 @@ const p1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22613
22612
|
// Disabled
|
|
22614
22613
|
[Oe.ATOM]: ["m/84'/118'/0'/0'/0"]
|
|
22615
22614
|
};
|
|
22616
|
-
async function
|
|
22617
|
-
for (const y of
|
|
22615
|
+
async function pp(i, h, b) {
|
|
22616
|
+
for (const y of dp[b] || [])
|
|
22618
22617
|
try {
|
|
22619
22618
|
const s = await h.getDerivedPrivateKey({
|
|
22620
22619
|
mnemonic: i,
|
|
@@ -22629,7 +22628,7 @@ async function bp(i, h, b) {
|
|
|
22629
22628
|
}
|
|
22630
22629
|
return [];
|
|
22631
22630
|
}
|
|
22632
|
-
function
|
|
22631
|
+
function p1(i, h) {
|
|
22633
22632
|
const b = ln(), { mutateAsync: y } = c0();
|
|
22634
22633
|
return Wt({
|
|
22635
22634
|
mutationKey: ["ecency-wallets", "import-wallet", i, h],
|
|
@@ -22639,7 +22638,7 @@ function b1(i, h) {
|
|
|
22639
22638
|
throw new Error("Cannot find token for this currency");
|
|
22640
22639
|
const p = s.split(" ").length === 12;
|
|
22641
22640
|
let f, l = s;
|
|
22642
|
-
if (p ? [l, f] = await
|
|
22641
|
+
if (p ? [l, f] = await pp(
|
|
22643
22642
|
s,
|
|
22644
22643
|
a,
|
|
22645
22644
|
h
|
|
@@ -22690,72 +22689,76 @@ function cc(i, h = !1) {
|
|
|
22690
22689
|
)
|
|
22691
22690
|
) : {};
|
|
22692
22691
|
}
|
|
22693
|
-
function
|
|
22694
|
-
const
|
|
22692
|
+
function b1(i, h) {
|
|
22693
|
+
const b = ln(), { data: y } = Yt(_t(i)), { mutateAsync: s } = d0(i);
|
|
22695
22694
|
return Wt({
|
|
22696
|
-
mutationKey: ["ecency-wallets", "save-wallet-to-metadata",
|
|
22697
|
-
mutationFn: async (
|
|
22698
|
-
var
|
|
22699
|
-
if (!
|
|
22695
|
+
mutationKey: ["ecency-wallets", "save-wallet-to-metadata", y],
|
|
22696
|
+
mutationFn: async (a) => {
|
|
22697
|
+
var e;
|
|
22698
|
+
if (!y)
|
|
22700
22699
|
throw new Error("[SDK][Wallets] – no account data to save wallets");
|
|
22701
|
-
const
|
|
22702
|
-
(
|
|
22703
|
-
),
|
|
22704
|
-
symbol:
|
|
22705
|
-
type:
|
|
22706
|
-
meta:
|
|
22707
|
-
})) ?? [],
|
|
22708
|
-
({ type:
|
|
22709
|
-
),
|
|
22710
|
-
|
|
22711
|
-
$t.mergeDeep(
|
|
22700
|
+
const p = cc(
|
|
22701
|
+
(e = y.profile) == null ? void 0 : e.tokens
|
|
22702
|
+
), f = a.map(({ currency: t, type: o, privateKey: u, username: d, ...m }) => ({
|
|
22703
|
+
symbol: t,
|
|
22704
|
+
type: o,
|
|
22705
|
+
meta: m
|
|
22706
|
+
})) ?? [], l = cc(f, !0), n = f.filter(
|
|
22707
|
+
({ type: t }) => t !== "CHAIN"
|
|
22708
|
+
), r = $t.pipe(
|
|
22709
|
+
p,
|
|
22710
|
+
$t.mergeDeep(l),
|
|
22712
22711
|
$t.values()
|
|
22713
22712
|
);
|
|
22714
|
-
return
|
|
22713
|
+
return s({
|
|
22715
22714
|
tokens: [
|
|
22716
|
-
...
|
|
22717
|
-
...
|
|
22715
|
+
...n,
|
|
22716
|
+
...r
|
|
22718
22717
|
]
|
|
22719
22718
|
});
|
|
22720
22719
|
},
|
|
22721
|
-
|
|
22722
|
-
|
|
22723
|
-
|
|
22720
|
+
onError: h == null ? void 0 : h.onError,
|
|
22721
|
+
onSuccess: (a, p, f) => {
|
|
22722
|
+
var l;
|
|
22723
|
+
(l = h == null ? void 0 : h.onSuccess) == null || l.call(h, a, p, f), b.invalidateQueries({
|
|
22724
|
+
queryKey: up(i).queryKey
|
|
22725
|
+
});
|
|
22726
|
+
}
|
|
22724
22727
|
});
|
|
22725
22728
|
}
|
|
22726
|
-
const
|
|
22729
|
+
const bp = {
|
|
22727
22730
|
HIVE: {
|
|
22728
22731
|
[ze.Transfer]: fc,
|
|
22729
22732
|
[ze.TransferToSavings]: sc,
|
|
22730
|
-
[ze.PowerUp]:
|
|
22733
|
+
[ze.PowerUp]: Vd
|
|
22731
22734
|
},
|
|
22732
22735
|
HBD: {
|
|
22733
22736
|
[ze.Transfer]: fc,
|
|
22734
22737
|
[ze.TransferToSavings]: sc
|
|
22735
22738
|
},
|
|
22736
22739
|
HP: {
|
|
22737
|
-
[ze.PowerDown]:
|
|
22738
|
-
[ze.Delegate]:
|
|
22739
|
-
[ze.WithdrawRoutes]:
|
|
22740
|
+
[ze.PowerDown]: $d,
|
|
22741
|
+
[ze.Delegate]: Hd,
|
|
22742
|
+
[ze.WithdrawRoutes]: Kd
|
|
22740
22743
|
},
|
|
22741
22744
|
POINTS: {
|
|
22742
|
-
[ze.Gift]:
|
|
22745
|
+
[ze.Gift]: fp
|
|
22743
22746
|
},
|
|
22744
22747
|
SPK: {
|
|
22745
|
-
[ze.Transfer]:
|
|
22748
|
+
[ze.Transfer]: Gd
|
|
22746
22749
|
},
|
|
22747
22750
|
LARYNX: {
|
|
22748
|
-
[ze.LockLiquidity]:
|
|
22749
|
-
[ze.PowerUp]:
|
|
22750
|
-
}
|
|
22751
|
-
},
|
|
22752
|
-
[ze.Transfer]:
|
|
22753
|
-
[ze.Stake]:
|
|
22754
|
-
[ze.Unstake]:
|
|
22755
|
-
[ze.Delegate]:
|
|
22756
|
-
[ze.Undelegate]:
|
|
22751
|
+
[ze.LockLiquidity]: Yd,
|
|
22752
|
+
[ze.PowerUp]: Wd
|
|
22753
|
+
}
|
|
22754
|
+
}, yp = {
|
|
22755
|
+
[ze.Transfer]: ap,
|
|
22756
|
+
[ze.Stake]: np,
|
|
22757
|
+
[ze.Unstake]: ip,
|
|
22758
|
+
[ze.Delegate]: tp,
|
|
22759
|
+
[ze.Undelegate]: rp
|
|
22757
22760
|
};
|
|
22758
|
-
function
|
|
22761
|
+
function y1(i, h, b) {
|
|
22759
22762
|
const { mutateAsync: y } = hc.useRecordActivity(
|
|
22760
22763
|
i,
|
|
22761
22764
|
b
|
|
@@ -22763,7 +22766,7 @@ function g1(i, h, b) {
|
|
|
22763
22766
|
return Wt({
|
|
22764
22767
|
mutationKey: ["ecency-wallets", h, b],
|
|
22765
22768
|
mutationFn: async (s) => {
|
|
22766
|
-
const a =
|
|
22769
|
+
const a = bp[h][b];
|
|
22767
22770
|
if (a)
|
|
22768
22771
|
return a(s);
|
|
22769
22772
|
const p = ko(i);
|
|
@@ -22772,7 +22775,7 @@ function g1(i, h, b) {
|
|
|
22772
22775
|
p.queryKey
|
|
22773
22776
|
);
|
|
22774
22777
|
if (f != null && f.some((l) => l.symbol === h)) {
|
|
22775
|
-
const l =
|
|
22778
|
+
const l = yp[b];
|
|
22776
22779
|
if (l)
|
|
22777
22780
|
return l({ ...s, asset: h });
|
|
22778
22781
|
}
|
|
@@ -22780,7 +22783,7 @@ function g1(i, h, b) {
|
|
|
22780
22783
|
},
|
|
22781
22784
|
onSuccess: () => {
|
|
22782
22785
|
y();
|
|
22783
|
-
const s =
|
|
22786
|
+
const s = cp(i, h, {
|
|
22784
22787
|
refetch: !0
|
|
22785
22788
|
});
|
|
22786
22789
|
setTimeout(
|
|
@@ -22796,89 +22799,89 @@ export {
|
|
|
22796
22799
|
ze as AssetOperation,
|
|
22797
22800
|
ut as EcencyWalletBasicTokens,
|
|
22798
22801
|
Oe as EcencyWalletCurrency,
|
|
22799
|
-
|
|
22802
|
+
d1 as EcencyWalletsPrivateApi,
|
|
22800
22803
|
f0 as NaiMap,
|
|
22801
|
-
|
|
22804
|
+
sp as PointTransactionType,
|
|
22802
22805
|
o0 as Symbol,
|
|
22803
|
-
|
|
22804
|
-
|
|
22805
|
-
|
|
22806
|
-
|
|
22807
|
-
|
|
22808
|
-
|
|
22809
|
-
|
|
22810
|
-
|
|
22811
|
-
|
|
22812
|
-
|
|
22806
|
+
Jp as buildAptTx,
|
|
22807
|
+
Wp as buildAtomTx,
|
|
22808
|
+
$p as buildEthTx,
|
|
22809
|
+
Qp as buildExternalTx,
|
|
22810
|
+
kd as buildPsbt,
|
|
22811
|
+
Kp as buildSolTx,
|
|
22812
|
+
Yp as buildTonTx,
|
|
22813
|
+
Gp as buildTronTx,
|
|
22814
|
+
Vp as decryptMemoWithAccounts,
|
|
22815
|
+
qd as decryptMemoWithKeys,
|
|
22813
22816
|
yc as delay,
|
|
22814
|
-
|
|
22815
|
-
|
|
22817
|
+
tp as delegateEngineToken,
|
|
22818
|
+
Hd as delegateHive,
|
|
22816
22819
|
Vr as deriveHiveKey,
|
|
22817
22820
|
gc as deriveHiveKeys,
|
|
22818
22821
|
Hr as deriveHiveMasterPasswordKey,
|
|
22819
|
-
|
|
22820
|
-
|
|
22821
|
-
|
|
22822
|
-
|
|
22823
|
-
|
|
22824
|
-
|
|
22825
|
-
|
|
22826
|
-
|
|
22827
|
-
|
|
22822
|
+
M0 as deriveHiveMasterPasswordKeys,
|
|
22823
|
+
P0 as detectHiveKeyDerivation,
|
|
22824
|
+
zp as encryptMemoWithAccounts,
|
|
22825
|
+
jp as encryptMemoWithKeys,
|
|
22826
|
+
cp as getAccountWalletAssetInfoQueryOptions,
|
|
22827
|
+
up as getAccountWalletListQueryOptions,
|
|
22828
|
+
c1 as getAllTokensListQueryOptions,
|
|
22829
|
+
zd as getHbdAssetGeneralInfoQueryOptions,
|
|
22830
|
+
e1 as getHbdAssetTransactionsQueryOptions,
|
|
22828
22831
|
Ut as getHiveAssetGeneralInfoQueryOptions,
|
|
22829
|
-
|
|
22832
|
+
t1 as getHiveAssetMetricQueryOptions,
|
|
22830
22833
|
u0 as getHiveAssetTransactionsQueryOptions,
|
|
22831
|
-
|
|
22832
|
-
|
|
22833
|
-
|
|
22834
|
+
r1 as getHiveAssetWithdrawalRoutesQueryOptions,
|
|
22835
|
+
ep as getHiveEngineTokenGeneralInfoQueryOptions,
|
|
22836
|
+
o1 as getHiveEngineTokenTransactionsQueryOptions,
|
|
22834
22837
|
ko as getHiveEngineTokensBalancesQueryOptions,
|
|
22835
|
-
|
|
22838
|
+
Xd as getHiveEngineTokensMarketQueryOptions,
|
|
22836
22839
|
cn as getHiveEngineTokensMetadataQueryOptions,
|
|
22837
|
-
|
|
22840
|
+
f1 as getHiveEngineTokensMetricsQueryOptions,
|
|
22838
22841
|
s0 as getHivePowerAssetGeneralInfoQueryOptions,
|
|
22839
|
-
|
|
22840
|
-
|
|
22841
|
-
|
|
22842
|
-
|
|
22843
|
-
|
|
22844
|
-
|
|
22845
|
-
|
|
22842
|
+
Xp as getHivePowerAssetTransactionsQueryOptions,
|
|
22843
|
+
n1 as getHivePowerDelegatesInfiniteQueryOptions,
|
|
22844
|
+
i1 as getHivePowerDelegatingsQueryOptions,
|
|
22845
|
+
Jd as getLarynxAssetGeneralInfoQueryOptions,
|
|
22846
|
+
Zd as getLarynxPowerAssetGeneralInfoQueryOptions,
|
|
22847
|
+
op as getPointsAssetGeneralInfoQueryOptions,
|
|
22848
|
+
s1 as getPointsAssetTransactionsQueryOptions,
|
|
22846
22849
|
yo as getPointsQueryOptions,
|
|
22847
|
-
|
|
22850
|
+
Qd as getSpkAssetGeneralInfoQueryOptions,
|
|
22848
22851
|
cr as getSpkMarketsQueryOptions,
|
|
22849
|
-
|
|
22852
|
+
h1 as getTokenOperationsQueryOptions,
|
|
22850
22853
|
vo as getWallet,
|
|
22851
|
-
|
|
22852
|
-
|
|
22853
|
-
|
|
22854
|
+
Zp as isEmptyDate,
|
|
22855
|
+
Yd as lockLarynx,
|
|
22856
|
+
qp as mnemonicToSeedBip39,
|
|
22854
22857
|
et as parseAsset,
|
|
22855
|
-
|
|
22856
|
-
|
|
22857
|
-
|
|
22858
|
-
|
|
22859
|
-
|
|
22860
|
-
|
|
22861
|
-
|
|
22862
|
-
|
|
22863
|
-
|
|
22864
|
-
|
|
22865
|
-
|
|
22858
|
+
$d as powerDownHive,
|
|
22859
|
+
Vd as powerUpHive,
|
|
22860
|
+
Wd as powerUpLarynx,
|
|
22861
|
+
Ud as rewardSpk,
|
|
22862
|
+
kp as signDigest,
|
|
22863
|
+
Ld as signExternalTx,
|
|
22864
|
+
Hp as signExternalTxAndBroadcast,
|
|
22865
|
+
Fd as signTx,
|
|
22866
|
+
Up as signTxAndBroadcast,
|
|
22867
|
+
np as stakeEngineToken,
|
|
22868
|
+
ap as transferEngineToken,
|
|
22866
22869
|
fc as transferHive,
|
|
22867
|
-
|
|
22868
|
-
|
|
22870
|
+
fp as transferPoint,
|
|
22871
|
+
Gd as transferSpk,
|
|
22869
22872
|
sc as transferToSavingsHive,
|
|
22870
|
-
|
|
22871
|
-
|
|
22872
|
-
|
|
22873
|
-
|
|
22874
|
-
|
|
22875
|
-
|
|
22876
|
-
|
|
22877
|
-
|
|
22878
|
-
|
|
22873
|
+
rp as undelegateEngineToken,
|
|
22874
|
+
ip as unstakeEngineToken,
|
|
22875
|
+
u1 as useClaimPoints,
|
|
22876
|
+
a1 as useClaimRewards,
|
|
22877
|
+
Np as useCoinGeckoPriceQuery,
|
|
22878
|
+
Dp as useGetExternalWalletBalanceQuery,
|
|
22879
|
+
Cd as useHiveKeysQuery,
|
|
22880
|
+
p1 as useImportWallet,
|
|
22881
|
+
b1 as useSaveWalletInformationToMetadata,
|
|
22879
22882
|
pc as useSeedPhrase,
|
|
22880
|
-
|
|
22881
|
-
|
|
22883
|
+
l1 as useWalletCreate,
|
|
22884
|
+
y1 as useWalletOperation,
|
|
22882
22885
|
ho as vestsToHp,
|
|
22883
|
-
|
|
22886
|
+
Kd as withdrawVestingRouteHive
|
|
22884
22887
|
};
|