@eluvio/elv-player-js 2.0.21 → 2.0.23
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/.vite/manifest.json +17 -17
- package/dist/{Analytics-DdX0-7dQ.mjs → Analytics-B72tGTQx.mjs} +1 -1
- package/dist/{Analytics-B6MHUb3Q.js → Analytics-CDXMirgj.js} +1 -1
- package/dist/{dash.all.min-BgLUy4QY.js → dash.all.min-3hdqLcqd.js} +1 -1
- package/dist/{dash.all.min-DkmG-Qxu.mjs → dash.all.min-DlSRaJ_5.mjs} +1 -1
- package/dist/elv-player-js.cjs.js +1 -1
- package/dist/elv-player-js.css +1 -1
- package/dist/elv-player-js.es.js +1 -1
- package/dist/index-Be7Zq2Nh.js +378 -0
- package/dist/{index-BhYSs-gw.mjs → index-BrZn3sD8.mjs} +77 -79
- package/dist/{index-Clf0EQQK.mjs → index-BxTtC119.mjs} +19599 -19553
- package/dist/{index-MQ4UPeZq.js → index-CO76930D.js} +3 -3
- package/lib/player/Cast.js +280 -0
- package/lib/player/Controls.js +103 -5
- package/lib/player/Player.js +84 -20
- package/lib/static/icons/Icons.js +2 -0
- package/lib/static/icons/svgs/airplay.svg +1 -0
- package/lib/static/icons/svgs/cast.svg +1 -0
- package/lib/static/stylesheets/common.module.scss +65 -0
- package/lib/static/stylesheets/controls-tv.module.scss +1 -0
- package/lib/static/stylesheets/controls-web.module.scss +15 -0
- package/lib/static/stylesheets/player.module.scss +16 -0
- package/lib/ui/BuildIcons.cjs +2 -0
- package/lib/ui/Components.jsx +44 -5
- package/lib/ui/Observers.js +28 -18
- package/lib/ui/PlayerUI.jsx +10 -0
- package/lib/ui/TVControls.jsx +25 -11
- package/lib/ui/WebControls.jsx +30 -25
- package/package.json +3 -3
- package/dist/index-4uggw66b.js +0 -375
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as cI, e as CI, r as vA, a as eI, b as fA, i as dA, s as xA, g as wI } from "./index-
|
|
1
|
+
import { c as cI, e as CI, r as vA, a as eI, b as fA, i as dA, s as xA, g as wI } from "./index-BxTtC119.mjs";
|
|
2
2
|
class EA {
|
|
3
3
|
constructor(I) {
|
|
4
4
|
this.wasm = I;
|
|
@@ -368,10 +368,8 @@ var uI = (() => {
|
|
|
368
368
|
A.preInit.pop()();
|
|
369
369
|
return tA(), I.ready;
|
|
370
370
|
};
|
|
371
|
-
})();
|
|
372
|
-
|
|
373
|
-
var GA = { exports: {} }, mA = { exports: {} }, iI = CI.EventEmitter, pA, ZA;
|
|
374
|
-
function dI() {
|
|
371
|
+
})(), GA = { exports: {} }, mA = { exports: {} }, iI = CI.EventEmitter, pA, ZA;
|
|
372
|
+
function SI() {
|
|
375
373
|
if (ZA) return pA;
|
|
376
374
|
ZA = 1;
|
|
377
375
|
function E(d, R) {
|
|
@@ -535,7 +533,7 @@ function dI() {
|
|
|
535
533
|
}]), d;
|
|
536
534
|
}(), pA;
|
|
537
535
|
}
|
|
538
|
-
function
|
|
536
|
+
function dI(E, I) {
|
|
539
537
|
var A = this, Q = this._readableState && this._readableState.destroyed, C = this._writableState && this._writableState.destroyed;
|
|
540
538
|
return Q || C ? (I ? I(E) : E && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process.nextTick(TA, this, E)) : process.nextTick(TA, this, E)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(E || null, function(o) {
|
|
541
539
|
!I && o ? A._writableState ? A._writableState.errorEmitted ? process.nextTick(FA, A) : (A._writableState.errorEmitted = !0, process.nextTick(jA, A, o)) : process.nextTick(jA, A, o) : I ? (process.nextTick(FA, A), I(o)) : process.nextTick(FA, A);
|
|
@@ -547,22 +545,22 @@ function jA(E, I) {
|
|
|
547
545
|
function FA(E) {
|
|
548
546
|
E._writableState && !E._writableState.emitClose || E._readableState && !E._readableState.emitClose || E.emit("close");
|
|
549
547
|
}
|
|
550
|
-
function
|
|
548
|
+
function RI() {
|
|
551
549
|
this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
|
|
552
550
|
}
|
|
553
551
|
function TA(E, I) {
|
|
554
552
|
E.emit("error", I);
|
|
555
553
|
}
|
|
556
|
-
function
|
|
554
|
+
function FI(E, I) {
|
|
557
555
|
var A = E._readableState, Q = E._writableState;
|
|
558
556
|
A && A.autoDestroy || Q && Q.autoDestroy ? E.destroy(I) : E.emit("error", I);
|
|
559
557
|
}
|
|
560
558
|
var tI = {
|
|
561
|
-
destroy:
|
|
562
|
-
undestroy:
|
|
563
|
-
errorOrDestroy:
|
|
559
|
+
destroy: dI,
|
|
560
|
+
undestroy: RI,
|
|
561
|
+
errorOrDestroy: FI
|
|
564
562
|
}, oA = {};
|
|
565
|
-
function
|
|
563
|
+
function MI(E, I) {
|
|
566
564
|
E.prototype = Object.create(I.prototype), E.prototype.constructor = E, E.__proto__ = I;
|
|
567
565
|
}
|
|
568
566
|
var rI = {};
|
|
@@ -572,7 +570,7 @@ function j(E, I, A) {
|
|
|
572
570
|
return typeof I == "string" ? I : I(o, a, h);
|
|
573
571
|
}
|
|
574
572
|
var C = /* @__PURE__ */ function(o) {
|
|
575
|
-
|
|
573
|
+
MI(a, o);
|
|
576
574
|
function a(h, r, D) {
|
|
577
575
|
return o.call(this, Q(h, r, D)) || this;
|
|
578
576
|
}
|
|
@@ -589,13 +587,13 @@ function VA(E, I) {
|
|
|
589
587
|
} else
|
|
590
588
|
return "of ".concat(I, " ").concat(String(E));
|
|
591
589
|
}
|
|
592
|
-
function
|
|
590
|
+
function GI(E, I, A) {
|
|
593
591
|
return E.substr(0, I.length) === I;
|
|
594
592
|
}
|
|
595
|
-
function
|
|
593
|
+
function NI(E, I, A) {
|
|
596
594
|
return (A === void 0 || A > E.length) && (A = E.length), E.substring(A - I.length, A) === I;
|
|
597
595
|
}
|
|
598
|
-
function
|
|
596
|
+
function kI(E, I, A) {
|
|
599
597
|
return typeof A != "number" && (A = 0), A + I.length > E.length ? !1 : E.indexOf(I, A) !== -1;
|
|
600
598
|
}
|
|
601
599
|
j("ERR_INVALID_OPT_VALUE", function(E, I) {
|
|
@@ -603,12 +601,12 @@ j("ERR_INVALID_OPT_VALUE", function(E, I) {
|
|
|
603
601
|
}, TypeError);
|
|
604
602
|
j("ERR_INVALID_ARG_TYPE", function(E, I, A) {
|
|
605
603
|
var Q;
|
|
606
|
-
typeof I == "string" &&
|
|
604
|
+
typeof I == "string" && GI(I, "not ") ? (Q = "must not be", I = I.replace(/^not /, "")) : Q = "must be";
|
|
607
605
|
var C;
|
|
608
|
-
if (
|
|
606
|
+
if (NI(E, " argument"))
|
|
609
607
|
C = "The ".concat(E, " ").concat(Q, " ").concat(VA(I, "type"));
|
|
610
608
|
else {
|
|
611
|
-
var o =
|
|
609
|
+
var o = kI(E, ".") ? "property" : "argument";
|
|
612
610
|
C = 'The "'.concat(E, '" ').concat(o, " ").concat(Q, " ").concat(VA(I, "type"));
|
|
613
611
|
}
|
|
614
612
|
return C += ". Received type ".concat(typeof A), C;
|
|
@@ -630,25 +628,25 @@ j("ERR_UNKNOWN_ENCODING", function(E) {
|
|
|
630
628
|
}, TypeError);
|
|
631
629
|
j("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
|
|
632
630
|
oA.codes = rI;
|
|
633
|
-
var
|
|
634
|
-
function
|
|
631
|
+
var UI = oA.codes.ERR_INVALID_OPT_VALUE;
|
|
632
|
+
function pI(E, I, A) {
|
|
635
633
|
return E.highWaterMark != null ? E.highWaterMark : I ? E[A] : null;
|
|
636
634
|
}
|
|
637
|
-
function
|
|
638
|
-
var C =
|
|
635
|
+
function HI(E, I, A, Q) {
|
|
636
|
+
var C = pI(I, Q, A);
|
|
639
637
|
if (C != null) {
|
|
640
638
|
if (!(isFinite(C) && Math.floor(C) === C) || C < 0) {
|
|
641
639
|
var o = Q ? A : "highWaterMark";
|
|
642
|
-
throw new
|
|
640
|
+
throw new UI(o, C);
|
|
643
641
|
}
|
|
644
642
|
return Math.floor(C);
|
|
645
643
|
}
|
|
646
644
|
return E.objectMode ? 16 : 16 * 1024;
|
|
647
645
|
}
|
|
648
646
|
var aI = {
|
|
649
|
-
getHighWaterMark:
|
|
650
|
-
},
|
|
651
|
-
function
|
|
647
|
+
getHighWaterMark: HI
|
|
648
|
+
}, YI = KI;
|
|
649
|
+
function KI(E, I) {
|
|
652
650
|
if (HA("noDeprecation"))
|
|
653
651
|
return E;
|
|
654
652
|
var A = !1;
|
|
@@ -684,7 +682,7 @@ function oI() {
|
|
|
684
682
|
var I;
|
|
685
683
|
J.WritableState = Y;
|
|
686
684
|
var A = {
|
|
687
|
-
deprecate:
|
|
685
|
+
deprecate: YI
|
|
688
686
|
}, Q = iI, C = vA().Buffer, o = (typeof fA < "u" ? fA : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
689
687
|
};
|
|
690
688
|
function a(t) {
|
|
@@ -963,7 +961,7 @@ function hA() {
|
|
|
963
961
|
}), KA;
|
|
964
962
|
}
|
|
965
963
|
var $A = oA.codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
966
|
-
function
|
|
964
|
+
function _I(E) {
|
|
967
965
|
var I = !1;
|
|
968
966
|
return function() {
|
|
969
967
|
if (!I) {
|
|
@@ -974,14 +972,14 @@ function JI(E) {
|
|
|
974
972
|
}
|
|
975
973
|
};
|
|
976
974
|
}
|
|
977
|
-
function
|
|
975
|
+
function JI() {
|
|
978
976
|
}
|
|
979
|
-
function
|
|
977
|
+
function LI(E) {
|
|
980
978
|
return E.setHeader && typeof E.abort == "function";
|
|
981
979
|
}
|
|
982
980
|
function nI(E, I, A) {
|
|
983
981
|
if (typeof I == "function") return nI(E, null, I);
|
|
984
|
-
I || (I = {}), A =
|
|
982
|
+
I || (I = {}), A = _I(A || JI);
|
|
985
983
|
var Q = I.readable || I.readable !== !1 && E.readable, C = I.writable || I.writable !== !1 && E.writable, o = function() {
|
|
986
984
|
E.writable || h();
|
|
987
985
|
}, a = E._writableState && E._writableState.finished, h = function() {
|
|
@@ -999,12 +997,12 @@ function nI(E, I, A) {
|
|
|
999
997
|
}, b = function() {
|
|
1000
998
|
E.req.on("finish", h);
|
|
1001
999
|
};
|
|
1002
|
-
return
|
|
1000
|
+
return LI(E) ? (E.on("complete", h), E.on("abort", N), E.req ? b() : E.on("request", b)) : C && !E._writableState && (E.on("end", o), E.on("close", o)), E.on("end", D), E.on("finish", h), I.error !== !1 && E.on("error", G), E.on("close", N), function() {
|
|
1003
1001
|
E.removeListener("complete", h), E.removeListener("abort", N), E.removeListener("request", b), E.req && E.req.removeListener("finish", h), E.removeListener("end", o), E.removeListener("close", o), E.removeListener("finish", h), E.removeListener("end", D), E.removeListener("error", G), E.removeListener("close", N);
|
|
1004
1002
|
};
|
|
1005
1003
|
}
|
|
1006
1004
|
var WA = nI, _A, AI;
|
|
1007
|
-
function
|
|
1005
|
+
function qI() {
|
|
1008
1006
|
if (AI) return _A;
|
|
1009
1007
|
AI = 1;
|
|
1010
1008
|
var E;
|
|
@@ -1130,7 +1128,7 @@ function bI() {
|
|
|
1130
1128
|
return _A = H, _A;
|
|
1131
1129
|
}
|
|
1132
1130
|
var JA, II;
|
|
1133
|
-
function
|
|
1131
|
+
function bI() {
|
|
1134
1132
|
return II || (II = 1, JA = function() {
|
|
1135
1133
|
throw new Error("Readable.from is not available in the browser");
|
|
1136
1134
|
}), JA;
|
|
@@ -1154,7 +1152,7 @@ function sI() {
|
|
|
1154
1152
|
var h = eI, r;
|
|
1155
1153
|
h && h.debuglog ? r = h.debuglog("stream") : r = function() {
|
|
1156
1154
|
};
|
|
1157
|
-
var D =
|
|
1155
|
+
var D = SI(), G = tI, N = aI, b = N.getHighWaterMark, q = oA.codes, d = q.ERR_INVALID_ARG_TYPE, R = q.ERR_STREAM_PUSH_AFTER_EOF, y = q.ERR_METHOD_NOT_IMPLEMENTED, w = q.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, H, F, l;
|
|
1158
1156
|
dA(p, A);
|
|
1159
1157
|
var k = G.errorOrDestroy, Y = ["error", "close", "destroy", "pause", "resume"];
|
|
1160
1158
|
function W(g, B, n) {
|
|
@@ -1411,7 +1409,7 @@ function sI() {
|
|
|
1411
1409
|
r("wrapped _read", v), c && (c = !1, g.resume());
|
|
1412
1410
|
}, this;
|
|
1413
1411
|
}, typeof Symbol == "function" && (p.prototype[Symbol.asyncIterator] = function() {
|
|
1414
|
-
return F === void 0 && (F =
|
|
1412
|
+
return F === void 0 && (F = qI()), F(this);
|
|
1415
1413
|
}), Object.defineProperty(p.prototype, "readableHighWaterMark", {
|
|
1416
1414
|
// making it explicit this property is not enumerable
|
|
1417
1415
|
// because otherwise some prototype manipulation in
|
|
@@ -1464,7 +1462,7 @@ function sI() {
|
|
|
1464
1462
|
}
|
|
1465
1463
|
}
|
|
1466
1464
|
typeof Symbol == "function" && (p.from = function(g, B) {
|
|
1467
|
-
return l === void 0 && (l =
|
|
1465
|
+
return l === void 0 && (l = bI()), l(p, g, B);
|
|
1468
1466
|
});
|
|
1469
1467
|
function _(g, B) {
|
|
1470
1468
|
for (var n = 0, c = g.length; n < c; n++)
|
|
@@ -1473,14 +1471,14 @@ function sI() {
|
|
|
1473
1471
|
}
|
|
1474
1472
|
return LA;
|
|
1475
1473
|
}
|
|
1476
|
-
var fI = QA, NA = oA.codes,
|
|
1474
|
+
var fI = QA, NA = oA.codes, mI = NA.ERR_METHOD_NOT_IMPLEMENTED, TI = NA.ERR_MULTIPLE_CALLBACK, vI = NA.ERR_TRANSFORM_ALREADY_TRANSFORMING, OI = NA.ERR_TRANSFORM_WITH_LENGTH_0, kA = hA();
|
|
1477
1475
|
dA(QA, kA);
|
|
1478
|
-
function
|
|
1476
|
+
function WI(E, I) {
|
|
1479
1477
|
var A = this._transformState;
|
|
1480
1478
|
A.transforming = !1;
|
|
1481
1479
|
var Q = A.writecb;
|
|
1482
1480
|
if (Q === null)
|
|
1483
|
-
return this.emit("error", new
|
|
1481
|
+
return this.emit("error", new TI());
|
|
1484
1482
|
A.writechunk = null, A.writecb = null, I != null && this.push(I), Q(E);
|
|
1485
1483
|
var C = this._readableState;
|
|
1486
1484
|
C.reading = !1, (C.needReadable || C.length < C.highWaterMark) && this._read(C.highWaterMark);
|
|
@@ -1488,15 +1486,15 @@ function PI(E, I) {
|
|
|
1488
1486
|
function QA(E) {
|
|
1489
1487
|
if (!(this instanceof QA)) return new QA(E);
|
|
1490
1488
|
kA.call(this, E), this._transformState = {
|
|
1491
|
-
afterTransform:
|
|
1489
|
+
afterTransform: WI.bind(this),
|
|
1492
1490
|
needTransform: !1,
|
|
1493
1491
|
transforming: !1,
|
|
1494
1492
|
writecb: null,
|
|
1495
1493
|
writechunk: null,
|
|
1496
1494
|
writeencoding: null
|
|
1497
|
-
}, this._readableState.needReadable = !0, this._readableState.sync = !1, E && (typeof E.transform == "function" && (this._transform = E.transform), typeof E.flush == "function" && (this._flush = E.flush)), this.on("prefinish",
|
|
1495
|
+
}, this._readableState.needReadable = !0, this._readableState.sync = !1, E && (typeof E.transform == "function" && (this._transform = E.transform), typeof E.flush == "function" && (this._flush = E.flush)), this.on("prefinish", PI);
|
|
1498
1496
|
}
|
|
1499
|
-
function
|
|
1497
|
+
function PI() {
|
|
1500
1498
|
var E = this;
|
|
1501
1499
|
typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(I, A) {
|
|
1502
1500
|
BI(E, I, A);
|
|
@@ -1506,7 +1504,7 @@ QA.prototype.push = function(E, I) {
|
|
|
1506
1504
|
return this._transformState.needTransform = !1, kA.prototype.push.call(this, E, I);
|
|
1507
1505
|
};
|
|
1508
1506
|
QA.prototype._transform = function(E, I, A) {
|
|
1509
|
-
A(new
|
|
1507
|
+
A(new mI("_transform()"));
|
|
1510
1508
|
};
|
|
1511
1509
|
QA.prototype._write = function(E, I, A) {
|
|
1512
1510
|
var Q = this._transformState;
|
|
@@ -1526,11 +1524,11 @@ QA.prototype._destroy = function(E, I) {
|
|
|
1526
1524
|
};
|
|
1527
1525
|
function BI(E, I, A) {
|
|
1528
1526
|
if (I) return E.emit("error", I);
|
|
1529
|
-
if (A != null && E.push(A), E._writableState.length) throw new
|
|
1530
|
-
if (E._transformState.transforming) throw new
|
|
1527
|
+
if (A != null && E.push(A), E._writableState.length) throw new OI();
|
|
1528
|
+
if (E._transformState.transforming) throw new vI();
|
|
1531
1529
|
return E.push(null);
|
|
1532
1530
|
}
|
|
1533
|
-
var
|
|
1531
|
+
var xI = SA, hI = fI;
|
|
1534
1532
|
dA(SA, hI);
|
|
1535
1533
|
function SA(E) {
|
|
1536
1534
|
if (!(this instanceof SA)) return new SA(E);
|
|
@@ -1540,21 +1538,21 @@ SA.prototype._transform = function(E, I, A) {
|
|
|
1540
1538
|
A(null, E);
|
|
1541
1539
|
};
|
|
1542
1540
|
var qA;
|
|
1543
|
-
function
|
|
1541
|
+
function ZI(E) {
|
|
1544
1542
|
var I = !1;
|
|
1545
1543
|
return function() {
|
|
1546
1544
|
I || (I = !0, E.apply(void 0, arguments));
|
|
1547
1545
|
};
|
|
1548
1546
|
}
|
|
1549
|
-
var DI = oA.codes,
|
|
1547
|
+
var DI = oA.codes, jI = DI.ERR_MISSING_ARGS, VI = DI.ERR_STREAM_DESTROYED;
|
|
1550
1548
|
function EI(E) {
|
|
1551
1549
|
if (E) throw E;
|
|
1552
1550
|
}
|
|
1553
|
-
function
|
|
1551
|
+
function XI(E) {
|
|
1554
1552
|
return E.setHeader && typeof E.abort == "function";
|
|
1555
1553
|
}
|
|
1556
|
-
function
|
|
1557
|
-
Q =
|
|
1554
|
+
function zI(E, I, A, Q) {
|
|
1555
|
+
Q = ZI(Q);
|
|
1558
1556
|
var C = !1;
|
|
1559
1557
|
E.on("close", function() {
|
|
1560
1558
|
C = !0;
|
|
@@ -1568,42 +1566,42 @@ function $I(E, I, A, Q) {
|
|
|
1568
1566
|
var o = !1;
|
|
1569
1567
|
return function(a) {
|
|
1570
1568
|
if (!C && !o) {
|
|
1571
|
-
if (o = !0,
|
|
1569
|
+
if (o = !0, XI(E)) return E.abort();
|
|
1572
1570
|
if (typeof E.destroy == "function") return E.destroy();
|
|
1573
|
-
Q(a || new
|
|
1571
|
+
Q(a || new VI("pipe"));
|
|
1574
1572
|
}
|
|
1575
1573
|
};
|
|
1576
1574
|
}
|
|
1577
1575
|
function QI(E) {
|
|
1578
1576
|
E();
|
|
1579
1577
|
}
|
|
1580
|
-
function
|
|
1578
|
+
function $I(E, I) {
|
|
1581
1579
|
return E.pipe(I);
|
|
1582
1580
|
}
|
|
1583
|
-
function
|
|
1581
|
+
function Ag(E) {
|
|
1584
1582
|
return !E.length || typeof E[E.length - 1] != "function" ? EI : E.pop();
|
|
1585
1583
|
}
|
|
1586
|
-
function
|
|
1584
|
+
function Ig() {
|
|
1587
1585
|
for (var E = arguments.length, I = new Array(E), A = 0; A < E; A++)
|
|
1588
1586
|
I[A] = arguments[A];
|
|
1589
|
-
var Q =
|
|
1587
|
+
var Q = Ag(I);
|
|
1590
1588
|
if (Array.isArray(I[0]) && (I = I[0]), I.length < 2)
|
|
1591
|
-
throw new
|
|
1589
|
+
throw new jI("streams");
|
|
1592
1590
|
var C, o = I.map(function(a, h) {
|
|
1593
1591
|
var r = h < I.length - 1, D = h > 0;
|
|
1594
|
-
return
|
|
1592
|
+
return zI(a, r, D, function(G) {
|
|
1595
1593
|
C || (C = G), G && o.forEach(QI), !r && (o.forEach(QI), Q(C));
|
|
1596
1594
|
});
|
|
1597
1595
|
});
|
|
1598
|
-
return I.reduce(
|
|
1596
|
+
return I.reduce($I);
|
|
1599
1597
|
}
|
|
1600
|
-
var
|
|
1598
|
+
var gg = Ig;
|
|
1601
1599
|
(function(E, I) {
|
|
1602
|
-
I = E.exports = sI(), I.Stream = I, I.Readable = I, I.Writable = oI(), I.Duplex = hA(), I.Transform = fI, I.PassThrough =
|
|
1600
|
+
I = E.exports = sI(), I.Stream = I, I.Readable = I, I.Writable = oI(), I.Duplex = hA(), I.Transform = fI, I.PassThrough = xI, I.finished = WA, I.pipeline = gg;
|
|
1603
1601
|
})(mA, mA.exports);
|
|
1604
|
-
var
|
|
1605
|
-
const { Transform: MA } =
|
|
1606
|
-
function
|
|
1602
|
+
var Bg = mA.exports;
|
|
1603
|
+
const { Transform: MA } = Bg;
|
|
1604
|
+
function Eg(E, I) {
|
|
1607
1605
|
E.super_ = I, E.prototype = Object.create(I.prototype, {
|
|
1608
1606
|
constructor: { value: E, enumerable: !1, writable: !0, configurable: !0 }
|
|
1609
1607
|
});
|
|
@@ -1611,26 +1609,26 @@ function Qg(E, I) {
|
|
|
1611
1609
|
function PA(E) {
|
|
1612
1610
|
return (I, A, Q) => (typeof I == "function" && (Q = A, A = I, I = {}), typeof A != "function" && (A = (C, o, a) => a(null, C)), typeof Q != "function" && (Q = null), E(I, A, Q));
|
|
1613
1611
|
}
|
|
1614
|
-
const
|
|
1612
|
+
const Qg = PA((E, I, A) => {
|
|
1615
1613
|
const Q = new MA(E);
|
|
1616
1614
|
return Q._transform = I, A && (Q._flush = A), Q;
|
|
1617
|
-
}),
|
|
1615
|
+
}), Cg = PA((E, I, A) => {
|
|
1618
1616
|
function Q(C) {
|
|
1619
1617
|
if (!(this instanceof Q))
|
|
1620
1618
|
return new Q(C);
|
|
1621
1619
|
this.options = Object.assign({}, E, C), MA.call(this, this.options), this._transform = I, A && (this._flush = A);
|
|
1622
1620
|
}
|
|
1623
|
-
return
|
|
1624
|
-
}),
|
|
1621
|
+
return Eg(Q, MA), Q;
|
|
1622
|
+
}), eg = PA(function(E, I, A) {
|
|
1625
1623
|
const Q = new MA(Object.assign({ objectMode: !0, highWaterMark: 16 }, E));
|
|
1626
1624
|
return Q._transform = I, A && (Q._flush = A), Q;
|
|
1627
1625
|
});
|
|
1628
|
-
GA.exports =
|
|
1629
|
-
GA.exports.ctor =
|
|
1630
|
-
GA.exports.obj =
|
|
1631
|
-
var
|
|
1632
|
-
const bA = /* @__PURE__ */ wI(
|
|
1633
|
-
class
|
|
1626
|
+
GA.exports = Qg;
|
|
1627
|
+
GA.exports.ctor = Cg;
|
|
1628
|
+
GA.exports.obj = eg;
|
|
1629
|
+
var ig = GA.exports;
|
|
1630
|
+
const bA = /* @__PURE__ */ wI(ig);
|
|
1631
|
+
class rg {
|
|
1634
1632
|
constructor() {
|
|
1635
1633
|
this.initResolve = null, this.utils = null, this.wasm = null;
|
|
1636
1634
|
}
|
|
@@ -1638,7 +1636,7 @@ class ag {
|
|
|
1638
1636
|
const I = this, A = (Q) => {
|
|
1639
1637
|
I.wasm = Q, I.utils = new EA(Q), I.AES_KEY_SIZE = Q._EMS_AES_KEY_SIZE_(), I.CRYPTO_TYPE_TARGET = Q._EMS_CRYPTO_TYPE_TARGET_(), I.CRYPTO_TYPE_PRIMARY = Q._EMS_CRYPTO_TYPE_PRIMARY_(), I.TARGET_BLOCK_KEY_SIZE = Q._EMS_TARGET_BLOCK_KEY_SIZE_(), I.TARGET_PK_KEY_SIZE = Q._EMS_TARGET_PK_KEY_SIZE_(), I.ECIES_PK_KEY_SIZE = Q._EMS_ECIES_PK_KEY_SIZE_(), I.ECIES_SK_KEY_SIZE = Q._EMS_ECIES_SK_KEY_SIZE_(), I.IV_SIZE = Q._EMS_IV_SIZE_(), I.PRIMARY_BLOCK_KEY_SIZE = Q._EMS_PRIMARY_BLOCK_KEY_SIZE_(), I.PRIMARY_PK_KEY_SIZE = Q._EMS_PRIMARY_PK_KEY_SIZE_(), I.RE_ENCRYPTION_KEY_SIZE = Q._EMS_RE_ENCRYPTION_KEY_SIZE_(), I.SECRET_KEY_SIZE = Q._EMS_SECRET_KEY_SIZE_(), I.SEED_SIZE = Q._EMS_SEED_SIZE_(), I.TAG_SIZE = Q._EMS_TAG_SIZE_(), I.ELV_E_INCOMPLETE_BLOCK = -2, I.initResolve && I.initResolve(I);
|
|
1640
1638
|
};
|
|
1641
|
-
return
|
|
1639
|
+
return uI().then(A), new Promise((Q) => {
|
|
1642
1640
|
I.wasm ? Q(I) : I.initResolve = Q;
|
|
1643
1641
|
});
|
|
1644
1642
|
}
|
|
@@ -2227,5 +2225,5 @@ class ag {
|
|
|
2227
2225
|
}
|
|
2228
2226
|
}
|
|
2229
2227
|
export {
|
|
2230
|
-
|
|
2228
|
+
rg as default
|
|
2231
2229
|
};
|