@soonspacejs/plugin-cps-soonmanager 2.14.0 → 2.14.1
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.esm.js +390 -388
- package/dist/types.d.ts +2 -0
- package/package.json +7 -7
package/dist/index.esm.js
CHANGED
|
@@ -1892,7 +1892,7 @@ ieee754.write = function(v, e, E, _, B, A) {
|
|
|
1892
1892
|
}
|
|
1893
1893
|
}
|
|
1894
1894
|
R.prototype._isBuffer = !0;
|
|
1895
|
-
function
|
|
1895
|
+
function tt(ke, le, Se) {
|
|
1896
1896
|
const Ke = ke[le];
|
|
1897
1897
|
ke[le] = ke[Se], ke[Se] = Ke;
|
|
1898
1898
|
}
|
|
@@ -1901,21 +1901,21 @@ ieee754.write = function(v, e, E, _, B, A) {
|
|
|
1901
1901
|
if (le % 2 !== 0)
|
|
1902
1902
|
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
1903
1903
|
for (let Se = 0; Se < le; Se += 2)
|
|
1904
|
-
|
|
1904
|
+
tt(this, Se, Se + 1);
|
|
1905
1905
|
return this;
|
|
1906
1906
|
}, R.prototype.swap32 = function() {
|
|
1907
1907
|
const le = this.length;
|
|
1908
1908
|
if (le % 4 !== 0)
|
|
1909
1909
|
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
1910
1910
|
for (let Se = 0; Se < le; Se += 4)
|
|
1911
|
-
|
|
1911
|
+
tt(this, Se, Se + 3), tt(this, Se + 1, Se + 2);
|
|
1912
1912
|
return this;
|
|
1913
1913
|
}, R.prototype.swap64 = function() {
|
|
1914
1914
|
const le = this.length;
|
|
1915
1915
|
if (le % 8 !== 0)
|
|
1916
1916
|
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
1917
1917
|
for (let Se = 0; Se < le; Se += 8)
|
|
1918
|
-
|
|
1918
|
+
tt(this, Se, Se + 7), tt(this, Se + 1, Se + 6), tt(this, Se + 2, Se + 5), tt(this, Se + 3, Se + 4);
|
|
1919
1919
|
return this;
|
|
1920
1920
|
}, R.prototype.toString = function() {
|
|
1921
1921
|
const le = this.length;
|
|
@@ -3553,11 +3553,11 @@ const getBodyLength = async (v) => {
|
|
|
3553
3553
|
duplex: "half"
|
|
3554
3554
|
}), $e;
|
|
3555
3555
|
if (utils$6.isFormData(_) && ($e = qe.headers.get("content-type")) && R.setContentType($e), qe.body) {
|
|
3556
|
-
const [ze,
|
|
3556
|
+
const [ze, tt] = progressEventDecorator(
|
|
3557
3557
|
H,
|
|
3558
3558
|
progressEventReducer(asyncDecorator(P))
|
|
3559
3559
|
);
|
|
3560
|
-
_ = trackStream(qe.body, DEFAULT_CHUNK_SIZE, ze,
|
|
3560
|
+
_ = trackStream(qe.body, DEFAULT_CHUNK_SIZE, ze, tt);
|
|
3561
3561
|
}
|
|
3562
3562
|
}
|
|
3563
3563
|
utils$6.isString(q) || (q = q ? "include" : "omit");
|
|
@@ -3578,13 +3578,13 @@ const getBodyLength = async (v) => {
|
|
|
3578
3578
|
["status", "statusText", "headers"].forEach((rt) => {
|
|
3579
3579
|
qe[rt] = G[rt];
|
|
3580
3580
|
});
|
|
3581
|
-
const $e = utils$6.toFiniteNumber(G.headers.get("content-length")), [ze,
|
|
3581
|
+
const $e = utils$6.toFiniteNumber(G.headers.get("content-length")), [ze, tt] = M && progressEventDecorator(
|
|
3582
3582
|
$e,
|
|
3583
3583
|
progressEventReducer(asyncDecorator(M), !0)
|
|
3584
3584
|
) || [];
|
|
3585
3585
|
G = new Response(
|
|
3586
3586
|
trackStream(G.body, DEFAULT_CHUNK_SIZE, ze, () => {
|
|
3587
|
-
|
|
3587
|
+
tt && tt(), D && D();
|
|
3588
3588
|
}),
|
|
3589
3589
|
qe
|
|
3590
3590
|
);
|
|
@@ -4085,12 +4085,12 @@ const c = /* @__PURE__ */ new Map(), p = { async parse({ node: v, inputData: e }
|
|
|
4085
4085
|
if (!H) return r$1(`播放模型动画 -> 方法 playCilpAnimation 执行时 modelId 为 ${C} 场景对象未找到`);
|
|
4086
4086
|
if (D) {
|
|
4087
4087
|
D.tween.stop();
|
|
4088
|
-
const { positionX: z, positionY: G, positionZ: Q, rotationX: ee, rotationY: qe, rotationZ: $e, scaleX: ze, scaleY:
|
|
4089
|
-
H.position.set(z, G, Q), H.rotation.set(ee, qe, $e), H.scale.set(ze,
|
|
4088
|
+
const { positionX: z, positionY: G, positionZ: Q, rotationX: ee, rotationY: qe, rotationZ: $e, scaleX: ze, scaleY: tt, scaleZ: rt } = D.source;
|
|
4089
|
+
H.position.set(z, G, Q), H.rotation.set(ee, qe, $e), H.scale.set(ze, tt, rt), q.render(), c.delete(C);
|
|
4090
4090
|
}
|
|
4091
4091
|
for (let z = 0; z < $.length; z++) {
|
|
4092
|
-
const G = { positionX: H.position.x, positionY: H.position.y, positionZ: H.position.z, rotationX: H.rotation.x, rotationY: H.rotation.y, rotationZ: H.rotation.z, scaleX: H.scale.x, scaleY: H.scale.y, scaleZ: H.scale.z }, Q = $[z], { delay: ee, duration: qe, easing: $e, repeat: ze, yoyo:
|
|
4093
|
-
await q.animation(G, rt, { delay: ee, duration: qe, mode: $e, repeat: ze === -1 ? 1 / 0 : ze, yoyo:
|
|
4092
|
+
const G = { positionX: H.position.x, positionY: H.position.y, positionZ: H.position.z, rotationX: H.rotation.x, rotationY: H.rotation.y, rotationZ: H.rotation.z, scaleX: H.scale.x, scaleY: H.scale.y, scaleZ: H.scale.z }, Q = $[z], { delay: ee, duration: qe, easing: $e, repeat: ze, yoyo: tt } = Q, rt = { positionX: Q.position.x || 0, positionY: Q.position.y || 0, positionZ: Q.position.z || 0, rotationX: Q.rotation.x || 0, rotationY: Q.rotation.y || 0, rotationZ: Q.rotation.z || 0, scaleX: Q.scale.x || 1, scaleY: Q.scale.y || 1, scaleZ: Q.scale.z || 1 };
|
|
4093
|
+
await q.animation(G, rt, { delay: ee, duration: qe, mode: $e, repeat: ze === -1 ? 1 / 0 : ze, yoyo: tt }, (({ positionX: Ct, positionY: Ve, positionZ: F, rotationX: K, rotationY: L, rotationZ: J, scaleX: oe, scaleY: te, scaleZ: he }) => {
|
|
4094
4094
|
H.position.set(Ct, Ve, F), H.rotation.set(K, L, J), H.scale.set(oe, te, he);
|
|
4095
4095
|
}), ((Ct) => {
|
|
4096
4096
|
c.set(C, { source: JSON.parse(JSON.stringify(G)), tween: Ct });
|
|
@@ -4328,10 +4328,10 @@ function requireDist() {
|
|
|
4328
4328
|
return (Q + ee) * 3 / 4 - ee;
|
|
4329
4329
|
}
|
|
4330
4330
|
function C(G) {
|
|
4331
|
-
var Q, ee = x(G), qe = ee[0], $e = ee[1], ze = new A(q(G, qe, $e)),
|
|
4331
|
+
var Q, ee = x(G), qe = ee[0], $e = ee[1], ze = new A(q(G, qe, $e)), tt = 0, rt = $e > 0 ? qe - 4 : qe, Ct;
|
|
4332
4332
|
for (Ct = 0; Ct < rt; Ct += 4)
|
|
4333
|
-
Q = B[G.charCodeAt(Ct)] << 18 | B[G.charCodeAt(Ct + 1)] << 12 | B[G.charCodeAt(Ct + 2)] << 6 | B[G.charCodeAt(Ct + 3)], ze[
|
|
4334
|
-
return $e === 2 && (Q = B[G.charCodeAt(Ct)] << 2 | B[G.charCodeAt(Ct + 1)] >> 4, ze[
|
|
4333
|
+
Q = B[G.charCodeAt(Ct)] << 18 | B[G.charCodeAt(Ct + 1)] << 12 | B[G.charCodeAt(Ct + 2)] << 6 | B[G.charCodeAt(Ct + 3)], ze[tt++] = Q >> 16 & 255, ze[tt++] = Q >> 8 & 255, ze[tt++] = Q & 255;
|
|
4334
|
+
return $e === 2 && (Q = B[G.charCodeAt(Ct)] << 2 | B[G.charCodeAt(Ct + 1)] >> 4, ze[tt++] = Q & 255), $e === 1 && (Q = B[G.charCodeAt(Ct)] << 10 | B[G.charCodeAt(Ct + 1)] << 4 | B[G.charCodeAt(Ct + 2)] >> 2, ze[tt++] = Q >> 8 & 255, ze[tt++] = Q & 255), ze;
|
|
4335
4335
|
}
|
|
4336
4336
|
function k(G) {
|
|
4337
4337
|
return _[G >> 18 & 63] + _[G >> 12 & 63] + _[G >> 6 & 63] + _[G & 63];
|
|
@@ -4342,8 +4342,8 @@ function requireDist() {
|
|
|
4342
4342
|
return $e.join("");
|
|
4343
4343
|
}
|
|
4344
4344
|
function D(G) {
|
|
4345
|
-
for (var Q, ee = G.length, qe = ee % 3, $e = [], ze = 16383,
|
|
4346
|
-
$e.push($(G,
|
|
4345
|
+
for (var Q, ee = G.length, qe = ee % 3, $e = [], ze = 16383, tt = 0, rt = ee - qe; tt < rt; tt += ze)
|
|
4346
|
+
$e.push($(G, tt, tt + ze > rt ? rt : tt + ze));
|
|
4347
4347
|
return qe === 1 ? (Q = G[ee - 1], $e.push(
|
|
4348
4348
|
_[Q >> 2] + _[Q << 4 & 63] + "=="
|
|
4349
4349
|
)) : qe === 2 && (Q = (G[ee - 2] << 8) + G[ee - 1], $e.push(
|
|
@@ -4353,24 +4353,24 @@ function requireDist() {
|
|
|
4353
4353
|
var H = {};
|
|
4354
4354
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4355
4355
|
H.read = function(G, Q, ee, qe, $e) {
|
|
4356
|
-
var ze,
|
|
4356
|
+
var ze, tt, rt = $e * 8 - qe - 1, Ct = (1 << rt) - 1, Ve = Ct >> 1, F = -7, K = ee ? $e - 1 : 0, L = ee ? -1 : 1, J = G[Q + K];
|
|
4357
4357
|
for (K += L, ze = J & (1 << -F) - 1, J >>= -F, F += rt; F > 0; ze = ze * 256 + G[Q + K], K += L, F -= 8)
|
|
4358
4358
|
;
|
|
4359
|
-
for (
|
|
4359
|
+
for (tt = ze & (1 << -F) - 1, ze >>= -F, F += qe; F > 0; tt = tt * 256 + G[Q + K], K += L, F -= 8)
|
|
4360
4360
|
;
|
|
4361
4361
|
if (ze === 0)
|
|
4362
4362
|
ze = 1 - Ve;
|
|
4363
4363
|
else {
|
|
4364
4364
|
if (ze === Ct)
|
|
4365
|
-
return
|
|
4366
|
-
|
|
4365
|
+
return tt ? NaN : (J ? -1 : 1) * (1 / 0);
|
|
4366
|
+
tt = tt + Math.pow(2, qe), ze = ze - Ve;
|
|
4367
4367
|
}
|
|
4368
|
-
return (J ? -1 : 1) *
|
|
4368
|
+
return (J ? -1 : 1) * tt * Math.pow(2, ze - qe);
|
|
4369
4369
|
}, H.write = function(G, Q, ee, qe, $e, ze) {
|
|
4370
|
-
var
|
|
4371
|
-
for (Q = Math.abs(Q), isNaN(Q) || Q === 1 / 0 ? (rt = isNaN(Q) ? 1 : 0,
|
|
4370
|
+
var tt, rt, Ct, Ve = ze * 8 - $e - 1, F = (1 << Ve) - 1, K = F >> 1, L = $e === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, J = qe ? 0 : ze - 1, oe = qe ? 1 : -1, te = Q < 0 || Q === 0 && 1 / Q < 0 ? 1 : 0;
|
|
4371
|
+
for (Q = Math.abs(Q), isNaN(Q) || Q === 1 / 0 ? (rt = isNaN(Q) ? 1 : 0, tt = F) : (tt = Math.floor(Math.log(Q) / Math.LN2), Q * (Ct = Math.pow(2, -tt)) < 1 && (tt--, Ct *= 2), tt + K >= 1 ? Q += L / Ct : Q += L * Math.pow(2, 1 - K), Q * Ct >= 2 && (tt++, Ct /= 2), tt + K >= F ? (rt = 0, tt = F) : tt + K >= 1 ? (rt = (Q * Ct - 1) * Math.pow(2, $e), tt = tt + K) : (rt = Q * Math.pow(2, K - 1) * Math.pow(2, $e), tt = 0)); $e >= 8; G[ee + J] = rt & 255, J += oe, rt /= 256, $e -= 8)
|
|
4372
4372
|
;
|
|
4373
|
-
for (
|
|
4373
|
+
for (tt = tt << $e | rt, Ve += $e; Ve > 0; G[ee + J] = tt & 255, J += oe, tt /= 256, Ve -= 8)
|
|
4374
4374
|
;
|
|
4375
4375
|
G[ee + J - oe] |= te * 128;
|
|
4376
4376
|
};
|
|
@@ -4385,7 +4385,7 @@ function requireDist() {
|
|
|
4385
4385
|
G.Buffer = F, G.SlowBuffer = Ie, G.INSPECT_MAX_BYTES = 50;
|
|
4386
4386
|
const $e = 2147483647;
|
|
4387
4387
|
G.kMaxLength = $e;
|
|
4388
|
-
const { Uint8Array: ze, ArrayBuffer:
|
|
4388
|
+
const { Uint8Array: ze, ArrayBuffer: tt, SharedArrayBuffer: rt } = globalThis;
|
|
4389
4389
|
F.TYPED_ARRAY_SUPPORT = Ct(), !F.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
4390
4390
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
4391
4391
|
);
|
|
@@ -4432,13 +4432,13 @@ function requireDist() {
|
|
|
4432
4432
|
function K(Ue, ve, xe) {
|
|
4433
4433
|
if (typeof Ue == "string")
|
|
4434
4434
|
return te(Ue, ve);
|
|
4435
|
-
if (
|
|
4435
|
+
if (tt.isView(Ue))
|
|
4436
4436
|
return ne(Ue);
|
|
4437
4437
|
if (Ue == null)
|
|
4438
4438
|
throw new TypeError(
|
|
4439
4439
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof Ue
|
|
4440
4440
|
);
|
|
4441
|
-
if (Hr(Ue,
|
|
4441
|
+
if (Hr(Ue, tt) || Ue && Hr(Ue.buffer, tt) || typeof rt < "u" && (Hr(Ue, rt) || Ue && Hr(Ue.buffer, rt)))
|
|
4442
4442
|
return Y(Ue, ve, xe);
|
|
4443
4443
|
if (typeof Ue == "number")
|
|
4444
4444
|
throw new TypeError(
|
|
@@ -4587,7 +4587,7 @@ function requireDist() {
|
|
|
4587
4587
|
function He(Ue, ve) {
|
|
4588
4588
|
if (F.isBuffer(Ue))
|
|
4589
4589
|
return Ue.length;
|
|
4590
|
-
if (
|
|
4590
|
+
if (tt.isView(Ue) || Hr(Ue, tt))
|
|
4591
4591
|
return Ue.byteLength;
|
|
4592
4592
|
if (typeof Ue != "string")
|
|
4593
4593
|
throw new TypeError(
|
|
@@ -5454,12 +5454,12 @@ function requireEvents() {
|
|
|
5454
5454
|
return P(this);
|
|
5455
5455
|
}, A.prototype.emit = function(qe) {
|
|
5456
5456
|
for (var $e = [], ze = 1; ze < arguments.length; ze++) $e.push(arguments[ze]);
|
|
5457
|
-
var
|
|
5457
|
+
var tt = qe === "error", rt = this._events;
|
|
5458
5458
|
if (rt !== void 0)
|
|
5459
|
-
|
|
5460
|
-
else if (!
|
|
5459
|
+
tt = tt && rt.error === void 0;
|
|
5460
|
+
else if (!tt)
|
|
5461
5461
|
return !1;
|
|
5462
|
-
if (
|
|
5462
|
+
if (tt) {
|
|
5463
5463
|
var Ct;
|
|
5464
5464
|
if ($e.length > 0 && (Ct = $e[0]), Ct instanceof Error)
|
|
5465
5465
|
throw Ct;
|
|
@@ -5477,14 +5477,14 @@ function requireEvents() {
|
|
|
5477
5477
|
return !0;
|
|
5478
5478
|
};
|
|
5479
5479
|
function x(ee, qe, $e, ze) {
|
|
5480
|
-
var
|
|
5480
|
+
var tt, rt, Ct;
|
|
5481
5481
|
if (M($e), rt = ee._events, rt === void 0 ? (rt = ee._events = /* @__PURE__ */ Object.create(null), ee._eventsCount = 0) : (rt.newListener !== void 0 && (ee.emit(
|
|
5482
5482
|
"newListener",
|
|
5483
5483
|
qe,
|
|
5484
5484
|
$e.listener ? $e.listener : $e
|
|
5485
5485
|
), rt = ee._events), Ct = rt[qe]), Ct === void 0)
|
|
5486
5486
|
Ct = rt[qe] = $e, ++ee._eventsCount;
|
|
5487
|
-
else if (typeof Ct == "function" ? Ct = rt[qe] = ze ? [$e, Ct] : [Ct, $e] : ze ? Ct.unshift($e) : Ct.push($e),
|
|
5487
|
+
else if (typeof Ct == "function" ? Ct = rt[qe] = ze ? [$e, Ct] : [Ct, $e] : ze ? Ct.unshift($e) : Ct.push($e), tt = P(ee), tt > 0 && Ct.length > tt && !Ct.warned) {
|
|
5488
5488
|
Ct.warned = !0;
|
|
5489
5489
|
var Ve = new Error("Possible EventEmitter memory leak detected. " + Ct.length + " " + String(qe) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
5490
5490
|
Ve.name = "MaxListenersExceededWarning", Ve.emitter = ee, Ve.type = qe, Ve.count = Ct.length, _(Ve);
|
|
@@ -5501,21 +5501,21 @@ function requireEvents() {
|
|
|
5501
5501
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
5502
5502
|
}
|
|
5503
5503
|
function q(ee, qe, $e) {
|
|
5504
|
-
var ze = { fired: !1, wrapFn: void 0, target: ee, type: qe, listener: $e },
|
|
5505
|
-
return
|
|
5504
|
+
var ze = { fired: !1, wrapFn: void 0, target: ee, type: qe, listener: $e }, tt = R.bind(ze);
|
|
5505
|
+
return tt.listener = $e, ze.wrapFn = tt, tt;
|
|
5506
5506
|
}
|
|
5507
5507
|
A.prototype.once = function(qe, $e) {
|
|
5508
5508
|
return M($e), this.on(qe, q(this, qe, $e)), this;
|
|
5509
5509
|
}, A.prototype.prependOnceListener = function(qe, $e) {
|
|
5510
5510
|
return M($e), this.prependListener(qe, q(this, qe, $e)), this;
|
|
5511
5511
|
}, A.prototype.removeListener = function(qe, $e) {
|
|
5512
|
-
var ze,
|
|
5513
|
-
if (M($e),
|
|
5512
|
+
var ze, tt, rt, Ct, Ve;
|
|
5513
|
+
if (M($e), tt = this._events, tt === void 0)
|
|
5514
5514
|
return this;
|
|
5515
|
-
if (ze =
|
|
5515
|
+
if (ze = tt[qe], ze === void 0)
|
|
5516
5516
|
return this;
|
|
5517
5517
|
if (ze === $e || ze.listener === $e)
|
|
5518
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete
|
|
5518
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete tt[qe], tt.removeListener && this.emit("removeListener", qe, ze.listener || $e));
|
|
5519
5519
|
else if (typeof ze != "function") {
|
|
5520
5520
|
for (rt = -1, Ct = ze.length - 1; Ct >= 0; Ct--)
|
|
5521
5521
|
if (ze[Ct] === $e || ze[Ct].listener === $e) {
|
|
@@ -5524,34 +5524,34 @@ function requireEvents() {
|
|
|
5524
5524
|
}
|
|
5525
5525
|
if (rt < 0)
|
|
5526
5526
|
return this;
|
|
5527
|
-
rt === 0 ? ze.shift() : D(ze, rt), ze.length === 1 && (
|
|
5527
|
+
rt === 0 ? ze.shift() : D(ze, rt), ze.length === 1 && (tt[qe] = ze[0]), tt.removeListener !== void 0 && this.emit("removeListener", qe, Ve || $e);
|
|
5528
5528
|
}
|
|
5529
5529
|
return this;
|
|
5530
5530
|
}, A.prototype.off = A.prototype.removeListener, A.prototype.removeAllListeners = function(qe) {
|
|
5531
|
-
var $e, ze,
|
|
5531
|
+
var $e, ze, tt;
|
|
5532
5532
|
if (ze = this._events, ze === void 0)
|
|
5533
5533
|
return this;
|
|
5534
5534
|
if (ze.removeListener === void 0)
|
|
5535
5535
|
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : ze[qe] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete ze[qe]), this;
|
|
5536
5536
|
if (arguments.length === 0) {
|
|
5537
5537
|
var rt = Object.keys(ze), Ct;
|
|
5538
|
-
for (
|
|
5539
|
-
Ct = rt[
|
|
5538
|
+
for (tt = 0; tt < rt.length; ++tt)
|
|
5539
|
+
Ct = rt[tt], Ct !== "removeListener" && this.removeAllListeners(Ct);
|
|
5540
5540
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
5541
5541
|
}
|
|
5542
5542
|
if ($e = ze[qe], typeof $e == "function")
|
|
5543
5543
|
this.removeListener(qe, $e);
|
|
5544
5544
|
else if ($e !== void 0)
|
|
5545
|
-
for (
|
|
5546
|
-
this.removeListener(qe, $e[
|
|
5545
|
+
for (tt = $e.length - 1; tt >= 0; tt--)
|
|
5546
|
+
this.removeListener(qe, $e[tt]);
|
|
5547
5547
|
return this;
|
|
5548
5548
|
};
|
|
5549
5549
|
function C(ee, qe, $e) {
|
|
5550
5550
|
var ze = ee._events;
|
|
5551
5551
|
if (ze === void 0)
|
|
5552
5552
|
return [];
|
|
5553
|
-
var
|
|
5554
|
-
return
|
|
5553
|
+
var tt = ze[qe];
|
|
5554
|
+
return tt === void 0 ? [] : typeof tt == "function" ? $e ? [tt.listener || tt] : [tt] : $e ? H(tt) : $(tt, tt.length);
|
|
5555
5555
|
}
|
|
5556
5556
|
A.prototype.listeners = function(qe) {
|
|
5557
5557
|
return C(this, qe, !0);
|
|
@@ -5591,13 +5591,13 @@ function requireEvents() {
|
|
|
5591
5591
|
}
|
|
5592
5592
|
function z(ee, qe) {
|
|
5593
5593
|
return new Promise(function($e, ze) {
|
|
5594
|
-
function
|
|
5594
|
+
function tt(Ct) {
|
|
5595
5595
|
ee.removeListener(qe, rt), ze(Ct);
|
|
5596
5596
|
}
|
|
5597
5597
|
function rt() {
|
|
5598
|
-
typeof ee.removeListener == "function" && ee.removeListener("error",
|
|
5598
|
+
typeof ee.removeListener == "function" && ee.removeListener("error", tt), $e([].slice.call(arguments));
|
|
5599
5599
|
}
|
|
5600
|
-
Q(ee, qe, rt, { once: !0 }), qe !== "error" && G(ee,
|
|
5600
|
+
Q(ee, qe, rt, { once: !0 }), qe !== "error" && G(ee, tt, { once: !0 });
|
|
5601
5601
|
});
|
|
5602
5602
|
}
|
|
5603
5603
|
function G(ee, qe, $e) {
|
|
@@ -5607,8 +5607,8 @@ function requireEvents() {
|
|
|
5607
5607
|
if (typeof ee.on == "function")
|
|
5608
5608
|
ze.once ? ee.once(qe, $e) : ee.on(qe, $e);
|
|
5609
5609
|
else if (typeof ee.addEventListener == "function")
|
|
5610
|
-
ee.addEventListener(qe, function
|
|
5611
|
-
ze.once && ee.removeEventListener(qe,
|
|
5610
|
+
ee.addEventListener(qe, function tt(rt) {
|
|
5611
|
+
ze.once && ee.removeEventListener(qe, tt), $e(rt);
|
|
5612
5612
|
});
|
|
5613
5613
|
else
|
|
5614
5614
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof ee);
|
|
@@ -5928,7 +5928,7 @@ function requireGetIntrinsic() {
|
|
|
5928
5928
|
return ee;
|
|
5929
5929
|
}
|
|
5930
5930
|
}
|
|
5931
|
-
})() : ee, $e = requireHasSymbols()(), ze = requireGetProto(),
|
|
5931
|
+
})() : ee, $e = requireHasSymbols()(), ze = requireGetProto(), tt = requireObject_getPrototypeOf(), rt = requireReflect_getPrototypeOf(), Ct = requireFunctionApply(), Ve = requireFunctionCall(), F = {}, K = typeof Uint8Array > "u" || !ze ? v : ze(Uint8Array), L = {
|
|
5932
5932
|
__proto__: null,
|
|
5933
5933
|
"%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
|
|
5934
5934
|
"%Array%": Array,
|
|
@@ -6002,7 +6002,7 @@ function requireGetIntrinsic() {
|
|
|
6002
6002
|
"%Function.prototype.call%": Ve,
|
|
6003
6003
|
"%Function.prototype.apply%": Ct,
|
|
6004
6004
|
"%Object.defineProperty%": Q,
|
|
6005
|
-
"%Object.getPrototypeOf%":
|
|
6005
|
+
"%Object.getPrototypeOf%": tt,
|
|
6006
6006
|
"%Math.abs%": x,
|
|
6007
6007
|
"%Math.floor%": R,
|
|
6008
6008
|
"%Math.max%": q,
|
|
@@ -6626,10 +6626,10 @@ function requireTypes$1() {
|
|
|
6626
6626
|
return _(Ht) === "Int32Array";
|
|
6627
6627
|
}
|
|
6628
6628
|
v.isInt32Array = ze;
|
|
6629
|
-
function
|
|
6629
|
+
function tt(Ht) {
|
|
6630
6630
|
return _(Ht) === "Float32Array";
|
|
6631
6631
|
}
|
|
6632
|
-
v.isFloat32Array =
|
|
6632
|
+
v.isFloat32Array = tt;
|
|
6633
6633
|
function rt(Ht) {
|
|
6634
6634
|
return _(Ht) === "Float64Array";
|
|
6635
6635
|
}
|
|
@@ -6894,7 +6894,7 @@ function requireUtil$1() {
|
|
|
6894
6894
|
var Xe = Ie.name ? ": " + Ie.name : "";
|
|
6895
6895
|
return X.stylize("[Function" + Xe + "]", "special");
|
|
6896
6896
|
}
|
|
6897
|
-
if (
|
|
6897
|
+
if (tt(Ie))
|
|
6898
6898
|
return X.stylize(RegExp.prototype.toString.call(Ie), "regexp");
|
|
6899
6899
|
if (Ct(Ie))
|
|
6900
6900
|
return X.stylize(Date.prototype.toString.call(Ie), "date");
|
|
@@ -6906,10 +6906,10 @@ function requireUtil$1() {
|
|
|
6906
6906
|
var vt = Ie.name ? ": " + Ie.name : "";
|
|
6907
6907
|
st = " [Function" + vt + "]";
|
|
6908
6908
|
}
|
|
6909
|
-
if (
|
|
6909
|
+
if (tt(Ie) && (st = " " + RegExp.prototype.toString.call(Ie)), Ct(Ie) && (st = " " + Date.prototype.toUTCString.call(Ie)), Ve(Ie) && (st = " " + C(Ie)), Ae.length === 0 && (!Fe || Ie.length == 0))
|
|
6910
6910
|
return je[0] + st + je[1];
|
|
6911
6911
|
if (He < 0)
|
|
6912
|
-
return
|
|
6912
|
+
return tt(Ie) ? X.stylize(RegExp.prototype.toString.call(Ie), "regexp") : X.stylize("[Object]", "special");
|
|
6913
6913
|
X.seen.push(Ie);
|
|
6914
6914
|
var Jt;
|
|
6915
6915
|
return Fe ? Jt = k(X, Ie, He, Oe, Ae) : Jt = Ae.map(function(ur) {
|
|
@@ -7015,10 +7015,10 @@ function requireUtil$1() {
|
|
|
7015
7015
|
return X === void 0;
|
|
7016
7016
|
}
|
|
7017
7017
|
v.isUndefined = ze;
|
|
7018
|
-
function
|
|
7018
|
+
function tt(X) {
|
|
7019
7019
|
return rt(X) && L(X) === "[object RegExp]";
|
|
7020
7020
|
}
|
|
7021
|
-
v.isRegExp =
|
|
7021
|
+
v.isRegExp = tt, v.types.isRegExp = tt;
|
|
7022
7022
|
function rt(X) {
|
|
7023
7023
|
return typeof X == "object" && X !== null;
|
|
7024
7024
|
}
|
|
@@ -7468,7 +7468,7 @@ function requireBrowser$a() {
|
|
|
7468
7468
|
var _stream_writable$1, hasRequired_stream_writable$1;
|
|
7469
7469
|
function require_stream_writable$1() {
|
|
7470
7470
|
if (hasRequired_stream_writable$1) return _stream_writable$1;
|
|
7471
|
-
hasRequired_stream_writable$1 = 1, _stream_writable$1 =
|
|
7471
|
+
hasRequired_stream_writable$1 = 1, _stream_writable$1 = tt;
|
|
7472
7472
|
function v(Ne) {
|
|
7473
7473
|
var Ae = this;
|
|
7474
7474
|
this.next = null, this.entry = null, this.finish = function() {
|
|
@@ -7476,7 +7476,7 @@ function require_stream_writable$1() {
|
|
|
7476
7476
|
};
|
|
7477
7477
|
}
|
|
7478
7478
|
var e;
|
|
7479
|
-
|
|
7479
|
+
tt.WritableState = $e;
|
|
7480
7480
|
var E = {
|
|
7481
7481
|
deprecate: requireBrowser$a()
|
|
7482
7482
|
}, _ = requireStreamBrowser$1(), B = requireDist().Buffer, A = (typeof commonjsGlobal < "u" ? commonjsGlobal : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
@@ -7488,7 +7488,7 @@ function require_stream_writable$1() {
|
|
|
7488
7488
|
return B.isBuffer(Ne) || Ne instanceof A;
|
|
7489
7489
|
}
|
|
7490
7490
|
var P = requireDestroy$1(), x = requireState(), R = x.getHighWaterMark, q = requireErrorsBrowser().codes, C = q.ERR_INVALID_ARG_TYPE, k = q.ERR_METHOD_NOT_IMPLEMENTED, $ = q.ERR_MULTIPLE_CALLBACK, D = q.ERR_STREAM_CANNOT_PIPE, H = q.ERR_STREAM_DESTROYED, z = q.ERR_STREAM_NULL_VALUES, G = q.ERR_STREAM_WRITE_AFTER_END, Q = q.ERR_UNKNOWN_ENCODING, ee = P.errorOrDestroy;
|
|
7491
|
-
requireInherits_browser()(
|
|
7491
|
+
requireInherits_browser()(tt, _);
|
|
7492
7492
|
function qe() {
|
|
7493
7493
|
}
|
|
7494
7494
|
function $e(Ne, Ae, Oe) {
|
|
@@ -7513,20 +7513,20 @@ function require_stream_writable$1() {
|
|
|
7513
7513
|
}
|
|
7514
7514
|
})();
|
|
7515
7515
|
var ze;
|
|
7516
|
-
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (ze = Function.prototype[Symbol.hasInstance], Object.defineProperty(
|
|
7516
|
+
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (ze = Function.prototype[Symbol.hasInstance], Object.defineProperty(tt, Symbol.hasInstance, {
|
|
7517
7517
|
value: function(Ae) {
|
|
7518
|
-
return ze.call(this, Ae) ? !0 : this !==
|
|
7518
|
+
return ze.call(this, Ae) ? !0 : this !== tt ? !1 : Ae && Ae._writableState instanceof $e;
|
|
7519
7519
|
}
|
|
7520
7520
|
})) : ze = function(Ae) {
|
|
7521
7521
|
return Ae instanceof this;
|
|
7522
7522
|
};
|
|
7523
|
-
function
|
|
7523
|
+
function tt(Ne) {
|
|
7524
7524
|
e = e || require_stream_duplex$1();
|
|
7525
7525
|
var Ae = this instanceof e;
|
|
7526
|
-
if (!Ae && !ze.call(
|
|
7526
|
+
if (!Ae && !ze.call(tt, this)) return new tt(Ne);
|
|
7527
7527
|
this._writableState = new $e(Ne, this, Ae), this.writable = !0, Ne && (typeof Ne.write == "function" && (this._write = Ne.write), typeof Ne.writev == "function" && (this._writev = Ne.writev), typeof Ne.destroy == "function" && (this._destroy = Ne.destroy), typeof Ne.final == "function" && (this._final = Ne.final)), _.call(this);
|
|
7528
7528
|
}
|
|
7529
|
-
|
|
7529
|
+
tt.prototype.pipe = function() {
|
|
7530
7530
|
ee(this, new D());
|
|
7531
7531
|
};
|
|
7532
7532
|
function rt(Ne, Ae) {
|
|
@@ -7537,18 +7537,18 @@ function require_stream_writable$1() {
|
|
|
7537
7537
|
var st;
|
|
7538
7538
|
return Oe === null ? st = new z() : typeof Oe != "string" && !Ae.objectMode && (st = new C("chunk", ["string", "Buffer"], Oe)), st ? (ee(Ne, st), process$1.nextTick(Xe, st), !1) : !0;
|
|
7539
7539
|
}
|
|
7540
|
-
|
|
7540
|
+
tt.prototype.write = function(Ne, Ae, Oe) {
|
|
7541
7541
|
var Xe = this._writableState, st = !1, Fe = !Xe.objectMode && M(Ne);
|
|
7542
7542
|
return Fe && !B.isBuffer(Ne) && (Ne = T(Ne)), typeof Ae == "function" && (Oe = Ae, Ae = null), Fe ? Ae = "buffer" : Ae || (Ae = Xe.defaultEncoding), typeof Oe != "function" && (Oe = qe), Xe.ending ? rt(this, Oe) : (Fe || Ct(this, Xe, Ne, Oe)) && (Xe.pendingcb++, st = F(this, Xe, Fe, Ne, Ae, Oe)), st;
|
|
7543
|
-
},
|
|
7543
|
+
}, tt.prototype.cork = function() {
|
|
7544
7544
|
this._writableState.corked++;
|
|
7545
|
-
},
|
|
7545
|
+
}, tt.prototype.uncork = function() {
|
|
7546
7546
|
var Ne = this._writableState;
|
|
7547
7547
|
Ne.corked && (Ne.corked--, !Ne.writing && !Ne.corked && !Ne.bufferProcessing && Ne.bufferedRequest && ne(this, Ne));
|
|
7548
|
-
},
|
|
7548
|
+
}, tt.prototype.setDefaultEncoding = function(Ae) {
|
|
7549
7549
|
if (typeof Ae == "string" && (Ae = Ae.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((Ae + "").toLowerCase()) > -1)) throw new Q(Ae);
|
|
7550
7550
|
return this._writableState.defaultEncoding = Ae, this;
|
|
7551
|
-
}, Object.defineProperty(
|
|
7551
|
+
}, Object.defineProperty(tt.prototype, "writableBuffer", {
|
|
7552
7552
|
// making it explicit this property is not enumerable
|
|
7553
7553
|
// because otherwise some prototype manipulation in
|
|
7554
7554
|
// userland will fail
|
|
@@ -7560,7 +7560,7 @@ function require_stream_writable$1() {
|
|
|
7560
7560
|
function Ve(Ne, Ae, Oe) {
|
|
7561
7561
|
return !Ne.objectMode && Ne.decodeStrings !== !1 && typeof Ae == "string" && (Ae = B.from(Ae, Oe)), Ae;
|
|
7562
7562
|
}
|
|
7563
|
-
Object.defineProperty(
|
|
7563
|
+
Object.defineProperty(tt.prototype, "writableHighWaterMark", {
|
|
7564
7564
|
// making it explicit this property is not enumerable
|
|
7565
7565
|
// because otherwise some prototype manipulation in
|
|
7566
7566
|
// userland will fail
|
|
@@ -7633,12 +7633,12 @@ function require_stream_writable$1() {
|
|
|
7633
7633
|
}
|
|
7634
7634
|
Ae.bufferedRequest = Oe, Ae.bufferProcessing = !1;
|
|
7635
7635
|
}
|
|
7636
|
-
|
|
7636
|
+
tt.prototype._write = function(Ne, Ae, Oe) {
|
|
7637
7637
|
Oe(new k("_write()"));
|
|
7638
|
-
},
|
|
7638
|
+
}, tt.prototype._writev = null, tt.prototype.end = function(Ne, Ae, Oe) {
|
|
7639
7639
|
var Xe = this._writableState;
|
|
7640
7640
|
return typeof Ne == "function" ? (Oe = Ne, Ne = null, Ae = null) : typeof Ae == "function" && (Oe = Ae, Ae = null), Ne != null && this.write(Ne, Ae), Xe.corked && (Xe.corked = 1, this.uncork()), Xe.ending || He(this, Xe, Oe), this;
|
|
7641
|
-
}, Object.defineProperty(
|
|
7641
|
+
}, Object.defineProperty(tt.prototype, "writableLength", {
|
|
7642
7642
|
// making it explicit this property is not enumerable
|
|
7643
7643
|
// because otherwise some prototype manipulation in
|
|
7644
7644
|
// userland will fail
|
|
@@ -7677,7 +7677,7 @@ function require_stream_writable$1() {
|
|
|
7677
7677
|
}
|
|
7678
7678
|
Ae.corkedRequestsFree.next = Ne;
|
|
7679
7679
|
}
|
|
7680
|
-
return Object.defineProperty(
|
|
7680
|
+
return Object.defineProperty(tt.prototype, "destroyed", {
|
|
7681
7681
|
// making it explicit this property is not enumerable
|
|
7682
7682
|
// because otherwise some prototype manipulation in
|
|
7683
7683
|
// userland will fail
|
|
@@ -7688,7 +7688,7 @@ function require_stream_writable$1() {
|
|
|
7688
7688
|
set: function(Ae) {
|
|
7689
7689
|
this._writableState && (this._writableState.destroyed = Ae);
|
|
7690
7690
|
}
|
|
7691
|
-
}),
|
|
7691
|
+
}), tt.prototype.destroy = P.destroy, tt.prototype._undestroy = P.undestroy, tt.prototype._destroy = function(Ne, Ae) {
|
|
7692
7692
|
Ae(Ne);
|
|
7693
7693
|
}, _stream_writable$1;
|
|
7694
7694
|
}
|
|
@@ -8032,9 +8032,9 @@ function requireAsync_iterator() {
|
|
|
8032
8032
|
if ($e)
|
|
8033
8033
|
ze = new Promise(D($e, this));
|
|
8034
8034
|
else {
|
|
8035
|
-
var
|
|
8036
|
-
if (
|
|
8037
|
-
return Promise.resolve(C(
|
|
8035
|
+
var tt = this[q].read();
|
|
8036
|
+
if (tt !== null)
|
|
8037
|
+
return Promise.resolve(C(tt, !1));
|
|
8038
8038
|
ze = new Promise(this[R]);
|
|
8039
8039
|
}
|
|
8040
8040
|
return this[x] = ze, ze;
|
|
@@ -8069,16 +8069,16 @@ function requireAsync_iterator() {
|
|
|
8069
8069
|
value: ee._readableState.endEmitted,
|
|
8070
8070
|
writable: !0
|
|
8071
8071
|
}), e(qe, R, {
|
|
8072
|
-
value: function(
|
|
8072
|
+
value: function(tt, rt) {
|
|
8073
8073
|
var Ct = $e[q].read();
|
|
8074
|
-
Ct ? ($e[x] = null, $e[A] = null, $e[T] = null,
|
|
8074
|
+
Ct ? ($e[x] = null, $e[A] = null, $e[T] = null, tt(C(Ct, !1))) : ($e[A] = tt, $e[T] = rt);
|
|
8075
8075
|
},
|
|
8076
8076
|
writable: !0
|
|
8077
8077
|
}), qe));
|
|
8078
8078
|
return $e[x] = null, B(ee, function(ze) {
|
|
8079
8079
|
if (ze && ze.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
8080
|
-
var
|
|
8081
|
-
|
|
8080
|
+
var tt = $e[T];
|
|
8081
|
+
tt !== null && ($e[x] = null, $e[A] = null, $e[T] = null, tt(ze)), $e[M] = ze;
|
|
8082
8082
|
return;
|
|
8083
8083
|
}
|
|
8084
8084
|
var rt = $e[A];
|
|
@@ -8098,7 +8098,7 @@ function require_stream_readable$1() {
|
|
|
8098
8098
|
if (hasRequired_stream_readable$1) return _stream_readable$1;
|
|
8099
8099
|
hasRequired_stream_readable$1 = 1, _stream_readable$1 = rt;
|
|
8100
8100
|
var v;
|
|
8101
|
-
rt.ReadableState =
|
|
8101
|
+
rt.ReadableState = tt, requireEvents().EventEmitter;
|
|
8102
8102
|
var e = function(je, vt) {
|
|
8103
8103
|
return je.listeners(vt).length;
|
|
8104
8104
|
}, E = requireStreamBrowser$1(), _ = requireDist().Buffer, B = (typeof commonjsGlobal < "u" ? commonjsGlobal : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
@@ -8119,13 +8119,13 @@ function require_stream_readable$1() {
|
|
|
8119
8119
|
if (typeof Fe.prependListener == "function") return Fe.prependListener(je, vt);
|
|
8120
8120
|
!Fe._events || !Fe._events[je] ? Fe.on(je, vt) : Array.isArray(Fe._events[je]) ? Fe._events[je].unshift(vt) : Fe._events[je] = [vt, Fe._events[je]];
|
|
8121
8121
|
}
|
|
8122
|
-
function
|
|
8122
|
+
function tt(Fe, je, vt) {
|
|
8123
8123
|
v = v || require_stream_duplex$1(), Fe = Fe || {}, typeof vt != "boolean" && (vt = je instanceof v), this.objectMode = !!Fe.objectMode, vt && (this.objectMode = this.objectMode || !!Fe.readableObjectMode), this.highWaterMark = C(this, Fe, "readableHighWaterMark", vt), this.buffer = new x(), 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 = Fe.emitClose !== !1, this.autoDestroy = !!Fe.autoDestroy, this.destroyed = !1, this.defaultEncoding = Fe.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, Fe.encoding && (G || (G = requireString_decoder().StringDecoder), this.decoder = new G(Fe.encoding), this.encoding = Fe.encoding);
|
|
8124
8124
|
}
|
|
8125
8125
|
function rt(Fe) {
|
|
8126
8126
|
if (v = v || require_stream_duplex$1(), !(this instanceof rt)) return new rt(Fe);
|
|
8127
8127
|
var je = this instanceof v;
|
|
8128
|
-
this._readableState = new
|
|
8128
|
+
this._readableState = new tt(Fe, this, je), this.readable = !0, Fe && (typeof Fe.read == "function" && (this._read = Fe.read), typeof Fe.destroy == "function" && (this._destroy = Fe.destroy)), E.call(this);
|
|
8129
8129
|
}
|
|
8130
8130
|
Object.defineProperty(rt.prototype, "destroyed", {
|
|
8131
8131
|
// making it explicit this property is not enumerable
|
|
@@ -9035,12 +9035,12 @@ function requireRipemd160$1() {
|
|
|
9035
9035
|
}
|
|
9036
9036
|
e(R, E), R.prototype._update = function() {
|
|
9037
9037
|
for (var z = _, G = 0; G < 16; ++G) z[G] = this._block.readInt32LE(G * 4);
|
|
9038
|
-
for (var Q = this._a | 0, ee = this._b | 0, qe = this._c | 0, $e = this._d | 0, ze = this._e | 0,
|
|
9038
|
+
for (var Q = this._a | 0, ee = this._b | 0, qe = this._c | 0, $e = this._d | 0, ze = this._e | 0, tt = this._a | 0, rt = this._b | 0, Ct = this._c | 0, Ve = this._d | 0, F = this._e | 0, K = 0; K < 80; K += 1) {
|
|
9039
9039
|
var L, J;
|
|
9040
|
-
K < 16 ? (L = C(Q, ee, qe, $e, ze, z[B[K]], P[0], T[K]), J = H(
|
|
9040
|
+
K < 16 ? (L = C(Q, ee, qe, $e, ze, z[B[K]], P[0], T[K]), J = H(tt, rt, Ct, Ve, F, z[A[K]], x[0], M[K])) : K < 32 ? (L = k(Q, ee, qe, $e, ze, z[B[K]], P[1], T[K]), J = D(tt, rt, Ct, Ve, F, z[A[K]], x[1], M[K])) : K < 48 ? (L = $(Q, ee, qe, $e, ze, z[B[K]], P[2], T[K]), J = $(tt, rt, Ct, Ve, F, z[A[K]], x[2], M[K])) : K < 64 ? (L = D(Q, ee, qe, $e, ze, z[B[K]], P[3], T[K]), J = k(tt, rt, Ct, Ve, F, z[A[K]], x[3], M[K])) : (L = H(Q, ee, qe, $e, ze, z[B[K]], P[4], T[K]), J = C(tt, rt, Ct, Ve, F, z[A[K]], x[4], M[K])), Q = ze, ze = $e, $e = q(qe, 10), qe = ee, ee = L, tt = F, F = Ve, Ve = q(Ct, 10), Ct = rt, rt = J;
|
|
9041
9041
|
}
|
|
9042
9042
|
var oe = this._b + qe + Ve | 0;
|
|
9043
|
-
this._b = this._c + $e + F | 0, this._c = this._d + ze +
|
|
9043
|
+
this._b = this._c + $e + F | 0, this._c = this._d + ze + tt | 0, this._d = this._e + Q + rt | 0, this._e = this._a + ee + Ct | 0, this._a = oe;
|
|
9044
9044
|
}, R.prototype._digest = function() {
|
|
9045
9045
|
this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update();
|
|
9046
9046
|
var z = v.alloc ? v.alloc(20) : new v(20);
|
|
@@ -9049,20 +9049,20 @@ function requireRipemd160$1() {
|
|
|
9049
9049
|
function q(z, G) {
|
|
9050
9050
|
return z << G | z >>> 32 - G;
|
|
9051
9051
|
}
|
|
9052
|
-
function C(z, G, Q, ee, qe, $e, ze,
|
|
9053
|
-
return q(z + (G ^ Q ^ ee) + $e + ze | 0,
|
|
9052
|
+
function C(z, G, Q, ee, qe, $e, ze, tt) {
|
|
9053
|
+
return q(z + (G ^ Q ^ ee) + $e + ze | 0, tt) + qe | 0;
|
|
9054
9054
|
}
|
|
9055
|
-
function k(z, G, Q, ee, qe, $e, ze,
|
|
9056
|
-
return q(z + (G & Q | ~G & ee) + $e + ze | 0,
|
|
9055
|
+
function k(z, G, Q, ee, qe, $e, ze, tt) {
|
|
9056
|
+
return q(z + (G & Q | ~G & ee) + $e + ze | 0, tt) + qe | 0;
|
|
9057
9057
|
}
|
|
9058
|
-
function $(z, G, Q, ee, qe, $e, ze,
|
|
9059
|
-
return q(z + ((G | ~Q) ^ ee) + $e + ze | 0,
|
|
9058
|
+
function $(z, G, Q, ee, qe, $e, ze, tt) {
|
|
9059
|
+
return q(z + ((G | ~Q) ^ ee) + $e + ze | 0, tt) + qe | 0;
|
|
9060
9060
|
}
|
|
9061
|
-
function D(z, G, Q, ee, qe, $e, ze,
|
|
9062
|
-
return q(z + (G & ee | Q & ~ee) + $e + ze | 0,
|
|
9061
|
+
function D(z, G, Q, ee, qe, $e, ze, tt) {
|
|
9062
|
+
return q(z + (G & ee | Q & ~ee) + $e + ze | 0, tt) + qe | 0;
|
|
9063
9063
|
}
|
|
9064
|
-
function H(z, G, Q, ee, qe, $e, ze,
|
|
9065
|
-
return q(z + (G ^ (Q | ~ee)) + $e + ze | 0,
|
|
9064
|
+
function H(z, G, Q, ee, qe, $e, ze, tt) {
|
|
9065
|
+
return q(z + (G ^ (Q | ~ee)) + $e + ze | 0, tt) + qe | 0;
|
|
9066
9066
|
}
|
|
9067
9067
|
return ripemd160$1 = R, ripemd160$1;
|
|
9068
9068
|
}
|
|
@@ -9344,8 +9344,8 @@ function requireSha256() {
|
|
|
9344
9344
|
for (; $e < 64; ++$e)
|
|
9345
9345
|
k[$e] = q(k[$e - 2]) + k[$e - 7] + R(k[$e - 15]) + k[$e - 16] | 0;
|
|
9346
9346
|
for (var ze = 0; ze < 64; ++ze) {
|
|
9347
|
-
var
|
|
9348
|
-
qe = ee, ee = Q, Q = G, G = z +
|
|
9347
|
+
var tt = qe + x(G) + T(G, Q, ee) + _[ze] + k[ze] | 0, rt = P($) + M($, D, H) | 0;
|
|
9348
|
+
qe = ee, ee = Q, Q = G, G = z + tt | 0, z = H, H = D, D = $, $ = tt + rt | 0;
|
|
9349
9349
|
}
|
|
9350
9350
|
this._a = $ + this._a | 0, this._b = D + this._b | 0, this._c = H + this._c | 0, this._d = z + this._d | 0, this._e = G + this._e | 0, this._f = Q + this._f | 0, this._g = ee + this._g | 0, this._h = qe + this._h | 0;
|
|
9351
9351
|
}, A.prototype._hash = function() {
|
|
@@ -9568,7 +9568,7 @@ function requireSha512() {
|
|
|
9568
9568
|
return D >>> 0 < H >>> 0 ? 1 : 0;
|
|
9569
9569
|
}
|
|
9570
9570
|
return A.prototype._update = function(D) {
|
|
9571
|
-
for (var H = this._w, z = this._ah | 0, G = this._bh | 0, Q = this._ch | 0, ee = this._dh | 0, qe = this._eh | 0, $e = this._fh | 0, ze = this._gh | 0,
|
|
9571
|
+
for (var H = this._w, z = this._ah | 0, G = this._bh | 0, Q = this._ch | 0, ee = this._dh | 0, qe = this._eh | 0, $e = this._fh | 0, ze = this._gh | 0, tt = this._hh | 0, rt = this._al | 0, Ct = this._bl | 0, Ve = this._cl | 0, F = this._dl | 0, K = this._el | 0, L = this._fl | 0, J = this._gl | 0, oe = this._hl | 0, te = 0; te < 32; te += 2)
|
|
9572
9572
|
H[te] = D.readInt32BE(te * 4), H[te + 1] = D.readInt32BE(te * 4 + 4);
|
|
9573
9573
|
for (; te < 160; te += 2) {
|
|
9574
9574
|
var he = H[te - 30], ne = H[te - 30 + 1], Y = R(he, ne), ce = q(ne, he);
|
|
@@ -9578,12 +9578,12 @@ function requireSha512() {
|
|
|
9578
9578
|
}
|
|
9579
9579
|
for (var st = 0; st < 160; st += 2) {
|
|
9580
9580
|
Xe = H[st], Oe = H[st + 1];
|
|
9581
|
-
var Fe = M(z, G, Q), je = M(rt, Ct, Ve), vt = P(z, rt), Jt = P(rt, z), ur = x(qe, K), fr = x(K, qe), yr = _[st], br = _[st + 1], Ht = T(qe, $e, ze), qr = T(K, L, J), dr = oe + fr | 0, _r =
|
|
9581
|
+
var Fe = M(z, G, Q), je = M(rt, Ct, Ve), vt = P(z, rt), Jt = P(rt, z), ur = x(qe, K), fr = x(K, qe), yr = _[st], br = _[st + 1], Ht = T(qe, $e, ze), qr = T(K, L, J), dr = oe + fr | 0, _r = tt + ur + $(dr, oe) | 0;
|
|
9582
9582
|
dr = dr + qr | 0, _r = _r + Ht + $(dr, qr) | 0, dr = dr + br | 0, _r = _r + yr + $(dr, br) | 0, dr = dr + Oe | 0, _r = _r + Xe + $(dr, Oe) | 0;
|
|
9583
9583
|
var Er = Jt + je | 0, lt = vt + Fe + $(Er, Jt) | 0;
|
|
9584
|
-
|
|
9584
|
+
tt = ze, oe = J, ze = $e, J = L, $e = qe, L = K, K = F + dr | 0, qe = ee + _r + $(K, F) | 0, ee = Q, F = Ve, Q = G, Ve = Ct, G = z, Ct = rt, rt = dr + Er | 0, z = _r + lt + $(rt, dr) | 0;
|
|
9585
9585
|
}
|
|
9586
|
-
this._al = this._al + rt | 0, this._bl = this._bl + Ct | 0, this._cl = this._cl + Ve | 0, this._dl = this._dl + F | 0, this._el = this._el + K | 0, this._fl = this._fl + L | 0, this._gl = this._gl + J | 0, this._hl = this._hl + oe | 0, this._ah = this._ah + z + $(this._al, rt) | 0, this._bh = this._bh + G + $(this._bl, Ct) | 0, this._ch = this._ch + Q + $(this._cl, Ve) | 0, this._dh = this._dh + ee + $(this._dl, F) | 0, this._eh = this._eh + qe + $(this._el, K) | 0, this._fh = this._fh + $e + $(this._fl, L) | 0, this._gh = this._gh + ze + $(this._gl, J) | 0, this._hh = this._hh +
|
|
9586
|
+
this._al = this._al + rt | 0, this._bl = this._bl + Ct | 0, this._cl = this._cl + Ve | 0, this._dl = this._dl + F | 0, this._el = this._el + K | 0, this._fl = this._fl + L | 0, this._gl = this._gl + J | 0, this._hl = this._hl + oe | 0, this._ah = this._ah + z + $(this._al, rt) | 0, this._bh = this._bh + G + $(this._bl, Ct) | 0, this._ch = this._ch + Q + $(this._cl, Ve) | 0, this._dh = this._dh + ee + $(this._dl, F) | 0, this._eh = this._eh + qe + $(this._el, K) | 0, this._fh = this._fh + $e + $(this._fl, L) | 0, this._gh = this._gh + ze + $(this._gl, J) | 0, this._hh = this._hh + tt + $(this._hl, oe) | 0;
|
|
9587
9587
|
}, A.prototype._hash = function() {
|
|
9588
9588
|
var D = E.allocUnsafe(64);
|
|
9589
9589
|
function H(z, G, Q) {
|
|
@@ -10031,11 +10031,11 @@ function requireSyncBrowser() {
|
|
|
10031
10031
|
var Q = (G || "sha1").toLowerCase(), ee = x[Q] || Q, qe = P[ee];
|
|
10032
10032
|
if (typeof qe != "number" || !qe)
|
|
10033
10033
|
throw new TypeError("Digest algorithm not supported: " + G);
|
|
10034
|
-
var $e = new C(ee, $, D.length), ze = _.allocUnsafe(z),
|
|
10035
|
-
D.copy(
|
|
10034
|
+
var $e = new C(ee, $, D.length), ze = _.allocUnsafe(z), tt = _.allocUnsafe(D.length + 4);
|
|
10035
|
+
D.copy(tt, 0, 0, D.length);
|
|
10036
10036
|
for (var rt = 0, Ct = qe, Ve = Math.ceil(z / Ct), F = 1; F <= Ve; F++) {
|
|
10037
|
-
|
|
10038
|
-
for (var K = $e.run(
|
|
10037
|
+
tt.writeUInt32BE(F, D.length);
|
|
10038
|
+
for (var K = $e.run(tt, $e.ipad1), L = K, J = 1; J < H; J++) {
|
|
10039
10039
|
L = $e.run(L, $e.ipad2);
|
|
10040
10040
|
for (var oe = 0; oe < Ct; oe++)
|
|
10041
10041
|
K[oe] ^= L[oe];
|
|
@@ -11279,9 +11279,9 @@ function requireAes() {
|
|
|
11279
11279
|
M[P] = 0;
|
|
11280
11280
|
}
|
|
11281
11281
|
function _(M, P, x, R, q) {
|
|
11282
|
-
for (var C = x[0], k = x[1], $ = x[2], D = x[3], H = M[0] ^ P[0], z = M[1] ^ P[1], G = M[2] ^ P[2], Q = M[3] ^ P[3], ee, qe, $e, ze,
|
|
11283
|
-
ee = C[H >>> 24] ^ k[z >>> 16 & 255] ^ $[G >>> 8 & 255] ^ D[Q & 255] ^ P[
|
|
11284
|
-
return ee = (R[H >>> 24] << 24 | R[z >>> 16 & 255] << 16 | R[G >>> 8 & 255] << 8 | R[Q & 255]) ^ P[
|
|
11282
|
+
for (var C = x[0], k = x[1], $ = x[2], D = x[3], H = M[0] ^ P[0], z = M[1] ^ P[1], G = M[2] ^ P[2], Q = M[3] ^ P[3], ee, qe, $e, ze, tt = 4, rt = 1; rt < q; rt++)
|
|
11283
|
+
ee = C[H >>> 24] ^ k[z >>> 16 & 255] ^ $[G >>> 8 & 255] ^ D[Q & 255] ^ P[tt++], qe = C[z >>> 24] ^ k[G >>> 16 & 255] ^ $[Q >>> 8 & 255] ^ D[H & 255] ^ P[tt++], $e = C[G >>> 24] ^ k[Q >>> 16 & 255] ^ $[H >>> 8 & 255] ^ D[z & 255] ^ P[tt++], ze = C[Q >>> 24] ^ k[H >>> 16 & 255] ^ $[z >>> 8 & 255] ^ D[G & 255] ^ P[tt++], H = ee, z = qe, G = $e, Q = ze;
|
|
11284
|
+
return ee = (R[H >>> 24] << 24 | R[z >>> 16 & 255] << 16 | R[G >>> 8 & 255] << 8 | R[Q & 255]) ^ P[tt++], qe = (R[z >>> 24] << 24 | R[G >>> 16 & 255] << 16 | R[Q >>> 8 & 255] << 8 | R[H & 255]) ^ P[tt++], $e = (R[G >>> 24] << 24 | R[Q >>> 16 & 255] << 16 | R[H >>> 8 & 255] << 8 | R[z & 255]) ^ P[tt++], ze = (R[Q >>> 24] << 24 | R[H >>> 16 & 255] << 16 | R[z >>> 8 & 255] << 8 | R[G & 255]) ^ P[tt++], ee = ee >>> 0, qe = qe >>> 0, $e = $e >>> 0, ze = ze >>> 0, [ee, qe, $e, ze];
|
|
11285
11285
|
}
|
|
11286
11286
|
var B = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], A = (function() {
|
|
11287
11287
|
for (var M = new Array(256), P = 0; P < 256; P++)
|
|
@@ -12660,14 +12660,14 @@ function requireBn$1() {
|
|
|
12660
12660
|
);
|
|
12661
12661
|
}
|
|
12662
12662
|
B(ze, ee);
|
|
12663
|
-
function
|
|
12663
|
+
function tt() {
|
|
12664
12664
|
ee.call(
|
|
12665
12665
|
this,
|
|
12666
12666
|
"25519",
|
|
12667
12667
|
"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed"
|
|
12668
12668
|
);
|
|
12669
12669
|
}
|
|
12670
|
-
B(
|
|
12670
|
+
B(tt, ee), tt.prototype.imulK = function(F) {
|
|
12671
12671
|
for (var K = 0, L = 0; L < F.length; L++) {
|
|
12672
12672
|
var J = (F.words[L] | 0) * 19 + K, oe = J & 67108863;
|
|
12673
12673
|
J >>>= 26, F.words[L] = oe, K = J;
|
|
@@ -12683,7 +12683,7 @@ function requireBn$1() {
|
|
|
12683
12683
|
else if (F === "p192")
|
|
12684
12684
|
K = new ze();
|
|
12685
12685
|
else if (F === "p25519")
|
|
12686
|
-
K = new
|
|
12686
|
+
K = new tt();
|
|
12687
12687
|
else
|
|
12688
12688
|
throw new Error("Unknown prime " + F);
|
|
12689
12689
|
return Q[F] = K, K;
|
|
@@ -13417,10 +13417,10 @@ function require_stream_writable() {
|
|
|
13417
13417
|
if ($e(ne), he) qe(te, ne, Y, he, ce);
|
|
13418
13418
|
else {
|
|
13419
13419
|
var X = Ve(ne);
|
|
13420
|
-
!X && !ne.corked && !ne.bufferProcessing && ne.bufferedRequest && Ct(te, ne), Y ? E(
|
|
13420
|
+
!X && !ne.corked && !ne.bufferProcessing && ne.bufferedRequest && Ct(te, ne), Y ? E(tt, te, ne, X, ce) : tt(te, ne, X, ce);
|
|
13421
13421
|
}
|
|
13422
13422
|
}
|
|
13423
|
-
function
|
|
13423
|
+
function tt(te, he, ne, Y) {
|
|
13424
13424
|
ne || rt(te, he), he.pendingcb--, Y(), L(te, he);
|
|
13425
13425
|
}
|
|
13426
13426
|
function rt(te, he) {
|
|
@@ -13619,11 +13619,11 @@ function require_stream_readable() {
|
|
|
13619
13619
|
return $ || ($ = requireString_decoder().StringDecoder), this._readableState.decoder = new $(Ae), this._readableState.encoding = Ae, this;
|
|
13620
13620
|
};
|
|
13621
13621
|
var ze = 8388608;
|
|
13622
|
-
function
|
|
13622
|
+
function tt(Ae) {
|
|
13623
13623
|
return Ae >= ze ? Ae = ze : (Ae--, Ae |= Ae >>> 1, Ae |= Ae >>> 2, Ae |= Ae >>> 4, Ae |= Ae >>> 8, Ae |= Ae >>> 16, Ae++), Ae;
|
|
13624
13624
|
}
|
|
13625
13625
|
function rt(Ae, Oe) {
|
|
13626
|
-
return Ae <= 0 || Oe.length === 0 && Oe.ended ? 0 : Oe.objectMode ? 1 : Ae !== Ae ? Oe.flowing && Oe.length ? Oe.buffer.head.data.length : Oe.length : (Ae > Oe.highWaterMark && (Oe.highWaterMark =
|
|
13626
|
+
return Ae <= 0 || Oe.length === 0 && Oe.ended ? 0 : Oe.objectMode ? 1 : Ae !== Ae ? Oe.flowing && Oe.length ? Oe.buffer.head.data.length : Oe.length : (Ae > Oe.highWaterMark && (Oe.highWaterMark = tt(Ae)), Ae <= Oe.length ? Ae : Oe.ended ? Oe.length : (Oe.needReadable = !0, 0));
|
|
13627
13627
|
}
|
|
13628
13628
|
G.prototype.read = function(Ae) {
|
|
13629
13629
|
q("read", Ae), Ae = parseInt(Ae, 10);
|
|
@@ -14891,14 +14891,14 @@ function requireBn() {
|
|
|
14891
14891
|
}
|
|
14892
14892
|
return L.words[L.length - 1] === 0 && (L.length--, L.words[L.length - 1] === 0 && L.length--), L;
|
|
14893
14893
|
};
|
|
14894
|
-
function
|
|
14894
|
+
function tt() {
|
|
14895
14895
|
$e.call(
|
|
14896
14896
|
this,
|
|
14897
14897
|
"p224",
|
|
14898
14898
|
"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001"
|
|
14899
14899
|
);
|
|
14900
14900
|
}
|
|
14901
|
-
B(
|
|
14901
|
+
B(tt, $e);
|
|
14902
14902
|
function rt() {
|
|
14903
14903
|
$e.call(
|
|
14904
14904
|
this,
|
|
@@ -14926,7 +14926,7 @@ function requireBn() {
|
|
|
14926
14926
|
if (L === "k256")
|
|
14927
14927
|
J = new ze();
|
|
14928
14928
|
else if (L === "p224")
|
|
14929
|
-
J = new
|
|
14929
|
+
J = new tt();
|
|
14930
14930
|
else if (L === "p192")
|
|
14931
14931
|
J = new rt();
|
|
14932
14932
|
else if (L === "p25519")
|
|
@@ -15241,7 +15241,7 @@ function requireBase$1() {
|
|
|
15241
15241
|
/* 7 */
|
|
15242
15242
|
];
|
|
15243
15243
|
x[qe].y.cmp(x[$e].y) === 0 ? (ze[1] = x[qe].add(x[$e]), ze[2] = x[qe].toJ().mixedAdd(x[$e].neg())) : x[qe].y.cmp(x[$e].y.redNeg()) === 0 ? (ze[1] = x[qe].toJ().mixedAdd(x[$e]), ze[2] = x[qe].add(x[$e].neg())) : (ze[1] = x[qe].toJ().mixedAdd(x[$e]), ze[2] = x[qe].toJ().mixedAdd(x[$e].neg()));
|
|
15244
|
-
var
|
|
15244
|
+
var tt = [
|
|
15245
15245
|
-3,
|
|
15246
15246
|
/* -1 -1 */
|
|
15247
15247
|
-1,
|
|
@@ -15263,7 +15263,7 @@ function requireBase$1() {
|
|
|
15263
15263
|
], rt = _(R[qe], R[$e]);
|
|
15264
15264
|
for (H = Math.max(rt[0].length, H), D[qe] = new Array(H), D[$e] = new Array(H), G = 0; G < H; G++) {
|
|
15265
15265
|
var Ct = rt[0][G] | 0, Ve = rt[1][G] | 0;
|
|
15266
|
-
D[qe][G] =
|
|
15266
|
+
D[qe][G] = tt[(Ct + 1) * 3 + (Ve + 1)], D[$e][G] = 0, $[qe] = ze;
|
|
15267
15267
|
}
|
|
15268
15268
|
}
|
|
15269
15269
|
var F = this.jpoint(null, null, null), K = this._wnafT4;
|
|
@@ -15396,13 +15396,13 @@ function requireShort() {
|
|
|
15396
15396
|
var R = x === this.p ? this.red : e.mont(x), q = new e(2).toRed(R).redInvm(), C = q.redNeg(), k = new e(3).toRed(R).redNeg().redSqrt().redMul(q), $ = C.redAdd(k).fromRed(), D = C.redSub(k).fromRed();
|
|
15397
15397
|
return [$, D];
|
|
15398
15398
|
}, A.prototype._getEndoBasis = function(x) {
|
|
15399
|
-
for (var R = this.n.ushrn(Math.floor(this.n.bitLength() / 2)), q = x, C = this.n.clone(), k = new e(1), $ = new e(0), D = new e(0), H = new e(1), z, G, Q, ee, qe, $e, ze,
|
|
15399
|
+
for (var R = this.n.ushrn(Math.floor(this.n.bitLength() / 2)), q = x, C = this.n.clone(), k = new e(1), $ = new e(0), D = new e(0), H = new e(1), z, G, Q, ee, qe, $e, ze, tt = 0, rt, Ct; q.cmpn(0) !== 0; ) {
|
|
15400
15400
|
var Ve = C.div(q);
|
|
15401
15401
|
rt = C.sub(Ve.mul(q)), Ct = D.sub(Ve.mul(k));
|
|
15402
15402
|
var F = H.sub(Ve.mul($));
|
|
15403
15403
|
if (!Q && rt.cmp(R) < 0)
|
|
15404
15404
|
z = ze.neg(), G = k, Q = rt.neg(), ee = Ct;
|
|
15405
|
-
else if (Q && ++
|
|
15405
|
+
else if (Q && ++tt === 2)
|
|
15406
15406
|
break;
|
|
15407
15407
|
ze = rt, C = q, q = rt, D = k, k = Ct, H = $, $ = F;
|
|
15408
15408
|
}
|
|
@@ -15613,10 +15613,10 @@ function requireShort() {
|
|
|
15613
15613
|
}
|
|
15614
15614
|
var C = this.curve.a, k = this.curve.tinv, $ = this.x, D = this.y, H = this.z, z = H.redSqr().redSqr(), G = D.redAdd(D);
|
|
15615
15615
|
for (R = 0; R < x; R++) {
|
|
15616
|
-
var Q = $.redSqr(), ee = G.redSqr(), qe = ee.redSqr(), $e = Q.redAdd(Q).redIAdd(Q).redIAdd(C.redMul(z)), ze = $.redMul(ee),
|
|
15616
|
+
var Q = $.redSqr(), ee = G.redSqr(), qe = ee.redSqr(), $e = Q.redAdd(Q).redIAdd(Q).redIAdd(C.redMul(z)), ze = $.redMul(ee), tt = $e.redSqr().redISub(ze.redAdd(ze)), rt = ze.redISub(tt), Ct = $e.redMul(rt);
|
|
15617
15617
|
Ct = Ct.redIAdd(Ct).redISub(qe);
|
|
15618
15618
|
var Ve = G.redMul(H);
|
|
15619
|
-
R + 1 < x && (z = z.redMul(qe)), $ =
|
|
15619
|
+
R + 1 < x && (z = z.redMul(qe)), $ = tt, H = Ve, G = Ct;
|
|
15620
15620
|
}
|
|
15621
15621
|
return this.curve.jpoint($, G.redMul(k), H);
|
|
15622
15622
|
}, M.prototype.dbl = function() {
|
|
@@ -15631,8 +15631,8 @@ function requireShort() {
|
|
|
15631
15631
|
} else {
|
|
15632
15632
|
var Q = this.x.redSqr(), ee = this.y.redSqr(), qe = ee.redSqr(), $e = this.x.redAdd(ee).redSqr().redISub(Q).redISub(qe);
|
|
15633
15633
|
$e = $e.redIAdd($e);
|
|
15634
|
-
var ze = Q.redAdd(Q).redIAdd(Q),
|
|
15635
|
-
rt = rt.redIAdd(rt), rt = rt.redIAdd(rt), x =
|
|
15634
|
+
var ze = Q.redAdd(Q).redIAdd(Q), tt = ze.redSqr(), rt = qe.redIAdd(qe);
|
|
15635
|
+
rt = rt.redIAdd(rt), rt = rt.redIAdd(rt), x = tt.redISub($e).redISub($e), R = ze.redMul($e.redISub(x)).redISub(rt), q = this.y.redMul(this.z), q = q.redIAdd(q);
|
|
15636
15636
|
}
|
|
15637
15637
|
return this.curve.jpoint(x, R, q);
|
|
15638
15638
|
}, M.prototype._threeDbl = function() {
|
|
@@ -15649,8 +15649,8 @@ function requireShort() {
|
|
|
15649
15649
|
$e = $e.redAdd($e).redIAdd($e);
|
|
15650
15650
|
var ze = qe.redIAdd(qe);
|
|
15651
15651
|
ze = ze.redIAdd(ze);
|
|
15652
|
-
var
|
|
15653
|
-
x = $e.redSqr().redISub(
|
|
15652
|
+
var tt = ze.redAdd(ze);
|
|
15653
|
+
x = $e.redSqr().redISub(tt), q = this.y.redAdd(this.z).redSqr().redISub(ee).redISub(Q);
|
|
15654
15654
|
var rt = ee.redSqr();
|
|
15655
15655
|
rt = rt.redIAdd(rt), rt = rt.redIAdd(rt), rt = rt.redIAdd(rt), R = $e.redMul(ze.redISub(x)).redISub(rt);
|
|
15656
15656
|
}
|
|
@@ -16019,11 +16019,11 @@ function requireUtils$1() {
|
|
|
16019
16019
|
return X >>> 0;
|
|
16020
16020
|
}
|
|
16021
16021
|
utils.sum64_5_lo = ze;
|
|
16022
|
-
function
|
|
16022
|
+
function tt(F, K, L) {
|
|
16023
16023
|
var J = K << 32 - L | F >>> L;
|
|
16024
16024
|
return J >>> 0;
|
|
16025
16025
|
}
|
|
16026
|
-
utils.rotr64_hi =
|
|
16026
|
+
utils.rotr64_hi = tt;
|
|
16027
16027
|
function rt(F, K, L) {
|
|
16028
16028
|
var J = F << 32 - L | K >>> L;
|
|
16029
16029
|
return J >>> 0;
|
|
@@ -16241,12 +16241,12 @@ function require_256() {
|
|
|
16241
16241
|
Q[ee] = z[G + ee];
|
|
16242
16242
|
for (; ee < Q.length; ee++)
|
|
16243
16243
|
Q[ee] = A(C(Q[ee - 2]), Q[ee - 7], q(Q[ee - 15]), Q[ee - 16]);
|
|
16244
|
-
var qe = this.h[0], $e = this.h[1], ze = this.h[2],
|
|
16244
|
+
var qe = this.h[0], $e = this.h[1], ze = this.h[2], tt = this.h[3], rt = this.h[4], Ct = this.h[5], Ve = this.h[6], F = this.h[7];
|
|
16245
16245
|
for (_(this.k.length === Q.length), ee = 0; ee < Q.length; ee++) {
|
|
16246
16246
|
var K = T(F, R(rt), M(rt, Ct, Ve), this.k[ee], Q[ee]), L = B(x(qe), P(qe, $e, ze));
|
|
16247
|
-
F = Ve, Ve = Ct, Ct = rt, rt = B(
|
|
16247
|
+
F = Ve, Ve = Ct, Ct = rt, rt = B(tt, K), tt = ze, ze = $e, $e = qe, qe = B(K, L);
|
|
16248
16248
|
}
|
|
16249
|
-
this.h[0] = B(this.h[0], qe), this.h[1] = B(this.h[1], $e), this.h[2] = B(this.h[2], ze), this.h[3] = B(this.h[3],
|
|
16249
|
+
this.h[0] = B(this.h[0], qe), this.h[1] = B(this.h[1], $e), this.h[2] = B(this.h[2], ze), this.h[3] = B(this.h[3], tt), this.h[4] = B(this.h[4], rt), this.h[5] = B(this.h[5], Ct), this.h[6] = B(this.h[6], Ve), this.h[7] = B(this.h[7], F);
|
|
16250
16250
|
}, D.prototype._digest = function(z) {
|
|
16251
16251
|
return z === "hex" ? v.toHex32(this.h, "big") : v.split32(this.h, "big");
|
|
16252
16252
|
}, _256;
|
|
@@ -16492,7 +16492,7 @@ function require_512() {
|
|
|
16492
16492
|
var oe = this.W, te = this.h[0], he = this.h[1], ne = this.h[2], Y = this.h[3], ce = this.h[4], X = this.h[5], Ie = this.h[6], He = this.h[7], Ye = this.h[8], Ne = this.h[9], Ae = this.h[10], Oe = this.h[11], Xe = this.h[12], st = this.h[13], Fe = this.h[14], je = this.h[15];
|
|
16493
16493
|
E(this.k.length === oe.length);
|
|
16494
16494
|
for (var vt = 0; vt < oe.length; vt += 2) {
|
|
16495
|
-
var Jt = Fe, ur = je, fr = ze(Ye, Ne), yr =
|
|
16495
|
+
var Jt = Fe, ur = je, fr = ze(Ye, Ne), yr = tt(Ye, Ne), br = z(Ye, Ne, Ae, Oe, Xe), Ht = G(Ye, Ne, Ae, Oe, Xe, st), qr = this.k[vt], dr = this.k[vt + 1], _r = oe[vt], Er = oe[vt + 1], lt = C(
|
|
16496
16496
|
Jt,
|
|
16497
16497
|
ur,
|
|
16498
16498
|
fr,
|
|
@@ -16551,7 +16551,7 @@ function require_512() {
|
|
|
16551
16551
|
var J = _(K, L, 14), oe = _(K, L, 18), te = _(L, K, 9), he = J ^ oe ^ te;
|
|
16552
16552
|
return he < 0 && (he += 4294967296), he;
|
|
16553
16553
|
}
|
|
16554
|
-
function
|
|
16554
|
+
function tt(K, L) {
|
|
16555
16555
|
var J = B(K, L, 14), oe = B(K, L, 18), te = B(L, K, 9), he = J ^ oe ^ te;
|
|
16556
16556
|
return he < 0 && (he += 4294967296), he;
|
|
16557
16557
|
}
|
|
@@ -16619,7 +16619,7 @@ function requireRipemd() {
|
|
|
16619
16619
|
T.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.endian = "little";
|
|
16620
16620
|
}
|
|
16621
16621
|
v.inherits(M, T), ripemd.ripemd160 = M, M.blockSize = 512, M.outSize = 160, M.hmacStrength = 192, M.padLength = 64, M.prototype._update = function(H, z) {
|
|
16622
|
-
for (var G = this.h[0], Q = this.h[1], ee = this.h[2], qe = this.h[3], $e = this.h[4], ze = G,
|
|
16622
|
+
for (var G = this.h[0], Q = this.h[1], ee = this.h[2], qe = this.h[3], $e = this.h[4], ze = G, tt = Q, rt = ee, Ct = qe, Ve = $e, F = 0; F < 80; F++) {
|
|
16623
16623
|
var K = _(
|
|
16624
16624
|
E(
|
|
16625
16625
|
A(G, P(F, Q, ee, qe), H[q[F] + z], x(F)),
|
|
@@ -16629,13 +16629,13 @@ function requireRipemd() {
|
|
|
16629
16629
|
);
|
|
16630
16630
|
G = $e, $e = qe, qe = E(ee, 10), ee = Q, Q = K, K = _(
|
|
16631
16631
|
E(
|
|
16632
|
-
A(ze, P(79 - F,
|
|
16632
|
+
A(ze, P(79 - F, tt, rt, Ct), H[C[F] + z], R(F)),
|
|
16633
16633
|
$[F]
|
|
16634
16634
|
),
|
|
16635
16635
|
Ve
|
|
16636
|
-
), ze = Ve, Ve = Ct, Ct = E(rt, 10), rt =
|
|
16636
|
+
), ze = Ve, Ve = Ct, Ct = E(rt, 10), rt = tt, tt = K;
|
|
16637
16637
|
}
|
|
16638
|
-
K = B(this.h[1], ee, Ct), this.h[1] = B(this.h[2], qe, Ve), this.h[2] = B(this.h[3], $e, ze), this.h[3] = B(this.h[4], G,
|
|
16638
|
+
K = B(this.h[1], ee, Ct), this.h[1] = B(this.h[2], qe, Ve), this.h[2] = B(this.h[3], $e, ze), this.h[3] = B(this.h[4], G, tt), this.h[4] = B(this.h[0], Q, rt), this.h[0] = K;
|
|
16639
16639
|
}, M.prototype._digest = function(H) {
|
|
16640
16640
|
return H === "hex" ? v.toHex32(this.h, "little") : v.split32(this.h, "little");
|
|
16641
16641
|
};
|
|
@@ -18175,12 +18175,12 @@ function requireEc() {
|
|
|
18175
18175
|
if (qe = this._truncateToN(qe, !0), !(qe.cmpn(1) <= 0 || qe.cmp(Q) >= 0)) {
|
|
18176
18176
|
var $e = this.g.mul(qe);
|
|
18177
18177
|
if (!$e.isInfinity()) {
|
|
18178
|
-
var ze = $e.getX(),
|
|
18179
|
-
if (
|
|
18180
|
-
var rt = qe.invm(this.n).mul(
|
|
18178
|
+
var ze = $e.getX(), tt = ze.umod(this.n);
|
|
18179
|
+
if (tt.cmpn(0) !== 0) {
|
|
18180
|
+
var rt = qe.invm(this.n).mul(tt.mul(q.getPrivate()).iadd(R));
|
|
18181
18181
|
if (rt = rt.umod(this.n), rt.cmpn(0) !== 0) {
|
|
18182
|
-
var Ct = ($e.getY().isOdd() ? 1 : 0) | (ze.cmp(
|
|
18183
|
-
return k.canonical && rt.cmp(this.nh) > 0 && (rt = this.n.sub(rt), Ct ^= 1), new M({ r:
|
|
18182
|
+
var Ct = ($e.getY().isOdd() ? 1 : 0) | (ze.cmp(tt) !== 0 ? 2 : 0);
|
|
18183
|
+
return k.canonical && rt.cmp(this.nh) > 0 && (rt = this.n.sub(rt), Ct ^= 1), new M({ r: tt, s: rt, recoveryParam: Ct });
|
|
18184
18184
|
}
|
|
18185
18185
|
}
|
|
18186
18186
|
}
|
|
@@ -18802,8 +18802,8 @@ function requireNode() {
|
|
|
18802
18802
|
}
|
|
18803
18803
|
if (q && q.track && C.tag !== null && q.track(R.path(), ee, R.length, "tagged"), q && q.track && C.tag !== null && q.track(R.path(), R.offset, R.length, "content"), C.any ? k = k : C.choice === null ? k = this._decodeGeneric(C.tag, R, q) : k = this._decodeChoice(R, q), R.isError(k))
|
|
18804
18804
|
return k;
|
|
18805
|
-
if (!C.any && C.choice === null && C.children !== null && C.children.forEach(function(
|
|
18806
|
-
|
|
18805
|
+
if (!C.any && C.choice === null && C.children !== null && C.children.forEach(function(tt) {
|
|
18806
|
+
tt._decode(R, q);
|
|
18807
18807
|
}), C.contains && (C.tag === "octstr" || C.tag === "bitstr")) {
|
|
18808
18808
|
var $e = new E(k);
|
|
18809
18809
|
k = this._getUse(C.contains, R._reporterState.obj)._decode($e, q);
|
|
@@ -19677,12 +19677,12 @@ function requireSign() {
|
|
|
19677
19677
|
if (G.padding !== void 0 && G.padding !== M)
|
|
19678
19678
|
throw new Error("illegal or unsupported padding mode");
|
|
19679
19679
|
z = v.concat([qe, z]);
|
|
19680
|
-
for (var ze = $e.modulus.byteLength(),
|
|
19681
|
-
|
|
19682
|
-
|
|
19680
|
+
for (var ze = $e.modulus.byteLength(), tt = [0, 1]; z.length + tt.length + 1 < ze; )
|
|
19681
|
+
tt.push(255);
|
|
19682
|
+
tt.push(0);
|
|
19683
19683
|
for (var rt = -1; ++rt < z.length; )
|
|
19684
|
-
|
|
19685
|
-
var Ct = E(
|
|
19684
|
+
tt.push(z[rt]);
|
|
19685
|
+
var Ct = E(tt, $e);
|
|
19686
19686
|
return Ct;
|
|
19687
19687
|
}
|
|
19688
19688
|
function x(z, G) {
|
|
@@ -19693,9 +19693,9 @@ function requireSign() {
|
|
|
19693
19693
|
return v.from($e.toDER());
|
|
19694
19694
|
}
|
|
19695
19695
|
function R(z, G, Q) {
|
|
19696
|
-
for (var ee = G.params.priv_key, qe = G.params.p, $e = G.params.q, ze = G.params.g,
|
|
19697
|
-
rt = D($e, F, Q),
|
|
19698
|
-
return q(
|
|
19696
|
+
for (var ee = G.params.priv_key, qe = G.params.p, $e = G.params.q, ze = G.params.g, tt = new B(0), rt, Ct = k(z, $e).mod($e), Ve = !1, F = C(ee, $e, z, Q); Ve === !1; )
|
|
19697
|
+
rt = D($e, F, Q), tt = H(ze, rt, qe, $e), Ve = rt.invm($e).imul(Ct.add(ee.mul(tt))).mod($e), Ve.cmpn(0) === 0 && (Ve = !1, tt = new B(0));
|
|
19698
|
+
return q(tt, Ve);
|
|
19699
19699
|
}
|
|
19700
19700
|
function q(z, G) {
|
|
19701
19701
|
z = z.toArray(), G = G.toArray(), z[0] & 128 && (z = [0].concat(z)), G[0] & 128 && (G = [0].concat(G));
|
|
@@ -19712,10 +19712,10 @@ function requireSign() {
|
|
|
19712
19712
|
var qe = v.alloc(G.byteLength() - z.length);
|
|
19713
19713
|
z = v.concat([qe, z]);
|
|
19714
19714
|
}
|
|
19715
|
-
var $e = Q.length, ze = $(Q, G),
|
|
19716
|
-
|
|
19715
|
+
var $e = Q.length, ze = $(Q, G), tt = v.alloc($e);
|
|
19716
|
+
tt.fill(1);
|
|
19717
19717
|
var rt = v.alloc($e);
|
|
19718
|
-
return rt = e(ee, rt).update(
|
|
19718
|
+
return rt = e(ee, rt).update(tt).update(v.from([0])).update(z).update(ze).digest(), tt = e(ee, rt).update(tt).digest(), rt = e(ee, rt).update(tt).update(v.from([1])).update(z).update(ze).digest(), tt = e(ee, rt).update(tt).digest(), { k: rt, v: tt };
|
|
19719
19719
|
}
|
|
19720
19720
|
function k(z, G) {
|
|
19721
19721
|
var Q = new B(z), ee = (z.length << 3) - G.bitLength();
|
|
@@ -20241,10 +20241,10 @@ function requireJsbn() {
|
|
|
20241
20241
|
function B() {
|
|
20242
20242
|
return new _(null);
|
|
20243
20243
|
}
|
|
20244
|
-
function A(Le, We,
|
|
20244
|
+
function A(Le, We, et, It, lr, gr) {
|
|
20245
20245
|
for (var Ar = We & 16383, Br = We >> 14; --gr >= 0; ) {
|
|
20246
20246
|
var oi = this[Le] & 16383, di = this[Le++] >> 14, pi = Br * oi + di * Ar;
|
|
20247
|
-
oi = Ar * oi + ((pi & 16383) << 14) +
|
|
20247
|
+
oi = Ar * oi + ((pi & 16383) << 14) + et[It] + lr, lr = (oi >> 28) + (pi >> 14) + Br * di, et[It++] = oi & 268435455;
|
|
20248
20248
|
}
|
|
20249
20249
|
return lr;
|
|
20250
20250
|
}
|
|
@@ -20259,8 +20259,8 @@ function requireJsbn() {
|
|
|
20259
20259
|
return M.charAt(Le);
|
|
20260
20260
|
}
|
|
20261
20261
|
function C(Le, We) {
|
|
20262
|
-
var
|
|
20263
|
-
return
|
|
20262
|
+
var et = P[Le.charCodeAt(We)];
|
|
20263
|
+
return et ?? -1;
|
|
20264
20264
|
}
|
|
20265
20265
|
function k(Le) {
|
|
20266
20266
|
for (var We = this.t - 1; We >= 0; --We) Le[We] = this[We];
|
|
@@ -20273,7 +20273,7 @@ function requireJsbn() {
|
|
|
20273
20273
|
var We = B();
|
|
20274
20274
|
return We.fromInt(Le), We;
|
|
20275
20275
|
}
|
|
20276
|
-
function H(Le, We,
|
|
20276
|
+
function H(Le, We, et) {
|
|
20277
20277
|
var It;
|
|
20278
20278
|
switch (We) {
|
|
20279
20279
|
case 2:
|
|
@@ -20307,7 +20307,7 @@ function requireJsbn() {
|
|
|
20307
20307
|
}
|
|
20308
20308
|
gr = !1, Ar === 0 ? this[this.t++] = Br : Ar + It > this.DB ? (this[this.t - 1] |= (Br & (1 << this.DB - Ar) - 1) << Ar, this[this.t++] = Br >> this.DB - Ar) : this[this.t - 1] |= Br << Ar, Ar += It, Ar >= this.DB && (Ar -= this.DB);
|
|
20309
20309
|
}
|
|
20310
|
-
!
|
|
20310
|
+
!et && It == 8 && (Le[0] & 128) != 0 && (this.s = -1, Ar > 0 && (this[this.t - 1] |= (1 << this.DB - Ar) - 1 << Ar)), this.clamp(), gr && _.ZERO.subTo(this, this);
|
|
20311
20311
|
}
|
|
20312
20312
|
function z(Le, We) {
|
|
20313
20313
|
this.fromString(Le, 256, We);
|
|
@@ -20327,10 +20327,10 @@ function requireJsbn() {
|
|
|
20327
20327
|
else if (Le == 32) We = 5;
|
|
20328
20328
|
else if (Le == 4) We = 2;
|
|
20329
20329
|
else return this.toRadix(Le);
|
|
20330
|
-
var
|
|
20330
|
+
var et = (1 << We) - 1, It, lr = !1, gr = "", Ar = this.t, Br = this.DB - Ar * this.DB % We;
|
|
20331
20331
|
if (Ar-- > 0)
|
|
20332
20332
|
for (Br < this.DB && (It = this[Ar] >> Br) > 0 && (lr = !0, gr = q(It)); Ar >= 0; )
|
|
20333
|
-
Br < We ? (It = (this[Ar] & (1 << Br) - 1) << We - Br, It |= this[--Ar] >> (Br += this.DB - We)) : (It = this[Ar] >> (Br -= We) &
|
|
20333
|
+
Br < We ? (It = (this[Ar] & (1 << Br) - 1) << We - Br, It |= this[--Ar] >> (Br += this.DB - We)) : (It = this[Ar] >> (Br -= We) & et, Br <= 0 && (Br += this.DB, --Ar)), It > 0 && (lr = !0), lr && (gr += q(It));
|
|
20334
20334
|
return lr ? gr : "0";
|
|
20335
20335
|
}
|
|
20336
20336
|
function qe() {
|
|
@@ -20343,97 +20343,97 @@ function requireJsbn() {
|
|
|
20343
20343
|
function ze(Le) {
|
|
20344
20344
|
var We = this.s - Le.s;
|
|
20345
20345
|
if (We != 0) return We;
|
|
20346
|
-
var
|
|
20347
|
-
if (We =
|
|
20348
|
-
for (; --
|
|
20346
|
+
var et = this.t;
|
|
20347
|
+
if (We = et - Le.t, We != 0) return this.s < 0 ? -We : We;
|
|
20348
|
+
for (; --et >= 0; ) if ((We = this[et] - Le[et]) != 0) return We;
|
|
20349
20349
|
return 0;
|
|
20350
20350
|
}
|
|
20351
|
-
function
|
|
20352
|
-
var We = 1,
|
|
20353
|
-
return (
|
|
20351
|
+
function tt(Le) {
|
|
20352
|
+
var We = 1, et;
|
|
20353
|
+
return (et = Le >>> 16) != 0 && (Le = et, We += 16), (et = Le >> 8) != 0 && (Le = et, We += 8), (et = Le >> 4) != 0 && (Le = et, We += 4), (et = Le >> 2) != 0 && (Le = et, We += 2), (et = Le >> 1) != 0 && (Le = et, We += 1), We;
|
|
20354
20354
|
}
|
|
20355
20355
|
function rt() {
|
|
20356
|
-
return this.t <= 0 ? 0 : this.DB * (this.t - 1) +
|
|
20356
|
+
return this.t <= 0 ? 0 : this.DB * (this.t - 1) + tt(this[this.t - 1] ^ this.s & this.DM);
|
|
20357
20357
|
}
|
|
20358
20358
|
function Ct(Le, We) {
|
|
20359
|
-
var
|
|
20360
|
-
for (
|
|
20361
|
-
for (
|
|
20359
|
+
var et;
|
|
20360
|
+
for (et = this.t - 1; et >= 0; --et) We[et + Le] = this[et];
|
|
20361
|
+
for (et = Le - 1; et >= 0; --et) We[et] = 0;
|
|
20362
20362
|
We.t = this.t + Le, We.s = this.s;
|
|
20363
20363
|
}
|
|
20364
20364
|
function Ve(Le, We) {
|
|
20365
|
-
for (var
|
|
20365
|
+
for (var et = Le; et < this.t; ++et) We[et - Le] = this[et];
|
|
20366
20366
|
We.t = Math.max(this.t - Le, 0), We.s = this.s;
|
|
20367
20367
|
}
|
|
20368
20368
|
function F(Le, We) {
|
|
20369
|
-
var
|
|
20369
|
+
var et = Le % this.DB, It = this.DB - et, lr = (1 << It) - 1, gr = Math.floor(Le / this.DB), Ar = this.s << et & this.DM, Br;
|
|
20370
20370
|
for (Br = this.t - 1; Br >= 0; --Br)
|
|
20371
|
-
We[Br + gr + 1] = this[Br] >> It | Ar, Ar = (this[Br] & lr) <<
|
|
20371
|
+
We[Br + gr + 1] = this[Br] >> It | Ar, Ar = (this[Br] & lr) << et;
|
|
20372
20372
|
for (Br = gr - 1; Br >= 0; --Br) We[Br] = 0;
|
|
20373
20373
|
We[gr] = Ar, We.t = this.t + gr + 1, We.s = this.s, We.clamp();
|
|
20374
20374
|
}
|
|
20375
20375
|
function K(Le, We) {
|
|
20376
20376
|
We.s = this.s;
|
|
20377
|
-
var
|
|
20378
|
-
if (
|
|
20377
|
+
var et = Math.floor(Le / this.DB);
|
|
20378
|
+
if (et >= this.t) {
|
|
20379
20379
|
We.t = 0;
|
|
20380
20380
|
return;
|
|
20381
20381
|
}
|
|
20382
20382
|
var It = Le % this.DB, lr = this.DB - It, gr = (1 << It) - 1;
|
|
20383
|
-
We[0] = this[
|
|
20384
|
-
for (var Ar =
|
|
20385
|
-
We[Ar -
|
|
20386
|
-
It > 0 && (We[this.t -
|
|
20383
|
+
We[0] = this[et] >> It;
|
|
20384
|
+
for (var Ar = et + 1; Ar < this.t; ++Ar)
|
|
20385
|
+
We[Ar - et - 1] |= (this[Ar] & gr) << lr, We[Ar - et] = this[Ar] >> It;
|
|
20386
|
+
It > 0 && (We[this.t - et - 1] |= (this.s & gr) << lr), We.t = this.t - et, We.clamp();
|
|
20387
20387
|
}
|
|
20388
20388
|
function L(Le, We) {
|
|
20389
|
-
for (var
|
|
20390
|
-
It += this[
|
|
20389
|
+
for (var et = 0, It = 0, lr = Math.min(Le.t, this.t); et < lr; )
|
|
20390
|
+
It += this[et] - Le[et], We[et++] = It & this.DM, It >>= this.DB;
|
|
20391
20391
|
if (Le.t < this.t) {
|
|
20392
|
-
for (It -= Le.s;
|
|
20393
|
-
It += this[
|
|
20392
|
+
for (It -= Le.s; et < this.t; )
|
|
20393
|
+
It += this[et], We[et++] = It & this.DM, It >>= this.DB;
|
|
20394
20394
|
It += this.s;
|
|
20395
20395
|
} else {
|
|
20396
|
-
for (It += this.s;
|
|
20397
|
-
It -= Le[
|
|
20396
|
+
for (It += this.s; et < Le.t; )
|
|
20397
|
+
It -= Le[et], We[et++] = It & this.DM, It >>= this.DB;
|
|
20398
20398
|
It -= Le.s;
|
|
20399
20399
|
}
|
|
20400
|
-
We.s = It < 0 ? -1 : 0, It < -1 ? We[
|
|
20400
|
+
We.s = It < 0 ? -1 : 0, It < -1 ? We[et++] = this.DV + It : It > 0 && (We[et++] = It), We.t = et, We.clamp();
|
|
20401
20401
|
}
|
|
20402
20402
|
function J(Le, We) {
|
|
20403
|
-
var
|
|
20403
|
+
var et = this.abs(), It = Le.abs(), lr = et.t;
|
|
20404
20404
|
for (We.t = lr + It.t; --lr >= 0; ) We[lr] = 0;
|
|
20405
|
-
for (lr = 0; lr < It.t; ++lr) We[lr +
|
|
20405
|
+
for (lr = 0; lr < It.t; ++lr) We[lr + et.t] = et.am(0, It[lr], We, lr, 0, et.t);
|
|
20406
20406
|
We.s = 0, We.clamp(), this.s != Le.s && _.ZERO.subTo(We, We);
|
|
20407
20407
|
}
|
|
20408
20408
|
function oe(Le) {
|
|
20409
|
-
for (var We = this.abs(),
|
|
20410
|
-
for (
|
|
20411
|
-
var It = We.am(
|
|
20412
|
-
(Le[
|
|
20409
|
+
for (var We = this.abs(), et = Le.t = 2 * We.t; --et >= 0; ) Le[et] = 0;
|
|
20410
|
+
for (et = 0; et < We.t - 1; ++et) {
|
|
20411
|
+
var It = We.am(et, We[et], Le, 2 * et, 0, 1);
|
|
20412
|
+
(Le[et + We.t] += We.am(et + 1, 2 * We[et], Le, 2 * et + 1, It, We.t - et - 1)) >= We.DV && (Le[et + We.t] -= We.DV, Le[et + We.t + 1] = 1);
|
|
20413
20413
|
}
|
|
20414
|
-
Le.t > 0 && (Le[Le.t - 1] += We.am(
|
|
20414
|
+
Le.t > 0 && (Le[Le.t - 1] += We.am(et, We[et], Le, 2 * et, 0, 1)), Le.s = 0, Le.clamp();
|
|
20415
20415
|
}
|
|
20416
|
-
function te(Le, We,
|
|
20416
|
+
function te(Le, We, et) {
|
|
20417
20417
|
var It = Le.abs();
|
|
20418
20418
|
if (!(It.t <= 0)) {
|
|
20419
20419
|
var lr = this.abs();
|
|
20420
20420
|
if (lr.t < It.t) {
|
|
20421
|
-
We?.fromInt(0),
|
|
20421
|
+
We?.fromInt(0), et != null && this.copyTo(et);
|
|
20422
20422
|
return;
|
|
20423
20423
|
}
|
|
20424
|
-
|
|
20425
|
-
var gr = B(), Ar = this.s, Br = Le.s, oi = this.DB -
|
|
20426
|
-
oi > 0 ? (It.lShiftTo(oi, gr), lr.lShiftTo(oi,
|
|
20424
|
+
et == null && (et = B());
|
|
20425
|
+
var gr = B(), Ar = this.s, Br = Le.s, oi = this.DB - tt(It[It.t - 1]);
|
|
20426
|
+
oi > 0 ? (It.lShiftTo(oi, gr), lr.lShiftTo(oi, et)) : (It.copyTo(gr), lr.copyTo(et));
|
|
20427
20427
|
var di = gr.t, pi = gr[di - 1];
|
|
20428
20428
|
if (pi !== 0) {
|
|
20429
|
-
var ti = pi * (1 << this.F1) + (di > 1 ? gr[di - 2] >> this.F2 : 0), wi = this.FV / ti, Bi = (1 << this.F1) / ti, si = 1 << this.F2, ai =
|
|
20430
|
-
for (gr.dlShiftTo(Pi, Ti),
|
|
20429
|
+
var ti = pi * (1 << this.F1) + (di > 1 ? gr[di - 2] >> this.F2 : 0), wi = this.FV / ti, Bi = (1 << this.F1) / ti, si = 1 << this.F2, ai = et.t, Pi = ai - di, Ti = We ?? B();
|
|
20430
|
+
for (gr.dlShiftTo(Pi, Ti), et.compareTo(Ti) >= 0 && (et[et.t++] = 1, et.subTo(Ti, et)), _.ONE.dlShiftTo(di, Ti), Ti.subTo(gr, gr); gr.t < di; ) gr[gr.t++] = 0;
|
|
20431
20431
|
for (; --Pi >= 0; ) {
|
|
20432
|
-
var Wi =
|
|
20433
|
-
if ((
|
|
20434
|
-
for (gr.dlShiftTo(Pi, Ti),
|
|
20432
|
+
var Wi = et[--ai] == pi ? this.DM : Math.floor(et[ai] * wi + (et[ai - 1] + si) * Bi);
|
|
20433
|
+
if ((et[ai] += gr.am(0, Wi, et, Pi, 0, di)) < Wi)
|
|
20434
|
+
for (gr.dlShiftTo(Pi, Ti), et.subTo(Ti, et); et[ai] < --Wi; ) et.subTo(Ti, et);
|
|
20435
20435
|
}
|
|
20436
|
-
We != null && (
|
|
20436
|
+
We != null && (et.drShiftTo(di, We), Ar != Br && _.ZERO.subTo(We, We)), et.t = di, et.clamp(), oi > 0 && et.rShiftTo(oi, et), Ar < 0 && _.ZERO.subTo(et, et);
|
|
20437
20437
|
}
|
|
20438
20438
|
}
|
|
20439
20439
|
}
|
|
@@ -20453,8 +20453,8 @@ function requireJsbn() {
|
|
|
20453
20453
|
function X(Le) {
|
|
20454
20454
|
Le.divRemTo(this.m, null, Le);
|
|
20455
20455
|
}
|
|
20456
|
-
function Ie(Le, We,
|
|
20457
|
-
Le.multiplyTo(We,
|
|
20456
|
+
function Ie(Le, We, et) {
|
|
20457
|
+
Le.multiplyTo(We, et), this.reduce(et);
|
|
20458
20458
|
}
|
|
20459
20459
|
function He(Le, We) {
|
|
20460
20460
|
Le.squareTo(We), this.reduce(We);
|
|
@@ -20482,17 +20482,17 @@ function requireJsbn() {
|
|
|
20482
20482
|
for (; Le.t <= this.mt2; )
|
|
20483
20483
|
Le[Le.t++] = 0;
|
|
20484
20484
|
for (var We = 0; We < this.m.t; ++We) {
|
|
20485
|
-
var
|
|
20486
|
-
for (
|
|
20487
|
-
Le[
|
|
20485
|
+
var et = Le[We] & 32767, It = et * this.mpl + ((et * this.mph + (Le[We] >> 15) * this.mpl & this.um) << 15) & Le.DM;
|
|
20486
|
+
for (et = We + this.m.t, Le[et] += this.m.am(0, It, Le, We, 0, this.m.t); Le[et] >= Le.DV; )
|
|
20487
|
+
Le[et] -= Le.DV, Le[++et]++;
|
|
20488
20488
|
}
|
|
20489
20489
|
Le.clamp(), Le.drShiftTo(this.m.t, Le), Le.compareTo(this.m) >= 0 && Le.subTo(this.m, Le);
|
|
20490
20490
|
}
|
|
20491
20491
|
function st(Le, We) {
|
|
20492
20492
|
Le.squareTo(We), this.reduce(We);
|
|
20493
20493
|
}
|
|
20494
|
-
function Fe(Le, We,
|
|
20495
|
-
Le.multiplyTo(We,
|
|
20494
|
+
function Fe(Le, We, et) {
|
|
20495
|
+
Le.multiplyTo(We, et), this.reduce(et);
|
|
20496
20496
|
}
|
|
20497
20497
|
Ne.prototype.convert = Ae, Ne.prototype.revert = Oe, Ne.prototype.reduce = Xe, Ne.prototype.mulTo = Fe, Ne.prototype.sqrTo = st;
|
|
20498
20498
|
function je() {
|
|
@@ -20500,18 +20500,18 @@ function requireJsbn() {
|
|
|
20500
20500
|
}
|
|
20501
20501
|
function vt(Le, We) {
|
|
20502
20502
|
if (Le > 4294967295 || Le < 1) return _.ONE;
|
|
20503
|
-
var
|
|
20504
|
-
for (lr.copyTo(
|
|
20505
|
-
if (We.sqrTo(
|
|
20503
|
+
var et = B(), It = B(), lr = We.convert(this), gr = tt(Le) - 1;
|
|
20504
|
+
for (lr.copyTo(et); --gr >= 0; )
|
|
20505
|
+
if (We.sqrTo(et, It), (Le & 1 << gr) > 0) We.mulTo(It, lr, et);
|
|
20506
20506
|
else {
|
|
20507
|
-
var Ar =
|
|
20508
|
-
|
|
20507
|
+
var Ar = et;
|
|
20508
|
+
et = It, It = Ar;
|
|
20509
20509
|
}
|
|
20510
|
-
return We.revert(
|
|
20510
|
+
return We.revert(et);
|
|
20511
20511
|
}
|
|
20512
20512
|
function Jt(Le, We) {
|
|
20513
|
-
var
|
|
20514
|
-
return Le < 256 || We.isEven() ?
|
|
20513
|
+
var et;
|
|
20514
|
+
return Le < 256 || We.isEven() ? et = new ne(We) : et = new Ne(We), this.exp(Le, et);
|
|
20515
20515
|
}
|
|
20516
20516
|
function ur() {
|
|
20517
20517
|
var Le = B();
|
|
@@ -20541,20 +20541,20 @@ function requireJsbn() {
|
|
|
20541
20541
|
}
|
|
20542
20542
|
function dr(Le) {
|
|
20543
20543
|
if (Le == null && (Le = 10), this.signum() === 0 || Le < 2 || Le > 36) return "0";
|
|
20544
|
-
var We = this.chunkSize(Le),
|
|
20544
|
+
var We = this.chunkSize(Le), et = Math.pow(Le, We), It = D(et), lr = B(), gr = B(), Ar = "";
|
|
20545
20545
|
for (this.divRemTo(It, lr, gr); lr.signum() > 0; )
|
|
20546
|
-
Ar = (
|
|
20546
|
+
Ar = (et + gr.intValue()).toString(Le).substr(1) + Ar, lr.divRemTo(It, lr, gr);
|
|
20547
20547
|
return gr.intValue().toString(Le) + Ar;
|
|
20548
20548
|
}
|
|
20549
20549
|
function _r(Le, We) {
|
|
20550
20550
|
this.fromInt(0), We == null && (We = 10);
|
|
20551
|
-
for (var
|
|
20551
|
+
for (var et = this.chunkSize(We), It = Math.pow(We, et), lr = !1, gr = 0, Ar = 0, Br = 0; Br < Le.length; ++Br) {
|
|
20552
20552
|
var oi = C(Le, Br);
|
|
20553
20553
|
if (oi < 0) {
|
|
20554
20554
|
Le.charAt(Br) == "-" && this.signum() === 0 && (lr = !0);
|
|
20555
20555
|
continue;
|
|
20556
20556
|
}
|
|
20557
|
-
Ar = We * Ar + oi, ++gr >=
|
|
20557
|
+
Ar = We * Ar + oi, ++gr >= et && (this.dMultiply(It), this.dAddOffset(Ar, 0), gr = 0, Ar = 0);
|
|
20558
20558
|
}
|
|
20559
20559
|
gr > 0 && (this.dMultiply(Math.pow(We, gr)), this.dAddOffset(Ar, 0)), lr && _.ZERO.subTo(this, this);
|
|
20560
20560
|
}
|
|
@@ -20565,17 +20565,17 @@ function requireJsbn() {
|
|
|
20565
20565
|
for (this.fromNumber(Le), this.testBit(Le - 1) || this.bitwiseTo(_.ONE.shiftLeft(Le - 1), Se, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(We); )
|
|
20566
20566
|
this.dAddOffset(2, 0), this.bitLength() > Le && this.subTo(_.ONE.shiftLeft(Le - 1), this);
|
|
20567
20567
|
else {
|
|
20568
|
-
var
|
|
20569
|
-
It > 0 ?
|
|
20568
|
+
var et = v.randomBytes((Le >> 3) + 1), It = Le & 7;
|
|
20569
|
+
It > 0 ? et[0] &= (1 << It) - 1 : et[0] = 0, this.fromByteArray(et);
|
|
20570
20570
|
}
|
|
20571
20571
|
}
|
|
20572
20572
|
function lt() {
|
|
20573
20573
|
var Le = this.t, We = new Array();
|
|
20574
20574
|
We[0] = this.s;
|
|
20575
|
-
var
|
|
20575
|
+
var et = this.DB - Le * this.DB % 8, It, lr = 0;
|
|
20576
20576
|
if (Le-- > 0)
|
|
20577
|
-
for (
|
|
20578
|
-
|
|
20577
|
+
for (et < this.DB && (It = this[Le] >> et) != (this.s & this.DM) >> et && (We[lr++] = It | this.s << this.DB - et); Le >= 0; )
|
|
20578
|
+
et < 8 ? (It = (this[Le] & (1 << et) - 1) << 8 - et, It |= this[--Le] >> (et += this.DB - 8)) : (It = this[Le] >> (et -= 8) & 255, et <= 0 && (et += this.DB, --Le)), (It & 128) != 0 && (It |= -256), lr === 0 && (this.s & 128) != (It & 128) && ++lr, (lr > 0 || It != this.s) && (We[lr++] = It);
|
|
20579
20579
|
return We;
|
|
20580
20580
|
}
|
|
20581
20581
|
function At(Le) {
|
|
@@ -20584,8 +20584,8 @@ function requireJsbn() {
|
|
|
20584
20584
|
We = We.slice(1);
|
|
20585
20585
|
else if (e.isNumber(Le)) {
|
|
20586
20586
|
if (We.length > Le) {
|
|
20587
|
-
for (var
|
|
20588
|
-
if (We[
|
|
20587
|
+
for (var et = 0; et < We.length - Le; et++)
|
|
20588
|
+
if (We[et] !== 0)
|
|
20589
20589
|
return null;
|
|
20590
20590
|
return We.slice(We.length - Le);
|
|
20591
20591
|
} else if (We.length < Le) {
|
|
@@ -20604,17 +20604,17 @@ function requireJsbn() {
|
|
|
20604
20604
|
function cr(Le) {
|
|
20605
20605
|
return this.compareTo(Le) > 0 ? this : Le;
|
|
20606
20606
|
}
|
|
20607
|
-
function xr(Le, We,
|
|
20607
|
+
function xr(Le, We, et) {
|
|
20608
20608
|
var It, lr, gr = Math.min(Le.t, this.t);
|
|
20609
|
-
for (It = 0; It < gr; ++It)
|
|
20609
|
+
for (It = 0; It < gr; ++It) et[It] = We(this[It], Le[It]);
|
|
20610
20610
|
if (Le.t < this.t) {
|
|
20611
|
-
for (lr = Le.s & this.DM, It = gr; It < this.t; ++It)
|
|
20612
|
-
|
|
20611
|
+
for (lr = Le.s & this.DM, It = gr; It < this.t; ++It) et[It] = We(this[It], lr);
|
|
20612
|
+
et.t = this.t;
|
|
20613
20613
|
} else {
|
|
20614
|
-
for (lr = this.s & this.DM, It = gr; It < Le.t; ++It)
|
|
20615
|
-
|
|
20614
|
+
for (lr = this.s & this.DM, It = gr; It < Le.t; ++It) et[It] = We(lr, Le[It]);
|
|
20615
|
+
et.t = Le.t;
|
|
20616
20616
|
}
|
|
20617
|
-
|
|
20617
|
+
et.s = We(this.s, Le.s), et.clamp();
|
|
20618
20618
|
}
|
|
20619
20619
|
function ke(Le, We) {
|
|
20620
20620
|
return Le & We;
|
|
@@ -20672,7 +20672,7 @@ function requireJsbn() {
|
|
|
20672
20672
|
return We;
|
|
20673
20673
|
}
|
|
20674
20674
|
function zr() {
|
|
20675
|
-
for (var Le = 0, We = this.s & this.DM,
|
|
20675
|
+
for (var Le = 0, We = this.s & this.DM, et = 0; et < this.t; ++et) Le += Hr(this[et] ^ We);
|
|
20676
20676
|
return Le;
|
|
20677
20677
|
}
|
|
20678
20678
|
function Fr(Le) {
|
|
@@ -20680,8 +20680,8 @@ function requireJsbn() {
|
|
|
20680
20680
|
return We >= this.t ? this.s != 0 : (this[We] & 1 << Le % this.DB) != 0;
|
|
20681
20681
|
}
|
|
20682
20682
|
function Gr(Le, We) {
|
|
20683
|
-
var
|
|
20684
|
-
return this.bitwiseTo(
|
|
20683
|
+
var et = _.ONE.shiftLeft(Le);
|
|
20684
|
+
return this.bitwiseTo(et, We, et), et;
|
|
20685
20685
|
}
|
|
20686
20686
|
function Jr(Le) {
|
|
20687
20687
|
return this.changeBit(Le, Se);
|
|
@@ -20693,18 +20693,18 @@ function requireJsbn() {
|
|
|
20693
20693
|
return this.changeBit(Le, yt);
|
|
20694
20694
|
}
|
|
20695
20695
|
function xe(Le, We) {
|
|
20696
|
-
for (var
|
|
20697
|
-
It += this[
|
|
20696
|
+
for (var et = 0, It = 0, lr = Math.min(Le.t, this.t); et < lr; )
|
|
20697
|
+
It += this[et] + Le[et], We[et++] = It & this.DM, It >>= this.DB;
|
|
20698
20698
|
if (Le.t < this.t) {
|
|
20699
|
-
for (It += Le.s;
|
|
20700
|
-
It += this[
|
|
20699
|
+
for (It += Le.s; et < this.t; )
|
|
20700
|
+
It += this[et], We[et++] = It & this.DM, It >>= this.DB;
|
|
20701
20701
|
It += this.s;
|
|
20702
20702
|
} else {
|
|
20703
|
-
for (It += this.s;
|
|
20704
|
-
It += Le[
|
|
20703
|
+
for (It += this.s; et < Le.t; )
|
|
20704
|
+
It += Le[et], We[et++] = It & this.DM, It >>= this.DB;
|
|
20705
20705
|
It += Le.s;
|
|
20706
20706
|
}
|
|
20707
|
-
We.s = It < 0 ? -1 : 0, It > 0 ? We[
|
|
20707
|
+
We.s = It < 0 ? -1 : 0, It > 0 ? We[et++] = It : It < -1 && (We[et++] = this.DV + It), We.t = et, We.clamp();
|
|
20708
20708
|
}
|
|
20709
20709
|
function Ze(Le) {
|
|
20710
20710
|
var We = B();
|
|
@@ -20731,8 +20731,8 @@ function requireJsbn() {
|
|
|
20731
20731
|
return this.divRemTo(Le, null, We), We;
|
|
20732
20732
|
}
|
|
20733
20733
|
function Tr(Le) {
|
|
20734
|
-
var We = B(),
|
|
20735
|
-
return this.divRemTo(Le, We,
|
|
20734
|
+
var We = B(), et = B();
|
|
20735
|
+
return this.divRemTo(Le, We, et), new Array(We, et);
|
|
20736
20736
|
}
|
|
20737
20737
|
function Mt(Le) {
|
|
20738
20738
|
this[this.t] = this.am(0, Le - 1, this, 0, 0, this.t), ++this.t, this.clamp();
|
|
@@ -20749,8 +20749,8 @@ function requireJsbn() {
|
|
|
20749
20749
|
function Zr(Le) {
|
|
20750
20750
|
return Le;
|
|
20751
20751
|
}
|
|
20752
|
-
function Kr(Le, We,
|
|
20753
|
-
Le.multiplyTo(We,
|
|
20752
|
+
function Kr(Le, We, et) {
|
|
20753
|
+
Le.multiplyTo(We, et);
|
|
20754
20754
|
}
|
|
20755
20755
|
function Xr(Le, We) {
|
|
20756
20756
|
Le.squareTo(We);
|
|
@@ -20759,21 +20759,21 @@ function requireJsbn() {
|
|
|
20759
20759
|
function vi(Le) {
|
|
20760
20760
|
return this.exp(Le, new Ur());
|
|
20761
20761
|
}
|
|
20762
|
-
function Ei(Le, We,
|
|
20762
|
+
function Ei(Le, We, et) {
|
|
20763
20763
|
var It = Math.min(this.t + Le.t, We);
|
|
20764
|
-
for (
|
|
20764
|
+
for (et.s = 0, et.t = It; It > 0; ) et[--It] = 0;
|
|
20765
20765
|
var lr;
|
|
20766
|
-
for (lr =
|
|
20767
|
-
for (lr = Math.min(Le.t, We); It < lr; ++It) this.am(0, Le[It],
|
|
20768
|
-
|
|
20766
|
+
for (lr = et.t - this.t; It < lr; ++It) et[It + this.t] = this.am(0, Le[It], et, It, 0, this.t);
|
|
20767
|
+
for (lr = Math.min(Le.t, We); It < lr; ++It) this.am(0, Le[It], et, It, 0, We - It);
|
|
20768
|
+
et.clamp();
|
|
20769
20769
|
}
|
|
20770
|
-
function ci(Le, We,
|
|
20770
|
+
function ci(Le, We, et) {
|
|
20771
20771
|
--We;
|
|
20772
|
-
var It =
|
|
20773
|
-
for (
|
|
20772
|
+
var It = et.t = this.t + Le.t - We;
|
|
20773
|
+
for (et.s = 0; --It >= 0; ) et[It] = 0;
|
|
20774
20774
|
for (It = Math.max(We - this.t, 0); It < Le.t; ++It)
|
|
20775
|
-
|
|
20776
|
-
|
|
20775
|
+
et[this.t + It - We] = this.am(We - It, Le[It], et, 0, 0, this.t + It - We);
|
|
20776
|
+
et.clamp(), et.drShiftTo(1, et);
|
|
20777
20777
|
}
|
|
20778
20778
|
function li(Le) {
|
|
20779
20779
|
this.r2 = B(), this.q3 = B(), _.ONE.dlShiftTo(2 * Le.t, this.r2), this.mu = this.r2.divide(Le), this.m = Le;
|
|
@@ -20794,14 +20794,14 @@ function requireJsbn() {
|
|
|
20794
20794
|
function Si(Le, We) {
|
|
20795
20795
|
Le.squareTo(We), this.reduce(We);
|
|
20796
20796
|
}
|
|
20797
|
-
function xi(Le, We,
|
|
20798
|
-
Le.multiplyTo(We,
|
|
20797
|
+
function xi(Le, We, et) {
|
|
20798
|
+
Le.multiplyTo(We, et), this.reduce(et);
|
|
20799
20799
|
}
|
|
20800
20800
|
li.prototype.convert = Ii, li.prototype.revert = Qr, li.prototype.reduce = fi, li.prototype.mulTo = xi, li.prototype.sqrTo = Si;
|
|
20801
20801
|
function Ri(Le, We) {
|
|
20802
|
-
var
|
|
20803
|
-
if (
|
|
20804
|
-
|
|
20802
|
+
var et = Le.bitLength(), It, lr = D(1), gr;
|
|
20803
|
+
if (et <= 0) return lr;
|
|
20804
|
+
et < 18 ? It = 1 : et < 48 ? It = 3 : et < 144 ? It = 4 : et < 768 ? It = 5 : It = 6, et < 8 ? gr = new ne(We) : We.isEven() ? gr = new li(We) : gr = new Ne(We);
|
|
20805
20805
|
var Ar = new Array(), Br = 3, oi = It - 1, di = (1 << It) - 1;
|
|
20806
20806
|
if (Ar[1] = gr.convert(this), It > 1) {
|
|
20807
20807
|
var pi = B();
|
|
@@ -20809,50 +20809,50 @@ function requireJsbn() {
|
|
|
20809
20809
|
Ar[Br] = B(), gr.mulTo(pi, Ar[Br - 2], Ar[Br]), Br += 2;
|
|
20810
20810
|
}
|
|
20811
20811
|
var ti = Le.t - 1, wi, Bi = !0, si = B(), ai;
|
|
20812
|
-
for (
|
|
20813
|
-
for (
|
|
20812
|
+
for (et = tt(Le[ti]) - 1; ti >= 0; ) {
|
|
20813
|
+
for (et >= oi ? wi = Le[ti] >> et - oi & di : (wi = (Le[ti] & (1 << et + 1) - 1) << oi - et, ti > 0 && (wi |= Le[ti - 1] >> this.DB + et - oi)), Br = It; (wi & 1) === 0; )
|
|
20814
20814
|
wi >>= 1, --Br;
|
|
20815
|
-
if ((
|
|
20815
|
+
if ((et -= Br) < 0 && (et += this.DB, --ti), Bi)
|
|
20816
20816
|
Ar[wi].copyTo(lr), Bi = !1;
|
|
20817
20817
|
else {
|
|
20818
20818
|
for (; Br > 1; )
|
|
20819
20819
|
gr.sqrTo(lr, si), gr.sqrTo(si, lr), Br -= 2;
|
|
20820
20820
|
Br > 0 ? gr.sqrTo(lr, si) : (ai = lr, lr = si, si = ai), gr.mulTo(si, Ar[wi], lr);
|
|
20821
20821
|
}
|
|
20822
|
-
for (; ti >= 0 && (Le[ti] & 1 <<
|
|
20823
|
-
gr.sqrTo(lr, si), ai = lr, lr = si, si = ai, --
|
|
20822
|
+
for (; ti >= 0 && (Le[ti] & 1 << et) === 0; )
|
|
20823
|
+
gr.sqrTo(lr, si), ai = lr, lr = si, si = ai, --et < 0 && (et = this.DB - 1, --ti);
|
|
20824
20824
|
}
|
|
20825
20825
|
return gr.revert(lr);
|
|
20826
20826
|
}
|
|
20827
20827
|
function ei(Le) {
|
|
20828
|
-
var We = this.s < 0 ? this.negate() : this.clone(),
|
|
20829
|
-
if (We.compareTo(
|
|
20828
|
+
var We = this.s < 0 ? this.negate() : this.clone(), et = Le.s < 0 ? Le.negate() : Le.clone();
|
|
20829
|
+
if (We.compareTo(et) < 0) {
|
|
20830
20830
|
var It = We;
|
|
20831
|
-
We =
|
|
20831
|
+
We = et, et = It;
|
|
20832
20832
|
}
|
|
20833
|
-
var lr = We.getLowestSetBit(), gr =
|
|
20833
|
+
var lr = We.getLowestSetBit(), gr = et.getLowestSetBit();
|
|
20834
20834
|
if (gr < 0) return We;
|
|
20835
|
-
for (lr < gr && (gr = lr), gr > 0 && (We.rShiftTo(gr, We),
|
|
20836
|
-
(lr = We.getLowestSetBit()) > 0 && We.rShiftTo(lr, We), (lr =
|
|
20837
|
-
return gr > 0 &&
|
|
20835
|
+
for (lr < gr && (gr = lr), gr > 0 && (We.rShiftTo(gr, We), et.rShiftTo(gr, et)); We.signum() > 0; )
|
|
20836
|
+
(lr = We.getLowestSetBit()) > 0 && We.rShiftTo(lr, We), (lr = et.getLowestSetBit()) > 0 && et.rShiftTo(lr, et), We.compareTo(et) >= 0 ? (We.subTo(et, We), We.rShiftTo(1, We)) : (et.subTo(We, et), et.rShiftTo(1, et));
|
|
20837
|
+
return gr > 0 && et.lShiftTo(gr, et), et;
|
|
20838
20838
|
}
|
|
20839
20839
|
function Xt(Le) {
|
|
20840
20840
|
if (Le <= 0) return 0;
|
|
20841
|
-
var We = this.DV % Le,
|
|
20841
|
+
var We = this.DV % Le, et = this.s < 0 ? Le - 1 : 0;
|
|
20842
20842
|
if (this.t > 0)
|
|
20843
|
-
if (We === 0)
|
|
20844
|
-
else for (var It = this.t - 1; It >= 0; --It)
|
|
20845
|
-
return
|
|
20843
|
+
if (We === 0) et = this[0] % Le;
|
|
20844
|
+
else for (var It = this.t - 1; It >= 0; --It) et = (We * et + this[It]) % Le;
|
|
20845
|
+
return et;
|
|
20846
20846
|
}
|
|
20847
20847
|
function Yr(Le) {
|
|
20848
20848
|
var We = Le.isEven();
|
|
20849
20849
|
if (this.isEven() && We || Le.signum() === 0) return _.ZERO;
|
|
20850
|
-
for (var
|
|
20851
|
-
for (;
|
|
20852
|
-
|
|
20850
|
+
for (var et = Le.clone(), It = this.clone(), lr = D(1), gr = D(0), Ar = D(0), Br = D(1); et.signum() != 0; ) {
|
|
20851
|
+
for (; et.isEven(); )
|
|
20852
|
+
et.rShiftTo(1, et), We ? ((!lr.isEven() || !gr.isEven()) && (lr.addTo(this, lr), gr.subTo(Le, gr)), lr.rShiftTo(1, lr)) : gr.isEven() || gr.subTo(Le, gr), gr.rShiftTo(1, gr);
|
|
20853
20853
|
for (; It.isEven(); )
|
|
20854
20854
|
It.rShiftTo(1, It), We ? ((!Ar.isEven() || !Br.isEven()) && (Ar.addTo(this, Ar), Br.subTo(Le, Br)), Ar.rShiftTo(1, Ar)) : Br.isEven() || Br.subTo(Le, Br), Br.rShiftTo(1, Br);
|
|
20855
|
-
|
|
20855
|
+
et.compareTo(It) >= 0 ? (et.subTo(It, et), We && lr.subTo(Ar, lr), gr.subTo(Br, gr)) : (It.subTo(et, It), We && Ar.subTo(lr, Ar), Br.subTo(gr, Br));
|
|
20856
20856
|
}
|
|
20857
20857
|
if (It.compareTo(_.ONE) != 0) return _.ZERO;
|
|
20858
20858
|
if (Br.compareTo(Le) >= 0) return Br.subtract(Le);
|
|
@@ -20862,29 +20862,29 @@ function requireJsbn() {
|
|
|
20862
20862
|
}
|
|
20863
20863
|
var ri = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997], ii = (1 << 26) / ri[ri.length - 1];
|
|
20864
20864
|
function mi(Le) {
|
|
20865
|
-
var We,
|
|
20866
|
-
if (
|
|
20865
|
+
var We, et = this.abs();
|
|
20866
|
+
if (et.t == 1 && et[0] <= ri[ri.length - 1]) {
|
|
20867
20867
|
for (We = 0; We < ri.length; ++We)
|
|
20868
|
-
if (
|
|
20868
|
+
if (et[0] == ri[We]) return !0;
|
|
20869
20869
|
return !1;
|
|
20870
20870
|
}
|
|
20871
|
-
if (
|
|
20871
|
+
if (et.isEven()) return !1;
|
|
20872
20872
|
for (We = 1; We < ri.length; ) {
|
|
20873
20873
|
for (var It = ri[We], lr = We + 1; lr < ri.length && It < ii; ) It *= ri[lr++];
|
|
20874
|
-
for (It =
|
|
20874
|
+
for (It = et.modInt(It); We < lr; ) if (It % ri[We++] === 0) return !1;
|
|
20875
20875
|
}
|
|
20876
|
-
return
|
|
20876
|
+
return et.millerRabin(Le);
|
|
20877
20877
|
}
|
|
20878
20878
|
function hi(Le) {
|
|
20879
|
-
var We = this.subtract(_.ONE),
|
|
20880
|
-
if (
|
|
20881
|
-
var It = We.shiftRight(
|
|
20879
|
+
var We = this.subtract(_.ONE), et = We.getLowestSetBit();
|
|
20880
|
+
if (et <= 0) return !1;
|
|
20881
|
+
var It = We.shiftRight(et);
|
|
20882
20882
|
Le = Le + 1 >> 1, Le > ri.length && (Le = ri.length);
|
|
20883
20883
|
for (var lr = B(), gr = 0; gr < Le; ++gr) {
|
|
20884
20884
|
lr.fromInt(ri[Math.floor(Math.random() * ri.length)]);
|
|
20885
20885
|
var Ar = lr.modPow(It, this);
|
|
20886
20886
|
if (Ar.compareTo(_.ONE) != 0 && Ar.compareTo(We) != 0) {
|
|
20887
|
-
for (var Br = 1; Br++ <
|
|
20887
|
+
for (var Br = 1; Br++ < et && Ar.compareTo(We) != 0; )
|
|
20888
20888
|
if (Ar = Ar.modPowInt(2, this), Ar.compareTo(_.ONE) === 0) return !1;
|
|
20889
20889
|
if (Ar.compareTo(We) != 0) return !1;
|
|
20890
20890
|
}
|
|
@@ -21112,8 +21112,8 @@ function requirePss() {
|
|
|
21112
21112
|
G.copy(Q), Q[G.length] = 1, D.copy(Q, G.length + 1);
|
|
21113
21113
|
for (var ee = q(z, Q.length, R), qe = Buffer$2.alloc(Q.length), $e = 0; $e < ee.length; $e++)
|
|
21114
21114
|
qe[$e] = Q[$e] ^ ee[$e];
|
|
21115
|
-
var ze = 8 * $ - x,
|
|
21116
|
-
qe[0] = qe[0] &
|
|
21115
|
+
var ze = 8 * $ - x, tt = 255 ^ 255 >> 8 - ze << 8 - ze;
|
|
21116
|
+
qe[0] = qe[0] & tt;
|
|
21117
21117
|
var rt = Buffer$2.alloc(qe.length + z.length + 1);
|
|
21118
21118
|
return qe.copy(rt, 0), z.copy(rt, qe.length), rt[rt.length - 1] = 188, rt;
|
|
21119
21119
|
}, M.prototype.emsa_pss_verify = function(P, x, R) {
|
|
@@ -21134,8 +21134,8 @@ function requirePss() {
|
|
|
21134
21134
|
return !1;
|
|
21135
21135
|
var $e = H.slice(H.length - k), ze = Buffer$2.alloc(8 + $ + k);
|
|
21136
21136
|
ze.fill(0, 0, 8), P.copy(ze, 8), $e.copy(ze, 8 + P.length);
|
|
21137
|
-
var
|
|
21138
|
-
return
|
|
21137
|
+
var tt = e.createHash(q);
|
|
21138
|
+
return tt.update(ze), tt = tt.digest(), ee.toString("hex") === tt.toString("hex");
|
|
21139
21139
|
}, new M(B, A);
|
|
21140
21140
|
}, pss.exports;
|
|
21141
21141
|
}
|
|
@@ -21479,15 +21479,15 @@ function requireErrors() {
|
|
|
21479
21479
|
var R = {}, q, C;
|
|
21480
21480
|
function k(G, Q, ee) {
|
|
21481
21481
|
ee || (ee = Error);
|
|
21482
|
-
function qe(ze,
|
|
21483
|
-
return typeof Q == "string" ? Q : Q(ze,
|
|
21482
|
+
function qe(ze, tt, rt) {
|
|
21483
|
+
return typeof Q == "string" ? Q : Q(ze, tt, rt);
|
|
21484
21484
|
}
|
|
21485
21485
|
var $e = /* @__PURE__ */ (function(ze) {
|
|
21486
21486
|
_(rt, ze);
|
|
21487
|
-
var
|
|
21487
|
+
var tt = A(rt);
|
|
21488
21488
|
function rt(Ct, Ve, F) {
|
|
21489
21489
|
var K;
|
|
21490
|
-
return E(this, rt), K =
|
|
21490
|
+
return E(this, rt), K = tt.call(this, qe(Ct, Ve, F)), K.code = G, K;
|
|
21491
21491
|
}
|
|
21492
21492
|
return e(rt);
|
|
21493
21493
|
})(ee);
|
|
@@ -21695,7 +21695,7 @@ function requireAssertion_error() {
|
|
|
21695
21695
|
function ze(ne, Y, ce) {
|
|
21696
21696
|
return (ce === void 0 || ce > ne.length) && (ce = ne.length), ne.substring(ce - Y.length, ce) === Y;
|
|
21697
21697
|
}
|
|
21698
|
-
function
|
|
21698
|
+
function tt(ne, Y) {
|
|
21699
21699
|
if (Y = Math.floor(Y), ne.length == 0 || Y == 0) return "";
|
|
21700
21700
|
var ce = ne.length * Y;
|
|
21701
21701
|
for (Y = Math.floor(Math.log(Y) / Math.log(2)); Y; )
|
|
@@ -21762,7 +21762,7 @@ function requireAssertion_error() {
|
|
|
21762
21762
|
for (; Oe[0][st] === Xe[0][st]; )
|
|
21763
21763
|
st++;
|
|
21764
21764
|
st > 2 && (Fe = `
|
|
21765
|
-
`.concat(
|
|
21765
|
+
`.concat(tt(" ", st), "^"), st = 0);
|
|
21766
21766
|
}
|
|
21767
21767
|
}
|
|
21768
21768
|
}
|
|
@@ -21970,8 +21970,8 @@ function requireImplementation$3() {
|
|
|
21970
21970
|
for (var $e in k)
|
|
21971
21971
|
!(Q && $e === "prototype") && e.call(k, $e) && G.push(String($e));
|
|
21972
21972
|
if (A)
|
|
21973
|
-
for (var ze = q(k),
|
|
21974
|
-
!(ze && M[
|
|
21973
|
+
for (var ze = q(k), tt = 0; tt < M.length; ++tt)
|
|
21974
|
+
!(ze && M[tt] === "constructor") && e.call(k, M[tt]) && G.push(M[tt]);
|
|
21975
21975
|
return G;
|
|
21976
21976
|
};
|
|
21977
21977
|
}
|
|
@@ -22242,7 +22242,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
22242
22242
|
function k(lt) {
|
|
22243
22243
|
return lt.call.bind(lt);
|
|
22244
22244
|
}
|
|
22245
|
-
var $ = k(Object.prototype.hasOwnProperty), D = k(Object.prototype.propertyIsEnumerable), H = k(Object.prototype.toString), z = requireUtil$1().types, G = z.isAnyArrayBuffer, Q = z.isArrayBufferView, ee = z.isDate, qe = z.isMap, $e = z.isRegExp, ze = z.isSet,
|
|
22245
|
+
var $ = k(Object.prototype.hasOwnProperty), D = k(Object.prototype.propertyIsEnumerable), H = k(Object.prototype.toString), z = requireUtil$1().types, G = z.isAnyArrayBuffer, Q = z.isArrayBufferView, ee = z.isDate, qe = z.isMap, $e = z.isRegExp, ze = z.isSet, tt = z.isNativeError, rt = z.isBoxedPrimitive, Ct = z.isNumberObject, Ve = z.isStringObject, F = z.isBooleanObject, K = z.isBigIntObject, L = z.isSymbolObject, J = z.isFloat32Array, oe = z.isFloat64Array;
|
|
22246
22246
|
function te(lt) {
|
|
22247
22247
|
if (lt.length === 0 || lt.length > 10) return !0;
|
|
22248
22248
|
for (var At = 0; At < lt.length; At++) {
|
|
@@ -22322,7 +22322,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
22322
22322
|
} else if ($e(lt)) {
|
|
22323
22323
|
if (!$e(At) || !Ne(lt, At))
|
|
22324
22324
|
return !1;
|
|
22325
|
-
} else if (
|
|
22325
|
+
} else if (tt(lt) || lt instanceof Error) {
|
|
22326
22326
|
if (lt.message !== At.message || lt.name !== At.name)
|
|
22327
22327
|
return !1;
|
|
22328
22328
|
} else if (Q(lt)) {
|
|
@@ -22563,7 +22563,7 @@ function requireAssert() {
|
|
|
22563
22563
|
var He = requireComparisons();
|
|
22564
22564
|
Q = He.isDeepEqual, ee = He.isDeepStrictEqual;
|
|
22565
22565
|
}
|
|
22566
|
-
var $e = !1, ze = assert.exports = F,
|
|
22566
|
+
var $e = !1, ze = assert.exports = F, tt = {};
|
|
22567
22567
|
function rt(He) {
|
|
22568
22568
|
throw He.message instanceof Error ? He.message : new R(He);
|
|
22569
22569
|
}
|
|
@@ -22758,7 +22758,7 @@ function requireAssert() {
|
|
|
22758
22758
|
} catch (Ye) {
|
|
22759
22759
|
return Ye;
|
|
22760
22760
|
}
|
|
22761
|
-
return
|
|
22761
|
+
return tt;
|
|
22762
22762
|
}
|
|
22763
22763
|
function he(He) {
|
|
22764
22764
|
return $(He) || He !== null && v(He) === "object" && typeof He.then == "function" && typeof He.catch == "function";
|
|
@@ -22776,7 +22776,7 @@ function requireAssert() {
|
|
|
22776
22776
|
return Promise.resolve().then(function() {
|
|
22777
22777
|
return Ye;
|
|
22778
22778
|
}).then(function() {
|
|
22779
|
-
return
|
|
22779
|
+
return tt;
|
|
22780
22780
|
}).catch(function(Ne) {
|
|
22781
22781
|
return Ne;
|
|
22782
22782
|
});
|
|
@@ -22794,7 +22794,7 @@ function requireAssert() {
|
|
|
22794
22794
|
Ae = Ne, Ne = void 0;
|
|
22795
22795
|
} else if (Ne != null && v(Ne) !== "object" && typeof Ne != "function")
|
|
22796
22796
|
throw new T("error", ["Object", "Error", "Function", "RegExp"], Ne);
|
|
22797
|
-
if (Ye ===
|
|
22797
|
+
if (Ye === tt) {
|
|
22798
22798
|
var Oe = "";
|
|
22799
22799
|
Ne && Ne.name && (Oe += " (".concat(Ne.name, ")")), Oe += Ae ? ": ".concat(Ae) : ".";
|
|
22800
22800
|
var Xe = He.name === "rejects" ? "rejection" : "exception";
|
|
@@ -22810,7 +22810,7 @@ function requireAssert() {
|
|
|
22810
22810
|
throw Ye;
|
|
22811
22811
|
}
|
|
22812
22812
|
function ce(He, Ye, Ne, Ae) {
|
|
22813
|
-
if (Ye !==
|
|
22813
|
+
if (Ye !== tt) {
|
|
22814
22814
|
if (typeof Ne == "string" && (Ae = Ne, Ne = void 0), !Ne || oe(Ye, Ne)) {
|
|
22815
22815
|
var Oe = Ae ? ": ".concat(Ae) : ".", Xe = He.name === "doesNotReject" ? "rejection" : "exception";
|
|
22816
22816
|
rt({
|
|
@@ -23497,7 +23497,7 @@ function requireOpenssh() {
|
|
|
23497
23497
|
throw "Invalid file format.";
|
|
23498
23498
|
if (k.off += 15, T(k).toString("ascii") !== "none" || T(k).toString("ascii") !== "none" || T(k).toString("ascii") !== "" || (k.off += 4, k.off += 4, T(k).toString("ascii") !== "ssh-rsa") || (T(k), T(k), k.off += 12, T(k).toString("ascii") !== "ssh-rsa"))
|
|
23499
23499
|
throw Error("Unsupported key type");
|
|
23500
|
-
const $ = T(k), D = T(k), H = T(k), z = T(k), G = T(k), Q = T(k), ee = new _(H), qe = new _(Q), $e = new _(G), ze = ee.mod($e.subtract(_.ONE)),
|
|
23500
|
+
const $ = T(k), D = T(k), H = T(k), z = T(k), G = T(k), Q = T(k), ee = new _(H), qe = new _(Q), $e = new _(G), ze = ee.mod($e.subtract(_.ONE)), tt = ee.mod(qe.subtract(_.ONE));
|
|
23501
23501
|
P.setPrivate(
|
|
23502
23502
|
$,
|
|
23503
23503
|
// modulus
|
|
@@ -23511,7 +23511,7 @@ function requireOpenssh() {
|
|
|
23511
23511
|
// prime2
|
|
23512
23512
|
ze.toBuffer(),
|
|
23513
23513
|
// exponent1 -- d mod (p1)
|
|
23514
|
-
|
|
23514
|
+
tt.toBuffer(),
|
|
23515
23515
|
// exponent2 -- d mod (q-1)
|
|
23516
23516
|
z
|
|
23517
23517
|
// coefficient -- (inverse of q) mod p
|
|
@@ -24997,7 +24997,7 @@ function requireMqtt() {
|
|
|
24997
24997
|
exit: () => dr,
|
|
24998
24998
|
features: () => lt,
|
|
24999
24999
|
hasUncaughtExceptionCaptureCallback: () => $e,
|
|
25000
|
-
hrtime: () =>
|
|
25000
|
+
hrtime: () => tt,
|
|
25001
25001
|
kill: () => qr,
|
|
25002
25002
|
listeners: () => Ct,
|
|
25003
25003
|
memoryUsage: () => Ht,
|
|
@@ -25079,7 +25079,7 @@ function requireMqtt() {
|
|
|
25079
25079
|
function ze() {
|
|
25080
25080
|
return Hr.now() / 1e3;
|
|
25081
25081
|
}
|
|
25082
|
-
function
|
|
25082
|
+
function tt(we) {
|
|
25083
25083
|
var pe = Math.floor((Date.now() - Hr.now()) * 1e-3), ie = Hr.now() * 1e-3, se = Math.floor(ie) + pe, ue = Math.floor(ie % 1 * 1e9);
|
|
25084
25084
|
return we && (se = se - we[0], ue = ue - we[1], ue < 0 && (se--, ue += zr)), [se, ue];
|
|
25085
25085
|
}
|
|
@@ -25128,8 +25128,8 @@ function requireMqtt() {
|
|
|
25128
25128
|
}, At = H, or = H, sr = H, cr = H, xr = H, ke = H, le = H, Se = void 0, Ke = void 0, yt = void 0, qt = H, Nt = 2, Rr = 1, Pr = "/bin/usr/node", Sr = 9229, $r = "node", Mr = [], Nr = H, Hr = {
|
|
25129
25129
|
now: typeof performance < "u" ? performance.now.bind(performance) : void 0,
|
|
25130
25130
|
timing: typeof performance < "u" ? performance.timing : void 0
|
|
25131
|
-
}, Hr.now === void 0 && (Qi = Date.now(), Hr.timing && Hr.timing.navigationStart && (Qi = Hr.timing.navigationStart), Hr.now = () => Date.now() - Qi), zr = 1e9,
|
|
25132
|
-
var pe =
|
|
25131
|
+
}, Hr.now === void 0 && (Qi = Date.now(), Hr.timing && Hr.timing.navigationStart && (Qi = Hr.timing.navigationStart), Hr.now = () => Date.now() - Qi), zr = 1e9, tt.bigint = function(we) {
|
|
25132
|
+
var pe = tt(we);
|
|
25133
25133
|
return typeof BigInt > "u" ? pe[0] * zr + pe[1] : BigInt(pe[0] * zr) + BigInt(pe[1]);
|
|
25134
25134
|
}, Fr = 10, Gr = {}, Jr = 0, Ue = rt, ve = rt, xe = rt, Ze = rt, wt = rt, $t = H, Wt = rt, Ir = rt, Lr = {
|
|
25135
25135
|
version: ce,
|
|
@@ -25198,7 +25198,7 @@ function requireMqtt() {
|
|
|
25198
25198
|
ppid: Rr,
|
|
25199
25199
|
execPath: Pr,
|
|
25200
25200
|
debugPort: Sr,
|
|
25201
|
-
hrtime:
|
|
25201
|
+
hrtime: tt,
|
|
25202
25202
|
argv0: $r,
|
|
25203
25203
|
_preload_modules: Mr,
|
|
25204
25204
|
setSourceMapsEnabled: Nr
|
|
@@ -26575,8 +26575,8 @@ function requireMqtt() {
|
|
|
26575
26575
|
once: () => di
|
|
26576
26576
|
});
|
|
26577
26577
|
function Le() {
|
|
26578
|
-
if (
|
|
26579
|
-
|
|
26578
|
+
if (et) return We;
|
|
26579
|
+
et = !0;
|
|
26580
26580
|
var we = typeof Reflect == "object" ? Reflect : null, pe = we && typeof we.apply == "function" ? we.apply : function(Ee, Ce, Me) {
|
|
26581
26581
|
return Function.prototype.apply.call(Ee, Ce, Me);
|
|
26582
26582
|
}, ie;
|
|
@@ -26780,9 +26780,9 @@ function requireMqtt() {
|
|
|
26780
26780
|
}
|
|
26781
26781
|
return We;
|
|
26782
26782
|
}
|
|
26783
|
-
var We,
|
|
26783
|
+
var We, et, It, lr, gr, Ar, Br, oi, di, pi = B({
|
|
26784
26784
|
"node_modules/@jspm/core/nodelibs/browser/events.js"() {
|
|
26785
|
-
x(), Xt(), Mt(), We = {},
|
|
26785
|
+
x(), Xt(), Mt(), We = {}, et = !1, It = Le(), It.once, It.once = function(we, pe) {
|
|
26786
26786
|
return new Promise((ie, se) => {
|
|
26787
26787
|
function ue(...j) {
|
|
26788
26788
|
Z !== void 0 && we.removeListener("error", Z), ie(j);
|
|
@@ -42869,66 +42869,68 @@ class CpsSoonmanagerPlugin extends EventDispatcher {
|
|
|
42869
42869
|
* 格式化 Poi 数据完成 Poi Renderer 插件使用
|
|
42870
42870
|
*/
|
|
42871
42871
|
formatPoiData = (e) => {
|
|
42872
|
-
const E = (
|
|
42873
|
-
|
|
42874
|
-
(
|
|
42875
|
-
|
|
42876
|
-
(
|
|
42877
|
-
index:
|
|
42878
|
-
value:
|
|
42879
|
-
group:
|
|
42880
|
-
key:
|
|
42881
|
-
label:
|
|
42882
|
-
customId: [
|
|
42883
|
-
dataOrigin:
|
|
42872
|
+
const E = (qe) => qe == null ? [] : flatMapDepth(
|
|
42873
|
+
qe,
|
|
42874
|
+
($e, ze) => flatMapDepth(
|
|
42875
|
+
$e,
|
|
42876
|
+
(tt, rt) => flatMapDepth(tt, (Ct, Ve) => ({
|
|
42877
|
+
index: Ct.index,
|
|
42878
|
+
value: Ct.value || "",
|
|
42879
|
+
group: rt,
|
|
42880
|
+
key: Ve,
|
|
42881
|
+
label: Ct.label || Ve,
|
|
42882
|
+
customId: [ze, rt, Ve].join("/"),
|
|
42883
|
+
dataOrigin: ze
|
|
42884
42884
|
})),
|
|
42885
42885
|
2
|
|
42886
42886
|
)
|
|
42887
42887
|
), {
|
|
42888
42888
|
dimensional: _,
|
|
42889
|
-
|
|
42890
|
-
|
|
42891
|
-
|
|
42892
|
-
|
|
42893
|
-
|
|
42894
|
-
|
|
42895
|
-
|
|
42896
|
-
|
|
42897
|
-
|
|
42898
|
-
|
|
42899
|
-
|
|
42900
|
-
|
|
42901
|
-
|
|
42902
|
-
|
|
42903
|
-
|
|
42904
|
-
|
|
42889
|
+
id: B,
|
|
42890
|
+
sid: A,
|
|
42891
|
+
media: T,
|
|
42892
|
+
display: M,
|
|
42893
|
+
scale: P,
|
|
42894
|
+
x,
|
|
42895
|
+
y: R,
|
|
42896
|
+
z: q,
|
|
42897
|
+
rotationX: C,
|
|
42898
|
+
rotationY: k,
|
|
42899
|
+
rotationZ: $,
|
|
42900
|
+
width: D,
|
|
42901
|
+
height: H,
|
|
42902
|
+
nodeId: z,
|
|
42903
|
+
contentType: G,
|
|
42904
|
+
style: Q,
|
|
42905
|
+
contentData: ee
|
|
42905
42906
|
} = e;
|
|
42906
42907
|
return {
|
|
42907
42908
|
id: B,
|
|
42908
|
-
|
|
42909
|
-
|
|
42910
|
-
|
|
42911
|
-
|
|
42909
|
+
sid: A,
|
|
42910
|
+
pid: z,
|
|
42911
|
+
visible: M,
|
|
42912
|
+
width: D,
|
|
42913
|
+
height: H,
|
|
42912
42914
|
type: _,
|
|
42913
|
-
contentType:
|
|
42915
|
+
contentType: G,
|
|
42914
42916
|
position: {
|
|
42915
|
-
x
|
|
42916
|
-
y:
|
|
42917
|
-
z:
|
|
42917
|
+
x,
|
|
42918
|
+
y: R,
|
|
42919
|
+
z: q
|
|
42918
42920
|
},
|
|
42919
42921
|
rotation: {
|
|
42920
|
-
x: Math.PI / 180 *
|
|
42921
|
-
y: Math.PI / 180 *
|
|
42922
|
-
z: Math.PI / 180 *
|
|
42922
|
+
x: Math.PI / 180 * C,
|
|
42923
|
+
y: Math.PI / 180 * k,
|
|
42924
|
+
z: Math.PI / 180 * $
|
|
42923
42925
|
},
|
|
42924
42926
|
scale: {
|
|
42925
|
-
x:
|
|
42926
|
-
y:
|
|
42927
|
-
z:
|
|
42927
|
+
x: P / 100,
|
|
42928
|
+
y: P / 100,
|
|
42929
|
+
z: P / 100
|
|
42928
42930
|
},
|
|
42929
|
-
style:
|
|
42930
|
-
dataSource: E(
|
|
42931
|
-
fileUrl: !
|
|
42931
|
+
style: Q,
|
|
42932
|
+
dataSource: E(ee),
|
|
42933
|
+
fileUrl: !T?.assetId && !T?.fileId ? T?.url : T?.url ? this.#g(T.url) : void 0
|
|
42932
42934
|
};
|
|
42933
42935
|
};
|
|
42934
42936
|
/**
|
|
@@ -43176,8 +43178,8 @@ class CpsSoonmanagerPlugin extends EventDispatcher {
|
|
|
43176
43178
|
}
|
|
43177
43179
|
const M = this.sceneGroup.getBoundingBox(), { min: P, max: x } = M, R = M.getCenter(new Vector3()), q = M.getSize(new Vector3()), { environment: C, previewSettings: k, gisSettings: $ } = await this.fetchMetaData(), D = safeParseJSON(k ?? "") ?? {}, H = E && D.atmosphere?.enabled;
|
|
43178
43180
|
if (H) {
|
|
43179
|
-
const { month: qe, day: $e, hours: ze, castShadow:
|
|
43180
|
-
$ && $.enabled && (this.atmospherePlugin.longitude = $.longitude, this.atmospherePlugin.latitude = $.latitude, this.atmospherePlugin.altitude = $.altitude), Object.assign(this.atmospherePlugin, { castShadow:
|
|
43181
|
+
const { month: qe, day: $e, hours: ze, castShadow: tt } = D.atmosphere;
|
|
43182
|
+
$ && $.enabled && (this.atmospherePlugin.longitude = $.longitude, this.atmospherePlugin.latitude = $.latitude, this.atmospherePlugin.altitude = $.altitude), Object.assign(this.atmospherePlugin, { castShadow: tt }), this.atmospherePlugin.target.copy(R), this.atmospherePlugin.distance = q.length(), this.atmospherePlugin.date.setMonth(qe), this.atmospherePlugin.date.setDate($e), this.atmospherePlugin.date.setHours(ze / 60), this.atmospherePlugin.date.setMinutes(ze % 60), this.atmospherePlugin.start(), this.atmospherePlugin.updateModelLightingMask();
|
|
43181
43183
|
}
|
|
43182
43184
|
if (_ && C && D.environment?.HDR !== "default" && !H && this.ssp.setEnvironment({
|
|
43183
43185
|
file: this.#g(C),
|