@instructure/studio-player 0.2.11 → 0.2.13

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,14 +1,14 @@
1
- import './index-DAULLpyh.css';var Ke = Object.defineProperty;
2
- var De = (e, n, o) => n in e ? Ke(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
3
- var N = (e, n, o) => De(e, typeof n != "symbol" ? n + "" : n, o);
1
+ import './index-D-eUgNCk.css';var De = Object.defineProperty;
2
+ var ze = (e, n, o) => n in e ? De(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
3
+ var N = (e, n, o) => ze(e, typeof n != "symbol" ? n + "" : n, o);
4
4
  import { jsx as t, jsxs as s, Fragment as ee } from "react/jsx-runtime";
5
- import { createContext as te, useContext as x, useState as M, useCallback as p, useEffect as R, useMemo as Z, useRef as ve } from "react";
6
- import { useMediaPlayer as q, Spinner as Y, useMediaRemote as W, useMediaState as _, isTrackCaptionKind as ze, Track as Ue, Captions as je, usePlaybackRateOptions as qe, useCaptionOptions as We, useVideoQualityOptions as Ge, useMediaStore as Ce, FullscreenButton as ge, PlayButton as Qe, Poster as Ye, Time as re, TimeSlider as A, MuteButton as Xe, VolumeSlider as z, MediaPlayer as Je, MediaProvider as et } from "@vidstack/react";
7
- import { initReactI18next as tt, useTranslation as v } from "react-i18next";
8
- import nt from "i18next";
9
- import ot from "i18next-resources-to-backend";
10
- import { useFloating as be, autoUpdate as we, flip as ke, arrow as ye, useDismiss as Le, useInteractions as xe, FloatingFocusManager as it, FloatingArrow as Pe, shift as at, offset as st } from "@floating-ui/react";
11
- const ct = (e, n, o) => {
5
+ import { createContext as te, useContext as x, useState as T, useCallback as p, useEffect as E, useMemo as Z, useRef as ve } from "react";
6
+ import { useMediaPlayer as W, Spinner as X, useMediaRemote as G, useMediaState as _, isTrackCaptionKind as Ue, Track as je, Captions as qe, usePlaybackRateOptions as We, useCaptionOptions as Ge, useVideoQualityOptions as Qe, useMediaStore as Ce, FullscreenButton as ge, PlayButton as Ye, Poster as Xe, Time as re, TimeSlider as A, MuteButton as Je, VolumeSlider as z, MediaPlayer as et, MediaProvider as tt } from "@vidstack/react";
7
+ import { initReactI18next as nt, useTranslation as v } from "react-i18next";
8
+ import ot from "i18next";
9
+ import it from "i18next-resources-to-backend";
10
+ import { useFloating as be, autoUpdate as we, flip as ke, arrow as ye, useDismiss as Le, useInteractions as xe, FloatingFocusManager as at, FloatingArrow as Pe, shift as st, offset as ct } from "@floating-ui/react";
11
+ const lt = (e, n, o) => {
12
12
  const i = e[n];
13
13
  return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((a, c) => {
14
14
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
@@ -21,9 +21,9 @@ const ct = (e, n, o) => {
21
21
  );
22
22
  });
23
23
  };
24
- nt.use(tt).use(
25
- ot(
26
- (e) => ct(/* @__PURE__ */ Object.assign({ "./locales/en.json": () => import("./en-BlhWGmnp.js"), "./locales/kl.json": () => import("./kl-BRha3TKE.js") }), `./locales/${e}.json`, 3)
24
+ ot.use(nt).use(
25
+ it(
26
+ (e) => lt(/* @__PURE__ */ Object.assign({ "./locales/en.json": () => import("./en-BlhWGmnp.js"), "./locales/kl.json": () => import("./kl-BRha3TKE.js") }), `./locales/${e}.json`, 3)
27
27
  )
28
28
  ).init({
29
29
  fallbackLng: "en",
@@ -35,7 +35,7 @@ nt.use(tt).use(
35
35
  }
36
36
  });
37
37
  const Ne = te(null);
38
- function lt({
38
+ function rt({
39
39
  children: e,
40
40
  contextValue: n
41
41
  }) {
@@ -49,8 +49,8 @@ function C() {
49
49
  );
50
50
  return e;
51
51
  }
52
- const Me = te(null);
53
- function rt({
52
+ const Te = te(null);
53
+ function ut({
54
54
  hideFullScreen: e,
55
55
  comments: n,
56
56
  annotations: o,
@@ -82,28 +82,28 @@ function rt({
82
82
  forceComments: y,
83
83
  disableCaptionSettings: k
84
84
  };
85
- return /* @__PURE__ */ t(Me.Provider, { value: b, children: g });
85
+ return /* @__PURE__ */ t(Te.Provider, { value: b, children: g });
86
86
  }
87
87
  function S() {
88
- const e = x(Me);
88
+ const e = x(Te);
89
89
  if (!e)
90
90
  throw new Error(
91
91
  "useStudioPlayerPropsContext must be used within a StudioPlayerPropsContextProvider"
92
92
  );
93
93
  return e;
94
94
  }
95
- const ut = "_annotation-overlay_1kxzn_1", dt = {
95
+ const dt = "_annotation-overlay_1kxzn_1", mt = {
96
96
  "annotation-overlay": "_annotation-overlay_1kxzn_1",
97
- annotationOverlay: ut
98
- }, ue = 0.25, mt = (e, n) => {
97
+ annotationOverlay: dt
98
+ }, ue = 0.25, ht = (e, n) => {
99
99
  let o = !1;
100
100
  return (i) => {
101
101
  const a = i.detail.currentTime;
102
102
  a >= e.time && a < e.time + ue && !o && (o = !0, n(e)), (a < e.time || a >= e.time + ue) && o && (o = !1);
103
103
  };
104
104
  };
105
- function ht({ annotations: e }) {
106
- const n = q(), o = C(), i = S(), [a, c] = M(
105
+ function pt({ annotations: e }) {
106
+ const n = W(), o = C(), i = S(), [a, c] = T(
107
107
  null
108
108
  ), l = p(
109
109
  (m) => {
@@ -113,12 +113,12 @@ function ht({ annotations: e }) {
113
113
  ), u = () => {
114
114
  i.interactive || (n == null || n.play(), o.enableInteractions()), c(null);
115
115
  };
116
- return R(() => {
116
+ return E(() => {
117
117
  if (!n)
118
118
  return;
119
119
  const m = [];
120
120
  for (const h of e) {
121
- const g = mt(h, l);
121
+ const g = ht(h, l);
122
122
  n.addEventListener("time-update", g), m.push(g);
123
123
  }
124
124
  if (a) {
@@ -131,25 +131,25 @@ function ht({ annotations: e }) {
131
131
  for (const h of m)
132
132
  n.removeEventListener("time-update", h);
133
133
  };
134
- }, [n, e]), a ? /* @__PURE__ */ t("div", { className: dt.annotationOverlay, children: a.render(u) }) : null;
134
+ }, [n, e]), a ? /* @__PURE__ */ t("div", { className: mt.annotationOverlay, children: a.render(u) }) : null;
135
135
  }
136
- const pt = "_media-buffering-indicator_1fwjr_1", _t = "_media-buffering-spinner_1fwjr_17", ft = "_media-buffering-spin_1fwjr_17", vt = "_media-buffering-track_1fwjr_22", Ct = "_media-buffering-track-fill_1fwjr_27", U = {
136
+ const _t = "_media-buffering-indicator_1fwjr_1", ft = "_media-buffering-spinner_1fwjr_17", vt = "_media-buffering-spin_1fwjr_17", Ct = "_media-buffering-track_1fwjr_22", gt = "_media-buffering-track-fill_1fwjr_27", U = {
137
137
  "media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
138
- mediaBufferingIndicator: pt,
138
+ mediaBufferingIndicator: _t,
139
139
  "media-buffering-spinner": "_media-buffering-spinner_1fwjr_17",
140
- mediaBufferingSpinner: _t,
140
+ mediaBufferingSpinner: ft,
141
141
  "media-buffering-spin": "_media-buffering-spin_1fwjr_17",
142
- mediaBufferingSpin: ft,
142
+ mediaBufferingSpin: vt,
143
143
  "media-buffering-track": "_media-buffering-track_1fwjr_22",
144
- mediaBufferingTrack: vt,
144
+ mediaBufferingTrack: Ct,
145
145
  "media-buffering-track-fill": "_media-buffering-track-fill_1fwjr_27",
146
- mediaBufferingTrackFill: Ct
146
+ mediaBufferingTrackFill: gt
147
147
  };
148
- function gt() {
149
- return /* @__PURE__ */ t("div", { className: U.mediaBufferingIndicator, children: /* @__PURE__ */ s(Y.Root, { className: U.mediaBufferingSpinner, size: 96, children: [
150
- /* @__PURE__ */ t(Y.Track, { className: U.mediaBufferingTrack, width: 8 }),
148
+ function bt() {
149
+ return /* @__PURE__ */ t("div", { className: U.mediaBufferingIndicator, children: /* @__PURE__ */ s(X.Root, { className: U.mediaBufferingSpinner, size: 96, children: [
150
+ /* @__PURE__ */ t(X.Track, { className: U.mediaBufferingTrack, width: 8 }),
151
151
  /* @__PURE__ */ t(
152
- Y.TrackFill,
152
+ X.TrackFill,
153
153
  {
154
154
  className: U.mediaBufferingTrackFill,
155
155
  width: 8
@@ -157,15 +157,15 @@ function gt() {
157
157
  )
158
158
  ] }) });
159
159
  }
160
- const Te = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
160
+ const Me = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
161
161
  /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_149_104418", children: /* @__PURE__ */ t("rect", { width: 24, height: 24, fill: "white" }) }) }),
162
162
  /* @__PURE__ */ t("g", { clipPath: "url(#clip0_149_104418)", children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M22.5 21.8125V2.3125C22.5 1.9 22.1625 1.5625 21.75 1.5625H2.25C1.8375 1.5625 1.5 1.9 1.5 2.3125V21.8125C1.5 22.225 1.8375 22.5625 2.25 22.5625H21.75C22.1625 22.5625 22.5 22.225 22.5 21.8125ZM21.75 0.0625C22.9905 0.0625 24 1.072 24 2.3125V21.8125C24 23.053 22.9905 24.0625 21.75 24.0625H2.25C1.0095 24.0625 0 23.053 0 21.8125V2.3125C0 1.072 1.0095 0.0625 2.25 0.0625H21.75ZM10.744 10.6709H8.74403V10.0042H6.07736V14.0042H8.74403V13.3375H10.744V14.6709C10.744 15.4042 10.144 16.0042 9.41069 16.0042H5.41069C4.67736 16.0042 4.07736 15.4042 4.07736 14.6709V9.33753C4.07736 8.6042 4.67736 8.0042 5.41069 8.0042H9.41069C10.144 8.0042 10.744 8.6042 10.744 9.33753V10.6709ZM19.8065 10.6709H17.8065V10.0042H15.1399V14.0042H17.8065V13.3375H19.8065V14.6709C19.8065 15.4042 19.2065 16.0042 18.4732 16.0042H14.4732C13.7399 16.0042 13.1399 15.4042 13.1399 14.6709V9.33753C13.1399 8.6042 13.7399 8.0042 14.4732 8.0042H18.4732C19.2065 8.0042 19.8065 8.6042 19.8065 9.33753V10.6709Z", fill: "currentColor" }) })
163
163
  ] }), Ie = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
164
164
  /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_149_104406", children: /* @__PURE__ */ t("rect", { width: 24, height: 24, fill: "white" }) }) }),
165
165
  /* @__PURE__ */ t("g", { clipPath: "url(#clip0_149_104406)", children: /* @__PURE__ */ t("path", { d: "M21.3333 0H2.66666C1.18666 0 0 1.35 0 3V21C0 22.65 1.18666 24 2.66666 24H21.3333C22.8 24 24 22.65 24 21V3C24 1.35 22.8 0 21.3333 0ZM10.6667 10.6667H8.66666V10H6V14H8.66666V13.3333H10.6667V14.6667C10.6667 15.4 10.0667 16 9.33334 16H5.33334C4.6 16 4 15.4 4 14.6667V9.33334C4 8.6 4.6 8 5.33334 8H9.33334C10.0667 8 10.6667 8.6 10.6667 9.33334V10.6667ZM20.0042 10.6667H18.0042V10H15.3375V14H18.0042V13.3333H20.0042V14.6667C20.0042 15.4 19.4042 16 18.6708 16H14.6708C13.9375 16 13.3375 15.4 13.3375 14.6667V9.33334C13.3375 8.6 13.9375 8 14.6708 8H18.6708C19.4042 8 20.0042 8.6 20.0042 9.33334V10.6667Z", fill: "currentColor" }) })
166
166
  ] });
167
- function bt() {
168
- const e = W(), n = _("textTrack"), o = _("hasCaptions"), i = n && ze(n), a = C(), c = p(
167
+ function wt() {
168
+ const e = G(), n = _("textTrack"), o = _("hasCaptions"), i = n && Ue(n), a = C(), c = p(
169
169
  (l) => {
170
170
  e.toggleCaptions(l.nativeEvent);
171
171
  },
@@ -180,18 +180,18 @@ function bt() {
180
180
  "aria-label": "Captions",
181
181
  "aria-pressed": i ? "true" : "false",
182
182
  tabIndex: a.state.interactionsDisabled ? -1 : 0,
183
- children: i ? /* @__PURE__ */ t(Ie, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Te, { className: "controls-button-icon" })
183
+ children: i ? /* @__PURE__ */ t(Ie, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Me, { className: "controls-button-icon" })
184
184
  }
185
185
  ) : null;
186
186
  }
187
- const wt = "_captions_13epz_1", kt = {
188
- captions: wt
187
+ const kt = "_captions_13epz_1", yt = {
188
+ captions: kt
189
189
  };
190
- function yt({ captions: e }) {
190
+ function Lt({ captions: e }) {
191
191
  const n = _("hasCaptions"), o = C();
192
192
  return /* @__PURE__ */ s(ee, { children: [
193
193
  e.map((i) => /* @__PURE__ */ t(
194
- Ue,
194
+ je,
195
195
  {
196
196
  kind: "subtitles",
197
197
  type: i.type,
@@ -211,13 +211,13 @@ function yt({ captions: e }) {
211
211
  "--captions-color": o.state.captionsInvertColors ? "rgba(22, 22, 22)" : "white",
212
212
  "--captions-background-color": o.state.captionsInvertColors ? "rgba(255, 255, 255, 0.75)" : "rgba(22, 22, 22, 0.75)"
213
213
  },
214
- children: /* @__PURE__ */ t(je, { className: kt.captions })
214
+ children: /* @__PURE__ */ t(qe, { className: yt.captions })
215
215
  }
216
216
  ) : null
217
217
  ] });
218
218
  }
219
- const B = [0.5, 0.75, 1, 1.25, 1.5, 2], Lt = [0.5, 1, 2, 3, 4], Se = 5, xt = (e) => {
220
- const [, n] = M({});
219
+ const V = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Pt = (e) => {
220
+ const [, n] = T({});
221
221
  return Z(() => {
222
222
  let o = [];
223
223
  return {
@@ -235,20 +235,20 @@ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], Lt = [0.5, 1, 2, 3, 4], Se = 5, xt = (e)
235
235
  }
236
236
  };
237
237
  }, []);
238
- }, Pt = (e, n, o) => {
238
+ }, Nt = (e, n, o) => {
239
239
  let i = !1;
240
240
  return (a) => {
241
241
  const c = a.detail.currentTime;
242
242
  c >= e.timestamp && c < e.timestamp + n && !i && (o.add(e), i = !0), (c < e.timestamp || c >= e.timestamp + n) && i && (o.remove(e), i = !1);
243
243
  };
244
- }, Nt = (e, n = 5) => {
245
- const o = q(), i = xt(n);
246
- return R(() => {
244
+ }, Tt = (e, n = 5) => {
245
+ const o = W(), i = Pt(n);
246
+ return E(() => {
247
247
  if (!o)
248
248
  return;
249
249
  const a = [];
250
250
  for (const c of e) {
251
- const l = Pt(c, Se, i);
251
+ const l = Nt(c, Se, i);
252
252
  a.push(l), o.addEventListener("time-update", l);
253
253
  }
254
254
  return o.dispatchEvent(
@@ -261,102 +261,105 @@ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], Lt = [0.5, 1, 2, 3, 4], Se = 5, xt = (e)
261
261
  i.clear();
262
262
  };
263
263
  }, [o, i, e]), i;
264
- }, Mt = "_comments-overlay_2woxe_1", Tt = "_comments-container_2woxe_9", It = "_comment_2woxe_1", St = "_comment-text_2woxe_45", Ht = "_comment-author-avatar_2woxe_68", Vt = "_comment-author-name_2woxe_87", E = {
264
+ }, Mt = "_comments-overlay_2woxe_1", It = "_comments-container_2woxe_9", St = "_comment_2woxe_1", Ht = "_comment-text_2woxe_45", Rt = "_comment-author-avatar_2woxe_68", Vt = "_comment-author-name_2woxe_87", B = {
265
265
  "comments-overlay": "_comments-overlay_2woxe_1",
266
266
  commentsOverlay: Mt,
267
267
  "comments-container": "_comments-container_2woxe_9",
268
- commentsContainer: Tt,
269
- comment: It,
268
+ commentsContainer: It,
269
+ comment: St,
270
270
  "comment-text": "_comment-text_2woxe_45",
271
- commentText: St,
271
+ commentText: Ht,
272
272
  "comment-author-avatar": "_comment-author-avatar_2woxe_68",
273
- commentAuthorAvatar: Ht,
273
+ commentAuthorAvatar: Rt,
274
274
  "comment-author-name": "_comment-author-name_2woxe_87",
275
275
  commentAuthorName: Vt
276
276
  };
277
277
  function Bt({ comment: e }) {
278
- return /* @__PURE__ */ s("div", { className: E.comment, onClick: e.onClick, children: [
278
+ return /* @__PURE__ */ s("div", { className: B.comment, onClick: () => {
279
+ var n;
280
+ return (n = e.onClick) == null ? void 0 : n.call(e, e);
281
+ }, children: [
279
282
  /* @__PURE__ */ t(
280
283
  "img",
281
284
  {
282
- className: E.commentAuthorAvatar,
285
+ className: B.commentAuthorAvatar,
283
286
  src: e.user.avatar,
284
287
  alt: e.user.name
285
288
  }
286
289
  ),
287
- /* @__PURE__ */ t("span", { className: E.commentText, children: e.text }),
288
- /* @__PURE__ */ t("span", { className: E.commentAuthorName, children: e.user.name })
290
+ /* @__PURE__ */ t("span", { className: B.commentText, children: e.text }),
291
+ /* @__PURE__ */ t("span", { className: B.commentAuthorName, children: e.user.name })
289
292
  ] });
290
293
  }
291
294
  const Et = 5;
292
- function Rt({ comments: e }) {
293
- const n = C(), o = Nt(e, Et), i = !!_("textTrack"), a = o.map((c) => /* @__PURE__ */ t(Bt, { comment: c }, c.id));
295
+ function At({ comments: e }) {
296
+ const n = C(), o = Tt(e, Et), i = !!_("textTrack"), a = o.map((c) => /* @__PURE__ */ t(Bt, { comment: c }, c.id));
294
297
  return e.length > 0 && n.state.commentsEnabled ? /* @__PURE__ */ t(
295
298
  "div",
296
299
  {
297
- className: E.commentsOverlay,
300
+ className: B.commentsOverlay,
298
301
  style: {
299
302
  flexDirection: n.state.captionPositionOnTop && i ? "column-reverse" : "column"
300
303
  },
301
- children: /* @__PURE__ */ t("div", { className: E.commentsContainer, children: i ? a.slice(-4) : a })
304
+ children: /* @__PURE__ */ t("div", { className: B.commentsContainer, children: i ? a.slice(-4) : a })
302
305
  }
303
306
  ) : null;
304
307
  }
305
- const At = "_root_1x28e_1", Ot = "_left-controls_1x28e_28", Ft = "_right-controls_1x28e_34", Zt = "_indicators_1x28e_40", $t = "_normal-timeline_1x28e_49", Kt = "_compact-timeline_1x28e_55", V = {
306
- root: At,
308
+ const Ot = "_root_1x28e_1", Ft = "_left-controls_1x28e_28", Zt = "_right-controls_1x28e_34", $t = "_indicators_1x28e_40", Kt = "_normal-timeline_1x28e_49", Dt = "_compact-timeline_1x28e_55", R = {
309
+ root: Ot,
307
310
  "left-controls": "_left-controls_1x28e_28",
308
- leftControls: Ot,
311
+ leftControls: Ft,
309
312
  "right-controls": "_right-controls_1x28e_34",
310
- rightControls: Ft,
311
- indicators: Zt,
313
+ rightControls: Zt,
314
+ indicators: $t,
312
315
  "normal-timeline": "_normal-timeline_1x28e_49",
313
- normalTimeline: $t,
316
+ normalTimeline: Kt,
314
317
  "compact-timeline": "_compact-timeline_1x28e_55",
315
- compactTimeline: Kt
318
+ compactTimeline: Dt
316
319
  };
317
- function Dt({
320
+ function zt({
318
321
  darkMode: e,
319
322
  playerRef: n,
320
323
  showCaptionsButton: o = !0
321
324
  }) {
322
- const i = q();
323
- return R(() => {
325
+ const i = W();
326
+ return E(() => {
324
327
  i && (i.remoteControl.pauseControls(), n && (n.current = i));
325
- }, [i, n]), /* @__PURE__ */ s("div", { "data-darkmode": e, className: V.root, children: [
326
- /* @__PURE__ */ t(he, { className: V.normalTimeline }),
327
- /* @__PURE__ */ s("div", { className: V.leftControls, children: [
328
- /* @__PURE__ */ t(ro, {}),
329
- /* @__PURE__ */ t(hi, {})
328
+ }, [i, n]), /* @__PURE__ */ s("div", { "data-darkmode": e, className: R.root, children: [
329
+ /* @__PURE__ */ t(he, { className: R.normalTimeline }),
330
+ /* @__PURE__ */ s("div", { className: R.leftControls, children: [
331
+ /* @__PURE__ */ t(mo, {}),
332
+ /* @__PURE__ */ t(_i, {})
330
333
  ] }),
331
- /* @__PURE__ */ t("div", { className: V.indicators, children: /* @__PURE__ */ t(yo, {}) }),
332
- /* @__PURE__ */ t(he, { className: V.compactTimeline }),
333
- /* @__PURE__ */ s("div", { className: V.rightControls, children: [
334
- o && /* @__PURE__ */ t(bt, {}),
334
+ /* @__PURE__ */ t("div", { className: R.indicators, children: /* @__PURE__ */ t(xo, {}) }),
335
+ /* @__PURE__ */ t(he, { className: R.compactTimeline }),
336
+ /* @__PURE__ */ s("div", { className: R.rightControls, children: [
337
+ o && /* @__PURE__ */ t(wt, {}),
335
338
  /* @__PURE__ */ t(En, {}),
336
- /* @__PURE__ */ t(Yn, {})
339
+ /* @__PURE__ */ t(Xn, {})
337
340
  ] })
338
341
  ] });
339
342
  }
340
- const P = te(null), zt = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), Ut = "_menu-hint_k49ve_1", jt = "_menu-button_k49ve_5", qt = "_menu-label_k49ve_37", Wt = "_menu-icon_k49ve_42", j = {
343
+ const P = te(null), Ut = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), jt = "_menu-hint_k49ve_1", qt = "_menu-button_k49ve_5", Wt = "_menu-label_k49ve_37", Gt = "_menu-icon_k49ve_42", j = {
341
344
  "menu-hint": "_menu-hint_k49ve_1",
342
- menuHint: Ut,
345
+ menuHint: jt,
343
346
  "menu-button": "_menu-button_k49ve_5",
344
- menuButton: jt,
347
+ menuButton: qt,
345
348
  "menu-label": "_menu-label_k49ve_37",
346
- menuLabel: qt,
349
+ menuLabel: Wt,
347
350
  "menu-icon": "_menu-icon_k49ve_42",
348
- menuIcon: Wt
351
+ menuIcon: Gt
349
352
  };
350
353
  function $({ label: e, hint: n, onClick: o, Icon: i }) {
351
354
  return /* @__PURE__ */ s("button", { type: "button", className: j.menuButton, onClick: o, children: [
352
355
  i && /* @__PURE__ */ t(i, { className: j.menuIcon }),
353
356
  /* @__PURE__ */ t("span", { className: j.menuLabel, children: e }),
354
357
  /* @__PURE__ */ t("span", { className: j.menuHint, children: n }),
355
- /* @__PURE__ */ t(zt, {})
358
+ /* @__PURE__ */ t(Ut, {})
356
359
  ] });
357
360
  }
358
- const Gt = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.42229 2.82911C4.71149 1.83006 6.23876 1.19768 7.8383 1L7.96797 2.05432C6.55867 2.22862 5.21101 2.7866 4.07273 3.66874L3.42229 2.82911ZM5.44493 6.71393L9.49745 10.7665L17.0924 3.1705L17.8438 3.92297L9.49745 12.2693L4.69352 7.46534L5.44493 6.71393ZM17.932 8.83829C17.8618 8.27074 17.7364 7.70745 17.5589 7.16222L16.5482 7.49276C16.7055 7.97209 16.816 8.46843 16.8766 8.96689C16.917 9.29742 16.9372 9.6269 16.9372 9.96594C16.9372 10.305 16.917 10.6344 16.8777 10.9639C16.7033 12.3732 16.1454 13.7209 15.2632 14.8592L16.1029 15.5096C17.1019 14.2204 17.7343 12.6931 17.932 11.0925C17.9766 10.7205 18 10.3486 18 9.96594C18 9.58332 17.9766 9.21134 17.932 8.83829ZM1.05432 8.96795L0 8.83829C0.197684 7.23874 0.830061 5.71147 1.82911 4.42228L2.66874 5.07272C1.7866 6.211 1.22862 7.55865 1.05432 8.96795ZM0 11.0936C0.197684 12.6931 0.830061 14.2204 1.82911 15.5096L2.66874 14.8591C1.7866 13.7209 1.22862 12.3732 1.05432 10.9639L0 11.0936ZM10.0939 1.00011C11.6935 1.19673 13.2207 1.83017 14.5099 2.82922L13.8595 3.66884C12.7202 2.7867 11.3736 2.22872 9.96426 2.05442L10.0939 1.00011Z", fill: "currentColor" }) });
359
- function Qt() {
361
+ const Qt = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.42229 2.82911C4.71149 1.83006 6.23876 1.19768 7.8383 1L7.96797 2.05432C6.55867 2.22862 5.21101 2.7866 4.07273 3.66874L3.42229 2.82911ZM5.44493 6.71393L9.49745 10.7665L17.0924 3.1705L17.8438 3.92297L9.49745 12.2693L4.69352 7.46534L5.44493 6.71393ZM17.932 8.83829C17.8618 8.27074 17.7364 7.70745 17.5589 7.16222L16.5482 7.49276C16.7055 7.97209 16.816 8.46843 16.8766 8.96689C16.917 9.29742 16.9372 9.6269 16.9372 9.96594C16.9372 10.305 16.917 10.6344 16.8777 10.9639C16.7033 12.3732 16.1454 13.7209 15.2632 14.8592L16.1029 15.5096C17.1019 14.2204 17.7343 12.6931 17.932 11.0925C17.9766 10.7205 18 10.3486 18 9.96594C18 9.58332 17.9766 9.21134 17.932 8.83829ZM1.05432 8.96795L0 8.83829C0.197684 7.23874 0.830061 5.71147 1.82911 4.42228L2.66874 5.07272C1.7866 6.211 1.22862 7.55865 1.05432 8.96795ZM0 11.0936C0.197684 12.6931 0.830061 14.2204 1.82911 15.5096L2.66874 14.8591C1.7866 13.7209 1.22862 12.3732 1.05432 10.9639L0 11.0936ZM10.0939 1.00011C11.6935 1.19673 13.2207 1.83017 14.5099 2.82922L13.8595 3.66884C12.7202 2.7867 11.3736 2.22872 9.96426 2.05442L10.0939 1.00011Z", fill: "currentColor" }) });
362
+ function Yt() {
360
363
  const e = x(P), n = _("playbackRate"), { t: o } = v(), i = p(() => {
361
364
  e && e.setPage("speed");
362
365
  }, [e]);
@@ -366,11 +369,11 @@ function Qt() {
366
369
  label: o("PLAYBACK_SPEED"),
367
370
  hint: `${n}x`,
368
371
  onClick: i,
369
- Icon: Gt
372
+ Icon: Qt
370
373
  }
371
374
  ) : null;
372
375
  }
373
- function Yt() {
376
+ function Xt() {
374
377
  const e = x(P), n = _("hasCaptions"), o = _("textTrack"), { t: i } = v(), a = p(() => {
375
378
  e && e.setPage("captions");
376
379
  }, [e]);
@@ -380,11 +383,11 @@ function Yt() {
380
383
  label: i("CAPTIONS"),
381
384
  hint: (o == null ? void 0 : o.label) ?? i("OFF"),
382
385
  onClick: a,
383
- Icon: Te
386
+ Icon: Me
384
387
  }
385
388
  ) : null;
386
389
  }
387
- const Xt = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
390
+ const Jt = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
388
391
  /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_412_23039", children: /* @__PURE__ */ t("rect", { width: 18, height: 18, fill: "white" }) }) }),
389
392
  /* @__PURE__ */ s("g", { clipPath: "url(#clip0_412_23039)", children: [
390
393
  /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.46326 3.85039H0V2.65039H2.46326C2.7388 1.36449 3.88181 0.400391 5.24999 0.400391C6.61818 0.400391 7.76119 1.36449 8.03673 2.65039H18V3.85039H8.03673C7.76119 5.13629 6.61818 6.10039 5.24999 6.10039C3.88181 6.10039 2.7388 5.13629 2.46326 3.85039ZM3.59999 3.25039C3.59999 2.33912 4.33872 1.60039 5.24999 1.60039C6.16126 1.60039 6.89999 2.33912 6.89999 3.25039C6.89999 4.16166 6.16126 4.90039 5.24999 4.90039C4.33872 4.90039 3.59999 4.16166 3.59999 3.25039Z", fill: "currentColor" }),
@@ -392,7 +395,7 @@ const Xt = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0
392
395
  /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.24999 17.6004C6.61818 17.6004 7.76119 16.6363 8.03673 15.3504H18V14.1504H8.03673C7.76119 12.8645 6.61818 11.9004 5.24999 11.9004C3.88181 11.9004 2.7388 12.8645 2.46326 14.1504H0V15.3504H2.46326C2.7388 16.6363 3.88181 17.6004 5.24999 17.6004ZM5.24999 13.1004C4.33872 13.1004 3.59999 13.8391 3.59999 14.7504C3.59999 15.6617 4.33872 16.4004 5.24999 16.4004C6.16126 16.4004 6.89999 15.6617 6.89999 14.7504C6.89999 13.8391 6.16126 13.1004 5.24999 13.1004Z", fill: "currentColor" })
393
396
  ] })
394
397
  ] });
395
- function Jt() {
398
+ function en() {
396
399
  const e = x(P), n = _("autoQuality"), o = _("quality"), { t: i } = v(), a = p(() => {
397
400
  e && e.setPage("quality");
398
401
  }, [e]);
@@ -402,23 +405,23 @@ function Jt() {
402
405
  label: i("QUALITY"),
403
406
  hint: n ? i("AUTO", { quality: o.height }) : `${o.height}p`,
404
407
  onClick: a,
405
- Icon: Xt
408
+ Icon: Jt
406
409
  }
407
410
  ) : null;
408
411
  }
409
- const en = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 21.798373,3.342155 8.8843977,16.256145 2.2000774,9.571825 0,11.771895 8.8843977,20.657845 24,5.543795 Z", fill: "currentColor" }) }), tn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 9.64706,12 4,17.64706 6.35293,20 12,14.35293 17.64706,20 20,17.64706 14.35293,12 20,6.35293 17.64706,4 12,9.64706 6.35293,4 4,6.35293 Z", fill: "currentColor" }) }), nn = "_switch-track_vptv3_1", on = "_switch-thumb_vptv3_11", an = "_switch-icon_vptv3_25", sn = "_switch-body_vptv3_31", cn = "_switch-label_vptv3_68", ln = "_menu-icon_vptv3_72", I = {
412
+ const tn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 21.798373,3.342155 8.8843977,16.256145 2.2000774,9.571825 0,11.771895 8.8843977,20.657845 24,5.543795 Z", fill: "currentColor" }) }), nn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 9.64706,12 4,17.64706 6.35293,20 12,14.35293 17.64706,20 20,17.64706 14.35293,12 20,6.35293 17.64706,4 12,9.64706 6.35293,4 4,6.35293 Z", fill: "currentColor" }) }), on = "_switch-track_vptv3_1", an = "_switch-thumb_vptv3_11", sn = "_switch-icon_vptv3_25", cn = "_switch-body_vptv3_31", ln = "_switch-label_vptv3_68", rn = "_menu-icon_vptv3_72", I = {
410
413
  "switch-track": "_switch-track_vptv3_1",
411
- switchTrack: nn,
414
+ switchTrack: on,
412
415
  "switch-thumb": "_switch-thumb_vptv3_11",
413
- switchThumb: on,
416
+ switchThumb: an,
414
417
  "switch-icon": "_switch-icon_vptv3_25",
415
- switchIcon: an,
418
+ switchIcon: sn,
416
419
  "switch-body": "_switch-body_vptv3_31",
417
- switchBody: sn,
420
+ switchBody: cn,
418
421
  "switch-label": "_switch-label_vptv3_68",
419
- switchLabel: cn,
422
+ switchLabel: ln,
420
423
  "menu-icon": "_menu-icon_vptv3_72",
421
- menuIcon: ln
424
+ menuIcon: rn
422
425
  };
423
426
  function ne({
424
427
  label: e,
@@ -444,18 +447,18 @@ function ne({
444
447
  children: [
445
448
  i && /* @__PURE__ */ t(i, { className: I.menuIcon }),
446
449
  /* @__PURE__ */ t("span", { className: I.switchLabel, children: e }),
447
- /* @__PURE__ */ t("div", { className: I.switchTrack, children: /* @__PURE__ */ t("div", { className: I.switchThumb, children: n ? /* @__PURE__ */ t(en, { className: I.switchIcon }) : /* @__PURE__ */ t(tn, { className: I.switchIcon }) }) })
450
+ /* @__PURE__ */ t("div", { className: I.switchTrack, children: /* @__PURE__ */ t("div", { className: I.switchThumb, children: n ? /* @__PURE__ */ t(tn, { className: I.switchIcon }) : /* @__PURE__ */ t(nn, { className: I.switchIcon }) }) })
448
451
  ]
449
452
  }
450
453
  );
451
454
  }
452
- const rn = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 0V12.7489H5.44V18L10.5007 12.7489H16.582V0H1ZM2 1H15.58V11.7339H9.98655L6.52667 15.25V11.7339H2V1ZM5.24963 5.35011H12.3323V4.24835H5.24963V5.35011ZM5.24963 8.18462H9.50067V7.08285H5.24963V8.18462Z", fill: "currentColor" }) });
453
- function un() {
455
+ const un = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 0V12.7489H5.44V18L10.5007 12.7489H16.582V0H1ZM2 1H15.58V11.7339H9.98655L6.52667 15.25V11.7339H2V1ZM5.24963 5.35011H12.3323V4.24835H5.24963V5.35011ZM5.24963 8.18462H9.50067V7.08285H5.24963V8.18462Z", fill: "currentColor" }) });
456
+ function dn() {
454
457
  const { t: e } = v(), n = S(), o = C();
455
458
  return !n.forceComments && n.hasComments ? /* @__PURE__ */ t(
456
459
  ne,
457
460
  {
458
- Icon: rn,
461
+ Icon: un,
459
462
  label: e("COMMENTS"),
460
463
  onClick: o.toggleComments,
461
464
  checked: o.state.commentsEnabled
@@ -463,7 +466,7 @@ function un() {
463
466
  ) : null;
464
467
  }
465
468
  function H(e) {
466
- R(() => {
469
+ E(() => {
467
470
  const n = (o) => {
468
471
  o.key === "Escape" && (e == null || e());
469
472
  };
@@ -472,38 +475,38 @@ function H(e) {
472
475
  };
473
476
  }, []);
474
477
  }
475
- const dn = "_main-menu_7h96l_1", mn = {
478
+ const mn = "_main-menu_7h96l_1", hn = {
476
479
  "main-menu": "_main-menu_7h96l_1",
477
- mainMenu: dn
480
+ mainMenu: mn
478
481
  };
479
- function hn() {
482
+ function pn() {
480
483
  const e = x(P);
481
- return H(e == null ? void 0 : e.toggle), /* @__PURE__ */ s("div", { className: mn.mainMenu, children: [
482
- /* @__PURE__ */ t(Qt, {}),
484
+ return H(e == null ? void 0 : e.toggle), /* @__PURE__ */ s("div", { className: hn.mainMenu, children: [
483
485
  /* @__PURE__ */ t(Yt, {}),
484
- /* @__PURE__ */ t(un, {}),
485
- /* @__PURE__ */ t(Jt, {})
486
+ /* @__PURE__ */ t(Xt, {}),
487
+ /* @__PURE__ */ t(dn, {}),
488
+ /* @__PURE__ */ t(en, {})
486
489
  ] });
487
490
  }
488
- const G = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.1347 3.00061L6.55157 13.5825L0.865302 7.89624L0 8.76154L6.55157 15.3131L17.9988 3.86469L17.1347 3.00061Z", fill: "currentColor" }) }), K = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), pn = "_menu-container_1bjr3_1", _n = "_menu-options_1bjr3_6", fn = "_menu-heading_1bjr3_11", vn = "_check-icon_1bjr3_27", Cn = "_menu-item-label_1bjr3_33", gn = "_menu-item_1bjr3_33", bn = "_menu-back-button_1bjr3_66", r = {
491
+ const Q = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.1347 3.00061L6.55157 13.5825L0.865302 7.89624L0 8.76154L6.55157 15.3131L17.9988 3.86469L17.1347 3.00061Z", fill: "currentColor" }) }), K = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), _n = "_menu-container_1bjr3_1", fn = "_menu-options_1bjr3_6", vn = "_menu-heading_1bjr3_11", Cn = "_check-icon_1bjr3_27", gn = "_menu-item-label_1bjr3_33", bn = "_menu-item_1bjr3_33", wn = "_menu-back-button_1bjr3_66", r = {
489
492
  "menu-container": "_menu-container_1bjr3_1",
490
- menuContainer: pn,
493
+ menuContainer: _n,
491
494
  "menu-options": "_menu-options_1bjr3_6",
492
- menuOptions: _n,
495
+ menuOptions: fn,
493
496
  "menu-heading": "_menu-heading_1bjr3_11",
494
- menuHeading: fn,
497
+ menuHeading: vn,
495
498
  "check-icon": "_check-icon_1bjr3_27",
496
- checkIcon: vn,
499
+ checkIcon: Cn,
497
500
  "menu-item-label": "_menu-item-label_1bjr3_33",
498
- menuItemLabel: Cn,
501
+ menuItemLabel: gn,
499
502
  "menu-item": "_menu-item_1bjr3_33",
500
- menuItem: gn,
503
+ menuItem: bn,
501
504
  "menu-back-button": "_menu-back-button_1bjr3_66",
502
- menuBackButton: bn
505
+ menuBackButton: wn
503
506
  };
504
- function wn() {
505
- const e = x(P), n = qe({
506
- rates: B,
507
+ function kn() {
508
+ const e = x(P), n = We({
509
+ rates: V,
507
510
  normalLabel: "1x"
508
511
  }), { t: o } = v();
509
512
  return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
@@ -531,7 +534,7 @@ function wn() {
531
534
  },
532
535
  className: r.menuItem,
533
536
  children: [
534
- /* @__PURE__ */ t(G, { className: r.checkIcon }),
537
+ /* @__PURE__ */ t(Q, { className: r.checkIcon }),
535
538
  /* @__PURE__ */ t("span", { className: r.menuItemLabel, children: a })
536
539
  ]
537
540
  },
@@ -539,7 +542,7 @@ function wn() {
539
542
  )) })
540
543
  ] }) : null;
541
544
  }
542
- function kn() {
545
+ function yn() {
543
546
  const e = x(P), n = _("textTrack"), { t: o } = v(), i = p(() => {
544
547
  e && e.setPage("captionLanguage");
545
548
  }, [e]);
@@ -552,7 +555,7 @@ function kn() {
552
555
  }
553
556
  ) : null;
554
557
  }
555
- function yn() {
558
+ function Ln() {
556
559
  const { t: e } = v(), n = C(), o = x(P), i = p(() => {
557
560
  o && o.setPage("captionFontSize");
558
561
  }, [o]);
@@ -565,7 +568,7 @@ function yn() {
565
568
  }
566
569
  ) : null;
567
570
  }
568
- function Ln() {
571
+ function xn() {
569
572
  const { t: e } = v(), n = C();
570
573
  return /* @__PURE__ */ t(
571
574
  ne,
@@ -576,7 +579,7 @@ function Ln() {
576
579
  }
577
580
  );
578
581
  }
579
- function xn() {
582
+ function Pn() {
580
583
  const { t: e } = v(), n = C();
581
584
  return /* @__PURE__ */ t(
582
585
  ne,
@@ -587,7 +590,7 @@ function xn() {
587
590
  }
588
591
  );
589
592
  }
590
- function Pn() {
593
+ function Nn() {
591
594
  const e = x(P), { t: n } = v(), { disableCaptionSettings: o } = C();
592
595
  return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
593
596
  /* @__PURE__ */ s(
@@ -603,14 +606,14 @@ function Pn() {
603
606
  }
604
607
  ),
605
608
  /* @__PURE__ */ t("strong", { className: r.menuHeading, children: n("CAPTIONS") }),
606
- !o && /* @__PURE__ */ t(kn, {}),
607
- /* @__PURE__ */ t(yn, {}),
609
+ !o && /* @__PURE__ */ t(yn, {}),
608
610
  /* @__PURE__ */ t(Ln, {}),
609
- /* @__PURE__ */ t(xn, {})
611
+ /* @__PURE__ */ t(xn, {}),
612
+ /* @__PURE__ */ t(Pn, {})
610
613
  ] }) : null;
611
614
  }
612
- function Nn() {
613
- const e = x(P), n = We(), { t: o } = v();
615
+ function Tn() {
616
+ const e = x(P), n = Ge(), { t: o } = v();
614
617
  return H(e == null ? void 0 : e.backToCaptions), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
615
618
  /* @__PURE__ */ s(
616
619
  "button",
@@ -636,7 +639,7 @@ function Nn() {
636
639
  },
637
640
  className: r.menuItem,
638
641
  children: [
639
- /* @__PURE__ */ t(G, { className: r.checkIcon }),
642
+ /* @__PURE__ */ t(Q, { className: r.checkIcon }),
640
643
  /* @__PURE__ */ t("span", { className: r.menuItemLabel, children: a })
641
644
  ]
642
645
  },
@@ -660,7 +663,7 @@ function Mn() {
660
663
  }
661
664
  ),
662
665
  /* @__PURE__ */ t("strong", { className: r.menuHeading, children: o("CAPTIONS") }),
663
- /* @__PURE__ */ t("div", { role: "menu", className: r.menuOptions, children: Lt.map((i) => /* @__PURE__ */ s(
666
+ /* @__PURE__ */ t("div", { role: "menu", className: r.menuOptions, children: xt.map((i) => /* @__PURE__ */ s(
664
667
  "button",
665
668
  {
666
669
  type: "button",
@@ -671,7 +674,7 @@ function Mn() {
671
674
  },
672
675
  className: r.menuItem,
673
676
  children: [
674
- /* @__PURE__ */ t(G, { className: r.checkIcon }),
677
+ /* @__PURE__ */ t(Q, { className: r.checkIcon }),
675
678
  /* @__PURE__ */ s("span", { className: r.menuItemLabel, children: [
676
679
  i * 100,
677
680
  "%"
@@ -682,8 +685,8 @@ function Mn() {
682
685
  )) })
683
686
  ] }) : null;
684
687
  }
685
- function Tn() {
686
- const e = x(P), n = Ge({ sort: "descending" }), o = _("autoQuality"), { t: i } = v();
688
+ function In() {
689
+ const e = x(P), n = Qe({ sort: "descending" }), o = _("autoQuality"), { t: i } = v();
687
690
  return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
688
691
  /* @__PURE__ */ s(
689
692
  "button",
@@ -709,7 +712,7 @@ function Tn() {
709
712
  },
710
713
  className: r.menuItem,
711
714
  children: [
712
- /* @__PURE__ */ t(G, { className: r.checkIcon }),
715
+ /* @__PURE__ */ t(Q, { className: r.checkIcon }),
713
716
  /* @__PURE__ */ t("span", { className: r.menuItemLabel, children: c })
714
717
  ]
715
718
  },
@@ -717,27 +720,27 @@ function Tn() {
717
720
  )) })
718
721
  ] }) : null;
719
722
  }
720
- const In = {
721
- main: hn,
722
- speed: wn,
723
- captions: Pn,
724
- captionLanguage: Nn,
723
+ const Sn = {
724
+ main: pn,
725
+ speed: kn,
726
+ captions: Nn,
727
+ captionLanguage: Tn,
725
728
  captionFontSize: Mn,
726
- quality: Tn
729
+ quality: In
727
730
  };
728
- function Sn() {
729
- const [e, n] = M("main"), [o, i] = M(!1), a = p(() => {
730
- i((T) => !T);
731
- }, []), c = p((T) => {
732
- n(T);
731
+ function Hn() {
732
+ const [e, n] = T("main"), [o, i] = T(!1), a = p(() => {
733
+ i((M) => !M);
734
+ }, []), c = p((M) => {
735
+ n(M);
733
736
  }, []), l = p(() => {
734
737
  n("captions");
735
738
  }, []), u = p(() => {
736
739
  n("main");
737
- }, []), m = Z(() => In[e], [e]), h = ve(null), { refs: g, floatingStyles: y, context: k } = be({
740
+ }, []), m = Z(() => Sn[e], [e]), h = ve(null), { refs: g, floatingStyles: y, context: k } = be({
738
741
  open: o,
739
- onOpenChange: (T) => {
740
- i(T), u();
742
+ onOpenChange: (M) => {
743
+ i(M), u();
741
744
  },
742
745
  placement: "top-end",
743
746
  whileElementsMounted: we,
@@ -763,7 +766,7 @@ function Sn() {
763
766
  getFloatingProps: w
764
767
  };
765
768
  }
766
- const Hn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.0692 12C21.0692 11.4776 21.0212 10.944 20.9238 10.4104L23.5511 8.13318L21.0579 3.87247L17.7431 4.97788C16.9059 4.28329 15.9515 3.73553 14.9449 3.37271L14.2616 0H9.28941L8.60612 3.37129C7.58823 3.73553 6.65082 4.27482 5.80659 4.97647L2.49318 3.87247L0 8.13318L2.62729 10.4104C2.52988 10.944 2.48188 11.4776 2.48188 12C2.48188 12.5224 2.52988 13.056 2.62729 13.5896L0 15.8668L2.49318 20.1275L5.808 19.0221C6.64518 19.7167 7.59953 20.2645 8.60612 20.6273L9.28941 24H14.2616L14.9449 20.6287C15.9614 20.2645 16.9002 19.7252 17.7445 19.0235L21.0579 20.1289L23.5511 15.8682L20.9238 13.5911C21.0212 13.056 21.0692 12.5224 21.0692 12ZM11.7755 16.9412C9.05082 16.9412 6.83435 14.7247 6.83435 12C6.83435 9.2753 9.05082 7.05883 11.7755 7.05883C14.5002 7.05883 16.7167 9.2753 16.7167 12C16.7167 14.7247 14.5002 16.9412 11.7755 16.9412Z", fill: "currentColor" }) }), Vn = "_settings-menu_hxlsv_1", Bn = "_arrow_hxlsv_15", de = {
769
+ const Rn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.0692 12C21.0692 11.4776 21.0212 10.944 20.9238 10.4104L23.5511 8.13318L21.0579 3.87247L17.7431 4.97788C16.9059 4.28329 15.9515 3.73553 14.9449 3.37271L14.2616 0H9.28941L8.60612 3.37129C7.58823 3.73553 6.65082 4.27482 5.80659 4.97647L2.49318 3.87247L0 8.13318L2.62729 10.4104C2.52988 10.944 2.48188 11.4776 2.48188 12C2.48188 12.5224 2.52988 13.056 2.62729 13.5896L0 15.8668L2.49318 20.1275L5.808 19.0221C6.64518 19.7167 7.59953 20.2645 8.60612 20.6273L9.28941 24H14.2616L14.9449 20.6287C15.9614 20.2645 16.9002 19.7252 17.7445 19.0235L21.0579 20.1289L23.5511 15.8682L20.9238 13.5911C21.0212 13.056 21.0692 12.5224 21.0692 12ZM11.7755 16.9412C9.05082 16.9412 6.83435 14.7247 6.83435 12C6.83435 9.2753 9.05082 7.05883 11.7755 7.05883C14.5002 7.05883 16.7167 9.2753 16.7167 12C16.7167 14.7247 14.5002 16.9412 11.7755 16.9412Z", fill: "currentColor" }) }), Vn = "_settings-menu_hxlsv_1", Bn = "_arrow_hxlsv_15", de = {
767
770
  "settings-menu": "_settings-menu_hxlsv_1",
768
771
  settingsMenu: Vn,
769
772
  arrow: Bn
@@ -782,7 +785,7 @@ function En() {
782
785
  refs: h,
783
786
  setPage: g,
784
787
  toggle: y
785
- } = Sn(), k = C(), { t: b } = v();
788
+ } = Hn(), k = C(), { t: b } = v();
786
789
  return /* @__PURE__ */ s(ee, { children: [
787
790
  /* @__PURE__ */ t(
788
791
  "button",
@@ -795,10 +798,10 @@ function En() {
795
798
  "aria-expanded": m,
796
799
  tabIndex: k != null && k.state.interactionsDisabled ? -1 : 0,
797
800
  ...u(),
798
- children: /* @__PURE__ */ t(Hn, { className: "controls-button-icon icon-rotate" })
801
+ children: /* @__PURE__ */ t(Rn, { className: "controls-button-icon icon-rotate" })
799
802
  }
800
803
  ),
801
- m && /* @__PURE__ */ t(it, { context: a, initialFocus: -1, modal: !1, children: /* @__PURE__ */ s(
804
+ m && /* @__PURE__ */ t(at, { context: a, initialFocus: -1, modal: !1, children: /* @__PURE__ */ s(
802
805
  "div",
803
806
  {
804
807
  className: de.settingsMenu,
@@ -828,25 +831,25 @@ function En() {
828
831
  }
829
832
  function He(e, n = 1e3) {
830
833
  return function() {
831
- const i = _("lastKeyboardAction"), [a, c] = M(!1), l = p(() => c(!1), []);
832
- return R(() => {
834
+ const i = _("lastKeyboardAction"), [a, c] = T(!1), l = p(() => c(!1), []);
835
+ return E(() => {
833
836
  c(!!i);
834
837
  const u = setTimeout(l, n);
835
838
  return () => clearTimeout(u);
836
839
  }, [i, n]), a ? /* @__PURE__ */ t(e, {}) : null;
837
840
  };
838
841
  }
839
- const oe = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), ie = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), Ve = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1179 1.41211V22.589H11.2943L5.64717 16.9418V7.05928L11.2943 1.41211H14.1179ZM4.23537 7.05928V16.9418H2.11769C0.957618 16.9418 0.0189406 16.0147 0.00028305 14.8592L0 14.8241V9.17696C0 8.01689 0.927077 7.07822 2.0826 7.05956L2.11769 7.05928H4.23537ZM22.3744 7.93711L24 9.56119L21.5623 11.9988L24 14.4365L22.3744 16.0621L19.9383 13.6245L17.5006 16.0621L15.875 14.4365L18.3127 11.9988L15.875 9.56119L17.5006 7.93711L19.9383 10.3748L22.3744 7.93711Z", fill: "currentColor" }) }), Be = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 6.98017V16.8627L11.2943 22.5099H14.1179V1.33301H11.2943L5.64714 6.98017ZM0 9.09785V14.745C0 15.9168 0.945899 16.8627 2.11768 16.8627H4.23537V6.98017H2.11768C0.945899 6.98017 0 7.92607 0 9.09785ZM18.3527 11.9207C18.3527 10.6134 17.8388 9.36962 16.9056 8.4209L17.9094 7.43123C19.1066 8.64396 19.7645 10.2393 19.7645 11.9207C19.7645 13.6036 19.1066 15.1989 17.9094 16.4116L16.9056 15.422C17.8388 14.4732 18.3527 13.2295 18.3527 11.9207Z", fill: "currentColor" }) }), Ee = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 16.8627V6.98017L11.2943 1.33301H14.1179V22.5099H11.2943L5.64714 16.8627ZM0 14.745V9.09785C0 7.92607 0.945899 6.98017 2.11768 6.98017H4.23537V16.8627H2.11768C0.945899 16.8627 0 15.9168 0 14.745ZM16.9056 8.4209C17.8388 9.36962 18.3527 10.6134 18.3527 11.9207C18.3527 13.2295 17.8388 14.4732 16.9056 15.422L17.9094 16.4116C19.1066 15.1989 19.7645 13.6036 19.7645 11.9207C19.7645 10.2393 19.1066 8.64396 17.9094 7.43123L16.9056 8.4209ZM19.9016 5.43185L20.8997 4.43372C22.9002 6.43422 24 9.09403 24 11.9219C24 14.7497 22.9002 17.4081 20.8997 19.4086L19.9016 18.4104C21.6353 16.6782 22.5882 14.3727 22.5882 11.9219C22.5882 9.46957 21.6353 7.16553 19.9016 5.43185Z", fill: "currentColor" }) }), Rn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.691 3.99987V10.5281L0 4.00655V20.2596L10.691 13.7367V20.2663L23.9987 12.1331L10.691 3.99987Z", fill: "currentColor" }) }), An = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.309 3.99987L0 12.1331L13.309 20.2663V13.7367L23.9987 20.2596V4.00655L13.309 10.5281V3.99987Z", fill: "currentColor" }) }), On = "_feedback-overlay_v4lbu_1", Fn = "_feedback-message_v4lbu_14", Zn = "_feedback-icon_v4lbu_30", $n = "_feedback-icon-animation_v4lbu_1", L = {
842
+ const oe = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), ie = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), Re = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1179 1.41211V22.589H11.2943L5.64717 16.9418V7.05928L11.2943 1.41211H14.1179ZM4.23537 7.05928V16.9418H2.11769C0.957618 16.9418 0.0189406 16.0147 0.00028305 14.8592L0 14.8241V9.17696C0 8.01689 0.927077 7.07822 2.0826 7.05956L2.11769 7.05928H4.23537ZM22.3744 7.93711L24 9.56119L21.5623 11.9988L24 14.4365L22.3744 16.0621L19.9383 13.6245L17.5006 16.0621L15.875 14.4365L18.3127 11.9988L15.875 9.56119L17.5006 7.93711L19.9383 10.3748L22.3744 7.93711Z", fill: "currentColor" }) }), Ve = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 6.98017V16.8627L11.2943 22.5099H14.1179V1.33301H11.2943L5.64714 6.98017ZM0 9.09785V14.745C0 15.9168 0.945899 16.8627 2.11768 16.8627H4.23537V6.98017H2.11768C0.945899 6.98017 0 7.92607 0 9.09785ZM18.3527 11.9207C18.3527 10.6134 17.8388 9.36962 16.9056 8.4209L17.9094 7.43123C19.1066 8.64396 19.7645 10.2393 19.7645 11.9207C19.7645 13.6036 19.1066 15.1989 17.9094 16.4116L16.9056 15.422C17.8388 14.4732 18.3527 13.2295 18.3527 11.9207Z", fill: "currentColor" }) }), Be = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 16.8627V6.98017L11.2943 1.33301H14.1179V22.5099H11.2943L5.64714 16.8627ZM0 14.745V9.09785C0 7.92607 0.945899 6.98017 2.11768 6.98017H4.23537V16.8627H2.11768C0.945899 16.8627 0 15.9168 0 14.745ZM16.9056 8.4209C17.8388 9.36962 18.3527 10.6134 18.3527 11.9207C18.3527 13.2295 17.8388 14.4732 16.9056 15.422L17.9094 16.4116C19.1066 15.1989 19.7645 13.6036 19.7645 11.9207C19.7645 10.2393 19.1066 8.64396 17.9094 7.43123L16.9056 8.4209ZM19.9016 5.43185L20.8997 4.43372C22.9002 6.43422 24 9.09403 24 11.9219C24 14.7497 22.9002 17.4081 20.8997 19.4086L19.9016 18.4104C21.6353 16.6782 22.5882 14.3727 22.5882 11.9219C22.5882 9.46957 21.6353 7.16553 19.9016 5.43185Z", fill: "currentColor" }) }), An = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.691 3.99987V10.5281L0 4.00655V20.2596L10.691 13.7367V20.2663L23.9987 12.1331L10.691 3.99987Z", fill: "currentColor" }) }), On = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.309 3.99987L0 12.1331L13.309 20.2663V13.7367L23.9987 20.2596V4.00655L13.309 10.5281V3.99987Z", fill: "currentColor" }) }), Fn = "_feedback-overlay_v4lbu_1", Zn = "_feedback-message_v4lbu_14", $n = "_feedback-icon_v4lbu_30", Kn = "_feedback-icon-animation_v4lbu_1", L = {
840
843
  "feedback-overlay": "_feedback-overlay_v4lbu_1",
841
- feedbackOverlay: On,
844
+ feedbackOverlay: Fn,
842
845
  "feedback-message": "_feedback-message_v4lbu_14",
843
- feedbackMessage: Fn,
846
+ feedbackMessage: Zn,
844
847
  "feedback-icon": "_feedback-icon_v4lbu_30",
845
- feedbackIcon: Zn,
848
+ feedbackIcon: $n,
846
849
  "feedback-icon-animation": "_feedback-icon-animation_v4lbu_1",
847
- feedbackIconAnimation: $n
850
+ feedbackIconAnimation: Kn
848
851
  };
849
- function Kn() {
852
+ function Dn() {
850
853
  var o;
851
854
  const e = Ce();
852
855
  switch ((o = e.lastKeyboardAction) == null ? void 0 : o.action) {
@@ -859,18 +862,18 @@ function Kn() {
859
862
  case "volumeUp":
860
863
  case "volumeDown":
861
864
  case "toggleMuted":
862
- return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t(Ve, {}) : e.volume >= 0.5 ? /* @__PURE__ */ t(Ee, {}) : /* @__PURE__ */ t(Be, {}) });
865
+ return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t(Re, {}) : e.volume >= 0.5 ? /* @__PURE__ */ t(Be, {}) : /* @__PURE__ */ t(Ve, {}) });
863
866
  case "seekForward":
864
867
  case "seekForward10":
865
- return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(Rn, { className: "right" }) });
868
+ return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(An, { className: "right" }) });
866
869
  case "seekBackward":
867
870
  case "seekBackward10":
868
- return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(An, { className: "left" }) });
871
+ return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(On, { className: "left" }) });
869
872
  default:
870
873
  return null;
871
874
  }
872
875
  }
873
- function Dn() {
876
+ function zn() {
874
877
  var i;
875
878
  const { t: e } = v(), n = Ce();
876
879
  switch ((i = n.lastKeyboardAction) == null ? void 0 : i.action) {
@@ -898,49 +901,51 @@ function Dn() {
898
901
  return null;
899
902
  }
900
903
  }
901
- const zn = He(Kn, 500), Un = He(Dn, 1e3);
902
- function jn() {
904
+ const Un = He(Dn, 500), jn = He(zn, 1e3);
905
+ function qn() {
903
906
  return /* @__PURE__ */ s("div", { className: L.feedbackOverlay, children: [
904
- /* @__PURE__ */ t(zn, {}),
905
- /* @__PURE__ */ t(Un, {})
907
+ /* @__PURE__ */ t(Un, {}),
908
+ /* @__PURE__ */ t(jn, {})
906
909
  ] });
907
910
  }
908
- const qn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1383 0.999867V3.66268H18.4561L3.66281 18.4546V14.1382H1V23H9.86449V20.3372H5.54542L20.3387 5.54528V9.86303H23.0001V0.999867H14.1383Z", fill: "currentColor" }) }), Wn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.562 6.58944L22.1514 0L24.0005 1.84907L17.4111 8.43851H21.6506V11.0552H12.9453V2.34861H15.562V6.58944ZM2.34861 15.5615V12.9461H11.0539V21.6501H8.43982V17.4106L1.84907 24L0 22.1509L6.59075 15.5615H2.34861Z", fill: "currentColor" }) }), Gn = "_full-screen-button_1xm32_2", Qn = {
911
+ const Wn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1383 0.999867V3.66268H18.4561L3.66281 18.4546V14.1382H1V23H9.86449V20.3372H5.54542L20.3387 5.54528V9.86303H23.0001V0.999867H14.1383Z", fill: "currentColor" }) }), Gn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.562 6.58944L22.1514 0L24.0005 1.84907L17.4111 8.43851H21.6506V11.0552H12.9453V2.34861H15.562V6.58944ZM2.34861 15.5615V12.9461H11.0539V21.6501H8.43982V17.4106L1.84907 24L0 22.1509L6.59075 15.5615H2.34861Z", fill: "currentColor" }) }), Qn = "_full-screen-button_1xm32_2", Yn = {
909
912
  "full-screen-button": "_full-screen-button_1xm32_2",
910
- fullScreenButton: Gn
913
+ fullScreenButton: Qn
911
914
  };
912
- function Yn() {
915
+ function Xn() {
913
916
  const e = _("fullscreen"), n = C(), o = S(), { t: i } = v();
914
917
  return o.hideFullScreen ? null : /* @__PURE__ */ t(
915
918
  ge,
916
919
  {
917
920
  tabIndex: n.state.interactionsDisabled ? -1 : 0,
918
- className: `controls-button ${Qn.fullScreenButton}`,
921
+ className: `controls-button ${Yn.fullScreenButton}`,
919
922
  "aria-label": i(e ? "EXIT_FSCREEN" : "FSCREEN"),
920
- children: e ? /* @__PURE__ */ t(Wn, { className: "controls-button-icon" }) : /* @__PURE__ */ t(qn, { className: "controls-button-icon" })
923
+ children: e ? /* @__PURE__ */ t(Gn, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Wn, { className: "controls-button-icon" })
921
924
  }
922
925
  );
923
926
  }
924
- const Xn = "_gestures-container_1fn3b_1", Jn = "_gesture_1fn3b_1", me = {
927
+ const Jn = "_gestures-container_1fn3b_1", eo = "_gesture_1fn3b_1", me = {
925
928
  "gestures-container": "_gestures-container_1fn3b_1",
926
- gesturesContainer: Xn,
927
- gesture: Jn
929
+ gesturesContainer: Jn,
930
+ gesture: eo
928
931
  };
929
- function eo() {
930
- const e = W(), n = () => {
932
+ function to() {
933
+ const e = G(), n = () => {
931
934
  e.togglePaused();
932
935
  };
933
936
  return /* @__PURE__ */ t("div", { className: me.gesturesContainer, children: /* @__PURE__ */ t("div", { "aria-hidden": !0, className: me.gesture, onClick: n }) });
934
937
  }
935
- const to = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.76472 10.5294C5.05696 10.5294 5.29413 10.2922 5.29413 9.99999V8.94117C5.29413 8.64893 5.05696 8.41175 4.76472 8.41175H3.7059C3.41366 8.41175 3.17649 8.64893 3.17649 8.94117V9.99999C3.17649 10.2922 3.41366 10.5294 3.7059 10.5294H4.76472ZM11.1177 10.5294C11.4099 10.5294 11.6471 10.2922 11.6471 9.99999V8.94117C11.6471 8.64893 11.4099 8.41175 11.1177 8.41175H10.0588C9.76661 8.41175 9.52944 8.64893 9.52944 8.94117V9.99999C9.52944 10.2922 9.76661 10.5294 10.0588 10.5294H11.1177ZM14.8235 9.99999C14.8235 10.2922 14.5864 10.5294 14.2941 10.5294H13.2353C12.9431 10.5294 12.7059 10.2922 12.7059 9.99999V8.94117C12.7059 8.64893 12.9431 8.41175 13.2353 8.41175H14.2941C14.5864 8.41175 14.8235 8.64893 14.8235 8.94117V9.99999ZM14.8235 13.1765C14.8235 13.4687 14.5864 13.7059 14.2941 13.7059H13.2353C12.9431 13.7059 12.7059 13.4687 12.7059 13.1765V12.1176C12.7059 11.8254 12.9431 11.5882 13.2353 11.5882H14.2941C14.5864 11.5882 14.8235 11.8254 14.8235 12.1176V13.1765ZM11.6471 13.1765C11.6471 13.4687 11.4099 13.7059 11.1177 13.7059H6.88239C6.59015 13.7059 6.35297 13.4687 6.35297 13.1765V12.1176C6.35297 11.8254 6.59015 11.5882 6.88239 11.5882H11.1177C11.4099 11.5882 11.6471 11.8254 11.6471 12.1176V13.1765ZM5.29413 13.1765C5.29413 13.4687 5.05696 13.7059 4.76472 13.7059H3.7059C3.41366 13.7059 3.17649 13.4687 3.17649 13.1765V12.1176C3.17649 11.8254 3.41366 11.5882 3.7059 11.5882H4.76472C5.05696 11.5882 5.29413 11.8254 5.29413 12.1176V13.1765ZM6.88238 8.41175C6.59015 8.41175 6.35297 8.64893 6.35297 8.94117V9.99999C6.35297 10.2922 6.59015 10.5294 6.88238 10.5294H7.94121C8.23344 10.5294 8.47062 10.2922 8.47062 9.99999V8.94117C8.47062 8.64893 8.23344 8.41175 7.94121 8.41175H6.88238ZM16.4118 5.23529H9.57494C9.71471 4.42 10.1933 4.17118 10.8254 3.85565C11.6629 3.43741 12.7059 2.91541 12.7059 1H11.6471C11.6471 2.26106 11.1039 2.53212 10.3511 2.90906C9.59824 3.28494 8.68659 3.75506 8.50871 5.23529H1.58824C0.712588 5.23529 0 5.94788 0 6.82353V15.2941C0 16.1698 0.712588 16.8824 1.58824 16.8824H16.4118C17.2874 16.8824 18 16.1698 18 15.2941V6.82353C18 5.94788 17.2874 5.23529 16.4118 5.23529Z", fill: "currentColor" }) }), Re = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.94968 7.74766L3.99993 2.79791L2.79785 3.99999L7.7476 8.94974L2.79785 13.8995L3.99993 15.1016L8.94968 10.1518L13.8994 15.1016L15.1015 13.8995L10.1518 8.94974L15.1015 3.99999L13.8994 2.79791L8.94968 7.74766Z", fill: "currentColor" }) }), no = "_keyboard-shortcuts-overlay_y5kv6_1", oo = "_keyboard-shortcuts-button_y5kv6_67", io = "_close-button_y5kv6_93", J = {
936
- "keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_y5kv6_1",
937
- keyboardShortcutsOverlay: no,
938
- "keyboard-shortcuts-button": "_keyboard-shortcuts-button_y5kv6_67",
939
- keyboardShortcutsButton: oo,
940
- "close-button": "_close-button_y5kv6_93",
941
- closeButton: io
938
+ const no = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.76472 10.5294C5.05696 10.5294 5.29413 10.2922 5.29413 9.99999V8.94117C5.29413 8.64893 5.05696 8.41175 4.76472 8.41175H3.7059C3.41366 8.41175 3.17649 8.64893 3.17649 8.94117V9.99999C3.17649 10.2922 3.41366 10.5294 3.7059 10.5294H4.76472ZM11.1177 10.5294C11.4099 10.5294 11.6471 10.2922 11.6471 9.99999V8.94117C11.6471 8.64893 11.4099 8.41175 11.1177 8.41175H10.0588C9.76661 8.41175 9.52944 8.64893 9.52944 8.94117V9.99999C9.52944 10.2922 9.76661 10.5294 10.0588 10.5294H11.1177ZM14.8235 9.99999C14.8235 10.2922 14.5864 10.5294 14.2941 10.5294H13.2353C12.9431 10.5294 12.7059 10.2922 12.7059 9.99999V8.94117C12.7059 8.64893 12.9431 8.41175 13.2353 8.41175H14.2941C14.5864 8.41175 14.8235 8.64893 14.8235 8.94117V9.99999ZM14.8235 13.1765C14.8235 13.4687 14.5864 13.7059 14.2941 13.7059H13.2353C12.9431 13.7059 12.7059 13.4687 12.7059 13.1765V12.1176C12.7059 11.8254 12.9431 11.5882 13.2353 11.5882H14.2941C14.5864 11.5882 14.8235 11.8254 14.8235 12.1176V13.1765ZM11.6471 13.1765C11.6471 13.4687 11.4099 13.7059 11.1177 13.7059H6.88239C6.59015 13.7059 6.35297 13.4687 6.35297 13.1765V12.1176C6.35297 11.8254 6.59015 11.5882 6.88239 11.5882H11.1177C11.4099 11.5882 11.6471 11.8254 11.6471 12.1176V13.1765ZM5.29413 13.1765C5.29413 13.4687 5.05696 13.7059 4.76472 13.7059H3.7059C3.41366 13.7059 3.17649 13.4687 3.17649 13.1765V12.1176C3.17649 11.8254 3.41366 11.5882 3.7059 11.5882H4.76472C5.05696 11.5882 5.29413 11.8254 5.29413 12.1176V13.1765ZM6.88238 8.41175C6.59015 8.41175 6.35297 8.64893 6.35297 8.94117V9.99999C6.35297 10.2922 6.59015 10.5294 6.88238 10.5294H7.94121C8.23344 10.5294 8.47062 10.2922 8.47062 9.99999V8.94117C8.47062 8.64893 8.23344 8.41175 7.94121 8.41175H6.88238ZM16.4118 5.23529H9.57494C9.71471 4.42 10.1933 4.17118 10.8254 3.85565C11.6629 3.43741 12.7059 2.91541 12.7059 1H11.6471C11.6471 2.26106 11.1039 2.53212 10.3511 2.90906C9.59824 3.28494 8.68659 3.75506 8.50871 5.23529H1.58824C0.712588 5.23529 0 5.94788 0 6.82353V15.2941C0 16.1698 0.712588 16.8824 1.58824 16.8824H16.4118C17.2874 16.8824 18 16.1698 18 15.2941V6.82353C18 5.94788 17.2874 5.23529 16.4118 5.23529Z", fill: "currentColor" }) }), Ee = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.94968 7.74766L3.99993 2.79791L2.79785 3.99999L7.7476 8.94974L2.79785 13.8995L3.99993 15.1016L8.94968 10.1518L13.8994 15.1016L15.1015 13.8995L10.1518 8.94974L15.1015 3.99999L13.8994 2.79791L8.94968 7.74766Z", fill: "currentColor" }) }), oo = "_keyboard-shortcuts-overlay_dr03d_1", io = "_screen-reader-content_dr03d_66", ao = "_keyboard-shortcuts-button_dr03d_80", so = "_close-button_dr03d_106", q = {
939
+ "keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_dr03d_1",
940
+ keyboardShortcutsOverlay: oo,
941
+ "screen-reader-content": "_screen-reader-content_dr03d_66",
942
+ screenReaderContent: io,
943
+ "keyboard-shortcuts-button": "_keyboard-shortcuts-button_dr03d_80",
944
+ keyboardShortcutsButton: ao,
945
+ "close-button": "_close-button_dr03d_106",
946
+ closeButton: so
942
947
  };
943
- function ao({ onClose: e }) {
948
+ function co({ onClose: e }) {
944
949
  const { t: n } = v();
945
950
  H(e);
946
951
  const o = (i) => {
@@ -949,9 +954,11 @@ function ao({ onClose: e }) {
949
954
  return /* @__PURE__ */ s(
950
955
  "div",
951
956
  {
952
- className: J.keyboardShortcutsOverlay,
957
+ className: q.keyboardShortcutsOverlay,
953
958
  tabIndex: 0,
954
959
  ref: o,
960
+ role: "dialog",
961
+ "aria-label": n("KEYBOARD_SHORTCUTS"),
955
962
  children: [
956
963
  /* @__PURE__ */ s("header", { children: [
957
964
  /* @__PURE__ */ t("h2", { children: n("KEYBOARD_SHORTCUTS") }),
@@ -959,14 +966,15 @@ function ao({ onClose: e }) {
959
966
  "button",
960
967
  {
961
968
  type: "button",
962
- className: J.closeButton,
969
+ className: q.closeButton,
963
970
  onClick: e,
964
971
  "aria-label": n("CLOSE"),
965
- children: /* @__PURE__ */ t(Re, {})
972
+ children: /* @__PURE__ */ t(Ee, {})
966
973
  }
967
974
  )
968
975
  ] }),
969
976
  /* @__PURE__ */ s("table", { children: [
977
+ /* @__PURE__ */ t("caption", { className: q.screenReaderContent, children: n("KEYBOARD_SHORTCUTS") }),
970
978
  /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ s("tr", { children: [
971
979
  /* @__PURE__ */ t("th", { children: n("ACTION") }),
972
980
  /* @__PURE__ */ t("th", { children: n("SHORTCUT") })
@@ -1053,8 +1061,8 @@ function ao({ onClose: e }) {
1053
1061
  }
1054
1062
  );
1055
1063
  }
1056
- function so() {
1057
- const [e, n] = M(!1), [o, i] = M(!1), [a, c] = M(!1), l = C(), u = _("playing"), m = W(), { t: h } = v(), g = p(() => {
1064
+ function lo() {
1065
+ const [e, n] = T(!1), [o, i] = T(!1), [a, c] = T(!1), l = C(), u = _("playing"), m = G(), { t: h } = v(), g = p(() => {
1058
1066
  n(!0), l.disableInteractions(), u && (c(!0), m.pause());
1059
1067
  }, [u, m, l]), y = p(() => {
1060
1068
  n(!1), i(!0), l.enableInteractions(), a && (c(!1), m.play());
@@ -1062,31 +1070,31 @@ function so() {
1062
1070
  (b) => o && (b == null ? void 0 : b.focus()),
1063
1071
  [o]
1064
1072
  );
1065
- return e ? /* @__PURE__ */ t(ao, { onClose: y }) : /* @__PURE__ */ t(
1073
+ return e ? /* @__PURE__ */ t(co, { onClose: y }) : /* @__PURE__ */ t(
1066
1074
  "button",
1067
1075
  {
1068
1076
  ref: k,
1069
1077
  "aria-label": h("KEYBOARD_SHORTCUTS"),
1070
1078
  type: "button",
1071
- className: J.keyboardShortcutsButton,
1079
+ className: q.keyboardShortcutsButton,
1072
1080
  onClick: g,
1073
1081
  tabIndex: l.state.interactionsDisabled ? -1 : 0,
1074
- children: /* @__PURE__ */ t(to, {})
1082
+ children: /* @__PURE__ */ t(no, {})
1075
1083
  }
1076
1084
  );
1077
1085
  }
1078
- const co = "_play-pause-button_kyuc5_1", lo = {
1086
+ const ro = "_play-pause-button_kyuc5_1", uo = {
1079
1087
  "play-pause-button": "_play-pause-button_kyuc5_1",
1080
- playPauseButton: co
1088
+ playPauseButton: ro
1081
1089
  };
1082
- function ro() {
1083
- const e = q(), n = C(), o = _("paused"), { t: i } = v();
1090
+ function mo() {
1091
+ const e = W(), n = C(), o = _("paused"), { t: i } = v();
1084
1092
  return e ? /* @__PURE__ */ t(
1085
- Qe,
1093
+ Ye,
1086
1094
  {
1087
1095
  "aria-label": i(o ? "PLAY" : "PAUSE"),
1088
1096
  tabIndex: n.state.interactionsDisabled ? -1 : 0,
1089
- className: `${lo.playPauseButton} controls-button`,
1097
+ className: `${uo.playPauseButton} controls-button`,
1090
1098
  onKeyDown: (a) => {
1091
1099
  a.key === " " && (e == null || e.$state.lastKeyboardAction.set({
1092
1100
  action: "togglePaused",
@@ -1097,91 +1105,91 @@ function ro() {
1097
1105
  }
1098
1106
  ) : null;
1099
1107
  }
1100
- const uo = "_poster_195hi_1", mo = {
1101
- poster: uo
1108
+ const ho = "_poster_195hi_1", po = {
1109
+ poster: ho
1102
1110
  };
1103
- function ho({ src: e }) {
1111
+ function _o({ src: e }) {
1104
1112
  const n = _("source");
1105
- return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(Ye, { src: e, className: mo.poster });
1113
+ return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(Xe, { src: e, className: po.poster });
1106
1114
  }
1107
- const po = "_small-layout-overlay_1vli4_1", _o = "_small-layout-button_1vli4_14", fo = "_small-layout-icon-play_1vli4_24", vo = "_small-layout-icon-pause_1vli4_30", Co = "_full-screen-close-icon_1vli4_36", go = "_fade-out_1vli4_1", O = {
1115
+ const fo = "_small-layout-overlay_1vli4_1", vo = "_small-layout-button_1vli4_14", Co = "_small-layout-icon-play_1vli4_24", go = "_small-layout-icon-pause_1vli4_30", bo = "_full-screen-close-icon_1vli4_36", wo = "_fade-out_1vli4_1", O = {
1108
1116
  "small-layout-overlay": "_small-layout-overlay_1vli4_1",
1109
- smallLayoutOverlay: po,
1117
+ smallLayoutOverlay: fo,
1110
1118
  "small-layout-button": "_small-layout-button_1vli4_14",
1111
- smallLayoutButton: _o,
1119
+ smallLayoutButton: vo,
1112
1120
  "small-layout-icon-play": "_small-layout-icon-play_1vli4_24",
1113
- smallLayoutIconPlay: fo,
1121
+ smallLayoutIconPlay: Co,
1114
1122
  "small-layout-icon-pause": "_small-layout-icon-pause_1vli4_30",
1115
- smallLayoutIconPause: vo,
1123
+ smallLayoutIconPause: go,
1116
1124
  "full-screen-close-icon": "_full-screen-close-icon_1vli4_36",
1117
- fullScreenCloseIcon: Co,
1125
+ fullScreenCloseIcon: bo,
1118
1126
  "fade-out": "_fade-out_1vli4_1",
1119
- fadeOut: go
1127
+ fadeOut: wo
1120
1128
  };
1121
- function bo() {
1129
+ function ko() {
1122
1130
  return /* @__PURE__ */ s("div", { className: O.smallLayoutOverlay, children: [
1123
- /* @__PURE__ */ t(ge, { className: O.fullScreenCloseIcon, children: /* @__PURE__ */ t(Re, {}) }),
1131
+ /* @__PURE__ */ t(ge, { className: O.fullScreenCloseIcon, children: /* @__PURE__ */ t(Ee, {}) }),
1124
1132
  /* @__PURE__ */ s("i", { className: O.smallLayoutButton, children: [
1125
1133
  /* @__PURE__ */ t(ie, { className: O.smallLayoutIconPlay }),
1126
1134
  /* @__PURE__ */ t(oe, { className: O.smallLayoutIconPause })
1127
1135
  ] })
1128
1136
  ] });
1129
1137
  }
1130
- const wo = "_time-indicator_1rlpb_1", ko = {
1138
+ const yo = "_time-indicator_1rlpb_1", Lo = {
1131
1139
  "time-indicator": "_time-indicator_1rlpb_1",
1132
- timeIndicator: wo
1140
+ timeIndicator: yo
1133
1141
  };
1134
- function yo() {
1135
- return /* @__PURE__ */ s("div", { className: ko.timeIndicator, children: [
1142
+ function xo() {
1143
+ return /* @__PURE__ */ s("div", { className: Lo.timeIndicator, children: [
1136
1144
  /* @__PURE__ */ t(re, { type: "current" }),
1137
1145
  "/",
1138
1146
  /* @__PURE__ */ t(re, { type: "duration" })
1139
1147
  ] });
1140
1148
  }
1141
- const Lo = "_comment-markers_49pse_1", xo = "_comment-marker_49pse_1", Po = "_timeline-wrapper_49pse_21", No = "_track_49pse_35", Mo = "_thumb_49pse_48", To = "_root_49pse_62", Io = "_track-inner_49pse_92", So = "_progress_49pse_98", Ho = "_track-fill_49pse_104", Vo = "_pins_49pse_121", Bo = "_pin-button_49pse_134", Eo = "_annotation-pin_49pse_154", Ro = "_quiz-pin_49pse_159", Ao = "_annotation-pin-child_49pse_164", Oo = "_quiz-pin-child_49pse_168", Fo = "_interactive-pin-container_49pse_173", Zo = "_interactive-pin-wrapper_49pse_183", $o = "_interactive-pin-icon_49pse_189", Ko = "_interactive-pin_49pse_173", Do = "_bg_49pse_203", zo = "_symbol_49pse_207", Uo = "_interactive-pin-button_49pse_212", jo = "_interactive-pin-menu_49pse_232", qo = "_interactive-pin-menu-item_49pse_246", Wo = "_arrow_49pse_267", d = {
1149
+ const Po = "_comment-markers_49pse_1", No = "_comment-marker_49pse_1", To = "_timeline-wrapper_49pse_21", Mo = "_track_49pse_35", Io = "_thumb_49pse_48", So = "_root_49pse_62", Ho = "_track-inner_49pse_92", Ro = "_progress_49pse_98", Vo = "_track-fill_49pse_104", Bo = "_pins_49pse_121", Eo = "_pin-button_49pse_134", Ao = "_annotation-pin_49pse_154", Oo = "_quiz-pin_49pse_159", Fo = "_annotation-pin-child_49pse_164", Zo = "_quiz-pin-child_49pse_168", $o = "_interactive-pin-container_49pse_173", Ko = "_interactive-pin-wrapper_49pse_183", Do = "_interactive-pin-icon_49pse_189", zo = "_interactive-pin_49pse_173", Uo = "_bg_49pse_203", jo = "_symbol_49pse_207", qo = "_interactive-pin-button_49pse_212", Wo = "_interactive-pin-menu_49pse_232", Go = "_interactive-pin-menu-item_49pse_246", Qo = "_arrow_49pse_267", d = {
1142
1150
  "comment-markers": "_comment-markers_49pse_1",
1143
- commentMarkers: Lo,
1151
+ commentMarkers: Po,
1144
1152
  "comment-marker": "_comment-marker_49pse_1",
1145
- commentMarker: xo,
1153
+ commentMarker: No,
1146
1154
  "timeline-wrapper": "_timeline-wrapper_49pse_21",
1147
- timelineWrapper: Po,
1148
- track: No,
1149
- thumb: Mo,
1150
- root: To,
1155
+ timelineWrapper: To,
1156
+ track: Mo,
1157
+ thumb: Io,
1158
+ root: So,
1151
1159
  "track-inner": "_track-inner_49pse_92",
1152
- trackInner: Io,
1153
- progress: So,
1160
+ trackInner: Ho,
1161
+ progress: Ro,
1154
1162
  "track-fill": "_track-fill_49pse_104",
1155
- trackFill: Ho,
1156
- pins: Vo,
1163
+ trackFill: Vo,
1164
+ pins: Bo,
1157
1165
  "pin-button": "_pin-button_49pse_134",
1158
- pinButton: Bo,
1166
+ pinButton: Eo,
1159
1167
  "annotation-pin": "_annotation-pin_49pse_154",
1160
- annotationPin: Eo,
1168
+ annotationPin: Ao,
1161
1169
  "quiz-pin": "_quiz-pin_49pse_159",
1162
- quizPin: Ro,
1170
+ quizPin: Oo,
1163
1171
  "annotation-pin-child": "_annotation-pin-child_49pse_164",
1164
- annotationPinChild: Ao,
1172
+ annotationPinChild: Fo,
1165
1173
  "quiz-pin-child": "_quiz-pin-child_49pse_168",
1166
- quizPinChild: Oo,
1174
+ quizPinChild: Zo,
1167
1175
  "interactive-pin-container": "_interactive-pin-container_49pse_173",
1168
- interactivePinContainer: Fo,
1176
+ interactivePinContainer: $o,
1169
1177
  "interactive-pin-wrapper": "_interactive-pin-wrapper_49pse_183",
1170
- interactivePinWrapper: Zo,
1178
+ interactivePinWrapper: Ko,
1171
1179
  "interactive-pin-icon": "_interactive-pin-icon_49pse_189",
1172
- interactivePinIcon: $o,
1180
+ interactivePinIcon: Do,
1173
1181
  "interactive-pin": "_interactive-pin_49pse_173",
1174
- interactivePin: Ko,
1175
- bg: Do,
1176
- symbol: zo,
1182
+ interactivePin: zo,
1183
+ bg: Uo,
1184
+ symbol: jo,
1177
1185
  "interactive-pin-button": "_interactive-pin-button_49pse_212",
1178
- interactivePinButton: Uo,
1186
+ interactivePinButton: qo,
1179
1187
  "interactive-pin-menu": "_interactive-pin-menu_49pse_232",
1180
- interactivePinMenu: jo,
1188
+ interactivePinMenu: Wo,
1181
1189
  "interactive-pin-menu-item": "_interactive-pin-menu-item_49pse_246",
1182
- interactivePinMenuItem: qo,
1183
- arrow: Wo
1184
- }, Go = {
1190
+ interactivePinMenuItem: Go,
1191
+ arrow: Qo
1192
+ }, Yo = {
1185
1193
  annotation: d.annotationPin,
1186
1194
  quiz: d.quizPin
1187
1195
  };
@@ -1203,7 +1211,7 @@ function Ae({
1203
1211
  children: /* @__PURE__ */ s(
1204
1212
  "svg",
1205
1213
  {
1206
- className: Go[e],
1214
+ className: Yo[e],
1207
1215
  width: "26",
1208
1216
  height: "32",
1209
1217
  viewBox: "0 0 26 32",
@@ -1217,7 +1225,7 @@ function Ae({
1217
1225
  }
1218
1226
  );
1219
1227
  }
1220
- function Qo(e) {
1228
+ function Xo(e) {
1221
1229
  return /* @__PURE__ */ t(Ae, { type: "annotation", ...e, children: /* @__PURE__ */ t(
1222
1230
  "path",
1223
1231
  {
@@ -1230,7 +1238,7 @@ function Qo(e) {
1230
1238
  }
1231
1239
  ) });
1232
1240
  }
1233
- function Yo(e) {
1241
+ function Jo(e) {
1234
1242
  return /* @__PURE__ */ t(Ae, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ t("circle", { className: d.quizPinChild, cx: "13", cy: "13", r: "6" }) : /* @__PURE__ */ t(
1235
1243
  "text",
1236
1244
  {
@@ -1244,7 +1252,7 @@ function Yo(e) {
1244
1252
  }
1245
1253
  ) });
1246
1254
  }
1247
- function Xo(e, n) {
1255
+ function ei(e, n) {
1248
1256
  return e.map((o, i) => ({
1249
1257
  id: o.id,
1250
1258
  time: o.time,
@@ -1253,7 +1261,7 @@ function Xo(e, n) {
1253
1261
  onClick: () => n(o)
1254
1262
  }));
1255
1263
  }
1256
- function Jo(e, n) {
1264
+ function ti(e, n) {
1257
1265
  const o = /* @__PURE__ */ new Map();
1258
1266
  e.forEach((c) => {
1259
1267
  var u;
@@ -1273,12 +1281,12 @@ function Jo(e, n) {
1273
1281
  }), a++;
1274
1282
  }), i;
1275
1283
  }
1276
- function ei(e, n, o, i) {
1284
+ function ni(e, n, o, i) {
1277
1285
  switch (e.type) {
1278
1286
  case "annotation": {
1279
1287
  const a = () => i ? e.onClick() : o.seek(e.time);
1280
1288
  return /* @__PURE__ */ t(
1281
- Qo,
1289
+ Xo,
1282
1290
  {
1283
1291
  position: e.time / n * 100,
1284
1292
  onClick: a
@@ -1288,7 +1296,7 @@ function ei(e, n, o, i) {
1288
1296
  }
1289
1297
  case "quiz":
1290
1298
  return /* @__PURE__ */ t(
1291
- Yo,
1299
+ Jo,
1292
1300
  {
1293
1301
  position: e.time / n * 100,
1294
1302
  ordinal: e.ordinal,
@@ -1301,17 +1309,17 @@ function ei(e, n, o, i) {
1301
1309
  return null;
1302
1310
  }
1303
1311
  }
1304
- function ti() {
1305
- const e = W(), n = _("duration"), o = S(), i = Z(() => [
1306
- ...Xo(
1312
+ function oi() {
1313
+ const e = G(), n = _("duration"), o = S(), i = Z(() => [
1314
+ ...ei(
1307
1315
  o.annotations,
1308
1316
  o.onAnnotationClick
1309
1317
  ),
1310
- ...Jo(o.quizMarkers, o.onQuizMarkerClick)
1311
- ].sort((c, l) => c.time - l.time).map((c) => ei(c, n, e, o.interactive)), [o.annotations, o.quizMarkers, n, e]);
1318
+ ...ti(o.quizMarkers, o.onQuizMarkerClick)
1319
+ ].sort((c, l) => c.time - l.time).map((c) => ni(c, n, e, o.interactive)), [o.annotations, o.quizMarkers, n, e]);
1312
1320
  return /* @__PURE__ */ t("div", { className: d.pins, children: i });
1313
1321
  }
1314
- function ni() {
1322
+ function ii() {
1315
1323
  const e = _("duration"), n = S(), o = C();
1316
1324
  return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: d.commentMarkers, children: n.comments.map((i) => {
1317
1325
  const a = Math.min(
@@ -1331,8 +1339,8 @@ function ni() {
1331
1339
  );
1332
1340
  }) }) : null;
1333
1341
  }
1334
- function oi({ currentTime: e, position: n }) {
1335
- const [o, i] = M(!1), a = S(), c = p(() => a.interactiveMenuElements.length > 0 ? i((b) => !b) : a.onInteractivePinClick(e), [
1342
+ function ai({ currentTime: e, position: n }) {
1343
+ const [o, i] = T(!1), a = S(), c = p(() => a.interactiveMenuElements.length > 0 ? i((b) => !b) : a.onInteractivePinClick(e), [
1336
1344
  a.interactiveMenuElements,
1337
1345
  a.onInteractivePinClick,
1338
1346
  e
@@ -1342,8 +1350,8 @@ function oi({ currentTime: e, position: n }) {
1342
1350
  whileElementsMounted: we,
1343
1351
  placement: "top",
1344
1352
  middleware: [
1345
- at(),
1346
- st(6),
1353
+ st(),
1354
+ ct(6),
1347
1355
  ke(),
1348
1356
  ye({
1349
1357
  element: l
@@ -1454,20 +1462,20 @@ function oi({ currentTime: e, position: n }) {
1454
1462
  )
1455
1463
  ] });
1456
1464
  }
1457
- function ii() {
1465
+ function si() {
1458
1466
  const e = _("duration"), n = _("currentTime"), o = n / e * 100;
1459
- return /* @__PURE__ */ t("div", { className: d.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: d.interactivePinWrapper, children: /* @__PURE__ */ t(oi, { currentTime: n, position: o }) }) });
1467
+ return /* @__PURE__ */ t("div", { className: d.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: d.interactivePinWrapper, children: /* @__PURE__ */ t(ai, { currentTime: n, position: o }) }) });
1460
1468
  }
1461
- function ai() {
1469
+ function ci() {
1462
1470
  const e = _("paused"), n = C();
1463
- return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(ii, {}) : null;
1471
+ return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(si, {}) : null;
1464
1472
  }
1465
- const si = `${d.progress} ${d.trackInner}`, ci = `${d.trackFill} ${d.trackInner}`;
1473
+ const li = `${d.progress} ${d.trackInner}`, ri = `${d.trackFill} ${d.trackInner}`;
1466
1474
  function he({ className: e }) {
1467
1475
  const n = C(), { hasAnnotations: o, hasQuizmarkers: i, interactive: a } = S(), c = e ? `${d.timelineWrapper} ${e}` : d.timelineWrapper;
1468
1476
  return /* @__PURE__ */ s("div", { className: c, children: [
1469
- a ? /* @__PURE__ */ t(ai, {}) : null,
1470
- a || o || i ? /* @__PURE__ */ t(ti, {}) : null,
1477
+ a ? /* @__PURE__ */ t(ci, {}) : null,
1478
+ a || o || i ? /* @__PURE__ */ t(oi, {}) : null,
1471
1479
  /* @__PURE__ */ s(
1472
1480
  A.Root,
1473
1481
  {
@@ -1475,34 +1483,34 @@ function he({ className: e }) {
1475
1483
  tabIndex: n.state.interactionsDisabled ? -1 : 0,
1476
1484
  children: [
1477
1485
  /* @__PURE__ */ s(A.Track, { className: d.track, children: [
1478
- /* @__PURE__ */ t(A.Progress, { className: si }),
1479
- /* @__PURE__ */ t(A.TrackFill, { className: ci })
1486
+ /* @__PURE__ */ t(A.Progress, { className: li }),
1487
+ /* @__PURE__ */ t(A.TrackFill, { className: ri })
1480
1488
  ] }),
1481
1489
  /* @__PURE__ */ t(A.Thumb, { className: d.thumb })
1482
1490
  ]
1483
1491
  }
1484
1492
  ),
1485
- /* @__PURE__ */ t(ni, {})
1493
+ /* @__PURE__ */ t(ii, {})
1486
1494
  ] });
1487
1495
  }
1488
- const li = "_wrapper_12cb0_1", ri = "_track_12cb0_6", ui = "_thumb_12cb0_18", di = "_track-fill_12cb0_32", mi = "_root_12cb0_51", F = {
1489
- wrapper: li,
1490
- track: ri,
1491
- thumb: ui,
1496
+ const ui = "_wrapper_12cb0_1", di = "_track_12cb0_6", mi = "_thumb_12cb0_18", hi = "_track-fill_12cb0_32", pi = "_root_12cb0_51", F = {
1497
+ wrapper: ui,
1498
+ track: di,
1499
+ thumb: mi,
1492
1500
  "track-fill": "_track-fill_12cb0_32",
1493
- trackFill: di,
1494
- root: mi
1501
+ trackFill: hi,
1502
+ root: pi
1495
1503
  };
1496
- function hi() {
1504
+ function _i() {
1497
1505
  const e = _("volume"), n = _("muted"), o = C(), i = n || e === 0, { t: a } = v();
1498
1506
  return /* @__PURE__ */ s("div", { className: F.wrapper, children: [
1499
1507
  /* @__PURE__ */ t(
1500
- Xe,
1508
+ Je,
1501
1509
  {
1502
1510
  tabIndex: o.state.interactionsDisabled ? -1 : 0,
1503
1511
  className: "controls-button",
1504
1512
  "aria-label": a(i ? "VOLUME" : "MUTE"),
1505
- children: i ? /* @__PURE__ */ t(Ve, { className: "controls-button-icon" }) : e < 0.5 ? /* @__PURE__ */ t(Be, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Ee, { className: "controls-button-icon" })
1513
+ children: i ? /* @__PURE__ */ t(Re, { className: "controls-button-icon" }) : e < 0.5 ? /* @__PURE__ */ t(Ve, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Be, { className: "controls-button-icon" })
1506
1514
  }
1507
1515
  ),
1508
1516
  /* @__PURE__ */ s(
@@ -1556,8 +1564,8 @@ const pe = {
1556
1564
  decreasePlaybackRate: {
1557
1565
  keys: ["a"],
1558
1566
  onKeyUp({ event: e, player: n, remote: o }) {
1559
- const a = B.indexOf(n.playbackRate) - 1;
1560
- a >= 0 && (o.changePlaybackRate(B[a]), n.$state.lastKeyboardAction.set({
1567
+ const a = V.indexOf(n.playbackRate) - 1;
1568
+ a >= 0 && (o.changePlaybackRate(V[a]), n.$state.lastKeyboardAction.set({
1561
1569
  action: "decreasePlaybackRate",
1562
1570
  event: e
1563
1571
  }));
@@ -1566,8 +1574,8 @@ const pe = {
1566
1574
  increasePlaybackRate: {
1567
1575
  keys: ["d"],
1568
1576
  onKeyUp({ event: e, player: n, remote: o }) {
1569
- const a = B.indexOf(n.playbackRate) + 1;
1570
- a < B.length && (o.changePlaybackRate(B[a]), n.$state.lastKeyboardAction.set({
1577
+ const a = V.indexOf(n.playbackRate) + 1;
1578
+ a < V.length && (o.changePlaybackRate(V[a]), n.$state.lastKeyboardAction.set({
1571
1579
  action: "increasePlaybackRate",
1572
1580
  event: e
1573
1581
  }));
@@ -1604,7 +1612,7 @@ const pe = {
1604
1612
  function _e(e) {
1605
1613
  return typeof e == "number" && !isNaN(e);
1606
1614
  }
1607
- function pi(e, n = 1e3) {
1615
+ function fi(e, n = 1e3) {
1608
1616
  let o = !1;
1609
1617
  return () => {
1610
1618
  o || (e(), o = !0, setTimeout(() => {
@@ -1623,7 +1631,7 @@ const fe = {
1623
1631
  invert: !1,
1624
1632
  comments: !1
1625
1633
  };
1626
- class _i {
1634
+ class vi {
1627
1635
  constructor() {
1628
1636
  N(this, "playerId", "studio-player");
1629
1637
  N(this, "mediaId", null);
@@ -1635,7 +1643,7 @@ class _i {
1635
1643
  const n = (this.time ?? 0).toString();
1636
1644
  localStorage.setItem(this.mediaId, n);
1637
1645
  });
1638
- N(this, "saveTimeThrottled", pi(this.saveTime, 1e3));
1646
+ N(this, "saveTimeThrottled", fi(this.saveTime, 1e3));
1639
1647
  // only used for useStudioPlayer hook's state initialization
1640
1648
  N(this, "initializeState", (n) => {
1641
1649
  const o = localStorage.getItem(this.playerId);
@@ -1723,8 +1731,8 @@ class _i {
1723
1731
  localStorage.setItem(this.playerId, n);
1724
1732
  }
1725
1733
  }
1726
- function fi(e, n, o, i) {
1727
- const a = Z(() => new _i(), []), [c, l] = M(
1734
+ function Ci(e, n, o, i) {
1735
+ const a = Z(() => new vi(), []), [c, l] = T(
1728
1736
  a.initializeState(i)
1729
1737
  ), u = p(
1730
1738
  (f) => {
@@ -1790,9 +1798,9 @@ function fi(e, n, o, i) {
1790
1798
  storage: a
1791
1799
  };
1792
1800
  }
1793
- const vi = {}, X = () => {
1801
+ const gi = {}, J = () => {
1794
1802
  };
1795
- function Pi({
1803
+ function Ti({
1796
1804
  title: e,
1797
1805
  playerRef: n,
1798
1806
  src: o,
@@ -1804,26 +1812,27 @@ function Pi({
1804
1812
  annotations: m = [],
1805
1813
  quizMarkers: h = [],
1806
1814
  interactive: g = !1,
1807
- onAnnotationClick: y = X,
1808
- onQuizMarkerClick: k = X,
1809
- onInteractivePinClick: b = X,
1815
+ onAnnotationClick: y = J,
1816
+ onQuizMarkerClick: k = J,
1817
+ onInteractivePinClick: b = J,
1810
1818
  interactiveMenuElements: f = [],
1811
1819
  darkMode: w = !1,
1812
- autoLoadCaptionSrc: T = "",
1820
+ autoLoadCaptionSrc: M = "",
1813
1821
  forceComments: ae,
1814
- disableCaptionSettings: Q,
1815
- startAt: Oe
1822
+ disableCaptionSettings: Y,
1823
+ startAt: Oe,
1824
+ crossOrigin: Fe
1816
1825
  }) {
1817
- const { contextValue: se, shortcuts: Fe, storage: Ze } = fi(
1826
+ const { contextValue: se, shortcuts: Ze, storage: $e } = Ci(
1818
1827
  c,
1819
1828
  ae ?? !1,
1820
- Q ?? !1,
1829
+ Y ?? !1,
1821
1830
  Oe
1822
1831
  ), { i18n: ce } = v();
1823
- return R(() => {
1832
+ return E(() => {
1824
1833
  ce.changeLanguage(u);
1825
1834
  }, [ce, u]), /* @__PURE__ */ t(
1826
- rt,
1835
+ ut,
1827
1836
  {
1828
1837
  hideFullScreen: c,
1829
1838
  comments: l,
@@ -1836,42 +1845,43 @@ function Pi({
1836
1845
  interactiveMenuElements: f,
1837
1846
  darkMode: w,
1838
1847
  forceComments: ae ?? !1,
1839
- disableCaptionSettings: Q ?? !1,
1840
- children: /* @__PURE__ */ t(lt, { contextValue: se, children: /* @__PURE__ */ s(
1841
- Je,
1848
+ disableCaptionSettings: Y ?? !1,
1849
+ children: /* @__PURE__ */ t(rt, { contextValue: se, children: /* @__PURE__ */ s(
1850
+ et,
1842
1851
  {
1843
- storage: Ze,
1852
+ crossOrigin: Fe,
1853
+ storage: $e,
1844
1854
  title: e,
1845
1855
  src: o,
1846
- keyShortcuts: Fe,
1856
+ keyShortcuts: Ze,
1847
1857
  playsInline: !0,
1848
1858
  keyDisabled: se.state.interactionsDisabled,
1849
1859
  onTextTracksChange: (D) => {
1850
1860
  const le = D == null ? void 0 : D.findIndex(
1851
- ($e) => $e.src === T
1861
+ (Ke) => Ke.src === M
1852
1862
  );
1853
1863
  le > -1 && (D[le].mode = "showing");
1854
1864
  },
1855
1865
  children: [
1856
- /* @__PURE__ */ t(so, {}),
1857
- /* @__PURE__ */ s(et, { className: vi.mediaProvider, children: [
1858
- /* @__PURE__ */ t(ho, { src: a }),
1859
- /* @__PURE__ */ t(jn, {}),
1860
- /* @__PURE__ */ t(gt, {}),
1861
- /* @__PURE__ */ t(yt, { captions: i }),
1862
- /* @__PURE__ */ t(Rt, { comments: l }),
1863
- /* @__PURE__ */ t(bo, {}),
1864
- /* @__PURE__ */ t(eo, {})
1866
+ /* @__PURE__ */ t(lo, {}),
1867
+ /* @__PURE__ */ s(tt, { className: gi.mediaProvider, children: [
1868
+ /* @__PURE__ */ t(_o, { src: a }),
1869
+ /* @__PURE__ */ t(qn, {}),
1870
+ /* @__PURE__ */ t(bt, {}),
1871
+ /* @__PURE__ */ t(Lt, { captions: i }),
1872
+ /* @__PURE__ */ t(to, {}),
1873
+ /* @__PURE__ */ t(At, { comments: l }),
1874
+ /* @__PURE__ */ t(ko, {})
1865
1875
  ] }),
1866
1876
  /* @__PURE__ */ t(
1867
- Dt,
1877
+ zt,
1868
1878
  {
1869
1879
  darkMode: w,
1870
1880
  playerRef: n,
1871
- showCaptionsButton: !Q
1881
+ showCaptionsButton: !Y
1872
1882
  }
1873
1883
  ),
1874
- /* @__PURE__ */ t(ht, { annotations: m })
1884
+ /* @__PURE__ */ t(pt, { annotations: m })
1875
1885
  ]
1876
1886
  }
1877
1887
  ) })
@@ -1879,8 +1889,8 @@ function Pi({
1879
1889
  );
1880
1890
  }
1881
1891
  export {
1882
- Lt as CAPTION_FONT_SIZE_MULTIPLIERS,
1892
+ xt as CAPTION_FONT_SIZE_MULTIPLIERS,
1883
1893
  Se as COMMENT_DURATION,
1884
- B as PLAYBACK_RATES,
1885
- Pi as StudioPlayer
1894
+ V as PLAYBACK_RATES,
1895
+ Ti as StudioPlayer
1886
1896
  };