@grizzshutsdown/simpleplayer 0.1.1 → 0.1.2

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