@grizzshutsdown/simpleplayer 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/player/constants.d.ts +3 -0
- package/dist/player/fullscreen.d.ts +6 -0
- package/dist/player/media.d.ts +2 -0
- package/dist/player/progress.d.ts +4 -0
- package/dist/player/simple-player-element.d.ts +28 -0
- package/dist/player/styles.d.ts +1 -0
- package/dist/player/template.d.ts +1 -0
- package/dist/player/types.d.ts +33 -0
- package/dist/simple-player.d.ts +2 -26
- package/dist/simple-player.js +696 -565
- package/dist/simple-player.js.map +1 -1
- package/package.json +2 -1
- package/skill/simpleplayer/SKILL.md +2 -0
package/dist/simple-player.js
CHANGED
|
@@ -1,13 +1,84 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
throw TypeError(
|
|
1
|
+
var Vi = Object.defineProperty;
|
|
2
|
+
var ri = (d) => {
|
|
3
|
+
throw TypeError(d);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var t = (
|
|
8
|
-
const
|
|
5
|
+
var Ii = (d, p, i) => p in d ? Vi(d, p, { enumerable: !0, configurable: !0, writable: !0, value: i }) : d[p] = i;
|
|
6
|
+
var oi = (d, p, i) => Ii(d, typeof p != "symbol" ? p + "" : p, i), He = (d, p, i) => p.has(d) || ri("Cannot " + i);
|
|
7
|
+
var t = (d, p, i) => (He(d, p, "read from private field"), i ? i.call(d) : p.get(d)), n = (d, p, i) => p.has(d) ? ri("Cannot add the same private member more than once") : p instanceof WeakSet ? p.add(d) : p.set(d, i), r = (d, p, i, a) => (He(d, p, "write to private field"), a ? a.call(d, i) : p.set(d, i), i), e = (d, p, i) => (He(d, p, "access private method"), i);
|
|
8
|
+
const ni = "16 / 9", zi = "360px 0px", Ri = [
|
|
9
|
+
"src",
|
|
10
|
+
"aspect-ratio",
|
|
11
|
+
"preload-margin",
|
|
12
|
+
"controls",
|
|
13
|
+
"disable-autoplay",
|
|
14
|
+
"enable-volume",
|
|
15
|
+
"disable-volume",
|
|
16
|
+
"disable-volume-slider",
|
|
17
|
+
"enable-picture-in-picture",
|
|
18
|
+
"disable-picture-in-picture",
|
|
19
|
+
"enable-fullscreen",
|
|
20
|
+
"disable-fullscreen",
|
|
21
|
+
"show-time",
|
|
22
|
+
"no-autoplay",
|
|
23
|
+
"no-volume",
|
|
24
|
+
"no-volume-slider",
|
|
25
|
+
"no-picture-in-picture",
|
|
26
|
+
"no-fullscreen"
|
|
27
|
+
];
|
|
28
|
+
function Di(d) {
|
|
29
|
+
const p = document;
|
|
30
|
+
return d.fullscreenElement || document.fullscreenElement || p.webkitFullscreenElement || p.mozFullScreenElement || p.msFullscreenElement || null;
|
|
31
|
+
}
|
|
32
|
+
function Hi(d, p, i) {
|
|
33
|
+
const a = document, l = p, u = i, f = !!((document.fullscreenEnabled ?? a.webkitFullscreenEnabled ?? a.mozFullScreenEnabled ?? a.msFullscreenEnabled ?? !1) && (l.requestFullscreen || l.webkitRequestFullscreen || l.mozRequestFullScreen || l.msRequestFullscreen)), v = !!(u.webkitSupportsFullscreen || u.webkitEnterFullscreen || u.webkitEnterFullScreen);
|
|
34
|
+
return !!(d && (f || v));
|
|
35
|
+
}
|
|
36
|
+
function qi(d) {
|
|
37
|
+
const p = d, i = p.requestFullscreen || p.webkitRequestFullscreen || p.mozRequestFullScreen || p.msRequestFullscreen;
|
|
38
|
+
return Promise.resolve(i?.call(p));
|
|
39
|
+
}
|
|
40
|
+
function Bi(d) {
|
|
41
|
+
const p = d;
|
|
42
|
+
return typeof p.requestFullscreen == "function" || typeof p.webkitRequestFullscreen == "function" || typeof p.mozRequestFullScreen == "function" || typeof p.msRequestFullscreen == "function";
|
|
43
|
+
}
|
|
44
|
+
function $i(d) {
|
|
45
|
+
const p = d;
|
|
46
|
+
(p.webkitEnterFullscreen || p.webkitEnterFullScreen)?.call(p);
|
|
47
|
+
}
|
|
48
|
+
function Ui() {
|
|
49
|
+
const d = document, p = document.exitFullscreen || d.webkitExitFullscreen || d.mozCancelFullScreen || d.msExitFullscreen;
|
|
50
|
+
return Promise.resolve(p?.call(d));
|
|
51
|
+
}
|
|
52
|
+
function _(d) {
|
|
53
|
+
if (!Number.isFinite(d) || d < 0) return "0:00";
|
|
54
|
+
const p = Math.floor(d), i = p % 60, a = Math.floor(p / 60), l = a % 60, u = Math.floor(a / 60);
|
|
55
|
+
return u > 0 ? u + ":" + String(l).padStart(2, "0") + ":" + String(i).padStart(2, "0") : l + ":" + String(i).padStart(2, "0");
|
|
56
|
+
}
|
|
57
|
+
function Xi(d, p) {
|
|
58
|
+
const i = d;
|
|
59
|
+
if (i.audioTracks && typeof i.audioTracks.length == "number")
|
|
60
|
+
return i.audioTracks.length > 0;
|
|
61
|
+
const a = d;
|
|
62
|
+
if (typeof a.mozHasAudio == "boolean")
|
|
63
|
+
return a.mozHasAudio;
|
|
64
|
+
const l = d;
|
|
65
|
+
return typeof l.webkitAudioDecodedByteCount == "number" && d.readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && !d.muted && d.currentTime > 0.25 ? l.webkitAudioDecodedByteCount > 0 : p;
|
|
66
|
+
}
|
|
67
|
+
function ii(d) {
|
|
68
|
+
const p = Math.min(2, Math.max(0, d.width / 2)), i = Math.max(1, d.width - p * 2);
|
|
69
|
+
return { rect: d, sideInset: p, innerWidth: i };
|
|
70
|
+
}
|
|
71
|
+
function Ni(d, p) {
|
|
72
|
+
const { sideInset: i, innerWidth: a } = ii(p), l = Math.min(1, Math.max(0, d));
|
|
73
|
+
return i + l * a;
|
|
74
|
+
}
|
|
75
|
+
function Yi(d, p) {
|
|
76
|
+
const { sideInset: i, innerWidth: a } = ii(p);
|
|
77
|
+
return Math.min(1, Math.max(0, (d - p.left - i) / a));
|
|
78
|
+
}
|
|
79
|
+
const _i = `
|
|
9
80
|
:host {
|
|
10
|
-
--simple-player-aspect-ratio: ${
|
|
81
|
+
--simple-player-aspect-ratio: ${ni};
|
|
11
82
|
--space: 4px;
|
|
12
83
|
--white: #fff;
|
|
13
84
|
--black: #000;
|
|
@@ -684,9 +755,6 @@ const Je = "16 / 9", Ti = "360px 0px", Ci = `
|
|
|
684
755
|
|
|
685
756
|
.sp-time {
|
|
686
757
|
position: absolute;
|
|
687
|
-
bottom: calc(100% + var(--space));
|
|
688
|
-
left: var(--sp-scrub-preview-left);
|
|
689
|
-
z-index: 2;
|
|
690
758
|
display: block;
|
|
691
759
|
padding: 2px calc(var(--space) * 1.5);
|
|
692
760
|
color: var(--white);
|
|
@@ -696,12 +764,18 @@ const Je = "16 / 9", Ti = "360px 0px", Ci = `
|
|
|
696
764
|
overflow: hidden;
|
|
697
765
|
pointer-events: none;
|
|
698
766
|
opacity: 0;
|
|
699
|
-
transform: translateX(-50%) translateY(2px);
|
|
700
767
|
transition: transform 120ms ease;
|
|
701
768
|
white-space: nowrap;
|
|
702
769
|
font: 500 12px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
703
770
|
}
|
|
704
771
|
|
|
772
|
+
.sp-time {
|
|
773
|
+
bottom: calc(100% + var(--space));
|
|
774
|
+
left: var(--sp-scrub-preview-left);
|
|
775
|
+
z-index: 2;
|
|
776
|
+
transform: translateX(-50%) translateY(2px);
|
|
777
|
+
}
|
|
778
|
+
|
|
705
779
|
.sp-time-surface {
|
|
706
780
|
position: absolute;
|
|
707
781
|
inset: 0;
|
|
@@ -720,11 +794,39 @@ const Je = "16 / 9", Ti = "360px 0px", Ci = `
|
|
|
720
794
|
z-index: 1;
|
|
721
795
|
}
|
|
722
796
|
|
|
723
|
-
.sp-
|
|
797
|
+
.sp-progress:hover .sp-time,
|
|
798
|
+
.sp-player.is-progress-hovering .sp-time,
|
|
799
|
+
.sp-player.is-scrubbing .sp-time,
|
|
800
|
+
.sp-player.has-pinned-time .sp-time {
|
|
724
801
|
opacity: 1;
|
|
725
802
|
transform: translateX(-50%) translateY(0);
|
|
726
803
|
}
|
|
727
804
|
|
|
805
|
+
.sp-player.has-pinned-time .sp-time {
|
|
806
|
+
box-sizing: border-box;
|
|
807
|
+
display: grid;
|
|
808
|
+
place-items: center;
|
|
809
|
+
min-width: calc((var(--sp-control-slot-size) * 1.65) + (var(--sp-control-tray-padding) * 2));
|
|
810
|
+
height: calc(var(--sp-control-slot-size) + (var(--sp-control-tray-padding) * 2));
|
|
811
|
+
padding: 0 calc(var(--space) * 2);
|
|
812
|
+
bottom: calc(((var(--space) * 2) - 2px) + var(--sp-progress-height) + 8px);
|
|
813
|
+
left: 0;
|
|
814
|
+
border-radius: 5px;
|
|
815
|
+
color: rgb(var(--white-rgb) / var(--sp-control-icon-opacity));
|
|
816
|
+
font: 600 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
817
|
+
transform: translateX(0) translateY(0);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
.sp-player.has-pinned-time .sp-time .sp-time-surface {
|
|
821
|
+
background: var(--sp-control-glass-surface);
|
|
822
|
+
opacity: var(--sp-control-glass-opacity);
|
|
823
|
+
box-shadow: inset 0 0 0 1px rgb(var(--white-rgb) / 0.08);
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
.sp-player.is-loading:not(.has-loaded-once) .sp-time {
|
|
827
|
+
opacity: 0;
|
|
828
|
+
}
|
|
829
|
+
|
|
728
830
|
.sp-button:focus-visible,
|
|
729
831
|
.sp-progress:focus-visible,
|
|
730
832
|
.sp-control-button:focus-visible,
|
|
@@ -772,6 +874,26 @@ const Je = "16 / 9", Ti = "360px 0px", Ci = `
|
|
|
772
874
|
--sp-progress-height: 4px;
|
|
773
875
|
}
|
|
774
876
|
|
|
877
|
+
.sp-progress:hover .sp-time,
|
|
878
|
+
.sp-player.is-progress-hovering .sp-time {
|
|
879
|
+
opacity: 0;
|
|
880
|
+
transform: translateX(-50%) translateY(2px);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
.sp-player.has-pinned-time .sp-time {
|
|
884
|
+
opacity: 1;
|
|
885
|
+
transform: translateX(0) translateY(0);
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
.sp-player.is-scrubbing .sp-time {
|
|
889
|
+
opacity: 1;
|
|
890
|
+
transform: translateX(-50%) translateY(0);
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
.sp-player.has-pinned-time.is-scrubbing .sp-time {
|
|
894
|
+
transform: translateX(0) translateY(0);
|
|
895
|
+
}
|
|
896
|
+
|
|
775
897
|
.sp-player.is-scrubbing .sp-progress-cluster {
|
|
776
898
|
--sp-progress-height: 14px;
|
|
777
899
|
}
|
|
@@ -850,9 +972,9 @@ const Je = "16 / 9", Ti = "360px 0px", Ci = `
|
|
|
850
972
|
transform: translateY(0) scale(1);
|
|
851
973
|
}
|
|
852
974
|
}
|
|
853
|
-
`,
|
|
854
|
-
|
|
855
|
-
<style>${
|
|
975
|
+
`, ai = document.createElement("template");
|
|
976
|
+
ai.innerHTML = `
|
|
977
|
+
<style>${_i}</style>
|
|
856
978
|
<div class="sp-player is-loading" data-sp-player>
|
|
857
979
|
<video
|
|
858
980
|
class="sp-video sp-asset"
|
|
@@ -930,381 +1052,388 @@ Qe.innerHTML = `
|
|
|
930
1052
|
</div>
|
|
931
1053
|
</div>
|
|
932
1054
|
`;
|
|
933
|
-
var
|
|
934
|
-
class
|
|
1055
|
+
var b, Ot, D, Kt, H, h, o, U, m, X, W, Gt, Jt, w, j, E, st, et, it, ft, g, z, rt, S, Lt, ot, Ft, N, bt, Qt, St, P, L, ts, nt, vt, gt, at, gs, ss, q, B, Z, O, K, Mt, yt, ys, Vt, ws, xs, wt, R, lt, It, M, y, G, es, is, zt, Y, ht, x, xt, kt, Pt, rs, Ws, js, os, Zs, Os, ks, Rt, Ks, Gs, Js, Qs, te, se, Dt, ee, ie, s, zs, Rs, qe, hs, Be, Ds, hi, c, Hs, Ht, $, re, cs, J, Q, qs, us, Nt, ci, $e, Ue, Xe, Yt, ps, Bs, Ne, qt, Bt, Ps, $t, ct, ut, Es, oe, Ts, $s, Cs, ne, Ye, ds, Us, ms, _e, ui, As, pi, pt, We, di, je, _t, V, mi, C, fi, Ze, Oe, bi, Ut, Ke, k, tt, Ge, vi, Ct, dt, gi, yi, fs, wi, xi, ki, bs, I, mt, Wt, Pi, jt, Ei, T, At, Ti, F, Je, Xs, Zt, Et, Ns, Qe, Ci, Ai, Li, Xt, Tt, Fi, Ls, Ys, ti, _s, ae, le, he, vs, si, ns, ei, Fs, Ss, ce, ue, pe, de, me, fe, be, ve, Ms, Vs, ge, ye, we, xe, ke, Pe, Ee, Te, Ce, Ae, Le, Fe, Se, as, Me, Ve, Ie, ze, Re, De, A, Si;
|
|
1056
|
+
class li extends HTMLElement {
|
|
935
1057
|
constructor() {
|
|
936
1058
|
super();
|
|
937
1059
|
n(this, s);
|
|
938
|
-
n(this,
|
|
939
|
-
n(this,
|
|
940
|
-
n(this,
|
|
941
|
-
n(this,
|
|
942
|
-
n(this,
|
|
943
|
-
n(this,
|
|
944
|
-
n(this,
|
|
945
|
-
n(this,
|
|
946
|
-
n(this,
|
|
947
|
-
n(this,
|
|
948
|
-
n(this,
|
|
949
|
-
n(this,
|
|
950
|
-
n(this,
|
|
951
|
-
n(this,
|
|
952
|
-
n(this,
|
|
1060
|
+
n(this, b);
|
|
1061
|
+
n(this, Ot, []);
|
|
1062
|
+
n(this, D, null);
|
|
1063
|
+
n(this, Kt, !1);
|
|
1064
|
+
n(this, H, !1);
|
|
1065
|
+
n(this, h);
|
|
1066
|
+
n(this, o);
|
|
1067
|
+
n(this, U);
|
|
1068
|
+
n(this, m);
|
|
1069
|
+
n(this, X);
|
|
1070
|
+
n(this, W);
|
|
1071
|
+
n(this, Gt);
|
|
1072
|
+
n(this, Jt);
|
|
1073
|
+
n(this, w);
|
|
1074
|
+
n(this, j);
|
|
953
1075
|
n(this, E);
|
|
954
|
-
n(this, tt);
|
|
955
1076
|
n(this, st);
|
|
956
|
-
n(this,
|
|
957
|
-
n(this,
|
|
958
|
-
n(this, v, !1);
|
|
959
|
-
n(this, M, !1);
|
|
960
|
-
n(this, et, !1);
|
|
961
|
-
n(this, F, 0);
|
|
962
|
-
n(this, Tt, 0);
|
|
963
|
-
n(this, it, 0);
|
|
964
|
-
n(this, Ct, !1);
|
|
965
|
-
n(this, N, !1);
|
|
966
|
-
n(this, mt, !1);
|
|
967
|
-
n(this, Ot, 0);
|
|
968
|
-
n(this, At, 0);
|
|
969
|
-
n(this, k, null);
|
|
970
|
-
n(this, C, null);
|
|
971
|
-
n(this, Kt, 0);
|
|
972
|
-
n(this, rt, 0);
|
|
1077
|
+
n(this, et);
|
|
1078
|
+
n(this, it, []);
|
|
973
1079
|
n(this, ft, 0);
|
|
974
|
-
n(this,
|
|
1080
|
+
n(this, g, !1);
|
|
1081
|
+
n(this, z, !1);
|
|
1082
|
+
n(this, rt, !1);
|
|
1083
|
+
n(this, S, 0);
|
|
1084
|
+
n(this, Lt, 0);
|
|
975
1085
|
n(this, ot, 0);
|
|
976
|
-
n(this,
|
|
977
|
-
n(this,
|
|
978
|
-
n(this,
|
|
979
|
-
n(this,
|
|
980
|
-
n(this,
|
|
981
|
-
n(this,
|
|
982
|
-
n(this,
|
|
983
|
-
n(this,
|
|
984
|
-
n(this,
|
|
985
|
-
n(this,
|
|
986
|
-
n(this, Lt, !0);
|
|
987
|
-
n(this, gs, 0);
|
|
988
|
-
n(this, ys, performance.now());
|
|
1086
|
+
n(this, Ft, !1);
|
|
1087
|
+
n(this, N, !1);
|
|
1088
|
+
n(this, bt, !1);
|
|
1089
|
+
n(this, Qt, 0);
|
|
1090
|
+
n(this, St, 0);
|
|
1091
|
+
n(this, P, null);
|
|
1092
|
+
n(this, L, null);
|
|
1093
|
+
n(this, ts, 0);
|
|
1094
|
+
n(this, nt, 0);
|
|
1095
|
+
n(this, vt, 0);
|
|
989
1096
|
n(this, gt, 0);
|
|
990
|
-
n(this,
|
|
991
|
-
n(this,
|
|
992
|
-
n(this,
|
|
993
|
-
n(this,
|
|
1097
|
+
n(this, at, 0);
|
|
1098
|
+
n(this, gs, 0);
|
|
1099
|
+
n(this, ss, 0);
|
|
1100
|
+
n(this, q, !1);
|
|
1101
|
+
n(this, B, !1);
|
|
1102
|
+
n(this, Z, !1);
|
|
994
1103
|
n(this, O, !1);
|
|
995
|
-
n(this,
|
|
996
|
-
n(this,
|
|
997
|
-
n(this,
|
|
998
|
-
n(this,
|
|
999
|
-
n(this,
|
|
1000
|
-
n(this,
|
|
1001
|
-
n(this,
|
|
1104
|
+
n(this, K, 0);
|
|
1105
|
+
n(this, Mt, 0);
|
|
1106
|
+
n(this, yt, !1);
|
|
1107
|
+
n(this, ys, 0);
|
|
1108
|
+
n(this, Vt, !0);
|
|
1109
|
+
n(this, ws, 0);
|
|
1110
|
+
n(this, xs, performance.now());
|
|
1002
1111
|
n(this, wt, 0);
|
|
1112
|
+
n(this, R, null);
|
|
1113
|
+
n(this, lt, null);
|
|
1114
|
+
n(this, It, !1);
|
|
1115
|
+
n(this, M, !1);
|
|
1116
|
+
n(this, y, !0);
|
|
1117
|
+
n(this, G, !1);
|
|
1118
|
+
n(this, es, null);
|
|
1119
|
+
n(this, is, null);
|
|
1120
|
+
n(this, zt, !1);
|
|
1121
|
+
n(this, Y, !1);
|
|
1122
|
+
n(this, ht, !1);
|
|
1123
|
+
n(this, x, null);
|
|
1003
1124
|
n(this, xt, 0);
|
|
1004
|
-
n(this,
|
|
1005
|
-
n(this,
|
|
1006
|
-
n(this,
|
|
1007
|
-
n(this,
|
|
1008
|
-
n(this,
|
|
1009
|
-
n(this,
|
|
1010
|
-
n(this,
|
|
1011
|
-
n(this,
|
|
1012
|
-
n(this,
|
|
1013
|
-
n(this,
|
|
1014
|
-
n(this,
|
|
1015
|
-
n(this,
|
|
1016
|
-
n(this,
|
|
1017
|
-
n(this,
|
|
1018
|
-
n(this,
|
|
1019
|
-
n(this,
|
|
1020
|
-
n(this,
|
|
1021
|
-
n(this,
|
|
1125
|
+
n(this, kt, 0);
|
|
1126
|
+
n(this, Pt, 0);
|
|
1127
|
+
n(this, rs, null);
|
|
1128
|
+
n(this, Ws, 4);
|
|
1129
|
+
n(this, js, 3.5);
|
|
1130
|
+
n(this, os, 6);
|
|
1131
|
+
n(this, Zs, 0.08);
|
|
1132
|
+
n(this, Os, 240);
|
|
1133
|
+
n(this, ks, 1200);
|
|
1134
|
+
n(this, Rt, 1600);
|
|
1135
|
+
n(this, Ks, 140);
|
|
1136
|
+
n(this, Gs, 380);
|
|
1137
|
+
n(this, Js, 650);
|
|
1138
|
+
n(this, Qs, 2e3);
|
|
1139
|
+
n(this, te, 3);
|
|
1140
|
+
n(this, se, 10);
|
|
1141
|
+
n(this, Dt, 0.18);
|
|
1142
|
+
n(this, ee, 8);
|
|
1143
|
+
n(this, ie, 18);
|
|
1144
|
+
n(this, Ht, (i) => {
|
|
1022
1145
|
i.preventDefault();
|
|
1023
1146
|
});
|
|
1024
|
-
n(this,
|
|
1025
|
-
if (
|
|
1026
|
-
if (e(this, s,
|
|
1027
|
-
t(this,
|
|
1147
|
+
n(this, re, () => {
|
|
1148
|
+
if (r(this, vt, 0), !(t(this, z) || t(this, g) || t(this, Y))) {
|
|
1149
|
+
if (e(this, s, A).call(this)) {
|
|
1150
|
+
t(this, h).classList.remove("is-controls-visible");
|
|
1028
1151
|
return;
|
|
1029
1152
|
}
|
|
1030
|
-
t(this,
|
|
1153
|
+
t(this, G) || t(this, h).classList.remove("is-pointer-active");
|
|
1031
1154
|
}
|
|
1032
1155
|
});
|
|
1033
|
-
n(this,
|
|
1034
|
-
e(this, s,
|
|
1156
|
+
n(this, qt, (i) => {
|
|
1157
|
+
e(this, s, Nt).call(this, i) && e(this, s, qs).call(this, !0);
|
|
1035
1158
|
});
|
|
1036
|
-
n(this,
|
|
1037
|
-
e(this, s,
|
|
1159
|
+
n(this, Bt, (i) => {
|
|
1160
|
+
e(this, s, Nt).call(this, i) && ((i instanceof PointerEvent || i instanceof MouseEvent) && e(this, s, Xe).call(this, i.clientX, i.clientY), e(this, s, qs).call(this, !0));
|
|
1038
1161
|
});
|
|
1039
|
-
n(this,
|
|
1040
|
-
e(this, s,
|
|
1162
|
+
n(this, Ps, (i) => {
|
|
1163
|
+
e(this, s, Nt).call(this, i) && ((i instanceof PointerEvent || i instanceof MouseEvent) && e(this, s, Xe).call(this, i.clientX, i.clientY), e(this, s, Ne).call(this));
|
|
1041
1164
|
});
|
|
1042
|
-
n(this,
|
|
1043
|
-
e(this, s,
|
|
1165
|
+
n(this, $t, () => {
|
|
1166
|
+
e(this, s, us).call(this);
|
|
1044
1167
|
});
|
|
1045
|
-
n(this,
|
|
1046
|
-
e(this, s,
|
|
1168
|
+
n(this, ct, (i) => {
|
|
1169
|
+
e(this, s, Nt).call(this, i) && (r(this, G, !0), t(this, h).classList.add("is-pointer-active"), e(this, s, $).call(this));
|
|
1047
1170
|
});
|
|
1048
|
-
n(this,
|
|
1049
|
-
|
|
1171
|
+
n(this, ut, () => {
|
|
1172
|
+
r(this, G, !1), e(this, s, cs).call(this, t(this, Rt));
|
|
1050
1173
|
});
|
|
1051
|
-
n(this,
|
|
1052
|
-
e(this, s,
|
|
1174
|
+
n(this, Es, () => {
|
|
1175
|
+
e(this, s, A).call(this) ? t(this, h).classList.add("is-controls-visible") : t(this, h).classList.add("is-pointer-active"), e(this, s, $).call(this);
|
|
1053
1176
|
});
|
|
1054
|
-
n(this,
|
|
1055
|
-
e(this, s,
|
|
1177
|
+
n(this, oe, () => {
|
|
1178
|
+
e(this, s, cs).call(this, t(this, Rt));
|
|
1056
1179
|
});
|
|
1057
|
-
n(this,
|
|
1180
|
+
n(this, Ts, (i) => {
|
|
1058
1181
|
const a = i.currentTarget;
|
|
1059
|
-
if (e(this, s,
|
|
1060
|
-
t(this,
|
|
1182
|
+
if (e(this, s, Bs).call(this, a)) {
|
|
1183
|
+
t(this, W).style.removeProperty("--sp-control-hover-offset");
|
|
1061
1184
|
return;
|
|
1062
1185
|
}
|
|
1063
|
-
const
|
|
1064
|
-
t(this,
|
|
1186
|
+
const u = Number(a.dataset.spControlIndex ?? 0);
|
|
1187
|
+
t(this, W).style.setProperty("--sp-control-hover-offset", `calc(var(--sp-control-slot-size) * ${u})`);
|
|
1065
1188
|
});
|
|
1066
|
-
n(this,
|
|
1067
|
-
|
|
1189
|
+
n(this, Cs, () => {
|
|
1190
|
+
r(this, Pt, 0), t(this, it).forEach((i) => i.classList.remove("is-control-tap-active")), this.style.removeProperty("--sp-touch-control-hover-offset");
|
|
1068
1191
|
});
|
|
1069
|
-
n(this,
|
|
1192
|
+
n(this, ne, (i) => {
|
|
1070
1193
|
if (!(i instanceof PointerEvent) || i.pointerType !== "touch") return;
|
|
1071
1194
|
const a = i.currentTarget;
|
|
1072
|
-
if (!a || !e(this, s,
|
|
1195
|
+
if (!a || !e(this, s, Yt).call(this) || e(this, s, Bs).call(this, a)) return;
|
|
1073
1196
|
const l = Number(a.dataset.spControlIndex ?? 0);
|
|
1074
|
-
e(this, s,
|
|
1197
|
+
e(this, s, $s).call(this), t(this, it).forEach((u) => u.classList.toggle("is-control-tap-active", u === a)), this.style.setProperty("--sp-touch-control-hover-offset", `calc(var(--sp-control-slot-size) * ${l})`), r(this, Pt, window.setTimeout(t(this, Cs), 280));
|
|
1075
1198
|
});
|
|
1076
|
-
n(this,
|
|
1077
|
-
if (t(this,
|
|
1078
|
-
if (e(this, s,
|
|
1079
|
-
t(this,
|
|
1199
|
+
n(this, As, () => {
|
|
1200
|
+
if (t(this, at) || t(this, h).classList.contains("is-progress-settling")) {
|
|
1201
|
+
if (e(this, s, Us).call(this), t(this, yt)) {
|
|
1202
|
+
t(this, h).classList.remove("is-progress-settling");
|
|
1080
1203
|
return;
|
|
1081
1204
|
}
|
|
1082
|
-
|
|
1205
|
+
r(this, yt, !0), r(this, ys, performance.now() + t(this, Js)), e(this, s, C).call(this) || e(this, s, k).call(this), e(this, s, I).call(this), t(this, h).classList.remove("is-progress-settling"), e(this, s, T).call(this);
|
|
1083
1206
|
}
|
|
1084
1207
|
});
|
|
1085
|
-
n(this,
|
|
1086
|
-
if (t(this,
|
|
1087
|
-
e(this, s,
|
|
1208
|
+
n(this, V, () => {
|
|
1209
|
+
if (t(this, o).error) {
|
|
1210
|
+
e(this, s, _t).call(this, !0, !0);
|
|
1088
1211
|
return;
|
|
1089
1212
|
}
|
|
1090
|
-
e(this, s,
|
|
1213
|
+
e(this, s, _t).call(this, !t(this, H) || !t(this, B) || t(this, o).readyState < HTMLMediaElement.HAVE_FUTURE_DATA);
|
|
1091
1214
|
});
|
|
1092
|
-
n(this,
|
|
1093
|
-
if (t(this,
|
|
1094
|
-
return t(this,
|
|
1095
|
-
if (!t(this,
|
|
1096
|
-
return e(this, s,
|
|
1097
|
-
const i = e(this, s,
|
|
1098
|
-
return t(this,
|
|
1215
|
+
n(this, Ut, () => {
|
|
1216
|
+
if (t(this, o).error || t(this, o).readyState < HTMLMediaElement.HAVE_CURRENT_DATA || t(this, o).videoWidth <= 0 || t(this, o).videoHeight <= 0)
|
|
1217
|
+
return t(this, V).call(this), !1;
|
|
1218
|
+
if (!t(this, q))
|
|
1219
|
+
return e(this, s, bi).call(this), t(this, V).call(this), !1;
|
|
1220
|
+
const i = e(this, s, Oe).call(this);
|
|
1221
|
+
return t(this, F).call(this), i;
|
|
1099
1222
|
});
|
|
1100
|
-
n(this,
|
|
1223
|
+
n(this, F, () => {
|
|
1101
1224
|
if (!this.volumeEnabled) {
|
|
1102
|
-
t(this,
|
|
1225
|
+
t(this, h).classList.remove("is-volume-unavailable", "is-volume-muted", "is-volume-sound", "is-volume-icon-animating"), t(this, w).disabled = !0, t(this, w).setAttribute("aria-disabled", "true");
|
|
1103
1226
|
return;
|
|
1104
1227
|
}
|
|
1105
|
-
|
|
1106
|
-
const i = !t(this,
|
|
1107
|
-
t(this,
|
|
1228
|
+
r(this, y, e(this, s, Ti).call(this));
|
|
1229
|
+
const i = !t(this, y) || t(this, o).muted || t(this, o).volume <= 0, a = t(this, y) && !t(this, o).muted ? t(this, o).volume : 0, l = Math.round(a * 100), u = i ? "muted" : "sound";
|
|
1230
|
+
t(this, rs) && t(this, rs) !== u && e(this, s, ui).call(this), r(this, rs, u), t(this, h).classList.toggle("is-volume-unavailable", !t(this, y)), t(this, h).classList.toggle("is-volume-muted", i), t(this, h).classList.toggle("is-volume-sound", !i), t(this, h).style.setProperty("--sp-volume-level", `${l}%`), t(this, w).disabled = !t(this, y), t(this, w).setAttribute("aria-disabled", `${!t(this, y)}`), t(this, w).setAttribute(
|
|
1108
1231
|
"aria-label",
|
|
1109
|
-
t(this,
|
|
1232
|
+
t(this, y) ? i ? "Unmute video" : "Mute video" : "Video has no audio"
|
|
1110
1233
|
), t(this, E).setAttribute("aria-valuenow", `${l}`), t(this, E).setAttribute("aria-valuetext", `${l}%`);
|
|
1111
1234
|
});
|
|
1112
|
-
n(this,
|
|
1113
|
-
const i = document.pictureInPictureElement === t(this,
|
|
1114
|
-
t(this,
|
|
1235
|
+
n(this, Et, () => {
|
|
1236
|
+
const i = document.pictureInPictureElement === t(this, o), a = t(this, o), l = !!(this.pictureInPictureEnabled && document.pictureInPictureEnabled && a.requestPictureInPicture);
|
|
1237
|
+
t(this, h).classList.toggle("is-picture-in-picture", i), t(this, st).disabled = !l, t(this, st).setAttribute("aria-label", i ? "Exit picture in picture" : "Enter picture in picture");
|
|
1115
1238
|
});
|
|
1116
|
-
n(this,
|
|
1117
|
-
const i = e(this, s,
|
|
1118
|
-
return t(this,
|
|
1239
|
+
n(this, Xt, () => {
|
|
1240
|
+
const i = e(this, s, Ns).call(this), a = i === t(this, h) || i === this, l = e(this, s, Qe).call(this);
|
|
1241
|
+
return t(this, h).classList.toggle("is-fullscreen", a), t(this, et).disabled = !l, t(this, et).setAttribute("aria-label", a ? "Exit fullscreen" : "Enter fullscreen"), a;
|
|
1119
1242
|
});
|
|
1120
|
-
n(this,
|
|
1121
|
-
const i = t(this,
|
|
1122
|
-
e(this, s,
|
|
1243
|
+
n(this, Tt, () => {
|
|
1244
|
+
const i = t(this, Xt).call(this);
|
|
1245
|
+
e(this, s, Fi).call(this, i);
|
|
1123
1246
|
});
|
|
1124
|
-
n(this,
|
|
1125
|
-
!t(this,
|
|
1247
|
+
n(this, Ls, () => {
|
|
1248
|
+
!t(this, z) || t(this, g) || (e(this, s, tt).call(this), e(this, s, $).call(this), e(this, s, At).call(this), r(this, g, !0), t(this, h).classList.add("is-scrubbing"), r(this, S, e(this, s, mt).call(this, t(this, Qt), !0)), t(this, rt) && t(this, o).pause(), t(this, o).currentTime = t(this, S), e(this, s, k).call(this, t(this, S)), e(this, s, I).call(this, t(this, S)), e(this, s, jt).call(this), e(this, s, T).call(this));
|
|
1126
1249
|
});
|
|
1127
|
-
n(this,
|
|
1128
|
-
if (performance.now() < t(this,
|
|
1250
|
+
n(this, ae, async () => {
|
|
1251
|
+
if (performance.now() < t(this, gs))
|
|
1129
1252
|
return;
|
|
1130
|
-
const i = t(this,
|
|
1131
|
-
e(this, s,
|
|
1132
|
-
|
|
1133
|
-
})) : (e(this, s,
|
|
1253
|
+
const i = t(this, L) ? t(this, L) !== "playing" : t(this, o).paused || t(this, o).ended, a = !i || e(this, s, mi).call(this);
|
|
1254
|
+
e(this, s, Q).call(this), a && (r(this, L, i ? "playing" : "paused"), e(this, s, T).call(this)), i ? (e(this, s, tt).call(this), await e(this, s, pt).call(this), await t(this, o).play().catch(() => {
|
|
1255
|
+
r(this, L, null);
|
|
1256
|
+
})) : (e(this, s, vi).call(this), t(this, o).pause()), e(this, s, T).call(this), e(this, s, J).call(this);
|
|
1134
1257
|
});
|
|
1135
|
-
n(this,
|
|
1258
|
+
n(this, le, (i) => {
|
|
1136
1259
|
if (!(i instanceof PointerEvent)) return;
|
|
1137
|
-
const a = t(this,
|
|
1138
|
-
|
|
1260
|
+
const a = t(this, U).getBoundingClientRect(), l = i.clientX >= a.left && i.clientX <= a.right && i.clientY >= a.top && i.clientY <= a.bottom, u = t(this, X).getBoundingClientRect(), f = i.clientX >= u.left && i.clientX <= u.right && i.clientY >= u.top && i.clientY <= u.bottom, v = t(this, m).getBoundingClientRect(), Is = i.clientX >= v.left && i.clientX <= v.right && i.clientY >= v.top && i.clientY <= v.bottom, ls = e(this, s, Q).call(this);
|
|
1261
|
+
ls && l && r(this, gs, performance.now() + 260), ls && (f || Is) && r(this, ss, performance.now() + 260), e(this, s, pt).call(this);
|
|
1139
1262
|
});
|
|
1140
|
-
n(this,
|
|
1263
|
+
n(this, he, (i) => {
|
|
1141
1264
|
i.stopPropagation();
|
|
1142
1265
|
});
|
|
1143
|
-
n(this,
|
|
1144
|
-
|
|
1145
|
-
});
|
|
1146
|
-
n(this, As, () => {
|
|
1147
|
-
e(this, s, I).call(this) || !this.volumeSliderEnabled || !t(this, g) || (o(this, at, !0), e(this, s, Ze).call(this));
|
|
1266
|
+
n(this, ns, () => {
|
|
1267
|
+
r(this, xt, 0), !(t(this, ht) || t(this, Y)) && t(this, w).classList.remove("is-volume-open");
|
|
1148
1268
|
});
|
|
1149
1269
|
n(this, Fs, () => {
|
|
1150
|
-
e(this, s,
|
|
1270
|
+
e(this, s, A).call(this) || !this.volumeSliderEnabled || !t(this, y) || (r(this, ht, !0), e(this, s, si).call(this));
|
|
1151
1271
|
});
|
|
1152
|
-
n(this,
|
|
1153
|
-
|
|
1272
|
+
n(this, Ss, () => {
|
|
1273
|
+
e(this, s, A).call(this) || !this.volumeSliderEnabled || !t(this, y) || (r(this, ht, !1), e(this, s, ei).call(this));
|
|
1154
1274
|
});
|
|
1155
|
-
n(this,
|
|
1156
|
-
|
|
1275
|
+
n(this, ce, (i) => {
|
|
1276
|
+
!this.volumeEnabled || !t(this, y) || (i.preventDefault(), i.stopPropagation(), !(!e(this, s, Yt).call(this) || e(this, s, ps).call(this)) && (e(this, s, Q).call(this), t(this, ns).call(this), t(this, o).muted || t(this, o).volume <= 0 ? (t(this, o).volume <= 0 && (t(this, o).volume = 0.7), t(this, o).muted = !1) : t(this, o).muted = !0, t(this, F).call(this), e(this, s, J).call(this)));
|
|
1157
1277
|
});
|
|
1158
|
-
n(this,
|
|
1159
|
-
i instanceof PointerEvent && t(this,
|
|
1278
|
+
n(this, ue, (i) => {
|
|
1279
|
+
i instanceof PointerEvent && (!this.volumeEnabled || !this.volumeSliderEnabled || !t(this, y) || e(this, s, A).call(this) || (i.preventDefault(), i.stopPropagation(), e(this, s, Q).call(this), e(this, s, $).call(this), e(this, s, si).call(this), r(this, Y, !0), r(this, x, i.pointerId), t(this, j).classList.add("is-scrubbing-volume"), t(this, E).setPointerCapture(i.pointerId), e(this, s, Je).call(this, i.clientY)));
|
|
1160
1280
|
});
|
|
1161
|
-
n(this,
|
|
1162
|
-
i instanceof PointerEvent && (t(this,
|
|
1281
|
+
n(this, pe, (i) => {
|
|
1282
|
+
i instanceof PointerEvent && t(this, Y) && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.preventDefault(), i.stopPropagation(), e(this, s, Je).call(this, i.clientY)));
|
|
1163
1283
|
});
|
|
1164
|
-
n(this,
|
|
1165
|
-
i instanceof PointerEvent && (t(this,
|
|
1284
|
+
n(this, de, (i) => {
|
|
1285
|
+
i instanceof PointerEvent && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.stopPropagation(), e(this, s, Zt).call(this, i.pointerId), e(this, s, J).call(this)));
|
|
1166
1286
|
});
|
|
1167
|
-
n(this,
|
|
1168
|
-
|
|
1287
|
+
n(this, me, (i) => {
|
|
1288
|
+
i instanceof PointerEvent && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.stopPropagation(), e(this, s, Zt).call(this, i.pointerId)));
|
|
1289
|
+
});
|
|
1290
|
+
n(this, fe, (i) => {
|
|
1291
|
+
if (!(i instanceof KeyboardEvent) || !this.volumeEnabled || !t(this, y) || !["ArrowUp", "ArrowDown", "Home", "End"].includes(i.key)) return;
|
|
1169
1292
|
i.preventDefault(), i.stopPropagation();
|
|
1170
|
-
const a = i.shiftKey ? 0.1 : 0.05, l = i.key === "Home" ? 0 : i.key === "End" ? 1 : t(this,
|
|
1171
|
-
t(this,
|
|
1293
|
+
const a = i.shiftKey ? 0.1 : 0.05, l = i.key === "Home" ? 0 : i.key === "End" ? 1 : t(this, o).volume + (i.key === "ArrowUp" ? a : -a);
|
|
1294
|
+
t(this, o).volume = Math.min(1, Math.max(0, l)), t(this, o).muted = t(this, o).volume <= 0, t(this, F).call(this);
|
|
1172
1295
|
});
|
|
1173
|
-
n(this,
|
|
1174
|
-
const i = t(this,
|
|
1175
|
-
if (!(!this.pictureInPictureEnabled || !document.pictureInPictureEnabled || !i.requestPictureInPicture) && !(!e(this, s,
|
|
1176
|
-
e(this, s,
|
|
1296
|
+
n(this, be, async () => {
|
|
1297
|
+
const i = t(this, o);
|
|
1298
|
+
if (!(!this.pictureInPictureEnabled || !document.pictureInPictureEnabled || !i.requestPictureInPicture) && !(!e(this, s, Yt).call(this) || e(this, s, ps).call(this))) {
|
|
1299
|
+
e(this, s, Q).call(this);
|
|
1177
1300
|
try {
|
|
1178
|
-
await e(this, s,
|
|
1301
|
+
await e(this, s, pt).call(this), document.pictureInPictureElement === t(this, o) ? await document.exitPictureInPicture() : await i.requestPictureInPicture();
|
|
1179
1302
|
} catch {
|
|
1180
1303
|
} finally {
|
|
1181
|
-
t(this,
|
|
1304
|
+
t(this, Et).call(this), e(this, s, J).call(this);
|
|
1182
1305
|
}
|
|
1183
1306
|
}
|
|
1184
1307
|
});
|
|
1185
|
-
n(this,
|
|
1186
|
-
if (e(this, s,
|
|
1187
|
-
e(this, s,
|
|
1308
|
+
n(this, ve, async (i) => {
|
|
1309
|
+
if (e(this, s, Qe).call(this) && (i.preventDefault(), i.stopPropagation(), !(!e(this, s, Yt).call(this) || e(this, s, ps).call(this)))) {
|
|
1310
|
+
e(this, s, Nt).call(this, i), e(this, s, Q).call(this);
|
|
1188
1311
|
try {
|
|
1189
|
-
const a = e(this, s,
|
|
1190
|
-
|
|
1191
|
-
await e(this, s, yi).call(this);
|
|
1192
|
-
else {
|
|
1193
|
-
await e(this, s, ct).call(this);
|
|
1194
|
-
const l = t(this, c);
|
|
1195
|
-
typeof l.requestFullscreen == "function" || typeof l.webkitRequestFullscreen == "function" || typeof l.mozRequestFullScreen == "function" || typeof l.msRequestFullscreen == "function" ? await e(this, s, vi).call(this) : e(this, s, gi).call(this);
|
|
1196
|
-
}
|
|
1312
|
+
const a = e(this, s, Ns).call(this);
|
|
1313
|
+
a === t(this, h) || a === this ? await e(this, s, Li).call(this) : (await e(this, s, pt).call(this), Bi(t(this, h)) ? await e(this, s, Ci).call(this) : e(this, s, Ai).call(this));
|
|
1197
1314
|
} catch {
|
|
1198
1315
|
} finally {
|
|
1199
|
-
t(this,
|
|
1316
|
+
t(this, Xt).call(this), e(this, s, J).call(this);
|
|
1200
1317
|
}
|
|
1201
1318
|
}
|
|
1202
1319
|
});
|
|
1203
|
-
n(this,
|
|
1320
|
+
n(this, Ms, (i) => {
|
|
1321
|
+
e(this, s, A).call(this) || e(this, s, C).call(this) || !(i instanceof PointerEvent) && !(i instanceof MouseEvent) || (r(this, M, !0), t(this, h).classList.add("is-progress-hovering"), e(this, s, mt).call(this, i.clientX, !1, !1));
|
|
1322
|
+
});
|
|
1323
|
+
n(this, Vs, () => {
|
|
1324
|
+
e(this, s, C).call(this) || e(this, s, Ue).call(this);
|
|
1325
|
+
});
|
|
1326
|
+
n(this, ge, (i) => {
|
|
1204
1327
|
if (i instanceof PointerEvent) {
|
|
1205
|
-
if (i.preventDefault(), !e(this, s,
|
|
1206
|
-
e(this, s,
|
|
1328
|
+
if (i.preventDefault(), !e(this, s, Yt).call(this) || e(this, s, ps).call(this)) {
|
|
1329
|
+
e(this, s, Q).call(this), e(this, s, A).call(this) && r(this, ss, performance.now() + 260);
|
|
1207
1330
|
return;
|
|
1208
1331
|
}
|
|
1209
|
-
e(this, s,
|
|
1332
|
+
e(this, s, Q).call(this), e(this, s, $).call(this), t(this, As).call(this), r(this, N, !1), r(this, bt, !1), e(this, s, xi).call(this, e(this, s, Ct).call(this)), r(this, z, !0), r(this, P, i.pointerId), r(this, Qt, i.clientX), r(this, rt, !t(this, o).paused && !t(this, o).ended), t(this, m).setPointerCapture(i.pointerId), r(this, S, e(this, s, mt).call(this, i.clientX, !1)), e(this, s, At).call(this), r(this, St, window.setTimeout(t(this, Ls), t(this, Os)));
|
|
1210
1333
|
}
|
|
1211
1334
|
});
|
|
1212
|
-
n(this,
|
|
1213
|
-
if (!(i instanceof KeyboardEvent) || !Number.isFinite(t(this,
|
|
1214
|
-
i.preventDefault(), i.stopPropagation(), t(this,
|
|
1215
|
-
const a = e(this, s,
|
|
1216
|
-
t(this,
|
|
1335
|
+
n(this, ye, (i) => {
|
|
1336
|
+
if (!(i instanceof KeyboardEvent) || !Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0 || !["ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(i.key)) return;
|
|
1337
|
+
i.preventDefault(), i.stopPropagation(), t(this, Es).call(this);
|
|
1338
|
+
const a = e(this, s, Ct).call(this), l = i.shiftKey ? 10 : 5, u = Math.max(10, t(this, o).duration * 0.1), f = i.key === "Home" ? 0 : i.key === "End" ? t(this, o).duration : i.key === "PageUp" ? a + u : i.key === "PageDown" ? a - u : a + (i.key === "ArrowRight" ? l : -l);
|
|
1339
|
+
t(this, o).currentTime = Math.min(t(this, o).duration, Math.max(0, f)), e(this, s, k).call(this, t(this, o).currentTime), e(this, s, I).call(this, t(this, o).currentTime);
|
|
1217
1340
|
});
|
|
1218
|
-
n(this,
|
|
1219
|
-
i instanceof PointerEvent
|
|
1341
|
+
n(this, we, (i) => {
|
|
1342
|
+
if (i instanceof PointerEvent) {
|
|
1343
|
+
if (!t(this, z)) {
|
|
1344
|
+
e(this, s, A).call(this) || (r(this, M, !0), t(this, h).classList.add("is-progress-hovering"), e(this, s, mt).call(this, i.clientX, !1, !1));
|
|
1345
|
+
return;
|
|
1346
|
+
}
|
|
1347
|
+
t(this, P) !== null && i.pointerId !== t(this, P) || (!t(this, g) && Math.abs(i.clientX - t(this, Qt)) >= t(this, Ws) && t(this, Ls).call(this), t(this, g) && r(this, S, e(this, s, mt).call(this, i.clientX)));
|
|
1348
|
+
}
|
|
1220
1349
|
});
|
|
1221
|
-
n(this,
|
|
1222
|
-
i instanceof PointerEvent && (t(this,
|
|
1350
|
+
n(this, xe, (i) => {
|
|
1351
|
+
i instanceof PointerEvent && (t(this, P) !== null && i.pointerId !== t(this, P) || e(this, s, ti).call(this, i.clientX, i.pointerId, !0));
|
|
1223
1352
|
});
|
|
1224
|
-
n(this,
|
|
1225
|
-
i instanceof PointerEvent && (t(this,
|
|
1353
|
+
n(this, ke, (i) => {
|
|
1354
|
+
i instanceof PointerEvent && (t(this, P) !== null && i.pointerId !== t(this, P) || e(this, s, _s).call(this, i.pointerId));
|
|
1226
1355
|
});
|
|
1227
|
-
n(this,
|
|
1356
|
+
n(this, Pe, (i) => {
|
|
1228
1357
|
if (i instanceof PointerEvent) {
|
|
1229
|
-
if (t(this,
|
|
1230
|
-
e(this, s,
|
|
1358
|
+
if (t(this, x) !== null && i.pointerId === t(this, x)) {
|
|
1359
|
+
e(this, s, Zt).call(this, i.pointerId);
|
|
1231
1360
|
return;
|
|
1232
1361
|
}
|
|
1233
|
-
t(this,
|
|
1362
|
+
t(this, P) === null || i.pointerId !== t(this, P) || e(this, s, ti).call(this, i.clientX, i.pointerId, !0);
|
|
1234
1363
|
}
|
|
1235
1364
|
});
|
|
1236
|
-
n(this,
|
|
1365
|
+
n(this, Ee, (i) => {
|
|
1237
1366
|
if (i instanceof PointerEvent) {
|
|
1238
|
-
if (t(this,
|
|
1239
|
-
e(this, s,
|
|
1367
|
+
if (t(this, x) !== null && i.pointerId === t(this, x)) {
|
|
1368
|
+
e(this, s, Zt).call(this, i.pointerId);
|
|
1240
1369
|
return;
|
|
1241
1370
|
}
|
|
1242
|
-
t(this,
|
|
1371
|
+
t(this, P) === null || i.pointerId !== t(this, P) || e(this, s, _s).call(this, i.pointerId);
|
|
1243
1372
|
}
|
|
1244
1373
|
});
|
|
1245
|
-
n(this,
|
|
1246
|
-
e(this, s,
|
|
1374
|
+
n(this, Te, () => {
|
|
1375
|
+
e(this, s, Zt).call(this, t(this, x)), e(this, s, _s).call(this, t(this, P));
|
|
1247
1376
|
});
|
|
1248
|
-
n(this,
|
|
1249
|
-
e(this, s,
|
|
1377
|
+
n(this, Ce, () => {
|
|
1378
|
+
e(this, s, Ns).call(this) || e(this, s, us).call(this);
|
|
1250
1379
|
});
|
|
1251
|
-
n(this,
|
|
1252
|
-
|
|
1380
|
+
n(this, Ae, () => {
|
|
1381
|
+
r(this, L, null), e(this, s, tt).call(this), e(this, s, C).call(this) || e(this, s, k).call(this), e(this, s, T).call(this);
|
|
1253
1382
|
});
|
|
1254
|
-
n(this,
|
|
1255
|
-
|
|
1383
|
+
n(this, Le, () => {
|
|
1384
|
+
r(this, L, null), e(this, s, C).call(this) || e(this, s, Ge).call(this), t(this, V).call(this), e(this, s, T).call(this);
|
|
1256
1385
|
});
|
|
1257
|
-
n(this,
|
|
1258
|
-
|
|
1386
|
+
n(this, Fe, () => {
|
|
1387
|
+
r(this, L, null), e(this, s, tt).call(this), e(this, s, C).call(this) || e(this, s, k).call(this), e(this, s, T).call(this);
|
|
1259
1388
|
});
|
|
1260
|
-
n(this,
|
|
1261
|
-
e(this, s,
|
|
1389
|
+
n(this, Se, () => {
|
|
1390
|
+
e(this, s, _t).call(this, !0, !0);
|
|
1262
1391
|
});
|
|
1263
|
-
n(this,
|
|
1264
|
-
e(this, s,
|
|
1392
|
+
n(this, as, () => {
|
|
1393
|
+
e(this, s, _t).call(this, !0);
|
|
1265
1394
|
});
|
|
1266
|
-
n(this,
|
|
1267
|
-
e(this, s,
|
|
1395
|
+
n(this, Me, () => {
|
|
1396
|
+
e(this, s, tt).call(this), r(this, y, !0), t(this, F).call(this), e(this, s, C).call(this) || e(this, s, k).call(this), t(this, V).call(this), e(this, s, I).call(this);
|
|
1268
1397
|
});
|
|
1269
|
-
n(this,
|
|
1270
|
-
const i = t(this,
|
|
1271
|
-
t(this,
|
|
1398
|
+
n(this, Ve, () => {
|
|
1399
|
+
const i = t(this, Ut).call(this);
|
|
1400
|
+
t(this, F).call(this), i && !e(this, s, C).call(this) && e(this, s, k).call(this), e(this, s, T).call(this);
|
|
1272
1401
|
});
|
|
1273
|
-
n(this,
|
|
1274
|
-
if (e(this, s,
|
|
1275
|
-
e(this, s,
|
|
1402
|
+
n(this, Ie, () => {
|
|
1403
|
+
if (e(this, s, tt).call(this), t(this, V).call(this), t(this, N) && (!t(this, bt) || t(this, o).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA)) {
|
|
1404
|
+
e(this, s, Ze).call(this), e(this, s, T).call(this);
|
|
1276
1405
|
return;
|
|
1277
1406
|
}
|
|
1278
|
-
e(this, s,
|
|
1407
|
+
e(this, s, C).call(this) || e(this, s, k).call(this), e(this, s, I).call(this);
|
|
1279
1408
|
});
|
|
1280
|
-
n(this,
|
|
1281
|
-
|
|
1409
|
+
n(this, ze, () => {
|
|
1410
|
+
r(this, L, null), r(this, q, !1), r(this, B, !1), r(this, Z, !1), r(this, O, !1), r(this, K, t(this, K) + 1), t(this, h).classList.remove("has-visible-frame"), e(this, s, _t).call(this, !0, !0), e(this, s, T).call(this), e(this, s, fi).call(this);
|
|
1282
1411
|
});
|
|
1283
|
-
n(this,
|
|
1284
|
-
t(this,
|
|
1412
|
+
n(this, Re, () => {
|
|
1413
|
+
t(this, F).call(this), e(this, s, I).call(this);
|
|
1285
1414
|
});
|
|
1286
|
-
n(this,
|
|
1287
|
-
t(this,
|
|
1415
|
+
n(this, De, () => {
|
|
1416
|
+
t(this, F).call(this);
|
|
1288
1417
|
});
|
|
1289
|
-
|
|
1418
|
+
r(this, b, this.attachShadow({ mode: "open" })), t(this, b).append(ai.content.cloneNode(!0));
|
|
1290
1419
|
}
|
|
1291
1420
|
get src() {
|
|
1292
1421
|
return this.getAttribute("src") ?? "";
|
|
1293
1422
|
}
|
|
1294
1423
|
set src(i) {
|
|
1295
|
-
e(this, s,
|
|
1424
|
+
e(this, s, zs).call(this, "src", i);
|
|
1296
1425
|
}
|
|
1297
1426
|
get aspectRatio() {
|
|
1298
|
-
return this.getAttribute("aspect-ratio") ||
|
|
1427
|
+
return this.getAttribute("aspect-ratio") || ni;
|
|
1299
1428
|
}
|
|
1300
1429
|
set aspectRatio(i) {
|
|
1301
|
-
e(this, s,
|
|
1430
|
+
e(this, s, zs).call(this, "aspect-ratio", i);
|
|
1302
1431
|
}
|
|
1303
1432
|
get preloadMargin() {
|
|
1304
|
-
return this.getAttribute("preload-margin") ||
|
|
1433
|
+
return this.getAttribute("preload-margin") || zi;
|
|
1305
1434
|
}
|
|
1306
1435
|
set preloadMargin(i) {
|
|
1307
|
-
e(this, s,
|
|
1436
|
+
e(this, s, zs).call(this, "preload-margin", i);
|
|
1308
1437
|
}
|
|
1309
1438
|
get autoplayEnabled() {
|
|
1310
1439
|
return !this.hasAttribute("disable-autoplay") && !this.hasAttribute("no-autoplay");
|
|
@@ -1326,11 +1455,21 @@ class ti extends HTMLElement {
|
|
|
1326
1455
|
}
|
|
1327
1456
|
this.removeAttribute("controls");
|
|
1328
1457
|
}
|
|
1458
|
+
get timeVisible() {
|
|
1459
|
+
return this.hasAttribute("show-time");
|
|
1460
|
+
}
|
|
1461
|
+
set timeVisible(i) {
|
|
1462
|
+
if (i) {
|
|
1463
|
+
this.setAttribute("show-time", "");
|
|
1464
|
+
return;
|
|
1465
|
+
}
|
|
1466
|
+
this.removeAttribute("show-time");
|
|
1467
|
+
}
|
|
1329
1468
|
get volumeEnabled() {
|
|
1330
|
-
return
|
|
1469
|
+
return this.controlsEnabled && !this.hasAttribute("disable-volume") && !this.hasAttribute("no-volume");
|
|
1331
1470
|
}
|
|
1332
1471
|
set volumeEnabled(i) {
|
|
1333
|
-
e(this, s,
|
|
1472
|
+
e(this, s, Rs).call(this, "volume", i);
|
|
1334
1473
|
}
|
|
1335
1474
|
get volumeSliderEnabled() {
|
|
1336
1475
|
return !this.hasAttribute("disable-volume-slider") && !this.hasAttribute("no-volume-slider");
|
|
@@ -1343,407 +1482,399 @@ class ti extends HTMLElement {
|
|
|
1343
1482
|
this.setAttribute("disable-volume-slider", "");
|
|
1344
1483
|
}
|
|
1345
1484
|
get pictureInPictureEnabled() {
|
|
1346
|
-
return
|
|
1485
|
+
return this.controlsEnabled && !this.hasAttribute("disable-picture-in-picture") && !this.hasAttribute("no-picture-in-picture");
|
|
1347
1486
|
}
|
|
1348
1487
|
set pictureInPictureEnabled(i) {
|
|
1349
|
-
e(this, s,
|
|
1488
|
+
e(this, s, Rs).call(this, "picture-in-picture", i);
|
|
1350
1489
|
}
|
|
1351
1490
|
get fullscreenEnabled() {
|
|
1352
|
-
return
|
|
1491
|
+
return this.controlsEnabled && !this.hasAttribute("disable-fullscreen") && !this.hasAttribute("no-fullscreen");
|
|
1353
1492
|
}
|
|
1354
1493
|
set fullscreenEnabled(i) {
|
|
1355
|
-
e(this, s,
|
|
1494
|
+
e(this, s, Rs).call(this, "fullscreen", i);
|
|
1356
1495
|
}
|
|
1357
1496
|
connectedCallback() {
|
|
1358
|
-
|
|
1497
|
+
r(this, h, t(this, b).querySelector("[data-sp-player]")), r(this, o, t(this, b).querySelector("[data-sp-video]")), r(this, U, t(this, b).querySelector("[data-sp-button]")), r(this, m, t(this, b).querySelector("[data-sp-progress-track]")), r(this, X, t(this, b).querySelector("[data-sp-control-tray]")), r(this, W, t(this, b).querySelector("[data-sp-control-tray-slots]")), r(this, Gt, t(this, b).querySelector("[data-sp-time]")), r(this, Jt, t(this, b).querySelector("[data-sp-time-text]")), r(this, w, t(this, b).querySelector("[data-sp-volume-control]")), r(this, j, t(this, b).querySelector("[data-sp-volume-popover]")), r(this, E, t(this, b).querySelector("[data-sp-volume-track]")), r(this, st, t(this, b).querySelector("[data-sp-picture-in-picture-control]")), r(this, et, t(this, b).querySelector("[data-sp-fullscreen-control]")), r(this, it, [t(this, w), t(this, st), t(this, et)]), e(this, s, qe).call(this), t(this, Kt) || (e(this, s, hi).call(this), r(this, Kt, !0)), e(this, s, hs).call(this), e(this, s, Hs).call(this), e(this, s, Be).call(this), e(this, s, Ds).call(this), t(this, V).call(this), t(this, F).call(this), t(this, Et).call(this), t(this, Xt).call(this), e(this, s, T).call(this);
|
|
1359
1498
|
}
|
|
1360
1499
|
disconnectedCallback() {
|
|
1361
|
-
t(this,
|
|
1500
|
+
t(this, D)?.disconnect(), r(this, D, null), t(this, Ot).forEach((i) => i()), r(this, Ot, []), r(this, Kt, !1), e(this, s, $).call(this), e(this, s, Ye).call(this), e(this, s, ds).call(this), e(this, s, Us).call(this), e(this, s, At).call(this), e(this, s, ms).call(this), e(this, s, vs).call(this), e(this, s, _e).call(this), e(this, s, $s).call(this), t(this, h).classList.remove("is-volume-icon-animating"), t(this, W).style.removeProperty("--sp-control-hover-offset"), this.style.removeProperty("--sp-touch-control-hover-offset"), e(this, s, Wt).call(this), r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, Y, !1), r(this, ht, !1), r(this, G, !1), r(this, x, null), t(this, w).classList.remove("is-volume-open"), t(this, it).forEach((i) => i.classList.remove("is-control-tap-active")), t(this, h).classList.remove("is-pointer-active"), e(this, s, jt).call(this);
|
|
1362
1501
|
}
|
|
1363
1502
|
attributeChangedCallback(i, a, l) {
|
|
1364
1503
|
if (a !== l) {
|
|
1365
1504
|
if (i === "aspect-ratio") {
|
|
1366
|
-
e(this, s,
|
|
1505
|
+
e(this, s, qe).call(this);
|
|
1367
1506
|
return;
|
|
1368
1507
|
}
|
|
1369
1508
|
if (i === "preload-margin" && this.isConnected) {
|
|
1370
|
-
t(this,
|
|
1509
|
+
t(this, D)?.disconnect(), e(this, s, Hs).call(this);
|
|
1371
1510
|
return;
|
|
1372
1511
|
}
|
|
1373
1512
|
if (i === "src" && this.isConnected) {
|
|
1374
|
-
e(this, s,
|
|
1513
|
+
e(this, s, Si).call(this), e(this, s, Hs).call(this);
|
|
1375
1514
|
return;
|
|
1376
1515
|
}
|
|
1377
1516
|
if ((i === "disable-autoplay" || i === "no-autoplay") && this.isConnected) {
|
|
1378
|
-
e(this, s,
|
|
1517
|
+
e(this, s, hs).call(this), t(this, F).call(this), e(this, s, T).call(this);
|
|
1518
|
+
return;
|
|
1519
|
+
}
|
|
1520
|
+
if (i === "show-time" && this.isConnected) {
|
|
1521
|
+
e(this, s, Ds).call(this);
|
|
1379
1522
|
return;
|
|
1380
1523
|
}
|
|
1381
|
-
(i === "controls" || i.startsWith("enable-") || i.startsWith("disable-") || i.startsWith("no-")) && this.isConnected && (e(this, s,
|
|
1524
|
+
(i === "controls" || i.startsWith("enable-") || i.startsWith("disable-") || i.startsWith("no-")) && this.isConnected && (e(this, s, Be).call(this), t(this, F).call(this), t(this, Et).call(this), t(this, Xt).call(this), e(this, s, Ds).call(this));
|
|
1382
1525
|
}
|
|
1383
1526
|
}
|
|
1384
1527
|
}
|
|
1385
|
-
|
|
1528
|
+
b = new WeakMap(), Ot = new WeakMap(), D = new WeakMap(), Kt = new WeakMap(), H = new WeakMap(), h = new WeakMap(), o = new WeakMap(), U = new WeakMap(), m = new WeakMap(), X = new WeakMap(), W = new WeakMap(), Gt = new WeakMap(), Jt = new WeakMap(), w = new WeakMap(), j = new WeakMap(), E = new WeakMap(), st = new WeakMap(), et = new WeakMap(), it = new WeakMap(), ft = new WeakMap(), g = new WeakMap(), z = new WeakMap(), rt = new WeakMap(), S = new WeakMap(), Lt = new WeakMap(), ot = new WeakMap(), Ft = new WeakMap(), N = new WeakMap(), bt = new WeakMap(), Qt = new WeakMap(), St = new WeakMap(), P = new WeakMap(), L = new WeakMap(), ts = new WeakMap(), nt = new WeakMap(), vt = new WeakMap(), gt = new WeakMap(), at = new WeakMap(), gs = new WeakMap(), ss = new WeakMap(), q = new WeakMap(), B = new WeakMap(), Z = new WeakMap(), O = new WeakMap(), K = new WeakMap(), Mt = new WeakMap(), yt = new WeakMap(), ys = new WeakMap(), Vt = new WeakMap(), ws = new WeakMap(), xs = new WeakMap(), wt = new WeakMap(), R = new WeakMap(), lt = new WeakMap(), It = new WeakMap(), M = new WeakMap(), y = new WeakMap(), G = new WeakMap(), es = new WeakMap(), is = new WeakMap(), zt = new WeakMap(), Y = new WeakMap(), ht = new WeakMap(), x = new WeakMap(), xt = new WeakMap(), kt = new WeakMap(), Pt = new WeakMap(), rs = new WeakMap(), Ws = new WeakMap(), js = new WeakMap(), os = new WeakMap(), Zs = new WeakMap(), Os = new WeakMap(), ks = new WeakMap(), Rt = new WeakMap(), Ks = new WeakMap(), Gs = new WeakMap(), Js = new WeakMap(), Qs = new WeakMap(), te = new WeakMap(), se = new WeakMap(), Dt = new WeakMap(), ee = new WeakMap(), ie = new WeakMap(), s = new WeakSet(), zs = function(i, a) {
|
|
1386
1529
|
if (a === "") {
|
|
1387
1530
|
this.removeAttribute(i);
|
|
1388
1531
|
return;
|
|
1389
1532
|
}
|
|
1390
1533
|
this.setAttribute(i, a);
|
|
1391
|
-
},
|
|
1534
|
+
}, Rs = function(i, a) {
|
|
1392
1535
|
if (a) {
|
|
1393
1536
|
this.setAttribute(`enable-${i}`, ""), this.removeAttribute(`disable-${i}`), this.removeAttribute(`no-${i}`);
|
|
1394
1537
|
return;
|
|
1395
1538
|
}
|
|
1396
1539
|
this.removeAttribute(`enable-${i}`), this.setAttribute(`disable-${i}`, "");
|
|
1397
|
-
},
|
|
1540
|
+
}, qe = function() {
|
|
1398
1541
|
this.style.setProperty("--simple-player-aspect-ratio", this.aspectRatio);
|
|
1399
|
-
},
|
|
1400
|
-
if (!t(this,
|
|
1542
|
+
}, hs = function() {
|
|
1543
|
+
if (!t(this, o)) return;
|
|
1401
1544
|
const i = this.autoplayEnabled;
|
|
1402
|
-
if (t(this,
|
|
1403
|
-
t(this,
|
|
1545
|
+
if (t(this, o).autoplay = i, i) {
|
|
1546
|
+
t(this, o).muted = !0, t(this, o).setAttribute("autoplay", ""), t(this, o).setAttribute("muted", "");
|
|
1404
1547
|
return;
|
|
1405
1548
|
}
|
|
1406
|
-
t(this,
|
|
1407
|
-
},
|
|
1408
|
-
if (!t(this,
|
|
1549
|
+
t(this, o).removeAttribute("autoplay"), t(this, H) || (t(this, o).muted = !1, t(this, o).removeAttribute("muted"));
|
|
1550
|
+
}, Be = function() {
|
|
1551
|
+
if (!t(this, h)) return;
|
|
1409
1552
|
const i = [
|
|
1410
|
-
{ button: t(this,
|
|
1411
|
-
{ button: t(this,
|
|
1412
|
-
{ button: t(this,
|
|
1553
|
+
{ button: t(this, w), enabled: this.volumeEnabled, className: "has-volume-control" },
|
|
1554
|
+
{ button: t(this, st), enabled: this.pictureInPictureEnabled, className: "has-picture-in-picture-control" },
|
|
1555
|
+
{ button: t(this, et), enabled: this.fullscreenEnabled, className: "has-fullscreen-control" }
|
|
1413
1556
|
];
|
|
1414
1557
|
let a = 0;
|
|
1415
1558
|
for (const l of i)
|
|
1416
|
-
t(this,
|
|
1417
|
-
this.style.setProperty("--sp-enabled-controls-count", `${a}`), this.style.setProperty("--sp-control-tray-display", a > 0 ? "block" : "none"), t(this,
|
|
1418
|
-
},
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1559
|
+
t(this, h).classList.toggle(l.className, l.enabled), l.button.hidden = !l.enabled, l.enabled ? (l.button.dataset.spControlIndex = `${a}`, a += 1) : delete l.button.dataset.spControlIndex;
|
|
1560
|
+
this.style.setProperty("--sp-enabled-controls-count", `${a}`), this.style.setProperty("--sp-control-tray-display", a > 0 ? "block" : "none"), t(this, h).classList.toggle("has-volume-slider-control", this.volumeEnabled && this.volumeSliderEnabled), (!this.volumeEnabled || !this.volumeSliderEnabled) && (t(this, ns).call(this), e(this, s, Xs).call(this, t(this, x)), r(this, Y, !1), r(this, ht, !1), t(this, j).classList.remove("is-scrubbing-volume")), t(this, W).style.removeProperty("--sp-control-hover-offset");
|
|
1561
|
+
}, Ds = function() {
|
|
1562
|
+
if (!t(this, h)) return;
|
|
1563
|
+
const i = this.timeVisible && this.controlsEnabled;
|
|
1564
|
+
t(this, h).classList.toggle("has-pinned-time", i), i && e(this, s, bs).call(this);
|
|
1565
|
+
}, hi = function() {
|
|
1566
|
+
e(this, s, c).call(this, t(this, U), "click", t(this, ae)), e(this, s, c).call(this, this, "pointerenter", t(this, qt)), e(this, s, c).call(this, this, "pointermove", t(this, Bt)), e(this, s, c).call(this, this, "pointerleave", t(this, $t)), e(this, s, c).call(this, this, "mouseenter", t(this, qt)), e(this, s, c).call(this, this, "mousemove", t(this, Bt)), e(this, s, c).call(this, this, "mouseleave", t(this, $t)), e(this, s, c).call(this, t(this, h), "pointerenter", t(this, qt)), e(this, s, c).call(this, t(this, h), "pointermove", t(this, Bt)), e(this, s, c).call(this, t(this, h), "pointerleave", t(this, $t)), e(this, s, c).call(this, t(this, h), "mouseenter", t(this, qt)), e(this, s, c).call(this, t(this, h), "mousemove", t(this, Bt)), e(this, s, c).call(this, t(this, h), "mouseleave", t(this, $t)), e(this, s, c).call(this, t(this, U), "pointerenter", t(this, ct)), e(this, s, c).call(this, t(this, U), "pointerleave", t(this, ut)), e(this, s, c).call(this, t(this, U), "mouseenter", t(this, ct)), e(this, s, c).call(this, t(this, U), "mouseleave", t(this, ut)), e(this, s, c).call(this, t(this, m), "pointerenter", t(this, ct)), e(this, s, c).call(this, t(this, m), "pointerleave", t(this, ut)), e(this, s, c).call(this, t(this, m), "mouseenter", t(this, ct)), e(this, s, c).call(this, t(this, m), "mouseleave", t(this, ut)), e(this, s, c).call(this, t(this, m), "pointerenter", t(this, Ms)), e(this, s, c).call(this, t(this, m), "pointerleave", t(this, Vs)), e(this, s, c).call(this, t(this, m), "mouseenter", t(this, Ms)), e(this, s, c).call(this, t(this, m), "mouseleave", t(this, Vs)), e(this, s, c).call(this, t(this, X), "pointerenter", t(this, ct)), e(this, s, c).call(this, t(this, X), "pointerleave", t(this, ut)), e(this, s, c).call(this, t(this, X), "mouseenter", t(this, ct)), e(this, s, c).call(this, t(this, X), "mouseleave", t(this, ut)), e(this, s, c).call(this, t(this, b), "focusin", t(this, Es)), e(this, s, c).call(this, t(this, b), "focusout", t(this, oe)), e(this, s, c).call(this, t(this, h), "pointerdown", t(this, le)), e(this, s, c).call(this, t(this, h), "dragstart", t(this, Ht)), e(this, s, c).call(this, t(this, h), "selectstart", t(this, Ht)), e(this, s, c).call(this, t(this, o), "dragstart", t(this, Ht)), e(this, s, c).call(this, t(this, o), "selectstart", t(this, Ht)), e(this, s, c).call(this, t(this, m), "pointerdown", t(this, ge)), e(this, s, c).call(this, t(this, m), "pointermove", t(this, we)), e(this, s, c).call(this, t(this, m), "pointerup", t(this, xe)), e(this, s, c).call(this, t(this, m), "pointercancel", t(this, ke)), e(this, s, c).call(this, t(this, m), "keydown", t(this, ye)), e(this, s, c).call(this, t(this, w), "pointerenter", t(this, Fs)), e(this, s, c).call(this, t(this, w), "pointerleave", t(this, Ss)), e(this, s, c).call(this, t(this, w), "click", t(this, ce)), e(this, s, c).call(this, t(this, j), "pointerenter", t(this, Fs)), e(this, s, c).call(this, t(this, j), "pointerleave", t(this, Ss)), e(this, s, c).call(this, t(this, E), "pointerdown", t(this, ue)), e(this, s, c).call(this, t(this, E), "pointermove", t(this, pe)), e(this, s, c).call(this, t(this, E), "pointerup", t(this, de)), e(this, s, c).call(this, t(this, E), "pointercancel", t(this, me)), e(this, s, c).call(this, t(this, E), "click", t(this, he)), e(this, s, c).call(this, t(this, E), "keydown", t(this, fe)), e(this, s, c).call(this, t(this, st), "click", t(this, be)), e(this, s, c).call(this, t(this, et), "click", t(this, ve));
|
|
1567
|
+
for (const i of t(this, it))
|
|
1568
|
+
e(this, s, c).call(this, i, "pointerenter", t(this, Ts)), e(this, s, c).call(this, i, "mouseenter", t(this, Ts)), e(this, s, c).call(this, i, "pointerdown", t(this, ne));
|
|
1569
|
+
e(this, s, c).call(this, document, "pointerup", t(this, Pe)), e(this, s, c).call(this, document, "pointercancel", t(this, Ee)), e(this, s, c).call(this, document, "pointermove", t(this, Ps)), e(this, s, c).call(this, document, "mousemove", t(this, Ps)), e(this, s, c).call(this, document, "fullscreenchange", t(this, Tt)), e(this, s, c).call(this, document, "webkitfullscreenchange", t(this, Tt)), e(this, s, c).call(this, document, "mozfullscreenchange", t(this, Tt)), e(this, s, c).call(this, document, "MSFullscreenChange", t(this, Tt)), e(this, s, c).call(this, t(this, b), "fullscreenchange", t(this, Tt)), e(this, s, c).call(this, window, "blur", t(this, Te)), e(this, s, c).call(this, window, "focus", t(this, Ce)), e(this, s, c).call(this, t(this, o), "play", t(this, Ae)), e(this, s, c).call(this, t(this, o), "pause", t(this, Le)), e(this, s, c).call(this, t(this, o), "ended", t(this, Fe)), e(this, s, c).call(this, t(this, o), "loadstart", t(this, Se)), e(this, s, c).call(this, t(this, o), "waiting", t(this, as)), e(this, s, c).call(this, t(this, o), "stalled", t(this, as)), e(this, s, c).call(this, t(this, o), "seeking", t(this, as)), e(this, s, c).call(this, t(this, o), "loadeddata", t(this, Ut)), e(this, s, c).call(this, t(this, o), "loadedmetadata", t(this, Me)), e(this, s, c).call(this, t(this, o), "canplay", t(this, Ut)), e(this, s, c).call(this, t(this, o), "canplaythrough", t(this, Ut)), e(this, s, c).call(this, t(this, o), "playing", t(this, Ve)), e(this, s, c).call(this, t(this, o), "seeked", t(this, Ie)), e(this, s, c).call(this, t(this, o), "error", t(this, ze)), e(this, s, c).call(this, t(this, o), "progress", t(this, V)), e(this, s, c).call(this, t(this, o), "suspend", t(this, V)), e(this, s, c).call(this, t(this, o), "timeupdate", t(this, Re)), e(this, s, c).call(this, t(this, o), "volumechange", t(this, De)), e(this, s, c).call(this, t(this, o), "enterpictureinpicture", t(this, Et)), e(this, s, c).call(this, t(this, o), "leavepictureinpicture", t(this, Et));
|
|
1570
|
+
}, c = function(i, a, l) {
|
|
1571
|
+
i.addEventListener(a, l), t(this, Ot).push(() => i.removeEventListener(a, l));
|
|
1572
|
+
}, Hs = function() {
|
|
1573
|
+
if (!(!this.src || t(this, H))) {
|
|
1574
|
+
if (t(this, D)?.disconnect(), t(this, o).dataset.src = this.src, "IntersectionObserver" in window) {
|
|
1575
|
+
r(this, D, new IntersectionObserver((i, a) => {
|
|
1576
|
+
i.some((l) => l.isIntersecting) && (a.disconnect(), r(this, D, null), e(this, s, pt).call(this));
|
|
1577
|
+
}, { rootMargin: this.preloadMargin })), t(this, D).observe(t(this, h));
|
|
1431
1578
|
return;
|
|
1432
1579
|
}
|
|
1433
|
-
e(this, s,
|
|
1434
|
-
}
|
|
1435
|
-
},
|
|
1436
|
-
t(this,
|
|
1437
|
-
},
|
|
1438
|
-
e(this, s,
|
|
1439
|
-
},
|
|
1440
|
-
e(this, s,
|
|
1441
|
-
},
|
|
1442
|
-
if (!e(this, s,
|
|
1443
|
-
const i = t(this,
|
|
1444
|
-
return t(this,
|
|
1445
|
-
},
|
|
1446
|
-
!i && e(this, s,
|
|
1447
|
-
},
|
|
1448
|
-
|
|
1449
|
-
},
|
|
1450
|
-
return i instanceof PointerEvent ? (
|
|
1451
|
-
},
|
|
1580
|
+
e(this, s, pt).call(this);
|
|
1581
|
+
}
|
|
1582
|
+
}, Ht = new WeakMap(), $ = function() {
|
|
1583
|
+
t(this, vt) && (window.clearTimeout(t(this, vt)), r(this, vt, 0));
|
|
1584
|
+
}, re = new WeakMap(), cs = function(i = e(this, s, A).call(this) ? t(this, ks) : t(this, Rt)) {
|
|
1585
|
+
e(this, s, $).call(this), r(this, vt, window.setTimeout(t(this, re), i));
|
|
1586
|
+
}, J = function() {
|
|
1587
|
+
e(this, s, A).call(this) && e(this, s, cs).call(this, t(this, ks));
|
|
1588
|
+
}, Q = function() {
|
|
1589
|
+
if (!e(this, s, A).call(this)) return !1;
|
|
1590
|
+
const i = t(this, h).classList.contains("is-controls-visible");
|
|
1591
|
+
return t(this, h).classList.add("is-controls-visible"), e(this, s, J).call(this), !i;
|
|
1592
|
+
}, qs = function(i = !1) {
|
|
1593
|
+
!i && e(this, s, A).call(this) || (t(this, h).classList.add("is-pointer-active"), t(this, G) ? e(this, s, $).call(this) : e(this, s, cs).call(this, i ? t(this, Rt) : void 0));
|
|
1594
|
+
}, us = function() {
|
|
1595
|
+
r(this, G, !1), e(this, s, $).call(this), t(this, h).classList.remove("is-pointer-active");
|
|
1596
|
+
}, Nt = function(i) {
|
|
1597
|
+
return i instanceof PointerEvent ? (r(this, zt, i.pointerType === "touch"), t(this, zt) ? !1 : (r(this, es, i.clientX), r(this, is, i.clientY), !0)) : i instanceof MouseEvent ? (r(this, zt, !1), r(this, es, i.clientX), r(this, is, i.clientY), !0) : !1;
|
|
1598
|
+
}, ci = function(i, a) {
|
|
1452
1599
|
if (i === null || a === null || i < 0 || a < 0 || i > window.innerWidth || a > window.innerHeight) return !1;
|
|
1453
1600
|
const l = this.getBoundingClientRect();
|
|
1454
1601
|
return l.width <= 0 || l.height <= 0 ? !1 : i >= l.left && i <= l.right && a >= l.top && a <= l.bottom;
|
|
1455
|
-
},
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
return
|
|
1459
|
-
},
|
|
1460
|
-
|
|
1461
|
-
},
|
|
1462
|
-
if (
|
|
1463
|
-
|
|
1602
|
+
}, $e = function(i, a, l) {
|
|
1603
|
+
if (!i) return !1;
|
|
1604
|
+
const u = i.getBoundingClientRect();
|
|
1605
|
+
return u.width <= 0 || u.height <= 0 ? !1 : a >= u.left && a <= u.right && l >= u.top && l <= u.bottom;
|
|
1606
|
+
}, Ue = function() {
|
|
1607
|
+
t(this, M) && (r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), e(this, s, Wt).call(this), e(this, s, bs).call(this));
|
|
1608
|
+
}, Xe = function(i, a) {
|
|
1609
|
+
if (e(this, s, A).call(this)) return;
|
|
1610
|
+
!e(this, s, C).call(this) && e(this, s, $e).call(this, t(this, m), i, a) ? (r(this, M, !0), t(this, h).classList.add("is-progress-hovering"), e(this, s, mt).call(this, i, !1, !1)) : e(this, s, C).call(this) || e(this, s, Ue).call(this);
|
|
1611
|
+
const l = t(this, it).find((f) => !f.hidden && !e(this, s, Bs).call(this, f) && e(this, s, $e).call(this, f, i, a)) ?? null;
|
|
1612
|
+
if (!l) return;
|
|
1613
|
+
const u = Number(l.dataset.spControlIndex ?? 0);
|
|
1614
|
+
t(this, W).style.setProperty("--sp-control-hover-offset", `calc(var(--sp-control-slot-size) * ${u})`);
|
|
1615
|
+
}, Yt = function() {
|
|
1616
|
+
return t(this, h).classList.contains("is-controls-visible") || t(this, h).classList.contains("is-pointer-active") || t(this, b).activeElement instanceof HTMLElement;
|
|
1617
|
+
}, ps = function() {
|
|
1618
|
+
return e(this, s, A).call(this) && performance.now() < t(this, ss);
|
|
1619
|
+
}, Bs = function(i) {
|
|
1620
|
+
return i instanceof HTMLButtonElement && (i.disabled || i === t(this, w) && (!this.volumeEnabled || !t(this, y)));
|
|
1621
|
+
}, Ne = function() {
|
|
1622
|
+
if (!t(this, zt) && e(this, s, ci).call(this, t(this, es), t(this, is))) {
|
|
1623
|
+
e(this, s, qs).call(this, !0);
|
|
1464
1624
|
return;
|
|
1465
1625
|
}
|
|
1466
|
-
e(this, s,
|
|
1467
|
-
},
|
|
1468
|
-
t(this,
|
|
1469
|
-
},
|
|
1470
|
-
t(this,
|
|
1471
|
-
},
|
|
1472
|
-
t(this,
|
|
1473
|
-
},
|
|
1474
|
-
t(this,
|
|
1475
|
-
},
|
|
1476
|
-
t(this,
|
|
1477
|
-
},
|
|
1478
|
-
t(this,
|
|
1479
|
-
},
|
|
1480
|
-
e(this, s,
|
|
1481
|
-
|
|
1626
|
+
e(this, s, us).call(this);
|
|
1627
|
+
}, qt = new WeakMap(), Bt = new WeakMap(), Ps = new WeakMap(), $t = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), Es = new WeakMap(), oe = new WeakMap(), Ts = new WeakMap(), $s = function() {
|
|
1628
|
+
t(this, Pt) && (window.clearTimeout(t(this, Pt)), r(this, Pt, 0));
|
|
1629
|
+
}, Cs = new WeakMap(), ne = new WeakMap(), Ye = function() {
|
|
1630
|
+
t(this, gt) && (window.clearTimeout(t(this, gt)), r(this, gt, 0));
|
|
1631
|
+
}, ds = function() {
|
|
1632
|
+
t(this, nt) && (window.clearTimeout(t(this, nt)), r(this, nt, 0));
|
|
1633
|
+
}, Us = function() {
|
|
1634
|
+
t(this, at) && (window.clearTimeout(t(this, at)), r(this, at, 0));
|
|
1635
|
+
}, ms = function() {
|
|
1636
|
+
t(this, Mt) && (window.clearTimeout(t(this, Mt)), r(this, Mt, 0));
|
|
1637
|
+
}, _e = function() {
|
|
1638
|
+
t(this, kt) && (window.clearTimeout(t(this, kt)), r(this, kt, 0));
|
|
1639
|
+
}, ui = function() {
|
|
1640
|
+
e(this, s, _e).call(this), t(this, h).classList.remove("is-volume-icon-animating"), t(this, w).offsetWidth, t(this, h).classList.add("is-volume-icon-animating"), r(this, kt, window.setTimeout(() => {
|
|
1641
|
+
r(this, kt, 0), t(this, h).classList.remove("is-volume-icon-animating");
|
|
1482
1642
|
}, 240));
|
|
1483
|
-
},
|
|
1484
|
-
t(this,
|
|
1485
|
-
},
|
|
1486
|
-
if (t(this,
|
|
1487
|
-
const i = t(this,
|
|
1488
|
-
i && (e(this, s,
|
|
1643
|
+
}, As = new WeakMap(), pi = function() {
|
|
1644
|
+
t(this, yt) || t(this, at) || (t(this, h).classList.add("is-progress-settling"), e(this, s, dt).call(this, 0), r(this, at, window.setTimeout(t(this, As), t(this, Gs))));
|
|
1645
|
+
}, pt = async function() {
|
|
1646
|
+
if (t(this, H)) return;
|
|
1647
|
+
const i = t(this, o).dataset.src || this.src;
|
|
1648
|
+
i && (e(this, s, ds).call(this), e(this, s, ms).call(this), r(this, ts, t(this, ts) + 1), r(this, H, !0), r(this, q, !1), r(this, B, !1), r(this, Z, !1), r(this, O, !1), r(this, K, t(this, K) + 1), t(this, h).classList.remove("has-visible-frame"), e(this, s, hs).call(this), t(this, o).src = i, t(this, o).preload = "auto", t(this, o).load(), t(this, o).autoplay && t(this, o).muted && await t(this, o).play().catch(() => {
|
|
1489
1649
|
}));
|
|
1490
|
-
},
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
return P > 0 ? `${P}:${String(p).padStart(2, "0")}:${String(l).padStart(2, "0")}` : `${p}:${String(l).padStart(2, "0")}`;
|
|
1494
|
-
}, qe = function() {
|
|
1495
|
-
return !t(this, r).loop || t(this, r).paused || !Number.isFinite(t(this, r).duration) || t(this, r).duration <= 0 ? !1 : t(this, r).currentTime < 0.28 || t(this, r).duration - t(this, r).currentTime < 0.28;
|
|
1496
|
-
}, oi = function(i = t(this, r).currentTime) {
|
|
1650
|
+
}, We = function() {
|
|
1651
|
+
return !t(this, o).loop || t(this, o).paused || !Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0 ? !1 : t(this, o).currentTime < 0.28 || t(this, o).duration - t(this, o).currentTime < 0.28;
|
|
1652
|
+
}, di = function(i = t(this, o).currentTime) {
|
|
1497
1653
|
if (!Number.isFinite(i)) return 0;
|
|
1498
1654
|
const a = Math.max(0, i);
|
|
1499
1655
|
try {
|
|
1500
|
-
for (let l = 0; l < t(this,
|
|
1501
|
-
const u = t(this,
|
|
1502
|
-
if (a + t(this,
|
|
1503
|
-
return Math.max(0,
|
|
1656
|
+
for (let l = 0; l < t(this, o).buffered.length; l += 1) {
|
|
1657
|
+
const u = t(this, o).buffered.start(l), f = t(this, o).buffered.end(l);
|
|
1658
|
+
if (a + t(this, Dt) >= u && a <= f + t(this, Dt))
|
|
1659
|
+
return Math.max(0, f - a);
|
|
1504
1660
|
}
|
|
1505
1661
|
} catch {
|
|
1506
1662
|
return 0;
|
|
1507
1663
|
}
|
|
1508
1664
|
return 0;
|
|
1509
|
-
},
|
|
1510
|
-
if (!t(this,
|
|
1511
|
-
const a = Math.max(0, t(this,
|
|
1512
|
-
return l <= t(this,
|
|
1513
|
-
},
|
|
1514
|
-
e(this, s,
|
|
1515
|
-
const l = i && !e(this, s,
|
|
1516
|
-
if (
|
|
1517
|
-
t(this,
|
|
1665
|
+
}, je = function(i = t(this, se)) {
|
|
1666
|
+
if (!t(this, H) || t(this, o).error || !t(this, h).classList.contains("has-loaded-once") || !Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0) return !1;
|
|
1667
|
+
const a = Math.max(0, t(this, o).duration - t(this, o).currentTime), l = Math.min(i, a);
|
|
1668
|
+
return l <= t(this, Dt) || e(this, s, di).call(this) + t(this, Dt) >= l;
|
|
1669
|
+
}, _t = function(i, a = !1) {
|
|
1670
|
+
e(this, s, Ye).call(this);
|
|
1671
|
+
const l = i && !e(this, s, We).call(this) && !e(this, s, je).call(this), f = i && !t(this, B) || l;
|
|
1672
|
+
if (r(this, Vt, f), !f) {
|
|
1673
|
+
t(this, h).classList.remove("is-loading");
|
|
1518
1674
|
return;
|
|
1519
1675
|
}
|
|
1520
1676
|
if (a) {
|
|
1521
|
-
t(this,
|
|
1677
|
+
t(this, h).classList.add("is-loading");
|
|
1522
1678
|
return;
|
|
1523
1679
|
}
|
|
1524
|
-
|
|
1525
|
-
if (
|
|
1526
|
-
|
|
1680
|
+
r(this, gt, window.setTimeout(() => {
|
|
1681
|
+
if (r(this, gt, 0), !t(this, B) || !e(this, s, We).call(this) && !e(this, s, je).call(this)) {
|
|
1682
|
+
r(this, Vt, !0), t(this, h).classList.add("is-loading");
|
|
1527
1683
|
return;
|
|
1528
1684
|
}
|
|
1529
|
-
|
|
1530
|
-
}, t(this,
|
|
1531
|
-
},
|
|
1532
|
-
return t(this,
|
|
1533
|
-
},
|
|
1534
|
-
return t(this,
|
|
1535
|
-
},
|
|
1536
|
-
t(this,
|
|
1537
|
-
|
|
1538
|
-
}, t(this,
|
|
1539
|
-
},
|
|
1540
|
-
return t(this, N) ? (
|
|
1541
|
-
},
|
|
1542
|
-
return e(this, s,
|
|
1543
|
-
},
|
|
1544
|
-
if (t(this,
|
|
1545
|
-
|
|
1546
|
-
const i = t(this,
|
|
1547
|
-
if (i === t(this,
|
|
1548
|
-
if (e(this, s,
|
|
1549
|
-
if (t(this,
|
|
1550
|
-
|
|
1685
|
+
r(this, Vt, !1), t(this, h).classList.remove("is-loading");
|
|
1686
|
+
}, t(this, Ks)));
|
|
1687
|
+
}, V = new WeakMap(), mi = function() {
|
|
1688
|
+
return t(this, H) && !t(this, o).error && t(this, q) && (t(this, o).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA || t(this, o).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && !t(this, h).classList.contains("is-loading"));
|
|
1689
|
+
}, C = function() {
|
|
1690
|
+
return t(this, z) || t(this, g) || t(this, N);
|
|
1691
|
+
}, fi = function() {
|
|
1692
|
+
t(this, ts) >= t(this, te) || t(this, nt) || r(this, nt, window.setTimeout(() => {
|
|
1693
|
+
r(this, nt, 0), e(this, s, ms).call(this), r(this, H, !1), r(this, q, !1), r(this, B, !1), r(this, Z, !1), r(this, O, !1), r(this, K, t(this, K) + 1), t(this, h).classList.remove("has-visible-frame"), t(this, h).classList.contains("has-loaded-once") || e(this, s, dt).call(this, 0), t(this, o).removeAttribute("src"), t(this, o).load(), e(this, s, pt).call(this);
|
|
1694
|
+
}, t(this, Qs)));
|
|
1695
|
+
}, Ze = function() {
|
|
1696
|
+
return t(this, N) ? (r(this, N, !1), r(this, bt, !1), e(this, s, k).call(this), e(this, s, I).call(this), !0) : !1;
|
|
1697
|
+
}, Oe = function() {
|
|
1698
|
+
return e(this, s, ds).call(this), !t(this, h).classList.contains("has-loaded-once") && e(this, s, pi).call(this), t(this, h).classList.add("has-loaded-once"), t(this, h).classList.add("has-visible-frame"), t(this, V).call(this), r(this, L, null), t(this, N) ? (e(this, s, Ze).call(this), !0) : (e(this, s, C).call(this) || e(this, s, k).call(this), e(this, s, I).call(this), !0);
|
|
1699
|
+
}, bi = function() {
|
|
1700
|
+
if (t(this, q) || t(this, Z) || t(this, o).error) return;
|
|
1701
|
+
r(this, Z, !0);
|
|
1702
|
+
const i = t(this, K), a = () => {
|
|
1703
|
+
if (i === t(this, K)) {
|
|
1704
|
+
if (e(this, s, ms).call(this), r(this, Z, !1), r(this, q, !t(this, o).error && t(this, o).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && t(this, o).videoWidth > 0 && t(this, o).videoHeight > 0), t(this, q)) {
|
|
1705
|
+
if (t(this, O) || t(this, B)) return;
|
|
1706
|
+
r(this, O, !0), window.requestAnimationFrame(() => {
|
|
1551
1707
|
window.requestAnimationFrame(() => {
|
|
1552
|
-
i === t(this,
|
|
1708
|
+
i === t(this, K) && (r(this, O, !1), r(this, B, !0), e(this, s, Oe).call(this), e(this, s, T).call(this));
|
|
1553
1709
|
});
|
|
1554
1710
|
}), e(this, s, T).call(this);
|
|
1555
1711
|
return;
|
|
1556
1712
|
}
|
|
1557
|
-
t(this,
|
|
1713
|
+
t(this, V).call(this);
|
|
1558
1714
|
}
|
|
1559
1715
|
};
|
|
1560
|
-
if ("requestVideoFrameCallback" in t(this,
|
|
1561
|
-
t(this,
|
|
1716
|
+
if ("requestVideoFrameCallback" in t(this, o)) {
|
|
1717
|
+
t(this, o).requestVideoFrameCallback(a), r(this, Mt, window.setTimeout(a, 180));
|
|
1562
1718
|
return;
|
|
1563
1719
|
}
|
|
1564
1720
|
window.requestAnimationFrame(a);
|
|
1565
|
-
},
|
|
1566
|
-
return !t(this,
|
|
1567
|
-
},
|
|
1568
|
-
|
|
1569
|
-
},
|
|
1570
|
-
|
|
1571
|
-
},
|
|
1572
|
-
if (!Number.isFinite(t(this,
|
|
1573
|
-
|
|
1721
|
+
}, Ut = new WeakMap(), Ke = function() {
|
|
1722
|
+
return !t(this, o).paused && (!t(this, o).ended || t(this, o).loop) && t(this, o).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA;
|
|
1723
|
+
}, k = function(i = t(this, o).currentTime) {
|
|
1724
|
+
r(this, ws, Number.isFinite(i) ? Math.max(0, i) : 0), r(this, xs, performance.now());
|
|
1725
|
+
}, tt = function() {
|
|
1726
|
+
r(this, R, null), r(this, lt, null);
|
|
1727
|
+
}, Ge = function() {
|
|
1728
|
+
if (!Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0) {
|
|
1729
|
+
r(this, R, null);
|
|
1574
1730
|
return;
|
|
1575
1731
|
}
|
|
1576
|
-
const i = Number.isFinite(t(this,
|
|
1577
|
-
|
|
1578
|
-
},
|
|
1579
|
-
if (!Number.isFinite(t(this,
|
|
1580
|
-
|
|
1732
|
+
const i = Number.isFinite(t(this, o).currentTime) ? Math.max(0, t(this, o).currentTime) : 0, a = Number.isFinite(t(this, wt)) ? t(this, wt) : i;
|
|
1733
|
+
r(this, R, Math.min(t(this, o).duration, Math.max(i, a))), e(this, s, k).call(this, t(this, R));
|
|
1734
|
+
}, vi = function() {
|
|
1735
|
+
if (!Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0) {
|
|
1736
|
+
r(this, lt, null), e(this, s, Ge).call(this);
|
|
1581
1737
|
return;
|
|
1582
1738
|
}
|
|
1583
|
-
const i = t(this,
|
|
1584
|
-
|
|
1739
|
+
const i = t(this, h).style.getPropertyValue("--sp-progress-inset"), a = Number.parseFloat(i), l = Number.isFinite(a) ? Math.min(1, Math.max(0, 1 - a / 100)) : null, u = e(this, s, Ct).call(this), f = Math.min(1, Math.max(0, u / t(this, o).duration)), v = Math.max(l ?? 0, f);
|
|
1740
|
+
r(this, lt, v), r(this, R, v * t(this, o).duration), e(this, s, k).call(this, t(this, R)), e(this, s, dt).call(this, v), t(this, m).setAttribute("aria-valuenow", `${t(this, R)}`), t(this, m).setAttribute(
|
|
1585
1741
|
"aria-valuetext",
|
|
1586
|
-
`${
|
|
1742
|
+
`${_(t(this, R))} of ${_(t(this, o).duration)}`
|
|
1587
1743
|
);
|
|
1588
|
-
},
|
|
1589
|
-
if (!Number.isFinite(t(this,
|
|
1590
|
-
if (e(this, s,
|
|
1591
|
-
if (t(this,
|
|
1592
|
-
if (!e(this, s,
|
|
1593
|
-
if (t(this,
|
|
1594
|
-
return e(this, s,
|
|
1595
|
-
if (t(this,
|
|
1596
|
-
return e(this, s,
|
|
1597
|
-
const i = (performance.now() - t(this,
|
|
1598
|
-
return !t(this,
|
|
1599
|
-
},
|
|
1600
|
-
const a = Math.min(1, Math.max(0, i)), l = (1 - a) * 100, { innerWidth: u } = e(this, s,
|
|
1601
|
-
if (t(this,
|
|
1602
|
-
const
|
|
1603
|
-
t(this,
|
|
1744
|
+
}, Ct = function() {
|
|
1745
|
+
if (!Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0) return t(this, o).currentTime || 0;
|
|
1746
|
+
if (e(this, s, C).call(this)) return t(this, S);
|
|
1747
|
+
if (t(this, R) !== null) return t(this, R);
|
|
1748
|
+
if (!e(this, s, Ke).call(this)) return t(this, o).currentTime || 0;
|
|
1749
|
+
if (t(this, Vt) || !t(this, yt) || performance.now() < t(this, ys))
|
|
1750
|
+
return e(this, s, k).call(this), t(this, o).currentTime || 0;
|
|
1751
|
+
if (t(this, h).classList.contains("is-loading") && t(this, o).readyState < HTMLMediaElement.HAVE_FUTURE_DATA)
|
|
1752
|
+
return e(this, s, k).call(this), t(this, o).currentTime || 0;
|
|
1753
|
+
const i = (performance.now() - t(this, xs)) / 1e3, a = t(this, ws) + i, l = t(this, o).loop ? a % t(this, o).duration : Math.min(a, t(this, o).duration);
|
|
1754
|
+
return !t(this, o).loop && t(this, o).currentTime - l > 0.45 ? (e(this, s, k).call(this), t(this, o).currentTime) : l;
|
|
1755
|
+
}, dt = function(i) {
|
|
1756
|
+
const a = Math.min(1, Math.max(0, i)), l = (1 - a) * 100, { innerWidth: u } = e(this, s, yi).call(this), f = 1 / u, v = t(this, g) && t(this, Ft) && t(this, ot) + f < a;
|
|
1757
|
+
if (t(this, h).style.setProperty("--sp-progress-inset", `${l}%`), t(this, h).style.setProperty("--sp-return-marker-base-opacity", v ? "0" : "1"), v) {
|
|
1758
|
+
const Is = e(this, s, fs).call(this, t(this, ot)), ls = Math.max(0, u - 2), Mi = Math.min(ls, Math.max(0, Is - 3));
|
|
1759
|
+
t(this, h).style.setProperty("--sp-return-marker-hole-left", `${Mi}px`);
|
|
1604
1760
|
} else
|
|
1605
|
-
t(this,
|
|
1606
|
-
},
|
|
1607
|
-
return !Number.isFinite(t(this,
|
|
1608
|
-
},
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
return
|
|
1614
|
-
},
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
const
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
const
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
o(this, gt, p), e(this, s, ut).call(this, t(this, nt)), t(this, d).setAttribute("aria-valuemin", "0"), t(this, d).setAttribute("aria-valuemax", `${t(this, r).duration}`), t(this, d).setAttribute("aria-valuenow", `${p}`), t(this, d).setAttribute(
|
|
1761
|
+
t(this, h).style.setProperty("--sp-return-marker-hole-left", "-9999px");
|
|
1762
|
+
}, gi = function(i) {
|
|
1763
|
+
return !Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0 ? 0 : Math.min(1, Math.max(0, i / t(this, o).duration));
|
|
1764
|
+
}, yi = function(i = t(this, m).getBoundingClientRect()) {
|
|
1765
|
+
return ii(i);
|
|
1766
|
+
}, fs = function(i, a = t(this, m).getBoundingClientRect()) {
|
|
1767
|
+
return Ni(i, a);
|
|
1768
|
+
}, wi = function(i, a) {
|
|
1769
|
+
return Yi(i, a);
|
|
1770
|
+
}, xi = function(i) {
|
|
1771
|
+
r(this, Lt, Number.isFinite(i) ? Math.max(0, i) : 0), r(this, ot, e(this, s, gi).call(this, t(this, Lt)));
|
|
1772
|
+
const a = t(this, m).getBoundingClientRect(), l = e(this, s, fs).call(this, t(this, ot), a), u = l >= t(this, os) && l <= Math.max(t(this, os), a.width - t(this, os));
|
|
1773
|
+
r(this, Ft, t(this, Lt) > t(this, Zs) && u), t(this, h).classList.toggle("has-return-marker", t(this, Ft)), t(this, h).style.setProperty("--sp-return-marker-left", `${l}px`);
|
|
1774
|
+
}, ki = function(i, a, l, u = t(this, g)) {
|
|
1775
|
+
const f = l * t(this, o).duration;
|
|
1776
|
+
if (!u || !t(this, Ft))
|
|
1777
|
+
return { percent: l, targetTime: f };
|
|
1778
|
+
const v = a.left + e(this, s, fs).call(this, t(this, ot), a);
|
|
1779
|
+
return Math.abs(i - v) <= t(this, js) ? {
|
|
1780
|
+
percent: t(this, ot),
|
|
1781
|
+
targetTime: t(this, Lt)
|
|
1782
|
+
} : { percent: l, targetTime: f };
|
|
1783
|
+
}, bs = function(i = e(this, s, Ct).call(this)) {
|
|
1784
|
+
!this.timeVisible || t(this, M) || e(this, s, C).call(this) || (t(this, Jt).textContent = _(i));
|
|
1785
|
+
}, I = function(i = e(this, s, Ct).call(this)) {
|
|
1786
|
+
const a = Number.isFinite(t(this, o).duration) && t(this, o).duration > 0;
|
|
1787
|
+
if (a && t(this, lt) !== null) {
|
|
1788
|
+
const f = t(this, lt) * t(this, o).duration;
|
|
1789
|
+
r(this, wt, f), e(this, s, dt).call(this, t(this, lt)), t(this, m).setAttribute("aria-valuemin", "0"), t(this, m).setAttribute("aria-valuemax", `${t(this, o).duration}`), t(this, m).setAttribute("aria-valuenow", `${f}`), t(this, m).setAttribute(
|
|
1635
1790
|
"aria-valuetext",
|
|
1636
|
-
`${
|
|
1637
|
-
);
|
|
1791
|
+
`${_(f)} of ${_(t(this, o).duration)}`
|
|
1792
|
+
), e(this, s, bs).call(this, f);
|
|
1638
1793
|
return;
|
|
1639
1794
|
}
|
|
1640
|
-
const l = a ? Math.min(t(this,
|
|
1641
|
-
|
|
1795
|
+
const l = a ? Math.min(t(this, o).duration, Math.max(0, i)) : i, u = a ? l / t(this, o).duration : 0;
|
|
1796
|
+
r(this, wt, Number.isFinite(l) ? Math.max(0, l) : 0), e(this, s, dt).call(this, u), t(this, m).setAttribute("aria-valuemin", "0"), t(this, m).setAttribute("aria-valuemax", a ? `${t(this, o).duration}` : "0"), t(this, m).setAttribute("aria-valuenow", a ? `${l}` : "0"), t(this, m).setAttribute(
|
|
1642
1797
|
"aria-valuetext",
|
|
1643
|
-
a ? `${
|
|
1644
|
-
);
|
|
1645
|
-
},
|
|
1646
|
-
if (!Number.isFinite(t(this,
|
|
1647
|
-
const
|
|
1648
|
-
return e(this, s,
|
|
1798
|
+
a ? `${_(l)} of ${_(t(this, o).duration)}` : "Loading video"
|
|
1799
|
+
), e(this, s, bs).call(this, l);
|
|
1800
|
+
}, mt = function(i, a = t(this, g), l = !0) {
|
|
1801
|
+
if (!Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0) return t(this, o).currentTime;
|
|
1802
|
+
const u = t(this, m).getBoundingClientRect(), f = e(this, s, wi).call(this, i, u), v = e(this, s, ki).call(this, i, u, f, a);
|
|
1803
|
+
return l && e(this, s, dt).call(this, v.percent), this.timeVisible || t(this, h).style.setProperty("--sp-scrub-preview-left", `${e(this, s, fs).call(this, v.percent, u)}px`), t(this, Jt).textContent = _(v.targetTime), l && (t(this, m).setAttribute("aria-valuenow", `${v.targetTime}`), t(this, m).setAttribute(
|
|
1649
1804
|
"aria-valuetext",
|
|
1650
|
-
`${
|
|
1651
|
-
), e(this, s,
|
|
1652
|
-
},
|
|
1653
|
-
|
|
1654
|
-
},
|
|
1655
|
-
if (!t(this,
|
|
1656
|
-
e(this, s,
|
|
1805
|
+
`${_(v.targetTime)} of ${_(t(this, o).duration)}`
|
|
1806
|
+
)), e(this, s, Pi).call(this), v.targetTime;
|
|
1807
|
+
}, Wt = function() {
|
|
1808
|
+
r(this, It, !1), t(this, h)?.classList.remove("has-controls-collision");
|
|
1809
|
+
}, Pi = function() {
|
|
1810
|
+
if (!t(this, g) && !t(this, M) || !t(this, X) || !t(this, Gt)) {
|
|
1811
|
+
e(this, s, Wt).call(this);
|
|
1657
1812
|
return;
|
|
1658
1813
|
}
|
|
1659
|
-
const i = t(this,
|
|
1660
|
-
|
|
1661
|
-
},
|
|
1662
|
-
t(this,
|
|
1663
|
-
},
|
|
1664
|
-
e(this, s,
|
|
1814
|
+
const i = t(this, X).getBoundingClientRect(), a = t(this, Gt).getBoundingClientRect(), l = i.width > 0 && i.height > 0, u = t(this, It) ? t(this, ie) : t(this, ee), f = l && a.right >= i.left - u && a.left <= i.right + u && a.bottom >= i.top - u && a.top <= i.bottom + u;
|
|
1815
|
+
r(this, It, f), t(this, h).classList.toggle("has-controls-collision", t(this, It));
|
|
1816
|
+
}, jt = function() {
|
|
1817
|
+
t(this, ft) && (window.cancelAnimationFrame(t(this, ft)), r(this, ft, 0));
|
|
1818
|
+
}, Ei = function() {
|
|
1819
|
+
e(this, s, jt).call(this), e(this, s, k).call(this);
|
|
1665
1820
|
const i = () => {
|
|
1666
|
-
e(this, s,
|
|
1821
|
+
e(this, s, I).call(this, e(this, s, Ct).call(this)), e(this, s, Ke).call(this) && r(this, ft, window.requestAnimationFrame(i));
|
|
1667
1822
|
};
|
|
1668
|
-
|
|
1823
|
+
r(this, ft, window.requestAnimationFrame(i));
|
|
1669
1824
|
}, T = function() {
|
|
1670
|
-
const i = !t(this,
|
|
1671
|
-
if (t(this,
|
|
1672
|
-
e(this, s,
|
|
1825
|
+
const i = !t(this, o).paused && (!t(this, o).ended || t(this, o).loop) || t(this, g) && t(this, rt), a = t(this, L) ? t(this, L) === "playing" : i;
|
|
1826
|
+
if (t(this, h).classList.toggle("is-playing", a), t(this, U).setAttribute("aria-label", a ? "Pause video" : "Play video"), t(this, g)) {
|
|
1827
|
+
e(this, s, jt).call(this);
|
|
1673
1828
|
return;
|
|
1674
1829
|
}
|
|
1675
|
-
i && t(this,
|
|
1676
|
-
},
|
|
1677
|
-
t(this,
|
|
1678
|
-
},
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
if (!t(this, g)) return;
|
|
1830
|
+
i && t(this, h).classList.contains("has-loaded-once") && !t(this, h).classList.contains("is-progress-settling") ? e(this, s, Ei).call(this) : (e(this, s, jt).call(this), e(this, s, I).call(this));
|
|
1831
|
+
}, At = function() {
|
|
1832
|
+
t(this, St) && (window.clearTimeout(t(this, St)), r(this, St, 0));
|
|
1833
|
+
}, Ti = function() {
|
|
1834
|
+
return Xi(t(this, o), t(this, y));
|
|
1835
|
+
}, F = new WeakMap(), Je = function(i) {
|
|
1836
|
+
if (!t(this, y)) return;
|
|
1683
1837
|
const a = t(this, E).getBoundingClientRect(), l = Math.min(1, Math.max(0, 1 - (i - a.top) / a.height)), u = Math.round(l * 100) / 100;
|
|
1684
|
-
t(this,
|
|
1685
|
-
},
|
|
1838
|
+
t(this, o).volume = u, t(this, o).muted = u <= 0, t(this, F).call(this);
|
|
1839
|
+
}, Xs = function(i) {
|
|
1686
1840
|
i !== null && t(this, E).hasPointerCapture(i) && t(this, E).releasePointerCapture(i);
|
|
1687
|
-
},
|
|
1688
|
-
|
|
1689
|
-
},
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
return
|
|
1695
|
-
},
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
(
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
}, Ze = function() {
|
|
1719
|
-
!this.volumeEnabled || !this.volumeSliderEnabled || !t(this, g) || (e(this, s, ms).call(this), t(this, y).classList.add("is-volume-open"));
|
|
1720
|
-
}, es = new WeakMap(), Oe = function(i = 150) {
|
|
1721
|
-
e(this, s, ms).call(this), o(this, yt, window.setTimeout(t(this, es), i));
|
|
1722
|
-
}, As = new WeakMap(), Fs = new WeakMap(), oe = new WeakMap(), ne = new WeakMap(), ae = new WeakMap(), le = new WeakMap(), he = new WeakMap(), ce = new WeakMap(), ue = new WeakMap(), pe = new WeakMap(), de = new WeakMap(), me = new WeakMap(), fe = new WeakMap(), be = new WeakMap(), ve = new WeakMap(), ge = new WeakMap(), ye = new WeakMap(), we = new WeakMap(), xe = new WeakMap(), ke = new WeakMap(), Pe = new WeakMap(), Ee = new WeakMap(), Te = new WeakMap(), is = new WeakMap(), Ce = new WeakMap(), Ae = new WeakMap(), Fe = new WeakMap(), Le = new WeakMap(), Se = new WeakMap(), Me = new WeakMap(), I = function() {
|
|
1841
|
+
}, Zt = function(i) {
|
|
1842
|
+
r(this, Y, !1), r(this, x, null), t(this, j).classList.remove("is-scrubbing-volume"), t(this, E).blur(), e(this, s, Xs).call(this, i), e(this, s, ei).call(this, 260);
|
|
1843
|
+
}, Et = new WeakMap(), Ns = function() {
|
|
1844
|
+
return Di(t(this, b));
|
|
1845
|
+
}, Qe = function() {
|
|
1846
|
+
return Hi(this.fullscreenEnabled, t(this, h), t(this, o));
|
|
1847
|
+
}, Ci = function() {
|
|
1848
|
+
return qi(t(this, h));
|
|
1849
|
+
}, Ai = function() {
|
|
1850
|
+
$i(t(this, o));
|
|
1851
|
+
}, Li = function() {
|
|
1852
|
+
return Ui();
|
|
1853
|
+
}, Xt = new WeakMap(), Tt = new WeakMap(), Fi = function(i) {
|
|
1854
|
+
e(this, s, $).call(this), e(this, s, vs).call(this), e(this, s, Ys).call(this, t(this, P)), e(this, s, Xs).call(this, t(this, x)), e(this, s, At).call(this), r(this, z, !1), r(this, g, !1), r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, P, null), r(this, G, !1), r(this, ht, !1), r(this, Y, !1), r(this, x, null), e(this, s, $s).call(this), t(this, Cs).call(this), t(this, W).style.removeProperty("--sp-control-hover-offset"), t(this, w).classList.remove("is-volume-open"), t(this, j).classList.remove("is-scrubbing-volume"), t(this, h).classList.remove("is-scrubbing"), t(this, h).classList.remove("is-pointer-active");
|
|
1855
|
+
const a = t(this, b).activeElement;
|
|
1856
|
+
a instanceof HTMLElement && a.blur(), i ? e(this, s, Ne).call(this) : e(this, s, us).call(this);
|
|
1857
|
+
}, Ls = new WeakMap(), Ys = function(i) {
|
|
1858
|
+
i !== null && t(this, m).hasPointerCapture(i) && t(this, m).releasePointerCapture(i);
|
|
1859
|
+
}, ti = async function(i, a, l) {
|
|
1860
|
+
if (!t(this, z) && !t(this, g)) return;
|
|
1861
|
+
const u = t(this, g);
|
|
1862
|
+
e(this, s, At).call(this), r(this, z, !1), r(this, g, !1), r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, P, null), t(this, h).classList.remove("is-scrubbing"), e(this, s, Wt).call(this), e(this, s, Ys).call(this, a), l && i !== null && (e(this, s, tt).call(this), r(this, S, e(this, s, mt).call(this, i, u)), r(this, N, !0), r(this, bt, t(this, rt)), t(this, o).currentTime = t(this, S), e(this, s, k).call(this, t(this, S))), e(this, s, I).call(this, t(this, S)), u && t(this, rt) && await t(this, o).play(), e(this, s, J).call(this);
|
|
1863
|
+
}, _s = function(i) {
|
|
1864
|
+
!t(this, z) && !t(this, g) || (e(this, s, At).call(this), r(this, z, !1), r(this, g, !1), r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, P, null), t(this, h).classList.remove("is-scrubbing"), e(this, s, Wt).call(this), e(this, s, Ys).call(this, i), e(this, s, k).call(this), e(this, s, I).call(this), t(this, rt) && t(this, o).play(), e(this, s, J).call(this));
|
|
1865
|
+
}, ae = new WeakMap(), le = new WeakMap(), he = new WeakMap(), vs = function() {
|
|
1866
|
+
t(this, xt) && (window.clearTimeout(t(this, xt)), r(this, xt, 0));
|
|
1867
|
+
}, si = function() {
|
|
1868
|
+
!this.volumeEnabled || !this.volumeSliderEnabled || !t(this, y) || (e(this, s, vs).call(this), t(this, w).classList.add("is-volume-open"));
|
|
1869
|
+
}, ns = new WeakMap(), ei = function(i = 150) {
|
|
1870
|
+
e(this, s, vs).call(this), r(this, xt, window.setTimeout(t(this, ns), i));
|
|
1871
|
+
}, Fs = new WeakMap(), Ss = new WeakMap(), ce = new WeakMap(), ue = new WeakMap(), pe = new WeakMap(), de = new WeakMap(), me = new WeakMap(), fe = new WeakMap(), be = new WeakMap(), ve = new WeakMap(), Ms = new WeakMap(), Vs = new WeakMap(), ge = new WeakMap(), ye = new WeakMap(), we = new WeakMap(), xe = new WeakMap(), ke = new WeakMap(), Pe = new WeakMap(), Ee = new WeakMap(), Te = new WeakMap(), Ce = new WeakMap(), Ae = new WeakMap(), Le = new WeakMap(), Fe = new WeakMap(), Se = new WeakMap(), as = new WeakMap(), Me = new WeakMap(), Ve = new WeakMap(), Ie = new WeakMap(), ze = new WeakMap(), Re = new WeakMap(), De = new WeakMap(), A = function() {
|
|
1723
1872
|
return window.matchMedia("(max-width: 768px)").matches && window.matchMedia("(hover: none), (pointer: coarse)").matches;
|
|
1724
|
-
},
|
|
1725
|
-
t(this,
|
|
1726
|
-
},
|
|
1727
|
-
|
|
1728
|
-
"aspect-ratio",
|
|
1729
|
-
"preload-margin",
|
|
1730
|
-
"controls",
|
|
1731
|
-
"disable-autoplay",
|
|
1732
|
-
"enable-volume",
|
|
1733
|
-
"disable-volume",
|
|
1734
|
-
"disable-volume-slider",
|
|
1735
|
-
"enable-picture-in-picture",
|
|
1736
|
-
"disable-picture-in-picture",
|
|
1737
|
-
"enable-fullscreen",
|
|
1738
|
-
"disable-fullscreen",
|
|
1739
|
-
"no-autoplay",
|
|
1740
|
-
"no-volume",
|
|
1741
|
-
"no-volume-slider",
|
|
1742
|
-
"no-picture-in-picture",
|
|
1743
|
-
"no-fullscreen"
|
|
1744
|
-
]);
|
|
1745
|
-
customElements.get("simple-player") || customElements.define("simple-player", ti);
|
|
1873
|
+
}, Si = function() {
|
|
1874
|
+
t(this, o) && (t(this, D)?.disconnect(), r(this, D, null), e(this, s, ds).call(this), e(this, s, Us).call(this), r(this, H, !1), r(this, ts, 0), r(this, q, !1), r(this, B, !1), r(this, Z, !1), r(this, O, !1), r(this, K, t(this, K) + 1), r(this, yt, !1), r(this, wt, 0), e(this, s, tt).call(this), r(this, y, !0), r(this, N, !1), r(this, bt, !1), r(this, L, null), t(this, h).classList.remove("has-loaded-once", "has-visible-frame", "is-progress-settling"), t(this, o).dataset.src = this.src, t(this, o).pause(), t(this, o).removeAttribute("src"), t(this, o).preload = "none", e(this, s, hs).call(this), t(this, o).load(), e(this, s, dt).call(this, 0), t(this, F).call(this), t(this, V).call(this), e(this, s, T).call(this));
|
|
1875
|
+
}, oi(li, "observedAttributes", Ri);
|
|
1876
|
+
customElements.get("simple-player") || customElements.define("simple-player", li);
|
|
1746
1877
|
export {
|
|
1747
|
-
|
|
1878
|
+
li as SimplePlayer
|
|
1748
1879
|
};
|
|
1749
1880
|
//# sourceMappingURL=simple-player.js.map
|