@instructure/studio-player 0.2.10 → 0.2.12

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-DAULLpyh.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 L, useState as M, useCallback as p, useEffect as E, 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 Je, VolumeSlider as z, MediaPlayer as Xe, MediaProvider as et } from "@vidstack/react";
7
- import { initReactI18next as tt, useTranslation as b } 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 xe, useInteractions as Le, 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 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 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-DRnzP2ly.js"), "./locales/kl.json": () => import("./kl-DAr1HilW.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,14 +35,14 @@ 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
  }) {
42
42
  return /* @__PURE__ */ t(Ne.Provider, { value: n, children: e });
43
43
  }
44
- function v() {
45
- const e = L(Ne);
44
+ function C() {
45
+ const e = x(Ne);
46
46
  if (!e)
47
47
  throw new Error(
48
48
  "useStudioPlayerContext must be used within a StudioPlayerContextProvider"
@@ -50,7 +50,7 @@ function v() {
50
50
  return e;
51
51
  }
52
52
  const Me = te(null);
53
- function rt({
53
+ function ut({
54
54
  hideFullScreen: e,
55
55
  comments: n,
56
56
  annotations: o,
@@ -61,11 +61,11 @@ function rt({
61
61
  onInteractivePinClick: u,
62
62
  interactiveMenuElements: m,
63
63
  darkMode: h,
64
- children: C,
64
+ children: g,
65
65
  forceComments: y,
66
66
  disableCaptionSettings: k
67
67
  }) {
68
- const g = {
68
+ const b = {
69
69
  hideFullScreen: e,
70
70
  comments: n,
71
71
  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: g, children: C });
85
+ return /* @__PURE__ */ t(Me.Provider, { value: b, children: g });
86
86
  }
87
87
  function S() {
88
- const e = L(Me);
88
+ const e = x(Me);
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 = v(), i = S(), [a, c] = M(
105
+ function pt({ annotations: e }) {
106
+ const n = q(), o = C(), i = S(), [a, c] = M(
107
107
  null
108
108
  ), l = p(
109
109
  (m) => {
@@ -113,17 +113,17 @@ function ht({ annotations: e }) {
113
113
  ), u = () => {
114
114
  i.interactive || (n == null || n.play(), o.enableInteractions()), c(null);
115
115
  };
116
- return E(() => {
116
+ return R(() => {
117
117
  if (!n)
118
118
  return;
119
119
  const m = [];
120
120
  for (const h of e) {
121
- const C = mt(h, l);
122
- n.addEventListener("time-update", C), m.push(C);
121
+ const g = ht(h, l);
122
+ n.addEventListener("time-update", g), m.push(g);
123
123
  }
124
124
  if (a) {
125
125
  const h = e.find(
126
- (C) => C.id === a.id
126
+ (g) => g.id === a.id
127
127
  );
128
128
  h ? c(h) : (c(null), o.enableInteractions());
129
129
  }
@@ -131,21 +131,21 @@ 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() {
148
+ function bt() {
149
149
  return /* @__PURE__ */ t("div", { className: U.mediaBufferingIndicator, children: /* @__PURE__ */ s(Y.Root, { className: U.mediaBufferingSpinner, size: 96, children: [
150
150
  /* @__PURE__ */ t(Y.Track, { className: U.mediaBufferingTrack, width: 8 }),
151
151
  /* @__PURE__ */ t(
@@ -164,8 +164,8 @@ const Te = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0
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 = v(), c = p(
167
+ function wt() {
168
+ const e = W(), n = _("textTrack"), o = _("hasCaptions"), i = n && Ue(n), a = C(), c = p(
169
169
  (l) => {
170
170
  e.toggleCaptions(l.nativeEvent);
171
171
  },
@@ -178,19 +178,20 @@ function bt() {
178
178
  className: "controls-button",
179
179
  onClick: c,
180
180
  "aria-label": "Captions",
181
+ "aria-pressed": i ? "true" : "false",
181
182
  tabIndex: a.state.interactionsDisabled ? -1 : 0,
182
183
  children: i ? /* @__PURE__ */ t(Ie, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Te, { className: "controls-button-icon" })
183
184
  }
184
185
  ) : null;
185
186
  }
186
- const wt = "_captions_13epz_1", kt = {
187
- captions: wt
187
+ const kt = "_captions_13epz_1", yt = {
188
+ captions: kt
188
189
  };
189
- function yt({ captions: e }) {
190
- const n = _("hasCaptions"), o = v();
190
+ function Lt({ captions: e }) {
191
+ const n = _("hasCaptions"), o = C();
191
192
  return /* @__PURE__ */ s(ee, { children: [
192
193
  e.map((i) => /* @__PURE__ */ t(
193
- Ue,
194
+ je,
194
195
  {
195
196
  kind: "subtitles",
196
197
  type: i.type,
@@ -210,12 +211,12 @@ function yt({ captions: e }) {
210
211
  "--captions-color": o.state.captionsInvertColors ? "rgba(22, 22, 22)" : "white",
211
212
  "--captions-background-color": o.state.captionsInvertColors ? "rgba(255, 255, 255, 0.75)" : "rgba(22, 22, 22, 0.75)"
212
213
  },
213
- children: /* @__PURE__ */ t(je, { className: kt.captions })
214
+ children: /* @__PURE__ */ t(qe, { className: yt.captions })
214
215
  }
215
216
  ) : null
216
217
  ] });
217
218
  }
218
- const B = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Lt = (e) => {
219
+ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Pt = (e) => {
219
220
  const [, n] = M({});
220
221
  return Z(() => {
221
222
  let o = [];
@@ -234,20 +235,20 @@ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Lt = (e)
234
235
  }
235
236
  };
236
237
  }, []);
237
- }, Pt = (e, n, o) => {
238
+ }, Nt = (e, n, o) => {
238
239
  let i = !1;
239
240
  return (a) => {
240
241
  const c = a.detail.currentTime;
241
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);
242
243
  };
243
- }, Nt = (e, n = 5) => {
244
- const o = q(), i = Lt(n);
245
- return E(() => {
244
+ }, Mt = (e, n = 5) => {
245
+ const o = q(), i = Pt(n);
246
+ return R(() => {
246
247
  if (!o)
247
248
  return;
248
249
  const a = [];
249
250
  for (const c of e) {
250
- const l = Pt(c, Se, i);
251
+ const l = Nt(c, Se, i);
251
252
  a.push(l), o.addEventListener("time-update", l);
252
253
  }
253
254
  return o.dispatchEvent(
@@ -260,103 +261,106 @@ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Lt = (e)
260
261
  i.clear();
261
262
  };
262
263
  }, [o, i, e]), i;
263
- }, 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", R = {
264
+ }, Tt = "_comments-overlay_2woxe_1", It = "_comments-container_2woxe_9", St = "_comment_2woxe_1", Ht = "_comment-text_2woxe_45", Vt = "_comment-author-avatar_2woxe_68", Bt = "_comment-author-name_2woxe_87", E = {
264
265
  "comments-overlay": "_comments-overlay_2woxe_1",
265
- commentsOverlay: Mt,
266
+ commentsOverlay: Tt,
266
267
  "comments-container": "_comments-container_2woxe_9",
267
- commentsContainer: Tt,
268
- comment: It,
268
+ commentsContainer: It,
269
+ comment: St,
269
270
  "comment-text": "_comment-text_2woxe_45",
270
- commentText: St,
271
+ commentText: Ht,
271
272
  "comment-author-avatar": "_comment-author-avatar_2woxe_68",
272
- commentAuthorAvatar: Ht,
273
+ commentAuthorAvatar: Vt,
273
274
  "comment-author-name": "_comment-author-name_2woxe_87",
274
- commentAuthorName: Vt
275
+ commentAuthorName: Bt
275
276
  };
276
- function Bt({ comment: e }) {
277
- return /* @__PURE__ */ s("div", { className: R.comment, onClick: e.onClick, children: [
277
+ function Et({ comment: e }) {
278
+ return /* @__PURE__ */ s("div", { className: E.comment, onClick: () => {
279
+ var n;
280
+ return (n = e.onClick) == null ? void 0 : n.call(e, e);
281
+ }, children: [
278
282
  /* @__PURE__ */ t(
279
283
  "img",
280
284
  {
281
- className: R.commentAuthorAvatar,
285
+ className: E.commentAuthorAvatar,
282
286
  src: e.user.avatar,
283
287
  alt: e.user.name
284
288
  }
285
289
  ),
286
- /* @__PURE__ */ t("span", { className: R.commentText, children: e.text }),
287
- /* @__PURE__ */ t("span", { className: R.commentAuthorName, children: e.user.name })
290
+ /* @__PURE__ */ t("span", { className: E.commentText, children: e.text }),
291
+ /* @__PURE__ */ t("span", { className: E.commentAuthorName, children: e.user.name })
288
292
  ] });
289
293
  }
290
294
  const Rt = 5;
291
- function Et({ comments: e }) {
292
- const n = v(), o = Nt(e, Rt), i = !!_("textTrack"), a = o.map((c) => /* @__PURE__ */ t(Bt, { comment: c }, c.id));
295
+ function At({ comments: e }) {
296
+ const n = C(), o = Mt(e, Rt), i = !!_("textTrack"), a = o.map((c) => /* @__PURE__ */ t(Et, { comment: c }, c.id));
293
297
  return e.length > 0 && n.state.commentsEnabled ? /* @__PURE__ */ t(
294
298
  "div",
295
299
  {
296
- className: R.commentsOverlay,
300
+ className: E.commentsOverlay,
297
301
  style: {
298
302
  flexDirection: n.state.captionPositionOnTop && i ? "column-reverse" : "column"
299
303
  },
300
- children: /* @__PURE__ */ t("div", { className: R.commentsContainer, children: i ? a.slice(-4) : a })
304
+ children: /* @__PURE__ */ t("div", { className: E.commentsContainer, children: i ? a.slice(-4) : a })
301
305
  }
302
306
  ) : null;
303
307
  }
304
- 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 = {
305
- 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", V = {
309
+ root: Ot,
306
310
  "left-controls": "_left-controls_1x28e_28",
307
- leftControls: Ot,
311
+ leftControls: Ft,
308
312
  "right-controls": "_right-controls_1x28e_34",
309
- rightControls: Ft,
310
- indicators: Zt,
313
+ rightControls: Zt,
314
+ indicators: $t,
311
315
  "normal-timeline": "_normal-timeline_1x28e_49",
312
- normalTimeline: $t,
316
+ normalTimeline: Kt,
313
317
  "compact-timeline": "_compact-timeline_1x28e_55",
314
- compactTimeline: Kt
318
+ compactTimeline: Dt
315
319
  };
316
- function Dt({
320
+ function zt({
317
321
  darkMode: e,
318
322
  playerRef: n,
319
323
  showCaptionsButton: o = !0
320
324
  }) {
321
325
  const i = q();
322
- return E(() => {
326
+ return R(() => {
323
327
  i && (i.remoteControl.pauseControls(), n && (n.current = i));
324
328
  }, [i, n]), /* @__PURE__ */ s("div", { "data-darkmode": e, className: V.root, children: [
325
329
  /* @__PURE__ */ t(he, { className: V.normalTimeline }),
326
330
  /* @__PURE__ */ s("div", { className: V.leftControls, children: [
327
- /* @__PURE__ */ t(ro, {}),
328
- /* @__PURE__ */ t(hi, {})
331
+ /* @__PURE__ */ t(uo, {}),
332
+ /* @__PURE__ */ t(pi, {})
329
333
  ] }),
330
- /* @__PURE__ */ t("div", { className: V.indicators, children: /* @__PURE__ */ t(yo, {}) }),
334
+ /* @__PURE__ */ t("div", { className: V.indicators, children: /* @__PURE__ */ t(Lo, {}) }),
331
335
  /* @__PURE__ */ t(he, { className: V.compactTimeline }),
332
336
  /* @__PURE__ */ s("div", { className: V.rightControls, children: [
333
- o && /* @__PURE__ */ t(bt, {}),
337
+ o && /* @__PURE__ */ t(wt, {}),
334
338
  /* @__PURE__ */ t(Rn, {}),
335
- /* @__PURE__ */ t(Yn, {})
339
+ /* @__PURE__ */ t(Xn, {})
336
340
  ] })
337
341
  ] });
338
342
  }
339
- 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 = {
340
344
  "menu-hint": "_menu-hint_k49ve_1",
341
- menuHint: Ut,
345
+ menuHint: jt,
342
346
  "menu-button": "_menu-button_k49ve_5",
343
- menuButton: jt,
347
+ menuButton: qt,
344
348
  "menu-label": "_menu-label_k49ve_37",
345
- menuLabel: qt,
349
+ menuLabel: Wt,
346
350
  "menu-icon": "_menu-icon_k49ve_42",
347
- menuIcon: Wt
351
+ menuIcon: Gt
348
352
  };
349
353
  function $({ label: e, hint: n, onClick: o, Icon: i }) {
350
354
  return /* @__PURE__ */ s("button", { type: "button", className: j.menuButton, onClick: o, children: [
351
355
  i && /* @__PURE__ */ t(i, { className: j.menuIcon }),
352
356
  /* @__PURE__ */ t("span", { className: j.menuLabel, children: e }),
353
357
  /* @__PURE__ */ t("span", { className: j.menuHint, children: n }),
354
- /* @__PURE__ */ t(zt, {})
358
+ /* @__PURE__ */ t(Ut, {})
355
359
  ] });
356
360
  }
357
- 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" }) });
358
- function Qt() {
359
- const e = L(P), n = _("playbackRate"), { t: o } = b(), i = p(() => {
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() {
363
+ const e = x(P), n = _("playbackRate"), { t: o } = v(), i = p(() => {
360
364
  e && e.setPage("speed");
361
365
  }, [e]);
362
366
  return e ? /* @__PURE__ */ t(
@@ -365,12 +369,12 @@ function Qt() {
365
369
  label: o("PLAYBACK_SPEED"),
366
370
  hint: `${n}x`,
367
371
  onClick: i,
368
- Icon: Gt
372
+ Icon: Qt
369
373
  }
370
374
  ) : null;
371
375
  }
372
- function Yt() {
373
- const e = L(P), n = _("hasCaptions"), o = _("textTrack"), { t: i } = b(), a = p(() => {
376
+ function Xt() {
377
+ const e = x(P), n = _("hasCaptions"), o = _("textTrack"), { t: i } = v(), a = p(() => {
374
378
  e && e.setPage("captions");
375
379
  }, [e]);
376
380
  return e && n ? /* @__PURE__ */ t(
@@ -391,8 +395,8 @@ const Jt = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0
391
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" })
392
396
  ] })
393
397
  ] });
394
- function Xt() {
395
- const e = L(P), n = _("autoQuality"), o = _("quality"), { t: i } = b(), a = p(() => {
398
+ function en() {
399
+ const e = x(P), n = _("autoQuality"), o = _("quality"), { t: i } = v(), a = p(() => {
396
400
  e && e.setPage("quality");
397
401
  }, [e]);
398
402
  return e && o ? /* @__PURE__ */ t(
@@ -405,19 +409,19 @@ function Xt() {
405
409
  }
406
410
  ) : null;
407
411
  }
408
- 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 = {
409
413
  "switch-track": "_switch-track_vptv3_1",
410
- switchTrack: nn,
414
+ switchTrack: on,
411
415
  "switch-thumb": "_switch-thumb_vptv3_11",
412
- switchThumb: on,
416
+ switchThumb: an,
413
417
  "switch-icon": "_switch-icon_vptv3_25",
414
- switchIcon: an,
418
+ switchIcon: sn,
415
419
  "switch-body": "_switch-body_vptv3_31",
416
- switchBody: sn,
420
+ switchBody: cn,
417
421
  "switch-label": "_switch-label_vptv3_68",
418
- switchLabel: cn,
422
+ switchLabel: ln,
419
423
  "menu-icon": "_menu-icon_vptv3_72",
420
- menuIcon: ln
424
+ menuIcon: rn
421
425
  };
422
426
  function ne({
423
427
  label: e,
@@ -443,18 +447,18 @@ function ne({
443
447
  children: [
444
448
  i && /* @__PURE__ */ t(i, { className: I.menuIcon }),
445
449
  /* @__PURE__ */ t("span", { className: I.switchLabel, children: e }),
446
- /* @__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 }) }) })
447
451
  ]
448
452
  }
449
453
  );
450
454
  }
451
- 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" }) });
452
- function un() {
453
- const { t: e } = b(), n = S(), o = v();
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() {
457
+ const { t: e } = v(), n = S(), o = C();
454
458
  return !n.forceComments && n.hasComments ? /* @__PURE__ */ t(
455
459
  ne,
456
460
  {
457
- Icon: rn,
461
+ Icon: un,
458
462
  label: e("COMMENTS"),
459
463
  onClick: o.toggleComments,
460
464
  checked: o.state.commentsEnabled
@@ -462,7 +466,7 @@ function un() {
462
466
  ) : null;
463
467
  }
464
468
  function H(e) {
465
- E(() => {
469
+ R(() => {
466
470
  const n = (o) => {
467
471
  o.key === "Escape" && (e == null || e());
468
472
  };
@@ -471,40 +475,40 @@ function H(e) {
471
475
  };
472
476
  }, []);
473
477
  }
474
- const dn = "_main-menu_7h96l_1", mn = {
478
+ const mn = "_main-menu_7h96l_1", hn = {
475
479
  "main-menu": "_main-menu_7h96l_1",
476
- mainMenu: dn
480
+ mainMenu: mn
477
481
  };
478
- function hn() {
479
- const e = L(P);
480
- return H(e == null ? void 0 : e.toggle), /* @__PURE__ */ s("div", { className: mn.mainMenu, children: [
481
- /* @__PURE__ */ t(Qt, {}),
482
+ function pn() {
483
+ const e = x(P);
484
+ return H(e == null ? void 0 : e.toggle), /* @__PURE__ */ s("div", { className: hn.mainMenu, children: [
482
485
  /* @__PURE__ */ t(Yt, {}),
483
- /* @__PURE__ */ t(un, {}),
484
- /* @__PURE__ */ t(Xt, {})
486
+ /* @__PURE__ */ t(Xt, {}),
487
+ /* @__PURE__ */ t(dn, {}),
488
+ /* @__PURE__ */ t(en, {})
485
489
  ] });
486
490
  }
487
- 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 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" }) }), _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 = {
488
492
  "menu-container": "_menu-container_1bjr3_1",
489
- menuContainer: pn,
493
+ menuContainer: _n,
490
494
  "menu-options": "_menu-options_1bjr3_6",
491
- menuOptions: _n,
495
+ menuOptions: fn,
492
496
  "menu-heading": "_menu-heading_1bjr3_11",
493
- menuHeading: fn,
497
+ menuHeading: vn,
494
498
  "check-icon": "_check-icon_1bjr3_27",
495
- checkIcon: vn,
499
+ checkIcon: Cn,
496
500
  "menu-item-label": "_menu-item-label_1bjr3_33",
497
- menuItemLabel: Cn,
501
+ menuItemLabel: gn,
498
502
  "menu-item": "_menu-item_1bjr3_33",
499
- menuItem: gn,
503
+ menuItem: bn,
500
504
  "menu-back-button": "_menu-back-button_1bjr3_66",
501
- menuBackButton: bn
505
+ menuBackButton: wn
502
506
  };
503
- function wn() {
504
- const e = L(P), n = qe({
507
+ function kn() {
508
+ const e = x(P), n = We({
505
509
  rates: B,
506
510
  normalLabel: "1x"
507
- }), { t: o } = b();
511
+ }), { t: o } = v();
508
512
  return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
509
513
  /* @__PURE__ */ s(
510
514
  "button",
@@ -538,8 +542,8 @@ function wn() {
538
542
  )) })
539
543
  ] }) : null;
540
544
  }
541
- function kn() {
542
- const e = L(P), n = _("textTrack"), { t: o } = b(), i = p(() => {
545
+ function yn() {
546
+ const e = x(P), n = _("textTrack"), { t: o } = v(), i = p(() => {
543
547
  e && e.setPage("captionLanguage");
544
548
  }, [e]);
545
549
  return e ? /* @__PURE__ */ t(
@@ -551,8 +555,8 @@ function kn() {
551
555
  }
552
556
  ) : null;
553
557
  }
554
- function yn() {
555
- const { t: e } = b(), n = v(), o = L(P), i = p(() => {
558
+ function Ln() {
559
+ const { t: e } = v(), n = C(), o = x(P), i = p(() => {
556
560
  o && o.setPage("captionFontSize");
557
561
  }, [o]);
558
562
  return o ? /* @__PURE__ */ t(
@@ -565,7 +569,7 @@ function yn() {
565
569
  ) : null;
566
570
  }
567
571
  function xn() {
568
- const { t: e } = b(), n = v();
572
+ const { t: e } = v(), n = C();
569
573
  return /* @__PURE__ */ t(
570
574
  ne,
571
575
  {
@@ -575,8 +579,8 @@ function xn() {
575
579
  }
576
580
  );
577
581
  }
578
- function Ln() {
579
- const { t: e } = b(), n = v();
582
+ function Pn() {
583
+ const { t: e } = v(), n = C();
580
584
  return /* @__PURE__ */ t(
581
585
  ne,
582
586
  {
@@ -586,8 +590,8 @@ function Ln() {
586
590
  }
587
591
  );
588
592
  }
589
- function Pn() {
590
- const e = L(P), { t: n } = b(), { disableCaptionSettings: o } = v();
593
+ function Nn() {
594
+ const e = x(P), { t: n } = v(), { disableCaptionSettings: o } = C();
591
595
  return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
592
596
  /* @__PURE__ */ s(
593
597
  "button",
@@ -602,14 +606,14 @@ function Pn() {
602
606
  }
603
607
  ),
604
608
  /* @__PURE__ */ t("strong", { className: r.menuHeading, children: n("CAPTIONS") }),
605
- !o && /* @__PURE__ */ t(kn, {}),
606
- /* @__PURE__ */ t(yn, {}),
609
+ !o && /* @__PURE__ */ t(yn, {}),
610
+ /* @__PURE__ */ t(Ln, {}),
607
611
  /* @__PURE__ */ t(xn, {}),
608
- /* @__PURE__ */ t(Ln, {})
612
+ /* @__PURE__ */ t(Pn, {})
609
613
  ] }) : null;
610
614
  }
611
- function Nn() {
612
- const e = L(P), n = We(), { t: o } = b();
615
+ function Mn() {
616
+ const e = x(P), n = Ge(), { t: o } = v();
613
617
  return H(e == null ? void 0 : e.backToCaptions), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
614
618
  /* @__PURE__ */ s(
615
619
  "button",
@@ -643,8 +647,8 @@ function Nn() {
643
647
  )) })
644
648
  ] }) : null;
645
649
  }
646
- function Mn() {
647
- const e = v(), n = L(P), { t: o } = b();
650
+ function Tn() {
651
+ const e = C(), n = x(P), { t: o } = v();
648
652
  return H(n == null ? void 0 : n.backToCaptions), n ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
649
653
  /* @__PURE__ */ s(
650
654
  "button",
@@ -681,8 +685,8 @@ function Mn() {
681
685
  )) })
682
686
  ] }) : null;
683
687
  }
684
- function Tn() {
685
- const e = L(P), n = Ge({ sort: "descending" }), o = _("autoQuality"), { t: i } = b();
688
+ function In() {
689
+ const e = x(P), n = Qe({ sort: "descending" }), o = _("autoQuality"), { t: i } = v();
686
690
  return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
687
691
  /* @__PURE__ */ s(
688
692
  "button",
@@ -716,15 +720,15 @@ function Tn() {
716
720
  )) })
717
721
  ] }) : null;
718
722
  }
719
- const In = {
720
- main: hn,
721
- speed: wn,
722
- captions: Pn,
723
- captionLanguage: Nn,
724
- captionFontSize: Mn,
725
- quality: Tn
723
+ const Sn = {
724
+ main: pn,
725
+ speed: kn,
726
+ captions: Nn,
727
+ captionLanguage: Mn,
728
+ captionFontSize: Tn,
729
+ quality: In
726
730
  };
727
- function Sn() {
731
+ function Hn() {
728
732
  const [e, n] = M("main"), [o, i] = M(!1), a = p(() => {
729
733
  i((T) => !T);
730
734
  }, []), c = p((T) => {
@@ -733,7 +737,7 @@ function Sn() {
733
737
  n("captions");
734
738
  }, []), u = p(() => {
735
739
  n("main");
736
- }, []), m = Z(() => In[e], [e]), h = ve(null), { refs: C, floatingStyles: y, context: k } = be({
740
+ }, []), m = Z(() => Sn[e], [e]), h = ve(null), { refs: g, floatingStyles: y, context: k } = be({
737
741
  open: o,
738
742
  onOpenChange: (T) => {
739
743
  i(T), u();
@@ -746,7 +750,7 @@ function Sn() {
746
750
  element: h
747
751
  })
748
752
  ]
749
- }), g = xe(k, { escapeKey: !1 }), { getReferenceProps: f, getFloatingProps: w } = Le([g]);
753
+ }), b = Le(k, { escapeKey: !1 }), { getReferenceProps: f, getFloatingProps: w } = xe([b]);
750
754
  return {
751
755
  Page: m,
752
756
  open: o,
@@ -755,17 +759,17 @@ function Sn() {
755
759
  backToCaptions: l,
756
760
  backToMain: u,
757
761
  arrowRef: h,
758
- refs: C,
762
+ refs: g,
759
763
  floatingStyles: y,
760
764
  context: k,
761
765
  getReferenceProps: f,
762
766
  getFloatingProps: w
763
767
  };
764
768
  }
765
- 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 Vn = (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" }) }), Bn = "_settings-menu_hxlsv_1", En = "_arrow_hxlsv_15", de = {
766
770
  "settings-menu": "_settings-menu_hxlsv_1",
767
- settingsMenu: Vn,
768
- arrow: Bn
771
+ settingsMenu: Bn,
772
+ arrow: En
769
773
  };
770
774
  function Rn() {
771
775
  const {
@@ -779,9 +783,9 @@ function Rn() {
779
783
  getReferenceProps: u,
780
784
  open: m,
781
785
  refs: h,
782
- setPage: C,
786
+ setPage: g,
783
787
  toggle: y
784
- } = Sn(), k = v(), { t: g } = b();
788
+ } = Hn(), k = C(), { t: b } = v();
785
789
  return /* @__PURE__ */ s(ee, { children: [
786
790
  /* @__PURE__ */ t(
787
791
  "button",
@@ -789,15 +793,15 @@ function Rn() {
789
793
  ref: h.setReference,
790
794
  type: "button",
791
795
  className: "controls-button",
792
- "aria-label": g("SETTINGS"),
796
+ "aria-label": b("SETTINGS"),
793
797
  onClick: y,
794
798
  "aria-expanded": m,
795
799
  tabIndex: k != null && k.state.interactionsDisabled ? -1 : 0,
796
800
  ...u(),
797
- children: /* @__PURE__ */ t(Hn, { className: "controls-button-icon icon-rotate" })
801
+ children: /* @__PURE__ */ t(Vn, { className: "controls-button-icon icon-rotate" })
798
802
  }
799
803
  ),
800
- 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(
801
805
  "div",
802
806
  {
803
807
  className: de.settingsMenu,
@@ -808,7 +812,7 @@ function Rn() {
808
812
  /* @__PURE__ */ t(
809
813
  P.Provider,
810
814
  {
811
- value: { setPage: C, backToMain: i, backToCaptions: o, toggle: y },
815
+ value: { setPage: g, backToMain: i, backToCaptions: o, toggle: y },
812
816
  children: /* @__PURE__ */ t(e, {})
813
817
  }
814
818
  ),
@@ -828,118 +832,119 @@ function Rn() {
828
832
  function He(e, n = 1e3) {
829
833
  return function() {
830
834
  const i = _("lastKeyboardAction"), [a, c] = M(!1), l = p(() => c(!1), []);
831
- return E(() => {
835
+ return R(() => {
832
836
  c(!!i);
833
837
  const u = setTimeout(l, n);
834
838
  return () => clearTimeout(u);
835
839
  }, [i, n]), a ? /* @__PURE__ */ t(e, {}) : null;
836
840
  };
837
841
  }
838
- 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" }) }), 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: "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" }) }), 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", { 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", x = {
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" }) }), 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" }) }), 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 = {
839
843
  "feedback-overlay": "_feedback-overlay_v4lbu_1",
840
- feedbackOverlay: On,
844
+ feedbackOverlay: Fn,
841
845
  "feedback-message": "_feedback-message_v4lbu_14",
842
- feedbackMessage: Fn,
846
+ feedbackMessage: Zn,
843
847
  "feedback-icon": "_feedback-icon_v4lbu_30",
844
- feedbackIcon: Zn,
848
+ feedbackIcon: $n,
845
849
  "feedback-icon-animation": "_feedback-icon-animation_v4lbu_1",
846
- feedbackIconAnimation: $n
850
+ feedbackIconAnimation: Kn
847
851
  };
848
- function Kn() {
852
+ function Dn() {
849
853
  var o;
850
854
  const e = Ce();
851
855
  switch ((o = e.lastKeyboardAction) == null ? void 0 : o.action) {
852
856
  case "togglePaused":
853
- return /* @__PURE__ */ t("i", { className: x.feedbackIcon, children: e.paused ? /* @__PURE__ */ t(oe, {}) : /* @__PURE__ */ t(ie, {}) });
857
+ return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: e.paused ? /* @__PURE__ */ t(oe, {}) : /* @__PURE__ */ t(ie, {}) });
854
858
  case "toggleCaptions":
855
859
  case "nextCaptionLanguage":
856
860
  case "previousCaptionLanguage":
857
- return e.hasCaptions ? /* @__PURE__ */ t("i", { className: x.feedbackIcon, children: /* @__PURE__ */ t(Ie, {}) }) : null;
861
+ return e.hasCaptions ? /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(Ie, {}) }) : null;
858
862
  case "volumeUp":
859
863
  case "volumeDown":
860
864
  case "toggleMuted":
861
- return /* @__PURE__ */ t("i", { className: x.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t(Ve, {}) : e.volume >= 0.5 ? /* @__PURE__ */ t(Re, {}) : /* @__PURE__ */ t(Be, {}) });
865
+ 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, {}) });
862
866
  case "seekForward":
863
867
  case "seekForward10":
864
- return /* @__PURE__ */ t("i", { className: x.feedbackIcon, children: /* @__PURE__ */ t(En, { className: "right" }) });
868
+ return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(An, { className: "right" }) });
865
869
  case "seekBackward":
866
870
  case "seekBackward10":
867
- return /* @__PURE__ */ t("i", { className: x.feedbackIcon, children: /* @__PURE__ */ t(An, { className: "left" }) });
871
+ return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(On, { className: "left" }) });
868
872
  default:
869
873
  return null;
870
874
  }
871
875
  }
872
- function Dn() {
876
+ function zn() {
873
877
  var i;
874
- const { t: e } = b(), n = Ce();
878
+ const { t: e } = v(), n = Ce();
875
879
  switch ((i = n.lastKeyboardAction) == null ? void 0 : i.action) {
876
880
  case "toggleCaptions":
877
881
  case "nextCaptionLanguage":
878
882
  case "previousCaptionLanguage":
879
- return /* @__PURE__ */ t("div", { className: x.feedbackMessage, children: n.textTrack ? e("CAPTION_LANGUAGE", { language: n.textTrack.label }) : `${e("CAPTIONS")}: ${e("OFF")}` });
883
+ return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: n.textTrack ? e("CAPTION_LANGUAGE", { language: n.textTrack.label }) : `${e("CAPTIONS")}: ${e("OFF")}` });
880
884
  case "volumeUp":
881
885
  case "volumeDown":
882
886
  case "toggleMuted":
883
- return /* @__PURE__ */ t("div", { className: x.feedbackMessage, children: n.muted || n.volume === 0 ? e("MUTED") : e("VOLUME", { volume: (n.volume * 100).toFixed(0) }) });
887
+ return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: n.muted || n.volume === 0 ? e("MUTED") : e("VOLUME", { volume: (n.volume * 100).toFixed(0) }) });
884
888
  case "increasePlaybackRate":
885
889
  case "decreasePlaybackRate":
886
890
  case "resetPlaybackRate":
887
- return /* @__PURE__ */ t("div", { className: x.feedbackMessage, children: e("PLAYBACK_SPEED_MESSAGE", { speed: n.playbackRate }) });
891
+ return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("PLAYBACK_SPEED_MESSAGE", { speed: n.playbackRate }) });
888
892
  case "seekForward":
889
- return /* @__PURE__ */ t("div", { className: x.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 5 }) });
893
+ return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 5 }) });
890
894
  case "seekForward10":
891
- return /* @__PURE__ */ t("div", { className: x.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 10 }) });
895
+ return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 10 }) });
892
896
  case "seekBackward":
893
- return /* @__PURE__ */ t("div", { className: x.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 5 }) });
897
+ return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 5 }) });
894
898
  case "seekBackward10":
895
- return /* @__PURE__ */ t("div", { className: x.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 10 }) });
899
+ return /* @__PURE__ */ t("div", { className: L.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 10 }) });
896
900
  default:
897
901
  return null;
898
902
  }
899
903
  }
900
- const zn = He(Kn, 500), Un = He(Dn, 1e3);
901
- function jn() {
902
- return /* @__PURE__ */ s("div", { className: x.feedbackOverlay, children: [
903
- /* @__PURE__ */ t(zn, {}),
904
- /* @__PURE__ */ t(Un, {})
904
+ const Un = He(Dn, 500), jn = He(zn, 1e3);
905
+ function qn() {
906
+ return /* @__PURE__ */ s("div", { className: L.feedbackOverlay, children: [
907
+ /* @__PURE__ */ t(Un, {}),
908
+ /* @__PURE__ */ t(jn, {})
905
909
  ] });
906
910
  }
907
- 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 = {
908
912
  "full-screen-button": "_full-screen-button_1xm32_2",
909
- fullScreenButton: Gn
913
+ fullScreenButton: Qn
910
914
  };
911
- function Yn() {
912
- const e = _("fullscreen"), n = v();
913
- return S().hideFullScreen ? null : /* @__PURE__ */ t(
915
+ function Xn() {
916
+ const e = _("fullscreen"), n = C(), o = S(), { t: i } = v();
917
+ return o.hideFullScreen ? null : /* @__PURE__ */ t(
914
918
  ge,
915
919
  {
916
920
  tabIndex: n.state.interactionsDisabled ? -1 : 0,
917
- className: `controls-button ${Qn.fullScreenButton}`,
918
- children: e ? /* @__PURE__ */ t(Wn, { className: "controls-button-icon" }) : /* @__PURE__ */ t(qn, { className: "controls-button-icon" })
921
+ className: `controls-button ${Yn.fullScreenButton}`,
922
+ "aria-label": i(e ? "EXIT_FSCREEN" : "FSCREEN"),
923
+ children: e ? /* @__PURE__ */ t(Gn, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Wn, { className: "controls-button-icon" })
919
924
  }
920
925
  );
921
926
  }
922
- const Jn = "_gestures-container_1fn3b_1", Xn = "_gesture_1fn3b_1", me = {
927
+ const Jn = "_gestures-container_1fn3b_1", eo = "_gesture_1fn3b_1", me = {
923
928
  "gestures-container": "_gestures-container_1fn3b_1",
924
929
  gesturesContainer: Jn,
925
- gesture: Xn
930
+ gesture: eo
926
931
  };
927
- function eo() {
932
+ function to() {
928
933
  const e = W(), n = () => {
929
934
  e.togglePaused();
930
935
  };
931
936
  return /* @__PURE__ */ t("div", { className: me.gesturesContainer, children: /* @__PURE__ */ t("div", { "aria-hidden": !0, className: me.gesture, onClick: n }) });
932
937
  }
933
- 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" }) }), 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" }) }), no = "_keyboard-shortcuts-overlay_y5kv6_1", oo = "_keyboard-shortcuts-button_y5kv6_67", io = "_close-button_y5kv6_93", X = {
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" }) }), 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" }) }), oo = "_keyboard-shortcuts-overlay_y5kv6_1", io = "_keyboard-shortcuts-button_y5kv6_67", ao = "_close-button_y5kv6_93", J = {
934
939
  "keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_y5kv6_1",
935
- keyboardShortcutsOverlay: no,
940
+ keyboardShortcutsOverlay: oo,
936
941
  "keyboard-shortcuts-button": "_keyboard-shortcuts-button_y5kv6_67",
937
- keyboardShortcutsButton: oo,
942
+ keyboardShortcutsButton: io,
938
943
  "close-button": "_close-button_y5kv6_93",
939
- closeButton: io
944
+ closeButton: ao
940
945
  };
941
- function ao({ onClose: e }) {
942
- const { t: n } = b();
946
+ function so({ onClose: e }) {
947
+ const { t: n } = v();
943
948
  H(e);
944
949
  const o = (i) => {
945
950
  i && i.focus();
@@ -947,7 +952,7 @@ function ao({ onClose: e }) {
947
952
  return /* @__PURE__ */ s(
948
953
  "div",
949
954
  {
950
- className: X.keyboardShortcutsOverlay,
955
+ className: J.keyboardShortcutsOverlay,
951
956
  tabIndex: 0,
952
957
  ref: o,
953
958
  children: [
@@ -957,10 +962,10 @@ function ao({ onClose: e }) {
957
962
  "button",
958
963
  {
959
964
  type: "button",
960
- className: X.closeButton,
965
+ className: J.closeButton,
961
966
  onClick: e,
962
967
  "aria-label": n("CLOSE"),
963
- children: /* @__PURE__ */ t(Ee, {})
968
+ children: /* @__PURE__ */ t(Re, {})
964
969
  }
965
970
  )
966
971
  ] }),
@@ -1051,134 +1056,135 @@ function ao({ onClose: e }) {
1051
1056
  }
1052
1057
  );
1053
1058
  }
1054
- function so() {
1055
- const [e, n] = M(!1), [o, i] = M(!1), [a, c] = M(!1), l = v(), u = _("playing"), m = W(), { t: h } = b(), C = p(() => {
1059
+ function co() {
1060
+ const [e, n] = M(!1), [o, i] = M(!1), [a, c] = M(!1), l = C(), u = _("playing"), m = W(), { t: h } = v(), g = p(() => {
1056
1061
  n(!0), l.disableInteractions(), u && (c(!0), m.pause());
1057
1062
  }, [u, m, l]), y = p(() => {
1058
1063
  n(!1), i(!0), l.enableInteractions(), a && (c(!1), m.play());
1059
1064
  }, [a, m, l]), k = p(
1060
- (g) => o && (g == null ? void 0 : g.focus()),
1065
+ (b) => o && (b == null ? void 0 : b.focus()),
1061
1066
  [o]
1062
1067
  );
1063
- return e ? /* @__PURE__ */ t(ao, { onClose: y }) : /* @__PURE__ */ t(
1068
+ return e ? /* @__PURE__ */ t(so, { onClose: y }) : /* @__PURE__ */ t(
1064
1069
  "button",
1065
1070
  {
1066
1071
  ref: k,
1067
1072
  "aria-label": h("KEYBOARD_SHORTCUTS"),
1068
1073
  type: "button",
1069
- className: X.keyboardShortcutsButton,
1070
- onClick: C,
1074
+ className: J.keyboardShortcutsButton,
1075
+ onClick: g,
1071
1076
  tabIndex: l.state.interactionsDisabled ? -1 : 0,
1072
- children: /* @__PURE__ */ t(to, {})
1077
+ children: /* @__PURE__ */ t(no, {})
1073
1078
  }
1074
1079
  );
1075
1080
  }
1076
- const co = "_play-pause-button_kyuc5_1", lo = {
1081
+ const lo = "_play-pause-button_kyuc5_1", ro = {
1077
1082
  "play-pause-button": "_play-pause-button_kyuc5_1",
1078
- playPauseButton: co
1083
+ playPauseButton: lo
1079
1084
  };
1080
- function ro() {
1081
- const e = q(), n = v(), o = _("paused");
1085
+ function uo() {
1086
+ const e = q(), n = C(), o = _("paused"), { t: i } = v();
1082
1087
  return e ? /* @__PURE__ */ t(
1083
- Qe,
1088
+ Ye,
1084
1089
  {
1090
+ "aria-label": i(o ? "PLAY" : "PAUSE"),
1085
1091
  tabIndex: n.state.interactionsDisabled ? -1 : 0,
1086
- className: `${lo.playPauseButton} controls-button`,
1087
- onKeyDown: (i) => {
1088
- i.key === " " && (e == null || e.$state.lastKeyboardAction.set({
1092
+ className: `${ro.playPauseButton} controls-button`,
1093
+ onKeyDown: (a) => {
1094
+ a.key === " " && (e == null || e.$state.lastKeyboardAction.set({
1089
1095
  action: "togglePaused",
1090
- event: i.nativeEvent
1096
+ event: a.nativeEvent
1091
1097
  }));
1092
1098
  },
1093
1099
  children: o ? /* @__PURE__ */ t(ie, { className: "controls-button-icon" }) : /* @__PURE__ */ t(oe, { className: "controls-button-icon" })
1094
1100
  }
1095
1101
  ) : null;
1096
1102
  }
1097
- const uo = "_poster_195hi_1", mo = {
1098
- poster: uo
1103
+ const mo = "_poster_195hi_1", ho = {
1104
+ poster: mo
1099
1105
  };
1100
- function ho({ src: e }) {
1106
+ function po({ src: e }) {
1101
1107
  const n = _("source");
1102
- return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(Ye, { src: e, className: mo.poster });
1108
+ return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(Xe, { src: e, className: ho.poster });
1103
1109
  }
1104
- 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 = {
1110
+ const _o = "_small-layout-overlay_1vli4_1", fo = "_small-layout-button_1vli4_14", vo = "_small-layout-icon-play_1vli4_24", Co = "_small-layout-icon-pause_1vli4_30", go = "_full-screen-close-icon_1vli4_36", bo = "_fade-out_1vli4_1", O = {
1105
1111
  "small-layout-overlay": "_small-layout-overlay_1vli4_1",
1106
- smallLayoutOverlay: po,
1112
+ smallLayoutOverlay: _o,
1107
1113
  "small-layout-button": "_small-layout-button_1vli4_14",
1108
- smallLayoutButton: _o,
1114
+ smallLayoutButton: fo,
1109
1115
  "small-layout-icon-play": "_small-layout-icon-play_1vli4_24",
1110
- smallLayoutIconPlay: fo,
1116
+ smallLayoutIconPlay: vo,
1111
1117
  "small-layout-icon-pause": "_small-layout-icon-pause_1vli4_30",
1112
- smallLayoutIconPause: vo,
1118
+ smallLayoutIconPause: Co,
1113
1119
  "full-screen-close-icon": "_full-screen-close-icon_1vli4_36",
1114
- fullScreenCloseIcon: Co,
1120
+ fullScreenCloseIcon: go,
1115
1121
  "fade-out": "_fade-out_1vli4_1",
1116
- fadeOut: go
1122
+ fadeOut: bo
1117
1123
  };
1118
- function bo() {
1124
+ function wo() {
1119
1125
  return /* @__PURE__ */ s("div", { className: O.smallLayoutOverlay, children: [
1120
- /* @__PURE__ */ t(ge, { className: O.fullScreenCloseIcon, children: /* @__PURE__ */ t(Ee, {}) }),
1126
+ /* @__PURE__ */ t(ge, { className: O.fullScreenCloseIcon, children: /* @__PURE__ */ t(Re, {}) }),
1121
1127
  /* @__PURE__ */ s("i", { className: O.smallLayoutButton, children: [
1122
1128
  /* @__PURE__ */ t(ie, { className: O.smallLayoutIconPlay }),
1123
1129
  /* @__PURE__ */ t(oe, { className: O.smallLayoutIconPause })
1124
1130
  ] })
1125
1131
  ] });
1126
1132
  }
1127
- const wo = "_time-indicator_1rlpb_1", ko = {
1133
+ const ko = "_time-indicator_1rlpb_1", yo = {
1128
1134
  "time-indicator": "_time-indicator_1rlpb_1",
1129
- timeIndicator: wo
1135
+ timeIndicator: ko
1130
1136
  };
1131
- function yo() {
1132
- return /* @__PURE__ */ s("div", { className: ko.timeIndicator, children: [
1137
+ function Lo() {
1138
+ return /* @__PURE__ */ s("div", { className: yo.timeIndicator, children: [
1133
1139
  /* @__PURE__ */ t(re, { type: "current" }),
1134
1140
  "/",
1135
1141
  /* @__PURE__ */ t(re, { type: "duration" })
1136
1142
  ] });
1137
1143
  }
1138
- const xo = "_comment-markers_49pse_1", Lo = "_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", Ro = "_annotation-pin_49pse_154", Eo = "_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 = {
1144
+ const xo = "_comment-markers_49pse_1", Po = "_comment-marker_49pse_1", No = "_timeline-wrapper_49pse_21", Mo = "_track_49pse_35", To = "_thumb_49pse_48", Io = "_root_49pse_62", So = "_track-inner_49pse_92", Ho = "_progress_49pse_98", Vo = "_track-fill_49pse_104", Bo = "_pins_49pse_121", Eo = "_pin-button_49pse_134", Ro = "_annotation-pin_49pse_154", Ao = "_quiz-pin_49pse_159", Oo = "_annotation-pin-child_49pse_164", Fo = "_quiz-pin-child_49pse_168", Zo = "_interactive-pin-container_49pse_173", $o = "_interactive-pin-wrapper_49pse_183", Ko = "_interactive-pin-icon_49pse_189", Do = "_interactive-pin_49pse_173", zo = "_bg_49pse_203", Uo = "_symbol_49pse_207", jo = "_interactive-pin-button_49pse_212", qo = "_interactive-pin-menu_49pse_232", Wo = "_interactive-pin-menu-item_49pse_246", Go = "_arrow_49pse_267", d = {
1139
1145
  "comment-markers": "_comment-markers_49pse_1",
1140
1146
  commentMarkers: xo,
1141
1147
  "comment-marker": "_comment-marker_49pse_1",
1142
- commentMarker: Lo,
1148
+ commentMarker: Po,
1143
1149
  "timeline-wrapper": "_timeline-wrapper_49pse_21",
1144
- timelineWrapper: Po,
1145
- track: No,
1146
- thumb: Mo,
1147
- root: To,
1150
+ timelineWrapper: No,
1151
+ track: Mo,
1152
+ thumb: To,
1153
+ root: Io,
1148
1154
  "track-inner": "_track-inner_49pse_92",
1149
- trackInner: Io,
1150
- progress: So,
1155
+ trackInner: So,
1156
+ progress: Ho,
1151
1157
  "track-fill": "_track-fill_49pse_104",
1152
- trackFill: Ho,
1153
- pins: Vo,
1158
+ trackFill: Vo,
1159
+ pins: Bo,
1154
1160
  "pin-button": "_pin-button_49pse_134",
1155
- pinButton: Bo,
1161
+ pinButton: Eo,
1156
1162
  "annotation-pin": "_annotation-pin_49pse_154",
1157
1163
  annotationPin: Ro,
1158
1164
  "quiz-pin": "_quiz-pin_49pse_159",
1159
- quizPin: Eo,
1165
+ quizPin: Ao,
1160
1166
  "annotation-pin-child": "_annotation-pin-child_49pse_164",
1161
- annotationPinChild: Ao,
1167
+ annotationPinChild: Oo,
1162
1168
  "quiz-pin-child": "_quiz-pin-child_49pse_168",
1163
- quizPinChild: Oo,
1169
+ quizPinChild: Fo,
1164
1170
  "interactive-pin-container": "_interactive-pin-container_49pse_173",
1165
- interactivePinContainer: Fo,
1171
+ interactivePinContainer: Zo,
1166
1172
  "interactive-pin-wrapper": "_interactive-pin-wrapper_49pse_183",
1167
- interactivePinWrapper: Zo,
1173
+ interactivePinWrapper: $o,
1168
1174
  "interactive-pin-icon": "_interactive-pin-icon_49pse_189",
1169
- interactivePinIcon: $o,
1175
+ interactivePinIcon: Ko,
1170
1176
  "interactive-pin": "_interactive-pin_49pse_173",
1171
- interactivePin: Ko,
1172
- bg: Do,
1173
- symbol: zo,
1177
+ interactivePin: Do,
1178
+ bg: zo,
1179
+ symbol: Uo,
1174
1180
  "interactive-pin-button": "_interactive-pin-button_49pse_212",
1175
- interactivePinButton: Uo,
1181
+ interactivePinButton: jo,
1176
1182
  "interactive-pin-menu": "_interactive-pin-menu_49pse_232",
1177
- interactivePinMenu: jo,
1183
+ interactivePinMenu: qo,
1178
1184
  "interactive-pin-menu-item": "_interactive-pin-menu-item_49pse_246",
1179
- interactivePinMenuItem: qo,
1180
- arrow: Wo
1181
- }, Go = {
1185
+ interactivePinMenuItem: Wo,
1186
+ arrow: Go
1187
+ }, Qo = {
1182
1188
  annotation: d.annotationPin,
1183
1189
  quiz: d.quizPin
1184
1190
  };
@@ -1188,7 +1194,7 @@ function Ae({
1188
1194
  children: o,
1189
1195
  onClick: i
1190
1196
  }) {
1191
- const a = v();
1197
+ const a = C();
1192
1198
  return /* @__PURE__ */ t(
1193
1199
  "button",
1194
1200
  {
@@ -1200,7 +1206,7 @@ function Ae({
1200
1206
  children: /* @__PURE__ */ s(
1201
1207
  "svg",
1202
1208
  {
1203
- className: Go[e],
1209
+ className: Qo[e],
1204
1210
  width: "26",
1205
1211
  height: "32",
1206
1212
  viewBox: "0 0 26 32",
@@ -1214,7 +1220,7 @@ function Ae({
1214
1220
  }
1215
1221
  );
1216
1222
  }
1217
- function Qo(e) {
1223
+ function Yo(e) {
1218
1224
  return /* @__PURE__ */ t(Ae, { type: "annotation", ...e, children: /* @__PURE__ */ t(
1219
1225
  "path",
1220
1226
  {
@@ -1227,7 +1233,7 @@ function Qo(e) {
1227
1233
  }
1228
1234
  ) });
1229
1235
  }
1230
- function Yo(e) {
1236
+ function Xo(e) {
1231
1237
  return /* @__PURE__ */ t(Ae, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ t("circle", { className: d.quizPinChild, cx: "13", cy: "13", r: "6" }) : /* @__PURE__ */ t(
1232
1238
  "text",
1233
1239
  {
@@ -1250,7 +1256,7 @@ function Jo(e, n) {
1250
1256
  onClick: () => n(o)
1251
1257
  }));
1252
1258
  }
1253
- function Xo(e, n) {
1259
+ function ei(e, n) {
1254
1260
  const o = /* @__PURE__ */ new Map();
1255
1261
  e.forEach((c) => {
1256
1262
  var u;
@@ -1270,12 +1276,12 @@ function Xo(e, n) {
1270
1276
  }), a++;
1271
1277
  }), i;
1272
1278
  }
1273
- function ei(e, n, o, i) {
1279
+ function ti(e, n, o, i) {
1274
1280
  switch (e.type) {
1275
1281
  case "annotation": {
1276
1282
  const a = () => i ? e.onClick() : o.seek(e.time);
1277
1283
  return /* @__PURE__ */ t(
1278
- Qo,
1284
+ Yo,
1279
1285
  {
1280
1286
  position: e.time / n * 100,
1281
1287
  onClick: a
@@ -1285,7 +1291,7 @@ function ei(e, n, o, i) {
1285
1291
  }
1286
1292
  case "quiz":
1287
1293
  return /* @__PURE__ */ t(
1288
- Yo,
1294
+ Xo,
1289
1295
  {
1290
1296
  position: e.time / n * 100,
1291
1297
  ordinal: e.ordinal,
@@ -1298,18 +1304,18 @@ function ei(e, n, o, i) {
1298
1304
  return null;
1299
1305
  }
1300
1306
  }
1301
- function ti() {
1307
+ function ni() {
1302
1308
  const e = W(), n = _("duration"), o = S(), i = Z(() => [
1303
1309
  ...Jo(
1304
1310
  o.annotations,
1305
1311
  o.onAnnotationClick
1306
1312
  ),
1307
- ...Xo(o.quizMarkers, o.onQuizMarkerClick)
1308
- ].sort((c, l) => c.time - l.time).map((c) => ei(c, n, e, o.interactive)), [o.annotations, o.quizMarkers, n, e]);
1313
+ ...ei(o.quizMarkers, o.onQuizMarkerClick)
1314
+ ].sort((c, l) => c.time - l.time).map((c) => ti(c, n, e, o.interactive)), [o.annotations, o.quizMarkers, n, e]);
1309
1315
  return /* @__PURE__ */ t("div", { className: d.pins, children: i });
1310
1316
  }
1311
- function ni() {
1312
- const e = _("duration"), n = S(), o = v();
1317
+ function oi() {
1318
+ const e = _("duration"), n = S(), o = C();
1313
1319
  return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: d.commentMarkers, children: n.comments.map((i) => {
1314
1320
  const a = Math.min(
1315
1321
  Math.abs(e - i.timestamp),
@@ -1328,8 +1334,8 @@ function ni() {
1328
1334
  );
1329
1335
  }) }) : null;
1330
1336
  }
1331
- function oi({ currentTime: e, position: n }) {
1332
- const [o, i] = M(!1), a = S(), c = p(() => a.interactiveMenuElements.length > 0 ? i((g) => !g) : a.onInteractivePinClick(e), [
1337
+ function ii({ currentTime: e, position: n }) {
1338
+ const [o, i] = M(!1), a = S(), c = p(() => a.interactiveMenuElements.length > 0 ? i((b) => !b) : a.onInteractivePinClick(e), [
1333
1339
  a.interactiveMenuElements,
1334
1340
  a.onInteractivePinClick,
1335
1341
  e
@@ -1339,14 +1345,14 @@ function oi({ currentTime: e, position: n }) {
1339
1345
  whileElementsMounted: we,
1340
1346
  placement: "top",
1341
1347
  middleware: [
1342
- at(),
1343
- st(6),
1348
+ st(),
1349
+ ct(6),
1344
1350
  ke(),
1345
1351
  ye({
1346
1352
  element: l
1347
1353
  })
1348
1354
  ]
1349
- }), C = xe(h), { getReferenceProps: y, getFloatingProps: k } = Le([C]);
1355
+ }), g = Le(h), { getReferenceProps: y, getFloatingProps: k } = xe([g]);
1350
1356
  return /* @__PURE__ */ s(ee, { children: [
1351
1357
  /* @__PURE__ */ t(
1352
1358
  "button",
@@ -1405,13 +1411,13 @@ function oi({ currentTime: e, position: n }) {
1405
1411
  className: d.interactivePinMenu,
1406
1412
  ...k(),
1407
1413
  children: [
1408
- a.interactiveMenuElements.map(({ id: g, text: f, onClick: w }) => /* @__PURE__ */ s(
1414
+ a.interactiveMenuElements.map(({ id: b, text: f, onClick: w }) => /* @__PURE__ */ s(
1409
1415
  "button",
1410
1416
  {
1411
1417
  type: "button",
1412
1418
  className: d.interactivePinMenuItem,
1413
1419
  onClick: () => {
1414
- w(g, e), i(!1);
1420
+ w(b, e), i(!1);
1415
1421
  },
1416
1422
  children: [
1417
1423
  /* @__PURE__ */ t(
@@ -1436,7 +1442,7 @@ function oi({ currentTime: e, position: n }) {
1436
1442
  f
1437
1443
  ]
1438
1444
  },
1439
- g
1445
+ b
1440
1446
  )),
1441
1447
  /* @__PURE__ */ t(
1442
1448
  Pe,
@@ -1451,20 +1457,20 @@ function oi({ currentTime: e, position: n }) {
1451
1457
  )
1452
1458
  ] });
1453
1459
  }
1454
- function ii() {
1460
+ function ai() {
1455
1461
  const e = _("duration"), n = _("currentTime"), o = n / e * 100;
1456
- return /* @__PURE__ */ t("div", { className: d.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: d.interactivePinWrapper, children: /* @__PURE__ */ t(oi, { currentTime: n, position: o }) }) });
1462
+ return /* @__PURE__ */ t("div", { className: d.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: d.interactivePinWrapper, children: /* @__PURE__ */ t(ii, { currentTime: n, position: o }) }) });
1457
1463
  }
1458
- function ai() {
1459
- const e = _("paused"), n = v();
1460
- return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(ii, {}) : null;
1464
+ function si() {
1465
+ const e = _("paused"), n = C();
1466
+ return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(ai, {}) : null;
1461
1467
  }
1462
- const si = `${d.progress} ${d.trackInner}`, ci = `${d.trackFill} ${d.trackInner}`;
1468
+ const ci = `${d.progress} ${d.trackInner}`, li = `${d.trackFill} ${d.trackInner}`;
1463
1469
  function he({ className: e }) {
1464
- const n = v(), { hasAnnotations: o, hasQuizmarkers: i, interactive: a } = S(), c = e ? `${d.timelineWrapper} ${e}` : d.timelineWrapper;
1470
+ const n = C(), { hasAnnotations: o, hasQuizmarkers: i, interactive: a } = S(), c = e ? `${d.timelineWrapper} ${e}` : d.timelineWrapper;
1465
1471
  return /* @__PURE__ */ s("div", { className: c, children: [
1466
- a ? /* @__PURE__ */ t(ai, {}) : null,
1467
- a || o || i ? /* @__PURE__ */ t(ti, {}) : null,
1472
+ a ? /* @__PURE__ */ t(si, {}) : null,
1473
+ a || o || i ? /* @__PURE__ */ t(ni, {}) : null,
1468
1474
  /* @__PURE__ */ s(
1469
1475
  A.Root,
1470
1476
  {
@@ -1472,33 +1478,34 @@ function he({ className: e }) {
1472
1478
  tabIndex: n.state.interactionsDisabled ? -1 : 0,
1473
1479
  children: [
1474
1480
  /* @__PURE__ */ s(A.Track, { className: d.track, children: [
1475
- /* @__PURE__ */ t(A.Progress, { className: si }),
1476
- /* @__PURE__ */ t(A.TrackFill, { className: ci })
1481
+ /* @__PURE__ */ t(A.Progress, { className: ci }),
1482
+ /* @__PURE__ */ t(A.TrackFill, { className: li })
1477
1483
  ] }),
1478
1484
  /* @__PURE__ */ t(A.Thumb, { className: d.thumb })
1479
1485
  ]
1480
1486
  }
1481
1487
  ),
1482
- /* @__PURE__ */ t(ni, {})
1488
+ /* @__PURE__ */ t(oi, {})
1483
1489
  ] });
1484
1490
  }
1485
- const li = "_wrapper_12cb0_1", ri = "_track_12cb0_6", ui = "_thumb_12cb0_18", di = "_track-fill_12cb0_32", mi = "_root_12cb0_51", F = {
1486
- wrapper: li,
1487
- track: ri,
1488
- thumb: ui,
1491
+ const ri = "_wrapper_12cb0_1", ui = "_track_12cb0_6", di = "_thumb_12cb0_18", mi = "_track-fill_12cb0_32", hi = "_root_12cb0_51", F = {
1492
+ wrapper: ri,
1493
+ track: ui,
1494
+ thumb: di,
1489
1495
  "track-fill": "_track-fill_12cb0_32",
1490
- trackFill: di,
1491
- root: mi
1496
+ trackFill: mi,
1497
+ root: hi
1492
1498
  };
1493
- function hi() {
1494
- const e = _("volume"), n = _("muted"), o = v();
1499
+ function pi() {
1500
+ const e = _("volume"), n = _("muted"), o = C(), i = n || e === 0, { t: a } = v();
1495
1501
  return /* @__PURE__ */ s("div", { className: F.wrapper, children: [
1496
1502
  /* @__PURE__ */ t(
1497
1503
  Je,
1498
1504
  {
1499
1505
  tabIndex: o.state.interactionsDisabled ? -1 : 0,
1500
1506
  className: "controls-button",
1501
- children: n || e == 0 ? /* @__PURE__ */ t(Ve, { className: "controls-button-icon" }) : e < 0.5 ? /* @__PURE__ */ t(Be, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Re, { className: "controls-button-icon" })
1507
+ "aria-label": a(i ? "VOLUME" : "MUTE"),
1508
+ 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" })
1502
1509
  }
1503
1510
  ),
1504
1511
  /* @__PURE__ */ s(
@@ -1600,7 +1607,7 @@ const pe = {
1600
1607
  function _e(e) {
1601
1608
  return typeof e == "number" && !isNaN(e);
1602
1609
  }
1603
- function pi(e, n = 1e3) {
1610
+ function _i(e, n = 1e3) {
1604
1611
  let o = !1;
1605
1612
  return () => {
1606
1613
  o || (e(), o = !0, setTimeout(() => {
@@ -1619,7 +1626,7 @@ const fe = {
1619
1626
  invert: !1,
1620
1627
  comments: !1
1621
1628
  };
1622
- class _i {
1629
+ class fi {
1623
1630
  constructor() {
1624
1631
  N(this, "playerId", "studio-player");
1625
1632
  N(this, "mediaId", null);
@@ -1631,7 +1638,7 @@ class _i {
1631
1638
  const n = (this.time ?? 0).toString();
1632
1639
  localStorage.setItem(this.mediaId, n);
1633
1640
  });
1634
- N(this, "saveTimeThrottled", pi(this.saveTime, 1e3));
1641
+ N(this, "saveTimeThrottled", _i(this.saveTime, 1e3));
1635
1642
  // only used for useStudioPlayer hook's state initialization
1636
1643
  N(this, "initializeState", (n) => {
1637
1644
  const o = localStorage.getItem(this.playerId);
@@ -1719,8 +1726,8 @@ class _i {
1719
1726
  localStorage.setItem(this.playerId, n);
1720
1727
  }
1721
1728
  }
1722
- function fi(e, n, o, i) {
1723
- const a = Z(() => new _i(), []), [c, l] = M(
1729
+ function vi(e, n, o, i) {
1730
+ const a = Z(() => new fi(), []), [c, l] = M(
1724
1731
  a.initializeState(i)
1725
1732
  ), u = p(
1726
1733
  (f) => {
@@ -1746,7 +1753,7 @@ function fi(e, n, o, i) {
1746
1753
  captionsInvertColors: w
1747
1754
  };
1748
1755
  });
1749
- }, [a]), C = p(() => {
1756
+ }, [a]), g = p(() => {
1750
1757
  l((f) => {
1751
1758
  const w = !f.commentsEnabled;
1752
1759
  return a.saveData("comments", w), {
@@ -1764,7 +1771,7 @@ function fi(e, n, o, i) {
1764
1771
  ...f,
1765
1772
  interactionsDisabled: !0
1766
1773
  }));
1767
- }, []), g = Z(() => e ? {
1774
+ }, []), b = Z(() => e ? {
1768
1775
  ...pe,
1769
1776
  toggleFullscreen: []
1770
1777
  } : pe, [e]);
@@ -1779,16 +1786,16 @@ function fi(e, n, o, i) {
1779
1786
  toggleCaptionsInvertColors: h,
1780
1787
  enableInteractions: y,
1781
1788
  disableInteractions: k,
1782
- toggleComments: C,
1789
+ toggleComments: g,
1783
1790
  disableCaptionSettings: o
1784
1791
  },
1785
- shortcuts: g,
1792
+ shortcuts: b,
1786
1793
  storage: a
1787
1794
  };
1788
1795
  }
1789
- const vi = {}, J = () => {
1796
+ const Ci = {}, X = () => {
1790
1797
  };
1791
- function Pi({
1798
+ function Ni({
1792
1799
  title: e,
1793
1800
  playerRef: n,
1794
1801
  src: o,
@@ -1799,75 +1806,77 @@ function Pi({
1799
1806
  locale: u = "en",
1800
1807
  annotations: m = [],
1801
1808
  quizMarkers: h = [],
1802
- interactive: C = !1,
1803
- onAnnotationClick: y = J,
1804
- onQuizMarkerClick: k = J,
1805
- onInteractivePinClick: g = J,
1809
+ interactive: g = !1,
1810
+ onAnnotationClick: y = X,
1811
+ onQuizMarkerClick: k = X,
1812
+ onInteractivePinClick: b = X,
1806
1813
  interactiveMenuElements: f = [],
1807
1814
  darkMode: w = !1,
1808
1815
  autoLoadCaptionSrc: T = "",
1809
1816
  forceComments: ae,
1810
1817
  disableCaptionSettings: Q,
1811
- startAt: Oe
1818
+ startAt: Oe,
1819
+ crossOrigin: Fe
1812
1820
  }) {
1813
- const { contextValue: se, shortcuts: Fe, storage: Ze } = fi(
1821
+ const { contextValue: se, shortcuts: Ze, storage: $e } = vi(
1814
1822
  c,
1815
1823
  ae ?? !1,
1816
1824
  Q ?? !1,
1817
1825
  Oe
1818
- ), { i18n: ce } = b();
1819
- return E(() => {
1826
+ ), { i18n: ce } = v();
1827
+ return R(() => {
1820
1828
  ce.changeLanguage(u);
1821
1829
  }, [ce, u]), /* @__PURE__ */ t(
1822
- rt,
1830
+ ut,
1823
1831
  {
1824
1832
  hideFullScreen: c,
1825
1833
  comments: l,
1826
1834
  annotations: m,
1827
1835
  quizMarkers: h,
1828
- interactive: C,
1836
+ interactive: g,
1829
1837
  onAnnotationClick: y,
1830
1838
  onQuizMarkerClick: k,
1831
- onInteractivePinClick: g,
1839
+ onInteractivePinClick: b,
1832
1840
  interactiveMenuElements: f,
1833
1841
  darkMode: w,
1834
1842
  forceComments: ae ?? !1,
1835
1843
  disableCaptionSettings: Q ?? !1,
1836
- children: /* @__PURE__ */ t(lt, { contextValue: se, children: /* @__PURE__ */ s(
1837
- Xe,
1844
+ children: /* @__PURE__ */ t(rt, { contextValue: se, children: /* @__PURE__ */ s(
1845
+ et,
1838
1846
  {
1839
- storage: Ze,
1847
+ crossOrigin: Fe,
1848
+ storage: $e,
1840
1849
  title: e,
1841
1850
  src: o,
1842
- keyShortcuts: Fe,
1851
+ keyShortcuts: Ze,
1843
1852
  playsInline: !0,
1844
1853
  keyDisabled: se.state.interactionsDisabled,
1845
1854
  onTextTracksChange: (D) => {
1846
1855
  const le = D == null ? void 0 : D.findIndex(
1847
- ($e) => $e.src === T
1856
+ (Ke) => Ke.src === T
1848
1857
  );
1849
1858
  le > -1 && (D[le].mode = "showing");
1850
1859
  },
1851
1860
  children: [
1852
- /* @__PURE__ */ t(so, {}),
1853
- /* @__PURE__ */ s(et, { className: vi.mediaProvider, children: [
1854
- /* @__PURE__ */ t(ho, { src: a }),
1855
- /* @__PURE__ */ t(jn, {}),
1856
- /* @__PURE__ */ t(gt, {}),
1857
- /* @__PURE__ */ t(yt, { captions: i }),
1858
- /* @__PURE__ */ t(Et, { comments: l }),
1859
- /* @__PURE__ */ t(bo, {}),
1860
- /* @__PURE__ */ t(eo, {})
1861
+ /* @__PURE__ */ t(co, {}),
1862
+ /* @__PURE__ */ s(tt, { className: Ci.mediaProvider, children: [
1863
+ /* @__PURE__ */ t(po, { src: a }),
1864
+ /* @__PURE__ */ t(qn, {}),
1865
+ /* @__PURE__ */ t(bt, {}),
1866
+ /* @__PURE__ */ t(Lt, { captions: i }),
1867
+ /* @__PURE__ */ t(to, {}),
1868
+ /* @__PURE__ */ t(At, { comments: l }),
1869
+ /* @__PURE__ */ t(wo, {})
1861
1870
  ] }),
1862
1871
  /* @__PURE__ */ t(
1863
- Dt,
1872
+ zt,
1864
1873
  {
1865
1874
  darkMode: w,
1866
1875
  playerRef: n,
1867
1876
  showCaptionsButton: !Q
1868
1877
  }
1869
1878
  ),
1870
- /* @__PURE__ */ t(ht, { annotations: m })
1879
+ /* @__PURE__ */ t(pt, { annotations: m })
1871
1880
  ]
1872
1881
  }
1873
1882
  ) })
@@ -1878,5 +1887,5 @@ export {
1878
1887
  xt as CAPTION_FONT_SIZE_MULTIPLIERS,
1879
1888
  Se as COMMENT_DURATION,
1880
1889
  B as PLAYBACK_RATES,
1881
- Pi as StudioPlayer
1890
+ Ni as StudioPlayer
1882
1891
  };