@instructure/studio-player 0.2.11 → 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.
@@ -24,5 +24,6 @@ export type StudioPlayerProps = {
24
24
  disableCaptionSettings?: boolean;
25
25
  /** Specify to start video playback at a given time */
26
26
  startAt?: number;
27
+ crossOrigin?: MediaPlayerProps['crossOrigin'];
27
28
  };
28
- export declare function StudioPlayer({ title, playerRef, src, captions, thumbnail, hideFullScreen, comments, locale, annotations, quizMarkers, interactive, onAnnotationClick, onQuizMarkerClick, onInteractivePinClick, interactiveMenuElements, darkMode, autoLoadCaptionSrc, forceComments, disableCaptionSettings, startAt, }: StudioPlayerProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function StudioPlayer({ title, playerRef, src, captions, thumbnail, hideFullScreen, comments, locale, annotations, quizMarkers, interactive, onAnnotationClick, onQuizMarkerClick, onInteractivePinClick, interactiveMenuElements, darkMode, autoLoadCaptionSrc, forceComments, disableCaptionSettings, startAt, crossOrigin, }: StudioPlayerProps): import("react/jsx-runtime").JSX.Element;
@@ -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
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) => {
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-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
  }) {
@@ -50,7 +50,7 @@ function C() {
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,
@@ -92,17 +92,17 @@ function S() {
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 }) {
105
+ function pt({ annotations: e }) {
106
106
  const n = q(), o = C(), i = S(), [a, c] = M(
107
107
  null
108
108
  ), l = p(
@@ -118,7 +118,7 @@ function ht({ annotations: e }) {
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,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 = C(), 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
  },
@@ -184,14 +184,14 @@ function bt() {
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,12 +211,12 @@ 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) => {
219
+ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], xt = [0.5, 1, 2, 3, 4], Se = 5, Pt = (e) => {
220
220
  const [, n] = M({});
221
221
  return Z(() => {
222
222
  let o = [];
@@ -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);
244
+ }, Mt = (e, n = 5) => {
245
+ const o = q(), i = Pt(n);
246
246
  return R(() => {
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,21 +261,24 @@ 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
+ }, 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 = {
265
265
  "comments-overlay": "_comments-overlay_2woxe_1",
266
- commentsOverlay: Mt,
266
+ commentsOverlay: Tt,
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: Vt,
274
274
  "comment-author-name": "_comment-author-name_2woxe_87",
275
- commentAuthorName: Vt
275
+ commentAuthorName: Bt
276
276
  };
277
- function Bt({ comment: e }) {
278
- return /* @__PURE__ */ s("div", { className: E.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: [
279
282
  /* @__PURE__ */ t(
280
283
  "img",
281
284
  {
@@ -288,9 +291,9 @@ function Bt({ comment: e }) {
288
291
  /* @__PURE__ */ t("span", { className: E.commentAuthorName, children: e.user.name })
289
292
  ] });
290
293
  }
291
- 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));
294
+ const Rt = 5;
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));
294
297
  return e.length > 0 && n.state.commentsEnabled ? /* @__PURE__ */ t(
295
298
  "div",
296
299
  {
@@ -302,19 +305,19 @@ function Rt({ comments: e }) {
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", V = {
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
@@ -325,38 +328,38 @@ function Dt({
325
328
  }, [i, n]), /* @__PURE__ */ s("div", { "data-darkmode": e, className: V.root, children: [
326
329
  /* @__PURE__ */ t(he, { className: V.normalTimeline }),
327
330
  /* @__PURE__ */ s("div", { className: V.leftControls, children: [
328
- /* @__PURE__ */ t(ro, {}),
329
- /* @__PURE__ */ t(hi, {})
331
+ /* @__PURE__ */ t(uo, {}),
332
+ /* @__PURE__ */ t(pi, {})
330
333
  ] }),
331
- /* @__PURE__ */ t("div", { className: V.indicators, children: /* @__PURE__ */ t(yo, {}) }),
334
+ /* @__PURE__ */ t("div", { className: V.indicators, children: /* @__PURE__ */ t(Lo, {}) }),
332
335
  /* @__PURE__ */ t(he, { className: V.compactTimeline }),
333
336
  /* @__PURE__ */ s("div", { className: V.rightControls, children: [
334
- o && /* @__PURE__ */ t(bt, {}),
335
- /* @__PURE__ */ t(En, {}),
336
- /* @__PURE__ */ t(Yn, {})
337
+ o && /* @__PURE__ */ t(wt, {}),
338
+ /* @__PURE__ */ t(Rn, {}),
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]);
@@ -384,7 +387,7 @@ function Yt() {
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
@@ -472,37 +475,37 @@ 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 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 = {
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({
507
+ function kn() {
508
+ const e = x(P), n = We({
506
509
  rates: B,
507
510
  normalLabel: "1x"
508
511
  }), { t: o } = v();
@@ -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 Mn() {
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",
@@ -644,7 +647,7 @@ function Nn() {
644
647
  )) })
645
648
  ] }) : null;
646
649
  }
647
- function Mn() {
650
+ function Tn() {
648
651
  const e = C(), n = x(P), { t: o } = v();
649
652
  return H(n == null ? void 0 : n.backToCaptions), n ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
650
653
  /* @__PURE__ */ s(
@@ -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",
@@ -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",
@@ -717,15 +720,15 @@ function Tn() {
717
720
  )) })
718
721
  ] }) : null;
719
722
  }
720
- const In = {
721
- main: hn,
722
- speed: wn,
723
- captions: Pn,
724
- captionLanguage: Nn,
725
- captionFontSize: Mn,
726
- quality: Tn
723
+ const Sn = {
724
+ main: pn,
725
+ speed: kn,
726
+ captions: Nn,
727
+ captionLanguage: Mn,
728
+ captionFontSize: Tn,
729
+ quality: In
727
730
  };
728
- function Sn() {
731
+ function Hn() {
729
732
  const [e, n] = M("main"), [o, i] = M(!1), a = p(() => {
730
733
  i((T) => !T);
731
734
  }, []), c = p((T) => {
@@ -734,7 +737,7 @@ function Sn() {
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
742
  onOpenChange: (T) => {
740
743
  i(T), u();
@@ -763,12 +766,12 @@ 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 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 = {
767
770
  "settings-menu": "_settings-menu_hxlsv_1",
768
- settingsMenu: Vn,
769
- arrow: Bn
771
+ settingsMenu: Bn,
772
+ arrow: En
770
773
  };
771
- function En() {
774
+ function Rn() {
772
775
  const {
773
776
  Page: e,
774
777
  arrowRef: n,
@@ -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(Vn, { 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,
@@ -836,17 +839,17 @@ function He(e, n = 1e3) {
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" }) }), 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 = {
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) {
@@ -862,15 +865,15 @@ function Kn() {
862
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, {}) });
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,49 @@ 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() {
932
+ function to() {
930
933
  const e = W(), 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 = {
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 = {
936
939
  "keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_y5kv6_1",
937
- keyboardShortcutsOverlay: no,
940
+ keyboardShortcutsOverlay: oo,
938
941
  "keyboard-shortcuts-button": "_keyboard-shortcuts-button_y5kv6_67",
939
- keyboardShortcutsButton: oo,
942
+ keyboardShortcutsButton: io,
940
943
  "close-button": "_close-button_y5kv6_93",
941
- closeButton: io
944
+ closeButton: ao
942
945
  };
943
- function ao({ onClose: e }) {
946
+ function so({ onClose: e }) {
944
947
  const { t: n } = v();
945
948
  H(e);
946
949
  const o = (i) => {
@@ -1053,7 +1056,7 @@ function ao({ onClose: e }) {
1053
1056
  }
1054
1057
  );
1055
1058
  }
1056
- function so() {
1059
+ function co() {
1057
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(() => {
1058
1061
  n(!0), l.disableInteractions(), u && (c(!0), m.pause());
1059
1062
  }, [u, m, l]), y = p(() => {
@@ -1062,7 +1065,7 @@ function so() {
1062
1065
  (b) => o && (b == null ? void 0 : b.focus()),
1063
1066
  [o]
1064
1067
  );
1065
- return e ? /* @__PURE__ */ t(ao, { onClose: y }) : /* @__PURE__ */ t(
1068
+ return e ? /* @__PURE__ */ t(so, { onClose: y }) : /* @__PURE__ */ t(
1066
1069
  "button",
1067
1070
  {
1068
1071
  ref: k,
@@ -1071,22 +1074,22 @@ function so() {
1071
1074
  className: J.keyboardShortcutsButton,
1072
1075
  onClick: g,
1073
1076
  tabIndex: l.state.interactionsDisabled ? -1 : 0,
1074
- children: /* @__PURE__ */ t(to, {})
1077
+ children: /* @__PURE__ */ t(no, {})
1075
1078
  }
1076
1079
  );
1077
1080
  }
1078
- const co = "_play-pause-button_kyuc5_1", lo = {
1081
+ const lo = "_play-pause-button_kyuc5_1", ro = {
1079
1082
  "play-pause-button": "_play-pause-button_kyuc5_1",
1080
- playPauseButton: co
1083
+ playPauseButton: lo
1081
1084
  };
1082
- function ro() {
1085
+ function uo() {
1083
1086
  const e = q(), n = C(), o = _("paused"), { t: i } = v();
1084
1087
  return e ? /* @__PURE__ */ t(
1085
- Qe,
1088
+ Ye,
1086
1089
  {
1087
1090
  "aria-label": i(o ? "PLAY" : "PAUSE"),
1088
1091
  tabIndex: n.state.interactionsDisabled ? -1 : 0,
1089
- className: `${lo.playPauseButton} controls-button`,
1092
+ className: `${ro.playPauseButton} controls-button`,
1090
1093
  onKeyDown: (a) => {
1091
1094
  a.key === " " && (e == null || e.$state.lastKeyboardAction.set({
1092
1095
  action: "togglePaused",
@@ -1097,28 +1100,28 @@ function ro() {
1097
1100
  }
1098
1101
  ) : null;
1099
1102
  }
1100
- const uo = "_poster_195hi_1", mo = {
1101
- poster: uo
1103
+ const mo = "_poster_195hi_1", ho = {
1104
+ poster: mo
1102
1105
  };
1103
- function ho({ src: e }) {
1106
+ function po({ src: e }) {
1104
1107
  const n = _("source");
1105
- 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 });
1106
1109
  }
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 = {
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 = {
1108
1111
  "small-layout-overlay": "_small-layout-overlay_1vli4_1",
1109
- smallLayoutOverlay: po,
1112
+ smallLayoutOverlay: _o,
1110
1113
  "small-layout-button": "_small-layout-button_1vli4_14",
1111
- smallLayoutButton: _o,
1114
+ smallLayoutButton: fo,
1112
1115
  "small-layout-icon-play": "_small-layout-icon-play_1vli4_24",
1113
- smallLayoutIconPlay: fo,
1116
+ smallLayoutIconPlay: vo,
1114
1117
  "small-layout-icon-pause": "_small-layout-icon-pause_1vli4_30",
1115
- smallLayoutIconPause: vo,
1118
+ smallLayoutIconPause: Co,
1116
1119
  "full-screen-close-icon": "_full-screen-close-icon_1vli4_36",
1117
- fullScreenCloseIcon: Co,
1120
+ fullScreenCloseIcon: go,
1118
1121
  "fade-out": "_fade-out_1vli4_1",
1119
- fadeOut: go
1122
+ fadeOut: bo
1120
1123
  };
1121
- function bo() {
1124
+ function wo() {
1122
1125
  return /* @__PURE__ */ s("div", { className: O.smallLayoutOverlay, children: [
1123
1126
  /* @__PURE__ */ t(ge, { className: O.fullScreenCloseIcon, children: /* @__PURE__ */ t(Re, {}) }),
1124
1127
  /* @__PURE__ */ s("i", { className: O.smallLayoutButton, children: [
@@ -1127,61 +1130,61 @@ function bo() {
1127
1130
  ] })
1128
1131
  ] });
1129
1132
  }
1130
- const wo = "_time-indicator_1rlpb_1", ko = {
1133
+ const ko = "_time-indicator_1rlpb_1", yo = {
1131
1134
  "time-indicator": "_time-indicator_1rlpb_1",
1132
- timeIndicator: wo
1135
+ timeIndicator: ko
1133
1136
  };
1134
- function yo() {
1135
- return /* @__PURE__ */ s("div", { className: ko.timeIndicator, children: [
1137
+ function Lo() {
1138
+ return /* @__PURE__ */ s("div", { className: yo.timeIndicator, children: [
1136
1139
  /* @__PURE__ */ t(re, { type: "current" }),
1137
1140
  "/",
1138
1141
  /* @__PURE__ */ t(re, { type: "duration" })
1139
1142
  ] });
1140
1143
  }
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 = {
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 = {
1142
1145
  "comment-markers": "_comment-markers_49pse_1",
1143
- commentMarkers: Lo,
1146
+ commentMarkers: xo,
1144
1147
  "comment-marker": "_comment-marker_49pse_1",
1145
- commentMarker: xo,
1148
+ commentMarker: Po,
1146
1149
  "timeline-wrapper": "_timeline-wrapper_49pse_21",
1147
- timelineWrapper: Po,
1148
- track: No,
1149
- thumb: Mo,
1150
- root: To,
1150
+ timelineWrapper: No,
1151
+ track: Mo,
1152
+ thumb: To,
1153
+ root: Io,
1151
1154
  "track-inner": "_track-inner_49pse_92",
1152
- trackInner: Io,
1153
- progress: So,
1155
+ trackInner: So,
1156
+ progress: Ho,
1154
1157
  "track-fill": "_track-fill_49pse_104",
1155
- trackFill: Ho,
1156
- pins: Vo,
1158
+ trackFill: Vo,
1159
+ pins: Bo,
1157
1160
  "pin-button": "_pin-button_49pse_134",
1158
- pinButton: Bo,
1161
+ pinButton: Eo,
1159
1162
  "annotation-pin": "_annotation-pin_49pse_154",
1160
- annotationPin: Eo,
1163
+ annotationPin: Ro,
1161
1164
  "quiz-pin": "_quiz-pin_49pse_159",
1162
- quizPin: Ro,
1165
+ quizPin: Ao,
1163
1166
  "annotation-pin-child": "_annotation-pin-child_49pse_164",
1164
- annotationPinChild: Ao,
1167
+ annotationPinChild: Oo,
1165
1168
  "quiz-pin-child": "_quiz-pin-child_49pse_168",
1166
- quizPinChild: Oo,
1169
+ quizPinChild: Fo,
1167
1170
  "interactive-pin-container": "_interactive-pin-container_49pse_173",
1168
- interactivePinContainer: Fo,
1171
+ interactivePinContainer: Zo,
1169
1172
  "interactive-pin-wrapper": "_interactive-pin-wrapper_49pse_183",
1170
- interactivePinWrapper: Zo,
1173
+ interactivePinWrapper: $o,
1171
1174
  "interactive-pin-icon": "_interactive-pin-icon_49pse_189",
1172
- interactivePinIcon: $o,
1175
+ interactivePinIcon: Ko,
1173
1176
  "interactive-pin": "_interactive-pin_49pse_173",
1174
- interactivePin: Ko,
1175
- bg: Do,
1176
- symbol: zo,
1177
+ interactivePin: Do,
1178
+ bg: zo,
1179
+ symbol: Uo,
1177
1180
  "interactive-pin-button": "_interactive-pin-button_49pse_212",
1178
- interactivePinButton: Uo,
1181
+ interactivePinButton: jo,
1179
1182
  "interactive-pin-menu": "_interactive-pin-menu_49pse_232",
1180
- interactivePinMenu: jo,
1183
+ interactivePinMenu: qo,
1181
1184
  "interactive-pin-menu-item": "_interactive-pin-menu-item_49pse_246",
1182
- interactivePinMenuItem: qo,
1183
- arrow: Wo
1184
- }, Go = {
1185
+ interactivePinMenuItem: Wo,
1186
+ arrow: Go
1187
+ }, Qo = {
1185
1188
  annotation: d.annotationPin,
1186
1189
  quiz: d.quizPin
1187
1190
  };
@@ -1203,7 +1206,7 @@ function Ae({
1203
1206
  children: /* @__PURE__ */ s(
1204
1207
  "svg",
1205
1208
  {
1206
- className: Go[e],
1209
+ className: Qo[e],
1207
1210
  width: "26",
1208
1211
  height: "32",
1209
1212
  viewBox: "0 0 26 32",
@@ -1217,7 +1220,7 @@ function Ae({
1217
1220
  }
1218
1221
  );
1219
1222
  }
1220
- function Qo(e) {
1223
+ function Yo(e) {
1221
1224
  return /* @__PURE__ */ t(Ae, { type: "annotation", ...e, children: /* @__PURE__ */ t(
1222
1225
  "path",
1223
1226
  {
@@ -1230,7 +1233,7 @@ function Qo(e) {
1230
1233
  }
1231
1234
  ) });
1232
1235
  }
1233
- function Yo(e) {
1236
+ function Xo(e) {
1234
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(
1235
1238
  "text",
1236
1239
  {
@@ -1244,7 +1247,7 @@ function Yo(e) {
1244
1247
  }
1245
1248
  ) });
1246
1249
  }
1247
- function Xo(e, n) {
1250
+ function Jo(e, n) {
1248
1251
  return e.map((o, i) => ({
1249
1252
  id: o.id,
1250
1253
  time: o.time,
@@ -1253,7 +1256,7 @@ function Xo(e, n) {
1253
1256
  onClick: () => n(o)
1254
1257
  }));
1255
1258
  }
1256
- function Jo(e, n) {
1259
+ function ei(e, n) {
1257
1260
  const o = /* @__PURE__ */ new Map();
1258
1261
  e.forEach((c) => {
1259
1262
  var u;
@@ -1273,12 +1276,12 @@ function Jo(e, n) {
1273
1276
  }), a++;
1274
1277
  }), i;
1275
1278
  }
1276
- function ei(e, n, o, i) {
1279
+ function ti(e, n, o, i) {
1277
1280
  switch (e.type) {
1278
1281
  case "annotation": {
1279
1282
  const a = () => i ? e.onClick() : o.seek(e.time);
1280
1283
  return /* @__PURE__ */ t(
1281
- Qo,
1284
+ Yo,
1282
1285
  {
1283
1286
  position: e.time / n * 100,
1284
1287
  onClick: a
@@ -1288,7 +1291,7 @@ function ei(e, n, o, i) {
1288
1291
  }
1289
1292
  case "quiz":
1290
1293
  return /* @__PURE__ */ t(
1291
- Yo,
1294
+ Xo,
1292
1295
  {
1293
1296
  position: e.time / n * 100,
1294
1297
  ordinal: e.ordinal,
@@ -1301,17 +1304,17 @@ function ei(e, n, o, i) {
1301
1304
  return null;
1302
1305
  }
1303
1306
  }
1304
- function ti() {
1307
+ function ni() {
1305
1308
  const e = W(), n = _("duration"), o = S(), i = Z(() => [
1306
- ...Xo(
1309
+ ...Jo(
1307
1310
  o.annotations,
1308
1311
  o.onAnnotationClick
1309
1312
  ),
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]);
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]);
1312
1315
  return /* @__PURE__ */ t("div", { className: d.pins, children: i });
1313
1316
  }
1314
- function ni() {
1317
+ function oi() {
1315
1318
  const e = _("duration"), n = S(), o = C();
1316
1319
  return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: d.commentMarkers, children: n.comments.map((i) => {
1317
1320
  const a = Math.min(
@@ -1331,7 +1334,7 @@ function ni() {
1331
1334
  );
1332
1335
  }) }) : null;
1333
1336
  }
1334
- function oi({ currentTime: e, position: n }) {
1337
+ function ii({ currentTime: e, position: n }) {
1335
1338
  const [o, i] = M(!1), a = S(), c = p(() => a.interactiveMenuElements.length > 0 ? i((b) => !b) : a.onInteractivePinClick(e), [
1336
1339
  a.interactiveMenuElements,
1337
1340
  a.onInteractivePinClick,
@@ -1342,8 +1345,8 @@ function oi({ currentTime: e, position: n }) {
1342
1345
  whileElementsMounted: we,
1343
1346
  placement: "top",
1344
1347
  middleware: [
1345
- at(),
1346
- st(6),
1348
+ st(),
1349
+ ct(6),
1347
1350
  ke(),
1348
1351
  ye({
1349
1352
  element: l
@@ -1454,20 +1457,20 @@ function oi({ currentTime: e, position: n }) {
1454
1457
  )
1455
1458
  ] });
1456
1459
  }
1457
- function ii() {
1460
+ function ai() {
1458
1461
  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 }) }) });
1462
+ return /* @__PURE__ */ t("div", { className: d.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: d.interactivePinWrapper, children: /* @__PURE__ */ t(ii, { currentTime: n, position: o }) }) });
1460
1463
  }
1461
- function ai() {
1464
+ function si() {
1462
1465
  const e = _("paused"), n = C();
1463
- return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(ii, {}) : null;
1466
+ return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(ai, {}) : null;
1464
1467
  }
1465
- const si = `${d.progress} ${d.trackInner}`, ci = `${d.trackFill} ${d.trackInner}`;
1468
+ const ci = `${d.progress} ${d.trackInner}`, li = `${d.trackFill} ${d.trackInner}`;
1466
1469
  function he({ className: e }) {
1467
1470
  const n = C(), { hasAnnotations: o, hasQuizmarkers: i, interactive: a } = S(), c = e ? `${d.timelineWrapper} ${e}` : d.timelineWrapper;
1468
1471
  return /* @__PURE__ */ s("div", { className: c, children: [
1469
- a ? /* @__PURE__ */ t(ai, {}) : null,
1470
- a || o || i ? /* @__PURE__ */ t(ti, {}) : null,
1472
+ a ? /* @__PURE__ */ t(si, {}) : null,
1473
+ a || o || i ? /* @__PURE__ */ t(ni, {}) : null,
1471
1474
  /* @__PURE__ */ s(
1472
1475
  A.Root,
1473
1476
  {
@@ -1475,29 +1478,29 @@ function he({ className: e }) {
1475
1478
  tabIndex: n.state.interactionsDisabled ? -1 : 0,
1476
1479
  children: [
1477
1480
  /* @__PURE__ */ s(A.Track, { className: d.track, children: [
1478
- /* @__PURE__ */ t(A.Progress, { className: si }),
1479
- /* @__PURE__ */ t(A.TrackFill, { className: ci })
1481
+ /* @__PURE__ */ t(A.Progress, { className: ci }),
1482
+ /* @__PURE__ */ t(A.TrackFill, { className: li })
1480
1483
  ] }),
1481
1484
  /* @__PURE__ */ t(A.Thumb, { className: d.thumb })
1482
1485
  ]
1483
1486
  }
1484
1487
  ),
1485
- /* @__PURE__ */ t(ni, {})
1488
+ /* @__PURE__ */ t(oi, {})
1486
1489
  ] });
1487
1490
  }
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,
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,
1492
1495
  "track-fill": "_track-fill_12cb0_32",
1493
- trackFill: di,
1494
- root: mi
1496
+ trackFill: mi,
1497
+ root: hi
1495
1498
  };
1496
- function hi() {
1499
+ function pi() {
1497
1500
  const e = _("volume"), n = _("muted"), o = C(), i = n || e === 0, { t: a } = v();
1498
1501
  return /* @__PURE__ */ s("div", { className: F.wrapper, children: [
1499
1502
  /* @__PURE__ */ t(
1500
- Xe,
1503
+ Je,
1501
1504
  {
1502
1505
  tabIndex: o.state.interactionsDisabled ? -1 : 0,
1503
1506
  className: "controls-button",
@@ -1604,7 +1607,7 @@ const pe = {
1604
1607
  function _e(e) {
1605
1608
  return typeof e == "number" && !isNaN(e);
1606
1609
  }
1607
- function pi(e, n = 1e3) {
1610
+ function _i(e, n = 1e3) {
1608
1611
  let o = !1;
1609
1612
  return () => {
1610
1613
  o || (e(), o = !0, setTimeout(() => {
@@ -1623,7 +1626,7 @@ const fe = {
1623
1626
  invert: !1,
1624
1627
  comments: !1
1625
1628
  };
1626
- class _i {
1629
+ class fi {
1627
1630
  constructor() {
1628
1631
  N(this, "playerId", "studio-player");
1629
1632
  N(this, "mediaId", null);
@@ -1635,7 +1638,7 @@ class _i {
1635
1638
  const n = (this.time ?? 0).toString();
1636
1639
  localStorage.setItem(this.mediaId, n);
1637
1640
  });
1638
- N(this, "saveTimeThrottled", pi(this.saveTime, 1e3));
1641
+ N(this, "saveTimeThrottled", _i(this.saveTime, 1e3));
1639
1642
  // only used for useStudioPlayer hook's state initialization
1640
1643
  N(this, "initializeState", (n) => {
1641
1644
  const o = localStorage.getItem(this.playerId);
@@ -1723,8 +1726,8 @@ class _i {
1723
1726
  localStorage.setItem(this.playerId, n);
1724
1727
  }
1725
1728
  }
1726
- function fi(e, n, o, i) {
1727
- const a = Z(() => new _i(), []), [c, l] = M(
1729
+ function vi(e, n, o, i) {
1730
+ const a = Z(() => new fi(), []), [c, l] = M(
1728
1731
  a.initializeState(i)
1729
1732
  ), u = p(
1730
1733
  (f) => {
@@ -1790,9 +1793,9 @@ function fi(e, n, o, i) {
1790
1793
  storage: a
1791
1794
  };
1792
1795
  }
1793
- const vi = {}, X = () => {
1796
+ const Ci = {}, X = () => {
1794
1797
  };
1795
- function Pi({
1798
+ function Ni({
1796
1799
  title: e,
1797
1800
  playerRef: n,
1798
1801
  src: o,
@@ -1812,9 +1815,10 @@ function Pi({
1812
1815
  autoLoadCaptionSrc: T = "",
1813
1816
  forceComments: ae,
1814
1817
  disableCaptionSettings: Q,
1815
- startAt: Oe
1818
+ startAt: Oe,
1819
+ crossOrigin: Fe
1816
1820
  }) {
1817
- const { contextValue: se, shortcuts: Fe, storage: Ze } = fi(
1821
+ const { contextValue: se, shortcuts: Ze, storage: $e } = vi(
1818
1822
  c,
1819
1823
  ae ?? !1,
1820
1824
  Q ?? !1,
@@ -1823,7 +1827,7 @@ function Pi({
1823
1827
  return R(() => {
1824
1828
  ce.changeLanguage(u);
1825
1829
  }, [ce, u]), /* @__PURE__ */ t(
1826
- rt,
1830
+ ut,
1827
1831
  {
1828
1832
  hideFullScreen: c,
1829
1833
  comments: l,
@@ -1837,41 +1841,42 @@ function Pi({
1837
1841
  darkMode: w,
1838
1842
  forceComments: ae ?? !1,
1839
1843
  disableCaptionSettings: Q ?? !1,
1840
- children: /* @__PURE__ */ t(lt, { contextValue: se, children: /* @__PURE__ */ s(
1841
- Je,
1844
+ children: /* @__PURE__ */ t(rt, { contextValue: se, children: /* @__PURE__ */ s(
1845
+ et,
1842
1846
  {
1843
- storage: Ze,
1847
+ crossOrigin: Fe,
1848
+ storage: $e,
1844
1849
  title: e,
1845
1850
  src: o,
1846
- keyShortcuts: Fe,
1851
+ keyShortcuts: Ze,
1847
1852
  playsInline: !0,
1848
1853
  keyDisabled: se.state.interactionsDisabled,
1849
1854
  onTextTracksChange: (D) => {
1850
1855
  const le = D == null ? void 0 : D.findIndex(
1851
- ($e) => $e.src === T
1856
+ (Ke) => Ke.src === T
1852
1857
  );
1853
1858
  le > -1 && (D[le].mode = "showing");
1854
1859
  },
1855
1860
  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, {})
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, {})
1865
1870
  ] }),
1866
1871
  /* @__PURE__ */ t(
1867
- Dt,
1872
+ zt,
1868
1873
  {
1869
1874
  darkMode: w,
1870
1875
  playerRef: n,
1871
1876
  showCaptionsButton: !Q
1872
1877
  }
1873
1878
  ),
1874
- /* @__PURE__ */ t(ht, { annotations: m })
1879
+ /* @__PURE__ */ t(pt, { annotations: m })
1875
1880
  ]
1876
1881
  }
1877
1882
  ) })
@@ -1879,8 +1884,8 @@ function Pi({
1879
1884
  );
1880
1885
  }
1881
1886
  export {
1882
- Lt as CAPTION_FONT_SIZE_MULTIPLIERS,
1887
+ xt as CAPTION_FONT_SIZE_MULTIPLIERS,
1883
1888
  Se as COMMENT_DURATION,
1884
1889
  B as PLAYBACK_RATES,
1885
- Pi as StudioPlayer
1890
+ Ni as StudioPlayer
1886
1891
  };
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type { VideoMimeType, MediaRemoteControl, MediaPlayerInstance, } from '@vidstack/react';
1
+ export type { VideoMimeType, MediaRemoteControl, MediaPlayerInstance, MediaCrossOrigin, } from '@vidstack/react';
2
2
  export type CaptionMetaData = {
3
3
  src: string;
4
4
  label: string;
@@ -14,7 +14,7 @@ export type Comment = {
14
14
  name: string;
15
15
  avatar?: string;
16
16
  };
17
- onClick?: () => void;
17
+ onClick?: (comment: Comment) => void;
18
18
  };
19
19
  export type Annotation = {
20
20
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/studio-player",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "private": false,
5
5
  "description": "Next generation media player for Instructure",
6
6
  "module": "./dist/studio-player.es.js",