hd-wallet-ui 2.2.1 → 2.2.2
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/README.md +7 -4
- package/dist/browser/sdn-wallet-public-client.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/types.d.ts +1 -1
- package/dist/wallet-origin/index.js +1039 -1037
- package/dist/wallet-origin-host/assets/{wallet-origin.a76de7ca94a41a4800d35df29d7b115206c3da6ff3a7e828309aa34adc88b5c3.css → wallet-origin.154fa2fd7f7dc1bf2051e35c1490915763fcaa6f05d88a3d32f1973ef0da5844.css} +1 -1
- package/dist/wallet-origin-host/assets/{wallet-origin.d0119af9e661f9c0a7fb9f00725255d398037b15e691c02c43f357c15ecd7fab.js → wallet-origin.c31bc2645e955c72dea686ed92e596c7d7348e80d1cd56d965d833a4bb7374b9.js} +488 -486
- package/dist/wallet-origin-host/assets/{wallet-origin.8c6002e69b67d46d4d1d8cd987671c7954e8890eb23f5ef2c06c76a0af3583ef.wasm → wallet-origin.c66954bde582bdefa0bd25d09628b36ddf90f917f63af56c52d1168ed995962d.wasm} +0 -0
- package/dist/wallet-origin-host/index.html +2 -2
- package/dist/wallet-origin-host/integrity.json +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const Il = new URL("./wallet-origin.
|
|
1
|
+
const Il = new URL("./wallet-origin.c66954bde582bdefa0bd25d09628b36ddf90f917f63af56c52d1168ed995962d.wasm", import.meta.url).href, at = {
|
|
2
2
|
SECP256K1: 0,
|
|
3
3
|
ED25519: 1,
|
|
4
4
|
P256: 2,
|
|
@@ -897,14 +897,14 @@ class ir {
|
|
|
897
897
|
return new Uint8Array(this.view.buffer, this.view.byteOffset, 132);
|
|
898
898
|
}
|
|
899
899
|
}
|
|
900
|
-
const Es = /[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/,
|
|
900
|
+
const Es = /[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/, kl = Object.freeze({
|
|
901
901
|
INVALID_ARGUMENT: 2,
|
|
902
902
|
NOT_SUPPORTED: 3,
|
|
903
903
|
OUT_OF_MEMORY: 4,
|
|
904
904
|
INVALID_PRIVATE_KEY: 400,
|
|
905
905
|
INVALID_PUBLIC_KEY: 401,
|
|
906
906
|
INVALID_SIGNATURE: 402
|
|
907
|
-
}), Fi = Object.getPrototypeOf(Uint8Array.prototype), bo = Object.getOwnPropertyDescriptor(Fi, "length").get, vo = Object.getOwnPropertyDescriptor(Fi, "buffer").get,
|
|
907
|
+
}), Fi = Object.getPrototypeOf(Uint8Array.prototype), bo = Object.getOwnPropertyDescriptor(Fi, "length").get, vo = Object.getOwnPropertyDescriptor(Fi, "buffer").get, Pl = Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "resizable")?.get, As = Object.getOwnPropertyDescriptor(ArrayBuffer.prototype, "detached")?.get, Rl = typeof SharedArrayBuffer == "function" ? Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype, "growable")?.get : void 0;
|
|
908
908
|
function mr(e) {
|
|
909
909
|
try {
|
|
910
910
|
return bo.call(e);
|
|
@@ -934,7 +934,7 @@ function Tl(e) {
|
|
|
934
934
|
}
|
|
935
935
|
function xl(e) {
|
|
936
936
|
const n = vo.call(e);
|
|
937
|
-
for (const t of [
|
|
937
|
+
for (const t of [Pl, Rl])
|
|
938
938
|
if (t)
|
|
939
939
|
try {
|
|
940
940
|
if (t.call(n)) return !1;
|
|
@@ -956,7 +956,7 @@ function Eo(e) {
|
|
|
956
956
|
OUT_OF_MEMORY: s,
|
|
957
957
|
INVALID_PRIVATE_KEY: a,
|
|
958
958
|
INVALID_PUBLIC_KEY: l
|
|
959
|
-
} =
|
|
959
|
+
} = kl;
|
|
960
960
|
function b(u, v) {
|
|
961
961
|
throw e(u, v);
|
|
962
962
|
}
|
|
@@ -969,7 +969,7 @@ function Eo(e) {
|
|
|
969
969
|
function S(u, v = "data", m = n) {
|
|
970
970
|
return F(u, v, m), new Uint8Array(u);
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function P(u, v = "data", m = n) {
|
|
973
973
|
return F(u, v, m), mr(u);
|
|
974
974
|
}
|
|
975
975
|
function T(u, v) {
|
|
@@ -1045,7 +1045,7 @@ function Eo(e) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
return Object.freeze({
|
|
1047
1047
|
isBytes: I,
|
|
1048
|
-
byteLength:
|
|
1048
|
+
byteLength: P,
|
|
1049
1049
|
snapshot: S,
|
|
1050
1050
|
hasLength: T,
|
|
1051
1051
|
bytes: F,
|
|
@@ -1135,16 +1135,16 @@ class Fl {
|
|
|
1135
1135
|
if (!S)
|
|
1136
1136
|
throw new dt(Ue.OUT_OF_MEMORY);
|
|
1137
1137
|
try {
|
|
1138
|
-
const
|
|
1138
|
+
const P = $r(l._hd_aligned_derive_batch(
|
|
1139
1139
|
b,
|
|
1140
1140
|
S,
|
|
1141
1141
|
s
|
|
1142
1142
|
), s), T = [], F = Hr.fromMemory(
|
|
1143
1143
|
l.wasmMemory,
|
|
1144
1144
|
S,
|
|
1145
|
-
|
|
1145
|
+
P
|
|
1146
1146
|
);
|
|
1147
|
-
for (let D = 0; D <
|
|
1147
|
+
for (let D = 0; D < P; D++) {
|
|
1148
1148
|
const j = F.at(D);
|
|
1149
1149
|
T.push({
|
|
1150
1150
|
index: j.index,
|
|
@@ -1176,8 +1176,8 @@ class Fl {
|
|
|
1176
1176
|
const b = Yt(l, vs);
|
|
1177
1177
|
let E;
|
|
1178
1178
|
try {
|
|
1179
|
-
const
|
|
1180
|
-
this.#a(
|
|
1179
|
+
const P = ir.fromMemory(l.wasmMemory, b);
|
|
1180
|
+
this.#a(P, n), P.start_index = t >>> 0, P.batch_size = s >>> 0, P.hardened = a ? 1 : 0, E = l._hd_aligned_stream_create(b);
|
|
1181
1181
|
} finally {
|
|
1182
1182
|
l._hd_secure_wipe(b, vs), l._hd_dealloc(b);
|
|
1183
1183
|
}
|
|
@@ -1188,19 +1188,19 @@ class Fl {
|
|
|
1188
1188
|
throw l._hd_aligned_stream_destroy(E), new dt(Ue.OUT_OF_MEMORY);
|
|
1189
1189
|
try {
|
|
1190
1190
|
for (; ; ) {
|
|
1191
|
-
const
|
|
1191
|
+
const P = $r(l._hd_aligned_stream_next(
|
|
1192
1192
|
E,
|
|
1193
1193
|
S,
|
|
1194
1194
|
s
|
|
1195
1195
|
), s);
|
|
1196
|
-
if (
|
|
1196
|
+
if (P === 0)
|
|
1197
1197
|
break;
|
|
1198
1198
|
const T = [], F = Hr.fromMemory(
|
|
1199
1199
|
l.wasmMemory,
|
|
1200
1200
|
S,
|
|
1201
|
-
|
|
1201
|
+
P
|
|
1202
1202
|
);
|
|
1203
|
-
for (let D = 0; D <
|
|
1203
|
+
for (let D = 0; D < P; D++) {
|
|
1204
1204
|
const j = F.at(D);
|
|
1205
1205
|
T.push({
|
|
1206
1206
|
index: j.index,
|
|
@@ -1278,9 +1278,9 @@ class Ml {
|
|
|
1278
1278
|
try {
|
|
1279
1279
|
const S = Qn.fromMemory(a.wasmMemory, I);
|
|
1280
1280
|
S.private_key_data.set(n), S.curve = s, S.count = E;
|
|
1281
|
-
const
|
|
1281
|
+
const P = Yt(a, E * ml);
|
|
1282
1282
|
try {
|
|
1283
|
-
const T = xi.fromMemory(a.wasmMemory,
|
|
1283
|
+
const T = xi.fromMemory(a.wasmMemory, P, E);
|
|
1284
1284
|
for (let D = 0; D < E; D++) {
|
|
1285
1285
|
const j = T.at(D);
|
|
1286
1286
|
j.index = D, j.hash_data.set(b[D]);
|
|
@@ -1289,7 +1289,7 @@ class Ml {
|
|
|
1289
1289
|
try {
|
|
1290
1290
|
const D = $r(a._hd_aligned_sign_batch(
|
|
1291
1291
|
I,
|
|
1292
|
-
|
|
1292
|
+
P,
|
|
1293
1293
|
E,
|
|
1294
1294
|
F,
|
|
1295
1295
|
E
|
|
@@ -1312,7 +1312,7 @@ class Ml {
|
|
|
1312
1312
|
a._hd_dealloc(F);
|
|
1313
1313
|
}
|
|
1314
1314
|
} finally {
|
|
1315
|
-
a._hd_dealloc(
|
|
1315
|
+
a._hd_dealloc(P);
|
|
1316
1316
|
}
|
|
1317
1317
|
} finally {
|
|
1318
1318
|
a._hd_secure_wipe(I, bs), a._hd_dealloc(I);
|
|
@@ -1343,7 +1343,7 @@ class Ml {
|
|
|
1343
1343
|
const I = E.length;
|
|
1344
1344
|
let S = null;
|
|
1345
1345
|
s === at.ED25519 ? b.length === 32 ? (S = new Uint8Array(33), S.set(b, 1)) : b.length === 33 && (S = b) : s === at.SECP256K1 || s === at.P256 ? Je.isPublicKey(a, b, s, [33]) && (S = b) : S = new Uint8Array(33);
|
|
1346
|
-
const
|
|
1346
|
+
const P = E.map((F) => S !== null && F.hash.length === 32 && F.signature.length === 64), T = Yt(a, wl);
|
|
1347
1347
|
try {
|
|
1348
1348
|
const F = tr.fromMemory(a.wasmMemory, T);
|
|
1349
1349
|
S !== null && F.public_key_data.set(S), F.curve = s, F.count = I;
|
|
@@ -1352,7 +1352,7 @@ class Ml {
|
|
|
1352
1352
|
const j = Ci.fromMemory(a.wasmMemory, D, I);
|
|
1353
1353
|
for (let N = 0; N < I; N++) {
|
|
1354
1354
|
const x = j.at(N);
|
|
1355
|
-
x.index = N,
|
|
1355
|
+
x.index = N, P[N] && (x.hash_data.set(E[N].hash), x.signature_data.set(E[N].signature));
|
|
1356
1356
|
}
|
|
1357
1357
|
const Y = Yt(a, I * Ll);
|
|
1358
1358
|
try {
|
|
@@ -1369,7 +1369,7 @@ class Ml {
|
|
|
1369
1369
|
);
|
|
1370
1370
|
for (let V = 0; V < N; V++) {
|
|
1371
1371
|
const $ = U.at(V);
|
|
1372
|
-
if (!
|
|
1372
|
+
if (!P[V]) {
|
|
1373
1373
|
x.push({
|
|
1374
1374
|
index: V,
|
|
1375
1375
|
valid: !1,
|
|
@@ -1944,7 +1944,7 @@ function Yl(e, n, t) {
|
|
|
1944
1944
|
"encrypt_fields requires senderPrivateKey when using secp256k1 field encryption."
|
|
1945
1945
|
);
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function ko(e, n) {
|
|
1948
1948
|
return zt(e?.aad, "aad") ?? zt(n?.aad, "aad") ?? new Uint8Array();
|
|
1949
1949
|
}
|
|
1950
1950
|
function Gl(e, n, t) {
|
|
@@ -1956,7 +1956,7 @@ function Gl(e, n, t) {
|
|
|
1956
1956
|
const b = wo(n, l), E = st(
|
|
1957
1957
|
n.recipientPublicKey ?? l.recipientPublicKey,
|
|
1958
1958
|
"recipientPublicKey"
|
|
1959
|
-
), I = Yl(t, n, b), S = zt(l.senderPublicKey, "senderPublicKey") ?? ql(e, b, I),
|
|
1959
|
+
), I = Yl(t, n, b), S = zt(l.senderPublicKey, "senderPublicKey") ?? ql(e, b, I), P = zt(l.salt, "salt") ?? gi(t, 32, {
|
|
1960
1960
|
methodId: "encrypt_fields",
|
|
1961
1961
|
fieldPath: l.fieldPath,
|
|
1962
1962
|
purpose: "salt"
|
|
@@ -1964,7 +1964,7 @@ function Gl(e, n, t) {
|
|
|
1964
1964
|
methodId: "encrypt_fields",
|
|
1965
1965
|
fieldPath: l.fieldPath,
|
|
1966
1966
|
purpose: "iv"
|
|
1967
|
-
}), F = st(l.plaintext, "plaintext"), D =
|
|
1967
|
+
}), F = st(l.plaintext, "plaintext"), D = ko(l, n), j = Oo(e, b, I, E), Y = Io.encode(`field:${l.fieldPath}`), N = e.utils.hkdf(j, P, Y, 32), { ciphertext: x, tag: U } = e.utils.aesGcm.encrypt(
|
|
1968
1968
|
N,
|
|
1969
1969
|
F,
|
|
1970
1970
|
T,
|
|
@@ -1974,7 +1974,7 @@ function Gl(e, n, t) {
|
|
|
1974
1974
|
fieldPath: String(l.fieldPath ?? ""),
|
|
1975
1975
|
curve: b,
|
|
1976
1976
|
algorithm: Lo(b),
|
|
1977
|
-
salt:
|
|
1977
|
+
salt: P,
|
|
1978
1978
|
iv: T,
|
|
1979
1979
|
tag: U,
|
|
1980
1980
|
ciphertext: x,
|
|
@@ -1993,7 +1993,7 @@ function Xl(e, n) {
|
|
|
1993
1993
|
"recipientPrivateKey"
|
|
1994
1994
|
), a = [];
|
|
1995
1995
|
for (const l of t) {
|
|
1996
|
-
const b = wo(n, l), E = st(l.senderPublicKey, "senderPublicKey"), I = st(l.salt, "salt"), S = st(l.iv, "iv"),
|
|
1996
|
+
const b = wo(n, l), E = st(l.senderPublicKey, "senderPublicKey"), I = st(l.salt, "salt"), S = st(l.iv, "iv"), P = st(l.tag, "tag"), T = st(l.ciphertext, "ciphertext"), F = ko(l, n), D = Oo(e, b, s, E), j = Io.encode(`field:${l.fieldPath}`), Y = e.utils.hkdf(D, I, j, 32), N = e.utils.aesGcm.decrypt(Y, T, P, S, F);
|
|
1997
1997
|
a.push({
|
|
1998
1998
|
fieldPath: String(l.fieldPath ?? ""),
|
|
1999
1999
|
curve: b,
|
|
@@ -2020,7 +2020,7 @@ function wr(e) {
|
|
|
2020
2020
|
yielded: !1
|
|
2021
2021
|
};
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2023
|
+
function Po({ wallet: e, wasm: n, randomBytes: t = null, walletSign: s = null }) {
|
|
2024
2024
|
function a(l, b = {}) {
|
|
2025
2025
|
const E = Kl(b), I = E.payload ?? {};
|
|
2026
2026
|
switch (l) {
|
|
@@ -2078,7 +2078,7 @@ function ko({ wallet: e, wasm: n, randomBytes: t = null, walletSign: s = null })
|
|
|
2078
2078
|
return Jl(n);
|
|
2079
2079
|
},
|
|
2080
2080
|
withCapabilities(l = {}) {
|
|
2081
|
-
return
|
|
2081
|
+
return Po({
|
|
2082
2082
|
wallet: e,
|
|
2083
2083
|
wasm: n,
|
|
2084
2084
|
randomBytes: l.randomBytes !== void 0 ? l.randomBytes : t,
|
|
@@ -2132,10 +2132,10 @@ const ft = 131072, Ro = 131072, Ss = 4096, Or = 256, ws = 4096, Ql = 1024, Zl =
|
|
|
2132
2132
|
"_hd_sdn_transfer_open",
|
|
2133
2133
|
"_hd_sdn_open_sealed_fields",
|
|
2134
2134
|
"_hd_sdn_destroy_identity"
|
|
2135
|
-
]), Lr = 32, si = 1024,
|
|
2135
|
+
]), Lr = 32, si = 1024, ks = Object.freeze({
|
|
2136
2136
|
"flatbuffers-field-open-v1": 6,
|
|
2137
2137
|
"flatsql-key-unwrap-v1": 7
|
|
2138
|
-
}), rd = 16, id = 4096, sd = 12288, od = 256,
|
|
2138
|
+
}), rd = 16, id = 4096, sd = 12288, od = 256, Ps = /* @__PURE__ */ new WeakMap(), ad = new TextEncoder(), No = new TextDecoder("utf-8", { fatal: !0 }), Sn = Uint8Array, To = Object.getPrototypeOf(Sn.prototype), xo = Object.getOwnPropertyDescriptor(
|
|
2139
2139
|
To,
|
|
2140
2140
|
Symbol.toStringTag
|
|
2141
2141
|
).get, cd = Object.getOwnPropertyDescriptor(
|
|
@@ -2222,7 +2222,7 @@ function lr(e) {
|
|
|
2222
2222
|
}
|
|
2223
2223
|
return n;
|
|
2224
2224
|
}
|
|
2225
|
-
function
|
|
2225
|
+
function kr(e) {
|
|
2226
2226
|
let n = !1, t = !1;
|
|
2227
2227
|
return () => (n || (n = !0, t = lr(e())), t);
|
|
2228
2228
|
}
|
|
@@ -2437,9 +2437,9 @@ function yn(e) {
|
|
|
2437
2437
|
te("OUT_OF_MEMORY");
|
|
2438
2438
|
}
|
|
2439
2439
|
(!Number.isInteger(S) || S <= 0 || S > 4294967295) && te("OUT_OF_MEMORY"), n.push({ pointer: S, size: I, secret: l });
|
|
2440
|
-
let
|
|
2440
|
+
let P;
|
|
2441
2441
|
try {
|
|
2442
|
-
|
|
2442
|
+
P = e.HEAPU8, (!(P instanceof Uint8Array) || S + I > P.byteLength || S + I <= S) && te("OUT_OF_MEMORY"), P.fill(0, S, S + I), b !== null && b.length !== 0 && P.set(b, S);
|
|
2443
2443
|
} catch {
|
|
2444
2444
|
te("OUT_OF_MEMORY");
|
|
2445
2445
|
}
|
|
@@ -2550,7 +2550,7 @@ function Fo(e, n = {}) {
|
|
|
2550
2550
|
!_ && ne !== 0n && l(ne), H.cleanup();
|
|
2551
2551
|
}
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2553
|
+
function P(N, x, U, V, $) {
|
|
2554
2554
|
const X = yn(e);
|
|
2555
2555
|
try {
|
|
2556
2556
|
const K = X.allocate(U), H = X.allocate(4), ne = X.allocate(ft);
|
|
@@ -2622,7 +2622,7 @@ function Fo(e, n = {}) {
|
|
|
2622
2622
|
let V, $;
|
|
2623
2623
|
try {
|
|
2624
2624
|
V = Fo(U), $ = await N(V);
|
|
2625
|
-
const X = T(), K =
|
|
2625
|
+
const X = T(), K = Ps.get(V)($.handle, X), H = S(
|
|
2626
2626
|
"_hd_sdn_transfer_open",
|
|
2627
2627
|
([ne]) => [ne, K.length],
|
|
2628
2628
|
[{ bytes: K }],
|
|
@@ -2648,7 +2648,7 @@ function Fo(e, n = {}) {
|
|
|
2648
2648
|
const j = {
|
|
2649
2649
|
async derivePasswordIdentity(N) {
|
|
2650
2650
|
let x, U;
|
|
2651
|
-
const V =
|
|
2651
|
+
const V = kr(() => [U, x]);
|
|
2652
2652
|
try {
|
|
2653
2653
|
Et(N) && (x = N.passwordUtf8), en(N, ["usernameUtf8", "passwordUtf8", "accountIndex"]);
|
|
2654
2654
|
const $ = ht(N.usernameUtf8, "INVALID_USERNAME");
|
|
@@ -2679,7 +2679,7 @@ function Fo(e, n = {}) {
|
|
|
2679
2679
|
},
|
|
2680
2680
|
async deriveLegacyPasswordIdentity(N) {
|
|
2681
2681
|
let x, U;
|
|
2682
|
-
const V =
|
|
2682
|
+
const V = kr(() => [U, x]);
|
|
2683
2683
|
try {
|
|
2684
2684
|
Et(N) && (x = N.passwordUtf8), en(N, ["usernameUtf8", "passwordUtf8", "accountIndex"]);
|
|
2685
2685
|
const $ = ht(N.usernameUtf8, "INVALID_USERNAME");
|
|
@@ -2706,7 +2706,7 @@ function Fo(e, n = {}) {
|
|
|
2706
2706
|
},
|
|
2707
2707
|
async importLegacyMnemonicIdentity(N) {
|
|
2708
2708
|
let x, U;
|
|
2709
|
-
const V =
|
|
2709
|
+
const V = kr(() => [U, x]);
|
|
2710
2710
|
try {
|
|
2711
2711
|
Et(N) && (x = N.mnemonicUtf8), en(N, ["mnemonicUtf8", "accountIndex"]), U = pn(x, "INVALID_MNEMONIC"), U.length > Ql && te("INVALID_MNEMONIC");
|
|
2712
2712
|
const $ = oi(N.accountIndex);
|
|
@@ -2725,7 +2725,7 @@ function Fo(e, n = {}) {
|
|
|
2725
2725
|
},
|
|
2726
2726
|
importRememberedIdentity(N) {
|
|
2727
2727
|
let x, U;
|
|
2728
|
-
const V =
|
|
2728
|
+
const V = kr(() => [U, x]);
|
|
2729
2729
|
try {
|
|
2730
2730
|
Et(N) && (x = N.prfOutput), en(N, [
|
|
2731
2731
|
"ciphertextAndTag",
|
|
@@ -2771,7 +2771,7 @@ function Fo(e, n = {}) {
|
|
|
2771
2771
|
},
|
|
2772
2772
|
signSdnLoginV1(N, x) {
|
|
2773
2773
|
const U = I(N), V = ht(x);
|
|
2774
|
-
return V.length !== 32 && te("INVALID_REQUEST"),
|
|
2774
|
+
return V.length !== 32 && te("INVALID_REQUEST"), P(
|
|
2775
2775
|
"_hd_sdn_sign_login_v1",
|
|
2776
2776
|
U,
|
|
2777
2777
|
V,
|
|
@@ -2790,7 +2790,7 @@ function Fo(e, n = {}) {
|
|
|
2790
2790
|
const V = I(N);
|
|
2791
2791
|
U !== "sdn-node-console-v2" && te("INVALID_REQUEST");
|
|
2792
2792
|
const $ = Fn(x);
|
|
2793
|
-
return
|
|
2793
|
+
return P(
|
|
2794
2794
|
"_hd_sdn_sign_login_v2",
|
|
2795
2795
|
V,
|
|
2796
2796
|
$,
|
|
@@ -2810,7 +2810,7 @@ function Fo(e, n = {}) {
|
|
|
2810
2810
|
const V = I(N);
|
|
2811
2811
|
U !== "spaceaware-publish-request-v1" && te("INVALID_REQUEST");
|
|
2812
2812
|
const $ = Fn(x);
|
|
2813
|
-
return
|
|
2813
|
+
return P(
|
|
2814
2814
|
"_hd_sdn_sign_publish_request",
|
|
2815
2815
|
V,
|
|
2816
2816
|
$,
|
|
@@ -2834,7 +2834,7 @@ function Fo(e, n = {}) {
|
|
|
2834
2834
|
const V = I(N);
|
|
2835
2835
|
U !== "spaceaware-module-delivery-key-v1" && te("INVALID_REQUEST");
|
|
2836
2836
|
const $ = Fn(x);
|
|
2837
|
-
return
|
|
2837
|
+
return P(
|
|
2838
2838
|
"_hd_sdn_sign_module_delivery_key",
|
|
2839
2839
|
V,
|
|
2840
2840
|
$,
|
|
@@ -2854,7 +2854,7 @@ function Fo(e, n = {}) {
|
|
|
2854
2854
|
const V = I(N);
|
|
2855
2855
|
U !== "asset-review-authority-activation-v1" && te("INVALID_REQUEST");
|
|
2856
2856
|
const $ = Fn(x);
|
|
2857
|
-
return
|
|
2857
|
+
return P(
|
|
2858
2858
|
"_hd_sdn_sign_asset_review_authority_activation",
|
|
2859
2859
|
V,
|
|
2860
2860
|
$,
|
|
@@ -2874,7 +2874,7 @@ function Fo(e, n = {}) {
|
|
|
2874
2874
|
const V = I(N);
|
|
2875
2875
|
U !== "asset-review-decision-v1" && te("INVALID_REQUEST");
|
|
2876
2876
|
const $ = Fn(x);
|
|
2877
|
-
return
|
|
2877
|
+
return P(
|
|
2878
2878
|
"_hd_sdn_sign_asset_review_decision",
|
|
2879
2879
|
V,
|
|
2880
2880
|
$,
|
|
@@ -2960,7 +2960,7 @@ function Fo(e, n = {}) {
|
|
|
2960
2960
|
* field whose context is bound to another site than the row's.
|
|
2961
2961
|
*/
|
|
2962
2962
|
openSealedFields(N, x, U) {
|
|
2963
|
-
const V = I(N), $ = Object.hasOwn(
|
|
2963
|
+
const V = I(N), $ = Object.hasOwn(ks, U) ? ks[U] : 0;
|
|
2964
2964
|
$ || te("INVALID_REQUEST"), en(x, ["fields", "replyPublic"]);
|
|
2965
2965
|
const X = ht(x.replyPublic);
|
|
2966
2966
|
(X.length !== 32 || !Array.isArray(x.fields) || x.fields.length < 1 || x.fields.length > rd) && te("INVALID_REQUEST");
|
|
@@ -3034,7 +3034,7 @@ function Fo(e, n = {}) {
|
|
|
3034
3034
|
}
|
|
3035
3035
|
}
|
|
3036
3036
|
}, Y = Object.freeze(j);
|
|
3037
|
-
return
|
|
3037
|
+
return Ps.set(Y, F), Y;
|
|
3038
3038
|
}
|
|
3039
3039
|
const Mo = /* @__PURE__ */ new WeakMap();
|
|
3040
3040
|
function vd(e) {
|
|
@@ -3114,7 +3114,7 @@ const oe = Object.freeze({
|
|
|
3114
3114
|
NOT_AVAILABLE_WASI: 3,
|
|
3115
3115
|
DISABLED_FIPS: 4,
|
|
3116
3116
|
NEEDS_CAPABILITY: 5
|
|
3117
|
-
}),
|
|
3117
|
+
}), Pt = Object.freeze({
|
|
3118
3118
|
P2PKH: 0,
|
|
3119
3119
|
P2SH: 1,
|
|
3120
3120
|
P2WPKH: 2,
|
|
@@ -3332,7 +3332,7 @@ function Ld(e, n) {
|
|
|
3332
3332
|
t += $o[n[s] & 31];
|
|
3333
3333
|
return t;
|
|
3334
3334
|
}
|
|
3335
|
-
function
|
|
3335
|
+
function kd(e) {
|
|
3336
3336
|
const n = e.lastIndexOf("1");
|
|
3337
3337
|
if (n <= 0)
|
|
3338
3338
|
throw new ce(W.INVALID_ARGUMENT, "Invalid bech32 string");
|
|
@@ -3345,7 +3345,7 @@ function Pd(e) {
|
|
|
3345
3345
|
}
|
|
3346
3346
|
return { hrp: t, data: a };
|
|
3347
3347
|
}
|
|
3348
|
-
const
|
|
3348
|
+
const Pd = Object.getPrototypeOf(Uint8Array.prototype).fill, ur = (e, n) => Object.getOwnPropertyDescriptor(e, n)?.get, Rd = ["buffer", "byteOffset", "byteLength"].map((e) => ur(Object.getPrototypeOf(Uint8Array.prototype), e)), Nd = ["buffer", "byteOffset", "byteLength"].map((e) => ur(DataView.prototype, e)), Td = ur(ArrayBuffer.prototype, "byteLength"), Cs = ur(ArrayBuffer.prototype, "detached"), xd = typeof SharedArrayBuffer == "function" ? ur(SharedArrayBuffer.prototype, "byteLength") : void 0;
|
|
3349
3349
|
function Dd(e) {
|
|
3350
3350
|
const n = (a) => {
|
|
3351
3351
|
try {
|
|
@@ -3410,14 +3410,14 @@ function bn(e, n, t = {}) {
|
|
|
3410
3410
|
if (!S) throw new ce(W.OUT_OF_MEMORY);
|
|
3411
3411
|
try {
|
|
3412
3412
|
e.setValue(l, I, "i32");
|
|
3413
|
-
const
|
|
3414
|
-
if (
|
|
3413
|
+
const P = n(S, l), T = Kr(e, l);
|
|
3414
|
+
if (P === 0)
|
|
3415
3415
|
return _e(e, S, T);
|
|
3416
|
-
if (Ko(
|
|
3416
|
+
if (Ko(P, I, T)) {
|
|
3417
3417
|
b = Math.max(T, I * 2);
|
|
3418
3418
|
continue;
|
|
3419
3419
|
}
|
|
3420
|
-
ae(
|
|
3420
|
+
ae(P);
|
|
3421
3421
|
} finally {
|
|
3422
3422
|
s && I > 0 && e._hd_secure_wipe(S, I), e._hd_dealloc(S);
|
|
3423
3423
|
}
|
|
@@ -3441,14 +3441,14 @@ function ai(e, n, t = {}) {
|
|
|
3441
3441
|
if (!S) throw new ce(W.OUT_OF_MEMORY);
|
|
3442
3442
|
try {
|
|
3443
3443
|
e.setValue(l, I, "i32");
|
|
3444
|
-
const
|
|
3445
|
-
if (
|
|
3444
|
+
const P = n(S, l), T = Kr(e, l);
|
|
3445
|
+
if (P === 0)
|
|
3446
3446
|
return xe(e, S);
|
|
3447
|
-
if (Ko(
|
|
3447
|
+
if (Ko(P, I, T)) {
|
|
3448
3448
|
b = Math.max(T, I * 2);
|
|
3449
3449
|
continue;
|
|
3450
3450
|
}
|
|
3451
|
-
ae(
|
|
3451
|
+
ae(P);
|
|
3452
3452
|
} finally {
|
|
3453
3453
|
s && I > 0 && e._hd_secure_wipe(S, I), e._hd_dealloc(S);
|
|
3454
3454
|
}
|
|
@@ -3819,7 +3819,7 @@ try {
|
|
|
3819
3819
|
}));
|
|
3820
3820
|
} catch {
|
|
3821
3821
|
}
|
|
3822
|
-
const
|
|
3822
|
+
const Pr = "2.2.2", Ms = Symbol.for("hd-wallet-wasm/realm-instances");
|
|
3823
3823
|
function Vd() {
|
|
3824
3824
|
const e = globalThis[Ms];
|
|
3825
3825
|
if (e && typeof e == "object") return e;
|
|
@@ -3833,9 +3833,9 @@ function Vd() {
|
|
|
3833
3833
|
}
|
|
3834
3834
|
function Hd() {
|
|
3835
3835
|
const e = Vd();
|
|
3836
|
-
let n = e[
|
|
3837
|
-
return n || (n = zo(), e[
|
|
3838
|
-
e[
|
|
3836
|
+
let n = e[Pr];
|
|
3837
|
+
return n || (n = zo(), e[Pr] = n, n.catch(() => {
|
|
3838
|
+
e[Pr] === n && delete e[Pr];
|
|
3839
3839
|
})), n;
|
|
3840
3840
|
}
|
|
3841
3841
|
function $d() {
|
|
@@ -3847,7 +3847,7 @@ async function zo() {
|
|
|
3847
3847
|
const t = new URL(Il, import.meta.url).href, s = await fetch(t, {
|
|
3848
3848
|
cache: "no-store",
|
|
3849
3849
|
credentials: "omit",
|
|
3850
|
-
integrity: "sha384-
|
|
3850
|
+
integrity: "sha384-Ye9P8M7aYycgWl+WVme4fnixH3055wvLQa9OY2+0FErpaUt+7oyq2smjl8kLiose",
|
|
3851
3851
|
mode: "same-origin",
|
|
3852
3852
|
redirect: "error",
|
|
3853
3853
|
referrerPolicy: "no-referrer"
|
|
@@ -3861,18 +3861,18 @@ async function zo() {
|
|
|
3861
3861
|
let E = 0;
|
|
3862
3862
|
try {
|
|
3863
3863
|
for (; ; ) {
|
|
3864
|
-
const { done:
|
|
3865
|
-
if (
|
|
3864
|
+
const { done: P, value: T } = await l.read();
|
|
3865
|
+
if (P) break;
|
|
3866
3866
|
if (!(T instanceof Uint8Array)) throw new Error("Wallet WASM response is invalid");
|
|
3867
3867
|
if (E += T.byteLength, E > 4 * 1024 * 1024) throw new Error("Wallet WASM response is too large");
|
|
3868
3868
|
b.push(T);
|
|
3869
3869
|
}
|
|
3870
|
-
} catch (
|
|
3870
|
+
} catch (P) {
|
|
3871
3871
|
try {
|
|
3872
3872
|
await l.cancel();
|
|
3873
3873
|
} catch {
|
|
3874
3874
|
}
|
|
3875
|
-
throw
|
|
3875
|
+
throw P;
|
|
3876
3876
|
} finally {
|
|
3877
3877
|
try {
|
|
3878
3878
|
l.releaseLock();
|
|
@@ -3881,8 +3881,8 @@ async function zo() {
|
|
|
3881
3881
|
}
|
|
3882
3882
|
const I = new Uint8Array(E);
|
|
3883
3883
|
let S = 0;
|
|
3884
|
-
for (const
|
|
3885
|
-
I.set(
|
|
3884
|
+
for (const P of b)
|
|
3885
|
+
I.set(P, S), S += P.byteLength;
|
|
3886
3886
|
return n({ wasmBinary: I });
|
|
3887
3887
|
}
|
|
3888
3888
|
function Kd(e) {
|
|
@@ -4573,21 +4573,21 @@ function Kd(e) {
|
|
|
4573
4573
|
*/
|
|
4574
4574
|
getAddress(_, f, h = ot.MAINNET) {
|
|
4575
4575
|
switch (w.oneOf(h, [ot.MAINNET, ot.TESTNET], "network"), f) {
|
|
4576
|
-
case
|
|
4576
|
+
case Pt.P2PKH:
|
|
4577
4577
|
w.publicKey(e, _, oe.SECP256K1);
|
|
4578
4578
|
break;
|
|
4579
|
-
case
|
|
4580
|
-
case
|
|
4579
|
+
case Pt.P2SH:
|
|
4580
|
+
case Pt.P2WPKH:
|
|
4581
4581
|
w.publicKey(e, _, oe.SECP256K1, "publicKey", [33]);
|
|
4582
4582
|
break;
|
|
4583
|
-
case
|
|
4583
|
+
case Pt.P2TR:
|
|
4584
4584
|
if (w.bytesOfLength(_, [32, 33], "publicKey", W.INVALID_PUBLIC_KEY).length === 32) {
|
|
4585
4585
|
const m = new Uint8Array(33);
|
|
4586
4586
|
m[0] = 2, m.set(_, 1), w.publicKey(e, m, oe.SECP256K1, "publicKey", [33]);
|
|
4587
4587
|
} else
|
|
4588
4588
|
w.publicKey(e, _, oe.SECP256K1, "publicKey", [33]);
|
|
4589
4589
|
break;
|
|
4590
|
-
case
|
|
4590
|
+
case Pt.P2WSH:
|
|
4591
4591
|
w.bytesInRange(_, 1, 1e4, "witnessScript");
|
|
4592
4592
|
break;
|
|
4593
4593
|
default:
|
|
@@ -4597,19 +4597,19 @@ function Kd(e) {
|
|
|
4597
4597
|
try {
|
|
4598
4598
|
let m;
|
|
4599
4599
|
switch (f) {
|
|
4600
|
-
case
|
|
4600
|
+
case Pt.P2PKH:
|
|
4601
4601
|
m = "_hd_btc_p2pkh_address";
|
|
4602
4602
|
break;
|
|
4603
|
-
case
|
|
4603
|
+
case Pt.P2SH:
|
|
4604
4604
|
m = "_hd_btc_p2sh_address";
|
|
4605
4605
|
break;
|
|
4606
|
-
case
|
|
4606
|
+
case Pt.P2WPKH:
|
|
4607
4607
|
m = "_hd_btc_p2wpkh_address";
|
|
4608
4608
|
break;
|
|
4609
|
-
case
|
|
4609
|
+
case Pt.P2WSH:
|
|
4610
4610
|
m = "_hd_btc_p2wsh_address";
|
|
4611
4611
|
break;
|
|
4612
|
-
case
|
|
4612
|
+
case Pt.P2TR:
|
|
4613
4613
|
m = "_hd_btc_p2tr_address";
|
|
4614
4614
|
break;
|
|
4615
4615
|
default:
|
|
@@ -4881,7 +4881,7 @@ function Kd(e) {
|
|
|
4881
4881
|
function S(_) {
|
|
4882
4882
|
return typeof _ == "string" ? Mi.encode(_) : w.bytes(_, "message");
|
|
4883
4883
|
}
|
|
4884
|
-
const
|
|
4884
|
+
const P = {
|
|
4885
4885
|
/**
|
|
4886
4886
|
* Get Ethereum address from public key
|
|
4887
4887
|
* @param {Uint8Array} publicKey - Uncompressed public key (65 bytes)
|
|
@@ -5918,7 +5918,7 @@ function Kd(e) {
|
|
|
5918
5918
|
w.string(_, "str");
|
|
5919
5919
|
const f = Ge(e, "_hd_decode_bech32");
|
|
5920
5920
|
if (!f)
|
|
5921
|
-
return
|
|
5921
|
+
return kd(_);
|
|
5922
5922
|
const h = ge(e, _), p = e._hd_alloc(128), u = e._hd_alloc(256), v = e._hd_alloc(4);
|
|
5923
5923
|
try {
|
|
5924
5924
|
e.setValue(v, 256, "i32");
|
|
@@ -5961,7 +5961,7 @@ function Kd(e) {
|
|
|
5961
5961
|
);
|
|
5962
5962
|
if (f.detached)
|
|
5963
5963
|
throw new ce(W.INVALID_ARGUMENT, "secureWipe: the buffer is detached");
|
|
5964
|
-
|
|
5964
|
+
Pd.call(new Uint8Array(f.buffer, f.offset, f.length), 0);
|
|
5965
5965
|
}
|
|
5966
5966
|
}, x = {
|
|
5967
5967
|
isAvailable() {
|
|
@@ -6252,7 +6252,7 @@ function Kd(e) {
|
|
|
6252
6252
|
curves: s,
|
|
6253
6253
|
coin: E,
|
|
6254
6254
|
bitcoin: I,
|
|
6255
|
-
ethereum:
|
|
6255
|
+
ethereum: P,
|
|
6256
6256
|
cosmos: T,
|
|
6257
6257
|
solana: F,
|
|
6258
6258
|
polkadot: D,
|
|
@@ -6450,7 +6450,7 @@ function Kd(e) {
|
|
|
6450
6450
|
enumerable: !0,
|
|
6451
6451
|
writable: !1,
|
|
6452
6452
|
configurable: !1
|
|
6453
|
-
}), Ed(ne), ne.plugin =
|
|
6453
|
+
}), Ed(ne), ne.plugin = Po({ wallet: ne, wasm: e }), ne;
|
|
6454
6454
|
}
|
|
6455
6455
|
function jo(e, n = "0", t = "0") {
|
|
6456
6456
|
return `m/44'/${e}'/${n}'/0/${t}`;
|
|
@@ -6662,8 +6662,8 @@ function Jo(e) {
|
|
|
6662
6662
|
return n += T.length, F;
|
|
6663
6663
|
const S = /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/u.exec(e.slice(n));
|
|
6664
6664
|
S || Q("invalid JSON value"), n += S[0].length;
|
|
6665
|
-
const
|
|
6666
|
-
return Number.isFinite(
|
|
6665
|
+
const P = Number(S[0]);
|
|
6666
|
+
return Number.isFinite(P) || Q("wire JSON number must be finite"), P;
|
|
6667
6667
|
};
|
|
6668
6668
|
s();
|
|
6669
6669
|
const b = l();
|
|
@@ -6762,8 +6762,8 @@ function ei(e, n) {
|
|
|
6762
6762
|
}
|
|
6763
6763
|
function f_(e, n) {
|
|
6764
6764
|
(!ArrayBuffer.isView(e) || !(e instanceof Uint8Array) || Object.getPrototypeOf(e) !== Uint8Array.prototype) && Q(`${n} must be a plain Uint8Array`), Jd.call(e) !== 32 && Q(`${n} must be exactly 32 bytes`);
|
|
6765
|
-
const s = Array.from({ length: 32 }, (
|
|
6766
|
-
(a.length !== s.length || a.some((
|
|
6765
|
+
const s = Array.from({ length: 32 }, (P, T) => String(T)), a = Reflect.ownKeys(e);
|
|
6766
|
+
(a.length !== s.length || a.some((P, T) => P !== s[T])) && Q(`${n} Uint8Array must contain only 32 indexed bytes`);
|
|
6767
6767
|
const l = Xd.call(e);
|
|
6768
6768
|
let b = !1;
|
|
6769
6769
|
if (Bs)
|
|
@@ -6779,12 +6779,12 @@ function f_(e, n) {
|
|
|
6779
6779
|
Q(`${n} must use ArrayBuffer storage`);
|
|
6780
6780
|
}
|
|
6781
6781
|
const E = new Uint8Array(32);
|
|
6782
|
-
for (let
|
|
6783
|
-
const T = Object.getOwnPropertyDescriptor(e, String(
|
|
6784
|
-
(!T || !T.enumerable || !("value" in T) || !Number.isInteger(T.value) || T.value < 0 || T.value > 255) && Q(`${n} Uint8Array contains an invalid indexed byte`), E[
|
|
6782
|
+
for (let P = 0; P < 32; P += 1) {
|
|
6783
|
+
const T = Object.getOwnPropertyDescriptor(e, String(P));
|
|
6784
|
+
(!T || !T.enumerable || !("value" in T) || !Number.isInteger(T.value) || T.value < 0 || T.value > 255) && Q(`${n} Uint8Array contains an invalid indexed byte`), E[P] = e[P];
|
|
6785
6785
|
}
|
|
6786
6786
|
let I = "";
|
|
6787
|
-
for (let
|
|
6787
|
+
for (let P = 0; P < 32; P += 1) I += String.fromCharCode(E[P]);
|
|
6788
6788
|
const S = globalThis.btoa(I).replace(/\+/gu, "-").replace(/\//gu, "_").replace(/=+$/gu, "");
|
|
6789
6789
|
return S.length !== 43 && Q(`${n} did not encode to 43 base64url characters`), S;
|
|
6790
6790
|
}
|
|
@@ -7067,10 +7067,10 @@ function ta(e) {
|
|
|
7067
7067
|
function na(e, n) {
|
|
7068
7068
|
return Ye(e, [], n), _n({});
|
|
7069
7069
|
}
|
|
7070
|
-
function
|
|
7070
|
+
function k_(e) {
|
|
7071
7071
|
return na(e, "wallet connect request");
|
|
7072
7072
|
}
|
|
7073
|
-
function
|
|
7073
|
+
function P_(e) {
|
|
7074
7074
|
return Zo(e, "connect");
|
|
7075
7075
|
}
|
|
7076
7076
|
function R_(e) {
|
|
@@ -7205,20 +7205,20 @@ function da(e, n) {
|
|
|
7205
7205
|
const E = (I) => {
|
|
7206
7206
|
const S = 4 + I * 2;
|
|
7207
7207
|
if (S >= l) return 0;
|
|
7208
|
-
const
|
|
7209
|
-
return
|
|
7208
|
+
const P = t.getUint16(a + S, !0);
|
|
7209
|
+
return P !== 0 && (P < 4 || P >= b) && bt(), P;
|
|
7210
7210
|
};
|
|
7211
7211
|
return {
|
|
7212
7212
|
scalar(I, S) {
|
|
7213
|
-
const
|
|
7214
|
-
return
|
|
7213
|
+
const P = E(I);
|
|
7214
|
+
return P === 0 ? S : e[s + P];
|
|
7215
7215
|
},
|
|
7216
7216
|
vector(I) {
|
|
7217
7217
|
const S = E(I);
|
|
7218
7218
|
if (S === 0) return null;
|
|
7219
|
-
const
|
|
7220
|
-
|
|
7221
|
-
const T =
|
|
7219
|
+
const P = s + S;
|
|
7220
|
+
P + 4 > e.length && bt();
|
|
7221
|
+
const T = P + t.getUint32(P, !0);
|
|
7222
7222
|
T + 4 > e.length && bt();
|
|
7223
7223
|
const F = t.getUint32(T, !0);
|
|
7224
7224
|
return T + 4 + F > e.length && bt(), e.slice(T + 4, T + 4 + F);
|
|
@@ -7347,8 +7347,8 @@ const eu = Object.freeze([
|
|
|
7347
7347
|
connect: !0
|
|
7348
7348
|
}),
|
|
7349
7349
|
"sdn.wallet.connect.v1": Object.freeze({
|
|
7350
|
-
parseRequest:
|
|
7351
|
-
buildResult:
|
|
7350
|
+
parseRequest: k_,
|
|
7351
|
+
buildResult: P_,
|
|
7352
7352
|
connect: !0
|
|
7353
7353
|
}),
|
|
7354
7354
|
"sdn.wallet.field-open.v1": Object.freeze({
|
|
@@ -7517,8 +7517,8 @@ async function _i(e, {
|
|
|
7517
7517
|
requestOrigin: E.requestOrigin
|
|
7518
7518
|
});
|
|
7519
7519
|
(S.registryReleaseSha256 !== E.registryVersion || S.callbackUri !== E.callbackUri || S.clientDisplayName !== E.clientDisplayName || S.clientId !== E.clientId || S.operation !== E.operation || S.requestOrigin !== E.requestOrigin) && we("REGISTRY_BINDING_MISMATCH");
|
|
7520
|
-
const
|
|
7521
|
-
(!Number.isFinite(
|
|
7520
|
+
const P = l(), T = Cr(E.expiresAt);
|
|
7521
|
+
(!Number.isFinite(P) || T <= P || T - P > S.maxLifetimeSeconds * 1e3) && we("TRANSACTION_EXPIRED");
|
|
7522
7522
|
let F;
|
|
7523
7523
|
try {
|
|
7524
7524
|
F = I.parseRequest(E.request);
|
|
@@ -7570,11 +7570,11 @@ function Xs(e) {
|
|
|
7570
7570
|
}
|
|
7571
7571
|
const Js = "The site sees your public key and address. It cannot spend or sign anything without asking you.";
|
|
7572
7572
|
function ha(e, n = {}) {
|
|
7573
|
-
const t = Xs(e.requestOrigin), s = String(e.clientDisplayName ?? "").trim(), a = s || t, l = s && t && s !== t ? [["Site", t]] : [], b = (E, I, S,
|
|
7573
|
+
const t = Xs(e.requestOrigin), s = String(e.clientDisplayName ?? "").trim(), a = s || t, l = s && t && s !== t ? [["Site", t]] : [], b = (E, I, S, P = []) => ({
|
|
7574
7574
|
title: E,
|
|
7575
7575
|
detail: I,
|
|
7576
7576
|
action: S,
|
|
7577
|
-
facts: [...l, ...
|
|
7577
|
+
facts: [...l, ...P].filter(([, T]) => T != null && String(T).trim() !== "")
|
|
7578
7578
|
});
|
|
7579
7579
|
switch (e.operation) {
|
|
7580
7580
|
case "sdn.auth.raw-challenge.v1":
|
|
@@ -7636,11 +7636,11 @@ async function fu({ assertCurrent: e, binding: n, capabilities: t, handle: s, id
|
|
|
7636
7636
|
(n.clientId !== "spaceaware-web-v1" || n.requestOrigin !== "https://spaceaware.io" || n.registryRow !== "spaceaware-publish-request-v1" || typeof t.signSdnPublishRequest != "function" || a?.identityScheme !== "sdn-bip32-slip10-purpose-v1" || a?.seedProfile !== "password-scrypt-v2") && we("OPERATION_NOT_ALLOWED");
|
|
7637
7637
|
const E = a.keys?.filter((x) => x?.purpose === "sdn-authentication") ?? [];
|
|
7638
7638
|
(E.length !== 1 || E[0].identityScheme !== a.identityScheme || E[0].seedProfile !== a.seedProfile || E[0].curve !== "ed25519" || !Dr.test(E[0].publicKeyHex) || !/^sha256:[0-9a-f]{64}$/u.test(E[0].keyId)) && we("OPERATION_NOT_ALLOWED");
|
|
7639
|
-
const { publicKeyHex: I, keyId: S } = E[0],
|
|
7639
|
+
const { publicKeyHex: I, keyId: S } = E[0], P = `${b.providerOrigin}/api/auth/challenge`, T = new AbortController(), F = setTimeout(() => T.abort(), 1e4);
|
|
7640
7640
|
let D;
|
|
7641
7641
|
try {
|
|
7642
7642
|
e(), Date.now() >= Cr(l.expiresAt) && we("TRANSACTION_EXPIRED");
|
|
7643
|
-
const x = await globalThis.fetch(
|
|
7643
|
+
const x = await globalThis.fetch(P, {
|
|
7644
7644
|
method: "POST",
|
|
7645
7645
|
credentials: "omit",
|
|
7646
7646
|
redirect: "error",
|
|
@@ -7650,7 +7650,7 @@ async function fu({ assertCurrent: e, binding: n, capabilities: t, handle: s, id
|
|
|
7650
7650
|
body: JSON.stringify({ client_pubkey_hex: I, ts: Math.floor(Date.now() / 1e3) }),
|
|
7651
7651
|
signal: T.signal
|
|
7652
7652
|
});
|
|
7653
|
-
e(), (!x.ok || x.redirected || x.url && x.url !==
|
|
7653
|
+
e(), (!x.ok || x.redirected || x.url && x.url !== P) && we("PROVIDER_CHALLENGE_FAILED");
|
|
7654
7654
|
const U = x.body?.getReader();
|
|
7655
7655
|
U || we("PROVIDER_CHALLENGE_FAILED");
|
|
7656
7656
|
const V = [];
|
|
@@ -7703,11 +7703,11 @@ function hu({ binding: e, document: n, request: t, offerRemember: s = !1 }) {
|
|
|
7703
7703
|
I.type = "button", I.dataset.walletAction = "confirm", I.textContent = ha(e, t ?? {}).action;
|
|
7704
7704
|
const S = n.createElement("button");
|
|
7705
7705
|
S.type = "button", S.dataset.walletAction = "cancel", S.textContent = "Cancel", E.append(I, S), l.append(E), n.body.append(l);
|
|
7706
|
-
let
|
|
7706
|
+
let P = !1, T, F;
|
|
7707
7707
|
const D = new Promise((V, $) => {
|
|
7708
7708
|
T = V, F = $;
|
|
7709
7709
|
}), j = (V, $) => {
|
|
7710
|
-
|
|
7710
|
+
P || $?.isTrusted !== !0 || (P = !0, I.disabled = !0, S.disabled = !0, V ? T(Object.freeze({ remember: b?.checked === !0 })) : F(new Ct("USER_CANCELLED")));
|
|
7711
7711
|
}, Y = (V) => j(!0, V), N = (V) => j(!1, V), x = (V) => {
|
|
7712
7712
|
if (V?.isTrusted !== !0) return;
|
|
7713
7713
|
if (V.key === "Escape") {
|
|
@@ -7735,7 +7735,7 @@ function hu({ binding: e, document: n, request: t, offerRemember: s = !1 }) {
|
|
|
7735
7735
|
return Object.freeze({
|
|
7736
7736
|
promise: D,
|
|
7737
7737
|
cancel(V = "STALE_CONTROLLER") {
|
|
7738
|
-
|
|
7738
|
+
P || (P = !0, F(new Ct(V)));
|
|
7739
7739
|
},
|
|
7740
7740
|
destroy() {
|
|
7741
7741
|
I.removeEventListener?.("click", Y), S.removeEventListener?.("click", N), l.removeEventListener?.("keydown", x), n.removeEventListener?.("focusin", U), l.remove();
|
|
@@ -7761,9 +7761,9 @@ async function pu({
|
|
|
7761
7761
|
let S;
|
|
7762
7762
|
try {
|
|
7763
7763
|
S = ou(b, t, a.request, n, E);
|
|
7764
|
-
} catch (
|
|
7765
|
-
if (
|
|
7766
|
-
we(
|
|
7764
|
+
} catch (P) {
|
|
7765
|
+
if (P instanceof Ct) throw P;
|
|
7766
|
+
we(P?.code === "OPERATION_NOT_ALLOWED" ? "OPERATION_NOT_ALLOWED" : "INVALID_WALLET_RESULT");
|
|
7767
7767
|
}
|
|
7768
7768
|
return e(), S;
|
|
7769
7769
|
}
|
|
@@ -7934,7 +7934,7 @@ function Wi(e) {
|
|
|
7934
7934
|
const t = Ea(n);
|
|
7935
7935
|
return ji(t) !== e && Re("INVALID_REMEMBERED_WALLET"), t;
|
|
7936
7936
|
}
|
|
7937
|
-
function
|
|
7937
|
+
function ki(e, n, { pending: t = !1 } = {}) {
|
|
7938
7938
|
(!e || typeof e.getItem != "function") && Re("STORAGE_UNAVAILABLE");
|
|
7939
7939
|
let s;
|
|
7940
7940
|
try {
|
|
@@ -7973,7 +7973,7 @@ function Pi(e, n, { pending: t = !1 } = {}) {
|
|
|
7973
7973
|
}
|
|
7974
7974
|
}
|
|
7975
7975
|
function Aa(e) {
|
|
7976
|
-
const n =
|
|
7976
|
+
const n = ki(e, Xt, { pending: !0 }), t = ki(e, vt), s = n.status === "empty", a = t.status === "empty" || t.status === "valid";
|
|
7977
7977
|
return Object.freeze({
|
|
7978
7978
|
active: t,
|
|
7979
7979
|
canRestore: s && t.status === "valid",
|
|
@@ -7981,7 +7981,7 @@ function Aa(e) {
|
|
|
7981
7981
|
pending: n
|
|
7982
7982
|
});
|
|
7983
7983
|
}
|
|
7984
|
-
function
|
|
7984
|
+
function ku(e, n) {
|
|
7985
7985
|
const t = Aa(e);
|
|
7986
7986
|
t.canSetup || Re("STORAGE_QUARANTINED");
|
|
7987
7987
|
const s = Lu(n);
|
|
@@ -8004,7 +8004,7 @@ function Pu(e, n) {
|
|
|
8004
8004
|
});
|
|
8005
8005
|
return Li.add(l), l;
|
|
8006
8006
|
}
|
|
8007
|
-
function
|
|
8007
|
+
function Pu(e, n) {
|
|
8008
8008
|
(!Li.has(n) || n.storage !== e) && Re("INVALID_STORAGE_TRANSACTION"), Li.delete(n);
|
|
8009
8009
|
let t, s;
|
|
8010
8010
|
try {
|
|
@@ -8078,7 +8078,7 @@ function xu(e, n, t) {
|
|
|
8078
8078
|
}
|
|
8079
8079
|
function Du(e, n) {
|
|
8080
8080
|
n !== vt && Re("CONFIRMATION_REQUIRED");
|
|
8081
|
-
const t =
|
|
8081
|
+
const t = ki(e, vt);
|
|
8082
8082
|
t.status === "empty" && Re("REMEMBER_UNAVAILABLE"), t.status !== "valid" && Re("STORAGE_QUARANTINED");
|
|
8083
8083
|
try {
|
|
8084
8084
|
e.removeItem(vt), e.getItem(vt) !== null && Re("STORAGE_WRITE_FAILED");
|
|
@@ -8087,7 +8087,7 @@ function Du(e, n) {
|
|
|
8087
8087
|
Re("STORAGE_UNAVAILABLE");
|
|
8088
8088
|
}
|
|
8089
8089
|
}
|
|
8090
|
-
const Wr = "sdn-bip32-slip10-purpose-v1", qr = "password-scrypt-v2",
|
|
8090
|
+
const Wr = "sdn-bip32-slip10-purpose-v1", qr = "password-scrypt-v2", Pi = "m/44'/0'/0'/2'/0'", Yi = "Approval unavailable — migrate to the new wallet profile", eo = Object.freeze({
|
|
8091
8091
|
"bip39-mnemonic-v1-legacy": "sdn-bip39-auth-v1-legacy",
|
|
8092
8092
|
"password-fast-v1-legacy": "sdn-fast-password-auth-v1-legacy"
|
|
8093
8093
|
}), to = new TextEncoder(), Cu = Uint8Array.prototype.fill, Gi = Object.freeze([
|
|
@@ -8115,7 +8115,7 @@ const Wr = "sdn-bip32-slip10-purpose-v1", qr = "password-scrypt-v2", ki = "m/44'
|
|
|
8115
8115
|
]), Yr = Object.freeze([
|
|
8116
8116
|
Object.freeze({
|
|
8117
8117
|
curve: "ed25519",
|
|
8118
|
-
path:
|
|
8118
|
+
path: Pi,
|
|
8119
8119
|
purpose: "asset-review-approval",
|
|
8120
8120
|
signatureProfile: "ed25519-over-sha256-jcs-v1"
|
|
8121
8121
|
}),
|
|
@@ -8315,9 +8315,9 @@ function vn(e, n, t, s) {
|
|
|
8315
8315
|
function ma(e) {
|
|
8316
8316
|
(e?.identityScheme !== Wr || e?.seedProfile !== qr || e?.accountIndex !== 0) && $e("APPROVAL_UNAVAILABLE");
|
|
8317
8317
|
const n = Vu(e);
|
|
8318
|
-
return (!n || n.identityScheme !== e.identityScheme || n.seedProfile !== e.seedProfile || n.signatureProfile !== "ed25519-over-sha256-jcs-v1" || n.curve !== "ed25519" || n.derivation !== "slip10" || n.path !==
|
|
8318
|
+
return (!n || n.identityScheme !== e.identityScheme || n.seedProfile !== e.seedProfile || n.signatureProfile !== "ed25519-over-sha256-jcs-v1" || n.curve !== "ed25519" || n.derivation !== "slip10" || n.path !== Pi || n.encoding !== "raw" || !/^[0-9a-f]{64}$/u.test(n.publicKeyHex) || !/^sha256:[0-9a-f]{64}$/u.test(n.keyId)) && $e("APPROVAL_UNAVAILABLE"), ln({
|
|
8319
8319
|
algorithm: "Ed25519",
|
|
8320
|
-
derivationPath:
|
|
8320
|
+
derivationPath: Pi,
|
|
8321
8321
|
encoding: "raw-32-byte",
|
|
8322
8322
|
identityScheme: e.identityScheme,
|
|
8323
8323
|
keyId: n.keyId,
|
|
@@ -8359,15 +8359,15 @@ function Ku(e, { document: n = e.ownerDocument } = {}) {
|
|
|
8359
8359
|
I.type = "button", I.dataset.walletAction = "confirm-forget-stored-wallet", I.textContent = "Confirm forget";
|
|
8360
8360
|
const S = n.createElement("button");
|
|
8361
8361
|
S.type = "button", S.dataset.walletAction = "cancel-forget-stored-wallet", S.textContent = "Cancel";
|
|
8362
|
-
const
|
|
8363
|
-
return
|
|
8362
|
+
const P = n.createElement("p");
|
|
8363
|
+
return P.dataset.walletForgetStatus = "true", P.setAttribute?.("aria-live", "polite"), l.append(b, E, I, S), e.append(t, s, a, l, P), Object.freeze({
|
|
8364
8364
|
cancel: S,
|
|
8365
8365
|
confirm: I,
|
|
8366
8366
|
confirmation: E,
|
|
8367
8367
|
confirmationGroup: l,
|
|
8368
8368
|
confirmationKey: vt,
|
|
8369
8369
|
launch: a,
|
|
8370
|
-
status:
|
|
8370
|
+
status: P
|
|
8371
8371
|
});
|
|
8372
8372
|
}
|
|
8373
8373
|
function zu(e, n, { document: t = e.ownerDocument } = {}) {
|
|
@@ -8382,8 +8382,8 @@ function zu(e, n, { document: t = e.ownerDocument } = {}) {
|
|
|
8382
8382
|
for (const I of n) {
|
|
8383
8383
|
const S = t.createElement("div");
|
|
8384
8384
|
S.className = "wallet-quarantine-row";
|
|
8385
|
-
const
|
|
8386
|
-
|
|
8385
|
+
const P = t.createElement("code");
|
|
8386
|
+
P.dataset.walletQuarantineLabel = "true", P.textContent = I.key;
|
|
8387
8387
|
const T = t.createElement("span");
|
|
8388
8388
|
T.textContent = I.oversized ? `Export unavailable (${I.rawLength} characters)` : `${I.rawLength} characters`;
|
|
8389
8389
|
const F = t.createElement("button");
|
|
@@ -8399,7 +8399,7 @@ function zu(e, n, { document: t = e.ownerDocument } = {}) {
|
|
|
8399
8399
|
const x = t.createElement("button");
|
|
8400
8400
|
x.type = "button", x.dataset.walletAction = "confirm-delete-quarantined-wallet", x.dataset.walletQuarantineKey = I.key, x.textContent = "Confirm delete";
|
|
8401
8401
|
const U = t.createElement("button");
|
|
8402
|
-
U.type = "button", U.dataset.walletAction = "cancel-delete-quarantined-wallet", U.dataset.walletQuarantineKey = I.key, U.textContent = "Cancel", j.append(Y, N, x, U), S.append(
|
|
8402
|
+
U.type = "button", U.dataset.walletAction = "cancel-delete-quarantined-wallet", U.dataset.walletQuarantineKey = I.key, U.textContent = "Cancel", j.append(Y, N, x, U), S.append(P, T, F, D, j), l.append(S), E.push(Object.freeze({
|
|
8403
8403
|
cancel: U,
|
|
8404
8404
|
confirm: x,
|
|
8405
8405
|
confirmation: N,
|
|
@@ -8442,11 +8442,11 @@ async function so(e, n, t, {
|
|
|
8442
8442
|
releaseBuffer: b
|
|
8443
8443
|
}) {
|
|
8444
8444
|
const E = await n(t), I = E?.usernameControl, S = E?.passwordControl;
|
|
8445
|
-
let
|
|
8445
|
+
let P, T;
|
|
8446
8446
|
try {
|
|
8447
8447
|
s();
|
|
8448
8448
|
const D = I?.value, j = S?.value;
|
|
8449
|
-
(typeof D != "string" || typeof j != "string") && $e("CREDENTIAL_CONFIRMATION_MISMATCH"), (!wn(D) || !wn(j)) && $e("CREDENTIAL_CONFIRMATION_MISMATCH"),
|
|
8449
|
+
(typeof D != "string" || typeof j != "string") && $e("CREDENTIAL_CONFIRMATION_MISMATCH"), (!wn(D) || !wn(j)) && $e("CREDENTIAL_CONFIRMATION_MISMATCH"), P = to.encode(D), a(P), T = to.encode(j), a(T);
|
|
8450
8450
|
} finally {
|
|
8451
8451
|
ro(I), ro(S);
|
|
8452
8452
|
const D = I?.form, j = S?.form;
|
|
@@ -8465,7 +8465,7 @@ async function so(e, n, t, {
|
|
|
8465
8465
|
s(), F = await e.derivePasswordIdentity({
|
|
8466
8466
|
accountIndex: 0,
|
|
8467
8467
|
passwordUtf8: T,
|
|
8468
|
-
usernameUtf8:
|
|
8468
|
+
usernameUtf8: P
|
|
8469
8469
|
}), F?.handle || $e("CREDENTIAL_CONFIRMATION_MISMATCH"), l(F.handle), s();
|
|
8470
8470
|
let D;
|
|
8471
8471
|
try {
|
|
@@ -8475,7 +8475,7 @@ async function so(e, n, t, {
|
|
|
8475
8475
|
}
|
|
8476
8476
|
return { handle: F.handle, identity: D };
|
|
8477
8477
|
} finally {
|
|
8478
|
-
b(
|
|
8478
|
+
b(P), b(T);
|
|
8479
8479
|
}
|
|
8480
8480
|
}
|
|
8481
8481
|
class Wu {
|
|
@@ -8684,7 +8684,7 @@ function Jr(e) {
|
|
|
8684
8684
|
const n = Object.getPrototypeOf(e);
|
|
8685
8685
|
return n === Object.prototype || n === null;
|
|
8686
8686
|
}
|
|
8687
|
-
function
|
|
8687
|
+
function ka(e, n) {
|
|
8688
8688
|
if (!Jr(e)) return !1;
|
|
8689
8689
|
let t;
|
|
8690
8690
|
try {
|
|
@@ -8697,7 +8697,7 @@ function Pa(e, n) {
|
|
|
8697
8697
|
return s.length === a.length && s.every((l, b) => l === a[b]);
|
|
8698
8698
|
}
|
|
8699
8699
|
function or(e, n) {
|
|
8700
|
-
if (!
|
|
8700
|
+
if (!ka(e, n)) return null;
|
|
8701
8701
|
const t = {};
|
|
8702
8702
|
for (const s of n) {
|
|
8703
8703
|
let a;
|
|
@@ -8723,7 +8723,7 @@ function Mr(e, n = null) {
|
|
|
8723
8723
|
}
|
|
8724
8724
|
return Object.getPrototypeOf(t) === ArrayBuffer.prototype && a === 0 && s === l && (n === null || s === n);
|
|
8725
8725
|
}
|
|
8726
|
-
function
|
|
8726
|
+
function Pa(e, n, t) {
|
|
8727
8727
|
if (!(e instanceof ArrayBuffer) || Object.getPrototypeOf(e) !== ArrayBuffer.prototype)
|
|
8728
8728
|
return !1;
|
|
8729
8729
|
let s;
|
|
@@ -8782,7 +8782,7 @@ function Ra(e) {
|
|
|
8782
8782
|
} catch {
|
|
8783
8783
|
Te("WEBAUTHN_INVALID_RESPONSE");
|
|
8784
8784
|
}
|
|
8785
|
-
return (n !== "public-key" || !
|
|
8785
|
+
return (n !== "public-key" || !Pa(t, 1, 1024) || typeof s != "function") && Te("WEBAUTHN_INVALID_RESPONSE"), Object.freeze({
|
|
8786
8786
|
rawId: new Uint8Array(Reflect.apply(lf, t, [0])),
|
|
8787
8787
|
readExtensionResults() {
|
|
8788
8788
|
try {
|
|
@@ -8801,7 +8801,7 @@ function vf(e, n) {
|
|
|
8801
8801
|
const t = Ra(e), s = t.rawId;
|
|
8802
8802
|
yf(s, n) || (Ce(s), Te("WEBAUTHN_CREDENTIAL_MISMATCH")), Ce(s);
|
|
8803
8803
|
const a = or(t.readExtensionResults(), ["prf"]), l = a ? or(a.prf, ["results"]) : null, E = (l ? or(l.results, ["first"]) : null)?.first;
|
|
8804
|
-
|
|
8804
|
+
Pa(E, 32, 32) || Te("WEBAUTHN_PRF_REQUIRED");
|
|
8805
8805
|
const I = new Uint8Array(E), S = Reflect.apply(sf, I, []);
|
|
8806
8806
|
return Ce(I), S;
|
|
8807
8807
|
}
|
|
@@ -8872,10 +8872,10 @@ function mf(e) {
|
|
|
8872
8872
|
} catch {
|
|
8873
8873
|
Te("WASM_UNAVAILABLE");
|
|
8874
8874
|
}
|
|
8875
|
-
return (!
|
|
8875
|
+
return (!ka(n, ["sdn", "sha256"]) || typeof n.sha256 != "function" || !n.sdn || typeof n.sdn != "object") && Te("WASM_UNAVAILABLE"), n;
|
|
8876
8876
|
}
|
|
8877
8877
|
function Sf(e) {
|
|
8878
|
-
const n = mf(e), t = n.sdn, s = e?.storage, a = e?.credentials, l = tf(e?.rng), b = e?.createRequestController, E = e?.releaseRequestController, I = e?.ownHandle, S = e?.destroyHandle,
|
|
8878
|
+
const n = mf(e), t = n.sdn, s = e?.storage, a = e?.credentials, l = tf(e?.rng), b = e?.createRequestController, E = e?.releaseRequestController, I = e?.ownHandle, S = e?.destroyHandle, P = e?.ownedHandlesClean, T = e?.now ?? (() => /* @__PURE__ */ new Date()), F = e?.rpHostname ?? e?.window?.location?.hostname ?? globalThis?.location?.hostname, D = hf(e?.rpId, F), j = typeof e?.rpName == "string" && e.rpName !== "" ? e.rpName : uf, Y = () => typeof a?.create == "function" && typeof a?.get == "function", N = () => Aa(s), x = () => Nu(s), U = (_) => Tu(s, _), V = (_, f) => (xu(s, _, f), x().some((h) => h.key === _) && Te("STORAGE_WRITE_FAILED"), !0), $ = () => N().active.status === "valid", X = ({ confirmation: _ } = {}) => ($() || Te("REMEMBER_UNAVAILABLE"), Du(s, _), N().active.status !== "empty" && Te("STORAGE_WRITE_FAILED"), !0), K = async (_) => {
|
|
8879
8879
|
let f;
|
|
8880
8880
|
try {
|
|
8881
8881
|
f = await n.sha256(Fr.encode(_));
|
|
@@ -8939,7 +8939,7 @@ function Sf(e) {
|
|
|
8939
8939
|
},
|
|
8940
8940
|
setup: async ({ assertCurrent: _, canonicalUsername: f, handle: h, identity: p, passwordUtf8: u }) => {
|
|
8941
8941
|
try {
|
|
8942
|
-
(typeof _ != "function" || h === null || h === void 0 || !Mr(u) || on(u) === 0 || on(u) > 256 || Ri(f) !== f || !Y() || typeof t.sealRememberedIdentity != "function" || typeof t.importRememberedIdentity != "function" || typeof I != "function" || typeof S != "function" || typeof
|
|
8942
|
+
(typeof _ != "function" || h === null || h === void 0 || !Mr(u) || on(u) === 0 || on(u) > 256 || Ri(f) !== f || !Y() || typeof t.sealRememberedIdentity != "function" || typeof t.importRememberedIdentity != "function" || typeof I != "function" || typeof S != "function" || typeof P != "function" || typeof b != "function" || typeof E != "function") && (Ce(u), Te("REMEMBER_UNAVAILABLE"));
|
|
8943
8943
|
const v = Ot(p);
|
|
8944
8944
|
N().canSetup || (Ce(u), Te("STORAGE_QUARANTINED"));
|
|
8945
8945
|
const L = typeof b == "function" ? b() : null;
|
|
@@ -9011,10 +9011,10 @@ function Sf(e) {
|
|
|
9011
9011
|
u = null, le = null;
|
|
9012
9012
|
const Mt = on(Lt);
|
|
9013
9013
|
(!Mr(Lt) || Mt < 17 || Mt > 1024) && Te("WASM_FAILURE");
|
|
9014
|
-
let
|
|
9014
|
+
let kt;
|
|
9015
9015
|
try {
|
|
9016
9016
|
const At = T();
|
|
9017
|
-
|
|
9017
|
+
kt = At instanceof Date ? At.toISOString() : new Date(At).toISOString();
|
|
9018
9018
|
} catch {
|
|
9019
9019
|
Te("CLOCK_FAILURE");
|
|
9020
9020
|
}
|
|
@@ -9022,7 +9022,7 @@ function Sf(e) {
|
|
|
9022
9022
|
aad: Ut,
|
|
9023
9023
|
canonicalUsername: f,
|
|
9024
9024
|
ciphertextBase64url: Hn(Lt),
|
|
9025
|
-
createdAt:
|
|
9025
|
+
createdAt: kt,
|
|
9026
9026
|
credentialIdBase64url: nt,
|
|
9027
9027
|
hkdfSaltBase64url: Hn(se),
|
|
9028
9028
|
nonceBase64url: Hn(Z),
|
|
@@ -9030,7 +9030,7 @@ function Sf(e) {
|
|
|
9030
9030
|
schemaVersion: 2,
|
|
9031
9031
|
storageProfile: oo
|
|
9032
9032
|
});
|
|
9033
|
-
_(), Oe =
|
|
9033
|
+
_(), Oe = ku(s, Bt);
|
|
9034
9034
|
let Vt;
|
|
9035
9035
|
const lt = ye;
|
|
9036
9036
|
try {
|
|
@@ -9047,7 +9047,7 @@ function Sf(e) {
|
|
|
9047
9047
|
}
|
|
9048
9048
|
Jr(Vt) || Te("WASM_FAILURE"), ue = Vt.handle, (ue == null || typeof I != "function") && Te("WASM_FAILURE"), I(ue);
|
|
9049
9049
|
const un = Ot(Vt.identity);
|
|
9050
|
-
return gf(v, un) || Te("IDENTITY_MISMATCH"), _(), (typeof S != "function" || !S(ue)) && Te("DESTRUCTION_FAILED"), ue = null, (typeof
|
|
9050
|
+
return gf(v, un) || Te("IDENTITY_MISMATCH"), _(), (typeof S != "function" || !S(ue)) && Te("DESTRUCTION_FAILED"), ue = null, (typeof P != "function" || !P(h)) && Te("DESTRUCTION_FAILED"), _(), Pu(s, Oe), Oe = null, Object.freeze({ remembered: !0 });
|
|
9051
9051
|
} finally {
|
|
9052
9052
|
ue !== null && typeof S == "function" && S(ue), Ce(u), Ce(R), Ce(B), Ce(be), Ce(le), Ce(ye), Ce(se), Ce(Z), Ce(ie), typeof E == "function" && E(L);
|
|
9053
9053
|
}
|
|
@@ -9072,7 +9072,7 @@ const ar = /^[0-9a-f]{64}$/u, wf = /^[A-Za-z0-9_-]{43}$/u, Of = Object.freeze([
|
|
|
9072
9072
|
"schemaVersion",
|
|
9073
9073
|
"state",
|
|
9074
9074
|
"transactionId"
|
|
9075
|
-
]), Lf = Object.freeze(["redirectUri", "schemaVersion", "transactionId"]),
|
|
9075
|
+
]), Lf = Object.freeze(["redirectUri", "schemaVersion", "transactionId"]), kf = 64 * 1024, Pf = 4 * 1024, Rf = new TextEncoder(), Nf = new TextDecoder("utf-8", { fatal: !0 });
|
|
9076
9076
|
class Qr extends Error {
|
|
9077
9077
|
constructor() {
|
|
9078
9078
|
super("RELAY_FAILURE"), this.name = "WalletRelayError", this.code = "RELAY_FAILURE";
|
|
@@ -9127,20 +9127,20 @@ function Tf(e, n) {
|
|
|
9127
9127
|
const S = e.charCodeAt(t);
|
|
9128
9128
|
if (S === 34) {
|
|
9129
9129
|
t += 1;
|
|
9130
|
-
let
|
|
9130
|
+
let P;
|
|
9131
9131
|
try {
|
|
9132
|
-
|
|
9132
|
+
P = JSON.parse(e.slice(I, t));
|
|
9133
9133
|
} catch {
|
|
9134
9134
|
De();
|
|
9135
9135
|
}
|
|
9136
|
-
for (let T = 0; T <
|
|
9137
|
-
const F =
|
|
9136
|
+
for (let T = 0; T < P.length; T += 1) {
|
|
9137
|
+
const F = P.charCodeAt(T);
|
|
9138
9138
|
if (F >= 55296 && F <= 56319) {
|
|
9139
|
-
const D =
|
|
9139
|
+
const D = P.charCodeAt(T + 1);
|
|
9140
9140
|
D >= 56320 && D <= 57343 || De(), T += 1;
|
|
9141
9141
|
} else F >= 56320 && F <= 57343 && De();
|
|
9142
9142
|
}
|
|
9143
|
-
return
|
|
9143
|
+
return P;
|
|
9144
9144
|
}
|
|
9145
9145
|
S < 32 && De(), S === 92 && (t += 1, t >= e.length && De()), t += 1;
|
|
9146
9146
|
}
|
|
@@ -9178,9 +9178,9 @@ function Tf(e, n) {
|
|
|
9178
9178
|
for (const [F, D] of [["true", !0], ["false", !1], ["null", null]])
|
|
9179
9179
|
if (e.startsWith(F, t))
|
|
9180
9180
|
return t += F.length, D;
|
|
9181
|
-
const
|
|
9182
|
-
|
|
9183
|
-
const T = Number(
|
|
9181
|
+
const P = /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?/u.exec(e.slice(t));
|
|
9182
|
+
P || De(), t += P[0].length;
|
|
9183
|
+
const T = Number(P[0]);
|
|
9184
9184
|
return Number.isFinite(T) || De(), T;
|
|
9185
9185
|
};
|
|
9186
9186
|
a();
|
|
@@ -9221,22 +9221,22 @@ function Da(e, n, t = null) {
|
|
|
9221
9221
|
n.removeEventListener?.("abort", S);
|
|
9222
9222
|
} catch {
|
|
9223
9223
|
}
|
|
9224
|
-
}, I = (
|
|
9224
|
+
}, I = (P, T) => b ? !1 : (b = !0, E(), P(T), !0), S = () => I(l, new Qr());
|
|
9225
9225
|
try {
|
|
9226
9226
|
n.addEventListener?.("abort", S, { once: !0 }), n.aborted === !0 && S();
|
|
9227
9227
|
} catch {
|
|
9228
9228
|
S();
|
|
9229
9229
|
}
|
|
9230
9230
|
s.then(
|
|
9231
|
-
(
|
|
9232
|
-
if (!I(a,
|
|
9231
|
+
(P) => {
|
|
9232
|
+
if (!I(a, P))
|
|
9233
9233
|
try {
|
|
9234
|
-
t?.(
|
|
9234
|
+
t?.(P);
|
|
9235
9235
|
} catch {
|
|
9236
9236
|
}
|
|
9237
9237
|
},
|
|
9238
|
-
(
|
|
9239
|
-
I(l,
|
|
9238
|
+
(P) => {
|
|
9239
|
+
I(l, P);
|
|
9240
9240
|
}
|
|
9241
9241
|
);
|
|
9242
9242
|
}) : s;
|
|
@@ -9249,9 +9249,9 @@ async function xf(e, n, t, s) {
|
|
|
9249
9249
|
let b = 0;
|
|
9250
9250
|
for (; ; ) {
|
|
9251
9251
|
s?.aborted === !0 && De();
|
|
9252
|
-
const { done: S, value:
|
|
9252
|
+
const { done: S, value: P } = await Da(a.read(), s);
|
|
9253
9253
|
if (s?.aborted === !0 && De(), S) break;
|
|
9254
|
-
|
|
9254
|
+
P instanceof Uint8Array || De(), b += P.byteLength, b > t && De(), l.push(P);
|
|
9255
9255
|
}
|
|
9256
9256
|
const E = new Uint8Array(b);
|
|
9257
9257
|
let I = 0;
|
|
@@ -9313,7 +9313,7 @@ function Df({ fetch: e, location: n }) {
|
|
|
9313
9313
|
`/relay/v1/transactions/${a}`,
|
|
9314
9314
|
uo("GET", l),
|
|
9315
9315
|
200,
|
|
9316
|
-
|
|
9316
|
+
kf
|
|
9317
9317
|
);
|
|
9318
9318
|
return _o(b, a);
|
|
9319
9319
|
},
|
|
@@ -9327,7 +9327,7 @@ function Df({ fetch: e, location: n }) {
|
|
|
9327
9327
|
transactionId: E.transactionId
|
|
9328
9328
|
}),
|
|
9329
9329
|
201,
|
|
9330
|
-
|
|
9330
|
+
Pf
|
|
9331
9331
|
), S = Ti(E, I);
|
|
9332
9332
|
return t.clear(), t.add(S.redirectUri), S;
|
|
9333
9333
|
},
|
|
@@ -9495,7 +9495,7 @@ class Ff {
|
|
|
9495
9495
|
#O = 0;
|
|
9496
9496
|
#u = /* @__PURE__ */ new Set();
|
|
9497
9497
|
#x;
|
|
9498
|
-
#
|
|
9498
|
+
#k = /* @__PURE__ */ new Set();
|
|
9499
9499
|
#o;
|
|
9500
9500
|
constructor({
|
|
9501
9501
|
credentials: n,
|
|
@@ -9507,26 +9507,26 @@ class Ff {
|
|
|
9507
9507
|
rpId: E,
|
|
9508
9508
|
rpName: I,
|
|
9509
9509
|
storage: S,
|
|
9510
|
-
wasm:
|
|
9510
|
+
wasm: P,
|
|
9511
9511
|
window: T
|
|
9512
9512
|
}) {
|
|
9513
|
-
const F = Uf(
|
|
9513
|
+
const F = Uf(P);
|
|
9514
9514
|
this.#a = F.capabilities, this.#x = F.sha256, this.#T = a, this.#d = l, this.#s = t, this.#o = T, this.#y = Sf({
|
|
9515
9515
|
createRequestController: () => {
|
|
9516
9516
|
const D = Rr(this.#o);
|
|
9517
|
-
return D && (this.#c.add(D), this.#
|
|
9517
|
+
return D && (this.#c.add(D), this.#k.add(D)), D;
|
|
9518
9518
|
},
|
|
9519
9519
|
credentials: n ?? T?.navigator?.credentials ?? globalThis.navigator?.credentials,
|
|
9520
9520
|
rpHostname: T?.location?.hostname ?? globalThis?.location?.hostname,
|
|
9521
9521
|
rpId: E,
|
|
9522
9522
|
rpName: I,
|
|
9523
9523
|
destroyHandle: (D) => this.#v(D),
|
|
9524
|
-
module:
|
|
9524
|
+
module: P,
|
|
9525
9525
|
now: s,
|
|
9526
9526
|
ownHandle: (D) => this.#l.add(D),
|
|
9527
9527
|
ownedHandlesClean: (D) => this.#l.size === 1 && this.#l.has(D) && this.#n === D,
|
|
9528
9528
|
releaseRequestController: (D) => {
|
|
9529
|
-
this.#
|
|
9529
|
+
this.#k.delete(D), this.#c.delete(D);
|
|
9530
9530
|
},
|
|
9531
9531
|
rng: b ?? {
|
|
9532
9532
|
getRandomValues: T?.crypto?.getRandomValues?.bind(T.crypto) ?? globalThis.crypto?.getRandomValues?.bind(globalThis.crypto)
|
|
@@ -9587,7 +9587,7 @@ class Ff {
|
|
|
9587
9587
|
}
|
|
9588
9588
|
#H() {
|
|
9589
9589
|
const n = [...this.#c];
|
|
9590
|
-
this.#c.clear(), this.#
|
|
9590
|
+
this.#c.clear(), this.#k.clear();
|
|
9591
9591
|
for (const t of n)
|
|
9592
9592
|
try {
|
|
9593
9593
|
t.abort();
|
|
@@ -9595,8 +9595,8 @@ class Ff {
|
|
|
9595
9595
|
}
|
|
9596
9596
|
}
|
|
9597
9597
|
#j() {
|
|
9598
|
-
const n = [...this.#
|
|
9599
|
-
this.#
|
|
9598
|
+
const n = [...this.#k];
|
|
9599
|
+
this.#k.clear();
|
|
9600
9600
|
for (const t of n) {
|
|
9601
9601
|
this.#c.delete(t);
|
|
9602
9602
|
try {
|
|
@@ -9610,7 +9610,7 @@ class Ff {
|
|
|
9610
9610
|
this.#u.clear();
|
|
9611
9611
|
for (const t of n) St(t);
|
|
9612
9612
|
}
|
|
9613
|
-
#
|
|
9613
|
+
#P(n = []) {
|
|
9614
9614
|
if (this.#p.size === 0) return;
|
|
9615
9615
|
const t = new Set(n), s = [];
|
|
9616
9616
|
for (const a of this.#p)
|
|
@@ -9622,7 +9622,7 @@ class Ff {
|
|
|
9622
9622
|
#M(n = []) {
|
|
9623
9623
|
(this.#e || this.#r) && fe("STALE_CONTROLLER");
|
|
9624
9624
|
const t = this.#U();
|
|
9625
|
-
this.#
|
|
9625
|
+
this.#P(n), this.#j(), this.#F();
|
|
9626
9626
|
let s = this.#v();
|
|
9627
9627
|
return s && (s = this.#E() && this.#l.size === 0), s || (this.revokeNow("native-destruction-failed"), this.#E(), fe("DESTRUCTION_FAILED")), this.#b = null, t;
|
|
9628
9628
|
}
|
|
@@ -9639,8 +9639,8 @@ class Ff {
|
|
|
9639
9639
|
this.#U(), this.#r = !0, this.#t = !1, this.#f = I, this.#l.add(n), this.#n = null, this.#h = null, a || (this.#b = null);
|
|
9640
9640
|
const S = this.#_;
|
|
9641
9641
|
this.#_ = null;
|
|
9642
|
-
let
|
|
9643
|
-
|
|
9642
|
+
let P = this.#v(n);
|
|
9643
|
+
P && (P = this.#E() && this.#l.size === 0), P || (this.#f = null, this.#b = null);
|
|
9644
9644
|
try {
|
|
9645
9645
|
S?.cancel("STALE_CONTROLLER");
|
|
9646
9646
|
} catch {
|
|
@@ -9649,9 +9649,9 @@ class Ff {
|
|
|
9649
9649
|
S?.destroy();
|
|
9650
9650
|
} catch {
|
|
9651
9651
|
}
|
|
9652
|
-
this.#
|
|
9653
|
-
const T =
|
|
9654
|
-
return T === null && this.#f === I && (this.#f = null), Object.freeze({ destroyed:
|
|
9652
|
+
this.#P(), this.#F(), this.#H(), P || this.#E();
|
|
9653
|
+
const T = P && this.#O === E && this.#f === I ? I : null;
|
|
9654
|
+
return T === null && this.#f === I && (this.#f = null), Object.freeze({ destroyed: P, permit: T });
|
|
9655
9655
|
}
|
|
9656
9656
|
#A(n, t) {
|
|
9657
9657
|
(this.#e || this.#r || this.#i !== t || this.#n !== n) && fe("STALE_CONTROLLER");
|
|
@@ -9814,7 +9814,7 @@ class Ff {
|
|
|
9814
9814
|
), N;
|
|
9815
9815
|
}
|
|
9816
9816
|
this.registerCredentialControls({ passwordControl: t, usernameControl: l });
|
|
9817
|
-
let E, I, S,
|
|
9817
|
+
let E, I, S, P, T, F, D = null, j = !1;
|
|
9818
9818
|
try {
|
|
9819
9819
|
try {
|
|
9820
9820
|
gt({ document: this.#s, window: this.#o });
|
|
@@ -9829,7 +9829,7 @@ class Ff {
|
|
|
9829
9829
|
} catch {
|
|
9830
9830
|
fe("INVALID_USERNAME");
|
|
9831
9831
|
}
|
|
9832
|
-
I = $n.encode(N), F = $n.encode(D), j = s?.checked === !0 && s?.disabled !== !0 && this.#y.supported(), j ? ((F.length === 0 || F.length > 256) && fe("INVALID_PASSWORD"), S = F.slice(),
|
|
9832
|
+
I = $n.encode(N), F = $n.encode(D), j = s?.checked === !0 && s?.disabled !== !0 && this.#y.supported(), j ? ((F.length === 0 || F.length > 256) && fe("INVALID_PASSWORD"), S = F.slice(), P = F.slice(), T = P, St(F), F = null) : (S = F, F = null), this.#u.add(I), this.#u.add(S), P && this.#u.add(P);
|
|
9833
9833
|
} finally {
|
|
9834
9834
|
if (D = null, s && typeof s == "object") {
|
|
9835
9835
|
try {
|
|
@@ -9845,7 +9845,7 @@ class Ff {
|
|
|
9845
9845
|
} catch {
|
|
9846
9846
|
}
|
|
9847
9847
|
}
|
|
9848
|
-
St(F), this.#
|
|
9848
|
+
St(F), this.#P();
|
|
9849
9849
|
}
|
|
9850
9850
|
let Y;
|
|
9851
9851
|
try {
|
|
@@ -9870,14 +9870,14 @@ class Ff {
|
|
|
9870
9870
|
canonicalUsername: E,
|
|
9871
9871
|
handle: N,
|
|
9872
9872
|
identity: x,
|
|
9873
|
-
passwordUtf8:
|
|
9874
|
-
}), this.#A(N, b), this.#u.delete(T),
|
|
9873
|
+
passwordUtf8: P
|
|
9874
|
+
}), this.#A(N, b), this.#u.delete(T), P = null;
|
|
9875
9875
|
try {
|
|
9876
9876
|
a && (a.textContent = "Wallet remembered on this device.");
|
|
9877
9877
|
} catch {
|
|
9878
9878
|
}
|
|
9879
9879
|
} catch {
|
|
9880
|
-
St(
|
|
9880
|
+
St(P), this.#u.delete(T), P = null, (this.#e || this.#r || this.#i !== b || this.#n !== N) && fe("STALE_CONTROLLER"), this.#l.size === 1 && this.#l.has(N) && this.#n === N || (this.revokeNow("remembered-wallet-cleanup-failed"), fe("DESTRUCTION_FAILED"));
|
|
9881
9881
|
try {
|
|
9882
9882
|
a && (a.textContent = "Wallet was not remembered.");
|
|
9883
9883
|
} catch {
|
|
@@ -9887,7 +9887,7 @@ class Ff {
|
|
|
9887
9887
|
} catch (N) {
|
|
9888
9888
|
throw N instanceof He && N.code === "DESTRUCTION_FAILED" || (this.#e || this.#r || this.#i !== b) && fe("STALE_CONTROLLER"), N;
|
|
9889
9889
|
} finally {
|
|
9890
|
-
St(I), St(S), St(
|
|
9890
|
+
St(I), St(S), St(P), St(T), this.#u.delete(I), this.#u.delete(S), this.#u.delete(T);
|
|
9891
9891
|
}
|
|
9892
9892
|
}
|
|
9893
9893
|
async unlockRemembered({ accountIndex: n = 0 } = {}) {
|
|
@@ -9931,9 +9931,9 @@ class Ff {
|
|
|
9931
9931
|
} catch (Y) {
|
|
9932
9932
|
jn(this.#s, S), Kn(Y);
|
|
9933
9933
|
}
|
|
9934
|
-
let
|
|
9934
|
+
let P;
|
|
9935
9935
|
try {
|
|
9936
|
-
|
|
9936
|
+
P = this.#M(S);
|
|
9937
9937
|
} catch (Y) {
|
|
9938
9938
|
throw jn(this.#s, S), Y;
|
|
9939
9939
|
}
|
|
@@ -9945,7 +9945,7 @@ class Ff {
|
|
|
9945
9945
|
} catch (Y) {
|
|
9946
9946
|
Kn(Y);
|
|
9947
9947
|
}
|
|
9948
|
-
if (this.#R(
|
|
9948
|
+
if (this.#R(P), E) {
|
|
9949
9949
|
const Y = b?.value, N = a?.value;
|
|
9950
9950
|
zn(Y) || fe("INVALID_USERNAME"), zn(N) || fe("INVALID_PASSWORD"), T = $n.encode(Y), F = $n.encode(N), this.#u.add(T), this.#u.add(F);
|
|
9951
9951
|
} else {
|
|
@@ -9953,7 +9953,7 @@ class Ff {
|
|
|
9953
9953
|
zn(Y) || fe("INVALID_MNEMONIC"), D = $n.encode(Y), this.#u.add(D);
|
|
9954
9954
|
}
|
|
9955
9955
|
} finally {
|
|
9956
|
-
this.#
|
|
9956
|
+
this.#P();
|
|
9957
9957
|
}
|
|
9958
9958
|
let j;
|
|
9959
9959
|
try {
|
|
@@ -9971,9 +9971,9 @@ class Ff {
|
|
|
9971
9971
|
const x = this.#v(Y);
|
|
9972
9972
|
j = null, x || (this.revokeNow("native-destruction-failed"), fe("DESTRUCTION_FAILED")), fe("WASM_FAILURE");
|
|
9973
9973
|
}
|
|
9974
|
-
return (this.#e || this.#r || this.#i !==
|
|
9974
|
+
return (this.#e || this.#r || this.#i !== P) && (this.#v(Y) || (this.revokeNow("native-destruction-failed"), fe("DESTRUCTION_FAILED")), fe("STALE_CONTROLLER")), this.#n = Y, this.#h = N, N;
|
|
9975
9975
|
} catch (Y) {
|
|
9976
|
-
throw Y instanceof He && Y.code === "DESTRUCTION_FAILED" || (this.#e || this.#r || this.#i !==
|
|
9976
|
+
throw Y instanceof He && Y.code === "DESTRUCTION_FAILED" || (this.#e || this.#r || this.#i !== P) && fe("STALE_CONTROLLER"), Y;
|
|
9977
9977
|
} finally {
|
|
9978
9978
|
St(T), St(F), St(D), this.#u.delete(T), this.#u.delete(F), this.#u.delete(D);
|
|
9979
9979
|
}
|
|
@@ -10043,15 +10043,15 @@ class Ff {
|
|
|
10043
10043
|
wasm: this.#a
|
|
10044
10044
|
});
|
|
10045
10045
|
this.#A(s, l), gt({ document: this.#s, window: this.#o });
|
|
10046
|
-
const
|
|
10047
|
-
|
|
10046
|
+
const P = E.transaction.operation === "sdn.wallet.account.v1";
|
|
10047
|
+
P && (this.#b = Ot(a));
|
|
10048
10048
|
const T = this.#B(s, l, {
|
|
10049
10049
|
allowPublication: !0,
|
|
10050
|
-
retainIdentity:
|
|
10050
|
+
retainIdentity: P
|
|
10051
10051
|
});
|
|
10052
10052
|
b = !0, T.destroyed || (this.#b = null, fe("DESTRUCTION_FAILED"));
|
|
10053
10053
|
const F = this.#O, D = T.permit;
|
|
10054
|
-
if (
|
|
10054
|
+
if (P)
|
|
10055
10055
|
return this.#I(F, D), this.#g = Object.freeze({
|
|
10056
10056
|
connectedResult: S,
|
|
10057
10057
|
epoch: F,
|
|
@@ -10125,7 +10125,7 @@ class Ff {
|
|
|
10125
10125
|
s?.destroy();
|
|
10126
10126
|
} catch {
|
|
10127
10127
|
}
|
|
10128
|
-
if (this.#
|
|
10128
|
+
if (this.#P(), this.#F(), this.#H(), this.#E(), a)
|
|
10129
10129
|
try {
|
|
10130
10130
|
this.#d?.revokeNow?.(n);
|
|
10131
10131
|
} catch {
|
|
@@ -10219,7 +10219,7 @@ const Mf = [
|
|
|
10219
10219
|
audiences: [
|
|
10220
10220
|
"sdn-field-encryption/v1|flatbuffers"
|
|
10221
10221
|
],
|
|
10222
|
-
callbackUri: "https://
|
|
10222
|
+
callbackUri: "https://flatbuffers.spacedatanetwork.org/wallet-callback.html",
|
|
10223
10223
|
clientDisplayName: "FlatBuffers Documentation",
|
|
10224
10224
|
clientId: "sdn-flatbuffers-pages-v1",
|
|
10225
10225
|
operationBindings: [
|
|
@@ -10248,7 +10248,7 @@ const Mf = [
|
|
|
10248
10248
|
serviceInstance: null
|
|
10249
10249
|
}
|
|
10250
10250
|
],
|
|
10251
|
-
requestOrigin: "https://
|
|
10251
|
+
requestOrigin: "https://flatbuffers.spacedatanetwork.org"
|
|
10252
10252
|
},
|
|
10253
10253
|
{
|
|
10254
10254
|
allowedOperations: [
|
|
@@ -10259,7 +10259,7 @@ const Mf = [
|
|
|
10259
10259
|
audiences: [
|
|
10260
10260
|
"sdn-field-encryption/v1|flatsql"
|
|
10261
10261
|
],
|
|
10262
|
-
callbackUri: "https://
|
|
10262
|
+
callbackUri: "https://flatsql.spacedatanetwork.org/wallet-callback.html",
|
|
10263
10263
|
clientDisplayName: "FlatSQL Documentation",
|
|
10264
10264
|
clientId: "sdn-flatsql-pages-v1",
|
|
10265
10265
|
operationBindings: [
|
|
@@ -10288,7 +10288,7 @@ const Mf = [
|
|
|
10288
10288
|
serviceInstance: null
|
|
10289
10289
|
}
|
|
10290
10290
|
],
|
|
10291
|
-
requestOrigin: "https://
|
|
10291
|
+
requestOrigin: "https://flatsql.spacedatanetwork.org"
|
|
10292
10292
|
},
|
|
10293
10293
|
{
|
|
10294
10294
|
allowedOperations: [
|
|
@@ -10296,7 +10296,7 @@ const Mf = [
|
|
|
10296
10296
|
"sdn.wallet.connect.v1"
|
|
10297
10297
|
],
|
|
10298
10298
|
audiences: [],
|
|
10299
|
-
callbackUri: "https://
|
|
10299
|
+
callbackUri: "https://module-sdk.spacedatanetwork.org/wallet-callback.html",
|
|
10300
10300
|
clientDisplayName: "Space Data Module SDK",
|
|
10301
10301
|
clientId: "sdn-module-sdk-pages-v1",
|
|
10302
10302
|
operationBindings: [
|
|
@@ -10317,7 +10317,7 @@ const Mf = [
|
|
|
10317
10317
|
serviceInstance: null
|
|
10318
10318
|
}
|
|
10319
10319
|
],
|
|
10320
|
-
requestOrigin: "https://
|
|
10320
|
+
requestOrigin: "https://module-sdk.spacedatanetwork.org"
|
|
10321
10321
|
},
|
|
10322
10322
|
{
|
|
10323
10323
|
allowedOperations: [
|
|
@@ -10412,9 +10412,9 @@ const Mf = [
|
|
|
10412
10412
|
"sdn.wallet.connect.v1"
|
|
10413
10413
|
],
|
|
10414
10414
|
audiences: [],
|
|
10415
|
-
callbackUri: "https://digitalarsenal.github.io/
|
|
10416
|
-
clientDisplayName: "
|
|
10417
|
-
clientId: "
|
|
10415
|
+
callbackUri: "https://digitalarsenal.github.io/hd-wallet-wasm/wallet-callback.html",
|
|
10416
|
+
clientDisplayName: "DigitalArsenal GitHub Pages",
|
|
10417
|
+
clientId: "digitalarsenal-pages-v1",
|
|
10418
10418
|
operationBindings: [
|
|
10419
10419
|
{
|
|
10420
10420
|
audience: null,
|
|
@@ -10441,7 +10441,7 @@ const Mf = [
|
|
|
10441
10441
|
"sdn.wallet.connect.v1"
|
|
10442
10442
|
],
|
|
10443
10443
|
audiences: [],
|
|
10444
|
-
callbackUri: "https://
|
|
10444
|
+
callbackUri: "https://asset-models.spacedatanetwork.org/wallet-callback.html",
|
|
10445
10445
|
clientDisplayName: "SDN Asset Models",
|
|
10446
10446
|
clientId: "sdn-asset-models-pages-v1",
|
|
10447
10447
|
operationBindings: [
|
|
@@ -10462,7 +10462,7 @@ const Mf = [
|
|
|
10462
10462
|
serviceInstance: null
|
|
10463
10463
|
}
|
|
10464
10464
|
],
|
|
10465
|
-
requestOrigin: "https://
|
|
10465
|
+
requestOrigin: "https://asset-models.spacedatanetwork.org"
|
|
10466
10466
|
},
|
|
10467
10467
|
{
|
|
10468
10468
|
allowedOperations: [
|
|
@@ -10514,7 +10514,7 @@ const Mf = [
|
|
|
10514
10514
|
],
|
|
10515
10515
|
requestOrigin: "https://review.spacedatanetwork.org"
|
|
10516
10516
|
}
|
|
10517
|
-
], Bf = "
|
|
10517
|
+
], Bf = "f5f7e3eab42bbb12bd85d95289e0a8006941ceb8505f6dc1cde12a38f4a79a63", Vf = 1, Ua = {
|
|
10518
10518
|
clients: Mf,
|
|
10519
10519
|
registryReleaseSha256: Bf,
|
|
10520
10520
|
schemaVersion: Vf
|
|
@@ -10589,13 +10589,15 @@ const Mf = [
|
|
|
10589
10589
|
]), ho = Object.freeze([
|
|
10590
10590
|
Object.freeze(["sdn-landing-web-v1", "Space Data Network", "https://spacedatanetwork.org", "https://spacedatanetwork.org/wallet-callback.html", Tt]),
|
|
10591
10591
|
Object.freeze(["sdn-standards-web-v1", "Space Data Standards", "https://spacedatastandards.org", "https://spacedatastandards.org/wallet-callback.html", Tt]),
|
|
10592
|
-
Object.freeze(["sdn-flatbuffers-pages-v1", "FlatBuffers Documentation", "https://
|
|
10593
|
-
Object.freeze(["sdn-flatsql-pages-v1", "FlatSQL Documentation", "https://
|
|
10594
|
-
Object.freeze(["sdn-module-sdk-pages-v1", "Space Data Module SDK", "https://
|
|
10592
|
+
Object.freeze(["sdn-flatbuffers-pages-v1", "FlatBuffers Documentation", "https://flatbuffers.spacedatanetwork.org", "https://flatbuffers.spacedatanetwork.org/wallet-callback.html", qf]),
|
|
10593
|
+
Object.freeze(["sdn-flatsql-pages-v1", "FlatSQL Documentation", "https://flatsql.spacedatanetwork.org", "https://flatsql.spacedatanetwork.org/wallet-callback.html", Yf]),
|
|
10594
|
+
Object.freeze(["sdn-module-sdk-pages-v1", "Space Data Module SDK", "https://module-sdk.spacedatanetwork.org", "https://module-sdk.spacedatanetwork.org/wallet-callback.html", Tt]),
|
|
10595
10595
|
Object.freeze(["spaceaware-web-v1", "SpaceAware", "https://spaceaware.io", "https://spaceaware.io/wallet/callback", Wf]),
|
|
10596
10596
|
Object.freeze(["sdn-node-console-v1", "SDN Node Console", "https://sdn.spaceaware.io", "https://sdn.spaceaware.io/wallet/callback", jf]),
|
|
10597
|
-
|
|
10598
|
-
|
|
10597
|
+
// Every page on digitalarsenal.github.io is one browser origin, so it is one
|
|
10598
|
+
// client and signs in only: no key operation is bound to a shared origin.
|
|
10599
|
+
Object.freeze(["digitalarsenal-pages-v1", "DigitalArsenal GitHub Pages", "https://digitalarsenal.github.io", "https://digitalarsenal.github.io/hd-wallet-wasm/wallet-callback.html", Tt]),
|
|
10600
|
+
Object.freeze(["sdn-asset-models-pages-v1", "SDN Asset Models", "https://asset-models.spacedatanetwork.org", "https://asset-models.spacedatanetwork.org/wallet-callback.html", Tt]),
|
|
10599
10601
|
Object.freeze(["sdn-asset-review-v1", "SDN Asset Review", "https://review.spacedatanetwork.org", "https://review.spacedatanetwork.org/wallet/callback", Gf])
|
|
10600
10602
|
]), Xf = Object.freeze([
|
|
10601
10603
|
Object.freeze({
|
|
@@ -10643,7 +10645,7 @@ const Mf = [
|
|
|
10643
10645
|
clientId: "sdn-flatbuffers-pages-v1",
|
|
10644
10646
|
maxLifetimeSeconds: 300,
|
|
10645
10647
|
operation: "sdn.wallet.field-open.v1",
|
|
10646
|
-
requestOrigin: "https://
|
|
10648
|
+
requestOrigin: "https://flatbuffers.spacedatanetwork.org",
|
|
10647
10649
|
registryRow: "flatbuffers-field-open-v1",
|
|
10648
10650
|
serviceActivationState: null,
|
|
10649
10651
|
serviceInstance: null
|
|
@@ -10653,7 +10655,7 @@ const Mf = [
|
|
|
10653
10655
|
clientId: "sdn-flatsql-pages-v1",
|
|
10654
10656
|
maxLifetimeSeconds: 300,
|
|
10655
10657
|
operation: "sdn.wallet.key-unwrap.v1",
|
|
10656
|
-
requestOrigin: "https://
|
|
10658
|
+
requestOrigin: "https://flatsql.spacedatanetwork.org",
|
|
10657
10659
|
registryRow: "flatsql-key-unwrap-v1",
|
|
10658
10660
|
serviceActivationState: null,
|
|
10659
10661
|
serviceInstance: null
|
|
@@ -10745,8 +10747,8 @@ function eh(e) {
|
|
|
10745
10747
|
const Y = `${s.clientId}\0${s.requestOrigin}\0${T.operation}`;
|
|
10746
10748
|
t.has(Y) && Ve("duplicate registry binding"), t.add(Y);
|
|
10747
10749
|
});
|
|
10748
|
-
const
|
|
10749
|
-
(!Array.isArray(s.audiences) || wt(s.audiences) !== wt(
|
|
10750
|
+
const P = [...new Set(s.operationBindings.map(({ audience: T }) => T).filter((T) => T !== null))].sort();
|
|
10751
|
+
(!Array.isArray(s.audiences) || wt(s.audiences) !== wt(P)) && Ve(`${s.clientId} audiences differ from operationBindings`), wt(s.allowedOperations) !== wt(s.operationBindings.map(({ operation: T }) => T)) && Ve(`${s.clientId} allowedOperations differ from operationBindings`);
|
|
10750
10752
|
});
|
|
10751
10753
|
for (const s of Xf) {
|
|
10752
10754
|
const a = e.clients.find((E) => E.clientId === s.clientId && E.requestOrigin === s.requestOrigin), l = a?.operationBindings.find((E) => E.operation === s.operation), b = l && {
|
|
@@ -10862,8 +10864,8 @@ function Fa({
|
|
|
10862
10864
|
a.className = "wallet-quarantine-manager";
|
|
10863
10865
|
const l = n.generation;
|
|
10864
10866
|
let b = !1, E = 0, I = [], S = null;
|
|
10865
|
-
const
|
|
10866
|
-
|
|
10867
|
+
const P = (N = E) => !b && N === E && n.isUiGenerationCurrent?.(l) === !0, T = (N, x = E) => {
|
|
10868
|
+
P(x) && S?.status && (S.status.textContent = N);
|
|
10867
10869
|
}, F = () => {
|
|
10868
10870
|
E += 1;
|
|
10869
10871
|
for (const [N, x, U] of I)
|
|
@@ -10904,7 +10906,7 @@ function Fa({
|
|
|
10904
10906
|
const x = E;
|
|
10905
10907
|
for (const U of S.rows) {
|
|
10906
10908
|
const { entry: V } = U, $ = async (ne) => {
|
|
10907
|
-
if (ne?.isTrusted !== !0 || !
|
|
10909
|
+
if (ne?.isTrusted !== !0 || !P(x)) return;
|
|
10908
10910
|
if (V.exportable !== !0) {
|
|
10909
10911
|
T("Quarantined record is too large to export.", x);
|
|
10910
10912
|
return;
|
|
@@ -10919,7 +10921,7 @@ function Fa({
|
|
|
10919
10921
|
_ = null;
|
|
10920
10922
|
}
|
|
10921
10923
|
}, X = (ne) => {
|
|
10922
|
-
if (!(ne?.isTrusted !== !0 || !
|
|
10924
|
+
if (!(ne?.isTrusted !== !0 || !P(x))) {
|
|
10923
10925
|
try {
|
|
10924
10926
|
U.confirmation.value = "";
|
|
10925
10927
|
} catch {
|
|
@@ -10935,7 +10937,7 @@ function Fa({
|
|
|
10935
10937
|
}
|
|
10936
10938
|
}
|
|
10937
10939
|
}, K = (ne) => {
|
|
10938
|
-
if (!(ne?.isTrusted !== !0 || !
|
|
10940
|
+
if (!(ne?.isTrusted !== !0 || !P(x))) {
|
|
10939
10941
|
try {
|
|
10940
10942
|
U.confirmation.value = "";
|
|
10941
10943
|
} catch {
|
|
@@ -10947,7 +10949,7 @@ function Fa({
|
|
|
10947
10949
|
U.confirmationGroup.hidden = !0, T("", x);
|
|
10948
10950
|
}
|
|
10949
10951
|
}, H = (ne) => {
|
|
10950
|
-
if (ne?.isTrusted !== !0 || !
|
|
10952
|
+
if (ne?.isTrusted !== !0 || !P(x)) return;
|
|
10951
10953
|
const _ = U.confirmation.value;
|
|
10952
10954
|
if (_ !== V.key) {
|
|
10953
10955
|
T("Type the exact storage key to confirm deletion.", x);
|
|
@@ -10998,12 +11000,12 @@ function ch({
|
|
|
10998
11000
|
I.textContent = l;
|
|
10999
11001
|
const S = t.createElement("p");
|
|
11000
11002
|
S.textContent = "Account 0";
|
|
11001
|
-
const
|
|
11002
|
-
|
|
11003
|
+
const P = t.createElement("form");
|
|
11004
|
+
P.noValidate = !0;
|
|
11003
11005
|
const T = t.createElement("input");
|
|
11004
11006
|
T.type = "text", T.name = "username", T.autocomplete = "username", T.required = !0;
|
|
11005
11007
|
const F = t.createElement("input");
|
|
11006
|
-
F.type = "password", F.name = "password", F.autocomplete = "current-password", F.required = !0, cr(t,
|
|
11008
|
+
F.type = "password", F.name = "password", F.autocomplete = "current-password", F.required = !0, cr(t, P, "Username", T), cr(t, P, "Password", F);
|
|
11007
11009
|
let D = null;
|
|
11008
11010
|
if (n && typeof n == "object") {
|
|
11009
11011
|
D = t.createElement("input"), D.type = "checkbox", D.dataset.walletRemember = "prf-only", D.checked = !1, D.defaultChecked = !1;
|
|
@@ -11013,7 +11015,7 @@ function ch({
|
|
|
11013
11015
|
} catch {
|
|
11014
11016
|
R = !1;
|
|
11015
11017
|
}
|
|
11016
|
-
D.disabled = !R, cr(t,
|
|
11018
|
+
D.disabled = !R, cr(t, P, "Remember on this device", D);
|
|
11017
11019
|
}
|
|
11018
11020
|
const j = t.createElement("p");
|
|
11019
11021
|
j.dataset.walletRememberStatus = "true";
|
|
@@ -11036,12 +11038,12 @@ function ch({
|
|
|
11036
11038
|
const $ = t.createElement("button");
|
|
11037
11039
|
$.type = "submit", $.dataset.walletAction = "login", $.textContent = "Login";
|
|
11038
11040
|
const X = t.createElement("button");
|
|
11039
|
-
X.type = "button", X.dataset.walletAction = "cancel-login", X.textContent = "Cancel", U && x.append(U), x.append($, X),
|
|
11041
|
+
X.type = "button", X.dataset.walletAction = "cancel-login", X.textContent = "Cancel", U && x.append(U), x.append($, X), P.append(x), E.append(I, S), N?.hasEntries && E.append(N.container), E.append(P, j), b.append(E), n?.registerCredentialControls?.({ passwordControl: F, usernameControl: T });
|
|
11040
11042
|
let K = !1, H, ne;
|
|
11041
11043
|
const _ = new Promise((R, B) => {
|
|
11042
11044
|
H = R, ne = B;
|
|
11043
11045
|
}), f = () => {
|
|
11044
|
-
|
|
11046
|
+
P.removeEventListener?.("submit", v), X.removeEventListener?.("click", m), U?.removeEventListener?.("click", L);
|
|
11045
11047
|
}, h = () => {
|
|
11046
11048
|
if (N?.destroy?.(), D) {
|
|
11047
11049
|
try {
|
|
@@ -11059,7 +11061,7 @@ function ch({
|
|
|
11059
11061
|
}
|
|
11060
11062
|
j.textContent = "";
|
|
11061
11063
|
}, p = () => {
|
|
11062
|
-
f(), Ln(
|
|
11064
|
+
f(), Ln(P, [T, F]), h(), E.remove?.();
|
|
11063
11065
|
}, u = (R) => {
|
|
11064
11066
|
if (!K) {
|
|
11065
11067
|
K = !0;
|
|
@@ -11074,7 +11076,7 @@ function ch({
|
|
|
11074
11076
|
}, m = (R) => {
|
|
11075
11077
|
R?.isTrusted === !0 && u("USER_CANCELLED");
|
|
11076
11078
|
}, L = (R) => {
|
|
11077
|
-
K || R?.isTrusted !== !0 || (K = !0, f(), N?.destroy?.(), Ln(
|
|
11079
|
+
K || R?.isTrusted !== !0 || (K = !0, f(), N?.destroy?.(), Ln(P, [T, F]), H({ remembered: !0, rememberStatus: j }));
|
|
11078
11080
|
};
|
|
11079
11081
|
Y = () => {
|
|
11080
11082
|
if (K || !a) return;
|
|
@@ -11085,7 +11087,7 @@ function ch({
|
|
|
11085
11087
|
R = !1;
|
|
11086
11088
|
}
|
|
11087
11089
|
R && !U ? (U = t.createElement("button"), U.type = "button", U.dataset.walletAction = "unlock-remembered", U.textContent = "Unlock remembered wallet", x.replaceChildren(U, $, X), U.addEventListener?.("click", L)) : !R && U && (U.removeEventListener?.("click", L), U.remove?.(), U = null);
|
|
11088
|
-
},
|
|
11090
|
+
}, P.addEventListener("submit", v), X.addEventListener("click", m), U?.addEventListener?.("click", L);
|
|
11089
11091
|
try {
|
|
11090
11092
|
T.focus?.();
|
|
11091
11093
|
} catch {
|
|
@@ -11095,7 +11097,7 @@ function ch({
|
|
|
11095
11097
|
K ? p() : u("STALE_CONTROLLER");
|
|
11096
11098
|
},
|
|
11097
11099
|
controls: Object.freeze({ passwordControl: F, rememberControl: D, rememberStatus: j, usernameControl: T }),
|
|
11098
|
-
form:
|
|
11100
|
+
form: P,
|
|
11099
11101
|
promise: _,
|
|
11100
11102
|
remove: p
|
|
11101
11103
|
});
|
|
@@ -11118,13 +11120,13 @@ function Ma({
|
|
|
11118
11120
|
I.name = "mnemonic", I.autocomplete = "off", I.required = !0, cr(e, E, "Mnemonic", I);
|
|
11119
11121
|
const S = e.createElement("button");
|
|
11120
11122
|
S.type = "submit", S.dataset.walletAction = "confirm-legacy-mnemonic", S.textContent = t;
|
|
11121
|
-
const
|
|
11122
|
-
|
|
11123
|
+
const P = e.createElement("button");
|
|
11124
|
+
P.type = "button", P.dataset.walletAction = "cancel-legacy-migration", P.textContent = "Cancel", E.append(S, P), l.append(b, E), a.append(l);
|
|
11123
11125
|
let T = !1, F, D;
|
|
11124
11126
|
const j = new Promise(($, X) => {
|
|
11125
11127
|
F = $, D = X;
|
|
11126
11128
|
}), Y = () => {
|
|
11127
|
-
E.removeEventListener?.("submit", U),
|
|
11129
|
+
E.removeEventListener?.("submit", U), P.removeEventListener?.("click", V);
|
|
11128
11130
|
}, N = () => {
|
|
11129
11131
|
Y(), Ln(E, [I]), l.remove?.();
|
|
11130
11132
|
}, x = () => {
|
|
@@ -11134,7 +11136,7 @@ function Ma({
|
|
|
11134
11136
|
}, V = ($) => {
|
|
11135
11137
|
$?.isTrusted === !0 && x();
|
|
11136
11138
|
};
|
|
11137
|
-
E.addEventListener("submit", U),
|
|
11139
|
+
E.addEventListener("submit", U), P.addEventListener("click", V);
|
|
11138
11140
|
try {
|
|
11139
11141
|
I.focus?.();
|
|
11140
11142
|
} catch {
|
|
@@ -11171,13 +11173,13 @@ function lh({ document: e, mount: n = null, title: t = "Choose legacy wallet pro
|
|
|
11171
11173
|
cr(e, E, "Legacy profile", I);
|
|
11172
11174
|
const S = e.createElement("button");
|
|
11173
11175
|
S.type = "submit", S.dataset.walletAction = "continue-legacy-login", S.textContent = "Continue";
|
|
11174
|
-
const
|
|
11175
|
-
|
|
11176
|
+
const P = e.createElement("button");
|
|
11177
|
+
P.type = "button", P.dataset.walletAction = "cancel-legacy-login", P.textContent = "Cancel", E.append(S, P), a.append(l, b, E), s.append(a);
|
|
11176
11178
|
let T = !1, F, D;
|
|
11177
11179
|
const j = new Promise(($, X) => {
|
|
11178
11180
|
F = $, D = X;
|
|
11179
11181
|
}), Y = () => {
|
|
11180
|
-
E.removeEventListener?.("submit", U),
|
|
11182
|
+
E.removeEventListener?.("submit", U), P.removeEventListener?.("click", V);
|
|
11181
11183
|
}, N = () => {
|
|
11182
11184
|
try {
|
|
11183
11185
|
I.value = "";
|
|
@@ -11193,7 +11195,7 @@ function lh({ document: e, mount: n = null, title: t = "Choose legacy wallet pro
|
|
|
11193
11195
|
}, V = ($) => {
|
|
11194
11196
|
$?.isTrusted === !0 && x();
|
|
11195
11197
|
};
|
|
11196
|
-
E.addEventListener("submit", U),
|
|
11198
|
+
E.addEventListener("submit", U), P.addEventListener("click", V);
|
|
11197
11199
|
try {
|
|
11198
11200
|
I.focus?.();
|
|
11199
11201
|
} catch {
|
|
@@ -11245,7 +11247,7 @@ function dh({
|
|
|
11245
11247
|
}) {
|
|
11246
11248
|
const S = t.createElement("section");
|
|
11247
11249
|
S.className = "wallet-account";
|
|
11248
|
-
const
|
|
11250
|
+
const P = t.createElement("div"), T = $u(P, s, { document: t }), F = t.createElement("section");
|
|
11249
11251
|
F.className = "wallet-approval-card";
|
|
11250
11252
|
const D = t.createElement("h2");
|
|
11251
11253
|
D.textContent = "Asset review approval";
|
|
@@ -11271,7 +11273,7 @@ function dh({
|
|
|
11271
11273
|
controller: n,
|
|
11272
11274
|
document: t
|
|
11273
11275
|
}), _ = t.createElement("p");
|
|
11274
|
-
_.className = "wallet-account-exit-status", S.append(
|
|
11276
|
+
_.className = "wallet-account-exit-status", S.append(P, F), K && S.append(K), ne?.hasEntries && S.append(ne.container), S.append(U, x, V), b.replaceChildren(S);
|
|
11275
11277
|
const f = new Wu({
|
|
11276
11278
|
credentialRound: async (Ae) => {
|
|
11277
11279
|
const Be = l({
|
|
@@ -11344,7 +11346,7 @@ function dh({
|
|
|
11344
11346
|
}
|
|
11345
11347
|
const yt = le;
|
|
11346
11348
|
Z = !0, ie += 1, Me(), $.result.textContent = "Enter the selected legacy credentials to compare accounts.";
|
|
11347
|
-
let Qe = null, Ht,
|
|
11349
|
+
let Qe = null, Ht, Pn, Rn, Pe = null;
|
|
11348
11350
|
try {
|
|
11349
11351
|
let Nn;
|
|
11350
11352
|
if (Be === "password-fast-v1-legacy") {
|
|
@@ -11358,9 +11360,9 @@ function dh({
|
|
|
11358
11360
|
ue(yt);
|
|
11359
11361
|
const It = Xe?.usernameControl?.value, fn = Xe?.passwordControl?.value;
|
|
11360
11362
|
if (!hi(It) || !hi(fn)) throw new Error("invalid legacy credentials");
|
|
11361
|
-
Ht = Oe(fi.encode(It)),
|
|
11363
|
+
Ht = Oe(fi.encode(It)), Pn = Oe(fi.encode(fn));
|
|
11362
11364
|
const Qt = Xe?.usernameControl?.form ?? Xe?.passwordControl?.form ?? Qe?.form, ti = Qt?.parentNode;
|
|
11363
|
-
Ln(Qt, [Xe?.usernameControl, Xe?.passwordControl]), ti?.remove?.(), Nn = { passwordUtf8:
|
|
11365
|
+
Ln(Qt, [Xe?.usernameControl, Xe?.passwordControl]), ti?.remove?.(), Nn = { passwordUtf8: Pn, usernameUtf8: Ht };
|
|
11364
11366
|
} else {
|
|
11365
11367
|
Qe = Ma({ document: t, mount: b }), h.add(Qe);
|
|
11366
11368
|
const Xe = await Qe.promise;
|
|
@@ -11369,7 +11371,7 @@ function dh({
|
|
|
11369
11371
|
if (!hi(It)) throw new Error("invalid legacy credentials");
|
|
11370
11372
|
Rn = Oe(fi.encode(It)), Ln(Xe.form, [Xe.mnemonicControl]), Xe.section?.remove?.(), Nn = { mnemonicUtf8: Rn };
|
|
11371
11373
|
}
|
|
11372
|
-
if (Qe?.promise && h.delete(Qe),
|
|
11374
|
+
if (Qe?.promise && h.delete(Qe), Pe = await qu({
|
|
11373
11375
|
accountIndex: 0,
|
|
11374
11376
|
credentials: Nn,
|
|
11375
11377
|
operation: "sdn.auth.raw-challenge.v1",
|
|
@@ -11377,19 +11379,19 @@ function dh({
|
|
|
11377
11379
|
wasm: I,
|
|
11378
11380
|
assertCurrent: () => ue(yt),
|
|
11379
11381
|
ownHandle: (Xe) => p.add(Xe)
|
|
11380
|
-
}), ue(yt), !
|
|
11381
|
-
const Tn = Be === "password-fast-v1-legacy" ? "sdn-fast-password-auth-v1-legacy" : "sdn-bip39-auth-v1-legacy", _t = Array.isArray(
|
|
11382
|
-
if (
|
|
11382
|
+
}), ue(yt), !Pe?.handle) throw new Error("legacy derivation failed");
|
|
11383
|
+
const Tn = Be === "password-fast-v1-legacy" ? "sdn-fast-password-auth-v1-legacy" : "sdn-bip39-auth-v1-legacy", _t = Array.isArray(Pe.identity?.keys) ? Pe.identity.keys.find((Xe) => Xe?.purpose === "sdn-authentication") : null;
|
|
11384
|
+
if (Pe.identity?.identityScheme !== Tn || Pe.identity?.seedProfile !== Be || typeof Pe.identity?.accountXpub != "string" || !_t || typeof _t.publicKeyHex != "string" || !/^[0-9a-f]{64}$/u.test(_t.publicKeyHex))
|
|
11383
11385
|
throw new Error("legacy identity invalid");
|
|
11384
|
-
const gr =
|
|
11385
|
-
if (!nt(
|
|
11386
|
-
|
|
11386
|
+
const gr = Pe.identity;
|
|
11387
|
+
if (!nt(Pe.handle)) throw new Error("legacy destruction failed");
|
|
11388
|
+
Pe = null, ue(yt);
|
|
11387
11389
|
const Wt = s.keys.find((Xe) => Xe.purpose === "sdn-authentication");
|
|
11388
11390
|
$.result.replaceChildren(), Nr(t, $.result, "Current account xpub", s.accountXpub), Nr(t, $.result, "Legacy account xpub", gr.accountXpub), Nr(t, $.result, "Current authentication key", Wt?.publicKeyHex), Nr(t, $.result, "Legacy authentication key", _t.publicKeyHex);
|
|
11389
11391
|
} catch {
|
|
11390
11392
|
ye(yt) && ($.result.textContent = "Legacy account comparison could not be completed.");
|
|
11391
11393
|
} finally {
|
|
11392
|
-
|
|
11394
|
+
Pe?.handle && nt(Pe.handle), Qe?.promise && h.delete(Qe), Le(Ht), Le(Pn), Le(Rn), Ut(), ie -= 1, Z = !1, ye(yt) && Me();
|
|
11393
11395
|
}
|
|
11394
11396
|
}, Mt = () => {
|
|
11395
11397
|
if (H) {
|
|
@@ -11402,7 +11404,7 @@ function dh({
|
|
|
11402
11404
|
} catch {
|
|
11403
11405
|
}
|
|
11404
11406
|
}
|
|
11405
|
-
},
|
|
11407
|
+
}, kt = (Ae) => {
|
|
11406
11408
|
if (!(!H || Ae?.isTrusted !== !0 || m || Z || z || se || L)) {
|
|
11407
11409
|
Mt(), H.confirmationGroup.hidden = !1, H.status.textContent = `Type ${H.confirmationKey} to confirm.`;
|
|
11408
11410
|
try {
|
|
@@ -11431,7 +11433,7 @@ function dh({
|
|
|
11431
11433
|
if (L)
|
|
11432
11434
|
ze();
|
|
11433
11435
|
else {
|
|
11434
|
-
L = !0, le += 1, N.disabled = !0, $.launch.disabled = !0, H && (H.launch.disabled = !0, H.confirm.disabled = !0, H.cancel.disabled = !0, Mt(), H.launch.removeEventListener?.("click",
|
|
11436
|
+
L = !0, le += 1, N.disabled = !0, $.launch.disabled = !0, H && (H.launch.disabled = !0, H.confirm.disabled = !0, H.cancel.disabled = !0, Mt(), H.launch.removeEventListener?.("click", kt), H.confirm.removeEventListener?.("click", Vt), H.cancel.removeEventListener?.("click", Bt)), ne?.destroy?.(), ze(), N.removeEventListener?.("click", Ft), $.launch.removeEventListener?.("click", Lt);
|
|
11435
11437
|
for (const Be of h) Be.cancel?.();
|
|
11436
11438
|
h.clear();
|
|
11437
11439
|
}
|
|
@@ -11439,7 +11441,7 @@ function dh({
|
|
|
11439
11441
|
}, un = () => {
|
|
11440
11442
|
const Ae = f.destroy(), Be = Ut();
|
|
11441
11443
|
return Ae && Be && ie === 0 && !Z && !m;
|
|
11442
|
-
}, At = () => (lt(!1), be || (be = !0, U.disabled = !0, x.disabled = !0, U.removeEventListener?.("click", Jt), x.removeEventListener?.("click", yr), S.remove?.()), un()),
|
|
11444
|
+
}, At = () => (lt(!1), be || (be = !0, U.disabled = !0, x.disabled = !0, U.removeEventListener?.("click", Jt), x.removeEventListener?.("click", yr), S.remove?.()), un()), kn = (Ae, Be, yt, { requireTrustedEvent: Qe = !0 } = {}) => Qe && Ae?.isTrusted !== !0 ? Promise.resolve() : B || (R || be ? Promise.reject(new He("STALE_CONTROLLER")) : (lt(!0), un() ? (R = !0, U.disabled = !0, x.disabled = !0, B = (async () => {
|
|
11443
11445
|
E(), Ba(t, null, yt, b);
|
|
11444
11446
|
try {
|
|
11445
11447
|
const Ht = await Be();
|
|
@@ -11449,23 +11451,23 @@ function dh({
|
|
|
11449
11451
|
throw a() && Va(t, void 0, b), Ht;
|
|
11450
11452
|
}
|
|
11451
11453
|
})(), B) : (_.textContent = "Secure cleanup is still pending. Retry Return or Logout.", U.disabled = !1, x.disabled = !1, Promise.reject(new He("DESTRUCTION_FAILED"))))), Jt = (Ae) => {
|
|
11452
|
-
|
|
11454
|
+
kn(
|
|
11453
11455
|
Ae,
|
|
11454
11456
|
() => n.returnToSite(),
|
|
11455
11457
|
"Returning to the requesting site."
|
|
11456
11458
|
).catch(() => {
|
|
11457
11459
|
});
|
|
11458
11460
|
}, yr = (Ae) => {
|
|
11459
|
-
|
|
11461
|
+
kn(
|
|
11460
11462
|
Ae,
|
|
11461
11463
|
() => n.logout(),
|
|
11462
11464
|
"Logged out. Returning to the requesting site."
|
|
11463
11465
|
).catch(() => {
|
|
11464
11466
|
});
|
|
11465
11467
|
};
|
|
11466
|
-
return N.addEventListener("click", Ft), $.launch.addEventListener("click", Lt), H?.launch.addEventListener?.("click",
|
|
11468
|
+
return N.addEventListener("click", Ft), $.launch.addEventListener("click", Lt), H?.launch.addEventListener?.("click", kt), H?.confirm.addEventListener?.("click", Vt), H?.cancel.addEventListener?.("click", Bt), U.addEventListener("click", Jt), x.addEventListener("click", yr), Object.freeze({
|
|
11467
11469
|
destroy: At,
|
|
11468
|
-
logout: () =>
|
|
11470
|
+
logout: () => kn(
|
|
11469
11471
|
null,
|
|
11470
11472
|
() => n.logout(),
|
|
11471
11473
|
"Logged out. Returning to the requesting site.",
|
|
@@ -11491,9 +11493,9 @@ function uh(e) {
|
|
|
11491
11493
|
relay: l,
|
|
11492
11494
|
window: n
|
|
11493
11495
|
}), I = e?.credentialPrompt ?? ((h) => ch(h));
|
|
11494
|
-
let S = null,
|
|
11496
|
+
let S = null, P = null, T = null, F = null, D = null, j = [], Y = 0, N = !1;
|
|
11495
11497
|
const x = () => {
|
|
11496
|
-
(S?.destroy?.() ?? !0) && (S = null),
|
|
11498
|
+
(S?.destroy?.() ?? !0) && (S = null), P = null;
|
|
11497
11499
|
}, U = () => {
|
|
11498
11500
|
try {
|
|
11499
11501
|
s?.replaceChildren?.();
|
|
@@ -11526,7 +11528,7 @@ function uh(e) {
|
|
|
11526
11528
|
}), Object.freeze({
|
|
11527
11529
|
controller: E,
|
|
11528
11530
|
logout() {
|
|
11529
|
-
return S ? S.logout() : ($(), T?.cancel?.(), T = null,
|
|
11531
|
+
return S ? S.logout() : ($(), T?.cancel?.(), T = null, P = null, E.logout());
|
|
11530
11532
|
},
|
|
11531
11533
|
start() {
|
|
11532
11534
|
if (F) return F;
|
|
@@ -11568,7 +11570,7 @@ function uh(e) {
|
|
|
11568
11570
|
operation: u.transaction.operation,
|
|
11569
11571
|
profile: R
|
|
11570
11572
|
});
|
|
11571
|
-
K(h),
|
|
11573
|
+
K(h), P = se;
|
|
11572
11574
|
} else {
|
|
11573
11575
|
let L = !1;
|
|
11574
11576
|
for (; ; ) {
|
|
@@ -11585,7 +11587,7 @@ function uh(e) {
|
|
|
11585
11587
|
if (K(h), B?.remembered === !0)
|
|
11586
11588
|
try {
|
|
11587
11589
|
const se = await E.unlockRemembered();
|
|
11588
|
-
K(h),
|
|
11590
|
+
K(h), P = se;
|
|
11589
11591
|
break;
|
|
11590
11592
|
} catch {
|
|
11591
11593
|
if (!X(h))
|
|
@@ -11594,22 +11596,22 @@ function uh(e) {
|
|
|
11594
11596
|
continue;
|
|
11595
11597
|
}
|
|
11596
11598
|
const z = await E.unlockPassword(B);
|
|
11597
|
-
K(h),
|
|
11599
|
+
K(h), P = z;
|
|
11598
11600
|
break;
|
|
11599
11601
|
}
|
|
11600
11602
|
}
|
|
11601
11603
|
const m = await E.executePrepared(u);
|
|
11602
|
-
return K(h), H(T), u.transaction.operation === "sdn.wallet.account.v1" ? (
|
|
11604
|
+
return K(h), H(T), u.transaction.operation === "sdn.wallet.account.v1" ? (P = E.copyPublicIdentity(), S = dh({
|
|
11603
11605
|
clipboard: e?.clipboard ?? globalThis.navigator?.clipboard,
|
|
11604
11606
|
controller: E,
|
|
11605
11607
|
document: t,
|
|
11606
|
-
identity:
|
|
11608
|
+
identity: P,
|
|
11607
11609
|
isAppCurrent: () => X(h),
|
|
11608
11610
|
makeCredentialPrompt: I,
|
|
11609
11611
|
mount: s,
|
|
11610
11612
|
onClear: x,
|
|
11611
11613
|
wasm: e?.wasm
|
|
11612
|
-
})) : (
|
|
11614
|
+
})) : (P = null, t?.createElement && s?.replaceChildren && Ba(
|
|
11613
11615
|
t,
|
|
11614
11616
|
n,
|
|
11615
11617
|
"The wallet request completed successfully.",
|
|
@@ -11635,7 +11637,7 @@ async function fh(e) {
|
|
|
11635
11637
|
const Vr = document.querySelector("[data-wallet-origin-root]") ?? document.body;
|
|
11636
11638
|
async function hh() {
|
|
11637
11639
|
if (window.top !== window) throw new Error("Wallet origin cannot run in a frame");
|
|
11638
|
-
if (getComputedStyle(document.documentElement).getPropertyValue("--sdn-wallet-origin-style-ready").trim() !== '"2.2.
|
|
11640
|
+
if (getComputedStyle(document.documentElement).getPropertyValue("--sdn-wallet-origin-style-ready").trim() !== '"2.2.2"') throw new Error("Wallet origin style integrity failed");
|
|
11639
11641
|
const n = await Wd();
|
|
11640
11642
|
await fh({ document, mount: Vr, wasm: n, window });
|
|
11641
11643
|
}
|
|
@@ -11655,8 +11657,8 @@ var ph = (() => {
|
|
|
11655
11657
|
});
|
|
11656
11658
|
var l = Object.assign({}, t), b = "./this.program", E = typeof window == "object", I = typeof importScripts == "function";
|
|
11657
11659
|
typeof process == "object" && typeof process.versions == "object" && process.versions.node;
|
|
11658
|
-
var S = "",
|
|
11659
|
-
(E || I) && (I ? S = self.location.href : typeof document < "u" && document.currentScript && (S = document.currentScript.src), e && (S = e), S.indexOf("blob:") !== 0 ? S = S.substr(0, S.replace(/[?#].*/, "").lastIndexOf("/") + 1) : S = "",
|
|
11660
|
+
var S = "", P, T, F;
|
|
11661
|
+
(E || I) && (I ? S = self.location.href : typeof document < "u" && document.currentScript && (S = document.currentScript.src), e && (S = e), S.indexOf("blob:") !== 0 ? S = S.substr(0, S.replace(/[?#].*/, "").lastIndexOf("/") + 1) : S = "", P = (r) => {
|
|
11660
11662
|
var i = new XMLHttpRequest();
|
|
11661
11663
|
return i.open("GET", r, !1), i.send(null), i.responseText;
|
|
11662
11664
|
}, I && (F = (r) => {
|
|
@@ -11830,12 +11832,12 @@ var ph = (() => {
|
|
|
11830
11832
|
ue(`invalid type for setValue: ${o}`);
|
|
11831
11833
|
}
|
|
11832
11834
|
}
|
|
11833
|
-
var
|
|
11835
|
+
var kt = [], Bt = 0, Vt = (r) => {
|
|
11834
11836
|
var i = new At(r);
|
|
11835
|
-
return i.get_caught() || (i.set_caught(!0), Bt--), i.set_rethrown(!1),
|
|
11837
|
+
return i.get_caught() || (i.set_caught(!0), Bt--), i.set_rethrown(!1), kt.push(i), hs(i.excPtr), i.get_exception_ptr();
|
|
11836
11838
|
}, lt = 0, un = () => {
|
|
11837
11839
|
Ie(0, 0);
|
|
11838
|
-
var r =
|
|
11840
|
+
var r = kt.pop();
|
|
11839
11841
|
fs(r.excPtr), lt = 0;
|
|
11840
11842
|
};
|
|
11841
11843
|
function At(r) {
|
|
@@ -11869,7 +11871,7 @@ var ph = (() => {
|
|
|
11869
11871
|
return o !== 0 ? o : this.excPtr;
|
|
11870
11872
|
};
|
|
11871
11873
|
}
|
|
11872
|
-
var
|
|
11874
|
+
var kn = (r) => {
|
|
11873
11875
|
throw lt || (lt = r), lt;
|
|
11874
11876
|
}, Jt = (r) => {
|
|
11875
11877
|
var i = lt;
|
|
@@ -11890,14 +11892,14 @@ var ph = (() => {
|
|
|
11890
11892
|
}
|
|
11891
11893
|
return Cn(c), i;
|
|
11892
11894
|
}, yr = () => Jt([]), Ae = (r) => Jt([r]), Be = (r, i) => Jt([r, i]), yt = (r, i, o) => Jt([r, i, o]), Qe = () => {
|
|
11893
|
-
var r =
|
|
11895
|
+
var r = kt.pop();
|
|
11894
11896
|
r || ue("no exception to throw");
|
|
11895
11897
|
var i = r.excPtr;
|
|
11896
|
-
throw r.get_rethrown() || (
|
|
11898
|
+
throw r.get_rethrown() || (kt.push(r), r.set_rethrown(!0), r.set_caught(!1), Bt++), lt = i, lt;
|
|
11897
11899
|
}, Ht = (r, i, o) => {
|
|
11898
11900
|
var c = new At(r);
|
|
11899
11901
|
throw c.init(i, o), lt = r, Bt++, lt;
|
|
11900
|
-
},
|
|
11902
|
+
}, Pn = () => Bt, Rn = (r) => (K[us() >> 2] = r, r), Pe = { isAbs: (r) => r.charAt(0) === "/", splitPath: (r) => {
|
|
11901
11903
|
var i = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
|
|
11902
11904
|
return i.exec(r).slice(1);
|
|
11903
11905
|
}, normalizeArray: (r, i) => {
|
|
@@ -11910,20 +11912,20 @@ var ph = (() => {
|
|
|
11910
11912
|
r.unshift("..");
|
|
11911
11913
|
return r;
|
|
11912
11914
|
}, normalize: (r) => {
|
|
11913
|
-
var i =
|
|
11914
|
-
return r =
|
|
11915
|
+
var i = Pe.isAbs(r), o = r.substr(-1) === "/";
|
|
11916
|
+
return r = Pe.normalizeArray(r.split("/").filter((c) => !!c), !i).join("/"), !r && !i && (r = "."), r && o && (r += "/"), (i ? "/" : "") + r;
|
|
11915
11917
|
}, dirname: (r) => {
|
|
11916
|
-
var i =
|
|
11918
|
+
var i = Pe.splitPath(r), o = i[0], c = i[1];
|
|
11917
11919
|
return !o && !c ? "." : (c && (c = c.substr(0, c.length - 1)), o + c);
|
|
11918
11920
|
}, basename: (r) => {
|
|
11919
11921
|
if (r === "/") return "/";
|
|
11920
|
-
r =
|
|
11922
|
+
r = Pe.normalize(r), r = r.replace(/\/$/, "");
|
|
11921
11923
|
var i = r.lastIndexOf("/");
|
|
11922
11924
|
return i === -1 ? r : r.substr(i + 1);
|
|
11923
11925
|
}, join: function() {
|
|
11924
11926
|
var r = Array.prototype.slice.call(arguments);
|
|
11925
|
-
return
|
|
11926
|
-
}, join2: (r, i) =>
|
|
11927
|
+
return Pe.normalize(r.join("/"));
|
|
11928
|
+
}, join2: (r, i) => Pe.normalize(r + "/" + i) }, Nn = () => {
|
|
11927
11929
|
if (typeof crypto == "object" && typeof crypto.getRandomValues == "function")
|
|
11928
11930
|
return (r) => crypto.getRandomValues(r);
|
|
11929
11931
|
ue("initRandomDevice");
|
|
@@ -11934,9 +11936,9 @@ var ph = (() => {
|
|
|
11934
11936
|
throw new TypeError("Arguments to path.resolve must be strings");
|
|
11935
11937
|
if (!c)
|
|
11936
11938
|
return "";
|
|
11937
|
-
r = c + "/" + r, i =
|
|
11939
|
+
r = c + "/" + r, i = Pe.isAbs(c);
|
|
11938
11940
|
}
|
|
11939
|
-
return r =
|
|
11941
|
+
return r = Pe.normalizeArray(r.split("/").filter((d) => !!d), !i).join("/"), (i ? "/" : "") + r || ".";
|
|
11940
11942
|
}, relative: (r, i) => {
|
|
11941
11943
|
r = _t.resolve(r).substr(1), i = _t.resolve(i).substr(1);
|
|
11942
11944
|
function o(q) {
|
|
@@ -11946,12 +11948,12 @@ var ph = (() => {
|
|
|
11946
11948
|
;
|
|
11947
11949
|
return re > he ? [] : q.slice(re, he - re + 1);
|
|
11948
11950
|
}
|
|
11949
|
-
for (var c = o(r.split("/")), d = o(i.split("/")), y = Math.min(c.length, d.length), A = y,
|
|
11950
|
-
if (c[
|
|
11951
|
-
A =
|
|
11951
|
+
for (var c = o(r.split("/")), d = o(i.split("/")), y = Math.min(c.length, d.length), A = y, k = 0; k < y; k++)
|
|
11952
|
+
if (c[k] !== d[k]) {
|
|
11953
|
+
A = k;
|
|
11952
11954
|
break;
|
|
11953
11955
|
}
|
|
11954
|
-
for (var M = [],
|
|
11956
|
+
for (var M = [], k = A; k < c.length; k++)
|
|
11955
11957
|
M.push("..");
|
|
11956
11958
|
return M = M.concat(d.slice(A)), M.join("/");
|
|
11957
11959
|
} }, gr = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, Wt = (r, i, o) => {
|
|
@@ -11964,13 +11966,13 @@ var ph = (() => {
|
|
|
11964
11966
|
y += String.fromCharCode(A);
|
|
11965
11967
|
continue;
|
|
11966
11968
|
}
|
|
11967
|
-
var
|
|
11969
|
+
var k = r[i++] & 63;
|
|
11968
11970
|
if ((A & 224) == 192) {
|
|
11969
|
-
y += String.fromCharCode((A & 31) << 6 |
|
|
11971
|
+
y += String.fromCharCode((A & 31) << 6 | k);
|
|
11970
11972
|
continue;
|
|
11971
11973
|
}
|
|
11972
11974
|
var M = r[i++] & 63;
|
|
11973
|
-
if ((A & 240) == 224 ? A = (A & 15) << 12 |
|
|
11975
|
+
if ((A & 240) == 224 ? A = (A & 15) << 12 | k << 6 | M : A = (A & 7) << 18 | k << 12 | M << 6 | r[i++] & 63, A < 65536)
|
|
11974
11976
|
y += String.fromCharCode(A);
|
|
11975
11977
|
else {
|
|
11976
11978
|
var q = A - 65536;
|
|
@@ -11987,23 +11989,23 @@ var ph = (() => {
|
|
|
11987
11989
|
}, fn = (r, i, o, c) => {
|
|
11988
11990
|
if (!(c > 0)) return 0;
|
|
11989
11991
|
for (var d = o, y = o + c - 1, A = 0; A < r.length; ++A) {
|
|
11990
|
-
var
|
|
11991
|
-
if (
|
|
11992
|
+
var k = r.charCodeAt(A);
|
|
11993
|
+
if (k >= 55296 && k <= 57343) {
|
|
11992
11994
|
var M = r.charCodeAt(++A);
|
|
11993
|
-
|
|
11995
|
+
k = 65536 + ((k & 1023) << 10) | M & 1023;
|
|
11994
11996
|
}
|
|
11995
|
-
if (
|
|
11997
|
+
if (k <= 127) {
|
|
11996
11998
|
if (o >= y) break;
|
|
11997
|
-
i[o++] =
|
|
11998
|
-
} else if (
|
|
11999
|
+
i[o++] = k;
|
|
12000
|
+
} else if (k <= 2047) {
|
|
11999
12001
|
if (o + 1 >= y) break;
|
|
12000
|
-
i[o++] = 192 |
|
|
12001
|
-
} else if (
|
|
12002
|
+
i[o++] = 192 | k >> 6, i[o++] = 128 | k & 63;
|
|
12003
|
+
} else if (k <= 65535) {
|
|
12002
12004
|
if (o + 2 >= y) break;
|
|
12003
|
-
i[o++] = 224 |
|
|
12005
|
+
i[o++] = 224 | k >> 12, i[o++] = 128 | k >> 6 & 63, i[o++] = 128 | k & 63;
|
|
12004
12006
|
} else {
|
|
12005
12007
|
if (o + 3 >= y) break;
|
|
12006
|
-
i[o++] = 240 |
|
|
12008
|
+
i[o++] = 240 | k >> 18, i[o++] = 128 | k >> 12 & 63, i[o++] = 128 | k >> 6 & 63, i[o++] = 128 | k & 63;
|
|
12007
12009
|
}
|
|
12008
12010
|
}
|
|
12009
12011
|
return i[o] = 0, o - d;
|
|
@@ -12039,16 +12041,16 @@ var ph = (() => {
|
|
|
12039
12041
|
if (!r.tty || !r.tty.ops.get_char)
|
|
12040
12042
|
throw new g.ErrnoError(60);
|
|
12041
12043
|
for (var y = 0, A = 0; A < c; A++) {
|
|
12042
|
-
var
|
|
12044
|
+
var k;
|
|
12043
12045
|
try {
|
|
12044
|
-
|
|
12046
|
+
k = r.tty.ops.get_char(r.tty);
|
|
12045
12047
|
} catch {
|
|
12046
12048
|
throw new g.ErrnoError(29);
|
|
12047
12049
|
}
|
|
12048
|
-
if (
|
|
12050
|
+
if (k === void 0 && y === 0)
|
|
12049
12051
|
throw new g.ErrnoError(6);
|
|
12050
|
-
if (
|
|
12051
|
-
y++, i[o + A] =
|
|
12052
|
+
if (k == null) break;
|
|
12053
|
+
y++, i[o + A] = k;
|
|
12052
12054
|
}
|
|
12053
12055
|
return y && (r.node.timestamp = Date.now()), y;
|
|
12054
12056
|
}, write(r, i, o, c, d) {
|
|
@@ -12152,7 +12154,7 @@ var ph = (() => {
|
|
|
12152
12154
|
if (A > 8 && y.subarray)
|
|
12153
12155
|
i.set(y.subarray(d, d + A), o);
|
|
12154
12156
|
else
|
|
12155
|
-
for (var
|
|
12157
|
+
for (var k = 0; k < A; k++) i[o + k] = y[d + k];
|
|
12156
12158
|
return A;
|
|
12157
12159
|
}, write(r, i, o, c, d, y) {
|
|
12158
12160
|
if (i.buffer === V.buffer && (y = !1), !c) return 0;
|
|
@@ -12168,8 +12170,8 @@ var ph = (() => {
|
|
|
12168
12170
|
if (Ne.expandFileStorage(A, d + c), A.contents.subarray && i.subarray)
|
|
12169
12171
|
A.contents.set(i.subarray(o, o + c), d);
|
|
12170
12172
|
else
|
|
12171
|
-
for (var
|
|
12172
|
-
A.contents[d +
|
|
12173
|
+
for (var k = 0; k < c; k++)
|
|
12174
|
+
A.contents[d + k] = i[o + k];
|
|
12173
12175
|
return A.usedBytes = Math.max(A.usedBytes, d + c), c;
|
|
12174
12176
|
}, llseek(r, i, o) {
|
|
12175
12177
|
var c = i;
|
|
@@ -12181,13 +12183,13 @@ var ph = (() => {
|
|
|
12181
12183
|
}, mmap(r, i, o, c, d) {
|
|
12182
12184
|
if (!g.isFile(r.node.mode))
|
|
12183
12185
|
throw new g.ErrnoError(43);
|
|
12184
|
-
var y, A,
|
|
12185
|
-
if (!(d & 2) &&
|
|
12186
|
-
A = !1, y =
|
|
12186
|
+
var y, A, k = r.node.contents;
|
|
12187
|
+
if (!(d & 2) && k.buffer === V.buffer)
|
|
12188
|
+
A = !1, y = k.byteOffset;
|
|
12187
12189
|
else {
|
|
12188
|
-
if ((o > 0 || o + i <
|
|
12190
|
+
if ((o > 0 || o + i < k.length) && (k.subarray ? k = k.subarray(o, o + i) : k = Array.prototype.slice.call(k, o, o + i)), A = !0, y = es(), !y)
|
|
12189
12191
|
throw new g.ErrnoError(48);
|
|
12190
|
-
V.set(
|
|
12192
|
+
V.set(k, y);
|
|
12191
12193
|
}
|
|
12192
12194
|
return { ptr: y, allocated: A };
|
|
12193
12195
|
}, msync(r, i, o, c, d) {
|
|
@@ -12210,11 +12212,11 @@ var ph = (() => {
|
|
|
12210
12212
|
return Ka.forEach((y) => {
|
|
12211
12213
|
d || y.canHandle(i) && (y.handle(r, i, o, c), d = !0);
|
|
12212
12214
|
}), d;
|
|
12213
|
-
}, ja = (r, i, o, c, d, y, A,
|
|
12214
|
-
var re = i ? _t.resolve(
|
|
12215
|
+
}, ja = (r, i, o, c, d, y, A, k, M, q) => {
|
|
12216
|
+
var re = i ? _t.resolve(Pe.join2(r, i)) : r;
|
|
12215
12217
|
function he(ee) {
|
|
12216
12218
|
function de(Ee) {
|
|
12217
|
-
q?.(),
|
|
12219
|
+
q?.(), k || $a(r, i, Ee, c, d, M), y?.(), ye();
|
|
12218
12220
|
}
|
|
12219
12221
|
za(ee, re, de, () => {
|
|
12220
12222
|
A?.(), ye();
|
|
@@ -12235,13 +12237,13 @@ var ph = (() => {
|
|
|
12235
12237
|
if (i = Object.assign(o, i), i.recurse_count > 8)
|
|
12236
12238
|
throw new g.ErrnoError(32);
|
|
12237
12239
|
for (var c = r.split("/").filter((he) => !!he), d = g.root, y = "/", A = 0; A < c.length; A++) {
|
|
12238
|
-
var
|
|
12239
|
-
if (
|
|
12240
|
+
var k = A === c.length - 1;
|
|
12241
|
+
if (k && i.parent)
|
|
12240
12242
|
break;
|
|
12241
|
-
if (d = g.lookupNode(d, c[A]), y =
|
|
12243
|
+
if (d = g.lookupNode(d, c[A]), y = Pe.join2(y, c[A]), g.isMountpoint(d) && (!k || k && i.follow_mount) && (d = d.mounted.root), !k || i.follow)
|
|
12242
12244
|
for (var M = 0; g.isLink(d.mode); ) {
|
|
12243
12245
|
var q = g.readlink(y);
|
|
12244
|
-
y = _t.resolve(
|
|
12246
|
+
y = _t.resolve(Pe.dirname(y), q);
|
|
12245
12247
|
var re = g.lookupPath(y, { recurse_count: i.recurse_count + 1 });
|
|
12246
12248
|
if (d = re.node, M++ > 40)
|
|
12247
12249
|
throw new g.ErrnoError(32);
|
|
@@ -12417,17 +12419,17 @@ var ph = (() => {
|
|
|
12417
12419
|
if (!g.isDir(y.mode))
|
|
12418
12420
|
throw new g.ErrnoError(54);
|
|
12419
12421
|
}
|
|
12420
|
-
var
|
|
12421
|
-
return M.mount =
|
|
12422
|
+
var k = { type: r, opts: i, mountpoint: o, mounts: [] }, M = r.mount(k);
|
|
12423
|
+
return M.mount = k, k.root = M, c ? g.root = M : y && (y.mounted = k, y.mount && y.mount.mounts.push(k)), M;
|
|
12422
12424
|
}, unmount(r) {
|
|
12423
12425
|
var i = g.lookupPath(r, { follow_mount: !1 });
|
|
12424
12426
|
if (!g.isMountpoint(i.node))
|
|
12425
12427
|
throw new g.ErrnoError(28);
|
|
12426
12428
|
var o = i.node, c = o.mounted, d = g.getMounts(c);
|
|
12427
12429
|
Object.keys(g.nameTable).forEach((A) => {
|
|
12428
|
-
for (var
|
|
12429
|
-
var M =
|
|
12430
|
-
d.includes(
|
|
12430
|
+
for (var k = g.nameTable[A]; k; ) {
|
|
12431
|
+
var M = k.name_next;
|
|
12432
|
+
d.includes(k.mount) && g.destroyNode(k), k = M;
|
|
12431
12433
|
}
|
|
12432
12434
|
}), o.mounted = null;
|
|
12433
12435
|
var y = o.mount.mounts.indexOf(c);
|
|
@@ -12435,7 +12437,7 @@ var ph = (() => {
|
|
|
12435
12437
|
}, lookup(r, i) {
|
|
12436
12438
|
return r.node_ops.lookup(r, i);
|
|
12437
12439
|
}, mknod(r, i, o) {
|
|
12438
|
-
var c = g.lookupPath(r, { parent: !0 }), d = c.node, y =
|
|
12440
|
+
var c = g.lookupPath(r, { parent: !0 }), d = c.node, y = Pe.basename(r);
|
|
12439
12441
|
if (!y || y === "." || y === "..")
|
|
12440
12442
|
throw new g.ErrnoError(28);
|
|
12441
12443
|
var A = g.mayCreate(d, y);
|
|
@@ -12466,18 +12468,18 @@ var ph = (() => {
|
|
|
12466
12468
|
var o = g.lookupPath(i, { parent: !0 }), c = o.node;
|
|
12467
12469
|
if (!c)
|
|
12468
12470
|
throw new g.ErrnoError(44);
|
|
12469
|
-
var d =
|
|
12471
|
+
var d = Pe.basename(i), y = g.mayCreate(c, d);
|
|
12470
12472
|
if (y)
|
|
12471
12473
|
throw new g.ErrnoError(y);
|
|
12472
12474
|
if (!c.node_ops.symlink)
|
|
12473
12475
|
throw new g.ErrnoError(63);
|
|
12474
12476
|
return c.node_ops.symlink(c, d, r);
|
|
12475
12477
|
}, rename(r, i) {
|
|
12476
|
-
var o =
|
|
12477
|
-
if (A = g.lookupPath(r, { parent: !0 }),
|
|
12478
|
-
if (
|
|
12478
|
+
var o = Pe.dirname(r), c = Pe.dirname(i), d = Pe.basename(r), y = Pe.basename(i), A, k, M;
|
|
12479
|
+
if (A = g.lookupPath(r, { parent: !0 }), k = A.node, A = g.lookupPath(i, { parent: !0 }), M = A.node, !k || !M) throw new g.ErrnoError(44);
|
|
12480
|
+
if (k.mount !== M.mount)
|
|
12479
12481
|
throw new g.ErrnoError(75);
|
|
12480
|
-
var q = g.lookupNode(
|
|
12482
|
+
var q = g.lookupNode(k, d), re = _t.relative(r, c);
|
|
12481
12483
|
if (re.charAt(0) !== ".")
|
|
12482
12484
|
throw new g.ErrnoError(28);
|
|
12483
12485
|
if (re = _t.relative(i, o), re.charAt(0) !== ".")
|
|
@@ -12488,20 +12490,20 @@ var ph = (() => {
|
|
|
12488
12490
|
} catch {
|
|
12489
12491
|
}
|
|
12490
12492
|
if (q !== he) {
|
|
12491
|
-
var ee = g.isDir(q.mode), de = g.mayDelete(
|
|
12493
|
+
var ee = g.isDir(q.mode), de = g.mayDelete(k, d, ee);
|
|
12492
12494
|
if (de)
|
|
12493
12495
|
throw new g.ErrnoError(de);
|
|
12494
12496
|
if (de = he ? g.mayDelete(M, y, ee) : g.mayCreate(M, y), de)
|
|
12495
12497
|
throw new g.ErrnoError(de);
|
|
12496
|
-
if (!
|
|
12498
|
+
if (!k.node_ops.rename)
|
|
12497
12499
|
throw new g.ErrnoError(63);
|
|
12498
12500
|
if (g.isMountpoint(q) || he && g.isMountpoint(he))
|
|
12499
12501
|
throw new g.ErrnoError(10);
|
|
12500
|
-
if (M !==
|
|
12502
|
+
if (M !== k && (de = g.nodePermissions(k, "w"), de))
|
|
12501
12503
|
throw new g.ErrnoError(de);
|
|
12502
12504
|
g.hashRemoveNode(q);
|
|
12503
12505
|
try {
|
|
12504
|
-
|
|
12506
|
+
k.node_ops.rename(q, M, y);
|
|
12505
12507
|
} catch (Ee) {
|
|
12506
12508
|
throw Ee;
|
|
12507
12509
|
} finally {
|
|
@@ -12509,7 +12511,7 @@ var ph = (() => {
|
|
|
12509
12511
|
}
|
|
12510
12512
|
}
|
|
12511
12513
|
}, rmdir(r) {
|
|
12512
|
-
var i = g.lookupPath(r, { parent: !0 }), o = i.node, c =
|
|
12514
|
+
var i = g.lookupPath(r, { parent: !0 }), o = i.node, c = Pe.basename(r), d = g.lookupNode(o, c), y = g.mayDelete(o, c, !0);
|
|
12513
12515
|
if (y)
|
|
12514
12516
|
throw new g.ErrnoError(y);
|
|
12515
12517
|
if (!o.node_ops.rmdir)
|
|
@@ -12526,7 +12528,7 @@ var ph = (() => {
|
|
|
12526
12528
|
var i = g.lookupPath(r, { parent: !0 }), o = i.node;
|
|
12527
12529
|
if (!o)
|
|
12528
12530
|
throw new g.ErrnoError(44);
|
|
12529
|
-
var c =
|
|
12531
|
+
var c = Pe.basename(r), d = g.lookupNode(o, c), y = g.mayDelete(o, c, !1);
|
|
12530
12532
|
if (y)
|
|
12531
12533
|
throw new g.ErrnoError(y);
|
|
12532
12534
|
if (!o.node_ops.unlink)
|
|
@@ -12615,7 +12617,7 @@ var ph = (() => {
|
|
|
12615
12617
|
if (typeof r == "object")
|
|
12616
12618
|
c = r;
|
|
12617
12619
|
else {
|
|
12618
|
-
r =
|
|
12620
|
+
r = Pe.normalize(r);
|
|
12619
12621
|
try {
|
|
12620
12622
|
var d = g.lookupPath(r, { follow: !(i & 131072) });
|
|
12621
12623
|
c = d.node;
|
|
@@ -12639,8 +12641,8 @@ var ph = (() => {
|
|
|
12639
12641
|
throw new g.ErrnoError(A);
|
|
12640
12642
|
}
|
|
12641
12643
|
i & 512 && !y && g.truncate(c, 0), i &= -131713;
|
|
12642
|
-
var
|
|
12643
|
-
return
|
|
12644
|
+
var k = g.createStream({ node: c, path: g.getPath(c), flags: i, seekable: !0, position: 0, stream_ops: c.stream_ops, ungotten: [], error: !1 });
|
|
12645
|
+
return k.stream_ops.open && k.stream_ops.open(k), t.logReadFiles && !(i & 1) && (g.readFiles || (g.readFiles = {}), r in g.readFiles || (g.readFiles[r] = 1)), k;
|
|
12644
12646
|
}, close(r) {
|
|
12645
12647
|
if (g.isClosed(r))
|
|
12646
12648
|
throw new g.ErrnoError(8);
|
|
@@ -12698,8 +12700,8 @@ var ph = (() => {
|
|
|
12698
12700
|
d = r.position;
|
|
12699
12701
|
else if (!r.seekable)
|
|
12700
12702
|
throw new g.ErrnoError(70);
|
|
12701
|
-
var
|
|
12702
|
-
return A || (r.position +=
|
|
12703
|
+
var k = r.stream_ops.write(r, i, o, c, d, y);
|
|
12704
|
+
return A || (r.position += k), k;
|
|
12703
12705
|
}, allocate(r, i, o) {
|
|
12704
12706
|
if (g.isClosed(r))
|
|
12705
12707
|
throw new g.ErrnoError(8);
|
|
@@ -12755,7 +12757,7 @@ var ph = (() => {
|
|
|
12755
12757
|
}, createDefaultDirectories() {
|
|
12756
12758
|
g.mkdir("/tmp"), g.mkdir("/home"), g.mkdir("/home/web_user");
|
|
12757
12759
|
}, createDefaultDevices() {
|
|
12758
|
-
g.mkdir("/dev"), g.registerDevice(g.makedev(1, 3), { read: () => 0, write: (c, d, y, A,
|
|
12760
|
+
g.mkdir("/dev"), g.registerDevice(g.makedev(1, 3), { read: () => 0, write: (c, d, y, A, k) => A }), g.mkdev("/dev/null", g.makedev(1, 3)), Zt.register(g.makedev(5, 0), Zt.default_tty_ops), Zt.register(g.makedev(6, 0), Zt.default_tty1_ops), g.mkdev("/dev/tty", g.makedev(5, 0)), g.mkdev("/dev/tty1", g.makedev(6, 0));
|
|
12759
12761
|
var r = new Uint8Array(1024), i = 0, o = () => (i === 0 && (i = Tn(r).byteLength), r[--i]);
|
|
12760
12762
|
g.createDevice("/dev", "random", o), g.createDevice("/dev", "urandom", o), g.mkdir("/dev/shm"), g.mkdir("/dev/shm/tmp");
|
|
12761
12763
|
}, createSpecialDirectories() {
|
|
@@ -12800,7 +12802,7 @@ var ph = (() => {
|
|
|
12800
12802
|
var c = { isRoot: !1, exists: !1, error: 0, name: null, path: null, object: null, parentExists: !1, parentPath: null, parentObject: null };
|
|
12801
12803
|
try {
|
|
12802
12804
|
var o = g.lookupPath(r, { parent: !0 });
|
|
12803
|
-
c.parentExists = !0, c.parentPath = o.path, c.parentObject = o.node, c.name =
|
|
12805
|
+
c.parentExists = !0, c.parentPath = o.path, c.parentObject = o.node, c.name = Pe.basename(r), o = g.lookupPath(r, { follow: !i }), c.exists = !0, c.path = o.path, c.object = o.node, c.name = o.node.name, c.isRoot = o.path === "/";
|
|
12804
12806
|
} catch (d) {
|
|
12805
12807
|
c.error = d.errno;
|
|
12806
12808
|
}
|
|
@@ -12810,7 +12812,7 @@ var ph = (() => {
|
|
|
12810
12812
|
for (var d = i.split("/").reverse(); d.length; ) {
|
|
12811
12813
|
var y = d.pop();
|
|
12812
12814
|
if (y) {
|
|
12813
|
-
var A =
|
|
12815
|
+
var A = Pe.join2(r, y);
|
|
12814
12816
|
try {
|
|
12815
12817
|
g.mkdir(A);
|
|
12816
12818
|
} catch {
|
|
@@ -12820,30 +12822,30 @@ var ph = (() => {
|
|
|
12820
12822
|
}
|
|
12821
12823
|
return A;
|
|
12822
12824
|
}, createFile(r, i, o, c, d) {
|
|
12823
|
-
var y =
|
|
12825
|
+
var y = Pe.join2(typeof r == "string" ? r : g.getPath(r), i), A = ni(c, d);
|
|
12824
12826
|
return g.create(y, A);
|
|
12825
12827
|
}, createDataFile(r, i, o, c, d, y) {
|
|
12826
12828
|
var A = i;
|
|
12827
|
-
r && (r = typeof r == "string" ? r : g.getPath(r), A = i ?
|
|
12828
|
-
var
|
|
12829
|
+
r && (r = typeof r == "string" ? r : g.getPath(r), A = i ? Pe.join2(r, i) : r);
|
|
12830
|
+
var k = ni(c, d), M = g.create(A, k);
|
|
12829
12831
|
if (o) {
|
|
12830
12832
|
if (typeof o == "string") {
|
|
12831
12833
|
for (var q = new Array(o.length), re = 0, he = o.length; re < he; ++re) q[re] = o.charCodeAt(re);
|
|
12832
12834
|
o = q;
|
|
12833
12835
|
}
|
|
12834
|
-
g.chmod(M,
|
|
12836
|
+
g.chmod(M, k | 146);
|
|
12835
12837
|
var ee = g.open(M, 577);
|
|
12836
|
-
g.write(ee, o, 0, o.length, 0, y), g.close(ee), g.chmod(M,
|
|
12838
|
+
g.write(ee, o, 0, o.length, 0, y), g.close(ee), g.chmod(M, k);
|
|
12837
12839
|
}
|
|
12838
12840
|
}, createDevice(r, i, o, c) {
|
|
12839
|
-
var d =
|
|
12841
|
+
var d = Pe.join2(typeof r == "string" ? r : g.getPath(r), i), y = ni(!!o, !!c);
|
|
12840
12842
|
g.createDevice.major || (g.createDevice.major = 64);
|
|
12841
12843
|
var A = g.makedev(g.createDevice.major++, 0);
|
|
12842
|
-
return g.registerDevice(A, { open(
|
|
12843
|
-
|
|
12844
|
-
}, close(
|
|
12844
|
+
return g.registerDevice(A, { open(k) {
|
|
12845
|
+
k.seekable = !1;
|
|
12846
|
+
}, close(k) {
|
|
12845
12847
|
c?.buffer?.length && c(10);
|
|
12846
|
-
}, read(
|
|
12848
|
+
}, read(k, M, q, re, he) {
|
|
12847
12849
|
for (var ee = 0, de = 0; de < re; de++) {
|
|
12848
12850
|
var Ee;
|
|
12849
12851
|
try {
|
|
@@ -12856,23 +12858,23 @@ var ph = (() => {
|
|
|
12856
12858
|
if (Ee == null) break;
|
|
12857
12859
|
ee++, M[q + de] = Ee;
|
|
12858
12860
|
}
|
|
12859
|
-
return ee && (
|
|
12860
|
-
}, write(
|
|
12861
|
+
return ee && (k.node.timestamp = Date.now()), ee;
|
|
12862
|
+
}, write(k, M, q, re, he) {
|
|
12861
12863
|
for (var ee = 0; ee < re; ee++)
|
|
12862
12864
|
try {
|
|
12863
12865
|
c(M[q + ee]);
|
|
12864
12866
|
} catch {
|
|
12865
12867
|
throw new g.ErrnoError(29);
|
|
12866
12868
|
}
|
|
12867
|
-
return re && (
|
|
12869
|
+
return re && (k.node.timestamp = Date.now()), ee;
|
|
12868
12870
|
} }), g.mkdev(d, y, A);
|
|
12869
12871
|
}, forceLoadFile(r) {
|
|
12870
12872
|
if (r.isDevice || r.isFolder || r.link || r.contents) return !0;
|
|
12871
12873
|
if (typeof XMLHttpRequest < "u")
|
|
12872
12874
|
throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");
|
|
12873
|
-
if (
|
|
12875
|
+
if (P)
|
|
12874
12876
|
try {
|
|
12875
|
-
r.contents = Qt(
|
|
12877
|
+
r.contents = Qt(P(r.url), !0), r.usedBytes = r.contents.length;
|
|
12876
12878
|
} catch {
|
|
12877
12879
|
throw new g.ErrnoError(29);
|
|
12878
12880
|
}
|
|
@@ -12914,11 +12916,11 @@ var ph = (() => {
|
|
|
12914
12916
|
} }, chunkSize: { get: function() {
|
|
12915
12917
|
return this.lengthKnown || this.cacheLength(), this._chunkSize;
|
|
12916
12918
|
} } });
|
|
12917
|
-
var
|
|
12919
|
+
var k = { isDevice: !1, contents: A };
|
|
12918
12920
|
} else
|
|
12919
|
-
var
|
|
12920
|
-
var M = g.createFile(r, i,
|
|
12921
|
-
|
|
12921
|
+
var k = { isDevice: !1, url: o };
|
|
12922
|
+
var M = g.createFile(r, i, k, c, d);
|
|
12923
|
+
k.contents ? M.contents = k.contents : k.url && (M.contents = null, M.url = k.url), Object.defineProperties(M, { usedBytes: { get: function() {
|
|
12922
12924
|
return this.contents.length;
|
|
12923
12925
|
} } });
|
|
12924
12926
|
var q = {}, re = Object.keys(M.stream_ops);
|
|
@@ -12948,7 +12950,7 @@ var ph = (() => {
|
|
|
12948
12950
|
return he(ee, V, et, de, Ee), { ptr: et, allocated: !0 };
|
|
12949
12951
|
}, M.stream_ops = q, M;
|
|
12950
12952
|
} }, xn = (r, i) => r ? Wt($, r, i) : "", Fe = { DEFAULT_POLLMASK: 5, calculateAt(r, i, o) {
|
|
12951
|
-
if (
|
|
12953
|
+
if (Pe.isAbs(i))
|
|
12952
12954
|
return i;
|
|
12953
12955
|
var c;
|
|
12954
12956
|
if (r === -100)
|
|
@@ -12962,14 +12964,14 @@ var ph = (() => {
|
|
|
12962
12964
|
throw new g.ErrnoError(44);
|
|
12963
12965
|
return c;
|
|
12964
12966
|
}
|
|
12965
|
-
return
|
|
12967
|
+
return Pe.join2(c, i);
|
|
12966
12968
|
}, doStat(r, i, o) {
|
|
12967
12969
|
try {
|
|
12968
12970
|
var c = r(i);
|
|
12969
|
-
} catch (
|
|
12970
|
-
if (
|
|
12971
|
+
} catch (k) {
|
|
12972
|
+
if (k && k.node && Pe.normalize(i) !== Pe.normalize(g.getPath(k.node)))
|
|
12971
12973
|
return -54;
|
|
12972
|
-
throw
|
|
12974
|
+
throw k;
|
|
12973
12975
|
}
|
|
12974
12976
|
K[o >> 2] = c.dev, K[o + 4 >> 2] = c.mode, H[o + 8 >> 2] = c.nlink, K[o + 12 >> 2] = c.uid, K[o + 16 >> 2] = c.gid, K[o + 20 >> 2] = c.rdev, _[o + 24 >> 3] = BigInt(c.size), K[o + 32 >> 2] = 4096, K[o + 36 >> 2] = c.blocks;
|
|
12975
12977
|
var d = c.atime.getTime(), y = c.mtime.getTime(), A = c.ctime.getTime();
|
|
@@ -13031,9 +13033,9 @@ var ph = (() => {
|
|
|
13031
13033
|
default:
|
|
13032
13034
|
return -28;
|
|
13033
13035
|
}
|
|
13034
|
-
} catch (
|
|
13035
|
-
if (typeof g > "u" ||
|
|
13036
|
-
return -
|
|
13036
|
+
} catch (k) {
|
|
13037
|
+
if (typeof g > "u" || k.name !== "ErrnoError") throw k;
|
|
13038
|
+
return -k.errno;
|
|
13037
13039
|
}
|
|
13038
13040
|
}
|
|
13039
13041
|
function Ya(r, i) {
|
|
@@ -13050,8 +13052,8 @@ var ph = (() => {
|
|
|
13050
13052
|
try {
|
|
13051
13053
|
var c = Fe.getStreamFromFD(r);
|
|
13052
13054
|
c.getdents ||= g.readdir(c.path);
|
|
13053
|
-
for (var d = 280, y = 0, A = g.llseek(c, 0, 1),
|
|
13054
|
-
var M, q, re = c.getdents[
|
|
13055
|
+
for (var d = 280, y = 0, A = g.llseek(c, 0, 1), k = Math.floor(A / d); k < c.getdents.length && y + d <= o; ) {
|
|
13056
|
+
var M, q, re = c.getdents[k];
|
|
13055
13057
|
if (re === ".")
|
|
13056
13058
|
M = c.node.id, q = 4;
|
|
13057
13059
|
else if (re === "..") {
|
|
@@ -13061,9 +13063,9 @@ var ph = (() => {
|
|
|
13061
13063
|
var ee = g.lookupNode(c.node, re);
|
|
13062
13064
|
M = ee.id, q = g.isChrdev(ee.mode) ? 2 : g.isDir(ee.mode) ? 4 : g.isLink(ee.mode) ? 10 : 8;
|
|
13063
13065
|
}
|
|
13064
|
-
_[i + y >> 3] = BigInt(M), _[i + y + 8 >> 3] = BigInt((
|
|
13066
|
+
_[i + y >> 3] = BigInt(M), _[i + y + 8 >> 3] = BigInt((k + 1) * d), X[i + y + 16 >> 1] = 280, V[i + y + 18 >> 0] = q, br(re, i + y + 19, 256), y += d, k += 1;
|
|
13065
13067
|
}
|
|
13066
|
-
return g.llseek(c,
|
|
13068
|
+
return g.llseek(c, k * d, 0), y;
|
|
13067
13069
|
} catch (de) {
|
|
13068
13070
|
if (typeof g > "u" || de.name !== "ErrnoError") throw de;
|
|
13069
13071
|
return -de.errno;
|
|
@@ -13096,9 +13098,9 @@ var ph = (() => {
|
|
|
13096
13098
|
case 21508: {
|
|
13097
13099
|
if (!c.tty) return -59;
|
|
13098
13100
|
if (c.tty.ops.ioctl_tcsets) {
|
|
13099
|
-
for (var y = Fe.getp(),
|
|
13101
|
+
for (var y = Fe.getp(), k = K[y >> 2], M = K[y + 4 >> 2], q = K[y + 8 >> 2], re = K[y + 12 >> 2], he = [], A = 0; A < 32; A++)
|
|
13100
13102
|
he.push(V[y + A + 17 >> 0]);
|
|
13101
|
-
return c.tty.ops.ioctl_tcsets(c.tty, i, { c_iflag:
|
|
13103
|
+
return c.tty.ops.ioctl_tcsets(c.tty, i, { c_iflag: k, c_oflag: M, c_cflag: q, c_lflag: re, c_cc: he });
|
|
13102
13104
|
}
|
|
13103
13105
|
return 0;
|
|
13104
13106
|
}
|
|
@@ -13182,14 +13184,14 @@ var ph = (() => {
|
|
|
13182
13184
|
var i = It(r) + 1, o = _s(i);
|
|
13183
13185
|
return o && br(r, o, i), o;
|
|
13184
13186
|
}, oc = (r, i, o) => {
|
|
13185
|
-
var c = (/* @__PURE__ */ new Date()).getFullYear(), d = new Date(c, 0, 1), y = new Date(c, 6, 1), A = d.getTimezoneOffset(),
|
|
13186
|
-
H[r >> 2] = M * 60, K[i >> 2] = +(A !=
|
|
13187
|
+
var c = (/* @__PURE__ */ new Date()).getFullYear(), d = new Date(c, 0, 1), y = new Date(c, 6, 1), A = d.getTimezoneOffset(), k = y.getTimezoneOffset(), M = Math.max(A, k);
|
|
13188
|
+
H[r >> 2] = M * 60, K[i >> 2] = +(A != k);
|
|
13187
13189
|
function q(Ee) {
|
|
13188
13190
|
var je = Ee.toTimeString().match(/\(([A-Za-z ]+)\)$/);
|
|
13189
13191
|
return je ? je[1] : "GMT";
|
|
13190
13192
|
}
|
|
13191
13193
|
var re = q(d), he = q(y), ee = ns(re), de = ns(he);
|
|
13192
|
-
|
|
13194
|
+
k < A ? (H[o >> 2] = ee, H[o + 4 >> 2] = de) : (H[o >> 2] = de, H[o + 4 >> 2] = ee);
|
|
13193
13195
|
}, ac = () => {
|
|
13194
13196
|
ue("");
|
|
13195
13197
|
}, cc = () => Date.now(), rs;
|
|
@@ -13209,8 +13211,8 @@ var ph = (() => {
|
|
|
13209
13211
|
for (var c = (M, q) => M + (q - M % q) % q, d = 1; d <= 4; d *= 2) {
|
|
13210
13212
|
var y = i * (1 + 0.2 / d);
|
|
13211
13213
|
y = Math.min(y, r + 100663296);
|
|
13212
|
-
var A = Math.min(o, c(Math.max(r, y), 65536)),
|
|
13213
|
-
if (
|
|
13214
|
+
var A = Math.min(o, c(Math.max(r, y), 65536)), k = dc(A);
|
|
13215
|
+
if (k)
|
|
13214
13216
|
return !0;
|
|
13215
13217
|
}
|
|
13216
13218
|
return !1;
|
|
@@ -13252,11 +13254,11 @@ var ph = (() => {
|
|
|
13252
13254
|
}
|
|
13253
13255
|
var gc = (r, i, o, c) => {
|
|
13254
13256
|
for (var d = 0, y = 0; y < o; y++) {
|
|
13255
|
-
var A = H[i >> 2],
|
|
13257
|
+
var A = H[i >> 2], k = H[i + 4 >> 2];
|
|
13256
13258
|
i += 8;
|
|
13257
|
-
var M = g.read(r, V, A,
|
|
13259
|
+
var M = g.read(r, V, A, k, c);
|
|
13258
13260
|
if (M < 0) return -1;
|
|
13259
|
-
if (d += M, M <
|
|
13261
|
+
if (d += M, M < k) break;
|
|
13260
13262
|
}
|
|
13261
13263
|
return d;
|
|
13262
13264
|
};
|
|
@@ -13282,9 +13284,9 @@ var ph = (() => {
|
|
|
13282
13284
|
}
|
|
13283
13285
|
var Ec = (r, i, o, c) => {
|
|
13284
13286
|
for (var d = 0, y = 0; y < o; y++) {
|
|
13285
|
-
var A = H[i >> 2],
|
|
13287
|
+
var A = H[i >> 2], k = H[i + 4 >> 2];
|
|
13286
13288
|
i += 8;
|
|
13287
|
-
var M = g.write(r, V, A,
|
|
13289
|
+
var M = g.write(r, V, A, k, c);
|
|
13288
13290
|
if (M < 0) return -1;
|
|
13289
13291
|
d += M;
|
|
13290
13292
|
}
|
|
@@ -13315,9 +13317,9 @@ var ph = (() => {
|
|
|
13315
13317
|
}, os = (r, i) => {
|
|
13316
13318
|
V.set(r, i);
|
|
13317
13319
|
}, Oc = (r, i, o, c) => {
|
|
13318
|
-
var d = H[c + 40 >> 2], y = { tm_sec: K[c >> 2], tm_min: K[c + 4 >> 2], tm_hour: K[c + 8 >> 2], tm_mday: K[c + 12 >> 2], tm_mon: K[c + 16 >> 2], tm_year: K[c + 20 >> 2], tm_wday: K[c + 24 >> 2], tm_yday: K[c + 28 >> 2], tm_isdst: K[c + 32 >> 2], tm_gmtoff: K[c + 36 >> 2], tm_zone: d ? xn(d) : "" }, A = xn(o),
|
|
13319
|
-
for (var M in
|
|
13320
|
-
A = A.replace(new RegExp(M, "g"),
|
|
13320
|
+
var d = H[c + 40 >> 2], y = { tm_sec: K[c >> 2], tm_min: K[c + 4 >> 2], tm_hour: K[c + 8 >> 2], tm_mday: K[c + 12 >> 2], tm_mon: K[c + 16 >> 2], tm_year: K[c + 20 >> 2], tm_wday: K[c + 24 >> 2], tm_yday: K[c + 28 >> 2], tm_isdst: K[c + 32 >> 2], tm_gmtoff: K[c + 36 >> 2], tm_zone: d ? xn(d) : "" }, A = xn(o), k = { "%c": "%a %b %d %H:%M:%S %Y", "%D": "%m/%d/%y", "%F": "%Y-%m-%d", "%h": "%b", "%r": "%I:%M:%S %p", "%R": "%H:%M", "%T": "%H:%M:%S", "%x": "%m/%d/%y", "%X": "%H:%M:%S", "%Ec": "%c", "%EC": "%C", "%Ex": "%m/%d/%y", "%EX": "%H:%M:%S", "%Ey": "%y", "%EY": "%Y", "%Od": "%d", "%Oe": "%e", "%OH": "%H", "%OI": "%I", "%Om": "%m", "%OM": "%M", "%OS": "%S", "%Ou": "%u", "%OU": "%U", "%OV": "%V", "%Ow": "%w", "%OW": "%W", "%Oy": "%y" };
|
|
13321
|
+
for (var M in k)
|
|
13322
|
+
A = A.replace(new RegExp(M, "g"), k[M]);
|
|
13321
13323
|
var q = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], re = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
13322
13324
|
function he(G, ve, rt) {
|
|
13323
13325
|
for (var We = typeof G == "number" ? G.toString() : G || ""; We.length < ve; )
|
|
@@ -13392,16 +13394,16 @@ var ph = (() => {
|
|
|
13392
13394
|
A = A.replace(/\0\0/g, "%");
|
|
13393
13395
|
var et = Qt(A, !1);
|
|
13394
13396
|
return et.length > i ? 0 : (os(et, r), et.length - 1);
|
|
13395
|
-
}, Lc = (r, i, o, c, d) => Oc(r, i, o, c), as,
|
|
13397
|
+
}, Lc = (r, i, o, c, d) => Oc(r, i, o, c), as, ke = (r) => as.get(r), cs = (r) => {
|
|
13396
13398
|
var i = t["_" + r];
|
|
13397
13399
|
return i;
|
|
13398
|
-
},
|
|
13400
|
+
}, kc = (r) => {
|
|
13399
13401
|
var i = It(r) + 1, o = ii(i);
|
|
13400
13402
|
return br(r, o, i), o;
|
|
13401
13403
|
}, ls = (r, i, o, c, d) => {
|
|
13402
13404
|
var y = { string: (Ee) => {
|
|
13403
13405
|
var je = 0;
|
|
13404
|
-
return Ee != null && Ee !== 0 && (je =
|
|
13406
|
+
return Ee != null && Ee !== 0 && (je = kc(Ee)), je;
|
|
13405
13407
|
}, array: (Ee) => {
|
|
13406
13408
|
var je = ii(Ee.length);
|
|
13407
13409
|
return os(Ee, je), je;
|
|
@@ -13409,18 +13411,18 @@ var ph = (() => {
|
|
|
13409
13411
|
function A(Ee) {
|
|
13410
13412
|
return i === "string" ? xn(Ee) : i === "boolean" ? !!Ee : Ee;
|
|
13411
13413
|
}
|
|
13412
|
-
var
|
|
13414
|
+
var k = cs(r), M = [], q = 0;
|
|
13413
13415
|
if (c)
|
|
13414
13416
|
for (var re = 0; re < c.length; re++) {
|
|
13415
13417
|
var he = y[o[re]];
|
|
13416
13418
|
he ? (q === 0 && (q = me()), M[re] = he(c[re])) : M[re] = c[re];
|
|
13417
13419
|
}
|
|
13418
|
-
var ee =
|
|
13420
|
+
var ee = k.apply(null, M);
|
|
13419
13421
|
function de(Ee) {
|
|
13420
13422
|
return q !== 0 && Se(q), A(Ee);
|
|
13421
13423
|
}
|
|
13422
13424
|
return ee = de(ee), ee;
|
|
13423
|
-
},
|
|
13425
|
+
}, Pc = (r, i, o, c) => {
|
|
13424
13426
|
var d = !o || o.every((A) => A === "number" || A === "boolean"), y = i !== "string";
|
|
13425
13427
|
return y && d && !c ? cs(r) : function() {
|
|
13426
13428
|
return ls(r, i, o, arguments);
|
|
@@ -13441,13 +13443,13 @@ var ph = (() => {
|
|
|
13441
13443
|
} }, isDevice: { get: function() {
|
|
13442
13444
|
return g.isChrdev(this.mode);
|
|
13443
13445
|
} } }), g.FSNode = ds, g.createPreloadedFile = ja, g.staticInit();
|
|
13444
|
-
var Rc = { o: Vt, r: un, a: yr, h: Ae, n: Be, j: yt, ca: Qe, p: Ht, U:
|
|
13445
|
-
t._free = (r) => (t._free = O.Da)(r), t._hd_secure_wipe = (r, i) => (t._hd_secure_wipe = O.Ea)(r, i), t._hd_alloc = (r) => (t._hd_alloc = O.Fa)(r), t._hd_dealloc = (r) => (t._hd_dealloc = O.Ga)(r), t._hd_mnemonic_generate = (r, i, o, c) => (t._hd_mnemonic_generate = O.Ha)(r, i, o, c), t._hd_mnemonic_validate = (r, i) => (t._hd_mnemonic_validate = O.Ia)(r, i), t._hd_mnemonic_to_seed = (r, i, o, c) => (t._hd_mnemonic_to_seed = O.Ja)(r, i, o, c), t._hd_mnemonic_to_entropy = (r, i, o, c) => (t._hd_mnemonic_to_entropy = O.Ka)(r, i, o, c), t._hd_entropy_to_mnemonic = (r, i, o, c, d) => (t._hd_entropy_to_mnemonic = O.La)(r, i, o, c, d), t._hd_mnemonic_get_wordlist = (r) => (t._hd_mnemonic_get_wordlist = O.Ma)(r), t._hd_mnemonic_suggest_word = (r, i, o, c, d) => (t._hd_mnemonic_suggest_word = O.Na)(r, i, o, c, d), t._hd_mnemonic_check_word = (r, i) => (t._hd_mnemonic_check_word = O.Oa)(r, i), t._hd_key_from_seed = (r, i, o) => (t._hd_key_from_seed = O.Pa)(r, i, o), t._hd_key_from_xprv = (r) => (t._hd_key_from_xprv = O.Qa)(r), t._hd_key_from_xpub = (r) => (t._hd_key_from_xpub = O.Ra)(r), t._hd_key_derive_path = (r, i) => (t._hd_key_derive_path = O.Sa)(r, i), t._hd_key_derive_child = (r, i) => (t._hd_key_derive_child = O.Ta)(r, i), t._hd_key_derive_hardened = (r, i) => (t._hd_key_derive_hardened = O.Ua)(r, i), t._hd_key_get_private = (r, i, o) => (t._hd_key_get_private = O.Va)(r, i, o), t._hd_key_get_public = (r, i, o) => (t._hd_key_get_public = O.Wa)(r, i, o), t._hd_key_get_chain_code = (r, i, o) => (t._hd_key_get_chain_code = O.Xa)(r, i, o), t._hd_key_get_fingerprint = (r) => (t._hd_key_get_fingerprint = O.Ya)(r), t._hd_key_get_parent_fingerprint = (r) => (t._hd_key_get_parent_fingerprint = O.Za)(r), t._hd_key_get_depth = (r) => (t._hd_key_get_depth = O._a)(r), t._hd_key_get_child_index = (r) => (t._hd_key_get_child_index = O.$a)(r), t._hd_key_serialize_xprv = (r, i, o) => (t._hd_key_serialize_xprv = O.ab)(r, i, o), t._hd_key_serialize_xpub = (r, i, o) => (t._hd_key_serialize_xpub = O.bb)(r, i, o), t._hd_key_neutered = (r) => (t._hd_key_neutered = O.cb)(r), t._hd_key_is_neutered = (r) => (t._hd_key_is_neutered = O.db)(r), t._hd_key_wipe = (r) => (t._hd_key_wipe = O.eb)(r), t._hd_key_clone = (r) => (t._hd_key_clone = O.fb)(r), t._hd_key_destroy = (r) => (t._hd_key_destroy = O.gb)(r), t._hd_path_build = (r, i, o, c, d, y, A) => (t._hd_path_build = O.hb)(r, i, o, c, d, y, A), t._hd_path_parse = (r, i, o, c, d, y) => (t._hd_path_parse = O.ib)(r, i, o, c, d, y), t._hd_ossl_ec_pubkey_check = (r, i, o) => (t._hd_ossl_ec_pubkey_check = O.jb)(r, i, o), t._hd_ed25519_sign = (r, i, o, c, d) => (t._hd_ed25519_sign = O.kb)(r, i, o, c, d), t._hd_ed25519_verify = (r, i, o, c, d, y) => (t._hd_ed25519_verify = O.lb)(r, i, o, c, d, y), t._hd_ed25519_pubkey_from_seed = (r, i, o) => (t._hd_ed25519_pubkey_from_seed = O.mb)(r, i, o), t._hd_slip10_ed25519_derive_path = (r, i, o, c, d) => (t._hd_slip10_ed25519_derive_path = O.nb)(r, i, o, c, d), t._hd_x25519_pubkey = (r, i, o) => (t._hd_x25519_pubkey = O.ob)(r, i, o), t._hd_ecdh_x25519 = (r, i, o, c) => (t._hd_ecdh_x25519 = O.pb)(r, i, o, c), t._hd_ecdh = (r, i, o, c, d, y, A) => (t._hd_ecdh = O.qb)(r, i, o, c, d, y, A), t._hd_ossl_hkdf_sha256 = (r, i, o, c, d, y, A, P) => (t._hd_ossl_hkdf_sha256 = O.rb)(r, i, o, c, d, y, A, P), t._hd_ossl_aes_gcm_encrypt = (r, i, o, c, d, y, A, P, M, q) => (t._hd_ossl_aes_gcm_encrypt = O.sb)(r, i, o, c, d, y, A, P, M, q), t._hd_ossl_aes_gcm_decrypt = (r, i, o, c, d, y, A, P, M, q) => (t._hd_ossl_aes_gcm_decrypt = O.tb)(r, i, o, c, d, y, A, P, M, q), t._hd_ossl_aes_ctr_encrypt = (r, i, o, c, d, y, A) => (t._hd_ossl_aes_ctr_encrypt = O.ub)(r, i, o, c, d, y, A), t._hd_ossl_aes_ctr_decrypt = (r, i, o, c, d, y, A) => (t._hd_ossl_aes_ctr_decrypt = O.vb)(r, i, o, c, d, y, A), t._hd_ecies_encrypt = (r, i, o, c, d, y, A, P, M) => (t._hd_ecies_encrypt = O.wb)(r, i, o, c, d, y, A, P, M), t._hd_ecies_decrypt = (r, i, o, c, d, y, A, P, M) => (t._hd_ecies_decrypt = O.xb)(r, i, o, c, d, y, A, P, M), t._hd_ecies_overhead = (r) => (t._hd_ecies_overhead = O.yb)(r), t._hd_aes_ctr_encrypt = (r, i, o, c, d, y, A, P) => (t._hd_aes_ctr_encrypt = O.zb)(r, i, o, c, d, y, A, P), t._hd_aes_ctr_decrypt = (r, i, o, c, d, y, A, P) => (t._hd_aes_ctr_decrypt = O.Ab)(r, i, o, c, d, y, A, P), t._hd_x509_generate_private_key = (r, i, o) => (t._hd_x509_generate_private_key = O.Bb)(r, i, o), t._hd_x509_export_private_key_pem = (r, i, o, c, d) => (t._hd_x509_export_private_key_pem = O.Cb)(r, i, o, c, d), t._hd_x509_import_private_key_pem = (r, i, o, c) => (t._hd_x509_import_private_key_pem = O.Db)(r, i, o, c), t._hd_x509_create_self_signed = (r, i, o, c, d, y, A) => (t._hd_x509_create_self_signed = O.Eb)(r, i, o, c, d, y, A), t._hd_x509_issue_certificate = (r, i, o, c, d, y, A, P, M, q, re, he, ee) => (t._hd_x509_issue_certificate = O.Fb)(r, i, o, c, d, y, A, P, M, q, re, he, ee), t._hd_x509_convert_certificate = (r, i, o, c, d, y) => (t._hd_x509_convert_certificate = O.Gb)(r, i, o, c, d, y), t._hd_x509_parse_certificate_json = (r, i, o, c, d) => (t._hd_x509_parse_certificate_json = O.Hb)(r, i, o, c, d), t._hd_x509_verify_wallet_attestation = (r, i, o) => (t._hd_x509_verify_wallet_attestation = O.Ib)(r, i, o), t._hd_x509_export_pkcs12 = (r, i, o, c, d, y, A, P, M, q, re, he) => (t._hd_x509_export_pkcs12 = O.Jb)(r, i, o, c, d, y, A, P, M, q, re, he), t._hd_x509_import_pkcs12_json = (r, i, o, c, d) => (t._hd_x509_import_pkcs12_json = O.Kb)(r, i, o, c, d), t._hd_wasi_has_feature = (r) => (t._hd_wasi_has_feature = O.Lb)(r), t._hd_wasi_get_warning = (r) => (t._hd_wasi_get_warning = O.Mb)(r), t._hd_inject_entropy = (r, i) => (t._hd_inject_entropy = O.Nb)(r, i), t._hd_get_entropy_status = () => (t._hd_get_entropy_status = O.Ob)(), t._hd_get_version = () => (t._hd_get_version = O.Pb)(), t._hd_is_fips_mode = () => (t._hd_is_fips_mode = O.Qb)(), t._hd_get_version_string = () => (t._hd_get_version_string = O.Rb)(), t._hd_has_cryptopp = () => (t._hd_has_cryptopp = O.Sb)(), t._hd_aligned_derive_batch = (r, i, o) => (t._hd_aligned_derive_batch = O.Tb)(r, i, o), t._hd_aligned_sign_batch = (r, i, o, c, d) => (t._hd_aligned_sign_batch = O.Ub)(r, i, o, c, d), t._hd_aligned_verify_batch = (r, i, o, c, d) => (t._hd_aligned_verify_batch = O.Vb)(r, i, o, c, d), t._hd_aligned_stream_create = (r) => (t._hd_aligned_stream_create = O.Wb)(r), t._hd_aligned_stream_next = (r, i, o) => (t._hd_aligned_stream_next = O.Xb)(r, i, o), t._hd_aligned_stream_status = (r, i) => (t._hd_aligned_stream_status = O.Yb)(r, i), t._hd_aligned_stream_destroy = (r) => (t._hd_aligned_stream_destroy = O.Zb)(r), t._hd_aligned_from_extended_key = (r, i) => (t._hd_aligned_from_extended_key = O._b)(r, i), t._hd_aligned_to_extended_key = (r) => (t._hd_aligned_to_extended_key = O.$b)(r), t._hd_aligned_derived_key_entry_size = () => (t._hd_aligned_derived_key_entry_size = O.ac)(), t._hd_aligned_signature_entry_size = () => (t._hd_aligned_signature_entry_size = O.bc)(), t._hd_aligned_extended_key_data_size = () => (t._hd_aligned_extended_key_data_size = O.cc)(), t._hd_aligned_batch_derive_request_size = () => (t._hd_aligned_batch_derive_request_size = O.dc)(), t._hd_hash_sha256 = (r, i, o, c) => (t._hd_hash_sha256 = O.ec)(r, i, o, c), t._hd_hash_sha512 = (r, i, o, c) => (t._hd_hash_sha512 = O.fc)(r, i, o, c), t._hd_hash_keccak256 = (r, i, o, c) => (t._hd_hash_keccak256 = O.gc)(r, i, o, c), t._hd_hash_ripemd160 = (r, i, o, c) => (t._hd_hash_ripemd160 = O.hc)(r, i, o, c), t._hd_hash_hash160 = (r, i, o, c) => (t._hd_hash_hash160 = O.ic)(r, i, o, c), t._hd_hash_blake2b = (r, i, o, c, d) => (t._hd_hash_blake2b = O.jc)(r, i, o, c, d), t._hd_hash_blake2s = (r, i, o, c, d) => (t._hd_hash_blake2s = O.kc)(r, i, o, c, d), t._hd_kdf_hkdf = (r, i, o, c, d, y, A, P) => (t._hd_kdf_hkdf = O.lc)(r, i, o, c, d, y, A, P), t._hd_kdf_pbkdf2 = (r, i, o, c, d, y, A) => (t._hd_kdf_pbkdf2 = O.mc)(r, i, o, c, d, y, A), t._hd_kdf_scrypt = (r, i, o, c, d, y, A, P, M) => (t._hd_kdf_scrypt = O.nc)(r, i, o, c, d, y, A, P, M), t._hd_curve_pubkey_from_privkey = (r, i, o, c) => (t._hd_curve_pubkey_from_privkey = O.oc)(r, i, o, c), t._hd_secp256k1_sign = (r, i, o, c, d) => (t._hd_secp256k1_sign = O.pc)(r, i, o, c, d), t._hd_secp256k1_verify = (r, i, o, c, d, y) => (t._hd_secp256k1_verify = O.qc)(r, i, o, c, d, y), t._hd_secp256k1_sign_recoverable = (r, i, o, c) => (t._hd_secp256k1_sign_recoverable = O.rc)(r, i, o, c), t._hd_secp256k1_recover = (r, i, o, c) => (t._hd_secp256k1_recover = O.sc)(r, i, o, c), t._hd_curve_decompress_pubkey = (r, i, o, c) => (t._hd_curve_decompress_pubkey = O.tc)(r, i, o, c), t._hd_curve_validate_pubkey = (r, i, o) => (t._hd_curve_validate_pubkey = O.uc)(r, i, o), t._hd_curve_validate_privkey = (r, i, o) => (t._hd_curve_validate_privkey = O.vc)(r, i, o), t._hd_ecdh_secp256k1 = (r, i, o, c, d) => (t._hd_ecdh_secp256k1 = O.wc)(r, i, o, c, d), t._hd_p256_sign = (r, i, o, c, d) => (t._hd_p256_sign = O.xc)(r, i, o, c, d), t._hd_p256_verify = (r, i, o, c, d) => (t._hd_p256_verify = O.yc)(r, i, o, c, d), t._hd_ecdh_p256 = (r, i, o, c, d) => (t._hd_ecdh_p256 = O.zc)(r, i, o, c, d), t._hd_p384_sign = (r, i, o, c, d) => (t._hd_p384_sign = O.Ac)(r, i, o, c, d), t._hd_p384_verify = (r, i, o, c, d) => (t._hd_p384_verify = O.Bc)(r, i, o, c, d), t._hd_ecdh_p384 = (r, i, o, c, d) => (t._hd_ecdh_p384 = O.Cc)(r, i, o, c, d), t._hd_aes_gcm_encrypt = (r, i, o, c, d, y, A, P, M, q) => (t._hd_aes_gcm_encrypt = O.Dc)(r, i, o, c, d, y, A, P, M, q), t._hd_aes_gcm_decrypt = (r, i, o, c, d, y, A, P, M, q) => (t._hd_aes_gcm_decrypt = O.Ec)(r, i, o, c, d, y, A, P, M, q), t._hd_sdn_derive_password_identity = (r, i, o, c, d, y, A, P, M) => (t._hd_sdn_derive_password_identity = O.Fc)(r, i, o, c, d, y, A, P, M), t._hd_sdn_derive_legacy_password_identity = (r, i, o, c, d, y, A, P, M) => (t._hd_sdn_derive_legacy_password_identity = O.Gc)(r, i, o, c, d, y, A, P, M), t._hd_sdn_import_legacy_mnemonic_identity = (r, i, o, c, d, y, A) => (t._hd_sdn_import_legacy_mnemonic_identity = O.Hc)(r, i, o, c, d, y, A), t._hd_sdn_import_remembered_identity = (r, i, o, c, d, y, A, P, M, q, re, he, ee, de, Ee, je) => (t._hd_sdn_import_remembered_identity = O.Ic)(r, i, o, c, d, y, A, P, M, q, re, he, ee, de, Ee, je), t._hd_sdn_sign_login_v1 = (r, i, o, c, d, y) => (t._hd_sdn_sign_login_v1 = O.Jc)(r, i, o, c, d, y), t._hd_sdn_sign_login_v2 = (r, i, o, c, d, y, A) => (t._hd_sdn_sign_login_v2 = O.Kc)(r, i, o, c, d, y, A), t._hd_sdn_sign_publish_request = (r, i, o, c, d, y, A) => (t._hd_sdn_sign_publish_request = O.Lc)(r, i, o, c, d, y, A), t._hd_sdn_sign_module_delivery_key = (r, i, o, c, d, y, A) => (t._hd_sdn_sign_module_delivery_key = O.Mc)(r, i, o, c, d, y, A), t._hd_sdn_sign_asset_review_authority_activation = (r, i, o, c, d, y, A) => (t._hd_sdn_sign_asset_review_authority_activation = O.Nc)(r, i, o, c, d, y, A), t._hd_sdn_sign_asset_review_decision = (r, i, o, c, d, y, A) => (t._hd_sdn_sign_asset_review_decision = O.Oc)(r, i, o, c, d, y, A), t._hd_sdn_seal_remembered_identity = (r, i, o, c, d, y, A, P, M, q, re, he, ee, de) => (t._hd_sdn_seal_remembered_identity = O.Pc)(r, i, o, c, d, y, A, P, M, q, re, he, ee, de), t._hd_sdn_transfer_begin = (r, i) => (t._hd_sdn_transfer_begin = O.Qc)(r, i), t._hd_sdn_transfer_seal = (r, i, o, c, d, y) => (t._hd_sdn_transfer_seal = O.Rc)(r, i, o, c, d, y), t._hd_sdn_transfer_open = (r, i, o, c, d, y) => (t._hd_sdn_transfer_open = O.Sc)(r, i, o, c, d, y), t._hd_sdn_open_sealed_fields = (r, i, o, c, d, y, A, P, M) => (t._hd_sdn_open_sealed_fields = O.Tc)(r, i, o, c, d, y, A, P, M), t._hd_sdn_destroy_identity = (r) => (t._hd_sdn_destroy_identity = O.Uc)(r), t._plugin_get_manifest_flatbuffer = () => (t._plugin_get_manifest_flatbuffer = O.Vc)(), t._plugin_get_manifest_flatbuffer_size = () => (t._plugin_get_manifest_flatbuffer_size = O.Wc)(), t._hd_btc_tx_create = () => (t._hd_btc_tx_create = O.Xc)(), t._hd_btc_tx_create_v = (r) => (t._hd_btc_tx_create_v = O.Yc)(r), t._hd_btc_tx_add_input = (r, i, o, c, d, y, A) => (t._hd_btc_tx_add_input = O.Zc)(r, i, o, c, d, y, A), t._hd_btc_tx_add_output = (r, i, o, c) => (t._hd_btc_tx_add_output = O._c)(r, i, o, c), t._hd_btc_tx_add_p2pkh_output = (r, i, o) => (t._hd_btc_tx_add_p2pkh_output = O.$c)(r, i, o), t._hd_btc_tx_add_p2wpkh_output = (r, i, o) => (t._hd_btc_tx_add_p2wpkh_output = O.ad)(r, i, o), t._hd_btc_tx_sign = (r, i, o) => (t._hd_btc_tx_sign = O.bd)(r, i, o), t._hd_btc_tx_sign_input = (r, i, o, c) => (t._hd_btc_tx_sign_input = O.cd)(r, i, o, c), t._hd_btc_tx_serialize = (r, i, o, c) => (t._hd_btc_tx_serialize = O.dd)(r, i, o, c), t._hd_btc_tx_get_txid = (r, i) => (t._hd_btc_tx_get_txid = O.ed)(r, i), t._hd_btc_tx_get_txid_hex = (r, i, o) => (t._hd_btc_tx_get_txid_hex = O.fd)(r, i, o), t._hd_btc_tx_get_size = (r) => (t._hd_btc_tx_get_size = O.gd)(r), t._hd_btc_tx_get_vsize = (r) => (t._hd_btc_tx_get_vsize = O.hd)(r), t._hd_btc_tx_get_weight = (r) => (t._hd_btc_tx_get_weight = O.id)(r), t._hd_btc_tx_get_fee = (r) => (t._hd_btc_tx_get_fee = O.jd)(r), t._hd_btc_tx_validate = (r) => (t._hd_btc_tx_validate = O.kd)(r), t._hd_btc_tx_destroy = (r) => (t._hd_btc_tx_destroy = O.ld)(r), t._hd_btc_tx_parse = (r, i) => (t._hd_btc_tx_parse = O.md)(r, i), t._hd_btc_tx_parse_hex = (r) => (t._hd_btc_tx_parse_hex = O.nd)(r), t._hd_eth_tx_create = (r) => (t._hd_eth_tx_create = O.od)(r), t._hd_eth_tx_create_eip1559 = (r, i, o) => (t._hd_eth_tx_create_eip1559 = O.pd)(r, i, o), t._hd_eth_tx_set_nonce = (r, i) => (t._hd_eth_tx_set_nonce = O.qd)(r, i), t._hd_eth_tx_set_gas_price = (r, i) => (t._hd_eth_tx_set_gas_price = O.rd)(r, i), t._hd_eth_tx_set_gas_limit = (r, i) => (t._hd_eth_tx_set_gas_limit = O.sd)(r, i), t._hd_eth_tx_set_to = (r, i) => (t._hd_eth_tx_set_to = O.td)(r, i), t._hd_eth_tx_set_to_hex = (r, i) => (t._hd_eth_tx_set_to_hex = O.ud)(r, i), t._hd_eth_tx_set_value = (r, i) => (t._hd_eth_tx_set_value = O.vd)(r, i), t._hd_eth_tx_set_value_256 = (r, i) => (t._hd_eth_tx_set_value_256 = O.wd)(r, i), t._hd_eth_tx_set_data = (r, i, o) => (t._hd_eth_tx_set_data = O.xd)(r, i, o), t._hd_eth_tx_sign = (r, i) => (t._hd_eth_tx_sign = O.yd)(r, i), t._hd_eth_tx_serialize = (r, i, o, c) => (t._hd_eth_tx_serialize = O.zd)(r, i, o, c), t._hd_eth_tx_get_hash = (r, i) => (t._hd_eth_tx_get_hash = O.Ad)(r, i), t._hd_eth_tx_get_hash_hex = (r, i, o) => (t._hd_eth_tx_get_hash_hex = O.Bd)(r, i, o), t._hd_eth_tx_get_sender = (r, i) => (t._hd_eth_tx_get_sender = O.Cd)(r, i), t._hd_eth_tx_get_size = (r) => (t._hd_eth_tx_get_size = O.Dd)(r), t._hd_eth_tx_get_max_fee = (r) => (t._hd_eth_tx_get_max_fee = O.Ed)(r), t._hd_eth_tx_validate = (r) => (t._hd_eth_tx_validate = O.Fd)(r), t._hd_eth_tx_destroy = (r) => (t._hd_eth_tx_destroy = O.Gd)(r), t._hd_eth_tx_parse = (r, i) => (t._hd_eth_tx_parse = O.Hd)(r, i), t._hd_eth_tx_parse_hex = (r) => (t._hd_eth_tx_parse_hex = O.Id)(r), t._hd_coin_address_from_pubkey = (r, i, o, c, d, y) => (t._hd_coin_address_from_pubkey = O.Jd)(r, i, o, c, d, y), t._hd_coin_validate_address = (r, i, o) => (t._hd_coin_validate_address = O.Kd)(r, i, o), t._hd_coin_sign_message = (r, i, o, c, d, y) => (t._hd_coin_sign_message = O.Ld)(r, i, o, c, d, y), t._hd_coin_verify_message = (r, i, o, c, d, y, A) => (t._hd_coin_verify_message = O.Md)(r, i, o, c, d, y, A), t._hd_base58_encode = (r, i, o, c) => (t._hd_base58_encode = O.Nd)(r, i, o, c), t._hd_base58_decode = (r, i, o) => (t._hd_base58_decode = O.Od)(r, i, o), t._hd_base58check_encode = (r, i, o, c) => (t._hd_base58check_encode = O.Pd)(r, i, o, c), t._hd_base58check_decode = (r, i, o) => (t._hd_base58check_decode = O.Qd)(r, i, o), t._hd_bech32_encode = (r, i, o, c, d, y) => (t._hd_bech32_encode = O.Rd)(r, i, o, c, d, y), t._hd_bech32_decode = (r, i, o, c, d) => (t._hd_bech32_decode = O.Sd)(r, i, o, c, d), t._hd_btc_p2pkh_address = (r, i, o, c, d) => (t._hd_btc_p2pkh_address = O.Td)(r, i, o, c, d), t._hd_btc_p2sh_address = (r, i, o, c, d) => (t._hd_btc_p2sh_address = O.Ud)(r, i, o, c, d), t._hd_btc_p2wpkh_address = (r, i, o, c, d) => (t._hd_btc_p2wpkh_address = O.Vd)(r, i, o, c, d), t._hd_btc_p2wsh_address = (r, i, o, c, d) => (t._hd_btc_p2wsh_address = O.Wd)(r, i, o, c, d), t._hd_btc_p2tr_address = (r, i, o, c, d) => (t._hd_btc_p2tr_address = O.Xd)(r, i, o, c, d), t._hd_btc_validate_address = (r, i) => (t._hd_btc_validate_address = O.Yd)(r, i), t._hd_btc_detect_address_type = (r, i) => (t._hd_btc_detect_address_type = O.Zd)(r, i), t._hd_btc_decode_address = (r, i, o, c, d) => (t._hd_btc_decode_address = O._d)(r, i, o, c, d), t._hd_btc_sign_message = (r, i, o, c, d) => (t._hd_btc_sign_message = O.$d)(r, i, o, c, d), t._hd_btc_verify_message = (r, i, o, c, d) => (t._hd_btc_verify_message = O.ae)(r, i, o, c, d), t._hd_btc_to_wif = (r, i, o, c, d) => (t._hd_btc_to_wif = O.be)(r, i, o, c, d), t._hd_btc_from_wif = (r, i, o) => (t._hd_btc_from_wif = O.ce)(r, i, o), t._hd_eth_address = (r, i, o, c) => (t._hd_eth_address = O.de)(r, i, o, c), t._hd_eth_validate_address = (r) => (t._hd_eth_validate_address = O.ee)(r), t._hd_eth_checksum_address = (r, i, o) => (t._hd_eth_checksum_address = O.fe)(r, i, o), t._hd_eth_verify_checksum = (r) => (t._hd_eth_verify_checksum = O.ge)(r), t._hd_eth_sign_message = (r, i, o, c, d) => (t._hd_eth_sign_message = O.he)(r, i, o, c, d), t._hd_eth_verify_message = (r, i, o, c, d) => (t._hd_eth_verify_message = O.ie)(r, i, o, c, d), t._hd_eth_recover_address = (r, i, o, c, d, y) => (t._hd_eth_recover_address = O.je)(r, i, o, c, d, y), t._hd_eth_hash_message = (r, i, o) => (t._hd_eth_hash_message = O.ke)(r, i, o), t._hd_eth_sign_typed_data = (r, i, o, c, d, y, A, P) => (t._hd_eth_sign_typed_data = O.le)(r, i, o, c, d, y, A, P), t._hd_sol_address = (r, i, o, c) => (t._hd_sol_address = O.me)(r, i, o, c), t._hd_sol_validate_address = (r) => (t._hd_sol_validate_address = O.ne)(r), t._hd_sol_address_to_pubkey = (r, i, o) => (t._hd_sol_address_to_pubkey = O.oe)(r, i, o), t._hd_sol_sign_message = (r, i, o, c, d) => (t._hd_sol_sign_message = O.pe)(r, i, o, c, d), t._hd_sol_verify_message = (r, i, o, c, d, y) => (t._hd_sol_verify_message = O.qe)(r, i, o, c, d, y), t._hd_sol_derive_pubkey = (r, i, o) => (t._hd_sol_derive_pubkey = O.re)(r, i, o), t._hd_sol_find_pda = (r, i, o, c, d, y, A, P) => (t._hd_sol_find_pda = O.se)(r, i, o, c, d, y, A, P), t._hd_sol_get_associated_token_address = (r, i, o, c) => (t._hd_sol_get_associated_token_address = O.te)(r, i, o, c), t._hd_cosmos_address = (r, i, o, c, d) => (t._hd_cosmos_address = O.ue)(r, i, o, c, d), t._hd_cosmos_validate_address = (r, i) => (t._hd_cosmos_validate_address = O.ve)(r, i), t._hd_cosmos_convert_prefix = (r, i, o, c) => (t._hd_cosmos_convert_prefix = O.we)(r, i, o, c), t._hd_cosmos_sign_amino = (r, i, o, c, d) => (t._hd_cosmos_sign_amino = O.xe)(r, i, o, c, d), t._hd_cosmos_sign_direct = (r, i, o, c, d) => (t._hd_cosmos_sign_direct = O.ye)(r, i, o, c, d), t._hd_cosmos_verify_signature = (r, i, o, c, d, y) => (t._hd_cosmos_verify_signature = O.ze)(r, i, o, c, d, y), t._hd_cosmos_sign_arbitrary = (r, i, o, c, d, y) => (t._hd_cosmos_sign_arbitrary = O.Ae)(r, i, o, c, d, y), t._hd_dot_address = (r, i, o, c, d) => (t._hd_dot_address = O.Be)(r, i, o, c, d), t._hd_dot_validate_address = (r, i) => (t._hd_dot_validate_address = O.Ce)(r, i), t._hd_dot_decode_address = (r, i, o, c) => (t._hd_dot_decode_address = O.De)(r, i, o, c), t._hd_dot_convert_prefix = (r, i, o, c) => (t._hd_dot_convert_prefix = O.Ee)(r, i, o, c), t._hd_dot_sign_message = (r, i, o, c, d) => (t._hd_dot_sign_message = O.Fe)(r, i, o, c, d), t._hd_dot_verify_message = (r, i, o, c, d, y) => (t._hd_dot_verify_message = O.Ge)(r, i, o, c, d, y), t._hd_dot_sign_extrinsic = (r, i, o, c, d) => (t._hd_dot_sign_extrinsic = O.He)(r, i, o, c, d), t._hd_dot_derive_pubkey = (r, i, o) => (t._hd_dot_derive_pubkey = O.Ie)(r, i, o), t._hd_libp2p_peer_id = (r, i, o, c, d) => (t._hd_libp2p_peer_id = O.Je)(r, i, o, c, d), t._hd_libp2p_peer_id_string = (r, i, o, c, d) => (t._hd_libp2p_peer_id_string = O.Ke)(r, i, o, c, d), t._hd_libp2p_ipns_hash = (r, i, o, c, d) => (t._hd_libp2p_ipns_hash = O.Le)(r, i, o, c, d), t._hd_libp2p_ipns_hash_base32 = (r, i, o, c, d) => (t._hd_libp2p_ipns_hash_base32 = O.Me)(r, i, o, c, d), t._hd_encode_base32lower = (r, i, o, c) => (t._hd_encode_base32lower = O.Ne)(r, i, o, c), t._hd_encode_base36lower = (r, i, o, c) => (t._hd_encode_base36lower = O.Oe)(r, i, o, c), t._hd_openssl_get_error = () => (t._hd_openssl_get_error = O.Pe)(), t._hd_openssl_init_fips = () => (t._hd_openssl_init_fips = O.Qe)(), t._hd_openssl_init_default = () => (t._hd_openssl_init_default = O.Re)(), t._hd_openssl_cleanup = () => (t._hd_openssl_cleanup = O.Se)(), t._hd_openssl_is_fips = () => (t._hd_openssl_is_fips = O.Te)(), t._hd_ossl_sha256 = (r, i, o) => (t._hd_ossl_sha256 = O.Ue)(r, i, o), t._hd_ossl_sha384 = (r, i, o) => (t._hd_ossl_sha384 = O.Ve)(r, i, o), t._hd_ossl_sha512 = (r, i, o) => (t._hd_ossl_sha512 = O.We)(r, i, o), t._hd_ossl_hmac_sha256 = (r, i, o, c, d) => (t._hd_ossl_hmac_sha256 = O.Xe)(r, i, o, c, d), t._hd_ossl_hmac_sha512 = (r, i, o, c, d) => (t._hd_ossl_hmac_sha512 = O.Ye)(r, i, o, c, d), t._hd_ossl_hkdf_sha384 = (r, i, o, c, d, y, A, P) => (t._hd_ossl_hkdf_sha384 = O.Ze)(r, i, o, c, d, y, A, P), t._hd_ossl_pbkdf2_sha512 = (r, i, o, c, d, y, A) => (t._hd_ossl_pbkdf2_sha512 = O._e)(r, i, o, c, d, y, A), t._hd_ossl_ecdsa_sign = (r, i, o, c, d, y, A) => (t._hd_ossl_ecdsa_sign = O.$e)(r, i, o, c, d, y, A), t._hd_ossl_ecdsa_verify = (r, i, o, c, d, y, A) => (t._hd_ossl_ecdsa_verify = O.af)(r, i, o, c, d, y, A), t._hd_ossl_ec_pubkey_from_privkey = (r, i, o, c, d) => (t._hd_ossl_ec_pubkey_from_privkey = O.bf)(r, i, o, c, d), t._hd_ossl_ecdh_keygen = (r, i, o) => (t._hd_ossl_ecdh_keygen = O.cf)(r, i, o), t._hd_ossl_ecdh_compute = (r, i, o, c, d, y, A) => (t._hd_ossl_ecdh_compute = O.df)(r, i, o, c, d, y, A);
|
|
13446
|
+
var Rc = { o: Vt, r: un, a: yr, h: Ae, n: Be, j: yt, ca: Qe, p: Ht, U: Pn, d: kn, W: qa, qa: Ya, ia: Ga, sa: Xa, oa: Ja, na: Qa, X: Za, pa: ec, ta: nc, ja: sc, ha: oc, A: ac, O: cc, Y: rs, ga: _c, la: hc, ma: pc, I: yc, V: bc, ka: vc, ra: Ac, ua: Ic, S: qc, P: pl, T: vl, w: Hc, c: Dc, e: Bc, i: Tc, q: Cc, k: Uc, y: jc, B: Gc, L: Xc, F: zc, M: Wc, ya: Qc, H: El, $: rl, da: gl, K: _l, E: nl, t: sl, ea: yl, ba: Zc, N: bl, m: $c, f: xc, b: Nc, g: Fc, l: Mc, v: Kc, C: Vc, x: Yc, xa: tl, aa: el, z: Jc, J: fl, G: Al, _: dl, u: ll, R: il, D: ol, Q: cl, wa: al, va: ul, Z: hl, s: mc, fa: Lc }, O = Ut(), _s = t._malloc = (r) => (_s = t._malloc = O.Ca)(r);
|
|
13447
|
+
t._free = (r) => (t._free = O.Da)(r), t._hd_secure_wipe = (r, i) => (t._hd_secure_wipe = O.Ea)(r, i), t._hd_alloc = (r) => (t._hd_alloc = O.Fa)(r), t._hd_dealloc = (r) => (t._hd_dealloc = O.Ga)(r), t._hd_mnemonic_generate = (r, i, o, c) => (t._hd_mnemonic_generate = O.Ha)(r, i, o, c), t._hd_mnemonic_validate = (r, i) => (t._hd_mnemonic_validate = O.Ia)(r, i), t._hd_mnemonic_to_seed = (r, i, o, c) => (t._hd_mnemonic_to_seed = O.Ja)(r, i, o, c), t._hd_mnemonic_to_entropy = (r, i, o, c) => (t._hd_mnemonic_to_entropy = O.Ka)(r, i, o, c), t._hd_entropy_to_mnemonic = (r, i, o, c, d) => (t._hd_entropy_to_mnemonic = O.La)(r, i, o, c, d), t._hd_mnemonic_get_wordlist = (r) => (t._hd_mnemonic_get_wordlist = O.Ma)(r), t._hd_mnemonic_suggest_word = (r, i, o, c, d) => (t._hd_mnemonic_suggest_word = O.Na)(r, i, o, c, d), t._hd_mnemonic_check_word = (r, i) => (t._hd_mnemonic_check_word = O.Oa)(r, i), t._hd_key_from_seed = (r, i, o) => (t._hd_key_from_seed = O.Pa)(r, i, o), t._hd_key_from_xprv = (r) => (t._hd_key_from_xprv = O.Qa)(r), t._hd_key_from_xpub = (r) => (t._hd_key_from_xpub = O.Ra)(r), t._hd_key_derive_path = (r, i) => (t._hd_key_derive_path = O.Sa)(r, i), t._hd_key_derive_child = (r, i) => (t._hd_key_derive_child = O.Ta)(r, i), t._hd_key_derive_hardened = (r, i) => (t._hd_key_derive_hardened = O.Ua)(r, i), t._hd_key_get_private = (r, i, o) => (t._hd_key_get_private = O.Va)(r, i, o), t._hd_key_get_public = (r, i, o) => (t._hd_key_get_public = O.Wa)(r, i, o), t._hd_key_get_chain_code = (r, i, o) => (t._hd_key_get_chain_code = O.Xa)(r, i, o), t._hd_key_get_fingerprint = (r) => (t._hd_key_get_fingerprint = O.Ya)(r), t._hd_key_get_parent_fingerprint = (r) => (t._hd_key_get_parent_fingerprint = O.Za)(r), t._hd_key_get_depth = (r) => (t._hd_key_get_depth = O._a)(r), t._hd_key_get_child_index = (r) => (t._hd_key_get_child_index = O.$a)(r), t._hd_key_serialize_xprv = (r, i, o) => (t._hd_key_serialize_xprv = O.ab)(r, i, o), t._hd_key_serialize_xpub = (r, i, o) => (t._hd_key_serialize_xpub = O.bb)(r, i, o), t._hd_key_neutered = (r) => (t._hd_key_neutered = O.cb)(r), t._hd_key_is_neutered = (r) => (t._hd_key_is_neutered = O.db)(r), t._hd_key_wipe = (r) => (t._hd_key_wipe = O.eb)(r), t._hd_key_clone = (r) => (t._hd_key_clone = O.fb)(r), t._hd_key_destroy = (r) => (t._hd_key_destroy = O.gb)(r), t._hd_path_build = (r, i, o, c, d, y, A) => (t._hd_path_build = O.hb)(r, i, o, c, d, y, A), t._hd_path_parse = (r, i, o, c, d, y) => (t._hd_path_parse = O.ib)(r, i, o, c, d, y), t._hd_ossl_ec_pubkey_check = (r, i, o) => (t._hd_ossl_ec_pubkey_check = O.jb)(r, i, o), t._hd_ed25519_sign = (r, i, o, c, d) => (t._hd_ed25519_sign = O.kb)(r, i, o, c, d), t._hd_ed25519_verify = (r, i, o, c, d, y) => (t._hd_ed25519_verify = O.lb)(r, i, o, c, d, y), t._hd_ed25519_pubkey_from_seed = (r, i, o) => (t._hd_ed25519_pubkey_from_seed = O.mb)(r, i, o), t._hd_slip10_ed25519_derive_path = (r, i, o, c, d) => (t._hd_slip10_ed25519_derive_path = O.nb)(r, i, o, c, d), t._hd_x25519_pubkey = (r, i, o) => (t._hd_x25519_pubkey = O.ob)(r, i, o), t._hd_ecdh_x25519 = (r, i, o, c) => (t._hd_ecdh_x25519 = O.pb)(r, i, o, c), t._hd_ecdh = (r, i, o, c, d, y, A) => (t._hd_ecdh = O.qb)(r, i, o, c, d, y, A), t._hd_ossl_hkdf_sha256 = (r, i, o, c, d, y, A, k) => (t._hd_ossl_hkdf_sha256 = O.rb)(r, i, o, c, d, y, A, k), t._hd_ossl_aes_gcm_encrypt = (r, i, o, c, d, y, A, k, M, q) => (t._hd_ossl_aes_gcm_encrypt = O.sb)(r, i, o, c, d, y, A, k, M, q), t._hd_ossl_aes_gcm_decrypt = (r, i, o, c, d, y, A, k, M, q) => (t._hd_ossl_aes_gcm_decrypt = O.tb)(r, i, o, c, d, y, A, k, M, q), t._hd_ossl_aes_ctr_encrypt = (r, i, o, c, d, y, A) => (t._hd_ossl_aes_ctr_encrypt = O.ub)(r, i, o, c, d, y, A), t._hd_ossl_aes_ctr_decrypt = (r, i, o, c, d, y, A) => (t._hd_ossl_aes_ctr_decrypt = O.vb)(r, i, o, c, d, y, A), t._hd_ecies_encrypt = (r, i, o, c, d, y, A, k, M) => (t._hd_ecies_encrypt = O.wb)(r, i, o, c, d, y, A, k, M), t._hd_ecies_decrypt = (r, i, o, c, d, y, A, k, M) => (t._hd_ecies_decrypt = O.xb)(r, i, o, c, d, y, A, k, M), t._hd_ecies_overhead = (r) => (t._hd_ecies_overhead = O.yb)(r), t._hd_aes_ctr_encrypt = (r, i, o, c, d, y, A, k) => (t._hd_aes_ctr_encrypt = O.zb)(r, i, o, c, d, y, A, k), t._hd_aes_ctr_decrypt = (r, i, o, c, d, y, A, k) => (t._hd_aes_ctr_decrypt = O.Ab)(r, i, o, c, d, y, A, k), t._hd_x509_generate_private_key = (r, i, o) => (t._hd_x509_generate_private_key = O.Bb)(r, i, o), t._hd_x509_export_private_key_pem = (r, i, o, c, d) => (t._hd_x509_export_private_key_pem = O.Cb)(r, i, o, c, d), t._hd_x509_import_private_key_pem = (r, i, o, c) => (t._hd_x509_import_private_key_pem = O.Db)(r, i, o, c), t._hd_x509_create_self_signed = (r, i, o, c, d, y, A) => (t._hd_x509_create_self_signed = O.Eb)(r, i, o, c, d, y, A), t._hd_x509_issue_certificate = (r, i, o, c, d, y, A, k, M, q, re, he, ee) => (t._hd_x509_issue_certificate = O.Fb)(r, i, o, c, d, y, A, k, M, q, re, he, ee), t._hd_x509_convert_certificate = (r, i, o, c, d, y) => (t._hd_x509_convert_certificate = O.Gb)(r, i, o, c, d, y), t._hd_x509_parse_certificate_json = (r, i, o, c, d) => (t._hd_x509_parse_certificate_json = O.Hb)(r, i, o, c, d), t._hd_x509_verify_wallet_attestation = (r, i, o) => (t._hd_x509_verify_wallet_attestation = O.Ib)(r, i, o), t._hd_x509_export_pkcs12 = (r, i, o, c, d, y, A, k, M, q, re, he) => (t._hd_x509_export_pkcs12 = O.Jb)(r, i, o, c, d, y, A, k, M, q, re, he), t._hd_x509_import_pkcs12_json = (r, i, o, c, d) => (t._hd_x509_import_pkcs12_json = O.Kb)(r, i, o, c, d), t._hd_wasi_has_feature = (r) => (t._hd_wasi_has_feature = O.Lb)(r), t._hd_wasi_get_warning = (r) => (t._hd_wasi_get_warning = O.Mb)(r), t._hd_inject_entropy = (r, i) => (t._hd_inject_entropy = O.Nb)(r, i), t._hd_get_entropy_status = () => (t._hd_get_entropy_status = O.Ob)(), t._hd_get_version = () => (t._hd_get_version = O.Pb)(), t._hd_is_fips_mode = () => (t._hd_is_fips_mode = O.Qb)(), t._hd_get_version_string = () => (t._hd_get_version_string = O.Rb)(), t._hd_has_cryptopp = () => (t._hd_has_cryptopp = O.Sb)(), t._hd_aligned_derive_batch = (r, i, o) => (t._hd_aligned_derive_batch = O.Tb)(r, i, o), t._hd_aligned_sign_batch = (r, i, o, c, d) => (t._hd_aligned_sign_batch = O.Ub)(r, i, o, c, d), t._hd_aligned_verify_batch = (r, i, o, c, d) => (t._hd_aligned_verify_batch = O.Vb)(r, i, o, c, d), t._hd_aligned_stream_create = (r) => (t._hd_aligned_stream_create = O.Wb)(r), t._hd_aligned_stream_next = (r, i, o) => (t._hd_aligned_stream_next = O.Xb)(r, i, o), t._hd_aligned_stream_status = (r, i) => (t._hd_aligned_stream_status = O.Yb)(r, i), t._hd_aligned_stream_destroy = (r) => (t._hd_aligned_stream_destroy = O.Zb)(r), t._hd_aligned_from_extended_key = (r, i) => (t._hd_aligned_from_extended_key = O._b)(r, i), t._hd_aligned_to_extended_key = (r) => (t._hd_aligned_to_extended_key = O.$b)(r), t._hd_aligned_derived_key_entry_size = () => (t._hd_aligned_derived_key_entry_size = O.ac)(), t._hd_aligned_signature_entry_size = () => (t._hd_aligned_signature_entry_size = O.bc)(), t._hd_aligned_extended_key_data_size = () => (t._hd_aligned_extended_key_data_size = O.cc)(), t._hd_aligned_batch_derive_request_size = () => (t._hd_aligned_batch_derive_request_size = O.dc)(), t._hd_hash_sha256 = (r, i, o, c) => (t._hd_hash_sha256 = O.ec)(r, i, o, c), t._hd_hash_sha512 = (r, i, o, c) => (t._hd_hash_sha512 = O.fc)(r, i, o, c), t._hd_hash_keccak256 = (r, i, o, c) => (t._hd_hash_keccak256 = O.gc)(r, i, o, c), t._hd_hash_ripemd160 = (r, i, o, c) => (t._hd_hash_ripemd160 = O.hc)(r, i, o, c), t._hd_hash_hash160 = (r, i, o, c) => (t._hd_hash_hash160 = O.ic)(r, i, o, c), t._hd_hash_blake2b = (r, i, o, c, d) => (t._hd_hash_blake2b = O.jc)(r, i, o, c, d), t._hd_hash_blake2s = (r, i, o, c, d) => (t._hd_hash_blake2s = O.kc)(r, i, o, c, d), t._hd_kdf_hkdf = (r, i, o, c, d, y, A, k) => (t._hd_kdf_hkdf = O.lc)(r, i, o, c, d, y, A, k), t._hd_kdf_pbkdf2 = (r, i, o, c, d, y, A) => (t._hd_kdf_pbkdf2 = O.mc)(r, i, o, c, d, y, A), t._hd_kdf_scrypt = (r, i, o, c, d, y, A, k, M) => (t._hd_kdf_scrypt = O.nc)(r, i, o, c, d, y, A, k, M), t._hd_curve_pubkey_from_privkey = (r, i, o, c) => (t._hd_curve_pubkey_from_privkey = O.oc)(r, i, o, c), t._hd_secp256k1_sign = (r, i, o, c, d) => (t._hd_secp256k1_sign = O.pc)(r, i, o, c, d), t._hd_secp256k1_verify = (r, i, o, c, d, y) => (t._hd_secp256k1_verify = O.qc)(r, i, o, c, d, y), t._hd_secp256k1_sign_recoverable = (r, i, o, c) => (t._hd_secp256k1_sign_recoverable = O.rc)(r, i, o, c), t._hd_secp256k1_recover = (r, i, o, c) => (t._hd_secp256k1_recover = O.sc)(r, i, o, c), t._hd_curve_decompress_pubkey = (r, i, o, c) => (t._hd_curve_decompress_pubkey = O.tc)(r, i, o, c), t._hd_curve_validate_pubkey = (r, i, o) => (t._hd_curve_validate_pubkey = O.uc)(r, i, o), t._hd_curve_validate_privkey = (r, i, o) => (t._hd_curve_validate_privkey = O.vc)(r, i, o), t._hd_ecdh_secp256k1 = (r, i, o, c, d) => (t._hd_ecdh_secp256k1 = O.wc)(r, i, o, c, d), t._hd_p256_sign = (r, i, o, c, d) => (t._hd_p256_sign = O.xc)(r, i, o, c, d), t._hd_p256_verify = (r, i, o, c, d) => (t._hd_p256_verify = O.yc)(r, i, o, c, d), t._hd_ecdh_p256 = (r, i, o, c, d) => (t._hd_ecdh_p256 = O.zc)(r, i, o, c, d), t._hd_p384_sign = (r, i, o, c, d) => (t._hd_p384_sign = O.Ac)(r, i, o, c, d), t._hd_p384_verify = (r, i, o, c, d) => (t._hd_p384_verify = O.Bc)(r, i, o, c, d), t._hd_ecdh_p384 = (r, i, o, c, d) => (t._hd_ecdh_p384 = O.Cc)(r, i, o, c, d), t._hd_aes_gcm_encrypt = (r, i, o, c, d, y, A, k, M, q) => (t._hd_aes_gcm_encrypt = O.Dc)(r, i, o, c, d, y, A, k, M, q), t._hd_aes_gcm_decrypt = (r, i, o, c, d, y, A, k, M, q) => (t._hd_aes_gcm_decrypt = O.Ec)(r, i, o, c, d, y, A, k, M, q), t._hd_sdn_derive_password_identity = (r, i, o, c, d, y, A, k, M) => (t._hd_sdn_derive_password_identity = O.Fc)(r, i, o, c, d, y, A, k, M), t._hd_sdn_derive_legacy_password_identity = (r, i, o, c, d, y, A, k, M) => (t._hd_sdn_derive_legacy_password_identity = O.Gc)(r, i, o, c, d, y, A, k, M), t._hd_sdn_import_legacy_mnemonic_identity = (r, i, o, c, d, y, A) => (t._hd_sdn_import_legacy_mnemonic_identity = O.Hc)(r, i, o, c, d, y, A), t._hd_sdn_import_remembered_identity = (r, i, o, c, d, y, A, k, M, q, re, he, ee, de, Ee, je) => (t._hd_sdn_import_remembered_identity = O.Ic)(r, i, o, c, d, y, A, k, M, q, re, he, ee, de, Ee, je), t._hd_sdn_sign_login_v1 = (r, i, o, c, d, y) => (t._hd_sdn_sign_login_v1 = O.Jc)(r, i, o, c, d, y), t._hd_sdn_sign_login_v2 = (r, i, o, c, d, y, A) => (t._hd_sdn_sign_login_v2 = O.Kc)(r, i, o, c, d, y, A), t._hd_sdn_sign_publish_request = (r, i, o, c, d, y, A) => (t._hd_sdn_sign_publish_request = O.Lc)(r, i, o, c, d, y, A), t._hd_sdn_sign_module_delivery_key = (r, i, o, c, d, y, A) => (t._hd_sdn_sign_module_delivery_key = O.Mc)(r, i, o, c, d, y, A), t._hd_sdn_sign_asset_review_authority_activation = (r, i, o, c, d, y, A) => (t._hd_sdn_sign_asset_review_authority_activation = O.Nc)(r, i, o, c, d, y, A), t._hd_sdn_sign_asset_review_decision = (r, i, o, c, d, y, A) => (t._hd_sdn_sign_asset_review_decision = O.Oc)(r, i, o, c, d, y, A), t._hd_sdn_seal_remembered_identity = (r, i, o, c, d, y, A, k, M, q, re, he, ee, de) => (t._hd_sdn_seal_remembered_identity = O.Pc)(r, i, o, c, d, y, A, k, M, q, re, he, ee, de), t._hd_sdn_transfer_begin = (r, i) => (t._hd_sdn_transfer_begin = O.Qc)(r, i), t._hd_sdn_transfer_seal = (r, i, o, c, d, y) => (t._hd_sdn_transfer_seal = O.Rc)(r, i, o, c, d, y), t._hd_sdn_transfer_open = (r, i, o, c, d, y) => (t._hd_sdn_transfer_open = O.Sc)(r, i, o, c, d, y), t._hd_sdn_open_sealed_fields = (r, i, o, c, d, y, A, k, M) => (t._hd_sdn_open_sealed_fields = O.Tc)(r, i, o, c, d, y, A, k, M), t._hd_sdn_destroy_identity = (r) => (t._hd_sdn_destroy_identity = O.Uc)(r), t._plugin_get_manifest_flatbuffer = () => (t._plugin_get_manifest_flatbuffer = O.Vc)(), t._plugin_get_manifest_flatbuffer_size = () => (t._plugin_get_manifest_flatbuffer_size = O.Wc)(), t._hd_btc_tx_create = () => (t._hd_btc_tx_create = O.Xc)(), t._hd_btc_tx_create_v = (r) => (t._hd_btc_tx_create_v = O.Yc)(r), t._hd_btc_tx_add_input = (r, i, o, c, d, y, A) => (t._hd_btc_tx_add_input = O.Zc)(r, i, o, c, d, y, A), t._hd_btc_tx_add_output = (r, i, o, c) => (t._hd_btc_tx_add_output = O._c)(r, i, o, c), t._hd_btc_tx_add_p2pkh_output = (r, i, o) => (t._hd_btc_tx_add_p2pkh_output = O.$c)(r, i, o), t._hd_btc_tx_add_p2wpkh_output = (r, i, o) => (t._hd_btc_tx_add_p2wpkh_output = O.ad)(r, i, o), t._hd_btc_tx_sign = (r, i, o) => (t._hd_btc_tx_sign = O.bd)(r, i, o), t._hd_btc_tx_sign_input = (r, i, o, c) => (t._hd_btc_tx_sign_input = O.cd)(r, i, o, c), t._hd_btc_tx_serialize = (r, i, o, c) => (t._hd_btc_tx_serialize = O.dd)(r, i, o, c), t._hd_btc_tx_get_txid = (r, i) => (t._hd_btc_tx_get_txid = O.ed)(r, i), t._hd_btc_tx_get_txid_hex = (r, i, o) => (t._hd_btc_tx_get_txid_hex = O.fd)(r, i, o), t._hd_btc_tx_get_size = (r) => (t._hd_btc_tx_get_size = O.gd)(r), t._hd_btc_tx_get_vsize = (r) => (t._hd_btc_tx_get_vsize = O.hd)(r), t._hd_btc_tx_get_weight = (r) => (t._hd_btc_tx_get_weight = O.id)(r), t._hd_btc_tx_get_fee = (r) => (t._hd_btc_tx_get_fee = O.jd)(r), t._hd_btc_tx_validate = (r) => (t._hd_btc_tx_validate = O.kd)(r), t._hd_btc_tx_destroy = (r) => (t._hd_btc_tx_destroy = O.ld)(r), t._hd_btc_tx_parse = (r, i) => (t._hd_btc_tx_parse = O.md)(r, i), t._hd_btc_tx_parse_hex = (r) => (t._hd_btc_tx_parse_hex = O.nd)(r), t._hd_eth_tx_create = (r) => (t._hd_eth_tx_create = O.od)(r), t._hd_eth_tx_create_eip1559 = (r, i, o) => (t._hd_eth_tx_create_eip1559 = O.pd)(r, i, o), t._hd_eth_tx_set_nonce = (r, i) => (t._hd_eth_tx_set_nonce = O.qd)(r, i), t._hd_eth_tx_set_gas_price = (r, i) => (t._hd_eth_tx_set_gas_price = O.rd)(r, i), t._hd_eth_tx_set_gas_limit = (r, i) => (t._hd_eth_tx_set_gas_limit = O.sd)(r, i), t._hd_eth_tx_set_to = (r, i) => (t._hd_eth_tx_set_to = O.td)(r, i), t._hd_eth_tx_set_to_hex = (r, i) => (t._hd_eth_tx_set_to_hex = O.ud)(r, i), t._hd_eth_tx_set_value = (r, i) => (t._hd_eth_tx_set_value = O.vd)(r, i), t._hd_eth_tx_set_value_256 = (r, i) => (t._hd_eth_tx_set_value_256 = O.wd)(r, i), t._hd_eth_tx_set_data = (r, i, o) => (t._hd_eth_tx_set_data = O.xd)(r, i, o), t._hd_eth_tx_sign = (r, i) => (t._hd_eth_tx_sign = O.yd)(r, i), t._hd_eth_tx_serialize = (r, i, o, c) => (t._hd_eth_tx_serialize = O.zd)(r, i, o, c), t._hd_eth_tx_get_hash = (r, i) => (t._hd_eth_tx_get_hash = O.Ad)(r, i), t._hd_eth_tx_get_hash_hex = (r, i, o) => (t._hd_eth_tx_get_hash_hex = O.Bd)(r, i, o), t._hd_eth_tx_get_sender = (r, i) => (t._hd_eth_tx_get_sender = O.Cd)(r, i), t._hd_eth_tx_get_size = (r) => (t._hd_eth_tx_get_size = O.Dd)(r), t._hd_eth_tx_get_max_fee = (r) => (t._hd_eth_tx_get_max_fee = O.Ed)(r), t._hd_eth_tx_validate = (r) => (t._hd_eth_tx_validate = O.Fd)(r), t._hd_eth_tx_destroy = (r) => (t._hd_eth_tx_destroy = O.Gd)(r), t._hd_eth_tx_parse = (r, i) => (t._hd_eth_tx_parse = O.Hd)(r, i), t._hd_eth_tx_parse_hex = (r) => (t._hd_eth_tx_parse_hex = O.Id)(r), t._hd_coin_address_from_pubkey = (r, i, o, c, d, y) => (t._hd_coin_address_from_pubkey = O.Jd)(r, i, o, c, d, y), t._hd_coin_validate_address = (r, i, o) => (t._hd_coin_validate_address = O.Kd)(r, i, o), t._hd_coin_sign_message = (r, i, o, c, d, y) => (t._hd_coin_sign_message = O.Ld)(r, i, o, c, d, y), t._hd_coin_verify_message = (r, i, o, c, d, y, A) => (t._hd_coin_verify_message = O.Md)(r, i, o, c, d, y, A), t._hd_base58_encode = (r, i, o, c) => (t._hd_base58_encode = O.Nd)(r, i, o, c), t._hd_base58_decode = (r, i, o) => (t._hd_base58_decode = O.Od)(r, i, o), t._hd_base58check_encode = (r, i, o, c) => (t._hd_base58check_encode = O.Pd)(r, i, o, c), t._hd_base58check_decode = (r, i, o) => (t._hd_base58check_decode = O.Qd)(r, i, o), t._hd_bech32_encode = (r, i, o, c, d, y) => (t._hd_bech32_encode = O.Rd)(r, i, o, c, d, y), t._hd_bech32_decode = (r, i, o, c, d) => (t._hd_bech32_decode = O.Sd)(r, i, o, c, d), t._hd_btc_p2pkh_address = (r, i, o, c, d) => (t._hd_btc_p2pkh_address = O.Td)(r, i, o, c, d), t._hd_btc_p2sh_address = (r, i, o, c, d) => (t._hd_btc_p2sh_address = O.Ud)(r, i, o, c, d), t._hd_btc_p2wpkh_address = (r, i, o, c, d) => (t._hd_btc_p2wpkh_address = O.Vd)(r, i, o, c, d), t._hd_btc_p2wsh_address = (r, i, o, c, d) => (t._hd_btc_p2wsh_address = O.Wd)(r, i, o, c, d), t._hd_btc_p2tr_address = (r, i, o, c, d) => (t._hd_btc_p2tr_address = O.Xd)(r, i, o, c, d), t._hd_btc_validate_address = (r, i) => (t._hd_btc_validate_address = O.Yd)(r, i), t._hd_btc_detect_address_type = (r, i) => (t._hd_btc_detect_address_type = O.Zd)(r, i), t._hd_btc_decode_address = (r, i, o, c, d) => (t._hd_btc_decode_address = O._d)(r, i, o, c, d), t._hd_btc_sign_message = (r, i, o, c, d) => (t._hd_btc_sign_message = O.$d)(r, i, o, c, d), t._hd_btc_verify_message = (r, i, o, c, d) => (t._hd_btc_verify_message = O.ae)(r, i, o, c, d), t._hd_btc_to_wif = (r, i, o, c, d) => (t._hd_btc_to_wif = O.be)(r, i, o, c, d), t._hd_btc_from_wif = (r, i, o) => (t._hd_btc_from_wif = O.ce)(r, i, o), t._hd_eth_address = (r, i, o, c) => (t._hd_eth_address = O.de)(r, i, o, c), t._hd_eth_validate_address = (r) => (t._hd_eth_validate_address = O.ee)(r), t._hd_eth_checksum_address = (r, i, o) => (t._hd_eth_checksum_address = O.fe)(r, i, o), t._hd_eth_verify_checksum = (r) => (t._hd_eth_verify_checksum = O.ge)(r), t._hd_eth_sign_message = (r, i, o, c, d) => (t._hd_eth_sign_message = O.he)(r, i, o, c, d), t._hd_eth_verify_message = (r, i, o, c, d) => (t._hd_eth_verify_message = O.ie)(r, i, o, c, d), t._hd_eth_recover_address = (r, i, o, c, d, y) => (t._hd_eth_recover_address = O.je)(r, i, o, c, d, y), t._hd_eth_hash_message = (r, i, o) => (t._hd_eth_hash_message = O.ke)(r, i, o), t._hd_eth_sign_typed_data = (r, i, o, c, d, y, A, k) => (t._hd_eth_sign_typed_data = O.le)(r, i, o, c, d, y, A, k), t._hd_sol_address = (r, i, o, c) => (t._hd_sol_address = O.me)(r, i, o, c), t._hd_sol_validate_address = (r) => (t._hd_sol_validate_address = O.ne)(r), t._hd_sol_address_to_pubkey = (r, i, o) => (t._hd_sol_address_to_pubkey = O.oe)(r, i, o), t._hd_sol_sign_message = (r, i, o, c, d) => (t._hd_sol_sign_message = O.pe)(r, i, o, c, d), t._hd_sol_verify_message = (r, i, o, c, d, y) => (t._hd_sol_verify_message = O.qe)(r, i, o, c, d, y), t._hd_sol_derive_pubkey = (r, i, o) => (t._hd_sol_derive_pubkey = O.re)(r, i, o), t._hd_sol_find_pda = (r, i, o, c, d, y, A, k) => (t._hd_sol_find_pda = O.se)(r, i, o, c, d, y, A, k), t._hd_sol_get_associated_token_address = (r, i, o, c) => (t._hd_sol_get_associated_token_address = O.te)(r, i, o, c), t._hd_cosmos_address = (r, i, o, c, d) => (t._hd_cosmos_address = O.ue)(r, i, o, c, d), t._hd_cosmos_validate_address = (r, i) => (t._hd_cosmos_validate_address = O.ve)(r, i), t._hd_cosmos_convert_prefix = (r, i, o, c) => (t._hd_cosmos_convert_prefix = O.we)(r, i, o, c), t._hd_cosmos_sign_amino = (r, i, o, c, d) => (t._hd_cosmos_sign_amino = O.xe)(r, i, o, c, d), t._hd_cosmos_sign_direct = (r, i, o, c, d) => (t._hd_cosmos_sign_direct = O.ye)(r, i, o, c, d), t._hd_cosmos_verify_signature = (r, i, o, c, d, y) => (t._hd_cosmos_verify_signature = O.ze)(r, i, o, c, d, y), t._hd_cosmos_sign_arbitrary = (r, i, o, c, d, y) => (t._hd_cosmos_sign_arbitrary = O.Ae)(r, i, o, c, d, y), t._hd_dot_address = (r, i, o, c, d) => (t._hd_dot_address = O.Be)(r, i, o, c, d), t._hd_dot_validate_address = (r, i) => (t._hd_dot_validate_address = O.Ce)(r, i), t._hd_dot_decode_address = (r, i, o, c) => (t._hd_dot_decode_address = O.De)(r, i, o, c), t._hd_dot_convert_prefix = (r, i, o, c) => (t._hd_dot_convert_prefix = O.Ee)(r, i, o, c), t._hd_dot_sign_message = (r, i, o, c, d) => (t._hd_dot_sign_message = O.Fe)(r, i, o, c, d), t._hd_dot_verify_message = (r, i, o, c, d, y) => (t._hd_dot_verify_message = O.Ge)(r, i, o, c, d, y), t._hd_dot_sign_extrinsic = (r, i, o, c, d) => (t._hd_dot_sign_extrinsic = O.He)(r, i, o, c, d), t._hd_dot_derive_pubkey = (r, i, o) => (t._hd_dot_derive_pubkey = O.Ie)(r, i, o), t._hd_libp2p_peer_id = (r, i, o, c, d) => (t._hd_libp2p_peer_id = O.Je)(r, i, o, c, d), t._hd_libp2p_peer_id_string = (r, i, o, c, d) => (t._hd_libp2p_peer_id_string = O.Ke)(r, i, o, c, d), t._hd_libp2p_ipns_hash = (r, i, o, c, d) => (t._hd_libp2p_ipns_hash = O.Le)(r, i, o, c, d), t._hd_libp2p_ipns_hash_base32 = (r, i, o, c, d) => (t._hd_libp2p_ipns_hash_base32 = O.Me)(r, i, o, c, d), t._hd_encode_base32lower = (r, i, o, c) => (t._hd_encode_base32lower = O.Ne)(r, i, o, c), t._hd_encode_base36lower = (r, i, o, c) => (t._hd_encode_base36lower = O.Oe)(r, i, o, c), t._hd_openssl_get_error = () => (t._hd_openssl_get_error = O.Pe)(), t._hd_openssl_init_fips = () => (t._hd_openssl_init_fips = O.Qe)(), t._hd_openssl_init_default = () => (t._hd_openssl_init_default = O.Re)(), t._hd_openssl_cleanup = () => (t._hd_openssl_cleanup = O.Se)(), t._hd_openssl_is_fips = () => (t._hd_openssl_is_fips = O.Te)(), t._hd_ossl_sha256 = (r, i, o) => (t._hd_ossl_sha256 = O.Ue)(r, i, o), t._hd_ossl_sha384 = (r, i, o) => (t._hd_ossl_sha384 = O.Ve)(r, i, o), t._hd_ossl_sha512 = (r, i, o) => (t._hd_ossl_sha512 = O.We)(r, i, o), t._hd_ossl_hmac_sha256 = (r, i, o, c, d) => (t._hd_ossl_hmac_sha256 = O.Xe)(r, i, o, c, d), t._hd_ossl_hmac_sha512 = (r, i, o, c, d) => (t._hd_ossl_hmac_sha512 = O.Ye)(r, i, o, c, d), t._hd_ossl_hkdf_sha384 = (r, i, o, c, d, y, A, k) => (t._hd_ossl_hkdf_sha384 = O.Ze)(r, i, o, c, d, y, A, k), t._hd_ossl_pbkdf2_sha512 = (r, i, o, c, d, y, A) => (t._hd_ossl_pbkdf2_sha512 = O._e)(r, i, o, c, d, y, A), t._hd_ossl_ecdsa_sign = (r, i, o, c, d, y, A) => (t._hd_ossl_ecdsa_sign = O.$e)(r, i, o, c, d, y, A), t._hd_ossl_ecdsa_verify = (r, i, o, c, d, y, A) => (t._hd_ossl_ecdsa_verify = O.af)(r, i, o, c, d, y, A), t._hd_ossl_ec_pubkey_from_privkey = (r, i, o, c, d) => (t._hd_ossl_ec_pubkey_from_privkey = O.bf)(r, i, o, c, d), t._hd_ossl_ecdh_keygen = (r, i, o) => (t._hd_ossl_ecdh_keygen = O.cf)(r, i, o), t._hd_ossl_ecdh_compute = (r, i, o, c, d, y, A) => (t._hd_ossl_ecdh_compute = O.df)(r, i, o, c, d, y, A);
|
|
13446
13448
|
var us = () => (us = O.ef)(), Ie = (r, i) => (Ie = O.ff)(r, i), Cn = (r) => (Cn = O.gf)(r), me = () => (me = O.hf)(), Se = (r) => (Se = O.jf)(r), ii = (r) => (ii = O.kf)(r), fs = (r) => (fs = O.lf)(r), hs = (r) => (hs = O.mf)(r), ps = (r, i, o) => (ps = O.nf)(r, i, o), ys = (r) => (ys = O.of)(r);
|
|
13447
13449
|
function Nc(r, i, o) {
|
|
13448
13450
|
var c = me();
|
|
13449
13451
|
try {
|
|
13450
|
-
|
|
13452
|
+
ke(r)(i, o);
|
|
13451
13453
|
} catch (d) {
|
|
13452
13454
|
if (Se(c), d !== d + 0) throw d;
|
|
13453
13455
|
Ie(1, 0);
|
|
@@ -13456,7 +13458,7 @@ var ph = (() => {
|
|
|
13456
13458
|
function Tc(r, i, o, c) {
|
|
13457
13459
|
var d = me();
|
|
13458
13460
|
try {
|
|
13459
|
-
return
|
|
13461
|
+
return ke(r)(i, o, c);
|
|
13460
13462
|
} catch (y) {
|
|
13461
13463
|
if (Se(d), y !== y + 0) throw y;
|
|
13462
13464
|
Ie(1, 0);
|
|
@@ -13465,7 +13467,7 @@ var ph = (() => {
|
|
|
13465
13467
|
function xc(r, i) {
|
|
13466
13468
|
var o = me();
|
|
13467
13469
|
try {
|
|
13468
|
-
|
|
13470
|
+
ke(r)(i);
|
|
13469
13471
|
} catch (c) {
|
|
13470
13472
|
if (Se(o), c !== c + 0) throw c;
|
|
13471
13473
|
Ie(1, 0);
|
|
@@ -13474,7 +13476,7 @@ var ph = (() => {
|
|
|
13474
13476
|
function Dc(r, i) {
|
|
13475
13477
|
var o = me();
|
|
13476
13478
|
try {
|
|
13477
|
-
return
|
|
13479
|
+
return ke(r)(i);
|
|
13478
13480
|
} catch (c) {
|
|
13479
13481
|
if (Se(o), c !== c + 0) throw c;
|
|
13480
13482
|
Ie(1, 0);
|
|
@@ -13483,7 +13485,7 @@ var ph = (() => {
|
|
|
13483
13485
|
function Cc(r, i, o, c, d) {
|
|
13484
13486
|
var y = me();
|
|
13485
13487
|
try {
|
|
13486
|
-
return
|
|
13488
|
+
return ke(r)(i, o, c, d);
|
|
13487
13489
|
} catch (A) {
|
|
13488
13490
|
if (Se(y), A !== A + 0) throw A;
|
|
13489
13491
|
Ie(1, 0);
|
|
@@ -13492,16 +13494,16 @@ var ph = (() => {
|
|
|
13492
13494
|
function Uc(r, i, o, c, d, y) {
|
|
13493
13495
|
var A = me();
|
|
13494
13496
|
try {
|
|
13495
|
-
return
|
|
13496
|
-
} catch (
|
|
13497
|
-
if (Se(A),
|
|
13497
|
+
return ke(r)(i, o, c, d, y);
|
|
13498
|
+
} catch (k) {
|
|
13499
|
+
if (Se(A), k !== k + 0) throw k;
|
|
13498
13500
|
Ie(1, 0);
|
|
13499
13501
|
}
|
|
13500
13502
|
}
|
|
13501
13503
|
function Fc(r, i, o, c) {
|
|
13502
13504
|
var d = me();
|
|
13503
13505
|
try {
|
|
13504
|
-
|
|
13506
|
+
ke(r)(i, o, c);
|
|
13505
13507
|
} catch (y) {
|
|
13506
13508
|
if (Se(d), y !== y + 0) throw y;
|
|
13507
13509
|
Ie(1, 0);
|
|
@@ -13510,7 +13512,7 @@ var ph = (() => {
|
|
|
13510
13512
|
function Mc(r, i, o, c, d) {
|
|
13511
13513
|
var y = me();
|
|
13512
13514
|
try {
|
|
13513
|
-
|
|
13515
|
+
ke(r)(i, o, c, d);
|
|
13514
13516
|
} catch (A) {
|
|
13515
13517
|
if (Se(y), A !== A + 0) throw A;
|
|
13516
13518
|
Ie(1, 0);
|
|
@@ -13519,25 +13521,25 @@ var ph = (() => {
|
|
|
13519
13521
|
function Bc(r, i, o) {
|
|
13520
13522
|
var c = me();
|
|
13521
13523
|
try {
|
|
13522
|
-
return
|
|
13524
|
+
return ke(r)(i, o);
|
|
13523
13525
|
} catch (d) {
|
|
13524
13526
|
if (Se(c), d !== d + 0) throw d;
|
|
13525
13527
|
Ie(1, 0);
|
|
13526
13528
|
}
|
|
13527
13529
|
}
|
|
13528
13530
|
function Vc(r, i, o, c, d, y, A) {
|
|
13529
|
-
var
|
|
13531
|
+
var k = me();
|
|
13530
13532
|
try {
|
|
13531
|
-
|
|
13533
|
+
ke(r)(i, o, c, d, y, A);
|
|
13532
13534
|
} catch (M) {
|
|
13533
|
-
if (Se(
|
|
13535
|
+
if (Se(k), M !== M + 0) throw M;
|
|
13534
13536
|
Ie(1, 0);
|
|
13535
13537
|
}
|
|
13536
13538
|
}
|
|
13537
13539
|
function Hc(r) {
|
|
13538
13540
|
var i = me();
|
|
13539
13541
|
try {
|
|
13540
|
-
return
|
|
13542
|
+
return ke(r)();
|
|
13541
13543
|
} catch (o) {
|
|
13542
13544
|
if (Se(i), o !== o + 0) throw o;
|
|
13543
13545
|
Ie(1, 0);
|
|
@@ -13546,7 +13548,7 @@ var ph = (() => {
|
|
|
13546
13548
|
function $c(r) {
|
|
13547
13549
|
var i = me();
|
|
13548
13550
|
try {
|
|
13549
|
-
|
|
13551
|
+
ke(r)();
|
|
13550
13552
|
} catch (o) {
|
|
13551
13553
|
if (Se(i), o !== o + 0) throw o;
|
|
13552
13554
|
Ie(1, 0);
|
|
@@ -13555,34 +13557,34 @@ var ph = (() => {
|
|
|
13555
13557
|
function Kc(r, i, o, c, d, y) {
|
|
13556
13558
|
var A = me();
|
|
13557
13559
|
try {
|
|
13558
|
-
|
|
13559
|
-
} catch (
|
|
13560
|
-
if (Se(A),
|
|
13560
|
+
ke(r)(i, o, c, d, y);
|
|
13561
|
+
} catch (k) {
|
|
13562
|
+
if (Se(A), k !== k + 0) throw k;
|
|
13561
13563
|
Ie(1, 0);
|
|
13562
13564
|
}
|
|
13563
13565
|
}
|
|
13564
|
-
function zc(r, i, o, c, d, y, A,
|
|
13566
|
+
function zc(r, i, o, c, d, y, A, k, M, q) {
|
|
13565
13567
|
var re = me();
|
|
13566
13568
|
try {
|
|
13567
|
-
return
|
|
13569
|
+
return ke(r)(i, o, c, d, y, A, k, M, q);
|
|
13568
13570
|
} catch (he) {
|
|
13569
13571
|
if (Se(re), he !== he + 0) throw he;
|
|
13570
13572
|
Ie(1, 0);
|
|
13571
13573
|
}
|
|
13572
13574
|
}
|
|
13573
13575
|
function jc(r, i, o, c, d, y, A) {
|
|
13574
|
-
var
|
|
13576
|
+
var k = me();
|
|
13575
13577
|
try {
|
|
13576
|
-
return
|
|
13578
|
+
return ke(r)(i, o, c, d, y, A);
|
|
13577
13579
|
} catch (M) {
|
|
13578
|
-
if (Se(
|
|
13580
|
+
if (Se(k), M !== M + 0) throw M;
|
|
13579
13581
|
Ie(1, 0);
|
|
13580
13582
|
}
|
|
13581
13583
|
}
|
|
13582
|
-
function Wc(r, i, o, c, d, y, A,
|
|
13584
|
+
function Wc(r, i, o, c, d, y, A, k, M, q, re) {
|
|
13583
13585
|
var he = me();
|
|
13584
13586
|
try {
|
|
13585
|
-
return
|
|
13587
|
+
return ke(r)(i, o, c, d, y, A, k, M, q, re);
|
|
13586
13588
|
} catch (ee) {
|
|
13587
13589
|
if (Se(he), ee !== ee + 0) throw ee;
|
|
13588
13590
|
Ie(1, 0);
|
|
@@ -13591,52 +13593,52 @@ var ph = (() => {
|
|
|
13591
13593
|
function qc(r, i) {
|
|
13592
13594
|
var o = me();
|
|
13593
13595
|
try {
|
|
13594
|
-
return
|
|
13596
|
+
return ke(r)(i);
|
|
13595
13597
|
} catch (c) {
|
|
13596
13598
|
if (Se(o), c !== c + 0) throw c;
|
|
13597
13599
|
Ie(1, 0);
|
|
13598
13600
|
}
|
|
13599
13601
|
}
|
|
13600
|
-
function Yc(r, i, o, c, d, y, A,
|
|
13602
|
+
function Yc(r, i, o, c, d, y, A, k) {
|
|
13601
13603
|
var M = me();
|
|
13602
13604
|
try {
|
|
13603
|
-
|
|
13605
|
+
ke(r)(i, o, c, d, y, A, k);
|
|
13604
13606
|
} catch (q) {
|
|
13605
13607
|
if (Se(M), q !== q + 0) throw q;
|
|
13606
13608
|
Ie(1, 0);
|
|
13607
13609
|
}
|
|
13608
13610
|
}
|
|
13609
|
-
function Gc(r, i, o, c, d, y, A,
|
|
13611
|
+
function Gc(r, i, o, c, d, y, A, k) {
|
|
13610
13612
|
var M = me();
|
|
13611
13613
|
try {
|
|
13612
|
-
return
|
|
13614
|
+
return ke(r)(i, o, c, d, y, A, k);
|
|
13613
13615
|
} catch (q) {
|
|
13614
13616
|
if (Se(M), q !== q + 0) throw q;
|
|
13615
13617
|
Ie(1, 0);
|
|
13616
13618
|
}
|
|
13617
13619
|
}
|
|
13618
|
-
function Xc(r, i, o, c, d, y, A,
|
|
13620
|
+
function Xc(r, i, o, c, d, y, A, k, M) {
|
|
13619
13621
|
var q = me();
|
|
13620
13622
|
try {
|
|
13621
|
-
return
|
|
13623
|
+
return ke(r)(i, o, c, d, y, A, k, M);
|
|
13622
13624
|
} catch (re) {
|
|
13623
13625
|
if (Se(q), re !== re + 0) throw re;
|
|
13624
13626
|
Ie(1, 0);
|
|
13625
13627
|
}
|
|
13626
13628
|
}
|
|
13627
|
-
function Jc(r, i, o, c, d, y, A,
|
|
13629
|
+
function Jc(r, i, o, c, d, y, A, k, M, q, re) {
|
|
13628
13630
|
var he = me();
|
|
13629
13631
|
try {
|
|
13630
|
-
|
|
13632
|
+
ke(r)(i, o, c, d, y, A, k, M, q, re);
|
|
13631
13633
|
} catch (ee) {
|
|
13632
13634
|
if (Se(he), ee !== ee + 0) throw ee;
|
|
13633
13635
|
Ie(1, 0);
|
|
13634
13636
|
}
|
|
13635
13637
|
}
|
|
13636
|
-
function Qc(r, i, o, c, d, y, A,
|
|
13638
|
+
function Qc(r, i, o, c, d, y, A, k, M, q, re) {
|
|
13637
13639
|
var he = me();
|
|
13638
13640
|
try {
|
|
13639
|
-
return
|
|
13641
|
+
return ke(r)(i, o, c, d, y, A, k, M, q, re);
|
|
13640
13642
|
} catch (ee) {
|
|
13641
13643
|
if (Se(he), ee !== ee + 0) throw ee;
|
|
13642
13644
|
Ie(1, 0);
|
|
@@ -13645,25 +13647,25 @@ var ph = (() => {
|
|
|
13645
13647
|
function Zc(r, i, o, c) {
|
|
13646
13648
|
var d = me();
|
|
13647
13649
|
try {
|
|
13648
|
-
return
|
|
13650
|
+
return ke(r)(i, o, c);
|
|
13649
13651
|
} catch (y) {
|
|
13650
13652
|
if (Se(d), y !== y + 0) throw y;
|
|
13651
13653
|
return Ie(1, 0), 0n;
|
|
13652
13654
|
}
|
|
13653
13655
|
}
|
|
13654
|
-
function el(r, i, o, c, d, y, A,
|
|
13656
|
+
function el(r, i, o, c, d, y, A, k, M, q) {
|
|
13655
13657
|
var re = me();
|
|
13656
13658
|
try {
|
|
13657
|
-
|
|
13659
|
+
ke(r)(i, o, c, d, y, A, k, M, q);
|
|
13658
13660
|
} catch (he) {
|
|
13659
13661
|
if (Se(re), he !== he + 0) throw he;
|
|
13660
13662
|
Ie(1, 0);
|
|
13661
13663
|
}
|
|
13662
13664
|
}
|
|
13663
|
-
function tl(r, i, o, c, d, y, A,
|
|
13665
|
+
function tl(r, i, o, c, d, y, A, k, M) {
|
|
13664
13666
|
var q = me();
|
|
13665
13667
|
try {
|
|
13666
|
-
|
|
13668
|
+
ke(r)(i, o, c, d, y, A, k, M);
|
|
13667
13669
|
} catch (re) {
|
|
13668
13670
|
if (Se(q), re !== re + 0) throw re;
|
|
13669
13671
|
Ie(1, 0);
|
|
@@ -13672,16 +13674,16 @@ var ph = (() => {
|
|
|
13672
13674
|
function nl(r, i, o) {
|
|
13673
13675
|
var c = me();
|
|
13674
13676
|
try {
|
|
13675
|
-
return
|
|
13677
|
+
return ke(r)(i, o);
|
|
13676
13678
|
} catch (d) {
|
|
13677
13679
|
if (Se(c), d !== d + 0) throw d;
|
|
13678
13680
|
Ie(1, 0);
|
|
13679
13681
|
}
|
|
13680
13682
|
}
|
|
13681
|
-
function rl(r, i, o, c, d, y, A,
|
|
13683
|
+
function rl(r, i, o, c, d, y, A, k, M, q, re) {
|
|
13682
13684
|
var he = me();
|
|
13683
13685
|
try {
|
|
13684
|
-
return
|
|
13686
|
+
return ke(r)(i, o, c, d, y, A, k, M, q, re);
|
|
13685
13687
|
} catch (ee) {
|
|
13686
13688
|
if (Se(he), ee !== ee + 0) throw ee;
|
|
13687
13689
|
Ie(1, 0);
|
|
@@ -13690,7 +13692,7 @@ var ph = (() => {
|
|
|
13690
13692
|
function il(r, i, o, c) {
|
|
13691
13693
|
var d = me();
|
|
13692
13694
|
try {
|
|
13693
|
-
|
|
13695
|
+
ke(r)(i, o, c);
|
|
13694
13696
|
} catch (y) {
|
|
13695
13697
|
if (Se(d), y !== y + 0) throw y;
|
|
13696
13698
|
Ie(1, 0);
|
|
@@ -13699,7 +13701,7 @@ var ph = (() => {
|
|
|
13699
13701
|
function sl(r, i, o, c) {
|
|
13700
13702
|
var d = me();
|
|
13701
13703
|
try {
|
|
13702
|
-
return
|
|
13704
|
+
return ke(r)(i, o, c);
|
|
13703
13705
|
} catch (y) {
|
|
13704
13706
|
if (Se(d), y !== y + 0) throw y;
|
|
13705
13707
|
Ie(1, 0);
|
|
@@ -13708,16 +13710,16 @@ var ph = (() => {
|
|
|
13708
13710
|
function ol(r, i, o, c, d) {
|
|
13709
13711
|
var y = me();
|
|
13710
13712
|
try {
|
|
13711
|
-
|
|
13713
|
+
ke(r)(i, o, c, d);
|
|
13712
13714
|
} catch (A) {
|
|
13713
13715
|
if (Se(y), A !== A + 0) throw A;
|
|
13714
13716
|
Ie(1, 0);
|
|
13715
13717
|
}
|
|
13716
13718
|
}
|
|
13717
|
-
function al(r, i, o, c, d, y, A,
|
|
13719
|
+
function al(r, i, o, c, d, y, A, k) {
|
|
13718
13720
|
var M = me();
|
|
13719
13721
|
try {
|
|
13720
|
-
|
|
13722
|
+
ke(r)(i, o, c, d, y, A, k);
|
|
13721
13723
|
} catch (q) {
|
|
13722
13724
|
if (Se(M), q !== q + 0) throw q;
|
|
13723
13725
|
Ie(1, 0);
|
|
@@ -13726,34 +13728,34 @@ var ph = (() => {
|
|
|
13726
13728
|
function cl(r, i, o, c, d, y) {
|
|
13727
13729
|
var A = me();
|
|
13728
13730
|
try {
|
|
13729
|
-
|
|
13730
|
-
} catch (
|
|
13731
|
-
if (Se(A),
|
|
13731
|
+
ke(r)(i, o, c, d, y);
|
|
13732
|
+
} catch (k) {
|
|
13733
|
+
if (Se(A), k !== k + 0) throw k;
|
|
13732
13734
|
Ie(1, 0);
|
|
13733
13735
|
}
|
|
13734
13736
|
}
|
|
13735
13737
|
function ll(r, i, o) {
|
|
13736
13738
|
var c = me();
|
|
13737
13739
|
try {
|
|
13738
|
-
|
|
13740
|
+
ke(r)(i, o);
|
|
13739
13741
|
} catch (d) {
|
|
13740
13742
|
if (Se(c), d !== d + 0) throw d;
|
|
13741
13743
|
Ie(1, 0);
|
|
13742
13744
|
}
|
|
13743
13745
|
}
|
|
13744
13746
|
function dl(r, i, o, c, d, y, A) {
|
|
13745
|
-
var
|
|
13747
|
+
var k = me();
|
|
13746
13748
|
try {
|
|
13747
|
-
|
|
13749
|
+
ke(r)(i, o, c, d, y, A);
|
|
13748
13750
|
} catch (M) {
|
|
13749
|
-
if (Se(
|
|
13751
|
+
if (Se(k), M !== M + 0) throw M;
|
|
13750
13752
|
Ie(1, 0);
|
|
13751
13753
|
}
|
|
13752
13754
|
}
|
|
13753
13755
|
function _l(r, i, o, c) {
|
|
13754
13756
|
var d = me();
|
|
13755
13757
|
try {
|
|
13756
|
-
return
|
|
13758
|
+
return ke(r)(i, o, c);
|
|
13757
13759
|
} catch (y) {
|
|
13758
13760
|
if (Se(d), y !== y + 0) throw y;
|
|
13759
13761
|
Ie(1, 0);
|
|
@@ -13762,16 +13764,16 @@ var ph = (() => {
|
|
|
13762
13764
|
function ul(r, i, o, c) {
|
|
13763
13765
|
var d = me();
|
|
13764
13766
|
try {
|
|
13765
|
-
|
|
13767
|
+
ke(r)(i, o, c);
|
|
13766
13768
|
} catch (y) {
|
|
13767
13769
|
if (Se(d), y !== y + 0) throw y;
|
|
13768
13770
|
Ie(1, 0);
|
|
13769
13771
|
}
|
|
13770
13772
|
}
|
|
13771
|
-
function fl(r, i, o, c, d, y, A,
|
|
13773
|
+
function fl(r, i, o, c, d, y, A, k, M, q, re, he) {
|
|
13772
13774
|
var ee = me();
|
|
13773
13775
|
try {
|
|
13774
|
-
|
|
13776
|
+
ke(r)(i, o, c, d, y, A, k, M, q, re, he);
|
|
13775
13777
|
} catch (de) {
|
|
13776
13778
|
if (Se(ee), de !== de + 0) throw de;
|
|
13777
13779
|
Ie(1, 0);
|
|
@@ -13780,7 +13782,7 @@ var ph = (() => {
|
|
|
13780
13782
|
function hl(r, i, o, c, d) {
|
|
13781
13783
|
var y = me();
|
|
13782
13784
|
try {
|
|
13783
|
-
|
|
13785
|
+
ke(r)(i, o, c, d);
|
|
13784
13786
|
} catch (A) {
|
|
13785
13787
|
if (Se(y), A !== A + 0) throw A;
|
|
13786
13788
|
Ie(1, 0);
|
|
@@ -13789,7 +13791,7 @@ var ph = (() => {
|
|
|
13789
13791
|
function pl(r, i, o, c) {
|
|
13790
13792
|
var d = me();
|
|
13791
13793
|
try {
|
|
13792
|
-
return
|
|
13794
|
+
return ke(r)(i, o, c);
|
|
13793
13795
|
} catch (y) {
|
|
13794
13796
|
if (Se(d), y !== y + 0) throw y;
|
|
13795
13797
|
Ie(1, 0);
|
|
@@ -13798,7 +13800,7 @@ var ph = (() => {
|
|
|
13798
13800
|
function yl(r) {
|
|
13799
13801
|
var i = me();
|
|
13800
13802
|
try {
|
|
13801
|
-
return
|
|
13803
|
+
return ke(r)();
|
|
13802
13804
|
} catch (o) {
|
|
13803
13805
|
if (Se(i), o !== o + 0) throw o;
|
|
13804
13806
|
return Ie(1, 0), 0n;
|
|
@@ -13807,16 +13809,16 @@ var ph = (() => {
|
|
|
13807
13809
|
function gl(r, i, o, c, d, y) {
|
|
13808
13810
|
var A = me();
|
|
13809
13811
|
try {
|
|
13810
|
-
return
|
|
13811
|
-
} catch (
|
|
13812
|
-
if (Se(A),
|
|
13812
|
+
return ke(r)(i, o, c, d, y);
|
|
13813
|
+
} catch (k) {
|
|
13814
|
+
if (Se(A), k !== k + 0) throw k;
|
|
13813
13815
|
Ie(1, 0);
|
|
13814
13816
|
}
|
|
13815
13817
|
}
|
|
13816
13818
|
function bl(r, i, o, c, d) {
|
|
13817
13819
|
var y = me();
|
|
13818
13820
|
try {
|
|
13819
|
-
return
|
|
13821
|
+
return ke(r)(i, o, c, d);
|
|
13820
13822
|
} catch (A) {
|
|
13821
13823
|
if (Se(y), A !== A + 0) throw A;
|
|
13822
13824
|
return Ie(1, 0), 0n;
|
|
@@ -13825,31 +13827,31 @@ var ph = (() => {
|
|
|
13825
13827
|
function vl(r, i, o, c) {
|
|
13826
13828
|
var d = me();
|
|
13827
13829
|
try {
|
|
13828
|
-
return
|
|
13830
|
+
return ke(r)(i, o, c);
|
|
13829
13831
|
} catch (y) {
|
|
13830
13832
|
if (Se(d), y !== y + 0) throw y;
|
|
13831
13833
|
Ie(1, 0);
|
|
13832
13834
|
}
|
|
13833
13835
|
}
|
|
13834
|
-
function El(r, i, o, c, d, y, A,
|
|
13836
|
+
function El(r, i, o, c, d, y, A, k, M, q, re, he) {
|
|
13835
13837
|
var ee = me();
|
|
13836
13838
|
try {
|
|
13837
|
-
return
|
|
13839
|
+
return ke(r)(i, o, c, d, y, A, k, M, q, re, he);
|
|
13838
13840
|
} catch (de) {
|
|
13839
13841
|
if (Se(ee), de !== de + 0) throw de;
|
|
13840
13842
|
Ie(1, 0);
|
|
13841
13843
|
}
|
|
13842
13844
|
}
|
|
13843
|
-
function Al(r, i, o, c, d, y, A,
|
|
13845
|
+
function Al(r, i, o, c, d, y, A, k, M, q, re, he, ee, de, Ee, je) {
|
|
13844
13846
|
var ut = me();
|
|
13845
13847
|
try {
|
|
13846
|
-
|
|
13848
|
+
ke(r)(i, o, c, d, y, A, k, M, q, re, he, ee, de, Ee, je);
|
|
13847
13849
|
} catch (et) {
|
|
13848
13850
|
if (Se(ut), et !== et + 0) throw et;
|
|
13849
13851
|
Ie(1, 0);
|
|
13850
13852
|
}
|
|
13851
13853
|
}
|
|
13852
|
-
t.ccall = ls, t.cwrap =
|
|
13854
|
+
t.ccall = ls, t.cwrap = Pc, t.setValue = Mt, t.getValue = Lt, t.UTF8ToString = xn, t.stringToUTF8 = br, t.lengthBytesUTF8 = It;
|
|
13853
13855
|
var Ir;
|
|
13854
13856
|
ie = function r() {
|
|
13855
13857
|
Ir || gs(), Ir || (ie = r);
|