@multiplechain/bitcoin 0.4.21 → 0.4.22
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/index.cjs +8 -8
- package/dist/index.cjs.map +3 -3
- package/dist/index.es.js +621 -621
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +22 -22
- package/dist/index.umd.js.map +1 -1
- package/dist/services/Provider.d.ts +0 -4
- package/dist/services/TransactionListener.d.ts +0 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var aO = Object.defineProperty;
|
|
2
2
|
var oO = (t, e, r) => e in t ? aO(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
-
var
|
|
3
|
+
var At = (t, e, r) => (oO(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
4
|
function fO(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const n = e[r];
|
|
@@ -17,7 +17,7 @@ function fO(t, e) {
|
|
|
17
17
|
}
|
|
18
18
|
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
19
19
|
}
|
|
20
|
-
var Rg = /* @__PURE__ */ ((t) => (t.INCOMING = "INCOMING", t.OUTGOING = "OUTGOING", t))(Rg || {}), Ha = /* @__PURE__ */ ((t) => (t.GENERAL = "GENERAL", t.CONTRACT = "CONTRACT", t.COIN = "COIN", t.TOKEN = "TOKEN", t.NFT = "NFT", t))(Ha || {}), un = /* @__PURE__ */ ((t) => (t.FAILED = "FAILED", t.PENDING = "PENDING", t.CONFIRMED = "CONFIRMED", t))(un || {}), cn = /* @__PURE__ */ ((t) => (t.RPC_TIMEOUT = "RPC_TIMEOUT", t.RPC_REQUEST_ERROR = "RPC_REQUEST_ERROR", t.RPC_ACCESS_DENIED = "RPC_ACCESS_DENIED", t.WS_URL_NOT_DEFINED = "WS_URL_NOT_DEFINED", t.WS_CONNECTION_FAILED = "WS_CONNECTION_FAILED", t.UNACCEPTED_CHAIN = "UNACCEPTED_CHAIN", t.UNAUTHORIZED_ADDRESS = "UNAUTHORIZED_ADDRESS", t.INSUFFICIENT_BALANCE = "INSUFFICIENT_BALANCE", t.INVALID_AMOUNT = "INVALID_AMOUNT", t.INVALID_ADDRESS = "INVALID_ADDRESS", t.INVALID_PRIVATE_KEY = "INVALID_PRIVATE_KEY", t.INVALID_PUBLIC_KEY = "INVALID_PUBLIC_KEY", t.INVALID_TRANSACTION_ID = "INVALID_TRANSACTION_ID", t.PROVIDER_IS_REQUIRED = "PROVIDER_IS_REQUIRED", t.PROVIDER_IS_NOT_INITIALIZED = "PROVIDER_IS_NOT_INITIALIZED", t.PROVIDER_IS_ALREADY_INITIALIZED = "PROVIDER_IS_ALREADY_INITIALIZED", t.WALLET_ALREADY_PROCESSING = "WALLET_ALREADY_PROCESSING", t.WALLET_CONNECT_REJECTED = "WALLET_CONNECT_REJECTED", t.WALLET_REQUEST_REJECTED = "WALLET_REQUEST_REJECTED", t.WALLET_CONNECTION_FAILED = "WALLET_CONNECTION_FAILED", t.WALLET_CONNECTION_TIMEOUT = "WALLET_CONNECTION_TIMEOUT", t.TRANSACTION_CREATION_FAILED = "TRANSACTION_CREATION_FAILED", t.TRANSACTION_NOT_FOUND = "TRANSACTION_NOT_FOUND", t.CLOSED_WALLETCONNECT_MODAL = "CLOSED_WALLETCONNECT_MODAL", t.PROJECT_ID_IS_REQUIRED = "PROJECT_ID_IS_REQUIRED", t.METADATA_IS_REQUIRED = "METADATA_IS_REQUIRED", t.CONFIG_IS_REQUIRED = "CONFIG_IS_REQUIRED", t))(cn || {}),
|
|
20
|
+
var Rg = /* @__PURE__ */ ((t) => (t.INCOMING = "INCOMING", t.OUTGOING = "OUTGOING", t))(Rg || {}), Ha = /* @__PURE__ */ ((t) => (t.GENERAL = "GENERAL", t.CONTRACT = "CONTRACT", t.COIN = "COIN", t.TOKEN = "TOKEN", t.NFT = "NFT", t))(Ha || {}), un = /* @__PURE__ */ ((t) => (t.FAILED = "FAILED", t.PENDING = "PENDING", t.CONFIRMED = "CONFIRMED", t))(un || {}), cn = /* @__PURE__ */ ((t) => (t.RPC_TIMEOUT = "RPC_TIMEOUT", t.RPC_REQUEST_ERROR = "RPC_REQUEST_ERROR", t.RPC_ACCESS_DENIED = "RPC_ACCESS_DENIED", t.WS_URL_NOT_DEFINED = "WS_URL_NOT_DEFINED", t.WS_CONNECTION_FAILED = "WS_CONNECTION_FAILED", t.UNACCEPTED_CHAIN = "UNACCEPTED_CHAIN", t.UNAUTHORIZED_ADDRESS = "UNAUTHORIZED_ADDRESS", t.INSUFFICIENT_BALANCE = "INSUFFICIENT_BALANCE", t.INVALID_AMOUNT = "INVALID_AMOUNT", t.INVALID_ADDRESS = "INVALID_ADDRESS", t.INVALID_PRIVATE_KEY = "INVALID_PRIVATE_KEY", t.INVALID_PUBLIC_KEY = "INVALID_PUBLIC_KEY", t.INVALID_TRANSACTION_ID = "INVALID_TRANSACTION_ID", t.PROVIDER_IS_REQUIRED = "PROVIDER_IS_REQUIRED", t.PROVIDER_IS_NOT_INITIALIZED = "PROVIDER_IS_NOT_INITIALIZED", t.PROVIDER_IS_ALREADY_INITIALIZED = "PROVIDER_IS_ALREADY_INITIALIZED", t.WALLET_ALREADY_PROCESSING = "WALLET_ALREADY_PROCESSING", t.WALLET_CONNECT_REJECTED = "WALLET_CONNECT_REJECTED", t.WALLET_REQUEST_REJECTED = "WALLET_REQUEST_REJECTED", t.WALLET_CONNECTION_FAILED = "WALLET_CONNECTION_FAILED", t.WALLET_CONNECTION_TIMEOUT = "WALLET_CONNECTION_TIMEOUT", t.TRANSACTION_CREATION_FAILED = "TRANSACTION_CREATION_FAILED", t.TRANSACTION_NOT_FOUND = "TRANSACTION_NOT_FOUND", t.CLOSED_WALLETCONNECT_MODAL = "CLOSED_WALLETCONNECT_MODAL", t.PROJECT_ID_IS_REQUIRED = "PROJECT_ID_IS_REQUIRED", t.METADATA_IS_REQUIRED = "METADATA_IS_REQUIRED", t.CONFIG_IS_REQUIRED = "CONFIG_IS_REQUIRED", t))(cn || {}), eu = /* @__PURE__ */ ((t) => (t.BROWSER = "BROWSER", t.MOBILE = "MOBILE", t.DESKTOP = "DESKTOP", t.UNIVERSAL = "UNIVERSAL", t))(eu || {});
|
|
21
21
|
const u8 = {
|
|
22
22
|
[Ha.GENERAL]: "generalProcess",
|
|
23
23
|
[Ha.CONTRACT]: "contractProcess",
|
|
@@ -31,7 +31,7 @@ const u8 = {
|
|
|
31
31
|
TransactionListenerProcessIndex: u8,
|
|
32
32
|
TransactionStatusEnum: un,
|
|
33
33
|
TransactionTypeEnum: Ha,
|
|
34
|
-
WalletPlatformEnum:
|
|
34
|
+
WalletPlatformEnum: eu
|
|
35
35
|
}, Symbol.toStringTag, { value: "Module" })), C0 = globalThis || void 0 || self;
|
|
36
36
|
function c8(t, e) {
|
|
37
37
|
return function() {
|
|
@@ -2155,7 +2155,7 @@ function X3(t) {
|
|
|
2155
2155
|
});
|
|
2156
2156
|
}
|
|
2157
2157
|
const J3 = (t) => t instanceof oa ? { ...t } : t;
|
|
2158
|
-
function
|
|
2158
|
+
function tu(t, e) {
|
|
2159
2159
|
e = e || {};
|
|
2160
2160
|
const r = {};
|
|
2161
2161
|
function n(_, E, A) {
|
|
@@ -2297,7 +2297,7 @@ class td {
|
|
|
2297
2297
|
}
|
|
2298
2298
|
}
|
|
2299
2299
|
_request(e, r) {
|
|
2300
|
-
typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r =
|
|
2300
|
+
typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = tu(this.defaults, r);
|
|
2301
2301
|
const { transitional: n, paramsSerializer: s, headers: i } = r;
|
|
2302
2302
|
n !== void 0 && Ib.assertOptions(n, {
|
|
2303
2303
|
silentJSONParsing: Ba.transitional(Ba.boolean),
|
|
@@ -2356,14 +2356,14 @@ class td {
|
|
|
2356
2356
|
return E;
|
|
2357
2357
|
}
|
|
2358
2358
|
getUri(e) {
|
|
2359
|
-
e =
|
|
2359
|
+
e = tu(this.defaults, e);
|
|
2360
2360
|
const r = M8(e.baseURL, e.url);
|
|
2361
2361
|
return A8(r, e.params, e.paramsSerializer);
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
2364
|
De.forEach(["delete", "get", "head", "options"], function(e) {
|
|
2365
2365
|
td.prototype[e] = function(r, n) {
|
|
2366
|
-
return this.request(
|
|
2366
|
+
return this.request(tu(n || {}, {
|
|
2367
2367
|
method: e,
|
|
2368
2368
|
url: r,
|
|
2369
2369
|
data: (n || {}).data
|
|
@@ -2373,7 +2373,7 @@ De.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
2373
2373
|
De.forEach(["post", "put", "patch"], function(e) {
|
|
2374
2374
|
function r(n) {
|
|
2375
2375
|
return function(i, f, l) {
|
|
2376
|
-
return this.request(
|
|
2376
|
+
return this.request(tu(l || {}, {
|
|
2377
2377
|
method: e,
|
|
2378
2378
|
headers: n ? {
|
|
2379
2379
|
"Content-Type": "multipart/form-data"
|
|
@@ -2535,7 +2535,7 @@ const EP = Mb;
|
|
|
2535
2535
|
function O8(t) {
|
|
2536
2536
|
const e = new L0(t), r = c8(L0.prototype.request, e);
|
|
2537
2537
|
return De.extend(r, L0.prototype, e, { allOwnKeys: !0 }), De.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
|
|
2538
|
-
return O8(
|
|
2538
|
+
return O8(tu(t, s));
|
|
2539
2539
|
}, r;
|
|
2540
2540
|
}
|
|
2541
2541
|
const ir = O8(Cg);
|
|
@@ -2552,7 +2552,7 @@ ir.all = function(e) {
|
|
|
2552
2552
|
};
|
|
2553
2553
|
ir.spread = xP;
|
|
2554
2554
|
ir.isAxiosError = SP;
|
|
2555
|
-
ir.mergeConfig =
|
|
2555
|
+
ir.mergeConfig = tu;
|
|
2556
2556
|
ir.AxiosHeaders = oa;
|
|
2557
2557
|
ir.formToJSON = (t) => E8(De.isHTMLForm(t) ? new FormData(t) : t);
|
|
2558
2558
|
ir.getAdapter = R8.getAdapter;
|
|
@@ -3491,7 +3491,7 @@ class Nt {
|
|
|
3491
3491
|
return fa.create(this, this._def);
|
|
3492
3492
|
}
|
|
3493
3493
|
nullable() {
|
|
3494
|
-
return
|
|
3494
|
+
return Ho.create(this, this._def);
|
|
3495
3495
|
}
|
|
3496
3496
|
nullish() {
|
|
3497
3497
|
return this.nullable().optional();
|
|
@@ -3500,7 +3500,7 @@ class Nt {
|
|
|
3500
3500
|
return Ji.create(this, this._def);
|
|
3501
3501
|
}
|
|
3502
3502
|
promise() {
|
|
3503
|
-
return
|
|
3503
|
+
return nu.create(this, this._def);
|
|
3504
3504
|
}
|
|
3505
3505
|
or(e) {
|
|
3506
3506
|
return Fc.create([this, e], this._def);
|
|
@@ -4190,7 +4190,7 @@ Lc.create = (t) => new Lc({
|
|
|
4190
4190
|
coerce: (t == null ? void 0 : t.coerce) || !1,
|
|
4191
4191
|
...Rt(t)
|
|
4192
4192
|
});
|
|
4193
|
-
class
|
|
4193
|
+
class Uo extends Nt {
|
|
4194
4194
|
_parse(e) {
|
|
4195
4195
|
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== rt.date) {
|
|
4196
4196
|
const i = this._getOrReturnCtx(e);
|
|
@@ -4230,7 +4230,7 @@ class Do extends Nt {
|
|
|
4230
4230
|
};
|
|
4231
4231
|
}
|
|
4232
4232
|
_addCheck(e) {
|
|
4233
|
-
return new
|
|
4233
|
+
return new Uo({
|
|
4234
4234
|
...this._def,
|
|
4235
4235
|
checks: [...this._def.checks, e]
|
|
4236
4236
|
});
|
|
@@ -4262,7 +4262,7 @@ class Do extends Nt {
|
|
|
4262
4262
|
return e != null ? new Date(e) : null;
|
|
4263
4263
|
}
|
|
4264
4264
|
}
|
|
4265
|
-
|
|
4265
|
+
Uo.create = (t) => new Uo({
|
|
4266
4266
|
checks: [],
|
|
4267
4267
|
coerce: (t == null ? void 0 : t.coerce) || !1,
|
|
4268
4268
|
typeName: wt.ZodDate,
|
|
@@ -4319,7 +4319,7 @@ Uc.create = (t) => new Uc({
|
|
|
4319
4319
|
typeName: wt.ZodNull,
|
|
4320
4320
|
...Rt(t)
|
|
4321
4321
|
});
|
|
4322
|
-
class
|
|
4322
|
+
class ru extends Nt {
|
|
4323
4323
|
constructor() {
|
|
4324
4324
|
super(...arguments), this._any = !0;
|
|
4325
4325
|
}
|
|
@@ -4327,7 +4327,7 @@ class tu extends Nt {
|
|
|
4327
4327
|
return Bn(e.data);
|
|
4328
4328
|
}
|
|
4329
4329
|
}
|
|
4330
|
-
|
|
4330
|
+
ru.create = (t) => new ru({
|
|
4331
4331
|
typeName: wt.ZodAny,
|
|
4332
4332
|
...Rt(t)
|
|
4333
4333
|
});
|
|
@@ -4447,12 +4447,12 @@ Ji.create = (t, e) => new Ji({
|
|
|
4447
4447
|
typeName: wt.ZodArray,
|
|
4448
4448
|
...Rt(e)
|
|
4449
4449
|
});
|
|
4450
|
-
function
|
|
4450
|
+
function kf(t) {
|
|
4451
4451
|
if (t instanceof pr) {
|
|
4452
4452
|
const e = {};
|
|
4453
4453
|
for (const r in t.shape) {
|
|
4454
4454
|
const n = t.shape[r];
|
|
4455
|
-
e[r] = fa.create(
|
|
4455
|
+
e[r] = fa.create(kf(n));
|
|
4456
4456
|
}
|
|
4457
4457
|
return new pr({
|
|
4458
4458
|
...t._def,
|
|
@@ -4461,8 +4461,8 @@ function Cf(t) {
|
|
|
4461
4461
|
} else
|
|
4462
4462
|
return t instanceof Ji ? new Ji({
|
|
4463
4463
|
...t._def,
|
|
4464
|
-
type:
|
|
4465
|
-
}) : t instanceof fa ? fa.create(
|
|
4464
|
+
type: kf(t.element)
|
|
4465
|
+
}) : t instanceof fa ? fa.create(kf(t.unwrap())) : t instanceof Ho ? Ho.create(kf(t.unwrap())) : t instanceof Is ? Is.create(t.items.map((e) => kf(e))) : t;
|
|
4466
4466
|
}
|
|
4467
4467
|
class pr extends Nt {
|
|
4468
4468
|
constructor() {
|
|
@@ -4699,7 +4699,7 @@ class pr extends Nt {
|
|
|
4699
4699
|
* @deprecated
|
|
4700
4700
|
*/
|
|
4701
4701
|
deepPartial() {
|
|
4702
|
-
return
|
|
4702
|
+
return kf(this);
|
|
4703
4703
|
}
|
|
4704
4704
|
partial(e) {
|
|
4705
4705
|
const r = {};
|
|
@@ -5091,7 +5091,7 @@ yd.create = (t, e, r) => new yd({
|
|
|
5091
5091
|
typeName: wt.ZodMap,
|
|
5092
5092
|
...Rt(r)
|
|
5093
5093
|
});
|
|
5094
|
-
class
|
|
5094
|
+
class Fo extends Nt {
|
|
5095
5095
|
_parse(e) {
|
|
5096
5096
|
const { status: r, ctx: n } = this._processInputParams(e);
|
|
5097
5097
|
if (n.parsedType !== rt.set)
|
|
@@ -5130,13 +5130,13 @@ class Uo extends Nt {
|
|
|
5130
5130
|
return n.common.async ? Promise.all(l).then((g) => f(g)) : f(l);
|
|
5131
5131
|
}
|
|
5132
5132
|
min(e, r) {
|
|
5133
|
-
return new
|
|
5133
|
+
return new Fo({
|
|
5134
5134
|
...this._def,
|
|
5135
5135
|
minSize: { value: e, message: bt.toString(r) }
|
|
5136
5136
|
});
|
|
5137
5137
|
}
|
|
5138
5138
|
max(e, r) {
|
|
5139
|
-
return new
|
|
5139
|
+
return new Fo({
|
|
5140
5140
|
...this._def,
|
|
5141
5141
|
maxSize: { value: e, message: bt.toString(r) }
|
|
5142
5142
|
});
|
|
@@ -5148,14 +5148,14 @@ class Uo extends Nt {
|
|
|
5148
5148
|
return this.min(1, e);
|
|
5149
5149
|
}
|
|
5150
5150
|
}
|
|
5151
|
-
|
|
5151
|
+
Fo.create = (t, e) => new Fo({
|
|
5152
5152
|
valueType: t,
|
|
5153
5153
|
minSize: null,
|
|
5154
5154
|
maxSize: null,
|
|
5155
5155
|
typeName: wt.ZodSet,
|
|
5156
5156
|
...Rt(e)
|
|
5157
5157
|
});
|
|
5158
|
-
class
|
|
5158
|
+
class Kf extends Nt {
|
|
5159
5159
|
constructor() {
|
|
5160
5160
|
super(...arguments), this.validate = this.implement;
|
|
5161
5161
|
}
|
|
@@ -5200,7 +5200,7 @@ class jf extends Nt {
|
|
|
5200
5200
|
});
|
|
5201
5201
|
}
|
|
5202
5202
|
const i = { errorMap: r.common.contextualErrorMap }, f = r.data;
|
|
5203
|
-
if (this._def.returns instanceof
|
|
5203
|
+
if (this._def.returns instanceof nu) {
|
|
5204
5204
|
const l = this;
|
|
5205
5205
|
return Bn(async function(...g) {
|
|
5206
5206
|
const _ = new Xi([]), E = await l._def.args.parseAsync(g, i).catch((O) => {
|
|
@@ -5230,13 +5230,13 @@ class jf extends Nt {
|
|
|
5230
5230
|
return this._def.returns;
|
|
5231
5231
|
}
|
|
5232
5232
|
args(...e) {
|
|
5233
|
-
return new
|
|
5233
|
+
return new Kf({
|
|
5234
5234
|
...this._def,
|
|
5235
5235
|
args: Is.create(e).rest(To.create())
|
|
5236
5236
|
});
|
|
5237
5237
|
}
|
|
5238
5238
|
returns(e) {
|
|
5239
|
-
return new
|
|
5239
|
+
return new Kf({
|
|
5240
5240
|
...this._def,
|
|
5241
5241
|
returns: e
|
|
5242
5242
|
});
|
|
@@ -5248,7 +5248,7 @@ class jf extends Nt {
|
|
|
5248
5248
|
return this.parse(e);
|
|
5249
5249
|
}
|
|
5250
5250
|
static create(e, r, n) {
|
|
5251
|
-
return new
|
|
5251
|
+
return new Kf({
|
|
5252
5252
|
args: e || Is.create([]).rest(To.create()),
|
|
5253
5253
|
returns: r || To.create(),
|
|
5254
5254
|
typeName: wt.ZodFunction,
|
|
@@ -5377,7 +5377,7 @@ Kc.create = (t, e) => new Kc({
|
|
|
5377
5377
|
typeName: wt.ZodNativeEnum,
|
|
5378
5378
|
...Rt(e)
|
|
5379
5379
|
});
|
|
5380
|
-
class
|
|
5380
|
+
class nu extends Nt {
|
|
5381
5381
|
unwrap() {
|
|
5382
5382
|
return this._def.type;
|
|
5383
5383
|
}
|
|
@@ -5396,7 +5396,7 @@ class ru extends Nt {
|
|
|
5396
5396
|
})));
|
|
5397
5397
|
}
|
|
5398
5398
|
}
|
|
5399
|
-
|
|
5399
|
+
nu.create = (t, e) => new nu({
|
|
5400
5400
|
type: t,
|
|
5401
5401
|
typeName: wt.ZodPromise,
|
|
5402
5402
|
...Rt(e)
|
|
@@ -5494,7 +5494,7 @@ fa.create = (t, e) => new fa({
|
|
|
5494
5494
|
typeName: wt.ZodOptional,
|
|
5495
5495
|
...Rt(e)
|
|
5496
5496
|
});
|
|
5497
|
-
class
|
|
5497
|
+
class Ho extends Nt {
|
|
5498
5498
|
_parse(e) {
|
|
5499
5499
|
return this._getType(e) === rt.null ? Bn(null) : this._def.innerType._parse(e);
|
|
5500
5500
|
}
|
|
@@ -5502,7 +5502,7 @@ class Fo extends Nt {
|
|
|
5502
5502
|
return this._def.innerType;
|
|
5503
5503
|
}
|
|
5504
5504
|
}
|
|
5505
|
-
|
|
5505
|
+
Ho.create = (t, e) => new Ho({
|
|
5506
5506
|
innerType: t,
|
|
5507
5507
|
typeName: wt.ZodNullable,
|
|
5508
5508
|
...Rt(e)
|
|
@@ -5652,13 +5652,13 @@ Ad.create = (t, e) => new Ad({
|
|
|
5652
5652
|
typeName: wt.ZodReadonly,
|
|
5653
5653
|
...Rt(e)
|
|
5654
5654
|
});
|
|
5655
|
-
const q8 = (t, e = {}, r) => t ?
|
|
5655
|
+
const q8 = (t, e = {}, r) => t ? ru.create().superRefine((n, s) => {
|
|
5656
5656
|
var i, f;
|
|
5657
5657
|
if (!t(n)) {
|
|
5658
5658
|
const l = typeof e == "function" ? e(n) : typeof e == "string" ? { message: e } : e, g = (f = (i = l.fatal) !== null && i !== void 0 ? i : r) !== null && f !== void 0 ? f : !0, _ = typeof l == "string" ? { message: l } : l;
|
|
5659
5659
|
s.addIssue({ code: "custom", ..._, fatal: g });
|
|
5660
5660
|
}
|
|
5661
|
-
}) :
|
|
5661
|
+
}) : ru.create(), FB = {
|
|
5662
5662
|
object: pr.lazycreate
|
|
5663
5663
|
};
|
|
5664
5664
|
var wt;
|
|
@@ -5667,7 +5667,7 @@ var wt;
|
|
|
5667
5667
|
})(wt || (wt = {}));
|
|
5668
5668
|
const HB = (t, e = {
|
|
5669
5669
|
message: `Input not instance of ${t.name}`
|
|
5670
|
-
}) => q8((r) => r instanceof t, e), z8 = Zi.create, j8 = Wa.create, qB = _d.create, zB = Ga.create, K8 = Lc.create, jB =
|
|
5670
|
+
}) => q8((r) => r instanceof t, e), z8 = Zi.create, j8 = Wa.create, qB = _d.create, zB = Ga.create, K8 = Lc.create, jB = Uo.create, KB = gd.create, VB = Dc.create, WB = Uc.create, GB = ru.create, $B = To.create, ZB = ca.create, XB = md.create, JB = Ji.create, YB = pr.create, QB = pr.strictCreate, eC = Fc.create, tC = ol.create, rC = Hc.create, nC = Is.create, iC = qc.create, sC = yd.create, aC = Fo.create, oC = Kf.create, fC = zc.create, uC = jc.create, cC = $a.create, hC = Kc.create, dC = nu.create, i6 = Yi.create, lC = fa.create, pC = Ho.create, vC = Yi.createWithPreprocess, bC = sh.create, gC = () => z8().optional(), mC = () => j8().optional(), yC = () => K8().optional(), wC = {
|
|
5671
5671
|
string: (t) => Zi.create({ ...t, coerce: !0 }),
|
|
5672
5672
|
number: (t) => Wa.create({ ...t, coerce: !0 }),
|
|
5673
5673
|
boolean: (t) => Lc.create({
|
|
@@ -5675,7 +5675,7 @@ const HB = (t, e = {
|
|
|
5675
5675
|
coerce: !0
|
|
5676
5676
|
}),
|
|
5677
5677
|
bigint: (t) => Ga.create({ ...t, coerce: !0 }),
|
|
5678
|
-
date: (t) =>
|
|
5678
|
+
date: (t) => Uo.create({ ...t, coerce: !0 })
|
|
5679
5679
|
}, _C = xt;
|
|
5680
5680
|
var ds = /* @__PURE__ */ Object.freeze({
|
|
5681
5681
|
__proto__: null,
|
|
@@ -5706,11 +5706,11 @@ var ds = /* @__PURE__ */ Object.freeze({
|
|
|
5706
5706
|
ZodNumber: Wa,
|
|
5707
5707
|
ZodBigInt: Ga,
|
|
5708
5708
|
ZodBoolean: Lc,
|
|
5709
|
-
ZodDate:
|
|
5709
|
+
ZodDate: Uo,
|
|
5710
5710
|
ZodSymbol: gd,
|
|
5711
5711
|
ZodUndefined: Dc,
|
|
5712
5712
|
ZodNull: Uc,
|
|
5713
|
-
ZodAny:
|
|
5713
|
+
ZodAny: ru,
|
|
5714
5714
|
ZodUnknown: To,
|
|
5715
5715
|
ZodNever: ca,
|
|
5716
5716
|
ZodVoid: md,
|
|
@@ -5722,17 +5722,17 @@ var ds = /* @__PURE__ */ Object.freeze({
|
|
|
5722
5722
|
ZodTuple: Is,
|
|
5723
5723
|
ZodRecord: qc,
|
|
5724
5724
|
ZodMap: yd,
|
|
5725
|
-
ZodSet:
|
|
5726
|
-
ZodFunction:
|
|
5725
|
+
ZodSet: Fo,
|
|
5726
|
+
ZodFunction: Kf,
|
|
5727
5727
|
ZodLazy: zc,
|
|
5728
5728
|
ZodLiteral: jc,
|
|
5729
5729
|
ZodEnum: $a,
|
|
5730
5730
|
ZodNativeEnum: Kc,
|
|
5731
|
-
ZodPromise:
|
|
5731
|
+
ZodPromise: nu,
|
|
5732
5732
|
ZodEffects: Yi,
|
|
5733
5733
|
ZodTransformer: Yi,
|
|
5734
5734
|
ZodOptional: fa,
|
|
5735
|
-
ZodNullable:
|
|
5735
|
+
ZodNullable: Ho,
|
|
5736
5736
|
ZodDefault: Vc,
|
|
5737
5737
|
ZodCatch: wd,
|
|
5738
5738
|
ZodNaN: _d,
|
|
@@ -5803,7 +5803,7 @@ ${this._compileErrors().join(`
|
|
|
5803
5803
|
return this.errors.map(AC);
|
|
5804
5804
|
}
|
|
5805
5805
|
}
|
|
5806
|
-
const xC = ["bool", "int", "uint", "bytes", "string", "address", "tuple"], V8 = (t) => typeof t == "object" && "type" in t && "name" in t, SC = (t) => typeof t == "string", zn = (t) => typeof t == "string" && /^((-)?0x[0-9a-f]+|(0x))$/i.test(t), s6 = (t) => typeof t == "number" || typeof t == "bigint" || typeof t == "string" && /^((-0x|0x|-)?[0-9a-f]+|(0x))$/i.test(t), EC = ["hex", "number", "blockNumber", "blockNumberOrTag", "filter", "bloom"],
|
|
5806
|
+
const xC = ["bool", "int", "uint", "bytes", "string", "address", "tuple"], V8 = (t) => typeof t == "object" && "type" in t && "name" in t, SC = (t) => typeof t == "string", zn = (t) => typeof t == "string" && /^((-)?0x[0-9a-f]+|(0x))$/i.test(t), s6 = (t) => typeof t == "number" || typeof t == "bigint" || typeof t == "string" && /^((-0x|0x|-)?[0-9a-f]+|(0x))$/i.test(t), EC = ["hex", "number", "blockNumber", "blockNumberOrTag", "filter", "bloom"], ef = (t) => {
|
|
5807
5807
|
let e = t.replace(/ /, ""), r, n = !1, s = [];
|
|
5808
5808
|
if (t.includes("[") && (e = e.slice(0, e.indexOf("[")), s = [...t.matchAll(/(?:\[(\d*)\])/g)].map((i) => parseInt(i[1], 10)).map((i) => Number.isNaN(i) ? -1 : i), n = s.length > 0), xC.includes(e))
|
|
5809
5809
|
return { baseType: e, isArray: n, baseTypeSize: r, arraySizes: s };
|
|
@@ -5827,7 +5827,7 @@ const xC = ["bool", "int", "uint", "bytes", "string", "address", "tuple"], V8 =
|
|
|
5827
5827
|
schemaPath: ""
|
|
5828
5828
|
}
|
|
5829
5829
|
]);
|
|
5830
|
-
const { baseType: n, baseTypeSize: s } =
|
|
5830
|
+
const { baseType: n, baseTypeSize: s } = ef(t);
|
|
5831
5831
|
if (!n && !EC.includes(t))
|
|
5832
5832
|
throw new xd([
|
|
5833
5833
|
{
|
|
@@ -5854,7 +5854,7 @@ const xC = ["bool", "int", "uint", "bytes", "string", "address", "tuple"], V8 =
|
|
|
5854
5854
|
for (const [n, s] of t.entries()) {
|
|
5855
5855
|
let i, f, l = [];
|
|
5856
5856
|
V8(s) ? (i = s.type, f = s.name, l = s.components) : typeof s == "string" ? (i = s, f = `${e}/${n}`) : Array.isArray(s) && (s[0] && typeof s[0] == "string" && s[0].startsWith("tuple") && !Array.isArray(s[0]) && s[1] && Array.isArray(s[1]) ? (i = s[0], f = `${e}/${n}`, l = s[1]) : (i = "tuple", f = `${e}/${n}`, l = s));
|
|
5857
|
-
const { baseType: g, isArray: _, arraySizes: E } =
|
|
5857
|
+
const { baseType: g, isArray: _, arraySizes: E } = ef(i);
|
|
5858
5858
|
let A, x = r;
|
|
5859
5859
|
for (let O = E.length - 1; O > 0; O -= 1)
|
|
5860
5860
|
A = {
|
|
@@ -5894,7 +5894,7 @@ const xC = ["bool", "int", "uint", "bytes", "string", "address", "tuple"], V8 =
|
|
|
5894
5894
|
for (const [s, i] of t.entries()) {
|
|
5895
5895
|
let f, l, g = [];
|
|
5896
5896
|
V8(i) ? (f = i.type, l = i.name, g = i.components) : typeof i == "string" ? f = i : Array.isArray(i) && (i[1] && Array.isArray(i[1]) ? (f = i[0], g = i[1]) : (f = "tuple", g = i));
|
|
5897
|
-
const { baseType: _, isArray: E, arraySizes: A } =
|
|
5897
|
+
const { baseType: _, isArray: E, arraySizes: A } = ef(f), x = Array.isArray(e) ? e[s] : e[l];
|
|
5898
5898
|
if (_ === "tuple" && !E)
|
|
5899
5899
|
n.push(U0(g, x, r));
|
|
5900
5900
|
else if (_ === "tuple" && E) {
|
|
@@ -5995,7 +5995,7 @@ const RC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5995
5995
|
hexToUint8Array: zg,
|
|
5996
5996
|
numberToHex: fl,
|
|
5997
5997
|
padLeft: MC,
|
|
5998
|
-
parseBaseType:
|
|
5998
|
+
parseBaseType: ef,
|
|
5999
5999
|
transformJsonDataToAbiFormat: U0,
|
|
6000
6000
|
uint8ArrayToHexString: qg
|
|
6001
6001
|
}, Symbol.toStringTag, { value: "Module" })), kb = (t) => {
|
|
@@ -6018,7 +6018,7 @@ const RC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6018
6018
|
} else
|
|
6019
6019
|
r = t;
|
|
6020
6020
|
if (e != null && e.abiType) {
|
|
6021
|
-
const { baseTypeSize: n } =
|
|
6021
|
+
const { baseTypeSize: n } = ef(e.abiType);
|
|
6022
6022
|
return n ? r.length === n : !0;
|
|
6023
6023
|
}
|
|
6024
6024
|
return e != null && e.size ? r.length === (e == null ? void 0 : e.size) : !0;
|
|
@@ -6066,7 +6066,7 @@ const Lb = (t, e) => {
|
|
|
6066
6066
|
return !1;
|
|
6067
6067
|
let r;
|
|
6068
6068
|
if (e != null && e.abiType) {
|
|
6069
|
-
const { baseTypeSize: s } =
|
|
6069
|
+
const { baseTypeSize: s } = ef(e.abiType);
|
|
6070
6070
|
s && (r = s);
|
|
6071
6071
|
} else
|
|
6072
6072
|
e.bitSize && (r = e.bitSize);
|
|
@@ -6084,7 +6084,7 @@ const Lb = (t, e) => {
|
|
|
6084
6084
|
return !1;
|
|
6085
6085
|
let r;
|
|
6086
6086
|
if (e != null && e.abiType) {
|
|
6087
|
-
const { baseTypeSize: i, baseType: f } =
|
|
6087
|
+
const { baseTypeSize: i, baseType: f } = ef(e.abiType);
|
|
6088
6088
|
if (f !== "int")
|
|
6089
6089
|
return !1;
|
|
6090
6090
|
i && (r = i);
|
|
@@ -6097,7 +6097,7 @@ const Lb = (t, e) => {
|
|
|
6097
6097
|
} catch {
|
|
6098
6098
|
return !1;
|
|
6099
6099
|
}
|
|
6100
|
-
}, OC = (t) => !!(Gc(t) || typeof t == "string" && /[0-9.]/.test(t) && t.indexOf(".") === t.lastIndexOf(".") || typeof t == "number"), Z8 = (t) => Wc(t), X8 = (t) => Object.values(Nb).includes(t), Db = (t) => X8(t) || Z8(t), PC = (t) => typeof t != "string" || !/^(0x)?[0-9a-f]{512}$/i.test(t) ? !1 : !!(/^(0x)?[0-9a-f]{512}$/.test(t) || /^(0x)?[0-9A-F]{512}$/.test(t)), BC = (t) => ["number", "string", "boolean"].includes(typeof t) ? typeof t == "boolean" ? !0 : typeof t == "string" && !zn(t) ? t === "1" || t === "0" : typeof t == "string" && zn(t) ? t === "0x1" || t === "0x0" : t === 1 || t === 0 : !1,
|
|
6100
|
+
}, OC = (t) => !!(Gc(t) || typeof t == "string" && /[0-9.]/.test(t) && t.indexOf(".") === t.lastIndexOf(".") || typeof t == "number"), Z8 = (t) => Wc(t), X8 = (t) => Object.values(Nb).includes(t), Db = (t) => X8(t) || Z8(t), PC = (t) => typeof t != "string" || !/^(0x)?[0-9a-f]{512}$/i.test(t) ? !1 : !!(/^(0x)?[0-9a-f]{512}$/.test(t) || /^(0x)?[0-9A-F]{512}$/.test(t)), BC = (t) => ["number", "string", "boolean"].includes(typeof t) ? typeof t == "boolean" ? !0 : typeof t == "string" && !zn(t) ? t === "1" || t === "0" : typeof t == "string" && zn(t) ? t === "0x1" || t === "0x0" : t === 1 || t === 0 : !1, Tf = (t) => (
|
|
6101
6101
|
// Using "null" value intentionally for validation
|
|
6102
6102
|
// eslint-disable-next-line no-null/no-null
|
|
6103
6103
|
t == null
|
|
@@ -6109,17 +6109,17 @@ const Lb = (t, e) => {
|
|
|
6109
6109
|
"topics",
|
|
6110
6110
|
"blockHash"
|
|
6111
6111
|
];
|
|
6112
|
-
if (
|
|
6112
|
+
if (Tf(t) || typeof t != "object" || !Object.keys(t).every((r) => e.includes(r)) || !Tf(t.fromBlock) && !Db(t.fromBlock) || !Tf(t.toBlock) && !Db(t.toBlock))
|
|
6113
6113
|
return !1;
|
|
6114
|
-
if (!
|
|
6114
|
+
if (!Tf(t.address)) {
|
|
6115
6115
|
if (Array.isArray(t.address)) {
|
|
6116
6116
|
if (!t.address.every((r) => Ed(r)))
|
|
6117
6117
|
return !1;
|
|
6118
6118
|
} else if (!Ed(t.address))
|
|
6119
6119
|
return !1;
|
|
6120
6120
|
}
|
|
6121
|
-
return !(!
|
|
6122
|
-
},
|
|
6121
|
+
return !(!Tf(t.topics) && !t.topics.every((r) => Tf(r) ? !0 : Array.isArray(r) ? r.every((n) => f6(n)) : !!f6(r)));
|
|
6122
|
+
}, qo = {
|
|
6123
6123
|
address: (t) => Ed(t),
|
|
6124
6124
|
bloom: (t) => PC(t),
|
|
6125
6125
|
blockNumber: (t) => Z8(t),
|
|
@@ -6135,10 +6135,10 @@ const Lb = (t, e) => {
|
|
|
6135
6135
|
string: (t) => SC(t)
|
|
6136
6136
|
};
|
|
6137
6137
|
for (let t = 8; t <= 256; t += 8)
|
|
6138
|
-
|
|
6138
|
+
qo[`int${t}`] = (e) => Gc(e, { bitSize: t }), qo[`uint${t}`] = (e) => Wc(e, { bitSize: t });
|
|
6139
6139
|
for (let t = 1; t <= 32; t += 1)
|
|
6140
|
-
|
|
6141
|
-
|
|
6140
|
+
qo[`bytes${t}`] = (e) => $8(e, { size: t });
|
|
6141
|
+
qo.bytes256 = qo.bytes;
|
|
6142
6142
|
const Sc = (t) => {
|
|
6143
6143
|
if ((!(t != null && t.type) || (t == null ? void 0 : t.type) === "object") && (t != null && t.properties)) {
|
|
6144
6144
|
const e = {};
|
|
@@ -6162,18 +6162,18 @@ const Sc = (t) => {
|
|
|
6162
6162
|
if (t.oneOf && Array.isArray(t.oneOf))
|
|
6163
6163
|
return ds.union(t.oneOf.map((e) => Sc(e)));
|
|
6164
6164
|
if (t != null && t.format) {
|
|
6165
|
-
if (!
|
|
6165
|
+
if (!qo[t.format])
|
|
6166
6166
|
throw new xB(t.format);
|
|
6167
|
-
return ds.any().refine(
|
|
6167
|
+
return ds.any().refine(qo[t.format], (e) => ({
|
|
6168
6168
|
params: { value: e, format: t.format }
|
|
6169
6169
|
}));
|
|
6170
6170
|
}
|
|
6171
6171
|
return t != null && t.type && (t == null ? void 0 : t.type) !== "object" && typeof ds[String(t.type)] == "function" ? ds[String(t.type)]() : ds.object({ data: ds.any() }).partial();
|
|
6172
6172
|
};
|
|
6173
|
-
class
|
|
6173
|
+
class Df {
|
|
6174
6174
|
// eslint-disable-next-line no-useless-constructor, @typescript-eslint/no-empty-function
|
|
6175
6175
|
static factory() {
|
|
6176
|
-
return
|
|
6176
|
+
return Df.validatorInstance || (Df.validatorInstance = new Df()), Df.validatorInstance;
|
|
6177
6177
|
}
|
|
6178
6178
|
validate(e, r, n) {
|
|
6179
6179
|
var s, i;
|
|
@@ -6217,7 +6217,7 @@ class Lf {
|
|
|
6217
6217
|
}
|
|
6218
6218
|
class kC {
|
|
6219
6219
|
constructor() {
|
|
6220
|
-
this._validator =
|
|
6220
|
+
this._validator = Df.factory();
|
|
6221
6221
|
}
|
|
6222
6222
|
validateJSONSchema(e, r, n) {
|
|
6223
6223
|
return this._validator.validate(e, r, n);
|
|
@@ -7057,27 +7057,23 @@ const Ub = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", qC = (t
|
|
|
7057
7057
|
/**
|
|
7058
7058
|
* Network configuration of the provider
|
|
7059
7059
|
*/
|
|
7060
|
-
|
|
7060
|
+
At(this, "network");
|
|
7061
7061
|
/**
|
|
7062
7062
|
* API URL
|
|
7063
7063
|
*/
|
|
7064
|
-
|
|
7064
|
+
At(this, "api");
|
|
7065
7065
|
/**
|
|
7066
7066
|
* Explorer URL
|
|
7067
7067
|
*/
|
|
7068
|
-
|
|
7068
|
+
At(this, "explorer");
|
|
7069
7069
|
/**
|
|
7070
7070
|
* Websocket URL
|
|
7071
7071
|
*/
|
|
7072
|
-
|
|
7072
|
+
At(this, "wsUrl");
|
|
7073
7073
|
/**
|
|
7074
7074
|
* BlockCypher token
|
|
7075
7075
|
*/
|
|
7076
|
-
|
|
7077
|
-
/**
|
|
7078
|
-
* Default BlockCypher token
|
|
7079
|
-
*/
|
|
7080
|
-
_t(this, "defaultBlockCypherToken", "49d43a59a4f24d31a9731eb067ab971c");
|
|
7076
|
+
At(this, "blockCypherToken");
|
|
7081
7077
|
this.update(e);
|
|
7082
7078
|
}
|
|
7083
7079
|
/**
|
|
@@ -7131,13 +7127,7 @@ const Ub = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", qC = (t
|
|
|
7131
7127
|
update(e) {
|
|
7132
7128
|
this.network = e, ea._instance = this;
|
|
7133
7129
|
const r = this.network.testnet ?? !1;
|
|
7134
|
-
|
|
7135
|
-
this.api = "https://blockstream.info/testnet/api/", this.explorer = "https://blockstream.info/testnet/";
|
|
7136
|
-
const n = this.network.blockCypherToken ?? this.defaultBlockCypherToken;
|
|
7137
|
-
this.wsUrl = "wss://socket.blockcypher.com/v1/btc/test3?token=" + n;
|
|
7138
|
-
} else
|
|
7139
|
-
this.api = "https://blockstream.info/api/", this.explorer = "https://blockstream.info/", this.network.blockCypherToken !== void 0 ? this.wsUrl = "wss://socket.blockcypher.com/v1/btc/main?token=" + this.network.blockCypherToken : this.wsUrl = "wss://ws.blockchain.info/inv";
|
|
7140
|
-
this.network.rpcUrl = this.api, this.network.wsUrl = this.wsUrl;
|
|
7130
|
+
this.blockCypherToken = this.network.blockCypherToken, r ? (this.api = "https://blockstream.info/testnet/api/", this.explorer = "https://blockstream.info/testnet/", this.wsUrl = "wss://mempool.space/testnet/api/v1/ws") : (this.api = "https://blockstream.info/api/", this.explorer = "https://blockstream.info/", this.network.blockCypherToken !== void 0 ? this.wsUrl = "wss://socket.blockcypher.com/v1/btc/main?token=" + this.network.blockCypherToken : this.wsUrl = "wss://ws.blockchain.info/inv"), this.network.rpcUrl = this.api, this.network.wsUrl = this.wsUrl;
|
|
7141
7131
|
}
|
|
7142
7132
|
/**
|
|
7143
7133
|
* Create a new endpoint
|
|
@@ -7159,8 +7149,8 @@ const Ub = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", qC = (t
|
|
|
7159
7149
|
/**
|
|
7160
7150
|
* Static instance of the provider
|
|
7161
7151
|
*/
|
|
7162
|
-
|
|
7163
|
-
let
|
|
7152
|
+
At(ea, "_instance");
|
|
7153
|
+
let zo = ea;
|
|
7164
7154
|
const F1 = (t, e) => {
|
|
7165
7155
|
if (console.error("MultipleChain Bitcoin Wallet Error:", t), typeof t == "object") {
|
|
7166
7156
|
if (t.code === 4001 || String(t.message).includes("User rejected the request"))
|
|
@@ -7176,10 +7166,10 @@ class JC {
|
|
|
7176
7166
|
* @param provider - Network provider
|
|
7177
7167
|
*/
|
|
7178
7168
|
constructor(e, r) {
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
this.adapter = e, this.networkProvider = r ??
|
|
7169
|
+
At(this, "adapter");
|
|
7170
|
+
At(this, "walletProvider");
|
|
7171
|
+
At(this, "networkProvider");
|
|
7172
|
+
this.adapter = e, this.networkProvider = r ?? zo.instance;
|
|
7183
7173
|
}
|
|
7184
7174
|
/**
|
|
7185
7175
|
* @returns Wallet ID
|
|
@@ -7295,7 +7285,7 @@ const Wg = {
|
|
|
7295
7285
|
id: "unisat",
|
|
7296
7286
|
name: "UniSat",
|
|
7297
7287
|
icon: Wg.UniSat,
|
|
7298
|
-
platforms: [
|
|
7288
|
+
platforms: [eu.BROWSER],
|
|
7299
7289
|
downloadLink: "https://unisat.io/download",
|
|
7300
7290
|
isDetected: () => {
|
|
7301
7291
|
var t;
|
|
@@ -7410,7 +7400,7 @@ var _k = Array.prototype, Ak = Function.prototype, ul = Object.prototype, H1 = $
|
|
|
7410
7400
|
}(), i5 = Ak.toString, Iu = ul.hasOwnProperty, Xg = ul.toString, xk = RegExp(
|
|
7411
7401
|
"^" + i5.call(Iu).replace(sk, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
7412
7402
|
), d6 = $g.Symbol, Sk = n5(Object.getPrototypeOf, Object), Ek = ul.propertyIsEnumerable, Ik = _k.splice, l6 = d6 ? d6.isConcatSpreadable : void 0, Fb = Object.getOwnPropertySymbols, p6 = Math.max, Mk = a5($g, "Map"), $c = a5(Object, "create");
|
|
7413
|
-
function
|
|
7403
|
+
function jo(t) {
|
|
7414
7404
|
var e = -1, r = t ? t.length : 0;
|
|
7415
7405
|
for (this.clear(); ++e < r; ) {
|
|
7416
7406
|
var n = t[e];
|
|
@@ -7439,11 +7429,11 @@ function Bk(t, e) {
|
|
|
7439
7429
|
var r = this.__data__;
|
|
7440
7430
|
return r[t] = $c && e === void 0 ? Gg : e, this;
|
|
7441
7431
|
}
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7432
|
+
jo.prototype.clear = Rk;
|
|
7433
|
+
jo.prototype.delete = Tk;
|
|
7434
|
+
jo.prototype.get = Ok;
|
|
7435
|
+
jo.prototype.has = Pk;
|
|
7436
|
+
jo.prototype.set = Bk;
|
|
7447
7437
|
function Mu(t) {
|
|
7448
7438
|
var e = -1, r = t ? t.length : 0;
|
|
7449
7439
|
for (this.clear(); ++e < r; ) {
|
|
@@ -7486,9 +7476,9 @@ function Ru(t) {
|
|
|
7486
7476
|
}
|
|
7487
7477
|
function Uk() {
|
|
7488
7478
|
this.__data__ = {
|
|
7489
|
-
hash: new
|
|
7479
|
+
hash: new jo(),
|
|
7490
7480
|
map: new (Mk || Mu)(),
|
|
7491
|
-
string: new
|
|
7481
|
+
string: new jo()
|
|
7492
7482
|
};
|
|
7493
7483
|
}
|
|
7494
7484
|
function Fk(t) {
|
|
@@ -7839,20 +7829,20 @@ var b6, q1, w0, Qg = (b6 = function(t, e) {
|
|
|
7839
7829
|
Qg.bech32m;
|
|
7840
7830
|
Qg.bech32;
|
|
7841
7831
|
new Uint8Array(new Uint16Array([65279]).buffer)[0];
|
|
7842
|
-
var
|
|
7832
|
+
var Uf, Ff;
|
|
7843
7833
|
(function(t) {
|
|
7844
7834
|
t.mainnet = "mainnet", t.testnet = "testnet", t.regtest = "regtest";
|
|
7845
|
-
})(
|
|
7835
|
+
})(Uf || (Uf = {})), function(t) {
|
|
7846
7836
|
t.p2pkh = "p2pkh", t.p2sh = "p2sh", t.p2wpkh = "p2wpkh", t.p2wsh = "p2wsh", t.p2tr = "p2tr";
|
|
7847
|
-
}(
|
|
7848
|
-
|
|
7849
|
-
var dl = {},
|
|
7837
|
+
}(Ff || (Ff = {}));
|
|
7838
|
+
Ff.p2pkh, Uf.mainnet, Ff.p2pkh, Uf.testnet, Ff.p2sh, Uf.mainnet, Ff.p2sh, Uf.testnet;
|
|
7839
|
+
var dl = {}, iu = {}, Pn = {}, ah = {};
|
|
7850
7840
|
ah.byteLength = gN;
|
|
7851
7841
|
ah.toByteArray = yN;
|
|
7852
7842
|
ah.fromByteArray = AN;
|
|
7853
7843
|
var gs = [], wi = [], vN = typeof Uint8Array < "u" ? Uint8Array : Array, z1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
7854
|
-
for (var
|
|
7855
|
-
gs[
|
|
7844
|
+
for (var Of = 0, bN = z1.length; Of < bN; ++Of)
|
|
7845
|
+
gs[Of] = z1[Of], wi[z1.charCodeAt(Of)] = Of;
|
|
7856
7846
|
wi[45] = 62;
|
|
7857
7847
|
wi[95] = 63;
|
|
7858
7848
|
function d5(t) {
|
|
@@ -8133,7 +8123,7 @@ var oh = {};
|
|
|
8133
8123
|
const s = (i, f, l) => new n(i, f).update(l).digest();
|
|
8134
8124
|
t.hmac = s, t.hmac.create = (i, f) => new n(i, f);
|
|
8135
8125
|
})(b5);
|
|
8136
|
-
var
|
|
8126
|
+
var Ko = {}, vl = {};
|
|
8137
8127
|
Object.defineProperty(vl, "__esModule", { value: !0 });
|
|
8138
8128
|
vl.SHA2 = void 0;
|
|
8139
8129
|
const j1 = xn, cc = oh;
|
|
@@ -8194,8 +8184,8 @@ class RN extends cc.Hash {
|
|
|
8194
8184
|
}
|
|
8195
8185
|
}
|
|
8196
8186
|
vl.SHA2 = RN;
|
|
8197
|
-
Object.defineProperty(
|
|
8198
|
-
|
|
8187
|
+
Object.defineProperty(Ko, "__esModule", { value: !0 });
|
|
8188
|
+
Ko.sha224 = Ko.sha256 = void 0;
|
|
8199
8189
|
const TN = vl, yi = oh, ON = (t, e, r) => t & e ^ ~t & r, PN = (t, e, r) => t & e ^ t & r ^ e & r, BN = /* @__PURE__ */ new Uint32Array([
|
|
8200
8190
|
1116352408,
|
|
8201
8191
|
1899447441,
|
|
@@ -8308,8 +8298,8 @@ let _5 = class extends TN.SHA2 {
|
|
|
8308
8298
|
super(), this.A = -1056596264, this.B = 914150663, this.C = 812702999, this.D = -150054599, this.E = -4191439, this.F = 1750603025, this.G = 1694076839, this.H = -1090891868, this.outputLen = 28;
|
|
8309
8299
|
}
|
|
8310
8300
|
};
|
|
8311
|
-
|
|
8312
|
-
|
|
8301
|
+
Ko.sha256 = (0, yi.wrapConstructor)(() => new _5());
|
|
8302
|
+
Ko.sha224 = (0, yi.wrapConstructor)(() => new CN());
|
|
8313
8303
|
var A5 = {}, Pt = {};
|
|
8314
8304
|
function kN(t) {
|
|
8315
8305
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -8363,20 +8353,20 @@ function NN(t) {
|
|
|
8363
8353
|
}
|
|
8364
8354
|
}
|
|
8365
8355
|
}
|
|
8366
|
-
var na = [],
|
|
8356
|
+
var na = [], Vf = !1, So, F0 = -1;
|
|
8367
8357
|
function LN() {
|
|
8368
|
-
!
|
|
8358
|
+
!Vf || !So || (Vf = !1, So.length ? na = So.concat(na) : F0 = -1, na.length && E5());
|
|
8369
8359
|
}
|
|
8370
8360
|
function E5() {
|
|
8371
|
-
if (!
|
|
8361
|
+
if (!Vf) {
|
|
8372
8362
|
var t = S5(LN);
|
|
8373
|
-
|
|
8363
|
+
Vf = !0;
|
|
8374
8364
|
for (var e = na.length; e; ) {
|
|
8375
8365
|
for (So = na, na = []; ++F0 < e; )
|
|
8376
8366
|
So && So[F0].run();
|
|
8377
8367
|
F0 = -1, e = na.length;
|
|
8378
8368
|
}
|
|
8379
|
-
So = null,
|
|
8369
|
+
So = null, Vf = !1, NN(t);
|
|
8380
8370
|
}
|
|
8381
8371
|
}
|
|
8382
8372
|
Ir.nextTick = function(t) {
|
|
@@ -8384,7 +8374,7 @@ Ir.nextTick = function(t) {
|
|
|
8384
8374
|
if (arguments.length > 1)
|
|
8385
8375
|
for (var r = 1; r < arguments.length; r++)
|
|
8386
8376
|
e[r - 1] = arguments[r];
|
|
8387
|
-
na.push(new I5(t, e)), na.length === 1 && !
|
|
8377
|
+
na.push(new I5(t, e)), na.length === 1 && !Vf && S5(E5);
|
|
8388
8378
|
};
|
|
8389
8379
|
function I5(t, e) {
|
|
8390
8380
|
this.fun = t, this.array = e;
|
|
@@ -8496,10 +8486,10 @@ typeof Object.create == "function" ? Kb.exports = function(e, r) {
|
|
|
8496
8486
|
n.prototype = r.prototype, e.prototype = new n(), e.prototype.constructor = e;
|
|
8497
8487
|
}
|
|
8498
8488
|
};
|
|
8499
|
-
var Lt = Kb.exports, Vb = { exports: {} }, rm = { exports: {} },
|
|
8489
|
+
var Lt = Kb.exports, Vb = { exports: {} }, rm = { exports: {} }, Wf = typeof Reflect == "object" ? Reflect : null, g6 = Wf && typeof Wf.apply == "function" ? Wf.apply : function(e, r, n) {
|
|
8500
8490
|
return Function.prototype.apply.call(e, r, n);
|
|
8501
8491
|
}, H0;
|
|
8502
|
-
|
|
8492
|
+
Wf && typeof Wf.ownKeys == "function" ? H0 = Wf.ownKeys : Object.getOwnPropertySymbols ? H0 = function(e) {
|
|
8503
8493
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
8504
8494
|
} : H0 = function(e) {
|
|
8505
8495
|
return Object.getOwnPropertyNames(e);
|
|
@@ -8790,7 +8780,7 @@ var nm = rm.exports, N5 = nm.EventEmitter, Za = {}, L5 = {}, im = function() {
|
|
|
8790
8780
|
_.prototype = r.prototype, s.prototype = new _(), _.prototype = null;
|
|
8791
8781
|
}
|
|
8792
8782
|
return s;
|
|
8793
|
-
}, hL = cL, am = Function.prototype.bind || hL, dL = Function.prototype.call, lL = Object.prototype.hasOwnProperty, pL = am, vL = pL.call(dL, lL), zt, bL = ZN, gL = XN, mL = JN, yL = YN,
|
|
8783
|
+
}, hL = cL, am = Function.prototype.bind || hL, dL = Function.prototype.call, lL = Object.prototype.hasOwnProperty, pL = am, vL = pL.call(dL, lL), zt, bL = ZN, gL = XN, mL = JN, yL = YN, su = D5, Gf = gl, wL = QN, U5 = Function, W1 = function(t) {
|
|
8794
8784
|
try {
|
|
8795
8785
|
return U5('"use strict"; return (' + t + ").constructor;")();
|
|
8796
8786
|
} catch {
|
|
@@ -8803,7 +8793,7 @@ if (Oo)
|
|
|
8803
8793
|
Oo = null;
|
|
8804
8794
|
}
|
|
8805
8795
|
var G1 = function() {
|
|
8806
|
-
throw new
|
|
8796
|
+
throw new Gf();
|
|
8807
8797
|
}, _L = Oo ? function() {
|
|
8808
8798
|
try {
|
|
8809
8799
|
return arguments.callee, G1;
|
|
@@ -8814,19 +8804,19 @@ var G1 = function() {
|
|
|
8814
8804
|
return G1;
|
|
8815
8805
|
}
|
|
8816
8806
|
}
|
|
8817
|
-
}() : G1,
|
|
8807
|
+
}() : G1, Pf = tL(), AL = nL(), jr = Object.getPrototypeOf || (AL ? function(t) {
|
|
8818
8808
|
return t.__proto__;
|
|
8819
|
-
} : null),
|
|
8809
|
+
} : null), Nf = {}, xL = typeof Uint8Array > "u" || !jr ? zt : jr(Uint8Array), Po = {
|
|
8820
8810
|
__proto__: null,
|
|
8821
8811
|
"%AggregateError%": typeof AggregateError > "u" ? zt : AggregateError,
|
|
8822
8812
|
"%Array%": Array,
|
|
8823
8813
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? zt : ArrayBuffer,
|
|
8824
|
-
"%ArrayIteratorPrototype%":
|
|
8814
|
+
"%ArrayIteratorPrototype%": Pf && jr ? jr([][Symbol.iterator]()) : zt,
|
|
8825
8815
|
"%AsyncFromSyncIteratorPrototype%": zt,
|
|
8826
|
-
"%AsyncFunction%":
|
|
8827
|
-
"%AsyncGenerator%":
|
|
8828
|
-
"%AsyncGeneratorFunction%":
|
|
8829
|
-
"%AsyncIteratorPrototype%":
|
|
8816
|
+
"%AsyncFunction%": Nf,
|
|
8817
|
+
"%AsyncGenerator%": Nf,
|
|
8818
|
+
"%AsyncGeneratorFunction%": Nf,
|
|
8819
|
+
"%AsyncIteratorPrototype%": Nf,
|
|
8830
8820
|
"%Atomics%": typeof Atomics > "u" ? zt : Atomics,
|
|
8831
8821
|
"%BigInt%": typeof BigInt > "u" ? zt : BigInt,
|
|
8832
8822
|
"%BigInt64Array%": typeof BigInt64Array > "u" ? zt : BigInt64Array,
|
|
@@ -8846,16 +8836,16 @@ var G1 = function() {
|
|
|
8846
8836
|
"%Float64Array%": typeof Float64Array > "u" ? zt : Float64Array,
|
|
8847
8837
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? zt : FinalizationRegistry,
|
|
8848
8838
|
"%Function%": U5,
|
|
8849
|
-
"%GeneratorFunction%":
|
|
8839
|
+
"%GeneratorFunction%": Nf,
|
|
8850
8840
|
"%Int8Array%": typeof Int8Array > "u" ? zt : Int8Array,
|
|
8851
8841
|
"%Int16Array%": typeof Int16Array > "u" ? zt : Int16Array,
|
|
8852
8842
|
"%Int32Array%": typeof Int32Array > "u" ? zt : Int32Array,
|
|
8853
8843
|
"%isFinite%": isFinite,
|
|
8854
8844
|
"%isNaN%": isNaN,
|
|
8855
|
-
"%IteratorPrototype%":
|
|
8845
|
+
"%IteratorPrototype%": Pf && jr ? jr(jr([][Symbol.iterator]())) : zt,
|
|
8856
8846
|
"%JSON%": typeof JSON == "object" ? JSON : zt,
|
|
8857
8847
|
"%Map%": typeof Map > "u" ? zt : Map,
|
|
8858
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
8848
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !Pf || !jr ? zt : jr((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
8859
8849
|
"%Math%": Math,
|
|
8860
8850
|
"%Number%": Number,
|
|
8861
8851
|
"%Object%": Object,
|
|
@@ -8868,15 +8858,15 @@ var G1 = function() {
|
|
|
8868
8858
|
"%Reflect%": typeof Reflect > "u" ? zt : Reflect,
|
|
8869
8859
|
"%RegExp%": RegExp,
|
|
8870
8860
|
"%Set%": typeof Set > "u" ? zt : Set,
|
|
8871
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
8861
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !Pf || !jr ? zt : jr((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
8872
8862
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? zt : SharedArrayBuffer,
|
|
8873
8863
|
"%String%": String,
|
|
8874
|
-
"%StringIteratorPrototype%":
|
|
8875
|
-
"%Symbol%":
|
|
8876
|
-
"%SyntaxError%":
|
|
8864
|
+
"%StringIteratorPrototype%": Pf && jr ? jr(""[Symbol.iterator]()) : zt,
|
|
8865
|
+
"%Symbol%": Pf ? Symbol : zt,
|
|
8866
|
+
"%SyntaxError%": su,
|
|
8877
8867
|
"%ThrowTypeError%": _L,
|
|
8878
8868
|
"%TypedArray%": xL,
|
|
8879
|
-
"%TypeError%":
|
|
8869
|
+
"%TypeError%": Gf,
|
|
8880
8870
|
"%Uint8Array%": typeof Uint8Array > "u" ? zt : Uint8Array,
|
|
8881
8871
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? zt : Uint8ClampedArray,
|
|
8882
8872
|
"%Uint16Array%": typeof Uint16Array > "u" ? zt : Uint16Array,
|
|
@@ -8965,9 +8955,9 @@ var EL = function t(e) {
|
|
|
8965
8955
|
}, fh = am, Pd = vL, IL = fh.call(Function.call, Array.prototype.concat), ML = fh.call(Function.apply, Array.prototype.splice), A6 = fh.call(Function.call, String.prototype.replace), Bd = fh.call(Function.call, String.prototype.slice), RL = fh.call(Function.call, RegExp.prototype.exec), TL = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, OL = /\\(\\)?/g, PL = function(e) {
|
|
8966
8956
|
var r = Bd(e, 0, 1), n = Bd(e, -1);
|
|
8967
8957
|
if (r === "%" && n !== "%")
|
|
8968
|
-
throw new
|
|
8958
|
+
throw new su("invalid intrinsic syntax, expected closing `%`");
|
|
8969
8959
|
if (n === "%" && r !== "%")
|
|
8970
|
-
throw new
|
|
8960
|
+
throw new su("invalid intrinsic syntax, expected opening `%`");
|
|
8971
8961
|
var s = [];
|
|
8972
8962
|
return A6(e, TL, function(i, f, l, g) {
|
|
8973
8963
|
s[s.length] = l ? A6(g, OL, "$1") : f || i;
|
|
@@ -8976,34 +8966,34 @@ var EL = function t(e) {
|
|
|
8976
8966
|
var n = e, s;
|
|
8977
8967
|
if (Pd(_6, n) && (s = _6[n], n = "%" + s[0] + "%"), Pd(Po, n)) {
|
|
8978
8968
|
var i = Po[n];
|
|
8979
|
-
if (i ===
|
|
8980
|
-
throw new
|
|
8969
|
+
if (i === Nf && (i = EL(n)), typeof i > "u" && !r)
|
|
8970
|
+
throw new Gf("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
8981
8971
|
return {
|
|
8982
8972
|
alias: s,
|
|
8983
8973
|
name: n,
|
|
8984
8974
|
value: i
|
|
8985
8975
|
};
|
|
8986
8976
|
}
|
|
8987
|
-
throw new
|
|
8977
|
+
throw new su("intrinsic " + e + " does not exist!");
|
|
8988
8978
|
}, uh = function(e, r) {
|
|
8989
8979
|
if (typeof e != "string" || e.length === 0)
|
|
8990
|
-
throw new
|
|
8980
|
+
throw new Gf("intrinsic name must be a non-empty string");
|
|
8991
8981
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
8992
|
-
throw new
|
|
8982
|
+
throw new Gf('"allowMissing" argument must be a boolean');
|
|
8993
8983
|
if (RL(/^%?[^%]*%?$/, e) === null)
|
|
8994
|
-
throw new
|
|
8984
|
+
throw new su("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
8995
8985
|
var n = PL(e), s = n.length > 0 ? n[0] : "", i = BL("%" + s + "%", r), f = i.name, l = i.value, g = !1, _ = i.alias;
|
|
8996
8986
|
_ && (s = _[0], ML(n, IL([0, 1], _)));
|
|
8997
8987
|
for (var E = 1, A = !0; E < n.length; E += 1) {
|
|
8998
8988
|
var x = n[E], O = Bd(x, 0, 1), I = Bd(x, -1);
|
|
8999
8989
|
if ((O === '"' || O === "'" || O === "`" || I === '"' || I === "'" || I === "`") && O !== I)
|
|
9000
|
-
throw new
|
|
8990
|
+
throw new su("property names with quotes must have matching quotes");
|
|
9001
8991
|
if ((x === "constructor" || !A) && (g = !0), s += "." + x, f = "%" + s + "%", Pd(Po, f))
|
|
9002
8992
|
l = Po[f];
|
|
9003
8993
|
else if (l != null) {
|
|
9004
8994
|
if (!(x in l)) {
|
|
9005
8995
|
if (!r)
|
|
9006
|
-
throw new
|
|
8996
|
+
throw new Gf("base intrinsic for " + e + " exists, but the property is not available.");
|
|
9007
8997
|
return;
|
|
9008
8998
|
}
|
|
9009
8999
|
if (Oo && E + 1 >= n.length) {
|
|
@@ -9036,19 +9026,19 @@ if (q0)
|
|
|
9036
9026
|
} catch {
|
|
9037
9027
|
q0 = null;
|
|
9038
9028
|
}
|
|
9039
|
-
var fm = q0, S6 = om(), kL = D5,
|
|
9029
|
+
var fm = q0, S6 = om(), kL = D5, Bf = gl, E6 = fm, H5 = function(e, r, n) {
|
|
9040
9030
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
9041
|
-
throw new
|
|
9031
|
+
throw new Bf("`obj` must be an object or a function`");
|
|
9042
9032
|
if (typeof r != "string" && typeof r != "symbol")
|
|
9043
|
-
throw new
|
|
9033
|
+
throw new Bf("`property` must be a string or a symbol`");
|
|
9044
9034
|
if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
|
|
9045
|
-
throw new
|
|
9035
|
+
throw new Bf("`nonEnumerable`, if provided, must be a boolean or null");
|
|
9046
9036
|
if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
|
|
9047
|
-
throw new
|
|
9037
|
+
throw new Bf("`nonWritable`, if provided, must be a boolean or null");
|
|
9048
9038
|
if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
|
|
9049
|
-
throw new
|
|
9039
|
+
throw new Bf("`nonConfigurable`, if provided, must be a boolean or null");
|
|
9050
9040
|
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
9051
|
-
throw new
|
|
9041
|
+
throw new Bf("`loose`, if provided, must be a boolean");
|
|
9052
9042
|
var s = arguments.length > 3 ? arguments[3] : null, i = arguments.length > 4 ? arguments[4] : null, f = arguments.length > 5 ? arguments[5] : null, l = arguments.length > 6 ? arguments[6] : !1, g = !!E6 && E6(e, r);
|
|
9053
9043
|
if (S6)
|
|
9054
9044
|
S6(e, r, {
|
|
@@ -9148,21 +9138,21 @@ var jL = zL ? wl : V5, KL = Object.prototype.toString, VL = Function.prototype.t
|
|
|
9148
9138
|
X1 = n ? Z1(n) : !1;
|
|
9149
9139
|
}
|
|
9150
9140
|
return Z1(e) === X1;
|
|
9151
|
-
}, G5 = Function.prototype.toString,
|
|
9152
|
-
if (typeof
|
|
9141
|
+
}, G5 = Function.prototype.toString, Hf = typeof Reflect == "object" && Reflect !== null && Reflect.apply, $b, z0;
|
|
9142
|
+
if (typeof Hf == "function" && typeof Object.defineProperty == "function")
|
|
9153
9143
|
try {
|
|
9154
9144
|
$b = Object.defineProperty({}, "length", {
|
|
9155
9145
|
get: function() {
|
|
9156
9146
|
throw z0;
|
|
9157
9147
|
}
|
|
9158
|
-
}), z0 = {},
|
|
9148
|
+
}), z0 = {}, Hf(function() {
|
|
9159
9149
|
throw 42;
|
|
9160
9150
|
}, null, $b);
|
|
9161
9151
|
} catch (t) {
|
|
9162
|
-
t !== z0 && (
|
|
9152
|
+
t !== z0 && (Hf = null);
|
|
9163
9153
|
}
|
|
9164
9154
|
else
|
|
9165
|
-
|
|
9155
|
+
Hf = null;
|
|
9166
9156
|
var ZL = /^\s*class\b/, Zb = function(e) {
|
|
9167
9157
|
try {
|
|
9168
9158
|
var r = G5.call(e);
|
|
@@ -9191,13 +9181,13 @@ if (typeof document == "object") {
|
|
|
9191
9181
|
return !1;
|
|
9192
9182
|
});
|
|
9193
9183
|
}
|
|
9194
|
-
var sD =
|
|
9184
|
+
var sD = Hf ? function(e) {
|
|
9195
9185
|
if (Xb(e))
|
|
9196
9186
|
return !0;
|
|
9197
9187
|
if (!e || typeof e != "function" && typeof e != "object")
|
|
9198
9188
|
return !1;
|
|
9199
9189
|
try {
|
|
9200
|
-
|
|
9190
|
+
Hf(e, null, $b);
|
|
9201
9191
|
} catch (r) {
|
|
9202
9192
|
if (r !== z0)
|
|
9203
9193
|
return !1;
|
|
@@ -10085,7 +10075,7 @@ var J5 = {
|
|
|
10085
10075
|
destroy: ED,
|
|
10086
10076
|
undestroy: ID,
|
|
10087
10077
|
errorOrDestroy: MD
|
|
10088
|
-
},
|
|
10078
|
+
}, tf = {};
|
|
10089
10079
|
function RD(t, e) {
|
|
10090
10080
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
10091
10081
|
}
|
|
@@ -10153,8 +10143,8 @@ Bi("ERR_UNKNOWN_ENCODING", function(t) {
|
|
|
10153
10143
|
return "Unknown encoding: " + t;
|
|
10154
10144
|
}, TypeError);
|
|
10155
10145
|
Bi("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
|
|
10156
|
-
|
|
10157
|
-
var BD =
|
|
10146
|
+
tf.codes = Y5;
|
|
10147
|
+
var BD = tf.codes.ERR_INVALID_OPT_VALUE;
|
|
10158
10148
|
function CD(t, e, r) {
|
|
10159
10149
|
return t.highWaterMark != null ? t.highWaterMark : e ? t[r] : null;
|
|
10160
10150
|
}
|
|
@@ -10219,12 +10209,12 @@ function hm() {
|
|
|
10219
10209
|
function l(Z) {
|
|
10220
10210
|
return s.isBuffer(Z) || Z instanceof i;
|
|
10221
10211
|
}
|
|
10222
|
-
var g = J5, _ = Q5, E = _.getHighWaterMark, A =
|
|
10212
|
+
var g = J5, _ = Q5, E = _.getHighWaterMark, A = tf.codes, x = A.ERR_INVALID_ARG_TYPE, O = A.ERR_METHOD_NOT_IMPLEMENTED, I = A.ERR_MULTIPLE_CALLBACK, R = A.ERR_STREAM_CANNOT_PIPE, B = A.ERR_STREAM_DESTROYED, C = A.ERR_STREAM_NULL_VALUES, P = A.ERR_STREAM_WRITE_AFTER_END, L = A.ERR_UNKNOWN_ENCODING, H = g.errorOrDestroy;
|
|
10223
10213
|
Lt(U, n);
|
|
10224
10214
|
function K() {
|
|
10225
10215
|
}
|
|
10226
10216
|
function V(Z, W, Q) {
|
|
10227
|
-
e = e ||
|
|
10217
|
+
e = e || Vo(), Z = Z || {}, typeof Q != "boolean" && (Q = W instanceof e), this.objectMode = !!Z.objectMode, Q && (this.objectMode = this.objectMode || !!Z.writableObjectMode), this.highWaterMark = E(this, Z, "writableHighWaterMark", Q), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
10228
10218
|
var ee = Z.decodeStrings === !1;
|
|
10229
10219
|
this.decodeStrings = !ee, this.defaultEncoding = Z.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(ce) {
|
|
10230
10220
|
y(W, ce);
|
|
@@ -10253,7 +10243,7 @@ function hm() {
|
|
|
10253
10243
|
return W instanceof this;
|
|
10254
10244
|
};
|
|
10255
10245
|
function U(Z) {
|
|
10256
|
-
e = e ||
|
|
10246
|
+
e = e || Vo();
|
|
10257
10247
|
var W = this instanceof e;
|
|
10258
10248
|
if (!W && !te.call(U, this))
|
|
10259
10249
|
return new U(Z);
|
|
@@ -10429,7 +10419,7 @@ function hm() {
|
|
|
10429
10419
|
}, rv;
|
|
10430
10420
|
}
|
|
10431
10421
|
var nv, N6;
|
|
10432
|
-
function
|
|
10422
|
+
function Vo() {
|
|
10433
10423
|
if (N6)
|
|
10434
10424
|
return nv;
|
|
10435
10425
|
N6 = 1;
|
|
@@ -10658,7 +10648,7 @@ function $D(t) {
|
|
|
10658
10648
|
function ZD(t) {
|
|
10659
10649
|
return t && t.length ? this.write(t) : "";
|
|
10660
10650
|
}
|
|
10661
|
-
var D6 =
|
|
10651
|
+
var D6 = tf.codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
10662
10652
|
function XD(t) {
|
|
10663
10653
|
var e = !1;
|
|
10664
10654
|
return function() {
|
|
@@ -10855,7 +10845,7 @@ function lm() {
|
|
|
10855
10845
|
var l = Za, g;
|
|
10856
10846
|
l && l.debuglog ? g = l.debuglog("stream") : g = function() {
|
|
10857
10847
|
};
|
|
10858
|
-
var _ = SD(), E = J5, A = Q5, x = A.getHighWaterMark, O =
|
|
10848
|
+
var _ = SD(), E = J5, A = Q5, x = A.getHighWaterMark, O = tf.codes, I = O.ERR_INVALID_ARG_TYPE, R = O.ERR_STREAM_PUSH_AFTER_EOF, B = O.ERR_METHOD_NOT_IMPLEMENTED, C = O.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, P, L, H;
|
|
10859
10849
|
Lt(j, r);
|
|
10860
10850
|
var K = E.errorOrDestroy, V = ["error", "close", "destroy", "pause", "resume"];
|
|
10861
10851
|
function te(X, $, ve) {
|
|
@@ -10864,10 +10854,10 @@ function lm() {
|
|
|
10864
10854
|
!X._events || !X._events[$] ? X.on($, ve) : Array.isArray(X._events[$]) ? X._events[$].unshift(ve) : X._events[$] = [ve, X._events[$]];
|
|
10865
10855
|
}
|
|
10866
10856
|
function U(X, $, ve) {
|
|
10867
|
-
t = t ||
|
|
10857
|
+
t = t || Vo(), X = X || {}, typeof ve != "boolean" && (ve = $ instanceof t), this.objectMode = !!X.objectMode, ve && (this.objectMode = this.objectMode || !!X.readableObjectMode), this.highWaterMark = x(this, X, "readableHighWaterMark", ve), this.buffer = new _(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = X.emitClose !== !1, this.autoDestroy = !!X.autoDestroy, this.destroyed = !1, this.defaultEncoding = X.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, X.encoding && (P || (P = Nd.StringDecoder), this.decoder = new P(X.encoding), this.encoding = X.encoding);
|
|
10868
10858
|
}
|
|
10869
10859
|
function j(X) {
|
|
10870
|
-
if (t = t ||
|
|
10860
|
+
if (t = t || Vo(), !(this instanceof j))
|
|
10871
10861
|
return new j(X);
|
|
10872
10862
|
var $ = this instanceof t;
|
|
10873
10863
|
this._readableState = new U(X, this, $), this.readable = !0, X && (typeof X.read == "function" && (this._read = X.read), typeof X.destroy == "function" && (this._destroy = X.destroy)), r.call(this);
|
|
@@ -11182,7 +11172,7 @@ function lm() {
|
|
|
11182
11172
|
}
|
|
11183
11173
|
return ov;
|
|
11184
11174
|
}
|
|
11185
|
-
var pm = ha, Al =
|
|
11175
|
+
var pm = ha, Al = tf.codes, tU = Al.ERR_METHOD_NOT_IMPLEMENTED, rU = Al.ERR_MULTIPLE_CALLBACK, nU = Al.ERR_TRANSFORM_ALREADY_TRANSFORMING, iU = Al.ERR_TRANSFORM_WITH_LENGTH_0, xl = Vo();
|
|
11186
11176
|
Lt(ha, xl);
|
|
11187
11177
|
function sU(t, e) {
|
|
11188
11178
|
var r = this._transformState;
|
|
@@ -11260,7 +11250,7 @@ function oU(t) {
|
|
|
11260
11250
|
e || (e = !0, t.apply(void 0, arguments));
|
|
11261
11251
|
};
|
|
11262
11252
|
}
|
|
11263
|
-
var n_ =
|
|
11253
|
+
var n_ = tf.codes, fU = n_.ERR_MISSING_ARGS, uU = n_.ERR_STREAM_DESTROYED;
|
|
11264
11254
|
function z6(t) {
|
|
11265
11255
|
if (t)
|
|
11266
11256
|
throw t;
|
|
@@ -11317,7 +11307,7 @@ function pU() {
|
|
|
11317
11307
|
}
|
|
11318
11308
|
var i_ = pU;
|
|
11319
11309
|
(function(t, e) {
|
|
11320
|
-
e = t.exports = lm(), e.Stream = e, e.Readable = e, e.Writable = hm(), e.Duplex =
|
|
11310
|
+
e = t.exports = lm(), e.Stream = e, e.Readable = e, e.Writable = hm(), e.Duplex = Vo(), e.Transform = pm, e.PassThrough = t_, e.finished = _l, e.pipeline = i_;
|
|
11321
11311
|
})(Vb, Vb.exports);
|
|
11322
11312
|
var s_ = Vb.exports, Ld = Ft.Buffer, a_ = s_.Transform, vU = Lt;
|
|
11323
11313
|
function bU(t, e) {
|
|
@@ -11742,7 +11732,7 @@ Il.prototype._update = function() {
|
|
|
11742
11732
|
t[e] = this._block.readInt32LE(e * 4);
|
|
11743
11733
|
for (var r = this._a | 0, n = this._b | 0, s = this._c | 0, i = this._d | 0, f = this._e | 0, l = this._a | 0, g = this._b | 0, _ = this._c | 0, E = this._d | 0, A = this._e | 0, x = 0; x < 80; x += 1) {
|
|
11744
11734
|
var O, I;
|
|
11745
|
-
x < 16 ? (O = K6(r, n, s, i, f, t[hc[x]], vc[0], lc[x]), I = $6(l, g, _, E, A, t[dc[x]], bc[0], pc[x])) : x < 32 ? (O = V6(r, n, s, i, f, t[hc[x]], vc[1], lc[x]), I = G6(l, g, _, E, A, t[dc[x]], bc[1], pc[x])) : x < 48 ? (O = W6(r, n, s, i, f, t[hc[x]], vc[2], lc[x]), I = W6(l, g, _, E, A, t[dc[x]], bc[2], pc[x])) : x < 64 ? (O = G6(r, n, s, i, f, t[hc[x]], vc[3], lc[x]), I = V6(l, g, _, E, A, t[dc[x]], bc[3], pc[x])) : (O = $6(r, n, s, i, f, t[hc[x]], vc[4], lc[x]), I = K6(l, g, _, E, A, t[dc[x]], bc[4], pc[x])), r = f, f = i, i =
|
|
11735
|
+
x < 16 ? (O = K6(r, n, s, i, f, t[hc[x]], vc[0], lc[x]), I = $6(l, g, _, E, A, t[dc[x]], bc[0], pc[x])) : x < 32 ? (O = V6(r, n, s, i, f, t[hc[x]], vc[1], lc[x]), I = G6(l, g, _, E, A, t[dc[x]], bc[1], pc[x])) : x < 48 ? (O = W6(r, n, s, i, f, t[hc[x]], vc[2], lc[x]), I = W6(l, g, _, E, A, t[dc[x]], bc[2], pc[x])) : x < 64 ? (O = G6(r, n, s, i, f, t[hc[x]], vc[3], lc[x]), I = V6(l, g, _, E, A, t[dc[x]], bc[3], pc[x])) : (O = $6(r, n, s, i, f, t[hc[x]], vc[4], lc[x]), I = K6(l, g, _, E, A, t[dc[x]], bc[4], pc[x])), r = f, f = i, i = Wo(s, 10), s = n, n = O, l = A, A = E, E = Wo(_, 10), _ = g, g = I;
|
|
11746
11736
|
}
|
|
11747
11737
|
var R = this._b + s + E | 0;
|
|
11748
11738
|
this._b = this._c + i + A | 0, this._c = this._d + f + l | 0, this._d = this._e + r + g | 0, this._e = this._a + n + _ | 0, this._a = R;
|
|
@@ -11752,23 +11742,23 @@ Il.prototype._digest = function() {
|
|
|
11752
11742
|
var t = uv.alloc ? uv.alloc(20) : new uv(20);
|
|
11753
11743
|
return t.writeInt32LE(this._a, 0), t.writeInt32LE(this._b, 4), t.writeInt32LE(this._c, 8), t.writeInt32LE(this._d, 12), t.writeInt32LE(this._e, 16), t;
|
|
11754
11744
|
};
|
|
11755
|
-
function
|
|
11745
|
+
function Wo(t, e) {
|
|
11756
11746
|
return t << e | t >>> 32 - e;
|
|
11757
11747
|
}
|
|
11758
11748
|
function K6(t, e, r, n, s, i, f, l) {
|
|
11759
|
-
return
|
|
11749
|
+
return Wo(t + (e ^ r ^ n) + i + f | 0, l) + s | 0;
|
|
11760
11750
|
}
|
|
11761
11751
|
function V6(t, e, r, n, s, i, f, l) {
|
|
11762
|
-
return
|
|
11752
|
+
return Wo(t + (e & r | ~e & n) + i + f | 0, l) + s | 0;
|
|
11763
11753
|
}
|
|
11764
11754
|
function W6(t, e, r, n, s, i, f, l) {
|
|
11765
|
-
return
|
|
11755
|
+
return Wo(t + ((e | ~r) ^ n) + i + f | 0, l) + s | 0;
|
|
11766
11756
|
}
|
|
11767
11757
|
function G6(t, e, r, n, s, i, f, l) {
|
|
11768
|
-
return
|
|
11758
|
+
return Wo(t + (e & n | r & ~n) + i + f | 0, l) + s | 0;
|
|
11769
11759
|
}
|
|
11770
11760
|
function $6(t, e, r, n, s, i, f, l) {
|
|
11771
|
-
return
|
|
11761
|
+
return Wo(t + (e ^ (r | ~n)) + i + f | 0, l) + s | 0;
|
|
11772
11762
|
}
|
|
11773
11763
|
var bm = Il, c_ = { exports: {} }, h_ = Ft.Buffer;
|
|
11774
11764
|
function Ml(t, e) {
|
|
@@ -12231,24 +12221,24 @@ Tl.prototype._hash = function() {
|
|
|
12231
12221
|
}
|
|
12232
12222
|
return e(this._ah, this._al, 0), e(this._bh, this._bl, 8), e(this._ch, this._cl, 16), e(this._dh, this._dl, 24), e(this._eh, this._el, 32), e(this._fh, this._fl, 40), t;
|
|
12233
12223
|
};
|
|
12234
|
-
var lF = Tl,
|
|
12224
|
+
var lF = Tl, rf = c_.exports = function(e) {
|
|
12235
12225
|
e = e.toLowerCase();
|
|
12236
|
-
var r =
|
|
12226
|
+
var r = rf[e];
|
|
12237
12227
|
if (!r)
|
|
12238
12228
|
throw new Error(e + " is not supported (we accept pull requests)");
|
|
12239
12229
|
return new r();
|
|
12240
12230
|
};
|
|
12241
|
-
|
|
12242
|
-
|
|
12243
|
-
|
|
12244
|
-
|
|
12245
|
-
|
|
12246
|
-
|
|
12231
|
+
rf.sha = TU;
|
|
12232
|
+
rf.sha1 = UU;
|
|
12233
|
+
rf.sha224 = eF;
|
|
12234
|
+
rf.sha256 = v_;
|
|
12235
|
+
rf.sha384 = lF;
|
|
12236
|
+
rf.sha512 = g_;
|
|
12247
12237
|
var gm = c_.exports, pF = Ei, mm = nm.EventEmitter, vF = Lt;
|
|
12248
12238
|
vF(Ei, mm);
|
|
12249
12239
|
Ei.Readable = lm();
|
|
12250
12240
|
Ei.Writable = hm();
|
|
12251
|
-
Ei.Duplex =
|
|
12241
|
+
Ei.Duplex = Vo();
|
|
12252
12242
|
Ei.Transform = pm;
|
|
12253
12243
|
Ei.PassThrough = t_;
|
|
12254
12244
|
Ei.finished = _l;
|
|
@@ -12347,10 +12337,10 @@ Ol.prototype._final = function() {
|
|
|
12347
12337
|
};
|
|
12348
12338
|
var vh = function(e) {
|
|
12349
12339
|
return e = e.toLowerCase(), e === "md5" ? new yF() : e === "rmd160" || e === "ripemd160" ? new wF() : new Ol(_F(e));
|
|
12350
|
-
}, AF = Lt, Eo = Ft.Buffer, __ = ro, xF = Eo.alloc(128),
|
|
12340
|
+
}, AF = Lt, Eo = Ft.Buffer, __ = ro, xF = Eo.alloc(128), Cf = 64;
|
|
12351
12341
|
function Pl(t, e) {
|
|
12352
|
-
__.call(this, "digest"), typeof e == "string" && (e = Eo.from(e)), this._alg = t, this._key = e, e.length >
|
|
12353
|
-
for (var r = this._ipad = Eo.allocUnsafe(
|
|
12342
|
+
__.call(this, "digest"), typeof e == "string" && (e = Eo.from(e)), this._alg = t, this._key = e, e.length > Cf ? e = t(e) : e.length < Cf && (e = Eo.concat([e, xF], Cf));
|
|
12343
|
+
for (var r = this._ipad = Eo.allocUnsafe(Cf), n = this._opad = Eo.allocUnsafe(Cf), s = 0; s < Cf; s++)
|
|
12354
12344
|
r[s] = e[s] ^ 54, n[s] = e[s] ^ 92;
|
|
12355
12345
|
this._hash = [r];
|
|
12356
12346
|
}
|
|
@@ -13586,22 +13576,22 @@ function dH(t, e) {
|
|
|
13586
13576
|
Fa.create({ type: "decrypt", key: r })
|
|
13587
13577
|
];
|
|
13588
13578
|
}
|
|
13589
|
-
function
|
|
13579
|
+
function Go(t) {
|
|
13590
13580
|
U_.call(this, t);
|
|
13591
13581
|
var e = new dH(this.type, this.options.key);
|
|
13592
13582
|
this._edeState = e;
|
|
13593
13583
|
}
|
|
13594
|
-
hH(
|
|
13595
|
-
var lH =
|
|
13596
|
-
|
|
13597
|
-
return new
|
|
13584
|
+
hH(Go, U_);
|
|
13585
|
+
var lH = Go;
|
|
13586
|
+
Go.create = function(e) {
|
|
13587
|
+
return new Go(e);
|
|
13598
13588
|
};
|
|
13599
|
-
|
|
13589
|
+
Go.prototype._update = function(e, r, n, s) {
|
|
13600
13590
|
var i = this._edeState;
|
|
13601
13591
|
i.ciphers[0]._update(e, r, n, s), i.ciphers[1]._update(n, s, n, s), i.ciphers[2]._update(n, s, n, s);
|
|
13602
13592
|
};
|
|
13603
|
-
|
|
13604
|
-
|
|
13593
|
+
Go.prototype._pad = Fa.prototype._pad;
|
|
13594
|
+
Go.prototype._unpad = Fa.prototype._unpad;
|
|
13605
13595
|
Pu.utils = ri;
|
|
13606
13596
|
Pu.Cipher = ym;
|
|
13607
13597
|
Pu.DES = L_;
|
|
@@ -14017,7 +14007,7 @@ Ii.prototype.scrub = function() {
|
|
|
14017
14007
|
lv(this._keySchedule), lv(this._invKeySchedule), lv(this._key);
|
|
14018
14008
|
};
|
|
14019
14009
|
gh.AES = Ii;
|
|
14020
|
-
var
|
|
14010
|
+
var au = Ft.Buffer, PH = au.alloc(16, 0);
|
|
14021
14011
|
function BH(t) {
|
|
14022
14012
|
return [
|
|
14023
14013
|
t.readUInt32BE(0),
|
|
@@ -14027,11 +14017,11 @@ function BH(t) {
|
|
|
14027
14017
|
];
|
|
14028
14018
|
}
|
|
14029
14019
|
function $_(t) {
|
|
14030
|
-
var e =
|
|
14020
|
+
var e = au.allocUnsafe(16);
|
|
14031
14021
|
return e.writeUInt32BE(t[0] >>> 0, 0), e.writeUInt32BE(t[1] >>> 0, 4), e.writeUInt32BE(t[2] >>> 0, 8), e.writeUInt32BE(t[3] >>> 0, 12), e;
|
|
14032
14022
|
}
|
|
14033
14023
|
function mh(t) {
|
|
14034
|
-
this.h = t, this.state =
|
|
14024
|
+
this.h = t, this.state = au.alloc(16, 0), this.cache = au.allocUnsafe(0);
|
|
14035
14025
|
}
|
|
14036
14026
|
mh.prototype.ghash = function(t) {
|
|
14037
14027
|
for (var e = -1; ++e < t.length; )
|
|
@@ -14047,12 +14037,12 @@ mh.prototype._multiply = function() {
|
|
|
14047
14037
|
this.state = $_(e);
|
|
14048
14038
|
};
|
|
14049
14039
|
mh.prototype.update = function(t) {
|
|
14050
|
-
this.cache =
|
|
14040
|
+
this.cache = au.concat([this.cache, t]);
|
|
14051
14041
|
for (var e; this.cache.length >= 16; )
|
|
14052
14042
|
e = this.cache.slice(0, 16), this.cache = this.cache.slice(16), this.ghash(e);
|
|
14053
14043
|
};
|
|
14054
14044
|
mh.prototype.final = function(t, e) {
|
|
14055
|
-
return this.cache.length && this.ghash(
|
|
14045
|
+
return this.cache.length && this.ghash(au.concat([this.cache, PH], 16)), this.ghash($_([0, t, 0, e])), this.state;
|
|
14056
14046
|
};
|
|
14057
14047
|
var CH = mh, kH = gh, qn = Ft.Buffer, Z_ = ro, NH = Lt, X_ = CH, LH = bh, DH = V_;
|
|
14058
14048
|
function UH(t, e) {
|
|
@@ -14072,15 +14062,15 @@ function FH(t, e, r) {
|
|
|
14072
14062
|
var g = qn.from(t._finID);
|
|
14073
14063
|
return DH(g), g;
|
|
14074
14064
|
}
|
|
14075
|
-
function
|
|
14065
|
+
function nf(t, e, r, n) {
|
|
14076
14066
|
Z_.call(this);
|
|
14077
14067
|
var s = qn.alloc(4, 0);
|
|
14078
14068
|
this._cipher = new kH.AES(e);
|
|
14079
14069
|
var i = this._cipher.encryptBlock(s);
|
|
14080
14070
|
this._ghash = new X_(i), r = FH(this, r, i), this._prev = qn.from(r), this._cache = qn.allocUnsafe(0), this._secCache = qn.allocUnsafe(0), this._decrypt = n, this._alen = 0, this._len = 0, this._mode = t, this._authTag = null, this._called = !1;
|
|
14081
14071
|
}
|
|
14082
|
-
NH(
|
|
14083
|
-
|
|
14072
|
+
NH(nf, Z_);
|
|
14073
|
+
nf.prototype._update = function(t) {
|
|
14084
14074
|
if (!this._called && this._alen) {
|
|
14085
14075
|
var e = 16 - this._alen % 16;
|
|
14086
14076
|
e < 16 && (e = qn.alloc(e, 0), this._ghash.update(e));
|
|
@@ -14089,7 +14079,7 @@ rf.prototype._update = function(t) {
|
|
|
14089
14079
|
var r = this._mode.encrypt(this, t);
|
|
14090
14080
|
return this._decrypt ? this._ghash.update(t) : this._ghash.update(r), this._len += t.length, r;
|
|
14091
14081
|
};
|
|
14092
|
-
|
|
14082
|
+
nf.prototype._final = function() {
|
|
14093
14083
|
if (this._decrypt && !this._authTag)
|
|
14094
14084
|
throw new Error("Unsupported state or unable to authenticate data");
|
|
14095
14085
|
var t = LH(this._ghash.final(this._alen * 8, this._len * 8), this._cipher.encryptBlock(this._finID));
|
|
@@ -14097,22 +14087,22 @@ rf.prototype._final = function() {
|
|
|
14097
14087
|
throw new Error("Unsupported state or unable to authenticate data");
|
|
14098
14088
|
this._authTag = t, this._cipher.scrub();
|
|
14099
14089
|
};
|
|
14100
|
-
|
|
14090
|
+
nf.prototype.getAuthTag = function() {
|
|
14101
14091
|
if (this._decrypt || !qn.isBuffer(this._authTag))
|
|
14102
14092
|
throw new Error("Attempting to get auth tag in unsupported state");
|
|
14103
14093
|
return this._authTag;
|
|
14104
14094
|
};
|
|
14105
|
-
|
|
14095
|
+
nf.prototype.setAuthTag = function(e) {
|
|
14106
14096
|
if (!this._decrypt)
|
|
14107
14097
|
throw new Error("Attempting to set auth tag in unsupported state");
|
|
14108
14098
|
this._authTag = e;
|
|
14109
14099
|
};
|
|
14110
|
-
|
|
14100
|
+
nf.prototype.setAAD = function(e) {
|
|
14111
14101
|
if (this._called)
|
|
14112
14102
|
throw new Error("Attempting to set AAD in unsupported state");
|
|
14113
14103
|
this._ghash.update(e), this._alen += e.length;
|
|
14114
14104
|
};
|
|
14115
|
-
var J_ =
|
|
14105
|
+
var J_ = nf, HH = gh, pv = Ft.Buffer, Y_ = ro, qH = Lt;
|
|
14116
14106
|
function kl(t, e, r, n) {
|
|
14117
14107
|
Y_.call(this), this._cipher = new HH.AES(e), this._prev = pv.from(r), this._cache = pv.allocUnsafe(0), this._secCache = pv.allocUnsafe(0), this._decrypt = n, this._mode = t;
|
|
14118
14108
|
}
|
|
@@ -14201,16 +14191,16 @@ function XH(t, e) {
|
|
|
14201
14191
|
}
|
|
14202
14192
|
wm.createCipheriv = r7;
|
|
14203
14193
|
wm.createCipher = XH;
|
|
14204
|
-
var Em = {}, JH = J_,
|
|
14194
|
+
var Em = {}, JH = J_, ou = Ft.Buffer, n7 = xm, YH = Q_, i7 = ro, QH = gh, eq = Nl, tq = Lt;
|
|
14205
14195
|
function wh(t, e, r) {
|
|
14206
|
-
i7.call(this), this._cache = new Dl(), this._last = void 0, this._cipher = new QH.AES(e), this._prev =
|
|
14196
|
+
i7.call(this), this._cache = new Dl(), this._last = void 0, this._cipher = new QH.AES(e), this._prev = ou.from(r), this._mode = t, this._autopadding = !0;
|
|
14207
14197
|
}
|
|
14208
14198
|
tq(wh, i7);
|
|
14209
14199
|
wh.prototype._update = function(t) {
|
|
14210
14200
|
this._cache.add(t);
|
|
14211
14201
|
for (var e, r, n = []; e = this._cache.get(this._autopadding); )
|
|
14212
14202
|
r = this._mode.decrypt(this, e), n.push(r);
|
|
14213
|
-
return
|
|
14203
|
+
return ou.concat(n);
|
|
14214
14204
|
};
|
|
14215
14205
|
wh.prototype._final = function() {
|
|
14216
14206
|
var t = this._cache.flush();
|
|
@@ -14223,10 +14213,10 @@ wh.prototype.setAutoPadding = function(t) {
|
|
|
14223
14213
|
return this._autopadding = !!t, this;
|
|
14224
14214
|
};
|
|
14225
14215
|
function Dl() {
|
|
14226
|
-
this.cache =
|
|
14216
|
+
this.cache = ou.allocUnsafe(0);
|
|
14227
14217
|
}
|
|
14228
14218
|
Dl.prototype.add = function(t) {
|
|
14229
|
-
this.cache =
|
|
14219
|
+
this.cache = ou.concat([this.cache, t]);
|
|
14230
14220
|
};
|
|
14231
14221
|
Dl.prototype.get = function(t) {
|
|
14232
14222
|
var e;
|
|
@@ -14255,9 +14245,9 @@ function s7(t, e, r) {
|
|
|
14255
14245
|
var n = n7[t.toLowerCase()];
|
|
14256
14246
|
if (!n)
|
|
14257
14247
|
throw new TypeError("invalid suite type");
|
|
14258
|
-
if (typeof r == "string" && (r =
|
|
14248
|
+
if (typeof r == "string" && (r = ou.from(r)), n.mode !== "GCM" && r.length !== n.iv)
|
|
14259
14249
|
throw new TypeError("invalid iv length " + r.length);
|
|
14260
|
-
if (typeof e == "string" && (e =
|
|
14250
|
+
if (typeof e == "string" && (e = ou.from(e)), e.length !== n.key / 8)
|
|
14261
14251
|
throw new TypeError("invalid key length " + e.length);
|
|
14262
14252
|
return n.type === "stream" ? new YH(n.module, e, r, !0) : n.type === "auth" ? new JH(n.module, e, r, !0) : new wh(n.module, e, r);
|
|
14263
14253
|
}
|
|
@@ -15560,7 +15550,7 @@ function Rm() {
|
|
|
15560
15550
|
});
|
|
15561
15551
|
else
|
|
15562
15552
|
try {
|
|
15563
|
-
var r =
|
|
15553
|
+
var r = af();
|
|
15564
15554
|
if (typeof r.randomBytes != "function")
|
|
15565
15555
|
throw new Error("Not supported");
|
|
15566
15556
|
e.prototype._rand = function(s) {
|
|
@@ -16320,8 +16310,8 @@ Tm.exports;
|
|
|
16320
16310
|
c = (N + (M >>> 13) | 0) + ($n >>> 26) | 0, $n &= 67108863, S = Math.imul($e, Ke), M = Math.imul($e, Ve), M = M + Math.imul(Ce, Ke) | 0, N = Math.imul(Ce, Ve), S = S + Math.imul(ze, It) | 0, M = M + Math.imul(ze, Tt) | 0, M = M + Math.imul(Me, It) | 0, N = N + Math.imul(Me, Tt) | 0;
|
|
16321
16311
|
var Wu = (c + S | 0) + ((M & 8191) << 13) | 0;
|
|
16322
16312
|
c = (N + (M >>> 13) | 0) + (Wu >>> 26) | 0, Wu &= 67108863, S = Math.imul($e, It), M = Math.imul($e, Tt), M = M + Math.imul(Ce, It) | 0, N = Math.imul(Ce, Tt);
|
|
16323
|
-
var
|
|
16324
|
-
return c = (N + (M >>> 13) | 0) + (
|
|
16313
|
+
var pf = (c + S | 0) + ((M & 8191) << 13) | 0;
|
|
16314
|
+
return c = (N + (M >>> 13) | 0) + (pf >>> 26) | 0, pf &= 67108863, d[0] = vr, d[1] = wr, d[2] = hr, d[3] = Lr, d[4] = Qr, d[5] = Mr, d[6] = en, d[7] = Rr, d[8] = tn, d[9] = rn, d[10] = nn, d[11] = Dr, d[12] = Ur, d[13] = Fr, d[14] = sn, d[15] = an, d[16] = $n, d[17] = Wu, d[18] = pf, c !== 0 && (d[19] = c, y.length++), y;
|
|
16325
16315
|
};
|
|
16326
16316
|
Math.imul || (P = C);
|
|
16327
16317
|
function L(h, u, p) {
|
|
@@ -16969,20 +16959,20 @@ Tm.exports;
|
|
|
16969
16959
|
};
|
|
16970
16960
|
})(t, dt);
|
|
16971
16961
|
})(Tm);
|
|
16972
|
-
var Om = Tm.exports,
|
|
16962
|
+
var Om = Tm.exports, $f = Om, wq = Tu;
|
|
16973
16963
|
function _q(t) {
|
|
16974
|
-
var e = v7(t), r = e.toRed(
|
|
16964
|
+
var e = v7(t), r = e.toRed($f.mont(t.modulus)).redPow(new $f(t.publicExponent)).fromRed();
|
|
16975
16965
|
return { blinder: r, unblinder: e.invm(t.modulus) };
|
|
16976
16966
|
}
|
|
16977
16967
|
function v7(t) {
|
|
16978
16968
|
var e = t.modulus.byteLength(), r;
|
|
16979
16969
|
do
|
|
16980
|
-
r = new
|
|
16970
|
+
r = new $f(wq(e));
|
|
16981
16971
|
while (r.cmp(t.modulus) >= 0 || !r.umod(t.prime1) || !r.umod(t.prime2));
|
|
16982
16972
|
return r;
|
|
16983
16973
|
}
|
|
16984
16974
|
function b7(t, e) {
|
|
16985
|
-
var r = _q(e), n = e.modulus.byteLength(), s = new
|
|
16975
|
+
var r = _q(e), n = e.modulus.byteLength(), s = new $f(t).mul(r.blinder).umod(e.modulus), i = s.toRed($f.mont(e.prime1)), f = s.toRed($f.mont(e.prime2)), l = e.coefficient, g = e.prime1, _ = e.prime2, E = i.redPow(e.exponent1).fromRed(), A = f.redPow(e.exponent2).fromRed(), x = E.isub(A).imul(l).umod(g).imul(_);
|
|
16986
16976
|
return A.iadd(x).imul(r.unblinder).umod(e.modulus).toArrayLike(pe, "be", n);
|
|
16987
16977
|
}
|
|
16988
16978
|
b7.getr = v7;
|
|
@@ -17707,9 +17697,9 @@ hn.prototype.inspect = function() {
|
|
|
17707
17697
|
hn.prototype.isInfinity = function() {
|
|
17708
17698
|
return this.z.cmpn(0) === 0;
|
|
17709
17699
|
};
|
|
17710
|
-
var
|
|
17700
|
+
var qf = Xr, g7 = Lt, Fl = Ul, qq = ni;
|
|
17711
17701
|
function Cu(t) {
|
|
17712
|
-
Fl.call(this, "mont", t), this.a = new
|
|
17702
|
+
Fl.call(this, "mont", t), this.a = new qf(t.a, 16).toRed(this.red), this.b = new qf(t.b, 16).toRed(this.red), this.i4 = new qf(4).toRed(this.red).redInvm(), this.two = new qf(2).toRed(this.red), this.a24 = this.i4.redMul(this.a.redAdd(this.two));
|
|
17713
17703
|
}
|
|
17714
17704
|
g7(Cu, Fl);
|
|
17715
17705
|
var zq = Cu;
|
|
@@ -17718,7 +17708,7 @@ Cu.prototype.validate = function(e) {
|
|
|
17718
17708
|
return i.redSqr().cmp(s) === 0;
|
|
17719
17709
|
};
|
|
17720
17710
|
function Gr(t, e, r) {
|
|
17721
|
-
Fl.BasePoint.call(this, t, "projective"), e === null && r === null ? (this.x = this.curve.one, this.z = this.curve.zero) : (this.x = new
|
|
17711
|
+
Fl.BasePoint.call(this, t, "projective"), e === null && r === null ? (this.x = this.curve.one, this.z = this.curve.zero) : (this.x = new qf(e, 16), this.z = new qf(r, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)));
|
|
17722
17712
|
}
|
|
17723
17713
|
g7(Gr, Fl.BasePoint);
|
|
17724
17714
|
Cu.prototype.decodePoint = function(e, r) {
|
|
@@ -18142,7 +18132,7 @@ function xz(t) {
|
|
|
18142
18132
|
return ys(t, 17) ^ ys(t, 19) ^ t >>> 10;
|
|
18143
18133
|
}
|
|
18144
18134
|
Ls.g1_256 = xz;
|
|
18145
|
-
var
|
|
18135
|
+
var fu = Kt, Sz = ku, Ez = Ls, yv = fu.rotl32, mc = fu.sum32, Iz = fu.sum32_5, Mz = Ez.ft_1, E7 = Sz.BlockHash, Rz = [
|
|
18146
18136
|
1518500249,
|
|
18147
18137
|
1859775393,
|
|
18148
18138
|
2400959708,
|
|
@@ -18159,7 +18149,7 @@ function Rs() {
|
|
|
18159
18149
|
3285377520
|
|
18160
18150
|
], this.W = new Array(80);
|
|
18161
18151
|
}
|
|
18162
|
-
|
|
18152
|
+
fu.inherits(Rs, E7);
|
|
18163
18153
|
var Tz = Rs;
|
|
18164
18154
|
Rs.blockSize = 512;
|
|
18165
18155
|
Rs.outSize = 160;
|
|
@@ -18178,9 +18168,9 @@ Rs.prototype._update = function(e, r) {
|
|
|
18178
18168
|
this.h[0] = mc(this.h[0], i), this.h[1] = mc(this.h[1], f), this.h[2] = mc(this.h[2], l), this.h[3] = mc(this.h[3], g), this.h[4] = mc(this.h[4], _);
|
|
18179
18169
|
};
|
|
18180
18170
|
Rs.prototype._digest = function(e) {
|
|
18181
|
-
return e === "hex" ?
|
|
18171
|
+
return e === "hex" ? fu.toHex32(this.h, "big") : fu.split32(this.h, "big");
|
|
18182
18172
|
};
|
|
18183
|
-
var
|
|
18173
|
+
var uu = Kt, Oz = ku, Lu = Ls, Pz = Ci, Wi = uu.sum32, Bz = uu.sum32_4, Cz = uu.sum32_5, kz = Lu.ch32, Nz = Lu.maj32, Lz = Lu.s0_256, Dz = Lu.s1_256, Uz = Lu.g0_256, Fz = Lu.g1_256, I7 = Oz.BlockHash, Hz = [
|
|
18184
18174
|
1116352408,
|
|
18185
18175
|
1899447441,
|
|
18186
18176
|
3049323471,
|
|
@@ -18260,7 +18250,7 @@ function Ts() {
|
|
|
18260
18250
|
1541459225
|
|
18261
18251
|
], this.k = Hz, this.W = new Array(64);
|
|
18262
18252
|
}
|
|
18263
|
-
|
|
18253
|
+
uu.inherits(Ts, I7);
|
|
18264
18254
|
var M7 = Ts;
|
|
18265
18255
|
Ts.blockSize = 512;
|
|
18266
18256
|
Ts.outSize = 256;
|
|
@@ -18279,7 +18269,7 @@ Ts.prototype._update = function(e, r) {
|
|
|
18279
18269
|
this.h[0] = Wi(this.h[0], i), this.h[1] = Wi(this.h[1], f), this.h[2] = Wi(this.h[2], l), this.h[3] = Wi(this.h[3], g), this.h[4] = Wi(this.h[4], _), this.h[5] = Wi(this.h[5], E), this.h[6] = Wi(this.h[6], A), this.h[7] = Wi(this.h[7], x);
|
|
18280
18270
|
};
|
|
18281
18271
|
Ts.prototype._digest = function(e) {
|
|
18282
|
-
return e === "hex" ?
|
|
18272
|
+
return e === "hex" ? uu.toHex32(this.h, "big") : uu.split32(this.h, "big");
|
|
18283
18273
|
};
|
|
18284
18274
|
var ig = Kt, R7 = M7;
|
|
18285
18275
|
function la() {
|
|
@@ -18643,13 +18633,13 @@ Nu.sha224 = qz;
|
|
|
18643
18633
|
Nu.sha256 = M7;
|
|
18644
18634
|
Nu.sha384 = oj;
|
|
18645
18635
|
Nu.sha512 = B7;
|
|
18646
|
-
var k7 = {},
|
|
18636
|
+
var k7 = {}, $o = Kt, fj = ku, S0 = $o.rotl32, b4 = $o.sum32, yc = $o.sum32_3, g4 = $o.sum32_4, N7 = fj.BlockHash;
|
|
18647
18637
|
function Os() {
|
|
18648
18638
|
if (!(this instanceof Os))
|
|
18649
18639
|
return new Os();
|
|
18650
18640
|
N7.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.endian = "little";
|
|
18651
18641
|
}
|
|
18652
|
-
|
|
18642
|
+
$o.inherits(Os, N7);
|
|
18653
18643
|
k7.ripemd160 = Os;
|
|
18654
18644
|
Os.blockSize = 512;
|
|
18655
18645
|
Os.outSize = 160;
|
|
@@ -18675,7 +18665,7 @@ Os.prototype._update = function(e, r) {
|
|
|
18675
18665
|
I = yc(this.h[1], i, A), this.h[1] = yc(this.h[2], f, x), this.h[2] = yc(this.h[3], l, g), this.h[3] = yc(this.h[4], n, _), this.h[4] = yc(this.h[0], s, E), this.h[0] = I;
|
|
18676
18666
|
};
|
|
18677
18667
|
Os.prototype._digest = function(e) {
|
|
18678
|
-
return e === "hex" ?
|
|
18668
|
+
return e === "hex" ? $o.toHex32(this.h, "little") : $o.split32(this.h, "little");
|
|
18679
18669
|
};
|
|
18680
18670
|
function m4(t, e, r, n) {
|
|
18681
18671
|
return t <= 15 ? e ^ r ^ n : t <= 31 ? e & r | ~e & n : t <= 47 ? (e | ~r) ^ n : t <= 63 ? e & n | r & ~n : e ^ (r | ~n);
|
|
@@ -19011,13 +19001,13 @@ var hj = [
|
|
|
19011
19001
|
11,
|
|
19012
19002
|
11
|
|
19013
19003
|
], vj = Kt, bj = Ci;
|
|
19014
|
-
function
|
|
19015
|
-
if (!(this instanceof
|
|
19016
|
-
return new
|
|
19004
|
+
function cu(t, e, r) {
|
|
19005
|
+
if (!(this instanceof cu))
|
|
19006
|
+
return new cu(t, e, r);
|
|
19017
19007
|
this.Hash = t, this.blockSize = t.blockSize / 8, this.outSize = t.outSize / 8, this.inner = null, this.outer = null, this._init(vj.toArray(e, r));
|
|
19018
19008
|
}
|
|
19019
|
-
var gj =
|
|
19020
|
-
|
|
19009
|
+
var gj = cu;
|
|
19010
|
+
cu.prototype._init = function(e) {
|
|
19021
19011
|
e.length > this.blockSize && (e = new this.Hash().update(e).digest()), bj(e.length <= this.blockSize);
|
|
19022
19012
|
for (var r = e.length; r < this.blockSize; r++)
|
|
19023
19013
|
e.push(0);
|
|
@@ -19027,10 +19017,10 @@ uu.prototype._init = function(e) {
|
|
|
19027
19017
|
e[r] ^= 106;
|
|
19028
19018
|
this.outer = new this.Hash().update(e);
|
|
19029
19019
|
};
|
|
19030
|
-
|
|
19020
|
+
cu.prototype.update = function(e, r) {
|
|
19031
19021
|
return this.inner.update(e, r), this;
|
|
19032
19022
|
};
|
|
19033
|
-
|
|
19023
|
+
cu.prototype.digest = function(e) {
|
|
19034
19024
|
return this.outer.update(this.inner.digest()), this.outer.digest(e);
|
|
19035
19025
|
};
|
|
19036
19026
|
(function(t) {
|
|
@@ -20272,31 +20262,31 @@ Kr.prototype.getPublic = function(e) {
|
|
|
20272
20262
|
return Ah.encode(this.pubBytes(), e);
|
|
20273
20263
|
};
|
|
20274
20264
|
var Rj = Kr, Tj = Xr, Vl = ni, Oj = Vl.assert, Wl = Vl.cachedProperty, Pj = Vl.parseBytes;
|
|
20275
|
-
function
|
|
20265
|
+
function sf(t, e) {
|
|
20276
20266
|
this.eddsa = t, typeof e != "object" && (e = Pj(e)), Array.isArray(e) && (e = {
|
|
20277
20267
|
R: e.slice(0, t.encodingLength),
|
|
20278
20268
|
S: e.slice(t.encodingLength)
|
|
20279
20269
|
}), Oj(e.R && e.S, "Signature without R or S"), t.isPoint(e.R) && (this._R = e.R), e.S instanceof Tj && (this._S = e.S), this._Rencoded = Array.isArray(e.R) ? e.R : e.Rencoded, this._Sencoded = Array.isArray(e.S) ? e.S : e.Sencoded;
|
|
20280
20270
|
}
|
|
20281
|
-
Wl(
|
|
20271
|
+
Wl(sf, "S", function() {
|
|
20282
20272
|
return this.eddsa.decodeInt(this.Sencoded());
|
|
20283
20273
|
});
|
|
20284
|
-
Wl(
|
|
20274
|
+
Wl(sf, "R", function() {
|
|
20285
20275
|
return this.eddsa.decodePoint(this.Rencoded());
|
|
20286
20276
|
});
|
|
20287
|
-
Wl(
|
|
20277
|
+
Wl(sf, "Rencoded", function() {
|
|
20288
20278
|
return this.eddsa.encodePoint(this.R());
|
|
20289
20279
|
});
|
|
20290
|
-
Wl(
|
|
20280
|
+
Wl(sf, "Sencoded", function() {
|
|
20291
20281
|
return this.eddsa.encodeInt(this.S());
|
|
20292
20282
|
});
|
|
20293
|
-
|
|
20283
|
+
sf.prototype.toBytes = function() {
|
|
20294
20284
|
return this.Rencoded().concat(this.Sencoded());
|
|
20295
20285
|
};
|
|
20296
|
-
|
|
20286
|
+
sf.prototype.toHex = function() {
|
|
20297
20287
|
return Vl.encode(this.toBytes(), "hex").toUpperCase();
|
|
20298
20288
|
};
|
|
20299
|
-
var Bj =
|
|
20289
|
+
var Bj = sf, Cj = zl, kj = ql, hu = ni, Nj = hu.assert, U7 = hu.parseBytes, F7 = Rj, x4 = Bj;
|
|
20300
20290
|
function Kn(t) {
|
|
20301
20291
|
if (Nj(t === "ed25519", "only tested with ed25519 so far"), !(this instanceof Kn))
|
|
20302
20292
|
return new Kn(t);
|
|
@@ -20316,7 +20306,7 @@ Kn.prototype.verify = function(e, r, n) {
|
|
|
20316
20306
|
Kn.prototype.hashInt = function() {
|
|
20317
20307
|
for (var e = this.hash(), r = 0; r < arguments.length; r++)
|
|
20318
20308
|
e.update(arguments[r]);
|
|
20319
|
-
return
|
|
20309
|
+
return hu.intFromLE(e.digest()).umod(this.curve.n);
|
|
20320
20310
|
};
|
|
20321
20311
|
Kn.prototype.keyFromPublic = function(e) {
|
|
20322
20312
|
return F7.fromPublic(this, e);
|
|
@@ -20332,15 +20322,15 @@ Kn.prototype.encodePoint = function(e) {
|
|
|
20332
20322
|
return r[this.encodingLength - 1] |= e.getX().isOdd() ? 128 : 0, r;
|
|
20333
20323
|
};
|
|
20334
20324
|
Kn.prototype.decodePoint = function(e) {
|
|
20335
|
-
e =
|
|
20336
|
-
var r = e.length - 1, n = e.slice(0, r).concat(e[r] & -129), s = (e[r] & 128) !== 0, i =
|
|
20325
|
+
e = hu.parseBytes(e);
|
|
20326
|
+
var r = e.length - 1, n = e.slice(0, r).concat(e[r] & -129), s = (e[r] & 128) !== 0, i = hu.intFromLE(n);
|
|
20337
20327
|
return this.curve.pointFromY(i, s);
|
|
20338
20328
|
};
|
|
20339
20329
|
Kn.prototype.encodeInt = function(e) {
|
|
20340
20330
|
return e.toArray("le", this.encodingLength);
|
|
20341
20331
|
};
|
|
20342
20332
|
Kn.prototype.decodeInt = function(e) {
|
|
20343
|
-
return
|
|
20333
|
+
return hu.intFromLE(e);
|
|
20344
20334
|
};
|
|
20345
20335
|
Kn.prototype.isPoint = function(e) {
|
|
20346
20336
|
return e instanceof this.pointClass;
|
|
@@ -20352,26 +20342,26 @@ function Lm() {
|
|
|
20352
20342
|
e.version = Lq.version, e.utils = ni, e.rand = Rm(), e.curve = Cm, e.curves = ql, e.ec = Mj(), e.eddsa = Lj;
|
|
20353
20343
|
}(mv)), mv;
|
|
20354
20344
|
}
|
|
20355
|
-
var is = {}, Dm = {}, H7 = {}, Um = {}, X0 = Zr,
|
|
20345
|
+
var is = {}, Dm = {}, H7 = {}, Um = {}, X0 = Zr, Zf = X0.Buffer, _i = {}, Ai;
|
|
20356
20346
|
for (Ai in X0)
|
|
20357
20347
|
X0.hasOwnProperty(Ai) && (Ai === "SlowBuffer" || Ai === "Buffer" || (_i[Ai] = X0[Ai]));
|
|
20358
|
-
var
|
|
20359
|
-
for (Ai in
|
|
20360
|
-
|
|
20361
|
-
_i.Buffer.prototype =
|
|
20362
|
-
(!
|
|
20348
|
+
var Xf = _i.Buffer = {};
|
|
20349
|
+
for (Ai in Zf)
|
|
20350
|
+
Zf.hasOwnProperty(Ai) && (Ai === "allocUnsafe" || Ai === "allocUnsafeSlow" || (Xf[Ai] = Zf[Ai]));
|
|
20351
|
+
_i.Buffer.prototype = Zf.prototype;
|
|
20352
|
+
(!Xf.from || Xf.from === Uint8Array.from) && (Xf.from = function(t, e, r) {
|
|
20363
20353
|
if (typeof t == "number")
|
|
20364
20354
|
throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof t);
|
|
20365
20355
|
if (t && typeof t.length > "u")
|
|
20366
20356
|
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t);
|
|
20367
|
-
return
|
|
20357
|
+
return Zf(t, e, r);
|
|
20368
20358
|
});
|
|
20369
|
-
|
|
20359
|
+
Xf.alloc || (Xf.alloc = function(t, e, r) {
|
|
20370
20360
|
if (typeof t != "number")
|
|
20371
20361
|
throw new TypeError('The "size" argument must be of type number. Received type ' + typeof t);
|
|
20372
20362
|
if (t < 0 || t >= 2 * (1 << 30))
|
|
20373
20363
|
throw new RangeError('The value "' + t + '" is invalid for option "size"');
|
|
20374
|
-
var n =
|
|
20364
|
+
var n = Zf(t);
|
|
20375
20365
|
return !e || e.length === 0 ? n.fill(0) : typeof r == "string" ? n.fill(e, r) : n.fill(e), n;
|
|
20376
20366
|
});
|
|
20377
20367
|
if (!_i.kStringMaxLength)
|
|
@@ -20394,7 +20384,7 @@ function Di(t) {
|
|
|
20394
20384
|
}
|
|
20395
20385
|
Gl.Reporter = Di;
|
|
20396
20386
|
Di.prototype.isError = function(e) {
|
|
20397
|
-
return e instanceof
|
|
20387
|
+
return e instanceof du;
|
|
20398
20388
|
};
|
|
20399
20389
|
Di.prototype.save = function() {
|
|
20400
20390
|
const e = this._reporterState;
|
|
@@ -20428,8 +20418,8 @@ Di.prototype.leaveObject = function(e) {
|
|
|
20428
20418
|
};
|
|
20429
20419
|
Di.prototype.error = function(e) {
|
|
20430
20420
|
let r;
|
|
20431
|
-
const n = this._reporterState, s = e instanceof
|
|
20432
|
-
if (s ? r = e : r = new
|
|
20421
|
+
const n = this._reporterState, s = e instanceof du;
|
|
20422
|
+
if (s ? r = e : r = new du(n.path.map(function(i) {
|
|
20433
20423
|
return "[" + JSON.stringify(i) + "]";
|
|
20434
20424
|
}).join(""), e.message || e, e.stack), !n.options.partial)
|
|
20435
20425
|
throw r;
|
|
@@ -20442,12 +20432,12 @@ Di.prototype.wrapResult = function(e) {
|
|
|
20442
20432
|
errors: r.errors
|
|
20443
20433
|
} : e;
|
|
20444
20434
|
};
|
|
20445
|
-
function
|
|
20435
|
+
function du(t, e) {
|
|
20446
20436
|
this.path = t, this.rethrow(e);
|
|
20447
20437
|
}
|
|
20448
|
-
Dj(
|
|
20449
|
-
|
|
20450
|
-
if (this.message = e + " at: " + (this.path || "(shallow)"), Error.captureStackTrace && Error.captureStackTrace(this,
|
|
20438
|
+
Dj(du, Error);
|
|
20439
|
+
du.prototype.rethrow = function(e) {
|
|
20440
|
+
if (this.message = e + " at: " + (this.path || "(shallow)"), Error.captureStackTrace && Error.captureStackTrace(this, du), !this.stack)
|
|
20451
20441
|
try {
|
|
20452
20442
|
throw new Error(this.message);
|
|
20453
20443
|
} catch (r) {
|
|
@@ -20455,19 +20445,19 @@ hu.prototype.rethrow = function(e) {
|
|
|
20455
20445
|
}
|
|
20456
20446
|
return this;
|
|
20457
20447
|
};
|
|
20458
|
-
var
|
|
20459
|
-
const Uj = Lt, $l = Gl.Reporter,
|
|
20448
|
+
var Zo = {};
|
|
20449
|
+
const Uj = Lt, $l = Gl.Reporter, lu = Fm.Buffer;
|
|
20460
20450
|
function Mi(t, e) {
|
|
20461
|
-
if ($l.call(this, e), !
|
|
20451
|
+
if ($l.call(this, e), !lu.isBuffer(t)) {
|
|
20462
20452
|
this.error("Input not Buffer");
|
|
20463
20453
|
return;
|
|
20464
20454
|
}
|
|
20465
20455
|
this.base = t, this.offset = 0, this.length = t.length;
|
|
20466
20456
|
}
|
|
20467
20457
|
Uj(Mi, $l);
|
|
20468
|
-
|
|
20458
|
+
Zo.DecoderBuffer = Mi;
|
|
20469
20459
|
Mi.isDecoderBuffer = function(e) {
|
|
20470
|
-
return e instanceof Mi ? !0 : typeof e == "object" &&
|
|
20460
|
+
return e instanceof Mi ? !0 : typeof e == "object" && lu.isBuffer(e.base) && e.constructor.name === "DecoderBuffer" && typeof e.offset == "number" && typeof e.length == "number" && typeof e.save == "function" && typeof e.restore == "function" && typeof e.isEmpty == "function" && typeof e.readUInt8 == "function" && typeof e.skip == "function" && typeof e.raw == "function";
|
|
20471
20461
|
};
|
|
20472
20462
|
Mi.prototype.save = function() {
|
|
20473
20463
|
return { offset: this.offset, reporter: $l.prototype.save.call(this) };
|
|
@@ -20491,32 +20481,32 @@ Mi.prototype.skip = function(e, r) {
|
|
|
20491
20481
|
Mi.prototype.raw = function(e) {
|
|
20492
20482
|
return this.base.slice(e ? e.offset : this.offset, this.length);
|
|
20493
20483
|
};
|
|
20494
|
-
function
|
|
20484
|
+
function pu(t, e) {
|
|
20495
20485
|
if (Array.isArray(t))
|
|
20496
20486
|
this.length = 0, this.value = t.map(function(r) {
|
|
20497
|
-
return
|
|
20487
|
+
return pu.isEncoderBuffer(r) || (r = new pu(r, e)), this.length += r.length, r;
|
|
20498
20488
|
}, this);
|
|
20499
20489
|
else if (typeof t == "number") {
|
|
20500
20490
|
if (!(0 <= t && t <= 255))
|
|
20501
20491
|
return e.error("non-byte EncoderBuffer value");
|
|
20502
20492
|
this.value = t, this.length = 1;
|
|
20503
20493
|
} else if (typeof t == "string")
|
|
20504
|
-
this.value = t, this.length =
|
|
20505
|
-
else if (
|
|
20494
|
+
this.value = t, this.length = lu.byteLength(t);
|
|
20495
|
+
else if (lu.isBuffer(t))
|
|
20506
20496
|
this.value = t, this.length = t.length;
|
|
20507
20497
|
else
|
|
20508
20498
|
return e.error("Unsupported type: " + typeof t);
|
|
20509
20499
|
}
|
|
20510
|
-
|
|
20511
|
-
|
|
20512
|
-
return e instanceof
|
|
20500
|
+
Zo.EncoderBuffer = pu;
|
|
20501
|
+
pu.isEncoderBuffer = function(e) {
|
|
20502
|
+
return e instanceof pu ? !0 : typeof e == "object" && e.constructor.name === "EncoderBuffer" && typeof e.length == "number" && typeof e.join == "function";
|
|
20513
20503
|
};
|
|
20514
|
-
|
|
20515
|
-
return e || (e =
|
|
20504
|
+
pu.prototype.join = function(e, r) {
|
|
20505
|
+
return e || (e = lu.alloc(this.length)), r || (r = 0), this.length === 0 || (Array.isArray(this.value) ? this.value.forEach(function(n) {
|
|
20516
20506
|
n.join(e, r), r += n.length;
|
|
20517
|
-
}) : (typeof this.value == "number" ? e[r] = this.value : typeof this.value == "string" ? e.write(this.value, r) :
|
|
20507
|
+
}) : (typeof this.value == "number" ? e[r] = this.value : typeof this.value == "string" ? e.write(this.value, r) : lu.isBuffer(this.value) && this.value.copy(e, r), r += this.length)), e;
|
|
20518
20508
|
};
|
|
20519
|
-
const Fj = Gl.Reporter, Hj =
|
|
20509
|
+
const Fj = Gl.Reporter, Hj = Zo.EncoderBuffer, qj = Zo.DecoderBuffer, Cn = Ci, q7 = [
|
|
20520
20510
|
"seq",
|
|
20521
20511
|
"seqof",
|
|
20522
20512
|
"set",
|
|
@@ -21086,7 +21076,7 @@ zm.prototype.encode = function(e, r) {
|
|
|
21086
21076
|
e.der = K7, e.pem = $j;
|
|
21087
21077
|
})(Um);
|
|
21088
21078
|
var jm = {};
|
|
21089
|
-
const Zj = Lt, Xj = Xr, E4 =
|
|
21079
|
+
const Zj = Lt, Xj = Xr, E4 = Zo.DecoderBuffer, V7 = Hm, I4 = Zl;
|
|
21090
21080
|
function W7(t) {
|
|
21091
21081
|
this.enc = "der", this.name = t.name, this.entity = t, this.tree = new ii(), this.tree._init(t.body);
|
|
21092
21082
|
}
|
|
@@ -21329,7 +21319,7 @@ Wm.prototype.decode = function(e, r) {
|
|
|
21329
21319
|
var Z7 = {};
|
|
21330
21320
|
(function(t) {
|
|
21331
21321
|
const e = t;
|
|
21332
|
-
e.Reporter = Gl.Reporter, e.DecoderBuffer =
|
|
21322
|
+
e.Reporter = Gl.Reporter, e.DecoderBuffer = Zo.DecoderBuffer, e.EncoderBuffer = Zo.EncoderBuffer, e.Node = Hm;
|
|
21333
21323
|
})(Z7);
|
|
21334
21324
|
var X7 = {};
|
|
21335
21325
|
(function(t) {
|
|
@@ -22055,7 +22045,7 @@ function eV(t, e, r) {
|
|
|
22055
22045
|
return f9(e, t.length), r === void 0 && (r = t.length - e), u9(r, e, t.length), c9(t, e, r);
|
|
22056
22046
|
}
|
|
22057
22047
|
var q4;
|
|
22058
|
-
function
|
|
22048
|
+
function af() {
|
|
22059
22049
|
if (q4)
|
|
22060
22050
|
return Pt;
|
|
22061
22051
|
q4 = 1, Pt.randomBytes = Pt.rng = Pt.pseudoRandomBytes = Pt.prng = Tu, Pt.createHash = Pt.Hash = vh, Pt.createHmac = Pt.Hmac = S_;
|
|
@@ -22102,7 +22092,7 @@ function sf() {
|
|
|
22102
22092
|
(function(t) {
|
|
22103
22093
|
/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
|
|
22104
22094
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.utils = t.schnorr = t.verify = t.signSync = t.sign = t.getSharedSecret = t.recoverPublicKey = t.getPublicKey = t.Signature = t.Point = t.CURVE = void 0;
|
|
22105
|
-
const e =
|
|
22095
|
+
const e = af(), r = BigInt(0), n = BigInt(1), s = BigInt(2), i = BigInt(3), f = BigInt(8), l = Object.freeze({
|
|
22106
22096
|
a: r,
|
|
22107
22097
|
b: BigInt(7),
|
|
22108
22098
|
P: BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),
|
|
@@ -22958,9 +22948,9 @@ function sf() {
|
|
|
22958
22948
|
}
|
|
22959
22949
|
});
|
|
22960
22950
|
})(A5);
|
|
22961
|
-
var
|
|
22962
|
-
Object.defineProperty(
|
|
22963
|
-
|
|
22951
|
+
var vu = {};
|
|
22952
|
+
Object.defineProperty(vu, "__esModule", { value: !0 });
|
|
22953
|
+
vu.joseToDer = vu.derToJose = void 0;
|
|
22964
22954
|
const h9 = ah, d9 = Pn;
|
|
22965
22955
|
function Ov(t) {
|
|
22966
22956
|
return (t / 8 | 0) + (t % 8 === 0 ? 0 : 1);
|
|
@@ -23018,7 +23008,7 @@ function sV(t, e) {
|
|
|
23018
23008
|
I[f] = 0;
|
|
23019
23009
|
return I.set(r.subarray(A + Math.max(-O, 0), A + E), f), (0, d9.escape)((0, h9.fromByteArray)(I));
|
|
23020
23010
|
}
|
|
23021
|
-
|
|
23011
|
+
vu.derToJose = sV;
|
|
23022
23012
|
function z4(t, e, r) {
|
|
23023
23013
|
let n = 0;
|
|
23024
23014
|
for (; e + n < r && t[e + n] === 0; )
|
|
@@ -23034,7 +23024,7 @@ function aV(t, e) {
|
|
|
23034
23024
|
let A = 0;
|
|
23035
23025
|
return E[A++] = v9, _ ? E[A++] = g : (E[A++] = zd | 1, E[A++] = g & 255), E[A++] = jd, E[A++] = f, s < 0 ? (E[A++] = 0, E.set(t.subarray(0, r), A), A += r) : (E.set(t.subarray(s, r), A), A += r - s), E[A++] = jd, E[A++] = l, i < 0 ? (E[A++] = 0, E.set(t.subarray(r), A)) : E.set(t.subarray(r + i), A), E;
|
|
23036
23026
|
}
|
|
23037
|
-
|
|
23027
|
+
vu.joseToDer = aV;
|
|
23038
23028
|
var va = {};
|
|
23039
23029
|
Object.defineProperty(va, "__esModule", { value: !0 });
|
|
23040
23030
|
va.InvalidTokenError = va.MissingParametersError = void 0;
|
|
@@ -23052,7 +23042,7 @@ class fV extends Error {
|
|
|
23052
23042
|
va.InvalidTokenError = fV;
|
|
23053
23043
|
Object.defineProperty(pl, "__esModule", { value: !0 });
|
|
23054
23044
|
pl.SECP256K1Client = void 0;
|
|
23055
|
-
const uV = b5, cV =
|
|
23045
|
+
const uV = b5, cV = Ko, J0 = A5, j4 = vu, K4 = va, V4 = oh;
|
|
23056
23046
|
J0.utils.hmacSha256Sync = (t, ...e) => {
|
|
23057
23047
|
const r = uV.hmac.create(cV.sha256, t);
|
|
23058
23048
|
return e.forEach((n) => r.update(n)), r.digest();
|
|
@@ -23096,7 +23086,7 @@ g9.algorithmName = "ES256K";
|
|
|
23096
23086
|
};
|
|
23097
23087
|
t.cryptoClients = r;
|
|
23098
23088
|
})(ll);
|
|
23099
|
-
var
|
|
23089
|
+
var Xo = {}, hV = dt && dt.__awaiter || function(t, e, r, n) {
|
|
23100
23090
|
function s(i) {
|
|
23101
23091
|
return i instanceof r ? i : new r(function(f) {
|
|
23102
23092
|
f(i);
|
|
@@ -23123,13 +23113,13 @@ var Zo = {}, hV = dt && dt.__awaiter || function(t, e, r, n) {
|
|
|
23123
23113
|
_((n = n.apply(t, e || [])).next());
|
|
23124
23114
|
});
|
|
23125
23115
|
};
|
|
23126
|
-
Object.defineProperty(
|
|
23127
|
-
|
|
23128
|
-
const dV =
|
|
23116
|
+
Object.defineProperty(Xo, "__esModule", { value: !0 });
|
|
23117
|
+
Xo.hashSha256Async = Xo.hashSha256 = void 0;
|
|
23118
|
+
const dV = Ko;
|
|
23129
23119
|
function m9(t) {
|
|
23130
23120
|
return (0, dV.sha256)(t);
|
|
23131
23121
|
}
|
|
23132
|
-
|
|
23122
|
+
Xo.hashSha256 = m9;
|
|
23133
23123
|
function lV(t) {
|
|
23134
23124
|
return hV(this, void 0, void 0, function* () {
|
|
23135
23125
|
try {
|
|
@@ -23137,7 +23127,7 @@ function lV(t) {
|
|
|
23137
23127
|
const r = typeof t == "string" ? new TextEncoder().encode(t) : t, n = yield crypto.subtle.digest("SHA-256", r);
|
|
23138
23128
|
return new Uint8Array(n);
|
|
23139
23129
|
} else {
|
|
23140
|
-
const r =
|
|
23130
|
+
const r = af();
|
|
23141
23131
|
if (!r.createHash)
|
|
23142
23132
|
throw new Error("`crypto` module does not contain `createHash`");
|
|
23143
23133
|
return Promise.resolve(r.createHash("sha256").update(t).digest());
|
|
@@ -23147,7 +23137,7 @@ function lV(t) {
|
|
|
23147
23137
|
}
|
|
23148
23138
|
});
|
|
23149
23139
|
}
|
|
23150
|
-
|
|
23140
|
+
Xo.hashSha256Async = lV;
|
|
23151
23141
|
var pV = dt && dt.__awaiter || function(t, e, r, n) {
|
|
23152
23142
|
function s(i) {
|
|
23153
23143
|
return i instanceof r ? i : new r(function(f) {
|
|
@@ -23175,9 +23165,9 @@ var pV = dt && dt.__awaiter || function(t, e, r, n) {
|
|
|
23175
23165
|
_((n = n.apply(t, e || [])).next());
|
|
23176
23166
|
});
|
|
23177
23167
|
};
|
|
23178
|
-
Object.defineProperty(
|
|
23179
|
-
|
|
23180
|
-
const hg = Pn, W4 = ll, vV = va, G4 =
|
|
23168
|
+
Object.defineProperty(iu, "__esModule", { value: !0 });
|
|
23169
|
+
iu.TokenSigner = iu.createUnsecuredToken = void 0;
|
|
23170
|
+
const hg = Pn, W4 = ll, vV = va, G4 = Xo;
|
|
23181
23171
|
function dg(t, e) {
|
|
23182
23172
|
const r = [], n = hg.encode(JSON.stringify(e));
|
|
23183
23173
|
r.push(n);
|
|
@@ -23187,7 +23177,7 @@ function dg(t, e) {
|
|
|
23187
23177
|
function bV(t) {
|
|
23188
23178
|
return dg(t, { typ: "JWT", alg: "none" }) + ".";
|
|
23189
23179
|
}
|
|
23190
|
-
|
|
23180
|
+
iu.createUnsecuredToken = bV;
|
|
23191
23181
|
class gV {
|
|
23192
23182
|
constructor(e, r) {
|
|
23193
23183
|
if (!(e && r))
|
|
@@ -23221,11 +23211,11 @@ class gV {
|
|
|
23221
23211
|
} : [s, f].join(".");
|
|
23222
23212
|
}
|
|
23223
23213
|
}
|
|
23224
|
-
|
|
23214
|
+
iu.TokenSigner = gV;
|
|
23225
23215
|
var Jl = {};
|
|
23226
23216
|
Object.defineProperty(Jl, "__esModule", { value: !0 });
|
|
23227
23217
|
Jl.TokenVerifier = void 0;
|
|
23228
|
-
const mV = Pn, $4 = ll, yV = va, I0 =
|
|
23218
|
+
const mV = Pn, $4 = ll, yV = va, I0 = Xo;
|
|
23229
23219
|
class wV {
|
|
23230
23220
|
constructor(e, r) {
|
|
23231
23221
|
if (!(e && r))
|
|
@@ -23312,19 +23302,19 @@ Yl.decodeToken = _V;
|
|
|
23312
23302
|
for (var i in n)
|
|
23313
23303
|
i !== "default" && !Object.prototype.hasOwnProperty.call(s, i) && e(s, n, i);
|
|
23314
23304
|
};
|
|
23315
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), r(
|
|
23305
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), r(iu, t), r(Jl, t), r(Yl, t), r(va, t), r(ll, t);
|
|
23316
23306
|
})(dl);
|
|
23317
23307
|
var lg = /* @__PURE__ */ ((t) => (t.Mainnet = "Mainnet", t.Testnet = "Testnet", t))(lg || {}), AV = (t = "Mainnet") => `https://ordinals${t === "Testnet" ? "-testnet" : ""}.xverse.app/v1`, y9 = class {
|
|
23318
23308
|
constructor(e) {
|
|
23319
|
-
|
|
23320
|
-
|
|
23309
|
+
At(this, "client");
|
|
23310
|
+
At(this, "parseError", (e) => {
|
|
23321
23311
|
var r, n;
|
|
23322
23312
|
return {
|
|
23323
23313
|
code: (r = e.response) == null ? void 0 : r.status,
|
|
23324
23314
|
message: JSON.stringify((n = e.response) == null ? void 0 : n.data)
|
|
23325
23315
|
};
|
|
23326
23316
|
});
|
|
23327
|
-
|
|
23317
|
+
At(this, "estimateMintCost", async (e) => {
|
|
23328
23318
|
try {
|
|
23329
23319
|
return {
|
|
23330
23320
|
data: (await this.client.post("/runes/mint/estimate", {
|
|
@@ -23338,7 +23328,7 @@ var lg = /* @__PURE__ */ ((t) => (t.Mainnet = "Mainnet", t.Testnet = "Testnet",
|
|
|
23338
23328
|
};
|
|
23339
23329
|
}
|
|
23340
23330
|
});
|
|
23341
|
-
|
|
23331
|
+
At(this, "estimateEtchCost", async (e) => {
|
|
23342
23332
|
try {
|
|
23343
23333
|
return {
|
|
23344
23334
|
data: (await this.client.post("/runes/etch/estimate", {
|
|
@@ -23352,7 +23342,7 @@ var lg = /* @__PURE__ */ ((t) => (t.Mainnet = "Mainnet", t.Testnet = "Testnet",
|
|
|
23352
23342
|
};
|
|
23353
23343
|
}
|
|
23354
23344
|
});
|
|
23355
|
-
|
|
23345
|
+
At(this, "createMintOrder", async (e) => {
|
|
23356
23346
|
try {
|
|
23357
23347
|
return {
|
|
23358
23348
|
data: (await this.client.post("/runes/mint/orders", {
|
|
@@ -23366,7 +23356,7 @@ var lg = /* @__PURE__ */ ((t) => (t.Mainnet = "Mainnet", t.Testnet = "Testnet",
|
|
|
23366
23356
|
};
|
|
23367
23357
|
}
|
|
23368
23358
|
});
|
|
23369
|
-
|
|
23359
|
+
At(this, "createEtchOrder", async (e) => {
|
|
23370
23360
|
try {
|
|
23371
23361
|
return {
|
|
23372
23362
|
data: (await this.client.post("/runes/etch/orders", {
|
|
@@ -23380,7 +23370,7 @@ var lg = /* @__PURE__ */ ((t) => (t.Mainnet = "Mainnet", t.Testnet = "Testnet",
|
|
|
23380
23370
|
};
|
|
23381
23371
|
}
|
|
23382
23372
|
});
|
|
23383
|
-
|
|
23373
|
+
At(this, "executeMint", async (e, r) => {
|
|
23384
23374
|
try {
|
|
23385
23375
|
return {
|
|
23386
23376
|
data: (await this.client.post(`/runes/mint/orders/${e}/execute`, {
|
|
@@ -23394,7 +23384,7 @@ var lg = /* @__PURE__ */ ((t) => (t.Mainnet = "Mainnet", t.Testnet = "Testnet",
|
|
|
23394
23384
|
};
|
|
23395
23385
|
}
|
|
23396
23386
|
});
|
|
23397
|
-
|
|
23387
|
+
At(this, "executeEtch", async (e, r) => {
|
|
23398
23388
|
try {
|
|
23399
23389
|
return {
|
|
23400
23390
|
data: (await this.client.post(`/runes/etch/orders/${e}/execute`, {
|
|
@@ -23408,7 +23398,7 @@ var lg = /* @__PURE__ */ ((t) => (t.Mainnet = "Mainnet", t.Testnet = "Testnet",
|
|
|
23408
23398
|
};
|
|
23409
23399
|
}
|
|
23410
23400
|
});
|
|
23411
|
-
|
|
23401
|
+
At(this, "getOrder", async (e) => {
|
|
23412
23402
|
try {
|
|
23413
23403
|
return {
|
|
23414
23404
|
data: (await this.client.get(`/orders/${e}`)).data
|
|
@@ -23420,7 +23410,7 @@ var lg = /* @__PURE__ */ ((t) => (t.Mainnet = "Mainnet", t.Testnet = "Testnet",
|
|
|
23420
23410
|
};
|
|
23421
23411
|
}
|
|
23422
23412
|
});
|
|
23423
|
-
|
|
23413
|
+
At(this, "rbfOrder", async (e) => {
|
|
23424
23414
|
const { orderId: r, newFeeRate: n } = e;
|
|
23425
23415
|
try {
|
|
23426
23416
|
return {
|
|
@@ -23509,15 +23499,15 @@ var Y0 = /* @__PURE__ */ ((t) => (t.Ordinals = "ordinals", t.Payment = "payment"
|
|
|
23509
23499
|
}
|
|
23510
23500
|
}, MV = (t = "Mainnet") => `https://ordinals${t === "Testnet" ? "-testnet" : ""}.xverse.app/v1`, w9 = class {
|
|
23511
23501
|
constructor(t) {
|
|
23512
|
-
|
|
23513
|
-
|
|
23502
|
+
At(this, "client");
|
|
23503
|
+
At(this, "parseError", (t) => {
|
|
23514
23504
|
var e, r;
|
|
23515
23505
|
return {
|
|
23516
23506
|
code: (e = t.response) == null ? void 0 : e.status,
|
|
23517
23507
|
message: JSON.stringify((r = t.response) == null ? void 0 : r.data)
|
|
23518
23508
|
};
|
|
23519
23509
|
});
|
|
23520
|
-
|
|
23510
|
+
At(this, "estimateMintCost", async (t) => {
|
|
23521
23511
|
try {
|
|
23522
23512
|
return {
|
|
23523
23513
|
data: (await this.client.post("/runes/mint/estimate", {
|
|
@@ -23531,7 +23521,7 @@ var Y0 = /* @__PURE__ */ ((t) => (t.Ordinals = "ordinals", t.Payment = "payment"
|
|
|
23531
23521
|
};
|
|
23532
23522
|
}
|
|
23533
23523
|
});
|
|
23534
|
-
|
|
23524
|
+
At(this, "estimateEtchCost", async (t) => {
|
|
23535
23525
|
try {
|
|
23536
23526
|
return {
|
|
23537
23527
|
data: (await this.client.post("/runes/etch/estimate", {
|
|
@@ -23545,7 +23535,7 @@ var Y0 = /* @__PURE__ */ ((t) => (t.Ordinals = "ordinals", t.Payment = "payment"
|
|
|
23545
23535
|
};
|
|
23546
23536
|
}
|
|
23547
23537
|
});
|
|
23548
|
-
|
|
23538
|
+
At(this, "createMintOrder", async (t) => {
|
|
23549
23539
|
try {
|
|
23550
23540
|
return {
|
|
23551
23541
|
data: (await this.client.post("/runes/mint/orders", {
|
|
@@ -23559,7 +23549,7 @@ var Y0 = /* @__PURE__ */ ((t) => (t.Ordinals = "ordinals", t.Payment = "payment"
|
|
|
23559
23549
|
};
|
|
23560
23550
|
}
|
|
23561
23551
|
});
|
|
23562
|
-
|
|
23552
|
+
At(this, "createEtchOrder", async (t) => {
|
|
23563
23553
|
try {
|
|
23564
23554
|
return {
|
|
23565
23555
|
data: (await this.client.post("/runes/etch/orders", {
|
|
@@ -23573,7 +23563,7 @@ var Y0 = /* @__PURE__ */ ((t) => (t.Ordinals = "ordinals", t.Payment = "payment"
|
|
|
23573
23563
|
};
|
|
23574
23564
|
}
|
|
23575
23565
|
});
|
|
23576
|
-
|
|
23566
|
+
At(this, "executeMint", async (t, e) => {
|
|
23577
23567
|
try {
|
|
23578
23568
|
return {
|
|
23579
23569
|
data: (await this.client.post(`/runes/mint/orders/${t}/execute`, {
|
|
@@ -23587,7 +23577,7 @@ var Y0 = /* @__PURE__ */ ((t) => (t.Ordinals = "ordinals", t.Payment = "payment"
|
|
|
23587
23577
|
};
|
|
23588
23578
|
}
|
|
23589
23579
|
});
|
|
23590
|
-
|
|
23580
|
+
At(this, "executeEtch", async (t, e) => {
|
|
23591
23581
|
try {
|
|
23592
23582
|
return {
|
|
23593
23583
|
data: (await this.client.post(`/runes/etch/orders/${t}/execute`, {
|
|
@@ -23601,7 +23591,7 @@ var Y0 = /* @__PURE__ */ ((t) => (t.Ordinals = "ordinals", t.Payment = "payment"
|
|
|
23601
23591
|
};
|
|
23602
23592
|
}
|
|
23603
23593
|
});
|
|
23604
|
-
|
|
23594
|
+
At(this, "getOrder", async (t) => {
|
|
23605
23595
|
try {
|
|
23606
23596
|
return {
|
|
23607
23597
|
data: (await this.client.get(`/orders/${t}`)).data
|
|
@@ -23631,7 +23621,7 @@ const RV = {
|
|
|
23631
23621
|
id: "xverse",
|
|
23632
23622
|
name: "Xverse",
|
|
23633
23623
|
icon: Wg.Xverse,
|
|
23634
|
-
platforms: [
|
|
23624
|
+
platforms: [eu.BROWSER, eu.MOBILE],
|
|
23635
23625
|
downloadLink: "https://www.xverse.app/download",
|
|
23636
23626
|
isDetected: () => {
|
|
23637
23627
|
var t;
|
|
@@ -23730,7 +23720,7 @@ const TV = {
|
|
|
23730
23720
|
id: "leather",
|
|
23731
23721
|
name: "Leather",
|
|
23732
23722
|
icon: Wg.Leather,
|
|
23733
|
-
platforms: [
|
|
23723
|
+
platforms: [eu.BROWSER],
|
|
23734
23724
|
downloadLink: "https://leather.io/install-extension",
|
|
23735
23725
|
isDetected: () => !!window.LeatherProvider,
|
|
23736
23726
|
isConnected: async () => X4,
|
|
@@ -25036,11 +25026,11 @@ Kd.exports;
|
|
|
25036
25026
|
["partial", K],
|
|
25037
25027
|
["partialRight", V],
|
|
25038
25028
|
["rearg", U]
|
|
25039
|
-
], se = "[object Arguments]", Z = "[object Array]", W = "[object AsyncFunction]", Q = "[object Boolean]", ee = "[object Date]", ce = "[object DOMException]", X = "[object Error]", $ = "[object Function]", ve = "[object GeneratorFunction]", me = "[object Map]", _e = "[object Number]", Pe = "[object Null]", qe = "[object Object]", Ne = "[object Promise]", Ae = "[object Proxy]", nt = "[object RegExp]", Be = "[object Set]", Je = "[object String]", Ye = "[object Symbol]", ue = "[object Undefined]", be = "[object WeakMap]", Ie = "[object WeakSet]", xe = "[object ArrayBuffer]", Oe = "[object DataView]", ze = "[object Float32Array]", Me = "[object Float64Array]", Xe = "[object Int8Array]", $e = "[object Int16Array]", Ce = "[object Int32Array]", Qe = "[object Uint8Array]", at = "[object Uint8ClampedArray]", je = "[object Uint16Array]", ft = "[object Uint32Array]", ot = /\b__p \+= '';/g, We = /\b(__p \+=) '' \+/g, pt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, lt = /&(?:amp|lt|gt|quot|#39);/g, Fe = /[&<>"']/g, tt = RegExp(lt.source), ct = RegExp(Fe.source), oe = /<%-([\s\S]+?)%>/g, re = /<%([\s\S]+?)%>/g, fe = /<%=([\s\S]+?)%>/g, q = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, k = /^\w*$/, F = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, G = /[\\^$.*+?()[\]{}|]/g, ae = RegExp(G.source), de = /^\s+/, he = /\s/, Re = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Ue = /\{\n\/\* \[wrapped with (.+)\] \*/, Se = /,? & /, Ge = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ke = /[()=,{}\[\]\/\s]/, Ve = /\\(\\)?/g, ht = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, It = /\w*$/, Tt = /^[-+]0x[0-9a-f]+$/i, vr = /^0b[01]+$/i, wr = /^\[object .+?Constructor\]$/, hr = /^0o[0-7]+$/i, Lr = /^(?:0|[1-9]\d*)$/, Qr = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Mr = /($^)/, en = /['\n\r\u2028\u2029\\]/g, Rr = "\\ud800-\\udfff", tn = "\\u0300-\\u036f", rn = "\\ufe20-\\ufe2f", nn = "\\u20d0-\\u20ff", Dr = tn + rn + nn, Ur = "\\u2700-\\u27bf", Fr = "a-z\\xdf-\\xf6\\xf8-\\xff", sn = "\\xac\\xb1\\xd7\\xf7", an = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", $n = "\\u2000-\\u206f", Wu = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",
|
|
25040
|
-
|
|
25041
|
-
ux + "+" + P2 + "(?=" + [x2,
|
|
25042
|
-
|
|
25043
|
-
|
|
25029
|
+
], se = "[object Arguments]", Z = "[object Array]", W = "[object AsyncFunction]", Q = "[object Boolean]", ee = "[object Date]", ce = "[object DOMException]", X = "[object Error]", $ = "[object Function]", ve = "[object GeneratorFunction]", me = "[object Map]", _e = "[object Number]", Pe = "[object Null]", qe = "[object Object]", Ne = "[object Promise]", Ae = "[object Proxy]", nt = "[object RegExp]", Be = "[object Set]", Je = "[object String]", Ye = "[object Symbol]", ue = "[object Undefined]", be = "[object WeakMap]", Ie = "[object WeakSet]", xe = "[object ArrayBuffer]", Oe = "[object DataView]", ze = "[object Float32Array]", Me = "[object Float64Array]", Xe = "[object Int8Array]", $e = "[object Int16Array]", Ce = "[object Int32Array]", Qe = "[object Uint8Array]", at = "[object Uint8ClampedArray]", je = "[object Uint16Array]", ft = "[object Uint32Array]", ot = /\b__p \+= '';/g, We = /\b(__p \+=) '' \+/g, pt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, lt = /&(?:amp|lt|gt|quot|#39);/g, Fe = /[&<>"']/g, tt = RegExp(lt.source), ct = RegExp(Fe.source), oe = /<%-([\s\S]+?)%>/g, re = /<%([\s\S]+?)%>/g, fe = /<%=([\s\S]+?)%>/g, q = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, k = /^\w*$/, F = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, G = /[\\^$.*+?()[\]{}|]/g, ae = RegExp(G.source), de = /^\s+/, he = /\s/, Re = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Ue = /\{\n\/\* \[wrapped with (.+)\] \*/, Se = /,? & /, Ge = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ke = /[()=,{}\[\]\/\s]/, Ve = /\\(\\)?/g, ht = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, It = /\w*$/, Tt = /^[-+]0x[0-9a-f]+$/i, vr = /^0b[01]+$/i, wr = /^\[object .+?Constructor\]$/, hr = /^0o[0-7]+$/i, Lr = /^(?:0|[1-9]\d*)$/, Qr = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Mr = /($^)/, en = /['\n\r\u2028\u2029\\]/g, Rr = "\\ud800-\\udfff", tn = "\\u0300-\\u036f", rn = "\\ufe20-\\ufe2f", nn = "\\u20d0-\\u20ff", Dr = tn + rn + nn, Ur = "\\u2700-\\u27bf", Fr = "a-z\\xdf-\\xf6\\xf8-\\xff", sn = "\\xac\\xb1\\xd7\\xf7", an = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", $n = "\\u2000-\\u206f", Wu = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", pf = "A-Z\\xc0-\\xd6\\xd8-\\xde", _2 = "\\ufe0e\\ufe0f", A2 = sn + an + $n + Wu, wp = "['’]", ax = "[" + Rr + "]", x2 = "[" + A2 + "]", Oh = "[" + Dr + "]", S2 = "\\d+", ox = "[" + Ur + "]", E2 = "[" + Fr + "]", I2 = "[^" + Rr + A2 + S2 + Ur + Fr + pf + "]", _p = "\\ud83c[\\udffb-\\udfff]", fx = "(?:" + Oh + "|" + _p + ")", M2 = "[^" + Rr + "]", Ap = "(?:\\ud83c[\\udde6-\\uddff]){2}", xp = "[\\ud800-\\udbff][\\udc00-\\udfff]", vf = "[" + pf + "]", R2 = "\\u200d", T2 = "(?:" + E2 + "|" + I2 + ")", ux = "(?:" + vf + "|" + I2 + ")", O2 = "(?:" + wp + "(?:d|ll|m|re|s|t|ve))?", P2 = "(?:" + wp + "(?:D|LL|M|RE|S|T|VE))?", B2 = fx + "?", C2 = "[" + _2 + "]?", cx = "(?:" + R2 + "(?:" + [M2, Ap, xp].join("|") + ")" + C2 + B2 + ")*", hx = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", dx = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", k2 = C2 + B2 + cx, lx = "(?:" + [ox, Ap, xp].join("|") + ")" + k2, px = "(?:" + [M2 + Oh + "?", Oh, Ap, xp, ax].join("|") + ")", vx = RegExp(wp, "g"), bx = RegExp(Oh, "g"), Sp = RegExp(_p + "(?=" + _p + ")|" + px + k2, "g"), gx = RegExp([
|
|
25030
|
+
vf + "?" + E2 + "+" + O2 + "(?=" + [x2, vf, "$"].join("|") + ")",
|
|
25031
|
+
ux + "+" + P2 + "(?=" + [x2, vf + T2, "$"].join("|") + ")",
|
|
25032
|
+
vf + "?" + T2 + "+" + O2,
|
|
25033
|
+
vf + "+" + P2,
|
|
25044
25034
|
dx,
|
|
25045
25035
|
hx,
|
|
25046
25036
|
S2,
|
|
@@ -25313,8 +25303,8 @@ Kd.exports;
|
|
|
25313
25303
|
return ye.apply(Te, Ee);
|
|
25314
25304
|
}
|
|
25315
25305
|
function Tx(ye, Te, Ee, it) {
|
|
25316
|
-
for (var
|
|
25317
|
-
var Pr = ye[
|
|
25306
|
+
for (var _t = -1, Xt = ye == null ? 0 : ye.length; ++_t < Xt; ) {
|
|
25307
|
+
var Pr = ye[_t];
|
|
25318
25308
|
Te(it, Pr, Ee(Pr), ye);
|
|
25319
25309
|
}
|
|
25320
25310
|
return it;
|
|
@@ -25336,42 +25326,42 @@ Kd.exports;
|
|
|
25336
25326
|
return !0;
|
|
25337
25327
|
}
|
|
25338
25328
|
function xa(ye, Te) {
|
|
25339
|
-
for (var Ee = -1, it = ye == null ? 0 : ye.length,
|
|
25329
|
+
for (var Ee = -1, it = ye == null ? 0 : ye.length, _t = 0, Xt = []; ++Ee < it; ) {
|
|
25340
25330
|
var Pr = ye[Ee];
|
|
25341
|
-
Te(Pr, Ee, ye) && (Xt[
|
|
25331
|
+
Te(Pr, Ee, ye) && (Xt[_t++] = Pr);
|
|
25342
25332
|
}
|
|
25343
25333
|
return Xt;
|
|
25344
25334
|
}
|
|
25345
25335
|
function Ph(ye, Te) {
|
|
25346
25336
|
var Ee = ye == null ? 0 : ye.length;
|
|
25347
|
-
return !!Ee &&
|
|
25337
|
+
return !!Ee && bf(ye, Te, 0) > -1;
|
|
25348
25338
|
}
|
|
25349
25339
|
function Mp(ye, Te, Ee) {
|
|
25350
|
-
for (var it = -1,
|
|
25340
|
+
for (var it = -1, _t = ye == null ? 0 : ye.length; ++it < _t; )
|
|
25351
25341
|
if (Ee(Te, ye[it]))
|
|
25352
25342
|
return !0;
|
|
25353
25343
|
return !1;
|
|
25354
25344
|
}
|
|
25355
25345
|
function ur(ye, Te) {
|
|
25356
|
-
for (var Ee = -1, it = ye == null ? 0 : ye.length,
|
|
25357
|
-
|
|
25358
|
-
return
|
|
25346
|
+
for (var Ee = -1, it = ye == null ? 0 : ye.length, _t = Array(it); ++Ee < it; )
|
|
25347
|
+
_t[Ee] = Te(ye[Ee], Ee, ye);
|
|
25348
|
+
return _t;
|
|
25359
25349
|
}
|
|
25360
25350
|
function Sa(ye, Te) {
|
|
25361
|
-
for (var Ee = -1, it = Te.length,
|
|
25362
|
-
ye[
|
|
25351
|
+
for (var Ee = -1, it = Te.length, _t = ye.length; ++Ee < it; )
|
|
25352
|
+
ye[_t + Ee] = Te[Ee];
|
|
25363
25353
|
return ye;
|
|
25364
25354
|
}
|
|
25365
25355
|
function Rp(ye, Te, Ee, it) {
|
|
25366
|
-
var
|
|
25367
|
-
for (it && Xt && (Ee = ye[++
|
|
25368
|
-
Ee = Te(Ee, ye[
|
|
25356
|
+
var _t = -1, Xt = ye == null ? 0 : ye.length;
|
|
25357
|
+
for (it && Xt && (Ee = ye[++_t]); ++_t < Xt; )
|
|
25358
|
+
Ee = Te(Ee, ye[_t], _t, ye);
|
|
25369
25359
|
return Ee;
|
|
25370
25360
|
}
|
|
25371
25361
|
function Px(ye, Te, Ee, it) {
|
|
25372
|
-
var
|
|
25373
|
-
for (it &&
|
|
25374
|
-
Ee = Te(Ee, ye[
|
|
25362
|
+
var _t = ye == null ? 0 : ye.length;
|
|
25363
|
+
for (it && _t && (Ee = ye[--_t]); _t--; )
|
|
25364
|
+
Ee = Te(Ee, ye[_t], _t, ye);
|
|
25375
25365
|
return Ee;
|
|
25376
25366
|
}
|
|
25377
25367
|
function Tp(ye, Te) {
|
|
@@ -25389,24 +25379,24 @@ Kd.exports;
|
|
|
25389
25379
|
}
|
|
25390
25380
|
function K2(ye, Te, Ee) {
|
|
25391
25381
|
var it;
|
|
25392
|
-
return Ee(ye, function(
|
|
25393
|
-
if (Te(
|
|
25382
|
+
return Ee(ye, function(_t, Xt, Pr) {
|
|
25383
|
+
if (Te(_t, Xt, Pr))
|
|
25394
25384
|
return it = Xt, !1;
|
|
25395
25385
|
}), it;
|
|
25396
25386
|
}
|
|
25397
25387
|
function Bh(ye, Te, Ee, it) {
|
|
25398
|
-
for (var
|
|
25388
|
+
for (var _t = ye.length, Xt = Ee + (it ? 1 : -1); it ? Xt-- : ++Xt < _t; )
|
|
25399
25389
|
if (Te(ye[Xt], Xt, ye))
|
|
25400
25390
|
return Xt;
|
|
25401
25391
|
return -1;
|
|
25402
25392
|
}
|
|
25403
|
-
function
|
|
25393
|
+
function bf(ye, Te, Ee) {
|
|
25404
25394
|
return Te === Te ? Wx(ye, Te, Ee) : Bh(ye, V2, Ee);
|
|
25405
25395
|
}
|
|
25406
25396
|
function Nx(ye, Te, Ee, it) {
|
|
25407
|
-
for (var
|
|
25408
|
-
if (it(ye[
|
|
25409
|
-
return
|
|
25397
|
+
for (var _t = Ee - 1, Xt = ye.length; ++_t < Xt; )
|
|
25398
|
+
if (it(ye[_t], Te))
|
|
25399
|
+
return _t;
|
|
25410
25400
|
return -1;
|
|
25411
25401
|
}
|
|
25412
25402
|
function V2(ye) {
|
|
@@ -25426,8 +25416,8 @@ Kd.exports;
|
|
|
25426
25416
|
return ye == null ? r : ye[Te];
|
|
25427
25417
|
};
|
|
25428
25418
|
}
|
|
25429
|
-
function G2(ye, Te, Ee, it,
|
|
25430
|
-
return
|
|
25419
|
+
function G2(ye, Te, Ee, it, _t) {
|
|
25420
|
+
return _t(ye, function(Xt, Pr, nr) {
|
|
25431
25421
|
Ee = it ? (it = !1, Xt) : Te(Ee, Xt, Pr, nr);
|
|
25432
25422
|
}), Ee;
|
|
25433
25423
|
}
|
|
@@ -25438,7 +25428,7 @@ Kd.exports;
|
|
|
25438
25428
|
return ye;
|
|
25439
25429
|
}
|
|
25440
25430
|
function Bp(ye, Te) {
|
|
25441
|
-
for (var Ee, it = -1,
|
|
25431
|
+
for (var Ee, it = -1, _t = ye.length; ++it < _t; ) {
|
|
25442
25432
|
var Xt = Te(ye[it]);
|
|
25443
25433
|
Xt !== r && (Ee = Ee === r ? Xt : Ee + Xt);
|
|
25444
25434
|
}
|
|
@@ -25471,12 +25461,12 @@ Kd.exports;
|
|
|
25471
25461
|
return ye.has(Te);
|
|
25472
25462
|
}
|
|
25473
25463
|
function Z2(ye, Te) {
|
|
25474
|
-
for (var Ee = -1, it = ye.length; ++Ee < it &&
|
|
25464
|
+
for (var Ee = -1, it = ye.length; ++Ee < it && bf(Te, ye[Ee], 0) > -1; )
|
|
25475
25465
|
;
|
|
25476
25466
|
return Ee;
|
|
25477
25467
|
}
|
|
25478
25468
|
function X2(ye, Te) {
|
|
25479
|
-
for (var Ee = ye.length; Ee-- &&
|
|
25469
|
+
for (var Ee = ye.length; Ee-- && bf(Te, ye[Ee], 0) > -1; )
|
|
25480
25470
|
;
|
|
25481
25471
|
return Ee;
|
|
25482
25472
|
}
|
|
@@ -25492,7 +25482,7 @@ Kd.exports;
|
|
|
25492
25482
|
function zx(ye, Te) {
|
|
25493
25483
|
return ye == null ? r : ye[Te];
|
|
25494
25484
|
}
|
|
25495
|
-
function
|
|
25485
|
+
function gf(ye) {
|
|
25496
25486
|
return mx.test(ye);
|
|
25497
25487
|
}
|
|
25498
25488
|
function jx(ye) {
|
|
@@ -25505,8 +25495,8 @@ Kd.exports;
|
|
|
25505
25495
|
}
|
|
25506
25496
|
function Np(ye) {
|
|
25507
25497
|
var Te = -1, Ee = Array(ye.size);
|
|
25508
|
-
return ye.forEach(function(it,
|
|
25509
|
-
Ee[++Te] = [
|
|
25498
|
+
return ye.forEach(function(it, _t) {
|
|
25499
|
+
Ee[++Te] = [_t, it];
|
|
25510
25500
|
}), Ee;
|
|
25511
25501
|
}
|
|
25512
25502
|
function J2(ye, Te) {
|
|
@@ -25515,9 +25505,9 @@ Kd.exports;
|
|
|
25515
25505
|
};
|
|
25516
25506
|
}
|
|
25517
25507
|
function Ea(ye, Te) {
|
|
25518
|
-
for (var Ee = -1, it = ye.length,
|
|
25508
|
+
for (var Ee = -1, it = ye.length, _t = 0, Xt = []; ++Ee < it; ) {
|
|
25519
25509
|
var Pr = ye[Ee];
|
|
25520
|
-
(Pr === Te || Pr === E) && (ye[Ee] = E, Xt[
|
|
25510
|
+
(Pr === Te || Pr === E) && (ye[Ee] = E, Xt[_t++] = Ee);
|
|
25521
25511
|
}
|
|
25522
25512
|
return Xt;
|
|
25523
25513
|
}
|
|
@@ -25534,7 +25524,7 @@ Kd.exports;
|
|
|
25534
25524
|
}), Ee;
|
|
25535
25525
|
}
|
|
25536
25526
|
function Wx(ye, Te, Ee) {
|
|
25537
|
-
for (var it = Ee - 1,
|
|
25527
|
+
for (var it = Ee - 1, _t = ye.length; ++it < _t; )
|
|
25538
25528
|
if (ye[it] === Te)
|
|
25539
25529
|
return it;
|
|
25540
25530
|
return -1;
|
|
@@ -25545,11 +25535,11 @@ Kd.exports;
|
|
|
25545
25535
|
return it;
|
|
25546
25536
|
return it;
|
|
25547
25537
|
}
|
|
25548
|
-
function
|
|
25549
|
-
return
|
|
25538
|
+
function mf(ye) {
|
|
25539
|
+
return gf(ye) ? Zx(ye) : Bx(ye);
|
|
25550
25540
|
}
|
|
25551
25541
|
function qi(ye) {
|
|
25552
|
-
return
|
|
25542
|
+
return gf(ye) ? Xx(ye) : Cx(ye);
|
|
25553
25543
|
}
|
|
25554
25544
|
function Y2(ye) {
|
|
25555
25545
|
for (var Te = ye.length; Te-- && he.test(ye.charAt(Te)); )
|
|
@@ -25569,19 +25559,19 @@ Kd.exports;
|
|
|
25569
25559
|
return ye.match(gx) || [];
|
|
25570
25560
|
}
|
|
25571
25561
|
var Yx = function ye(Te) {
|
|
25572
|
-
Te = Te == null ? on :
|
|
25573
|
-
var Ee = Te.Array, it = Te.Date,
|
|
25562
|
+
Te = Te == null ? on : yf.defaults(on.Object(), Te, yf.pick(on, wx));
|
|
25563
|
+
var Ee = Te.Array, it = Te.Date, _t = Te.Error, Xt = Te.Function, Pr = Te.Math, nr = Te.Object, Lp = Te.RegExp, Qx = Te.String, ui = Te.TypeError, kh = Ee.prototype, eS = Xt.prototype, wf = nr.prototype, Nh = Te["__core-js_shared__"], Lh = eS.toString, Qt = wf.hasOwnProperty, tS = 0, Q2 = function() {
|
|
25574
25564
|
var o = /[^.]+$/.exec(Nh && Nh.keys && Nh.keys.IE_PROTO || "");
|
|
25575
25565
|
return o ? "Symbol(src)_1." + o : "";
|
|
25576
|
-
}(), Dh =
|
|
25566
|
+
}(), Dh = wf.toString, rS = Lh.call(nr), nS = on._, iS = Lp(
|
|
25577
25567
|
"^" + Lh.call(Qt).replace(G, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
25578
|
-
), Uh = L2 ? Te.Buffer : r, Ia = Te.Symbol, Fh = Te.Uint8Array, ey = Uh ? Uh.allocUnsafe : r, Hh = J2(nr.getPrototypeOf, nr), ty = nr.create, ry =
|
|
25568
|
+
), Uh = L2 ? Te.Buffer : r, Ia = Te.Symbol, Fh = Te.Uint8Array, ey = Uh ? Uh.allocUnsafe : r, Hh = J2(nr.getPrototypeOf, nr), ty = nr.create, ry = wf.propertyIsEnumerable, qh = kh.splice, ny = Ia ? Ia.isConcatSpreadable : r, $u = Ia ? Ia.iterator : r, fo = Ia ? Ia.toStringTag : r, zh = function() {
|
|
25579
25569
|
try {
|
|
25580
25570
|
var o = po(nr, "defineProperty");
|
|
25581
25571
|
return o({}, "", {}), o;
|
|
25582
25572
|
} catch {
|
|
25583
25573
|
}
|
|
25584
|
-
}(), sS = Te.clearTimeout !== on.clearTimeout && Te.clearTimeout, aS = it && it.now !== on.Date.now && it.now, oS = Te.setTimeout !== on.setTimeout && Te.setTimeout, jh = Pr.ceil, Kh = Pr.floor, Dp = nr.getOwnPropertySymbols, fS = Uh ? Uh.isBuffer : r, iy = Te.isFinite, uS = kh.join, cS = J2(nr.keys, nr), Br = Pr.max, bn = Pr.min, hS = it.now, dS = Te.parseInt, sy = Pr.random, lS = kh.reverse, Up = po(Te, "DataView"), Zu = po(Te, "Map"), Fp = po(Te, "Promise"),
|
|
25574
|
+
}(), sS = Te.clearTimeout !== on.clearTimeout && Te.clearTimeout, aS = it && it.now !== on.Date.now && it.now, oS = Te.setTimeout !== on.setTimeout && Te.setTimeout, jh = Pr.ceil, Kh = Pr.floor, Dp = nr.getOwnPropertySymbols, fS = Uh ? Uh.isBuffer : r, iy = Te.isFinite, uS = kh.join, cS = J2(nr.keys, nr), Br = Pr.max, bn = Pr.min, hS = it.now, dS = Te.parseInt, sy = Pr.random, lS = kh.reverse, Up = po(Te, "DataView"), Zu = po(Te, "Map"), Fp = po(Te, "Promise"), _f = po(Te, "Set"), Xu = po(Te, "WeakMap"), Ju = po(nr, "create"), Vh = Xu && new Xu(), Af = {}, pS = vo(Up), vS = vo(Zu), bS = vo(Fp), gS = vo(_f), mS = vo(Xu), Wh = Ia ? Ia.prototype : r, Yu = Wh ? Wh.valueOf : r, ay = Wh ? Wh.toString : r;
|
|
25585
25575
|
function ne(o) {
|
|
25586
25576
|
if (br(o) && !St(o) && !(o instanceof qt)) {
|
|
25587
25577
|
if (o instanceof ci)
|
|
@@ -25591,7 +25581,7 @@ Kd.exports;
|
|
|
25591
25581
|
}
|
|
25592
25582
|
return new ci(o);
|
|
25593
25583
|
}
|
|
25594
|
-
var
|
|
25584
|
+
var xf = /* @__PURE__ */ function() {
|
|
25595
25585
|
function o() {
|
|
25596
25586
|
}
|
|
25597
25587
|
return function(v) {
|
|
@@ -25653,7 +25643,7 @@ Kd.exports;
|
|
|
25653
25643
|
*/
|
|
25654
25644
|
_: ne
|
|
25655
25645
|
}
|
|
25656
|
-
}, ne.prototype = Gh.prototype, ne.prototype.constructor = ne, ci.prototype =
|
|
25646
|
+
}, ne.prototype = Gh.prototype, ne.prototype.constructor = ne, ci.prototype = xf(Gh.prototype), ci.prototype.constructor = ci;
|
|
25657
25647
|
function qt(o) {
|
|
25658
25648
|
this.__wrapped__ = o, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = S, this.__views__ = [];
|
|
25659
25649
|
}
|
|
@@ -25691,7 +25681,7 @@ Kd.exports;
|
|
|
25691
25681
|
}
|
|
25692
25682
|
return mt;
|
|
25693
25683
|
}
|
|
25694
|
-
qt.prototype =
|
|
25684
|
+
qt.prototype = xf(Gh.prototype), qt.prototype.constructor = qt;
|
|
25695
25685
|
function uo(o) {
|
|
25696
25686
|
var v = -1, T = o == null ? 0 : o.length;
|
|
25697
25687
|
for (this.clear(); ++v < T; ) {
|
|
@@ -25822,7 +25812,7 @@ Kd.exports;
|
|
|
25822
25812
|
}
|
|
25823
25813
|
zi.prototype.clear = FS, zi.prototype.delete = HS, zi.prototype.get = qS, zi.prototype.has = zS, zi.prototype.set = jS;
|
|
25824
25814
|
function oy(o, v) {
|
|
25825
|
-
var T = St(o), z = !T && bo(o), J = !T && !z && Pa(o), ie = !T && !z && !J &&
|
|
25815
|
+
var T = St(o), z = !T && bo(o), J = !T && !z && Pa(o), ie = !T && !z && !J && Mf(o), le = T || z || J || ie, ge = le ? Cp(o.length, Qx) : [], we = ge.length;
|
|
25826
25816
|
for (var ke in o)
|
|
25827
25817
|
(v || Qt.call(o, ke)) && !(le && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
25828
25818
|
(ke == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -26085,7 +26075,7 @@ Kd.exports;
|
|
|
26085
26075
|
le = !0, Le = !1;
|
|
26086
26076
|
}
|
|
26087
26077
|
if (et && !Le)
|
|
26088
|
-
return ie || (ie = new zi()), le ||
|
|
26078
|
+
return ie || (ie = new zi()), le || Mf(o) ? Zy(o, v, T, z, J, ie) : OE(o, v, we, T, z, J, ie);
|
|
26089
26079
|
if (!(T & I)) {
|
|
26090
26080
|
var ut = Le && Qt.call(o, "__wrapped__"), mt = He && Qt.call(v, "__wrapped__");
|
|
26091
26081
|
if (ut || mt) {
|
|
@@ -26196,7 +26186,7 @@ Kd.exports;
|
|
|
26196
26186
|
}
|
|
26197
26187
|
var Le = ie ? ie(ge, we, T + "", o, v, le) : r, He = Le === r;
|
|
26198
26188
|
if (He) {
|
|
26199
|
-
var et = St(we), ut = !et && Pa(we), mt = !et && !ut &&
|
|
26189
|
+
var et = St(we), ut = !et && Pa(we), mt = !et && !ut && Mf(we);
|
|
26200
26190
|
Le = we, et || ut || mt ? St(ge) ? Le = ge : _r(ge) ? Le = Nn(ge) : ut ? (He = !1, Le = Cy(we, !0)) : mt ? (He = !1, Le = ky(we, !0)) : Le = [] : oc(we) || bo(we) ? (Le = ge, bo(ge) ? Le = O3(ge) : (!dr(ge) || Gs(ge)) && (Le = Yy(we))) : He = !1;
|
|
26201
26191
|
}
|
|
26202
26192
|
He && (le.set(we, Le), J(Le, we, z, ie, le), le.delete(we)), Hp(o, T, Le);
|
|
@@ -26242,7 +26232,7 @@ Kd.exports;
|
|
|
26242
26232
|
};
|
|
26243
26233
|
}
|
|
26244
26234
|
function Zp(o, v, T, z) {
|
|
26245
|
-
var J = z ? Nx :
|
|
26235
|
+
var J = z ? Nx : bf, ie = -1, le = v.length, ge = o;
|
|
26246
26236
|
for (o === v && (v = Nn(v)), T && (ge = ur(o, Xn(T))); ++ie < le; )
|
|
26247
26237
|
for (var we = 0, ke = v[ie], Le = T ? T(ke) : ke; (we = J(ge, Le, we, z)) > -1; )
|
|
26248
26238
|
ge !== o && qh.call(ge, we, 1), qh.call(o, we, 1);
|
|
@@ -26279,10 +26269,10 @@ Kd.exports;
|
|
|
26279
26269
|
return p1(t3(o, v, Un), o + "");
|
|
26280
26270
|
}
|
|
26281
26271
|
function lE(o) {
|
|
26282
|
-
return fy(
|
|
26272
|
+
return fy(Rf(o));
|
|
26283
26273
|
}
|
|
26284
26274
|
function pE(o, v) {
|
|
26285
|
-
var T =
|
|
26275
|
+
var T = Rf(o);
|
|
26286
26276
|
return o0(T, ho(v, 0, T.length));
|
|
26287
26277
|
}
|
|
26288
26278
|
function nc(o, v, T, z) {
|
|
@@ -26312,7 +26302,7 @@ Kd.exports;
|
|
|
26312
26302
|
});
|
|
26313
26303
|
} : Un;
|
|
26314
26304
|
function bE(o) {
|
|
26315
|
-
return o0(
|
|
26305
|
+
return o0(Rf(o));
|
|
26316
26306
|
}
|
|
26317
26307
|
function di(o, v, T) {
|
|
26318
26308
|
var z = -1, J = o.length;
|
|
@@ -26542,7 +26532,7 @@ Kd.exports;
|
|
|
26542
26532
|
return J(T, o, gt(z, 2), ie);
|
|
26543
26533
|
};
|
|
26544
26534
|
}
|
|
26545
|
-
function
|
|
26535
|
+
function Sf(o) {
|
|
26546
26536
|
return Dt(function(v, T) {
|
|
26547
26537
|
var z = -1, J = T.length, ie = J > 1 ? T[J - 1] : r, le = J > 2 ? T[2] : r;
|
|
26548
26538
|
for (ie = o.length > 3 && typeof ie == "function" ? (J--, ie) : r, le && Rn(T[0], T[1], le) && (ie = J < 3 ? r : ie, J = 1), v = nr(v); ++z < J; ) {
|
|
@@ -26584,11 +26574,11 @@ Kd.exports;
|
|
|
26584
26574
|
function Hy(o) {
|
|
26585
26575
|
return function(v) {
|
|
26586
26576
|
v = Yt(v);
|
|
26587
|
-
var T =
|
|
26577
|
+
var T = gf(v) ? qi(v) : r, z = T ? T[0] : v.charAt(0), J = T ? Oa(T, 1).join("") : v.slice(1);
|
|
26588
26578
|
return z[o]() + J;
|
|
26589
26579
|
};
|
|
26590
26580
|
}
|
|
26591
|
-
function
|
|
26581
|
+
function Ef(o) {
|
|
26592
26582
|
return function(v) {
|
|
26593
26583
|
return Rp(U3(D3(v).replace(vx, "")), o, "");
|
|
26594
26584
|
};
|
|
@@ -26614,14 +26604,14 @@ Kd.exports;
|
|
|
26614
26604
|
case 7:
|
|
26615
26605
|
return new o(v[0], v[1], v[2], v[3], v[4], v[5], v[6]);
|
|
26616
26606
|
}
|
|
26617
|
-
var T =
|
|
26607
|
+
var T = xf(o.prototype), z = o.apply(T, v);
|
|
26618
26608
|
return dr(z) ? z : T;
|
|
26619
26609
|
};
|
|
26620
26610
|
}
|
|
26621
26611
|
function IE(o, v, T) {
|
|
26622
26612
|
var z = ic(o);
|
|
26623
26613
|
function J() {
|
|
26624
|
-
for (var ie = arguments.length, le = Ee(ie), ge = ie, we =
|
|
26614
|
+
for (var ie = arguments.length, le = Ee(ie), ge = ie, we = If(J); ge--; )
|
|
26625
26615
|
le[ge] = arguments[ge];
|
|
26626
26616
|
var ke = ie < 3 && le[0] !== we && le[ie - 1] !== we ? [] : Ea(le, we);
|
|
26627
26617
|
if (ie -= ke.length, ie < T)
|
|
@@ -26686,7 +26676,7 @@ Kd.exports;
|
|
|
26686
26676
|
for (var Ht = arguments.length, Wt = Ee(Ht), Qn = Ht; Qn--; )
|
|
26687
26677
|
Wt[Qn] = arguments[Qn];
|
|
26688
26678
|
if (ut)
|
|
26689
|
-
var Tn =
|
|
26679
|
+
var Tn = If(yt), ei = Ux(Wt, Tn);
|
|
26690
26680
|
if (z && (Wt = Ly(Wt, z, J, ut)), ie && (Wt = Dy(Wt, ie, le, ut)), Ht -= ei, ut && Ht < ke) {
|
|
26691
26681
|
var Ar = Ea(Wt, Tn);
|
|
26692
26682
|
return Vy(
|
|
@@ -26740,8 +26730,8 @@ Kd.exports;
|
|
|
26740
26730
|
var T = v.length;
|
|
26741
26731
|
if (T < 2)
|
|
26742
26732
|
return T ? Jp(v, o) : v;
|
|
26743
|
-
var z = Jp(v, jh(o /
|
|
26744
|
-
return
|
|
26733
|
+
var z = Jp(v, jh(o / mf(v)));
|
|
26734
|
+
return gf(v) ? Oa(qi(z), 0, o).join("") : z.slice(0, o);
|
|
26745
26735
|
}
|
|
26746
26736
|
function ME(o, v, T, z) {
|
|
26747
26737
|
var J = v & B, ie = ic(o);
|
|
@@ -26791,8 +26781,8 @@ Kd.exports;
|
|
|
26791
26781
|
return v(T);
|
|
26792
26782
|
};
|
|
26793
26783
|
}
|
|
26794
|
-
var RE =
|
|
26795
|
-
return new
|
|
26784
|
+
var RE = _f && 1 / Ch(new _f([, -0]))[1] == m ? function(o) {
|
|
26785
|
+
return new _f(o);
|
|
26796
26786
|
} : M1;
|
|
26797
26787
|
function Wy(o) {
|
|
26798
26788
|
return function(v) {
|
|
@@ -26829,7 +26819,7 @@ Kd.exports;
|
|
|
26829
26819
|
return i3(Ct(mt, ut), o, v);
|
|
26830
26820
|
}
|
|
26831
26821
|
function Gy(o, v, T, z) {
|
|
26832
|
-
return o === r || ji(o,
|
|
26822
|
+
return o === r || ji(o, wf[T]) && !Qt.call(z, T) ? v : o;
|
|
26833
26823
|
}
|
|
26834
26824
|
function $y(o, v, T, z, J, ie) {
|
|
26835
26825
|
return dr(o) && dr(v) && (ie.set(v, o), Jh(o, v, r, $y, ie), ie.delete(v)), o;
|
|
@@ -26949,14 +26939,14 @@ Kd.exports;
|
|
|
26949
26939
|
return Vh.get(o);
|
|
26950
26940
|
} : M1;
|
|
26951
26941
|
function s0(o) {
|
|
26952
|
-
for (var v = o.name + "", T =
|
|
26942
|
+
for (var v = o.name + "", T = Af[v], z = Qt.call(Af, v) ? T.length : 0; z--; ) {
|
|
26953
26943
|
var J = T[z], ie = J.func;
|
|
26954
26944
|
if (ie == null || ie == o)
|
|
26955
26945
|
return J.name;
|
|
26956
26946
|
}
|
|
26957
26947
|
return v;
|
|
26958
26948
|
}
|
|
26959
|
-
function
|
|
26949
|
+
function If(o) {
|
|
26960
26950
|
var v = Qt.call(ne, "placeholder") ? ne : o;
|
|
26961
26951
|
return v.placeholder;
|
|
26962
26952
|
}
|
|
@@ -26998,7 +26988,7 @@ Kd.exports;
|
|
|
26998
26988
|
Sa(v, c1(o)), o = Hh(o);
|
|
26999
26989
|
return v;
|
|
27000
26990
|
} : R1, gn = Mn;
|
|
27001
|
-
(Up && gn(new Up(new ArrayBuffer(1))) != Oe || Zu && gn(new Zu()) != me || Fp && gn(Fp.resolve()) != Ne ||
|
|
26991
|
+
(Up && gn(new Up(new ArrayBuffer(1))) != Oe || Zu && gn(new Zu()) != me || Fp && gn(Fp.resolve()) != Ne || _f && gn(new _f()) != Be || Xu && gn(new Xu()) != be) && (gn = function(o) {
|
|
27002
26992
|
var v = Mn(o), T = v == qe ? o.constructor : r, z = T ? vo(T) : "";
|
|
27003
26993
|
if (z)
|
|
27004
26994
|
switch (z) {
|
|
@@ -27054,7 +27044,7 @@ Kd.exports;
|
|
|
27054
27044
|
return v && typeof o[0] == "string" && Qt.call(o, "index") && (T.index = o.index, T.input = o.input), T;
|
|
27055
27045
|
}
|
|
27056
27046
|
function Yy(o) {
|
|
27057
|
-
return typeof o.constructor == "function" && !sc(o) ?
|
|
27047
|
+
return typeof o.constructor == "function" && !sc(o) ? xf(Hh(o)) : {};
|
|
27058
27048
|
}
|
|
27059
27049
|
function LE(o, v, T) {
|
|
27060
27050
|
var z = o.constructor;
|
|
@@ -27135,7 +27125,7 @@ Kd.exports;
|
|
|
27135
27125
|
}
|
|
27136
27126
|
var qE = Nh ? Gs : T1;
|
|
27137
27127
|
function sc(o) {
|
|
27138
|
-
var v = o && o.constructor, T = typeof v == "function" && v.prototype ||
|
|
27128
|
+
var v = o && o.constructor, T = typeof v == "function" && v.prototype || wf;
|
|
27139
27129
|
return o === T;
|
|
27140
27130
|
}
|
|
27141
27131
|
function Qy(o) {
|
|
@@ -27354,7 +27344,7 @@ Kd.exports;
|
|
|
27354
27344
|
if (!z)
|
|
27355
27345
|
return -1;
|
|
27356
27346
|
var J = T == null ? 0 : Ot(T);
|
|
27357
|
-
return J < 0 && (J = Br(z + J, 0)),
|
|
27347
|
+
return J < 0 && (J = Br(z + J, 0)), bf(o, v, J);
|
|
27358
27348
|
}
|
|
27359
27349
|
function uI(o) {
|
|
27360
27350
|
var v = o == null ? 0 : o.length;
|
|
@@ -27625,9 +27615,9 @@ Kd.exports;
|
|
|
27625
27615
|
Qt.call(o, T) ? o[T].push(v) : js(o, T, [v]);
|
|
27626
27616
|
});
|
|
27627
27617
|
function lM(o, v, T, z) {
|
|
27628
|
-
o = Ln(o) ? o :
|
|
27618
|
+
o = Ln(o) ? o : Rf(o), T = T && !z ? Ot(T) : 0;
|
|
27629
27619
|
var J = o.length;
|
|
27630
|
-
return T < 0 && (T = Br(J + T, 0)), p0(o) ? T <= J && o.indexOf(v, T) > -1 : !!J &&
|
|
27620
|
+
return T < 0 && (T = Br(J + T, 0)), p0(o) ? T <= J && o.indexOf(v, T) > -1 : !!J && bf(o, v, T) > -1;
|
|
27631
27621
|
}
|
|
27632
27622
|
var pM = Dt(function(o, v, T) {
|
|
27633
27623
|
var z = -1, J = typeof v == "function", ie = Ln(o) ? Ee(o.length) : [];
|
|
@@ -27678,7 +27668,7 @@ Kd.exports;
|
|
|
27678
27668
|
if (o == null)
|
|
27679
27669
|
return 0;
|
|
27680
27670
|
if (Ln(o))
|
|
27681
|
-
return p0(o) ?
|
|
27671
|
+
return p0(o) ? mf(o) : o.length;
|
|
27682
27672
|
var v = gn(o);
|
|
27683
27673
|
return v == me || v == Be ? o.size : Gp(o).length;
|
|
27684
27674
|
}
|
|
@@ -27716,14 +27706,14 @@ Kd.exports;
|
|
|
27716
27706
|
var g1 = Dt(function(o, v, T) {
|
|
27717
27707
|
var z = B;
|
|
27718
27708
|
if (T.length) {
|
|
27719
|
-
var J = Ea(T,
|
|
27709
|
+
var J = Ea(T, If(g1));
|
|
27720
27710
|
z |= K;
|
|
27721
27711
|
}
|
|
27722
27712
|
return Ks(o, z, v, T, J);
|
|
27723
27713
|
}), y3 = Dt(function(o, v, T) {
|
|
27724
27714
|
var z = B | C;
|
|
27725
27715
|
if (T.length) {
|
|
27726
|
-
var J = Ea(T,
|
|
27716
|
+
var J = Ea(T, If(y3));
|
|
27727
27717
|
z |= K;
|
|
27728
27718
|
}
|
|
27729
27719
|
return Ks(v, z, o, T, J);
|
|
@@ -27836,10 +27826,10 @@ Kd.exports;
|
|
|
27836
27826
|
return Zn(o, this, z);
|
|
27837
27827
|
});
|
|
27838
27828
|
}), m1 = Dt(function(o, v) {
|
|
27839
|
-
var T = Ea(v,
|
|
27829
|
+
var T = Ea(v, If(m1));
|
|
27840
27830
|
return Ks(o, K, r, v, T);
|
|
27841
27831
|
}), x3 = Dt(function(o, v) {
|
|
27842
|
-
var T = Ea(v,
|
|
27832
|
+
var T = Ea(v, If(x3));
|
|
27843
27833
|
return Ks(o, V, r, v, T);
|
|
27844
27834
|
}), CM = Vs(function(o, v) {
|
|
27845
27835
|
return Ks(o, U, r, r, r, v);
|
|
@@ -27920,7 +27910,7 @@ Kd.exports;
|
|
|
27920
27910
|
function JM(o) {
|
|
27921
27911
|
if (o == null)
|
|
27922
27912
|
return !0;
|
|
27923
|
-
if (Ln(o) && (St(o) || typeof o == "string" || typeof o.splice == "function" || Pa(o) ||
|
|
27913
|
+
if (Ln(o) && (St(o) || typeof o == "string" || typeof o.splice == "function" || Pa(o) || Mf(o) || bo(o)))
|
|
27924
27914
|
return !o.length;
|
|
27925
27915
|
var v = gn(o);
|
|
27926
27916
|
if (v == me || v == Be)
|
|
@@ -27980,7 +27970,7 @@ Kd.exports;
|
|
|
27980
27970
|
}
|
|
27981
27971
|
function iR(o) {
|
|
27982
27972
|
if (qE(o))
|
|
27983
|
-
throw new
|
|
27973
|
+
throw new _t(i);
|
|
27984
27974
|
return gy(o);
|
|
27985
27975
|
}
|
|
27986
27976
|
function sR(o) {
|
|
@@ -28012,7 +28002,7 @@ Kd.exports;
|
|
|
28012
28002
|
function Yn(o) {
|
|
28013
28003
|
return typeof o == "symbol" || br(o) && Mn(o) == Ye;
|
|
28014
28004
|
}
|
|
28015
|
-
var
|
|
28005
|
+
var Mf = z2 ? Xn(z2) : oE;
|
|
28016
28006
|
function fR(o) {
|
|
28017
28007
|
return o === r;
|
|
28018
28008
|
}
|
|
@@ -28032,7 +28022,7 @@ Kd.exports;
|
|
|
28032
28022
|
return p0(o) ? qi(o) : Nn(o);
|
|
28033
28023
|
if ($u && o[$u])
|
|
28034
28024
|
return Kx(o[$u]());
|
|
28035
|
-
var v = gn(o), T = v == me ? Np : v == Be ? Ch :
|
|
28025
|
+
var v = gn(o), T = v == me ? Np : v == Be ? Ch : Rf;
|
|
28036
28026
|
return T(o);
|
|
28037
28027
|
}
|
|
28038
28028
|
function $s(o) {
|
|
@@ -28075,22 +28065,22 @@ Kd.exports;
|
|
|
28075
28065
|
function Yt(o) {
|
|
28076
28066
|
return o == null ? "" : Jn(o);
|
|
28077
28067
|
}
|
|
28078
|
-
var pR =
|
|
28068
|
+
var pR = Sf(function(o, v) {
|
|
28079
28069
|
if (sc(v) || Ln(v)) {
|
|
28080
28070
|
cs(v, Hr(v), o);
|
|
28081
28071
|
return;
|
|
28082
28072
|
}
|
|
28083
28073
|
for (var T in v)
|
|
28084
28074
|
Qt.call(v, T) && Qu(o, T, v[T]);
|
|
28085
|
-
}), P3 =
|
|
28075
|
+
}), P3 = Sf(function(o, v) {
|
|
28086
28076
|
cs(v, Dn(v), o);
|
|
28087
|
-
}), v0 =
|
|
28077
|
+
}), v0 = Sf(function(o, v, T, z) {
|
|
28088
28078
|
cs(v, Dn(v), o, z);
|
|
28089
|
-
}), vR =
|
|
28079
|
+
}), vR = Sf(function(o, v, T, z) {
|
|
28090
28080
|
cs(v, Hr(v), o, z);
|
|
28091
28081
|
}), bR = Vs(qp);
|
|
28092
28082
|
function gR(o, v) {
|
|
28093
|
-
var T =
|
|
28083
|
+
var T = xf(o);
|
|
28094
28084
|
return v == null ? T : uy(T, v);
|
|
28095
28085
|
}
|
|
28096
28086
|
var mR = Dt(function(o, v) {
|
|
@@ -28099,7 +28089,7 @@ Kd.exports;
|
|
|
28099
28089
|
for (J && Rn(v[0], v[1], J) && (z = 1); ++T < z; )
|
|
28100
28090
|
for (var ie = v[T], le = Dn(ie), ge = -1, we = le.length; ++ge < we; ) {
|
|
28101
28091
|
var ke = le[ge], Le = o[ke];
|
|
28102
|
-
(Le === r || ji(Le,
|
|
28092
|
+
(Le === r || ji(Le, wf[ke]) && !Qt.call(o, ke)) && (o[ke] = ie[ke]);
|
|
28103
28093
|
}
|
|
28104
28094
|
return o;
|
|
28105
28095
|
}), yR = Dt(function(o) {
|
|
@@ -28162,9 +28152,9 @@ Kd.exports;
|
|
|
28162
28152
|
js(T, J, v(z, J, ie));
|
|
28163
28153
|
}), T;
|
|
28164
28154
|
}
|
|
28165
|
-
var kR =
|
|
28155
|
+
var kR = Sf(function(o, v, T) {
|
|
28166
28156
|
Jh(o, v, T);
|
|
28167
|
-
}), B3 =
|
|
28157
|
+
}), B3 = Sf(function(o, v, T, z) {
|
|
28168
28158
|
Jh(o, v, T, z);
|
|
28169
28159
|
}), NR = Vs(function(o, v) {
|
|
28170
28160
|
var T = {};
|
|
@@ -28211,10 +28201,10 @@ Kd.exports;
|
|
|
28211
28201
|
}
|
|
28212
28202
|
var k3 = Wy(Hr), N3 = Wy(Dn);
|
|
28213
28203
|
function qR(o, v, T) {
|
|
28214
|
-
var z = St(o), J = z || Pa(o) ||
|
|
28204
|
+
var z = St(o), J = z || Pa(o) || Mf(o);
|
|
28215
28205
|
if (v = gt(v, 4), T == null) {
|
|
28216
28206
|
var ie = o && o.constructor;
|
|
28217
|
-
J ? T = z ? new ie() : [] : dr(o) ? T = Gs(ie) ?
|
|
28207
|
+
J ? T = z ? new ie() : [] : dr(o) ? T = Gs(ie) ? xf(Hh(o)) : {} : T = {};
|
|
28218
28208
|
}
|
|
28219
28209
|
return (J ? fi : us)(o, function(le, ge, we) {
|
|
28220
28210
|
return v(T, le, ge, we);
|
|
@@ -28229,7 +28219,7 @@ Kd.exports;
|
|
|
28229
28219
|
function KR(o, v, T, z) {
|
|
28230
28220
|
return z = typeof z == "function" ? z : r, o == null ? o : Ty(o, v, r1(T), z);
|
|
28231
28221
|
}
|
|
28232
|
-
function
|
|
28222
|
+
function Rf(o) {
|
|
28233
28223
|
return o == null ? [] : kp(o, Hr(o));
|
|
28234
28224
|
}
|
|
28235
28225
|
function VR(o) {
|
|
@@ -28252,7 +28242,7 @@ Kd.exports;
|
|
|
28252
28242
|
}
|
|
28253
28243
|
return Xp(o, v);
|
|
28254
28244
|
}
|
|
28255
|
-
var ZR =
|
|
28245
|
+
var ZR = Ef(function(o, v, T) {
|
|
28256
28246
|
return v = v.toLowerCase(), o + (T ? L3(v) : v);
|
|
28257
28247
|
});
|
|
28258
28248
|
function L3(o) {
|
|
@@ -28274,14 +28264,14 @@ Kd.exports;
|
|
|
28274
28264
|
function YR(o) {
|
|
28275
28265
|
return o = Yt(o), o && ae.test(o) ? o.replace(G, "\\$&") : o;
|
|
28276
28266
|
}
|
|
28277
|
-
var QR =
|
|
28267
|
+
var QR = Ef(function(o, v, T) {
|
|
28278
28268
|
return o + (T ? "-" : "") + v.toLowerCase();
|
|
28279
|
-
}), eT =
|
|
28269
|
+
}), eT = Ef(function(o, v, T) {
|
|
28280
28270
|
return o + (T ? " " : "") + v.toLowerCase();
|
|
28281
28271
|
}), tT = Hy("toLowerCase");
|
|
28282
28272
|
function rT(o, v, T) {
|
|
28283
28273
|
o = Yt(o), v = Ot(v);
|
|
28284
|
-
var z = v ?
|
|
28274
|
+
var z = v ? mf(o) : 0;
|
|
28285
28275
|
if (!v || z >= v)
|
|
28286
28276
|
return o;
|
|
28287
28277
|
var J = (v - z) / 2;
|
|
@@ -28289,12 +28279,12 @@ Kd.exports;
|
|
|
28289
28279
|
}
|
|
28290
28280
|
function nT(o, v, T) {
|
|
28291
28281
|
o = Yt(o), v = Ot(v);
|
|
28292
|
-
var z = v ?
|
|
28282
|
+
var z = v ? mf(o) : 0;
|
|
28293
28283
|
return v && z < v ? o + n0(v - z, T) : o;
|
|
28294
28284
|
}
|
|
28295
28285
|
function iT(o, v, T) {
|
|
28296
28286
|
o = Yt(o), v = Ot(v);
|
|
28297
|
-
var z = v ?
|
|
28287
|
+
var z = v ? mf(o) : 0;
|
|
28298
28288
|
return v && z < v ? n0(v - z, T) + o : o;
|
|
28299
28289
|
}
|
|
28300
28290
|
function sT(o, v, T) {
|
|
@@ -28307,13 +28297,13 @@ Kd.exports;
|
|
|
28307
28297
|
var o = arguments, v = Yt(o[0]);
|
|
28308
28298
|
return o.length < 3 ? v : v.replace(o[1], o[2]);
|
|
28309
28299
|
}
|
|
28310
|
-
var fT =
|
|
28300
|
+
var fT = Ef(function(o, v, T) {
|
|
28311
28301
|
return o + (T ? "_" : "") + v.toLowerCase();
|
|
28312
28302
|
});
|
|
28313
28303
|
function uT(o, v, T) {
|
|
28314
|
-
return T && typeof T != "number" && Rn(o, v, T) && (v = T = r), T = T === r ? S : T >>> 0, T ? (o = Yt(o), o && (typeof v == "string" || v != null && !w1(v)) && (v = Jn(v), !v &&
|
|
28304
|
+
return T && typeof T != "number" && Rn(o, v, T) && (v = T = r), T = T === r ? S : T >>> 0, T ? (o = Yt(o), o && (typeof v == "string" || v != null && !w1(v)) && (v = Jn(v), !v && gf(o)) ? Oa(qi(o), 0, T) : o.split(v, T)) : [];
|
|
28315
28305
|
}
|
|
28316
|
-
var cT =
|
|
28306
|
+
var cT = Ef(function(o, v, T) {
|
|
28317
28307
|
return o + (T ? " " : "") + x1(v);
|
|
28318
28308
|
});
|
|
28319
28309
|
function hT(o, v, T) {
|
|
@@ -28344,7 +28334,7 @@ __p += '`), Wt && (He += `' +
|
|
|
28344
28334
|
}
|
|
28345
28335
|
`;
|
|
28346
28336
|
else if (Ke.test(mt))
|
|
28347
|
-
throw new
|
|
28337
|
+
throw new _t(l);
|
|
28348
28338
|
He = (we ? He.replace(ot, "") : He).replace(We, "$1").replace(pt, "$1;"), He = "function(" + (mt || "obj") + `) {
|
|
28349
28339
|
` + (mt ? "" : `obj || (obj = {});
|
|
28350
28340
|
`) + "var __t, __p = ''" + (ge ? ", __e = _.escape" : "") + (we ? `, __j = Array.prototype.join;
|
|
@@ -28397,13 +28387,13 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
28397
28387
|
}
|
|
28398
28388
|
o = Yt(o);
|
|
28399
28389
|
var ie = o.length;
|
|
28400
|
-
if (
|
|
28390
|
+
if (gf(o)) {
|
|
28401
28391
|
var le = qi(o);
|
|
28402
28392
|
ie = le.length;
|
|
28403
28393
|
}
|
|
28404
28394
|
if (T >= ie)
|
|
28405
28395
|
return o;
|
|
28406
|
-
var ge = T -
|
|
28396
|
+
var ge = T - mf(z);
|
|
28407
28397
|
if (ge < 1)
|
|
28408
28398
|
return z;
|
|
28409
28399
|
var we = le ? Oa(le, 0, ge).join("") : o.slice(0, ge);
|
|
@@ -28425,7 +28415,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
28425
28415
|
function yT(o) {
|
|
28426
28416
|
return o = Yt(o), o && tt.test(o) ? o.replace(lt, $x) : o;
|
|
28427
28417
|
}
|
|
28428
|
-
var wT =
|
|
28418
|
+
var wT = Ef(function(o, v, T) {
|
|
28429
28419
|
return o + (T ? " " : "") + v.toUpperCase();
|
|
28430
28420
|
}), x1 = Hy("toUpperCase");
|
|
28431
28421
|
function U3(o, v, T) {
|
|
@@ -28435,7 +28425,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
28435
28425
|
try {
|
|
28436
28426
|
return Zn(o, r, v);
|
|
28437
28427
|
} catch (T) {
|
|
28438
|
-
return y1(T) ? T : new
|
|
28428
|
+
return y1(T) ? T : new _t(T);
|
|
28439
28429
|
}
|
|
28440
28430
|
}), _T = Vs(function(o, v) {
|
|
28441
28431
|
return fi(v, function(T) {
|
|
@@ -28590,7 +28580,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
28590
28580
|
function sO(o, v) {
|
|
28591
28581
|
return o && o.length ? Bp(o, gt(v, 2)) : 0;
|
|
28592
28582
|
}
|
|
28593
|
-
return ne.after = MM, ne.ary = g3, ne.assign = pR, ne.assignIn = P3, ne.assignInWith = v0, ne.assignWith = vR, ne.at = bR, ne.before = m3, ne.bind = g1, ne.bindAll = _T, ne.bindKey = y3, ne.castArray = FM, ne.chain = p3, ne.chunk = $E, ne.compact = ZE, ne.concat = XE, ne.cond = AT, ne.conforms = xT, ne.constant = S1, ne.countBy = iM, ne.create = gR, ne.curry = w3, ne.curryRight = _3, ne.debounce = A3, ne.defaults = mR, ne.defaultsDeep = yR, ne.defer = RM, ne.delay = TM, ne.difference = JE, ne.differenceBy = YE, ne.differenceWith = QE, ne.drop = eI, ne.dropRight = tI, ne.dropRightWhile = rI, ne.dropWhile = nI, ne.fill = iI, ne.filter = aM, ne.flatMap = uM, ne.flatMapDeep = cM, ne.flatMapDepth = hM, ne.flatten = c3, ne.flattenDeep = sI, ne.flattenDepth = aI, ne.flip = OM, ne.flow = ET, ne.flowRight = IT, ne.fromPairs = oI, ne.functions = IR, ne.functionsIn = MR, ne.groupBy = dM, ne.initial = uI, ne.intersection = cI, ne.intersectionBy = hI, ne.intersectionWith = dI, ne.invert = TR, ne.invertBy = OR, ne.invokeMap = pM, ne.iteratee = E1, ne.keyBy = vM, ne.keys = Hr, ne.keysIn = Dn, ne.map = u0, ne.mapKeys = BR, ne.mapValues = CR, ne.matches = MT, ne.matchesProperty = RT, ne.memoize = h0, ne.merge = kR, ne.mergeWith = B3, ne.method = TT, ne.methodOf = OT, ne.mixin = I1, ne.negate = d0, ne.nthArg = BT, ne.omit = NR, ne.omitBy = LR, ne.once = PM, ne.orderBy = bM, ne.over = CT, ne.overArgs = BM, ne.overEvery = kT, ne.overSome = NT, ne.partial = m1, ne.partialRight = x3, ne.partition = gM, ne.pick = DR, ne.pickBy = C3, ne.property = H3, ne.propertyOf = LT, ne.pull = bI, ne.pullAll = d3, ne.pullAllBy = gI, ne.pullAllWith = mI, ne.pullAt = yI, ne.range = DT, ne.rangeRight = UT, ne.rearg = CM, ne.reject = wM, ne.remove = wI, ne.rest = kM, ne.reverse = v1, ne.sampleSize = AM, ne.set = FR, ne.setWith = HR, ne.shuffle = xM, ne.slice = _I, ne.sortBy = IM, ne.sortedUniq = RI, ne.sortedUniqBy = TI, ne.split = uT, ne.spread = NM, ne.tail = OI, ne.take = PI, ne.takeRight = BI, ne.takeRightWhile = CI, ne.takeWhile = kI, ne.tap = ZI, ne.throttle = LM, ne.thru = f0, ne.toArray = R3, ne.toPairs = k3, ne.toPairsIn = N3, ne.toPath = jT, ne.toPlainObject = O3, ne.transform = qR, ne.unary = DM, ne.union = NI, ne.unionBy = LI, ne.unionWith = DI, ne.uniq = UI, ne.uniqBy = FI, ne.uniqWith = HI, ne.unset = zR, ne.unzip = b1, ne.unzipWith = l3, ne.update = jR, ne.updateWith = KR, ne.values =
|
|
28583
|
+
return ne.after = MM, ne.ary = g3, ne.assign = pR, ne.assignIn = P3, ne.assignInWith = v0, ne.assignWith = vR, ne.at = bR, ne.before = m3, ne.bind = g1, ne.bindAll = _T, ne.bindKey = y3, ne.castArray = FM, ne.chain = p3, ne.chunk = $E, ne.compact = ZE, ne.concat = XE, ne.cond = AT, ne.conforms = xT, ne.constant = S1, ne.countBy = iM, ne.create = gR, ne.curry = w3, ne.curryRight = _3, ne.debounce = A3, ne.defaults = mR, ne.defaultsDeep = yR, ne.defer = RM, ne.delay = TM, ne.difference = JE, ne.differenceBy = YE, ne.differenceWith = QE, ne.drop = eI, ne.dropRight = tI, ne.dropRightWhile = rI, ne.dropWhile = nI, ne.fill = iI, ne.filter = aM, ne.flatMap = uM, ne.flatMapDeep = cM, ne.flatMapDepth = hM, ne.flatten = c3, ne.flattenDeep = sI, ne.flattenDepth = aI, ne.flip = OM, ne.flow = ET, ne.flowRight = IT, ne.fromPairs = oI, ne.functions = IR, ne.functionsIn = MR, ne.groupBy = dM, ne.initial = uI, ne.intersection = cI, ne.intersectionBy = hI, ne.intersectionWith = dI, ne.invert = TR, ne.invertBy = OR, ne.invokeMap = pM, ne.iteratee = E1, ne.keyBy = vM, ne.keys = Hr, ne.keysIn = Dn, ne.map = u0, ne.mapKeys = BR, ne.mapValues = CR, ne.matches = MT, ne.matchesProperty = RT, ne.memoize = h0, ne.merge = kR, ne.mergeWith = B3, ne.method = TT, ne.methodOf = OT, ne.mixin = I1, ne.negate = d0, ne.nthArg = BT, ne.omit = NR, ne.omitBy = LR, ne.once = PM, ne.orderBy = bM, ne.over = CT, ne.overArgs = BM, ne.overEvery = kT, ne.overSome = NT, ne.partial = m1, ne.partialRight = x3, ne.partition = gM, ne.pick = DR, ne.pickBy = C3, ne.property = H3, ne.propertyOf = LT, ne.pull = bI, ne.pullAll = d3, ne.pullAllBy = gI, ne.pullAllWith = mI, ne.pullAt = yI, ne.range = DT, ne.rangeRight = UT, ne.rearg = CM, ne.reject = wM, ne.remove = wI, ne.rest = kM, ne.reverse = v1, ne.sampleSize = AM, ne.set = FR, ne.setWith = HR, ne.shuffle = xM, ne.slice = _I, ne.sortBy = IM, ne.sortedUniq = RI, ne.sortedUniqBy = TI, ne.split = uT, ne.spread = NM, ne.tail = OI, ne.take = PI, ne.takeRight = BI, ne.takeRightWhile = CI, ne.takeWhile = kI, ne.tap = ZI, ne.throttle = LM, ne.thru = f0, ne.toArray = R3, ne.toPairs = k3, ne.toPairsIn = N3, ne.toPath = jT, ne.toPlainObject = O3, ne.transform = qR, ne.unary = DM, ne.union = NI, ne.unionBy = LI, ne.unionWith = DI, ne.uniq = UI, ne.uniqBy = FI, ne.uniqWith = HI, ne.unset = zR, ne.unzip = b1, ne.unzipWith = l3, ne.update = jR, ne.updateWith = KR, ne.values = Rf, ne.valuesIn = VR, ne.without = qI, ne.words = U3, ne.wrap = UM, ne.xor = zI, ne.xorBy = jI, ne.xorWith = KI, ne.zip = VI, ne.zipObject = WI, ne.zipObjectDeep = GI, ne.zipWith = $I, ne.entries = k3, ne.entriesIn = N3, ne.extend = P3, ne.extendWith = v0, I1(ne, ne), ne.add = VT, ne.attempt = F3, ne.camelCase = ZR, ne.capitalize = L3, ne.ceil = WT, ne.clamp = WR, ne.clone = HM, ne.cloneDeep = zM, ne.cloneDeepWith = jM, ne.cloneWith = qM, ne.conformsTo = KM, ne.deburr = D3, ne.defaultTo = ST, ne.divide = GT, ne.endsWith = XR, ne.eq = ji, ne.escape = JR, ne.escapeRegExp = YR, ne.every = sM, ne.find = oM, ne.findIndex = f3, ne.findKey = wR, ne.findLast = fM, ne.findLastIndex = u3, ne.findLastKey = _R, ne.floor = $T, ne.forEach = v3, ne.forEachRight = b3, ne.forIn = AR, ne.forInRight = xR, ne.forOwn = SR, ne.forOwnRight = ER, ne.get = _1, ne.gt = VM, ne.gte = WM, ne.has = RR, ne.hasIn = A1, ne.head = h3, ne.identity = Un, ne.includes = lM, ne.indexOf = fI, ne.inRange = GR, ne.invoke = PR, ne.isArguments = bo, ne.isArray = St, ne.isArrayBuffer = GM, ne.isArrayLike = Ln, ne.isArrayLikeObject = _r, ne.isBoolean = $M, ne.isBuffer = Pa, ne.isDate = ZM, ne.isElement = XM, ne.isEmpty = JM, ne.isEqual = YM, ne.isEqualWith = QM, ne.isError = y1, ne.isFinite = eR, ne.isFunction = Gs, ne.isInteger = S3, ne.isLength = l0, ne.isMap = E3, ne.isMatch = tR, ne.isMatchWith = rR, ne.isNaN = nR, ne.isNative = iR, ne.isNil = aR, ne.isNull = sR, ne.isNumber = I3, ne.isObject = dr, ne.isObjectLike = br, ne.isPlainObject = oc, ne.isRegExp = w1, ne.isSafeInteger = oR, ne.isSet = M3, ne.isString = p0, ne.isSymbol = Yn, ne.isTypedArray = Mf, ne.isUndefined = fR, ne.isWeakMap = uR, ne.isWeakSet = cR, ne.join = lI, ne.kebabCase = QR, ne.last = li, ne.lastIndexOf = pI, ne.lowerCase = eT, ne.lowerFirst = tT, ne.lt = hR, ne.lte = dR, ne.max = ZT, ne.maxBy = XT, ne.mean = JT, ne.meanBy = YT, ne.min = QT, ne.minBy = eO, ne.stubArray = R1, ne.stubFalse = T1, ne.stubObject = FT, ne.stubString = HT, ne.stubTrue = qT, ne.multiply = tO, ne.nth = vI, ne.noConflict = PT, ne.noop = M1, ne.now = c0, ne.pad = rT, ne.padEnd = nT, ne.padStart = iT, ne.parseInt = sT, ne.random = $R, ne.reduce = mM, ne.reduceRight = yM, ne.repeat = aT, ne.replace = oT, ne.result = UR, ne.round = rO, ne.runInContext = ye, ne.sample = _M, ne.size = SM, ne.snakeCase = fT, ne.some = EM, ne.sortedIndex = AI, ne.sortedIndexBy = xI, ne.sortedIndexOf = SI, ne.sortedLastIndex = EI, ne.sortedLastIndexBy = II, ne.sortedLastIndexOf = MI, ne.startCase = cT, ne.startsWith = hT, ne.subtract = nO, ne.sum = iO, ne.sumBy = sO, ne.template = dT, ne.times = zT, ne.toFinite = $s, ne.toInteger = Ot, ne.toLength = T3, ne.toLower = lT, ne.toNumber = pi, ne.toSafeInteger = lR, ne.toString = Yt, ne.toUpper = pT, ne.trim = vT, ne.trimEnd = bT, ne.trimStart = gT, ne.truncate = mT, ne.unescape = yT, ne.uniqueId = KT, ne.upperCase = wT, ne.upperFirst = x1, ne.each = v3, ne.eachRight = b3, ne.first = h3, I1(ne, function() {
|
|
28594
28584
|
var o = {};
|
|
28595
28585
|
return us(ne, function(v, T) {
|
|
28596
28586
|
Qt.call(ne.prototype, T) || (o[T] = v);
|
|
@@ -28679,14 +28669,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
28679
28669
|
var T = ne[v];
|
|
28680
28670
|
if (T) {
|
|
28681
28671
|
var z = T.name + "";
|
|
28682
|
-
Qt.call(
|
|
28672
|
+
Qt.call(Af, z) || (Af[z] = []), Af[z].push({ name: v, func: T });
|
|
28683
28673
|
}
|
|
28684
|
-
}),
|
|
28674
|
+
}), Af[t0(r, C).name] = [{
|
|
28685
28675
|
name: "wrapper",
|
|
28686
28676
|
func: r
|
|
28687
28677
|
}], qt.prototype.clone = yS, qt.prototype.reverse = wS, qt.prototype.value = _S, ne.prototype.at = XI, ne.prototype.chain = JI, ne.prototype.commit = YI, ne.prototype.next = QI, ne.prototype.plant = tM, ne.prototype.reverse = rM, ne.prototype.toJSON = ne.prototype.valueOf = ne.prototype.value = nM, ne.prototype.first = ne.prototype.head, $u && (ne.prototype[$u] = eM), ne;
|
|
28688
|
-
},
|
|
28689
|
-
oo ? ((oo.exports =
|
|
28678
|
+
}, yf = Yx();
|
|
28679
|
+
oo ? ((oo.exports = yf)._ = yf, Ep._ = yf) : on._ = yf;
|
|
28690
28680
|
}).call(dt);
|
|
28691
28681
|
})(Kd, Kd.exports);
|
|
28692
28682
|
var Jt = Kd.exports, Pv, J4;
|
|
@@ -29078,7 +29068,7 @@ function I9() {
|
|
|
29078
29068
|
return typeof te != "number" && (te = 0), te + V.length > K.length ? !1 : K.indexOf(V, te) !== -1;
|
|
29079
29069
|
}
|
|
29080
29070
|
return B("ERR_AMBIGUOUS_ARGUMENT", 'The "%s" argument is ambiguous. %s', TypeError), B("ERR_INVALID_ARG_TYPE", function(K, V, te) {
|
|
29081
|
-
I === void 0 && (I =
|
|
29071
|
+
I === void 0 && (I = bu()), I(typeof K == "string", "'name' must be a string");
|
|
29082
29072
|
var U;
|
|
29083
29073
|
typeof V == "string" && P(V, "not ") ? (U = "must not be", V = V.replace(/^not /, "")) : U = "must be";
|
|
29084
29074
|
var j;
|
|
@@ -29100,7 +29090,7 @@ function I9() {
|
|
|
29100
29090
|
}, TypeError), B("ERR_MISSING_ARGS", function() {
|
|
29101
29091
|
for (var K = arguments.length, V = new Array(K), te = 0; te < K; te++)
|
|
29102
29092
|
V[te] = arguments[te];
|
|
29103
|
-
I === void 0 && (I =
|
|
29093
|
+
I === void 0 && (I = bu()), I(V.length > 0, "At least one arg needs to be specified");
|
|
29104
29094
|
var U = "The ", j = V.length;
|
|
29105
29095
|
switch (V = V.map(function(D) {
|
|
29106
29096
|
return '"'.concat(D, '"');
|
|
@@ -30087,7 +30077,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
30087
30077
|
}, Kv;
|
|
30088
30078
|
}
|
|
30089
30079
|
var vw;
|
|
30090
|
-
function
|
|
30080
|
+
function bu() {
|
|
30091
30081
|
if (vw)
|
|
30092
30082
|
return Bv.exports;
|
|
30093
30083
|
vw = 1;
|
|
@@ -30544,7 +30534,7 @@ var k9 = Jt, bw = function(e) {
|
|
|
30544
30534
|
};
|
|
30545
30535
|
(function(t) {
|
|
30546
30536
|
var e = Zr;
|
|
30547
|
-
|
|
30537
|
+
bu();
|
|
30548
30538
|
var r = $t;
|
|
30549
30539
|
function n(s, i) {
|
|
30550
30540
|
if (s.length !== i.length)
|
|
@@ -31975,7 +31965,7 @@ e2.exports;
|
|
|
31975
31965
|
};
|
|
31976
31966
|
})(t, dt);
|
|
31977
31967
|
})(e2);
|
|
31978
|
-
var wa = e2.exports,
|
|
31968
|
+
var wa = e2.exports, of = L9;
|
|
31979
31969
|
function L9(t, e) {
|
|
31980
31970
|
if (!t)
|
|
31981
31971
|
throw new Error(e || "Assertion failed");
|
|
@@ -32024,7 +32014,7 @@ var t2 = {};
|
|
|
32024
32014
|
};
|
|
32025
32015
|
})(t2);
|
|
32026
32016
|
(function(t) {
|
|
32027
|
-
var e = t, r = wa, n =
|
|
32017
|
+
var e = t, r = wa, n = of, s = t2;
|
|
32028
32018
|
e.assert = n, e.toArray = s.toArray, e.zero2 = s.zero2, e.toHex = s.toHex, e.encode = s.encode;
|
|
32029
32019
|
function i(E, A, x) {
|
|
32030
32020
|
var O = new Array(Math.max(E.bitLength(), x) + 1), I;
|
|
@@ -32101,7 +32091,7 @@ if (typeof self == "object")
|
|
|
32101
32091
|
});
|
|
32102
32092
|
else
|
|
32103
32093
|
try {
|
|
32104
|
-
var gw =
|
|
32094
|
+
var gw = af();
|
|
32105
32095
|
if (typeof gw.randomBytes != "function")
|
|
32106
32096
|
throw new Error("Not supported");
|
|
32107
32097
|
za.prototype._rand = function(e) {
|
|
@@ -32706,9 +32696,9 @@ pn.prototype.inspect = function() {
|
|
|
32706
32696
|
pn.prototype.isInfinity = function() {
|
|
32707
32697
|
return this.z.cmpn(0) === 0;
|
|
32708
32698
|
};
|
|
32709
|
-
var
|
|
32699
|
+
var zf = wa, U9 = np, ip = rp, CW = si;
|
|
32710
32700
|
function Hu(t) {
|
|
32711
|
-
ip.call(this, "mont", t), this.a = new
|
|
32701
|
+
ip.call(this, "mont", t), this.a = new zf(t.a, 16).toRed(this.red), this.b = new zf(t.b, 16).toRed(this.red), this.i4 = new zf(4).toRed(this.red).redInvm(), this.two = new zf(2).toRed(this.red), this.a24 = this.i4.redMul(this.a.redAdd(this.two));
|
|
32712
32702
|
}
|
|
32713
32703
|
U9(Hu, ip);
|
|
32714
32704
|
var kW = Hu;
|
|
@@ -32717,7 +32707,7 @@ Hu.prototype.validate = function(e) {
|
|
|
32717
32707
|
return i.redSqr().cmp(s) === 0;
|
|
32718
32708
|
};
|
|
32719
32709
|
function $r(t, e, r) {
|
|
32720
|
-
ip.BasePoint.call(this, t, "projective"), e === null && r === null ? (this.x = this.curve.one, this.z = this.curve.zero) : (this.x = new
|
|
32710
|
+
ip.BasePoint.call(this, t, "projective"), e === null && r === null ? (this.x = this.curve.one, this.z = this.curve.zero) : (this.x = new zf(e, 16), this.z = new zf(r, 16), this.x.red || (this.x = this.x.toRed(this.curve.red)), this.z.red || (this.z = this.z.toRed(this.curve.red)));
|
|
32721
32711
|
}
|
|
32722
32712
|
U9($r, ip.BasePoint);
|
|
32723
32713
|
Hu.prototype.decodePoint = function(e, r) {
|
|
@@ -32917,7 +32907,7 @@ or.prototype.mixedAdd = or.prototype.add;
|
|
|
32917
32907
|
var e = t;
|
|
32918
32908
|
e.base = rp, e.short = BW, e.mont = kW, e.edwards = DW;
|
|
32919
32909
|
})(n2);
|
|
32920
|
-
var ap = {}, op = {}, Vt = {}, UW =
|
|
32910
|
+
var ap = {}, op = {}, Vt = {}, UW = of, FW = np;
|
|
32921
32911
|
Vt.inherits = FW;
|
|
32922
32912
|
function HW(t, e) {
|
|
32923
32913
|
return (t.charCodeAt(e) & 64512) !== 55296 || e < 0 || e + 1 >= t.length ? !1 : (t.charCodeAt(e + 1) & 64512) === 56320;
|
|
@@ -33071,7 +33061,7 @@ function fG(t, e, r) {
|
|
|
33071
33061
|
return n >>> 0;
|
|
33072
33062
|
}
|
|
33073
33063
|
Vt.shr64_lo = fG;
|
|
33074
|
-
var qu = {}, mw = Vt, uG =
|
|
33064
|
+
var qu = {}, mw = Vt, uG = of;
|
|
33075
33065
|
function fp() {
|
|
33076
33066
|
this.pending = null, this.pendingTotal = 0, this.blockSize = this.constructor.blockSize, this.outSize = this.constructor.outSize, this.hmacStrength = this.constructor.hmacStrength, this.padLength = this.constructor.padLength / 8, this.endian = "big", this._delta8 = this.blockSize / 8, this._delta32 = this.blockSize / 32;
|
|
33077
33067
|
}
|
|
@@ -33141,7 +33131,7 @@ function vG(t) {
|
|
|
33141
33131
|
return As(t, 17) ^ As(t, 19) ^ t >>> 10;
|
|
33142
33132
|
}
|
|
33143
33133
|
Us.g1_256 = vG;
|
|
33144
|
-
var
|
|
33134
|
+
var gu = Vt, bG = qu, gG = Us, Wv = gu.rotl32, _c = gu.sum32, mG = gu.sum32_5, yG = gG.ft_1, W9 = bG.BlockHash, wG = [
|
|
33145
33135
|
1518500249,
|
|
33146
33136
|
1859775393,
|
|
33147
33137
|
2400959708,
|
|
@@ -33158,7 +33148,7 @@ function Ps() {
|
|
|
33158
33148
|
3285377520
|
|
33159
33149
|
], this.W = new Array(80);
|
|
33160
33150
|
}
|
|
33161
|
-
|
|
33151
|
+
gu.inherits(Ps, W9);
|
|
33162
33152
|
var _G = Ps;
|
|
33163
33153
|
Ps.blockSize = 512;
|
|
33164
33154
|
Ps.outSize = 160;
|
|
@@ -33177,9 +33167,9 @@ Ps.prototype._update = function(e, r) {
|
|
|
33177
33167
|
this.h[0] = _c(this.h[0], i), this.h[1] = _c(this.h[1], f), this.h[2] = _c(this.h[2], l), this.h[3] = _c(this.h[3], g), this.h[4] = _c(this.h[4], _);
|
|
33178
33168
|
};
|
|
33179
33169
|
Ps.prototype._digest = function(e) {
|
|
33180
|
-
return e === "hex" ?
|
|
33170
|
+
return e === "hex" ? gu.toHex32(this.h, "big") : gu.split32(this.h, "big");
|
|
33181
33171
|
};
|
|
33182
|
-
var
|
|
33172
|
+
var mu = Vt, AG = qu, ju = Us, xG = of, Gi = mu.sum32, SG = mu.sum32_4, EG = mu.sum32_5, IG = ju.ch32, MG = ju.maj32, RG = ju.s0_256, TG = ju.s1_256, OG = ju.g0_256, PG = ju.g1_256, G9 = AG.BlockHash, BG = [
|
|
33183
33173
|
1116352408,
|
|
33184
33174
|
1899447441,
|
|
33185
33175
|
3049323471,
|
|
@@ -33259,7 +33249,7 @@ function Bs() {
|
|
|
33259
33249
|
1541459225
|
|
33260
33250
|
], this.k = BG, this.W = new Array(64);
|
|
33261
33251
|
}
|
|
33262
|
-
|
|
33252
|
+
mu.inherits(Bs, G9);
|
|
33263
33253
|
var $9 = Bs;
|
|
33264
33254
|
Bs.blockSize = 512;
|
|
33265
33255
|
Bs.outSize = 256;
|
|
@@ -33278,7 +33268,7 @@ Bs.prototype._update = function(e, r) {
|
|
|
33278
33268
|
this.h[0] = Gi(this.h[0], i), this.h[1] = Gi(this.h[1], f), this.h[2] = Gi(this.h[2], l), this.h[3] = Gi(this.h[3], g), this.h[4] = Gi(this.h[4], _), this.h[5] = Gi(this.h[5], E), this.h[6] = Gi(this.h[6], A), this.h[7] = Gi(this.h[7], x);
|
|
33279
33269
|
};
|
|
33280
33270
|
Bs.prototype._digest = function(e) {
|
|
33281
|
-
return e === "hex" ?
|
|
33271
|
+
return e === "hex" ? mu.toHex32(this.h, "big") : mu.split32(this.h, "big");
|
|
33282
33272
|
};
|
|
33283
33273
|
var bg = Vt, Z9 = $9;
|
|
33284
33274
|
function ba() {
|
|
@@ -33304,7 +33294,7 @@ ba.padLength = 64;
|
|
|
33304
33294
|
ba.prototype._digest = function(e) {
|
|
33305
33295
|
return e === "hex" ? bg.toHex32(this.h.slice(0, 7), "big") : bg.split32(this.h.slice(0, 7), "big");
|
|
33306
33296
|
};
|
|
33307
|
-
var Vn = Vt, kG = qu, NG =
|
|
33297
|
+
var Vn = Vt, kG = qu, NG = of, xs = Vn.rotr64_hi, Ss = Vn.rotr64_lo, X9 = Vn.shr64_hi, J9 = Vn.shr64_lo, Da = Vn.sum64, Gv = Vn.sum64_hi, $v = Vn.sum64_lo, LG = Vn.sum64_4_hi, DG = Vn.sum64_4_lo, UG = Vn.sum64_5_hi, FG = Vn.sum64_5_lo, Y9 = kG.BlockHash, HG = [
|
|
33308
33298
|
1116352408,
|
|
33309
33299
|
3609767458,
|
|
33310
33300
|
1899447441,
|
|
@@ -33642,13 +33632,13 @@ zu.sha224 = CG;
|
|
|
33642
33632
|
zu.sha256 = $9;
|
|
33643
33633
|
zu.sha384 = QG;
|
|
33644
33634
|
zu.sha512 = Q9;
|
|
33645
|
-
var tA = {},
|
|
33635
|
+
var tA = {}, Jo = Vt, e$ = qu, T0 = Jo.rotl32, yw = Jo.sum32, Ac = Jo.sum32_3, ww = Jo.sum32_4, rA = e$.BlockHash;
|
|
33646
33636
|
function Cs() {
|
|
33647
33637
|
if (!(this instanceof Cs))
|
|
33648
33638
|
return new Cs();
|
|
33649
33639
|
rA.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.endian = "little";
|
|
33650
33640
|
}
|
|
33651
|
-
|
|
33641
|
+
Jo.inherits(Cs, rA);
|
|
33652
33642
|
tA.ripemd160 = Cs;
|
|
33653
33643
|
Cs.blockSize = 512;
|
|
33654
33644
|
Cs.outSize = 160;
|
|
@@ -33674,7 +33664,7 @@ Cs.prototype._update = function(e, r) {
|
|
|
33674
33664
|
I = Ac(this.h[1], i, A), this.h[1] = Ac(this.h[2], f, x), this.h[2] = Ac(this.h[3], l, g), this.h[3] = Ac(this.h[4], n, _), this.h[4] = Ac(this.h[0], s, E), this.h[0] = I;
|
|
33675
33665
|
};
|
|
33676
33666
|
Cs.prototype._digest = function(e) {
|
|
33677
|
-
return e === "hex" ?
|
|
33667
|
+
return e === "hex" ? Jo.toHex32(this.h, "little") : Jo.split32(this.h, "little");
|
|
33678
33668
|
};
|
|
33679
33669
|
function _w(t, e, r, n) {
|
|
33680
33670
|
return t <= 15 ? e ^ r ^ n : t <= 31 ? e & r | ~e & n : t <= 47 ? (e | ~r) ^ n : t <= 63 ? e & n | r & ~n : e ^ (r | ~n);
|
|
@@ -34009,14 +33999,14 @@ var n$ = [
|
|
|
34009
33999
|
13,
|
|
34010
34000
|
11,
|
|
34011
34001
|
11
|
|
34012
|
-
], o$ = Vt, f$ =
|
|
34013
|
-
function
|
|
34014
|
-
if (!(this instanceof
|
|
34015
|
-
return new
|
|
34002
|
+
], o$ = Vt, f$ = of;
|
|
34003
|
+
function yu(t, e, r) {
|
|
34004
|
+
if (!(this instanceof yu))
|
|
34005
|
+
return new yu(t, e, r);
|
|
34016
34006
|
this.Hash = t, this.blockSize = t.blockSize / 8, this.outSize = t.outSize / 8, this.inner = null, this.outer = null, this._init(o$.toArray(e, r));
|
|
34017
34007
|
}
|
|
34018
|
-
var u$ =
|
|
34019
|
-
|
|
34008
|
+
var u$ = yu;
|
|
34009
|
+
yu.prototype._init = function(e) {
|
|
34020
34010
|
e.length > this.blockSize && (e = new this.Hash().update(e).digest()), f$(e.length <= this.blockSize);
|
|
34021
34011
|
for (var r = e.length; r < this.blockSize; r++)
|
|
34022
34012
|
e.push(0);
|
|
@@ -34026,10 +34016,10 @@ mu.prototype._init = function(e) {
|
|
|
34026
34016
|
e[r] ^= 106;
|
|
34027
34017
|
this.outer = new this.Hash().update(e);
|
|
34028
34018
|
};
|
|
34029
|
-
|
|
34019
|
+
yu.prototype.update = function(e, r) {
|
|
34030
34020
|
return this.inner.update(e, r), this;
|
|
34031
34021
|
};
|
|
34032
|
-
|
|
34022
|
+
yu.prototype.digest = function(e) {
|
|
34033
34023
|
return this.outer.update(this.inner.digest()), this.outer.digest(e);
|
|
34034
34024
|
};
|
|
34035
34025
|
(function(t) {
|
|
@@ -34969,7 +34959,7 @@ function c$() {
|
|
|
34969
34959
|
]
|
|
34970
34960
|
});
|
|
34971
34961
|
})(ap);
|
|
34972
|
-
var h$ = op, Co = t2, nA =
|
|
34962
|
+
var h$ = op, Co = t2, nA = of;
|
|
34973
34963
|
function Ja(t) {
|
|
34974
34964
|
if (!(this instanceof Ja))
|
|
34975
34965
|
return new Ja(t);
|
|
@@ -35274,31 +35264,31 @@ Vr.prototype.getPublic = function(e) {
|
|
|
35274
35264
|
return Sh.encode(this.pubBytes(), e);
|
|
35275
35265
|
};
|
|
35276
35266
|
var A$ = Vr, x$ = wa, hp = si, S$ = hp.assert, dp = hp.cachedProperty, E$ = hp.parseBytes;
|
|
35277
|
-
function
|
|
35267
|
+
function ff(t, e) {
|
|
35278
35268
|
this.eddsa = t, typeof e != "object" && (e = E$(e)), Array.isArray(e) && (e = {
|
|
35279
35269
|
R: e.slice(0, t.encodingLength),
|
|
35280
35270
|
S: e.slice(t.encodingLength)
|
|
35281
35271
|
}), S$(e.R && e.S, "Signature without R or S"), t.isPoint(e.R) && (this._R = e.R), e.S instanceof x$ && (this._S = e.S), this._Rencoded = Array.isArray(e.R) ? e.R : e.Rencoded, this._Sencoded = Array.isArray(e.S) ? e.S : e.Sencoded;
|
|
35282
35272
|
}
|
|
35283
|
-
dp(
|
|
35273
|
+
dp(ff, "S", function() {
|
|
35284
35274
|
return this.eddsa.decodeInt(this.Sencoded());
|
|
35285
35275
|
});
|
|
35286
|
-
dp(
|
|
35276
|
+
dp(ff, "R", function() {
|
|
35287
35277
|
return this.eddsa.decodePoint(this.Rencoded());
|
|
35288
35278
|
});
|
|
35289
|
-
dp(
|
|
35279
|
+
dp(ff, "Rencoded", function() {
|
|
35290
35280
|
return this.eddsa.encodePoint(this.R());
|
|
35291
35281
|
});
|
|
35292
|
-
dp(
|
|
35282
|
+
dp(ff, "Sencoded", function() {
|
|
35293
35283
|
return this.eddsa.encodeInt(this.S());
|
|
35294
35284
|
});
|
|
35295
|
-
|
|
35285
|
+
ff.prototype.toBytes = function() {
|
|
35296
35286
|
return this.Rencoded().concat(this.Sencoded());
|
|
35297
35287
|
};
|
|
35298
|
-
|
|
35288
|
+
ff.prototype.toHex = function() {
|
|
35299
35289
|
return hp.encode(this.toBytes(), "hex").toUpperCase();
|
|
35300
35290
|
};
|
|
35301
|
-
var I$ =
|
|
35291
|
+
var I$ = ff, M$ = op, R$ = ap, wu = si, T$ = wu.assert, oA = wu.parseBytes, fA = A$, Ew = I$;
|
|
35302
35292
|
function Wn(t) {
|
|
35303
35293
|
if (T$(t === "ed25519", "only tested with ed25519 so far"), !(this instanceof Wn))
|
|
35304
35294
|
return new Wn(t);
|
|
@@ -35318,7 +35308,7 @@ Wn.prototype.verify = function(e, r, n) {
|
|
|
35318
35308
|
Wn.prototype.hashInt = function() {
|
|
35319
35309
|
for (var e = this.hash(), r = 0; r < arguments.length; r++)
|
|
35320
35310
|
e.update(arguments[r]);
|
|
35321
|
-
return
|
|
35311
|
+
return wu.intFromLE(e.digest()).umod(this.curve.n);
|
|
35322
35312
|
};
|
|
35323
35313
|
Wn.prototype.keyFromPublic = function(e) {
|
|
35324
35314
|
return fA.fromPublic(this, e);
|
|
@@ -35334,15 +35324,15 @@ Wn.prototype.encodePoint = function(e) {
|
|
|
35334
35324
|
return r[this.encodingLength - 1] |= e.getX().isOdd() ? 128 : 0, r;
|
|
35335
35325
|
};
|
|
35336
35326
|
Wn.prototype.decodePoint = function(e) {
|
|
35337
|
-
e =
|
|
35338
|
-
var r = e.length - 1, n = e.slice(0, r).concat(e[r] & -129), s = (e[r] & 128) !== 0, i =
|
|
35327
|
+
e = wu.parseBytes(e);
|
|
35328
|
+
var r = e.length - 1, n = e.slice(0, r).concat(e[r] & -129), s = (e[r] & 128) !== 0, i = wu.intFromLE(n);
|
|
35339
35329
|
return this.curve.pointFromY(i, s);
|
|
35340
35330
|
};
|
|
35341
35331
|
Wn.prototype.encodeInt = function(e) {
|
|
35342
35332
|
return e.toArray("le", this.encodingLength);
|
|
35343
35333
|
};
|
|
35344
35334
|
Wn.prototype.decodeInt = function(e) {
|
|
35345
|
-
return
|
|
35335
|
+
return wu.intFromLE(e);
|
|
35346
35336
|
};
|
|
35347
35337
|
Wn.prototype.isPoint = function(e) {
|
|
35348
35338
|
return e instanceof this.pointClass;
|
|
@@ -35411,7 +35401,7 @@ Wr.prototype.liftX = function() {
|
|
|
35411
35401
|
const E = this.x.red ? this.x.fromRed() : this.x, A = _.mod(n).eq(e) ? _.fromRed() : t.sub(_);
|
|
35412
35402
|
return new Wr(E, A, !0);
|
|
35413
35403
|
};
|
|
35414
|
-
var
|
|
35404
|
+
var uf = Wr, ma = ln, k$ = Jt, An = $t, cA = cr, N$ = dn, Mt = function t(e, r, n) {
|
|
35415
35405
|
if (!(this instanceof t))
|
|
35416
35406
|
return new t(e, r, n);
|
|
35417
35407
|
if (e instanceof ma)
|
|
@@ -35556,7 +35546,7 @@ Mt.Version.TAPROOT = 2;
|
|
|
35556
35546
|
Mt.Version.TAPSCRIPT = 3;
|
|
35557
35547
|
var kn = Mt, hA = { exports: {} };
|
|
35558
35548
|
(function(t) {
|
|
35559
|
-
var e =
|
|
35549
|
+
var e = af(), r = cr, n = $t, s = t.exports;
|
|
35560
35550
|
s.sha1 = function(i) {
|
|
35561
35551
|
return n.checkArgument(r.isBuffer(i)), e.createHash("sha1").update(i).digest();
|
|
35562
35552
|
}, s.sha1.blocksize = 512, s.sha256 = function(i) {
|
|
@@ -35597,7 +35587,7 @@ function dA() {
|
|
|
35597
35587
|
dA.prototype.toString = function() {
|
|
35598
35588
|
return this.name;
|
|
35599
35589
|
};
|
|
35600
|
-
function
|
|
35590
|
+
function cf(t, e) {
|
|
35601
35591
|
if (~ja.indexOf(t))
|
|
35602
35592
|
return t;
|
|
35603
35593
|
if (e) {
|
|
@@ -35643,7 +35633,7 @@ function Eh(t) {
|
|
|
35643
35633
|
return e;
|
|
35644
35634
|
}
|
|
35645
35635
|
function D$(t) {
|
|
35646
|
-
typeof t != "object" && (t =
|
|
35636
|
+
typeof t != "object" && (t = cf(t));
|
|
35647
35637
|
for (var e = 0; e < ja.length; e++)
|
|
35648
35638
|
ja[e] === t && ja.splice(e, 1);
|
|
35649
35639
|
for (var r in On)
|
|
@@ -35674,7 +35664,7 @@ Eh({
|
|
|
35674
35664
|
"bitseed.xf2.org"
|
|
35675
35665
|
]
|
|
35676
35666
|
});
|
|
35677
|
-
var Qv =
|
|
35667
|
+
var Qv = cf("livenet");
|
|
35678
35668
|
Eh({
|
|
35679
35669
|
name: "testnet",
|
|
35680
35670
|
alias: "testnet",
|
|
@@ -35722,7 +35712,7 @@ Eh({
|
|
|
35722
35712
|
]
|
|
35723
35713
|
}]
|
|
35724
35714
|
});
|
|
35725
|
-
var f2 =
|
|
35715
|
+
var f2 = cf("testnet"), U$ = cf("testnet3"), F$ = cf("signet");
|
|
35726
35716
|
Eh({
|
|
35727
35717
|
name: "regtest",
|
|
35728
35718
|
alias: "dev",
|
|
@@ -35737,14 +35727,14 @@ Eh({
|
|
|
35737
35727
|
port: 18444,
|
|
35738
35728
|
dnsSeeds: []
|
|
35739
35729
|
});
|
|
35740
|
-
var H$ =
|
|
35730
|
+
var H$ = cf("regtest");
|
|
35741
35731
|
function q$() {
|
|
35742
35732
|
f2.regtestEnabled = !0;
|
|
35743
35733
|
}
|
|
35744
35734
|
function z$() {
|
|
35745
35735
|
f2.regtestEnabled = !1;
|
|
35746
35736
|
}
|
|
35747
|
-
var
|
|
35737
|
+
var hf = {
|
|
35748
35738
|
add: Eh,
|
|
35749
35739
|
remove: D$,
|
|
35750
35740
|
defaultNetwork: Qv,
|
|
@@ -35754,10 +35744,10 @@ var cf = {
|
|
|
35754
35744
|
testnet3: U$,
|
|
35755
35745
|
signet: F$,
|
|
35756
35746
|
regtest: H$,
|
|
35757
|
-
get:
|
|
35747
|
+
get: cf,
|
|
35758
35748
|
enableRegtest: q$,
|
|
35759
35749
|
disableRegtest: z$
|
|
35760
|
-
}, yg = cr, lA =
|
|
35750
|
+
}, yg = cr, lA = bu(), Sr = function t(e) {
|
|
35761
35751
|
if (!(this instanceof t))
|
|
35762
35752
|
return new t(e);
|
|
35763
35753
|
this.bufLen = 0, e ? this.set(e) : this.bufs = [];
|
|
@@ -35859,8 +35849,8 @@ typeof Object.create == "function" ? wg.exports = function(e, r) {
|
|
|
35859
35849
|
};
|
|
35860
35850
|
n.prototype = r.prototype, e.prototype = new n(), e.prototype.constructor = e;
|
|
35861
35851
|
};
|
|
35862
|
-
var
|
|
35863
|
-
const pA = Nr, vA = vn, j$ =
|
|
35852
|
+
var df = wg.exports;
|
|
35853
|
+
const pA = Nr, vA = vn, j$ = df;
|
|
35864
35854
|
function aa(t, e, r = "hex") {
|
|
35865
35855
|
if (!(this instanceof aa))
|
|
35866
35856
|
return new aa(t, e, r);
|
|
@@ -36072,15 +36062,15 @@ Gn.prototype.toBuffer = function() {
|
|
|
36072
36062
|
Gn.prototype.toString = function() {
|
|
36073
36063
|
return Gn.encode(this.buf);
|
|
36074
36064
|
};
|
|
36075
|
-
var Ih = Gn,
|
|
36076
|
-
Object.defineProperty(
|
|
36077
|
-
|
|
36065
|
+
var Ih = Gn, _u = {};
|
|
36066
|
+
Object.defineProperty(_u, "__esModule", { value: !0 });
|
|
36067
|
+
_u.bech32m = _u.bech32 = void 0;
|
|
36078
36068
|
const Zd = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", wA = {};
|
|
36079
36069
|
for (let t = 0; t < Zd.length; t++) {
|
|
36080
36070
|
const e = Zd.charAt(t);
|
|
36081
36071
|
wA[e] = t;
|
|
36082
36072
|
}
|
|
36083
|
-
function
|
|
36073
|
+
function Jf(t) {
|
|
36084
36074
|
const e = t >> 25;
|
|
36085
36075
|
return (t & 33554431) << 5 ^ -(e >> 0 & 1) & 996825010 ^ -(e >> 1 & 1) & 642813549 ^ -(e >> 2 & 1) & 513874426 ^ -(e >> 3 & 1) & 1027748829 ^ -(e >> 4 & 1) & 705979059;
|
|
36086
36076
|
}
|
|
@@ -36090,12 +36080,12 @@ function Mw(t) {
|
|
|
36090
36080
|
const n = t.charCodeAt(r);
|
|
36091
36081
|
if (n < 33 || n > 126)
|
|
36092
36082
|
return "Invalid prefix (" + t + ")";
|
|
36093
|
-
e =
|
|
36083
|
+
e = Jf(e) ^ n >> 5;
|
|
36094
36084
|
}
|
|
36095
|
-
e =
|
|
36085
|
+
e = Jf(e);
|
|
36096
36086
|
for (let r = 0; r < t.length; ++r) {
|
|
36097
36087
|
const n = t.charCodeAt(r);
|
|
36098
|
-
e =
|
|
36088
|
+
e = Jf(e) ^ n & 31;
|
|
36099
36089
|
}
|
|
36100
36090
|
return e;
|
|
36101
36091
|
}
|
|
@@ -36144,10 +36134,10 @@ function _A(t) {
|
|
|
36144
36134
|
const x = l[A];
|
|
36145
36135
|
if (x >> 5)
|
|
36146
36136
|
throw new Error("Non 5-bit word");
|
|
36147
|
-
_ =
|
|
36137
|
+
_ = Jf(_) ^ x, E += Zd.charAt(x);
|
|
36148
36138
|
}
|
|
36149
36139
|
for (let A = 0; A < 6; ++A)
|
|
36150
|
-
_ =
|
|
36140
|
+
_ = Jf(_);
|
|
36151
36141
|
_ ^= e;
|
|
36152
36142
|
for (let A = 0; A < 6; ++A) {
|
|
36153
36143
|
const x = _ >> (5 - A) * 5 & 31;
|
|
@@ -36180,7 +36170,7 @@ function _A(t) {
|
|
|
36180
36170
|
const B = x.charAt(R), C = wA[B];
|
|
36181
36171
|
if (C === void 0)
|
|
36182
36172
|
return "Unknown character " + B;
|
|
36183
|
-
O =
|
|
36173
|
+
O = Jf(O) ^ C, !(R + 6 >= x.length) && I.push(C);
|
|
36184
36174
|
}
|
|
36185
36175
|
return O !== e ? "Invalid checksum for " + f : { prefix: A, words: I };
|
|
36186
36176
|
}
|
|
@@ -36204,18 +36194,18 @@ function _A(t) {
|
|
|
36204
36194
|
fromWords: Y$
|
|
36205
36195
|
};
|
|
36206
36196
|
}
|
|
36207
|
-
|
|
36208
|
-
|
|
36209
|
-
var
|
|
36197
|
+
_u.bech32 = _A("bech32");
|
|
36198
|
+
_u.bech32m = _A("bech32m");
|
|
36199
|
+
var jf = _u, Q$ = function(t) {
|
|
36210
36200
|
if (typeof t != "string")
|
|
36211
36201
|
throw new Error("Input should be a string");
|
|
36212
36202
|
var e;
|
|
36213
|
-
let r =
|
|
36203
|
+
let r = jf.bech32.fromWords, n = Ka.BECH32;
|
|
36214
36204
|
try {
|
|
36215
|
-
e =
|
|
36205
|
+
e = jf.bech32.decode(t);
|
|
36216
36206
|
} catch (i) {
|
|
36217
36207
|
if (i.message.indexOf("Invalid checksum") > -1)
|
|
36218
|
-
e =
|
|
36208
|
+
e = jf.bech32m.decode(t), n = Ka.BECH32M, r = jf.bech32m.fromWords;
|
|
36219
36209
|
else
|
|
36220
36210
|
throw i;
|
|
36221
36211
|
}
|
|
@@ -36234,14 +36224,14 @@ var zf = wu, Q$ = function(t) {
|
|
|
36234
36224
|
throw new Error("version should be a number");
|
|
36235
36225
|
if (n && typeof n == "string" && (n = Ka[n.toUpperCase()] || -1), n && !(n == Ka.BECH32 || n == Ka.BECH32M))
|
|
36236
36226
|
throw new Error("Invalid encoding specified");
|
|
36237
|
-
let s = n == Ka.BECH32M ?
|
|
36227
|
+
let s = n == Ka.BECH32M ? jf.bech32m : jf.bech32, i = s.toWords(r);
|
|
36238
36228
|
return i.unshift(e), s.encode(t, i);
|
|
36239
36229
|
};
|
|
36240
36230
|
const Ka = {
|
|
36241
36231
|
BECH32: 1,
|
|
36242
36232
|
BECH32M: 2
|
|
36243
36233
|
};
|
|
36244
|
-
var tZ = { decode: Q$, encode: eZ, encodings: Ka }, B0 = { exports: {} }, Oc = Jt, AA = $t, rZ = cr,
|
|
36234
|
+
var tZ = { decode: Q$, encode: eZ, encodings: Ka }, B0 = { exports: {} }, Oc = Jt, AA = $t, rZ = cr, Yf = ln, Er = function t(e) {
|
|
36245
36235
|
if (!(this instanceof t))
|
|
36246
36236
|
return new t(e);
|
|
36247
36237
|
if (!Oc.isUndefined(e))
|
|
@@ -36300,16 +36290,16 @@ Er.prototype.readInt32LE = function() {
|
|
|
36300
36290
|
return this.pos = this.pos + 4, t;
|
|
36301
36291
|
};
|
|
36302
36292
|
Er.prototype.readUInt64BEBN = function() {
|
|
36303
|
-
var t = this.buf.slice(this.pos, this.pos + 8), e =
|
|
36293
|
+
var t = this.buf.slice(this.pos, this.pos + 8), e = Yf.fromBuffer(t);
|
|
36304
36294
|
return this.pos = this.pos + 8, e;
|
|
36305
36295
|
};
|
|
36306
36296
|
Er.prototype.readUInt64LEBN = function() {
|
|
36307
36297
|
var t = this.buf.readUInt32LE(this.pos), e = this.buf.readUInt32LE(this.pos + 4), r = e * 4294967296 + t, n;
|
|
36308
36298
|
if (r <= 9007199254740991)
|
|
36309
|
-
n = new
|
|
36299
|
+
n = new Yf(r);
|
|
36310
36300
|
else {
|
|
36311
36301
|
var s = Array.prototype.slice.call(this.buf, this.pos, this.pos + 8);
|
|
36312
|
-
n = new
|
|
36302
|
+
n = new Yf(s, 10, "le");
|
|
36313
36303
|
}
|
|
36314
36304
|
return this.pos = this.pos + 8, n;
|
|
36315
36305
|
};
|
|
@@ -36350,13 +36340,13 @@ Er.prototype.readVarintBN = function() {
|
|
|
36350
36340
|
var t = this.readUInt8();
|
|
36351
36341
|
switch (t) {
|
|
36352
36342
|
case 253:
|
|
36353
|
-
return new
|
|
36343
|
+
return new Yf(this.readUInt16LE());
|
|
36354
36344
|
case 254:
|
|
36355
|
-
return new
|
|
36345
|
+
return new Yf(this.readUInt32LE());
|
|
36356
36346
|
case 255:
|
|
36357
36347
|
return this.readUInt64LEBN();
|
|
36358
36348
|
default:
|
|
36359
|
-
return new
|
|
36349
|
+
return new Yf(t);
|
|
36360
36350
|
}
|
|
36361
36351
|
};
|
|
36362
36352
|
Er.prototype.reverse = function() {
|
|
@@ -36369,14 +36359,14 @@ Er.prototype.readReverse = function(t) {
|
|
|
36369
36359
|
var e = this.buf.slice(this.pos, this.pos + t);
|
|
36370
36360
|
return this.pos = this.pos + t, rZ.reverse(e);
|
|
36371
36361
|
};
|
|
36372
|
-
var _a = Er,
|
|
36362
|
+
var _a = Er, Au = Jt, xu = $t, nZ = cr, iZ = dn;
|
|
36373
36363
|
function kt(t) {
|
|
36374
36364
|
if (!(this instanceof kt))
|
|
36375
36365
|
return new kt(t);
|
|
36376
36366
|
var e;
|
|
36377
|
-
if (
|
|
36367
|
+
if (Au.isNumber(t))
|
|
36378
36368
|
e = t;
|
|
36379
|
-
else if (
|
|
36369
|
+
else if (Au.isString(t))
|
|
36380
36370
|
e = kt.map[t];
|
|
36381
36371
|
else
|
|
36382
36372
|
throw new TypeError('Unrecognized num type: "' + typeof t + '" for Opcode');
|
|
@@ -36385,13 +36375,13 @@ function kt(t) {
|
|
|
36385
36375
|
}), this;
|
|
36386
36376
|
}
|
|
36387
36377
|
kt.fromBuffer = function(t) {
|
|
36388
|
-
return
|
|
36378
|
+
return xu.checkArgument(nZ.isBuffer(t)), new kt(+("0x" + t.toString("hex")));
|
|
36389
36379
|
};
|
|
36390
36380
|
kt.fromNumber = function(t) {
|
|
36391
|
-
return
|
|
36381
|
+
return xu.checkArgument(Au.isNumber(t)), new kt(t);
|
|
36392
36382
|
};
|
|
36393
36383
|
kt.fromString = function(t) {
|
|
36394
|
-
|
|
36384
|
+
xu.checkArgument(Au.isString(t));
|
|
36395
36385
|
var e = kt.map[t];
|
|
36396
36386
|
if (typeof e > "u")
|
|
36397
36387
|
throw new TypeError("Invalid opcodestr");
|
|
@@ -36413,10 +36403,10 @@ kt.prototype.toString = function() {
|
|
|
36413
36403
|
return t;
|
|
36414
36404
|
};
|
|
36415
36405
|
kt.smallInt = function(t) {
|
|
36416
|
-
return
|
|
36406
|
+
return xu.checkArgument(Au.isNumber(t), "Invalid Argument: n should be number"), xu.checkArgument(t >= 0 && t <= 16, "Invalid Argument: n must be between 0 and 16"), t === 0 ? kt("OP_0") : new kt(kt.map.OP_1 + t - 1);
|
|
36417
36407
|
};
|
|
36418
36408
|
kt.decodeOpN = function(t) {
|
|
36419
|
-
return t === kt.OP_0 ? 0 : (
|
|
36409
|
+
return t === kt.OP_0 ? 0 : (xu.checkArgument(t >= kt.OP_1 && t <= kt.OP_16, new Error("Invalid opcode: " + JSON.stringify(t))), t - (kt.OP_1 - 1));
|
|
36420
36410
|
};
|
|
36421
36411
|
kt.isOpSuccess = function(t) {
|
|
36422
36412
|
return typeof t == "string" && !parseInt(t) && (t = kt[t]), t == 80 || t == 98 || t >= 126 && t <= 129 || t >= 131 && t <= 134 || t >= 137 && t <= 138 || t >= 141 && t <= 142 || t >= 149 && t <= 153 || t >= 187 && t <= 254;
|
|
@@ -36556,7 +36546,7 @@ kt.map = {
|
|
|
36556
36546
|
kt.reverseMap = [];
|
|
36557
36547
|
for (var Rw in kt.map)
|
|
36558
36548
|
kt.reverseMap[kt.map[Rw]] = Rw;
|
|
36559
|
-
|
|
36549
|
+
Au.extend(kt, kt.map);
|
|
36560
36550
|
kt.isSmallIntOp = function(t) {
|
|
36561
36551
|
return t instanceof kt && (t = t.toNumber()), t === kt.map.OP_0 || t >= kt.map.OP_1 && t <= kt.map.OP_16;
|
|
36562
36552
|
};
|
|
@@ -36568,7 +36558,7 @@ function xA() {
|
|
|
36568
36558
|
if (Tw)
|
|
36569
36559
|
return tb;
|
|
36570
36560
|
Tw = 1;
|
|
36571
|
-
var t = Fs(), e = _a, r = vn, n = Nr, s = c2, i = Hs(), f = kn, l =
|
|
36561
|
+
var t = Fs(), e = _a, r = vn, n = Nr, s = c2, i = Hs(), f = kn, l = hf, g = $t, _ = Jt, E = Ui, A = cr, x = dn;
|
|
36572
36562
|
const O = so;
|
|
36573
36563
|
var I = function R(B) {
|
|
36574
36564
|
if (!(this instanceof R))
|
|
@@ -37097,7 +37087,7 @@ function Mh() {
|
|
|
37097
37087
|
verify: _
|
|
37098
37088
|
}, rb;
|
|
37099
37089
|
}
|
|
37100
|
-
const sZ =
|
|
37090
|
+
const sZ = af(), ta = $t, Xd = dn, Mo = ln, Ro = uf, ed = so, Qc = function t() {
|
|
37101
37091
|
return this instanceof t ? this : new t();
|
|
37102
37092
|
};
|
|
37103
37093
|
Qc.prototype.set = function() {
|
|
@@ -37144,7 +37134,7 @@ function h2() {
|
|
|
37144
37134
|
return nb;
|
|
37145
37135
|
Pw = 1;
|
|
37146
37136
|
const t = kn, e = vn, r = Nr, n = SA, s = $t, i = so;
|
|
37147
|
-
|
|
37137
|
+
lf();
|
|
37148
37138
|
function f(E, A, x, O, I) {
|
|
37149
37139
|
let R, B;
|
|
37150
37140
|
switch (O) {
|
|
@@ -37498,7 +37488,7 @@ function Vu() {
|
|
|
37498
37488
|
if (Nw)
|
|
37499
37489
|
return ob;
|
|
37500
37490
|
Nw = 1;
|
|
37501
|
-
var t = $t, e =
|
|
37491
|
+
var t = $t, e = df, r = cr, n = dn, s = Hs(), i = Ui, f = kn;
|
|
37502
37492
|
function l(g) {
|
|
37503
37493
|
if (!(this instanceof l))
|
|
37504
37494
|
return new l(g);
|
|
@@ -37530,7 +37520,7 @@ function fZ() {
|
|
|
37530
37520
|
if (Lw)
|
|
37531
37521
|
return fb;
|
|
37532
37522
|
Lw = 1;
|
|
37533
|
-
var t =
|
|
37523
|
+
var t = df, e = $t, r = Rh(), n = Aa(), s = ao(), i = ai(), f = kn, l = Vu();
|
|
37534
37524
|
function g() {
|
|
37535
37525
|
r.apply(this, arguments);
|
|
37536
37526
|
}
|
|
@@ -37563,7 +37553,7 @@ function EA() {
|
|
|
37563
37553
|
if (Dw)
|
|
37564
37554
|
return ub;
|
|
37565
37555
|
Dw = 1;
|
|
37566
|
-
var t =
|
|
37556
|
+
var t = df, e = $t, g = cr;
|
|
37567
37557
|
Fs();
|
|
37568
37558
|
var r = Nr, n = Rh(), s = Aa(), i = ao(), f = Mh(), l = vn, g = cr, _ = ai(), E = kn, A = Vu();
|
|
37569
37559
|
function x() {
|
|
@@ -37653,7 +37643,7 @@ function uZ() {
|
|
|
37653
37643
|
if (Uw)
|
|
37654
37644
|
return cb;
|
|
37655
37645
|
Uw = 1;
|
|
37656
|
-
var t = Jt, e =
|
|
37646
|
+
var t = Jt, e = df;
|
|
37657
37647
|
v2();
|
|
37658
37648
|
var r = Rh(), n = Aa(), s = $t, i = ai(), f = kn, l = ao();
|
|
37659
37649
|
Hs();
|
|
@@ -37779,7 +37769,7 @@ function cZ() {
|
|
|
37779
37769
|
if (Fw)
|
|
37780
37770
|
return hb;
|
|
37781
37771
|
Fw = 1;
|
|
37782
|
-
var t = Jt, e =
|
|
37772
|
+
var t = Jt, e = df, r = Rh(), n = Aa(), s = $t, i = Fs(), f = ai(), l = kn, g = ao(), _ = Mh(), E = vn, A = cr, x = Vu();
|
|
37783
37773
|
function O(I, R, B, C, P) {
|
|
37784
37774
|
P = P || {}, r.apply(this, arguments), R = R || I.publicKeys, B = B || I.threshold, C = C || I.signatures, P.noSorting ? this.publicKeys = R : this.publicKeys = t.sortBy(R, function(K) {
|
|
37785
37775
|
return K.toString("hex");
|
|
@@ -37928,8 +37918,8 @@ function hZ() {
|
|
|
37928
37918
|
if (Hw)
|
|
37929
37919
|
return db;
|
|
37930
37920
|
Hw = 1;
|
|
37931
|
-
const t =
|
|
37932
|
-
|
|
37921
|
+
const t = df, e = $t, r = EA(), n = h2(), s = kn, i = Vu(), f = Aa();
|
|
37922
|
+
lf();
|
|
37933
37923
|
function l() {
|
|
37934
37924
|
r.apply(this, arguments);
|
|
37935
37925
|
}
|
|
@@ -38174,7 +38164,7 @@ function v2() {
|
|
|
38174
38164
|
const O = h2();
|
|
38175
38165
|
var I = Fs(), R = IA(), B = d2(), C = B.PublicKeyHash, P = B.PublicKey, L = B.MultiSigScriptHash, H = B.MultiSig;
|
|
38176
38166
|
const K = B.Taproot;
|
|
38177
|
-
var V = Aa(), te = ai(), U =
|
|
38167
|
+
var V = Aa(), te = ai(), U = lf(), j = ln;
|
|
38178
38168
|
function D(m, w) {
|
|
38179
38169
|
if (!(this instanceof D))
|
|
38180
38170
|
return new D(m);
|
|
@@ -39560,7 +39550,7 @@ function Fs() {
|
|
|
39560
39550
|
if ($w)
|
|
39561
39551
|
return gb;
|
|
39562
39552
|
$w = 1;
|
|
39563
|
-
var t = Jt, e = $t, r = Ui, n = Ih, s = tZ, i =
|
|
39553
|
+
var t = Jt, e = $t, r = Ui, n = Ih, s = tZ, i = hf, f = Nr, l = dn, g = Hs();
|
|
39564
39554
|
function _(A, x, O, I) {
|
|
39565
39555
|
if (!(this instanceof _))
|
|
39566
39556
|
return new _(A, x, O);
|
|
@@ -39772,7 +39762,7 @@ Lo.getRandomBuffer = function(t) {
|
|
|
39772
39762
|
return vt.browser ? Lo.getRandomBufferBrowser(t) : Lo.getRandomBufferNode(t);
|
|
39773
39763
|
};
|
|
39774
39764
|
Lo.getRandomBufferNode = function(t) {
|
|
39775
|
-
var e =
|
|
39765
|
+
var e = af();
|
|
39776
39766
|
return e.randomBytes(t);
|
|
39777
39767
|
};
|
|
39778
39768
|
Lo.getRandomBufferBrowser = function(t) {
|
|
@@ -39797,11 +39787,11 @@ Lo.getPseudoRandomBuffer = function(t) {
|
|
|
39797
39787
|
return r;
|
|
39798
39788
|
};
|
|
39799
39789
|
var vp = Lo, mb, Zw;
|
|
39800
|
-
function
|
|
39790
|
+
function lf() {
|
|
39801
39791
|
if (Zw)
|
|
39802
39792
|
return mb;
|
|
39803
39793
|
Zw = 1;
|
|
39804
|
-
var t = Jt, e = Fs(), r = Ih, n = ln, s = dn, i =
|
|
39794
|
+
var t = Jt, e = Fs(), r = Ih, n = ln, s = dn, i = hf, f = uf, l = Hs(), g = vp, _ = $t;
|
|
39805
39795
|
const E = so;
|
|
39806
39796
|
function A(x, O) {
|
|
39807
39797
|
if (!(this instanceof A))
|
|
@@ -39944,7 +39934,7 @@ function Hs() {
|
|
|
39944
39934
|
if (Xw)
|
|
39945
39935
|
return yb;
|
|
39946
39936
|
Xw = 1;
|
|
39947
|
-
var t = ln, e =
|
|
39937
|
+
var t = ln, e = uf, r = Nr, n = dn, s = hf, i = Jt, f = $t;
|
|
39948
39938
|
const l = so;
|
|
39949
39939
|
function g(_, E) {
|
|
39950
39940
|
if (!(this instanceof g))
|
|
@@ -39977,7 +39967,7 @@ function Hs() {
|
|
|
39977
39967
|
throw new TypeError("First argument is an unrecognized data format.");
|
|
39978
39968
|
return A.network || (A.network = i.isUndefined(E.network) ? void 0 : s.get(E.network)), A;
|
|
39979
39969
|
}, g._isPrivateKey = function(_) {
|
|
39980
|
-
var E =
|
|
39970
|
+
var E = lf();
|
|
39981
39971
|
return _ instanceof E;
|
|
39982
39972
|
}, g._isBuffer = function(_) {
|
|
39983
39973
|
return _ instanceof pe || _ instanceof Uint8Array;
|
|
@@ -40108,7 +40098,7 @@ function bp() {
|
|
|
40108
40098
|
if (Jw)
|
|
40109
40099
|
return R0.exports;
|
|
40110
40100
|
Jw = 1;
|
|
40111
|
-
const t = ln, e =
|
|
40101
|
+
const t = ln, e = uf, r = kn, n = Hs(), s = vp, i = Nr, f = cr, l = $t, g = function(C, P, L) {
|
|
40112
40102
|
for (var H = 0; H < 4; H++) {
|
|
40113
40103
|
var K;
|
|
40114
40104
|
try {
|
|
@@ -40246,7 +40236,7 @@ fs.prototype.toBN = function() {
|
|
|
40246
40236
|
fs.prototype.toNumber = function() {
|
|
40247
40237
|
return TA(this.buf).readVarintNum();
|
|
40248
40238
|
};
|
|
40249
|
-
var pZ = fs, gp = { exports: {} }, Yd = Jt, eh = ln,
|
|
40239
|
+
var pZ = fs, gp = { exports: {} }, Yd = Jt, eh = ln, Su = cr, mp = _a, vZ = vn, bZ = Nr, OA = $t, gZ = 486604799, jt = function t(e) {
|
|
40250
40240
|
if (!(this instanceof t))
|
|
40251
40241
|
return new t(e);
|
|
40252
40242
|
var r = t._from(e);
|
|
@@ -40257,7 +40247,7 @@ var pZ = fs, gp = { exports: {} }, Yd = Jt, eh = ln, xu = cr, mp = _a, vZ = vn,
|
|
|
40257
40247
|
};
|
|
40258
40248
|
jt._from = function(e) {
|
|
40259
40249
|
var r = {};
|
|
40260
|
-
if (
|
|
40250
|
+
if (Su.isBuffer(e))
|
|
40261
40251
|
r = jt._fromBufferReader(mp(e));
|
|
40262
40252
|
else if (Yd.isObject(e))
|
|
40263
40253
|
r = jt._fromObject(e);
|
|
@@ -40268,7 +40258,7 @@ jt._from = function(e) {
|
|
|
40268
40258
|
jt._fromObject = function(e) {
|
|
40269
40259
|
OA.checkArgument(e, "data is required");
|
|
40270
40260
|
var r = e.prevHash, n = e.merkleRoot;
|
|
40271
|
-
Yd.isString(e.prevHash) && (r =
|
|
40261
|
+
Yd.isString(e.prevHash) && (r = Su.reverse(pe.from(e.prevHash, "hex"))), Yd.isString(e.merkleRoot) && (n = Su.reverse(pe.from(e.merkleRoot, "hex")));
|
|
40272
40262
|
var s = {
|
|
40273
40263
|
hash: e.hash,
|
|
40274
40264
|
version: e.version,
|
|
@@ -40286,7 +40276,7 @@ jt.fromObject = function(e) {
|
|
|
40286
40276
|
return new jt(r);
|
|
40287
40277
|
};
|
|
40288
40278
|
jt.fromRawBlock = function(e) {
|
|
40289
|
-
|
|
40279
|
+
Su.isBuffer(e) || (e = pe.from(e, "binary"));
|
|
40290
40280
|
var r = mp(e);
|
|
40291
40281
|
r.pos = jt.Constants.START_OF_HEADER;
|
|
40292
40282
|
var n = jt._fromBufferReader(r);
|
|
@@ -40312,8 +40302,8 @@ jt.prototype.toObject = jt.prototype.toJSON = function() {
|
|
|
40312
40302
|
return {
|
|
40313
40303
|
hash: this.hash,
|
|
40314
40304
|
version: this.version,
|
|
40315
|
-
prevHash:
|
|
40316
|
-
merkleRoot:
|
|
40305
|
+
prevHash: Su.reverse(this.prevHash).toString("hex"),
|
|
40306
|
+
merkleRoot: Su.reverse(this.merkleRoot).toString("hex"),
|
|
40317
40307
|
time: this.time,
|
|
40318
40308
|
bits: this.bits,
|
|
40319
40309
|
nonce: this.nonce
|
|
@@ -40502,14 +40492,14 @@ Ut.Values = {
|
|
|
40502
40492
|
// Start of block in raw block data
|
|
40503
40493
|
NULL_HASH: pe.from("0000000000000000000000000000000000000000000000000000000000000000", "hex")
|
|
40504
40494
|
};
|
|
40505
|
-
var wZ = Ut,
|
|
40495
|
+
var wZ = Ut, Yo = Jt, xg = yp, m2 = cr, LA = _a, _Z = vn, AZ = Nr, Qw = pp(), wb = Ui, Qo = $t;
|
|
40506
40496
|
function yr(t) {
|
|
40507
40497
|
if (!(this instanceof yr))
|
|
40508
40498
|
return new yr(t);
|
|
40509
40499
|
var e = {};
|
|
40510
40500
|
if (m2.isBuffer(t))
|
|
40511
40501
|
e = yr._fromBufferReader(LA(t));
|
|
40512
|
-
else if (
|
|
40502
|
+
else if (Yo.isObject(t)) {
|
|
40513
40503
|
var r;
|
|
40514
40504
|
t.header instanceof xg ? r = t.header : r = xg.fromObject(t.header), e = {
|
|
40515
40505
|
/**
|
|
@@ -40535,7 +40525,7 @@ function yr(t) {
|
|
|
40535
40525
|
};
|
|
40536
40526
|
} else
|
|
40537
40527
|
throw new TypeError("Unrecognized argument for MerkleBlock");
|
|
40538
|
-
return
|
|
40528
|
+
return Yo.extend(this, e), this._flagBitsUsed = 0, this._hashesUsed = 0, this;
|
|
40539
40529
|
}
|
|
40540
40530
|
yr.fromBuffer = function(e) {
|
|
40541
40531
|
return yr.fromBufferReader(LA(e));
|
|
@@ -40563,13 +40553,13 @@ yr.prototype.toObject = yr.prototype.toJSON = function() {
|
|
|
40563
40553
|
};
|
|
40564
40554
|
};
|
|
40565
40555
|
yr.prototype.validMerkleTree = function() {
|
|
40566
|
-
if (
|
|
40556
|
+
if (Qo.checkState(Yo.isArray(this.flags), "MerkleBlock flags is not an array"), Qo.checkState(Yo.isArray(this.hashes), "MerkleBlock hashes is not an array"), this.hashes.length > this.numTransactions || this.flags.length * 8 < this.hashes.length)
|
|
40567
40557
|
return !1;
|
|
40568
40558
|
var e = this._calcTreeHeight(), r = { hashesUsed: 0, flagBitsUsed: 0 }, n = this._traverseMerkleTree(e, 0, r);
|
|
40569
40559
|
return r.hashesUsed !== this.hashes.length ? !1 : m2.equals(n, this.header.merkleRoot);
|
|
40570
40560
|
};
|
|
40571
40561
|
yr.prototype.filterdTxsHash = function() {
|
|
40572
|
-
if (
|
|
40562
|
+
if (Qo.checkState(Yo.isArray(this.flags), "MerkleBlock flags is not an array"), Qo.checkState(Yo.isArray(this.hashes), "MerkleBlock hashes is not an array"), this.hashes.length > this.numTransactions)
|
|
40573
40563
|
throw new wb.MerkleBlock.InvalidMerkleTree();
|
|
40574
40564
|
if (this.flags.length * 8 < this.hashes.length)
|
|
40575
40565
|
throw new wb.MerkleBlock.InvalidMerkleTree();
|
|
@@ -40605,7 +40595,7 @@ yr.prototype._calcTreeHeight = function() {
|
|
|
40605
40595
|
return e;
|
|
40606
40596
|
};
|
|
40607
40597
|
yr.prototype.hasTransaction = function(e) {
|
|
40608
|
-
|
|
40598
|
+
Qo.checkArgument(!Yo.isUndefined(e), "tx cannot be undefined"), Qo.checkArgument(
|
|
40609
40599
|
e instanceof Qw || typeof e == "string",
|
|
40610
40600
|
'Invalid tx given, tx must be a "string" or "Transaction"'
|
|
40611
40601
|
);
|
|
@@ -40615,7 +40605,7 @@ yr.prototype.hasTransaction = function(e) {
|
|
|
40615
40605
|
return this._traverseMerkleTree(s, 0, { txs: n }), n.indexOf(r) !== -1;
|
|
40616
40606
|
};
|
|
40617
40607
|
yr._fromBufferReader = function(e) {
|
|
40618
|
-
|
|
40608
|
+
Qo.checkState(!e.finished(), "No merkleblock data received");
|
|
40619
40609
|
var r = {};
|
|
40620
40610
|
r.header = xg.fromBufferReader(e), r.numTransactions = e.readUInt32LE();
|
|
40621
40611
|
var n = e.readVarintNum();
|
|
@@ -40639,7 +40629,7 @@ function UA() {
|
|
|
40639
40629
|
if (e8)
|
|
40640
40630
|
return _b;
|
|
40641
40631
|
e8 = 1;
|
|
40642
|
-
var t = Jt, e = $t, r = ln, n = lp, s = Ih, i = Nr, f = FA(), l =
|
|
40632
|
+
var t = Jt, e = $t, r = ln, n = lp, s = Ih, i = Nr, f = FA(), l = hf, g = uf, _ = Hs(), E = Ui, A = E, x = E.HDPublicKey, O = bu(), I = dn, R = cr;
|
|
40643
40633
|
function B(C) {
|
|
40644
40634
|
if (C instanceof B)
|
|
40645
40635
|
return C;
|
|
@@ -40829,7 +40819,7 @@ function FA() {
|
|
|
40829
40819
|
if (t8)
|
|
40830
40820
|
return Ab;
|
|
40831
40821
|
t8 = 1;
|
|
40832
|
-
var t =
|
|
40822
|
+
var t = bu(), e = Zr, r = Jt, n = $t, s = ln, i = lp, f = Ih, l = Nr, g = hf, _ = uf, E = lf(), A = vp, x = Ui, O = x.HDPrivateKey, I = cr, R = dn, B = 128, C = 1 / 8, P = 512;
|
|
40833
40823
|
function L(H) {
|
|
40834
40824
|
if (H instanceof L)
|
|
40835
40825
|
return H;
|
|
@@ -41075,7 +41065,7 @@ function FA() {
|
|
|
41075
41065
|
return I.copy(this._buffers.xprivkey);
|
|
41076
41066
|
}, L.DefaultDepth = 0, L.DefaultFingerprint = 0, L.DefaultChildIndex = 0, L.Hardened = 2147483648, L.MaxIndex = 2 * L.Hardened, L.RootElementAlias = ["m", "M", "m'", "M'"], L.VersionSize = 4, L.DepthSize = 1, L.ParentFingerPrintSize = 4, L.ChildIndexSize = 4, L.ChainCodeSize = 32, L.PrivateKeySize = 32, L.CheckSumSize = 4, L.DataLength = 78, L.SerializedByteSize = 82, L.VersionStart = 0, L.VersionEnd = L.VersionStart + L.VersionSize, L.DepthStart = L.VersionEnd, L.DepthEnd = L.DepthStart + L.DepthSize, L.ParentFingerPrintStart = L.DepthEnd, L.ParentFingerPrintEnd = L.ParentFingerPrintStart + L.ParentFingerPrintSize, L.ChildIndexStart = L.ParentFingerPrintEnd, L.ChildIndexEnd = L.ChildIndexStart + L.ChildIndexSize, L.ChainCodeStart = L.ChildIndexEnd, L.ChainCodeEnd = L.ChainCodeStart + L.ChainCodeSize, L.PrivateKeyStart = L.ChainCodeEnd + 1, L.PrivateKeyEnd = L.PrivateKeyStart + L.PrivateKeySize, L.ChecksumStart = L.PrivateKeyEnd, L.ChecksumEnd = L.ChecksumStart + L.CheckSumSize, t(L.ChecksumEnd === L.SerializedByteSize), Ab = L, Ab;
|
|
41077
41067
|
}
|
|
41078
|
-
var th = Jt, SZ =
|
|
41068
|
+
var th = Jt, SZ = lf(), EZ = Hs(), Qd = Fs(), r8 = vn, rh = bp(), y2 = kn, IZ = Nr.sha256sha256, MZ = dn, Qa = $t;
|
|
41079
41069
|
function Or(t) {
|
|
41080
41070
|
return this instanceof Or ? (Qa.checkArgument(th.isString(t), "First argument should be a string"), this.message = t, this) : new Or(t);
|
|
41081
41071
|
}
|
|
@@ -41350,7 +41340,7 @@ var $Z = /^([a-z0-9.+-]+:)/i, ZZ = /:[0-9]*$/, XZ = /^(\/\/?(?!\/)[^\?\s]*)(\?[^
|
|
|
41350
41340
|
}, Eg = {
|
|
41351
41341
|
javascript: !0,
|
|
41352
41342
|
"javascript:": !0
|
|
41353
|
-
},
|
|
41343
|
+
}, Qf = {
|
|
41354
41344
|
http: !0,
|
|
41355
41345
|
https: !0,
|
|
41356
41346
|
ftp: !0,
|
|
@@ -41389,7 +41379,7 @@ Si.prototype.parse = function(t, e, r) {
|
|
|
41389
41379
|
var A = l.substr(0, 2) === "//";
|
|
41390
41380
|
A && !(_ && Eg[_]) && (l = l.substr(2), this.slashes = !0);
|
|
41391
41381
|
}
|
|
41392
|
-
if (!Eg[_] && (A || _ && !
|
|
41382
|
+
if (!Eg[_] && (A || _ && !Qf[_])) {
|
|
41393
41383
|
for (var x = -1, O = 0; O < s8.length; O++) {
|
|
41394
41384
|
var I = l.indexOf(s8[O]);
|
|
41395
41385
|
I !== -1 && (x === -1 || I < x) && (x = I);
|
|
@@ -41430,7 +41420,7 @@ Si.prototype.parse = function(t, e, r) {
|
|
|
41430
41420
|
var p = l.indexOf("#");
|
|
41431
41421
|
p !== -1 && (this.hash = l.substr(p), l = l.slice(0, p));
|
|
41432
41422
|
var y = l.indexOf("?");
|
|
41433
|
-
if (y !== -1 ? (this.search = l.substr(y), this.query = l.substr(y + 1), e && (this.query = Ig.parse(this.query)), l = l.slice(0, y)) : e && (this.search = "", this.query = {}), l && (this.pathname = l),
|
|
41423
|
+
if (y !== -1 ? (this.search = l.substr(y), this.query = l.substr(y + 1), e && (this.query = Ig.parse(this.query)), l = l.slice(0, y)) : e && (this.search = "", this.query = {}), l && (this.pathname = l), Qf[E] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
41434
41424
|
var b = this.pathname || "", m = this.search || "";
|
|
41435
41425
|
this.path = b + m;
|
|
41436
41426
|
}
|
|
@@ -41445,7 +41435,7 @@ Si.prototype.format = function() {
|
|
|
41445
41435
|
var e = this.protocol || "", r = this.pathname || "", n = this.hash || "", s = !1, i = "";
|
|
41446
41436
|
this.host ? s = t + this.host : this.hostname && (s = t + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (s += ":" + this.port)), this.query && bs.isObject(this.query) && Object.keys(this.query).length && (i = Ig.stringify(this.query));
|
|
41447
41437
|
var f = this.search || i && "?" + i || "";
|
|
41448
|
-
return e && e.substr(-1) !== ":" && (e += ":"), this.slashes || (!e ||
|
|
41438
|
+
return e && e.substr(-1) !== ":" && (e += ":"), this.slashes || (!e || Qf[e]) && s !== !1 ? (s = "//" + (s || ""), r && r.charAt(0) !== "/" && (r = "/" + r)) : s || (s = ""), n && n.charAt(0) !== "#" && (n = "#" + n), f && f.charAt(0) !== "?" && (f = "?" + f), r = r.replace(/[?#]/g, function(l) {
|
|
41449
41439
|
return encodeURIComponent(l);
|
|
41450
41440
|
}), f = f.replace("#", "%23"), e + s + r + f + n;
|
|
41451
41441
|
};
|
|
@@ -41474,10 +41464,10 @@ Si.prototype.resolveObject = function(t) {
|
|
|
41474
41464
|
var g = f[l];
|
|
41475
41465
|
g !== "protocol" && (r[g] = t[g]);
|
|
41476
41466
|
}
|
|
41477
|
-
return
|
|
41467
|
+
return Qf[r.protocol] && r.hostname && !r.pathname && (r.path = r.pathname = "/"), r.href = r.format(), r;
|
|
41478
41468
|
}
|
|
41479
41469
|
if (t.protocol && t.protocol !== r.protocol) {
|
|
41480
|
-
if (!
|
|
41470
|
+
if (!Qf[t.protocol]) {
|
|
41481
41471
|
for (var _ = Object.keys(t), E = 0; E < _.length; E++) {
|
|
41482
41472
|
var A = _[E];
|
|
41483
41473
|
r[A] = t[A];
|
|
@@ -41496,7 +41486,7 @@ Si.prototype.resolveObject = function(t) {
|
|
|
41496
41486
|
}
|
|
41497
41487
|
return r.slashes = r.slashes || t.slashes, r.href = r.format(), r;
|
|
41498
41488
|
}
|
|
41499
|
-
var I = r.pathname && r.pathname.charAt(0) === "/", R = t.host || t.pathname && t.pathname.charAt(0) === "/", B = R || I || r.host && t.pathname, C = B, P = r.pathname && r.pathname.split("/") || [], L = t.pathname && t.pathname.split("/") || [], H = r.protocol && !
|
|
41489
|
+
var I = r.pathname && r.pathname.charAt(0) === "/", R = t.host || t.pathname && t.pathname.charAt(0) === "/", B = R || I || r.host && t.pathname, C = B, P = r.pathname && r.pathname.split("/") || [], L = t.pathname && t.pathname.split("/") || [], H = r.protocol && !Qf[r.protocol];
|
|
41500
41490
|
if (H && (r.hostname = "", r.port = null, r.host && (P[0] === "" ? P[0] = r.host : P.unshift(r.host)), r.host = "", t.protocol && (t.hostname = null, t.port = null, t.host && (L[0] === "" ? L[0] = t.host : L.unshift(t.host)), t.host = null), B = B && (L[0] === "" || P[0] === "")), R)
|
|
41501
41491
|
r.host = t.host || t.host === "" ? t.host : r.host, r.hostname = t.hostname || t.hostname === "" ? t.hostname : r.hostname, r.search = t.search, r.query = t.query, P = L;
|
|
41502
41492
|
else if (L.length)
|
|
@@ -41769,19 +41759,19 @@ var _X = xr;
|
|
|
41769
41759
|
var n = "More than one instance of bitcore-lib found. Please make sure to require bitcore-lib and check that submodules do not also include their own bitcore-lib dependency.";
|
|
41770
41760
|
throw new Error(n);
|
|
41771
41761
|
}
|
|
41772
|
-
}, e.versionGuard(dt._bitcore), dt._bitcore = e.version, e.crypto = {}, e.crypto.BN = ln, e.crypto.ECDSA = bp(), e.crypto.Schnorr = SA, e.crypto.Hash = Nr, e.crypto.Random = vp, e.crypto.Point =
|
|
41762
|
+
}, e.versionGuard(dt._bitcore), dt._bitcore = e.version, e.crypto = {}, e.crypto.BN = ln, e.crypto.ECDSA = bp(), e.crypto.Schnorr = SA, e.crypto.Hash = Nr, e.crypto.Random = vp, e.crypto.Point = uf, e.crypto.Signature = kn, e.crypto.TaggedHash = so, e.encoding = {}, e.encoding.Base58 = lp, e.encoding.Base58Check = Ih, e.encoding.BufferReader = _a, e.encoding.BufferWriter = vn, e.encoding.Varint = pZ, e.util = {}, e.util.buffer = cr, e.util.js = dn, e.util.preconditions = $t, e.errors = Ui, e.Address = Fs(), e.Block = xZ, e.MerkleBlock = DA, e.BlockHeader = yp, e.HDPrivateKey = FA(), e.HDPublicKey = UA(), e.Message = RZ, e.Networks = hf, e.Opcode = c2, e.PrivateKey = lf(), e.PublicKey = Hs(), e.Script = ai(), e.Transaction = pp(), e.URI = _X, e.Unit = p2, e.deps = {}, e.deps.bnjs = A9, e.deps.bs58 = bA, e.deps.Buffer = pe, e.deps.elliptic = Qm, e.deps._ = Jt, e.Transaction.sighash = ao();
|
|
41773
41763
|
})(_9);
|
|
41774
41764
|
var rx = _9.exports;
|
|
41775
41765
|
const Rc = /* @__PURE__ */ Og(rx), CX = /* @__PURE__ */ fO({
|
|
41776
41766
|
__proto__: null,
|
|
41777
41767
|
default: Rc
|
|
41778
|
-
}, [rx]),
|
|
41768
|
+
}, [rx]), Do = (t) => Vg.div(t, 1e8, 8), nx = (t) => Vg.mul(t, 1e8, 8), kX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41779
41769
|
__proto__: null,
|
|
41780
41770
|
base58Decode: KC,
|
|
41781
41771
|
base58Encode: jC,
|
|
41782
41772
|
bufferToString: VC,
|
|
41783
41773
|
checkWebSocket: Kg,
|
|
41784
|
-
fromSatoshi:
|
|
41774
|
+
fromSatoshi: Do,
|
|
41785
41775
|
hexToNumber: zC,
|
|
41786
41776
|
isMobile: ZC,
|
|
41787
41777
|
isNumeric: GC,
|
|
@@ -41804,16 +41794,16 @@ class ix {
|
|
|
41804
41794
|
/**
|
|
41805
41795
|
* Transaction data from the blockchain network
|
|
41806
41796
|
*/
|
|
41807
|
-
|
|
41797
|
+
At(this, "rawData");
|
|
41808
41798
|
/**
|
|
41809
41799
|
* Signed transaction data
|
|
41810
41800
|
*/
|
|
41811
|
-
|
|
41801
|
+
At(this, "signedData");
|
|
41812
41802
|
/**
|
|
41813
41803
|
* Blockchain network provider
|
|
41814
41804
|
*/
|
|
41815
|
-
|
|
41816
|
-
this.rawData = e, this.provider = r ??
|
|
41805
|
+
At(this, "provider");
|
|
41806
|
+
this.rawData = e, this.provider = r ?? zo.instance;
|
|
41817
41807
|
}
|
|
41818
41808
|
/**
|
|
41819
41809
|
* Sign the transaction
|
|
@@ -41862,8 +41852,8 @@ class AX {
|
|
|
41862
41852
|
/**
|
|
41863
41853
|
* Blockchain network provider
|
|
41864
41854
|
*/
|
|
41865
|
-
|
|
41866
|
-
this.provider = e ??
|
|
41855
|
+
At(this, "provider");
|
|
41856
|
+
this.provider = e ?? zo.instance;
|
|
41867
41857
|
}
|
|
41868
41858
|
/**
|
|
41869
41859
|
* @returns Coin name
|
|
@@ -41889,7 +41879,7 @@ class AX {
|
|
|
41889
41879
|
*/
|
|
41890
41880
|
async getBalance(e) {
|
|
41891
41881
|
const r = this.provider.createEndpoint("address/" + e), n = await ir.get(r).then((i) => i.data), s = n.chain_stats.funded_txo_sum - n.chain_stats.spent_txo_sum;
|
|
41892
|
-
return
|
|
41882
|
+
return Do(s);
|
|
41893
41883
|
}
|
|
41894
41884
|
/**
|
|
41895
41885
|
* @param sender Sender wallet address
|
|
@@ -41937,16 +41927,16 @@ class w2 {
|
|
|
41937
41927
|
/**
|
|
41938
41928
|
* Each transaction has its own unique ID defined by the user
|
|
41939
41929
|
*/
|
|
41940
|
-
|
|
41930
|
+
At(this, "id");
|
|
41941
41931
|
/**
|
|
41942
41932
|
* Blockchain network provider
|
|
41943
41933
|
*/
|
|
41944
|
-
|
|
41934
|
+
At(this, "provider");
|
|
41945
41935
|
/**
|
|
41946
41936
|
* Transaction data
|
|
41947
41937
|
*/
|
|
41948
|
-
|
|
41949
|
-
this.id = e, this.provider = r ??
|
|
41938
|
+
At(this, "data", null);
|
|
41939
|
+
this.id = e, this.provider = r ?? zo.instance;
|
|
41950
41940
|
}
|
|
41951
41941
|
/**
|
|
41952
41942
|
* @returns Transaction data
|
|
@@ -42023,7 +42013,7 @@ class w2 {
|
|
|
42023
42013
|
*/
|
|
42024
42014
|
async getFee() {
|
|
42025
42015
|
const e = await this.getData();
|
|
42026
|
-
return
|
|
42016
|
+
return Do((e == null ? void 0 : e.fee) ?? 0);
|
|
42027
42017
|
}
|
|
42028
42018
|
/**
|
|
42029
42019
|
* @returns Block number that transaction
|
|
@@ -42077,7 +42067,7 @@ class sx extends w2 {
|
|
|
42077
42067
|
*/
|
|
42078
42068
|
async getAmount() {
|
|
42079
42069
|
const e = await this.getData();
|
|
42080
|
-
return
|
|
42070
|
+
return Do((e == null ? void 0 : e.vout[0].value) ?? 0);
|
|
42081
42071
|
}
|
|
42082
42072
|
/**
|
|
42083
42073
|
* @param direction - Direction of the transaction (asset)
|
|
@@ -42103,9 +42093,9 @@ const LX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42103
42093
|
CoinTransaction: sx,
|
|
42104
42094
|
Transaction: w2
|
|
42105
42095
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
42106
|
-
var
|
|
42107
|
-
typeof WebSocket < "u" ?
|
|
42108
|
-
const xX =
|
|
42096
|
+
var Lf = null;
|
|
42097
|
+
typeof WebSocket < "u" ? Lf = WebSocket : typeof MozWebSocket < "u" ? Lf = MozWebSocket : typeof C0 < "u" ? Lf = C0.WebSocket || C0.MozWebSocket : typeof window < "u" ? Lf = window.WebSocket || window.MozWebSocket : typeof self < "u" && (Lf = self.WebSocket || self.MozWebSocket);
|
|
42098
|
+
const xX = Lf;
|
|
42109
42099
|
class SX {
|
|
42110
42100
|
/**
|
|
42111
42101
|
* @param type - Transaction type
|
|
@@ -42116,37 +42106,37 @@ class SX {
|
|
|
42116
42106
|
/**
|
|
42117
42107
|
* Transaction type
|
|
42118
42108
|
*/
|
|
42119
|
-
|
|
42109
|
+
At(this, "type");
|
|
42120
42110
|
/**
|
|
42121
42111
|
* Provider
|
|
42122
42112
|
*/
|
|
42123
|
-
|
|
42113
|
+
At(this, "provider");
|
|
42124
42114
|
/**
|
|
42125
42115
|
* Listener status
|
|
42126
42116
|
*/
|
|
42127
|
-
|
|
42117
|
+
At(this, "status", !1);
|
|
42128
42118
|
/**
|
|
42129
42119
|
* Transaction listener callback
|
|
42130
42120
|
*/
|
|
42131
|
-
|
|
42121
|
+
At(this, "callbacks", []);
|
|
42132
42122
|
/**
|
|
42133
42123
|
* Triggered transactions
|
|
42134
42124
|
*/
|
|
42135
|
-
|
|
42125
|
+
At(this, "triggeredTransactions", []);
|
|
42136
42126
|
/**
|
|
42137
42127
|
* Transaction listener filter
|
|
42138
42128
|
*/
|
|
42139
|
-
|
|
42129
|
+
At(this, "filter");
|
|
42140
42130
|
/**
|
|
42141
42131
|
* WebSocket
|
|
42142
42132
|
*/
|
|
42143
|
-
|
|
42133
|
+
At(this, "webSocket");
|
|
42144
42134
|
/**
|
|
42145
42135
|
* Dynamic stop method
|
|
42146
42136
|
*/
|
|
42147
|
-
|
|
42137
|
+
At(this, "dynamicStop", () => {
|
|
42148
42138
|
});
|
|
42149
|
-
this.type = e, this.filter = r ?? {}, this.provider = n ??
|
|
42139
|
+
this.type = e, this.filter = r ?? {}, this.provider = n ?? zo.instance;
|
|
42150
42140
|
}
|
|
42151
42141
|
/**
|
|
42152
42142
|
* Close the listener
|
|
@@ -42192,9 +42182,6 @@ class SX {
|
|
|
42192
42182
|
r(e);
|
|
42193
42183
|
}));
|
|
42194
42184
|
}
|
|
42195
|
-
isBlockCypherProcess() {
|
|
42196
|
-
return this.provider.isTestnet() || this.provider.blockCypherToken !== void 0;
|
|
42197
|
-
}
|
|
42198
42185
|
/**
|
|
42199
42186
|
* Create message for the listener
|
|
42200
42187
|
* @param receiver - Receiver address
|
|
@@ -42202,10 +42189,14 @@ class SX {
|
|
|
42202
42189
|
*/
|
|
42203
42190
|
createMessage(e) {
|
|
42204
42191
|
let r;
|
|
42205
|
-
if (this.
|
|
42192
|
+
if (this.provider.isTestnet())
|
|
42193
|
+
r = JSON.stringify({
|
|
42194
|
+
"track-address": e
|
|
42195
|
+
});
|
|
42196
|
+
else if (this.provider.blockCypherToken !== void 0) {
|
|
42206
42197
|
const n = {
|
|
42207
42198
|
event: "unconfirmed-tx",
|
|
42208
|
-
token: this.provider.blockCypherToken
|
|
42199
|
+
token: this.provider.blockCypherToken
|
|
42209
42200
|
};
|
|
42210
42201
|
e !== void 0 && (n.address = e), r = JSON.stringify(n);
|
|
42211
42202
|
} else
|
|
@@ -42213,7 +42204,7 @@ class SX {
|
|
|
42213
42204
|
op: "unconfirmed_sub"
|
|
42214
42205
|
});
|
|
42215
42206
|
return this.dynamicStop = () => {
|
|
42216
|
-
this.
|
|
42207
|
+
this.provider.blockCypherToken === void 0 && this.webSocket.send(
|
|
42217
42208
|
JSON.stringify({
|
|
42218
42209
|
op: "unconfirmed_unsub"
|
|
42219
42210
|
})
|
|
@@ -42226,22 +42217,31 @@ class SX {
|
|
|
42226
42217
|
* @returns Parsed data
|
|
42227
42218
|
*/
|
|
42228
42219
|
getValues(e) {
|
|
42220
|
+
var n, s;
|
|
42229
42221
|
const r = {
|
|
42230
42222
|
txId: ""
|
|
42231
42223
|
};
|
|
42232
|
-
|
|
42224
|
+
if (this.provider.isTestnet()) {
|
|
42225
|
+
const i = ((n = e["address-transactions"]) == null ? void 0 : n[0]) ?? ((s = e["block-transactions"]) == null ? void 0 : s[0]);
|
|
42226
|
+
r.txId = i.txid, r.sender = i.vin[0].prevout.scriptpubkey_address, r.receiver = i.vout[0].scriptpubkey_address, r.amount = Do(i.vout[0].value);
|
|
42227
|
+
} else
|
|
42228
|
+
this.provider.blockCypherToken !== void 0 ? (r.txId = e.hash, r.sender = e.inputs[0].addresses[0], r.receiver = e.outputs[0].addresses[0], r.amount = Do(e.outputs[0].value)) : (r.txId = e.x.hash, r.receiver = e.x.out[0].addr, r.sender = e.x.inputs[0].prev_out.addr, r.amount = Do(e.x.out[0].value));
|
|
42229
|
+
return r;
|
|
42233
42230
|
}
|
|
42234
42231
|
/**
|
|
42235
42232
|
* General transaction process
|
|
42236
42233
|
*/
|
|
42237
42234
|
generalProcess() {
|
|
42238
|
-
|
|
42235
|
+
var r, n;
|
|
42236
|
+
if (this.provider.isTestnet() && ((r = this.filter) == null ? void 0 : r.signer) === void 0)
|
|
42237
|
+
throw new Error("General transaction listener must have a signer filter in testnet.");
|
|
42238
|
+
const e = this.createMessage((n = this.filter) == null ? void 0 : n.signer);
|
|
42239
42239
|
this.webSocket.addEventListener("open", () => {
|
|
42240
42240
|
this.webSocket.send(e);
|
|
42241
|
-
}), this.webSocket.addEventListener("message", async (
|
|
42242
|
-
var
|
|
42243
|
-
const
|
|
42244
|
-
((
|
|
42241
|
+
}), this.webSocket.addEventListener("message", async (s) => {
|
|
42242
|
+
var f, l;
|
|
42243
|
+
const i = this.getValues(JSON.parse(s.data));
|
|
42244
|
+
((f = this.filter) == null ? void 0 : f.signer) !== void 0 && ((l = i.sender) == null ? void 0 : l.toLowerCase()) !== this.filter.signer.toLowerCase() || this.trigger(new w2(i.txId));
|
|
42245
42245
|
});
|
|
42246
42246
|
}
|
|
42247
42247
|
/**
|
|
@@ -42265,7 +42265,7 @@ class SX {
|
|
|
42265
42265
|
}), this.webSocket.addEventListener("message", async (s) => {
|
|
42266
42266
|
var E, A;
|
|
42267
42267
|
const i = JSON.parse(s.data), f = {}, l = {};
|
|
42268
|
-
if (String(i.event).includes("events limit reached"))
|
|
42268
|
+
if (i.event && String(i.event).includes("events limit reached"))
|
|
42269
42269
|
throw new Error("BlockCypher events limit reached.");
|
|
42270
42270
|
const g = this.getValues(i);
|
|
42271
42271
|
if (r !== void 0 && (f.sender = r.toLowerCase(), l.sender = (E = g.sender) == null ? void 0 : E.toLowerCase()), e.receiver !== void 0 && (f.receiver = e.receiver.toLowerCase(), l.receiver = (A = g.receiver) == null ? void 0 : A.toLowerCase()), !e5(f, l))
|
|
@@ -42301,7 +42301,7 @@ const DX = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
42301
42301
|
adapters: Object.assign(Mg, OV)
|
|
42302
42302
|
};
|
|
42303
42303
|
export {
|
|
42304
|
-
|
|
42304
|
+
zo as Provider,
|
|
42305
42305
|
NX as assets,
|
|
42306
42306
|
CX as bitcore,
|
|
42307
42307
|
UX as browser,
|