@grizzshutsdown/simpleplayer 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/simple-player.js +242 -245
- package/dist/simple-player.js.map +1 -1
- package/package.json +1 -1
- package/skill/simpleplayer/SKILL.md +10 -3
package/dist/simple-player.js
CHANGED
|
@@ -1105,7 +1105,7 @@ fi.innerHTML = `
|
|
|
1105
1105
|
</div>
|
|
1106
1106
|
</div>
|
|
1107
1107
|
`;
|
|
1108
|
-
var b, St, H,
|
|
1108
|
+
var b, St, H, ss, B, h, o, Y, m, X, j, Js, L, es, ks, w, O, T, et, it, rt, vt, g, R, ot, F, Mt, nt, Vt, _, gt, is, zt, P, S, rs, at, yt, wt, lt, Ps, os, It, $, N, Z, K, G, Rt, xt, Ts, Dt, Es, Cs, kt, D, ht, qt, M, y, J, ns, as, Ht, W, ct, x, Pt, Tt, Et, ls, hs, Ct, Qs, te, cs, se, ee, As, Bt, ie, re, oe, ne, ae, le, $t, he, ce, s, Bs, $s, We, ms, je, jt, Ns, vi, c, Us, Nt, U, ue, fs, Q, tt, Ys, bs, Ot, gi, Oe, Ze, Ke, Zt, vs, Xs, Ge, Ut, Yt, Ls, Xt, ut, pt, Fs, pe, Ss, _s, Ms, de, Je, gs, Ws, ys, Qe, yi, Vs, wi, dt, ti, xi, si, Kt, z, ki, E, Pi, ei, ii, Ti, _t, ri, k, st, oi, Ei, mt, ft, Ci, Ai, ws, Li, Fi, Si, Gt, I, bt, Jt, Mi, Qt, Vi, C, Ft, zi, V, ni, js, ts, At, Os, ai, Ii, Ri, Di, Wt, Lt, qi, zs, Zs, li, Ks, Gs, Hi, Bi, me, fe, be, ve, xs, hi, us, ci, Is, Rs, ge, ye, we, xe, ke, Pe, Te, Ee, Ds, qs, Ce, Ae, Le, Fe, Se, Me, Ve, ze, Ie, Re, De, qe, He, ps, Be, $e, Ne, Ue, Ye, Xe, A, $i;
|
|
1109
1109
|
class bi extends HTMLElement {
|
|
1110
1110
|
constructor() {
|
|
1111
1111
|
super();
|
|
@@ -1113,82 +1113,82 @@ class bi extends HTMLElement {
|
|
|
1113
1113
|
n(this, b);
|
|
1114
1114
|
n(this, St, []);
|
|
1115
1115
|
n(this, H, null);
|
|
1116
|
-
n(this,
|
|
1116
|
+
n(this, ss, !1);
|
|
1117
1117
|
n(this, B, !1);
|
|
1118
|
-
n(this,
|
|
1118
|
+
n(this, h);
|
|
1119
1119
|
n(this, o);
|
|
1120
|
-
n(this,
|
|
1120
|
+
n(this, Y);
|
|
1121
1121
|
n(this, m);
|
|
1122
|
-
n(this,
|
|
1123
|
-
n(this,
|
|
1122
|
+
n(this, X);
|
|
1123
|
+
n(this, j);
|
|
1124
1124
|
n(this, Js);
|
|
1125
1125
|
n(this, L);
|
|
1126
|
-
n(this,
|
|
1127
|
-
n(this,
|
|
1128
|
-
n(this,
|
|
1129
|
-
n(this,
|
|
1126
|
+
n(this, es);
|
|
1127
|
+
n(this, ks);
|
|
1128
|
+
n(this, w);
|
|
1129
|
+
n(this, O);
|
|
1130
1130
|
n(this, T);
|
|
1131
|
+
n(this, et);
|
|
1131
1132
|
n(this, it);
|
|
1132
|
-
n(this, rt);
|
|
1133
|
-
n(this, Z, []);
|
|
1133
|
+
n(this, rt, []);
|
|
1134
1134
|
n(this, vt, 0);
|
|
1135
|
-
n(this,
|
|
1135
|
+
n(this, g, !1);
|
|
1136
1136
|
n(this, R, !1);
|
|
1137
1137
|
n(this, ot, !1);
|
|
1138
1138
|
n(this, F, 0);
|
|
1139
1139
|
n(this, Mt, 0);
|
|
1140
1140
|
n(this, nt, 0);
|
|
1141
1141
|
n(this, Vt, !1);
|
|
1142
|
-
n(this,
|
|
1142
|
+
n(this, _, !1);
|
|
1143
1143
|
n(this, gt, !1);
|
|
1144
|
-
n(this,
|
|
1144
|
+
n(this, is, 0);
|
|
1145
1145
|
n(this, zt, 0);
|
|
1146
1146
|
n(this, P, null);
|
|
1147
1147
|
n(this, S, null);
|
|
1148
|
-
n(this,
|
|
1148
|
+
n(this, rs, 0);
|
|
1149
1149
|
n(this, at, 0);
|
|
1150
1150
|
n(this, yt, 0);
|
|
1151
1151
|
n(this, wt, 0);
|
|
1152
1152
|
n(this, lt, 0);
|
|
1153
|
-
n(this,
|
|
1154
|
-
n(this,
|
|
1153
|
+
n(this, Ps, 0);
|
|
1154
|
+
n(this, os, 0);
|
|
1155
1155
|
n(this, It, null);
|
|
1156
|
+
n(this, $, !1);
|
|
1156
1157
|
n(this, N, !1);
|
|
1157
|
-
n(this,
|
|
1158
|
+
n(this, Z, !1);
|
|
1158
1159
|
n(this, K, !1);
|
|
1159
|
-
n(this, G,
|
|
1160
|
-
n(this, J, 0);
|
|
1160
|
+
n(this, G, 0);
|
|
1161
1161
|
n(this, Rt, 0);
|
|
1162
1162
|
n(this, xt, !1);
|
|
1163
|
-
n(this,
|
|
1163
|
+
n(this, Ts, 0);
|
|
1164
1164
|
n(this, Dt, !0);
|
|
1165
|
-
n(this,
|
|
1166
|
-
n(this,
|
|
1165
|
+
n(this, Es, 0);
|
|
1166
|
+
n(this, Cs, performance.now());
|
|
1167
1167
|
n(this, kt, 0);
|
|
1168
1168
|
n(this, D, null);
|
|
1169
1169
|
n(this, ht, null);
|
|
1170
1170
|
n(this, qt, !1);
|
|
1171
1171
|
n(this, M, !1);
|
|
1172
|
-
n(this,
|
|
1173
|
-
n(this,
|
|
1174
|
-
n(this,
|
|
1175
|
-
n(this,
|
|
1172
|
+
n(this, y, !0);
|
|
1173
|
+
n(this, J, !1);
|
|
1174
|
+
n(this, ns, null);
|
|
1175
|
+
n(this, as, null);
|
|
1176
1176
|
n(this, Ht, !1);
|
|
1177
|
-
n(this,
|
|
1177
|
+
n(this, W, !1);
|
|
1178
1178
|
n(this, ct, !1);
|
|
1179
1179
|
n(this, x, null);
|
|
1180
1180
|
n(this, Pt, 0);
|
|
1181
1181
|
n(this, Tt, 0);
|
|
1182
1182
|
n(this, Et, 0);
|
|
1183
|
-
n(this,
|
|
1184
|
-
n(this,
|
|
1183
|
+
n(this, ls, null);
|
|
1184
|
+
n(this, hs, !1);
|
|
1185
1185
|
n(this, Ct, 0);
|
|
1186
1186
|
n(this, Qs, 4);
|
|
1187
1187
|
n(this, te, 3.5);
|
|
1188
|
-
n(this,
|
|
1188
|
+
n(this, cs, 6);
|
|
1189
1189
|
n(this, se, 0.08);
|
|
1190
1190
|
n(this, ee, 240);
|
|
1191
|
-
n(this,
|
|
1191
|
+
n(this, As, 1200);
|
|
1192
1192
|
n(this, Bt, 1600);
|
|
1193
1193
|
n(this, ie, 140);
|
|
1194
1194
|
n(this, re, 380);
|
|
@@ -1203,209 +1203,209 @@ class bi extends HTMLElement {
|
|
|
1203
1203
|
i.preventDefault();
|
|
1204
1204
|
});
|
|
1205
1205
|
n(this, ue, () => {
|
|
1206
|
-
if (r(this, yt, 0), !(t(this, R) || t(this,
|
|
1206
|
+
if (r(this, yt, 0), !(t(this, R) || t(this, g) || t(this, W))) {
|
|
1207
1207
|
if (e(this, s, A).call(this)) {
|
|
1208
|
-
t(this,
|
|
1208
|
+
t(this, h).classList.remove("is-controls-visible");
|
|
1209
1209
|
return;
|
|
1210
1210
|
}
|
|
1211
|
-
t(this,
|
|
1211
|
+
t(this, J) || t(this, h).classList.remove("is-pointer-active");
|
|
1212
1212
|
}
|
|
1213
1213
|
});
|
|
1214
1214
|
n(this, Ut, (i) => {
|
|
1215
|
-
e(this, s,
|
|
1215
|
+
e(this, s, Ot).call(this, i) && e(this, s, Ys).call(this, !0);
|
|
1216
1216
|
});
|
|
1217
1217
|
n(this, Yt, (i) => {
|
|
1218
|
-
e(this, s,
|
|
1218
|
+
e(this, s, Ot).call(this, i) && ((i instanceof PointerEvent || i instanceof MouseEvent) && e(this, s, Ke).call(this, i.clientX, i.clientY), e(this, s, Ys).call(this, !0));
|
|
1219
1219
|
});
|
|
1220
|
-
n(this,
|
|
1221
|
-
e(this, s,
|
|
1220
|
+
n(this, Ls, (i) => {
|
|
1221
|
+
e(this, s, Ot).call(this, i) && ((i instanceof PointerEvent || i instanceof MouseEvent) && e(this, s, Ke).call(this, i.clientX, i.clientY), e(this, s, Ge).call(this));
|
|
1222
1222
|
});
|
|
1223
1223
|
n(this, Xt, () => {
|
|
1224
|
-
e(this, s,
|
|
1224
|
+
e(this, s, bs).call(this);
|
|
1225
1225
|
});
|
|
1226
1226
|
n(this, ut, (i) => {
|
|
1227
|
-
e(this, s,
|
|
1227
|
+
e(this, s, Ot).call(this, i) && (r(this, J, !0), t(this, h).classList.add("is-pointer-active"), e(this, s, U).call(this));
|
|
1228
1228
|
});
|
|
1229
1229
|
n(this, pt, () => {
|
|
1230
|
-
r(this,
|
|
1230
|
+
r(this, J, !1), e(this, s, fs).call(this, t(this, Bt));
|
|
1231
1231
|
});
|
|
1232
|
-
n(this,
|
|
1233
|
-
e(this, s, A).call(this) ? t(this,
|
|
1232
|
+
n(this, Fs, () => {
|
|
1233
|
+
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, U).call(this);
|
|
1234
1234
|
});
|
|
1235
1235
|
n(this, pe, () => {
|
|
1236
|
-
e(this, s,
|
|
1236
|
+
e(this, s, fs).call(this, t(this, Bt));
|
|
1237
1237
|
});
|
|
1238
|
-
n(this,
|
|
1238
|
+
n(this, Ss, (i) => {
|
|
1239
1239
|
const a = i.currentTarget;
|
|
1240
1240
|
if (e(this, s, Xs).call(this, a)) {
|
|
1241
|
-
t(this,
|
|
1241
|
+
t(this, j).style.removeProperty("--sp-control-hover-offset");
|
|
1242
1242
|
return;
|
|
1243
1243
|
}
|
|
1244
1244
|
const u = Number(a.dataset.spControlIndex ?? 0);
|
|
1245
|
-
t(this,
|
|
1245
|
+
t(this, j).style.setProperty("--sp-control-hover-offset", `calc(var(--sp-control-slot-size) * ${u})`);
|
|
1246
1246
|
});
|
|
1247
|
-
n(this,
|
|
1248
|
-
r(this, Et, 0), t(this,
|
|
1247
|
+
n(this, Ms, () => {
|
|
1248
|
+
r(this, Et, 0), t(this, rt).forEach((i) => i.classList.remove("is-control-tap-active")), this.style.removeProperty("--sp-touch-control-hover-offset");
|
|
1249
1249
|
});
|
|
1250
1250
|
n(this, de, (i) => {
|
|
1251
1251
|
if (!(i instanceof PointerEvent) || i.pointerType !== "touch") return;
|
|
1252
1252
|
const a = i.currentTarget;
|
|
1253
|
-
if (!a || !e(this, s,
|
|
1253
|
+
if (!a || !e(this, s, Zt).call(this) || e(this, s, Xs).call(this, a)) return;
|
|
1254
1254
|
const l = Number(a.dataset.spControlIndex ?? 0);
|
|
1255
|
-
e(this, s, _s).call(this), t(this,
|
|
1255
|
+
e(this, s, _s).call(this), t(this, rt).forEach((u) => u.classList.toggle("is-control-tap-active", u === a)), this.style.setProperty("--sp-touch-control-hover-offset", `calc(var(--sp-control-slot-size) * ${l})`), r(this, Et, window.setTimeout(t(this, Ms), 280));
|
|
1256
1256
|
});
|
|
1257
|
-
n(this,
|
|
1258
|
-
if (t(this, lt) || t(this,
|
|
1257
|
+
n(this, Vs, () => {
|
|
1258
|
+
if (t(this, lt) || t(this, h).classList.contains("is-progress-settling")) {
|
|
1259
1259
|
if (e(this, s, Ws).call(this), t(this, xt)) {
|
|
1260
|
-
t(this,
|
|
1260
|
+
t(this, h).classList.remove("is-progress-settling");
|
|
1261
1261
|
return;
|
|
1262
1262
|
}
|
|
1263
|
-
r(this, xt, !0), r(this,
|
|
1263
|
+
r(this, xt, !0), r(this, Ts, performance.now() + t(this, oe)), e(this, s, E).call(this) || e(this, s, k).call(this), e(this, s, I).call(this), t(this, h).classList.remove("is-progress-settling"), e(this, s, C).call(this);
|
|
1264
1264
|
}
|
|
1265
1265
|
});
|
|
1266
1266
|
n(this, z, () => {
|
|
1267
1267
|
if (t(this, o).error) {
|
|
1268
|
-
e(this, s,
|
|
1268
|
+
e(this, s, Kt).call(this, !0, !0);
|
|
1269
1269
|
return;
|
|
1270
1270
|
}
|
|
1271
|
-
e(this, s,
|
|
1271
|
+
e(this, s, Kt).call(this, !t(this, B) || !t(this, N) || t(this, o).readyState < HTMLMediaElement.HAVE_FUTURE_DATA);
|
|
1272
1272
|
});
|
|
1273
1273
|
n(this, _t, () => {
|
|
1274
1274
|
if (t(this, o).error || t(this, o).readyState < HTMLMediaElement.HAVE_CURRENT_DATA || t(this, o).videoWidth <= 0 || t(this, o).videoHeight <= 0)
|
|
1275
1275
|
return t(this, z).call(this), !1;
|
|
1276
|
-
if (!t(this,
|
|
1276
|
+
if (!t(this, $))
|
|
1277
1277
|
return e(this, s, Ti).call(this), t(this, z).call(this), !1;
|
|
1278
1278
|
const i = e(this, s, ii).call(this);
|
|
1279
1279
|
return t(this, V).call(this), i;
|
|
1280
1280
|
});
|
|
1281
1281
|
n(this, V, () => {
|
|
1282
1282
|
if (!this.volumeEnabled) {
|
|
1283
|
-
t(this,
|
|
1283
|
+
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");
|
|
1284
1284
|
return;
|
|
1285
1285
|
}
|
|
1286
|
-
r(this,
|
|
1287
|
-
const i = !t(this,
|
|
1288
|
-
t(this,
|
|
1286
|
+
r(this, y, e(this, s, zi).call(this));
|
|
1287
|
+
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";
|
|
1288
|
+
t(this, ls) && t(this, ls) !== u && e(this, s, yi).call(this), r(this, ls, 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(
|
|
1289
1289
|
"aria-label",
|
|
1290
|
-
t(this,
|
|
1290
|
+
t(this, y) ? i ? "Unmute video" : "Mute video" : "Video has no audio"
|
|
1291
1291
|
), t(this, T).setAttribute("aria-valuenow", `${l}`), t(this, T).setAttribute("aria-valuetext", `${l}%`);
|
|
1292
1292
|
});
|
|
1293
1293
|
n(this, At, () => {
|
|
1294
1294
|
const i = document.pictureInPictureElement === t(this, o), a = t(this, o), l = !!(this.pictureInPictureEnabled && document.pictureInPictureEnabled && a.requestPictureInPicture);
|
|
1295
|
-
t(this,
|
|
1295
|
+
t(this, h).classList.toggle("is-picture-in-picture", i), t(this, et).disabled = !l, t(this, et).setAttribute("aria-label", i ? "Exit picture in picture" : "Enter picture in picture");
|
|
1296
1296
|
});
|
|
1297
1297
|
n(this, Wt, () => {
|
|
1298
|
-
const i = e(this, s, Os).call(this), a = i === t(this,
|
|
1299
|
-
return t(this,
|
|
1298
|
+
const i = e(this, s, Os).call(this), a = i === t(this, h) || i === this, l = e(this, s, ai).call(this);
|
|
1299
|
+
return t(this, h).classList.toggle("is-fullscreen", a), t(this, it).disabled = !l, t(this, it).setAttribute("aria-label", a ? "Exit fullscreen" : "Enter fullscreen"), a;
|
|
1300
1300
|
});
|
|
1301
1301
|
n(this, Lt, () => {
|
|
1302
1302
|
const i = t(this, Wt).call(this);
|
|
1303
1303
|
e(this, s, qi).call(this, i);
|
|
1304
1304
|
});
|
|
1305
|
-
n(this,
|
|
1306
|
-
!t(this, R) || t(this,
|
|
1305
|
+
n(this, zs, () => {
|
|
1306
|
+
!t(this, R) || t(this, g) || (e(this, s, st).call(this), e(this, s, U).call(this), e(this, s, Ft).call(this), r(this, g, !0), t(this, h).classList.add("is-scrubbing"), r(this, F, e(this, s, bt).call(this, t(this, is), !0)), t(this, ot) && t(this, o).pause(), t(this, o).currentTime = t(this, F), e(this, s, k).call(this, t(this, F)), e(this, s, I).call(this, t(this, F)), e(this, s, Qt).call(this), e(this, s, C).call(this));
|
|
1307
1307
|
});
|
|
1308
1308
|
n(this, me, (i) => {
|
|
1309
|
-
i.stopPropagation(), r(this,
|
|
1309
|
+
i.stopPropagation(), r(this, hs, !t(this, hs)), e(this, s, Bi).call(this), e(this, s, E).call(this) || t(this, M) ? t(this, L) && (t(this, L).textContent = e(this, s, Gs).call(this, t(this, F))) : e(this, s, Gt).call(this, e(this, s, mt).call(this));
|
|
1310
1310
|
});
|
|
1311
1311
|
n(this, fe, async () => {
|
|
1312
|
-
if (performance.now() < t(this,
|
|
1312
|
+
if (performance.now() < t(this, Ps))
|
|
1313
1313
|
return;
|
|
1314
1314
|
const i = t(this, S) ? t(this, S) !== "playing" : t(this, o).paused || t(this, o).ended, a = !i || e(this, s, ki).call(this);
|
|
1315
|
-
e(this, s,
|
|
1315
|
+
e(this, s, tt).call(this), a && (r(this, S, i ? "playing" : "paused"), e(this, s, C).call(this)), i ? (e(this, s, st).call(this), await e(this, s, dt).call(this), await t(this, o).play().catch(() => {
|
|
1316
1316
|
r(this, S, null);
|
|
1317
|
-
})) : (e(this, s, Ei).call(this), t(this, o).pause()), e(this, s, C).call(this), e(this, s,
|
|
1317
|
+
})) : (e(this, s, Ei).call(this), t(this, o).pause()), e(this, s, C).call(this), e(this, s, Q).call(this);
|
|
1318
1318
|
});
|
|
1319
1319
|
n(this, be, (i) => {
|
|
1320
1320
|
if (!(i instanceof PointerEvent)) return;
|
|
1321
|
-
const a = t(this,
|
|
1322
|
-
|
|
1321
|
+
const a = t(this, Y).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(), Hs = i.clientX >= v.left && i.clientX <= v.right && i.clientY >= v.top && i.clientY <= v.bottom, ds = e(this, s, tt).call(this);
|
|
1322
|
+
ds && l && r(this, Ps, performance.now() + 260), ds && (f || Hs) && r(this, os, performance.now() + 260), e(this, s, dt).call(this);
|
|
1323
1323
|
});
|
|
1324
1324
|
n(this, ve, (i) => {
|
|
1325
1325
|
i.stopPropagation();
|
|
1326
1326
|
});
|
|
1327
|
-
n(this,
|
|
1328
|
-
r(this, Pt, 0), !(t(this, ct) || t(this,
|
|
1327
|
+
n(this, us, () => {
|
|
1328
|
+
r(this, Pt, 0), !(t(this, ct) || t(this, W)) && t(this, w).classList.remove("is-volume-open");
|
|
1329
1329
|
});
|
|
1330
|
-
n(this,
|
|
1331
|
-
e(this, s, A).call(this) || !this.volumeSliderEnabled || !t(this,
|
|
1330
|
+
n(this, Is, () => {
|
|
1331
|
+
e(this, s, A).call(this) || !this.volumeSliderEnabled || !t(this, y) || (r(this, ct, !0), e(this, s, hi).call(this));
|
|
1332
1332
|
});
|
|
1333
|
-
n(this,
|
|
1334
|
-
e(this, s, A).call(this) || !this.volumeSliderEnabled || !t(this,
|
|
1333
|
+
n(this, Rs, () => {
|
|
1334
|
+
e(this, s, A).call(this) || !this.volumeSliderEnabled || !t(this, y) || (r(this, ct, !1), e(this, s, ci).call(this));
|
|
1335
1335
|
});
|
|
1336
1336
|
n(this, ge, (i) => {
|
|
1337
|
-
!this.volumeEnabled || !t(this,
|
|
1337
|
+
!this.volumeEnabled || !t(this, y) || (i.preventDefault(), i.stopPropagation(), !(!e(this, s, Zt).call(this) || e(this, s, vs).call(this)) && (e(this, s, tt).call(this), t(this, us).call(this), t(this, o).muted || t(this, o).volume <= 0 ? (t(this, o).volume <= 0 && (t(this, o).volume = 0.7), t(this, o).muted = !1) : t(this, o).muted = !0, t(this, V).call(this), e(this, s, Q).call(this)));
|
|
1338
1338
|
});
|
|
1339
1339
|
n(this, ye, (i) => {
|
|
1340
|
-
i instanceof PointerEvent && (!this.volumeEnabled || !this.volumeSliderEnabled || !t(this,
|
|
1340
|
+
i instanceof PointerEvent && (!this.volumeEnabled || !this.volumeSliderEnabled || !t(this, y) || e(this, s, A).call(this) || (i.preventDefault(), i.stopPropagation(), e(this, s, tt).call(this), e(this, s, U).call(this), e(this, s, hi).call(this), r(this, W, !0), r(this, x, i.pointerId), t(this, O).classList.add("is-scrubbing-volume"), t(this, T).setPointerCapture(i.pointerId), e(this, s, ni).call(this, i.clientY)));
|
|
1341
1341
|
});
|
|
1342
1342
|
n(this, we, (i) => {
|
|
1343
|
-
i instanceof PointerEvent && t(this,
|
|
1343
|
+
i instanceof PointerEvent && t(this, W) && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.preventDefault(), i.stopPropagation(), e(this, s, ni).call(this, i.clientY)));
|
|
1344
1344
|
});
|
|
1345
1345
|
n(this, xe, (i) => {
|
|
1346
|
-
i instanceof PointerEvent && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.stopPropagation(), e(this, s,
|
|
1346
|
+
i instanceof PointerEvent && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.stopPropagation(), e(this, s, ts).call(this, i.pointerId), e(this, s, Q).call(this)));
|
|
1347
1347
|
});
|
|
1348
1348
|
n(this, ke, (i) => {
|
|
1349
|
-
i instanceof PointerEvent && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.stopPropagation(), e(this, s,
|
|
1349
|
+
i instanceof PointerEvent && (t(this, x) !== null && i.pointerId !== t(this, x) || (i.stopPropagation(), e(this, s, ts).call(this, i.pointerId)));
|
|
1350
1350
|
});
|
|
1351
1351
|
n(this, Pe, (i) => {
|
|
1352
|
-
if (!(i instanceof KeyboardEvent) || !this.volumeEnabled || !t(this,
|
|
1352
|
+
if (!(i instanceof KeyboardEvent) || !this.volumeEnabled || !t(this, y) || !["ArrowUp", "ArrowDown", "Home", "End"].includes(i.key)) return;
|
|
1353
1353
|
i.preventDefault(), i.stopPropagation();
|
|
1354
1354
|
const a = i.shiftKey ? 0.1 : 0.05, l = i.key === "Home" ? 0 : i.key === "End" ? 1 : t(this, o).volume + (i.key === "ArrowUp" ? a : -a);
|
|
1355
1355
|
t(this, o).volume = Math.min(1, Math.max(0, l)), t(this, o).muted = t(this, o).volume <= 0, t(this, V).call(this);
|
|
1356
1356
|
});
|
|
1357
1357
|
n(this, Te, async () => {
|
|
1358
1358
|
const i = t(this, o);
|
|
1359
|
-
if (!(!this.pictureInPictureEnabled || !document.pictureInPictureEnabled || !i.requestPictureInPicture) && !(!e(this, s,
|
|
1360
|
-
e(this, s,
|
|
1359
|
+
if (!(!this.pictureInPictureEnabled || !document.pictureInPictureEnabled || !i.requestPictureInPicture) && !(!e(this, s, Zt).call(this) || e(this, s, vs).call(this))) {
|
|
1360
|
+
e(this, s, tt).call(this);
|
|
1361
1361
|
try {
|
|
1362
1362
|
await e(this, s, dt).call(this), document.pictureInPictureElement === t(this, o) ? await document.exitPictureInPicture() : await i.requestPictureInPicture();
|
|
1363
1363
|
} catch {
|
|
1364
1364
|
} finally {
|
|
1365
|
-
t(this, At).call(this), e(this, s,
|
|
1365
|
+
t(this, At).call(this), e(this, s, Q).call(this);
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
});
|
|
1369
1369
|
n(this, Ee, async (i) => {
|
|
1370
|
-
if (e(this, s, ai).call(this) && (i.preventDefault(), i.stopPropagation(), !(!e(this, s,
|
|
1371
|
-
e(this, s,
|
|
1370
|
+
if (e(this, s, ai).call(this) && (i.preventDefault(), i.stopPropagation(), !(!e(this, s, Zt).call(this) || e(this, s, vs).call(this)))) {
|
|
1371
|
+
e(this, s, Ot).call(this, i), e(this, s, tt).call(this);
|
|
1372
1372
|
try {
|
|
1373
1373
|
const a = e(this, s, Os).call(this);
|
|
1374
|
-
a === t(this,
|
|
1374
|
+
a === t(this, h) || a === this ? await e(this, s, Di).call(this) : (await e(this, s, dt).call(this), Zi(t(this, h)) ? await e(this, s, Ii).call(this) : e(this, s, Ri).call(this));
|
|
1375
1375
|
} catch {
|
|
1376
1376
|
} finally {
|
|
1377
|
-
t(this, Wt).call(this), e(this, s,
|
|
1377
|
+
t(this, Wt).call(this), e(this, s, Q).call(this);
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
1380
|
});
|
|
1381
1381
|
n(this, Ds, (i) => {
|
|
1382
|
-
e(this, s, A).call(this) || e(this, s, E).call(this) || !(i instanceof PointerEvent) && !(i instanceof MouseEvent) || (r(this, M, !0), t(this,
|
|
1382
|
+
e(this, s, A).call(this) || e(this, s, E).call(this) || !(i instanceof PointerEvent) && !(i instanceof MouseEvent) || (r(this, M, !0), t(this, h).classList.add("is-progress-hovering"), e(this, s, bt).call(this, i.clientX, !1, !1));
|
|
1383
1383
|
});
|
|
1384
1384
|
n(this, qs, () => {
|
|
1385
1385
|
e(this, s, E).call(this) || e(this, s, Ze).call(this);
|
|
1386
1386
|
});
|
|
1387
1387
|
n(this, Ce, (i) => {
|
|
1388
1388
|
if (i instanceof PointerEvent) {
|
|
1389
|
-
if (i.preventDefault(), !e(this, s,
|
|
1390
|
-
e(this, s,
|
|
1389
|
+
if (i.preventDefault(), !e(this, s, Zt).call(this) || e(this, s, vs).call(this)) {
|
|
1390
|
+
e(this, s, tt).call(this), e(this, s, A).call(this) && r(this, os, performance.now() + 260);
|
|
1391
1391
|
return;
|
|
1392
1392
|
}
|
|
1393
|
-
e(this, s,
|
|
1393
|
+
e(this, s, tt).call(this), e(this, s, U).call(this), t(this, Vs).call(this), r(this, _, !1), r(this, gt, !1), e(this, s, Fi).call(this, e(this, s, mt).call(this)), r(this, R, !0), r(this, P, i.pointerId), r(this, is, i.clientX), r(this, ot, !t(this, o).paused && !t(this, o).ended), t(this, m).setPointerCapture(i.pointerId), r(this, F, e(this, s, bt).call(this, i.clientX, !1)), e(this, s, Ft).call(this), r(this, zt, window.setTimeout(t(this, zs), t(this, ee)));
|
|
1394
1394
|
}
|
|
1395
1395
|
});
|
|
1396
1396
|
n(this, Ae, (i) => {
|
|
1397
1397
|
if (!(i instanceof KeyboardEvent) || !Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0 || !["ArrowLeft", "ArrowRight", "Home", "End", "PageUp", "PageDown"].includes(i.key)) return;
|
|
1398
|
-
i.preventDefault(), i.stopPropagation(), t(this,
|
|
1398
|
+
i.preventDefault(), i.stopPropagation(), t(this, Fs).call(this);
|
|
1399
1399
|
const a = e(this, s, mt).call(this), l = i.shiftKey ? 10 : 5, u = Math.max(10, t(this, o).duration * 0.1), f = i.key === "Home" ? 0 : i.key === "End" ? t(this, o).duration : i.key === "PageUp" ? a + u : i.key === "PageDown" ? a - u : a + (i.key === "ArrowRight" ? l : -l);
|
|
1400
1400
|
t(this, o).currentTime = Math.min(t(this, o).duration, Math.max(0, f)), e(this, s, k).call(this, t(this, o).currentTime), e(this, s, I).call(this, t(this, o).currentTime);
|
|
1401
1401
|
});
|
|
1402
1402
|
n(this, Le, (i) => {
|
|
1403
1403
|
if (i instanceof PointerEvent) {
|
|
1404
1404
|
if (!t(this, R)) {
|
|
1405
|
-
e(this, s, A).call(this) || (r(this, M, !0), t(this,
|
|
1405
|
+
e(this, s, A).call(this) || (r(this, M, !0), t(this, h).classList.add("is-progress-hovering"), e(this, s, bt).call(this, i.clientX, !1, !1));
|
|
1406
1406
|
return;
|
|
1407
1407
|
}
|
|
1408
|
-
t(this, P) !== null && i.pointerId !== t(this, P) || (!t(this,
|
|
1408
|
+
t(this, P) !== null && i.pointerId !== t(this, P) || (!t(this, g) && Math.abs(i.clientX - t(this, is)) >= t(this, Qs) && t(this, zs).call(this), t(this, g) && r(this, F, e(this, s, bt).call(this, i.clientX)));
|
|
1409
1409
|
}
|
|
1410
1410
|
});
|
|
1411
1411
|
n(this, Fe, (i) => {
|
|
@@ -1417,7 +1417,7 @@ class bi extends HTMLElement {
|
|
|
1417
1417
|
n(this, Me, (i) => {
|
|
1418
1418
|
if (i instanceof PointerEvent) {
|
|
1419
1419
|
if (t(this, x) !== null && i.pointerId === t(this, x)) {
|
|
1420
|
-
e(this, s,
|
|
1420
|
+
e(this, s, ts).call(this, i.pointerId);
|
|
1421
1421
|
return;
|
|
1422
1422
|
}
|
|
1423
1423
|
t(this, P) === null || i.pointerId !== t(this, P) || e(this, s, li).call(this, i.clientX, i.pointerId, !0);
|
|
@@ -1426,49 +1426,49 @@ class bi extends HTMLElement {
|
|
|
1426
1426
|
n(this, Ve, (i) => {
|
|
1427
1427
|
if (i instanceof PointerEvent) {
|
|
1428
1428
|
if (t(this, x) !== null && i.pointerId === t(this, x)) {
|
|
1429
|
-
e(this, s,
|
|
1429
|
+
e(this, s, ts).call(this, i.pointerId);
|
|
1430
1430
|
return;
|
|
1431
1431
|
}
|
|
1432
1432
|
t(this, P) === null || i.pointerId !== t(this, P) || e(this, s, Ks).call(this, i.pointerId);
|
|
1433
1433
|
}
|
|
1434
1434
|
});
|
|
1435
1435
|
n(this, ze, () => {
|
|
1436
|
-
e(this, s,
|
|
1436
|
+
e(this, s, ts).call(this, t(this, x)), e(this, s, Ks).call(this, t(this, P));
|
|
1437
1437
|
});
|
|
1438
1438
|
n(this, Ie, () => {
|
|
1439
|
-
e(this, s, Os).call(this) || e(this, s,
|
|
1439
|
+
e(this, s, Os).call(this) || e(this, s, bs).call(this);
|
|
1440
1440
|
});
|
|
1441
1441
|
n(this, Re, () => {
|
|
1442
|
-
r(this, S, null), e(this, s,
|
|
1442
|
+
r(this, S, null), e(this, s, st).call(this), e(this, s, E).call(this) || e(this, s, k).call(this), e(this, s, C).call(this);
|
|
1443
1443
|
});
|
|
1444
1444
|
n(this, De, () => {
|
|
1445
1445
|
r(this, S, null), e(this, s, E).call(this) || e(this, s, oi).call(this), t(this, z).call(this), e(this, s, C).call(this);
|
|
1446
1446
|
});
|
|
1447
1447
|
n(this, qe, () => {
|
|
1448
|
-
r(this, S, null), e(this, s,
|
|
1448
|
+
r(this, S, null), e(this, s, st).call(this), e(this, s, E).call(this) || e(this, s, k).call(this), e(this, s, C).call(this);
|
|
1449
1449
|
});
|
|
1450
1450
|
n(this, He, () => {
|
|
1451
|
-
e(this, s,
|
|
1451
|
+
e(this, s, Kt).call(this, !0, !0);
|
|
1452
1452
|
});
|
|
1453
|
-
n(this,
|
|
1454
|
-
e(this, s,
|
|
1453
|
+
n(this, ps, () => {
|
|
1454
|
+
e(this, s, Kt).call(this, !0);
|
|
1455
1455
|
});
|
|
1456
1456
|
n(this, Be, () => {
|
|
1457
|
-
e(this, s,
|
|
1457
|
+
e(this, s, st).call(this), r(this, y, !0), t(this, V).call(this), e(this, s, E).call(this) || e(this, s, k).call(this), t(this, z).call(this), e(this, s, I).call(this);
|
|
1458
1458
|
});
|
|
1459
1459
|
n(this, $e, () => {
|
|
1460
1460
|
const i = t(this, _t).call(this);
|
|
1461
1461
|
t(this, V).call(this), i && !e(this, s, E).call(this) && e(this, s, k).call(this), e(this, s, C).call(this);
|
|
1462
1462
|
});
|
|
1463
1463
|
n(this, Ne, () => {
|
|
1464
|
-
if (e(this, s,
|
|
1464
|
+
if (e(this, s, st).call(this), t(this, z).call(this), t(this, _) && (!t(this, gt) || t(this, o).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA)) {
|
|
1465
1465
|
e(this, s, ei).call(this), e(this, s, C).call(this);
|
|
1466
1466
|
return;
|
|
1467
1467
|
}
|
|
1468
1468
|
e(this, s, E).call(this) || e(this, s, k).call(this), e(this, s, I).call(this);
|
|
1469
1469
|
});
|
|
1470
1470
|
n(this, Ue, () => {
|
|
1471
|
-
r(this, S, null), r(this,
|
|
1471
|
+
r(this, S, null), r(this, $, !1), r(this, N, !1), r(this, Z, !1), r(this, K, !1), r(this, G, t(this, G) + 1), t(this, h).classList.remove("has-visible-frame"), e(this, s, Kt).call(this, !0, !0), e(this, s, C).call(this), e(this, s, Pi).call(this);
|
|
1472
1472
|
});
|
|
1473
1473
|
n(this, Ye, () => {
|
|
1474
1474
|
t(this, V).call(this), e(this, s, I).call(this);
|
|
@@ -1555,10 +1555,10 @@ class bi extends HTMLElement {
|
|
|
1555
1555
|
e(this, s, $s).call(this, "fullscreen", i);
|
|
1556
1556
|
}
|
|
1557
1557
|
connectedCallback() {
|
|
1558
|
-
r(this,
|
|
1558
|
+
r(this, h, t(this, b).querySelector("[data-sp-player]")), r(this, o, t(this, b).querySelector("[data-sp-video]")), r(this, Y, 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, j, t(this, b).querySelector("[data-sp-control-tray-slots]")), r(this, Js, t(this, b).querySelector("[data-sp-tray-time]")), r(this, L, t(this, b).querySelector("[data-sp-tray-time-text]")), r(this, es, t(this, b).querySelector("[data-sp-time]")), r(this, ks, t(this, b).querySelector("[data-sp-time-text]")), r(this, w, t(this, b).querySelector("[data-sp-volume-control]")), r(this, O, t(this, b).querySelector("[data-sp-volume-popover]")), r(this, T, t(this, b).querySelector("[data-sp-volume-track]")), r(this, et, t(this, b).querySelector("[data-sp-picture-in-picture-control]")), r(this, it, t(this, b).querySelector("[data-sp-fullscreen-control]")), r(this, rt, [t(this, w), t(this, et), t(this, it)]), e(this, s, We).call(this), t(this, ss) || (e(this, s, vi).call(this), r(this, ss, !0)), e(this, s, ms).call(this), e(this, s, Us).call(this), e(this, s, je).call(this), e(this, s, Ns).call(this), t(this, z).call(this), t(this, V).call(this), t(this, At).call(this), t(this, Wt).call(this), e(this, s, C).call(this);
|
|
1559
1559
|
}
|
|
1560
1560
|
disconnectedCallback() {
|
|
1561
|
-
t(this, H)?.disconnect(), r(this, H, null), t(this, St).forEach((i) => i()), r(this, St, []), r(this,
|
|
1561
|
+
t(this, H)?.disconnect(), r(this, H, null), t(this, St).forEach((i) => i()), r(this, St, []), r(this, ss, !1), e(this, s, U).call(this), e(this, s, Je).call(this), e(this, s, gs).call(this), e(this, s, Ws).call(this), e(this, s, Ft).call(this), e(this, s, ys).call(this), e(this, s, xs).call(this), e(this, s, Qe).call(this), e(this, s, _s).call(this), t(this, h).classList.remove("is-volume-icon-animating"), t(this, j).style.removeProperty("--sp-control-hover-offset"), this.style.removeProperty("--sp-touch-control-hover-offset"), e(this, s, Jt).call(this), r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, W, !1), r(this, ct, !1), r(this, J, !1), r(this, x, null), t(this, w).classList.remove("is-volume-open"), t(this, rt).forEach((i) => i.classList.remove("is-control-tap-active")), t(this, h).classList.remove("is-pointer-active"), e(this, s, Qt).call(this);
|
|
1562
1562
|
}
|
|
1563
1563
|
attributeChangedCallback(i, a, l) {
|
|
1564
1564
|
if (a !== l) {
|
|
@@ -1575,7 +1575,7 @@ class bi extends HTMLElement {
|
|
|
1575
1575
|
return;
|
|
1576
1576
|
}
|
|
1577
1577
|
if ((i === "disable-autoplay" || i === "no-autoplay") && this.isConnected) {
|
|
1578
|
-
e(this, s,
|
|
1578
|
+
e(this, s, ms).call(this), t(this, V).call(this), e(this, s, C).call(this);
|
|
1579
1579
|
return;
|
|
1580
1580
|
}
|
|
1581
1581
|
if (i === "show-time" && this.isConnected) {
|
|
@@ -1586,7 +1586,7 @@ class bi extends HTMLElement {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
|
-
b = new WeakMap(), St = new WeakMap(), H = new WeakMap(),
|
|
1589
|
+
b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), ss = new WeakMap(), B = new WeakMap(), h = new WeakMap(), o = new WeakMap(), Y = new WeakMap(), m = new WeakMap(), X = new WeakMap(), j = new WeakMap(), Js = new WeakMap(), L = new WeakMap(), es = new WeakMap(), ks = new WeakMap(), w = new WeakMap(), O = new WeakMap(), T = new WeakMap(), et = new WeakMap(), it = new WeakMap(), rt = new WeakMap(), vt = new WeakMap(), g = new WeakMap(), R = new WeakMap(), ot = new WeakMap(), F = new WeakMap(), Mt = new WeakMap(), nt = new WeakMap(), Vt = new WeakMap(), _ = new WeakMap(), gt = new WeakMap(), is = new WeakMap(), zt = new WeakMap(), P = new WeakMap(), S = new WeakMap(), rs = new WeakMap(), at = new WeakMap(), yt = new WeakMap(), wt = new WeakMap(), lt = new WeakMap(), Ps = new WeakMap(), os = new WeakMap(), It = new WeakMap(), $ = new WeakMap(), N = new WeakMap(), Z = new WeakMap(), K = new WeakMap(), G = new WeakMap(), Rt = new WeakMap(), xt = new WeakMap(), Ts = new WeakMap(), Dt = new WeakMap(), Es = new WeakMap(), Cs = new WeakMap(), kt = new WeakMap(), D = new WeakMap(), ht = new WeakMap(), qt = new WeakMap(), M = new WeakMap(), y = new WeakMap(), J = new WeakMap(), ns = new WeakMap(), as = new WeakMap(), Ht = new WeakMap(), W = new WeakMap(), ct = new WeakMap(), x = new WeakMap(), Pt = new WeakMap(), Tt = new WeakMap(), Et = new WeakMap(), ls = new WeakMap(), hs = new WeakMap(), Ct = new WeakMap(), Qs = new WeakMap(), te = new WeakMap(), cs = new WeakMap(), se = new WeakMap(), ee = new WeakMap(), As = new WeakMap(), Bt = new WeakMap(), ie = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), ne = new WeakMap(), ae = new WeakMap(), le = new WeakMap(), $t = new WeakMap(), he = new WeakMap(), ce = new WeakMap(), s = new WeakSet(), Bs = function(i, a) {
|
|
1590
1590
|
if (a === "") {
|
|
1591
1591
|
this.removeAttribute(i);
|
|
1592
1592
|
return;
|
|
@@ -1600,7 +1600,7 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), is = new WeakMap(), B
|
|
|
1600
1600
|
this.removeAttribute(`enable-${i}`), this.setAttribute(`disable-${i}`, "");
|
|
1601
1601
|
}, We = function() {
|
|
1602
1602
|
this.style.setProperty("--simple-player-aspect-ratio", this.aspectRatio);
|
|
1603
|
-
},
|
|
1603
|
+
}, ms = function() {
|
|
1604
1604
|
if (!t(this, o)) return;
|
|
1605
1605
|
const i = this.autoplayEnabled;
|
|
1606
1606
|
if (t(this, o).autoplay = i, i) {
|
|
@@ -1609,60 +1609,57 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), is = new WeakMap(), B
|
|
|
1609
1609
|
}
|
|
1610
1610
|
t(this, o).removeAttribute("autoplay"), t(this, B) || (t(this, o).muted = !1, t(this, o).removeAttribute("muted"));
|
|
1611
1611
|
}, je = function() {
|
|
1612
|
-
if (!t(this,
|
|
1612
|
+
if (!t(this, h)) return;
|
|
1613
1613
|
const i = [
|
|
1614
|
-
{ button: t(this,
|
|
1615
|
-
{ button: t(this,
|
|
1616
|
-
{ button: t(this,
|
|
1614
|
+
{ button: t(this, w), enabled: this.volumeEnabled, className: "has-volume-control" },
|
|
1615
|
+
{ button: t(this, et), enabled: this.pictureInPictureEnabled, className: "has-picture-in-picture-control" },
|
|
1616
|
+
{ button: t(this, it), enabled: this.fullscreenEnabled, className: "has-fullscreen-control" }
|
|
1617
1617
|
];
|
|
1618
1618
|
let a = 0;
|
|
1619
1619
|
for (const l of i)
|
|
1620
|
-
t(this,
|
|
1621
|
-
this.style.setProperty("--sp-enabled-controls-count", `${a}`), this.style.setProperty("--sp-control-tray-display", a > 0 ? "block" : "none"), t(this,
|
|
1622
|
-
},
|
|
1620
|
+
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;
|
|
1621
|
+
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, us).call(this), e(this, s, js).call(this, t(this, x)), r(this, W, !1), r(this, ct, !1), t(this, O).classList.remove("is-scrubbing-volume")), t(this, j).style.removeProperty("--sp-control-hover-offset");
|
|
1622
|
+
}, jt = function() {
|
|
1623
1623
|
return this.timeVisible && this.controlsEnabled;
|
|
1624
1624
|
}, Ns = function() {
|
|
1625
|
-
t(this,
|
|
1625
|
+
t(this, h) && (t(this, h).classList.toggle("has-pinned-time", t(this, s, jt)), t(this, s, jt) && e(this, s, Gt).call(this));
|
|
1626
1626
|
}, vi = function() {
|
|
1627
|
-
e(this, s,
|
|
1628
|
-
for (const i of t(this,
|
|
1629
|
-
e(this, s,
|
|
1627
|
+
e(this, s, c).call(this, t(this, Y), "click", t(this, fe)), e(this, s, c).call(this, this, "pointerenter", t(this, Ut)), e(this, s, c).call(this, this, "pointermove", t(this, Yt)), e(this, s, c).call(this, this, "pointerleave", t(this, Xt)), e(this, s, c).call(this, this, "mouseenter", t(this, Ut)), e(this, s, c).call(this, this, "mousemove", t(this, Yt)), e(this, s, c).call(this, this, "mouseleave", t(this, Xt)), e(this, s, c).call(this, t(this, h), "pointerenter", t(this, Ut)), e(this, s, c).call(this, t(this, h), "pointermove", t(this, Yt)), e(this, s, c).call(this, t(this, h), "pointerleave", t(this, Xt)), e(this, s, c).call(this, t(this, h), "mouseenter", t(this, Ut)), e(this, s, c).call(this, t(this, h), "mousemove", t(this, Yt)), e(this, s, c).call(this, t(this, h), "mouseleave", t(this, Xt)), e(this, s, c).call(this, t(this, Y), "pointerenter", t(this, ut)), e(this, s, c).call(this, t(this, Y), "pointerleave", t(this, pt)), e(this, s, c).call(this, t(this, Y), "mouseenter", t(this, ut)), e(this, s, c).call(this, t(this, Y), "mouseleave", t(this, pt)), e(this, s, c).call(this, t(this, m), "pointerenter", t(this, ut)), e(this, s, c).call(this, t(this, m), "pointerleave", t(this, pt)), e(this, s, c).call(this, t(this, m), "mouseenter", t(this, ut)), e(this, s, c).call(this, t(this, m), "mouseleave", t(this, pt)), e(this, s, c).call(this, t(this, m), "pointerenter", t(this, Ds)), e(this, s, c).call(this, t(this, m), "pointerleave", t(this, qs)), e(this, s, c).call(this, t(this, m), "mouseenter", t(this, Ds)), e(this, s, c).call(this, t(this, m), "mouseleave", t(this, qs)), e(this, s, c).call(this, t(this, X), "pointerenter", t(this, ut)), e(this, s, c).call(this, t(this, X), "pointerleave", t(this, pt)), e(this, s, c).call(this, t(this, X), "mouseenter", t(this, ut)), e(this, s, c).call(this, t(this, X), "mouseleave", t(this, pt)), e(this, s, c).call(this, t(this, b), "focusin", t(this, Fs)), e(this, s, c).call(this, t(this, b), "focusout", t(this, pe)), e(this, s, c).call(this, t(this, h), "pointerdown", t(this, be)), e(this, s, c).call(this, t(this, h), "dragstart", t(this, Nt)), e(this, s, c).call(this, t(this, h), "selectstart", t(this, Nt)), e(this, s, c).call(this, t(this, o), "dragstart", t(this, Nt)), e(this, s, c).call(this, t(this, o), "selectstart", t(this, Nt)), e(this, s, c).call(this, t(this, m), "pointerdown", t(this, Ce)), e(this, s, c).call(this, t(this, m), "pointermove", t(this, Le)), e(this, s, c).call(this, t(this, m), "pointerup", t(this, Fe)), e(this, s, c).call(this, t(this, m), "pointercancel", t(this, Se)), e(this, s, c).call(this, t(this, m), "keydown", t(this, Ae)), e(this, s, c).call(this, t(this, w), "pointerenter", t(this, Is)), e(this, s, c).call(this, t(this, w), "pointerleave", t(this, Rs)), e(this, s, c).call(this, t(this, w), "click", t(this, ge)), e(this, s, c).call(this, t(this, O), "pointerenter", t(this, Is)), e(this, s, c).call(this, t(this, O), "pointerleave", t(this, Rs)), e(this, s, c).call(this, t(this, T), "pointerdown", t(this, ye)), e(this, s, c).call(this, t(this, T), "pointermove", t(this, we)), e(this, s, c).call(this, t(this, T), "pointerup", t(this, xe)), e(this, s, c).call(this, t(this, T), "pointercancel", t(this, ke)), e(this, s, c).call(this, t(this, T), "click", t(this, ve)), e(this, s, c).call(this, t(this, T), "keydown", t(this, Pe)), e(this, s, c).call(this, t(this, et), "click", t(this, Te)), e(this, s, c).call(this, t(this, it), "click", t(this, Ee)), e(this, s, c).call(this, t(this, L), "click", t(this, me));
|
|
1628
|
+
for (const i of t(this, rt))
|
|
1629
|
+
e(this, s, c).call(this, i, "pointerenter", t(this, Ss)), e(this, s, c).call(this, i, "mouseenter", t(this, Ss)), e(this, s, c).call(this, i, "pointerdown", t(this, de));
|
|
1630
1630
|
"ResizeObserver" in window && (r(this, It, new ResizeObserver(() => {
|
|
1631
|
-
t(this,
|
|
1631
|
+
t(this, h).style.setProperty("--sp-tray-time-width", `${t(this, L).offsetWidth + 4}px`);
|
|
1632
1632
|
})), t(this, It).observe(t(this, L)), t(this, St).push(() => {
|
|
1633
1633
|
t(this, It)?.disconnect(), r(this, It, null);
|
|
1634
|
-
}));
|
|
1635
|
-
|
|
1636
|
-
e(this, s, h).call(this, i, "pointerdown", t(this, de));
|
|
1637
|
-
e(this, s, h).call(this, document, "pointerup", t(this, Me)), e(this, s, h).call(this, document, "pointercancel", t(this, Ve)), e(this, s, h).call(this, document, "pointermove", t(this, Ss)), e(this, s, h).call(this, document, "mousemove", t(this, Ss)), e(this, s, h).call(this, document, "fullscreenchange", t(this, Lt)), e(this, s, h).call(this, document, "webkitfullscreenchange", t(this, Lt)), e(this, s, h).call(this, document, "mozfullscreenchange", t(this, Lt)), e(this, s, h).call(this, document, "MSFullscreenChange", t(this, Lt)), e(this, s, h).call(this, t(this, b), "fullscreenchange", t(this, Lt)), e(this, s, h).call(this, window, "blur", t(this, ze)), e(this, s, h).call(this, window, "focus", t(this, Ie)), e(this, s, h).call(this, t(this, o), "play", t(this, Re)), e(this, s, h).call(this, t(this, o), "pause", t(this, De)), e(this, s, h).call(this, t(this, o), "ended", t(this, qe)), e(this, s, h).call(this, t(this, o), "loadstart", t(this, He)), e(this, s, h).call(this, t(this, o), "waiting", t(this, ms)), e(this, s, h).call(this, t(this, o), "stalled", t(this, ms)), e(this, s, h).call(this, t(this, o), "seeking", t(this, ms)), e(this, s, h).call(this, t(this, o), "loadeddata", t(this, _t)), e(this, s, h).call(this, t(this, o), "loadedmetadata", t(this, Be)), e(this, s, h).call(this, t(this, o), "canplay", t(this, _t)), e(this, s, h).call(this, t(this, o), "canplaythrough", t(this, _t)), e(this, s, h).call(this, t(this, o), "playing", t(this, $e)), e(this, s, h).call(this, t(this, o), "seeked", t(this, Ne)), e(this, s, h).call(this, t(this, o), "error", t(this, Ue)), e(this, s, h).call(this, t(this, o), "progress", t(this, z)), e(this, s, h).call(this, t(this, o), "suspend", t(this, z)), e(this, s, h).call(this, t(this, o), "timeupdate", t(this, Ye)), e(this, s, h).call(this, t(this, o), "volumechange", t(this, Xe)), e(this, s, h).call(this, t(this, o), "enterpictureinpicture", t(this, At)), e(this, s, h).call(this, t(this, o), "leavepictureinpicture", t(this, At));
|
|
1638
|
-
}, h = function(i, a, l) {
|
|
1634
|
+
})), e(this, s, c).call(this, document, "pointerup", t(this, Me)), e(this, s, c).call(this, document, "pointercancel", t(this, Ve)), e(this, s, c).call(this, document, "pointermove", t(this, Ls)), e(this, s, c).call(this, document, "mousemove", t(this, Ls)), e(this, s, c).call(this, document, "fullscreenchange", t(this, Lt)), e(this, s, c).call(this, document, "webkitfullscreenchange", t(this, Lt)), e(this, s, c).call(this, document, "mozfullscreenchange", t(this, Lt)), e(this, s, c).call(this, document, "MSFullscreenChange", t(this, Lt)), e(this, s, c).call(this, t(this, b), "fullscreenchange", t(this, Lt)), e(this, s, c).call(this, window, "blur", t(this, ze)), e(this, s, c).call(this, window, "focus", t(this, Ie)), e(this, s, c).call(this, t(this, o), "play", t(this, Re)), e(this, s, c).call(this, t(this, o), "pause", t(this, De)), e(this, s, c).call(this, t(this, o), "ended", t(this, qe)), e(this, s, c).call(this, t(this, o), "loadstart", t(this, He)), e(this, s, c).call(this, t(this, o), "waiting", t(this, ps)), e(this, s, c).call(this, t(this, o), "stalled", t(this, ps)), e(this, s, c).call(this, t(this, o), "seeking", t(this, ps)), e(this, s, c).call(this, t(this, o), "loadeddata", t(this, _t)), e(this, s, c).call(this, t(this, o), "loadedmetadata", t(this, Be)), e(this, s, c).call(this, t(this, o), "canplay", t(this, _t)), e(this, s, c).call(this, t(this, o), "canplaythrough", t(this, _t)), e(this, s, c).call(this, t(this, o), "playing", t(this, $e)), e(this, s, c).call(this, t(this, o), "seeked", t(this, Ne)), e(this, s, c).call(this, t(this, o), "error", t(this, Ue)), e(this, s, c).call(this, t(this, o), "progress", t(this, z)), e(this, s, c).call(this, t(this, o), "suspend", t(this, z)), e(this, s, c).call(this, t(this, o), "timeupdate", t(this, Ye)), e(this, s, c).call(this, t(this, o), "volumechange", t(this, Xe)), e(this, s, c).call(this, t(this, o), "enterpictureinpicture", t(this, At)), e(this, s, c).call(this, t(this, o), "leavepictureinpicture", t(this, At));
|
|
1635
|
+
}, c = function(i, a, l) {
|
|
1639
1636
|
i.addEventListener(a, l), t(this, St).push(() => i.removeEventListener(a, l));
|
|
1640
1637
|
}, Us = function() {
|
|
1641
1638
|
if (!(!this.src || t(this, B))) {
|
|
1642
1639
|
if (t(this, H)?.disconnect(), t(this, o).dataset.src = this.src, "IntersectionObserver" in window) {
|
|
1643
1640
|
r(this, H, new IntersectionObserver((i, a) => {
|
|
1644
1641
|
i.some((l) => l.isIntersecting) && (a.disconnect(), r(this, H, null), e(this, s, dt).call(this));
|
|
1645
|
-
}, { rootMargin: this.preloadMargin })), t(this, H).observe(t(this,
|
|
1642
|
+
}, { rootMargin: this.preloadMargin })), t(this, H).observe(t(this, h));
|
|
1646
1643
|
return;
|
|
1647
1644
|
}
|
|
1648
1645
|
e(this, s, dt).call(this);
|
|
1649
1646
|
}
|
|
1650
|
-
}, Nt = new WeakMap(),
|
|
1647
|
+
}, Nt = new WeakMap(), U = function() {
|
|
1651
1648
|
t(this, yt) && (window.clearTimeout(t(this, yt)), r(this, yt, 0));
|
|
1652
|
-
}, ue = new WeakMap(),
|
|
1653
|
-
e(this, s,
|
|
1649
|
+
}, ue = new WeakMap(), fs = function(i = e(this, s, A).call(this) ? t(this, As) : t(this, Bt)) {
|
|
1650
|
+
e(this, s, U).call(this), r(this, yt, window.setTimeout(t(this, ue), i));
|
|
1651
|
+
}, Q = function() {
|
|
1652
|
+
e(this, s, A).call(this) && e(this, s, fs).call(this, t(this, As));
|
|
1654
1653
|
}, tt = function() {
|
|
1655
|
-
e(this, s, A).call(this) && e(this, s, vs).call(this, t(this, Fs));
|
|
1656
|
-
}, st = function() {
|
|
1657
1654
|
if (!e(this, s, A).call(this)) return !1;
|
|
1658
|
-
const i = t(this,
|
|
1659
|
-
return t(this,
|
|
1655
|
+
const i = t(this, h).classList.contains("is-controls-visible");
|
|
1656
|
+
return t(this, h).classList.add("is-controls-visible"), e(this, s, Q).call(this), !i;
|
|
1660
1657
|
}, Ys = function(i = !1) {
|
|
1661
|
-
!i && e(this, s, A).call(this) || (t(this,
|
|
1662
|
-
},
|
|
1663
|
-
r(this,
|
|
1664
|
-
},
|
|
1665
|
-
return i instanceof PointerEvent ? (r(this, Ht, i.pointerType === "touch"), t(this, Ht) ? !1 : (r(this,
|
|
1658
|
+
!i && e(this, s, A).call(this) || (t(this, h).classList.add("is-pointer-active"), t(this, J) ? e(this, s, U).call(this) : e(this, s, fs).call(this, i ? t(this, Bt) : void 0));
|
|
1659
|
+
}, bs = function() {
|
|
1660
|
+
r(this, J, !1), e(this, s, U).call(this), t(this, h).classList.remove("is-pointer-active");
|
|
1661
|
+
}, Ot = function(i) {
|
|
1662
|
+
return i instanceof PointerEvent ? (r(this, Ht, i.pointerType === "touch"), t(this, Ht) ? !1 : (r(this, ns, i.clientX), r(this, as, i.clientY), !0)) : i instanceof MouseEvent ? (r(this, Ht, !1), r(this, ns, i.clientX), r(this, as, i.clientY), !0) : !1;
|
|
1666
1663
|
}, gi = function(i, a) {
|
|
1667
1664
|
if (i === null || a === null || i < 0 || a < 0 || i > window.innerWidth || a > window.innerHeight) return !1;
|
|
1668
1665
|
const l = this.getBoundingClientRect();
|
|
@@ -1672,48 +1669,48 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), is = new WeakMap(), B
|
|
|
1672
1669
|
const u = i.getBoundingClientRect();
|
|
1673
1670
|
return u.width <= 0 || u.height <= 0 ? !1 : a >= u.left && a <= u.right && l >= u.top && l <= u.bottom;
|
|
1674
1671
|
}, Ze = function() {
|
|
1675
|
-
t(this, M) && (r(this, M, !1), t(this,
|
|
1672
|
+
t(this, M) && (r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), e(this, s, Jt).call(this), e(this, s, Gt).call(this));
|
|
1676
1673
|
}, Ke = function(i, a) {
|
|
1677
1674
|
if (e(this, s, A).call(this)) return;
|
|
1678
|
-
!e(this, s, E).call(this) && e(this, s, Oe).call(this, t(this, m), i, a) ? (r(this, M, !0), t(this,
|
|
1679
|
-
const l = t(this,
|
|
1675
|
+
!e(this, s, E).call(this) && e(this, s, Oe).call(this, t(this, m), i, a) ? (r(this, M, !0), t(this, h).classList.add("is-progress-hovering"), e(this, s, bt).call(this, i, !1, !1)) : e(this, s, E).call(this) || e(this, s, Ze).call(this);
|
|
1676
|
+
const l = t(this, rt).find((f) => !f.hidden && !e(this, s, Xs).call(this, f) && e(this, s, Oe).call(this, f, i, a)) ?? null;
|
|
1680
1677
|
if (!l) return;
|
|
1681
1678
|
const u = Number(l.dataset.spControlIndex ?? 0);
|
|
1682
|
-
t(this,
|
|
1683
|
-
},
|
|
1684
|
-
return t(this,
|
|
1685
|
-
},
|
|
1686
|
-
return e(this, s, A).call(this) && performance.now() < t(this,
|
|
1679
|
+
t(this, j).style.setProperty("--sp-control-hover-offset", `calc(var(--sp-control-slot-size) * ${u})`);
|
|
1680
|
+
}, Zt = function() {
|
|
1681
|
+
return t(this, h).classList.contains("is-controls-visible") || t(this, h).classList.contains("is-pointer-active") || t(this, b).activeElement instanceof HTMLElement;
|
|
1682
|
+
}, vs = function() {
|
|
1683
|
+
return e(this, s, A).call(this) && performance.now() < t(this, os);
|
|
1687
1684
|
}, Xs = function(i) {
|
|
1688
|
-
return i instanceof HTMLButtonElement && (i.disabled || i === t(this,
|
|
1685
|
+
return i instanceof HTMLButtonElement && (i.disabled || i === t(this, w) && (!this.volumeEnabled || !t(this, y)));
|
|
1689
1686
|
}, Ge = function() {
|
|
1690
|
-
if (!t(this, Ht) && e(this, s, gi).call(this, t(this,
|
|
1687
|
+
if (!t(this, Ht) && e(this, s, gi).call(this, t(this, ns), t(this, as))) {
|
|
1691
1688
|
e(this, s, Ys).call(this, !0);
|
|
1692
1689
|
return;
|
|
1693
1690
|
}
|
|
1694
|
-
e(this, s,
|
|
1695
|
-
}, Ut = new WeakMap(), Yt = new WeakMap(),
|
|
1691
|
+
e(this, s, bs).call(this);
|
|
1692
|
+
}, Ut = new WeakMap(), Yt = new WeakMap(), Ls = new WeakMap(), Xt = new WeakMap(), ut = new WeakMap(), pt = new WeakMap(), Fs = new WeakMap(), pe = new WeakMap(), Ss = new WeakMap(), _s = function() {
|
|
1696
1693
|
t(this, Et) && (window.clearTimeout(t(this, Et)), r(this, Et, 0));
|
|
1697
|
-
},
|
|
1694
|
+
}, Ms = new WeakMap(), de = new WeakMap(), Je = function() {
|
|
1698
1695
|
t(this, wt) && (window.clearTimeout(t(this, wt)), r(this, wt, 0));
|
|
1699
|
-
},
|
|
1696
|
+
}, gs = function() {
|
|
1700
1697
|
t(this, at) && (window.clearTimeout(t(this, at)), r(this, at, 0));
|
|
1701
1698
|
}, Ws = function() {
|
|
1702
1699
|
t(this, lt) && (window.clearTimeout(t(this, lt)), r(this, lt, 0));
|
|
1703
|
-
},
|
|
1700
|
+
}, ys = function() {
|
|
1704
1701
|
t(this, Rt) && (window.clearTimeout(t(this, Rt)), r(this, Rt, 0));
|
|
1705
1702
|
}, Qe = function() {
|
|
1706
1703
|
t(this, Tt) && (window.clearTimeout(t(this, Tt)), r(this, Tt, 0));
|
|
1707
1704
|
}, yi = function() {
|
|
1708
|
-
e(this, s, Qe).call(this), t(this,
|
|
1709
|
-
r(this, Tt, 0), t(this,
|
|
1705
|
+
e(this, s, Qe).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, Tt, window.setTimeout(() => {
|
|
1706
|
+
r(this, Tt, 0), t(this, h).classList.remove("is-volume-icon-animating");
|
|
1710
1707
|
}, 240));
|
|
1711
|
-
},
|
|
1712
|
-
t(this, xt) || t(this, lt) || (t(this,
|
|
1708
|
+
}, Vs = new WeakMap(), wi = function() {
|
|
1709
|
+
t(this, xt) || t(this, lt) || (t(this, h).classList.add("is-progress-settling"), e(this, s, ft).call(this, 0), r(this, lt, window.setTimeout(t(this, Vs), t(this, re))));
|
|
1713
1710
|
}, dt = async function() {
|
|
1714
1711
|
if (t(this, B)) return;
|
|
1715
1712
|
const i = t(this, o).dataset.src || this.src;
|
|
1716
|
-
i && (e(this, s,
|
|
1713
|
+
i && (e(this, s, gs).call(this), e(this, s, ys).call(this), r(this, rs, t(this, rs) + 1), r(this, B, !0), r(this, $, !1), r(this, N, !1), r(this, Z, !1), r(this, K, !1), r(this, G, t(this, G) + 1), t(this, h).classList.remove("has-visible-frame"), e(this, s, ms).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(() => {
|
|
1717
1714
|
}));
|
|
1718
1715
|
}, ti = function() {
|
|
1719
1716
|
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;
|
|
@@ -1731,49 +1728,49 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), is = new WeakMap(), B
|
|
|
1731
1728
|
}
|
|
1732
1729
|
return 0;
|
|
1733
1730
|
}, si = function(i = t(this, le)) {
|
|
1734
|
-
if (!t(this, B) || t(this, o).error || !t(this,
|
|
1731
|
+
if (!t(this, B) || 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;
|
|
1735
1732
|
const a = Math.max(0, t(this, o).duration - t(this, o).currentTime), l = Math.min(i, a);
|
|
1736
1733
|
return l <= t(this, $t) || e(this, s, xi).call(this) + t(this, $t) >= l;
|
|
1737
|
-
},
|
|
1734
|
+
}, Kt = function(i, a = !1) {
|
|
1738
1735
|
e(this, s, Je).call(this);
|
|
1739
|
-
const l = i && !e(this, s, ti).call(this) && !e(this, s, si).call(this), f = i && !t(this,
|
|
1736
|
+
const l = i && !e(this, s, ti).call(this) && !e(this, s, si).call(this), f = i && !t(this, N) || l;
|
|
1740
1737
|
if (r(this, Dt, f), !f) {
|
|
1741
|
-
t(this,
|
|
1738
|
+
t(this, h).classList.remove("is-loading");
|
|
1742
1739
|
return;
|
|
1743
1740
|
}
|
|
1744
1741
|
if (a) {
|
|
1745
|
-
t(this,
|
|
1742
|
+
t(this, h).classList.add("is-loading");
|
|
1746
1743
|
return;
|
|
1747
1744
|
}
|
|
1748
1745
|
r(this, wt, window.setTimeout(() => {
|
|
1749
|
-
if (r(this, wt, 0), !t(this,
|
|
1750
|
-
r(this, Dt, !0), t(this,
|
|
1746
|
+
if (r(this, wt, 0), !t(this, N) || !e(this, s, ti).call(this) && !e(this, s, si).call(this)) {
|
|
1747
|
+
r(this, Dt, !0), t(this, h).classList.add("is-loading");
|
|
1751
1748
|
return;
|
|
1752
1749
|
}
|
|
1753
|
-
r(this, Dt, !1), t(this,
|
|
1750
|
+
r(this, Dt, !1), t(this, h).classList.remove("is-loading");
|
|
1754
1751
|
}, t(this, ie)));
|
|
1755
1752
|
}, z = new WeakMap(), ki = function() {
|
|
1756
|
-
return t(this, B) && !t(this, o).error && t(this,
|
|
1753
|
+
return t(this, B) && !t(this, o).error && t(this, $) && (t(this, o).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA || t(this, o).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && !t(this, h).classList.contains("is-loading"));
|
|
1757
1754
|
}, E = function() {
|
|
1758
|
-
return t(this, R) || t(this,
|
|
1755
|
+
return t(this, R) || t(this, g) || t(this, _);
|
|
1759
1756
|
}, Pi = function() {
|
|
1760
|
-
t(this,
|
|
1761
|
-
r(this, at, 0), e(this, s,
|
|
1757
|
+
t(this, rs) >= t(this, ae) || t(this, at) || r(this, at, window.setTimeout(() => {
|
|
1758
|
+
r(this, at, 0), e(this, s, ys).call(this), r(this, B, !1), r(this, $, !1), r(this, N, !1), r(this, Z, !1), r(this, K, !1), r(this, G, t(this, G) + 1), t(this, h).classList.remove("has-visible-frame"), t(this, h).classList.contains("has-loaded-once") || e(this, s, ft).call(this, 0), t(this, o).removeAttribute("src"), t(this, o).load(), e(this, s, dt).call(this);
|
|
1762
1759
|
}, t(this, ne)));
|
|
1763
1760
|
}, ei = function() {
|
|
1764
|
-
return t(this,
|
|
1761
|
+
return t(this, _) ? (r(this, _, !1), r(this, gt, !1), e(this, s, k).call(this), e(this, s, I).call(this), !0) : !1;
|
|
1765
1762
|
}, ii = function() {
|
|
1766
|
-
return e(this, s,
|
|
1763
|
+
return e(this, s, gs).call(this), !t(this, h).classList.contains("has-loaded-once") && e(this, s, wi).call(this), t(this, h).classList.add("has-loaded-once"), t(this, h).classList.add("has-visible-frame"), t(this, z).call(this), r(this, S, null), t(this, _) ? (e(this, s, ei).call(this), !0) : (e(this, s, E).call(this) || e(this, s, k).call(this), e(this, s, I).call(this), !0);
|
|
1767
1764
|
}, Ti = function() {
|
|
1768
|
-
if (t(this,
|
|
1769
|
-
r(this,
|
|
1770
|
-
const i = t(this,
|
|
1771
|
-
if (i === t(this,
|
|
1772
|
-
if (e(this, s,
|
|
1773
|
-
if (t(this,
|
|
1774
|
-
r(this,
|
|
1765
|
+
if (t(this, $) || t(this, Z) || t(this, o).error) return;
|
|
1766
|
+
r(this, Z, !0);
|
|
1767
|
+
const i = t(this, G), a = () => {
|
|
1768
|
+
if (i === t(this, G)) {
|
|
1769
|
+
if (e(this, s, ys).call(this), r(this, Z, !1), r(this, $, !t(this, o).error && t(this, o).readyState >= HTMLMediaElement.HAVE_CURRENT_DATA && t(this, o).videoWidth > 0 && t(this, o).videoHeight > 0), t(this, $)) {
|
|
1770
|
+
if (t(this, K) || t(this, N)) return;
|
|
1771
|
+
r(this, K, !0), window.requestAnimationFrame(() => {
|
|
1775
1772
|
window.requestAnimationFrame(() => {
|
|
1776
|
-
i === t(this,
|
|
1773
|
+
i === t(this, G) && (r(this, K, !1), r(this, N, !0), e(this, s, ii).call(this), e(this, s, C).call(this));
|
|
1777
1774
|
});
|
|
1778
1775
|
}), e(this, s, C).call(this);
|
|
1779
1776
|
return;
|
|
@@ -1789,8 +1786,8 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), is = new WeakMap(), B
|
|
|
1789
1786
|
}, _t = new WeakMap(), ri = function() {
|
|
1790
1787
|
return !t(this, o).paused && (!t(this, o).ended || t(this, o).loop) && t(this, o).readyState >= HTMLMediaElement.HAVE_FUTURE_DATA;
|
|
1791
1788
|
}, k = function(i = t(this, o).currentTime) {
|
|
1792
|
-
r(this,
|
|
1793
|
-
},
|
|
1789
|
+
r(this, Es, Number.isFinite(i) ? Math.max(0, i) : 0), r(this, Cs, performance.now());
|
|
1790
|
+
}, st = function() {
|
|
1794
1791
|
r(this, D, null), r(this, ht, null);
|
|
1795
1792
|
}, oi = function() {
|
|
1796
1793
|
if (!Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0) {
|
|
@@ -1804,7 +1801,7 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), is = new WeakMap(), B
|
|
|
1804
1801
|
r(this, ht, null), e(this, s, oi).call(this);
|
|
1805
1802
|
return;
|
|
1806
1803
|
}
|
|
1807
|
-
const i = t(this,
|
|
1804
|
+
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, mt).call(this), f = Math.min(1, Math.max(0, u / t(this, o).duration)), v = Math.max(l ?? 0, f);
|
|
1808
1805
|
r(this, ht, v), r(this, D, v * t(this, o).duration), e(this, s, k).call(this, t(this, D)), e(this, s, ft).call(this, v), t(this, m).setAttribute("aria-valuenow", `${t(this, D)}`), t(this, m).setAttribute(
|
|
1809
1806
|
"aria-valuetext",
|
|
1810
1807
|
`${q(t(this, D))} of ${q(t(this, o).duration)}`
|
|
@@ -1814,42 +1811,42 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), is = new WeakMap(), B
|
|
|
1814
1811
|
if (e(this, s, E).call(this)) return t(this, F);
|
|
1815
1812
|
if (t(this, D) !== null) return t(this, D);
|
|
1816
1813
|
if (!e(this, s, ri).call(this)) return t(this, o).currentTime || 0;
|
|
1817
|
-
if (t(this, Dt) || !t(this, xt) || performance.now() < t(this,
|
|
1814
|
+
if (t(this, Dt) || !t(this, xt) || performance.now() < t(this, Ts))
|
|
1818
1815
|
return e(this, s, k).call(this), t(this, o).currentTime || 0;
|
|
1819
|
-
if (t(this,
|
|
1816
|
+
if (t(this, h).classList.contains("is-loading") && t(this, o).readyState < HTMLMediaElement.HAVE_FUTURE_DATA)
|
|
1820
1817
|
return e(this, s, k).call(this), t(this, o).currentTime || 0;
|
|
1821
|
-
const i = (performance.now() - t(this,
|
|
1818
|
+
const i = (performance.now() - t(this, Cs)) / 1e3, a = t(this, Es) + i, l = t(this, o).loop ? a % t(this, o).duration : Math.min(a, t(this, o).duration);
|
|
1822
1819
|
return !t(this, o).loop && t(this, o).currentTime - l > 0.45 ? (e(this, s, k).call(this), t(this, o).currentTime) : l;
|
|
1823
1820
|
}, ft = function(i) {
|
|
1824
|
-
const a = Math.min(1, Math.max(0, i)), l = (1 - a) * 100, { innerWidth: u } = e(this, s, Ai).call(this), f = 1 / u, v = t(this,
|
|
1825
|
-
if (t(this,
|
|
1826
|
-
const Hs = e(this, s,
|
|
1827
|
-
t(this,
|
|
1821
|
+
const a = Math.min(1, Math.max(0, i)), l = (1 - a) * 100, { innerWidth: u } = e(this, s, Ai).call(this), f = 1 / u, v = t(this, g) && t(this, Vt) && t(this, nt) + f < a;
|
|
1822
|
+
if (t(this, h).style.setProperty("--sp-progress-inset", `${l}%`), t(this, h).style.setProperty("--sp-return-marker-base-opacity", v ? "0" : "1"), v) {
|
|
1823
|
+
const Hs = e(this, s, ws).call(this, t(this, nt)), ds = Math.max(0, u - 2), Ni = Math.min(ds, Math.max(0, Hs - 3));
|
|
1824
|
+
t(this, h).style.setProperty("--sp-return-marker-hole-left", `${Ni}px`);
|
|
1828
1825
|
} else
|
|
1829
|
-
t(this,
|
|
1826
|
+
t(this, h).style.setProperty("--sp-return-marker-hole-left", "-9999px");
|
|
1830
1827
|
}, Ci = function(i) {
|
|
1831
1828
|
return !Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0 ? 0 : Math.min(1, Math.max(0, i / t(this, o).duration));
|
|
1832
1829
|
}, Ai = function(i = t(this, m).getBoundingClientRect()) {
|
|
1833
1830
|
return ui(i);
|
|
1834
|
-
},
|
|
1831
|
+
}, ws = function(i, a = t(this, m).getBoundingClientRect()) {
|
|
1835
1832
|
return Qi(i, a);
|
|
1836
1833
|
}, Li = function(i, a) {
|
|
1837
1834
|
return tr(i, a);
|
|
1838
1835
|
}, Fi = function(i) {
|
|
1839
1836
|
r(this, Mt, Number.isFinite(i) ? Math.max(0, i) : 0), r(this, nt, e(this, s, Ci).call(this, t(this, Mt)));
|
|
1840
|
-
const a = t(this, m).getBoundingClientRect(), l = e(this, s,
|
|
1841
|
-
r(this, Vt, t(this, Mt) > t(this, se) && u), t(this,
|
|
1842
|
-
}, Si = function(i, a, l, u = t(this,
|
|
1837
|
+
const a = t(this, m).getBoundingClientRect(), l = e(this, s, ws).call(this, t(this, nt), a), u = l >= t(this, cs) && l <= Math.max(t(this, cs), a.width - t(this, cs));
|
|
1838
|
+
r(this, Vt, t(this, Mt) > t(this, se) && u), t(this, h).classList.toggle("has-return-marker", t(this, Vt)), t(this, h).style.setProperty("--sp-return-marker-left", `${l}px`);
|
|
1839
|
+
}, Si = function(i, a, l, u = t(this, g)) {
|
|
1843
1840
|
const f = l * t(this, o).duration;
|
|
1844
1841
|
if (!u || !t(this, Vt))
|
|
1845
1842
|
return { percent: l, targetTime: f };
|
|
1846
|
-
const v = a.left + e(this, s,
|
|
1843
|
+
const v = a.left + e(this, s, ws).call(this, t(this, nt), a);
|
|
1847
1844
|
return Math.abs(i - v) <= t(this, te) ? {
|
|
1848
1845
|
percent: t(this, nt),
|
|
1849
1846
|
targetTime: t(this, Mt)
|
|
1850
1847
|
} : { percent: l, targetTime: f };
|
|
1851
|
-
},
|
|
1852
|
-
!t(this, s,
|
|
1848
|
+
}, Gt = function(i = e(this, s, mt).call(this)) {
|
|
1849
|
+
!t(this, s, jt) || t(this, M) || e(this, s, E).call(this) || (t(this, L).textContent = e(this, s, Gs).call(this, i));
|
|
1853
1850
|
}, I = function(i = e(this, s, mt).call(this)) {
|
|
1854
1851
|
const a = Number.isFinite(t(this, o).duration) && t(this, o).duration > 0;
|
|
1855
1852
|
if (a && t(this, ht) !== null) {
|
|
@@ -1857,81 +1854,81 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), is = new WeakMap(), B
|
|
|
1857
1854
|
r(this, kt, f), e(this, s, ft).call(this, t(this, ht)), t(this, m).setAttribute("aria-valuemin", "0"), t(this, m).setAttribute("aria-valuemax", `${t(this, o).duration}`), t(this, m).setAttribute("aria-valuenow", `${f}`), t(this, m).setAttribute(
|
|
1858
1855
|
"aria-valuetext",
|
|
1859
1856
|
`${q(f)} of ${q(t(this, o).duration)}`
|
|
1860
|
-
), e(this, s,
|
|
1857
|
+
), e(this, s, Gt).call(this, f);
|
|
1861
1858
|
return;
|
|
1862
1859
|
}
|
|
1863
1860
|
const l = a ? Math.min(t(this, o).duration, Math.max(0, i)) : i, u = a ? l / t(this, o).duration : 0;
|
|
1864
1861
|
r(this, kt, Number.isFinite(l) ? Math.max(0, l) : 0), e(this, s, ft).call(this, u), t(this, m).setAttribute("aria-valuemin", "0"), t(this, m).setAttribute("aria-valuemax", a ? `${t(this, o).duration}` : "0"), t(this, m).setAttribute("aria-valuenow", a ? `${l}` : "0"), t(this, m).setAttribute(
|
|
1865
1862
|
"aria-valuetext",
|
|
1866
1863
|
a ? `${q(l)} of ${q(t(this, o).duration)}` : "Loading video"
|
|
1867
|
-
), e(this, s,
|
|
1868
|
-
}, bt = function(i, a = t(this,
|
|
1864
|
+
), e(this, s, Gt).call(this, l);
|
|
1865
|
+
}, bt = function(i, a = t(this, g), l = !0) {
|
|
1869
1866
|
if (!Number.isFinite(t(this, o).duration) || t(this, o).duration <= 0) return t(this, o).currentTime;
|
|
1870
1867
|
const u = t(this, m).getBoundingClientRect(), f = e(this, s, Li).call(this, i, u), v = e(this, s, Si).call(this, i, u, f, a);
|
|
1871
|
-
return l && e(this, s, ft).call(this, v.percent), t(this, s,
|
|
1868
|
+
return l && e(this, s, ft).call(this, v.percent), t(this, s, jt) || t(this, h).style.setProperty("--sp-scrub-preview-left", `${e(this, s, ws).call(this, v.percent, u)}px`), t(this, ks).textContent = q(v.targetTime), t(this, L).textContent = e(this, s, Gs).call(this, v.targetTime), l && (t(this, m).setAttribute("aria-valuenow", `${v.targetTime}`), t(this, m).setAttribute(
|
|
1872
1869
|
"aria-valuetext",
|
|
1873
1870
|
`${q(v.targetTime)} of ${q(t(this, o).duration)}`
|
|
1874
1871
|
)), e(this, s, Mi).call(this), v.targetTime;
|
|
1875
|
-
},
|
|
1876
|
-
r(this, qt, !1), t(this,
|
|
1872
|
+
}, Jt = function() {
|
|
1873
|
+
r(this, qt, !1), t(this, h)?.classList.remove("has-controls-collision");
|
|
1877
1874
|
}, Mi = function() {
|
|
1878
|
-
if (!t(this,
|
|
1879
|
-
e(this, s,
|
|
1875
|
+
if (!t(this, g) && !t(this, M) || !t(this, X) || !t(this, es) || t(this, s, jt)) {
|
|
1876
|
+
e(this, s, Jt).call(this);
|
|
1880
1877
|
return;
|
|
1881
1878
|
}
|
|
1882
|
-
const i = t(this,
|
|
1883
|
-
r(this, qt, f), t(this,
|
|
1884
|
-
},
|
|
1879
|
+
const i = t(this, X).getBoundingClientRect(), a = t(this, es).getBoundingClientRect(), l = i.width > 0 && i.height > 0, u = t(this, qt) ? t(this, ce) : t(this, he), f = l && a.right >= i.left - u && a.left <= i.right + u && a.bottom >= i.top - u && a.top <= i.bottom + u;
|
|
1880
|
+
r(this, qt, f), t(this, h).classList.toggle("has-controls-collision", t(this, qt));
|
|
1881
|
+
}, Qt = function() {
|
|
1885
1882
|
t(this, vt) && (window.cancelAnimationFrame(t(this, vt)), r(this, vt, 0));
|
|
1886
1883
|
}, Vi = function() {
|
|
1887
|
-
e(this, s,
|
|
1884
|
+
e(this, s, Qt).call(this), e(this, s, k).call(this);
|
|
1888
1885
|
const i = () => {
|
|
1889
1886
|
e(this, s, I).call(this, e(this, s, mt).call(this)), e(this, s, ri).call(this) && r(this, vt, window.requestAnimationFrame(i));
|
|
1890
1887
|
};
|
|
1891
1888
|
r(this, vt, window.requestAnimationFrame(i));
|
|
1892
1889
|
}, C = function() {
|
|
1893
|
-
const i = !t(this, o).paused && (!t(this, o).ended || t(this, o).loop) || t(this,
|
|
1894
|
-
if (t(this,
|
|
1895
|
-
e(this, s,
|
|
1890
|
+
const i = !t(this, o).paused && (!t(this, o).ended || t(this, o).loop) || t(this, g) && t(this, ot), a = t(this, S) ? t(this, S) === "playing" : i;
|
|
1891
|
+
if (t(this, h).classList.toggle("is-playing", a), t(this, Y).setAttribute("aria-label", a ? "Pause video" : "Play video"), t(this, g)) {
|
|
1892
|
+
e(this, s, Qt).call(this);
|
|
1896
1893
|
return;
|
|
1897
1894
|
}
|
|
1898
|
-
i && t(this,
|
|
1895
|
+
i && t(this, h).classList.contains("has-loaded-once") && !t(this, h).classList.contains("is-progress-settling") ? e(this, s, Vi).call(this) : (e(this, s, Qt).call(this), e(this, s, I).call(this));
|
|
1899
1896
|
}, Ft = function() {
|
|
1900
1897
|
t(this, zt) && (window.clearTimeout(t(this, zt)), r(this, zt, 0));
|
|
1901
1898
|
}, zi = function() {
|
|
1902
|
-
return Ji(t(this, o), t(this,
|
|
1899
|
+
return Ji(t(this, o), t(this, y));
|
|
1903
1900
|
}, V = new WeakMap(), ni = function(i) {
|
|
1904
|
-
if (!t(this,
|
|
1901
|
+
if (!t(this, y)) return;
|
|
1905
1902
|
const a = t(this, T).getBoundingClientRect(), l = Math.min(1, Math.max(0, 1 - (i - a.top) / a.height)), u = Math.round(l * 100) / 100;
|
|
1906
1903
|
t(this, o).volume = u, t(this, o).muted = u <= 0, t(this, V).call(this);
|
|
1907
1904
|
}, js = function(i) {
|
|
1908
1905
|
i !== null && t(this, T).hasPointerCapture(i) && t(this, T).releasePointerCapture(i);
|
|
1909
|
-
},
|
|
1910
|
-
r(this,
|
|
1906
|
+
}, ts = function(i) {
|
|
1907
|
+
r(this, W, !1), r(this, x, null), t(this, O).classList.remove("is-scrubbing-volume"), t(this, T).blur(), e(this, s, js).call(this, i), e(this, s, ci).call(this, 260);
|
|
1911
1908
|
}, At = new WeakMap(), Os = function() {
|
|
1912
1909
|
return Wi(t(this, b));
|
|
1913
1910
|
}, ai = function() {
|
|
1914
|
-
return ji(this.fullscreenEnabled, t(this,
|
|
1911
|
+
return ji(this.fullscreenEnabled, t(this, h), t(this, o));
|
|
1915
1912
|
}, Ii = function() {
|
|
1916
|
-
return Oi(t(this,
|
|
1913
|
+
return Oi(t(this, h));
|
|
1917
1914
|
}, Ri = function() {
|
|
1918
1915
|
Ki(t(this, o));
|
|
1919
1916
|
}, Di = function() {
|
|
1920
1917
|
return Gi();
|
|
1921
1918
|
}, Wt = new WeakMap(), Lt = new WeakMap(), qi = function(i) {
|
|
1922
|
-
e(this, s,
|
|
1919
|
+
e(this, s, U).call(this), e(this, s, xs).call(this), e(this, s, Zs).call(this, t(this, P)), e(this, s, js).call(this, t(this, x)), e(this, s, Ft).call(this), r(this, R, !1), r(this, g, !1), r(this, M, !1), t(this, h).classList.remove("is-progress-hovering"), r(this, P, null), r(this, J, !1), r(this, ct, !1), r(this, W, !1), r(this, x, null), e(this, s, _s).call(this), t(this, Ms).call(this), t(this, j).style.removeProperty("--sp-control-hover-offset"), t(this, w).classList.remove("is-volume-open"), t(this, O).classList.remove("is-scrubbing-volume"), t(this, h).classList.remove("is-scrubbing"), t(this, h).classList.remove("is-pointer-active");
|
|
1923
1920
|
const a = t(this, b).activeElement;
|
|
1924
|
-
a instanceof HTMLElement && a.blur(), i ? e(this, s, Ge).call(this) : e(this, s,
|
|
1925
|
-
},
|
|
1921
|
+
a instanceof HTMLElement && a.blur(), i ? e(this, s, Ge).call(this) : e(this, s, bs).call(this);
|
|
1922
|
+
}, zs = new WeakMap(), Zs = function(i) {
|
|
1926
1923
|
i !== null && t(this, m).hasPointerCapture(i) && t(this, m).releasePointerCapture(i);
|
|
1927
1924
|
}, li = async function(i, a, l) {
|
|
1928
|
-
if (!t(this, R) && !t(this,
|
|
1929
|
-
const u = t(this,
|
|
1930
|
-
e(this, s, Ft).call(this), r(this, R, !1), r(this,
|
|
1925
|
+
if (!t(this, R) && !t(this, g)) return;
|
|
1926
|
+
const u = t(this, g);
|
|
1927
|
+
e(this, s, Ft).call(this), r(this, R, !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, Jt).call(this), e(this, s, Zs).call(this, a), l && i !== null && (e(this, s, st).call(this), r(this, F, e(this, s, bt).call(this, i, u)), r(this, _, !0), r(this, gt, t(this, ot)), t(this, o).currentTime = t(this, F), e(this, s, k).call(this, t(this, F))), e(this, s, I).call(this, t(this, F)), u && t(this, ot) && await t(this, o).play(), e(this, s, Q).call(this);
|
|
1931
1928
|
}, Ks = function(i) {
|
|
1932
|
-
!t(this, R) && !t(this,
|
|
1929
|
+
!t(this, R) && !t(this, g) || (e(this, s, Ft).call(this), r(this, R, !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, Jt).call(this), e(this, s, Zs).call(this, i), e(this, s, k).call(this), e(this, s, I).call(this), t(this, ot) && t(this, o).play(), e(this, s, Q).call(this));
|
|
1933
1930
|
}, Gs = function(i) {
|
|
1934
|
-
if (!t(this,
|
|
1931
|
+
if (!t(this, hs)) return q(i);
|
|
1935
1932
|
const a = Number.isFinite(t(this, o).duration) ? t(this, o).duration : 0;
|
|
1936
1933
|
return a <= 0 ? q(i) : `-${q(Math.max(0, a - i))}`;
|
|
1937
1934
|
}, Hi = function() {
|
|
@@ -1940,16 +1937,16 @@ b = new WeakMap(), St = new WeakMap(), H = new WeakMap(), is = new WeakMap(), B
|
|
|
1940
1937
|
e(this, s, Hi).call(this), t(this, L).classList.remove("is-time-animating"), t(this, L).offsetWidth, t(this, L).classList.add("is-time-animating"), r(this, Ct, window.setTimeout(() => {
|
|
1941
1938
|
r(this, Ct, 0), t(this, L).classList.remove("is-time-animating");
|
|
1942
1939
|
}, 240));
|
|
1943
|
-
}, me = new WeakMap(), fe = new WeakMap(), be = new WeakMap(), ve = new WeakMap(),
|
|
1940
|
+
}, me = new WeakMap(), fe = new WeakMap(), be = new WeakMap(), ve = new WeakMap(), xs = function() {
|
|
1944
1941
|
t(this, Pt) && (window.clearTimeout(t(this, Pt)), r(this, Pt, 0));
|
|
1945
1942
|
}, hi = function() {
|
|
1946
|
-
!this.volumeEnabled || !this.volumeSliderEnabled || !t(this,
|
|
1947
|
-
},
|
|
1948
|
-
e(this, s,
|
|
1949
|
-
},
|
|
1943
|
+
!this.volumeEnabled || !this.volumeSliderEnabled || !t(this, y) || (e(this, s, xs).call(this), t(this, w).classList.add("is-volume-open"));
|
|
1944
|
+
}, us = new WeakMap(), ci = function(i = 150) {
|
|
1945
|
+
e(this, s, xs).call(this), r(this, Pt, window.setTimeout(t(this, us), i));
|
|
1946
|
+
}, Is = new WeakMap(), Rs = new WeakMap(), ge = new WeakMap(), ye = new WeakMap(), we = new WeakMap(), xe = new WeakMap(), ke = new WeakMap(), Pe = new WeakMap(), Te = new WeakMap(), Ee = new WeakMap(), Ds = new WeakMap(), qs = new WeakMap(), Ce = new WeakMap(), Ae = new WeakMap(), Le = new WeakMap(), Fe = new WeakMap(), Se = new WeakMap(), Me = new WeakMap(), Ve = new WeakMap(), ze = new WeakMap(), Ie = new WeakMap(), Re = new WeakMap(), De = new WeakMap(), qe = new WeakMap(), He = new WeakMap(), ps = new WeakMap(), Be = new WeakMap(), $e = new WeakMap(), Ne = new WeakMap(), Ue = new WeakMap(), Ye = new WeakMap(), Xe = new WeakMap(), A = function() {
|
|
1950
1947
|
return window.matchMedia("(max-width: 768px)").matches && window.matchMedia("(hover: none), (pointer: coarse)").matches;
|
|
1951
1948
|
}, $i = function() {
|
|
1952
|
-
t(this, o) && (t(this, H)?.disconnect(), r(this, H, null), e(this, s,
|
|
1949
|
+
t(this, o) && (t(this, H)?.disconnect(), r(this, H, null), e(this, s, gs).call(this), e(this, s, Ws).call(this), r(this, B, !1), r(this, rs, 0), r(this, $, !1), r(this, N, !1), r(this, Z, !1), r(this, K, !1), r(this, G, t(this, G) + 1), r(this, xt, !1), r(this, kt, 0), e(this, s, st).call(this), r(this, y, !0), r(this, _, !1), r(this, gt, !1), r(this, S, 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, ms).call(this), t(this, o).load(), e(this, s, ft).call(this, 0), t(this, V).call(this), t(this, z).call(this), e(this, s, C).call(this));
|
|
1953
1950
|
}, di(bi, "observedAttributes", _i);
|
|
1954
1951
|
customElements.get("simple-player") || customElements.define("simple-player", bi);
|
|
1955
1952
|
export {
|