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