@omnity/ree-client-ts-sdk 0.5.2 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ree-sdk.cjs.js → index.cjs.js} +23 -23
- package/dist/{ree-sdk.es.js → index.es.js} +415 -415
- package/dist/react.cjs.js +1 -0
- package/dist/react.d.ts +691 -0
- package/dist/react.es.js +322 -0
- package/package.json +15 -5
|
@@ -1158,7 +1158,7 @@ function P1() {
|
|
|
1158
1158
|
return $h || ($h = 1, Object.defineProperty(zs, "__esModule", { value: !0 }), zs.crypto = void 0, zs.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0), zs;
|
|
1159
1159
|
}
|
|
1160
1160
|
var Dh;
|
|
1161
|
-
function
|
|
1161
|
+
function ci() {
|
|
1162
1162
|
return Dh || (Dh = 1, (function(e) {
|
|
1163
1163
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
1164
1164
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.wrapXOFConstructorWithOpts = e.wrapConstructorWithOpts = e.wrapConstructor = e.Hash = e.nextTick = e.swap32IfBE = e.byteSwapIfBE = e.swap8IfBE = e.isLE = void 0, e.isBytes = n, e.anumber = r, e.abytes = i, e.ahash = s, e.aexists = o, e.aoutput = c, e.u8 = a, e.u32 = u, e.clean = f, e.createView = l, e.rotr = d, e.rotl = y, e.byteSwap = g, e.byteSwap32 = m, e.bytesToHex = S, e.hexToBytes = O, e.asyncLoop = R, e.utf8ToBytes = M, e.bytesToUtf8 = v, e.toBytes = U, e.kdfInputToBytes = V, e.concatBytes = K, e.checkOpts = H, e.createHasher = P, e.createOptHasher = D, e.createXOFer = F, e.randomBytes = x;
|
|
@@ -1332,7 +1332,7 @@ var jh;
|
|
|
1332
1332
|
function Py() {
|
|
1333
1333
|
if (jh) return qt;
|
|
1334
1334
|
jh = 1, Object.defineProperty(qt, "__esModule", { value: !0 }), qt.SHA512_IV = qt.SHA384_IV = qt.SHA224_IV = qt.SHA256_IV = qt.HashMD = void 0, qt.setBigUint64 = t, qt.Chi = n, qt.Maj = r;
|
|
1335
|
-
const e = /* @__PURE__ */
|
|
1335
|
+
const e = /* @__PURE__ */ ci();
|
|
1336
1336
|
function t(s, o, c, a) {
|
|
1337
1337
|
if (typeof s.setBigUint64 == "function")
|
|
1338
1338
|
return s.setBigUint64(o, c, a);
|
|
@@ -1539,7 +1539,7 @@ var Gh;
|
|
|
1539
1539
|
function Ry() {
|
|
1540
1540
|
if (Gh) return We;
|
|
1541
1541
|
Gh = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.sha512_224 = We.sha512_256 = We.sha384 = We.sha512 = We.sha224 = We.sha256 = We.SHA512_256 = We.SHA512_224 = We.SHA384 = We.SHA512 = We.SHA224 = We.SHA256 = void 0;
|
|
1542
|
-
const e = /* @__PURE__ */ Py(), t = /* @__PURE__ */ R1(), n = /* @__PURE__ */
|
|
1542
|
+
const e = /* @__PURE__ */ Py(), t = /* @__PURE__ */ R1(), n = /* @__PURE__ */ ci(), r = /* @__PURE__ */ Uint32Array.from([
|
|
1543
1543
|
1116352408,
|
|
1544
1544
|
1899447441,
|
|
1545
1545
|
3049323471,
|
|
@@ -1822,7 +1822,7 @@ var Ys = {}, Bu = {}, Nu = {}, Wh;
|
|
|
1822
1822
|
function U1() {
|
|
1823
1823
|
return Wh || (Wh = 1, (function(e) {
|
|
1824
1824
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.hmac = e.HMAC = void 0;
|
|
1825
|
-
const t = /* @__PURE__ */
|
|
1825
|
+
const t = /* @__PURE__ */ ci();
|
|
1826
1826
|
class n extends t.Hash {
|
|
1827
1827
|
constructor(s, o) {
|
|
1828
1828
|
super(), this.finished = !1, this.destroyed = !1, (0, t.ahash)(s);
|
|
@@ -1871,8 +1871,8 @@ function Fs() {
|
|
|
1871
1871
|
return Xh || (Xh = 1, (function(e) {
|
|
1872
1872
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.notImplemented = e.bitMask = e.utf8ToBytes = e.randomBytes = e.isBytes = e.hexToBytes = e.concatBytes = e.bytesToUtf8 = e.bytesToHex = e.anumber = e.abytes = void 0, e.abool = s, e._abool2 = o, e._abytes2 = c, e.numberToHexUnpadded = a, e.hexToNumber = u, e.bytesToNumberBE = f, e.bytesToNumberLE = l, e.numberToBytesBE = d, e.numberToBytesLE = y, e.numberToVarBytesBE = g, e.ensureBytes = m, e.equalBytes = E, e.copyBytes = _, e.asciiToBytes = S, e.inRange = T, e.aInRange = O, e.bitLen = A, e.bitGet = R, e.bitSet = M, e.createHmacDrbg = U, e.validateObject = K, e.isHash = H, e._validateObject = $, e.memoized = D;
|
|
1873
1873
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
1874
|
-
const t = /* @__PURE__ */
|
|
1875
|
-
var n = /* @__PURE__ */
|
|
1874
|
+
const t = /* @__PURE__ */ ci();
|
|
1875
|
+
var n = /* @__PURE__ */ ci();
|
|
1876
1876
|
Object.defineProperty(e, "abytes", { enumerable: !0, get: function() {
|
|
1877
1877
|
return n.abytes;
|
|
1878
1878
|
} }), Object.defineProperty(e, "anumber", { enumerable: !0, get: function() {
|
|
@@ -2596,7 +2596,7 @@ function Uy() {
|
|
|
2596
2596
|
return Zh || (Zh = 1, (function(e) {
|
|
2597
2597
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DER = e.DERErr = void 0, e._splitEndoScalar = c, e._normFnElement = E, e.weierstrassN = _, e.SWUFpSqrtRatio = w, e.mapToCurveSimpleSWU = T, e.ecdh = A, e.ecdsa = R, e.weierstrassPoints = M, e._legacyHelperEquat = V, e.weierstrass = $;
|
|
2598
2598
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
2599
|
-
const t = /* @__PURE__ */ U1(), n = /* @__PURE__ */
|
|
2599
|
+
const t = /* @__PURE__ */ U1(), n = /* @__PURE__ */ ci(), r = /* @__PURE__ */ Fs(), i = /* @__PURE__ */ C1(), s = /* @__PURE__ */ tc(), o = (P, D) => (P + (P >= 0 ? D : -D) / y) / D;
|
|
2600
2600
|
function c(P, D, F) {
|
|
2601
2601
|
const [[x, B], [q, N]] = D, L = o(N * P, F), G = o(-B * P, F);
|
|
2602
2602
|
let X = P - L * x - G * q, Y = -L * B - G * N;
|
|
@@ -3607,7 +3607,7 @@ function M1() {
|
|
|
3607
3607
|
return ed || (ed = 1, (function(e) {
|
|
3608
3608
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.encodeToCurve = e.hashToCurve = e.secp256k1_hasher = e.schnorr = e.secp256k1 = void 0;
|
|
3609
3609
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
3610
|
-
const t = /* @__PURE__ */ Ry(), n = /* @__PURE__ */
|
|
3610
|
+
const t = /* @__PURE__ */ Ry(), n = /* @__PURE__ */ ci(), r = /* @__PURE__ */ H1(), i = /* @__PURE__ */ F1(), s = /* @__PURE__ */ tc(), o = /* @__PURE__ */ Uy(), c = /* @__PURE__ */ Fs(), a = {
|
|
3611
3611
|
p: BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),
|
|
3612
3612
|
n: BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),
|
|
3613
3613
|
h: BigInt(1),
|
|
@@ -4896,11 +4896,11 @@ function fa(e, ...t) {
|
|
|
4896
4896
|
};
|
|
4897
4897
|
return 0 in t && (n.default = t[0]), n;
|
|
4898
4898
|
}
|
|
4899
|
-
function
|
|
4899
|
+
function zi(e) {
|
|
4900
4900
|
return {
|
|
4901
4901
|
kind: "schema",
|
|
4902
4902
|
type: "string",
|
|
4903
|
-
reference:
|
|
4903
|
+
reference: zi,
|
|
4904
4904
|
expects: "string",
|
|
4905
4905
|
async: !1,
|
|
4906
4906
|
message: e,
|
|
@@ -5014,7 +5014,7 @@ function ct(e, t, n) {
|
|
|
5014
5014
|
throw new pb(r.issues);
|
|
5015
5015
|
return r.value;
|
|
5016
5016
|
}
|
|
5017
|
-
function
|
|
5017
|
+
function ai(e, t) {
|
|
5018
5018
|
const n = {};
|
|
5019
5019
|
for (const r in e.entries)
|
|
5020
5020
|
n[r] = fa(e.entries[r]);
|
|
@@ -5060,7 +5060,7 @@ function Zy(e) {
|
|
|
5060
5060
|
return Array.isArray(e) ? e.length !== 2 ? !1 : e.every((t) => Zy(t)) : Al(e);
|
|
5061
5061
|
}
|
|
5062
5062
|
const yb = At(32), gb = At(20), od = At(32), De = ja(Uint8Array);
|
|
5063
|
-
qs(
|
|
5063
|
+
qs(zi(), Wy(/^([0-9a-f]{2})+$/i));
|
|
5064
5064
|
const mb = qs(
|
|
5065
5065
|
fn(),
|
|
5066
5066
|
Sl(),
|
|
@@ -5239,7 +5239,7 @@ function Ka(e, t) {
|
|
|
5239
5239
|
return Ir(a) || (t.allowIncomplete && a === hs.OP_0) !== void 0;
|
|
5240
5240
|
}
|
|
5241
5241
|
ct(
|
|
5242
|
-
|
|
5242
|
+
ai(
|
|
5243
5243
|
Et({
|
|
5244
5244
|
network: Et({}),
|
|
5245
5245
|
m: fn(),
|
|
@@ -5334,7 +5334,7 @@ function rg(e, t) {
|
|
|
5334
5334
|
if (!e.input && !e.output && !e.pubkey && !e.input && !e.signature)
|
|
5335
5335
|
throw new TypeError("Not enough data");
|
|
5336
5336
|
t = Object.assign({ validate: !0 }, t || {}), ct(
|
|
5337
|
-
|
|
5337
|
+
ai(
|
|
5338
5338
|
Et({
|
|
5339
5339
|
network: Et({}),
|
|
5340
5340
|
output: De,
|
|
@@ -5382,7 +5382,7 @@ function rg(e, t) {
|
|
|
5382
5382
|
}
|
|
5383
5383
|
return Object.assign(i, e);
|
|
5384
5384
|
}
|
|
5385
|
-
const
|
|
5385
|
+
const ns = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
5386
5386
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
5387
5387
|
function rc(e) {
|
|
5388
5388
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
@@ -5409,7 +5409,7 @@ function Ib(e, t) {
|
|
|
5409
5409
|
if (e.length < n)
|
|
5410
5410
|
throw new Error("digestInto() expects output buffer of length at least " + n);
|
|
5411
5411
|
}
|
|
5412
|
-
function
|
|
5412
|
+
function Li(...e) {
|
|
5413
5413
|
for (let t = 0; t < e.length; t++)
|
|
5414
5414
|
e[t].fill(0);
|
|
5415
5415
|
}
|
|
@@ -5487,10 +5487,10 @@ function Ga(e) {
|
|
|
5487
5487
|
return t.outputLen = n.outputLen, t.blockLen = n.blockLen, t.create = () => e(), t;
|
|
5488
5488
|
}
|
|
5489
5489
|
function og(e = 32) {
|
|
5490
|
-
if (
|
|
5491
|
-
return
|
|
5492
|
-
if (
|
|
5493
|
-
return Uint8Array.from(
|
|
5490
|
+
if (ns && typeof ns.getRandomValues == "function")
|
|
5491
|
+
return ns.getRandomValues(new Uint8Array(e));
|
|
5492
|
+
if (ns && typeof ns.randomBytes == "function")
|
|
5493
|
+
return Uint8Array.from(ns.randomBytes(e));
|
|
5494
5494
|
throw new Error("crypto.getRandomValues must be defined");
|
|
5495
5495
|
}
|
|
5496
5496
|
function Nb(e, t, n, r) {
|
|
@@ -5528,7 +5528,7 @@ class Ol extends Bb {
|
|
|
5528
5528
|
hd(this), Ib(t, this), this.finished = !0;
|
|
5529
5529
|
const { buffer: n, view: r, blockLen: i, isLE: s } = this;
|
|
5530
5530
|
let { pos: o } = this;
|
|
5531
|
-
n[o++] = 128,
|
|
5531
|
+
n[o++] = 128, Li(this.buffer.subarray(o)), this.padOffset > i - o && (this.process(r, 0), o = 0);
|
|
5532
5532
|
for (let l = o; l < i; l++)
|
|
5533
5533
|
n[l] = 0;
|
|
5534
5534
|
Nb(r, i - 8, BigInt(this.length * 8), s), this.process(r, 0);
|
|
@@ -5666,10 +5666,10 @@ class qb extends Ol {
|
|
|
5666
5666
|
this.set(this.h1 + c + f | 0, this.h2 + u + d | 0, this.h3 + l + i | 0, this.h4 + r + o | 0, this.h0 + s + a | 0);
|
|
5667
5667
|
}
|
|
5668
5668
|
roundClean() {
|
|
5669
|
-
|
|
5669
|
+
Li(xc);
|
|
5670
5670
|
}
|
|
5671
5671
|
destroy() {
|
|
5672
|
-
this.destroyed = !0,
|
|
5672
|
+
this.destroyed = !0, Li(this.buffer), this.set(0, 0, 0, 0, 0);
|
|
5673
5673
|
}
|
|
5674
5674
|
}
|
|
5675
5675
|
const Vb = /* @__PURE__ */ Ga(() => new qb()), Lb = Vb, Ac = /* @__PURE__ */ BigInt(2 ** 32 - 1), yd = /* @__PURE__ */ BigInt(32);
|
|
@@ -5685,7 +5685,7 @@ function Db(e, t = !1) {
|
|
|
5685
5685
|
}
|
|
5686
5686
|
return [r, i];
|
|
5687
5687
|
}
|
|
5688
|
-
const gd = (e, t, n) => e >>> n, md = (e, t, n) => e << 32 - n | t >>> n,
|
|
5688
|
+
const gd = (e, t, n) => e >>> n, md = (e, t, n) => e << 32 - n | t >>> n, rs = (e, t, n) => e >>> n | t << 32 - n, is = (e, t, n) => e << 32 - n | t >>> n, vc = (e, t, n) => e << 64 - n | t >>> n - 32, Ic = (e, t, n) => e >>> n - 32 | t << 64 - n;
|
|
5689
5689
|
function or(e, t, n, r) {
|
|
5690
5690
|
const i = (t >>> 0) + (r >>> 0);
|
|
5691
5691
|
return { h: e + n + (i / 2 ** 32 | 0) | 0, l: i | 0 };
|
|
@@ -5783,10 +5783,10 @@ class hg extends Ol {
|
|
|
5783
5783
|
r = r + this.A | 0, i = i + this.B | 0, s = s + this.C | 0, o = o + this.D | 0, c = c + this.E | 0, a = a + this.F | 0, u = u + this.G | 0, f = f + this.H | 0, this.set(r, i, s, o, c, a, u, f);
|
|
5784
5784
|
}
|
|
5785
5785
|
roundClean() {
|
|
5786
|
-
|
|
5786
|
+
Li(Cr);
|
|
5787
5787
|
}
|
|
5788
5788
|
destroy() {
|
|
5789
|
-
this.set(0, 0, 0, 0, 0, 0, 0, 0),
|
|
5789
|
+
this.set(0, 0, 0, 0, 0, 0, 0, 0), Li(this.buffer);
|
|
5790
5790
|
}
|
|
5791
5791
|
}
|
|
5792
5792
|
class Zb extends hg {
|
|
@@ -5893,12 +5893,12 @@ class e2 extends Ol {
|
|
|
5893
5893
|
for (let w = 0; w < 16; w++, n += 4)
|
|
5894
5894
|
Hr[w] = t.getUint32(n), Fr[w] = t.getUint32(n += 4);
|
|
5895
5895
|
for (let w = 16; w < 80; w++) {
|
|
5896
|
-
const T = Hr[w - 15] | 0, O = Fr[w - 15] | 0, A =
|
|
5896
|
+
const T = Hr[w - 15] | 0, O = Fr[w - 15] | 0, A = rs(T, O, 1) ^ rs(T, O, 8) ^ gd(T, O, 7), R = is(T, O, 1) ^ is(T, O, 8) ^ md(T, O, 7), M = Hr[w - 2] | 0, v = Fr[w - 2] | 0, U = rs(M, v, 19) ^ vc(M, v, 61) ^ gd(M, v, 6), V = is(M, v, 19) ^ Ic(M, v, 61) ^ md(M, v, 6), K = Gb(R, V, Fr[w - 7], Fr[w - 16]), H = Wb(K, A, U, Hr[w - 7], Hr[w - 16]);
|
|
5897
5897
|
Hr[w] = H | 0, Fr[w] = K | 0;
|
|
5898
5898
|
}
|
|
5899
5899
|
let { Ah: r, Al: i, Bh: s, Bl: o, Ch: c, Cl: a, Dh: u, Dl: f, Eh: l, El: d, Fh: y, Fl: g, Gh: m, Gl: E, Hh: _, Hl: S } = this;
|
|
5900
5900
|
for (let w = 0; w < 80; w++) {
|
|
5901
|
-
const T =
|
|
5901
|
+
const T = rs(l, d, 14) ^ rs(l, d, 18) ^ vc(l, d, 41), O = is(l, d, 14) ^ is(l, d, 18) ^ Ic(l, d, 41), A = l & y ^ ~l & m, R = d & g ^ ~d & E, M = Xb(S, O, R, Qb[w], Fr[w]), v = zb(M, _, T, A, Jb[w], Hr[w]), U = M | 0, V = rs(r, i, 28) ^ vc(r, i, 34) ^ vc(r, i, 39), K = is(r, i, 28) ^ Ic(r, i, 34) ^ Ic(r, i, 39), H = r & s ^ r & c ^ s & c, $ = i & o ^ i & a ^ o & a;
|
|
5902
5902
|
_ = m | 0, S = E | 0, m = y | 0, E = g | 0, y = l | 0, g = d | 0, { h: l, l: d } = or(u | 0, f | 0, v | 0, U | 0), u = c | 0, f = a | 0, c = s | 0, a = o | 0, s = r | 0, o = i | 0;
|
|
5903
5903
|
const P = jb(U, K, $);
|
|
5904
5904
|
r = Kb(P, v, V, H), i = P | 0;
|
|
@@ -5906,17 +5906,17 @@ class e2 extends Ol {
|
|
|
5906
5906
|
({ h: r, l: i } = or(this.Ah | 0, this.Al | 0, r | 0, i | 0)), { h: s, l: o } = or(this.Bh | 0, this.Bl | 0, s | 0, o | 0), { h: c, l: a } = or(this.Ch | 0, this.Cl | 0, c | 0, a | 0), { h: u, l: f } = or(this.Dh | 0, this.Dl | 0, u | 0, f | 0), { h: l, l: d } = or(this.Eh | 0, this.El | 0, l | 0, d | 0), { h: y, l: g } = or(this.Fh | 0, this.Fl | 0, y | 0, g | 0), { h: m, l: E } = or(this.Gh | 0, this.Gl | 0, m | 0, E | 0), { h: _, l: S } = or(this.Hh | 0, this.Hl | 0, _ | 0, S | 0), this.set(r, i, s, o, c, a, u, f, l, d, y, g, m, E, _, S);
|
|
5907
5907
|
}
|
|
5908
5908
|
roundClean() {
|
|
5909
|
-
|
|
5909
|
+
Li(Hr, Fr);
|
|
5910
5910
|
}
|
|
5911
5911
|
destroy() {
|
|
5912
|
-
|
|
5912
|
+
Li(this.buffer), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
5913
5913
|
}
|
|
5914
5914
|
}
|
|
5915
5915
|
const En = /* @__PURE__ */ Ga(() => new hg()), t2 = /* @__PURE__ */ Ga(() => new Zb()), n2 = /* @__PURE__ */ Ga(() => new e2()), Qt = En;
|
|
5916
5916
|
function Ar(e) {
|
|
5917
5917
|
return Lb(Qt(e));
|
|
5918
5918
|
}
|
|
5919
|
-
function
|
|
5919
|
+
function gi(e) {
|
|
5920
5920
|
return Qt(Qt(e));
|
|
5921
5921
|
}
|
|
5922
5922
|
const r2 = {
|
|
@@ -6638,10 +6638,10 @@ function sc(e, t) {
|
|
|
6638
6638
|
if (!e.address && !e.hash && !e.output && !e.pubkey && !e.input)
|
|
6639
6639
|
throw new TypeError("Not enough data");
|
|
6640
6640
|
t = Object.assign({ validate: !0 }, t || {}), ct(
|
|
6641
|
-
|
|
6641
|
+
ai(
|
|
6642
6642
|
Et({
|
|
6643
6643
|
network: Et({}),
|
|
6644
|
-
address:
|
|
6644
|
+
address: zi(),
|
|
6645
6645
|
hash: gb,
|
|
6646
6646
|
output: At(25),
|
|
6647
6647
|
pubkey: Kn(Dn),
|
|
@@ -6733,13 +6733,13 @@ function oc(e, t) {
|
|
|
6733
6733
|
if (!e.address && !e.hash && !e.output && !e.redeem && !e.input)
|
|
6734
6734
|
throw new TypeError("Not enough data");
|
|
6735
6735
|
t = Object.assign({ validate: !0 }, t || {}), ct(
|
|
6736
|
-
|
|
6736
|
+
ai(
|
|
6737
6737
|
Et({
|
|
6738
6738
|
network: Et({}),
|
|
6739
|
-
address:
|
|
6739
|
+
address: zi(),
|
|
6740
6740
|
hash: At(20),
|
|
6741
6741
|
output: At(23),
|
|
6742
|
-
redeem:
|
|
6742
|
+
redeem: ai(
|
|
6743
6743
|
Et({
|
|
6744
6744
|
network: Et({}),
|
|
6745
6745
|
output: De,
|
|
@@ -6867,10 +6867,10 @@ function oc(e, t) {
|
|
|
6867
6867
|
}
|
|
6868
6868
|
return Object.assign(r, e);
|
|
6869
6869
|
}
|
|
6870
|
-
var
|
|
6870
|
+
var mi = {}, wd;
|
|
6871
6871
|
function cc() {
|
|
6872
|
-
if (wd) return
|
|
6873
|
-
wd = 1, Object.defineProperty(
|
|
6872
|
+
if (wd) return mi;
|
|
6873
|
+
wd = 1, Object.defineProperty(mi, "__esModule", { value: !0 }), mi.bech32m = mi.bech32 = void 0;
|
|
6874
6874
|
const e = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", t = {};
|
|
6875
6875
|
for (let u = 0; u < e.length; u++) {
|
|
6876
6876
|
const f = e.charAt(u);
|
|
@@ -7000,7 +7000,7 @@ function cc() {
|
|
|
7000
7000
|
fromWords: c
|
|
7001
7001
|
};
|
|
7002
7002
|
}
|
|
7003
|
-
return
|
|
7003
|
+
return mi.bech32 = a("bech32"), mi.bech32m = a("bech32m"), mi;
|
|
7004
7004
|
}
|
|
7005
7005
|
var Kt = cc();
|
|
7006
7006
|
const bd = Ge, a2 = new Uint8Array(0);
|
|
@@ -7008,9 +7008,9 @@ function Xa(e, t) {
|
|
|
7008
7008
|
if (!e.address && !e.hash && !e.output && !e.pubkey && !e.witness)
|
|
7009
7009
|
throw new TypeError("Not enough data");
|
|
7010
7010
|
t = Object.assign({ validate: !0 }, t || {}), ct(
|
|
7011
|
-
|
|
7011
|
+
ai(
|
|
7012
7012
|
Et({
|
|
7013
|
-
address:
|
|
7013
|
+
address: zi(),
|
|
7014
7014
|
hash: At(20),
|
|
7015
7015
|
input: At(0),
|
|
7016
7016
|
network: Et({}),
|
|
@@ -7111,7 +7111,7 @@ function ac(e, t) {
|
|
|
7111
7111
|
t = Object.assign({ validate: !0 }, t || {}), ct(
|
|
7112
7112
|
cd({
|
|
7113
7113
|
network: Et({}),
|
|
7114
|
-
address:
|
|
7114
|
+
address: zi(),
|
|
7115
7115
|
hash: yb,
|
|
7116
7116
|
output: At(34),
|
|
7117
7117
|
redeem: cd({
|
|
@@ -7371,7 +7371,7 @@ function b2(e) {
|
|
|
7371
7371
|
function yg(e) {
|
|
7372
7372
|
typeof e == "number" ? b2(e) : w2(e);
|
|
7373
7373
|
}
|
|
7374
|
-
function
|
|
7374
|
+
function ui(e, t, n) {
|
|
7375
7375
|
yg(e), n === void 0 && (n = 0), t === void 0 && (t = new Uint8Array(Bn(e)));
|
|
7376
7376
|
let r = 0;
|
|
7377
7377
|
return e < 253 ? (t.set([Number(e)], n), r = 1) : e <= 65535 ? (t.set([253], n), h2(t, n + 1, Number(e), "LE"), r = 3) : e <= 4294967295 ? (t.set([254], n), d2(t, n + 1, Number(e), "LE"), r = 5) : (t.set([255], n), p2(t, n + 1, BigInt(e), "LE"), r = 9), { buffer: t, bytes: r };
|
|
@@ -7455,7 +7455,7 @@ class $t {
|
|
|
7455
7455
|
this.offset = Q1(this.buffer, this.offset, BigInt(t), "LE");
|
|
7456
7456
|
}
|
|
7457
7457
|
writeVarInt(t) {
|
|
7458
|
-
const { bytes: n } =
|
|
7458
|
+
const { bytes: n } = ui(t, this.buffer, this.offset);
|
|
7459
7459
|
this.offset += n;
|
|
7460
7460
|
}
|
|
7461
7461
|
writeSlice(t) {
|
|
@@ -7581,16 +7581,16 @@ function Lf(e, t) {
|
|
|
7581
7581
|
}
|
|
7582
7582
|
function v2(e) {
|
|
7583
7583
|
const t = Bn(e.length), n = new Uint8Array(t);
|
|
7584
|
-
return
|
|
7584
|
+
return ui(e.length, n), at([n, e]);
|
|
7585
7585
|
}
|
|
7586
7586
|
const Sd = Ge, Td = 1, I2 = 80;
|
|
7587
7587
|
function uc(e, t) {
|
|
7588
7588
|
if (!e.address && !e.output && !e.pubkey && !e.internalPubkey && !(e.witness && e.witness.length > 1))
|
|
7589
7589
|
throw new TypeError("Not enough data");
|
|
7590
7590
|
t = Object.assign({ validate: !0 }, t || {}), ct(
|
|
7591
|
-
|
|
7591
|
+
ai(
|
|
7592
7592
|
Et({
|
|
7593
|
-
address:
|
|
7593
|
+
address: zi(),
|
|
7594
7594
|
input: At(0),
|
|
7595
7595
|
network: Et({}),
|
|
7596
7596
|
output: At(34),
|
|
@@ -7605,7 +7605,7 @@ function uc(e, t) {
|
|
|
7605
7605
|
]),
|
|
7606
7606
|
witness: hn(De),
|
|
7607
7607
|
scriptTree: Kn(Zy, "Taptree is not of type isTaptree"),
|
|
7608
|
-
redeem:
|
|
7608
|
+
redeem: ai(
|
|
7609
7609
|
Et({
|
|
7610
7610
|
output: De,
|
|
7611
7611
|
// tapleaf script
|
|
@@ -7890,12 +7890,12 @@ function k2(e) {
|
|
|
7890
7890
|
const t = e.length;
|
|
7891
7891
|
return Bn(t) + e.reduce((n, r) => n + Jn(r), 0);
|
|
7892
7892
|
}
|
|
7893
|
-
const
|
|
7893
|
+
const ei = new Uint8Array(0), xd = [], Mu = kr(
|
|
7894
7894
|
"0000000000000000000000000000000000000000000000000000000000000000"
|
|
7895
7895
|
), Ad = kr(
|
|
7896
7896
|
"0000000000000000000000000000000000000000000000000000000000000001"
|
|
7897
7897
|
), P2 = kr("ffffffffffffffff"), R2 = {
|
|
7898
|
-
script:
|
|
7898
|
+
script: ei,
|
|
7899
7899
|
valueBuffer: P2
|
|
7900
7900
|
};
|
|
7901
7901
|
function U2(e) {
|
|
@@ -7972,7 +7972,7 @@ let gt = class Ye {
|
|
|
7972
7972
|
), r == null && (r = Ye.DEFAULT_SEQUENCE), this.ins.push({
|
|
7973
7973
|
hash: t,
|
|
7974
7974
|
index: n,
|
|
7975
|
-
script: i ||
|
|
7975
|
+
script: i || ei,
|
|
7976
7976
|
sequence: r,
|
|
7977
7977
|
witness: xd
|
|
7978
7978
|
}) - 1;
|
|
@@ -8044,10 +8044,10 @@ let gt = class Ye {
|
|
|
8044
8044
|
});
|
|
8045
8045
|
}
|
|
8046
8046
|
r & Ye.SIGHASH_ANYONECANPAY ? (s.ins = [s.ins[t]], s.ins[0].script = i) : (s.ins.forEach((c) => {
|
|
8047
|
-
c.script =
|
|
8047
|
+
c.script = ei;
|
|
8048
8048
|
}), s.ins[t].script = i);
|
|
8049
8049
|
const o = new Uint8Array(s.byteLength(!1) + 4);
|
|
8050
|
-
return Ly(o, o.length - 4, r, "LE"), s.__toBuffer(o, 0, !1),
|
|
8050
|
+
return Ly(o, o.length - 4, r, "LE"), s.__toBuffer(o, 0, !1), gi(o);
|
|
8051
8051
|
}
|
|
8052
8052
|
hashForWitnessV1(t, n, r, i, s, o) {
|
|
8053
8053
|
if (ct(
|
|
@@ -8061,7 +8061,7 @@ let gt = class Ye {
|
|
|
8061
8061
|
), r.length !== this.ins.length || n.length !== this.ins.length)
|
|
8062
8062
|
throw new Error("Must supply prevout script and value for all inputs");
|
|
8063
8063
|
const c = i === Ye.SIGHASH_DEFAULT ? Ye.SIGHASH_ALL : i & Ye.SIGHASH_OUTPUT_MASK, u = (i & Ye.SIGHASH_INPUT_MASK) === Ye.SIGHASH_ANYONECANPAY, f = c === Ye.SIGHASH_NONE, l = c === Ye.SIGHASH_SINGLE;
|
|
8064
|
-
let d =
|
|
8064
|
+
let d = ei, y = ei, g = ei, m = ei, E = ei;
|
|
8065
8065
|
if (!u) {
|
|
8066
8066
|
let T = $t.withCapacity(36 * this.ins.length);
|
|
8067
8067
|
this.ins.forEach((O) => {
|
|
@@ -8115,23 +8115,23 @@ let gt = class Ye {
|
|
|
8115
8115
|
let s = Uint8Array.from([]), o, c = Mu, a = Mu, u = Mu;
|
|
8116
8116
|
if (i & Ye.SIGHASH_ANYONECANPAY || (s = new Uint8Array(36 * this.ins.length), o = new $t(s, 0), this.ins.forEach((l) => {
|
|
8117
8117
|
o.writeSlice(l.hash), o.writeUInt32(l.index);
|
|
8118
|
-
}), a =
|
|
8118
|
+
}), a = gi(s)), !(i & Ye.SIGHASH_ANYONECANPAY) && (i & 31) !== Ye.SIGHASH_SINGLE && (i & 31) !== Ye.SIGHASH_NONE && (s = new Uint8Array(4 * this.ins.length), o = new $t(s, 0), this.ins.forEach((l) => {
|
|
8119
8119
|
o.writeUInt32(l.sequence);
|
|
8120
|
-
}), u =
|
|
8120
|
+
}), u = gi(s)), (i & 31) !== Ye.SIGHASH_SINGLE && (i & 31) !== Ye.SIGHASH_NONE) {
|
|
8121
8121
|
const l = this.outs.reduce((d, y) => d + 8 + Jn(y.script), 0);
|
|
8122
8122
|
s = new Uint8Array(l), o = new $t(s, 0), this.outs.forEach((d) => {
|
|
8123
8123
|
o.writeInt64(d.value), o.writeVarSlice(d.script);
|
|
8124
|
-
}), c =
|
|
8124
|
+
}), c = gi(s);
|
|
8125
8125
|
} else if ((i & 31) === Ye.SIGHASH_SINGLE && t < this.outs.length) {
|
|
8126
8126
|
const l = this.outs[t];
|
|
8127
|
-
s = new Uint8Array(8 + Jn(l.script)), o = new $t(s, 0), o.writeInt64(l.value), o.writeVarSlice(l.script), c =
|
|
8127
|
+
s = new Uint8Array(8 + Jn(l.script)), o = new $t(s, 0), o.writeInt64(l.value), o.writeVarSlice(l.script), c = gi(s);
|
|
8128
8128
|
}
|
|
8129
8129
|
s = new Uint8Array(156 + Jn(n)), o = new $t(s, 0);
|
|
8130
8130
|
const f = this.ins[t];
|
|
8131
|
-
return o.writeInt32(this.version), o.writeSlice(a), o.writeSlice(u), o.writeSlice(f.hash), o.writeUInt32(f.index), o.writeVarSlice(n), o.writeInt64(r), o.writeUInt32(f.sequence), o.writeSlice(c), o.writeUInt32(this.locktime), o.writeUInt32(i),
|
|
8131
|
+
return o.writeInt32(this.version), o.writeSlice(a), o.writeSlice(u), o.writeSlice(f.hash), o.writeUInt32(f.index), o.writeVarSlice(n), o.writeInt64(r), o.writeUInt32(f.sequence), o.writeSlice(c), o.writeUInt32(this.locktime), o.writeUInt32(i), gi(s);
|
|
8132
8132
|
}
|
|
8133
8133
|
getHash(t) {
|
|
8134
|
-
return t && this.isCoinbase() ? new Uint8Array(32) :
|
|
8134
|
+
return t && this.isCoinbase() ? new Uint8Array(32) : gi(this.__toBuffer(void 0, void 0, t));
|
|
8135
8135
|
}
|
|
8136
8136
|
getId() {
|
|
8137
8137
|
return xe(Bl(this.getHash(!1)));
|
|
@@ -8590,7 +8590,7 @@ function zE(e) {
|
|
|
8590
8590
|
}
|
|
8591
8591
|
function YE(e) {
|
|
8592
8592
|
const { script: t, value: n } = e, r = Bn(t.length), i = new Uint8Array(8 + r + t.length);
|
|
8593
|
-
return $y(i, 0, BigInt(n), "LE"),
|
|
8593
|
+
return $y(i, 0, BigInt(n), "LE"), ui(t.length, i, 8), i.set(t, 8 + r), {
|
|
8594
8594
|
key: Uint8Array.from([me.WITNESS_UTXO]),
|
|
8595
8595
|
value: i
|
|
8596
8596
|
};
|
|
@@ -8634,7 +8634,7 @@ function n_(e) {
|
|
|
8634
8634
|
const t = Uint8Array.from([pt.TAP_TREE]), n = [].concat(
|
|
8635
8635
|
...e.leaves.map((r) => [
|
|
8636
8636
|
Uint8Array.of(r.depth, r.leafVersion),
|
|
8637
|
-
|
|
8637
|
+
ui(BigInt(r.script.length)).buffer,
|
|
8638
8638
|
r.script
|
|
8639
8639
|
])
|
|
8640
8640
|
);
|
|
@@ -8771,7 +8771,7 @@ function Og(e) {
|
|
|
8771
8771
|
}
|
|
8772
8772
|
function r(o) {
|
|
8773
8773
|
const c = t.encode(o), a = Bn(o.leafHashes.length), u = new Uint8Array(a);
|
|
8774
|
-
|
|
8774
|
+
ui(o.leafHashes.length, u);
|
|
8775
8775
|
const f = at([u, ...o.leafHashes, c.value]);
|
|
8776
8776
|
return { ...c, value: f };
|
|
8777
8777
|
}
|
|
@@ -8898,7 +8898,7 @@ function vd(e) {
|
|
|
8898
8898
|
}
|
|
8899
8899
|
function l_(e) {
|
|
8900
8900
|
const t = e.key.length, n = e.value.length, r = Bn(t), i = Bn(n), s = new Uint8Array(r + t + i + n);
|
|
8901
|
-
return
|
|
8901
|
+
return ui(t, s, 0), s.set(e.key, r), ui(n, s, r + t), s.set(e.value, r + t + i), s;
|
|
8902
8902
|
}
|
|
8903
8903
|
function h_(e, t) {
|
|
8904
8904
|
let n = 0;
|
|
@@ -9158,7 +9158,7 @@ function y_(e) {
|
|
|
9158
9158
|
const i = Id(t);
|
|
9159
9159
|
if (i === void 0)
|
|
9160
9160
|
throw new Error("Combine: Self missing transaction");
|
|
9161
|
-
const s =
|
|
9161
|
+
const s = ss(n.globalKeyVals), o = n.inputKeyVals.map(ss), c = n.outputKeyVals.map(ss);
|
|
9162
9162
|
for (const a of r) {
|
|
9163
9163
|
const u = Id(a);
|
|
9164
9164
|
if (u === void 0 || de(u.toBuffer(), i.toBuffer()) !== 0)
|
|
@@ -9166,13 +9166,13 @@ function y_(e) {
|
|
|
9166
9166
|
"Combine: One of the Psbts does not have the same transaction."
|
|
9167
9167
|
);
|
|
9168
9168
|
const f = $f(a);
|
|
9169
|
-
|
|
9169
|
+
ss(f.globalKeyVals).forEach(
|
|
9170
9170
|
Vu(
|
|
9171
9171
|
s,
|
|
9172
9172
|
n.globalKeyVals,
|
|
9173
9173
|
f.globalKeyVals
|
|
9174
9174
|
)
|
|
9175
|
-
), f.inputKeyVals.map(
|
|
9175
|
+
), f.inputKeyVals.map(ss).forEach(
|
|
9176
9176
|
(g, m) => g.forEach(
|
|
9177
9177
|
Vu(
|
|
9178
9178
|
o[m],
|
|
@@ -9180,7 +9180,7 @@ function y_(e) {
|
|
|
9180
9180
|
f.inputKeyVals[m]
|
|
9181
9181
|
)
|
|
9182
9182
|
)
|
|
9183
|
-
), f.outputKeyVals.map(
|
|
9183
|
+
), f.outputKeyVals.map(ss).forEach(
|
|
9184
9184
|
(g, m) => g.forEach(
|
|
9185
9185
|
Vu(
|
|
9186
9186
|
c[m],
|
|
@@ -9206,7 +9206,7 @@ function Vu(e, t, n) {
|
|
|
9206
9206
|
function Id(e) {
|
|
9207
9207
|
return e.globalMap.unsignedTx;
|
|
9208
9208
|
}
|
|
9209
|
-
function
|
|
9209
|
+
function ss(e) {
|
|
9210
9210
|
const t = /* @__PURE__ */ new Set();
|
|
9211
9211
|
return e.forEach((n) => {
|
|
9212
9212
|
const r = xe(n.key);
|
|
@@ -9387,7 +9387,7 @@ let Bd = class {
|
|
|
9387
9387
|
return this.globalMap.unsignedTx.toBuffer();
|
|
9388
9388
|
}
|
|
9389
9389
|
};
|
|
9390
|
-
function
|
|
9390
|
+
function Yi(e) {
|
|
9391
9391
|
return (t) => {
|
|
9392
9392
|
try {
|
|
9393
9393
|
return e({ output: t }), !0;
|
|
@@ -9396,7 +9396,7 @@ function zi(e) {
|
|
|
9396
9396
|
}
|
|
9397
9397
|
};
|
|
9398
9398
|
}
|
|
9399
|
-
const E_ =
|
|
9399
|
+
const E_ = Yi(Ka), __ = Yi(rg), S_ = Yi(sc), za = Yi(Xa), Nd = Yi(ac), Ug = Yi(oc), Cg = Yi(uc);
|
|
9400
9400
|
function ya(e) {
|
|
9401
9401
|
let t = new Uint8Array(0);
|
|
9402
9402
|
function n(o) {
|
|
@@ -9404,7 +9404,7 @@ function ya(e) {
|
|
|
9404
9404
|
}
|
|
9405
9405
|
function r(o) {
|
|
9406
9406
|
const c = t.length, a = Bn(o);
|
|
9407
|
-
t = at([t, new Uint8Array(a)]),
|
|
9407
|
+
t = at([t, new Uint8Array(a)]), ui(o, t, c);
|
|
9408
9408
|
}
|
|
9409
9409
|
function i(o) {
|
|
9410
9410
|
r(o.length), n(o);
|
|
@@ -11355,10 +11355,10 @@ function Gf(e) {
|
|
|
11355
11355
|
function Qg() {
|
|
11356
11356
|
throw new Error("unexpected end of buffer");
|
|
11357
11357
|
}
|
|
11358
|
-
function
|
|
11358
|
+
function $i(e, t) {
|
|
11359
11359
|
return e.byteLength < t && Qg(), e.read(t);
|
|
11360
11360
|
}
|
|
11361
|
-
function
|
|
11361
|
+
function Di(e) {
|
|
11362
11362
|
const t = e.readUint8();
|
|
11363
11363
|
return t === void 0 && Qg(), t;
|
|
11364
11364
|
}
|
|
@@ -11379,7 +11379,7 @@ function ft(e) {
|
|
|
11379
11379
|
function Bt(e) {
|
|
11380
11380
|
let t = BigInt(1), n = BigInt(0), r;
|
|
11381
11381
|
do
|
|
11382
|
-
r =
|
|
11382
|
+
r = Di(e), n += BigInt(r & 127).valueOf() * t, t *= BigInt(128);
|
|
11383
11383
|
while (r >= 128);
|
|
11384
11384
|
return n;
|
|
11385
11385
|
}
|
|
@@ -11402,7 +11402,7 @@ function vt(e) {
|
|
|
11402
11402
|
}
|
|
11403
11403
|
return r.buffer;
|
|
11404
11404
|
}
|
|
11405
|
-
function
|
|
11405
|
+
function ti(e) {
|
|
11406
11406
|
const t = new Uint8Array(e.buffer);
|
|
11407
11407
|
let n = 0;
|
|
11408
11408
|
for (; n < t.byteLength; n++)
|
|
@@ -11411,7 +11411,7 @@ function ei(e) {
|
|
|
11411
11411
|
return Bt(e);
|
|
11412
11412
|
break;
|
|
11413
11413
|
}
|
|
11414
|
-
const r = new Uint8Array(
|
|
11414
|
+
const r = new Uint8Array($i(e, n + 1));
|
|
11415
11415
|
let i = BigInt(0);
|
|
11416
11416
|
for (let s = r.byteLength - 1; s >= 0; s--)
|
|
11417
11417
|
i = i * BigInt(128) + BigInt(128 - (r[s] & 127) - 1);
|
|
@@ -11433,10 +11433,10 @@ function em(e, t) {
|
|
|
11433
11433
|
function tm(e, t) {
|
|
11434
11434
|
if (t <= 0 || !Number.isInteger(t))
|
|
11435
11435
|
throw new Error("Byte length must be a positive integer");
|
|
11436
|
-
let n = BigInt(
|
|
11436
|
+
let n = BigInt(Di(e)), r = BigInt(1), i = 0;
|
|
11437
11437
|
for (; ++i < t; ) {
|
|
11438
11438
|
r *= BigInt(256);
|
|
11439
|
-
const s = BigInt(
|
|
11439
|
+
const s = BigInt(Di(e));
|
|
11440
11440
|
n = n + r * s;
|
|
11441
11441
|
}
|
|
11442
11442
|
return n;
|
|
@@ -11596,7 +11596,7 @@ class Rn extends Qa {
|
|
|
11596
11596
|
_buildTypeTableImpl(t) {
|
|
11597
11597
|
}
|
|
11598
11598
|
}
|
|
11599
|
-
class
|
|
11599
|
+
class hi extends Qa {
|
|
11600
11600
|
checkType(t) {
|
|
11601
11601
|
if (t instanceof Nn) {
|
|
11602
11602
|
const n = t.getType();
|
|
@@ -11704,7 +11704,7 @@ class rm extends Rn {
|
|
|
11704
11704
|
return vt(Ve.Bool);
|
|
11705
11705
|
}
|
|
11706
11706
|
decodeValue(t, n) {
|
|
11707
|
-
switch (this.checkType(n),
|
|
11707
|
+
switch (this.checkType(n), Di(t)) {
|
|
11708
11708
|
case 0:
|
|
11709
11709
|
return !1;
|
|
11710
11710
|
case 1:
|
|
@@ -11745,7 +11745,7 @@ class No extends Rn {
|
|
|
11745
11745
|
return "null";
|
|
11746
11746
|
}
|
|
11747
11747
|
}
|
|
11748
|
-
class
|
|
11748
|
+
class fi extends Rn {
|
|
11749
11749
|
get typeName() {
|
|
11750
11750
|
return Be.ReservedClass;
|
|
11751
11751
|
}
|
|
@@ -11795,7 +11795,7 @@ class im extends Rn {
|
|
|
11795
11795
|
}
|
|
11796
11796
|
decodeValue(t, n) {
|
|
11797
11797
|
this.checkType(n);
|
|
11798
|
-
const r = Bt(t), i =
|
|
11798
|
+
const r = Bt(t), i = $i(t, Number(r));
|
|
11799
11799
|
return new TextDecoder("utf8", { fatal: !0 }).decode(i);
|
|
11800
11800
|
}
|
|
11801
11801
|
get name() {
|
|
@@ -11827,7 +11827,7 @@ class Fl extends Rn {
|
|
|
11827
11827
|
return vt(Ve.Int);
|
|
11828
11828
|
}
|
|
11829
11829
|
decodeValue(t, n) {
|
|
11830
|
-
return this.checkType(n),
|
|
11830
|
+
return this.checkType(n), ti(t);
|
|
11831
11831
|
}
|
|
11832
11832
|
get name() {
|
|
11833
11833
|
return "int";
|
|
@@ -11896,7 +11896,7 @@ class ql extends Rn {
|
|
|
11896
11896
|
}
|
|
11897
11897
|
decodeValue(t, n) {
|
|
11898
11898
|
this.checkType(n);
|
|
11899
|
-
const r =
|
|
11899
|
+
const r = $i(t, this._bits / 8), i = pS(r);
|
|
11900
11900
|
return this._bits === 32 ? i.getFloat32(0, !0) : i.getFloat64(0, !0);
|
|
11901
11901
|
}
|
|
11902
11902
|
get name() {
|
|
@@ -11906,7 +11906,7 @@ class ql extends Rn {
|
|
|
11906
11906
|
return t.toString();
|
|
11907
11907
|
}
|
|
11908
11908
|
}
|
|
11909
|
-
class
|
|
11909
|
+
class ji extends Rn {
|
|
11910
11910
|
get typeName() {
|
|
11911
11911
|
return Be.FixedIntClass;
|
|
11912
11912
|
}
|
|
@@ -11952,7 +11952,7 @@ class Di extends Rn {
|
|
|
11952
11952
|
return t.toString();
|
|
11953
11953
|
}
|
|
11954
11954
|
}
|
|
11955
|
-
class
|
|
11955
|
+
class oi extends Rn {
|
|
11956
11956
|
get typeName() {
|
|
11957
11957
|
return Be.FixedNatClass;
|
|
11958
11958
|
}
|
|
@@ -11991,7 +11991,7 @@ class si extends Rn {
|
|
|
11991
11991
|
return t.toString();
|
|
11992
11992
|
}
|
|
11993
11993
|
}
|
|
11994
|
-
class ks extends
|
|
11994
|
+
class ks extends hi {
|
|
11995
11995
|
get typeName() {
|
|
11996
11996
|
return Be.VecClass;
|
|
11997
11997
|
}
|
|
@@ -11999,13 +11999,13 @@ class ks extends li {
|
|
|
11999
11999
|
return t.typeName === Be.VecClass;
|
|
12000
12000
|
}
|
|
12001
12001
|
constructor(t) {
|
|
12002
|
-
super(), this._type = t, this._blobOptimization = !1, t instanceof
|
|
12002
|
+
super(), this._type = t, this._blobOptimization = !1, t instanceof oi && t._bits === 8 && (this._blobOptimization = !0);
|
|
12003
12003
|
}
|
|
12004
12004
|
accept(t, n) {
|
|
12005
12005
|
return t.visitVec(this, this._type, n);
|
|
12006
12006
|
}
|
|
12007
12007
|
covariant(t) {
|
|
12008
|
-
const n = this._type instanceof
|
|
12008
|
+
const n = this._type instanceof oi ? this._type._bits : this._type instanceof ji ? this._type._bits : 0;
|
|
12009
12009
|
if (ArrayBuffer.isView(t) && n == t.BYTES_PER_ELEMENT * 8 || Array.isArray(t) && t.every((r, i) => {
|
|
12010
12010
|
try {
|
|
12011
12011
|
return this._type.covariant(r);
|
|
@@ -12058,7 +12058,7 @@ index ${i} -> ${s.message}`);
|
|
|
12058
12058
|
if (!(r instanceof ks))
|
|
12059
12059
|
throw new Error("Not a vector type");
|
|
12060
12060
|
const i = Number(Bt(t));
|
|
12061
|
-
if (this._type instanceof
|
|
12061
|
+
if (this._type instanceof oi) {
|
|
12062
12062
|
if (this._type._bits == 8)
|
|
12063
12063
|
return new Uint8Array(t.read(i));
|
|
12064
12064
|
if (this._type._bits == 16) {
|
|
@@ -12072,7 +12072,7 @@ index ${i} -> ${s.message}`);
|
|
|
12072
12072
|
if (this._type._bits == 64)
|
|
12073
12073
|
return new BigUint64Array(t.read(i * 8).buffer);
|
|
12074
12074
|
}
|
|
12075
|
-
if (this._type instanceof
|
|
12075
|
+
if (this._type instanceof ji) {
|
|
12076
12076
|
if (this._type._bits == 8)
|
|
12077
12077
|
return new Int8Array(t.read(i));
|
|
12078
12078
|
if (this._type._bits == 16) {
|
|
@@ -12109,7 +12109,7 @@ index ${i} -> ${s.message}`);
|
|
|
12109
12109
|
return "vec {" + t.map((r) => this._type.valueToString(r)).join("; ") + "}";
|
|
12110
12110
|
}
|
|
12111
12111
|
}
|
|
12112
|
-
class Or extends
|
|
12112
|
+
class Or extends hi {
|
|
12113
12113
|
get typeName() {
|
|
12114
12114
|
return Be.OptClass;
|
|
12115
12115
|
}
|
|
@@ -12144,7 +12144,7 @@ class Or extends li {
|
|
|
12144
12144
|
decodeValue(t, n) {
|
|
12145
12145
|
if (n instanceof No)
|
|
12146
12146
|
return [];
|
|
12147
|
-
if (n instanceof
|
|
12147
|
+
if (n instanceof fi)
|
|
12148
12148
|
return [];
|
|
12149
12149
|
let r = n;
|
|
12150
12150
|
if (n instanceof Nn) {
|
|
@@ -12154,7 +12154,7 @@ class Or extends li {
|
|
|
12154
12154
|
r = i;
|
|
12155
12155
|
}
|
|
12156
12156
|
if (r instanceof Or)
|
|
12157
|
-
switch (
|
|
12157
|
+
switch (Di(t)) {
|
|
12158
12158
|
case 0:
|
|
12159
12159
|
return [];
|
|
12160
12160
|
case 1: {
|
|
@@ -12171,7 +12171,7 @@ class Or extends li {
|
|
|
12171
12171
|
else {
|
|
12172
12172
|
if (
|
|
12173
12173
|
// this check corresponds to `not (null <: <t>)` in the spec
|
|
12174
|
-
this._type instanceof No || this._type instanceof Or || this._type instanceof
|
|
12174
|
+
this._type instanceof No || this._type instanceof Or || this._type instanceof fi
|
|
12175
12175
|
)
|
|
12176
12176
|
return r.decodeValue(t, r), [];
|
|
12177
12177
|
{
|
|
@@ -12194,7 +12194,7 @@ class Or extends li {
|
|
|
12194
12194
|
return t.length === 0 ? "null" : `opt ${this._type.valueToString(t[0])}`;
|
|
12195
12195
|
}
|
|
12196
12196
|
}
|
|
12197
|
-
class
|
|
12197
|
+
class Ki extends hi {
|
|
12198
12198
|
get typeName() {
|
|
12199
12199
|
return Be.RecordClass;
|
|
12200
12200
|
}
|
|
@@ -12243,7 +12243,7 @@ field ${n} -> ${i.message}`);
|
|
|
12243
12243
|
}
|
|
12244
12244
|
decodeValue(t, n) {
|
|
12245
12245
|
const r = this.checkType(n);
|
|
12246
|
-
if (!(r instanceof
|
|
12246
|
+
if (!(r instanceof Ki))
|
|
12247
12247
|
throw new Error("Not a record type");
|
|
12248
12248
|
const i = {};
|
|
12249
12249
|
let s = 0, o = 0;
|
|
@@ -12257,7 +12257,7 @@ field ${n} -> ${i.message}`);
|
|
|
12257
12257
|
if (l === d)
|
|
12258
12258
|
i[u] = f.decodeValue(t, a), s++, o++;
|
|
12259
12259
|
else if (d > l)
|
|
12260
|
-
if (f instanceof Or || f instanceof
|
|
12260
|
+
if (f instanceof Or || f instanceof fi)
|
|
12261
12261
|
i[u] = [], s++;
|
|
12262
12262
|
else
|
|
12263
12263
|
throw new Error("Cannot find required field " + u);
|
|
@@ -12265,7 +12265,7 @@ field ${n} -> ${i.message}`);
|
|
|
12265
12265
|
a.decodeValue(t, a), o++;
|
|
12266
12266
|
}
|
|
12267
12267
|
for (const [c, a] of this._fields.slice(s))
|
|
12268
|
-
if (a instanceof Or || a instanceof
|
|
12268
|
+
if (a instanceof Or || a instanceof fi)
|
|
12269
12269
|
i[c] = [];
|
|
12270
12270
|
else
|
|
12271
12271
|
throw new Error("Cannot find required field " + c);
|
|
@@ -12288,7 +12288,7 @@ field ${n} -> ${i.message}`);
|
|
|
12288
12288
|
return `record {${Bo(this._fields, n, ([i, s], o) => i + "=" + s.valueToString(o)).join("; ")}}`;
|
|
12289
12289
|
}
|
|
12290
12290
|
}
|
|
12291
|
-
class eu extends
|
|
12291
|
+
class eu extends Ki {
|
|
12292
12292
|
get typeName() {
|
|
12293
12293
|
return Be.TupleClass;
|
|
12294
12294
|
}
|
|
@@ -12337,7 +12337,7 @@ index ${r} -> ${i.message}`);
|
|
|
12337
12337
|
return `record {${Bo(this._components, t, (r, i) => r.valueToString(i)).join("; ")}}`;
|
|
12338
12338
|
}
|
|
12339
12339
|
}
|
|
12340
|
-
class Ps extends
|
|
12340
|
+
class Ps extends hi {
|
|
12341
12341
|
get typeName() {
|
|
12342
12342
|
return Be.VariantClass;
|
|
12343
12343
|
}
|
|
@@ -12416,7 +12416,7 @@ variant ${n} -> ${i.message}`);
|
|
|
12416
12416
|
return t;
|
|
12417
12417
|
}
|
|
12418
12418
|
}
|
|
12419
|
-
const qa = class qa extends
|
|
12419
|
+
const qa = class qa extends hi {
|
|
12420
12420
|
constructor() {
|
|
12421
12421
|
super(...arguments), this._id = qa._counter++;
|
|
12422
12422
|
}
|
|
@@ -12474,10 +12474,10 @@ const qa = class qa extends li {
|
|
|
12474
12474
|
qa._counter = 0;
|
|
12475
12475
|
let Nn = qa;
|
|
12476
12476
|
function Vl(e) {
|
|
12477
|
-
if (
|
|
12477
|
+
if (Di(e) !== 1)
|
|
12478
12478
|
throw new Error("Cannot decode principal");
|
|
12479
12479
|
const n = Number(Bt(e));
|
|
12480
|
-
return Ke.fromUint8Array(new Uint8Array(
|
|
12480
|
+
return Ke.fromUint8Array(new Uint8Array($i(e, n)));
|
|
12481
12481
|
}
|
|
12482
12482
|
class sm extends Rn {
|
|
12483
12483
|
get typeName() {
|
|
@@ -12511,7 +12511,7 @@ class sm extends Rn {
|
|
|
12511
12511
|
return `${this.name} "${t.toText()}"`;
|
|
12512
12512
|
}
|
|
12513
12513
|
}
|
|
12514
|
-
class ko extends
|
|
12514
|
+
class ko extends hi {
|
|
12515
12515
|
get typeName() {
|
|
12516
12516
|
return Be.FuncClass;
|
|
12517
12517
|
}
|
|
@@ -12547,9 +12547,9 @@ class ko extends li {
|
|
|
12547
12547
|
const r = n instanceof Nn ? n.getType() ?? n : n;
|
|
12548
12548
|
if (!Ll(r, this))
|
|
12549
12549
|
throw new Error(`Cannot decode function reference at type ${this.display()} from wire type ${r.display()}`);
|
|
12550
|
-
if (
|
|
12550
|
+
if (Di(t) !== 1)
|
|
12551
12551
|
throw new Error("Cannot decode function reference");
|
|
12552
|
-
const s = Vl(t), o = Number(Bt(t)), c =
|
|
12552
|
+
const s = Vl(t), o = Number(Bt(t)), c = $i(t, o), u = new TextDecoder("utf8", { fatal: !0 }).decode(c);
|
|
12553
12553
|
return [s, u];
|
|
12554
12554
|
}
|
|
12555
12555
|
get name() {
|
|
@@ -12573,7 +12573,7 @@ class ko extends li {
|
|
|
12573
12573
|
throw new Error("Illegal function annotation");
|
|
12574
12574
|
}
|
|
12575
12575
|
}
|
|
12576
|
-
class ba extends
|
|
12576
|
+
class ba extends hi {
|
|
12577
12577
|
get typeName() {
|
|
12578
12578
|
return Be.ServiceClass;
|
|
12579
12579
|
}
|
|
@@ -12647,17 +12647,17 @@ function om(e, t) {
|
|
|
12647
12647
|
const n = new Ls(t);
|
|
12648
12648
|
if (t.byteLength < zc.length)
|
|
12649
12649
|
throw new Error("Message length smaller than magic number");
|
|
12650
|
-
const r =
|
|
12650
|
+
const r = $i(n, zc.length), i = new TextDecoder().decode(r);
|
|
12651
12651
|
if (i !== zc)
|
|
12652
12652
|
throw new Error("Wrong magic number: " + JSON.stringify(i));
|
|
12653
12653
|
function s(d) {
|
|
12654
12654
|
const y = [], g = Number(Bt(d));
|
|
12655
12655
|
for (let _ = 0; _ < g; _++) {
|
|
12656
|
-
const S = Number(
|
|
12656
|
+
const S = Number(ti(d));
|
|
12657
12657
|
switch (S) {
|
|
12658
12658
|
case Ve.Opt:
|
|
12659
12659
|
case Ve.Vector: {
|
|
12660
|
-
const w = Number(
|
|
12660
|
+
const w = Number(ti(d));
|
|
12661
12661
|
y.push([S, w]);
|
|
12662
12662
|
break;
|
|
12663
12663
|
}
|
|
@@ -12672,7 +12672,7 @@ function om(e, t) {
|
|
|
12672
12672
|
if (typeof O == "number" && O >= A)
|
|
12673
12673
|
throw new Error("field id collision or not sorted");
|
|
12674
12674
|
O = A;
|
|
12675
|
-
const R = Number(
|
|
12675
|
+
const R = Number(ti(d));
|
|
12676
12676
|
w.push([A, R]);
|
|
12677
12677
|
}
|
|
12678
12678
|
y.push([S, w]);
|
|
@@ -12682,11 +12682,11 @@ function om(e, t) {
|
|
|
12682
12682
|
const w = [];
|
|
12683
12683
|
let T = Number(Bt(d));
|
|
12684
12684
|
for (; T--; )
|
|
12685
|
-
w.push(Number(
|
|
12685
|
+
w.push(Number(ti(d)));
|
|
12686
12686
|
const O = [];
|
|
12687
12687
|
let A = Number(Bt(d));
|
|
12688
12688
|
for (; A--; )
|
|
12689
|
-
O.push(Number(
|
|
12689
|
+
O.push(Number(ti(d)));
|
|
12690
12690
|
const R = [];
|
|
12691
12691
|
let M = Number(Bt(d));
|
|
12692
12692
|
for (; M--; )
|
|
@@ -12713,7 +12713,7 @@ function om(e, t) {
|
|
|
12713
12713
|
let w = Number(Bt(d));
|
|
12714
12714
|
const T = [];
|
|
12715
12715
|
for (; w--; ) {
|
|
12716
|
-
const O = Number(Bt(d)), A = new TextDecoder().decode(
|
|
12716
|
+
const O = Number(Bt(d)), A = new TextDecoder().decode($i(d, O)), R = ti(d);
|
|
12717
12717
|
T.push([A, R]);
|
|
12718
12718
|
}
|
|
12719
12719
|
y.push([S, T]);
|
|
@@ -12725,7 +12725,7 @@ function om(e, t) {
|
|
|
12725
12725
|
}
|
|
12726
12726
|
const m = [], E = Number(Bt(d));
|
|
12727
12727
|
for (let _ = 0; _ < E; _++)
|
|
12728
|
-
m.push(Number(
|
|
12728
|
+
m.push(Number(ti(d)));
|
|
12729
12729
|
return [y, m];
|
|
12730
12730
|
}
|
|
12731
12731
|
const [o, c] = s(n);
|
|
@@ -12848,7 +12848,7 @@ function om(e, t) {
|
|
|
12848
12848
|
Xf();
|
|
12849
12849
|
}
|
|
12850
12850
|
}
|
|
12851
|
-
const cm = new Hl(), am = new
|
|
12851
|
+
const cm = new Hl(), am = new fi(), ES = new nm(), um = new rm(), fm = new No(), lm = new im(), hm = new Fl(), dm = new Ml(), pm = new ql(32), ym = new ql(64), gm = new ji(8), mm = new ji(16), wm = new ji(32), bm = new ji(64), Em = new oi(8), _m = new oi(16), Sm = new oi(32), Tm = new oi(64), xm = new sm();
|
|
12852
12852
|
function Am(...e) {
|
|
12853
12853
|
return new eu(e);
|
|
12854
12854
|
}
|
|
@@ -12859,7 +12859,7 @@ function Im(e) {
|
|
|
12859
12859
|
return new Or(e);
|
|
12860
12860
|
}
|
|
12861
12861
|
function Om(e) {
|
|
12862
|
-
return new
|
|
12862
|
+
return new Ki(e);
|
|
12863
12863
|
}
|
|
12864
12864
|
function Bm(e) {
|
|
12865
12865
|
return new Ps(e);
|
|
@@ -12927,7 +12927,7 @@ function _S(e, t) {
|
|
|
12927
12927
|
return !0;
|
|
12928
12928
|
}
|
|
12929
12929
|
function Gu(e) {
|
|
12930
|
-
return e instanceof Or || e instanceof No || e instanceof
|
|
12930
|
+
return e instanceof Or || e instanceof No || e instanceof fi;
|
|
12931
12931
|
}
|
|
12932
12932
|
function Ll(e, t) {
|
|
12933
12933
|
const n = Yc.copy(), r = dr(n, e, t);
|
|
@@ -12939,13 +12939,13 @@ function dr(e, t, n) {
|
|
|
12939
12939
|
const r = e.known(t, n);
|
|
12940
12940
|
if (r !== void 0)
|
|
12941
12941
|
return r;
|
|
12942
|
-
if (e.add(t, n), n instanceof
|
|
12942
|
+
if (e.add(t, n), n instanceof fi || t instanceof Hl || t instanceof Ml && n instanceof Fl)
|
|
12943
12943
|
return !0;
|
|
12944
12944
|
if (t instanceof ks && n instanceof ks)
|
|
12945
12945
|
return dr(e, t._type, n._type);
|
|
12946
12946
|
if (n instanceof Or)
|
|
12947
12947
|
return !0;
|
|
12948
|
-
if (t instanceof
|
|
12948
|
+
if (t instanceof Ki && n instanceof Ki) {
|
|
12949
12949
|
const i = t.fieldsAsObject;
|
|
12950
12950
|
for (const [s, o] of n._fields) {
|
|
12951
12951
|
const c = i[cn(s)];
|
|
@@ -13002,11 +13002,11 @@ const SS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13002
13002
|
__proto__: null,
|
|
13003
13003
|
Bool: um,
|
|
13004
13004
|
BoolClass: rm,
|
|
13005
|
-
ConstructType:
|
|
13005
|
+
ConstructType: hi,
|
|
13006
13006
|
Empty: cm,
|
|
13007
13007
|
EmptyClass: Hl,
|
|
13008
|
-
FixedIntClass:
|
|
13009
|
-
FixedNatClass:
|
|
13008
|
+
FixedIntClass: ji,
|
|
13009
|
+
FixedNatClass: oi,
|
|
13010
13010
|
Float32: pm,
|
|
13011
13011
|
Float64: ym,
|
|
13012
13012
|
FloatClass: ql,
|
|
@@ -13034,9 +13034,9 @@ const SS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13034
13034
|
Rec: Nm,
|
|
13035
13035
|
RecClass: Nn,
|
|
13036
13036
|
Record: Om,
|
|
13037
|
-
RecordClass:
|
|
13037
|
+
RecordClass: Ki,
|
|
13038
13038
|
Reserved: am,
|
|
13039
|
-
ReservedClass:
|
|
13039
|
+
ReservedClass: fi,
|
|
13040
13040
|
Service: Pm,
|
|
13041
13041
|
ServiceClass: ba,
|
|
13042
13042
|
Text: lm,
|
|
@@ -13118,7 +13118,7 @@ function Fm(e, t) {
|
|
|
13118
13118
|
return i;
|
|
13119
13119
|
return null;
|
|
13120
13120
|
}
|
|
13121
|
-
const
|
|
13121
|
+
const Pi = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : globalThis, Mm = (e) => !Po(e) && e !== Pi;
|
|
13122
13122
|
function zf() {
|
|
13123
13123
|
const { caseless: e } = Mm(this) && this || {}, t = {}, n = (r, i) => {
|
|
13124
13124
|
const s = e && Fm(t, i) || i;
|
|
@@ -13227,14 +13227,14 @@ const rT = (e) => {
|
|
|
13227
13227
|
return r;
|
|
13228
13228
|
};
|
|
13229
13229
|
return n(e, 0);
|
|
13230
|
-
}, iT = Gn("AsyncFunction"), sT = (e) => e && (lc(e) || dn(e)) && dn(e.then) && dn(e.catch), Vm = ((e, t) => e ? setImmediate : t ? ((n, r) => (
|
|
13231
|
-
i ===
|
|
13230
|
+
}, iT = Gn("AsyncFunction"), sT = (e) => e && (lc(e) || dn(e)) && dn(e.then) && dn(e.catch), Vm = ((e, t) => e ? setImmediate : t ? ((n, r) => (Pi.addEventListener("message", ({ source: i, data: s }) => {
|
|
13231
|
+
i === Pi && s === n && r.length && r.shift()();
|
|
13232
13232
|
}, !1), (i) => {
|
|
13233
|
-
r.push(i),
|
|
13233
|
+
r.push(i), Pi.postMessage(n, "*");
|
|
13234
13234
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
13235
13235
|
typeof setImmediate == "function",
|
|
13236
|
-
dn(
|
|
13237
|
-
), oT = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
13236
|
+
dn(Pi.postMessage)
|
|
13237
|
+
), oT = typeof queueMicrotask < "u" ? queueMicrotask.bind(Pi) : typeof process < "u" && process.nextTick || Vm, cT = (e) => e != null && dn(e[nu]), z = {
|
|
13238
13238
|
isArray: $s,
|
|
13239
13239
|
isArrayBuffer: Cm,
|
|
13240
13240
|
isBuffer: fc,
|
|
@@ -13284,7 +13284,7 @@ const rT = (e) => {
|
|
|
13284
13284
|
noop: eT,
|
|
13285
13285
|
toFiniteNumber: tT,
|
|
13286
13286
|
findKey: Fm,
|
|
13287
|
-
global:
|
|
13287
|
+
global: Pi,
|
|
13288
13288
|
isContextDefined: Mm,
|
|
13289
13289
|
isSpecCompliantForm: nT,
|
|
13290
13290
|
toJSONObject: rT,
|
|
@@ -13990,7 +13990,7 @@ function Ym(e, t, n) {
|
|
|
13990
13990
|
return e && (r || n == !1) ? HT(e, t) : t;
|
|
13991
13991
|
}
|
|
13992
13992
|
const Zd = (e) => e instanceof pn ? { ...e } : e;
|
|
13993
|
-
function
|
|
13993
|
+
function Gi(e, t) {
|
|
13994
13994
|
t = t || {};
|
|
13995
13995
|
const n = {};
|
|
13996
13996
|
function r(u, f, l, d) {
|
|
@@ -14055,7 +14055,7 @@ function Ki(e, t) {
|
|
|
14055
14055
|
}), n;
|
|
14056
14056
|
}
|
|
14057
14057
|
const Zm = (e) => {
|
|
14058
|
-
const t =
|
|
14058
|
+
const t = Gi({}, e);
|
|
14059
14059
|
let { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: s, headers: o, auth: c } = t;
|
|
14060
14060
|
t.headers = o = pn.from(o), t.url = Km(Ym(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), c && o.set(
|
|
14061
14061
|
"Authorization",
|
|
@@ -14456,7 +14456,7 @@ const Qc = {
|
|
|
14456
14456
|
assertOptions: zT,
|
|
14457
14457
|
validators: cu
|
|
14458
14458
|
}, Yn = Qc.validators;
|
|
14459
|
-
let
|
|
14459
|
+
let Mi = class {
|
|
14460
14460
|
constructor(t) {
|
|
14461
14461
|
this.defaults = t || {}, this.interceptors = {
|
|
14462
14462
|
request: new Wd(),
|
|
@@ -14489,7 +14489,7 @@ let Fi = class {
|
|
|
14489
14489
|
}
|
|
14490
14490
|
}
|
|
14491
14491
|
_request(t, n) {
|
|
14492
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
14492
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Gi(this.defaults, n);
|
|
14493
14493
|
const { transitional: r, paramsSerializer: i, headers: s } = n;
|
|
14494
14494
|
r !== void 0 && Qc.assertOptions(r, {
|
|
14495
14495
|
silentJSONParsing: Yn.transitional(Yn.boolean),
|
|
@@ -14551,14 +14551,14 @@ let Fi = class {
|
|
|
14551
14551
|
return f;
|
|
14552
14552
|
}
|
|
14553
14553
|
getUri(t) {
|
|
14554
|
-
t =
|
|
14554
|
+
t = Gi(this.defaults, t);
|
|
14555
14555
|
const n = Ym(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
14556
14556
|
return Km(n, t.params, t.paramsSerializer);
|
|
14557
14557
|
}
|
|
14558
14558
|
};
|
|
14559
14559
|
z.forEach(["delete", "get", "head", "options"], function(t) {
|
|
14560
|
-
|
|
14561
|
-
return this.request(
|
|
14560
|
+
Mi.prototype[t] = function(n, r) {
|
|
14561
|
+
return this.request(Gi(r || {}, {
|
|
14562
14562
|
method: t,
|
|
14563
14563
|
url: n,
|
|
14564
14564
|
data: (r || {}).data
|
|
@@ -14568,7 +14568,7 @@ z.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
14568
14568
|
z.forEach(["post", "put", "patch"], function(t) {
|
|
14569
14569
|
function n(r) {
|
|
14570
14570
|
return function(s, o, c) {
|
|
14571
|
-
return this.request(
|
|
14571
|
+
return this.request(Gi(c || {}, {
|
|
14572
14572
|
method: t,
|
|
14573
14573
|
headers: r ? {
|
|
14574
14574
|
"Content-Type": "multipart/form-data"
|
|
@@ -14578,7 +14578,7 @@ z.forEach(["post", "put", "patch"], function(t) {
|
|
|
14578
14578
|
}));
|
|
14579
14579
|
};
|
|
14580
14580
|
}
|
|
14581
|
-
|
|
14581
|
+
Mi.prototype[t] = n(), Mi.prototype[t + "Form"] = n(!0);
|
|
14582
14582
|
});
|
|
14583
14583
|
let YT = class nw {
|
|
14584
14584
|
constructor(t) {
|
|
@@ -14730,13 +14730,13 @@ Object.entries(el).forEach(([e, t]) => {
|
|
|
14730
14730
|
el[t] = e;
|
|
14731
14731
|
});
|
|
14732
14732
|
function rw(e) {
|
|
14733
|
-
const t = new
|
|
14734
|
-
return z.extend(n,
|
|
14735
|
-
return rw(
|
|
14733
|
+
const t = new Mi(e), n = Rm(Mi.prototype.request, t);
|
|
14734
|
+
return z.extend(n, Mi.prototype, t, { allOwnKeys: !0 }), z.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(i) {
|
|
14735
|
+
return rw(Gi(e, i));
|
|
14736
14736
|
}, n;
|
|
14737
14737
|
}
|
|
14738
14738
|
const ht = rw(dc);
|
|
14739
|
-
ht.Axios =
|
|
14739
|
+
ht.Axios = Mi;
|
|
14740
14740
|
ht.CanceledError = Ds;
|
|
14741
14741
|
ht.CancelToken = YT;
|
|
14742
14742
|
ht.isCancel = Xm;
|
|
@@ -14749,7 +14749,7 @@ ht.all = function(t) {
|
|
|
14749
14749
|
};
|
|
14750
14750
|
ht.spread = ZT;
|
|
14751
14751
|
ht.isAxiosError = JT;
|
|
14752
|
-
ht.mergeConfig =
|
|
14752
|
+
ht.mergeConfig = Gi;
|
|
14753
14753
|
ht.AxiosHeaders = pn;
|
|
14754
14754
|
ht.formToJSON = (e) => Wm(z.isHTMLForm(e) ? new FormData(e) : e);
|
|
14755
14755
|
ht.getAdapter = ew.getAdapter;
|
|
@@ -14875,42 +14875,42 @@ class wr extends Error {
|
|
|
14875
14875
|
return `${this.name} (${this.kind}): ${this.message}`;
|
|
14876
14876
|
}
|
|
14877
14877
|
}
|
|
14878
|
-
class
|
|
14878
|
+
class Zi extends wr {
|
|
14879
14879
|
static fromCode(t) {
|
|
14880
14880
|
return new this(t);
|
|
14881
14881
|
}
|
|
14882
14882
|
}
|
|
14883
|
-
class An extends
|
|
14883
|
+
class An extends Zi {
|
|
14884
14884
|
constructor(t) {
|
|
14885
14885
|
super(t, Br.Trust), this.name = "TrustError", Object.setPrototypeOf(this, An.prototype);
|
|
14886
14886
|
}
|
|
14887
14887
|
}
|
|
14888
|
-
class yt extends
|
|
14888
|
+
class yt extends Zi {
|
|
14889
14889
|
constructor(t) {
|
|
14890
14890
|
super(t, Br.Protocol), this.name = "ProtocolError", Object.setPrototypeOf(this, yt.prototype);
|
|
14891
14891
|
}
|
|
14892
14892
|
}
|
|
14893
|
-
class Es extends
|
|
14893
|
+
class Es extends Zi {
|
|
14894
14894
|
constructor(t) {
|
|
14895
14895
|
super(t, Br.Reject), this.name = "RejectError", Object.setPrototypeOf(this, Es.prototype);
|
|
14896
14896
|
}
|
|
14897
14897
|
}
|
|
14898
|
-
class Sa extends
|
|
14898
|
+
class Sa extends Zi {
|
|
14899
14899
|
constructor(t) {
|
|
14900
14900
|
super(t, Br.Transport), this.name = "TransportError", Object.setPrototypeOf(this, Sa.prototype);
|
|
14901
14901
|
}
|
|
14902
14902
|
}
|
|
14903
|
-
class an extends
|
|
14903
|
+
class an extends Zi {
|
|
14904
14904
|
constructor(t) {
|
|
14905
14905
|
super(t, Br.External), this.name = "ExternalError", Object.setPrototypeOf(this, an.prototype);
|
|
14906
14906
|
}
|
|
14907
14907
|
}
|
|
14908
|
-
class et extends
|
|
14908
|
+
class et extends Zi {
|
|
14909
14909
|
constructor(t) {
|
|
14910
14910
|
super(t, Br.Input), this.name = "InputError", Object.setPrototypeOf(this, et.prototype);
|
|
14911
14911
|
}
|
|
14912
14912
|
}
|
|
14913
|
-
class un extends
|
|
14913
|
+
class un extends Zi {
|
|
14914
14914
|
constructor(t) {
|
|
14915
14915
|
super(t, Br.Unknown), this.name = "UnknownError", Object.setPrototypeOf(this, un.prototype);
|
|
14916
14916
|
}
|
|
@@ -15124,9 +15124,9 @@ class So extends Ue {
|
|
|
15124
15124
|
return this.error;
|
|
15125
15125
|
}
|
|
15126
15126
|
}
|
|
15127
|
-
class
|
|
15127
|
+
class Bi extends Ue {
|
|
15128
15128
|
constructor() {
|
|
15129
|
-
super(), this.name = "IdentityInvalidErrorCode", Object.setPrototypeOf(this,
|
|
15129
|
+
super(), this.name = "IdentityInvalidErrorCode", Object.setPrototypeOf(this, Bi.prototype);
|
|
15130
15130
|
}
|
|
15131
15131
|
toErrorMessage() {
|
|
15132
15132
|
return "This identity has expired due this application's security policy. Please refresh your authentication.";
|
|
@@ -15323,7 +15323,7 @@ class i0 {
|
|
|
15323
15323
|
};
|
|
15324
15324
|
}
|
|
15325
15325
|
}
|
|
15326
|
-
class
|
|
15326
|
+
class Ji extends Error {
|
|
15327
15327
|
constructor(t) {
|
|
15328
15328
|
super(t), this.name = "DecodingError";
|
|
15329
15329
|
}
|
|
@@ -15350,10 +15350,10 @@ function lx(e) {
|
|
|
15350
15350
|
let Co = new Uint8Array(), to, $n = 0;
|
|
15351
15351
|
function hx(e, t) {
|
|
15352
15352
|
Co = e, $n = 0;
|
|
15353
|
-
const n =
|
|
15353
|
+
const n = qi();
|
|
15354
15354
|
return t?.(n) ?? n;
|
|
15355
15355
|
}
|
|
15356
|
-
function
|
|
15356
|
+
function qi(e) {
|
|
15357
15357
|
const [t, n] = ea();
|
|
15358
15358
|
switch (t) {
|
|
15359
15359
|
case Tt.UnsignedInteger:
|
|
@@ -15373,12 +15373,12 @@ function Mi(e) {
|
|
|
15373
15373
|
case Tt.Simple:
|
|
15374
15374
|
return px(n);
|
|
15375
15375
|
}
|
|
15376
|
-
throw new
|
|
15376
|
+
throw new Ji(`Unsupported major type: ${t}`);
|
|
15377
15377
|
}
|
|
15378
15378
|
function ea() {
|
|
15379
15379
|
const e = Co.at($n);
|
|
15380
15380
|
if (ax(e))
|
|
15381
|
-
throw new
|
|
15381
|
+
throw new Ji("Provided CBOR data is empty");
|
|
15382
15382
|
const t = fx(e), n = lx(e);
|
|
15383
15383
|
return $n++, [t, n];
|
|
15384
15384
|
}
|
|
@@ -15386,14 +15386,14 @@ function dx(e, t) {
|
|
|
15386
15386
|
const n = Ks(e);
|
|
15387
15387
|
if (n === 1 / 0) {
|
|
15388
15388
|
const i = [];
|
|
15389
|
-
let s =
|
|
15389
|
+
let s = qi();
|
|
15390
15390
|
for (; s !== ow; )
|
|
15391
|
-
i.push(s), s =
|
|
15391
|
+
i.push(s), s = qi();
|
|
15392
15392
|
return i;
|
|
15393
15393
|
}
|
|
15394
15394
|
const r = new Array(n);
|
|
15395
15395
|
for (let i = 0; i < n; i++) {
|
|
15396
|
-
const s =
|
|
15396
|
+
const s = qi();
|
|
15397
15397
|
r[i] = s;
|
|
15398
15398
|
}
|
|
15399
15399
|
return r;
|
|
@@ -15411,14 +15411,14 @@ function px(e) {
|
|
|
15411
15411
|
case Ln.Break:
|
|
15412
15412
|
return ow;
|
|
15413
15413
|
}
|
|
15414
|
-
throw new
|
|
15414
|
+
throw new Ji(`Unrecognized simple type: ${e.toString(2)}`);
|
|
15415
15415
|
}
|
|
15416
15416
|
function yx(e, t) {
|
|
15417
15417
|
const n = Ks(e), r = {};
|
|
15418
15418
|
if (n === 1 / 0) {
|
|
15419
15419
|
let [i, s] = ea();
|
|
15420
15420
|
for (; i !== Tt.Simple && s !== Ln.Break; ) {
|
|
15421
|
-
const o = nl(s), c =
|
|
15421
|
+
const o = nl(s), c = qi();
|
|
15422
15422
|
r[o] = c, [i, s] = ea();
|
|
15423
15423
|
}
|
|
15424
15424
|
return r;
|
|
@@ -15426,8 +15426,8 @@ function yx(e, t) {
|
|
|
15426
15426
|
for (let i = 0; i < n; i++) {
|
|
15427
15427
|
const [s, o] = ea();
|
|
15428
15428
|
if (s !== Tt.TextString)
|
|
15429
|
-
throw new
|
|
15430
|
-
const c = nl(o), a =
|
|
15429
|
+
throw new Ji("Map keys must be text strings");
|
|
15430
|
+
const c = nl(o), a = qi();
|
|
15431
15431
|
r[c] = a;
|
|
15432
15432
|
}
|
|
15433
15433
|
return r;
|
|
@@ -15447,7 +15447,7 @@ function Ks(e) {
|
|
|
15447
15447
|
case qn.Indefinite:
|
|
15448
15448
|
return 1 / 0;
|
|
15449
15449
|
default:
|
|
15450
|
-
throw new
|
|
15450
|
+
throw new Ji(`Unsupported integer info: ${e.toString(2)}`);
|
|
15451
15451
|
}
|
|
15452
15452
|
}
|
|
15453
15453
|
function gx(e) {
|
|
@@ -15457,7 +15457,7 @@ function gx(e) {
|
|
|
15457
15457
|
function aw(e) {
|
|
15458
15458
|
const t = Ks(e);
|
|
15459
15459
|
if (t > Number.MAX_SAFE_INTEGER)
|
|
15460
|
-
throw new
|
|
15460
|
+
throw new Ji("Byte length is too large");
|
|
15461
15461
|
const n = Number(t);
|
|
15462
15462
|
return $n += n, Co.slice($n - n, $n);
|
|
15463
15463
|
}
|
|
@@ -15468,8 +15468,8 @@ function nl(e) {
|
|
|
15468
15468
|
function mx(e, t) {
|
|
15469
15469
|
const n = Ks(e);
|
|
15470
15470
|
if (n === sw)
|
|
15471
|
-
return
|
|
15472
|
-
throw new
|
|
15471
|
+
return qi();
|
|
15472
|
+
throw new Ji(`Unsupported tag: ${n}.`);
|
|
15473
15473
|
}
|
|
15474
15474
|
class ah extends Error {
|
|
15475
15475
|
constructor(t) {
|
|
@@ -15634,10 +15634,10 @@ const Rc = () => {
|
|
|
15634
15634
|
}
|
|
15635
15635
|
return typeof crypto < "u" && crypto.randomInt ? crypto.randomInt(0, 4294967295) : Math.floor(Math.random() * 4294967295);
|
|
15636
15636
|
};
|
|
15637
|
-
var
|
|
15637
|
+
var Ri;
|
|
15638
15638
|
(function(e) {
|
|
15639
15639
|
e.Query = "read", e.ReadState = "read_state", e.Call = "call";
|
|
15640
|
-
})(
|
|
15640
|
+
})(Ri || (Ri = {}));
|
|
15641
15641
|
var rl;
|
|
15642
15642
|
(function(e) {
|
|
15643
15643
|
e.Call = "call";
|
|
@@ -15713,7 +15713,7 @@ class xs {
|
|
|
15713
15713
|
function o0(e = il) {
|
|
15714
15714
|
return async (t) => {
|
|
15715
15715
|
const n = t.request.headers;
|
|
15716
|
-
t.request.headers = n, t.endpoint ===
|
|
15716
|
+
t.request.headers = n, t.endpoint === Ri.Call && (t.body.nonce = e());
|
|
15717
15717
|
};
|
|
15718
15718
|
}
|
|
15719
15719
|
function Qu(e) {
|
|
@@ -15793,7 +15793,7 @@ function qo(e) {
|
|
|
15793
15793
|
function Ux(e, t) {
|
|
15794
15794
|
return e >> BigInt(t) & Na;
|
|
15795
15795
|
}
|
|
15796
|
-
const
|
|
15796
|
+
const Qi = (e) => (Na << BigInt(e)) - Na;
|
|
15797
15797
|
function Cx(e) {
|
|
15798
15798
|
return typeof e == "function" && Number.isSafeInteger(e.outputLen);
|
|
15799
15799
|
}
|
|
@@ -15824,7 +15824,7 @@ function Vo(e) {
|
|
|
15824
15824
|
};
|
|
15825
15825
|
}
|
|
15826
15826
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
15827
|
-
const ln = BigInt(0), Ft = BigInt(1),
|
|
15827
|
+
const ln = BigInt(0), Ft = BigInt(1), Ui = /* @__PURE__ */ BigInt(2), ww = /* @__PURE__ */ BigInt(3), bw = /* @__PURE__ */ BigInt(4), Ew = /* @__PURE__ */ BigInt(5), Hx = /* @__PURE__ */ BigInt(7), _w = /* @__PURE__ */ BigInt(8), Fx = /* @__PURE__ */ BigInt(9), Sw = /* @__PURE__ */ BigInt(16);
|
|
15828
15828
|
function mt(e, t) {
|
|
15829
15829
|
const n = e % t;
|
|
15830
15830
|
return n >= ln ? n : t + n;
|
|
@@ -15858,11 +15858,11 @@ function Tw(e, t) {
|
|
|
15858
15858
|
return hh(e, r, t), r;
|
|
15859
15859
|
}
|
|
15860
15860
|
function Mx(e, t) {
|
|
15861
|
-
const n = (e.ORDER - Ew) / _w, r = e.mul(t,
|
|
15861
|
+
const n = (e.ORDER - Ew) / _w, r = e.mul(t, Ui), i = e.pow(r, n), s = e.mul(t, i), o = e.mul(e.mul(s, Ui), i), c = e.mul(s, e.sub(o, e.ONE));
|
|
15862
15862
|
return hh(e, c, t), c;
|
|
15863
15863
|
}
|
|
15864
15864
|
function qx(e) {
|
|
15865
|
-
const t =
|
|
15865
|
+
const t = di(e), n = xw(e), r = n(t, t.neg(t.ONE)), i = n(t, r), s = n(t, t.neg(r)), o = (e + Hx) / Sw;
|
|
15866
15866
|
return (c, a) => {
|
|
15867
15867
|
let u = c.pow(a, o), f = c.mul(u, r);
|
|
15868
15868
|
const l = c.mul(u, i), d = c.mul(u, s), y = c.eql(c.sqr(f), a), g = c.eql(c.sqr(l), a);
|
|
@@ -15875,17 +15875,17 @@ function xw(e) {
|
|
|
15875
15875
|
if (e < ww)
|
|
15876
15876
|
throw new Error("sqrt is not defined for small field");
|
|
15877
15877
|
let t = e - Ft, n = 0;
|
|
15878
|
-
for (; t %
|
|
15879
|
-
t /=
|
|
15880
|
-
let r =
|
|
15881
|
-
const i =
|
|
15878
|
+
for (; t % Ui === ln; )
|
|
15879
|
+
t /= Ui, n++;
|
|
15880
|
+
let r = Ui;
|
|
15881
|
+
const i = di(e);
|
|
15882
15882
|
for (; ka(i, r) === 1; )
|
|
15883
15883
|
if (r++ > 1e3)
|
|
15884
15884
|
throw new Error("Cannot find square root: probably non-prime P");
|
|
15885
15885
|
if (n === 1)
|
|
15886
15886
|
return Tw;
|
|
15887
15887
|
let s = i.pow(r, t);
|
|
15888
|
-
const o = (t + Ft) /
|
|
15888
|
+
const o = (t + Ft) / Ui;
|
|
15889
15889
|
return function(a, u) {
|
|
15890
15890
|
if (a.is0(u))
|
|
15891
15891
|
return u;
|
|
@@ -15948,12 +15948,12 @@ function pu(e, t, n) {
|
|
|
15948
15948
|
n & Ft && (r = e.mul(r, i)), i = e.sqr(i), n >>= Ft;
|
|
15949
15949
|
return r;
|
|
15950
15950
|
}
|
|
15951
|
-
function
|
|
15951
|
+
function es(e, t, n = !1) {
|
|
15952
15952
|
const r = new Array(t.length).fill(n ? e.ZERO : void 0), i = t.reduce((o, c, a) => e.is0(c) ? o : (r[a] = o, e.mul(o, c)), e.ONE), s = e.inv(i);
|
|
15953
15953
|
return t.reduceRight((o, c, a) => e.is0(c) ? o : (r[a] = e.mul(o, r[a]), e.mul(o, c)), s), r;
|
|
15954
15954
|
}
|
|
15955
15955
|
function ka(e, t) {
|
|
15956
|
-
const n = (e.ORDER - Ft) /
|
|
15956
|
+
const n = (e.ORDER - Ft) / Ui, r = e.pow(t, n), i = e.eql(r, e.ONE), s = e.eql(r, e.ZERO), o = e.eql(r, e.neg(e.ONE));
|
|
15957
15957
|
if (!i && !s && !o)
|
|
15958
15958
|
throw new Error("invalid Legendre symbol result");
|
|
15959
15959
|
return i ? 1 : s ? 0 : -1;
|
|
@@ -15963,7 +15963,7 @@ function Dx(e, t) {
|
|
|
15963
15963
|
const n = t !== void 0 ? t : e.toString(2).length, r = Math.ceil(n / 8);
|
|
15964
15964
|
return { nBitLength: n, nByteLength: r };
|
|
15965
15965
|
}
|
|
15966
|
-
function
|
|
15966
|
+
function di(e, t, n = !1, r = {}) {
|
|
15967
15967
|
if (e <= ln)
|
|
15968
15968
|
throw new Error("invalid field: expected ORDER > 0, got " + e);
|
|
15969
15969
|
let i, s, o = !1, c;
|
|
@@ -15983,7 +15983,7 @@ function hi(e, t, n = !1, r = {}) {
|
|
|
15983
15983
|
isLE: n,
|
|
15984
15984
|
BITS: a,
|
|
15985
15985
|
BYTES: u,
|
|
15986
|
-
MASK:
|
|
15986
|
+
MASK: Qi(a),
|
|
15987
15987
|
ZERO: ln,
|
|
15988
15988
|
ONE: Ft,
|
|
15989
15989
|
allowedLengths: c,
|
|
@@ -16028,7 +16028,7 @@ function hi(e, t, n = !1, r = {}) {
|
|
|
16028
16028
|
return g;
|
|
16029
16029
|
},
|
|
16030
16030
|
// TODO: we don't need it here, move out to separate fn
|
|
16031
|
-
invertBatch: (d) =>
|
|
16031
|
+
invertBatch: (d) => es(l, d),
|
|
16032
16032
|
// We can't move this out because Fp6, Fp12 implement it
|
|
16033
16033
|
// and it's unclear what to return in there.
|
|
16034
16034
|
cmov: (d, y, g) => g ? y : d
|
|
@@ -16053,13 +16053,13 @@ function jx(e, t, n = !1) {
|
|
|
16053
16053
|
return n ? yw(c, i) : Ut(c, i);
|
|
16054
16054
|
}
|
|
16055
16055
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
16056
|
-
const Cs = BigInt(0),
|
|
16056
|
+
const Cs = BigInt(0), Ci = BigInt(1);
|
|
16057
16057
|
function Pa(e, t) {
|
|
16058
16058
|
const n = t.negate();
|
|
16059
16059
|
return e ? n : t;
|
|
16060
16060
|
}
|
|
16061
16061
|
function _r(e, t) {
|
|
16062
|
-
const n =
|
|
16062
|
+
const n = es(e.Fp, t.map((r) => r.Z));
|
|
16063
16063
|
return t.map((r, i) => e.fromAffine(r.toAffine(n[i])));
|
|
16064
16064
|
}
|
|
16065
16065
|
function Ow(e, t) {
|
|
@@ -16068,13 +16068,13 @@ function Ow(e, t) {
|
|
|
16068
16068
|
}
|
|
16069
16069
|
function tf(e, t) {
|
|
16070
16070
|
Ow(e, t);
|
|
16071
|
-
const n = Math.ceil(t / e) + 1, r = 2 ** (e - 1), i = 2 ** e, s =
|
|
16071
|
+
const n = Math.ceil(t / e) + 1, r = 2 ** (e - 1), i = 2 ** e, s = Qi(e), o = BigInt(e);
|
|
16072
16072
|
return { windows: n, windowSize: r, mask: s, maxNumber: i, shiftBy: o };
|
|
16073
16073
|
}
|
|
16074
16074
|
function f0(e, t, n) {
|
|
16075
16075
|
const { windowSize: r, mask: i, maxNumber: s, shiftBy: o } = n;
|
|
16076
16076
|
let c = Number(e & i), a = e >> o;
|
|
16077
|
-
c > r && (c -= s, a +=
|
|
16077
|
+
c > r && (c -= s, a += Ci);
|
|
16078
16078
|
const u = t * r, f = u + Math.abs(c) - 1, l = c === 0, d = c < 0, y = t % 2 !== 0;
|
|
16079
16079
|
return { nextN: a, offset: f, isZero: l, isNeg: d, isNegF: y, offsetF: u };
|
|
16080
16080
|
}
|
|
@@ -16111,7 +16111,7 @@ class Nw {
|
|
|
16111
16111
|
_unsafeLadder(t, n, r = this.ZERO) {
|
|
16112
16112
|
let i = t;
|
|
16113
16113
|
for (; n > Cs; )
|
|
16114
|
-
n &
|
|
16114
|
+
n & Ci && (r = r.add(i)), i = i.double(), n >>= Ci;
|
|
16115
16115
|
return r;
|
|
16116
16116
|
}
|
|
16117
16117
|
/**
|
|
@@ -16195,7 +16195,7 @@ class Nw {
|
|
|
16195
16195
|
function Wx(e, t, n, r) {
|
|
16196
16196
|
let i = t, s = e.ZERO, o = e.ZERO;
|
|
16197
16197
|
for (; n > Cs || r > Cs; )
|
|
16198
|
-
n &
|
|
16198
|
+
n & Ci && (s = s.add(i)), r & Ci && (o = o.add(i)), i = i.double(), n >>= Ci, r >>= Ci;
|
|
16199
16199
|
return { p1: s, p2: o };
|
|
16200
16200
|
}
|
|
16201
16201
|
function kw(e, t, n, r) {
|
|
@@ -16206,7 +16206,7 @@ function kw(e, t, n, r) {
|
|
|
16206
16206
|
const o = e.ZERO, c = qo(BigInt(i));
|
|
16207
16207
|
let a = 1;
|
|
16208
16208
|
c > 12 ? a = c - 3 : c > 4 ? a = c - 2 : c > 0 && (a = 2);
|
|
16209
|
-
const u =
|
|
16209
|
+
const u = Qi(a), f = new Array(Number(u) + 1).fill(o), l = Math.floor((t.BITS - 1) / a) * a;
|
|
16210
16210
|
let d = o;
|
|
16211
16211
|
for (let y = l; y >= 0; y -= a) {
|
|
16212
16212
|
f.fill(o);
|
|
@@ -16229,7 +16229,7 @@ function h0(e, t, n) {
|
|
|
16229
16229
|
throw new Error("Field.ORDER must match order: Fp == p, Fn == n");
|
|
16230
16230
|
return Aw(t), t;
|
|
16231
16231
|
} else
|
|
16232
|
-
return
|
|
16232
|
+
return di(e, { isLE: n });
|
|
16233
16233
|
}
|
|
16234
16234
|
function Pw(e, t, n = {}, r) {
|
|
16235
16235
|
if (r === void 0 && (r = e === "edwards"), !t || typeof t != "object")
|
|
@@ -16246,7 +16246,7 @@ function Pw(e, t, n = {}, r) {
|
|
|
16246
16246
|
return t = Object.freeze(Object.assign({}, t)), { CURVE: t, Fp: i, Fn: s };
|
|
16247
16247
|
}
|
|
16248
16248
|
const Xx = rr;
|
|
16249
|
-
function
|
|
16249
|
+
function ni(e, t) {
|
|
16250
16250
|
if (Lo(e), Lo(t), e < 0 || e >= 1 << 8 * t)
|
|
16251
16251
|
throw new Error("invalid I2OSP input: " + e);
|
|
16252
16252
|
const n = Array.from({ length: t }).fill(0);
|
|
@@ -16274,10 +16274,10 @@ function Yx(e, t, n, r) {
|
|
|
16274
16274
|
const { outputLen: i, blockLen: s } = r, o = Math.ceil(n / i);
|
|
16275
16275
|
if (n > 65535 || o > 255)
|
|
16276
16276
|
throw new Error("expand_message_xmd: invalid lenInBytes");
|
|
16277
|
-
const c = $e(t,
|
|
16278
|
-
f[0] = r($e(l,
|
|
16277
|
+
const c = $e(t, ni(t.length, 1)), a = ni(0, s), u = ni(n, 2), f = new Array(o), l = r($e(a, e, u, ni(0, 1), c));
|
|
16278
|
+
f[0] = r($e(l, ni(1, 1), c));
|
|
16279
16279
|
for (let y = 1; y <= o; y++) {
|
|
16280
|
-
const g = [zx(l, f[y - 1]),
|
|
16280
|
+
const g = [zx(l, f[y - 1]), ni(y + 1, 1), c];
|
|
16281
16281
|
f[y] = r($e(...g));
|
|
16282
16282
|
}
|
|
16283
16283
|
return $e(...f).slice(0, n);
|
|
@@ -16289,7 +16289,7 @@ function Zx(e, t, n, r, i) {
|
|
|
16289
16289
|
}
|
|
16290
16290
|
if (n > 65535 || t.length > 255)
|
|
16291
16291
|
throw new Error("expand_message_xof: invalid lenInBytes");
|
|
16292
|
-
return i.create({ dkLen: n }).update(e).update(
|
|
16292
|
+
return i.create({ dkLen: n }).update(e).update(ni(n, 2)).update(t).update(ni(t.length, 1)).digest();
|
|
16293
16293
|
}
|
|
16294
16294
|
function sf(e, t, n) {
|
|
16295
16295
|
gc(n, {
|
|
@@ -16326,7 +16326,7 @@ function sf(e, t, n) {
|
|
|
16326
16326
|
function Uw(e, t) {
|
|
16327
16327
|
const n = t.map((r) => Array.from(r).reverse());
|
|
16328
16328
|
return (r, i) => {
|
|
16329
|
-
const [s, o, c, a] = n.map((l) => l.reduce((d, y) => e.add(e.mul(d, r), y))), [u, f] =
|
|
16329
|
+
const [s, o, c, a] = n.map((l) => l.reduce((d, y) => e.add(e.mul(d, r), y))), [u, f] = es(e, [o, a], !0);
|
|
16330
16330
|
return r = e.mul(s, u), i = e.mul(i, e.mul(c, f)), { x: r, y: i };
|
|
16331
16331
|
};
|
|
16332
16332
|
}
|
|
@@ -16373,14 +16373,14 @@ const p0 = (e, t) => (e + (e >= 0 ? t : -t) / pr) / t;
|
|
|
16373
16373
|
function Qx(e, t, n) {
|
|
16374
16374
|
const [[r, i], [s, o]] = t, c = p0(o * e, n), a = p0(-i * e, n);
|
|
16375
16375
|
let u = e - c * r - a * s, f = -c * i - a * o;
|
|
16376
|
-
const l = u <
|
|
16376
|
+
const l = u < Hi, d = f < Hi;
|
|
16377
16377
|
l && (u = -u), d && (f = -f);
|
|
16378
|
-
const y =
|
|
16379
|
-
if (u <
|
|
16378
|
+
const y = Qi(Math.ceil(qo(n) / 2)) + Jt;
|
|
16379
|
+
if (u < Hi || u >= y || f < Hi || f >= y)
|
|
16380
16380
|
throw new Error("splitScalar (endomorphism): failed, k=" + e);
|
|
16381
16381
|
return { k1neg: l, k1: u, k2neg: d, k2: f };
|
|
16382
16382
|
}
|
|
16383
|
-
const
|
|
16383
|
+
const Hi = BigInt(0), Jt = BigInt(1), pr = BigInt(2), ys = BigInt(3), sl = BigInt(4);
|
|
16384
16384
|
function Ra(e, t) {
|
|
16385
16385
|
const { BYTES: n } = e;
|
|
16386
16386
|
let r;
|
|
@@ -16634,7 +16634,7 @@ function e3(e, t = {}) {
|
|
|
16634
16634
|
const { endo: $ } = t, P = this;
|
|
16635
16635
|
if (!i.isValid(H))
|
|
16636
16636
|
throw new Error("invalid scalar: out of range");
|
|
16637
|
-
if (H ===
|
|
16637
|
+
if (H === Hi || P.is0())
|
|
16638
16638
|
return v.ZERO;
|
|
16639
16639
|
if (H === Jt)
|
|
16640
16640
|
return P;
|
|
@@ -16716,8 +16716,8 @@ function t3(e) {
|
|
|
16716
16716
|
}
|
|
16717
16717
|
function n3(e, t) {
|
|
16718
16718
|
const n = e.ORDER;
|
|
16719
|
-
let r =
|
|
16720
|
-
for (let g = n - Jt; g % pr ===
|
|
16719
|
+
let r = Hi;
|
|
16720
|
+
for (let g = n - Jt; g % pr === Hi; g /= pr)
|
|
16721
16721
|
r += Jt;
|
|
16722
16722
|
const i = r, s = pr << i - Jt - Jt, o = s * pr, c = (n - Jt) / o, a = (c - Jt) / pr, u = o - Jt, f = s, l = e.pow(t, c), d = e.pow(t, (c + Jt) / pr);
|
|
16723
16723
|
let y = (g, m) => {
|
|
@@ -16768,7 +16768,7 @@ function Cw(e, t) {
|
|
|
16768
16768
|
g = e.mul(c, o), g = e.mul(g, E), y = e.cmov(y, u, m), g = e.cmov(g, E, m);
|
|
16769
16769
|
const _ = e.isOdd(o) === e.isOdd(g);
|
|
16770
16770
|
g = e.cmov(e.neg(g), g, _);
|
|
16771
|
-
const S =
|
|
16771
|
+
const S = es(e, [f], !0)[0];
|
|
16772
16772
|
return y = e.mul(y, S), { x: y, y: g };
|
|
16773
16773
|
};
|
|
16774
16774
|
}
|
|
@@ -16796,7 +16796,7 @@ function i3(e) {
|
|
|
16796
16796
|
Gy: e.Gy
|
|
16797
16797
|
}, n = e.Fp;
|
|
16798
16798
|
let r = e.allowedPrivateKeyLengths ? Array.from(new Set(e.allowedPrivateKeyLengths.map((o) => Math.ceil(o / 2)))) : void 0;
|
|
16799
|
-
const i =
|
|
16799
|
+
const i = di(t.n, {
|
|
16800
16800
|
BITS: e.nBitLength,
|
|
16801
16801
|
allowedLengths: r,
|
|
16802
16802
|
modFromBytes: e.wrapPrivateKey
|
|
@@ -17172,7 +17172,7 @@ class h3 {
|
|
|
17172
17172
|
return pu(this, t, n);
|
|
17173
17173
|
}
|
|
17174
17174
|
invertBatch(t) {
|
|
17175
|
-
return
|
|
17175
|
+
return es(this, t);
|
|
17176
17176
|
}
|
|
17177
17177
|
// Normalized
|
|
17178
17178
|
add(t, n) {
|
|
@@ -17378,7 +17378,7 @@ class d3 {
|
|
|
17378
17378
|
return pu(this, t, n);
|
|
17379
17379
|
}
|
|
17380
17380
|
invertBatch(t) {
|
|
17381
|
-
return
|
|
17381
|
+
return es(this, t);
|
|
17382
17382
|
}
|
|
17383
17383
|
inv({ c0: t, c1: n, c2: r }) {
|
|
17384
17384
|
const { Fp2: i } = this;
|
|
@@ -17506,7 +17506,7 @@ class p3 {
|
|
|
17506
17506
|
return pu(this, t, n);
|
|
17507
17507
|
}
|
|
17508
17508
|
invertBatch(t) {
|
|
17509
|
-
return
|
|
17509
|
+
return es(this, t);
|
|
17510
17510
|
}
|
|
17511
17511
|
// Normalized
|
|
17512
17512
|
add({ c0: t, c1: n }, { c0: r, c1: i }) {
|
|
@@ -17670,11 +17670,11 @@ class p3 {
|
|
|
17670
17670
|
}
|
|
17671
17671
|
}
|
|
17672
17672
|
function y3(e) {
|
|
17673
|
-
const t =
|
|
17673
|
+
const t = di(e.ORDER), n = new h3(t, e), r = new d3(n), i = new p3(r, e);
|
|
17674
17674
|
return { Fp: t, Fp2: n, Fp6: r, Fp12: i };
|
|
17675
17675
|
}
|
|
17676
17676
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
17677
|
-
const jt = BigInt(0), Ua = BigInt(1), kn = BigInt(2), yu = BigInt(3), $o = BigInt(4),
|
|
17677
|
+
const jt = BigInt(0), Ua = BigInt(1), kn = BigInt(2), yu = BigInt(3), $o = BigInt(4), ri = BigInt("0xd201000000010000"), g3 = qo(ri), Wi = {
|
|
17678
17678
|
p: BigInt("0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab"),
|
|
17679
17679
|
n: BigInt("0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001"),
|
|
17680
17680
|
h: BigInt("0x396c8c005555e1568c00aaab0000aaab"),
|
|
@@ -17682,11 +17682,11 @@ const jt = BigInt(0), Ua = BigInt(1), kn = BigInt(2), yu = BigInt(3), $o = BigIn
|
|
|
17682
17682
|
b: $o,
|
|
17683
17683
|
Gx: BigInt("0x17f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb"),
|
|
17684
17684
|
Gy: BigInt("0x08b3f481e3aaa0f1a09e30ed741d8ae4fcf5e095d5d00af600db18cb2c04b3edd03cc744a2888ae40caa232946c5e7e1")
|
|
17685
|
-
}, m3 =
|
|
17685
|
+
}, m3 = di(Wi.n, {
|
|
17686
17686
|
modFromBytes: !0,
|
|
17687
17687
|
isLE: !0
|
|
17688
17688
|
}), { Fp: Ee, Fp2: Re, Fp6: w3, Fp12: Me } = y3({
|
|
17689
|
-
ORDER:
|
|
17689
|
+
ORDER: Wi.p,
|
|
17690
17690
|
X_LEN: g3,
|
|
17691
17691
|
// Finite extension field over irreducible polynominal.
|
|
17692
17692
|
// Fp(u) / (u² - β) where β = -1
|
|
@@ -17696,7 +17696,7 @@ const jt = BigInt(0), Ua = BigInt(1), kn = BigInt(2), yu = BigInt(3), $o = BigIn
|
|
|
17696
17696
|
return { c0: Ee.sub(n, r), c1: Ee.add(n, r) };
|
|
17697
17697
|
},
|
|
17698
17698
|
Fp12finalExponentiate: (e) => {
|
|
17699
|
-
const t =
|
|
17699
|
+
const t = ri, n = Me.div(Me.frobeniusMap(e, 6), e), r = Me.mul(Me.frobeniusMap(n, 2), n), i = Me.conjugate(Me._cyclotomicExp(r, t)), s = Me.mul(Me.conjugate(Me._cyclotomicSquare(r)), i), o = Me.conjugate(Me._cyclotomicExp(s, t)), c = Me.conjugate(Me._cyclotomicExp(o, t)), a = Me.mul(Me.conjugate(Me._cyclotomicExp(c, t)), Me._cyclotomicSquare(i)), u = Me.conjugate(Me._cyclotomicExp(a, t)), f = Me.frobeniusMap(Me.mul(i, c), 2), l = Me.frobeniusMap(Me.mul(o, r), 3), d = Me.frobeniusMap(Me.mul(a, Me.conjugate(r)), 1), y = Me.mul(Me.mul(u, Me.conjugate(s)), r);
|
|
17700
17700
|
return Me.mul(Me.mul(Me.mul(f, l), d), y);
|
|
17701
17701
|
}
|
|
17702
17702
|
}), { G2psi: _0, G2psi2: b3 } = l3(Ee, Re, Re.div(Re.ONE, Re.NONRESIDUE)), cf = Object.freeze({
|
|
@@ -17709,7 +17709,7 @@ const jt = BigInt(0), Ua = BigInt(1), kn = BigInt(2), yu = BigInt(3), $o = BigIn
|
|
|
17709
17709
|
hash: En
|
|
17710
17710
|
}), ph = {
|
|
17711
17711
|
p: Re.ORDER,
|
|
17712
|
-
n:
|
|
17712
|
+
n: Wi.n,
|
|
17713
17713
|
h: BigInt("0x5d543a95414e7f1091d50792876a202cd91de4547085abaa68a205b2e5a7ddfa628f1cb4d9e82ef21537e293a6691ae1616ec6e786f0c70cf1c38e31c7238e5"),
|
|
17714
17714
|
a: Re.ZERO,
|
|
17715
17715
|
b: Re.fromBigTuple([$o, $o]),
|
|
@@ -17753,13 +17753,13 @@ function af(e) {
|
|
|
17753
17753
|
function _3(e) {
|
|
17754
17754
|
const { compressed: t, infinity: n, sort: r, value: i } = mu(e), { BYTES: s, ORDER: o } = Ee;
|
|
17755
17755
|
if (i.length === 48 && t) {
|
|
17756
|
-
const c = rr(i), a = Ee.create(c &
|
|
17756
|
+
const c = rr(i), a = Ee.create(c & Qi(Ee.BITS));
|
|
17757
17757
|
if (n) {
|
|
17758
17758
|
if (a !== jt)
|
|
17759
17759
|
throw new Error("invalid G1 point: non-empty, at infinity, with compression");
|
|
17760
17760
|
return { x: jt, y: jt };
|
|
17761
17761
|
}
|
|
17762
|
-
const u = Ee.add(Ee.pow(a, yu), Ee.create(
|
|
17762
|
+
const u = Ee.add(Ee.pow(a, yu), Ee.create(Wi.b));
|
|
17763
17763
|
let f = Ee.sqrt(u);
|
|
17764
17764
|
if (!f)
|
|
17765
17765
|
throw new Error("invalid G1 point: compressed point");
|
|
@@ -17779,7 +17779,7 @@ function S0(e) {
|
|
|
17779
17779
|
const { infinity: t, sort: n, value: r } = mu(on("signatureHex", e, 48)), i = Ee.ORDER, s = wu.G1.Point, o = rr(r);
|
|
17780
17780
|
if (t)
|
|
17781
17781
|
return s.ZERO;
|
|
17782
|
-
const c = Ee.create(o &
|
|
17782
|
+
const c = Ee.create(o & Qi(Ee.BITS)), a = Ee.add(Ee.pow(c, yu), Ee.create(Wi.b));
|
|
17783
17783
|
let u = Ee.sqrt(a);
|
|
17784
17784
|
if (!u)
|
|
17785
17785
|
throw new Error("invalid G1 point: compressed");
|
|
@@ -17845,7 +17845,7 @@ function T0(e) {
|
|
|
17845
17845
|
const c = rr(i.slice(0, o)), a = rr(i.slice(o));
|
|
17846
17846
|
if (n)
|
|
17847
17847
|
return s.ZERO;
|
|
17848
|
-
const u = Ee.create(c &
|
|
17848
|
+
const u = Ee.create(c & Qi(Ee.BITS)), f = Ee.create(a), l = Re.create({ c0: f, c1: u }), d = Re.add(Re.pow(l, yu), ph.b);
|
|
17849
17849
|
let y = Re.sqrt(d);
|
|
17850
17850
|
if (!y)
|
|
17851
17851
|
throw new Error("Failed to find a square root");
|
|
@@ -17865,7 +17865,7 @@ const wu = f3({
|
|
|
17865
17865
|
},
|
|
17866
17866
|
// G1: y² = x³ + 4
|
|
17867
17867
|
G1: {
|
|
17868
|
-
...
|
|
17868
|
+
...Wi,
|
|
17869
17869
|
Fp: Ee,
|
|
17870
17870
|
htfDefaults: { ...cf, m: 1, DST: "BLS_SIG_BLS12381G1_XMD:SHA-256_SSWU_RO_NUL_" },
|
|
17871
17871
|
wrapPrivateKey: !0,
|
|
@@ -17876,11 +17876,11 @@ const wu = f3({
|
|
|
17876
17876
|
// https://eprint.iacr.org/2021/1130.pdf
|
|
17877
17877
|
isTorsionFree: (e, t) => {
|
|
17878
17878
|
const n = BigInt("0x5f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe"), r = new e(Ee.mul(t.X, n), t.Y, t.Z);
|
|
17879
|
-
return t.multiplyUnsafe(
|
|
17879
|
+
return t.multiplyUnsafe(ri).negate().multiplyUnsafe(ri).equals(r);
|
|
17880
17880
|
},
|
|
17881
17881
|
// Clear cofactor of G1
|
|
17882
17882
|
// https://eprint.iacr.org/2019/403
|
|
17883
|
-
clearCofactor: (e, t) => t.multiplyUnsafe(
|
|
17883
|
+
clearCofactor: (e, t) => t.multiplyUnsafe(ri).add(t),
|
|
17884
17884
|
mapToCurve: O3,
|
|
17885
17885
|
fromBytes: _3,
|
|
17886
17886
|
toBytes: E3,
|
|
@@ -17917,13 +17917,13 @@ const wu = f3({
|
|
|
17917
17917
|
// It returns false for shitty points.
|
|
17918
17918
|
// https://eprint.iacr.org/2021/1130.pdf
|
|
17919
17919
|
// Older version: https://eprint.iacr.org/2019/814.pdf
|
|
17920
|
-
isTorsionFree: (e, t) => t.multiplyUnsafe(
|
|
17920
|
+
isTorsionFree: (e, t) => t.multiplyUnsafe(ri).negate().equals(_0(e, t)),
|
|
17921
17921
|
// Maps the point into the prime-order subgroup G2.
|
|
17922
17922
|
// clear_cofactor_bls12381_g2 from RFC 9380.
|
|
17923
17923
|
// https://eprint.iacr.org/2017/419.pdf
|
|
17924
17924
|
// prettier-ignore
|
|
17925
17925
|
clearCofactor: (e, t) => {
|
|
17926
|
-
const n =
|
|
17926
|
+
const n = ri;
|
|
17927
17927
|
let r = t.multiplyUnsafe(n).negate(), i = _0(e, t), s = t.double();
|
|
17928
17928
|
return s = b3(e, s), s = s.subtract(i), i = r.add(i), i = i.multiplyUnsafe(n).negate(), s = s.add(i), s = s.subtract(r), s.subtract(t);
|
|
17929
17929
|
},
|
|
@@ -17948,9 +17948,9 @@ const wu = f3({
|
|
|
17948
17948
|
}
|
|
17949
17949
|
},
|
|
17950
17950
|
params: {
|
|
17951
|
-
ateLoopSize:
|
|
17951
|
+
ateLoopSize: ri,
|
|
17952
17952
|
// The BLS parameter x for BLS12-381
|
|
17953
|
-
r:
|
|
17953
|
+
r: Wi.n,
|
|
17954
17954
|
// order; z⁴ − z² + 1; CURVE.n from other curves
|
|
17955
17955
|
xNegative: !0,
|
|
17956
17956
|
twistType: "multiplicative"
|
|
@@ -18133,7 +18133,7 @@ function M3(e, t) {
|
|
|
18133
18133
|
return !0;
|
|
18134
18134
|
return !1;
|
|
18135
18135
|
}
|
|
18136
|
-
class
|
|
18136
|
+
class Vi {
|
|
18137
18137
|
#t = !1;
|
|
18138
18138
|
#e = void 0;
|
|
18139
18139
|
/**
|
|
@@ -18142,11 +18142,11 @@ class qi {
|
|
|
18142
18142
|
* @throws if the verification of the certificate fails
|
|
18143
18143
|
*/
|
|
18144
18144
|
static async create(t) {
|
|
18145
|
-
const n =
|
|
18145
|
+
const n = Vi.createUnverified(t);
|
|
18146
18146
|
return await n.verify(), n;
|
|
18147
18147
|
}
|
|
18148
18148
|
static createUnverified(t) {
|
|
18149
|
-
return new
|
|
18149
|
+
return new Vi(t.certificate, t.rootKey, t.canisterId, t.blsVerify ?? N3, t.maxAgeInMinutes, t.disableTimeVerification, t.agent);
|
|
18150
18150
|
}
|
|
18151
18151
|
constructor(t, n, r, i, s = C3, o = !1, c) {
|
|
18152
18152
|
this._rootKey = n, this._canisterId = r, this._blsVerify = i, this._maxAgeInMinutes = s, this.#t = o, this.cert = er(t), c && "getTimeDiffMsecs" in c && "hasSyncedTime" in c && "syncTime" in c && (this.#e = c);
|
|
@@ -18190,7 +18190,7 @@ class qi {
|
|
|
18190
18190
|
async _checkDelegationAndGetKey(t) {
|
|
18191
18191
|
if (!t)
|
|
18192
18192
|
return this._rootKey;
|
|
18193
|
-
const n =
|
|
18193
|
+
const n = Vi.createUnverified({
|
|
18194
18194
|
certificate: t.certificate,
|
|
18195
18195
|
rootKey: this._rootKey,
|
|
18196
18196
|
canisterId: this._canisterId,
|
|
@@ -18420,7 +18420,7 @@ const A0 = async (e) => {
|
|
|
18420
18420
|
throw an.fromCode(new js());
|
|
18421
18421
|
const l = t.rootKey, d = await t.readState(i, {
|
|
18422
18422
|
paths: [f]
|
|
18423
|
-
}), y = await
|
|
18423
|
+
}), y = await Vi.create({
|
|
18424
18424
|
certificate: d.certificate,
|
|
18425
18425
|
rootKey: l,
|
|
18426
18426
|
canisterId: i,
|
|
@@ -18889,7 +18889,7 @@ function X3(e) {
|
|
|
18889
18889
|
h: e.h,
|
|
18890
18890
|
Gx: e.Gx,
|
|
18891
18891
|
Gy: e.Gy
|
|
18892
|
-
}, n = e.Fp, r =
|
|
18892
|
+
}, n = e.Fp, r = di(t.n, e.nBitLength, !0), i = { Fp: n, Fn: r, uvRatio: e.uvRatio }, s = {
|
|
18893
18893
|
randomBytes: e.randomBytes,
|
|
18894
18894
|
adjustScalarBytes: e.adjustScalarBytes,
|
|
18895
18895
|
domain: e.domain,
|
|
@@ -18937,7 +18937,7 @@ function n8(e, t) {
|
|
|
18937
18937
|
const c = mt(t * o * o, n), a = o, u = mt(o * I0, n), f = c === e, l = c === mt(-e, n), d = c === mt(-e * I0, n);
|
|
18938
18938
|
return f && (o = a), (l || d) && (o = u), Lx(o, n) && (o = mt(-o, n)), { isValid: f || l, value: o };
|
|
18939
18939
|
}
|
|
18940
|
-
const r8 =
|
|
18940
|
+
const r8 = di(qw.p, { isLE: !0 }), i8 = {
|
|
18941
18941
|
...qw,
|
|
18942
18942
|
Fp: r8,
|
|
18943
18943
|
hash: n2,
|
|
@@ -19219,23 +19219,23 @@ const u8 = (e, t) => {
|
|
|
19219
19219
|
return o;
|
|
19220
19220
|
};
|
|
19221
19221
|
var Ko, Go;
|
|
19222
|
-
const
|
|
19222
|
+
const ki = class ki {
|
|
19223
19223
|
// `fromRaw` and `fromDer` should be used for instantiation, not this constructor.
|
|
19224
19224
|
constructor(t) {
|
|
19225
19225
|
rn(this, Ko);
|
|
19226
19226
|
rn(this, Go);
|
|
19227
|
-
if (t.byteLength !==
|
|
19227
|
+
if (t.byteLength !== ki.RAW_KEY_LENGTH)
|
|
19228
19228
|
throw et.fromCode(new Nr("An Ed25519 public key must be exactly 32 bytes long"));
|
|
19229
|
-
zt(this, Ko, t), zt(this, Go,
|
|
19229
|
+
zt(this, Ko, t), zt(this, Go, ki.derEncode(t));
|
|
19230
19230
|
}
|
|
19231
19231
|
static from(t) {
|
|
19232
19232
|
return this.fromDer(t.toDer());
|
|
19233
19233
|
}
|
|
19234
19234
|
static fromRaw(t) {
|
|
19235
|
-
return new
|
|
19235
|
+
return new ki(t);
|
|
19236
19236
|
}
|
|
19237
19237
|
static fromDer(t) {
|
|
19238
|
-
return new
|
|
19238
|
+
return new ki(this.derDecode(t));
|
|
19239
19239
|
}
|
|
19240
19240
|
static derEncode(t) {
|
|
19241
19241
|
return a8(t, P0);
|
|
@@ -19259,8 +19259,8 @@ const Ni = class Ni {
|
|
|
19259
19259
|
return this.rawKey;
|
|
19260
19260
|
}
|
|
19261
19261
|
};
|
|
19262
|
-
Ko = new WeakMap(), Go = new WeakMap(),
|
|
19263
|
-
let al =
|
|
19262
|
+
Ko = new WeakMap(), Go = new WeakMap(), ki.RAW_KEY_LENGTH = 32;
|
|
19263
|
+
let al = ki;
|
|
19264
19264
|
class f8 {
|
|
19265
19265
|
constructor() {
|
|
19266
19266
|
this.observers = [];
|
|
@@ -19488,7 +19488,7 @@ class Tr {
|
|
|
19488
19488
|
}
|
|
19489
19489
|
async getPrincipal() {
|
|
19490
19490
|
if (!this.#n)
|
|
19491
|
-
throw an.fromCode(new
|
|
19491
|
+
throw an.fromCode(new Bi());
|
|
19492
19492
|
return (await this.#n).getPrincipal();
|
|
19493
19493
|
}
|
|
19494
19494
|
/**
|
|
@@ -19506,7 +19506,7 @@ class Tr {
|
|
|
19506
19506
|
async call(t, n, r) {
|
|
19507
19507
|
const i = n.callSync ?? !0, s = await (r ?? this.#n);
|
|
19508
19508
|
if (!s)
|
|
19509
|
-
throw an.fromCode(new
|
|
19509
|
+
throw an.fromCode(new Bi());
|
|
19510
19510
|
const o = Ke.from(t), c = n.effectiveCanisterId ? Ke.from(n.effectiveCanisterId) : o;
|
|
19511
19511
|
await this.#y(c);
|
|
19512
19512
|
const a = s.getPrincipal(), u = hf(this.#o, this.#i), f = {
|
|
@@ -19526,7 +19526,7 @@ class Tr {
|
|
|
19526
19526
|
...this.#r ? { Authorization: "Basic " + btoa(this.#r) } : {}
|
|
19527
19527
|
}
|
|
19528
19528
|
},
|
|
19529
|
-
endpoint:
|
|
19529
|
+
endpoint: Ri.Call,
|
|
19530
19530
|
body: f
|
|
19531
19531
|
}), d;
|
|
19532
19532
|
n?.nonce ? d = y(n.nonce) : l.body.nonce ? d = y(l.body.nonce) : d = void 0, f.nonce = d;
|
|
@@ -19683,7 +19683,7 @@ class Tr {
|
|
|
19683
19683
|
let o;
|
|
19684
19684
|
const c = await (r ?? this.#n);
|
|
19685
19685
|
if (!c)
|
|
19686
|
-
throw an.fromCode(new
|
|
19686
|
+
throw an.fromCode(new Bi());
|
|
19687
19687
|
const a = Ke.from(t), u = c.getPrincipal(), f = hf(this.#o, this.#i), l = {
|
|
19688
19688
|
request_type: Ho.Query,
|
|
19689
19689
|
canister_id: a,
|
|
@@ -19700,7 +19700,7 @@ class Tr {
|
|
|
19700
19700
|
...this.#r ? { Authorization: "Basic " + btoa(this.#r) } : {}
|
|
19701
19701
|
}
|
|
19702
19702
|
},
|
|
19703
|
-
endpoint:
|
|
19703
|
+
endpoint: Ri.Query,
|
|
19704
19704
|
body: l
|
|
19705
19705
|
}), o = await c.transformRequest(o);
|
|
19706
19706
|
const y = Ju(o.body), g = {
|
|
@@ -19759,7 +19759,7 @@ class Tr {
|
|
|
19759
19759
|
await this.#y();
|
|
19760
19760
|
const r = await (n ?? this.#n);
|
|
19761
19761
|
if (!r)
|
|
19762
|
-
throw an.fromCode(new
|
|
19762
|
+
throw an.fromCode(new Bi());
|
|
19763
19763
|
const i = r.getPrincipal(), s = await this._transform({
|
|
19764
19764
|
request: {
|
|
19765
19765
|
method: "POST",
|
|
@@ -19768,7 +19768,7 @@ class Tr {
|
|
|
19768
19768
|
...this.#r ? { Authorization: "Basic " + btoa(this.#r) } : {}
|
|
19769
19769
|
}
|
|
19770
19770
|
},
|
|
19771
|
-
endpoint:
|
|
19771
|
+
endpoint: Ri.ReadState,
|
|
19772
19772
|
body: {
|
|
19773
19773
|
request_type: Ho.ReadState,
|
|
19774
19774
|
paths: t.paths,
|
|
@@ -19795,7 +19795,7 @@ class Tr {
|
|
|
19795
19795
|
a = o(n);
|
|
19796
19796
|
const f = await this.#n;
|
|
19797
19797
|
if (!f)
|
|
19798
|
-
throw an.fromCode(new
|
|
19798
|
+
throw an.fromCode(new Bi());
|
|
19799
19799
|
c = await this.createReadStateRequest(n, f);
|
|
19800
19800
|
}
|
|
19801
19801
|
this.log.print(`fetching "/api/v2/canister/${s}/read_state" with request:`, c);
|
|
@@ -19932,7 +19932,7 @@ class Tr {
|
|
|
19932
19932
|
}
|
|
19933
19933
|
_transform(t) {
|
|
19934
19934
|
let n = Promise.resolve(t);
|
|
19935
|
-
if (t.endpoint ===
|
|
19935
|
+
if (t.endpoint === Ri.Call)
|
|
19936
19936
|
for (const r of this.#l)
|
|
19937
19937
|
n = n.then((i) => r(i).then((s) => s || i));
|
|
19938
19938
|
else
|
|
@@ -20017,7 +20017,7 @@ async function Lw(e, t, n, r = {}) {
|
|
|
20017
20017
|
pollingOptions: r
|
|
20018
20018
|
}), s = await e.readState(t, { paths: [i] }, void 0, o)) : s = await e.readState(t, { paths: [i] }), e.rootKey == null)
|
|
20019
20019
|
throw an.fromCode(new js());
|
|
20020
|
-
const a = await
|
|
20020
|
+
const a = await Vi.create({
|
|
20021
20021
|
certificate: s.certificate,
|
|
20022
20022
|
rootKey: e.rootKey,
|
|
20023
20023
|
canisterId: t,
|
|
@@ -20133,7 +20133,7 @@ class Ca {
|
|
|
20133
20133
|
this[xn] = Object.freeze(t);
|
|
20134
20134
|
}
|
|
20135
20135
|
}
|
|
20136
|
-
function
|
|
20136
|
+
function os(e, t) {
|
|
20137
20137
|
const n = om(e, t);
|
|
20138
20138
|
switch (n.length) {
|
|
20139
20139
|
case 0:
|
|
@@ -20177,8 +20177,8 @@ function C8(e, t, n, r) {
|
|
|
20177
20177
|
case Rs.Replied:
|
|
20178
20178
|
return n.annotations.includes(ll) ? {
|
|
20179
20179
|
httpDetails: d,
|
|
20180
|
-
result:
|
|
20181
|
-
} :
|
|
20180
|
+
result: os(n.retTypes, l.reply.arg)
|
|
20181
|
+
} : os(n.retTypes, l.reply.arg);
|
|
20182
20182
|
}
|
|
20183
20183
|
} : i = async (o, ...c) => {
|
|
20184
20184
|
o = {
|
|
@@ -20203,7 +20203,7 @@ function C8(e, t, n, r) {
|
|
|
20203
20203
|
if (a.rootKey == null)
|
|
20204
20204
|
throw an.fromCode(new js());
|
|
20205
20205
|
const R = E.body.certificate;
|
|
20206
|
-
w = await
|
|
20206
|
+
w = await Vi.create({
|
|
20207
20207
|
certificate: R,
|
|
20208
20208
|
rootKey: a.rootKey,
|
|
20209
20209
|
canisterId: y,
|
|
@@ -20244,14 +20244,14 @@ function C8(e, t, n, r) {
|
|
|
20244
20244
|
return T && O ? {
|
|
20245
20245
|
httpDetails: A,
|
|
20246
20246
|
certificate: w,
|
|
20247
|
-
result:
|
|
20247
|
+
result: os(n.retTypes, S)
|
|
20248
20248
|
} : O ? {
|
|
20249
20249
|
certificate: w,
|
|
20250
|
-
result:
|
|
20250
|
+
result: os(n.retTypes, S)
|
|
20251
20251
|
} : T ? {
|
|
20252
20252
|
httpDetails: A,
|
|
20253
|
-
result:
|
|
20254
|
-
} :
|
|
20253
|
+
result: os(n.retTypes, S)
|
|
20254
|
+
} : os(n.retTypes, S);
|
|
20255
20255
|
{
|
|
20256
20256
|
const R = new Vn(`Call was returned undefined. We cannot determine if the call was successful or not. Return types: [${n.retTypes.map((M) => M.display()).join(",")}].`);
|
|
20257
20257
|
throw R.callContext = {
|
|
@@ -20273,7 +20273,7 @@ const mn = {
|
|
|
20273
20273
|
P2TR: { P2TR: null },
|
|
20274
20274
|
UNKNOWN: { UNKNOWN: null }
|
|
20275
20275
|
};
|
|
20276
|
-
var
|
|
20276
|
+
var wi = {}, Xe = {}, pf = {}, Yt = {}, ar = {}, V0;
|
|
20277
20277
|
function Wn() {
|
|
20278
20278
|
return V0 || (V0 = 1, Object.defineProperty(ar, "__esModule", { value: !0 }), ar.testnet = ar.regtest = ar.bitcoin = void 0, ar.bitcoin = {
|
|
20279
20279
|
/**
|
|
@@ -20389,10 +20389,10 @@ function jw() {
|
|
|
20389
20389
|
}
|
|
20390
20390
|
return ur.encode = n, ur;
|
|
20391
20391
|
}
|
|
20392
|
-
var
|
|
20392
|
+
var bi = {}, $0;
|
|
20393
20393
|
function wh() {
|
|
20394
|
-
if ($0) return
|
|
20395
|
-
$0 = 1, Object.defineProperty(
|
|
20394
|
+
if ($0) return bi;
|
|
20395
|
+
$0 = 1, Object.defineProperty(bi, "__esModule", { value: !0 }), bi.REVERSE_OPS = bi.OPS = void 0;
|
|
20396
20396
|
const e = {
|
|
20397
20397
|
OP_FALSE: 0,
|
|
20398
20398
|
OP_0: 0,
|
|
@@ -20514,14 +20514,14 @@ function wh() {
|
|
|
20514
20514
|
OP_PUBKEY: 254,
|
|
20515
20515
|
OP_INVALIDOPCODE: 255
|
|
20516
20516
|
};
|
|
20517
|
-
|
|
20517
|
+
bi.OPS = e;
|
|
20518
20518
|
const t = {};
|
|
20519
|
-
|
|
20519
|
+
bi.REVERSE_OPS = t;
|
|
20520
20520
|
for (const n of Object.keys(e)) {
|
|
20521
20521
|
const r = e[n];
|
|
20522
20522
|
t[r] = n;
|
|
20523
20523
|
}
|
|
20524
|
-
return
|
|
20524
|
+
return bi;
|
|
20525
20525
|
}
|
|
20526
20526
|
var fr = {}, D0;
|
|
20527
20527
|
function H8() {
|
|
@@ -20561,10 +20561,10 @@ function H8() {
|
|
|
20561
20561
|
}
|
|
20562
20562
|
return fr.decode = r, fr;
|
|
20563
20563
|
}
|
|
20564
|
-
var
|
|
20564
|
+
var Ei = {}, j0;
|
|
20565
20565
|
function F8() {
|
|
20566
|
-
if (j0) return
|
|
20567
|
-
j0 = 1, Object.defineProperty(
|
|
20566
|
+
if (j0) return Ei;
|
|
20567
|
+
j0 = 1, Object.defineProperty(Ei, "__esModule", { value: !0 }), Ei.encode = Ei.decode = void 0;
|
|
20568
20568
|
function e(r, i, s) {
|
|
20569
20569
|
i = i || 4, s = s === void 0 ? !0 : s;
|
|
20570
20570
|
const o = r.length;
|
|
@@ -20581,7 +20581,7 @@ function F8() {
|
|
|
20581
20581
|
c |= r[a] << 8 * a;
|
|
20582
20582
|
return r[o - 1] & 128 ? -(c & ~(128 << 8 * (o - 1))) : c;
|
|
20583
20583
|
}
|
|
20584
|
-
|
|
20584
|
+
Ei.decode = e;
|
|
20585
20585
|
function t(r) {
|
|
20586
20586
|
return r > 2147483647 ? 5 : r > 8388607 ? 4 : r > 32767 ? 3 : r > 127 ? 2 : r > 0 ? 1 : 0;
|
|
20587
20587
|
}
|
|
@@ -20592,9 +20592,9 @@ function F8() {
|
|
|
20592
20592
|
o.writeUInt8(i & 255, a), i >>= 8;
|
|
20593
20593
|
return o[s - 1] & 128 ? o.writeUInt8(c ? 128 : 0, s - 1) : c && (o[s - 1] |= 128), o;
|
|
20594
20594
|
}
|
|
20595
|
-
return
|
|
20595
|
+
return Ei.encode = n, Ei;
|
|
20596
20596
|
}
|
|
20597
|
-
var
|
|
20597
|
+
var _i = {}, mf = {}, wf, K0;
|
|
20598
20598
|
function bh() {
|
|
20599
20599
|
if (K0) return wf;
|
|
20600
20600
|
K0 = 1;
|
|
@@ -20992,8 +20992,8 @@ function Xt() {
|
|
|
20992
20992
|
}
|
|
20993
20993
|
var Y0;
|
|
20994
20994
|
function V8() {
|
|
20995
|
-
if (Y0) return
|
|
20996
|
-
Y0 = 1, Object.defineProperty(
|
|
20995
|
+
if (Y0) return _i;
|
|
20996
|
+
Y0 = 1, Object.defineProperty(_i, "__esModule", { value: !0 }), _i.encode = _i.decode = void 0;
|
|
20997
20997
|
const e = jw(), t = nn(), n = Xt(), { typeforce: r } = n, i = Buffer.alloc(1, 0);
|
|
20998
20998
|
function s(u) {
|
|
20999
20999
|
let f = 0;
|
|
@@ -21012,7 +21012,7 @@ function V8() {
|
|
|
21012
21012
|
const l = e.decode(u.slice(0, -1)), d = o(l.r), y = o(l.s);
|
|
21013
21013
|
return { signature: Buffer.concat([d, y], 64), hashType: f };
|
|
21014
21014
|
}
|
|
21015
|
-
|
|
21015
|
+
_i.decode = c;
|
|
21016
21016
|
function a(u, f) {
|
|
21017
21017
|
if (r(
|
|
21018
21018
|
{
|
|
@@ -21027,7 +21027,7 @@ function V8() {
|
|
|
21027
21027
|
const d = s(u.slice(0, 32)), y = s(u.slice(32, 64));
|
|
21028
21028
|
return Buffer.concat([e.encode(d, y), l]);
|
|
21029
21029
|
}
|
|
21030
|
-
return
|
|
21030
|
+
return _i.encode = a, _i;
|
|
21031
21031
|
}
|
|
21032
21032
|
var Z0;
|
|
21033
21033
|
function nn() {
|
|
@@ -21148,10 +21148,10 @@ function nn() {
|
|
|
21148
21148
|
e.isCanonicalScriptSignature = M, e.number = i, e.signature = s;
|
|
21149
21149
|
})(gf)), gf;
|
|
21150
21150
|
}
|
|
21151
|
-
var
|
|
21152
|
-
function
|
|
21153
|
-
if (J0) return
|
|
21154
|
-
J0 = 1, Object.defineProperty(
|
|
21151
|
+
var Si = {}, J0;
|
|
21152
|
+
function pi() {
|
|
21153
|
+
if (J0) return Si;
|
|
21154
|
+
J0 = 1, Object.defineProperty(Si, "__esModule", { value: !0 }), Si.value = Si.prop = void 0;
|
|
21155
21155
|
function e(n, r, i) {
|
|
21156
21156
|
Object.defineProperty(n, r, {
|
|
21157
21157
|
configurable: !0,
|
|
@@ -21170,18 +21170,18 @@ function di() {
|
|
|
21170
21170
|
}
|
|
21171
21171
|
});
|
|
21172
21172
|
}
|
|
21173
|
-
|
|
21173
|
+
Si.prop = e;
|
|
21174
21174
|
function t(n) {
|
|
21175
21175
|
let r;
|
|
21176
21176
|
return () => (r !== void 0 || (r = n()), r);
|
|
21177
21177
|
}
|
|
21178
|
-
return
|
|
21178
|
+
return Si.value = t, Si;
|
|
21179
21179
|
}
|
|
21180
21180
|
var Q0;
|
|
21181
21181
|
function L8() {
|
|
21182
21182
|
if (Q0) return io;
|
|
21183
21183
|
Q0 = 1, Object.defineProperty(io, "__esModule", { value: !0 }), io.p2data = void 0;
|
|
21184
|
-
const e = Wn(), t = nn(), n = Xt(), r =
|
|
21184
|
+
const e = Wn(), t = nn(), n = Xt(), r = pi(), i = t.OPS;
|
|
21185
21185
|
function s(o, c) {
|
|
21186
21186
|
if (!o.data && !o.output) throw new TypeError("Not enough data");
|
|
21187
21187
|
c = Object.assign({ validate: !0 }, c || {}), (0, n.typeforce)(
|
|
@@ -21217,7 +21217,7 @@ var so = {}, ep;
|
|
|
21217
21217
|
function $8() {
|
|
21218
21218
|
if (ep) return so;
|
|
21219
21219
|
ep = 1, Object.defineProperty(so, "__esModule", { value: !0 }), so.p2ms = void 0;
|
|
21220
|
-
const e = Wn(), t = nn(), n = Xt(), r =
|
|
21220
|
+
const e = Wn(), t = nn(), n = Xt(), r = pi(), i = t.OPS, s = i.OP_RESERVED;
|
|
21221
21221
|
function o(c, a) {
|
|
21222
21222
|
if (!c.input && !c.output && !(c.pubkeys && c.m !== void 0) && !c.signatures)
|
|
21223
21223
|
throw new TypeError("Not enough data");
|
|
@@ -21323,7 +21323,7 @@ var oo = {}, tp;
|
|
|
21323
21323
|
function D8() {
|
|
21324
21324
|
if (tp) return oo;
|
|
21325
21325
|
tp = 1, Object.defineProperty(oo, "__esModule", { value: !0 }), oo.p2pk = void 0;
|
|
21326
|
-
const e = Wn(), t = nn(), n = Xt(), r =
|
|
21326
|
+
const e = Wn(), t = nn(), n = Xt(), r = pi(), i = t.OPS;
|
|
21327
21327
|
function s(o, c) {
|
|
21328
21328
|
if (!o.input && !o.output && !o.pubkey && !o.input && !o.signature)
|
|
21329
21329
|
throw new TypeError("Not enough data");
|
|
@@ -21374,11 +21374,11 @@ function D8() {
|
|
|
21374
21374
|
}
|
|
21375
21375
|
return oo.p2pk = s, oo;
|
|
21376
21376
|
}
|
|
21377
|
-
var co = {}, Sf = {},
|
|
21377
|
+
var co = {}, Sf = {}, Ti = {}, Zt = {}, np;
|
|
21378
21378
|
function Gw() {
|
|
21379
21379
|
if (np) return Zt;
|
|
21380
21380
|
np = 1, Object.defineProperty(Zt, "__esModule", { value: !0 }), Zt.ripemd160 = Zt.RIPEMD160 = Zt.md5 = Zt.MD5 = Zt.sha1 = Zt.SHA1 = void 0;
|
|
21381
|
-
const e = /* @__PURE__ */ Py(), t = /* @__PURE__ */
|
|
21381
|
+
const e = /* @__PURE__ */ Py(), t = /* @__PURE__ */ ci(), n = /* @__PURE__ */ Uint32Array.from([
|
|
21382
21382
|
1732584193,
|
|
21383
21383
|
4023233417,
|
|
21384
21384
|
2562383102,
|
|
@@ -21533,17 +21533,17 @@ function Gw() {
|
|
|
21533
21533
|
}
|
|
21534
21534
|
var rp;
|
|
21535
21535
|
function j8() {
|
|
21536
|
-
if (rp) return
|
|
21537
|
-
rp = 1, Object.defineProperty(
|
|
21536
|
+
if (rp) return Ti;
|
|
21537
|
+
rp = 1, Object.defineProperty(Ti, "__esModule", { value: !0 }), Ti.ripemd160 = Ti.RIPEMD160 = void 0;
|
|
21538
21538
|
const e = /* @__PURE__ */ Gw();
|
|
21539
|
-
return
|
|
21539
|
+
return Ti.RIPEMD160 = e.RIPEMD160, Ti.ripemd160 = e.ripemd160, Ti;
|
|
21540
21540
|
}
|
|
21541
|
-
var
|
|
21541
|
+
var xi = {}, ip;
|
|
21542
21542
|
function K8() {
|
|
21543
|
-
if (ip) return
|
|
21544
|
-
ip = 1, Object.defineProperty(
|
|
21543
|
+
if (ip) return xi;
|
|
21544
|
+
ip = 1, Object.defineProperty(xi, "__esModule", { value: !0 }), xi.sha1 = xi.SHA1 = void 0;
|
|
21545
21545
|
const e = /* @__PURE__ */ Gw();
|
|
21546
|
-
return
|
|
21546
|
+
return xi.SHA1 = e.SHA1, xi.sha1 = e.sha1, xi;
|
|
21547
21547
|
}
|
|
21548
21548
|
var Un = {}, sp;
|
|
21549
21549
|
function Ww() {
|
|
@@ -22318,7 +22318,7 @@ var lp;
|
|
|
22318
22318
|
function z8() {
|
|
22319
22319
|
if (lp) return co;
|
|
22320
22320
|
lp = 1, Object.defineProperty(co, "__esModule", { value: !0 }), co.p2pkh = void 0;
|
|
22321
|
-
const e = Pr(), t = Wn(), n = nn(), r = Xt(), i =
|
|
22321
|
+
const e = Pr(), t = Wn(), n = nn(), r = Xt(), i = pi(), s = Eh(), o = n.OPS;
|
|
22322
22322
|
function c(a, u) {
|
|
22323
22323
|
if (!a.address && !a.hash && !a.output && !a.pubkey && !a.input)
|
|
22324
22324
|
throw new TypeError("Not enough data");
|
|
@@ -22418,7 +22418,7 @@ var ao = {}, hp;
|
|
|
22418
22418
|
function Y8() {
|
|
22419
22419
|
if (hp) return ao;
|
|
22420
22420
|
hp = 1, Object.defineProperty(ao, "__esModule", { value: !0 }), ao.p2sh = void 0;
|
|
22421
|
-
const e = Pr(), t = Wn(), n = nn(), r = Xt(), i =
|
|
22421
|
+
const e = Pr(), t = Wn(), n = nn(), r = Xt(), i = pi(), s = Eh(), o = n.OPS;
|
|
22422
22422
|
function c(a, u) {
|
|
22423
22423
|
if (!a.address && !a.hash && !a.output && !a.redeem && !a.input)
|
|
22424
22424
|
throw new TypeError("Not enough data");
|
|
@@ -22563,7 +22563,7 @@ var uo = {}, dp;
|
|
|
22563
22563
|
function Z8() {
|
|
22564
22564
|
if (dp) return uo;
|
|
22565
22565
|
dp = 1, Object.defineProperty(uo, "__esModule", { value: !0 }), uo.p2wpkh = void 0;
|
|
22566
|
-
const e = Pr(), t = Wn(), n = nn(), r = Xt(), i =
|
|
22566
|
+
const e = Pr(), t = Wn(), n = nn(), r = Xt(), i = pi(), s = cc(), o = n.OPS, c = Buffer.alloc(0);
|
|
22567
22567
|
function a(u, f) {
|
|
22568
22568
|
if (!u.address && !u.hash && !u.output && !u.pubkey && !u.witness)
|
|
22569
22569
|
throw new TypeError("Not enough data");
|
|
@@ -22667,7 +22667,7 @@ var fo = {}, pp;
|
|
|
22667
22667
|
function J8() {
|
|
22668
22668
|
if (pp) return fo;
|
|
22669
22669
|
pp = 1, Object.defineProperty(fo, "__esModule", { value: !0 }), fo.p2wsh = void 0;
|
|
22670
|
-
const e = Pr(), t = Wn(), n = nn(), r = Xt(), i =
|
|
22670
|
+
const e = Pr(), t = Wn(), n = nn(), r = Xt(), i = pi(), s = cc(), o = n.OPS, c = Buffer.alloc(0);
|
|
22671
22671
|
function a(f) {
|
|
22672
22672
|
return !!(Buffer.isBuffer(f) && f.length === 65 && f[0] === 4 && (0, r.isPoint)(f));
|
|
22673
22673
|
}
|
|
@@ -22806,15 +22806,15 @@ function J8() {
|
|
|
22806
22806
|
}
|
|
22807
22807
|
return fo.p2wsh = u, fo;
|
|
22808
22808
|
}
|
|
22809
|
-
var lo = {},
|
|
22809
|
+
var lo = {}, Ai = {}, yp;
|
|
22810
22810
|
function _h() {
|
|
22811
|
-
if (yp) return
|
|
22812
|
-
yp = 1, Object.defineProperty(
|
|
22811
|
+
if (yp) return Ai;
|
|
22812
|
+
yp = 1, Object.defineProperty(Ai, "__esModule", { value: !0 }), Ai.getEccLib = Ai.initEccLib = void 0;
|
|
22813
22813
|
const e = {};
|
|
22814
22814
|
function t(c, a) {
|
|
22815
22815
|
c ? c !== e.eccLib && (a?.DANGER_DO_NOT_VERIFY_ECCLIB || i(c), e.eccLib = c) : e.eccLib = c;
|
|
22816
22816
|
}
|
|
22817
|
-
|
|
22817
|
+
Ai.initEccLib = t;
|
|
22818
22818
|
function n() {
|
|
22819
22819
|
if (!e.eccLib)
|
|
22820
22820
|
throw new Error(
|
|
@@ -22822,7 +22822,7 @@ function _h() {
|
|
|
22822
22822
|
);
|
|
22823
22823
|
return e.eccLib;
|
|
22824
22824
|
}
|
|
22825
|
-
|
|
22825
|
+
Ai.getEccLib = n;
|
|
22826
22826
|
const r = (c) => Buffer.from(c, "hex");
|
|
22827
22827
|
function i(c) {
|
|
22828
22828
|
s(typeof c.isXOnlyPoint == "function"), s(
|
|
@@ -22877,7 +22877,7 @@ function _h() {
|
|
|
22877
22877
|
result: "9534f8dc8c6deda2dc007655981c78b49c5d96c778fbf363462a11ec9dfd948c"
|
|
22878
22878
|
}
|
|
22879
22879
|
];
|
|
22880
|
-
return
|
|
22880
|
+
return Ai;
|
|
22881
22881
|
}
|
|
22882
22882
|
var If = {}, kt = {}, Hc = { exports: {} };
|
|
22883
22883
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
@@ -23147,7 +23147,7 @@ var Ep;
|
|
|
23147
23147
|
function tA() {
|
|
23148
23148
|
if (Ep) return lo;
|
|
23149
23149
|
Ep = 1, Object.defineProperty(lo, "__esModule", { value: !0 }), lo.p2tr = void 0;
|
|
23150
|
-
const e = ec(), t = Wn(), n = nn(), r = Xt(), i = _h(), s = Sh(), o =
|
|
23150
|
+
const e = ec(), t = Wn(), n = nn(), r = Xt(), i = _h(), s = Sh(), o = pi(), c = cc(), a = Th(), u = n.OPS, f = 1, l = 80;
|
|
23151
23151
|
function d(y, g) {
|
|
23152
23152
|
if (!y.address && !y.output && !y.pubkey && !y.internalPubkey && !(y.witness && y.witness.length > 1))
|
|
23153
23153
|
throw new TypeError("Not enough data");
|
|
@@ -23978,7 +23978,7 @@ function rA() {
|
|
|
23978
23978
|
}
|
|
23979
23979
|
return ho;
|
|
23980
23980
|
}
|
|
23981
|
-
var go = {}, Fc = {}, Mc = {}, Bf = {},
|
|
23981
|
+
var go = {}, Fc = {}, Mc = {}, Bf = {}, cs = {}, as = {}, Nf = {}, vp;
|
|
23982
23982
|
function Mt() {
|
|
23983
23983
|
return vp || (vp = 1, (function(e) {
|
|
23984
23984
|
Object.defineProperty(e, "__esModule", { value: !0 }), (function(t) {
|
|
@@ -24418,10 +24418,10 @@ function yA() {
|
|
|
24418
24418
|
}
|
|
24419
24419
|
return Yr.canAddToArray = i, Yr;
|
|
24420
24420
|
}
|
|
24421
|
-
var Zr = {}, lr = {},
|
|
24422
|
-
function
|
|
24423
|
-
if (qp) return
|
|
24424
|
-
qp = 1, Object.defineProperty(
|
|
24421
|
+
var Zr = {}, lr = {}, us = {}, qp;
|
|
24422
|
+
function ts() {
|
|
24423
|
+
if (qp) return us;
|
|
24424
|
+
qp = 1, Object.defineProperty(us, "__esModule", { value: !0 });
|
|
24425
24425
|
const e = 9007199254740991;
|
|
24426
24426
|
function t(s) {
|
|
24427
24427
|
if (s < 0 || s > e || s % 1 !== 0)
|
|
@@ -24432,7 +24432,7 @@ function es() {
|
|
|
24432
24432
|
throw new TypeError("buffer must be a Buffer instance");
|
|
24433
24433
|
return c || (c = 0), s < 253 ? (o.writeUInt8(s, c), Object.assign(n, { bytes: 1 })) : s <= 65535 ? (o.writeUInt8(253, c), o.writeUInt16LE(s, c + 1), Object.assign(n, { bytes: 3 })) : s <= 4294967295 ? (o.writeUInt8(254, c), o.writeUInt32LE(s, c + 1), Object.assign(n, { bytes: 5 })) : (o.writeUInt8(255, c), o.writeUInt32LE(s >>> 0, c + 1), o.writeUInt32LE(s / 4294967296 | 0, c + 5), Object.assign(n, { bytes: 9 })), o;
|
|
24434
24434
|
}
|
|
24435
|
-
|
|
24435
|
+
us.encode = n;
|
|
24436
24436
|
function r(s, o) {
|
|
24437
24437
|
if (!Buffer.isBuffer(s))
|
|
24438
24438
|
throw new TypeError("buffer must be a Buffer instance");
|
|
@@ -24450,17 +24450,17 @@ function es() {
|
|
|
24450
24450
|
return t(f), f;
|
|
24451
24451
|
}
|
|
24452
24452
|
}
|
|
24453
|
-
|
|
24453
|
+
us.decode = r;
|
|
24454
24454
|
function i(s) {
|
|
24455
24455
|
return t(s), s < 253 ? 1 : s <= 65535 ? 3 : s <= 4294967295 ? 5 : 9;
|
|
24456
24456
|
}
|
|
24457
|
-
return
|
|
24457
|
+
return us.encodingLength = i, us;
|
|
24458
24458
|
}
|
|
24459
24459
|
var Vp;
|
|
24460
24460
|
function xh() {
|
|
24461
24461
|
if (Vp) return lr;
|
|
24462
24462
|
Vp = 1, Object.defineProperty(lr, "__esModule", { value: !0 });
|
|
24463
|
-
const e =
|
|
24463
|
+
const e = ts();
|
|
24464
24464
|
lr.range = (c) => [...Array(c).keys()];
|
|
24465
24465
|
function t(c) {
|
|
24466
24466
|
if (c.length < 1) return c;
|
|
@@ -24506,7 +24506,7 @@ var Lp;
|
|
|
24506
24506
|
function gA() {
|
|
24507
24507
|
if (Lp) return Zr;
|
|
24508
24508
|
Lp = 1, Object.defineProperty(Zr, "__esModule", { value: !0 });
|
|
24509
|
-
const e = Mt(), t = xh(), n =
|
|
24509
|
+
const e = Mt(), t = xh(), n = ts();
|
|
24510
24510
|
function r(c) {
|
|
24511
24511
|
if (c.key[0] !== e.InputTypes.WITNESS_UTXO)
|
|
24512
24512
|
throw new Error(
|
|
@@ -24546,7 +24546,7 @@ var Jr = {}, $p;
|
|
|
24546
24546
|
function mA() {
|
|
24547
24547
|
if ($p) return Jr;
|
|
24548
24548
|
$p = 1, Object.defineProperty(Jr, "__esModule", { value: !0 });
|
|
24549
|
-
const e = Mt(), t =
|
|
24549
|
+
const e = Mt(), t = ts();
|
|
24550
24550
|
function n(o) {
|
|
24551
24551
|
if (o.key[0] !== e.OutputTypes.TAP_TREE || o.key.length !== 1)
|
|
24552
24552
|
throw new Error(
|
|
@@ -24708,7 +24708,7 @@ var Dc = {}, Gp;
|
|
|
24708
24708
|
function EA() {
|
|
24709
24709
|
if (Gp) return Dc;
|
|
24710
24710
|
Gp = 1, Object.defineProperty(Dc, "__esModule", { value: !0 });
|
|
24711
|
-
const e =
|
|
24711
|
+
const e = ts(), t = Xw(), n = (i) => i.length === 32;
|
|
24712
24712
|
function r(i) {
|
|
24713
24713
|
const s = t.makeConverter(i, n);
|
|
24714
24714
|
function o(f) {
|
|
@@ -24815,15 +24815,15 @@ function SA() {
|
|
|
24815
24815
|
}
|
|
24816
24816
|
var zp;
|
|
24817
24817
|
function Ah() {
|
|
24818
|
-
if (zp) return
|
|
24819
|
-
zp = 1, Object.defineProperty(
|
|
24818
|
+
if (zp) return as;
|
|
24819
|
+
zp = 1, Object.defineProperty(as, "__esModule", { value: !0 });
|
|
24820
24820
|
const e = Mt(), t = iA(), n = sA(), r = oA(), i = cA(), s = aA(), o = uA(), c = fA(), a = lA(), u = hA(), f = dA(), l = pA(), d = yA(), y = gA(), g = mA(), m = Xw(), E = wA(), _ = bA(), S = EA(), w = _A(), T = SA(), O = {
|
|
24821
24821
|
unsignedTx: n,
|
|
24822
24822
|
globalXpub: t,
|
|
24823
24823
|
// pass an Array of key bytes that require pubkey beside the key
|
|
24824
24824
|
checkPubkey: E.makeChecker([])
|
|
24825
24825
|
};
|
|
24826
|
-
|
|
24826
|
+
as.globals = O;
|
|
24827
24827
|
const A = {
|
|
24828
24828
|
nonWitnessUtxo: s,
|
|
24829
24829
|
partialSig: o,
|
|
@@ -24856,7 +24856,7 @@ function Ah() {
|
|
|
24856
24856
|
),
|
|
24857
24857
|
tapMerkleRoot: l
|
|
24858
24858
|
};
|
|
24859
|
-
|
|
24859
|
+
as.inputs = A;
|
|
24860
24860
|
const R = {
|
|
24861
24861
|
bip32Derivation: m.makeConverter(
|
|
24862
24862
|
e.OutputTypes.BIP32_DERIVATION
|
|
@@ -24878,13 +24878,13 @@ function Ah() {
|
|
|
24878
24878
|
e.OutputTypes.TAP_INTERNAL_KEY
|
|
24879
24879
|
)
|
|
24880
24880
|
};
|
|
24881
|
-
return
|
|
24881
|
+
return as.outputs = R, as;
|
|
24882
24882
|
}
|
|
24883
24883
|
var Yp;
|
|
24884
24884
|
function TA() {
|
|
24885
|
-
if (Yp) return
|
|
24886
|
-
Yp = 1, Object.defineProperty(
|
|
24887
|
-
const e = Ah(), t = xh(), n =
|
|
24885
|
+
if (Yp) return cs;
|
|
24886
|
+
Yp = 1, Object.defineProperty(cs, "__esModule", { value: !0 });
|
|
24887
|
+
const e = Ah(), t = xh(), n = ts(), r = Mt();
|
|
24888
24888
|
function i(c, a) {
|
|
24889
24889
|
let u = 0;
|
|
24890
24890
|
function f() {
|
|
@@ -24965,14 +24965,14 @@ function TA() {
|
|
|
24965
24965
|
outputKeyVals: A
|
|
24966
24966
|
});
|
|
24967
24967
|
}
|
|
24968
|
-
|
|
24968
|
+
cs.psbtFromBuffer = i;
|
|
24969
24969
|
function s(c, a, u) {
|
|
24970
24970
|
if (!a.equals(Buffer.from([u])))
|
|
24971
24971
|
throw new Error(
|
|
24972
24972
|
`Format Error: Invalid ${c} key: ${a.toString("hex")}`
|
|
24973
24973
|
);
|
|
24974
24974
|
}
|
|
24975
|
-
|
|
24975
|
+
cs.checkKeyBuffer = s;
|
|
24976
24976
|
function o(c, { globalMapKeyVals: a, inputKeyVals: u, outputKeyVals: f }) {
|
|
24977
24977
|
const l = {
|
|
24978
24978
|
unsignedTx: c
|
|
@@ -25168,7 +25168,7 @@ function TA() {
|
|
|
25168
25168
|
}
|
|
25169
25169
|
return { globalMap: l, inputs: m, outputs: E };
|
|
25170
25170
|
}
|
|
25171
|
-
return
|
|
25171
|
+
return cs.psbtFromKeyVals = o, cs;
|
|
25172
25172
|
}
|
|
25173
25173
|
var mo = {}, Zp;
|
|
25174
25174
|
function xA() {
|
|
@@ -25507,7 +25507,7 @@ var Qe = {}, ze = {}, ny;
|
|
|
25507
25507
|
function hl() {
|
|
25508
25508
|
if (ny) return ze;
|
|
25509
25509
|
ny = 1, Object.defineProperty(ze, "__esModule", { value: !0 }), ze.signatureBlocksAction = ze.checkInputForSig = ze.pubkeyInScript = ze.pubkeyPositionInScript = ze.witnessStackToScriptWitness = ze.isP2TR = ze.isP2SHScript = ze.isP2WSHScript = ze.isP2WPKH = ze.isP2PKH = ze.isP2PK = ze.isP2MS = void 0;
|
|
25510
|
-
const e =
|
|
25510
|
+
const e = ts(), t = nn(), n = Ec(), r = Pr(), i = bc();
|
|
25511
25511
|
function s(y) {
|
|
25512
25512
|
return (g) => {
|
|
25513
25513
|
try {
|
|
@@ -25808,7 +25808,7 @@ var iy;
|
|
|
25808
25808
|
function OA() {
|
|
25809
25809
|
if (iy) return go;
|
|
25810
25810
|
iy = 1, Object.defineProperty(go, "__esModule", { value: !0 }), go.Psbt = void 0;
|
|
25811
|
-
const e = vA(), t =
|
|
25811
|
+
const e = vA(), t = ts(), n = Yw(), r = Th(), i = bu(), s = Wn(), o = bc(), c = Sh(), a = nn(), u = Ec(), f = IA(), l = hl(), d = {
|
|
25812
25812
|
/**
|
|
25813
25813
|
* A bitcoinjs Network object. This is only used if you pass an `address`
|
|
25814
25814
|
* parameter to addOutput. Otherwise it is not needed and can be left default.
|
|
@@ -27058,10 +27058,10 @@ function BA() {
|
|
|
27058
27058
|
});
|
|
27059
27059
|
})(pf)), pf;
|
|
27060
27060
|
}
|
|
27061
|
-
var
|
|
27061
|
+
var vi = {}, oy;
|
|
27062
27062
|
function NA() {
|
|
27063
|
-
if (oy) return
|
|
27064
|
-
oy = 1, Object.defineProperty(
|
|
27063
|
+
if (oy) return vi;
|
|
27064
|
+
oy = 1, Object.defineProperty(vi, "__esModule", { value: !0 }), vi.base26Decode = vi.base26Encode = void 0;
|
|
27065
27065
|
function e(n) {
|
|
27066
27066
|
let r = 0n;
|
|
27067
27067
|
for (let i = 0; i < n.length; i++) {
|
|
@@ -27075,7 +27075,7 @@ function NA() {
|
|
|
27075
27075
|
}
|
|
27076
27076
|
return r;
|
|
27077
27077
|
}
|
|
27078
|
-
|
|
27078
|
+
vi.base26Encode = e;
|
|
27079
27079
|
function t(n) {
|
|
27080
27080
|
if (n === 340282366920938463463374607431768211455n)
|
|
27081
27081
|
return "BCGDENLQRQWDSLRUGSNLBTMFIJAV";
|
|
@@ -27087,12 +27087,12 @@ function NA() {
|
|
|
27087
27087
|
}
|
|
27088
27088
|
return r.reverse().join("");
|
|
27089
27089
|
}
|
|
27090
|
-
return
|
|
27090
|
+
return vi.base26Decode = t, vi;
|
|
27091
27091
|
}
|
|
27092
|
-
var
|
|
27092
|
+
var Ii = {}, cy;
|
|
27093
27093
|
function Zw() {
|
|
27094
|
-
if (cy) return
|
|
27095
|
-
cy = 1, Object.defineProperty(
|
|
27094
|
+
if (cy) return Ii;
|
|
27095
|
+
cy = 1, Object.defineProperty(Ii, "__esModule", { value: !0 }), Ii.none = Ii.some = void 0;
|
|
27096
27096
|
class e {
|
|
27097
27097
|
constructor() {
|
|
27098
27098
|
}
|
|
@@ -27123,16 +27123,16 @@ function Zw() {
|
|
|
27123
27123
|
function n(i) {
|
|
27124
27124
|
return new t(i);
|
|
27125
27125
|
}
|
|
27126
|
-
|
|
27126
|
+
Ii.some = n;
|
|
27127
27127
|
function r() {
|
|
27128
27128
|
return new e();
|
|
27129
27129
|
}
|
|
27130
|
-
return
|
|
27130
|
+
return Ii.none = r, Ii;
|
|
27131
27131
|
}
|
|
27132
|
-
var
|
|
27132
|
+
var Oi = {}, ay;
|
|
27133
27133
|
function kA() {
|
|
27134
|
-
if (ay) return
|
|
27135
|
-
ay = 1, Object.defineProperty(
|
|
27134
|
+
if (ay) return Oi;
|
|
27135
|
+
ay = 1, Object.defineProperty(Oi, "__esModule", { value: !0 }), Oi.decodeLEB128 = Oi.encodeLEB128 = void 0;
|
|
27136
27136
|
function e(n) {
|
|
27137
27137
|
const r = [];
|
|
27138
27138
|
let i = !0;
|
|
@@ -27142,7 +27142,7 @@ function kA() {
|
|
|
27142
27142
|
}
|
|
27143
27143
|
return r;
|
|
27144
27144
|
}
|
|
27145
|
-
|
|
27145
|
+
Oi.encodeLEB128 = e;
|
|
27146
27146
|
function t(n) {
|
|
27147
27147
|
let r = BigInt(0);
|
|
27148
27148
|
for (let i = 0; i < n.length; i++) {
|
|
@@ -27160,7 +27160,7 @@ function kA() {
|
|
|
27160
27160
|
}
|
|
27161
27161
|
throw new Error("Unterminated");
|
|
27162
27162
|
}
|
|
27163
|
-
return
|
|
27163
|
+
return Oi.decodeLEB128 = t, Oi;
|
|
27164
27164
|
}
|
|
27165
27165
|
var Pf = {}, uy;
|
|
27166
27166
|
function PA() {
|
|
@@ -27673,7 +27673,7 @@ function RA() {
|
|
|
27673
27673
|
var hy;
|
|
27674
27674
|
function UA() {
|
|
27675
27675
|
return hy || (hy = 1, (function(e) {
|
|
27676
|
-
var t =
|
|
27676
|
+
var t = wi && wi.__createBinding || (Object.create ? (function(s, o, c, a) {
|
|
27677
27677
|
a === void 0 && (a = c);
|
|
27678
27678
|
var u = Object.getOwnPropertyDescriptor(o, c);
|
|
27679
27679
|
(!u || ("get" in u ? !o.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
|
|
@@ -27681,7 +27681,7 @@ function UA() {
|
|
|
27681
27681
|
} }), Object.defineProperty(s, a, u);
|
|
27682
27682
|
}) : (function(s, o, c, a) {
|
|
27683
27683
|
a === void 0 && (a = c), s[a] = o[c];
|
|
27684
|
-
})), n =
|
|
27684
|
+
})), n = wi && wi.__exportStar || function(s, o) {
|
|
27685
27685
|
for (var c in s) c !== "default" && !Object.prototype.hasOwnProperty.call(o, c) && t(o, s, c);
|
|
27686
27686
|
};
|
|
27687
27687
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.removeSpacers = e.getSpacersVal = e.applySpacers = e.some = e.none = void 0, n(RA(), e);
|
|
@@ -27699,9 +27699,9 @@ function UA() {
|
|
|
27699
27699
|
} }), Object.defineProperty(e, "removeSpacers", { enumerable: !0, get: function() {
|
|
27700
27700
|
return i.removeSpacers;
|
|
27701
27701
|
} });
|
|
27702
|
-
})(
|
|
27702
|
+
})(wi)), wi;
|
|
27703
27703
|
}
|
|
27704
|
-
var
|
|
27704
|
+
var fs = UA();
|
|
27705
27705
|
function Qw(e) {
|
|
27706
27706
|
if (e.length % 2 !== 0)
|
|
27707
27707
|
throw new Error("Hex string must have even length");
|
|
@@ -27720,7 +27720,7 @@ function Oh(e, t = Oo.Testnet) {
|
|
|
27720
27720
|
const n = Ih(t);
|
|
27721
27721
|
return xg(e, n);
|
|
27722
27722
|
}
|
|
27723
|
-
function
|
|
27723
|
+
function Fi(e) {
|
|
27724
27724
|
const t = Pn, n = Hy, r = D1;
|
|
27725
27725
|
let i, s, o = mn.UNKNOWN;
|
|
27726
27726
|
if (e.startsWith("bc1") || e.startsWith("tb1") || e.startsWith("bcrt1"))
|
|
@@ -27768,12 +27768,12 @@ const a4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
27768
27768
|
__proto__: null,
|
|
27769
27769
|
bytesToHex: vh,
|
|
27770
27770
|
formatPoolUtxo: CA,
|
|
27771
|
-
getAddressType:
|
|
27771
|
+
getAddressType: Fi,
|
|
27772
27772
|
getScriptByAddress: Oh,
|
|
27773
27773
|
getUtxoProof: e1,
|
|
27774
27774
|
hexToBytes: Qw,
|
|
27775
27775
|
toBitcoinNetwork: Ih
|
|
27776
|
-
}, Symbol.toStringTag, { value: "Module" })), HA = "kqs64-paaaa-aaaar-qamza-cai", FA = "hvyp5-5yaaa-aaaao-qjxha-cai",
|
|
27776
|
+
}, Symbol.toStringTag, { value: "Module" })), HA = "kqs64-paaaa-aaaar-qamza-cai", FA = "hvyp5-5yaaa-aaaao-qjxha-cai", Qr = BigInt(546), sn = "0:0", MA = "https://runescan-hasura-mainnet.omnity.network/v1/graphql", qA = "https://runescan-hasura-testnet.omnity.network/v1/graphql", dy = {
|
|
27777
27777
|
P2PKH: 148,
|
|
27778
27778
|
P2SH_P2WPKH: 91,
|
|
27779
27779
|
P2WPKH: 68,
|
|
@@ -27795,7 +27795,7 @@ const a4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
27795
27795
|
"P2SH_P2WPKH",
|
|
27796
27796
|
"P2TR"
|
|
27797
27797
|
]), LA = 2;
|
|
27798
|
-
class
|
|
27798
|
+
class Ni {
|
|
27799
27799
|
psbt;
|
|
27800
27800
|
client;
|
|
27801
27801
|
inputAddressTypes = [];
|
|
@@ -27829,7 +27829,7 @@ class Bi {
|
|
|
27829
27829
|
value: BigInt(t.satoshis),
|
|
27830
27830
|
script: Qw(t.scriptPk)
|
|
27831
27831
|
}
|
|
27832
|
-
}), this.inputAddressTypes.push(
|
|
27832
|
+
}), this.inputAddressTypes.push(Fi(n)), this.inputUtxos.push(t), (n === this.config.address || n === this.config.paymentAddress) && t.runes.length !== 0 && (this.userInputUtxoDusts += BigInt(t.satoshis));
|
|
27833
27833
|
}
|
|
27834
27834
|
/**
|
|
27835
27835
|
* Add a standard output to the transaction
|
|
@@ -27840,7 +27840,7 @@ class Bi {
|
|
|
27840
27840
|
this.psbt.addOutput({
|
|
27841
27841
|
address: t,
|
|
27842
27842
|
value: n
|
|
27843
|
-
}), this.outputAddressTypes.push(
|
|
27843
|
+
}), this.outputAddressTypes.push(Fi(t));
|
|
27844
27844
|
}
|
|
27845
27845
|
/**
|
|
27846
27846
|
* Add an OP_RETURN script output (for Runestone)
|
|
@@ -27912,13 +27912,13 @@ class Bi {
|
|
|
27912
27912
|
* @returns Fee calculation result
|
|
27913
27913
|
*/
|
|
27914
27914
|
async addBtcAndFees(t, n) {
|
|
27915
|
-
const r = this.config.paymentAddress, i = this.additionalDustNeeded, s =
|
|
27915
|
+
const r = this.config.paymentAddress, i = this.additionalDustNeeded, s = Fi(r), o = this.userInputUtxoDusts, c = this.config.feeRate;
|
|
27916
27916
|
this.outputAddressTypes.push(s);
|
|
27917
27917
|
let a = !0, u = BigInt(0), f = BigInt(0), l = [], d = BigInt(0), y = BigInt(0);
|
|
27918
27918
|
const g = [...this.inputAddressTypes];
|
|
27919
27919
|
do {
|
|
27920
27920
|
if (u = f, c !== void 0) {
|
|
27921
|
-
const _ =
|
|
27921
|
+
const _ = Ni.estimateTxVirtualSize(
|
|
27922
27922
|
this.inputAddressTypes,
|
|
27923
27923
|
this.outputAddressTypes
|
|
27924
27924
|
);
|
|
@@ -27940,7 +27940,7 @@ class Bi {
|
|
|
27940
27940
|
(w, T) => w + BigInt(T.satoshis),
|
|
27941
27941
|
BigInt(0)
|
|
27942
27942
|
);
|
|
27943
|
-
S - d > 0 && S - d >
|
|
27943
|
+
S - d > 0 && S - d > Qr || (this.outputAddressTypes.pop(), a = !1), l = _;
|
|
27944
27944
|
}
|
|
27945
27945
|
} while (f > u && d > 0);
|
|
27946
27946
|
this.inputAddressTypes = [...g], a && this.outputAddressTypes.pop();
|
|
@@ -27951,7 +27951,7 @@ class Bi {
|
|
|
27951
27951
|
const E = m - d;
|
|
27952
27952
|
if (E < 0)
|
|
27953
27953
|
throw new Error("Insufficient UTXO(s)");
|
|
27954
|
-
E >
|
|
27954
|
+
E > Qr ? this.addOutput(r, E) : E > BigInt(0) && (y = E), this.txFee = y + f;
|
|
27955
27955
|
}
|
|
27956
27956
|
/**
|
|
27957
27957
|
* Resolve and fetch all UTXOs required by the current intention set, grouped by address.
|
|
@@ -28189,7 +28189,7 @@ class Bi {
|
|
|
28189
28189
|
const s = [], o = [];
|
|
28190
28190
|
let c = 1;
|
|
28191
28191
|
i.forEach((u) => {
|
|
28192
|
-
const f = new
|
|
28192
|
+
const f = new fs.RuneId(
|
|
28193
28193
|
Number(u.split(":")[0]),
|
|
28194
28194
|
Number(u.split(":")[1])
|
|
28195
28195
|
);
|
|
@@ -28197,13 +28197,13 @@ class Bi {
|
|
|
28197
28197
|
t
|
|
28198
28198
|
)) {
|
|
28199
28199
|
const y = d[u] ?? BigInt(0);
|
|
28200
|
-
y > BigInt(0) && (s.push(new
|
|
28200
|
+
y > BigInt(0) && (s.push(new fs.Edict(f, y, c)), o.push(l), c++);
|
|
28201
28201
|
}
|
|
28202
28202
|
});
|
|
28203
|
-
const a = new
|
|
28203
|
+
const a = new fs.Runestone(s, fs.none(), fs.none(), fs.none());
|
|
28204
28204
|
this.addScriptOutput(new Uint8Array(a.encipher())), o.forEach((u) => {
|
|
28205
|
-
const f = t[u]?.[sn] ?? BigInt(0), l = u === this.config.address, d = f > BigInt(0) && (!l || n), y = d && f >
|
|
28206
|
-
this.addOutput(u, y), d ? delete t[u][sn] : this.additionalDustNeeded +=
|
|
28205
|
+
const f = t[u]?.[sn] ?? BigInt(0), l = u === this.config.address, d = f > BigInt(0) && (!l || n), y = d && f > Qr ? f : Qr;
|
|
28206
|
+
this.addOutput(u, y), d ? (f < Qr && (this.additionalDustNeeded += Qr - f), delete t[u][sn]) : this.additionalDustNeeded += Qr;
|
|
28207
28207
|
});
|
|
28208
28208
|
}
|
|
28209
28209
|
for (const [s, o] of Object.entries(
|
|
@@ -28276,7 +28276,7 @@ class Bi {
|
|
|
28276
28276
|
const l = this.inputUtxos[u].address;
|
|
28277
28277
|
if (l !== this.config.paymentAddress || l !== this.config.address)
|
|
28278
28278
|
continue;
|
|
28279
|
-
const d = this.psbt.data.inputs[u].redeemScript, y =
|
|
28279
|
+
const d = this.psbt.data.inputs[u].redeemScript, y = Fi(l);
|
|
28280
28280
|
if (d && y === mn.P2SH_P2WPKH) {
|
|
28281
28281
|
const g = tn([d]);
|
|
28282
28282
|
c.setInputScript(u, g);
|
|
@@ -28292,16 +28292,16 @@ class Bi {
|
|
|
28292
28292
|
static estimateTxVirtualSize(t, n) {
|
|
28293
28293
|
const r = t.length, i = n.length;
|
|
28294
28294
|
let s = 8 + // locktime
|
|
28295
|
-
|
|
28295
|
+
Ni.varIntSize(r) + Ni.varIntSize(i), o = !1;
|
|
28296
28296
|
for (const c of t) {
|
|
28297
|
-
const a =
|
|
28297
|
+
const a = Ni.parseAddressType(c);
|
|
28298
28298
|
if (a.key === "OpReturn")
|
|
28299
28299
|
continue;
|
|
28300
28300
|
const u = dy[a.key] ?? dy.UNKNOWN;
|
|
28301
28301
|
s += u, VA.has(a.key) && (o = !0);
|
|
28302
28302
|
}
|
|
28303
28303
|
for (const c of n) {
|
|
28304
|
-
const a =
|
|
28304
|
+
const a = Ni.parseAddressType(c);
|
|
28305
28305
|
if (a.key === "OpReturn") {
|
|
28306
28306
|
const f = Math.max(0, a.opReturnLength ?? 0);
|
|
28307
28307
|
s += 11 + f;
|
|
@@ -28902,7 +28902,7 @@ function c1(e) {
|
|
|
28902
28902
|
function a1(e) {
|
|
28903
28903
|
return e >= 56320 && e <= 57343;
|
|
28904
28904
|
}
|
|
28905
|
-
function
|
|
28905
|
+
function Xi(e, t) {
|
|
28906
28906
|
const n = e.source.body.codePointAt(t);
|
|
28907
28907
|
if (n === void 0)
|
|
28908
28908
|
return ee.EOF;
|
|
@@ -29007,7 +29007,7 @@ function ov(e, t) {
|
|
|
29007
29007
|
throw Nt(
|
|
29008
29008
|
e.source,
|
|
29009
29009
|
i,
|
|
29010
|
-
s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Ws(s) || Eu(n, i) ? `Unexpected character: ${
|
|
29010
|
+
s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Ws(s) || Eu(n, i) ? `Unexpected character: ${Xi(e, i)}.` : `Invalid character: ${Xi(e, i)}.`
|
|
29011
29011
|
);
|
|
29012
29012
|
}
|
|
29013
29013
|
return bt(e, ee.EOF, r, r);
|
|
@@ -29042,7 +29042,7 @@ function av(e, t, n) {
|
|
|
29042
29042
|
throw Nt(
|
|
29043
29043
|
e.source,
|
|
29044
29044
|
i,
|
|
29045
|
-
`Invalid number, unexpected digit after 0: ${
|
|
29045
|
+
`Invalid number, unexpected digit after 0: ${Xi(
|
|
29046
29046
|
e,
|
|
29047
29047
|
i
|
|
29048
29048
|
)}.`
|
|
@@ -29053,7 +29053,7 @@ function av(e, t, n) {
|
|
|
29053
29053
|
throw Nt(
|
|
29054
29054
|
e.source,
|
|
29055
29055
|
i,
|
|
29056
|
-
`Invalid number, expected digit but got: ${
|
|
29056
|
+
`Invalid number, expected digit but got: ${Xi(
|
|
29057
29057
|
e,
|
|
29058
29058
|
i
|
|
29059
29059
|
)}.`
|
|
@@ -29071,7 +29071,7 @@ function Uf(e, t, n) {
|
|
|
29071
29071
|
throw Nt(
|
|
29072
29072
|
e.source,
|
|
29073
29073
|
t,
|
|
29074
|
-
`Invalid number, expected digit but got: ${
|
|
29074
|
+
`Invalid number, expected digit but got: ${Xi(
|
|
29075
29075
|
e,
|
|
29076
29076
|
t
|
|
29077
29077
|
)}.`
|
|
@@ -29105,7 +29105,7 @@ function uv(e, t) {
|
|
|
29105
29105
|
throw Nt(
|
|
29106
29106
|
e.source,
|
|
29107
29107
|
i,
|
|
29108
|
-
`Invalid character within String: ${
|
|
29108
|
+
`Invalid character within String: ${Xi(
|
|
29109
29109
|
e,
|
|
29110
29110
|
i
|
|
29111
29111
|
)}.`
|
|
@@ -29254,7 +29254,7 @@ function dv(e, t) {
|
|
|
29254
29254
|
throw Nt(
|
|
29255
29255
|
e.source,
|
|
29256
29256
|
s,
|
|
29257
|
-
`Invalid character within String: ${
|
|
29257
|
+
`Invalid character within String: ${Xi(
|
|
29258
29258
|
e,
|
|
29259
29259
|
s
|
|
29260
29260
|
)}.`
|
|
@@ -31304,7 +31304,7 @@ const Kv = (e, t, n) => e.document ? e : {
|
|
|
31304
31304
|
* Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
31305
31305
|
* MIT Licence
|
|
31306
31306
|
*/
|
|
31307
|
-
var ws = 9e15,
|
|
31307
|
+
var ws = 9e15, yi = 1e9, wl = "0123456789abcdef", Ha = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", Fa = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", bl = {
|
|
31308
31308
|
// These values must be integers within the stated ranges (inclusive).
|
|
31309
31309
|
// Most of these values can be changed at run-time using the `Decimal.config` method.
|
|
31310
31310
|
// The maximum number of significant digits of the result of a calculation or base conversion.
|
|
@@ -31362,7 +31362,7 @@ var ws = 9e15, pi = 1e9, wl = "0123456789abcdef", Ha = "2.3025850929940456840179
|
|
|
31362
31362
|
// Whether to use cryptographically-secure random number generation, if available.
|
|
31363
31363
|
crypto: !1
|
|
31364
31364
|
// true/false
|
|
31365
|
-
}, p1, xr, ve = !0, Su = "[DecimalError] ",
|
|
31365
|
+
}, p1, xr, ve = !0, Su = "[DecimalError] ", li = Su + "Invalid argument: ", y1 = Su + "Precision limit exceeded", g1 = Su + "crypto unavailable", m1 = "[object Decimal]", Wt = Math.floor, xt = Math.pow, Wv = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, Xv = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, zv = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, w1 = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, jn = 1e7, _e = 7, Yv = 9007199254740991, Zv = Ha.length - 1, El = Fa.length - 1, se = { toStringTag: m1 };
|
|
31366
31366
|
se.absoluteValue = se.abs = function() {
|
|
31367
31367
|
var e = new this.constructor(this);
|
|
31368
31368
|
return e.s < 0 && (e.s = 1), be(e);
|
|
@@ -31373,7 +31373,7 @@ se.ceil = function() {
|
|
|
31373
31373
|
se.clampedTo = se.clamp = function(e, t) {
|
|
31374
31374
|
var n, r = this, i = r.constructor;
|
|
31375
31375
|
if (e = new i(e), t = new i(t), !e.s || !t.s) return new i(NaN);
|
|
31376
|
-
if (e.gt(t)) throw Error(
|
|
31376
|
+
if (e.gt(t)) throw Error(li + t);
|
|
31377
31377
|
return n = r.cmp(e), n < 0 ? e : r.cmp(t) > 0 ? t : new i(r);
|
|
31378
31378
|
};
|
|
31379
31379
|
se.comparedTo = se.cmp = function(e) {
|
|
@@ -31539,9 +31539,9 @@ se.logarithm = se.log = function(e) {
|
|
|
31539
31539
|
for (i = n[0]; i % 10 === 0; ) i /= 10;
|
|
31540
31540
|
s = i !== 1;
|
|
31541
31541
|
}
|
|
31542
|
-
if (ve = !1, c = l + y, o =
|
|
31542
|
+
if (ve = !1, c = l + y, o = si(u, c), r = t ? Ma(f, c + 10) : si(e, c), a = Ze(o, r, c, 1), jo(a.d, i = l, d))
|
|
31543
31543
|
do
|
|
31544
|
-
if (c += 10, o =
|
|
31544
|
+
if (c += 10, o = si(u, c), r = t ? Ma(f, c + 10) : si(e, c), a = Ze(o, r, c, 1), !s) {
|
|
31545
31545
|
+Ht(a.d).slice(i + 1, i + 15) + 1 == 1e14 && (a = be(a, l + 1, 0));
|
|
31546
31546
|
break;
|
|
31547
31547
|
}
|
|
@@ -31591,7 +31591,7 @@ se.naturalExponential = se.exp = function() {
|
|
|
31591
31591
|
return _l(this);
|
|
31592
31592
|
};
|
|
31593
31593
|
se.naturalLogarithm = se.ln = function() {
|
|
31594
|
-
return
|
|
31594
|
+
return si(this);
|
|
31595
31595
|
};
|
|
31596
31596
|
se.negated = se.neg = function() {
|
|
31597
31597
|
var e = new this.constructor(this);
|
|
@@ -31616,7 +31616,7 @@ se.plus = se.add = function(e) {
|
|
|
31616
31616
|
};
|
|
31617
31617
|
se.precision = se.sd = function(e) {
|
|
31618
31618
|
var t, n = this;
|
|
31619
|
-
if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(
|
|
31619
|
+
if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(li + e);
|
|
31620
31620
|
return n.d ? (t = b1(n.d), e && n.e + 1 > t && (t = n.e + 1)) : t = NaN, t;
|
|
31621
31621
|
};
|
|
31622
31622
|
se.round = function() {
|
|
@@ -31667,15 +31667,15 @@ se.toBinary = function(e, t) {
|
|
|
31667
31667
|
};
|
|
31668
31668
|
se.toDecimalPlaces = se.toDP = function(e, t) {
|
|
31669
31669
|
var n = this, r = n.constructor;
|
|
31670
|
-
return n = new r(n), e === void 0 ? n : (yn(e, 0,
|
|
31670
|
+
return n = new r(n), e === void 0 ? n : (yn(e, 0, yi), t === void 0 ? t = r.rounding : yn(t, 0, 8), be(n, e + n.e + 1, t));
|
|
31671
31671
|
};
|
|
31672
31672
|
se.toExponential = function(e, t) {
|
|
31673
31673
|
var n, r = this, i = r.constructor;
|
|
31674
|
-
return e === void 0 ? n = ir(r, !0) : (yn(e, 0,
|
|
31674
|
+
return e === void 0 ? n = ir(r, !0) : (yn(e, 0, yi), t === void 0 ? t = i.rounding : yn(t, 0, 8), r = be(new i(r), e + 1, t), n = ir(r, !0, e + 1)), r.isNeg() && !r.isZero() ? "-" + n : n;
|
|
31675
31675
|
};
|
|
31676
31676
|
se.toFixed = function(e, t) {
|
|
31677
31677
|
var n, r, i = this, s = i.constructor;
|
|
31678
|
-
return e === void 0 ? n = ir(i) : (yn(e, 0,
|
|
31678
|
+
return e === void 0 ? n = ir(i) : (yn(e, 0, yi), t === void 0 ? t = s.rounding : yn(t, 0, 8), r = be(new s(i), e + i.e + 1, t), n = ir(r, !1, e + r.e + 1)), i.isNeg() && !i.isZero() ? "-" + n : n;
|
|
31679
31679
|
};
|
|
31680
31680
|
se.toFraction = function(e) {
|
|
31681
31681
|
var t, n, r, i, s, o, c, a, u, f, l, d, y = this, g = y.d, m = y.constructor;
|
|
@@ -31683,7 +31683,7 @@ se.toFraction = function(e) {
|
|
|
31683
31683
|
if (u = n = new m(1), r = a = new m(0), t = new m(r), s = t.e = b1(g) - y.e - 1, o = s % _e, t.d[0] = xt(10, o < 0 ? _e + o : o), e == null)
|
|
31684
31684
|
e = s > 0 ? t : u;
|
|
31685
31685
|
else {
|
|
31686
|
-
if (c = new m(e), !c.isInt() || c.lt(u)) throw Error(
|
|
31686
|
+
if (c = new m(e), !c.isInt() || c.lt(u)) throw Error(li + c);
|
|
31687
31687
|
e = c.gt(t) ? s > 0 ? t : u : c;
|
|
31688
31688
|
}
|
|
31689
31689
|
for (ve = !1, c = new m(Ht(g)), f = m.precision, m.precision = s = g.length * _e * 2; l = Ze(c, t, 0, 1, 1), i = n.plus(l.times(r)), i.cmp(e) != 1; )
|
|
@@ -31723,15 +31723,15 @@ se.toPower = se.pow = function(e) {
|
|
|
31723
31723
|
if ((e.d[t] & 1) == 0 && (o = 1), c.e == 0 && c.d[0] == 1 && c.d.length == 1)
|
|
31724
31724
|
return c.s = o, c;
|
|
31725
31725
|
}
|
|
31726
|
-
return n = xt(+c, u), t = n == 0 || !isFinite(n) ? Wt(u * (Math.log("0." + Ht(c.d)) / Math.LN10 + c.e + 1)) : new a(n + "").e, t > a.maxE + 1 || t < a.minE - 1 ? new a(t > 0 ? o / 0 : 0) : (ve = !1, a.rounding = c.s = 1, n = Math.min(12, (t + "").length), i = _l(e.times(
|
|
31726
|
+
return n = xt(+c, u), t = n == 0 || !isFinite(n) ? Wt(u * (Math.log("0." + Ht(c.d)) / Math.LN10 + c.e + 1)) : new a(n + "").e, t > a.maxE + 1 || t < a.minE - 1 ? new a(t > 0 ? o / 0 : 0) : (ve = !1, a.rounding = c.s = 1, n = Math.min(12, (t + "").length), i = _l(e.times(si(c, r + n)), r), i.d && (i = be(i, r + 5, 1), jo(i.d, r, s) && (t = r + 10, i = be(_l(e.times(si(c, t + n)), t), t + 5, 1), +Ht(i.d).slice(r + 1, r + 15) + 1 == 1e14 && (i = be(i, r + 1, 0)))), i.s = o, ve = !0, a.rounding = s, be(i, r, s));
|
|
31727
31727
|
};
|
|
31728
31728
|
se.toPrecision = function(e, t) {
|
|
31729
31729
|
var n, r = this, i = r.constructor;
|
|
31730
|
-
return e === void 0 ? n = ir(r, r.e <= i.toExpNeg || r.e >= i.toExpPos) : (yn(e, 1,
|
|
31730
|
+
return e === void 0 ? n = ir(r, r.e <= i.toExpNeg || r.e >= i.toExpPos) : (yn(e, 1, yi), t === void 0 ? t = i.rounding : yn(t, 0, 8), r = be(new i(r), e, t), n = ir(r, e <= r.e || r.e <= i.toExpNeg, e)), r.isNeg() && !r.isZero() ? "-" + n : n;
|
|
31731
31731
|
};
|
|
31732
31732
|
se.toSignificantDigits = se.toSD = function(e, t) {
|
|
31733
31733
|
var n = this, r = n.constructor;
|
|
31734
|
-
return e === void 0 ? (e = r.precision, t = r.rounding) : (yn(e, 1,
|
|
31734
|
+
return e === void 0 ? (e = r.precision, t = r.rounding) : (yn(e, 1, yi), t === void 0 ? t = r.rounding : yn(t, 0, 8)), be(new r(n), e, t);
|
|
31735
31735
|
};
|
|
31736
31736
|
se.toString = function() {
|
|
31737
31737
|
var e = this, t = e.constructor, n = ir(e, e.e <= t.toExpNeg || e.e >= t.toExpPos);
|
|
@@ -31748,8 +31748,8 @@ function Ht(e) {
|
|
|
31748
31748
|
var t, n, r, i = e.length - 1, s = "", o = e[0];
|
|
31749
31749
|
if (i > 0) {
|
|
31750
31750
|
for (s += o, t = 1; t < i; t++)
|
|
31751
|
-
r = e[t] + "", n = _e - r.length, n && (s +=
|
|
31752
|
-
o = e[t], r = o + "", n = _e - r.length, n && (s +=
|
|
31751
|
+
r = e[t] + "", n = _e - r.length, n && (s += ii(n)), s += r;
|
|
31752
|
+
o = e[t], r = o + "", n = _e - r.length, n && (s += ii(n));
|
|
31753
31753
|
} else if (o === 0)
|
|
31754
31754
|
return "0";
|
|
31755
31755
|
for (; o % 10 === 0; ) o /= 10;
|
|
@@ -31757,7 +31757,7 @@ function Ht(e) {
|
|
|
31757
31757
|
}
|
|
31758
31758
|
function yn(e, t, n) {
|
|
31759
31759
|
if (e !== ~~e || e < t || e > n)
|
|
31760
|
-
throw Error(
|
|
31760
|
+
throw Error(li + e);
|
|
31761
31761
|
}
|
|
31762
31762
|
function jo(e, t, n, r) {
|
|
31763
31763
|
var i, s, o, c;
|
|
@@ -31881,7 +31881,7 @@ function be(e, t, n, r) {
|
|
|
31881
31881
|
function ir(e, t, n) {
|
|
31882
31882
|
if (!e.isFinite()) return S1(e);
|
|
31883
31883
|
var r, i = e.e, s = Ht(e.d), o = s.length;
|
|
31884
|
-
return t ? (n && (r = n - o) > 0 ? s = s.charAt(0) + "." + s.slice(1) +
|
|
31884
|
+
return t ? (n && (r = n - o) > 0 ? s = s.charAt(0) + "." + s.slice(1) + ii(r) : o > 1 && (s = s.charAt(0) + "." + s.slice(1)), s = s + (e.e < 0 ? "e" : "e+") + e.e) : i < 0 ? (s = "0." + ii(-i - 1) + s, n && (r = n - o) > 0 && (s += ii(r))) : i >= o ? (s += ii(i + 1 - o), n && (r = n - i - 1) > 0 && (s = s + "." + ii(r))) : ((r = i + 1) < o && (s = s.slice(0, r) + "." + s.slice(r)), n && (r = n - o) > 0 && (i + 1 === o && (s += "."), s += ii(r))), s;
|
|
31885
31885
|
}
|
|
31886
31886
|
function Tu(e, t) {
|
|
31887
31887
|
var n = e[0];
|
|
@@ -31905,7 +31905,7 @@ function b1(e) {
|
|
|
31905
31905
|
}
|
|
31906
31906
|
return n;
|
|
31907
31907
|
}
|
|
31908
|
-
function
|
|
31908
|
+
function ii(e) {
|
|
31909
31909
|
for (var t = ""; e--; ) t += "0";
|
|
31910
31910
|
return t;
|
|
31911
31911
|
}
|
|
@@ -31953,7 +31953,7 @@ function _l(e, t) {
|
|
|
31953
31953
|
o = c;
|
|
31954
31954
|
}
|
|
31955
31955
|
}
|
|
31956
|
-
function
|
|
31956
|
+
function si(e, t) {
|
|
31957
31957
|
var n, r, i, s, o, c, a, u, f, l, d, y = 1, g = 10, m = e, E = m.d, _ = m.constructor, S = _.rounding, w = _.precision;
|
|
31958
31958
|
if (m.s < 0 || !E || !E[0] || !m.e && E[0] == 1 && E.length == 1)
|
|
31959
31959
|
return new _(E && !E[0] ? -1 / 0 : m.s != 1 ? NaN : E ? 0 : m);
|
|
@@ -31962,7 +31962,7 @@ function ii(e, t) {
|
|
|
31962
31962
|
m = m.times(e), n = Ht(m.d), r = n.charAt(0), y++;
|
|
31963
31963
|
s = m.e, r > 1 ? (m = new _("0." + n), s++) : m = new _(r + "." + n.slice(1));
|
|
31964
31964
|
} else
|
|
31965
|
-
return u = Ma(_, f + 2, w).times(s + ""), m =
|
|
31965
|
+
return u = Ma(_, f + 2, w).times(s + ""), m = si(new _(r + "." + n.slice(1)), f - g).plus(u), _.precision = w, t == null ? be(m, w, S, ve = !0) : m;
|
|
31966
31966
|
for (l = m, a = o = m = Ze(m.minus(1), m.plus(1), f, 1), d = be(m.times(m), f, 1), i = 3; ; ) {
|
|
31967
31967
|
if (o = be(o.times(d), f, 1), u = a.plus(Ze(o, new _(i), f, 1)), Ht(u.d).slice(0, f) === Ht(a.d).slice(0, f))
|
|
31968
31968
|
if (a = a.times(2), s !== 0 && (a = a.plus(Ma(_, f + 2, w).times(s + ""))), a = Ze(a, new _(y), f, 1), t == null)
|
|
@@ -32007,7 +32007,7 @@ function Qv(e, t) {
|
|
|
32007
32007
|
else if (zv.test(t))
|
|
32008
32008
|
n = 8;
|
|
32009
32009
|
else
|
|
32010
|
-
throw Error(
|
|
32010
|
+
throw Error(li + t);
|
|
32011
32011
|
for (s = t.search(/p/i), s > 0 ? (a = +t.slice(s + 1), t = t.substring(2, s)) : t = t.slice(2), s = t.indexOf("."), o = s >= 0, r = e.constructor, o && (t = t.replace(".", ""), c = t.length, s = c - s, i = E1(r, new r(n), s, s * 2)), u = sa(t, n, jn), f = u.length - 1, s = f; u[s] === 0; --s) u.pop();
|
|
32012
32012
|
return s < 0 ? new r(e.s * 0) : (e.e = Tu(u, f), e.d = u, ve = !1, o && (e = Ze(e, i, c * 4)), a && (e = e.times(Math.abs(a) < 54 ? xt(2, a) : br.pow(2, a))), ve = !0, e);
|
|
32013
32013
|
}
|
|
@@ -32050,7 +32050,7 @@ function T1(e, t) {
|
|
|
32050
32050
|
}
|
|
32051
32051
|
function Rh(e, t, n, r) {
|
|
32052
32052
|
var i, s, o, c, a, u, f, l, d, y = e.constructor, g = n !== void 0;
|
|
32053
|
-
if (g ? (yn(n, 1,
|
|
32053
|
+
if (g ? (yn(n, 1, yi), r === void 0 ? r = y.rounding : yn(r, 0, 8)) : (n = y.precision, r = y.rounding), !e.isFinite())
|
|
32054
32054
|
f = S1(e);
|
|
32055
32055
|
else {
|
|
32056
32056
|
for (f = ir(e), o = f.indexOf("."), g ? (i = 2, t == 16 ? n = n * 4 - 3 : t == 8 && (n = n * 3 - 2)) : i = t, o >= 0 && (f = f.replace(".", ""), d = new y(1), d.e = f.length - o, d.d = sa(ir(d), 10, i), d.e = d.d.length), l = sa(f, 10, i), s = a = l.length; l[--a] == 0; ) l.pop();
|
|
@@ -32128,7 +32128,7 @@ function d6(e) {
|
|
|
32128
32128
|
var t, n, r, i = e.defaults === !0, s = [
|
|
32129
32129
|
"precision",
|
|
32130
32130
|
1,
|
|
32131
|
-
|
|
32131
|
+
yi,
|
|
32132
32132
|
"rounding",
|
|
32133
32133
|
0,
|
|
32134
32134
|
8,
|
|
@@ -32151,7 +32151,7 @@ function d6(e) {
|
|
|
32151
32151
|
for (t = 0; t < s.length; t += 3)
|
|
32152
32152
|
if (n = s[t], i && (this[n] = bl[n]), (r = e[n]) !== void 0)
|
|
32153
32153
|
if (Wt(r) === r && r >= s[t + 1] && r <= s[t + 2]) this[n] = r;
|
|
32154
|
-
else throw Error(
|
|
32154
|
+
else throw Error(li + n + ": " + r);
|
|
32155
32155
|
if (n = "crypto", i && (this[n] = bl[n]), (r = e[n]) !== void 0)
|
|
32156
32156
|
if (r === !0 || r === !1 || r === 0 || r === 1)
|
|
32157
32157
|
if (r)
|
|
@@ -32162,7 +32162,7 @@ function d6(e) {
|
|
|
32162
32162
|
else
|
|
32163
32163
|
this[n] = !1;
|
|
32164
32164
|
else
|
|
32165
|
-
throw Error(
|
|
32165
|
+
throw Error(li + n + ": " + r);
|
|
32166
32166
|
return this;
|
|
32167
32167
|
}
|
|
32168
32168
|
function p6(e) {
|
|
@@ -32200,7 +32200,7 @@ function x1(e) {
|
|
|
32200
32200
|
return (c = s.charCodeAt(0)) === 45 ? (s = s.slice(1), u.s = -1) : (c === 43 && (s = s.slice(1)), u.s = 1), w1.test(s) ? oa(u, s) : Qv(u, s);
|
|
32201
32201
|
if (a === "bigint")
|
|
32202
32202
|
return s < 0 ? (s = -s, u.s = -1) : u.s = 1, oa(u, s.toString());
|
|
32203
|
-
throw Error(
|
|
32203
|
+
throw Error(li + s);
|
|
32204
32204
|
}
|
|
32205
32205
|
if (i.prototype = se, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.EUCLID = 9, i.config = i.set = d6, i.clone = x1, i.isDecimal = Ny, i.abs = t6, i.acos = n6, i.acosh = r6, i.add = i6, i.asin = s6, i.asinh = o6, i.atan = c6, i.atanh = a6, i.atan2 = u6, i.cbrt = f6, i.ceil = l6, i.clamp = h6, i.cos = p6, i.cosh = y6, i.div = g6, i.exp = m6, i.floor = w6, i.hypot = b6, i.ln = E6, i.log = _6, i.log10 = T6, i.log2 = S6, i.max = x6, i.min = A6, i.mod = v6, i.mul = I6, i.pow = O6, i.random = B6, i.round = N6, i.sign = k6, i.sin = P6, i.sinh = R6, i.sqrt = U6, i.sub = C6, i.sum = H6, i.tan = F6, i.tanh = M6, i.trunc = q6, e === void 0 && (e = {}), e && e.defaults !== !0)
|
|
32206
32206
|
for (r = ["precision", "rounding", "toExpNeg", "toExpPos", "maxE", "minE", "modulo", "crypto"], t = 0; t < r.length; ) e.hasOwnProperty(n = r[t++]) || (e[n] = this[n]);
|
|
@@ -32259,7 +32259,7 @@ function O6(e, t) {
|
|
|
32259
32259
|
}
|
|
32260
32260
|
function B6(e) {
|
|
32261
32261
|
var t, n, r, i, s = 0, o = new this(1), c = [];
|
|
32262
|
-
if (e === void 0 ? e = this.precision : yn(e, 1,
|
|
32262
|
+
if (e === void 0 ? e = this.precision : yn(e, 1, yi), r = Math.ceil(e / _e), this.crypto)
|
|
32263
32263
|
if (crypto.getRandomValues)
|
|
32264
32264
|
for (t = crypto.getRandomValues(new Uint32Array(r)); s < r; )
|
|
32265
32265
|
i = t[s], i >= 429e7 ? t[s] = crypto.getRandomValues(new Uint32Array(1))[0] : c[s++] = i % 1e7;
|
|
@@ -32746,7 +32746,7 @@ class u4 {
|
|
|
32746
32746
|
async getPendingBtcUtxos(t) {
|
|
32747
32747
|
const n = await this.orchestrator.get_zero_confirmed_utxos_of_address(
|
|
32748
32748
|
t
|
|
32749
|
-
), r =
|
|
32749
|
+
), r = Fi(t);
|
|
32750
32750
|
return n.filter(({ maybe_rune: i }) => !i.length).map(({ value: i, script_pubkey_hex: s, outpoint: o }) => {
|
|
32751
32751
|
const [c, a] = o.split(":");
|
|
32752
32752
|
return {
|
|
@@ -32770,7 +32770,7 @@ class u4 {
|
|
|
32770
32770
|
async getPendingRuneUtxos(t) {
|
|
32771
32771
|
const n = await this.orchestrator.get_zero_confirmed_utxos_of_address(
|
|
32772
32772
|
t
|
|
32773
|
-
), r =
|
|
32773
|
+
), r = Fi(t);
|
|
32774
32774
|
return n.filter(({ maybe_rune: i }) => i.length).map(({ value: i, script_pubkey_hex: s, outpoint: o, maybe_rune: c }) => {
|
|
32775
32775
|
const [a, u] = o.split(":"), f = c[0];
|
|
32776
32776
|
return {
|
|
@@ -32978,7 +32978,7 @@ class u4 {
|
|
|
32978
32978
|
feeRate: r,
|
|
32979
32979
|
mergeSelfRuneBtcOutputs: i
|
|
32980
32980
|
}) {
|
|
32981
|
-
return new
|
|
32981
|
+
return new Ni(
|
|
32982
32982
|
{
|
|
32983
32983
|
network: this.config.network,
|
|
32984
32984
|
exchangeId: this.config.exchangeId,
|
|
@@ -33001,6 +33001,6 @@ class u4 {
|
|
|
33001
33001
|
export {
|
|
33002
33002
|
Oo as Network,
|
|
33003
33003
|
u4 as ReeClient,
|
|
33004
|
-
|
|
33004
|
+
Ni as Transaction,
|
|
33005
33005
|
a4 as utils
|
|
33006
33006
|
};
|