@instructure/studio-player 0.4.4 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +1,30 @@
1
- import './index-C75Fenqh.css';var st = Object.defineProperty;
2
- var at = (e, n, o) => n in e ? st(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
3
- var H = (e, n, o) => at(e, typeof n != "symbol" ? n + "" : n, o);
4
- import { jsx as t, jsxs as l, Fragment as Y } from "react/jsx-runtime";
5
- import { createContext as ce, useContext as re, useState as x, useCallback as f, useEffect as F, useMemo as T, useRef as ne } from "react";
6
- import { useMediaPlayer as Z, Spinner as le, useMediaRemote as oe, useMediaState as g, isTrackCaptionKind as lt, Track as ct, Captions as rt, usePlaybackRateOptions as ut, useCaptionOptions as dt, useVideoQualityOptions as mt, useMediaStore as He, Poster as ht, FullscreenButton as pt, Time as ke, TimeSlider as G, VolumeSlider as X, isAudioProvider as _t, isVideoProvider as Ct, MediaPlayer as ft, MediaProvider as gt } from "@vidstack/react";
7
- import { useMediaState as Mi, useMediaStore as Ni } from "@vidstack/react";
8
- import { initReactI18next as bt, useTranslation as _ } from "react-i18next";
9
- import vt from "i18next";
10
- import wt from "i18next-resources-to-backend";
11
- import { useFloating as ue, autoUpdate as de, useDismiss as me, useInteractions as he, detectOverflow as yt, FloatingFocusManager as pe, shift as Se, offset as Te, arrow as Ve, useListNavigation as kt, FloatingArrow as Ae } from "@floating-ui/react";
12
- const Lt = (e, n, o) => {
13
- const i = e[n];
1
+ import './index-B7B435UF.css';var st = Object.defineProperty;
2
+ var at = (e, t, o) => t in e ? st(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
+ var T = (e, t, o) => at(e, typeof t != "symbol" ? t + "" : t, o);
4
+ import { jsx as n, jsxs as l, Fragment as J } from "react/jsx-runtime";
5
+ import { createContext as ce, useContext as ue, useState as M, useCallback as f, useEffect as j, useMemo as O, useRef as U, forwardRef as lt } from "react";
6
+ import { useMediaPlayer as E, Spinner as re, useMediaRemote as ie, useMediaState as g, isTrackCaptionKind as rt, Track as ct, Captions as ut, usePlaybackRateOptions as dt, useCaptionOptions as mt, useVideoQualityOptions as ht, Poster as pt, FullscreenButton as _t, Time as xe, TimeSlider as W, VolumeSlider as ee, isAudioProvider as ft, isVideoProvider as Ct, isYouTubeProvider as bt, isVimeoProvider as gt, MediaPlayer as vt, MediaProvider as wt } from "@vidstack/react";
7
+ import { useMediaState as Hi, useMediaStore as Ti } from "@vidstack/react";
8
+ import { initReactI18next as yt, useTranslation as C } from "react-i18next";
9
+ import kt from "i18next";
10
+ import Lt from "i18next-resources-to-backend";
11
+ import { useFloating as de, autoUpdate as me, useDismiss as he, useInteractions as pe, detectOverflow as xt, FloatingFocusManager as _e, shift as Te, offset as Ee, arrow as Ve, useListNavigation as Mt, FloatingArrow as Ae, useMergeRefs as Nt } from "@floating-ui/react";
12
+ const Pt = (e, t, o) => {
13
+ const i = e[t];
14
14
  return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((s, a) => {
15
15
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
16
16
  a.bind(
17
17
  null,
18
18
  new Error(
19
- "Unknown variable dynamic import: " + n + (n.split("/").length !== o ? ". Note that variables only represent file names one level deep." : "")
19
+ "Unknown variable dynamic import: " + t + (t.split("/").length !== o ? ". Note that variables only represent file names one level deep." : "")
20
20
  )
21
21
  )
22
22
  );
23
23
  });
24
24
  };
25
- vt.use(bt).use(
26
- wt(
27
- (e) => Lt(/* @__PURE__ */ Object.assign({ "./locales/ar.json": () => import("./ar-B8l4Fn4I.js"), "./locales/ca.json": () => import("./ca-D-9XXbq2.js"), "./locales/cy.json": () => import("./cy-7BijMmgd.js"), "./locales/da-x-k12.json": () => import("./da-x-k12-CJ2niKwf.js"), "./locales/da.json": () => import("./da-DAY_l_21.js"), "./locales/de.json": () => import("./de-ya8bO5Ja.js"), "./locales/en-AU-x-unimelb.json": () => import("./en-AU-x-unimelb-irzsO2mb.js"), "./locales/en-GB-x-ukhe.json": () => import("./en-GB-x-ukhe-G4m87b7j.js"), "./locales/en.json": () => import("./en-D6AICPim.js"), "./locales/en_AU.json": () => import("./en_AU-DB3OHfTc.js"), "./locales/en_CY.json": () => import("./en_CY-DhDZF-tZ.js"), "./locales/en_GB.json": () => import("./en_GB-BK_q7w5s.js"), "./locales/es.json": () => import("./es-DZ5Y82Uj.js"), "./locales/es_ES.json": () => import("./es_ES-CQMBItY2.js"), "./locales/fi.json": () => import("./fi-B4Pz1t-t.js"), "./locales/fr.json": () => import("./fr-BteehQcx.js"), "./locales/fr_CA.json": () => import("./fr_CA-BHaXh8MX.js"), "./locales/ga.json": () => import("./ga-Bx3a9UKG.js"), "./locales/hi.json": () => import("./hi-DHG0_yeQ.js"), "./locales/ht.json": () => import("./ht-C2IdMP2u.js"), "./locales/id.json": () => import("./id-uk30JX2p.js"), "./locales/is.json": () => import("./is-yOmqk5qU.js"), "./locales/it.json": () => import("./it-BM3Um8gU.js"), "./locales/ja.json": () => import("./ja-BdL71P8g.js"), "./locales/kl.json": () => import("./kl-BeSfwm2D.js"), "./locales/mi.json": () => import("./mi-D2uHHivq.js"), "./locales/ms.json": () => import("./ms--AuIVHSL.js"), "./locales/nb-x-k12.json": () => import("./nb-x-k12-CxOnhM4J.js"), "./locales/nb.json": () => import("./nb-CXLIMCwW.js"), "./locales/nl.json": () => import("./nl-CsVJ-oQV.js"), "./locales/pl.json": () => import("./pl-BT0sRFhU.js"), "./locales/pt.json": () => import("./pt-Anx8EAjZ.js"), "./locales/pt_BR.json": () => import("./pt_BR-Be3UULFe.js"), "./locales/ru.json": () => import("./ru-DPUYT2zh.js"), "./locales/sl.json": () => import("./sl-QnHcT_i1.js"), "./locales/sv-x-k12.json": () => import("./sv-x-k12-DLoiJ1OB.js"), "./locales/sv.json": () => import("./sv-D_WuG6Ug.js"), "./locales/th.json": () => import("./th-CcE5hCow.js"), "./locales/vi.json": () => import("./vi-De-Nfy-i.js"), "./locales/zh-Hans.json": () => import("./zh-Hans-CU7SSIXE.js"), "./locales/zh-Hant.json": () => import("./zh-Hant-BMd136-f.js"), "./locales/zh.json": () => import("./zh-ClimEyGq.js"), "./locales/zh_HK.json": () => import("./zh_HK-Culy5KI5.js") }), `./locales/${e}.json`, 3)
25
+ kt.use(yt).use(
26
+ Lt(
27
+ (e) => Pt(/* @__PURE__ */ Object.assign({ "./locales/ar.json": () => import("./ar-B8l4Fn4I.js"), "./locales/ca.json": () => import("./ca-D-9XXbq2.js"), "./locales/cy.json": () => import("./cy-7BijMmgd.js"), "./locales/da-x-k12.json": () => import("./da-x-k12-CJ2niKwf.js"), "./locales/da.json": () => import("./da-DAY_l_21.js"), "./locales/de.json": () => import("./de-ya8bO5Ja.js"), "./locales/en-AU-x-unimelb.json": () => import("./en-AU-x-unimelb-irzsO2mb.js"), "./locales/en-GB-x-ukhe.json": () => import("./en-GB-x-ukhe-G4m87b7j.js"), "./locales/en.json": () => import("./en-D6AICPim.js"), "./locales/en_AU.json": () => import("./en_AU-DB3OHfTc.js"), "./locales/en_CY.json": () => import("./en_CY-DhDZF-tZ.js"), "./locales/en_GB.json": () => import("./en_GB-BK_q7w5s.js"), "./locales/es.json": () => import("./es-DZ5Y82Uj.js"), "./locales/es_ES.json": () => import("./es_ES-CQMBItY2.js"), "./locales/fi.json": () => import("./fi-B4Pz1t-t.js"), "./locales/fr.json": () => import("./fr-BteehQcx.js"), "./locales/fr_CA.json": () => import("./fr_CA-BHaXh8MX.js"), "./locales/ga.json": () => import("./ga-Bx3a9UKG.js"), "./locales/hi.json": () => import("./hi-DHG0_yeQ.js"), "./locales/ht.json": () => import("./ht-C2IdMP2u.js"), "./locales/id.json": () => import("./id-uk30JX2p.js"), "./locales/is.json": () => import("./is-yOmqk5qU.js"), "./locales/it.json": () => import("./it-BM3Um8gU.js"), "./locales/ja.json": () => import("./ja-BdL71P8g.js"), "./locales/kl.json": () => import("./kl-BeSfwm2D.js"), "./locales/mi.json": () => import("./mi-D2uHHivq.js"), "./locales/ms.json": () => import("./ms--AuIVHSL.js"), "./locales/nb-x-k12.json": () => import("./nb-x-k12-CxOnhM4J.js"), "./locales/nb.json": () => import("./nb-CXLIMCwW.js"), "./locales/nl.json": () => import("./nl-CsVJ-oQV.js"), "./locales/pl.json": () => import("./pl-BT0sRFhU.js"), "./locales/pt.json": () => import("./pt-Anx8EAjZ.js"), "./locales/pt_BR.json": () => import("./pt_BR-Be3UULFe.js"), "./locales/ru.json": () => import("./ru-DPUYT2zh.js"), "./locales/sl.json": () => import("./sl-QnHcT_i1.js"), "./locales/sv-x-k12.json": () => import("./sv-x-k12-DLoiJ1OB.js"), "./locales/sv.json": () => import("./sv-D_WuG6Ug.js"), "./locales/th.json": () => import("./th-CcE5hCow.js"), "./locales/vi.json": () => import("./vi-De-Nfy-i.js"), "./locales/zh-Hans.json": () => import("./zh-Hans-CU7SSIXE.js"), "./locales/zh-Hant.json": () => import("./zh-Hant-BMd136-f.js"), "./locales/zh.json": () => import("./zh-ClimEyGq.js"), "./locales/zh_HK.json": () => import("./zh_HK-Culy5KI5.js") }), `./locales/${e}.json`, 3)
28
28
  )
29
29
  ).init({
30
30
  fallbackLng: "en",
@@ -35,160 +35,160 @@ vt.use(bt).use(
35
35
  escapeValue: !1
36
36
  }
37
37
  });
38
- const Ee = ce(null);
39
- function xt({
38
+ const Be = ce(null);
39
+ function It({
40
40
  children: e,
41
- contextValue: n
41
+ contextValue: t
42
42
  }) {
43
- return /* @__PURE__ */ t(Ee.Provider, { value: n, children: e });
43
+ return /* @__PURE__ */ n(Be.Provider, { value: t, children: e });
44
44
  }
45
- function w() {
46
- const e = re(Ee);
45
+ function v() {
46
+ const e = ue(Be);
47
47
  if (!e)
48
48
  throw new Error(
49
49
  "useStudioPlayerContext must be used within a StudioPlayerContextProvider"
50
50
  );
51
51
  return e;
52
52
  }
53
- const Be = ce(null);
54
- function Mt({
53
+ const Re = ce(null);
54
+ function St({
55
55
  hideFullScreen: e,
56
- comments: n,
56
+ comments: t,
57
57
  captions: o,
58
58
  thumbnail: i,
59
59
  annotations: s,
60
60
  quizMarkers: a,
61
- interactive: c,
62
- onAnnotationClick: r,
63
- onQuizMarkerClick: d,
64
- onInteractivePinClick: p,
61
+ interactive: r,
62
+ onAnnotationClick: c,
63
+ onQuizMarkerClick: u,
64
+ onInteractivePinClick: m,
65
65
  interactiveMenuElements: b,
66
- kebabMenuElements: v,
67
- darkMode: k,
68
- children: y,
69
- forceComments: P,
70
- disableCaptionSettings: h,
71
- disableStorage: C,
72
- captionOffsetOverride: V,
73
- disableInteractivePinRanges: A,
74
- onQuizMarkerShow: U,
75
- onCaptionsDelete: S
66
+ kebabMenuElements: w,
67
+ darkMode: y,
68
+ children: k,
69
+ forceComments: S,
70
+ disableCaptionSettings: p,
71
+ disableStorage: _,
72
+ captionOffsetOverride: I,
73
+ disableInteractivePinRanges: V,
74
+ onQuizMarkerShow: F,
75
+ onCaptionsDelete: B
76
76
  }) {
77
- const E = {
77
+ const Z = {
78
78
  hideFullScreen: e,
79
- comments: n,
79
+ comments: t,
80
80
  captions: o,
81
81
  thumbnail: i,
82
82
  annotations: s,
83
83
  quizMarkers: a,
84
- interactive: c,
85
- onAnnotationClick: r,
86
- onQuizMarkerClick: d,
87
- onInteractivePinClick: p,
84
+ interactive: r,
85
+ onAnnotationClick: c,
86
+ onQuizMarkerClick: u,
87
+ onInteractivePinClick: m,
88
88
  interactiveMenuElements: b,
89
- kebabMenuElements: v,
90
- darkMode: k,
91
- hasComments: n.length > 0,
89
+ kebabMenuElements: w,
90
+ darkMode: y,
91
+ hasComments: t.length > 0,
92
92
  hasAnnotations: s.length > 0,
93
93
  hasQuizmarkers: a.length > 0,
94
- forceComments: P,
95
- disableCaptionSettings: h,
96
- disableStorage: C,
97
- captionOffsetOverride: V,
98
- disableInteractivePinRanges: A,
99
- onQuizMarkerShow: U,
100
- onCaptionsDelete: S
94
+ forceComments: S,
95
+ disableCaptionSettings: p,
96
+ disableStorage: _,
97
+ captionOffsetOverride: I,
98
+ disableInteractivePinRanges: V,
99
+ onQuizMarkerShow: F,
100
+ onCaptionsDelete: B
101
101
  };
102
- return /* @__PURE__ */ t(Be.Provider, { value: E, children: y });
102
+ return /* @__PURE__ */ n(Re.Provider, { value: Z, children: k });
103
103
  }
104
104
  function L() {
105
- const e = re(Be);
105
+ const e = ue(Re);
106
106
  if (!e)
107
107
  throw new Error(
108
108
  "useStudioPlayerPropsContext must be used within a StudioPlayerPropsContextProvider"
109
109
  );
110
110
  return e;
111
111
  }
112
- const Nt = "_annotation-overlay_1kxzn_1", Pt = {
112
+ const Ht = "_annotation-overlay_1kxzn_1", Tt = {
113
113
  "annotation-overlay": "_annotation-overlay_1kxzn_1",
114
- annotationOverlay: Nt
115
- }, Le = 0.25, It = (e, n) => {
114
+ annotationOverlay: Ht
115
+ }, Me = 0.25, Et = (e, t) => {
116
116
  let o = !1;
117
117
  return (i) => {
118
118
  const s = i.detail.currentTime;
119
- s >= e.time && s < e.time + Le && !o && (o = !0, n(e)), (s < e.time || s >= e.time + Le) && o && (o = !1);
119
+ s >= e.time && s < e.time + Me && !o && (o = !0, t(e)), (s < e.time || s >= e.time + Me) && o && (o = !1);
120
120
  };
121
121
  };
122
- function Ht({ annotations: e }) {
123
- const n = Z(), o = w(), i = L(), [s, a] = x(
122
+ function Vt({ annotations: e }) {
123
+ const t = E(), o = v(), i = L(), [s, a] = M(
124
124
  null
125
- ), c = f(
126
- (d) => {
127
- n == null || n.pause(), i.interactive || o.disableInteractions(), a(d);
125
+ ), r = f(
126
+ (u) => {
127
+ t == null || t.pause(), i.interactive || o.disableInteractions(), a(u);
128
128
  },
129
- [n, o]
130
- ), r = () => {
131
- i.interactive || (n == null || n.play(), o.enableInteractions()), a(null);
129
+ [t, o]
130
+ ), c = () => {
131
+ i.interactive || (t == null || t.play(), o.enableInteractions()), a(null);
132
132
  };
133
- return F(() => {
134
- if (!n)
133
+ return j(() => {
134
+ if (!t)
135
135
  return;
136
- const d = [];
137
- for (const p of e) {
138
- const b = It(p, c);
139
- n.addEventListener("time-update", b), d.push(b);
136
+ const u = [];
137
+ for (const m of e) {
138
+ const b = Et(m, r);
139
+ t.addEventListener("time-update", b), u.push(b);
140
140
  }
141
141
  if (s) {
142
- const p = e.find(
142
+ const m = e.find(
143
143
  (b) => b.id === s.id
144
144
  );
145
- p ? a(p) : (a(null), o.enableInteractions());
145
+ m ? a(m) : (a(null), o.enableInteractions());
146
146
  }
147
147
  return () => {
148
- for (const p of d)
149
- n.removeEventListener("time-update", p);
148
+ for (const m of u)
149
+ t.removeEventListener("time-update", m);
150
150
  };
151
- }, [n, e]), s ? /* @__PURE__ */ t("div", { className: Pt.annotationOverlay, children: s.render(r) }) : null;
151
+ }, [t, e]), s ? /* @__PURE__ */ n("div", { className: Tt.annotationOverlay, children: s.render(c) }) : null;
152
152
  }
153
- const St = "_media-buffering-indicator_1fwjr_1", Tt = "_media-buffering-spinner_1fwjr_17", Vt = "_media-buffering-spin_1fwjr_17", At = "_media-buffering-track_1fwjr_22", Et = "_media-buffering-track-fill_1fwjr_27", J = {
153
+ const At = "_media-buffering-indicator_1fwjr_1", Bt = "_media-buffering-spinner_1fwjr_17", Rt = "_media-buffering-spin_1fwjr_17", Ot = "_media-buffering-track_1fwjr_22", Ft = "_media-buffering-track-fill_1fwjr_27", te = {
154
154
  "media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
155
- mediaBufferingIndicator: St,
155
+ mediaBufferingIndicator: At,
156
156
  "media-buffering-spinner": "_media-buffering-spinner_1fwjr_17",
157
- mediaBufferingSpinner: Tt,
157
+ mediaBufferingSpinner: Bt,
158
158
  "media-buffering-spin": "_media-buffering-spin_1fwjr_17",
159
- mediaBufferingSpin: Vt,
159
+ mediaBufferingSpin: Rt,
160
160
  "media-buffering-track": "_media-buffering-track_1fwjr_22",
161
- mediaBufferingTrack: At,
161
+ mediaBufferingTrack: Ot,
162
162
  "media-buffering-track-fill": "_media-buffering-track-fill_1fwjr_27",
163
- mediaBufferingTrackFill: Et
163
+ mediaBufferingTrackFill: Ft
164
164
  };
165
- function Re() {
166
- return /* @__PURE__ */ t("div", { className: J.mediaBufferingIndicator, children: /* @__PURE__ */ l(le.Root, { className: J.mediaBufferingSpinner, size: 96, children: [
167
- /* @__PURE__ */ t(le.Track, { className: J.mediaBufferingTrack, width: 8 }),
168
- /* @__PURE__ */ t(
169
- le.TrackFill,
165
+ function Oe() {
166
+ return /* @__PURE__ */ n("div", { className: te.mediaBufferingIndicator, children: /* @__PURE__ */ l(re.Root, { className: te.mediaBufferingSpinner, size: 96, children: [
167
+ /* @__PURE__ */ n(re.Track, { className: te.mediaBufferingTrack, width: 8 }),
168
+ /* @__PURE__ */ n(
169
+ re.TrackFill,
170
170
  {
171
- className: J.mediaBufferingTrackFill,
171
+ className: te.mediaBufferingTrackFill,
172
172
  width: 8
173
173
  }
174
174
  )
175
175
  ] }) });
176
176
  }
177
- const Oe = (e) => /* @__PURE__ */ l("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
178
- /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_149_104418", children: /* @__PURE__ */ t("rect", { width: 24, height: 24, fill: "white" }) }) }),
179
- /* @__PURE__ */ t("g", { clipPath: "url(#clip0_149_104418)", children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M22.5 21.8125V2.3125C22.5 1.9 22.1625 1.5625 21.75 1.5625H2.25C1.8375 1.5625 1.5 1.9 1.5 2.3125V21.8125C1.5 22.225 1.8375 22.5625 2.25 22.5625H21.75C22.1625 22.5625 22.5 22.225 22.5 21.8125ZM21.75 0.0625C22.9905 0.0625 24 1.072 24 2.3125V21.8125C24 23.053 22.9905 24.0625 21.75 24.0625H2.25C1.0095 24.0625 0 23.053 0 21.8125V2.3125C0 1.072 1.0095 0.0625 2.25 0.0625H21.75ZM10.744 10.6709H8.74403V10.0042H6.07736V14.0042H8.74403V13.3375H10.744V14.6709C10.744 15.4042 10.144 16.0042 9.41069 16.0042H5.41069C4.67736 16.0042 4.07736 15.4042 4.07736 14.6709V9.33753C4.07736 8.6042 4.67736 8.0042 5.41069 8.0042H9.41069C10.144 8.0042 10.744 8.6042 10.744 9.33753V10.6709ZM19.8065 10.6709H17.8065V10.0042H15.1399V14.0042H17.8065V13.3375H19.8065V14.6709C19.8065 15.4042 19.2065 16.0042 18.4732 16.0042H14.4732C13.7399 16.0042 13.1399 15.4042 13.1399 14.6709V9.33753C13.1399 8.6042 13.7399 8.0042 14.4732 8.0042H18.4732C19.2065 8.0042 19.8065 8.6042 19.8065 9.33753V10.6709Z", fill: "currentColor" }) })
180
- ] }), Fe = (e) => /* @__PURE__ */ l("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
181
- /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_149_104406", children: /* @__PURE__ */ t("rect", { width: 24, height: 24, fill: "white" }) }) }),
182
- /* @__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" }) })
177
+ const Fe = (e) => /* @__PURE__ */ l("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
178
+ /* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_149_104418", children: /* @__PURE__ */ n("rect", { width: 24, height: 24, fill: "white" }) }) }),
179
+ /* @__PURE__ */ n("g", { clipPath: "url(#clip0_149_104418)", children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M22.5 21.8125V2.3125C22.5 1.9 22.1625 1.5625 21.75 1.5625H2.25C1.8375 1.5625 1.5 1.9 1.5 2.3125V21.8125C1.5 22.225 1.8375 22.5625 2.25 22.5625H21.75C22.1625 22.5625 22.5 22.225 22.5 21.8125ZM21.75 0.0625C22.9905 0.0625 24 1.072 24 2.3125V21.8125C24 23.053 22.9905 24.0625 21.75 24.0625H2.25C1.0095 24.0625 0 23.053 0 21.8125V2.3125C0 1.072 1.0095 0.0625 2.25 0.0625H21.75ZM10.744 10.6709H8.74403V10.0042H6.07736V14.0042H8.74403V13.3375H10.744V14.6709C10.744 15.4042 10.144 16.0042 9.41069 16.0042H5.41069C4.67736 16.0042 4.07736 15.4042 4.07736 14.6709V9.33753C4.07736 8.6042 4.67736 8.0042 5.41069 8.0042H9.41069C10.144 8.0042 10.744 8.6042 10.744 9.33753V10.6709ZM19.8065 10.6709H17.8065V10.0042H15.1399V14.0042H17.8065V13.3375H19.8065V14.6709C19.8065 15.4042 19.2065 16.0042 18.4732 16.0042H14.4732C13.7399 16.0042 13.1399 15.4042 13.1399 14.6709V9.33753C13.1399 8.6042 13.7399 8.0042 14.4732 8.0042H18.4732C19.2065 8.0042 19.8065 8.6042 19.8065 9.33753V10.6709Z", fill: "currentColor" }) })
180
+ ] }), Ze = (e) => /* @__PURE__ */ l("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
181
+ /* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_149_104406", children: /* @__PURE__ */ n("rect", { width: 24, height: 24, fill: "white" }) }) }),
182
+ /* @__PURE__ */ n("g", { clipPath: "url(#clip0_149_104406)", children: /* @__PURE__ */ n("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" }) })
183
183
  ] });
184
- function Bt() {
185
- const e = oe(), n = g("textTrack"), o = g("hasCaptions"), i = n && lt(n), s = w(), a = f(
186
- (c) => {
187
- e.toggleCaptions(c.nativeEvent);
184
+ function Zt() {
185
+ const e = ie(), t = g("textTrack"), o = g("hasCaptions"), i = t && rt(t), s = v(), a = f(
186
+ (r) => {
187
+ e.toggleCaptions(r.nativeEvent);
188
188
  },
189
189
  [e]
190
190
  );
191
- return o ? /* @__PURE__ */ t(
191
+ return o ? /* @__PURE__ */ n(
192
192
  "button",
193
193
  {
194
194
  type: "button",
@@ -197,31 +197,31 @@ function Bt() {
197
197
  "aria-label": "Captions",
198
198
  "aria-pressed": i ? "true" : "false",
199
199
  tabIndex: s.state.interactionsDisabled ? -1 : 0,
200
- children: i ? /* @__PURE__ */ t(Fe, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Oe, { className: "controls-button-icon" })
200
+ children: i ? /* @__PURE__ */ n(Ze, { className: "controls-button-icon" }) : /* @__PURE__ */ n(Fe, { className: "controls-button-icon" })
201
201
  }
202
202
  ) : null;
203
203
  }
204
- const Rt = "_captions_1cu0g_1", Ot = {
205
- captions: Rt
206
- }, Ft = (e, n) => e ? n.top : n.bottom;
207
- function Ze({ captions: e }) {
208
- const n = e.length > 0, o = w(), { captionOffsetOverride: i } = L(), s = o.state.captionPositionOnTop, a = Ft(
204
+ const Dt = "_captions_1cu0g_1", jt = {
205
+ captions: Dt
206
+ }, Kt = (e, t) => e ? t.top : t.bottom;
207
+ function De({ captions: e }) {
208
+ const t = e.length > 0, o = v(), { captionOffsetOverride: i } = L(), s = o.state.captionPositionOnTop, a = Kt(
209
209
  s,
210
210
  i ?? {}
211
211
  );
212
- return /* @__PURE__ */ l(Y, { children: [
213
- e.map((c) => /* @__PURE__ */ t(
212
+ return /* @__PURE__ */ l(J, { children: [
213
+ e.map((r) => /* @__PURE__ */ n(
214
214
  ct,
215
215
  {
216
216
  kind: "subtitles",
217
- type: c.type,
218
- language: c.language,
219
- label: c.label,
220
- src: c.src
217
+ type: r.type,
218
+ language: r.language,
219
+ label: r.label,
220
+ src: r.src
221
221
  },
222
- c.label
222
+ r.label
223
223
  )),
224
- n ? /* @__PURE__ */ t(
224
+ t ? /* @__PURE__ */ n(
225
225
  "div",
226
226
  {
227
227
  style: {
@@ -232,45 +232,58 @@ function Ze({ captions: e }) {
232
232
  "--captions-color": o.state.captionsInvertColors ? "rgba(22, 22, 22)" : "white",
233
233
  "--captions-background-color": o.state.captionsInvertColors ? "rgba(255, 255, 255, 0.75)" : "rgba(22, 22, 22, 0.75)"
234
234
  },
235
- children: /* @__PURE__ */ t(rt, { className: Ot.captions })
235
+ children: /* @__PURE__ */ n(ut, { className: jt.captions })
236
236
  }
237
237
  ) : null
238
238
  ] });
239
239
  }
240
- const D = [0.5, 0.75, 1, 1.25, 1.5, 2], Zt = [0.5, 1, 2, 3, 4], zt = 5, jt = (e) => {
241
- const [, n] = x({});
242
- return T(() => {
240
+ function je(e) {
241
+ var t, o, i = "";
242
+ if (typeof e == "string" || typeof e == "number") i += e;
243
+ else if (typeof e == "object") if (Array.isArray(e)) {
244
+ var s = e.length;
245
+ for (t = 0; t < s; t++) e[t] && (o = je(e[t])) && (i && (i += " "), i += o);
246
+ } else for (o in e) e[o] && (i && (i += " "), i += o);
247
+ return i;
248
+ }
249
+ function zt() {
250
+ for (var e, t, o = 0, i = "", s = arguments.length; o < s; o++) (e = arguments[o]) && (t = je(e)) && (i && (i += " "), i += t);
251
+ return i;
252
+ }
253
+ const $ = [0.5, 0.75, 1, 1.25, 1.5, 2], $t = [0.5, 1, 2, 3, 4], Ut = 5, qt = (e) => {
254
+ const [, t] = M({});
255
+ return O(() => {
243
256
  let o = [];
244
257
  return {
245
258
  add(i) {
246
- o.length >= e && o.shift(), o.push(i), n({});
259
+ o.length >= e && o.shift(), o.push(i), t({});
247
260
  },
248
261
  remove(i) {
249
- o = o.filter((s) => s !== i), n({});
262
+ o = o.filter((s) => s !== i), t({});
250
263
  },
251
264
  clear() {
252
- o = [], n({});
265
+ o = [], t({});
253
266
  },
254
267
  map(i) {
255
268
  return o.map(i);
256
269
  }
257
270
  };
258
271
  }, []);
259
- }, Dt = (e, n, o) => {
272
+ }, Gt = (e, t, o) => {
260
273
  let i = !1;
261
274
  return (s) => {
262
275
  const a = s.detail.currentTime;
263
- a >= e.timestamp && a < e.timestamp + n && !i && (o.add(e), i = !0), (a < e.timestamp || a >= e.timestamp + n) && i && (o.remove(e), i = !1);
276
+ a >= e.timestamp && a < e.timestamp + t && !i && (o.add(e), i = !0), (a < e.timestamp || a >= e.timestamp + t) && i && (o.remove(e), i = !1);
264
277
  };
265
- }, Kt = (e, n = 5) => {
266
- const o = Z(), i = jt(n);
267
- return F(() => {
278
+ }, Qt = (e, t = 5) => {
279
+ const o = E(), i = qt(t);
280
+ return j(() => {
268
281
  if (!o)
269
282
  return;
270
283
  const s = [];
271
284
  for (const a of e) {
272
- const c = Dt(a, zt, i);
273
- s.push(c), o.addEventListener("time-update", c);
285
+ const r = Gt(a, Ut, i);
286
+ s.push(r), o.addEventListener("time-update", r);
274
287
  }
275
288
  return o.dispatchEvent(
276
289
  new CustomEvent("time-update", {
@@ -282,96 +295,108 @@ const D = [0.5, 0.75, 1, 1.25, 1.5, 2], Zt = [0.5, 1, 2, 3, 4], zt = 5, jt = (e)
282
295
  i.clear();
283
296
  };
284
297
  }, [o, i, e]), i;
285
- }, $t = "_comments-overlay_1puzm_1", Ut = "_comments-container_1puzm_10", qt = "_comment_1puzm_1", Gt = "_comment-text_1puzm_47", Qt = "_comment-author-avatar_1puzm_70", Wt = "_comment-author-name_1puzm_89", O = {
286
- "comments-overlay": "_comments-overlay_1puzm_1",
287
- commentsOverlay: $t,
288
- "comments-container": "_comments-container_1puzm_10",
289
- commentsContainer: Ut,
290
- comment: qt,
291
- "comment-text": "_comment-text_1puzm_47",
292
- commentText: Gt,
293
- "comment-author-avatar": "_comment-author-avatar_1puzm_70",
294
- commentAuthorAvatar: Qt,
295
- "comment-author-name": "_comment-author-name_1puzm_89",
296
- commentAuthorName: Wt
298
+ }, Wt = "_comments-overlay_bymws_1", Yt = "_comments-container_bymws_10", Xt = "_kebab_bymws_20", Jt = "_comment_bymws_1", en = "_comment-text_bymws_51", tn = "_comment-author-avatar_bymws_71", nn = "_comment-author-name_bymws_95", R = {
299
+ "comments-overlay": "_comments-overlay_bymws_1",
300
+ commentsOverlay: Wt,
301
+ "comments-container": "_comments-container_bymws_10",
302
+ commentsContainer: Yt,
303
+ kebab: Xt,
304
+ comment: Jt,
305
+ "comment-text": "_comment-text_bymws_51",
306
+ commentText: en,
307
+ "comment-author-avatar": "_comment-author-avatar_bymws_71",
308
+ commentAuthorAvatar: tn,
309
+ "comment-author-name": "_comment-author-name_bymws_95",
310
+ commentAuthorName: nn
297
311
  };
298
- function Yt({ comment: e }) {
299
- return e.render ? e.render(e, O) : /* @__PURE__ */ l("div", { className: O.comment, onClick: () => {
300
- var n;
301
- return (n = e.onClick) == null ? void 0 : n.call(e, e);
312
+ function on({ comment: e }) {
313
+ return e.render ? e.render(e, R) : /* @__PURE__ */ l("div", { className: R.comment, onClick: () => {
314
+ var t;
315
+ return (t = e.onClick) == null ? void 0 : t.call(e, e);
302
316
  }, children: [
303
- /* @__PURE__ */ t(
317
+ /* @__PURE__ */ n(
304
318
  "img",
305
319
  {
306
- className: O.commentAuthorAvatar,
320
+ className: R.commentAuthorAvatar,
307
321
  src: e.user.avatar,
308
322
  alt: e.user.name
309
323
  }
310
324
  ),
311
- /* @__PURE__ */ t("span", { className: O.commentText, children: e.text }),
312
- /* @__PURE__ */ t("span", { className: O.commentAuthorName, children: e.user.name })
325
+ /* @__PURE__ */ n("span", { className: R.commentText, children: e.text }),
326
+ /* @__PURE__ */ n("span", { className: R.commentAuthorName, children: e.user.name })
313
327
  ] });
314
328
  }
315
- const Xt = 5;
316
- function Jt({ comments: e }) {
317
- const n = w(), o = Kt(e, Xt), i = !!g("textTrack"), s = o.map((a) => /* @__PURE__ */ t(Yt, { comment: a }, a.id));
318
- return e.length > 0 && n.state.commentsEnabled ? /* @__PURE__ */ t(
329
+ const sn = 4;
330
+ function an({
331
+ comments: e,
332
+ isKebabMenuVisible: t
333
+ }) {
334
+ const o = v(), i = Qt(e, sn), s = !!g("textTrack"), a = i.map((r) => /* @__PURE__ */ n(on, { comment: r }, r.id));
335
+ return e.length > 0 && o.state.commentsEnabled ? /* @__PURE__ */ n(
319
336
  "div",
320
337
  {
321
- className: O.commentsOverlay,
338
+ className: R.commentsOverlay,
322
339
  style: {
323
- flexDirection: n.state.captionPositionOnTop && i ? "column-reverse" : "column"
340
+ flexDirection: o.state.captionPositionOnTop && s ? "column-reverse" : "column"
324
341
  },
325
- children: /* @__PURE__ */ t("div", { className: O.commentsContainer, children: i ? s.slice(-4) : s })
342
+ children: /* @__PURE__ */ n(
343
+ "div",
344
+ {
345
+ className: zt(R.commentsContainer, {
346
+ [R.kebab]: t
347
+ }),
348
+ children: s ? a.slice(-3) : a
349
+ }
350
+ )
326
351
  }
327
352
  ) : null;
328
353
  }
329
- const en = "_root_h0dso_1", tn = "_left-controls_h0dso_28", nn = "_right-controls_h0dso_34", on = "_indicators_h0dso_40", sn = "_normal-timeline_h0dso_49", an = "_compact-timeline_h0dso_55", j = {
330
- root: en,
354
+ const ln = "_root_h0dso_1", rn = "_left-controls_h0dso_28", cn = "_right-controls_h0dso_34", un = "_indicators_h0dso_40", dn = "_normal-timeline_h0dso_49", mn = "_compact-timeline_h0dso_55", z = {
355
+ root: ln,
331
356
  "left-controls": "_left-controls_h0dso_28",
332
- leftControls: tn,
357
+ leftControls: rn,
333
358
  "right-controls": "_right-controls_h0dso_34",
334
- rightControls: nn,
335
- indicators: on,
359
+ rightControls: cn,
360
+ indicators: un,
336
361
  "normal-timeline": "_normal-timeline_h0dso_49",
337
- normalTimeline: sn,
362
+ normalTimeline: dn,
338
363
  "compact-timeline": "_compact-timeline_h0dso_55",
339
- compactTimeline: an
364
+ compactTimeline: mn
340
365
  };
341
- function ln({
366
+ function hn({
342
367
  darkMode: e,
343
- playerRef: n,
368
+ playerRef: t,
344
369
  showCaptionsButton: o = !0
345
370
  }) {
346
- const i = Z();
347
- return F(() => {
348
- i && (i.remoteControl.pauseControls(), n && (typeof n == "function" ? n(i) : n.current = i));
349
- }, [i, n]), /* @__PURE__ */ l("div", { "data-darkmode": e, className: j.root, children: [
350
- /* @__PURE__ */ t(Me, { className: j.normalTimeline }),
351
- /* @__PURE__ */ l("div", { className: j.leftControls, children: [
352
- /* @__PURE__ */ t(Wo, {}),
353
- /* @__PURE__ */ t(ti, {})
371
+ const i = E();
372
+ return j(() => {
373
+ i && (i.remoteControl.pauseControls(), t && (typeof t == "function" ? t(i) : t.current = i));
374
+ }, [i, t]), /* @__PURE__ */ l("div", { "data-darkmode": e, className: z.root, children: [
375
+ /* @__PURE__ */ n(Pe, { className: z.normalTimeline }),
376
+ /* @__PURE__ */ l("div", { className: z.leftControls, children: [
377
+ /* @__PURE__ */ n(n1, {}),
378
+ /* @__PURE__ */ n(ai, {})
354
379
  ] }),
355
- /* @__PURE__ */ t("div", { className: j.indicators, children: /* @__PURE__ */ t(r1, {}) }),
356
- /* @__PURE__ */ t(Me, { className: j.compactTimeline }),
357
- /* @__PURE__ */ l("div", { className: j.rightControls, children: [
358
- o && /* @__PURE__ */ t(Bt, {}),
359
- /* @__PURE__ */ t(co, {}),
360
- /* @__PURE__ */ t(Lo, {})
380
+ /* @__PURE__ */ n("div", { className: z.indicators, children: /* @__PURE__ */ n(_1, {}) }),
381
+ /* @__PURE__ */ n(Pe, { className: z.compactTimeline }),
382
+ /* @__PURE__ */ l("div", { className: z.rightControls, children: [
383
+ o && /* @__PURE__ */ n(Zt, {}),
384
+ /* @__PURE__ */ n(_o, {}),
385
+ /* @__PURE__ */ n(So, {})
361
386
  ] })
362
387
  ] });
363
388
  }
364
- const cn = (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" }) }), 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: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), un = "_menu-hint_1wiu5_1", dn = "_menu-button_1wiu5_5", mn = "_menu-label_1wiu5_37", hn = "_menu-icon_1wiu5_42", ee = {
389
+ const pn = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), _n = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), fn = "_menu-hint_1wiu5_1", Cn = "_menu-button_1wiu5_5", bn = "_menu-label_1wiu5_37", gn = "_menu-icon_1wiu5_42", ne = {
365
390
  "menu-hint": "_menu-hint_1wiu5_1",
366
- menuHint: un,
391
+ menuHint: fn,
367
392
  "menu-button": "_menu-button_1wiu5_5",
368
- menuButton: dn,
393
+ menuButton: Cn,
369
394
  "menu-label": "_menu-label_1wiu5_37",
370
- menuLabel: mn,
395
+ menuLabel: bn,
371
396
  "menu-icon": "_menu-icon_1wiu5_42",
372
- menuIcon: hn
397
+ menuIcon: gn
373
398
  };
374
- function K({ label: e, hint: n, onClick: o, Icon: i }) {
399
+ function q({ label: e, hint: t, onClick: o, Icon: i }) {
375
400
  return /* @__PURE__ */ l(
376
401
  "button",
377
402
  {
@@ -380,241 +405,241 @@ function K({ label: e, hint: n, onClick: o, Icon: i }) {
380
405
  "aria-label": e,
381
406
  tabIndex: -1,
382
407
  onClick: o,
383
- className: ee.menuButton,
408
+ className: ne.menuButton,
384
409
  children: [
385
- i && /* @__PURE__ */ t(i, { className: ee.menuIcon }),
386
- /* @__PURE__ */ t("span", { className: ee.menuLabel, children: e }),
387
- n && /* @__PURE__ */ t("span", { className: ee.menuHint, children: n }),
388
- /* @__PURE__ */ t(rn, {})
410
+ i && /* @__PURE__ */ n(i, { className: ne.menuIcon }),
411
+ /* @__PURE__ */ n("span", { className: ne.menuLabel, children: e }),
412
+ t && /* @__PURE__ */ n("span", { className: ne.menuHint, children: t }),
413
+ /* @__PURE__ */ n(_n, {})
389
414
  ]
390
415
  }
391
416
  );
392
417
  }
393
- const pn = (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" }) });
394
- function _n() {
395
- const e = N(), n = g("playbackRate"), { t: o } = _(), i = f(() => {
418
+ const vn = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) });
419
+ function wn() {
420
+ const e = P(), t = g("playbackRate"), { t: o } = C(), i = f(() => {
396
421
  e.setPage("speed");
397
422
  }, [e]);
398
- return /* @__PURE__ */ t(
399
- K,
423
+ return /* @__PURE__ */ n(
424
+ q,
400
425
  {
401
426
  label: o("PLAYBACK_SPEED"),
402
- hint: `${n}x`,
427
+ hint: `${t}x`,
403
428
  onClick: i,
404
- Icon: pn
429
+ Icon: vn
405
430
  }
406
431
  );
407
432
  }
408
- function Cn() {
409
- const e = N(), n = g("hasCaptions"), o = g("textTrack"), { t: i } = _(), s = f(() => {
433
+ function yn() {
434
+ const e = P(), t = g("hasCaptions"), o = g("textTrack"), { t: i } = C(), s = f(() => {
410
435
  e.setPage("captions");
411
436
  }, [e]);
412
- return n ? /* @__PURE__ */ t(
413
- K,
437
+ return t ? /* @__PURE__ */ n(
438
+ q,
414
439
  {
415
440
  label: i("CAPTIONS"),
416
441
  hint: (o == null ? void 0 : o.label) ?? i("OFF"),
417
442
  onClick: s,
418
- Icon: Oe
443
+ Icon: Fe
419
444
  }
420
445
  ) : null;
421
446
  }
422
- const fn = (e) => /* @__PURE__ */ l("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
423
- /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_412_23039", children: /* @__PURE__ */ t("rect", { width: 18, height: 18, fill: "white" }) }) }),
447
+ const kn = (e) => /* @__PURE__ */ l("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
448
+ /* @__PURE__ */ n("defs", { children: /* @__PURE__ */ n("clipPath", { id: "clip0_412_23039", children: /* @__PURE__ */ n("rect", { width: 18, height: 18, fill: "white" }) }) }),
424
449
  /* @__PURE__ */ l("g", { clipPath: "url(#clip0_412_23039)", children: [
425
- /* @__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" }),
426
- /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 8.40039H9.46326C9.7388 7.11449 10.8818 6.15039 12.25 6.15039C13.6182 6.15039 14.7612 7.11449 15.0367 8.40039H18V9.60039H15.0367C14.7612 10.8863 13.6182 11.8504 12.25 11.8504C10.8818 11.8504 9.7388 10.8863 9.46326 9.60039H0V8.40039ZM12.25 7.35039C11.3387 7.35039 10.6 8.08912 10.6 9.00039C10.6 9.91166 11.3387 10.6504 12.25 10.6504C13.1613 10.6504 13.9 9.91166 13.9 9.00039C13.9 8.08912 13.1613 7.35039 12.25 7.35039Z", fill: "currentColor" }),
427
- /* @__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" })
450
+ /* @__PURE__ */ n("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" }),
451
+ /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 8.40039H9.46326C9.7388 7.11449 10.8818 6.15039 12.25 6.15039C13.6182 6.15039 14.7612 7.11449 15.0367 8.40039H18V9.60039H15.0367C14.7612 10.8863 13.6182 11.8504 12.25 11.8504C10.8818 11.8504 9.7388 10.8863 9.46326 9.60039H0V8.40039ZM12.25 7.35039C11.3387 7.35039 10.6 8.08912 10.6 9.00039C10.6 9.91166 11.3387 10.6504 12.25 10.6504C13.1613 10.6504 13.9 9.91166 13.9 9.00039C13.9 8.08912 13.1613 7.35039 12.25 7.35039Z", fill: "currentColor" }),
452
+ /* @__PURE__ */ n("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" })
428
453
  ] })
429
454
  ] });
430
- function gn() {
431
- const e = N(), n = g("autoQuality"), o = g("quality"), { t: i } = _(), s = f(() => {
455
+ function Ln() {
456
+ const e = P(), t = g("autoQuality"), o = g("quality"), { t: i } = C(), s = f(() => {
432
457
  e.setPage("quality");
433
458
  }, [e]);
434
- return o ? /* @__PURE__ */ t(
435
- K,
459
+ return o ? /* @__PURE__ */ n(
460
+ q,
436
461
  {
437
462
  label: i("QUALITY"),
438
- hint: n ? i("AUTO", { quality: o.height }) : `${o.height}p`,
463
+ hint: t ? i("AUTO", { quality: o.height }) : `${o.height}p`,
439
464
  onClick: s,
440
- Icon: fn
465
+ Icon: kn
441
466
  }
442
467
  ) : null;
443
468
  }
444
- const bn = (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" }) }), 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", { 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" }) }), wn = "_switch-track_7nhpo_1", yn = "_switch-thumb_7nhpo_17", kn = "_switch-icon_7nhpo_31", Ln = "_switch-body_7nhpo_37", xn = "_switch-label_7nhpo_78", Mn = "_menu-icon_7nhpo_82", R = {
469
+ const xn = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), Mn = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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_7nhpo_1", Pn = "_switch-thumb_7nhpo_17", In = "_switch-icon_7nhpo_31", Sn = "_switch-body_7nhpo_37", Hn = "_switch-label_7nhpo_78", Tn = "_menu-icon_7nhpo_82", D = {
445
470
  "switch-track": "_switch-track_7nhpo_1",
446
- switchTrack: wn,
471
+ switchTrack: Nn,
447
472
  "switch-thumb": "_switch-thumb_7nhpo_17",
448
- switchThumb: yn,
473
+ switchThumb: Pn,
449
474
  "switch-icon": "_switch-icon_7nhpo_31",
450
- switchIcon: kn,
475
+ switchIcon: In,
451
476
  "switch-body": "_switch-body_7nhpo_37",
452
- switchBody: Ln,
477
+ switchBody: Sn,
453
478
  "switch-label": "_switch-label_7nhpo_78",
454
- switchLabel: xn,
479
+ switchLabel: Hn,
455
480
  "menu-icon": "_menu-icon_7nhpo_82",
456
- menuIcon: Mn
481
+ menuIcon: Tn
457
482
  };
458
- function _e({
483
+ function fe({
459
484
  label: e,
460
- checked: n = !1,
485
+ checked: t = !1,
461
486
  onClick: o,
462
487
  Icon: i
463
488
  }) {
464
489
  return /* @__PURE__ */ l(
465
490
  "button",
466
491
  {
467
- className: R.switchBody,
492
+ className: D.switchBody,
468
493
  role: "checkbox",
469
494
  "aria-label": e,
470
- "aria-checked": n,
495
+ "aria-checked": t,
471
496
  onClick: o,
472
497
  tabIndex: -1,
473
498
  children: [
474
- i && /* @__PURE__ */ t(i, { className: R.menuIcon }),
475
- /* @__PURE__ */ t("span", { className: R.switchLabel, children: e }),
476
- /* @__PURE__ */ t("div", { className: R.switchTrack, children: /* @__PURE__ */ t("div", { className: R.switchThumb, children: n ? /* @__PURE__ */ t(bn, { className: R.switchIcon }) : /* @__PURE__ */ t(vn, { className: R.switchIcon }) }) })
499
+ i && /* @__PURE__ */ n(i, { className: D.menuIcon }),
500
+ /* @__PURE__ */ n("span", { className: D.switchLabel, children: e }),
501
+ /* @__PURE__ */ n("div", { className: D.switchTrack, children: /* @__PURE__ */ n("div", { className: D.switchThumb, children: t ? /* @__PURE__ */ n(xn, { className: D.switchIcon }) : /* @__PURE__ */ n(Mn, { className: D.switchIcon }) }) })
477
502
  ]
478
503
  }
479
504
  );
480
505
  }
481
- const Nn = (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" }) });
482
- function Pn() {
483
- const { t: e } = _(), n = L(), o = w();
484
- return !n.forceComments && n.hasComments ? /* @__PURE__ */ t(
485
- _e,
506
+ const En = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) });
507
+ function Vn() {
508
+ const { t: e } = C(), t = L(), o = v();
509
+ return !t.forceComments && t.hasComments ? /* @__PURE__ */ n(
510
+ fe,
486
511
  {
487
- Icon: Nn,
512
+ Icon: En,
488
513
  label: e("COMMENTS"),
489
514
  onClick: o.toggleComments,
490
515
  checked: o.state.commentsEnabled
491
516
  }
492
517
  ) : null;
493
518
  }
494
- const In = "_main-menu_7h96l_1", Hn = {
519
+ const An = "_main-menu_7h96l_1", Bn = {
495
520
  "main-menu": "_main-menu_7h96l_1",
496
- mainMenu: In
521
+ mainMenu: An
497
522
  };
498
- function ze(e) {
499
- F(() => {
500
- const n = (o) => {
523
+ function Ce(e) {
524
+ j(() => {
525
+ const t = (o) => {
501
526
  var i;
502
527
  (i = e[o.key]) == null || i.call(e, o);
503
528
  };
504
- return document.addEventListener("keydown", n, { passive: !0 }), () => {
505
- document.removeEventListener("keydown", n);
529
+ return document.addEventListener("keydown", t, { passive: !0 }), () => {
530
+ document.removeEventListener("keydown", t);
506
531
  };
507
532
  }, [e]);
508
533
  }
509
- function Sn(e) {
510
- const n = T(() => ({ Escape: e }), [e]);
511
- return ze(n);
534
+ function Rn(e) {
535
+ const t = O(() => ({ Escape: e }), [e]);
536
+ return Ce(t);
512
537
  }
513
- const N = () => {
514
- const e = re(De);
538
+ const P = () => {
539
+ const e = ue(ze);
515
540
  if (!e)
516
541
  throw new Error(
517
542
  "useCustomSettingsMenuContext must be used within a CustomSettingsMenuContext.Provider"
518
543
  );
519
544
  return e;
520
545
  };
521
- function Tn(e, n) {
522
- const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(n);
546
+ function On(e, t) {
547
+ const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(t);
523
548
  return o[i - 1] ?? null;
524
549
  }
525
- function Vn(e, n) {
526
- const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(n);
550
+ function Fn(e, t) {
551
+ const o = Array.from(e.querySelectorAll("button")), i = o.indexOf(t);
527
552
  return o[i + 1] ?? null;
528
553
  }
529
- function An(e) {
554
+ function Zn(e) {
530
555
  return e.querySelector("button");
531
556
  }
532
- function En(e) {
533
- const n = Array.from(e.querySelectorAll("button"));
534
- return n[n.length - 1] ?? null;
557
+ function Dn(e) {
558
+ const t = Array.from(e.querySelectorAll("button"));
559
+ return t[t.length - 1] ?? null;
535
560
  }
536
- function z() {
537
- const e = N(), n = ne(null), o = T(
561
+ function K() {
562
+ const e = P(), t = U(null), o = O(
538
563
  () => ({
539
564
  Escape: e.toggle,
540
565
  ArrowUp: () => {
541
566
  const i = document.activeElement;
542
- if (i && n.current && n.current.contains(i)) {
543
- const s = Tn(
544
- n.current,
567
+ if (i && t.current && t.current.contains(i)) {
568
+ const s = On(
569
+ t.current,
545
570
  i
546
571
  );
547
572
  s == null || s.focus();
548
- } else if (n.current) {
549
- const s = En(n.current);
573
+ } else if (t.current) {
574
+ const s = Dn(t.current);
550
575
  s == null || s.focus();
551
576
  }
552
577
  },
553
578
  ArrowDown: () => {
554
579
  const i = document.activeElement;
555
- if (i && n.current && n.current.contains(i)) {
556
- const s = Vn(
557
- n.current,
580
+ if (i && t.current && t.current.contains(i)) {
581
+ const s = Fn(
582
+ t.current,
558
583
  i
559
584
  );
560
585
  s == null || s.focus();
561
- } else if (n.current) {
562
- const s = An(n.current);
586
+ } else if (t.current) {
587
+ const s = Zn(t.current);
563
588
  s == null || s.focus();
564
589
  }
565
590
  },
566
591
  ArrowRight: () => {
567
592
  const i = document.activeElement;
568
- i && n.current && n.current.contains(i) && i.click();
593
+ i && t.current && t.current.contains(i) && i.click();
569
594
  },
570
595
  ArrowLeft: e.back
571
596
  }),
572
597
  [e]
573
598
  );
574
- return ze(o), n;
599
+ return Ce(o), t;
575
600
  }
576
- function Bn() {
577
- const e = z(), { t: n } = _();
601
+ function jn() {
602
+ const e = K(), { t } = C();
578
603
  return /* @__PURE__ */ l(
579
604
  "div",
580
605
  {
581
606
  ref: e,
582
607
  id: "submenu",
583
- "aria-label": n("MAIN_MENU"),
608
+ "aria-label": t("MAIN_MENU"),
584
609
  role: "menu",
585
- className: Hn.mainMenu,
610
+ className: Bn.mainMenu,
586
611
  children: [
587
- /* @__PURE__ */ t(_n, {}),
588
- /* @__PURE__ */ t(Cn, {}),
589
- /* @__PURE__ */ t(Pn, {}),
590
- /* @__PURE__ */ t(gn, {})
612
+ /* @__PURE__ */ n(wn, {}),
613
+ /* @__PURE__ */ n(yn, {}),
614
+ /* @__PURE__ */ n(Vn, {}),
615
+ /* @__PURE__ */ n(Ln, {})
591
616
  ]
592
617
  }
593
618
  );
594
619
  }
595
- const ie = (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" }) }), $ = (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" }) }), Rn = "_menu-container_18cio_1", On = "_scrollable-buttons_18cio_2", Fn = "_menu-heading_18cio_9", Zn = "_check-icon_18cio_20", zn = "_trash-icon_18cio_21", jn = "_menu-item-label_18cio_34", Dn = "_menu-item_18cio_34", Kn = "_menu-back-button_18cio_71", u = {
620
+ const se = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), G = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), Kn = "_menu-container_18cio_1", zn = "_scrollable-buttons_18cio_2", $n = "_menu-heading_18cio_9", Un = "_check-icon_18cio_20", qn = "_trash-icon_18cio_21", Gn = "_menu-item-label_18cio_34", Qn = "_menu-item_18cio_34", Wn = "_menu-back-button_18cio_71", d = {
596
621
  "menu-container": "_menu-container_18cio_1",
597
- menuContainer: Rn,
622
+ menuContainer: Kn,
598
623
  "scrollable-buttons": "_scrollable-buttons_18cio_2",
599
- scrollableButtons: On,
624
+ scrollableButtons: zn,
600
625
  "menu-heading": "_menu-heading_18cio_9",
601
- menuHeading: Fn,
626
+ menuHeading: $n,
602
627
  "check-icon": "_check-icon_18cio_20",
603
- checkIcon: Zn,
628
+ checkIcon: Un,
604
629
  "trash-icon": "_trash-icon_18cio_21",
605
- trashIcon: zn,
630
+ trashIcon: qn,
606
631
  "menu-item-label": "_menu-item-label_18cio_34",
607
- menuItemLabel: jn,
632
+ menuItemLabel: Gn,
608
633
  "menu-item": "_menu-item_18cio_34",
609
- menuItem: Dn,
634
+ menuItem: Qn,
610
635
  "menu-back-button": "_menu-back-button_18cio_71",
611
- menuBackButton: Kn
636
+ menuBackButton: Wn
612
637
  };
613
- function $n() {
614
- const e = N(), n = ut({
615
- rates: D,
638
+ function Yn() {
639
+ const e = P(), t = dt({
640
+ rates: $,
616
641
  normalLabel: "1x"
617
- }), { t: o } = _(), i = z();
642
+ }), { t: o } = C(), i = K();
618
643
  return /* @__PURE__ */ l(
619
644
  "div",
620
645
  {
@@ -622,7 +647,7 @@ function $n() {
622
647
  id: "submenu",
623
648
  "aria-label": o("SPEED_MENU"),
624
649
  role: "menu",
625
- className: u.menuContainer,
650
+ className: d.menuContainer,
626
651
  children: [
627
652
  /* @__PURE__ */ l(
628
653
  "button",
@@ -630,28 +655,28 @@ function $n() {
630
655
  type: "button",
631
656
  role: "menuitem",
632
657
  tabIndex: -1,
633
- className: u.menuBackButton,
658
+ className: d.menuBackButton,
634
659
  onClick: e.back,
635
660
  children: [
636
- /* @__PURE__ */ t($, {}),
637
- /* @__PURE__ */ t("span", { children: o("BACK") })
661
+ /* @__PURE__ */ n(G, {}),
662
+ /* @__PURE__ */ n("span", { children: o("BACK") })
638
663
  ]
639
664
  }
640
665
  ),
641
- /* @__PURE__ */ t("strong", { className: u.menuHeading, children: o("PLAYBACK_SPEED") }),
642
- /* @__PURE__ */ t("div", { className: u.scrollableButtons, children: n.map(({ value: s, label: a, select: c, selected: r }) => /* @__PURE__ */ l(
666
+ /* @__PURE__ */ n("strong", { className: d.menuHeading, children: o("PLAYBACK_SPEED") }),
667
+ /* @__PURE__ */ n("div", { className: d.scrollableButtons, children: t.map(({ value: s, label: a, select: r, selected: c }) => /* @__PURE__ */ l(
643
668
  "button",
644
669
  {
645
670
  type: "button",
646
671
  role: "menuitemradio",
647
672
  "aria-label": a,
648
- "aria-checked": r,
649
- onClick: () => c(),
673
+ "aria-checked": c,
674
+ onClick: () => r(),
650
675
  tabIndex: -1,
651
- className: u.menuItem,
676
+ className: d.menuItem,
652
677
  children: [
653
- /* @__PURE__ */ t(ie, { className: u.checkIcon }),
654
- /* @__PURE__ */ t("span", { className: u.menuItemLabel, children: a })
678
+ /* @__PURE__ */ n(se, { className: d.checkIcon }),
679
+ /* @__PURE__ */ n("span", { className: d.menuItemLabel, children: a })
655
680
  ]
656
681
  },
657
682
  s
@@ -660,62 +685,62 @@ function $n() {
660
685
  }
661
686
  );
662
687
  }
663
- function Un() {
664
- const e = N(), n = g("textTrack"), { t: o } = _(), { disableCaptionSettings: i } = w(), s = f(() => {
688
+ function Xn() {
689
+ const e = P(), t = g("textTrack"), { t: o } = C(), { disableCaptionSettings: i } = v(), s = f(() => {
665
690
  e.setPage("captionLanguage");
666
691
  }, [e]);
667
- return i ? null : /* @__PURE__ */ t(
668
- K,
692
+ return i ? null : /* @__PURE__ */ n(
693
+ q,
669
694
  {
670
695
  label: o("LANGUAGE"),
671
- hint: (n == null ? void 0 : n.label) ?? o("OFF"),
696
+ hint: (t == null ? void 0 : t.label) ?? o("OFF"),
672
697
  onClick: s
673
698
  }
674
699
  );
675
700
  }
676
- function qn() {
677
- const { t: e } = _(), n = w(), o = N(), i = f(() => {
701
+ function Jn() {
702
+ const { t: e } = C(), t = v(), o = P(), i = f(() => {
678
703
  o.setPage("captionFontSize");
679
704
  }, [o]);
680
- return /* @__PURE__ */ t(
681
- K,
705
+ return /* @__PURE__ */ n(
706
+ q,
682
707
  {
683
708
  label: e("CAPTION_FONT_SIZE"),
684
- hint: `${n.state.captionsFontSizeMultiplier * 100}%`,
709
+ hint: `${t.state.captionsFontSizeMultiplier * 100}%`,
685
710
  onClick: i
686
711
  }
687
712
  );
688
713
  }
689
- function Gn() {
690
- const { t: e } = _(), n = w();
691
- return /* @__PURE__ */ t(
692
- _e,
714
+ function eo() {
715
+ const { t: e } = C(), t = v();
716
+ return /* @__PURE__ */ n(
717
+ fe,
693
718
  {
694
719
  label: e("ON_TOP"),
695
- onClick: n.toggleCaptionPositionOnTop,
696
- checked: n.state.captionPositionOnTop
720
+ onClick: t.toggleCaptionPositionOnTop,
721
+ checked: t.state.captionPositionOnTop
697
722
  }
698
723
  );
699
724
  }
700
- function Qn() {
701
- const { t: e } = _(), n = w();
702
- return /* @__PURE__ */ t(
703
- _e,
725
+ function to() {
726
+ const { t: e } = C(), t = v();
727
+ return /* @__PURE__ */ n(
728
+ fe,
704
729
  {
705
730
  label: e("INVERT_COLORS"),
706
- onClick: n.toggleCaptionsInvertColors,
707
- checked: n.state.captionsInvertColors
731
+ onClick: t.toggleCaptionsInvertColors,
732
+ checked: t.state.captionsInvertColors
708
733
  }
709
734
  );
710
735
  }
711
- function Wn() {
712
- const e = N(), { t: n } = _(), o = f(() => {
736
+ function no() {
737
+ const e = P(), { t } = C(), o = f(() => {
713
738
  e.setPage("captionManage");
714
739
  }, [e]);
715
- return /* @__PURE__ */ t(K, { label: n("CAPTIONS_MANAGE"), onClick: o });
740
+ return /* @__PURE__ */ n(q, { label: t("CAPTIONS_MANAGE"), onClick: o });
716
741
  }
717
- function Yn() {
718
- const e = N(), n = L(), { t: o } = _(), i = z();
742
+ function oo() {
743
+ const e = P(), t = L(), { t: o } = C(), i = K();
719
744
  return /* @__PURE__ */ l(
720
745
  "div",
721
746
  {
@@ -723,7 +748,7 @@ function Yn() {
723
748
  id: "submenu",
724
749
  "aria-label": o("CAPTIONS_MENU"),
725
750
  role: "menu",
726
- className: u.menuContainer,
751
+ className: d.menuContainer,
727
752
  children: [
728
753
  /* @__PURE__ */ l(
729
754
  "button",
@@ -731,28 +756,28 @@ function Yn() {
731
756
  type: "button",
732
757
  role: "menuitem",
733
758
  tabIndex: -1,
734
- className: u.menuBackButton,
759
+ className: d.menuBackButton,
735
760
  onClick: e.back,
736
761
  children: [
737
- /* @__PURE__ */ t($, {}),
738
- /* @__PURE__ */ t("span", { children: o("BACK") })
762
+ /* @__PURE__ */ n(G, {}),
763
+ /* @__PURE__ */ n("span", { children: o("BACK") })
739
764
  ]
740
765
  }
741
766
  ),
742
- /* @__PURE__ */ t("strong", { className: u.menuHeading, children: o("CAPTIONS") }),
743
- /* @__PURE__ */ l("div", { className: u.scrollableButtons, children: [
744
- /* @__PURE__ */ t(Un, {}),
745
- /* @__PURE__ */ t(qn, {}),
746
- /* @__PURE__ */ t(Gn, {}),
747
- /* @__PURE__ */ t(Qn, {}),
748
- n.onCaptionsDelete && /* @__PURE__ */ t(Wn, {})
767
+ /* @__PURE__ */ n("strong", { className: d.menuHeading, children: o("CAPTIONS") }),
768
+ /* @__PURE__ */ l("div", { className: d.scrollableButtons, children: [
769
+ /* @__PURE__ */ n(Xn, {}),
770
+ /* @__PURE__ */ n(Jn, {}),
771
+ /* @__PURE__ */ n(eo, {}),
772
+ /* @__PURE__ */ n(to, {}),
773
+ t.onCaptionsDelete && /* @__PURE__ */ n(no, {})
749
774
  ] })
750
775
  ]
751
776
  }
752
777
  );
753
778
  }
754
- function Xn() {
755
- const e = N(), n = dt(), { t: o } = _(), i = z();
779
+ function io() {
780
+ const e = P(), t = mt(), { t: o } = C(), i = K();
756
781
  return /* @__PURE__ */ l(
757
782
  "div",
758
783
  {
@@ -760,7 +785,7 @@ function Xn() {
760
785
  id: "submenu",
761
786
  "aria-label": o("CAPTIONS_LANGUAGE_MENU"),
762
787
  role: "menu",
763
- className: u.menuContainer,
788
+ className: d.menuContainer,
764
789
  children: [
765
790
  /* @__PURE__ */ l(
766
791
  "button",
@@ -768,27 +793,27 @@ function Xn() {
768
793
  type: "button",
769
794
  role: "menuitem",
770
795
  tabIndex: -1,
771
- className: u.menuBackButton,
796
+ className: d.menuBackButton,
772
797
  onClick: e.back,
773
798
  children: [
774
- /* @__PURE__ */ t($, {}),
775
- /* @__PURE__ */ t("span", { children: o("BACK") })
799
+ /* @__PURE__ */ n(G, {}),
800
+ /* @__PURE__ */ n("span", { children: o("BACK") })
776
801
  ]
777
802
  }
778
803
  ),
779
- /* @__PURE__ */ t("strong", { className: u.menuHeading, children: o("CAPTIONS") }),
780
- /* @__PURE__ */ t("div", { className: u.scrollableButtons, children: n.map(({ value: s, label: a, select: c, selected: r }) => /* @__PURE__ */ l(
804
+ /* @__PURE__ */ n("strong", { className: d.menuHeading, children: o("CAPTIONS") }),
805
+ /* @__PURE__ */ n("div", { className: d.scrollableButtons, children: t.map(({ value: s, label: a, select: r, selected: c }) => /* @__PURE__ */ l(
781
806
  "button",
782
807
  {
783
808
  type: "button",
784
809
  role: "menuitemradio",
785
- "aria-checked": r,
786
- onClick: () => c(),
810
+ "aria-checked": c,
811
+ onClick: () => r(),
787
812
  tabIndex: -1,
788
- className: u.menuItem,
813
+ className: d.menuItem,
789
814
  children: [
790
- /* @__PURE__ */ t(ie, { className: u.checkIcon }),
791
- /* @__PURE__ */ t("span", { className: u.menuItemLabel, children: a })
815
+ /* @__PURE__ */ n(se, { className: d.checkIcon }),
816
+ /* @__PURE__ */ n("span", { className: d.menuItemLabel, children: a })
792
817
  ]
793
818
  },
794
819
  s
@@ -797,8 +822,8 @@ function Xn() {
797
822
  }
798
823
  );
799
824
  }
800
- function Jn() {
801
- const e = w(), n = N(), { t: o } = _(), i = z();
825
+ function so() {
826
+ const e = v(), t = P(), { t: o } = C(), i = K();
802
827
  return /* @__PURE__ */ l(
803
828
  "div",
804
829
  {
@@ -806,7 +831,7 @@ function Jn() {
806
831
  id: "submenu",
807
832
  "aria-label": o("CAPTIONS_FONT_SIZE_MENU"),
808
833
  role: "menu",
809
- className: u.menuContainer,
834
+ className: d.menuContainer,
810
835
  children: [
811
836
  /* @__PURE__ */ l(
812
837
  "button",
@@ -814,16 +839,16 @@ function Jn() {
814
839
  type: "button",
815
840
  role: "menuitem",
816
841
  tabIndex: -1,
817
- className: u.menuBackButton,
818
- onClick: n.back,
842
+ className: d.menuBackButton,
843
+ onClick: t.back,
819
844
  children: [
820
- /* @__PURE__ */ t($, {}),
821
- /* @__PURE__ */ t("span", { children: o("BACK") })
845
+ /* @__PURE__ */ n(G, {}),
846
+ /* @__PURE__ */ n("span", { children: o("BACK") })
822
847
  ]
823
848
  }
824
849
  ),
825
- /* @__PURE__ */ t("strong", { className: u.menuHeading, children: o("CAPTIONS") }),
826
- /* @__PURE__ */ t("div", { className: u.scrollableButtons, children: Zt.map((s) => /* @__PURE__ */ l(
850
+ /* @__PURE__ */ n("strong", { className: d.menuHeading, children: o("CAPTIONS") }),
851
+ /* @__PURE__ */ n("div", { className: d.scrollableButtons, children: $t.map((s) => /* @__PURE__ */ l(
827
852
  "button",
828
853
  {
829
854
  type: "button",
@@ -833,10 +858,10 @@ function Jn() {
833
858
  e.setCaptionsFontSizeMultiplier(s);
834
859
  },
835
860
  tabIndex: -1,
836
- className: u.menuItem,
861
+ className: d.menuItem,
837
862
  children: [
838
- /* @__PURE__ */ t(ie, { className: u.checkIcon }),
839
- /* @__PURE__ */ l("span", { className: u.menuItemLabel, children: [
863
+ /* @__PURE__ */ n(se, { className: d.checkIcon }),
864
+ /* @__PURE__ */ l("span", { className: d.menuItemLabel, children: [
840
865
  s * 100,
841
866
  "%"
842
867
  ] })
@@ -848,9 +873,9 @@ function Jn() {
848
873
  }
849
874
  );
850
875
  }
851
- const je = (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: "M14.8234 16.4118C14.8234 16.7029 14.5852 16.9412 14.294 16.9412H3.70577C3.41459 16.9412 3.17636 16.7029 3.17636 16.4118V5.29412H2.11753V16.4118C2.11753 17.2874 2.83012 18 3.70577 18H14.294C15.1697 18 15.8822 17.2874 15.8822 16.4118V5.29412H14.8234V16.4118ZM6.35284 14.8235H7.41166V6.35294H6.35284V14.8235ZM10.5881 14.8235H11.6469V6.35294H10.5881V14.8235ZM12.5682 3.17647L11.4099 0H6.51176L5.35553 3.17647H0V4.23529H18V3.17647H12.5682ZM6.48105 3.17647L7.25293 1.05882H10.6698L11.4416 3.17647H6.48105Z", fill: "currentColor" }) });
852
- function eo() {
853
- const e = N(), n = L(), { t: o } = _(), i = z();
876
+ const Ke = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.8234 16.4118C14.8234 16.7029 14.5852 16.9412 14.294 16.9412H3.70577C3.41459 16.9412 3.17636 16.7029 3.17636 16.4118V5.29412H2.11753V16.4118C2.11753 17.2874 2.83012 18 3.70577 18H14.294C15.1697 18 15.8822 17.2874 15.8822 16.4118V5.29412H14.8234V16.4118ZM6.35284 14.8235H7.41166V6.35294H6.35284V14.8235ZM10.5881 14.8235H11.6469V6.35294H10.5881V14.8235ZM12.5682 3.17647L11.4099 0H6.51176L5.35553 3.17647H0V4.23529H18V3.17647H12.5682ZM6.48105 3.17647L7.25293 1.05882H10.6698L11.4416 3.17647H6.48105Z", fill: "currentColor" }) });
877
+ function ao() {
878
+ const e = P(), t = L(), { t: o } = C(), i = K();
854
879
  return /* @__PURE__ */ l(
855
880
  "div",
856
881
  {
@@ -858,7 +883,7 @@ function eo() {
858
883
  id: "submenu",
859
884
  "aria-label": o("CAPTIONS_MANAGE_MENU"),
860
885
  role: "menu",
861
- className: u.menuContainer,
886
+ className: d.menuContainer,
862
887
  children: [
863
888
  /* @__PURE__ */ l(
864
889
  "button",
@@ -866,29 +891,29 @@ function eo() {
866
891
  type: "button",
867
892
  role: "menuitem",
868
893
  tabIndex: -1,
869
- className: u.menuBackButton,
894
+ className: d.menuBackButton,
870
895
  onClick: e.back,
871
896
  children: [
872
- /* @__PURE__ */ t($, {}),
873
- /* @__PURE__ */ t("span", { children: o("BACK") })
897
+ /* @__PURE__ */ n(G, {}),
898
+ /* @__PURE__ */ n("span", { children: o("BACK") })
874
899
  ]
875
900
  }
876
901
  ),
877
- /* @__PURE__ */ t("strong", { className: u.menuHeading, children: o("CAPTIONS_MANAGE") }),
878
- /* @__PURE__ */ t("div", { className: u.scrollableButtons, children: n.captions.map((s) => /* @__PURE__ */ l(
902
+ /* @__PURE__ */ n("strong", { className: d.menuHeading, children: o("CAPTIONS_MANAGE") }),
903
+ /* @__PURE__ */ n("div", { className: d.scrollableButtons, children: t.captions.map((s) => /* @__PURE__ */ l(
879
904
  "button",
880
905
  {
881
906
  type: "button",
882
907
  role: "menuitem",
883
908
  onClick: () => {
884
909
  var a;
885
- (a = n.onCaptionsDelete) == null || a.call(n, s);
910
+ (a = t.onCaptionsDelete) == null || a.call(t, s);
886
911
  },
887
912
  tabIndex: -1,
888
- className: u.menuItem,
913
+ className: d.menuItem,
889
914
  children: [
890
- /* @__PURE__ */ t(je, { className: u.trashIcon }),
891
- /* @__PURE__ */ t("span", { className: u.menuItemLabel, children: o("CAPTION_DELETE", { language: s.label }) })
915
+ /* @__PURE__ */ n(Ke, { className: d.trashIcon }),
916
+ /* @__PURE__ */ n("span", { className: d.menuItemLabel, children: o("CAPTION_DELETE", { language: s.label }) })
892
917
  ]
893
918
  },
894
919
  s.language
@@ -897,8 +922,8 @@ function eo() {
897
922
  }
898
923
  );
899
924
  }
900
- function to() {
901
- const e = N(), n = mt({ sort: "descending" }), o = g("autoQuality"), { t: i } = _(), s = z();
925
+ function lo() {
926
+ const e = P(), t = ht({ sort: "descending" }), o = g("autoQuality"), { t: i } = C(), s = K();
902
927
  return /* @__PURE__ */ l(
903
928
  "div",
904
929
  {
@@ -906,7 +931,7 @@ function to() {
906
931
  id: "submenu",
907
932
  "aria-label": i("QUALITY_MENU"),
908
933
  role: "menu",
909
- className: u.menuContainer,
934
+ className: d.menuContainer,
910
935
  children: [
911
936
  /* @__PURE__ */ l(
912
937
  "button",
@@ -914,27 +939,27 @@ function to() {
914
939
  type: "button",
915
940
  role: "menuitem",
916
941
  tabIndex: -1,
917
- className: u.menuBackButton,
942
+ className: d.menuBackButton,
918
943
  onClick: e.back,
919
944
  children: [
920
- /* @__PURE__ */ t($, {}),
921
- /* @__PURE__ */ t("span", { children: i("BACK") })
945
+ /* @__PURE__ */ n(G, {}),
946
+ /* @__PURE__ */ n("span", { children: i("BACK") })
922
947
  ]
923
948
  }
924
949
  ),
925
- /* @__PURE__ */ t("strong", { className: u.menuHeading, children: i("QUALITY") }),
926
- /* @__PURE__ */ t("div", { className: u.scrollableButtons, children: n.map(({ value: a, label: c, select: r, selected: d }) => /* @__PURE__ */ l(
950
+ /* @__PURE__ */ n("strong", { className: d.menuHeading, children: i("QUALITY") }),
951
+ /* @__PURE__ */ n("div", { className: d.scrollableButtons, children: t.map(({ value: a, label: r, select: c, selected: u }) => /* @__PURE__ */ l(
927
952
  "button",
928
953
  {
929
954
  type: "button",
930
955
  role: "menuitemradio",
931
- "aria-checked": a === "auto" && o || d && !o,
932
- onClick: () => r(),
956
+ "aria-checked": a === "auto" && o || u && !o,
957
+ onClick: () => c(),
933
958
  tabIndex: -1,
934
- className: u.menuItem,
959
+ className: d.menuItem,
935
960
  children: [
936
- /* @__PURE__ */ t(ie, { className: u.checkIcon }),
937
- /* @__PURE__ */ t("span", { className: u.menuItemLabel, children: c })
961
+ /* @__PURE__ */ n(se, { className: d.checkIcon }),
962
+ /* @__PURE__ */ n("span", { className: d.menuItemLabel, children: r })
938
963
  ]
939
964
  },
940
965
  a
@@ -943,341 +968,348 @@ function to() {
943
968
  }
944
969
  );
945
970
  }
946
- const De = ce(null), no = {
947
- main: Bn,
948
- speed: $n,
949
- captions: Yn,
950
- captionLanguage: Xn,
951
- captionFontSize: Jn,
952
- captionManage: eo,
953
- quality: to
954
- }, oo = {
971
+ const ze = ce(null), ro = {
972
+ main: jn,
973
+ speed: Yn,
974
+ captions: oo,
975
+ captionLanguage: io,
976
+ captionFontSize: so,
977
+ captionManage: ao,
978
+ quality: lo
979
+ }, co = {
955
980
  name: "middleware",
956
981
  async fn(e) {
957
- const n = await yt(e);
982
+ const t = await xt(e);
958
983
  return {
959
- x: e.x - n.right - 4,
984
+ x: e.x - t.right - 4,
960
985
  y: e.y - 4
961
986
  };
962
987
  }
963
988
  };
964
- function io() {
965
- const e = w(), [n, o] = x(["main"]), [i, s] = x(!1), a = f(() => {
989
+ function uo() {
990
+ const e = v(), [t, o] = M(["main"]), [i, s] = M(!1), a = f(() => {
966
991
  s(!i), o(["main"]), e.setGlobalKeysDisabled(!i);
967
- }, [i]), c = f((C) => {
968
- o((V) => V.concat(C));
969
- }, []), r = f(() => {
970
- o((C) => C.length > 1 ? C.slice(0, -1) : C);
971
- }, []), d = T(() => no[n[n.length - 1]], [n]), { refs: p, floatingStyles: b, context: v } = ue({
992
+ }, [i]), r = f((_) => {
993
+ o((I) => I.concat(_));
994
+ }, []), c = f(() => {
995
+ o((_) => _.length > 1 ? _.slice(0, -1) : _);
996
+ }, []), u = O(() => ro[t[t.length - 1]], [t]), { refs: m, floatingStyles: b, context: w } = de({
972
997
  open: i,
973
998
  onOpenChange: a,
974
999
  placement: "top-end",
975
- whileElementsMounted: de,
976
- middleware: [oo]
977
- }), k = me(v, { escapeKey: !1 }), { getReferenceProps: y, getFloatingProps: P } = he([k]), h = T(
978
- () => ({ setPage: c, back: r, toggle: a }),
979
- [r, c, a]
1000
+ whileElementsMounted: me,
1001
+ middleware: [co]
1002
+ }), y = he(w, { escapeKey: !1 }), { getReferenceProps: k, getFloatingProps: S } = pe([y]), p = O(
1003
+ () => ({ setPage: r, back: c, toggle: a }),
1004
+ [c, r, a]
980
1005
  );
981
1006
  return {
982
- Page: d,
1007
+ Page: u,
983
1008
  open: i,
984
- refs: p,
1009
+ refs: m,
985
1010
  floatingStyles: b,
986
- context: v,
1011
+ context: w,
987
1012
  getReferenceProps() {
988
1013
  return {
989
- ...y(),
1014
+ ...k(),
990
1015
  tabIndex: e.state.interactionsDisabled ? -1 : 0
991
1016
  };
992
1017
  },
993
- getFloatingProps: P,
994
- contextValue: h
1018
+ getFloatingProps: S,
1019
+ contextValue: p
995
1020
  };
996
1021
  }
997
- const so = "_settings-menu_qaqbm_1", ao = "_arrow_qaqbm_37", lo = {
1022
+ const mo = "_settings-menu_qaqbm_1", ho = "_arrow_qaqbm_37", po = {
998
1023
  "settings-menu": "_settings-menu_qaqbm_1",
999
- settingsMenu: so,
1000
- arrow: ao
1024
+ settingsMenu: mo,
1025
+ arrow: ho
1001
1026
  };
1002
- function co() {
1027
+ function _o() {
1003
1028
  const {
1004
1029
  Page: e,
1005
- context: n,
1030
+ context: t,
1006
1031
  floatingStyles: o,
1007
1032
  getFloatingProps: i,
1008
1033
  getReferenceProps: s,
1009
1034
  open: a,
1010
- refs: c,
1011
- contextValue: r
1012
- } = io(), { t: d } = _();
1013
- return /* @__PURE__ */ l(Y, { children: [
1014
- /* @__PURE__ */ t(
1035
+ refs: r,
1036
+ contextValue: c
1037
+ } = uo(), { t: u } = C();
1038
+ return /* @__PURE__ */ l(J, { children: [
1039
+ /* @__PURE__ */ n(
1015
1040
  "button",
1016
1041
  {
1017
- ref: c.setReference,
1042
+ ref: r.setReference,
1018
1043
  type: "button",
1019
1044
  className: "controls-button",
1020
- "aria-label": d("SETTINGS"),
1021
- onClick: r.toggle,
1045
+ "aria-label": u("SETTINGS"),
1046
+ onClick: c.toggle,
1022
1047
  "aria-expanded": a,
1023
1048
  ...s(),
1024
- children: /* @__PURE__ */ t(cn, { className: "controls-button-icon icon-rotate" })
1049
+ children: /* @__PURE__ */ n(pn, { className: "controls-button-icon icon-rotate" })
1025
1050
  }
1026
1051
  ),
1027
- a && /* @__PURE__ */ t(pe, { context: n, restoreFocus: !0, modal: !1, children: /* @__PURE__ */ t(
1052
+ a && /* @__PURE__ */ n(_e, { context: t, restoreFocus: !0, modal: !1, children: /* @__PURE__ */ n(
1028
1053
  "div",
1029
1054
  {
1030
1055
  "aria-labelledby": "submenu",
1031
- className: lo.settingsMenu,
1032
- ref: c.setFloating,
1056
+ className: po.settingsMenu,
1057
+ ref: r.setFloating,
1033
1058
  style: o,
1034
1059
  ...i(),
1035
- children: /* @__PURE__ */ t(De.Provider, { value: r, children: /* @__PURE__ */ t(e, {}) })
1060
+ children: /* @__PURE__ */ n(ze.Provider, { value: c, children: /* @__PURE__ */ n(e, {}) })
1036
1061
  }
1037
1062
  ) })
1038
1063
  ] });
1039
1064
  }
1040
- function Ke(e, n = 1e3) {
1065
+ function $e(e, t = 1e3) {
1041
1066
  return function() {
1042
- const i = g("lastKeyboardAction"), [s, a] = x(!1), c = f(() => a(!1), []);
1043
- return F(() => {
1044
- a(!!i);
1045
- const r = setTimeout(c, n);
1046
- return () => clearTimeout(r);
1047
- }, [i, n]), s ? /* @__PURE__ */ t(e, {}) : null;
1067
+ const i = E(), [s, a] = M(null), r = f(() => a(null), []);
1068
+ return j(() => {
1069
+ if (!i)
1070
+ return () => {
1071
+ };
1072
+ const c = new AbortController();
1073
+ let u;
1074
+ return i.addEventListener(
1075
+ "keyboardAction",
1076
+ (m) => {
1077
+ clearTimeout(u);
1078
+ const b = m.detail;
1079
+ a(/* @__PURE__ */ n(e, { action: b })), u = setTimeout(r, t);
1080
+ },
1081
+ { signal: c.signal }
1082
+ ), () => {
1083
+ clearTimeout(u), c.abort();
1084
+ };
1085
+ }, [t]), s;
1048
1086
  };
1049
1087
  }
1050
- const Ce = (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" }) }), fe = (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" }) }), $e = (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" }) }), Ue = (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" }) }), qe = (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" }) }), ro = (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" }) }), uo = (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" }) }), mo = "_feedback-overlay_v4lbu_1", ho = "_feedback-message_v4lbu_14", po = "_feedback-icon_v4lbu_30", _o = "_feedback-icon-animation_v4lbu_1", M = {
1051
- "feedback-overlay": "_feedback-overlay_v4lbu_1",
1052
- feedbackOverlay: mo,
1053
- "feedback-message": "_feedback-message_v4lbu_14",
1054
- feedbackMessage: ho,
1055
- "feedback-icon": "_feedback-icon_v4lbu_30",
1056
- feedbackIcon: po,
1057
- "feedback-icon-animation": "_feedback-icon-animation_v4lbu_1",
1058
- feedbackIconAnimation: _o
1088
+ const be = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), ge = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), fo = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), Co = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), Ue = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), qe = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), Ge = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), bo = "_feedback-overlay_3kkqe_1", go = "_feedback-message_3kkqe_14", vo = "_feedback-icon_3kkqe_30", wo = "_feedback-icon-animation_3kkqe_1", N = {
1089
+ "feedback-overlay": "_feedback-overlay_3kkqe_1",
1090
+ feedbackOverlay: bo,
1091
+ "feedback-message": "_feedback-message_3kkqe_14",
1092
+ feedbackMessage: go,
1093
+ "feedback-icon": "_feedback-icon_3kkqe_30",
1094
+ feedbackIcon: vo,
1095
+ "feedback-icon-animation": "_feedback-icon-animation_3kkqe_1",
1096
+ feedbackIconAnimation: wo
1059
1097
  };
1060
- function Co() {
1061
- var o;
1062
- const e = He();
1063
- switch ((o = e.lastKeyboardAction) == null ? void 0 : o.action) {
1098
+ function yo({ action: e }) {
1099
+ const t = E();
1100
+ if (!t)
1101
+ return null;
1102
+ switch (e) {
1064
1103
  case "togglePaused":
1065
- return /* @__PURE__ */ t("i", { className: M.feedbackIcon, children: e.paused ? /* @__PURE__ */ t(Ce, {}) : /* @__PURE__ */ t(fe, {}) });
1066
- case "toggleCaptions":
1067
- case "nextCaptionLanguage":
1068
- case "previousCaptionLanguage":
1069
- return e.hasCaptions ? /* @__PURE__ */ t("i", { className: M.feedbackIcon, children: /* @__PURE__ */ t(Fe, {}) }) : null;
1070
- case "volumeUp":
1071
- case "volumeDown":
1072
- case "toggleMuted":
1073
- return /* @__PURE__ */ t("i", { className: M.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t($e, {}) : e.volume >= 0.5 ? /* @__PURE__ */ t(qe, {}) : /* @__PURE__ */ t(Ue, {}) });
1104
+ return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: t.paused ? /* @__PURE__ */ n(be, {}) : /* @__PURE__ */ n(ge, {}) });
1074
1105
  case "seekForward":
1075
1106
  case "seekForward10":
1076
- return /* @__PURE__ */ t("i", { className: M.feedbackIcon, children: /* @__PURE__ */ t(ro, { className: "right" }) });
1107
+ return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(fo, { className: "right" }) });
1077
1108
  case "seekBackward":
1078
1109
  case "seekBackward10":
1079
- return /* @__PURE__ */ t("i", { className: M.feedbackIcon, children: /* @__PURE__ */ t(uo, { className: "left" }) });
1110
+ return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(Co, { className: "left" }) });
1111
+ case "captionsChange":
1112
+ return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: /* @__PURE__ */ n(Ze, {}) });
1113
+ case "volumeChange":
1114
+ return /* @__PURE__ */ n("i", { className: N.feedbackIcon, children: t.muted || t.volume === 0 ? /* @__PURE__ */ n(Ue, {}) : t.volume >= 0.5 ? /* @__PURE__ */ n(Ge, {}) : /* @__PURE__ */ n(qe, {}) });
1080
1115
  default:
1081
1116
  return null;
1082
1117
  }
1083
1118
  }
1084
- function fo() {
1085
- var i;
1086
- const { t: e } = _(), n = He();
1087
- switch ((i = n.lastKeyboardAction) == null ? void 0 : i.action) {
1088
- case "toggleCaptions":
1089
- case "nextCaptionLanguage":
1090
- case "previousCaptionLanguage":
1091
- return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: n.textTrack ? e("CAPTION_LANGUAGE", { language: n.textTrack.label }) : `${e("CAPTIONS")}: ${e("OFF")}` });
1092
- case "volumeUp":
1093
- case "volumeDown":
1094
- case "toggleMuted":
1095
- return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: n.muted || n.volume === 0 ? e("MUTED") : e("VOLUME_VALUE", { volume: (n.volume * 100).toFixed(0) }) });
1096
- case "increasePlaybackRate":
1097
- case "decreasePlaybackRate":
1098
- case "resetPlaybackRate":
1099
- return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: e("PLAYBACK_SPEED_MESSAGE", { speed: n.playbackRate }) });
1119
+ function ko({ action: e }) {
1120
+ const { t } = C(), o = E();
1121
+ if (!o)
1122
+ return null;
1123
+ switch (e) {
1124
+ case "captionsChange":
1125
+ return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: o.textTracks.selected ? t("CAPTION_LANGUAGE", {
1126
+ language: o.textTracks.selected.label
1127
+ }) : `${t("CAPTIONS")}: ${t("OFF")}` });
1128
+ case "volumeChange":
1129
+ return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: o.muted || o.volume === 0 ? t("MUTED") : t("VOLUME_VALUE", { volume: (o.volume * 100).toFixed(0) }) });
1130
+ case "playbackRateChange":
1131
+ return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("PLAYBACK_SPEED_MESSAGE", { speed: o.playbackRate }) });
1100
1132
  case "seekForward":
1101
- return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 5 }) });
1133
+ return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("SEEK_FORWARD", { seconds: 5 }) });
1102
1134
  case "seekForward10":
1103
- return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: e("SEEK_FORWARD", { seconds: 10 }) });
1135
+ return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("SEEK_FORWARD", { seconds: 10 }) });
1104
1136
  case "seekBackward":
1105
- return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 5 }) });
1137
+ return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("SEEK_BACKWARD", { seconds: 5 }) });
1106
1138
  case "seekBackward10":
1107
- return /* @__PURE__ */ t("div", { className: M.feedbackMessage, children: e("SEEK_BACKWARD", { seconds: 10 }) });
1139
+ return /* @__PURE__ */ n("div", { className: N.feedbackMessage, children: t("SEEK_BACKWARD", { seconds: 10 }) });
1108
1140
  default:
1109
1141
  return null;
1110
1142
  }
1111
1143
  }
1112
- const go = Ke(Co, 500), bo = Ke(fo, 1e3);
1113
- function Ge() {
1114
- return /* @__PURE__ */ l("div", { className: M.feedbackOverlay, children: [
1115
- /* @__PURE__ */ t(go, {}),
1116
- /* @__PURE__ */ t(bo, {})
1144
+ const Lo = $e(yo, 300), xo = $e(ko, 1e3);
1145
+ function Qe() {
1146
+ return /* @__PURE__ */ l("div", { className: N.feedbackOverlay, children: [
1147
+ /* @__PURE__ */ n(Lo, {}),
1148
+ /* @__PURE__ */ n(xo, {})
1117
1149
  ] });
1118
1150
  }
1119
- const vo = (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" }) }), wo = (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" }) }), yo = "_full-screen-button_1xm32_2", ko = {
1151
+ const Mo = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), No = (e) => /* @__PURE__ */ n("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), Po = "_full-screen-button_1xm32_2", Io = {
1120
1152
  "full-screen-button": "_full-screen-button_1xm32_2",
1121
- fullScreenButton: yo
1153
+ fullScreenButton: Po
1122
1154
  };
1123
- function Lo() {
1124
- const e = g("fullscreen"), n = Z(), o = w(), i = L(), { t: s } = _();
1125
- return i.hideFullScreen ? null : /* @__PURE__ */ t(
1155
+ function So() {
1156
+ const e = g("fullscreen"), t = E(), o = v(), i = L(), { t: s } = C();
1157
+ return i.hideFullScreen ? null : /* @__PURE__ */ n(
1126
1158
  "button",
1127
1159
  {
1128
1160
  role: "button",
1129
1161
  type: "button",
1130
1162
  "aria-label": s(e ? "EXIT_FULLSCREEN" : "ENTER_FULLSCREEN"),
1131
1163
  tabIndex: o.state.interactionsDisabled ? -1 : 0,
1132
- className: `controls-button ${ko.fullScreenButton}`,
1164
+ className: `controls-button ${Io.fullScreenButton}`,
1133
1165
  onClick: () => {
1134
- e ? n == null || n.exitFullscreen() : n == null || n.enterFullscreen();
1166
+ e ? t == null || t.exitFullscreen() : t == null || t.enterFullscreen();
1135
1167
  },
1136
- children: e ? /* @__PURE__ */ t(wo, { className: "controls-button-icon" }) : /* @__PURE__ */ t(vo, { className: "controls-button-icon" })
1168
+ children: e ? /* @__PURE__ */ n(No, { className: "controls-button-icon" }) : /* @__PURE__ */ n(Mo, { className: "controls-button-icon" })
1137
1169
  }
1138
1170
  );
1139
1171
  }
1140
- const xo = "_gestures-container_1fn3b_1", Mo = "_gesture_1fn3b_1", xe = {
1172
+ const Ho = "_gestures-container_1fn3b_1", To = "_gesture_1fn3b_1", Ne = {
1141
1173
  "gestures-container": "_gestures-container_1fn3b_1",
1142
- gesturesContainer: xo,
1143
- gesture: Mo
1174
+ gesturesContainer: Ho,
1175
+ gesture: To
1144
1176
  };
1145
- function No() {
1146
- const e = oe(), n = () => {
1177
+ function Eo() {
1178
+ const e = ie(), t = () => {
1147
1179
  e.togglePaused();
1148
1180
  };
1149
- return /* @__PURE__ */ t("div", { className: xe.gesturesContainer, children: /* @__PURE__ */ t("div", { "aria-hidden": !0, className: xe.gesture, onClick: n }) });
1181
+ return /* @__PURE__ */ n("div", { className: Ne.gesturesContainer, children: /* @__PURE__ */ n("div", { "aria-hidden": !0, className: Ne.gesture, onClick: t }) });
1150
1182
  }
1151
- const Qe = (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" }) }), Po = "_controls-overlay_poi8b_1", Io = "_keyboard-shortcuts-overlay_poi8b_11", Ho = "_screen-reader-content_poi8b_75", So = "_controls-button_poi8b_89", To = "_keyboard-shortcuts-button_poi8b_101", Vo = "_kebab-menu-button_poi8b_110", Ao = "_kebab-menu_poi8b_110", Eo = "_kebab-menu-item_poi8b_139", Bo = "_close-button_poi8b_178", Ro = "_arrow_poi8b_192", I = {
1183
+ const We = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) }), Vo = "_controls-overlay_poi8b_1", Ao = "_keyboard-shortcuts-overlay_poi8b_11", Bo = "_screen-reader-content_poi8b_75", Ro = "_controls-button_poi8b_89", Oo = "_keyboard-shortcuts-button_poi8b_101", Fo = "_kebab-menu-button_poi8b_110", Zo = "_kebab-menu_poi8b_110", Do = "_kebab-menu-item_poi8b_139", jo = "_close-button_poi8b_178", Ko = "_arrow_poi8b_192", H = {
1152
1184
  "controls-overlay": "_controls-overlay_poi8b_1",
1153
- controlsOverlay: Po,
1185
+ controlsOverlay: Vo,
1154
1186
  "keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_poi8b_11",
1155
- keyboardShortcutsOverlay: Io,
1187
+ keyboardShortcutsOverlay: Ao,
1156
1188
  "screen-reader-content": "_screen-reader-content_poi8b_75",
1157
- screenReaderContent: Ho,
1189
+ screenReaderContent: Bo,
1158
1190
  "controls-button": "_controls-button_poi8b_89",
1159
- controlsButton: So,
1191
+ controlsButton: Ro,
1160
1192
  "keyboard-shortcuts-button": "_keyboard-shortcuts-button_poi8b_101",
1161
- keyboardShortcutsButton: To,
1193
+ keyboardShortcutsButton: Oo,
1162
1194
  "kebab-menu-button": "_kebab-menu-button_poi8b_110",
1163
- kebabMenuButton: Vo,
1195
+ kebabMenuButton: Fo,
1164
1196
  "kebab-menu": "_kebab-menu_poi8b_110",
1165
- kebabMenu: Ao,
1197
+ kebabMenu: Zo,
1166
1198
  "kebab-menu-item": "_kebab-menu-item_poi8b_139",
1167
- kebabMenuItem: Eo,
1199
+ kebabMenuItem: Do,
1168
1200
  "close-button": "_close-button_poi8b_178",
1169
- closeButton: Bo,
1170
- arrow: Ro
1201
+ closeButton: jo,
1202
+ arrow: Ko
1171
1203
  };
1172
- function Oo({ onClose: e }) {
1173
- const { t: n } = _();
1174
- Sn(e);
1204
+ function zo({ onClose: e }) {
1205
+ const { t } = C();
1206
+ Rn(e);
1175
1207
  const o = (i) => {
1176
1208
  i && i.focus();
1177
1209
  };
1178
1210
  return /* @__PURE__ */ l(
1179
1211
  "div",
1180
1212
  {
1181
- className: I.keyboardShortcutsOverlay,
1213
+ className: H.keyboardShortcutsOverlay,
1182
1214
  tabIndex: 0,
1183
1215
  ref: o,
1184
1216
  role: "dialog",
1185
- "aria-label": n("KEYBOARD_SHORTCUTS"),
1217
+ "aria-label": t("KEYBOARD_SHORTCUTS"),
1186
1218
  children: [
1187
1219
  /* @__PURE__ */ l("header", { children: [
1188
- /* @__PURE__ */ t("h2", { children: n("KEYBOARD_SHORTCUTS") }),
1189
- /* @__PURE__ */ t(
1220
+ /* @__PURE__ */ n("h2", { children: t("KEYBOARD_SHORTCUTS") }),
1221
+ /* @__PURE__ */ n(
1190
1222
  "button",
1191
1223
  {
1192
1224
  type: "button",
1193
- className: I.closeButton,
1225
+ className: H.closeButton,
1194
1226
  onClick: e,
1195
- "aria-label": n("CLOSE"),
1196
- children: /* @__PURE__ */ t(Qe, {})
1227
+ "aria-label": t("CLOSE"),
1228
+ children: /* @__PURE__ */ n(We, {})
1197
1229
  }
1198
1230
  )
1199
1231
  ] }),
1200
1232
  /* @__PURE__ */ l("table", { children: [
1201
- /* @__PURE__ */ t("caption", { className: I.screenReaderContent, children: n("KEYBOARD_SHORTCUTS") }),
1202
- /* @__PURE__ */ t("thead", { children: /* @__PURE__ */ l("tr", { children: [
1203
- /* @__PURE__ */ t("th", { children: n("ACTION") }),
1204
- /* @__PURE__ */ t("th", { children: n("SHORTCUT") })
1233
+ /* @__PURE__ */ n("caption", { className: H.screenReaderContent, children: t("KEYBOARD_SHORTCUTS") }),
1234
+ /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ l("tr", { children: [
1235
+ /* @__PURE__ */ n("th", { children: t("ACTION") }),
1236
+ /* @__PURE__ */ n("th", { children: t("SHORTCUT") })
1205
1237
  ] }) }),
1206
1238
  /* @__PURE__ */ l("tbody", { children: [
1207
1239
  /* @__PURE__ */ l("tr", { children: [
1208
- /* @__PURE__ */ t("td", { children: n("SEEK_BACKWARD", { seconds: 5 }) }),
1209
- /* @__PURE__ */ t("td", { children: n("LEFT_ARROW") })
1240
+ /* @__PURE__ */ n("td", { children: t("SEEK_BACKWARD", { seconds: 5 }) }),
1241
+ /* @__PURE__ */ n("td", { children: t("LEFT_ARROW") })
1210
1242
  ] }),
1211
1243
  /* @__PURE__ */ l("tr", { children: [
1212
- /* @__PURE__ */ t("td", { children: n("SEEK_FORWARD", { seconds: 5 }) }),
1213
- /* @__PURE__ */ t("td", { children: n("RIGHT_ARROW") })
1244
+ /* @__PURE__ */ n("td", { children: t("SEEK_FORWARD", { seconds: 5 }) }),
1245
+ /* @__PURE__ */ n("td", { children: t("RIGHT_ARROW") })
1214
1246
  ] }),
1215
1247
  /* @__PURE__ */ l("tr", { children: [
1216
- /* @__PURE__ */ t("td", { children: n("SEEK_BACKWARD", { seconds: 10 }) }),
1217
- /* @__PURE__ */ t("td", { children: "J" })
1248
+ /* @__PURE__ */ n("td", { children: t("SEEK_BACKWARD", { seconds: 10 }) }),
1249
+ /* @__PURE__ */ n("td", { children: "J" })
1218
1250
  ] }),
1219
1251
  /* @__PURE__ */ l("tr", { children: [
1220
- /* @__PURE__ */ t("td", { children: n("SEEK_FORWARD", { seconds: 10 }) }),
1221
- /* @__PURE__ */ t("td", { children: "L" })
1252
+ /* @__PURE__ */ n("td", { children: t("SEEK_FORWARD", { seconds: 10 }) }),
1253
+ /* @__PURE__ */ n("td", { children: "L" })
1222
1254
  ] }),
1223
1255
  /* @__PURE__ */ l("tr", { children: [
1224
- /* @__PURE__ */ t("td", { children: n("INCREASE_VOLUME", { percent: 5 }) }),
1225
- /* @__PURE__ */ t("td", { children: n("UP_ARROW") })
1256
+ /* @__PURE__ */ n("td", { children: t("INCREASE_VOLUME", { percent: 5 }) }),
1257
+ /* @__PURE__ */ n("td", { children: t("UP_ARROW") })
1226
1258
  ] }),
1227
1259
  /* @__PURE__ */ l("tr", { children: [
1228
- /* @__PURE__ */ t("td", { children: n("DECREASE_VOLUME", { percent: 5 }) }),
1229
- /* @__PURE__ */ t("td", { children: n("DOWN_ARROW") })
1260
+ /* @__PURE__ */ n("td", { children: t("DECREASE_VOLUME", { percent: 5 }) }),
1261
+ /* @__PURE__ */ n("td", { children: t("DOWN_ARROW") })
1230
1262
  ] }),
1231
1263
  /* @__PURE__ */ l("tr", { children: [
1232
- /* @__PURE__ */ t("td", { children: n("TOGGLE_MUTED") }),
1233
- /* @__PURE__ */ t("td", { children: "M" })
1264
+ /* @__PURE__ */ n("td", { children: t("TOGGLE_MUTED") }),
1265
+ /* @__PURE__ */ n("td", { children: "M" })
1234
1266
  ] }),
1235
1267
  /* @__PURE__ */ l("tr", { children: [
1236
- /* @__PURE__ */ t("td", { children: n("TOGGLE_PLAY_PAUSE") }),
1268
+ /* @__PURE__ */ n("td", { children: t("TOGGLE_PLAY_PAUSE") }),
1237
1269
  /* @__PURE__ */ l("td", { children: [
1238
- n("SPACE"),
1270
+ t("SPACE"),
1239
1271
  ", K"
1240
1272
  ] })
1241
1273
  ] }),
1242
1274
  /* @__PURE__ */ l("tr", { children: [
1243
- /* @__PURE__ */ t("td", { children: n("ENTER_FULLSCREEN") }),
1244
- /* @__PURE__ */ t("td", { children: "F" })
1275
+ /* @__PURE__ */ n("td", { children: t("ENTER_FULLSCREEN") }),
1276
+ /* @__PURE__ */ n("td", { children: "F" })
1245
1277
  ] }),
1246
1278
  /* @__PURE__ */ l("tr", { children: [
1247
- /* @__PURE__ */ t("td", { children: n("EXIT_FULLSCREEN") }),
1248
- /* @__PURE__ */ t("td", { children: "Esc, F" })
1279
+ /* @__PURE__ */ n("td", { children: t("EXIT_FULLSCREEN") }),
1280
+ /* @__PURE__ */ n("td", { children: "Esc, F" })
1249
1281
  ] }),
1250
1282
  /* @__PURE__ */ l("tr", { children: [
1251
- /* @__PURE__ */ t("td", { children: n("TOGGLE_CAPTIONS") }),
1252
- /* @__PURE__ */ t("td", { children: "C" })
1283
+ /* @__PURE__ */ n("td", { children: t("TOGGLE_CAPTIONS") }),
1284
+ /* @__PURE__ */ n("td", { children: "C" })
1253
1285
  ] }),
1254
1286
  /* @__PURE__ */ l("tr", { children: [
1255
- /* @__PURE__ */ t("td", { children: n("NEXT_CAPTION_LANGUAGE") }),
1256
- /* @__PURE__ */ t("td", { children: "V" })
1287
+ /* @__PURE__ */ n("td", { children: t("NEXT_CAPTION_LANGUAGE") }),
1288
+ /* @__PURE__ */ n("td", { children: "V" })
1257
1289
  ] }),
1258
1290
  /* @__PURE__ */ l("tr", { children: [
1259
- /* @__PURE__ */ t("td", { children: n("PREVIOUS_CAPTION_LANGUAGE") }),
1260
- /* @__PURE__ */ t("td", { children: "X" })
1291
+ /* @__PURE__ */ n("td", { children: t("PREVIOUS_CAPTION_LANGUAGE") }),
1292
+ /* @__PURE__ */ n("td", { children: "X" })
1261
1293
  ] }),
1262
1294
  /* @__PURE__ */ l("tr", { children: [
1263
- /* @__PURE__ */ t("td", { children: n("DECREASE_PLAYBACK_SPEED") }),
1264
- /* @__PURE__ */ t("td", { children: "A" })
1295
+ /* @__PURE__ */ n("td", { children: t("DECREASE_PLAYBACK_SPEED") }),
1296
+ /* @__PURE__ */ n("td", { children: "A" })
1265
1297
  ] }),
1266
1298
  /* @__PURE__ */ l("tr", { children: [
1267
- /* @__PURE__ */ t("td", { children: n("RESET_PLAYBACK_SPEED") }),
1268
- /* @__PURE__ */ t("td", { children: "S" })
1299
+ /* @__PURE__ */ n("td", { children: t("RESET_PLAYBACK_SPEED") }),
1300
+ /* @__PURE__ */ n("td", { children: "S" })
1269
1301
  ] }),
1270
1302
  /* @__PURE__ */ l("tr", { children: [
1271
- /* @__PURE__ */ t("td", { children: n("INCREASE_PLAYBACK_SPEED") }),
1272
- /* @__PURE__ */ t("td", { children: "D" })
1303
+ /* @__PURE__ */ n("td", { children: t("INCREASE_PLAYBACK_SPEED") }),
1304
+ /* @__PURE__ */ n("td", { children: "D" })
1273
1305
  ] }),
1274
1306
  /* @__PURE__ */ l("tr", { children: [
1275
- /* @__PURE__ */ t("td", { children: n("JUMP_TO_START") }),
1276
- /* @__PURE__ */ t("td", { children: "0" })
1307
+ /* @__PURE__ */ n("td", { children: t("JUMP_TO_START") }),
1308
+ /* @__PURE__ */ n("td", { children: "0" })
1277
1309
  ] }),
1278
1310
  /* @__PURE__ */ l("tr", { children: [
1279
- /* @__PURE__ */ t("td", { children: n("JUMP_TO_PERCENTAGE") }),
1280
- /* @__PURE__ */ t("td", { children: "1-9" })
1311
+ /* @__PURE__ */ n("td", { children: t("JUMP_TO_PERCENTAGE") }),
1312
+ /* @__PURE__ */ n("td", { children: "1-9" })
1281
1313
  ] })
1282
1314
  ] })
1283
1315
  ] })
@@ -1285,86 +1317,86 @@ function Oo({ onClose: e }) {
1285
1317
  }
1286
1318
  );
1287
1319
  }
1288
- const Fo = (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.8 3.6C9.79288 3.6 10.6 2.79288 10.6 1.8C10.6 0.80712 9.79288 0 8.8 0C7.80712 0 7 0.80712 7 1.8C7 2.79288 7.80712 3.6 8.8 3.6ZM10.6 8.99999C10.6 9.99287 9.79288 10.8 8.8 10.8C7.80712 10.8 7 9.99287 7 8.99999C7 8.00711 7.80712 7.19999 8.8 7.19999C9.79288 7.19999 10.6 8.00711 10.6 8.99999ZM10.6 16.2C10.6 17.1929 9.79288 18 8.8 18C7.80712 18 7 17.1929 7 16.2C7 15.2071 7.80712 14.4 8.8 14.4C9.79288 14.4 10.6 15.2071 10.6 16.2Z", fill: "currentColor" }) }), Zo = (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: "M14.1074 16.8677C12.8638 16.8677 11.8524 15.8563 11.8524 14.6127C11.8524 14.4154 11.8862 14.2271 11.9336 14.0444C12.0317 13.6701 12.22 13.3318 12.4804 13.059C12.8908 12.6294 13.467 12.3576 14.1074 12.3576C15.3511 12.3576 16.3625 13.369 16.3625 14.6127C16.3625 15.8563 15.3511 16.8677 14.1074 16.8677ZM4.38257 11.2301C3.13891 11.2301 2.12752 10.2187 2.12752 8.97507C2.12752 7.73141 3.13891 6.72002 4.38257 6.72002C5.01623 6.72002 5.58676 6.98386 5.99718 7.40556C6.25989 7.67616 6.44819 8.01329 6.54966 8.38763C6.60153 8.57592 6.63761 8.76986 6.63761 8.97507C6.63761 9.2017 6.59364 9.41818 6.53049 9.62452C6.41887 9.99435 6.22155 10.327 5.94982 10.5908C5.54391 10.9843 4.99256 11.2301 4.38257 11.2301ZM11.8524 3.38257C11.8524 2.13891 12.8638 1.12753 14.1074 1.12753C15.3511 1.12753 16.3625 2.13891 16.3625 3.38257C16.3625 4.62622 15.3511 5.63761 14.1074 5.63761C13.4749 5.63761 12.9055 5.3749 12.4962 4.95546C12.2324 4.68485 12.0429 4.34773 11.9415 3.97339C11.8896 3.78397 11.8524 3.5889 11.8524 3.38257ZM14.1074 11.2301C13.0498 11.2301 12.1151 11.7273 11.495 12.4907L7.52722 10.1996C7.67605 9.81846 7.76513 9.40804 7.76513 8.97507C7.76513 8.56465 7.68056 8.17678 7.54639 7.8126L11.5108 5.5226C12.132 6.27466 13.0588 6.76513 14.1074 6.76513C15.9724 6.76513 17.49 5.24748 17.49 3.38256C17.49 1.51764 15.9724 0 14.1074 0C12.2425 0 10.7249 1.51764 10.7249 3.38256C10.7249 3.79411 10.8094 4.18423 10.9447 4.54842L6.9815 6.83729C6.36136 6.08411 5.43341 5.59251 4.38256 5.59251C2.51764 5.59251 1 7.11015 1 8.97507C1 10.84 2.51764 12.3576 4.38256 12.3576C5.40974 12.3576 6.32077 11.8875 6.94091 11.1625L10.9368 13.4694C10.8072 13.829 10.7249 14.2102 10.7249 14.6127C10.7249 16.4776 12.2425 17.9952 14.1074 17.9952C15.9724 17.9952 17.49 16.4776 17.49 14.6127C17.49 12.7478 15.9724 11.2301 14.1074 11.2301Z", fill: "currentColor" }) }), zo = (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: "M14.7647 16.9412H2.05882V1.05883H10.5294V5.29412H14.7647V16.9412ZM11.5882 1.278L14.5455 4.2353H11.5882V1.278ZM15.3587 3.55129L12.2722 0.464824C11.9715 0.165176 11.5724 0 11.1488 0H1V18H15.8235V4.67471C15.8235 4.25118 15.6584 3.852 15.3587 3.55129ZM1 0H15.8235V18H1V0ZM1 18H15.8235V0H1V18ZM4.17649 5.29412H8.41178V4.23529H4.17649V5.29412ZM4.17649 9.52941H10.5294V8.47059H4.17649V9.52941ZM4.17649 13.7647H8.41178V12.7059H4.17649V13.7647ZM4.17649 7.41177H12.6471V6.35294H4.17649V7.41177ZM4.17649 11.6471H11.5883V10.5882H4.17649V11.6471Z", fill: "currentColor" }) }), jo = (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.30365 10.9535V0H9.3637V10.9535L12.6986 7.61855L13.4491 8.368L8.83261 12.9824L4.21823 8.368L4.96875 7.61855L8.30365 10.9535ZM3.77376 16.94H13.9354L16.9607 13.9146L17.7091 14.6651L14.3742 18H3.3349L0 14.6651L0.749452 13.9146L3.77376 16.94Z", fill: "currentColor" }) }), Do = {
1289
- share: /* @__PURE__ */ t(Zo, {}),
1290
- transcript: /* @__PURE__ */ t(zo, {}),
1291
- media: /* @__PURE__ */ t(jo, {}),
1292
- delete: /* @__PURE__ */ t(je, {})
1293
- }, Ko = (e) => typeof e != "string";
1294
- function $o() {
1295
- const [e, n] = x(!1), [o, i] = x(null), s = w(), a = L(), c = () => {
1296
- n(!e), s.setGlobalKeysDisabled(!e);
1297
- }, r = ne(null), d = ne([]), { refs: p, floatingStyles: b, context: v } = ue({
1320
+ const $o = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.8 3.6C9.79288 3.6 10.6 2.79288 10.6 1.8C10.6 0.80712 9.79288 0 8.8 0C7.80712 0 7 0.80712 7 1.8C7 2.79288 7.80712 3.6 8.8 3.6ZM10.6 8.99999C10.6 9.99287 9.79288 10.8 8.8 10.8C7.80712 10.8 7 9.99287 7 8.99999C7 8.00711 7.80712 7.19999 8.8 7.19999C9.79288 7.19999 10.6 8.00711 10.6 8.99999ZM10.6 16.2C10.6 17.1929 9.79288 18 8.8 18C7.80712 18 7 17.1929 7 16.2C7 15.2071 7.80712 14.4 8.8 14.4C9.79288 14.4 10.6 15.2071 10.6 16.2Z", fill: "currentColor" }) }), Uo = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1074 16.8677C12.8638 16.8677 11.8524 15.8563 11.8524 14.6127C11.8524 14.4154 11.8862 14.2271 11.9336 14.0444C12.0317 13.6701 12.22 13.3318 12.4804 13.059C12.8908 12.6294 13.467 12.3576 14.1074 12.3576C15.3511 12.3576 16.3625 13.369 16.3625 14.6127C16.3625 15.8563 15.3511 16.8677 14.1074 16.8677ZM4.38257 11.2301C3.13891 11.2301 2.12752 10.2187 2.12752 8.97507C2.12752 7.73141 3.13891 6.72002 4.38257 6.72002C5.01623 6.72002 5.58676 6.98386 5.99718 7.40556C6.25989 7.67616 6.44819 8.01329 6.54966 8.38763C6.60153 8.57592 6.63761 8.76986 6.63761 8.97507C6.63761 9.2017 6.59364 9.41818 6.53049 9.62452C6.41887 9.99435 6.22155 10.327 5.94982 10.5908C5.54391 10.9843 4.99256 11.2301 4.38257 11.2301ZM11.8524 3.38257C11.8524 2.13891 12.8638 1.12753 14.1074 1.12753C15.3511 1.12753 16.3625 2.13891 16.3625 3.38257C16.3625 4.62622 15.3511 5.63761 14.1074 5.63761C13.4749 5.63761 12.9055 5.3749 12.4962 4.95546C12.2324 4.68485 12.0429 4.34773 11.9415 3.97339C11.8896 3.78397 11.8524 3.5889 11.8524 3.38257ZM14.1074 11.2301C13.0498 11.2301 12.1151 11.7273 11.495 12.4907L7.52722 10.1996C7.67605 9.81846 7.76513 9.40804 7.76513 8.97507C7.76513 8.56465 7.68056 8.17678 7.54639 7.8126L11.5108 5.5226C12.132 6.27466 13.0588 6.76513 14.1074 6.76513C15.9724 6.76513 17.49 5.24748 17.49 3.38256C17.49 1.51764 15.9724 0 14.1074 0C12.2425 0 10.7249 1.51764 10.7249 3.38256C10.7249 3.79411 10.8094 4.18423 10.9447 4.54842L6.9815 6.83729C6.36136 6.08411 5.43341 5.59251 4.38256 5.59251C2.51764 5.59251 1 7.11015 1 8.97507C1 10.84 2.51764 12.3576 4.38256 12.3576C5.40974 12.3576 6.32077 11.8875 6.94091 11.1625L10.9368 13.4694C10.8072 13.829 10.7249 14.2102 10.7249 14.6127C10.7249 16.4776 12.2425 17.9952 14.1074 17.9952C15.9724 17.9952 17.49 16.4776 17.49 14.6127C17.49 12.7478 15.9724 11.2301 14.1074 11.2301Z", fill: "currentColor" }) }), qo = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.7647 16.9412H2.05882V1.05883H10.5294V5.29412H14.7647V16.9412ZM11.5882 1.278L14.5455 4.2353H11.5882V1.278ZM15.3587 3.55129L12.2722 0.464824C11.9715 0.165176 11.5724 0 11.1488 0H1V18H15.8235V4.67471C15.8235 4.25118 15.6584 3.852 15.3587 3.55129ZM1 0H15.8235V18H1V0ZM1 18H15.8235V0H1V18ZM4.17649 5.29412H8.41178V4.23529H4.17649V5.29412ZM4.17649 9.52941H10.5294V8.47059H4.17649V9.52941ZM4.17649 13.7647H8.41178V12.7059H4.17649V13.7647ZM4.17649 7.41177H12.6471V6.35294H4.17649V7.41177ZM4.17649 11.6471H11.5883V10.5882H4.17649V11.6471Z", fill: "currentColor" }) }), Go = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.30365 10.9535V0H9.3637V10.9535L12.6986 7.61855L13.4491 8.368L8.83261 12.9824L4.21823 8.368L4.96875 7.61855L8.30365 10.9535ZM3.77376 16.94H13.9354L16.9607 13.9146L17.7091 14.6651L14.3742 18H3.3349L0 14.6651L0.749452 13.9146L3.77376 16.94Z", fill: "currentColor" }) }), Qo = {
1321
+ share: /* @__PURE__ */ n(Uo, {}),
1322
+ transcript: /* @__PURE__ */ n(qo, {}),
1323
+ media: /* @__PURE__ */ n(Go, {}),
1324
+ delete: /* @__PURE__ */ n(Ke, {})
1325
+ }, Wo = (e) => typeof e != "string";
1326
+ function Yo() {
1327
+ const [e, t] = M(!1), [o, i] = M(null), s = v(), a = L(), r = () => {
1328
+ t(!e), s.setGlobalKeysDisabled(!e);
1329
+ }, c = U(null), u = U([]), { refs: m, floatingStyles: b, context: w } = de({
1298
1330
  open: e,
1299
- onOpenChange: c,
1300
- whileElementsMounted: de,
1331
+ onOpenChange: r,
1332
+ whileElementsMounted: me,
1301
1333
  placement: "bottom-end",
1302
1334
  middleware: [
1303
- Se(),
1304
- Te(10),
1335
+ Te(),
1336
+ Ee(10),
1305
1337
  Ve({
1306
- element: r
1338
+ element: c
1307
1339
  })
1308
1340
  ]
1309
- }), k = kt(v, {
1310
- listRef: d,
1341
+ }), y = Mt(w, {
1342
+ listRef: u,
1311
1343
  activeIndex: o,
1312
1344
  onNavigate: i
1313
- }), y = me(v), { getReferenceProps: P, getFloatingProps: h, getItemProps: C } = he(
1314
- [y, k]
1315
- ), { t: V } = _();
1316
- return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ l(Y, { children: [
1317
- /* @__PURE__ */ t(
1345
+ }), k = he(w), { getReferenceProps: S, getFloatingProps: p, getItemProps: _ } = pe(
1346
+ [k, y]
1347
+ ), { t: I } = C();
1348
+ return a.kebabMenuElements.length > 0 ? /* @__PURE__ */ l(J, { children: [
1349
+ /* @__PURE__ */ n(
1318
1350
  "button",
1319
1351
  {
1320
- "aria-label": V("KEBAB_MENU"),
1352
+ "aria-label": I("KEBAB_MENU"),
1321
1353
  type: "button",
1322
- className: `${I.controlsButton} ${I.kebabMenuButton}`,
1354
+ className: `${H.controlsButton} ${H.kebabMenuButton}`,
1323
1355
  tabIndex: s.state.interactionsDisabled ? -1 : 0,
1324
- ref: p.setReference,
1325
- ...P({
1326
- onClick: () => c()
1356
+ ref: m.setReference,
1357
+ ...S({
1358
+ onClick: () => r()
1327
1359
  }),
1328
- children: /* @__PURE__ */ t(Fo, {})
1360
+ children: /* @__PURE__ */ n($o, {})
1329
1361
  }
1330
1362
  ),
1331
- e && /* @__PURE__ */ t(pe, { context: v, modal: !1, children: /* @__PURE__ */ l(
1363
+ e && /* @__PURE__ */ n(_e, { context: w, modal: !1, children: /* @__PURE__ */ l(
1332
1364
  "div",
1333
1365
  {
1334
- ref: p.setFloating,
1366
+ ref: m.setFloating,
1335
1367
  style: b,
1336
- className: I.kebabMenu,
1337
- ...h(),
1368
+ className: H.kebabMenu,
1369
+ ...p(),
1338
1370
  children: [
1339
1371
  a.kebabMenuElements.map(
1340
- ({ id: A, text: U, icon: S, onClick: E }, q) => /* @__PURE__ */ l(
1372
+ ({ id: V, text: F, icon: B, onClick: Z }, Q) => /* @__PURE__ */ l(
1341
1373
  "button",
1342
1374
  {
1343
- tabIndex: o === q ? 0 : -1,
1375
+ tabIndex: o === Q ? 0 : -1,
1344
1376
  type: "button",
1345
- className: I.kebabMenuItem,
1346
- ref: (se) => {
1347
- d.current[q] = se;
1377
+ className: H.kebabMenuItem,
1378
+ ref: (ae) => {
1379
+ u.current[Q] = ae;
1348
1380
  },
1349
- ...C({
1381
+ ..._({
1350
1382
  onClick: () => {
1351
- E(A), n(!1);
1383
+ Z(V), t(!1);
1352
1384
  }
1353
1385
  }),
1354
1386
  children: [
1355
- Ko(S) ? S : Do[S],
1356
- U
1387
+ Wo(B) ? B : Qo[B],
1388
+ F
1357
1389
  ]
1358
1390
  },
1359
- A
1391
+ V
1360
1392
  )
1361
1393
  ),
1362
- /* @__PURE__ */ t(
1394
+ /* @__PURE__ */ n(
1363
1395
  Ae,
1364
1396
  {
1365
- ref: r,
1366
- context: v,
1367
- className: I.arrow
1397
+ ref: c,
1398
+ context: w,
1399
+ className: H.arrow
1368
1400
  }
1369
1401
  )
1370
1402
  ]
@@ -1372,182 +1404,166 @@ function $o() {
1372
1404
  ) })
1373
1405
  ] }) : null;
1374
1406
  }
1375
- const Uo = (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" }) });
1376
- function qo() {
1377
- const [e, n] = x(!1), [o, i] = x(!1), [s, a] = x(!1), c = w(), r = g("playing"), d = oe(), { t: p } = _(), b = f(() => {
1378
- n(!0), c.disableInteractions(), r && (a(!0), d.pause());
1379
- }, [r, d, c]), v = f(() => {
1380
- n(!1), i(!0), c.enableInteractions(), s && (a(!1), d.play());
1381
- }, [s, d, c]), k = f(
1382
- (y) => o && (y == null ? void 0 : y.focus()),
1407
+ const Xo = (e) => /* @__PURE__ */ n("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("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" }) });
1408
+ function Jo() {
1409
+ const [e, t] = M(!1), [o, i] = M(!1), [s, a] = M(!1), r = v(), c = g("playing"), u = ie(), { t: m } = C(), b = f(() => {
1410
+ t(!0), r.disableInteractions(), c && (a(!0), u.pause());
1411
+ }, [c, u, r]), w = f(() => {
1412
+ t(!1), i(!0), r.enableInteractions(), s && (a(!1), u.play());
1413
+ }, [s, u, r]), y = f(
1414
+ (k) => o && (k == null ? void 0 : k.focus()),
1383
1415
  [o]
1384
1416
  );
1385
- return e ? /* @__PURE__ */ t(Oo, { onClose: v }) : /* @__PURE__ */ l("div", { className: I.controlsOverlay, children: [
1386
- /* @__PURE__ */ t(
1417
+ return e ? /* @__PURE__ */ n(zo, { onClose: w }) : /* @__PURE__ */ l("div", { className: H.controlsOverlay, children: [
1418
+ /* @__PURE__ */ n(
1387
1419
  "button",
1388
1420
  {
1389
- ref: k,
1390
- "aria-label": p("KEYBOARD_SHORTCUTS"),
1421
+ ref: y,
1422
+ "aria-label": m("KEYBOARD_SHORTCUTS"),
1391
1423
  type: "button",
1392
- className: `${I.controlsButton} ${I.keyboardShortcutsButton}`,
1424
+ className: `${H.controlsButton} ${H.keyboardShortcutsButton}`,
1393
1425
  onClick: b,
1394
- tabIndex: c.state.interactionsDisabled ? -1 : 0,
1395
- children: /* @__PURE__ */ t(Uo, {})
1426
+ tabIndex: r.state.interactionsDisabled ? -1 : 0,
1427
+ children: /* @__PURE__ */ n(Xo, {})
1396
1428
  }
1397
1429
  ),
1398
- /* @__PURE__ */ t($o, {})
1430
+ /* @__PURE__ */ n(Yo, {})
1399
1431
  ] });
1400
1432
  }
1401
- const Go = "_play-pause-button_1834v_1", Qo = {
1433
+ const e1 = "_play-pause-button_1834v_1", t1 = {
1402
1434
  "play-pause-button": "_play-pause-button_1834v_1",
1403
- playPauseButton: Go
1435
+ playPauseButton: e1
1404
1436
  };
1405
- function Wo() {
1406
- const e = Z(), n = w(), o = g("paused"), { t: i } = _();
1407
- return e ? /* @__PURE__ */ t(
1437
+ function n1() {
1438
+ const e = E(), t = v(), o = g("paused"), { t: i } = C();
1439
+ return e ? /* @__PURE__ */ n(
1408
1440
  "button",
1409
1441
  {
1410
1442
  role: "button",
1411
1443
  type: "button",
1412
- className: `controls-button ${Qo.playPauseButton}`,
1444
+ className: `controls-button ${t1.playPauseButton}`,
1413
1445
  "aria-label": i(o ? "PLAY" : "PAUSE"),
1414
- tabIndex: n.state.interactionsDisabled ? -1 : 0,
1446
+ tabIndex: t.state.interactionsDisabled ? -1 : 0,
1415
1447
  onClick: () => {
1416
1448
  e.paused ? e.remoteControl.play() : e.remoteControl.pause();
1417
1449
  },
1418
- children: o ? /* @__PURE__ */ t(fe, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Ce, { className: "controls-button-icon" })
1450
+ children: o ? /* @__PURE__ */ n(ge, { className: "controls-button-icon" }) : /* @__PURE__ */ n(be, { className: "controls-button-icon" })
1419
1451
  }
1420
1452
  ) : null;
1421
1453
  }
1422
- const Yo = "_poster_195hi_1", Xo = {
1423
- poster: Yo
1454
+ const o1 = "_poster_195hi_1", i1 = {
1455
+ poster: o1
1424
1456
  };
1425
- function Jo({ src: e }) {
1426
- const n = g("source");
1427
- return n.type === "video/youtube" || n.type === "video/vimeo" ? null : /* @__PURE__ */ t(ht, { src: e, className: Xo.poster });
1457
+ function s1({ src: e }) {
1458
+ const t = g("source");
1459
+ return t.type === "video/youtube" || t.type === "video/vimeo" ? null : /* @__PURE__ */ n(pt, { src: e, className: i1.poster });
1428
1460
  }
1429
- const e1 = "_small-layout-overlay_80lyi_1", t1 = "_small-layout-button_80lyi_14", n1 = "_small-layout-icon-play_80lyi_24", o1 = "_small-layout-icon-pause_80lyi_30", i1 = "_full-screen-close-icon_80lyi_36", s1 = "_fade-out_80lyi_1", Q = {
1461
+ const a1 = "_small-layout-overlay_80lyi_1", l1 = "_small-layout-button_80lyi_14", r1 = "_small-layout-icon-play_80lyi_24", c1 = "_small-layout-icon-pause_80lyi_30", u1 = "_full-screen-close-icon_80lyi_36", d1 = "_fade-out_80lyi_1", Y = {
1430
1462
  "small-layout-overlay": "_small-layout-overlay_80lyi_1",
1431
- smallLayoutOverlay: e1,
1463
+ smallLayoutOverlay: a1,
1432
1464
  "small-layout-button": "_small-layout-button_80lyi_14",
1433
- smallLayoutButton: t1,
1465
+ smallLayoutButton: l1,
1434
1466
  "small-layout-icon-play": "_small-layout-icon-play_80lyi_24",
1435
- smallLayoutIconPlay: n1,
1467
+ smallLayoutIconPlay: r1,
1436
1468
  "small-layout-icon-pause": "_small-layout-icon-pause_80lyi_30",
1437
- smallLayoutIconPause: o1,
1469
+ smallLayoutIconPause: c1,
1438
1470
  "full-screen-close-icon": "_full-screen-close-icon_80lyi_36",
1439
- fullScreenCloseIcon: i1,
1471
+ fullScreenCloseIcon: u1,
1440
1472
  "fade-out": "_fade-out_80lyi_1",
1441
- fadeOut: s1
1473
+ fadeOut: d1
1442
1474
  };
1443
- function a1() {
1475
+ function m1() {
1444
1476
  const e = g("paused");
1445
- return /* @__PURE__ */ l("div", { className: Q.smallLayoutOverlay, children: [
1446
- /* @__PURE__ */ t(pt, { className: Q.fullScreenCloseIcon, children: /* @__PURE__ */ t(Qe, {}) }),
1447
- /* @__PURE__ */ t("i", { className: Q.smallLayoutButton, children: e ? /* @__PURE__ */ t(fe, { className: Q.smallLayoutIconPlay }) : /* @__PURE__ */ t(Ce, { className: Q.smallLayoutIconPause }) })
1477
+ return /* @__PURE__ */ l("div", { className: Y.smallLayoutOverlay, children: [
1478
+ /* @__PURE__ */ n(_t, { className: Y.fullScreenCloseIcon, children: /* @__PURE__ */ n(We, {}) }),
1479
+ /* @__PURE__ */ n("i", { className: Y.smallLayoutButton, children: e ? /* @__PURE__ */ n(ge, { className: Y.smallLayoutIconPlay }) : /* @__PURE__ */ n(be, { className: Y.smallLayoutIconPause }) })
1448
1480
  ] });
1449
1481
  }
1450
- const l1 = "_time-indicator_1uygf_1", c1 = {
1482
+ const h1 = "_time-indicator_1uygf_1", p1 = {
1451
1483
  "time-indicator": "_time-indicator_1uygf_1",
1452
- timeIndicator: l1
1484
+ timeIndicator: h1
1453
1485
  };
1454
- function r1() {
1455
- return /* @__PURE__ */ l("div", { className: c1.timeIndicator, children: [
1456
- /* @__PURE__ */ t(ke, { type: "current" }),
1486
+ function _1() {
1487
+ return /* @__PURE__ */ l("div", { className: p1.timeIndicator, children: [
1488
+ /* @__PURE__ */ n(xe, { type: "current" }),
1457
1489
  "/",
1458
- /* @__PURE__ */ t(ke, { type: "duration" })
1490
+ /* @__PURE__ */ n(xe, { type: "duration" })
1459
1491
  ] });
1460
1492
  }
1461
- function We(e) {
1462
- var n, o, i = "";
1463
- if (typeof e == "string" || typeof e == "number") i += e;
1464
- else if (typeof e == "object") if (Array.isArray(e)) {
1465
- var s = e.length;
1466
- for (n = 0; n < s; n++) e[n] && (o = We(e[n])) && (i && (i += " "), i += o);
1467
- } else for (o in e) e[o] && (i && (i += " "), i += o);
1468
- return i;
1469
- }
1470
- function u1() {
1471
- for (var e, n, o = 0, i = "", s = arguments.length; o < s; o++) (e = arguments[o]) && (n = We(e)) && (i && (i += " "), i += n);
1472
- return i;
1473
- }
1474
- const d1 = "_comment-markers_1ldxg_1", m1 = "_comment-marker_1ldxg_1", h1 = "_timeline-wrapper_1ldxg_27", p1 = "_track_1ldxg_41", _1 = "_thumb_1ldxg_52", C1 = "_root_1ldxg_66", f1 = "_track-inner_1ldxg_96", g1 = "_progress_1ldxg_102", b1 = "_track-fill_1ldxg_108", v1 = "_pins_1ldxg_125", w1 = "_pin-button_1ldxg_138", y1 = "_annotation-pin_1ldxg_158", k1 = "_quiz-pin_1ldxg_163", L1 = "_pin-completed_1ldxg_168", x1 = "_annotation-pin-child_1ldxg_173", M1 = "_quiz-pin-child_1ldxg_177", N1 = "_interactive-pin-container_1ldxg_182", P1 = "_interactive-pin-wrapper_1ldxg_192", I1 = "_interactive-pin-icon_1ldxg_198", H1 = "_interactive-pin_1ldxg_182", S1 = "_bg_1ldxg_212", T1 = "_symbol_1ldxg_216", V1 = "_interactive-pin-button_1ldxg_221", A1 = "_interactive-pin-menu_1ldxg_241", E1 = "_interactive-pin-menu-item_1ldxg_255", B1 = "_arrow_1ldxg_276", m = {
1475
- "comment-markers": "_comment-markers_1ldxg_1",
1476
- commentMarkers: d1,
1477
- "comment-marker": "_comment-marker_1ldxg_1",
1478
- commentMarker: m1,
1479
- "timeline-wrapper": "_timeline-wrapper_1ldxg_27",
1480
- timelineWrapper: h1,
1481
- track: p1,
1482
- thumb: _1,
1483
- root: C1,
1484
- "track-inner": "_track-inner_1ldxg_96",
1485
- trackInner: f1,
1486
- progress: g1,
1487
- "track-fill": "_track-fill_1ldxg_108",
1488
- trackFill: b1,
1489
- pins: v1,
1490
- "pin-button": "_pin-button_1ldxg_138",
1491
- pinButton: w1,
1492
- "annotation-pin": "_annotation-pin_1ldxg_158",
1493
- annotationPin: y1,
1494
- "quiz-pin": "_quiz-pin_1ldxg_163",
1495
- quizPin: k1,
1496
- "pin-completed": "_pin-completed_1ldxg_168",
1497
- pinCompleted: L1,
1498
- "annotation-pin-child": "_annotation-pin-child_1ldxg_173",
1499
- annotationPinChild: x1,
1500
- "quiz-pin-child": "_quiz-pin-child_1ldxg_177",
1501
- quizPinChild: M1,
1502
- "interactive-pin-container": "_interactive-pin-container_1ldxg_182",
1503
- interactivePinContainer: N1,
1504
- "interactive-pin-wrapper": "_interactive-pin-wrapper_1ldxg_192",
1505
- interactivePinWrapper: P1,
1506
- "interactive-pin-icon": "_interactive-pin-icon_1ldxg_198",
1507
- interactivePinIcon: I1,
1508
- "interactive-pin": "_interactive-pin_1ldxg_182",
1509
- interactivePin: H1,
1510
- bg: S1,
1511
- symbol: T1,
1512
- "interactive-pin-button": "_interactive-pin-button_1ldxg_221",
1513
- interactivePinButton: V1,
1514
- "interactive-pin-menu": "_interactive-pin-menu_1ldxg_241",
1515
- interactivePinMenu: A1,
1516
- "interactive-pin-menu-item": "_interactive-pin-menu-item_1ldxg_255",
1517
- interactivePinMenuItem: E1,
1518
- arrow: B1
1519
- }, R1 = {
1520
- annotation: m.annotationPin,
1521
- quiz: m.quizPin
1493
+ const f1 = "_comment-markers_1rxwh_1", C1 = "_comment-marker_1rxwh_1", b1 = "_timeline-wrapper_1rxwh_27", g1 = "_track_1rxwh_41", v1 = "_thumb_1rxwh_52", w1 = "_root_1rxwh_66", y1 = "_track-inner_1rxwh_96", k1 = "_progress_1rxwh_102", L1 = "_track-fill_1rxwh_108", x1 = "_pins_1rxwh_125", M1 = "_pin-button_1rxwh_138", N1 = "_annotation-pin_1rxwh_158", P1 = "_quiz-pin_1rxwh_163", I1 = "_annotation-pin-child_1rxwh_168", S1 = "_quiz-pin-child_1rxwh_172", H1 = "_interactive-pin-container_1rxwh_177", T1 = "_interactive-pin-wrapper_1rxwh_187", E1 = "_interactive-pin-icon_1rxwh_193", V1 = "_interactive-pin_1rxwh_177", A1 = "_bg_1rxwh_207", B1 = "_symbol_1rxwh_211", R1 = "_interactive-pin-button_1rxwh_216", O1 = "_interactive-pin-menu_1rxwh_236", F1 = "_interactive-pin-menu-item_1rxwh_250", Z1 = "_arrow_1rxwh_271", h = {
1494
+ "comment-markers": "_comment-markers_1rxwh_1",
1495
+ commentMarkers: f1,
1496
+ "comment-marker": "_comment-marker_1rxwh_1",
1497
+ commentMarker: C1,
1498
+ "timeline-wrapper": "_timeline-wrapper_1rxwh_27",
1499
+ timelineWrapper: b1,
1500
+ track: g1,
1501
+ thumb: v1,
1502
+ root: w1,
1503
+ "track-inner": "_track-inner_1rxwh_96",
1504
+ trackInner: y1,
1505
+ progress: k1,
1506
+ "track-fill": "_track-fill_1rxwh_108",
1507
+ trackFill: L1,
1508
+ pins: x1,
1509
+ "pin-button": "_pin-button_1rxwh_138",
1510
+ pinButton: M1,
1511
+ "annotation-pin": "_annotation-pin_1rxwh_158",
1512
+ annotationPin: N1,
1513
+ "quiz-pin": "_quiz-pin_1rxwh_163",
1514
+ quizPin: P1,
1515
+ "annotation-pin-child": "_annotation-pin-child_1rxwh_168",
1516
+ annotationPinChild: I1,
1517
+ "quiz-pin-child": "_quiz-pin-child_1rxwh_172",
1518
+ quizPinChild: S1,
1519
+ "interactive-pin-container": "_interactive-pin-container_1rxwh_177",
1520
+ interactivePinContainer: H1,
1521
+ "interactive-pin-wrapper": "_interactive-pin-wrapper_1rxwh_187",
1522
+ interactivePinWrapper: T1,
1523
+ "interactive-pin-icon": "_interactive-pin-icon_1rxwh_193",
1524
+ interactivePinIcon: E1,
1525
+ "interactive-pin": "_interactive-pin_1rxwh_177",
1526
+ interactivePin: V1,
1527
+ bg: A1,
1528
+ symbol: B1,
1529
+ "interactive-pin-button": "_interactive-pin-button_1rxwh_216",
1530
+ interactivePinButton: R1,
1531
+ "interactive-pin-menu": "_interactive-pin-menu_1rxwh_236",
1532
+ interactivePinMenu: O1,
1533
+ "interactive-pin-menu-item": "_interactive-pin-menu-item_1rxwh_250",
1534
+ interactivePinMenuItem: F1,
1535
+ arrow: Z1
1536
+ }, D1 = {
1537
+ annotation: h.annotationPin,
1538
+ quiz: h.quizPin
1522
1539
  };
1523
1540
  function Ye({
1524
1541
  type: e,
1525
- position: n,
1542
+ position: t,
1526
1543
  children: o,
1527
1544
  onClick: i,
1528
- id: s,
1529
- completed: a
1545
+ id: s
1530
1546
  }) {
1531
- const c = w();
1532
- return /* @__PURE__ */ t(
1547
+ const a = v();
1548
+ return /* @__PURE__ */ n(
1533
1549
  "button",
1534
1550
  {
1535
1551
  type: "button",
1536
- tabIndex: c.state.interactionsDisabled ? -1 : 0,
1537
- className: m.pinButton,
1538
- style: { left: `${n}%` },
1552
+ tabIndex: a.state.interactionsDisabled ? -1 : 0,
1553
+ className: h.pinButton,
1554
+ style: { left: `${t}%` },
1539
1555
  onClick: i,
1540
1556
  "data-marker-id": s,
1541
1557
  children: /* @__PURE__ */ l(
1542
1558
  "svg",
1543
1559
  {
1544
- className: u1(R1[e], [a && m.pinCompleted]),
1560
+ className: D1[e],
1545
1561
  width: "26",
1546
1562
  height: "32",
1547
1563
  viewBox: "0 0 26 32",
1548
1564
  xmlns: "http://www.w3.org/2000/svg",
1549
1565
  children: [
1550
- /* @__PURE__ */ t("path", { d: "M25.5 13C25.5 15.4774 24.7798 17.785 23.5376 19.7268C21.932 22.1411 20.1501 23.9459 18.2945 25.7433C18.0942 25.9373 17.8929 26.1314 17.6908 26.3262C16.157 27.8047 14.5793 29.3256 13.0545 31.2007C11.5227 29.3377 9.93394 27.8282 8.39067 26.362C8.17552 26.1576 7.96126 25.954 7.74816 25.7505C5.87029 23.9566 4.07076 22.1526 2.46259 19.7271C1.22024 17.7852 0.5 15.4775 0.5 13C0.5 6.09644 6.09644 0.5 13 0.5C19.9036 0.5 25.5 6.09644 25.5 13Z" }),
1566
+ /* @__PURE__ */ n("path", { d: "M25.5 13C25.5 15.4774 24.7798 17.785 23.5376 19.7268C21.932 22.1411 20.1501 23.9459 18.2945 25.7433C18.0942 25.9373 17.8929 26.1314 17.6908 26.3262C16.157 27.8047 14.5793 29.3256 13.0545 31.2007C11.5227 29.3377 9.93394 27.8282 8.39067 26.362C8.17552 26.1576 7.96126 25.954 7.74816 25.7505C5.87029 23.9566 4.07076 22.1526 2.46259 19.7271C1.22024 17.7852 0.5 15.4775 0.5 13C0.5 6.09644 6.09644 0.5 13 0.5C19.9036 0.5 25.5 6.09644 25.5 13Z" }),
1551
1567
  o
1552
1568
  ]
1553
1569
  }
@@ -1555,11 +1571,11 @@ function Ye({
1555
1571
  }
1556
1572
  );
1557
1573
  }
1558
- function O1(e) {
1559
- return /* @__PURE__ */ t(Ye, { type: "annotation", ...e, children: /* @__PURE__ */ t(
1574
+ function j1(e) {
1575
+ return /* @__PURE__ */ n(Ye, { type: "annotation", ...e, children: /* @__PURE__ */ n(
1560
1576
  "path",
1561
1577
  {
1562
- className: m.annotationPinChild,
1578
+ className: h.annotationPinChild,
1563
1579
  fillRule: "evenodd",
1564
1580
  clipRule: "evenodd",
1565
1581
  d: "M7 8V19.25H8.875V18.875C8.875 17.8415 9.7165 17 10.75 17H19V8H7ZM10 11.75H16V11H10V11.75ZM14.5 14H10V13.25H14.5V14Z",
@@ -1568,21 +1584,21 @@ function O1(e) {
1568
1584
  }
1569
1585
  ) });
1570
1586
  }
1571
- function F1(e) {
1572
- const n = e.completed ? /* @__PURE__ */ t(
1587
+ function K1(e) {
1588
+ const t = e.completed ? /* @__PURE__ */ n(
1573
1589
  "path",
1574
1590
  {
1575
- className: m.quizPinChild,
1591
+ className: h.quizPinChild,
1576
1592
  transform: "translate(6, 6)",
1577
1593
  fillRule: "evenodd",
1578
1594
  clipRule: "evenodd",
1579
1595
  d: "M12.7156 2.33212L5.18253 9.86522L1.28337 5.96607L0 7.24944L5.18253 12.4329L13.9999 3.6164L12.7156 2.33212Z",
1580
1596
  fill: "currentColor"
1581
1597
  }
1582
- ) : /* @__PURE__ */ t(
1598
+ ) : /* @__PURE__ */ n(
1583
1599
  "text",
1584
1600
  {
1585
- className: m.quizPinChild,
1601
+ className: h.quizPinChild,
1586
1602
  x: "50%",
1587
1603
  y: "56%",
1588
1604
  textAnchor: "middle",
@@ -1591,58 +1607,58 @@ function F1(e) {
1591
1607
  children: e.ordinal
1592
1608
  }
1593
1609
  );
1594
- return /* @__PURE__ */ t(Ye, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ t("circle", { className: m.quizPinChild, cx: "13", cy: "13", r: "6" }) : n });
1610
+ return /* @__PURE__ */ n(Ye, { type: "quiz", ...e, children: e.multiple ? /* @__PURE__ */ n("circle", { className: h.quizPinChild, cx: "13", cy: "13", r: "6" }) : t });
1595
1611
  }
1596
- function Z1(e, n) {
1612
+ function z1(e, t) {
1597
1613
  return e.map((o, i) => ({
1598
1614
  id: o.id,
1599
1615
  time: o.time,
1600
1616
  type: "annotation",
1601
1617
  ordinal: i + 1,
1602
- onClick: () => n(o)
1618
+ onClick: () => t(o)
1603
1619
  }));
1604
1620
  }
1605
- function z1(e, n) {
1621
+ function $1(e, t) {
1606
1622
  const o = /* @__PURE__ */ new Map();
1607
1623
  e.forEach((a) => {
1608
- var r;
1609
- const c = a.time;
1610
- o.has(c) || o.set(c, []), (r = o.get(c)) == null || r.push(a);
1624
+ var c;
1625
+ const r = a.time;
1626
+ o.has(r) || o.set(r, []), (c = o.get(r)) == null || c.push(a);
1611
1627
  });
1612
1628
  const i = [];
1613
1629
  let s = 0;
1614
- return o.forEach((a, c) => {
1630
+ return o.forEach((a, r) => {
1615
1631
  i.push({
1616
- id: a.map((r) => r.id).join("-"),
1617
- time: c,
1632
+ id: a.map((c) => c.id).join("-"),
1633
+ time: r,
1618
1634
  type: "quiz",
1619
1635
  ordinal: s + 1,
1620
- onClick: () => n(a),
1636
+ onClick: () => t(a),
1621
1637
  multiple: a.length > 1,
1622
- completed: a.every((r) => r.completed)
1638
+ completed: a.every((c) => c.completed)
1623
1639
  }), s++;
1624
1640
  }), i;
1625
1641
  }
1626
- function j1(e, n, o, i) {
1642
+ function U1(e, t, o, i) {
1627
1643
  switch (e.type) {
1628
1644
  case "annotation": {
1629
1645
  const s = () => i ? e.onClick() : o.seek(e.time);
1630
- return /* @__PURE__ */ t(
1631
- O1,
1646
+ return /* @__PURE__ */ n(
1647
+ j1,
1632
1648
  {
1633
1649
  id: e.id,
1634
- position: e.time / n * 100,
1650
+ position: e.time / t * 100,
1635
1651
  onClick: s
1636
1652
  },
1637
1653
  e.id
1638
1654
  );
1639
1655
  }
1640
1656
  case "quiz":
1641
- return /* @__PURE__ */ t(
1642
- F1,
1657
+ return /* @__PURE__ */ n(
1658
+ K1,
1643
1659
  {
1644
1660
  id: e.id,
1645
- position: e.time / n * 100,
1661
+ position: e.time / t * 100,
1646
1662
  ordinal: e.ordinal,
1647
1663
  multiple: e.multiple,
1648
1664
  onClick: e.onClick,
@@ -1654,22 +1670,22 @@ function j1(e, n, o, i) {
1654
1670
  return null;
1655
1671
  }
1656
1672
  }
1657
- function D1() {
1658
- const e = oe(), n = g("duration"), o = L(), i = T(() => [
1659
- ...Z1(
1673
+ function q1() {
1674
+ const e = ie(), t = g("duration"), o = L(), i = O(() => [
1675
+ ...z1(
1660
1676
  o.annotations,
1661
1677
  o.onAnnotationClick
1662
1678
  ),
1663
- ...z1(o.quizMarkers, o.onQuizMarkerClick)
1664
- ].sort((a, c) => a.time - c.time).map((a) => j1(a, n, e, o.interactive)), [o.annotations, o.quizMarkers, n, e]);
1665
- return /* @__PURE__ */ t("div", { className: m.pins, children: i });
1679
+ ...$1(o.quizMarkers, o.onQuizMarkerClick)
1680
+ ].sort((a, r) => a.time - r.time).map((a) => U1(a, t, e, o.interactive)), [o.annotations, o.quizMarkers, t, e]);
1681
+ return /* @__PURE__ */ n("div", { className: h.pins, children: i });
1666
1682
  }
1667
- function K1() {
1668
- const e = g("duration"), n = L(), o = w();
1669
- return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: m.commentMarkers, children: n.comments.map((i) => /* @__PURE__ */ t(
1683
+ function G1() {
1684
+ const e = g("duration"), t = L(), o = v();
1685
+ return e > 0 && t.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ n("div", { className: h.commentMarkers, children: t.comments.map((i) => /* @__PURE__ */ n(
1670
1686
  "span",
1671
1687
  {
1672
- className: m.commentMarker,
1688
+ className: h.commentMarker,
1673
1689
  style: {
1674
1690
  left: `${i.timestamp / e * 100}%`
1675
1691
  }
@@ -1677,63 +1693,65 @@ function K1() {
1677
1693
  i.id
1678
1694
  )) }) : null;
1679
1695
  }
1680
- function $1({ currentTime: e, position: n }) {
1681
- const [o, i] = x(!1), s = L(), a = f(() => s.interactiveMenuElements.length > 0 ? i((y) => !y) : s.onInteractivePinClick(e), [
1682
- s.interactiveMenuElements,
1683
- s.onInteractivePinClick,
1684
- e
1685
- ]), c = ne(null), { refs: r, floatingStyles: d, context: p } = ue({
1686
- open: o,
1687
- onOpenChange: i,
1688
- whileElementsMounted: de,
1696
+ const Q1 = lt(function({ currentTime: t, position: o }, i) {
1697
+ const [s, a] = M(!1), r = L(), c = v(), u = f(() => {
1698
+ r.interactiveMenuElements.length > 0 ? (a((I) => !I), c.setGlobalKeysDisabled(!0)) : r.onInteractivePinClick(t);
1699
+ }, [
1700
+ r.interactiveMenuElements,
1701
+ r.onInteractivePinClick,
1702
+ t
1703
+ ]), m = U(null), { refs: b, floatingStyles: w, context: y } = de({
1704
+ open: s,
1705
+ onOpenChange: a,
1706
+ whileElementsMounted: me,
1689
1707
  placement: "top",
1690
1708
  middleware: [
1691
- Se(),
1692
- Te(6),
1709
+ Te(),
1710
+ Ee(6),
1693
1711
  Ve({
1694
- element: c
1712
+ element: m
1695
1713
  })
1696
1714
  ]
1697
- }), b = me(p), { getReferenceProps: v, getFloatingProps: k } = he([b]);
1698
- return /* @__PURE__ */ l(Y, { children: [
1699
- /* @__PURE__ */ t(
1715
+ }), k = he(y), { getReferenceProps: S, getFloatingProps: p } = pe([k]), _ = Nt([b.setReference, i]);
1716
+ return /* @__PURE__ */ l(J, { children: [
1717
+ /* @__PURE__ */ n(
1700
1718
  "button",
1701
1719
  {
1702
1720
  type: "button",
1703
- onClick: a,
1704
- className: m.interactivePinButton,
1705
- ref: r.setReference,
1706
- style: { left: `${n}%` },
1707
- ...v(),
1721
+ onClick: u,
1722
+ className: h.interactivePinButton,
1723
+ ref: _,
1724
+ style: { left: `${o}%` },
1725
+ ...S(),
1708
1726
  children: /* @__PURE__ */ l(
1709
1727
  "svg",
1710
1728
  {
1711
- className: m.interactivePin,
1729
+ className: h.interactivePin,
1712
1730
  width: "36",
1713
1731
  height: "44",
1714
1732
  fill: "none",
1715
1733
  viewBox: "0 0 36 44",
1716
1734
  xmlns: "http://www.w3.org/2000/svg",
1717
1735
  children: [
1718
- /* @__PURE__ */ t(
1736
+ /* @__PURE__ */ n(
1719
1737
  "path",
1720
1738
  {
1721
- className: m.bg,
1739
+ className: h.bg,
1722
1740
  d: "M 33.1703,27.499961 C 34.9615,24.721661 36,21.418761 36,17.874961 36,8.0028612 27.9411,-3.8819277e-5 18,-3.8819277e-5 8.0588999,-3.8819277e-5 -1.5e-7,8.0028612 -1.5e-7,17.874961 c 0,3.5438 1.03844995,6.8467 2.82964995,9.625 4.5447501,6.8094 10.1600502,10.1014 15.2487502,16.5 5.0364,-6.3985 10.5573,-9.7259 15.0919,-16.5 z"
1723
1741
  }
1724
1742
  ),
1725
- /* @__PURE__ */ t(
1743
+ /* @__PURE__ */ n(
1726
1744
  "path",
1727
1745
  {
1728
- className: m.symbol,
1746
+ className: h.symbol,
1729
1747
  d: "m 35.499961,17.877772 c 0,3.443549 -1.008198,6.652061 -2.747494,9.351891 -2.235095,3.338633 -4.71529,5.832631 -7.286584,8.306425 -0.277599,0.267143 -0.556499,0.534085 -0.836198,0.801928 -2.174595,2.082232 -4.40389,4.216673 -6.553385,6.870196 -2.158995,-2.636621 -4.40379,-4.754859 -6.591985,-6.819788 -0.2979,-0.281145 -0.594699,-0.561289 -0.890198,-0.841534 C 7.9918219,33.077896 5.4869279,30.584698 3.2477829,27.230063 1.5082968,24.530133 0.50003905,21.321521 0.50003905,17.877772 0.50003905,8.2835422 8.3317219,0.50000048 18,0.50000048 c 9.668278,0 17.499961,7.78354172 17.499961,17.37777152 z"
1730
1748
  }
1731
1749
  ),
1732
- /* @__PURE__ */ t(
1750
+ /* @__PURE__ */ n(
1733
1751
  "path",
1734
1752
  {
1735
- className: m.interactivePinIcon,
1736
- "data-open": o,
1753
+ className: h.interactivePinIcon,
1754
+ "data-open": s,
1737
1755
  fillRule: "evenodd",
1738
1756
  clipRule: "evenodd",
1739
1757
  d: "m 18.75,17.388467 v -6.25 h -1.5 v 6.25 H 11 v 1.5 h 6.25 v 6.25 h 1.5 v -6.25 H 25 v -1.5 z",
@@ -1745,31 +1763,31 @@ function $1({ currentTime: e, position: n }) {
1745
1763
  )
1746
1764
  }
1747
1765
  ),
1748
- o && /* @__PURE__ */ t(
1749
- pe,
1766
+ s && /* @__PURE__ */ n(
1767
+ _e,
1750
1768
  {
1751
1769
  order: ["floating", "content"],
1752
- context: p,
1770
+ context: y,
1753
1771
  modal: !0,
1754
1772
  children: /* @__PURE__ */ l(
1755
1773
  "div",
1756
1774
  {
1757
- ref: r.setFloating,
1758
- style: d,
1759
- className: m.interactivePinMenu,
1760
- ...k(),
1775
+ ref: b.setFloating,
1776
+ style: w,
1777
+ className: h.interactivePinMenu,
1778
+ ...p(),
1761
1779
  children: [
1762
- s.interactiveMenuElements.map(
1763
- ({ id: y, text: P, onClick: h }) => /* @__PURE__ */ l(
1780
+ r.interactiveMenuElements.map(
1781
+ ({ id: I, text: V, onClick: F }) => /* @__PURE__ */ l(
1764
1782
  "button",
1765
1783
  {
1766
1784
  type: "button",
1767
- className: m.interactivePinMenuItem,
1785
+ className: h.interactivePinMenuItem,
1768
1786
  onClick: () => {
1769
- h(y, e), i(!1);
1787
+ F(I, t), a(!1), c.setGlobalKeysDisabled(!1);
1770
1788
  },
1771
1789
  children: [
1772
- /* @__PURE__ */ t(
1790
+ /* @__PURE__ */ n(
1773
1791
  "svg",
1774
1792
  {
1775
1793
  width: "16",
@@ -1777,7 +1795,7 @@ function $1({ currentTime: e, position: n }) {
1777
1795
  viewBox: "0 0 16 16",
1778
1796
  fill: "none",
1779
1797
  xmlns: "http://www.w3.org/2000/svg",
1780
- children: /* @__PURE__ */ t(
1798
+ children: /* @__PURE__ */ n(
1781
1799
  "path",
1782
1800
  {
1783
1801
  fillRule: "evenodd",
@@ -1788,18 +1806,18 @@ function $1({ currentTime: e, position: n }) {
1788
1806
  )
1789
1807
  }
1790
1808
  ),
1791
- P
1809
+ V
1792
1810
  ]
1793
1811
  },
1794
- y
1812
+ I
1795
1813
  )
1796
1814
  ),
1797
- /* @__PURE__ */ t(
1815
+ /* @__PURE__ */ n(
1798
1816
  Ae,
1799
1817
  {
1800
- ref: c,
1801
- context: p,
1802
- className: m.arrow
1818
+ ref: m,
1819
+ context: y,
1820
+ className: h.arrow
1803
1821
  }
1804
1822
  )
1805
1823
  ]
@@ -1808,52 +1826,79 @@ function $1({ currentTime: e, position: n }) {
1808
1826
  }
1809
1827
  )
1810
1828
  ] });
1829
+ }), W1 = () => {
1830
+ const e = U(!1), t = U(!1);
1831
+ return Ce({
1832
+ ArrowLeft: () => {
1833
+ t.current = !0;
1834
+ },
1835
+ ArrowRight: () => {
1836
+ t.current = !0;
1837
+ },
1838
+ Tab: () => {
1839
+ t.current = !1;
1840
+ }
1841
+ }), { focusCallback: f((i) => {
1842
+ i && (i.addEventListener("focus", () => {
1843
+ e.current = !0;
1844
+ }), i.addEventListener("blur", () => {
1845
+ t.current || (e.current = !1);
1846
+ }), e.current && i.focus());
1847
+ }, []), wasPinFocused: e.current };
1848
+ };
1849
+ function Y1() {
1850
+ var c;
1851
+ const e = g("duration"), t = g("currentTime"), o = t / e * 100, { disableInteractivePinRanges: i } = L(), s = !i.some(
1852
+ ([u, m]) => t >= u && t <= m
1853
+ ), { wasPinFocused: a, focusCallback: r } = W1();
1854
+ return s ? /* @__PURE__ */ n("div", { className: h.interactivePinContainer, children: /* @__PURE__ */ n("div", { className: h.interactivePinWrapper, children: /* @__PURE__ */ n(
1855
+ Q1,
1856
+ {
1857
+ ref: r,
1858
+ currentTime: t,
1859
+ position: o
1860
+ }
1861
+ ) }) }) : (a && ((c = document.querySelector("[data-media-time-slider]")) == null || c.focus()), null);
1811
1862
  }
1812
- function U1() {
1813
- const e = g("duration"), n = g("currentTime"), o = n / e * 100, { disableInteractivePinRanges: i } = L();
1814
- return i.some(
1815
- ([a, c]) => n >= a && n <= c
1816
- ) ? null : /* @__PURE__ */ t("div", { className: m.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: m.interactivePinWrapper, children: /* @__PURE__ */ t($1, { currentTime: n, position: o }) }) });
1817
- }
1818
- function q1() {
1819
- const e = g("paused"), n = w();
1820
- return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(U1, {}) : null;
1863
+ function X1() {
1864
+ const e = g("paused"), t = v();
1865
+ return e && !t.state.interactionsDisabled ? /* @__PURE__ */ n(Y1, {}) : null;
1821
1866
  }
1822
- const G1 = `${m.progress} ${m.trackInner}`, Q1 = `${m.trackFill} ${m.trackInner}`;
1823
- function Me({ className: e }) {
1824
- const n = w(), { hasAnnotations: o, hasQuizmarkers: i, interactive: s } = L(), a = e ? `${m.timelineWrapper} ${e}` : m.timelineWrapper;
1867
+ const J1 = `${h.progress} ${h.trackInner}`, ei = `${h.trackFill} ${h.trackInner}`;
1868
+ function Pe({ className: e }) {
1869
+ const t = v(), { hasAnnotations: o, hasQuizmarkers: i, interactive: s } = L(), a = e ? `${h.timelineWrapper} ${e}` : h.timelineWrapper;
1825
1870
  return /* @__PURE__ */ l("div", { className: a, children: [
1826
- s ? /* @__PURE__ */ t(q1, {}) : null,
1827
- s || o || i ? /* @__PURE__ */ t(D1, {}) : null,
1828
- /* @__PURE__ */ t(K1, {}),
1871
+ s ? /* @__PURE__ */ n(X1, {}) : null,
1872
+ s || o || i ? /* @__PURE__ */ n(q1, {}) : null,
1873
+ /* @__PURE__ */ n(G1, {}),
1829
1874
  /* @__PURE__ */ l(
1830
- G.Root,
1875
+ W.Root,
1831
1876
  {
1832
- className: m.root,
1833
- tabIndex: n.state.interactionsDisabled ? -1 : 0,
1877
+ className: h.root,
1878
+ tabIndex: t.state.interactionsDisabled ? -1 : 0,
1834
1879
  children: [
1835
- /* @__PURE__ */ l(G.Track, { className: m.track, children: [
1836
- /* @__PURE__ */ t(G.Progress, { className: G1 }),
1837
- /* @__PURE__ */ t(G.TrackFill, { className: Q1 })
1880
+ /* @__PURE__ */ l(W.Track, { className: h.track, children: [
1881
+ /* @__PURE__ */ n(W.Progress, { className: J1 }),
1882
+ /* @__PURE__ */ n(W.TrackFill, { className: ei })
1838
1883
  ] }),
1839
- /* @__PURE__ */ t(G.Thumb, { className: m.thumb })
1884
+ /* @__PURE__ */ n(W.Thumb, { className: h.thumb })
1840
1885
  ]
1841
1886
  }
1842
1887
  )
1843
1888
  ] });
1844
1889
  }
1845
- const W1 = "_wrapper_12cb0_1", Y1 = "_track_12cb0_6", X1 = "_thumb_12cb0_18", J1 = "_track-fill_12cb0_32", ei = "_root_12cb0_51", W = {
1846
- wrapper: W1,
1847
- track: Y1,
1848
- thumb: X1,
1890
+ const ti = "_wrapper_12cb0_1", ni = "_track_12cb0_6", oi = "_thumb_12cb0_18", ii = "_track-fill_12cb0_32", si = "_root_12cb0_51", X = {
1891
+ wrapper: ti,
1892
+ track: ni,
1893
+ thumb: oi,
1849
1894
  "track-fill": "_track-fill_12cb0_32",
1850
- trackFill: J1,
1851
- root: ei
1895
+ trackFill: ii,
1896
+ root: si
1852
1897
  };
1853
- function ti() {
1854
- const e = Z(), n = g("volume"), o = g("muted"), i = w(), s = o || n === 0, { t: a } = _();
1855
- return /* @__PURE__ */ l("div", { className: W.wrapper, children: [
1856
- /* @__PURE__ */ t(
1898
+ function ai() {
1899
+ const e = E(), t = g("volume"), o = g("muted"), i = v(), s = o || t === 0, { t: a } = C();
1900
+ return /* @__PURE__ */ l("div", { className: X.wrapper, children: [
1901
+ /* @__PURE__ */ n(
1857
1902
  "button",
1858
1903
  {
1859
1904
  role: "button",
@@ -1864,126 +1909,141 @@ function ti() {
1864
1909
  onClick: () => {
1865
1910
  s ? e == null || e.remoteControl.unmute() : e == null || e.remoteControl.mute();
1866
1911
  },
1867
- children: s ? /* @__PURE__ */ t($e, { className: "controls-button-icon" }) : n < 0.5 ? /* @__PURE__ */ t(Ue, { className: "controls-button-icon" }) : /* @__PURE__ */ t(qe, { className: "controls-button-icon" })
1912
+ children: s ? /* @__PURE__ */ n(Ue, { className: "controls-button-icon" }) : t < 0.5 ? /* @__PURE__ */ n(qe, { className: "controls-button-icon" }) : /* @__PURE__ */ n(Ge, { className: "controls-button-icon" })
1868
1913
  }
1869
1914
  ),
1870
1915
  /* @__PURE__ */ l(
1871
- X.Root,
1916
+ ee.Root,
1872
1917
  {
1873
- className: W.root,
1918
+ className: X.root,
1874
1919
  tabIndex: i.state.interactionsDisabled ? -1 : 0,
1875
1920
  children: [
1876
- /* @__PURE__ */ t(X.Track, { className: W.track, children: /* @__PURE__ */ t(X.TrackFill, { className: W.trackFill }) }),
1877
- /* @__PURE__ */ t(X.Thumb, { className: W.thumb })
1921
+ /* @__PURE__ */ n(ee.Track, { className: X.track, children: /* @__PURE__ */ n(ee.TrackFill, { className: X.trackFill }) }),
1922
+ /* @__PURE__ */ n(ee.Thumb, { className: X.thumb })
1878
1923
  ]
1879
1924
  }
1880
1925
  )
1881
1926
  ] });
1882
1927
  }
1883
- const Ne = {
1928
+ function x(e, t) {
1929
+ e.dispatchEvent(
1930
+ new CustomEvent("keyboardAction", {
1931
+ detail: t
1932
+ })
1933
+ );
1934
+ }
1935
+ const Ie = {
1884
1936
  togglePaused: {
1885
1937
  keys: ["Space", "Enter", "k"],
1886
- onKeyUp({ event: e, player: n, remote: o }) {
1938
+ onKeyDown({ player: e, remote: t, event: o }) {
1887
1939
  var i;
1888
- (i = document.activeElement) != null && i.hasAttribute("data-media-player") && (o.togglePaused(), n.$state.lastKeyboardAction.set({
1889
- action: "togglePaused",
1890
- event: e
1891
- }));
1940
+ (i = document.activeElement) != null && i.hasAttribute("data-media-player") && (t.togglePaused(o), x(e, "togglePaused"));
1941
+ }
1942
+ },
1943
+ seekForward: {
1944
+ keys: ["ArrowRight"],
1945
+ onKeyDown({ player: e, remote: t, event: o }) {
1946
+ t.seek(e.currentTime + 5, o), x(e, "seekForward");
1947
+ }
1948
+ },
1949
+ seekBackward: {
1950
+ keys: ["ArrowLeft"],
1951
+ onKeyDown({ player: e, remote: t, event: o }) {
1952
+ t.seek(e.currentTime - 5, o), x(e, "seekBackward");
1953
+ }
1954
+ },
1955
+ volumeUp: {
1956
+ keys: ["ArrowUp"],
1957
+ onKeyDown({ player: e, remote: t, event: o }) {
1958
+ t.changeVolume(e.volume + 0.05, o), x(e, "volumeChange");
1959
+ }
1960
+ },
1961
+ volumeDown: {
1962
+ keys: ["ArrowDown"],
1963
+ onKeyDown({ player: e, remote: t, event: o }) {
1964
+ t.changeVolume(e.volume - 0.05, o), x(e, "volumeChange");
1892
1965
  }
1893
1966
  },
1894
- seekForward: ["ArrowRight"],
1895
- seekBackward: ["ArrowLeft"],
1896
- volumeUp: ["ArrowUp"],
1897
- volumeDown: ["ArrowDown"],
1898
1967
  toggleFullscreen: ["f"],
1899
- toggleMuted: ["m"],
1900
- toggleCaptions: ["c"],
1968
+ toggleMuted: {
1969
+ keys: ["m"],
1970
+ onKeyDown({ player: e, remote: t, event: o }) {
1971
+ t.toggleMuted(o), x(e, "volumeChange");
1972
+ }
1973
+ },
1974
+ toggleCaptions: {
1975
+ keys: ["c"],
1976
+ onKeyDown({ player: e, remote: t, event: o }) {
1977
+ t.toggleCaptions(o), x(e, "captionsChange");
1978
+ }
1979
+ },
1901
1980
  nextCaptionLanguage: {
1902
1981
  keys: ["v"],
1903
- onKeyUp({ event: e, player: n, remote: o }) {
1904
- const i = n.textTracks.selectedIndex, s = i + 1;
1905
- o.changeTextTrackMode(i, "hidden"), o.changeTextTrackMode(
1906
- s >= n.textTracks.length ? 0 : s,
1907
- "showing"
1908
- ), n.$state.lastKeyboardAction.set({
1909
- action: "nextCaptionLanguage",
1910
- event: e
1911
- });
1982
+ onKeyDown({ event: e, player: t, remote: o }) {
1983
+ const i = t.textTracks.selectedIndex, s = i + 1;
1984
+ o.changeTextTrackMode(i, "hidden", e), o.changeTextTrackMode(
1985
+ s >= t.textTracks.length ? 0 : s,
1986
+ "showing",
1987
+ e
1988
+ ), x(t, "captionsChange");
1912
1989
  }
1913
1990
  },
1914
1991
  previousCaptionLanguage: {
1915
1992
  keys: ["x"],
1916
- onKeyUp({ event: e, player: n, remote: o }) {
1917
- const i = n.textTracks.selectedIndex, s = i - 1;
1918
- o.changeTextTrackMode(i, "hidden"), o.changeTextTrackMode(
1919
- s < 0 ? n.textTracks.length - 1 : s,
1920
- "showing"
1921
- ), n.$state.lastKeyboardAction.set({
1922
- action: "previousCaptionLanguage",
1923
- event: e
1924
- });
1993
+ onKeyDown({ event: e, player: t, remote: o }) {
1994
+ const i = t.textTracks.selectedIndex, s = i - 1;
1995
+ o.changeTextTrackMode(i, "hidden", e), o.changeTextTrackMode(
1996
+ s < 0 ? t.textTracks.length - 1 : s,
1997
+ "showing",
1998
+ e
1999
+ ), x(t, "captionsChange");
1925
2000
  }
1926
2001
  },
1927
2002
  decreasePlaybackRate: {
1928
2003
  keys: ["a"],
1929
- onKeyUp({ event: e, player: n, remote: o }) {
1930
- const s = D.indexOf(n.playbackRate) - 1;
1931
- s >= 0 && (o.changePlaybackRate(D[s]), n.$state.lastKeyboardAction.set({
1932
- action: "decreasePlaybackRate",
1933
- event: e
1934
- }));
2004
+ onKeyDown({ event: e, player: t, remote: o }) {
2005
+ const s = $.indexOf(t.playbackRate) - 1;
2006
+ s >= 0 && (o.changePlaybackRate($[s], e), x(t, "playbackRateChange"));
1935
2007
  }
1936
2008
  },
1937
2009
  increasePlaybackRate: {
1938
2010
  keys: ["d"],
1939
- onKeyUp({ event: e, player: n, remote: o }) {
1940
- const s = D.indexOf(n.playbackRate) + 1;
1941
- s < D.length && (o.changePlaybackRate(D[s]), n.$state.lastKeyboardAction.set({
1942
- action: "increasePlaybackRate",
1943
- event: e
1944
- }));
2011
+ onKeyDown({ event: e, player: t, remote: o }) {
2012
+ const s = $.indexOf(t.playbackRate) + 1;
2013
+ s < $.length && (o.changePlaybackRate($[s], e), x(t, "playbackRateChange"));
1945
2014
  }
1946
2015
  },
1947
2016
  resetPlaybackRate: {
1948
2017
  keys: ["s"],
1949
- onKeyUp({ event: e, player: n, remote: o }) {
1950
- o.changePlaybackRate(1), n.$state.lastKeyboardAction.set({
1951
- action: "resetPlaybackRate",
1952
- event: e
1953
- });
2018
+ onKeyDown({ event: e, player: t, remote: o }) {
2019
+ o.changePlaybackRate(1, e), x(t, "playbackRateChange");
1954
2020
  }
1955
2021
  },
1956
2022
  seekForward10Seconds: {
1957
2023
  keys: ["l"],
1958
- onKeyUp({ event: e, player: n, remote: o }) {
1959
- o.seek(n.currentTime + 10), n.$state.lastKeyboardAction.set({
1960
- action: "seekForward10",
1961
- event: e
1962
- });
2024
+ onKeyDown({ event: e, player: t, remote: o }) {
2025
+ o.seek(t.currentTime + 10, e), x(t, "seekForward10");
1963
2026
  }
1964
2027
  },
1965
2028
  seekBackward10Seconds: {
1966
2029
  keys: ["j"],
1967
- onKeyUp({ event: e, player: n, remote: o }) {
1968
- o.seek(n.currentTime - 10), n.$state.lastKeyboardAction.set({
1969
- action: "seekBackward10",
1970
- event: e
1971
- });
2030
+ onKeyDown({ event: e, player: t, remote: o }) {
2031
+ o.seek(t.currentTime - 10, e), x(t, "seekBackward10");
1972
2032
  }
1973
2033
  }
1974
2034
  };
1975
- function Pe(e) {
2035
+ function Se(e) {
1976
2036
  return typeof e == "number" && !isNaN(e);
1977
2037
  }
1978
- function ni(e, n = 1e3) {
2038
+ function li(e, t = 1e3) {
1979
2039
  let o = !1;
1980
2040
  return () => {
1981
2041
  o || (e(), o = !0, setTimeout(() => {
1982
2042
  o = !1;
1983
- }, n));
2043
+ }, t));
1984
2044
  };
1985
2045
  }
1986
- const Ie = {
2046
+ const He = {
1987
2047
  volume: 1,
1988
2048
  muted: !1,
1989
2049
  lang: null,
@@ -1994,23 +2054,23 @@ const Ie = {
1994
2054
  invert: !1,
1995
2055
  comments: !1
1996
2056
  };
1997
- class oi {
2057
+ class ri {
1998
2058
  constructor() {
1999
- H(this, "playerId", "studio-player");
2000
- H(this, "mediaId", null);
2001
- H(this, "data", Ie);
2002
- H(this, "time", null);
2003
- H(this, "overrideTime", null);
2004
- H(this, "saveTime", () => {
2059
+ T(this, "playerId", "studio-player");
2060
+ T(this, "mediaId", null);
2061
+ T(this, "data", He);
2062
+ T(this, "time", null);
2063
+ T(this, "overrideTime", null);
2064
+ T(this, "saveTime", () => {
2005
2065
  if (!this.mediaId) return;
2006
- const n = (this.time ?? 0).toString();
2007
- localStorage.setItem(this.mediaId, n);
2066
+ const t = (this.time ?? 0).toString();
2067
+ localStorage.setItem(this.mediaId, t);
2008
2068
  });
2009
- H(this, "saveTimeThrottled", ni(this.saveTime, 1e3));
2069
+ T(this, "saveTimeThrottled", li(this.saveTime, 1e3));
2010
2070
  // only used for useStudioPlayer hook's state initialization
2011
- H(this, "initializeState", (n) => {
2071
+ T(this, "initializeState", (t) => {
2012
2072
  const o = localStorage.getItem(this.playerId);
2013
- if (Pe(n) && n >= 0 && (this.overrideTime = n), o)
2073
+ if (Se(t) && t >= 0 && (this.overrideTime = t), o)
2014
2074
  try {
2015
2075
  this.data = JSON.parse(o);
2016
2076
  } catch {
@@ -2025,10 +2085,10 @@ class oi {
2025
2085
  disableCaptionSettings: !1
2026
2086
  };
2027
2087
  });
2028
- H(this, "saveData", (n, o) => {
2088
+ T(this, "saveData", (t, o) => {
2029
2089
  this.data = {
2030
2090
  ...this.data,
2031
- [n]: o
2091
+ [t]: o
2032
2092
  }, this.save();
2033
2093
  });
2034
2094
  }
@@ -2041,314 +2101,314 @@ class oi {
2041
2101
  async getLang() {
2042
2102
  return this.data.lang;
2043
2103
  }
2044
- async setLang(n) {
2045
- this.data.lang = n, this.save();
2104
+ async setLang(t) {
2105
+ this.data.lang = t, this.save();
2046
2106
  }
2047
2107
  async getVolume() {
2048
2108
  return this.data.volume;
2049
2109
  }
2050
- async setVolume(n) {
2051
- this.data.volume = n, this.save();
2110
+ async setVolume(t) {
2111
+ this.data.volume = t, this.save();
2052
2112
  }
2053
2113
  async getMuted() {
2054
2114
  return this.data.muted;
2055
2115
  }
2056
- async setMuted(n) {
2057
- this.data.muted = n, this.save();
2116
+ async setMuted(t) {
2117
+ this.data.muted = t, this.save();
2058
2118
  }
2059
2119
  async getTime() {
2060
2120
  return this.time;
2061
2121
  }
2062
- async setTime(n, o) {
2063
- const i = n < 0;
2064
- this.time = i ? null : n, i || o ? this.saveTime() : this.saveTimeThrottled();
2122
+ async setTime(t, o) {
2123
+ const i = t < 0;
2124
+ this.time = i ? null : t, i || o ? this.saveTime() : this.saveTimeThrottled();
2065
2125
  }
2066
2126
  async getCaptions() {
2067
2127
  return this.data.captions;
2068
2128
  }
2069
- async setCaptions(n) {
2070
- this.data.captions = n, this.save();
2129
+ async setCaptions(t) {
2130
+ this.data.captions = t, this.save();
2071
2131
  }
2072
2132
  async getPlaybackRate() {
2073
2133
  return this.data.rate;
2074
2134
  }
2075
- async setPlaybackRate(n) {
2076
- this.data.rate = n, this.save();
2135
+ async setPlaybackRate(t) {
2136
+ this.data.rate = t, this.save();
2077
2137
  }
2078
- onChange(n, o, i = "studio-player") {
2138
+ onChange(t, o, i = "studio-player") {
2079
2139
  const s = i ? localStorage.getItem(i) : null, a = o ? localStorage.getItem(o) : null;
2080
2140
  this.playerId = i, this.mediaId = o;
2081
- let c = {};
2141
+ let r = {};
2082
2142
  if (s)
2083
2143
  try {
2084
- c = JSON.parse(s);
2144
+ r = JSON.parse(s);
2085
2145
  } catch {
2086
2146
  }
2087
2147
  this.data = {
2088
- ...Ie,
2089
- ...c
2090
- }, Pe(this.overrideTime) && this.overrideTime >= 0 ? this.time = this.overrideTime : this.time = a ? +a : null;
2148
+ ...He,
2149
+ ...r
2150
+ }, Se(this.overrideTime) && this.overrideTime >= 0 ? this.time = this.overrideTime : this.time = a ? +a : null;
2091
2151
  }
2092
2152
  save() {
2093
2153
  if (!this.playerId) return;
2094
- const n = JSON.stringify(this.data);
2095
- localStorage.setItem(this.playerId, n);
2154
+ const t = JSON.stringify(this.data);
2155
+ localStorage.setItem(this.playerId, t);
2096
2156
  }
2097
2157
  }
2098
- function ii(e, n, o, i) {
2099
- const s = T(() => new oi(), []), [a, c] = x(
2158
+ function ci(e, t, o, i) {
2159
+ const s = O(() => new ri(), []), [a, r] = M(
2100
2160
  s.initializeState(i)
2101
- ), r = f(
2102
- (h) => {
2103
- c((C) => (s.saveData("multiplier", h), {
2104
- ...C,
2105
- captionsFontSizeMultiplier: h
2161
+ ), c = f(
2162
+ (p) => {
2163
+ r((_) => (s.saveData("multiplier", p), {
2164
+ ..._,
2165
+ captionsFontSizeMultiplier: p
2106
2166
  }));
2107
2167
  },
2108
2168
  [s]
2109
- ), d = f(() => {
2110
- c((h) => {
2111
- const C = !h.captionPositionOnTop;
2112
- return s.saveData("ontop", C), {
2113
- ...h,
2114
- captionPositionOnTop: C
2169
+ ), u = f(() => {
2170
+ r((p) => {
2171
+ const _ = !p.captionPositionOnTop;
2172
+ return s.saveData("ontop", _), {
2173
+ ...p,
2174
+ captionPositionOnTop: _
2115
2175
  };
2116
2176
  });
2117
- }, [s]), p = f(() => {
2118
- c((h) => {
2119
- const C = !h.captionsInvertColors;
2120
- return s.saveData("invert", C), {
2121
- ...h,
2122
- captionsInvertColors: C
2177
+ }, [s]), m = f(() => {
2178
+ r((p) => {
2179
+ const _ = !p.captionsInvertColors;
2180
+ return s.saveData("invert", _), {
2181
+ ...p,
2182
+ captionsInvertColors: _
2123
2183
  };
2124
2184
  });
2125
2185
  }, [s]), b = f(() => {
2126
- c((h) => {
2127
- const C = !h.commentsEnabled;
2128
- return s.saveData("comments", C), {
2129
- ...h,
2130
- commentsEnabled: C
2186
+ r((p) => {
2187
+ const _ = !p.commentsEnabled;
2188
+ return s.saveData("comments", _), {
2189
+ ...p,
2190
+ commentsEnabled: _
2131
2191
  };
2132
2192
  });
2133
- }, [s]), v = f(() => {
2134
- c((h) => ({
2135
- ...h,
2193
+ }, [s]), w = f(() => {
2194
+ r((p) => ({
2195
+ ...p,
2136
2196
  interactionsDisabled: !1
2137
2197
  }));
2138
- }, []), k = f(() => {
2139
- c((h) => ({
2140
- ...h,
2198
+ }, []), y = f(() => {
2199
+ r((p) => ({
2200
+ ...p,
2141
2201
  interactionsDisabled: !0
2142
2202
  }));
2143
- }, []), y = f((h) => {
2144
- c((C) => ({
2145
- ...C,
2146
- globalKeysDisabled: h
2203
+ }, []), k = f((p) => {
2204
+ r((_) => ({
2205
+ ..._,
2206
+ globalKeysDisabled: p
2147
2207
  }));
2148
- }, []), P = T(() => e ? {
2149
- ...Ne,
2208
+ }, []), S = O(() => e ? {
2209
+ ...Ie,
2150
2210
  toggleFullscreen: []
2151
- } : Ne, [e]);
2211
+ } : Ie, [e]);
2152
2212
  return {
2153
2213
  contextValue: {
2154
2214
  state: {
2155
2215
  ...a,
2156
- commentsEnabled: n || a.commentsEnabled
2216
+ commentsEnabled: t || a.commentsEnabled
2157
2217
  },
2158
- setCaptionsFontSizeMultiplier: r,
2159
- toggleCaptionPositionOnTop: d,
2160
- toggleCaptionsInvertColors: p,
2161
- enableInteractions: v,
2162
- disableInteractions: k,
2163
- setGlobalKeysDisabled: y,
2218
+ setCaptionsFontSizeMultiplier: c,
2219
+ toggleCaptionPositionOnTop: u,
2220
+ toggleCaptionsInvertColors: m,
2221
+ enableInteractions: w,
2222
+ disableInteractions: y,
2223
+ setGlobalKeysDisabled: k,
2164
2224
  toggleComments: b,
2165
2225
  disableCaptionSettings: o
2166
2226
  },
2167
- shortcuts: P,
2227
+ shortcuts: S,
2168
2228
  storage: s
2169
2229
  };
2170
2230
  }
2171
- const si = {};
2172
- function ai() {
2173
- const e = L();
2174
- return /* @__PURE__ */ l(Y, { children: [
2175
- /* @__PURE__ */ t(Jo, { src: e.thumbnail }),
2176
- /* @__PURE__ */ t(Ge, {}),
2177
- /* @__PURE__ */ t(Re, {}),
2178
- /* @__PURE__ */ t(Ze, { captions: e.captions }),
2179
- /* @__PURE__ */ t(a1, {}),
2180
- /* @__PURE__ */ t(No, {}),
2181
- /* @__PURE__ */ t(Jt, { comments: e.comments })
2231
+ const ui = {};
2232
+ function di() {
2233
+ const e = L(), t = e.kebabMenuElements.length > 0;
2234
+ return /* @__PURE__ */ l(J, { children: [
2235
+ /* @__PURE__ */ n(s1, { src: e.thumbnail }),
2236
+ /* @__PURE__ */ n(Qe, {}),
2237
+ /* @__PURE__ */ n(Oe, {}),
2238
+ /* @__PURE__ */ n(De, { captions: e.captions }),
2239
+ /* @__PURE__ */ n(m1, {}),
2240
+ /* @__PURE__ */ n(Eo, {}),
2241
+ /* @__PURE__ */ n(an, { comments: e.comments, isKebabMenuVisible: t })
2182
2242
  ] });
2183
2243
  }
2184
- const li = (e) => /* @__PURE__ */ t("svg", { width: 56, height: 72, viewBox: "0 0 28 36", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("g", { id: "Icons", stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ l("g", { id: "audio", children: [
2244
+ const mi = (e) => /* @__PURE__ */ n("svg", { width: 56, height: 72, viewBox: "0 0 28 36", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ n("g", { id: "Icons", stroke: "none", strokeWidth: 1, fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ l("g", { id: "audio", children: [
2185
2245
  /* @__PURE__ */ l("g", { id: "icon-file-base-2", children: [
2186
- /* @__PURE__ */ t("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z", fill: "#FFFFFF" }),
2187
- /* @__PURE__ */ t("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z M1.993,35 C1.445,35 1,34.552 1,34 L1,2 C1,1.448 1.445,1 1.993,1 L16.5,1 L16.5,9 C16.5,10.379 17.621,11.5 18.999,11.5 L27,11.5 L27,34 C27,34.552 26.554,35 26.006,35 L1.993,35 Z M27,10.5 L18.999,10.5 C18.173,10.5 17.5,9.827 17.5,9 L17.5,1 L17.585,1 L27,10.414 L27,10.5 L27,10.5 Z", id: "icon-file-base", fill: "#FFFFFF" }),
2188
- /* @__PURE__ */ t("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z M1.993,35 C1.445,35 1,34.552 1,34 L1,2 C1,1.448 1.445,1 1.993,1 L16.5,1 L16.5,9 C16.5,10.379 17.621,11.5 18.999,11.5 L27,11.5 L27,34 C27,34.552 26.554,35 26.006,35 L1.993,35 Z M27,10.5 L18.999,10.5 C18.173,10.5 17.5,9.827 17.5,9 L17.5,1 L17.585,1 L27,10.414 L27,10.5 L27,10.5 Z", fill: "#384A58" })
2246
+ /* @__PURE__ */ n("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z", fill: "#FFFFFF" }),
2247
+ /* @__PURE__ */ n("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z M1.993,35 C1.445,35 1,34.552 1,34 L1,2 C1,1.448 1.445,1 1.993,1 L16.5,1 L16.5,9 C16.5,10.379 17.621,11.5 18.999,11.5 L27,11.5 L27,34 C27,34.552 26.554,35 26.006,35 L1.993,35 Z M27,10.5 L18.999,10.5 C18.173,10.5 17.5,9.827 17.5,9 L17.5,1 L17.585,1 L27,10.414 L27,10.5 L27,10.5 Z", id: "icon-file-base", fill: "#FFFFFF" }),
2248
+ /* @__PURE__ */ n("path", { d: "M0,2 L0,34 C0,35.105 0.899,36 1.993,36 L26.006,36 C27.107,36 28,35.11 28,34 L28,10 L18,0 L1.993,0 C0.892,0 0,0.89 0,2 Z M1.993,35 C1.445,35 1,34.552 1,34 L1,2 C1,1.448 1.445,1 1.993,1 L16.5,1 L16.5,9 C16.5,10.379 17.621,11.5 18.999,11.5 L27,11.5 L27,34 C27,34.552 26.554,35 26.006,35 L1.993,35 Z M27,10.5 L18.999,10.5 C18.173,10.5 17.5,9.827 17.5,9 L17.5,1 L17.585,1 L27,10.414 L27,10.5 L27,10.5 Z", fill: "#384A58" })
2189
2249
  ] }),
2190
- /* @__PURE__ */ t("path", { d: "M14.7142857,14.2824 L14.7142857,13 L13.2857143,13.2548 L13.2857143,23.0912 C12.8642857,22.9106 12.3785714,22.8 11.8571429,22.8 C10.2771429,22.8 9,23.7408 9,24.9 C9,26.0592 10.2771429,27 11.8571429,27 C12.3785714,27 12.8642857,26.8894 13.2857143,26.7088 C14.1371429,26.3448 14.7142857,25.6756 14.7142857,24.9 L14.7142857,17.0824 C17.5714286,17.0824 19,20 19,21.4 C19,15.8 16.1428571,14.2824 14.7142857,14.2824", id: "Fill-776", fill: "#384A58" })
2250
+ /* @__PURE__ */ n("path", { d: "M14.7142857,14.2824 L14.7142857,13 L13.2857143,13.2548 L13.2857143,23.0912 C12.8642857,22.9106 12.3785714,22.8 11.8571429,22.8 C10.2771429,22.8 9,23.7408 9,24.9 C9,26.0592 10.2771429,27 11.8571429,27 C12.3785714,27 12.8642857,26.8894 13.2857143,26.7088 C14.1371429,26.3448 14.7142857,25.6756 14.7142857,24.9 L14.7142857,17.0824 C17.5714286,17.0824 19,20 19,21.4 C19,15.8 16.1428571,14.2824 14.7142857,14.2824", id: "Fill-776", fill: "#384A58" })
2191
2251
  ] }) }) });
2192
- function ci() {
2252
+ function hi() {
2193
2253
  const e = L();
2194
2254
  return /* @__PURE__ */ l("div", { className: "audio-layout-wrapper", children: [
2195
- /* @__PURE__ */ t(li, {}),
2196
- /* @__PURE__ */ t(Ge, {}),
2197
- /* @__PURE__ */ t(Re, {}),
2198
- /* @__PURE__ */ t(Ze, { captions: e.captions })
2255
+ /* @__PURE__ */ n(mi, {}),
2256
+ /* @__PURE__ */ n(Qe, {}),
2257
+ /* @__PURE__ */ n(Oe, {}),
2258
+ /* @__PURE__ */ n(De, { captions: e.captions })
2199
2259
  ] });
2200
2260
  }
2201
- function ri(e, n) {
2202
- return e.reduce((o, i) => (Object.keys(n).includes(i.id) || (o[i.id] = !0), o), n);
2261
+ function pi(e, t) {
2262
+ return e.reduce((o, i) => (Object.keys(t).includes(i.id) || (o[i.id] = !0), o), t);
2203
2263
  }
2204
- function ui(e, n, o, i, s) {
2264
+ function _i(e, t, o, i, s) {
2205
2265
  return (a) => {
2206
- const c = a.detail.currentTime, r = !o.paused, d = Math.min(o.duration * 0.05, 2);
2207
- c >= e.time && c < e.time + d && !i[e.id] && (s({ ...i, [e.id]: !0 }), n(e, r));
2266
+ const r = a.detail.currentTime, c = !o.paused, u = Math.min(o.duration * 0.05, 2);
2267
+ r >= e.time && r < e.time + u && !i[e.id] && (s({ ...i, [e.id]: !0 }), t(e, c));
2208
2268
  };
2209
2269
  }
2210
- function di() {
2211
- const e = Z(), { quizMarkers: n, onQuizMarkerShow: o } = L(), [i, s] = x(
2212
- n.reduce((a, c) => (a[c.id] = !1, a), {})
2270
+ function fi() {
2271
+ const e = E(), { quizMarkers: t, onQuizMarkerShow: o } = L(), [i, s] = M(
2272
+ t.reduce((a, r) => (a[r.id] = !1, a), {})
2213
2273
  );
2214
- F(() => {
2274
+ j(() => {
2215
2275
  if (!e)
2216
2276
  return;
2217
- n.length > Object.keys(i).length && s(ri(n, i));
2218
- const a = [], c = (r) => {
2277
+ t.length > Object.keys(i).length && s(pi(t, i));
2278
+ const a = [], r = (c) => {
2219
2279
  var b;
2220
- const d = (b = r == null ? void 0 : r.request) == null ? void 0 : b.detail, p = n.reduce((v, k) => (v[k.id] = k.time <= d, v), {});
2221
- s({ ...i, ...p });
2280
+ const u = (b = c == null ? void 0 : c.request) == null ? void 0 : b.detail, m = t.reduce((w, y) => (w[y.id] = y.time <= u, w), {});
2281
+ s({ ...i, ...m });
2222
2282
  };
2223
- e.addEventListener("seeked", c);
2224
- for (const r of n) {
2225
- const d = ui(
2226
- r,
2283
+ e.addEventListener("seeked", r);
2284
+ for (const c of t) {
2285
+ const u = _i(
2286
+ c,
2227
2287
  o,
2228
2288
  e,
2229
2289
  i,
2230
2290
  s
2231
2291
  );
2232
- e.addEventListener("time-update", d), a.push(d);
2292
+ e.addEventListener("time-update", u), a.push(u);
2233
2293
  }
2234
2294
  return () => {
2235
- for (const r of a)
2236
- e.removeEventListener("time-update", r);
2237
- e.removeEventListener("seeked", c);
2295
+ for (const c of a)
2296
+ e.removeEventListener("time-update", c);
2297
+ e.removeEventListener("seeked", r);
2238
2298
  };
2239
- }, [n, e, i]);
2299
+ }, [t, e, i]);
2240
2300
  }
2241
- function mi() {
2242
- return di(), null;
2301
+ function Ci() {
2302
+ return fi(), null;
2243
2303
  }
2244
- function hi(e) {
2304
+ function bi(e) {
2245
2305
  return Array.isArray(e) && typeof e[0] == "object";
2246
2306
  }
2247
- function pi(e) {
2248
- return hi(e) && e.length === 1 ? e[0].src : e;
2307
+ function gi(e) {
2308
+ return bi(e) && e.length === 1 ? e[0].src : e;
2249
2309
  }
2250
- const te = () => {
2310
+ const oe = () => {
2251
2311
  };
2252
- function ki({
2312
+ function Pi({
2253
2313
  title: e,
2254
- playerRef: n,
2314
+ playerRef: t,
2255
2315
  src: o,
2256
2316
  captions: i = [],
2257
2317
  thumbnail: s,
2258
2318
  hideFullScreen: a = !1,
2259
- comments: c = [],
2260
- locale: r = "en",
2261
- annotations: d = [],
2262
- quizMarkers: p = [],
2319
+ comments: r = [],
2320
+ locale: c = "en",
2321
+ annotations: u = [],
2322
+ quizMarkers: m = [],
2263
2323
  interactive: b = !1,
2264
- onAnnotationClick: v = te,
2265
- onQuizMarkerClick: k = te,
2266
- onQuizMarkerShow: y = te,
2267
- onInteractivePinClick: P = te,
2268
- onCaptionsDelete: h,
2269
- interactiveMenuElements: C = [],
2270
- kebabMenuElements: V = [],
2271
- darkMode: A = !1,
2272
- autoLoadCaptionSrc: U = "",
2273
- forceComments: S = !1,
2274
- disableCaptionSettings: E = !1,
2275
- disableStorage: q = !1,
2276
- startAt: se,
2324
+ onAnnotationClick: w = oe,
2325
+ onQuizMarkerClick: y = oe,
2326
+ onQuizMarkerShow: k = oe,
2327
+ onInteractivePinClick: S = oe,
2328
+ onCaptionsDelete: p,
2329
+ interactiveMenuElements: _ = [],
2330
+ kebabMenuElements: I = [],
2331
+ darkMode: V = !1,
2332
+ autoLoadCaptionSrc: F = "",
2333
+ forceComments: B = !1,
2334
+ disableCaptionSettings: Z = !1,
2335
+ disableStorage: Q = !1,
2336
+ startAt: ae,
2277
2337
  crossOrigin: Xe,
2278
2338
  captionOffsetOverride: Je,
2279
2339
  disableInteractivePinRanges: et = [],
2280
- customOverlay: ge
2340
+ customOverlay: ve
2281
2341
  }) {
2282
- const { contextValue: ae, shortcuts: tt, storage: nt } = ii(
2342
+ const { contextValue: le, shortcuts: tt, storage: nt } = ci(
2283
2343
  a,
2284
- S,
2285
- E,
2286
- se
2287
- ), { i18n: be } = _();
2288
- F(() => {
2289
- be.changeLanguage(r);
2290
- }, [be, r]);
2291
- const [ve, we] = x("none"), ot = f((B) => {
2292
- _t(B) ? we("audio") : Ct(B) && we("video");
2344
+ B,
2345
+ Z,
2346
+ ae
2347
+ ), { i18n: we } = C();
2348
+ j(() => {
2349
+ we.changeLanguage(c);
2350
+ }, [we, c]);
2351
+ const [ye, ke] = M("none"), ot = f((A) => {
2352
+ ft(A) ? ke("audio") : (Ct(A) || bt(A) || gt(A)) && ke("video");
2293
2353
  }, []);
2294
- return /* @__PURE__ */ t(
2295
- Mt,
2354
+ return /* @__PURE__ */ n(
2355
+ St,
2296
2356
  {
2297
2357
  hideFullScreen: a,
2298
- comments: c,
2358
+ comments: r,
2299
2359
  captions: i,
2300
2360
  thumbnail: s,
2301
- annotations: d,
2302
- quizMarkers: p,
2361
+ annotations: u,
2362
+ quizMarkers: m,
2303
2363
  interactive: b,
2304
- onAnnotationClick: v,
2305
- onQuizMarkerClick: k,
2306
- onInteractivePinClick: P,
2307
- interactiveMenuElements: C,
2308
- kebabMenuElements: V,
2309
- darkMode: A,
2310
- forceComments: S,
2311
- disableCaptionSettings: E,
2312
- disableStorage: q,
2364
+ onAnnotationClick: w,
2365
+ onQuizMarkerClick: y,
2366
+ onInteractivePinClick: S,
2367
+ interactiveMenuElements: _,
2368
+ kebabMenuElements: I,
2369
+ darkMode: V,
2370
+ forceComments: B,
2371
+ disableCaptionSettings: Z,
2372
+ disableStorage: Q,
2313
2373
  captionOffsetOverride: Je,
2314
2374
  disableInteractivePinRanges: et,
2315
- onQuizMarkerShow: y,
2316
- onCaptionsDelete: h,
2317
- children: /* @__PURE__ */ t(xt, { contextValue: ae, children: /* @__PURE__ */ l(
2318
- ft,
2375
+ onQuizMarkerShow: k,
2376
+ onCaptionsDelete: p,
2377
+ children: /* @__PURE__ */ n(It, { contextValue: le, children: /* @__PURE__ */ l(
2378
+ vt,
2319
2379
  {
2320
- "data-version": "0.4.3",
2380
+ "data-version": "0.4.6",
2321
2381
  crossOrigin: Xe,
2322
- storage: q ? null : nt,
2382
+ storage: Q ? null : nt,
2323
2383
  title: e,
2324
- src: pi(o),
2384
+ src: gi(o),
2325
2385
  keyShortcuts: tt,
2326
2386
  playsInline: !0,
2327
- keyDisabled: ae.state.interactionsDisabled || ae.state.globalKeysDisabled,
2328
- onTextTracksChange: (B) => {
2329
- const ye = B == null ? void 0 : B.findIndex(
2330
- (it) => it.src === U
2387
+ keyDisabled: le.state.interactionsDisabled || le.state.globalKeysDisabled,
2388
+ onTextTracksChange: (A) => {
2389
+ const Le = A == null ? void 0 : A.findIndex(
2390
+ (it) => it.src === F
2331
2391
  );
2332
- ye > -1 && (B[ye].mode = "showing");
2392
+ Le > -1 && (A[Le].mode = "showing");
2333
2393
  },
2334
2394
  onProviderSetup: ot,
2335
2395
  children: [
2336
- /* @__PURE__ */ l(gt, { className: si.mediaProvider, children: [
2337
- ve === "audio" && /* @__PURE__ */ t(ci, {}),
2338
- ve === "video" && /* @__PURE__ */ t(ai, {})
2396
+ /* @__PURE__ */ l(wt, { className: ui.mediaProvider, children: [
2397
+ ye === "audio" && /* @__PURE__ */ n(hi, {}),
2398
+ ye === "video" && /* @__PURE__ */ n(di, {})
2339
2399
  ] }),
2340
- /* @__PURE__ */ t(qo, {}),
2341
- ge && ge(),
2342
- /* @__PURE__ */ t(
2343
- ln,
2400
+ /* @__PURE__ */ n(Jo, {}),
2401
+ ve && ve(),
2402
+ /* @__PURE__ */ n(
2403
+ hn,
2344
2404
  {
2345
- darkMode: A,
2346
- playerRef: n,
2347
- showCaptionsButton: !E
2405
+ darkMode: V,
2406
+ playerRef: t,
2407
+ showCaptionsButton: !Z
2348
2408
  }
2349
2409
  ),
2350
- /* @__PURE__ */ t(Ht, { annotations: d }),
2351
- !!p.length && /* @__PURE__ */ t(mi, {})
2410
+ /* @__PURE__ */ n(Vt, { annotations: u }),
2411
+ !!m.length && /* @__PURE__ */ n(Ci, {})
2352
2412
  ]
2353
2413
  }
2354
2414
  ) })
@@ -2356,10 +2416,10 @@ function ki({
2356
2416
  );
2357
2417
  }
2358
2418
  export {
2359
- Zt as CAPTION_FONT_SIZE_MULTIPLIERS,
2360
- zt as COMMENT_DURATION,
2361
- D as PLAYBACK_RATES,
2362
- ki as StudioPlayer,
2363
- Mi as useMediaState,
2364
- Ni as useMediaStore
2419
+ $t as CAPTION_FONT_SIZE_MULTIPLIERS,
2420
+ Ut as COMMENT_DURATION,
2421
+ $ as PLAYBACK_RATES,
2422
+ Pi as StudioPlayer,
2423
+ Hi as useMediaState,
2424
+ Ti as useMediaStore
2365
2425
  };