@halibegic/react-video-player 0.0.16 → 0.0.17

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,9 +1,11 @@
1
- import Re, { useLayoutEffect as wo, useEffect as Y, useRef as Z, useState as q, createContext as Nn, useContext as Zt, useDebugValue as mn, createElement as bo, forwardRef as yt, useCallback as N } from "react";
2
- import { create as Hn, useStore as $n } from "zustand";
3
- import * as vt from "@radix-ui/react-slider";
4
- import se from "hls.js";
5
- import * as Qe from "@radix-ui/react-dropdown-menu";
6
- var nt = { exports: {} }, Ge = {};
1
+ import st, { useLayoutEffect as bn, useEffect as M, useRef as $, useState as H, createContext as at, useContext as lt, forwardRef as ge, useCallback as I } from "react";
2
+ import { create as ct, useStore as ut } from "zustand";
3
+ import C, { css as Ge, keyframes as En } from "styled-components";
4
+ import Tn from "mitt";
5
+ import * as ye from "@radix-ui/react-slider";
6
+ import z from "hls.js";
7
+ import * as ce from "@radix-ui/react-dropdown-menu";
8
+ var pe = { exports: {} }, ae = {};
7
9
  /**
8
10
  * @license React
9
11
  * react-jsx-runtime.production.min.js
@@ -13,21 +15,21 @@ var nt = { exports: {} }, Ge = {};
13
15
  * This source code is licensed under the MIT license found in the
14
16
  * LICENSE file in the root directory of this source tree.
15
17
  */
16
- var gn;
17
- function xo() {
18
- if (gn) return Ge;
19
- gn = 1;
20
- var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function u(i, l, d) {
22
- var h, m = {}, x = null, S = null;
23
- d !== void 0 && (x = "" + d), l.key !== void 0 && (x = "" + l.key), l.ref !== void 0 && (S = l.ref);
24
- for (h in l) r.call(l, h) && !a.hasOwnProperty(h) && (m[h] = l[h]);
25
- if (i && i.defaultProps) for (h in l = i.defaultProps, l) m[h] === void 0 && (m[h] = l[h]);
26
- return { $$typeof: t, type: i, key: x, ref: S, props: m, _owner: o.current };
18
+ var Qe;
19
+ function Cn() {
20
+ if (Qe) return ae;
21
+ Qe = 1;
22
+ var e = st, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
23
+ function h(i, u, f) {
24
+ var w, x = {}, L = null, j = null;
25
+ f !== void 0 && (L = "" + f), u.key !== void 0 && (L = "" + u.key), u.ref !== void 0 && (j = u.ref);
26
+ for (w in u) s.call(u, w) && !d.hasOwnProperty(w) && (x[w] = u[w]);
27
+ if (i && i.defaultProps) for (w in u = i.defaultProps, u) x[w] === void 0 && (x[w] = u[w]);
28
+ return { $$typeof: t, type: i, key: L, ref: j, props: x, _owner: a.current };
27
29
  }
28
- return Ge.Fragment = n, Ge.jsx = u, Ge.jsxs = u, Ge;
30
+ return ae.Fragment = r, ae.jsx = h, ae.jsxs = h, ae;
29
31
  }
30
- var Ke = {};
32
+ var le = {};
31
33
  /**
32
34
  * @license React
33
35
  * react-jsx-runtime.development.js
@@ -37,91 +39,91 @@ var Ke = {};
37
39
  * This source code is licensed under the MIT license found in the
38
40
  * LICENSE file in the root directory of this source tree.
39
41
  */
40
- var yn;
41
- function So() {
42
- return yn || (yn = 1, process.env.NODE_ENV !== "production" && (function() {
43
- var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), C = Symbol.iterator, j = "@@iterator";
44
- function V(s) {
45
- if (s === null || typeof s != "object")
42
+ var et;
43
+ function Rn() {
44
+ return et || (et = 1, process.env.NODE_ENV !== "production" && (function() {
45
+ var e = st, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), i = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), V = Symbol.iterator, U = "@@iterator";
46
+ function F(n) {
47
+ if (n === null || typeof n != "object")
46
48
  return null;
47
- var f = C && s[C] || s[j];
48
- return typeof f == "function" ? f : null;
49
+ var l = V && n[V] || n[U];
50
+ return typeof l == "function" ? l : null;
49
51
  }
50
- var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function w(s) {
52
+ var g = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
53
+ function E(n) {
52
54
  {
53
- for (var f = arguments.length, g = new Array(f > 1 ? f - 1 : 0), E = 1; E < f; E++)
54
- g[E - 1] = arguments[E];
55
- v("error", s, g);
55
+ for (var l = arguments.length, m = new Array(l > 1 ? l - 1 : 0), p = 1; p < l; p++)
56
+ m[p - 1] = arguments[p];
57
+ T("error", n, m);
56
58
  }
57
59
  }
58
- function v(s, f, g) {
60
+ function T(n, l, m) {
59
61
  {
60
- var E = b.ReactDebugCurrentFrame, A = E.getStackAddendum();
61
- A !== "" && (f += "%s", g = g.concat([A]));
62
- var F = g.map(function(L) {
63
- return String(L);
62
+ var p = g.ReactDebugCurrentFrame, S = p.getStackAddendum();
63
+ S !== "" && (l += "%s", m = m.concat([S]));
64
+ var P = m.map(function(b) {
65
+ return String(b);
64
66
  });
65
- F.unshift("Warning: " + f), Function.prototype.apply.call(console[s], console, F);
67
+ P.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, P);
66
68
  }
67
69
  }
68
- var y = !1, _ = !1, T = !1, k = !1, U = !1, J;
69
- J = Symbol.for("react.module.reference");
70
- function D(s) {
71
- return !!(typeof s == "string" || typeof s == "function" || s === r || s === a || U || s === o || s === d || s === h || k || s === S || y || _ || T || typeof s == "object" && s !== null && (s.$$typeof === x || s.$$typeof === m || s.$$typeof === u || s.$$typeof === i || s.$$typeof === l || // This needs to include all possible module reference object
70
+ var B = !1, v = !1, Y = !1, X = !1, K = !1, Q;
71
+ Q = Symbol.for("react.module.reference");
72
+ function R(n) {
73
+ return !!(typeof n == "string" || typeof n == "function" || n === s || n === d || K || n === a || n === f || n === w || X || n === j || B || v || Y || typeof n == "object" && n !== null && (n.$$typeof === L || n.$$typeof === x || n.$$typeof === h || n.$$typeof === i || n.$$typeof === u || // This needs to include all possible module reference object
72
74
  // types supported by any Flight configuration anywhere since
73
75
  // we don't know which Flight build this will end up being used
74
76
  // with.
75
- s.$$typeof === J || s.getModuleId !== void 0));
77
+ n.$$typeof === Q || n.getModuleId !== void 0));
76
78
  }
77
- function _e(s, f, g) {
78
- var E = s.displayName;
79
- if (E)
80
- return E;
81
- var A = f.displayName || f.name || "";
82
- return A !== "" ? g + "(" + A + ")" : g;
79
+ function ue(n, l, m) {
80
+ var p = n.displayName;
81
+ if (p)
82
+ return p;
83
+ var S = l.displayName || l.name || "";
84
+ return S !== "" ? m + "(" + S + ")" : m;
83
85
  }
84
- function pe(s) {
85
- return s.displayName || "Context";
86
+ function ee(n) {
87
+ return n.displayName || "Context";
86
88
  }
87
- function G(s) {
88
- if (s == null)
89
+ function N(n) {
90
+ if (n == null)
89
91
  return null;
90
- if (typeof s.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
91
- return s.displayName || s.name || null;
92
- if (typeof s == "string")
93
- return s;
94
- switch (s) {
95
- case r:
92
+ if (typeof n.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
93
+ return n.displayName || n.name || null;
94
+ if (typeof n == "string")
95
+ return n;
96
+ switch (n) {
97
+ case s:
96
98
  return "Fragment";
97
- case n:
99
+ case r:
98
100
  return "Portal";
99
- case a:
101
+ case d:
100
102
  return "Profiler";
101
- case o:
103
+ case a:
102
104
  return "StrictMode";
103
- case d:
105
+ case f:
104
106
  return "Suspense";
105
- case h:
107
+ case w:
106
108
  return "SuspenseList";
107
109
  }
108
- if (typeof s == "object")
109
- switch (s.$$typeof) {
110
+ if (typeof n == "object")
111
+ switch (n.$$typeof) {
110
112
  case i:
111
- var f = s;
112
- return pe(f) + ".Consumer";
113
+ var l = n;
114
+ return ee(l) + ".Consumer";
115
+ case h:
116
+ var m = n;
117
+ return ee(m._context) + ".Provider";
113
118
  case u:
114
- var g = s;
115
- return pe(g._context) + ".Provider";
116
- case l:
117
- return _e(s, s.render, "ForwardRef");
118
- case m:
119
- var E = s.displayName || null;
120
- return E !== null ? E : G(s.type) || "Memo";
121
- case x: {
122
- var A = s, F = A._payload, L = A._init;
119
+ return ue(n, n.render, "ForwardRef");
120
+ case x:
121
+ var p = n.displayName || null;
122
+ return p !== null ? p : N(n.type) || "Memo";
123
+ case L: {
124
+ var S = n, P = S._payload, b = S._init;
123
125
  try {
124
- return G(L(F));
126
+ return N(b(P));
125
127
  } catch {
126
128
  return null;
127
129
  }
@@ -129,1744 +131,588 @@ function So() {
129
131
  }
130
132
  return null;
131
133
  }
132
- var ne = Object.assign, de = 0, Se, Q, Ye, re, ge, ye, K;
133
- function Ie() {
134
+ var W = Object.assign, J = 0, ie, Z, Fe, De, _e, Me, Ie;
135
+ function Ve() {
134
136
  }
135
- Ie.__reactDisabledLog = !0;
136
- function qe() {
137
+ Ve.__reactDisabledLog = !0;
138
+ function Zt() {
137
139
  {
138
- if (de === 0) {
139
- Se = console.log, Q = console.info, Ye = console.warn, re = console.error, ge = console.group, ye = console.groupCollapsed, K = console.groupEnd;
140
- var s = {
140
+ if (J === 0) {
141
+ ie = console.log, Z = console.info, Fe = console.warn, De = console.error, _e = console.group, Me = console.groupCollapsed, Ie = console.groupEnd;
142
+ var n = {
141
143
  configurable: !0,
142
144
  enumerable: !0,
143
- value: Ie,
145
+ value: Ve,
144
146
  writable: !0
145
147
  };
146
148
  Object.defineProperties(console, {
147
- info: s,
148
- log: s,
149
- warn: s,
150
- error: s,
151
- group: s,
152
- groupCollapsed: s,
153
- groupEnd: s
149
+ info: n,
150
+ log: n,
151
+ warn: n,
152
+ error: n,
153
+ group: n,
154
+ groupCollapsed: n,
155
+ groupEnd: n
154
156
  });
155
157
  }
156
- de++;
158
+ J++;
157
159
  }
158
160
  }
159
- function De() {
161
+ function Yt() {
160
162
  {
161
- if (de--, de === 0) {
162
- var s = {
163
+ if (J--, J === 0) {
164
+ var n = {
163
165
  configurable: !0,
164
166
  enumerable: !0,
165
167
  writable: !0
166
168
  };
167
169
  Object.defineProperties(console, {
168
- log: ne({}, s, {
169
- value: Se
170
+ log: W({}, n, {
171
+ value: ie
170
172
  }),
171
- info: ne({}, s, {
172
- value: Q
173
+ info: W({}, n, {
174
+ value: Z
173
175
  }),
174
- warn: ne({}, s, {
175
- value: Ye
176
+ warn: W({}, n, {
177
+ value: Fe
176
178
  }),
177
- error: ne({}, s, {
178
- value: re
179
+ error: W({}, n, {
180
+ value: De
179
181
  }),
180
- group: ne({}, s, {
181
- value: ge
182
+ group: W({}, n, {
183
+ value: _e
182
184
  }),
183
- groupCollapsed: ne({}, s, {
184
- value: ye
185
+ groupCollapsed: W({}, n, {
186
+ value: Me
185
187
  }),
186
- groupEnd: ne({}, s, {
187
- value: K
188
+ groupEnd: W({}, n, {
189
+ value: Ie
188
190
  })
189
191
  });
190
192
  }
191
- de < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
+ J < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
194
  }
193
195
  }
194
- var he = b.ReactCurrentDispatcher, ve;
195
- function ae(s, f, g) {
196
+ var we = g.ReactCurrentDispatcher, be;
197
+ function de(n, l, m) {
196
198
  {
197
- if (ve === void 0)
199
+ if (be === void 0)
198
200
  try {
199
201
  throw Error();
200
- } catch (A) {
201
- var E = A.stack.trim().match(/\n( *(at )?)/);
202
- ve = E && E[1] || "";
202
+ } catch (S) {
203
+ var p = S.stack.trim().match(/\n( *(at )?)/);
204
+ be = p && p[1] || "";
203
205
  }
204
206
  return `
205
- ` + ve + s;
207
+ ` + be + n;
206
208
  }
207
209
  }
208
- var ce = !1, we;
210
+ var Ee = !1, fe;
209
211
  {
210
- var Ae = typeof WeakMap == "function" ? WeakMap : Map;
211
- we = new Ae();
212
+ var Kt = typeof WeakMap == "function" ? WeakMap : Map;
213
+ fe = new Kt();
212
214
  }
213
- function le(s, f) {
214
- if (!s || ce)
215
+ function He(n, l) {
216
+ if (!n || Ee)
215
217
  return "";
216
218
  {
217
- var g = we.get(s);
218
- if (g !== void 0)
219
- return g;
219
+ var m = fe.get(n);
220
+ if (m !== void 0)
221
+ return m;
220
222
  }
221
- var E;
222
- ce = !0;
223
- var A = Error.prepareStackTrace;
223
+ var p;
224
+ Ee = !0;
225
+ var S = Error.prepareStackTrace;
224
226
  Error.prepareStackTrace = void 0;
225
- var F;
226
- F = he.current, he.current = null, qe();
227
+ var P;
228
+ P = we.current, we.current = null, Zt();
227
229
  try {
228
- if (f) {
229
- var L = function() {
230
+ if (l) {
231
+ var b = function() {
230
232
  throw Error();
231
233
  };
232
- if (Object.defineProperty(L.prototype, "props", {
234
+ if (Object.defineProperty(b.prototype, "props", {
233
235
  set: function() {
234
236
  throw Error();
235
237
  }
236
238
  }), typeof Reflect == "object" && Reflect.construct) {
237
239
  try {
238
- Reflect.construct(L, []);
239
- } catch (ee) {
240
- E = ee;
240
+ Reflect.construct(b, []);
241
+ } catch (A) {
242
+ p = A;
241
243
  }
242
- Reflect.construct(s, [], L);
244
+ Reflect.construct(n, [], b);
243
245
  } else {
244
246
  try {
245
- L.call();
246
- } catch (ee) {
247
- E = ee;
247
+ b.call();
248
+ } catch (A) {
249
+ p = A;
248
250
  }
249
- s.call(L.prototype);
251
+ n.call(b.prototype);
250
252
  }
251
253
  } else {
252
254
  try {
253
255
  throw Error();
254
- } catch (ee) {
255
- E = ee;
256
+ } catch (A) {
257
+ p = A;
256
258
  }
257
- s();
259
+ n();
258
260
  }
259
- } catch (ee) {
260
- if (ee && E && typeof ee.stack == "string") {
261
- for (var R = ee.stack.split(`
262
- `), X = E.stack.split(`
263
- `), H = R.length - 1, $ = X.length - 1; H >= 1 && $ >= 0 && R[H] !== X[$]; )
264
- $--;
265
- for (; H >= 1 && $ >= 0; H--, $--)
266
- if (R[H] !== X[$]) {
267
- if (H !== 1 || $ !== 1)
261
+ } catch (A) {
262
+ if (A && p && typeof A.stack == "string") {
263
+ for (var y = A.stack.split(`
264
+ `), O = p.stack.split(`
265
+ `), k = y.length - 1, D = O.length - 1; k >= 1 && D >= 0 && y[k] !== O[D]; )
266
+ D--;
267
+ for (; k >= 1 && D >= 0; k--, D--)
268
+ if (y[k] !== O[D]) {
269
+ if (k !== 1 || D !== 1)
268
270
  do
269
- if (H--, $--, $ < 0 || R[H] !== X[$]) {
270
- var oe = `
271
- ` + R[H].replace(" at new ", " at ");
272
- return s.displayName && oe.includes("<anonymous>") && (oe = oe.replace("<anonymous>", s.displayName)), typeof s == "function" && we.set(s, oe), oe;
271
+ if (k--, D--, D < 0 || y[k] !== O[D]) {
272
+ var q = `
273
+ ` + y[k].replace(" at new ", " at ");
274
+ return n.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", n.displayName)), typeof n == "function" && fe.set(n, q), q;
273
275
  }
274
- while (H >= 1 && $ >= 0);
276
+ while (k >= 1 && D >= 0);
275
277
  break;
276
278
  }
277
279
  }
278
280
  } finally {
279
- ce = !1, he.current = F, De(), Error.prepareStackTrace = A;
281
+ Ee = !1, we.current = P, Yt(), Error.prepareStackTrace = S;
280
282
  }
281
- var Fe = s ? s.displayName || s.name : "", ke = Fe ? ae(Fe) : "";
282
- return typeof s == "function" && we.set(s, ke), ke;
283
+ var re = n ? n.displayName || n.name : "", te = re ? de(re) : "";
284
+ return typeof n == "function" && fe.set(n, te), te;
283
285
  }
284
- function Zr(s, f, g) {
285
- return le(s, !1);
286
+ function Xt(n, l, m) {
287
+ return He(n, !1);
286
288
  }
287
- function Gr(s) {
288
- var f = s.prototype;
289
- return !!(f && f.isReactComponent);
289
+ function Jt(n) {
290
+ var l = n.prototype;
291
+ return !!(l && l.isReactComponent);
290
292
  }
291
- function et(s, f, g) {
292
- if (s == null)
293
+ function me(n, l, m) {
294
+ if (n == null)
293
295
  return "";
294
- if (typeof s == "function")
295
- return le(s, Gr(s));
296
- if (typeof s == "string")
297
- return ae(s);
298
- switch (s) {
299
- case d:
300
- return ae("Suspense");
301
- case h:
302
- return ae("SuspenseList");
296
+ if (typeof n == "function")
297
+ return He(n, Jt(n));
298
+ if (typeof n == "string")
299
+ return de(n);
300
+ switch (n) {
301
+ case f:
302
+ return de("Suspense");
303
+ case w:
304
+ return de("SuspenseList");
303
305
  }
304
- if (typeof s == "object")
305
- switch (s.$$typeof) {
306
- case l:
307
- return Zr(s.render);
308
- case m:
309
- return et(s.type, f, g);
310
- case x: {
311
- var E = s, A = E._payload, F = E._init;
306
+ if (typeof n == "object")
307
+ switch (n.$$typeof) {
308
+ case u:
309
+ return Xt(n.render);
310
+ case x:
311
+ return me(n.type, l, m);
312
+ case L: {
313
+ var p = n, S = p._payload, P = p._init;
312
314
  try {
313
- return et(F(A), f, g);
315
+ return me(P(S), l, m);
314
316
  } catch {
315
317
  }
316
318
  }
317
319
  }
318
320
  return "";
319
321
  }
320
- var Ze = Object.prototype.hasOwnProperty, en = {}, tn = b.ReactDebugCurrentFrame;
321
- function tt(s) {
322
- if (s) {
323
- var f = s._owner, g = et(s.type, s._source, f ? f.type : null);
324
- tn.setExtraStackFrame(g);
322
+ var se = Object.prototype.hasOwnProperty, Oe = {}, Ae = g.ReactDebugCurrentFrame;
323
+ function he(n) {
324
+ if (n) {
325
+ var l = n._owner, m = me(n.type, n._source, l ? l.type : null);
326
+ Ae.setExtraStackFrame(m);
325
327
  } else
326
- tn.setExtraStackFrame(null);
328
+ Ae.setExtraStackFrame(null);
327
329
  }
328
- function Kr(s, f, g, E, A) {
330
+ function Gt(n, l, m, p, S) {
329
331
  {
330
- var F = Function.call.bind(Ze);
331
- for (var L in s)
332
- if (F(s, L)) {
333
- var R = void 0;
332
+ var P = Function.call.bind(se);
333
+ for (var b in n)
334
+ if (P(n, b)) {
335
+ var y = void 0;
334
336
  try {
335
- if (typeof s[L] != "function") {
336
- var X = Error((E || "React class") + ": " + g + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
- throw X.name = "Invariant Violation", X;
337
+ if (typeof n[b] != "function") {
338
+ var O = Error((p || "React class") + ": " + m + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
339
+ throw O.name = "Invariant Violation", O;
338
340
  }
339
- R = s[L](f, L, E, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (H) {
341
- R = H;
341
+ y = n[b](l, b, p, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
342
+ } catch (k) {
343
+ y = k;
342
344
  }
343
- R && !(R instanceof Error) && (tt(A), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", g, L, typeof R), tt(null)), R instanceof Error && !(R.message in en) && (en[R.message] = !0, tt(A), w("Failed %s type: %s", g, R.message), tt(null));
345
+ y && !(y instanceof Error) && (he(S), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", m, b, typeof y), he(null)), y instanceof Error && !(y.message in Oe) && (Oe[y.message] = !0, he(S), E("Failed %s type: %s", m, y.message), he(null));
344
346
  }
345
347
  }
346
348
  }
347
- var Xr = Array.isArray;
348
- function Ct(s) {
349
- return Xr(s);
349
+ var Qt = Array.isArray;
350
+ function Te(n) {
351
+ return Qt(n);
350
352
  }
351
- function Jr(s) {
353
+ function en(n) {
352
354
  {
353
- var f = typeof Symbol == "function" && Symbol.toStringTag, g = f && s[Symbol.toStringTag] || s.constructor.name || "Object";
354
- return g;
355
+ var l = typeof Symbol == "function" && Symbol.toStringTag, m = l && n[Symbol.toStringTag] || n.constructor.name || "Object";
356
+ return m;
355
357
  }
356
358
  }
357
- function Qr(s) {
359
+ function tn(n) {
358
360
  try {
359
- return nn(s), !1;
361
+ return $e(n), !1;
360
362
  } catch {
361
363
  return !0;
362
364
  }
363
365
  }
364
- function nn(s) {
365
- return "" + s;
366
+ function $e(n) {
367
+ return "" + n;
366
368
  }
367
- function rn(s) {
368
- if (Qr(s))
369
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Jr(s)), nn(s);
369
+ function Ue(n) {
370
+ if (tn(n))
371
+ return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", en(n)), $e(n);
370
372
  }
371
- var on = b.ReactCurrentOwner, eo = {
373
+ var Be = g.ReactCurrentOwner, nn = {
372
374
  key: !0,
373
375
  ref: !0,
374
376
  __self: !0,
375
377
  __source: !0
376
- }, sn, an;
377
- function to(s) {
378
- if (Ze.call(s, "ref")) {
379
- var f = Object.getOwnPropertyDescriptor(s, "ref").get;
380
- if (f && f.isReactWarning)
378
+ }, Ne, qe;
379
+ function rn(n) {
380
+ if (se.call(n, "ref")) {
381
+ var l = Object.getOwnPropertyDescriptor(n, "ref").get;
382
+ if (l && l.isReactWarning)
381
383
  return !1;
382
384
  }
383
- return s.ref !== void 0;
385
+ return n.ref !== void 0;
384
386
  }
385
- function no(s) {
386
- if (Ze.call(s, "key")) {
387
- var f = Object.getOwnPropertyDescriptor(s, "key").get;
388
- if (f && f.isReactWarning)
387
+ function on(n) {
388
+ if (se.call(n, "key")) {
389
+ var l = Object.getOwnPropertyDescriptor(n, "key").get;
390
+ if (l && l.isReactWarning)
389
391
  return !1;
390
392
  }
391
- return s.key !== void 0;
393
+ return n.key !== void 0;
392
394
  }
393
- function ro(s, f) {
394
- typeof s.ref == "string" && on.current;
395
+ function sn(n, l) {
396
+ typeof n.ref == "string" && Be.current;
395
397
  }
396
- function oo(s, f) {
398
+ function an(n, l) {
397
399
  {
398
- var g = function() {
399
- sn || (sn = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
400
+ var m = function() {
401
+ Ne || (Ne = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
400
402
  };
401
- g.isReactWarning = !0, Object.defineProperty(s, "key", {
402
- get: g,
403
+ m.isReactWarning = !0, Object.defineProperty(n, "key", {
404
+ get: m,
403
405
  configurable: !0
404
406
  });
405
407
  }
406
408
  }
407
- function so(s, f) {
409
+ function ln(n, l) {
408
410
  {
409
- var g = function() {
410
- an || (an = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
411
+ var m = function() {
412
+ qe || (qe = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
411
413
  };
412
- g.isReactWarning = !0, Object.defineProperty(s, "ref", {
413
- get: g,
414
+ m.isReactWarning = !0, Object.defineProperty(n, "ref", {
415
+ get: m,
414
416
  configurable: !0
415
417
  });
416
418
  }
417
419
  }
418
- var io = function(s, f, g, E, A, F, L) {
419
- var R = {
420
+ var cn = function(n, l, m, p, S, P, b) {
421
+ var y = {
420
422
  // This tag allows us to uniquely identify this as a React Element
421
423
  $$typeof: t,
422
424
  // Built-in properties that belong on the element
423
- type: s,
424
- key: f,
425
- ref: g,
426
- props: L,
425
+ type: n,
426
+ key: l,
427
+ ref: m,
428
+ props: b,
427
429
  // Record the component responsible for creating this element.
428
- _owner: F
430
+ _owner: P
429
431
  };
430
- return R._store = {}, Object.defineProperty(R._store, "validated", {
432
+ return y._store = {}, Object.defineProperty(y._store, "validated", {
431
433
  configurable: !1,
432
434
  enumerable: !1,
433
435
  writable: !0,
434
436
  value: !1
435
- }), Object.defineProperty(R, "_self", {
437
+ }), Object.defineProperty(y, "_self", {
436
438
  configurable: !1,
437
439
  enumerable: !1,
438
440
  writable: !1,
439
- value: E
440
- }), Object.defineProperty(R, "_source", {
441
+ value: p
442
+ }), Object.defineProperty(y, "_source", {
441
443
  configurable: !1,
442
444
  enumerable: !1,
443
445
  writable: !1,
444
- value: A
445
- }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
446
+ value: S
447
+ }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
446
448
  };
447
- function ao(s, f, g, E, A) {
449
+ function un(n, l, m, p, S) {
448
450
  {
449
- var F, L = {}, R = null, X = null;
450
- g !== void 0 && (rn(g), R = "" + g), no(f) && (rn(f.key), R = "" + f.key), to(f) && (X = f.ref, ro(f, A));
451
- for (F in f)
452
- Ze.call(f, F) && !eo.hasOwnProperty(F) && (L[F] = f[F]);
453
- if (s && s.defaultProps) {
454
- var H = s.defaultProps;
455
- for (F in H)
456
- L[F] === void 0 && (L[F] = H[F]);
451
+ var P, b = {}, y = null, O = null;
452
+ m !== void 0 && (Ue(m), y = "" + m), on(l) && (Ue(l.key), y = "" + l.key), rn(l) && (O = l.ref, sn(l, S));
453
+ for (P in l)
454
+ se.call(l, P) && !nn.hasOwnProperty(P) && (b[P] = l[P]);
455
+ if (n && n.defaultProps) {
456
+ var k = n.defaultProps;
457
+ for (P in k)
458
+ b[P] === void 0 && (b[P] = k[P]);
457
459
  }
458
- if (R || X) {
459
- var $ = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
460
- R && oo(L, $), X && so(L, $);
460
+ if (y || O) {
461
+ var D = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
462
+ y && an(b, D), O && ln(b, D);
461
463
  }
462
- return io(s, R, X, A, E, on.current, L);
464
+ return cn(n, y, O, S, p, Be.current, b);
463
465
  }
464
466
  }
465
- var Rt = b.ReactCurrentOwner, cn = b.ReactDebugCurrentFrame;
466
- function Oe(s) {
467
- if (s) {
468
- var f = s._owner, g = et(s.type, s._source, f ? f.type : null);
469
- cn.setExtraStackFrame(g);
467
+ var Ce = g.ReactCurrentOwner, ze = g.ReactDebugCurrentFrame;
468
+ function ne(n) {
469
+ if (n) {
470
+ var l = n._owner, m = me(n.type, n._source, l ? l.type : null);
471
+ ze.setExtraStackFrame(m);
470
472
  } else
471
- cn.setExtraStackFrame(null);
473
+ ze.setExtraStackFrame(null);
472
474
  }
473
- var jt;
474
- jt = !1;
475
- function Lt(s) {
476
- return typeof s == "object" && s !== null && s.$$typeof === t;
475
+ var Re;
476
+ Re = !1;
477
+ function Se(n) {
478
+ return typeof n == "object" && n !== null && n.$$typeof === t;
477
479
  }
478
- function ln() {
480
+ function We() {
479
481
  {
480
- if (Rt.current) {
481
- var s = G(Rt.current.type);
482
- if (s)
482
+ if (Ce.current) {
483
+ var n = N(Ce.current.type);
484
+ if (n)
483
485
  return `
484
486
 
485
- Check the render method of \`` + s + "`.";
487
+ Check the render method of \`` + n + "`.";
486
488
  }
487
489
  return "";
488
490
  }
489
491
  }
490
- function co(s) {
492
+ function dn(n) {
491
493
  return "";
492
494
  }
493
- var un = {};
494
- function lo(s) {
495
+ var Ze = {};
496
+ function fn(n) {
495
497
  {
496
- var f = ln();
497
- if (!f) {
498
- var g = typeof s == "string" ? s : s.displayName || s.name;
499
- g && (f = `
498
+ var l = We();
499
+ if (!l) {
500
+ var m = typeof n == "string" ? n : n.displayName || n.name;
501
+ m && (l = `
500
502
 
501
- Check the top-level render call using <` + g + ">.");
503
+ Check the top-level render call using <` + m + ">.");
502
504
  }
503
- return f;
505
+ return l;
504
506
  }
505
507
  }
506
- function dn(s, f) {
508
+ function Ye(n, l) {
507
509
  {
508
- if (!s._store || s._store.validated || s.key != null)
510
+ if (!n._store || n._store.validated || n.key != null)
509
511
  return;
510
- s._store.validated = !0;
511
- var g = lo(f);
512
- if (un[g])
512
+ n._store.validated = !0;
513
+ var m = fn(l);
514
+ if (Ze[m])
513
515
  return;
514
- un[g] = !0;
515
- var E = "";
516
- s && s._owner && s._owner !== Rt.current && (E = " It was passed a child from " + G(s._owner.type) + "."), Oe(s), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, E), Oe(null);
516
+ Ze[m] = !0;
517
+ var p = "";
518
+ n && n._owner && n._owner !== Ce.current && (p = " It was passed a child from " + N(n._owner.type) + "."), ne(n), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, p), ne(null);
517
519
  }
518
520
  }
519
- function fn(s, f) {
521
+ function Ke(n, l) {
520
522
  {
521
- if (typeof s != "object")
523
+ if (typeof n != "object")
522
524
  return;
523
- if (Ct(s))
524
- for (var g = 0; g < s.length; g++) {
525
- var E = s[g];
526
- Lt(E) && dn(E, f);
525
+ if (Te(n))
526
+ for (var m = 0; m < n.length; m++) {
527
+ var p = n[m];
528
+ Se(p) && Ye(p, l);
527
529
  }
528
- else if (Lt(s))
529
- s._store && (s._store.validated = !0);
530
- else if (s) {
531
- var A = V(s);
532
- if (typeof A == "function" && A !== s.entries)
533
- for (var F = A.call(s), L; !(L = F.next()).done; )
534
- Lt(L.value) && dn(L.value, f);
530
+ else if (Se(n))
531
+ n._store && (n._store.validated = !0);
532
+ else if (n) {
533
+ var S = F(n);
534
+ if (typeof S == "function" && S !== n.entries)
535
+ for (var P = S.call(n), b; !(b = P.next()).done; )
536
+ Se(b.value) && Ye(b.value, l);
535
537
  }
536
538
  }
537
539
  }
538
- function uo(s) {
540
+ function mn(n) {
539
541
  {
540
- var f = s.type;
541
- if (f == null || typeof f == "string")
542
+ var l = n.type;
543
+ if (l == null || typeof l == "string")
542
544
  return;
543
- var g;
544
- if (typeof f == "function")
545
- g = f.propTypes;
546
- else if (typeof f == "object" && (f.$$typeof === l || // Note: Memo only checks outer props here.
545
+ var m;
546
+ if (typeof l == "function")
547
+ m = l.propTypes;
548
+ else if (typeof l == "object" && (l.$$typeof === u || // Note: Memo only checks outer props here.
547
549
  // Inner props are checked in the reconciler.
548
- f.$$typeof === m))
549
- g = f.propTypes;
550
+ l.$$typeof === x))
551
+ m = l.propTypes;
550
552
  else
551
553
  return;
552
- if (g) {
553
- var E = G(f);
554
- Kr(g, s.props, "prop", E, s);
555
- } else if (f.PropTypes !== void 0 && !jt) {
556
- jt = !0;
557
- var A = G(f);
558
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
554
+ if (m) {
555
+ var p = N(l);
556
+ Gt(m, n.props, "prop", p, n);
557
+ } else if (l.PropTypes !== void 0 && !Re) {
558
+ Re = !0;
559
+ var S = N(l);
560
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
559
561
  }
560
- typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
562
+ typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
563
  }
562
564
  }
563
- function fo(s) {
565
+ function hn(n) {
564
566
  {
565
- for (var f = Object.keys(s.props), g = 0; g < f.length; g++) {
566
- var E = f[g];
567
- if (E !== "children" && E !== "key") {
568
- Oe(s), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Oe(null);
567
+ for (var l = Object.keys(n.props), m = 0; m < l.length; m++) {
568
+ var p = l[m];
569
+ if (p !== "children" && p !== "key") {
570
+ ne(n), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), ne(null);
569
571
  break;
570
572
  }
571
573
  }
572
- s.ref !== null && (Oe(s), w("Invalid attribute `ref` supplied to `React.Fragment`."), Oe(null));
574
+ n.ref !== null && (ne(n), E("Invalid attribute `ref` supplied to `React.Fragment`."), ne(null));
573
575
  }
574
576
  }
575
- var pn = {};
576
- function hn(s, f, g, E, A, F) {
577
+ var Xe = {};
578
+ function Je(n, l, m, p, S, P) {
577
579
  {
578
- var L = D(s);
579
- if (!L) {
580
- var R = "";
581
- (s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
- var X = co();
583
- X ? R += X : R += ln();
584
- var H;
585
- s === null ? H = "null" : Ct(s) ? H = "array" : s !== void 0 && s.$$typeof === t ? (H = "<" + (G(s.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : H = typeof s, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, R);
580
+ var b = R(n);
581
+ if (!b) {
582
+ var y = "";
583
+ (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
584
+ var O = dn();
585
+ O ? y += O : y += We();
586
+ var k;
587
+ n === null ? k = "null" : Te(n) ? k = "array" : n !== void 0 && n.$$typeof === t ? (k = "<" + (N(n.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : k = typeof n, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, y);
586
588
  }
587
- var $ = ao(s, f, g, A, F);
588
- if ($ == null)
589
- return $;
590
- if (L) {
591
- var oe = f.children;
592
- if (oe !== void 0)
593
- if (E)
594
- if (Ct(oe)) {
595
- for (var Fe = 0; Fe < oe.length; Fe++)
596
- fn(oe[Fe], s);
597
- Object.freeze && Object.freeze(oe);
589
+ var D = un(n, l, m, S, P);
590
+ if (D == null)
591
+ return D;
592
+ if (b) {
593
+ var q = l.children;
594
+ if (q !== void 0)
595
+ if (p)
596
+ if (Te(q)) {
597
+ for (var re = 0; re < q.length; re++)
598
+ Ke(q[re], n);
599
+ Object.freeze && Object.freeze(q);
598
600
  } else
599
- w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
601
+ E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
600
602
  else
601
- fn(oe, s);
603
+ Ke(q, n);
602
604
  }
603
- if (Ze.call(f, "key")) {
604
- var ke = G(s), ee = Object.keys(f).filter(function(vo) {
605
- return vo !== "key";
606
- }), _t = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
607
- if (!pn[ke + _t]) {
608
- var yo = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
609
- w(`A props object containing a "key" prop is being spread into JSX:
605
+ if (se.call(l, "key")) {
606
+ var te = N(n), A = Object.keys(l).filter(function(wn) {
607
+ return wn !== "key";
608
+ }), Pe = A.length > 0 ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}";
609
+ if (!Xe[te + Pe]) {
610
+ var xn = A.length > 0 ? "{" + A.join(": ..., ") + ": ...}" : "{}";
611
+ E(`A props object containing a "key" prop is being spread into JSX:
610
612
  let props = %s;
611
613
  <%s {...props} />
612
614
  React keys must be passed directly to JSX without using spread:
613
615
  let props = %s;
614
- <%s key={someKey} {...props} />`, _t, ke, yo, ke), pn[ke + _t] = !0;
616
+ <%s key={someKey} {...props} />`, Pe, te, xn, te), Xe[te + Pe] = !0;
615
617
  }
616
618
  }
617
- return s === r ? fo($) : uo($), $;
619
+ return n === s ? hn(D) : mn(D), D;
618
620
  }
619
621
  }
620
- function po(s, f, g) {
621
- return hn(s, f, g, !0);
622
+ function pn(n, l, m) {
623
+ return Je(n, l, m, !0);
622
624
  }
623
- function ho(s, f, g) {
624
- return hn(s, f, g, !1);
625
+ function vn(n, l, m) {
626
+ return Je(n, l, m, !1);
625
627
  }
626
- var mo = ho, go = po;
627
- Ke.Fragment = r, Ke.jsx = mo, Ke.jsxs = go;
628
- })()), Ke;
628
+ var gn = vn, yn = pn;
629
+ le.Fragment = s, le.jsx = gn, le.jsxs = yn;
630
+ })()), le;
629
631
  }
630
- var vn;
631
- function ko() {
632
- return vn || (vn = 1, process.env.NODE_ENV === "production" ? nt.exports = xo() : nt.exports = So()), nt.exports;
632
+ var tt;
633
+ function Sn() {
634
+ return tt || (tt = 1, process.env.NODE_ENV === "production" ? pe.exports = Cn() : pe.exports = Rn()), pe.exports;
633
635
  }
634
- var c = ko();
635
- const Eo = typeof window < "u" ? wo : Y;
636
- function wt(e, t) {
637
- const n = Z(e);
638
- Eo(() => {
639
- n.current = e;
640
- }, [e]), Y(() => {
636
+ var o = Sn();
637
+ const Pn = typeof window < "u" ? bn : M;
638
+ function ke(e, t) {
639
+ const r = $(e);
640
+ Pn(() => {
641
+ r.current = e;
642
+ }, [e]), M(() => {
641
643
  if (t === null)
642
644
  return;
643
- const r = setInterval(() => {
644
- n.current();
645
+ const s = setInterval(() => {
646
+ r.current();
645
647
  }, t);
646
648
  return () => {
647
- clearInterval(r);
649
+ clearInterval(s);
648
650
  };
649
651
  }, [t]);
650
652
  }
651
- function To(e) {
652
- const [, t] = q(0);
653
- wt(() => t((n) => n + 1), e);
653
+ function Ln(e) {
654
+ const [, t] = H(0);
655
+ ke(() => t((r) => r + 1), e);
654
656
  }
655
- const Po = (e, t) => Hn((n) => ({
657
+ const jn = (e, t) => ct((r) => ({
656
658
  delay: 0,
657
659
  startDate: e,
658
660
  endDate: t,
659
661
  startTime: e.getTime(),
660
662
  endTime: t.getTime(),
661
- setDelay: (r) => n({ delay: r }),
662
- setStartDate: (r) => n({ startDate: r }),
663
- setEndDate: (r) => n({ endDate: r })
664
- })), zn = Nn(
663
+ setDelay: (s) => r({ delay: s }),
664
+ setStartDate: (s) => r({ startDate: s }),
665
+ setEndDate: (s) => r({ endDate: s })
666
+ })), dt = at(
665
667
  null
666
- ), Co = ({
668
+ ), kn = ({
667
669
  children: e,
668
670
  startDate: t,
669
- endDate: n
671
+ endDate: r
670
672
  }) => {
671
- const r = Z(
673
+ const s = $(
672
674
  null
673
675
  );
674
- return r.current || (r.current = Po(t, n)), /* @__PURE__ */ c.jsx(zn.Provider, { value: r.current, children: e });
675
- }, B = (e) => {
676
- const t = Zt(zn);
676
+ return s.current || (s.current = jn(t, r)), /* @__PURE__ */ o.jsx(dt.Provider, { value: s.current, children: e });
677
+ }, _ = (e) => {
678
+ const t = lt(dt);
677
679
  if (!t)
678
680
  throw new Error("usePlayerStore must be used within PlayerStoreProvider");
679
- return $n(t, e);
680
- };
681
- var te = function() {
682
- return te = Object.assign || function(t) {
683
- for (var n, r = 1, o = arguments.length; r < o; r++) {
684
- n = arguments[r];
685
- for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
686
- }
687
- return t;
688
- }, te.apply(this, arguments);
689
- };
690
- function je(e, t, n) {
691
- if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
692
- (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
693
- return e.concat(a || Array.prototype.slice.call(t));
694
- }
695
- function Ro(e) {
696
- var t = /* @__PURE__ */ Object.create(null);
697
- return function(n) {
698
- return t[n] === void 0 && (t[n] = e(n)), t[n];
699
- };
700
- }
701
- var jo = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Lo = /* @__PURE__ */ Ro(
702
- function(e) {
703
- return jo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
704
- }
705
- /* Z+1 */
706
- ), M = "-ms-", Je = "-moz-", O = "-webkit-", Bn = "comm", bt = "rule", Gt = "decl", _o = "@import", Un = "@keyframes", Io = "@layer", Wn = Math.abs, Kt = String.fromCharCode, Ft = Object.assign;
707
- function Do(e, t) {
708
- return W(e, 0) ^ 45 ? (((t << 2 ^ W(e, 0)) << 2 ^ W(e, 1)) << 2 ^ W(e, 2)) << 2 ^ W(e, 3) : 0;
709
- }
710
- function Yn(e) {
711
- return e.trim();
712
- }
713
- function me(e, t) {
714
- return (e = t.exec(e)) ? e[0] : e;
715
- }
716
- function P(e, t, n) {
717
- return e.replace(t, n);
718
- }
719
- function at(e, t, n) {
720
- return e.indexOf(t, n);
721
- }
722
- function W(e, t) {
723
- return e.charCodeAt(t) | 0;
724
- }
725
- function Ve(e, t, n) {
726
- return e.slice(t, n);
727
- }
728
- function fe(e) {
729
- return e.length;
730
- }
731
- function qn(e) {
732
- return e.length;
733
- }
734
- function Xe(e, t) {
735
- return t.push(e), e;
736
- }
737
- function Ao(e, t) {
738
- return e.map(t).join("");
739
- }
740
- function wn(e, t) {
741
- return e.filter(function(n) {
742
- return !me(n, t);
743
- });
744
- }
745
- var xt = 1, Ne = 1, Zn = 0, ie = 0, z = 0, Ue = "";
746
- function St(e, t, n, r, o, a, u, i) {
747
- return { value: e, root: t, parent: n, type: r, props: o, children: a, line: xt, column: Ne, length: u, return: "", siblings: i };
748
- }
749
- function be(e, t) {
750
- return Ft(St("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
751
- }
752
- function Me(e) {
753
- for (; e.root; )
754
- e = be(e.root, { children: [e] });
755
- Xe(e, e.siblings);
756
- }
757
- function Oo() {
758
- return z;
759
- }
760
- function Fo() {
761
- return z = ie > 0 ? W(Ue, --ie) : 0, Ne--, z === 10 && (Ne = 1, xt--), z;
762
- }
763
- function ue() {
764
- return z = ie < Zn ? W(Ue, ie++) : 0, Ne++, z === 10 && (Ne = 1, xt++), z;
765
- }
766
- function Pe() {
767
- return W(Ue, ie);
768
- }
769
- function ct() {
770
- return ie;
771
- }
772
- function kt(e, t) {
773
- return Ve(Ue, e, t);
774
- }
775
- function Mt(e) {
776
- switch (e) {
777
- // \0 \t \n \r \s whitespace token
778
- case 0:
779
- case 9:
780
- case 10:
781
- case 13:
782
- case 32:
783
- return 5;
784
- // ! + , / > @ ~ isolate token
785
- case 33:
786
- case 43:
787
- case 44:
788
- case 47:
789
- case 62:
790
- case 64:
791
- case 126:
792
- // ; { } breakpoint token
793
- case 59:
794
- case 123:
795
- case 125:
796
- return 4;
797
- // : accompanied token
798
- case 58:
799
- return 3;
800
- // " ' ( [ opening delimit token
801
- case 34:
802
- case 39:
803
- case 40:
804
- case 91:
805
- return 2;
806
- // ) ] closing delimit token
807
- case 41:
808
- case 93:
809
- return 1;
810
- }
811
- return 0;
812
- }
813
- function Mo(e) {
814
- return xt = Ne = 1, Zn = fe(Ue = e), ie = 0, [];
815
- }
816
- function Vo(e) {
817
- return Ue = "", e;
818
- }
819
- function It(e) {
820
- return Yn(kt(ie - 1, Vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
821
- }
822
- function No(e) {
823
- for (; (z = Pe()) && z < 33; )
824
- ue();
825
- return Mt(e) > 2 || Mt(z) > 3 ? "" : " ";
826
- }
827
- function Ho(e, t) {
828
- for (; --t && ue() && !(z < 48 || z > 102 || z > 57 && z < 65 || z > 70 && z < 97); )
829
- ;
830
- return kt(e, ct() + (t < 6 && Pe() == 32 && ue() == 32));
831
- }
832
- function Vt(e) {
833
- for (; ue(); )
834
- switch (z) {
835
- // ] ) " '
836
- case e:
837
- return ie;
838
- // " '
839
- case 34:
840
- case 39:
841
- e !== 34 && e !== 39 && Vt(z);
842
- break;
843
- // (
844
- case 40:
845
- e === 41 && Vt(e);
846
- break;
847
- // \
848
- case 92:
849
- ue();
850
- break;
851
- }
852
- return ie;
853
- }
854
- function $o(e, t) {
855
- for (; ue() && e + z !== 57; )
856
- if (e + z === 84 && Pe() === 47)
857
- break;
858
- return "/*" + kt(t, ie - 1) + "*" + Kt(e === 47 ? e : ue());
859
- }
860
- function zo(e) {
861
- for (; !Mt(Pe()); )
862
- ue();
863
- return kt(e, ie);
864
- }
865
- function Bo(e) {
866
- return Vo(lt("", null, null, null, [""], e = Mo(e), 0, [0], e));
867
- }
868
- function lt(e, t, n, r, o, a, u, i, l) {
869
- for (var d = 0, h = 0, m = u, x = 0, S = 0, C = 0, j = 1, V = 1, b = 1, w = 0, v = "", y = o, _ = a, T = r, k = v; V; )
870
- switch (C = w, w = ue()) {
871
- // (
872
- case 40:
873
- if (C != 108 && W(k, m - 1) == 58) {
874
- at(k += P(It(w), "&", "&\f"), "&\f", Wn(d ? i[d - 1] : 0)) != -1 && (b = -1);
875
- break;
876
- }
877
- // " ' [
878
- case 34:
879
- case 39:
880
- case 91:
881
- k += It(w);
882
- break;
883
- // \t \n \r \s
884
- case 9:
885
- case 10:
886
- case 13:
887
- case 32:
888
- k += No(C);
889
- break;
890
- // \
891
- case 92:
892
- k += Ho(ct() - 1, 7);
893
- continue;
894
- // /
895
- case 47:
896
- switch (Pe()) {
897
- case 42:
898
- case 47:
899
- Xe(Uo($o(ue(), ct()), t, n, l), l);
900
- break;
901
- default:
902
- k += "/";
903
- }
904
- break;
905
- // {
906
- case 123 * j:
907
- i[d++] = fe(k) * b;
908
- // } ; \0
909
- case 125 * j:
910
- case 59:
911
- case 0:
912
- switch (w) {
913
- // \0 }
914
- case 0:
915
- case 125:
916
- V = 0;
917
- // ;
918
- case 59 + h:
919
- b == -1 && (k = P(k, /\f/g, "")), S > 0 && fe(k) - m && Xe(S > 32 ? xn(k + ";", r, n, m - 1, l) : xn(P(k, " ", "") + ";", r, n, m - 2, l), l);
920
- break;
921
- // @ ;
922
- case 59:
923
- k += ";";
924
- // { rule/at-rule
925
- default:
926
- if (Xe(T = bn(k, t, n, d, h, o, i, v, y = [], _ = [], m, a), a), w === 123)
927
- if (h === 0)
928
- lt(k, t, T, T, y, a, m, i, _);
929
- else
930
- switch (x === 99 && W(k, 3) === 110 ? 100 : x) {
931
- // d l m s
932
- case 100:
933
- case 108:
934
- case 109:
935
- case 115:
936
- lt(e, T, T, r && Xe(bn(e, T, T, 0, 0, o, i, v, o, y = [], m, _), _), o, _, m, i, r ? y : _);
937
- break;
938
- default:
939
- lt(k, T, T, T, [""], _, 0, i, _);
940
- }
941
- }
942
- d = h = S = 0, j = b = 1, v = k = "", m = u;
943
- break;
944
- // :
945
- case 58:
946
- m = 1 + fe(k), S = C;
947
- default:
948
- if (j < 1) {
949
- if (w == 123)
950
- --j;
951
- else if (w == 125 && j++ == 0 && Fo() == 125)
952
- continue;
953
- }
954
- switch (k += Kt(w), w * j) {
955
- // &
956
- case 38:
957
- b = h > 0 ? 1 : (k += "\f", -1);
958
- break;
959
- // ,
960
- case 44:
961
- i[d++] = (fe(k) - 1) * b, b = 1;
962
- break;
963
- // @
964
- case 64:
965
- Pe() === 45 && (k += It(ue())), x = Pe(), h = m = fe(v = k += zo(ct())), w++;
966
- break;
967
- // -
968
- case 45:
969
- C === 45 && fe(k) == 2 && (j = 0);
970
- }
971
- }
972
- return a;
973
- }
974
- function bn(e, t, n, r, o, a, u, i, l, d, h, m) {
975
- for (var x = o - 1, S = o === 0 ? a : [""], C = qn(S), j = 0, V = 0, b = 0; j < r; ++j)
976
- for (var w = 0, v = Ve(e, x + 1, x = Wn(V = u[j])), y = e; w < C; ++w)
977
- (y = Yn(V > 0 ? S[w] + " " + v : P(v, /&\f/g, S[w]))) && (l[b++] = y);
978
- return St(e, t, n, o === 0 ? bt : i, l, d, h, m);
979
- }
980
- function Uo(e, t, n, r) {
981
- return St(e, t, n, Bn, Kt(Oo()), Ve(e, 2, -2), 0, r);
982
- }
983
- function xn(e, t, n, r, o) {
984
- return St(e, t, n, Gt, Ve(e, 0, r), Ve(e, r + 1, -1), r, o);
985
- }
986
- function Gn(e, t, n) {
987
- switch (Do(e, t)) {
988
- // color-adjust
989
- case 5103:
990
- return O + "print-" + e + e;
991
- // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
992
- case 5737:
993
- case 4201:
994
- case 3177:
995
- case 3433:
996
- case 1641:
997
- case 4457:
998
- case 2921:
999
- // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
1000
- case 5572:
1001
- case 6356:
1002
- case 5844:
1003
- case 3191:
1004
- case 6645:
1005
- case 3005:
1006
- // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
1007
- case 6391:
1008
- case 5879:
1009
- case 5623:
1010
- case 6135:
1011
- case 4599:
1012
- case 4855:
1013
- // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
1014
- case 4215:
1015
- case 6389:
1016
- case 5109:
1017
- case 5365:
1018
- case 5621:
1019
- case 3829:
1020
- return O + e + e;
1021
- // tab-size
1022
- case 4789:
1023
- return Je + e + e;
1024
- // appearance, user-select, transform, hyphens, text-size-adjust
1025
- case 5349:
1026
- case 4246:
1027
- case 4810:
1028
- case 6968:
1029
- case 2756:
1030
- return O + e + Je + e + M + e + e;
1031
- // writing-mode
1032
- case 5936:
1033
- switch (W(e, t + 11)) {
1034
- // vertical-l(r)
1035
- case 114:
1036
- return O + e + M + P(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
1037
- // vertical-r(l)
1038
- case 108:
1039
- return O + e + M + P(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
1040
- // horizontal(-)tb
1041
- case 45:
1042
- return O + e + M + P(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
1043
- }
1044
- // flex, flex-direction, scroll-snap-type, writing-mode
1045
- case 6828:
1046
- case 4268:
1047
- case 2903:
1048
- return O + e + M + e + e;
1049
- // order
1050
- case 6165:
1051
- return O + e + M + "flex-" + e + e;
1052
- // align-items
1053
- case 5187:
1054
- return O + e + P(e, /(\w+).+(:[^]+)/, O + "box-$1$2" + M + "flex-$1$2") + e;
1055
- // align-self
1056
- case 5443:
1057
- return O + e + M + "flex-item-" + P(e, /flex-|-self/g, "") + (me(e, /flex-|baseline/) ? "" : M + "grid-row-" + P(e, /flex-|-self/g, "")) + e;
1058
- // align-content
1059
- case 4675:
1060
- return O + e + M + "flex-line-pack" + P(e, /align-content|flex-|-self/g, "") + e;
1061
- // flex-shrink
1062
- case 5548:
1063
- return O + e + M + P(e, "shrink", "negative") + e;
1064
- // flex-basis
1065
- case 5292:
1066
- return O + e + M + P(e, "basis", "preferred-size") + e;
1067
- // flex-grow
1068
- case 6060:
1069
- return O + "box-" + P(e, "-grow", "") + O + e + M + P(e, "grow", "positive") + e;
1070
- // transition
1071
- case 4554:
1072
- return O + P(e, /([^-])(transform)/g, "$1" + O + "$2") + e;
1073
- // cursor
1074
- case 6187:
1075
- return P(P(P(e, /(zoom-|grab)/, O + "$1"), /(image-set)/, O + "$1"), e, "") + e;
1076
- // background, background-image
1077
- case 5495:
1078
- case 3959:
1079
- return P(e, /(image-set\([^]*)/, O + "$1$`$1");
1080
- // justify-content
1081
- case 4968:
1082
- return P(P(e, /(.+:)(flex-)?(.*)/, O + "box-pack:$3" + M + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + O + e + e;
1083
- // justify-self
1084
- case 4200:
1085
- if (!me(e, /flex-|baseline/)) return M + "grid-column-align" + Ve(e, t) + e;
1086
- break;
1087
- // grid-template-(columns|rows)
1088
- case 2592:
1089
- case 3360:
1090
- return M + P(e, "template-", "") + e;
1091
- // grid-(row|column)-start
1092
- case 4384:
1093
- case 3616:
1094
- return n && n.some(function(r, o) {
1095
- return t = o, me(r.props, /grid-\w+-end/);
1096
- }) ? ~at(e + (n = n[t].value), "span", 0) ? e : M + P(e, "-start", "") + e + M + "grid-row-span:" + (~at(n, "span", 0) ? me(n, /\d+/) : +me(n, /\d+/) - +me(e, /\d+/)) + ";" : M + P(e, "-start", "") + e;
1097
- // grid-(row|column)-end
1098
- case 4896:
1099
- case 4128:
1100
- return n && n.some(function(r) {
1101
- return me(r.props, /grid-\w+-start/);
1102
- }) ? e : M + P(P(e, "-end", "-span"), "span ", "") + e;
1103
- // (margin|padding)-inline-(start|end)
1104
- case 4095:
1105
- case 3583:
1106
- case 4068:
1107
- case 2532:
1108
- return P(e, /(.+)-inline(.+)/, O + "$1$2") + e;
1109
- // (min|max)?(width|height|inline-size|block-size)
1110
- case 8116:
1111
- case 7059:
1112
- case 5753:
1113
- case 5535:
1114
- case 5445:
1115
- case 5701:
1116
- case 4933:
1117
- case 4677:
1118
- case 5533:
1119
- case 5789:
1120
- case 5021:
1121
- case 4765:
1122
- if (fe(e) - 1 - t > 6)
1123
- switch (W(e, t + 1)) {
1124
- // (m)ax-content, (m)in-content
1125
- case 109:
1126
- if (W(e, t + 4) !== 45)
1127
- break;
1128
- // (f)ill-available, (f)it-content
1129
- case 102:
1130
- return P(e, /(.+:)(.+)-([^]+)/, "$1" + O + "$2-$3$1" + Je + (W(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1131
- // (s)tretch
1132
- case 115:
1133
- return ~at(e, "stretch", 0) ? Gn(P(e, "stretch", "fill-available"), t, n) + e : e;
1134
- }
1135
- break;
1136
- // grid-(column|row)
1137
- case 5152:
1138
- case 5920:
1139
- return P(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, a, u, i, l, d) {
1140
- return M + o + ":" + a + d + (u ? M + o + "-span:" + (i ? l : +l - +a) + d : "") + e;
1141
- });
1142
- // position: sticky
1143
- case 4949:
1144
- if (W(e, t + 6) === 121)
1145
- return P(e, ":", ":" + O) + e;
1146
- break;
1147
- // display: (flex|inline-flex|grid|inline-grid)
1148
- case 6444:
1149
- switch (W(e, W(e, 14) === 45 ? 18 : 11)) {
1150
- // (inline-)?fle(x)
1151
- case 120:
1152
- return P(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + O + (W(e, 14) === 45 ? "inline-" : "") + "box$3$1" + O + "$2$3$1" + M + "$2box$3") + e;
1153
- // (inline-)?gri(d)
1154
- case 100:
1155
- return P(e, ":", ":" + M) + e;
1156
- }
1157
- break;
1158
- // scroll-margin, scroll-margin-(top|right|bottom|left)
1159
- case 5719:
1160
- case 2647:
1161
- case 2135:
1162
- case 3927:
1163
- case 2391:
1164
- return P(e, "scroll-", "scroll-snap-") + e;
1165
- }
1166
- return e;
1167
- }
1168
- function ft(e, t) {
1169
- for (var n = "", r = 0; r < e.length; r++)
1170
- n += t(e[r], r, e, t) || "";
1171
- return n;
1172
- }
1173
- function Wo(e, t, n, r) {
1174
- switch (e.type) {
1175
- case Io:
1176
- if (e.children.length) break;
1177
- case _o:
1178
- case Gt:
1179
- return e.return = e.return || e.value;
1180
- case Bn:
1181
- return "";
1182
- case Un:
1183
- return e.return = e.value + "{" + ft(e.children, r) + "}";
1184
- case bt:
1185
- if (!fe(e.value = e.props.join(","))) return "";
1186
- }
1187
- return fe(n = ft(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1188
- }
1189
- function Yo(e) {
1190
- var t = qn(e);
1191
- return function(n, r, o, a) {
1192
- for (var u = "", i = 0; i < t; i++)
1193
- u += e[i](n, r, o, a) || "";
1194
- return u;
1195
- };
1196
- }
1197
- function qo(e) {
1198
- return function(t) {
1199
- t.root || (t = t.return) && e(t);
1200
- };
1201
- }
1202
- function Zo(e, t, n, r) {
1203
- if (e.length > -1 && !e.return)
1204
- switch (e.type) {
1205
- case Gt:
1206
- e.return = Gn(e.value, e.length, n);
1207
- return;
1208
- case Un:
1209
- return ft([be(e, { value: P(e.value, "@", "@" + O) })], r);
1210
- case bt:
1211
- if (e.length)
1212
- return Ao(n = e.props, function(o) {
1213
- switch (me(o, r = /(::plac\w+|:read-\w+)/)) {
1214
- // :read-(only|write)
1215
- case ":read-only":
1216
- case ":read-write":
1217
- Me(be(e, { props: [P(o, /:(read-\w+)/, ":" + Je + "$1")] })), Me(be(e, { props: [o] })), Ft(e, { props: wn(n, r) });
1218
- break;
1219
- // :placeholder
1220
- case "::placeholder":
1221
- Me(be(e, { props: [P(o, /:(plac\w+)/, ":" + O + "input-$1")] })), Me(be(e, { props: [P(o, /:(plac\w+)/, ":" + Je + "$1")] })), Me(be(e, { props: [P(o, /:(plac\w+)/, M + "input-$1")] })), Me(be(e, { props: [o] })), Ft(e, { props: wn(n, r) });
1222
- break;
1223
- }
1224
- return "";
1225
- });
1226
- }
1227
- }
1228
- var Go = {
1229
- animationIterationCount: 1,
1230
- aspectRatio: 1,
1231
- borderImageOutset: 1,
1232
- borderImageSlice: 1,
1233
- borderImageWidth: 1,
1234
- boxFlex: 1,
1235
- boxFlexGroup: 1,
1236
- boxOrdinalGroup: 1,
1237
- columnCount: 1,
1238
- columns: 1,
1239
- flex: 1,
1240
- flexGrow: 1,
1241
- flexPositive: 1,
1242
- flexShrink: 1,
1243
- flexNegative: 1,
1244
- flexOrder: 1,
1245
- gridRow: 1,
1246
- gridRowEnd: 1,
1247
- gridRowSpan: 1,
1248
- gridRowStart: 1,
1249
- gridColumn: 1,
1250
- gridColumnEnd: 1,
1251
- gridColumnSpan: 1,
1252
- gridColumnStart: 1,
1253
- msGridRow: 1,
1254
- msGridRowSpan: 1,
1255
- msGridColumn: 1,
1256
- msGridColumnSpan: 1,
1257
- fontWeight: 1,
1258
- lineHeight: 1,
1259
- opacity: 1,
1260
- order: 1,
1261
- orphans: 1,
1262
- tabSize: 1,
1263
- widows: 1,
1264
- zIndex: 1,
1265
- zoom: 1,
1266
- WebkitLineClamp: 1,
1267
- // SVG-related properties
1268
- fillOpacity: 1,
1269
- floodOpacity: 1,
1270
- stopOpacity: 1,
1271
- strokeDasharray: 1,
1272
- strokeDashoffset: 1,
1273
- strokeMiterlimit: 1,
1274
- strokeOpacity: 1,
1275
- strokeWidth: 1
1276
- }, Le = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Kn = "active", Xn = "data-styled-version", Et = "6.1.19", Xt = `/*!sc*/
1277
- `, pt = typeof window < "u" && typeof document < "u", Ko = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Sn = /invalid hook call/i, rt = /* @__PURE__ */ new Set(), Xo = function(e, t) {
1278
- if (process.env.NODE_ENV !== "production") {
1279
- var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
1280
- `) + `You may see this warning because you've called styled inside another component.
1281
- To resolve this only create new StyledComponents outside of any render method and function component.
1282
- See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
1283
- `, o = console.error;
1284
- try {
1285
- var a = !0;
1286
- console.error = function(u) {
1287
- for (var i = [], l = 1; l < arguments.length; l++) i[l - 1] = arguments[l];
1288
- Sn.test(u) ? (a = !1, rt.delete(r)) : o.apply(void 0, je([u], i, !1));
1289
- }, Z(), a && !rt.has(r) && (console.warn(r), rt.add(r));
1290
- } catch (u) {
1291
- Sn.test(u.message) && rt.delete(r);
1292
- } finally {
1293
- console.error = o;
1294
- }
1295
- }
1296
- }, Tt = Object.freeze([]), He = Object.freeze({});
1297
- function Jo(e, t, n) {
1298
- return n === void 0 && (n = He), e.theme !== n.theme && e.theme || t || n.theme;
1299
- }
1300
- var Nt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Qo = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, es = /(^-|-$)/g;
1301
- function kn(e) {
1302
- return e.replace(Qo, "-").replace(es, "");
1303
- }
1304
- var ts = /(a)(d)/gi, ot = 52, En = function(e) {
1305
- return String.fromCharCode(e + (e > 25 ? 39 : 97));
1306
- };
1307
- function Ht(e) {
1308
- var t, n = "";
1309
- for (t = Math.abs(e); t > ot; t = t / ot | 0) n = En(t % ot) + n;
1310
- return (En(t % ot) + n).replace(ts, "$1-$2");
1311
- }
1312
- var Dt, Jn = 5381, Ee = function(e, t) {
1313
- for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
1314
- return e;
1315
- }, Qn = function(e) {
1316
- return Ee(Jn, e);
1317
- };
1318
- function er(e) {
1319
- return Ht(Qn(e) >>> 0);
1320
- }
1321
- function tr(e) {
1322
- return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
1323
- }
1324
- function At(e) {
1325
- return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1326
- }
1327
- var nr = typeof Symbol == "function" && Symbol.for, rr = nr ? Symbol.for("react.memo") : 60115, ns = nr ? Symbol.for("react.forward_ref") : 60112, rs = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, os = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, or = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, ss = ((Dt = {})[ns] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Dt[rr] = or, Dt);
1328
- function Tn(e) {
1329
- return ("type" in (t = e) && t.type.$$typeof) === rr ? or : "$$typeof" in e ? ss[e.$$typeof] : rs;
1330
- var t;
1331
- }
1332
- var is = Object.defineProperty, as = Object.getOwnPropertyNames, Pn = Object.getOwnPropertySymbols, cs = Object.getOwnPropertyDescriptor, ls = Object.getPrototypeOf, Cn = Object.prototype;
1333
- function sr(e, t, n) {
1334
- if (typeof t != "string") {
1335
- if (Cn) {
1336
- var r = ls(t);
1337
- r && r !== Cn && sr(e, r, n);
1338
- }
1339
- var o = as(t);
1340
- Pn && (o = o.concat(Pn(t)));
1341
- for (var a = Tn(e), u = Tn(t), i = 0; i < o.length; ++i) {
1342
- var l = o[i];
1343
- if (!(l in os || n && n[l] || u && l in u || a && l in a)) {
1344
- var d = cs(t, l);
1345
- try {
1346
- is(e, l, d);
1347
- } catch {
1348
- }
1349
- }
1350
- }
1351
- }
1352
- return e;
1353
- }
1354
- function $e(e) {
1355
- return typeof e == "function";
1356
- }
1357
- function Jt(e) {
1358
- return typeof e == "object" && "styledComponentId" in e;
1359
- }
1360
- function Te(e, t) {
1361
- return e && t ? "".concat(e, " ").concat(t) : e || t || "";
1362
- }
1363
- function $t(e, t) {
1364
- if (e.length === 0) return "";
1365
- for (var n = e[0], r = 1; r < e.length; r++) n += e[r];
1366
- return n;
1367
- }
1368
- function ze(e) {
1369
- return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
1370
- }
1371
- function zt(e, t, n) {
1372
- if (n === void 0 && (n = !1), !n && !ze(e) && !Array.isArray(e)) return t;
1373
- if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = zt(e[r], t[r]);
1374
- else if (ze(t)) for (var r in t) e[r] = zt(e[r], t[r]);
1375
- return e;
1376
- }
1377
- function Qt(e, t) {
1378
- Object.defineProperty(e, "toString", { value: t });
1379
- }
1380
- var us = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1381
-
1382
- `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
1383
-
1384
- - Are you trying to reuse it across renders?
1385
- - Are you accidentally calling collectStyles twice?
1386
-
1387
- `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
1388
-
1389
- `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
1390
-
1391
- - Does this error occur on the client and is your target falsy?
1392
- - Does this error occur on the server and is the sheet falsy?
1393
-
1394
- `, 5: `The clone method cannot be used on the client!
1395
-
1396
- - Are you running in a client-like environment on the server?
1397
- - Are you trying to run SSR on the client?
1398
-
1399
- `, 6: `Trying to insert a new style tag, but the given Node is unmounted!
1400
-
1401
- - Are you using a custom target that isn't mounted?
1402
- - Does your document not have a valid head element?
1403
- - Have you accidentally removed a style tag manually?
1404
-
1405
- `, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
1406
-
1407
- `, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
1408
-
1409
- `, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
1410
-
1411
- `, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
1412
-
1413
- `, 14: `ThemeProvider: "theme" prop is required.
1414
-
1415
- `, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
1416
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
1417
- as for instance in your render method then you may be running into this limitation.
1418
-
1419
- `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
1420
- Has styled-components' style tag been unmounted or altered by another script?
1421
- `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
1422
- function ds() {
1423
- for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1424
- for (var n = e[0], r = [], o = 1, a = e.length; o < a; o += 1) r.push(e[o]);
1425
- return r.forEach(function(u) {
1426
- n = n.replace(/%[a-z]/, u);
1427
- }), n;
1428
- }
1429
- function We(e) {
1430
- for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1431
- return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(ds.apply(void 0, je([us[e]], t, !1)).trim());
1432
- }
1433
- var fs = (function() {
1434
- function e(t) {
1435
- this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
1436
- }
1437
- return e.prototype.indexOfGroup = function(t) {
1438
- for (var n = 0, r = 0; r < t; r++) n += this.groupSizes[r];
1439
- return n;
1440
- }, e.prototype.insertRules = function(t, n) {
1441
- if (t >= this.groupSizes.length) {
1442
- for (var r = this.groupSizes, o = r.length, a = o; t >= a; ) if ((a <<= 1) < 0) throw We(16, "".concat(t));
1443
- this.groupSizes = new Uint32Array(a), this.groupSizes.set(r), this.length = a;
1444
- for (var u = o; u < a; u++) this.groupSizes[u] = 0;
1445
- }
1446
- for (var i = this.indexOfGroup(t + 1), l = (u = 0, n.length); u < l; u++) this.tag.insertRule(i, n[u]) && (this.groupSizes[t]++, i++);
1447
- }, e.prototype.clearGroup = function(t) {
1448
- if (t < this.length) {
1449
- var n = this.groupSizes[t], r = this.indexOfGroup(t), o = r + n;
1450
- this.groupSizes[t] = 0;
1451
- for (var a = r; a < o; a++) this.tag.deleteRule(r);
1452
- }
1453
- }, e.prototype.getGroup = function(t) {
1454
- var n = "";
1455
- if (t >= this.length || this.groupSizes[t] === 0) return n;
1456
- for (var r = this.groupSizes[t], o = this.indexOfGroup(t), a = o + r, u = o; u < a; u++) n += "".concat(this.tag.getRule(u)).concat(Xt);
1457
- return n;
1458
- }, e;
1459
- })(), ps = 1 << 30, ut = /* @__PURE__ */ new Map(), ht = /* @__PURE__ */ new Map(), dt = 1, st = function(e) {
1460
- if (ut.has(e)) return ut.get(e);
1461
- for (; ht.has(dt); ) dt++;
1462
- var t = dt++;
1463
- if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > ps)) throw We(16, "".concat(t));
1464
- return ut.set(e, t), ht.set(t, e), t;
1465
- }, hs = function(e, t) {
1466
- dt = t + 1, ut.set(e, t), ht.set(t, e);
1467
- }, ms = "style[".concat(Le, "][").concat(Xn, '="').concat(Et, '"]'), gs = new RegExp("^".concat(Le, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ys = function(e, t, n) {
1468
- for (var r, o = n.split(","), a = 0, u = o.length; a < u; a++) (r = o[a]) && e.registerName(t, r);
1469
- }, vs = function(e, t) {
1470
- for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(Xt), o = [], a = 0, u = r.length; a < u; a++) {
1471
- var i = r[a].trim();
1472
- if (i) {
1473
- var l = i.match(gs);
1474
- if (l) {
1475
- var d = 0 | parseInt(l[1], 10), h = l[2];
1476
- d !== 0 && (hs(h, d), ys(e, h, l[3]), e.getTag().insertRules(d, o)), o.length = 0;
1477
- } else o.push(i);
1478
- }
1479
- }
1480
- }, Rn = function(e) {
1481
- for (var t = document.querySelectorAll(ms), n = 0, r = t.length; n < r; n++) {
1482
- var o = t[n];
1483
- o && o.getAttribute(Le) !== Kn && (vs(e, o), o.parentNode && o.parentNode.removeChild(o));
1484
- }
1485
- };
1486
- function ws() {
1487
- return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1488
- }
1489
- var ir = function(e) {
1490
- var t = document.head, n = e || t, r = document.createElement("style"), o = (function(i) {
1491
- var l = Array.from(i.querySelectorAll("style[".concat(Le, "]")));
1492
- return l[l.length - 1];
1493
- })(n), a = o !== void 0 ? o.nextSibling : null;
1494
- r.setAttribute(Le, Kn), r.setAttribute(Xn, Et);
1495
- var u = ws();
1496
- return u && r.setAttribute("nonce", u), n.insertBefore(r, a), r;
1497
- }, bs = (function() {
1498
- function e(t) {
1499
- this.element = ir(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(n) {
1500
- if (n.sheet) return n.sheet;
1501
- for (var r = document.styleSheets, o = 0, a = r.length; o < a; o++) {
1502
- var u = r[o];
1503
- if (u.ownerNode === n) return u;
1504
- }
1505
- throw We(17);
1506
- })(this.element), this.length = 0;
1507
- }
1508
- return e.prototype.insertRule = function(t, n) {
1509
- try {
1510
- return this.sheet.insertRule(n, t), this.length++, !0;
1511
- } catch {
1512
- return !1;
1513
- }
1514
- }, e.prototype.deleteRule = function(t) {
1515
- this.sheet.deleteRule(t), this.length--;
1516
- }, e.prototype.getRule = function(t) {
1517
- var n = this.sheet.cssRules[t];
1518
- return n && n.cssText ? n.cssText : "";
1519
- }, e;
1520
- })(), xs = (function() {
1521
- function e(t) {
1522
- this.element = ir(t), this.nodes = this.element.childNodes, this.length = 0;
1523
- }
1524
- return e.prototype.insertRule = function(t, n) {
1525
- if (t <= this.length && t >= 0) {
1526
- var r = document.createTextNode(n);
1527
- return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
1528
- }
1529
- return !1;
1530
- }, e.prototype.deleteRule = function(t) {
1531
- this.element.removeChild(this.nodes[t]), this.length--;
1532
- }, e.prototype.getRule = function(t) {
1533
- return t < this.length ? this.nodes[t].textContent : "";
1534
- }, e;
1535
- })(), Ss = (function() {
1536
- function e(t) {
1537
- this.rules = [], this.length = 0;
1538
- }
1539
- return e.prototype.insertRule = function(t, n) {
1540
- return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
1541
- }, e.prototype.deleteRule = function(t) {
1542
- this.rules.splice(t, 1), this.length--;
1543
- }, e.prototype.getRule = function(t) {
1544
- return t < this.length ? this.rules[t] : "";
1545
- }, e;
1546
- })(), jn = pt, ks = { isServer: !pt, useCSSOMInjection: !Ko }, ar = (function() {
1547
- function e(t, n, r) {
1548
- t === void 0 && (t = He), n === void 0 && (n = {});
1549
- var o = this;
1550
- this.options = te(te({}, ks), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && pt && jn && (jn = !1, Rn(this)), Qt(this, function() {
1551
- return (function(a) {
1552
- for (var u = a.getTag(), i = u.length, l = "", d = function(m) {
1553
- var x = (function(b) {
1554
- return ht.get(b);
1555
- })(m);
1556
- if (x === void 0) return "continue";
1557
- var S = a.names.get(x), C = u.getGroup(m);
1558
- if (S === void 0 || !S.size || C.length === 0) return "continue";
1559
- var j = "".concat(Le, ".g").concat(m, '[id="').concat(x, '"]'), V = "";
1560
- S !== void 0 && S.forEach(function(b) {
1561
- b.length > 0 && (V += "".concat(b, ","));
1562
- }), l += "".concat(C).concat(j, '{content:"').concat(V, '"}').concat(Xt);
1563
- }, h = 0; h < i; h++) d(h);
1564
- return l;
1565
- })(o);
1566
- });
1567
- }
1568
- return e.registerId = function(t) {
1569
- return st(t);
1570
- }, e.prototype.rehydrate = function() {
1571
- !this.server && pt && Rn(this);
1572
- }, e.prototype.reconstructWithOptions = function(t, n) {
1573
- return n === void 0 && (n = !0), new e(te(te({}, this.options), t), this.gs, n && this.names || void 0);
1574
- }, e.prototype.allocateGSInstance = function(t) {
1575
- return this.gs[t] = (this.gs[t] || 0) + 1;
1576
- }, e.prototype.getTag = function() {
1577
- return this.tag || (this.tag = (t = (function(n) {
1578
- var r = n.useCSSOMInjection, o = n.target;
1579
- return n.isServer ? new Ss(o) : r ? new bs(o) : new xs(o);
1580
- })(this.options), new fs(t)));
1581
- var t;
1582
- }, e.prototype.hasNameForId = function(t, n) {
1583
- return this.names.has(t) && this.names.get(t).has(n);
1584
- }, e.prototype.registerName = function(t, n) {
1585
- if (st(t), this.names.has(t)) this.names.get(t).add(n);
1586
- else {
1587
- var r = /* @__PURE__ */ new Set();
1588
- r.add(n), this.names.set(t, r);
1589
- }
1590
- }, e.prototype.insertRules = function(t, n, r) {
1591
- this.registerName(t, n), this.getTag().insertRules(st(t), r);
1592
- }, e.prototype.clearNames = function(t) {
1593
- this.names.has(t) && this.names.get(t).clear();
1594
- }, e.prototype.clearRules = function(t) {
1595
- this.getTag().clearGroup(st(t)), this.clearNames(t);
1596
- }, e.prototype.clearTag = function() {
1597
- this.tag = void 0;
1598
- }, e;
1599
- })(), Es = /&/g, Ts = /^\s*\/\/.*$/gm;
1600
- function cr(e, t) {
1601
- return e.map(function(n) {
1602
- return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
1603
- return "".concat(t, " ").concat(r);
1604
- })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = cr(n.children, t)), n;
1605
- });
1606
- }
1607
- function Ps(e) {
1608
- var t, n, r, o = He, a = o.options, u = a === void 0 ? He : a, i = o.plugins, l = i === void 0 ? Tt : i, d = function(x, S, C) {
1609
- return C.startsWith(n) && C.endsWith(n) && C.replaceAll(n, "").length > 0 ? ".".concat(t) : x;
1610
- }, h = l.slice();
1611
- h.push(function(x) {
1612
- x.type === bt && x.value.includes("&") && (x.props[0] = x.props[0].replace(Es, n).replace(r, d));
1613
- }), u.prefix && h.push(Zo), h.push(Wo);
1614
- var m = function(x, S, C, j) {
1615
- S === void 0 && (S = ""), C === void 0 && (C = ""), j === void 0 && (j = "&"), t = j, n = S, r = new RegExp("\\".concat(n, "\\b"), "g");
1616
- var V = x.replace(Ts, ""), b = Bo(C || S ? "".concat(C, " ").concat(S, " { ").concat(V, " }") : V);
1617
- u.namespace && (b = cr(b, u.namespace));
1618
- var w = [];
1619
- return ft(b, Yo(h.concat(qo(function(v) {
1620
- return w.push(v);
1621
- })))), w;
1622
- };
1623
- return m.hash = l.length ? l.reduce(function(x, S) {
1624
- return S.name || We(15), Ee(x, S.name);
1625
- }, Jn).toString() : "", m;
1626
- }
1627
- var Cs = new ar(), Bt = Ps(), lr = Re.createContext({ shouldForwardProp: void 0, styleSheet: Cs, stylis: Bt });
1628
- lr.Consumer;
1629
- Re.createContext(void 0);
1630
- function Ln() {
1631
- return Zt(lr);
1632
- }
1633
- var Ut = (function() {
1634
- function e(t, n) {
1635
- var r = this;
1636
- this.inject = function(o, a) {
1637
- a === void 0 && (a = Bt);
1638
- var u = r.name + a.hash;
1639
- o.hasNameForId(r.id, u) || o.insertRules(r.id, u, a(r.rules, u, "@keyframes"));
1640
- }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, Qt(this, function() {
1641
- throw We(12, String(r.name));
1642
- });
1643
- }
1644
- return e.prototype.getName = function(t) {
1645
- return t === void 0 && (t = Bt), this.name + t.hash;
1646
- }, e;
1647
- })(), Rs = function(e) {
1648
- return e >= "A" && e <= "Z";
681
+ return ut(t, e);
1649
682
  };
1650
- function _n(e) {
1651
- for (var t = "", n = 0; n < e.length; n++) {
1652
- var r = e[n];
1653
- if (n === 1 && r === "-" && e[0] === "-") return e;
1654
- Rs(r) ? t += "-" + r.toLowerCase() : t += r;
1655
- }
1656
- return t.startsWith("ms-") ? "-" + t : t;
1657
- }
1658
- var ur = function(e) {
1659
- return e == null || e === !1 || e === "";
1660
- }, dr = function(e) {
1661
- var t, n, r = [];
1662
- for (var o in e) {
1663
- var a = e[o];
1664
- e.hasOwnProperty(o) && !ur(a) && (Array.isArray(a) && a.isCss || $e(a) ? r.push("".concat(_n(o), ":"), a, ";") : ze(a) ? r.push.apply(r, je(je(["".concat(o, " {")], dr(a), !1), ["}"], !1)) : r.push("".concat(_n(o), ": ").concat((t = o, (n = a) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Go || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1665
- }
1666
- return r;
1667
- };
1668
- function Ce(e, t, n, r) {
1669
- if (ur(e)) return [];
1670
- if (Jt(e)) return [".".concat(e.styledComponentId)];
1671
- if ($e(e)) {
1672
- if (!$e(a = e) || a.prototype && a.prototype.isReactComponent || !t) return [e];
1673
- var o = e(t);
1674
- return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Ut || ze(o) || o === null || console.error("".concat(tr(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Ce(o, t, n, r);
1675
- }
1676
- var a;
1677
- return e instanceof Ut ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : ze(e) ? dr(e) : Array.isArray(e) ? Array.prototype.concat.apply(Tt, e.map(function(u) {
1678
- return Ce(u, t, n, r);
1679
- })) : [e.toString()];
1680
- }
1681
- function js(e) {
1682
- for (var t = 0; t < e.length; t += 1) {
1683
- var n = e[t];
1684
- if ($e(n) && !Jt(n)) return !1;
1685
- }
1686
- return !0;
1687
- }
1688
- var Ls = Qn(Et), _s = (function() {
1689
- function e(t, n, r) {
1690
- this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && js(t), this.componentId = n, this.baseHash = Ee(Ls, n), this.baseStyle = r, ar.registerId(n);
1691
- }
1692
- return e.prototype.generateAndInjectStyles = function(t, n, r) {
1693
- var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
1694
- if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) o = Te(o, this.staticRulesId);
1695
- else {
1696
- var a = $t(Ce(this.rules, t, n, r)), u = Ht(Ee(this.baseHash, a) >>> 0);
1697
- if (!n.hasNameForId(this.componentId, u)) {
1698
- var i = r(a, ".".concat(u), void 0, this.componentId);
1699
- n.insertRules(this.componentId, u, i);
1700
- }
1701
- o = Te(o, u), this.staticRulesId = u;
1702
- }
1703
- else {
1704
- for (var l = Ee(this.baseHash, r.hash), d = "", h = 0; h < this.rules.length; h++) {
1705
- var m = this.rules[h];
1706
- if (typeof m == "string") d += m, process.env.NODE_ENV !== "production" && (l = Ee(l, m));
1707
- else if (m) {
1708
- var x = $t(Ce(m, t, n, r));
1709
- l = Ee(l, x + h), d += x;
1710
- }
1711
- }
1712
- if (d) {
1713
- var S = Ht(l >>> 0);
1714
- n.hasNameForId(this.componentId, S) || n.insertRules(this.componentId, S, r(d, ".".concat(S), void 0, this.componentId)), o = Te(o, S);
1715
- }
1716
- }
1717
- return o;
1718
- }, e;
1719
- })(), fr = Re.createContext(void 0);
1720
- fr.Consumer;
1721
- var Ot = {}, In = /* @__PURE__ */ new Set();
1722
- function Is(e, t, n) {
1723
- var r = Jt(e), o = e, a = !At(e), u = t.attrs, i = u === void 0 ? Tt : u, l = t.componentId, d = l === void 0 ? (function(y, _) {
1724
- var T = typeof y != "string" ? "sc" : kn(y);
1725
- Ot[T] = (Ot[T] || 0) + 1;
1726
- var k = "".concat(T, "-").concat(er(Et + T + Ot[T]));
1727
- return _ ? "".concat(_, "-").concat(k) : k;
1728
- })(t.displayName, t.parentComponentId) : l, h = t.displayName, m = h === void 0 ? (function(y) {
1729
- return At(y) ? "styled.".concat(y) : "Styled(".concat(tr(y), ")");
1730
- })(e) : h, x = t.displayName && t.componentId ? "".concat(kn(t.displayName), "-").concat(t.componentId) : t.componentId || d, S = r && o.attrs ? o.attrs.concat(i).filter(Boolean) : i, C = t.shouldForwardProp;
1731
- if (r && o.shouldForwardProp) {
1732
- var j = o.shouldForwardProp;
1733
- if (t.shouldForwardProp) {
1734
- var V = t.shouldForwardProp;
1735
- C = function(y, _) {
1736
- return j(y, _) && V(y, _);
1737
- };
1738
- } else C = j;
1739
- }
1740
- var b = new _s(n, x, r ? o.componentStyle : void 0);
1741
- function w(y, _) {
1742
- return (function(T, k, U) {
1743
- var J = T.attrs, D = T.componentStyle, _e = T.defaultProps, pe = T.foldedComponentIds, G = T.styledComponentId, ne = T.target, de = Re.useContext(fr), Se = Ln(), Q = T.shouldForwardProp || Se.shouldForwardProp;
1744
- process.env.NODE_ENV !== "production" && mn(G);
1745
- var Ye = Jo(k, de, _e) || He, re = (function(De, he, ve) {
1746
- for (var ae, ce = te(te({}, he), { className: void 0, theme: ve }), we = 0; we < De.length; we += 1) {
1747
- var Ae = $e(ae = De[we]) ? ae(ce) : ae;
1748
- for (var le in Ae) ce[le] = le === "className" ? Te(ce[le], Ae[le]) : le === "style" ? te(te({}, ce[le]), Ae[le]) : Ae[le];
1749
- }
1750
- return he.className && (ce.className = Te(ce.className, he.className)), ce;
1751
- })(J, k, Ye), ge = re.as || ne, ye = {};
1752
- for (var K in re) re[K] === void 0 || K[0] === "$" || K === "as" || K === "theme" && re.theme === Ye || (K === "forwardedAs" ? ye.as = re.forwardedAs : Q && !Q(K, ge) || (ye[K] = re[K], Q || process.env.NODE_ENV !== "development" || Lo(K) || In.has(K) || !Nt.has(ge) || (In.add(K), console.warn('styled-components: it looks like an unknown prop "'.concat(K, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1753
- var Ie = (function(De, he) {
1754
- var ve = Ln(), ae = De.generateAndInjectStyles(he, ve.styleSheet, ve.stylis);
1755
- return process.env.NODE_ENV !== "production" && mn(ae), ae;
1756
- })(D, re);
1757
- process.env.NODE_ENV !== "production" && T.warnTooManyClasses && T.warnTooManyClasses(Ie);
1758
- var qe = Te(pe, G);
1759
- return Ie && (qe += " " + Ie), re.className && (qe += " " + re.className), ye[At(ge) && !Nt.has(ge) ? "class" : "className"] = qe, U && (ye.ref = U), bo(ge, ye);
1760
- })(v, y, _);
1761
- }
1762
- w.displayName = m;
1763
- var v = Re.forwardRef(w);
1764
- return v.attrs = S, v.componentStyle = b, v.displayName = m, v.shouldForwardProp = C, v.foldedComponentIds = r ? Te(o.foldedComponentIds, o.styledComponentId) : "", v.styledComponentId = x, v.target = r ? o.target : e, Object.defineProperty(v, "defaultProps", { get: function() {
1765
- return this._foldedDefaultProps;
1766
- }, set: function(y) {
1767
- this._foldedDefaultProps = r ? (function(_) {
1768
- for (var T = [], k = 1; k < arguments.length; k++) T[k - 1] = arguments[k];
1769
- for (var U = 0, J = T; U < J.length; U++) zt(_, J[U], !0);
1770
- return _;
1771
- })({}, o.defaultProps, y) : y;
1772
- } }), process.env.NODE_ENV !== "production" && (Xo(m, x), v.warnTooManyClasses = /* @__PURE__ */ (function(y, _) {
1773
- var T = {}, k = !1;
1774
- return function(U) {
1775
- if (!k && (T[U] = !0, Object.keys(T).length >= 200)) {
1776
- var J = _ ? ' with the id of "'.concat(_, '"') : "";
1777
- console.warn("Over ".concat(200, " classes were generated for component ").concat(y).concat(J, `.
1778
- `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1779
- Example:
1780
- const Component = styled.div.attrs(props => ({
1781
- style: {
1782
- background: props.background,
1783
- },
1784
- }))\`width: 100%;\`
1785
-
1786
- <Component />`), k = !0, T = {};
1787
- }
1788
- };
1789
- })(m, x)), Qt(v, function() {
1790
- return ".".concat(v.styledComponentId);
1791
- }), a && sr(v, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), v;
1792
- }
1793
- function Dn(e, t) {
1794
- for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
1795
- return n;
1796
- }
1797
- var An = function(e) {
1798
- return Object.assign(e, { isCss: !0 });
1799
- };
1800
- function mt(e) {
1801
- for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1802
- if ($e(e) || ze(e)) return An(Ce(Dn(Tt, je([e], t, !0))));
1803
- var r = e;
1804
- return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? Ce(r) : An(Ce(Dn(r, t)));
1805
- }
1806
- function Wt(e, t, n) {
1807
- if (n === void 0 && (n = He), !t) throw We(1, t);
1808
- var r = function(o) {
1809
- for (var a = [], u = 1; u < arguments.length; u++) a[u - 1] = arguments[u];
1810
- return e(t, n, mt.apply(void 0, je([o], a, !1)));
1811
- };
1812
- return r.attrs = function(o) {
1813
- return Wt(e, t, te(te({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
1814
- }, r.withConfig = function(o) {
1815
- return Wt(e, t, te(te({}, n), o));
1816
- }, r;
1817
- }
1818
- var pr = function(e) {
1819
- return Wt(Is, e);
1820
- }, I = pr;
1821
- Nt.forEach(function(e) {
1822
- I[e] = pr(e);
1823
- });
1824
- function Ds(e) {
1825
- for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1826
- process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
1827
- var r = $t(mt.apply(void 0, je([e], t, !1))), o = er(r);
1828
- return new Ut(o, r);
1829
- }
1830
- process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1831
- Perhaps you're looking to import 'styled-components/native'?
1832
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);
1833
- var it = "__sc-".concat(Le, "__");
1834
- process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[it] || (window[it] = 0), window[it] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
1835
-
1836
- See https://s-c.sh/2BAXzed for more info.`), window[it] += 1);
1837
- function As({
683
+ function Fn({
1838
684
  children: e,
1839
685
  eventFinishedMessage: t,
1840
- eventNotStartedMessage: n,
1841
- eventStartingSoonMessage: r
686
+ eventNotStartedMessage: r,
687
+ eventStartingSoonMessage: s
1842
688
  }) {
1843
- const o = B((d) => d.startDate), a = B((d) => d.endDate), u = Date.now(), i = u < o.getTime(), l = u > a.getTime();
1844
- return To(5e3), i ? /* @__PURE__ */ c.jsx(
1845
- Os,
689
+ const a = _((f) => f.startDate), d = _((f) => f.endDate), h = Date.now(), i = h < a.getTime(), u = h > d.getTime();
690
+ return Ln(5e3), i ? /* @__PURE__ */ o.jsx(
691
+ Dn,
1846
692
  {
1847
- startDate: o,
1848
- title: n || "Event has not started yet.",
1849
- message: r || "Starting in few seconds..."
693
+ startDate: a,
694
+ title: r || "Event has not started yet.",
695
+ message: s || "Starting in few seconds..."
1850
696
  }
1851
- ) : l ? /* @__PURE__ */ c.jsx(Fs, { title: t || "Event has finished." }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: e });
697
+ ) : u ? /* @__PURE__ */ o.jsx(_n, { title: t || "Event has finished." }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: e });
1852
698
  }
1853
- function Os({ startDate: e, title: t, message: n }) {
1854
- const r = e.getTime() - Date.now(), o = Math.floor(r / (1e3 * 60 * 60)), a = Math.floor(
1855
- r % (1e3 * 60 * 60) / (1e3 * 60)
699
+ function Dn({ startDate: e, title: t, message: r }) {
700
+ const s = e.getTime() - Date.now(), a = Math.floor(s / (1e3 * 60 * 60)), d = Math.floor(
701
+ s % (1e3 * 60 * 60) / (1e3 * 60)
1856
702
  );
1857
- return o || a ? /* @__PURE__ */ c.jsxs(Yt, { children: [
1858
- /* @__PURE__ */ c.jsx(qt, { children: t }),
1859
- /* @__PURE__ */ c.jsxs(Ms, { children: [
703
+ return a || d ? /* @__PURE__ */ o.jsxs(Le, { children: [
704
+ /* @__PURE__ */ o.jsx(je, { children: t }),
705
+ /* @__PURE__ */ o.jsxs(Mn, { children: [
1860
706
  "(",
1861
- o > 0 ? `${o}h ${a}m` : `${a}m`,
707
+ a > 0 ? `${a}h ${d}m` : `${d}m`,
1862
708
  ")"
1863
709
  ] })
1864
- ] }) : /* @__PURE__ */ c.jsx(Yt, { children: /* @__PURE__ */ c.jsx(qt, { children: n }) });
710
+ ] }) : /* @__PURE__ */ o.jsx(Le, { children: /* @__PURE__ */ o.jsx(je, { children: r }) });
1865
711
  }
1866
- function Fs({ title: e }) {
1867
- return /* @__PURE__ */ c.jsx(Yt, { children: /* @__PURE__ */ c.jsx(qt, { children: e }) });
712
+ function _n({ title: e }) {
713
+ return /* @__PURE__ */ o.jsx(Le, { children: /* @__PURE__ */ o.jsx(je, { children: e }) });
1868
714
  }
1869
- const Yt = I.div`
715
+ const Le = C.div`
1870
716
  position: absolute;
1871
717
  top: 0;
1872
718
  left: 0;
@@ -1879,14 +725,14 @@ const Yt = I.div`
1879
725
  justify-content: center;
1880
726
  color: black;
1881
727
  background: #f7e406;
1882
- `, qt = I.h3`
728
+ `, je = C.h3`
1883
729
  margin: 0;
1884
730
  padding: 0.5rem 0;
1885
731
  font-size: 1.5rem;
1886
732
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
1887
733
  "Helvetica Neue", Arial, sans-serif;
1888
734
  font-weight: 500;
1889
- `, Ms = I.p`
735
+ `, Mn = C.p`
1890
736
  margin: 0;
1891
737
  height: 1.25rem;
1892
738
  font-size: 1rem;
@@ -1894,22 +740,22 @@ const Yt = I.div`
1894
740
  "Helvetica Neue", Arial, sans-serif;
1895
741
  font-weight: 500;
1896
742
  `;
1897
- function Vs() {
1898
- return /* @__PURE__ */ c.jsx(
743
+ function In() {
744
+ return /* @__PURE__ */ o.jsx(
1899
745
  "svg",
1900
746
  {
1901
747
  xmlns: "http://www.w3.org/2000/svg",
1902
748
  viewBox: "0 0 24 24",
1903
749
  fill: "currentColor",
1904
- children: /* @__PURE__ */ c.jsx("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })
750
+ children: /* @__PURE__ */ o.jsx("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })
1905
751
  }
1906
752
  );
1907
753
  }
1908
- const xe = yt(
1909
- ({ shape: e = "circle", ...t }, n) => /* @__PURE__ */ c.jsx(Ns, { ref: n, $shape: e, ...t })
754
+ const G = ge(
755
+ ({ shape: e = "circle", ...t }, r) => /* @__PURE__ */ o.jsx(Vn, { ref: r, $shape: e, ...t })
1910
756
  );
1911
- xe.displayName = "PlayerButton";
1912
- const Ns = I.button`
757
+ G.displayName = "PlayerButton";
758
+ const Vn = C.button`
1913
759
  margin: 0;
1914
760
  display: flex;
1915
761
  align-items: center;
@@ -1947,61 +793,61 @@ const Ns = I.button`
1947
793
  cursor: not-allowed;
1948
794
  }
1949
795
 
1950
- ${({ $shape: e }) => e === "circle" && mt`
796
+ ${({ $shape: e }) => e === "circle" && Ge`
1951
797
  padding: 0;
1952
798
  width: 2rem;
1953
799
  height: 2rem;
1954
800
  `}
1955
801
 
1956
- ${({ $shape: e }) => e === "square" && mt`
802
+ ${({ $shape: e }) => e === "square" && Ge`
1957
803
  padding: 0.25rem 0.5rem;
1958
804
  `}
1959
805
  `;
1960
- function Hs({ message: e, ...t }) {
1961
- const n = B((a) => a.delay), r = B((a) => a.setDelay), o = () => r(0);
1962
- return n ? /* @__PURE__ */ c.jsxs(xe, { onClick: o, shape: "square", ...t, children: [
1963
- /* @__PURE__ */ c.jsx("span", { children: e || "Live" }),
1964
- /* @__PURE__ */ c.jsx(Vs, {})
806
+ function Hn({ message: e, ...t }) {
807
+ const r = _((d) => d.delay), s = _((d) => d.setDelay), a = () => s(0);
808
+ return r ? /* @__PURE__ */ o.jsxs(G, { onClick: a, shape: "square", ...t, children: [
809
+ /* @__PURE__ */ o.jsx("span", { children: e || "Live" }),
810
+ /* @__PURE__ */ o.jsx(In, {})
1965
811
  ] }) : null;
1966
812
  }
1967
- function $s(e, t, n) {
1968
- const r = {
813
+ function On(e, t, r) {
814
+ const s = {
1969
815
  days: 86400,
1970
816
  hours: 3600,
1971
817
  minutes: 60,
1972
818
  seconds: 1,
1973
819
  milliseconds: 1e-3
1974
820
  };
1975
- return e * (r[t] / r[n]);
821
+ return e * (s[t] / s[r]);
1976
822
  }
1977
- function zs(e) {
1978
- return $s(e, "milliseconds", "seconds");
823
+ function An(e) {
824
+ return On(e, "milliseconds", "seconds");
1979
825
  }
1980
- const Be = (e) => {
1981
- const t = Math.floor(e / 60), n = Math.floor(e % 60);
1982
- return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
826
+ const oe = (e) => {
827
+ const t = Math.floor(e / 60), r = Math.floor(e % 60);
828
+ return `${t.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}`;
1983
829
  };
1984
- function Bs(e) {
830
+ function $n(e) {
1985
831
  const t = typeof window < "u" && window.navigator?.userAgent || "";
1986
832
  return e.test(t);
1987
833
  }
1988
- const hr = Bs(/iPhone|iPad|iPod/i);
1989
- function Us() {
834
+ const ft = $n(/iPhone|iPad|iPod/i);
835
+ function Un() {
1990
836
  const e = document;
1991
837
  return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
1992
838
  }
1993
- function Ws(e) {
839
+ function Bn(e) {
1994
840
  e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
1995
841
  }
1996
- function Ys(e) {
842
+ function Nn(e) {
1997
843
  e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
1998
844
  }
1999
- function qs(e, t) {
845
+ function qn(e, t) {
2000
846
  return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
2001
847
  e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
2002
848
  };
2003
849
  }
2004
- const Zs = (e, t) => ({
850
+ const zn = () => Tn(), Wn = (e, t) => ({
2005
851
  currentTime: 0,
2006
852
  duration: 0,
2007
853
  isEnded: !1,
@@ -2018,30 +864,32 @@ const Zs = (e, t) => ({
2018
864
  destroy: () => {
2019
865
  },
2020
866
  handleDurationChange: () => {
2021
- const n = t().techRef.current;
2022
- n && e({ duration: n.duration });
867
+ const r = t().techRef.current;
868
+ r && e({ duration: r.duration });
2023
869
  },
2024
870
  handleEnd: () => {
2025
- t().techRef.current && e({
871
+ t().techRef.current && (t().eventEmitter.emit("ended"), e({
2026
872
  isEnded: !0,
2027
873
  isLoading: !1,
2028
874
  isMetaLoaded: !1,
2029
875
  isPlaying: !1
2030
- });
876
+ }));
2031
877
  },
2032
878
  handleLoadedMetadata: () => {
2033
- const n = t().techRef.current;
2034
- n && (n.loop = t().isLoop, n.volume = n.muted ? 0 : 1, t().startTime !== -1 && (n.currentTime = t().startTime), e({
2035
- currentTime: t().startTime !== -1 ? t().startTime : n.currentTime,
2036
- duration: n.duration,
879
+ const r = t().techRef.current;
880
+ r && (t().eventEmitter.emit("loadedMetadata", {
881
+ duration: r.duration
882
+ }), r.loop = t().isLoop, r.volume = r.muted ? 0 : 1, t().startTime !== -1 && (r.currentTime = t().startTime), e({
883
+ currentTime: t().startTime !== -1 ? t().startTime : r.currentTime,
884
+ duration: r.duration,
2037
885
  startTime: -1,
2038
886
  isMetaLoaded: !0,
2039
- volume: n.muted ? 0 : 100
887
+ volume: r.muted ? 0 : 100
2040
888
  }));
2041
889
  },
2042
890
  handleLoadStart: () => {
2043
- const n = t().techRef.current;
2044
- n && (e({ isReady: !0 }), n.play().then(() => {
891
+ const r = t().techRef.current;
892
+ r && (t().eventEmitter.emit("loadStart"), e({ isReady: !0 }), r.play().then(() => {
2045
893
  e({
2046
894
  isEnded: !1,
2047
895
  isLoading: !1,
@@ -2049,70 +897,92 @@ const Zs = (e, t) => ({
2049
897
  isStarted: !0,
2050
898
  pauseTime: 0
2051
899
  });
2052
- }).catch(
2053
- (r) => e(() => (console.info("Player failed to autoplay", r), {
900
+ }).catch((s) => {
901
+ e(() => (console.info("Player failed to autoplay", s), {
2054
902
  isStarted: !1,
2055
903
  isEnded: !1,
2056
904
  isLoading: !1,
2057
905
  isPlaying: !1
2058
- }))
2059
- ));
906
+ }));
907
+ }));
908
+ },
909
+ handlePause: () => {
910
+ t().techRef.current && (t().eventEmitter.emit("pause"), e({
911
+ isPlaying: !1,
912
+ pauseTime: Date.now()
913
+ }));
914
+ },
915
+ handlePlay: () => {
916
+ t().techRef.current && (t().eventEmitter.emit("play"), e({
917
+ isPlaying: !0,
918
+ pauseTime: 0
919
+ }));
920
+ },
921
+ handlePlaying: () => {
922
+ t().techRef.current && (t().eventEmitter.emit("playing"), e({ isLoading: !1 }));
923
+ },
924
+ handleSeeked: () => {
925
+ t().techRef.current && (t().eventEmitter.emit("seeked"), e({ isLoading: !1 }));
926
+ },
927
+ handleSeeking: () => {
928
+ t().techRef.current && (t().eventEmitter.emit("seeking"), e({ isLoading: !0 }));
2060
929
  },
2061
- handlePause: () => e({
2062
- isPlaying: !1,
2063
- pauseTime: Date.now()
2064
- }),
2065
- handlePlay: () => e({
2066
- isPlaying: !0,
2067
- pauseTime: 0
2068
- }),
2069
- handlePlaying: () => e({ isLoading: !1 }),
2070
- handleSeeked: () => e({ isLoading: !1 }),
2071
- handleSeeking: () => e({ isLoading: !0 }),
2072
930
  handleTimeUpdate: () => {
2073
- const n = t().techRef.current;
2074
- n && e({ currentTime: n.currentTime });
931
+ const r = t().techRef.current;
932
+ r && (t().eventEmitter.emit("timeUpdate", {
933
+ currentTime: r.currentTime,
934
+ duration: r.duration
935
+ }), e({ currentTime: r.currentTime }));
936
+ },
937
+ handleWaiting: () => {
938
+ t().techRef.current && (t().eventEmitter.emit("waiting"), e({ isLoading: !0 }));
939
+ },
940
+ handleVolumeChange: () => {
941
+ const r = t().techRef.current;
942
+ r && t().eventEmitter.emit("volumeChange", { volume: r.volume });
943
+ },
944
+ handleError: (r) => {
945
+ t().techRef.current && t().eventEmitter.emit("error", r);
2075
946
  },
2076
- handleWaiting: () => e({ isLoading: !0 }),
2077
947
  pause: () => {
2078
- const n = t().techRef.current;
2079
- n && (n.pause(), e({
948
+ const r = t().techRef.current;
949
+ r && (r.pause(), e({
2080
950
  isEnded: !1,
2081
951
  isPlaying: !1,
2082
952
  pauseTime: Date.now()
2083
953
  }));
2084
954
  },
2085
955
  getPauseTimeDiff: () => !t().isStarted || !t().pauseTime ? 0 : parseInt(
2086
- zs(Date.now() - t().pauseTime).toFixed(0)
956
+ An(Date.now() - t().pauseTime).toFixed(0)
2087
957
  ),
2088
958
  play: () => {
2089
- const n = t().techRef.current;
2090
- n && (n.play(), e({
959
+ const r = t().techRef.current;
960
+ r && (r.play(), e({
2091
961
  isEnded: !1,
2092
962
  isPlaying: !0,
2093
963
  isStarted: !0,
2094
964
  pauseTime: 0
2095
965
  }));
2096
966
  },
2097
- seek: (n) => {
2098
- const r = t().techRef.current;
2099
- r && (r.currentTime = n, (r.paused || r.ended) && r.play(), e({
967
+ seek: (r) => {
968
+ const s = t().techRef.current;
969
+ s && (s.currentTime = r, (s.paused || s.ended) && s.play(), e({
2100
970
  seekTime: -1,
2101
- currentTime: n,
971
+ currentTime: r,
2102
972
  isStarted: !0,
2103
973
  isEnded: !1,
2104
974
  isPlaying: !0
2105
975
  }));
2106
976
  },
2107
- setIsLoading: (n) => e({ isLoading: n }),
2108
- setIsLoop: (n) => {
2109
- const r = t().techRef.current;
2110
- r && (r.loop = n, e({ isLoop: n }));
977
+ setIsLoading: (r) => e({ isLoading: r }),
978
+ setIsLoop: (r) => {
979
+ const s = t().techRef.current;
980
+ s && (s.loop = r, e({ isLoop: r }));
2111
981
  },
2112
- setStartTime: (n) => e({ startTime: n }),
2113
- setVolume: (n) => {
2114
- const r = t().techRef.current;
2115
- r && (r.muted = n === 0, r.volume = n / 100, e({ volume: n }));
982
+ setStartTime: (r) => e({ startTime: r }),
983
+ setVolume: (r) => {
984
+ const s = t().techRef.current;
985
+ s && (s.muted = r === 0, s.volume = r / 100, e({ volume: r }));
2116
986
  },
2117
987
  stop: () => {
2118
988
  t().techRef.current && e({
@@ -2120,179 +990,188 @@ const Zs = (e, t) => ({
2120
990
  isLoading: !1
2121
991
  });
2122
992
  }
2123
- }), Gs = (e) => ({
993
+ }), Zn = (e) => ({
2124
994
  idleLocks: /* @__PURE__ */ new Set(),
2125
- addIdleLock: (t) => e((n) => ({
2126
- idleLocks: new Set(n.idleLocks).add(t)
995
+ addIdleLock: (t) => e((r) => ({
996
+ idleLocks: new Set(r.idleLocks).add(t)
2127
997
  })),
2128
- removeIdleLock: (t) => e((n) => {
2129
- const r = new Set(n.idleLocks);
2130
- return r.delete(t), { idleLocks: r };
998
+ removeIdleLock: (t) => e((r) => {
999
+ const s = new Set(r.idleLocks);
1000
+ return s.delete(t), { idleLocks: s };
2131
1001
  })
2132
- }), Ks = (e) => ({
1002
+ }), Yn = (e, t) => ({
2133
1003
  level: null,
2134
1004
  levels: null,
2135
- setLevels: (t) => e({ levels: t }),
2136
- setLevel: (t) => e({ level: t })
2137
- }), Xs = (e, t) => ({
1005
+ setLevels: (r) => e({ levels: r }),
1006
+ setLevel: (r) => {
1007
+ r && t().eventEmitter.emit("qualityChange", { level: r }), e({ level: r });
1008
+ }
1009
+ }), Kn = (e, t) => ({
2138
1010
  isFullscreen: !1,
2139
1011
  isFullscreenReady: !1,
2140
1012
  exitFullscreen: () => {
2141
- Ys(document), e({ isFullscreen: !1 });
1013
+ t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }), Nn(document), e({ isFullscreen: !1 });
2142
1014
  },
2143
1015
  requestFullscreen: () => {
2144
- const n = t().techRef.current, r = t().containerRef.current;
2145
- if (!n || !r) return;
2146
- const o = hr ? n : r;
2147
- o && Ws(o), e({ isFullscreen: !0 });
1016
+ const r = t().techRef.current, s = t().containerRef.current;
1017
+ if (!r || !s) return;
1018
+ t().eventEmitter.emit("fullscreenChange", { isFullscreen: !0 });
1019
+ const a = ft ? r : s;
1020
+ a && Bn(a), e({ isFullscreen: !0 });
2148
1021
  },
2149
- setIsFullscreen: (n) => e({ isFullscreen: n }),
2150
- setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
2151
- }), Js = (e) => () => ({
1022
+ setIsFullscreen: (r) => e({ isFullscreen: r }),
1023
+ setIsFullscreenReady: (r) => e({ isFullscreenReady: r })
1024
+ }), Xn = () => ({
1025
+ eventEmitter: zn()
1026
+ }), Jn = (e) => () => ({
2152
1027
  ...e
2153
- }), Qs = (e, t) => Hn()((...n) => ({
2154
- ...Zs(...n),
2155
- ...Gs(...n),
2156
- ...Xs(...n),
2157
- ...Ks(...n),
2158
- ...Js({ techRef: e, containerRef: t })(...n)
2159
- })), mr = Nn(null);
2160
- function ei({ children: e }) {
2161
- const t = Z(null), n = Z(null), r = Z(null);
2162
- return t.current || (t.current = Qs(n, r)), /* @__PURE__ */ c.jsx(mr.Provider, { value: t.current, children: e });
2163
- }
2164
- const p = (e) => {
2165
- const t = Zt(mr);
1028
+ }), Gn = (e, t) => ct()((...r) => ({
1029
+ ...Wn(...r),
1030
+ ...Zn(...r),
1031
+ ...Kn(...r),
1032
+ ...Yn(...r),
1033
+ ...Xn(...r),
1034
+ ...Jn({
1035
+ techRef: e,
1036
+ containerRef: t
1037
+ })(...r)
1038
+ })), mt = at(null);
1039
+ function Qn({ children: e }) {
1040
+ const t = $(null), r = $(null), s = $(null);
1041
+ return t.current || (t.current = Gn(r, s)), /* @__PURE__ */ o.jsx(mt.Provider, { value: t.current, children: e });
1042
+ }
1043
+ const c = (e) => {
1044
+ const t = lt(mt);
2166
1045
  if (!t)
2167
1046
  throw new Error("usePlayerStore must be used within PlayerStoreProvider");
2168
- return $n(t, e);
1047
+ return ut(t, e);
2169
1048
  };
2170
- function gr() {
2171
- const e = p((i) => i.exitFullscreen), t = p((i) => i.isFullscreen), n = p((i) => i.isFullscreenReady), r = p((i) => i.requestFullscreen), o = p((i) => i.setVolume), a = p((i) => i.volume), u = N(
1049
+ function ht() {
1050
+ const e = c((i) => i.exitFullscreen), t = c((i) => i.isFullscreen), r = c((i) => i.isFullscreenReady), s = c((i) => i.requestFullscreen), a = c((i) => i.setVolume), d = c((i) => i.volume), h = I(
2172
1051
  (i) => {
2173
- let l = !1;
1052
+ let u = !1;
2174
1053
  if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
2175
1054
  switch (i.code) {
2176
1055
  case "ArrowUp":
2177
- o(a + 10 < 100 ? a + 10 : 100), l = !0;
1056
+ a(d + 10 < 100 ? d + 10 : 100), u = !0;
2178
1057
  break;
2179
1058
  case "ArrowDown":
2180
- o(a - 10 > 0 ? a - 10 : 0), l = !0;
1059
+ a(d - 10 > 0 ? d - 10 : 0), u = !0;
2181
1060
  break;
2182
1061
  case "KeyM":
2183
- o(a === 0 ? 100 : 0), l = !0;
1062
+ a(d === 0 ? 100 : 0), u = !0;
2184
1063
  break;
2185
1064
  case "KeyF":
2186
- n && (t ? e() : r(), l = !0);
1065
+ r && (t ? e() : s(), u = !0);
2187
1066
  break;
2188
1067
  }
2189
- l && i.preventDefault();
1068
+ u && i.preventDefault();
2190
1069
  }
2191
1070
  },
2192
1071
  [
2193
1072
  e,
2194
1073
  t,
2195
- n,
2196
1074
  r,
2197
- o,
2198
- a
1075
+ s,
1076
+ a,
1077
+ d
2199
1078
  ]
2200
1079
  );
2201
- return Y(() => (document.addEventListener("keydown", u), () => {
2202
- document.removeEventListener("keydown", u);
2203
- }), [u]), null;
1080
+ return M(() => (document.addEventListener("keydown", h), () => {
1081
+ document.removeEventListener("keydown", h);
1082
+ }), [h]), null;
2204
1083
  }
2205
- function ti() {
2206
- const e = B((i) => i.delay), t = p((i) => i.isPlaying), n = p((i) => i.pause), r = p((i) => i.getPauseTimeDiff), o = p((i) => i.play), a = B((i) => i.setDelay), u = N(
1084
+ function er() {
1085
+ const e = _((i) => i.delay), t = c((i) => i.isPlaying), r = c((i) => i.pause), s = c((i) => i.getPauseTimeDiff), a = c((i) => i.play), d = _((i) => i.setDelay), h = I(
2207
1086
  (i) => {
2208
- let l = !1;
1087
+ let u = !1;
2209
1088
  if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
2210
1089
  switch (i.code) {
2211
1090
  case "ArrowLeft":
2212
- a(e + 10), l = !0;
1091
+ d(e + 10), u = !0;
2213
1092
  break;
2214
1093
  case "ArrowRight":
2215
- a(e - 10 > 0 ? e - 10 : 0), l = !0;
1094
+ d(e - 10 > 0 ? e - 10 : 0), u = !0;
2216
1095
  break;
2217
1096
  case "Space":
2218
1097
  if (t)
2219
- n();
1098
+ r();
2220
1099
  else {
2221
- const d = r();
2222
- d && a(e + d), o();
1100
+ const f = s();
1101
+ f && d(e + f), a();
2223
1102
  }
2224
- l = !0;
1103
+ u = !0;
2225
1104
  break;
2226
1105
  }
2227
- l && i.preventDefault();
1106
+ u && i.preventDefault();
2228
1107
  }
2229
1108
  },
2230
- [e, r, t, n, o, a]
1109
+ [e, s, t, r, a, d]
2231
1110
  );
2232
- return Y(() => (document.addEventListener("keydown", u), () => {
2233
- document.removeEventListener("keydown", u);
2234
- }), [u]), /* @__PURE__ */ c.jsx(gr, {});
1111
+ return M(() => (document.addEventListener("keydown", h), () => {
1112
+ document.removeEventListener("keydown", h);
1113
+ }), [h]), /* @__PURE__ */ o.jsx(ht, {});
2235
1114
  }
2236
- function yr() {
2237
- return /* @__PURE__ */ c.jsx(
1115
+ function pt() {
1116
+ return /* @__PURE__ */ o.jsx(
2238
1117
  "svg",
2239
1118
  {
2240
1119
  xmlns: "http://www.w3.org/2000/svg",
2241
1120
  viewBox: "0 0 24 24",
2242
1121
  fill: "currentColor",
2243
- children: /* @__PURE__ */ c.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
1122
+ children: /* @__PURE__ */ o.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
2244
1123
  }
2245
1124
  );
2246
1125
  }
2247
- function vr() {
2248
- return /* @__PURE__ */ c.jsx(
1126
+ function vt() {
1127
+ return /* @__PURE__ */ o.jsx(
2249
1128
  "svg",
2250
1129
  {
2251
1130
  xmlns: "http://www.w3.org/2000/svg",
2252
1131
  viewBox: "0 0 24 24",
2253
1132
  fill: "currentColor",
2254
- children: /* @__PURE__ */ c.jsx("path", { d: "M19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })
1133
+ children: /* @__PURE__ */ o.jsx("path", { d: "M19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })
2255
1134
  }
2256
1135
  );
2257
1136
  }
2258
- function ni() {
2259
- const e = p((i) => i.isPlaying), t = p((i) => i.pause), n = p((i) => i.getPauseTimeDiff), r = p((i) => i.play), o = B((i) => i.delay), a = B((i) => i.setDelay), u = () => {
1137
+ function tr() {
1138
+ const e = c((i) => i.isPlaying), t = c((i) => i.pause), r = c((i) => i.getPauseTimeDiff), s = c((i) => i.play), a = _((i) => i.delay), d = _((i) => i.setDelay), h = () => {
2260
1139
  if (e)
2261
1140
  t();
2262
1141
  else {
2263
- const i = n();
2264
- i && a(o + i), r();
1142
+ const i = r();
1143
+ i && d(a + i), s();
2265
1144
  }
2266
1145
  };
2267
- return /* @__PURE__ */ c.jsx(xe, { onClick: u, children: e ? /* @__PURE__ */ c.jsx(yr, {}) : /* @__PURE__ */ c.jsx(vr, {}) });
1146
+ return /* @__PURE__ */ o.jsx(G, { onClick: h, children: e ? /* @__PURE__ */ o.jsx(pt, {}) : /* @__PURE__ */ o.jsx(vt, {}) });
2268
1147
  }
2269
- function wr({
1148
+ function gt({
2270
1149
  className: e,
2271
1150
  onClick: t,
2272
- ...n
1151
+ ...r
2273
1152
  }) {
2274
- const r = Z(null), o = p((m) => m.exitFullscreen), a = p((m) => m.isFullscreen), u = p((m) => m.requestFullscreen), i = (m) => {
2275
- h() ? (d(), a ? o() : u()) : l(m);
2276
- }, l = (m) => {
2277
- r.current = window.setTimeout(() => {
2278
- t?.(m), d();
1153
+ const s = $(null), a = c((x) => x.exitFullscreen), d = c((x) => x.isFullscreen), h = c((x) => x.requestFullscreen), i = (x) => {
1154
+ w() ? (f(), d ? a() : h()) : u(x);
1155
+ }, u = (x) => {
1156
+ s.current = window.setTimeout(() => {
1157
+ t?.(x), f();
2279
1158
  }, 200);
2280
- }, d = () => {
2281
- r.current !== null && (window.clearTimeout(r.current), r.current = null);
2282
- }, h = () => r.current !== null;
2283
- return Y(() => () => {
2284
- d();
2285
- }, []), /* @__PURE__ */ c.jsx(
2286
- ri,
1159
+ }, f = () => {
1160
+ s.current !== null && (window.clearTimeout(s.current), s.current = null);
1161
+ }, w = () => s.current !== null;
1162
+ return M(() => () => {
1163
+ f();
1164
+ }, []), /* @__PURE__ */ o.jsx(
1165
+ nr,
2287
1166
  {
2288
1167
  onClick: i,
2289
1168
  className: e,
2290
1169
  "aria-label": "Player playback indicator",
2291
- ...n
1170
+ ...r
2292
1171
  }
2293
1172
  );
2294
1173
  }
2295
- const ri = I.button`
1174
+ const nr = C.button`
2296
1175
  position: absolute;
2297
1176
  top: 0;
2298
1177
  left: 0;
@@ -2311,22 +1190,22 @@ const ri = I.button`
2311
1190
  outline: none;
2312
1191
  }
2313
1192
  `;
2314
- function oi() {
2315
- const e = p((i) => i.isPlaying), t = p((i) => i.pause), n = p((i) => i.getPauseTimeDiff), r = p((i) => i.play), o = B((i) => i.delay), a = B((i) => i.setDelay), u = () => {
1193
+ function rr() {
1194
+ const e = c((i) => i.isPlaying), t = c((i) => i.pause), r = c((i) => i.getPauseTimeDiff), s = c((i) => i.play), a = _((i) => i.delay), d = _((i) => i.setDelay), h = () => {
2316
1195
  if (e)
2317
1196
  t();
2318
1197
  else {
2319
- const i = n();
2320
- i && a(o + i), r();
1198
+ const i = r();
1199
+ i && d(a + i), s();
2321
1200
  }
2322
1201
  };
2323
- return /* @__PURE__ */ c.jsx(wr, { onClick: u });
1202
+ return /* @__PURE__ */ o.jsx(gt, { onClick: h });
2324
1203
  }
2325
- const br = I.div`
1204
+ const yt = C.div`
2326
1205
  position: relative;
2327
1206
  width: 100%;
2328
1207
  margin-bottom: -0.25rem;
2329
- `, xr = I.div`
1208
+ `, xt = C.div`
2330
1209
  position: absolute;
2331
1210
  bottom: 1.75rem;
2332
1211
  left: 0;
@@ -2337,7 +1216,7 @@ const br = I.div`
2337
1216
  opacity: ${({ $isVisible: e }) => e ? 1 : 0};
2338
1217
  transform: ${({ $isVisible: e }) => e ? "translateY(0)" : "translateY(-0.5rem)"};
2339
1218
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
2340
- `, Sr = I.p`
1219
+ `, wt = C.p`
2341
1220
  margin: 0;
2342
1221
  padding: 0.25rem;
2343
1222
  font-variant-numeric: tabular-nums;
@@ -2349,27 +1228,27 @@ const br = I.div`
2349
1228
  color: white;
2350
1229
  background: rgba(0, 0, 0, 0.8);
2351
1230
  border-radius: 1rem;
2352
- `, Pt = yt(({ max: e = 100, min: t = 0, ...n }, r) => /* @__PURE__ */ c.jsxs(
2353
- si,
1231
+ `, xe = ge(({ max: e = 100, min: t = 0, ...r }, s) => /* @__PURE__ */ o.jsxs(
1232
+ or,
2354
1233
  {
2355
- ref: r,
1234
+ ref: s,
2356
1235
  min: t,
2357
1236
  max: e,
2358
1237
  "aria-label": "Player progress",
2359
- onKeyDown: (o) => (
1238
+ onKeyDown: (a) => (
2360
1239
  // Prevent the slider from being controlled by the keyboard
2361
1240
  // when the slider is focused by a click
2362
- o.preventDefault()
1241
+ a.preventDefault()
2363
1242
  ),
2364
- ...n,
1243
+ ...r,
2365
1244
  children: [
2366
- /* @__PURE__ */ c.jsx(ii, { children: /* @__PURE__ */ c.jsx(ai, {}) }),
2367
- /* @__PURE__ */ c.jsx(ci, {})
1245
+ /* @__PURE__ */ o.jsx(ir, { children: /* @__PURE__ */ o.jsx(sr, {}) }),
1246
+ /* @__PURE__ */ o.jsx(ar, {})
2368
1247
  ]
2369
1248
  }
2370
1249
  ));
2371
- Pt.displayName = "PlayerSlider";
2372
- const si = I(vt.Root)`
1250
+ xe.displayName = "PlayerSlider";
1251
+ const or = C(ye.Root)`
2373
1252
  position: relative;
2374
1253
  display: flex;
2375
1254
  align-items: center;
@@ -2383,20 +1262,20 @@ const si = I(vt.Root)`
2383
1262
  cursor: not-allowed;
2384
1263
  opacity: 0.5;
2385
1264
  }
2386
- `, ii = I(vt.Track)`
1265
+ `, ir = C(ye.Track)`
2387
1266
  position: relative;
2388
1267
  height: 0.25rem;
2389
1268
  flex-grow: 1;
2390
1269
  background: rgba(255, 255, 255, 0.2);
2391
1270
  border-radius: 1rem;
2392
1271
  overflow: hidden;
2393
- `, ai = I(vt.Range)`
1272
+ `, sr = C(ye.Range)`
2394
1273
  position: absolute;
2395
1274
  height: 100%;
2396
1275
  background: #f7e406;
2397
1276
  transition: width 0.2s ease-in-out;
2398
1277
  border-radius: 1rem;
2399
- `, ci = I(vt.Thumb)`
1278
+ `, ar = C(ye.Thumb)`
2400
1279
  display: block;
2401
1280
  width: 0.875rem;
2402
1281
  height: 0.875rem;
@@ -2420,7 +1299,7 @@ const si = I(vt.Root)`
2420
1299
  opacity: 0.5;
2421
1300
  }
2422
1301
  `;
2423
- function gt(e) {
1302
+ function ve(e) {
2424
1303
  const t = e.getBoundingClientRect();
2425
1304
  return e.offsetWidth / e.offsetHeight > e.clientWidth / e.clientHeight ? {
2426
1305
  left: t.left * 100,
@@ -2431,95 +1310,95 @@ function gt(e) {
2431
1310
  height: t.height * 100
2432
1311
  } : t;
2433
1312
  }
2434
- const kr = (e, t = 0) => parseInt(
1313
+ const bt = (e, t = 0) => parseInt(
2435
1314
  Math.max(0, (Date.now() - (e + t * 1e3)) / 1e3).toFixed(0)
2436
- ), Er = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), Tr = (e, t) => Math.max(0, (t - e) / 1e3), li = (e, t = 0) => {
2437
- const r = t < 0 ? 0 : t, o = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], a = Math.floor(Math.log(e) / Math.log(1024));
2438
- return `${parseFloat((e / Math.pow(1024, a)).toFixed(r))}${o[a]}`;
1315
+ ), Et = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), Tt = (e, t) => Math.max(0, (t - e) / 1e3), lr = (e, t = 0) => {
1316
+ const s = t < 0 ? 0 : t, a = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], d = Math.floor(Math.log(e) / Math.log(1024));
1317
+ return `${parseFloat((e / Math.pow(1024, d)).toFixed(s))}${a[d]}`;
2439
1318
  };
2440
- function ui({
1319
+ function cr({
2441
1320
  isAuto: e,
2442
1321
  level: t,
2443
- levels: n
1322
+ levels: r
2444
1323
  }) {
2445
- const r = n.length, o = [];
2446
- return r > 1 && o.push({
1324
+ const s = r.length, a = [];
1325
+ return s > 1 && a.push({
2447
1326
  sid: "quality-level-auto",
2448
1327
  label: "Auto",
2449
1328
  value: -1,
2450
1329
  selected: e || t === -1
2451
- }), n.sort(function(a, u) {
2452
- const i = a.height || a.bitrate || 0, l = u.height || u.bitrate || 0;
2453
- return i === l ? 0 : i > l ? 1 : -1;
2454
- }), n.map((a) => {
2455
- const { bitrate: u, height: i, index: l } = a;
2456
- o.push({
2457
- sid: `quality-level-${l}`,
2458
- label: i ? `${i}p` : li(u),
2459
- value: l,
2460
- selected: r === 1 || !e && l === t
1330
+ }), r.sort(function(d, h) {
1331
+ const i = d.height || d.bitrate || 0, u = h.height || h.bitrate || 0;
1332
+ return i === u ? 0 : i > u ? 1 : -1;
1333
+ }), r.map((d) => {
1334
+ const { bitrate: h, height: i, index: u } = d;
1335
+ a.push({
1336
+ sid: `quality-level-${u}`,
1337
+ label: i ? `${i}p` : lr(h),
1338
+ value: u,
1339
+ selected: s === 1 || !e && u === t
2461
1340
  });
2462
- }), o;
2463
- }
2464
- const On = "vod-player-progress-bar";
2465
- function di() {
2466
- const e = Z(null), t = Z(null), [n, r] = q(0), [o, a] = q(0), [u, i] = q(!1), [l, d] = q(-1), [h, m] = q(-1), x = B((D) => D.delay), S = B((D) => D.startTime), C = B((D) => D.endTime), j = B((D) => D.setDelay), V = p((D) => D.isPlaying), b = p((D) => D.addIdleLock), w = p((D) => D.removeIdleLock), v = N(() => {
2467
- r(Er(S, x)), a(Tr(S, C));
2468
- }, [x, C, S]), y = parseFloat(
2469
- (o ? (h !== -1 ? h : n) / o * 100 : 0).toFixed(1)
2470
- ), _ = (D) => {
2471
- m(o * (D[0] / 100)), b(On);
2472
- }, T = () => {
2473
- if (h !== -1) {
2474
- const D = kr(S, h);
2475
- j(D), m(-1), w(On);
2476
- }
2477
- }, k = () => i(!0), U = () => i(!1), J = N(
2478
- (D) => {
2479
- const _e = e.current, pe = t.current;
2480
- if (_e && pe) {
2481
- const G = gt(_e), ne = gt(pe), de = (D.pageX || D.clientX) - G.left, Se = de / G.width;
2482
- if (Se < 0) return;
2483
- let Q = de - ne.width / 2;
2484
- Q < 0 && (Q = 0), Q > G.width - ne.width && (Q = -1), pe.style.left = Q > -1 ? `${Q}px` : "auto", pe.style.right = Q > -1 ? "auto" : "0px", d(Se * o);
1341
+ }), a;
1342
+ }
1343
+ const nt = "vod-player-progress-bar";
1344
+ function ur() {
1345
+ const e = $(null), t = $(null), [r, s] = H(0), [a, d] = H(0), [h, i] = H(!1), [u, f] = H(-1), [w, x] = H(-1), L = _((R) => R.delay), j = _((R) => R.startTime), V = _((R) => R.endTime), U = _((R) => R.setDelay), F = c((R) => R.isPlaying), g = c((R) => R.addIdleLock), E = c((R) => R.removeIdleLock), T = I(() => {
1346
+ s(Et(j, L)), d(Tt(j, V));
1347
+ }, [L, V, j]), B = parseFloat(
1348
+ (a ? (w !== -1 ? w : r) / a * 100 : 0).toFixed(1)
1349
+ ), v = (R) => {
1350
+ x(a * (R[0] / 100)), g(nt);
1351
+ }, Y = () => {
1352
+ if (w !== -1) {
1353
+ const R = bt(j, w);
1354
+ U(R), x(-1), E(nt);
1355
+ }
1356
+ }, X = () => i(!0), K = () => i(!1), Q = I(
1357
+ (R) => {
1358
+ const ue = e.current, ee = t.current;
1359
+ if (ue && ee) {
1360
+ const N = ve(ue), W = ve(ee), J = (R.pageX || R.clientX) - N.left, ie = J / N.width;
1361
+ if (ie < 0) return;
1362
+ let Z = J - W.width / 2;
1363
+ Z < 0 && (Z = 0), Z > N.width - W.width && (Z = -1), ee.style.left = Z > -1 ? `${Z}px` : "auto", ee.style.right = Z > -1 ? "auto" : "0px", f(ie * a);
2485
1364
  }
2486
- k();
1365
+ X();
2487
1366
  },
2488
- [o]
1367
+ [a]
2489
1368
  );
2490
- return wt(() => v(), V ? 1e3 : null), Y(() => {
2491
- v();
2492
- }, [v]), /* @__PURE__ */ c.jsxs(br, { children: [
2493
- /* @__PURE__ */ c.jsx(
2494
- Pt,
1369
+ return ke(() => T(), F ? 1e3 : null), M(() => {
1370
+ T();
1371
+ }, [T]), /* @__PURE__ */ o.jsxs(yt, { children: [
1372
+ /* @__PURE__ */ o.jsx(
1373
+ xe,
2495
1374
  {
2496
1375
  ref: e,
2497
- value: [y],
2498
- onPointerLeave: U,
2499
- onPointerDown: U,
2500
- onPointerMove: J,
2501
- onValueChange: _,
2502
- onValueCommit: T,
1376
+ value: [B],
1377
+ onPointerLeave: K,
1378
+ onPointerDown: K,
1379
+ onPointerMove: Q,
1380
+ onValueChange: v,
1381
+ onValueCommit: Y,
2503
1382
  step: 0.1
2504
1383
  }
2505
1384
  ),
2506
- /* @__PURE__ */ c.jsx(xr, { ref: t, $isVisible: u, children: /* @__PURE__ */ c.jsx(Sr, { children: Be(l) }) })
1385
+ /* @__PURE__ */ o.jsx(xt, { ref: t, $isVisible: h, children: /* @__PURE__ */ o.jsx(wt, { children: oe(u) }) })
2507
1386
  ] });
2508
1387
  }
2509
- function Pr({ children: e }) {
2510
- return /* @__PURE__ */ c.jsx(ei, { children: e });
1388
+ function Ct({ children: e }) {
1389
+ return /* @__PURE__ */ o.jsx(Qn, { children: e });
2511
1390
  }
2512
- function fi({
1391
+ function dr({
2513
1392
  children: e,
2514
1393
  startDate: t,
2515
- endDate: n
1394
+ endDate: r
2516
1395
  }) {
2517
- return /* @__PURE__ */ c.jsx(Co, { startDate: t, endDate: n, children: /* @__PURE__ */ c.jsx(Pr, { children: e }) });
1396
+ return /* @__PURE__ */ o.jsx(kn, { startDate: t, endDate: r, children: /* @__PURE__ */ o.jsx(Ct, { children: e }) });
2518
1397
  }
2519
- const Cr = I.div`
1398
+ const Rt = C.div`
2520
1399
  display: flex;
2521
1400
  align-items: center;
2522
- `, Rr = I.p`
1401
+ `, St = C.p`
2523
1402
  margin: 0;
2524
1403
  padding: 0;
2525
1404
  font-variant-numeric: tabular-nums;
@@ -2527,11 +1406,11 @@ const Cr = I.div`
2527
1406
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
2528
1407
  "Helvetica Neue", Arial, sans-serif;
2529
1408
  font-weight: 500;
2530
- `, jr = I(Rr)`
1409
+ `, Pt = C(St)`
2531
1410
  margin-right: 0.5rem;
2532
- `, Lr = I(Rr)`
1411
+ `, Lt = C(St)`
2533
1412
  margin-left: 0.5rem;
2534
- `, _r = I.p`
1413
+ `, jt = C.p`
2535
1414
  margin: 0;
2536
1415
  padding: 0;
2537
1416
  font-size: 0.8125rem;
@@ -2543,162 +1422,161 @@ const Cr = I.div`
2543
1422
  content: "/";
2544
1423
  }
2545
1424
  `;
2546
- function pi() {
2547
- const [e, t] = q(0), [n, r] = q(0), o = p((d) => d.isPlaying), a = B((d) => d.delay), u = B((d) => d.startTime), i = B((d) => d.endTime), l = N(() => {
2548
- t(Er(u, a)), r(Tr(u, i));
2549
- }, [a, i, u]);
2550
- return wt(() => l(), o ? 1e3 : null), Y(() => {
2551
- l();
2552
- }, [l]), a ? /* @__PURE__ */ c.jsxs(Cr, { children: [
2553
- /* @__PURE__ */ c.jsx(jr, { children: Be(e) }),
2554
- /* @__PURE__ */ c.jsx(_r, {}),
2555
- /* @__PURE__ */ c.jsx(Lr, { children: Be(n) })
1425
+ function fr() {
1426
+ const [e, t] = H(0), [r, s] = H(0), a = c((f) => f.isPlaying), d = _((f) => f.delay), h = _((f) => f.startTime), i = _((f) => f.endTime), u = I(() => {
1427
+ t(Et(h, d)), s(Tt(h, i));
1428
+ }, [d, i, h]);
1429
+ return ke(() => u(), a ? 1e3 : null), M(() => {
1430
+ u();
1431
+ }, [u]), d ? /* @__PURE__ */ o.jsxs(Rt, { children: [
1432
+ /* @__PURE__ */ o.jsx(Pt, { children: oe(e) }),
1433
+ /* @__PURE__ */ o.jsx(jt, {}),
1434
+ /* @__PURE__ */ o.jsx(Lt, { children: oe(r) })
2556
1435
  ] }) : null;
2557
1436
  }
2558
- function hi() {
2559
- return /* @__PURE__ */ c.jsx(
1437
+ function mr() {
1438
+ return /* @__PURE__ */ o.jsx(
2560
1439
  "svg",
2561
1440
  {
2562
1441
  xmlns: "http://www.w3.org/2000/svg",
2563
1442
  viewBox: "0 0 24 24",
2564
1443
  fill: "currentColor",
2565
- children: /* @__PURE__ */ c.jsx("path", { d: "M22 12C22 17.5228 17.5229 22 12 22C6.4772 22 2 17.5228 2 12C2 6.47715 6.4772 2 12 2V4C7.5817 4 4 7.58172 4 12C4 16.4183 7.5817 20 12 20C16.4183 20 20 16.4183 20 12C20 9.53614 18.8862 7.33243 17.1346 5.86492L15 8V2L21 2L18.5535 4.44656C20.6649 6.28002 22 8.9841 22 12Z" })
1444
+ children: /* @__PURE__ */ o.jsx("path", { d: "M22 12C22 17.5228 17.5229 22 12 22C6.4772 22 2 17.5228 2 12C2 6.47715 6.4772 2 12 2V4C7.5817 4 4 7.58172 4 12C4 16.4183 7.5817 20 12 20C16.4183 20 20 16.4183 20 12C20 9.53614 18.8862 7.33243 17.1346 5.86492L15 8V2L21 2L18.5535 4.44656C20.6649 6.28002 22 8.9841 22 12Z" })
2566
1445
  }
2567
1446
  );
2568
1447
  }
2569
- function mi() {
2570
- const e = B((r) => r.startTime), t = B((r) => r.setDelay), n = () => t(kr(e));
2571
- return /* @__PURE__ */ c.jsx(xe, { onClick: n, children: /* @__PURE__ */ c.jsx(hi, {}) });
2572
- }
2573
- function gi({ url: e, isLive: t }) {
2574
- const n = Z(null), r = p((b) => b.level), o = p((b) => b.levels), a = p((b) => b.setLevel), u = p((b) => b.setLevels), i = p((b) => b.techRef), l = p((b) => b.isStarted), [d, h] = q(!1), m = N(
2575
- (b) => {
2576
- if (n.current && (n.current.nextLevel = b, a(null), o)) {
2577
- const w = o.map((v) => ({
2578
- ...v,
2579
- selected: v.value === b
1448
+ function hr() {
1449
+ const e = _((s) => s.startTime), t = _((s) => s.setDelay), r = () => t(bt(e));
1450
+ return /* @__PURE__ */ o.jsx(G, { onClick: r, children: /* @__PURE__ */ o.jsx(mr, {}) });
1451
+ }
1452
+ function pr({ url: e, isLive: t }) {
1453
+ const r = $(null), s = c((g) => g.level), a = c((g) => g.levels), d = c((g) => g.setLevel), h = c((g) => g.setLevels), i = c((g) => g.techRef), u = c((g) => g.isStarted), [f, w] = H(!1), x = I(
1454
+ (g) => {
1455
+ if (r.current && (r.current.nextLevel = g, d(null), a)) {
1456
+ const E = a.map((T) => ({
1457
+ ...T,
1458
+ selected: T.value === g
2580
1459
  }));
2581
- u(w);
1460
+ h(E);
2582
1461
  }
2583
1462
  },
2584
- [o, a, u, n]
2585
- ), x = N(() => {
2586
- n.current && (console.log("[Player][HLS] MEDIA_ATTACHED"), n.current.loadSource(e));
2587
- }, [e]), S = N(() => {
2588
- if (!n.current) return;
1463
+ [a, d, h, r]
1464
+ ), L = I(() => {
1465
+ r.current && (console.log("[Player][HLS] MEDIA_ATTACHED"), r.current.loadSource(e));
1466
+ }, [e]), j = I(() => {
1467
+ if (!r.current) return;
2589
1468
  console.log("[Player][HLS] MANIFEST_LOADED");
2590
- const b = n.current.levels, w = n.current.currentLevel, v = n.current.autoLevelEnabled;
2591
- u(
2592
- ui({
2593
- levels: b.map((y, _) => {
2594
- const { bitrate: T, height: k, width: U } = y;
1469
+ const g = r.current.levels, E = r.current.currentLevel, T = r.current.autoLevelEnabled;
1470
+ h(
1471
+ cr({
1472
+ levels: g.map((B, v) => {
1473
+ const { bitrate: Y, height: X, width: K } = B;
2595
1474
  return {
2596
- bitrate: T,
2597
- height: k,
2598
- index: _,
2599
- width: U
1475
+ bitrate: Y,
1476
+ height: X,
1477
+ index: v,
1478
+ width: K
2600
1479
  };
2601
1480
  }),
2602
- level: w,
2603
- isAuto: v
1481
+ level: E,
1482
+ isAuto: T
2604
1483
  })
2605
1484
  );
2606
- }, [u]), C = N(
1485
+ }, [h]), V = I(
2607
1486
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2608
- (b, w) => {
2609
- if (console.error("[Player][HLS] ERROR", b, w), !!n.current)
2610
- switch (w.type) {
2611
- case se.ErrorTypes.NETWORK_ERROR:
2612
- w.fatal && n.current.startLoad();
1487
+ (g, E) => {
1488
+ if (console.error("[Player][HLS] ERROR", g, E), !!r.current)
1489
+ switch (E.type) {
1490
+ case z.ErrorTypes.NETWORK_ERROR:
1491
+ E.fatal && r.current.startLoad();
2613
1492
  break;
2614
- case se.ErrorTypes.MEDIA_ERROR:
2615
- if (w.fatal) n.current.recoverMediaError();
2616
- else if (w.details === se.ErrorDetails.BUFFER_STALLED_ERROR && t && !d) {
2617
- h(!0), console.log(
1493
+ case z.ErrorTypes.MEDIA_ERROR:
1494
+ if (E.fatal) r.current.recoverMediaError();
1495
+ else if (E.details === z.ErrorDetails.BUFFER_STALLED_ERROR && t && !f) {
1496
+ w(!0), console.log(
2618
1497
  "[Player][HLS] Stream failed, attempting failover retry..."
2619
1498
  );
2620
1499
  try {
2621
- console.log("[Player][HLS] Retrying stream..."), n.current.loadSource(e);
2622
- } catch (v) {
2623
- console.error("[Player][HLS] Failover retry failed:", v);
1500
+ console.log("[Player][HLS] Retrying stream..."), r.current.loadSource(e);
1501
+ } catch (T) {
1502
+ console.error("[Player][HLS] Failover retry failed:", T);
2624
1503
  }
2625
1504
  }
2626
1505
  break;
2627
1506
  }
2628
1507
  },
2629
- [t, d, e]
2630
- ), j = N(() => {
1508
+ [t, f, e]
1509
+ ), U = I(() => {
2631
1510
  if (!i.current) return;
2632
- const b = {
1511
+ const g = {
2633
1512
  backBufferLength: 10,
2634
1513
  startLevel: -1,
2635
1514
  maxBufferSize: 30 * 1024 * 1024
2636
1515
  // 30MB
2637
- }, w = {
1516
+ }, E = {
2638
1517
  backBufferLength: 60,
2639
1518
  startLevel: -1,
2640
1519
  maxBufferSize: 30 * 1024 * 1024
2641
1520
  // 30MB
2642
- }, v = t ? b : w;
1521
+ }, T = t ? g : E;
2643
1522
  try {
2644
- console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(v)), console.log("[Player][HLS] Version", se.version), n.current = new se(v), n.current.attachMedia(i.current), n.current.on(se.Events.MEDIA_ATTACHED, x), n.current.on(se.Events.MANIFEST_LOADED, S), n.current.on(se.Events.ERROR, C);
2645
- } catch (y) {
2646
- throw new Error(`Error initializing Hls: ${y}`);
1523
+ console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(T)), console.log("[Player][HLS] Version", z.version), r.current = new z(T), r.current.attachMedia(i.current), r.current.on(z.Events.MEDIA_ATTACHED, L), r.current.on(z.Events.MANIFEST_LOADED, j), r.current.on(z.Events.ERROR, V);
1524
+ } catch (B) {
1525
+ throw new Error(`Error initializing Hls: ${B}`);
2647
1526
  }
2648
1527
  }, [
2649
- S,
2650
- x,
2651
- C,
1528
+ j,
1529
+ L,
1530
+ V,
2652
1531
  t,
2653
1532
  i,
2654
1533
  e
2655
- ]), V = N(() => {
2656
- n.current && (n.current.off(se.Events.MEDIA_ATTACHED, x), n.current.off(se.Events.MANIFEST_LOADED, S), n.current.off(se.Events.ERROR, C), n.current.destroy(), n.current = null), h(!1);
2657
- }, [S, x, C]);
2658
- return Y(() => {
2659
- r !== null && m(r);
2660
- }, [r, m]), Y(() => {
2661
- l && h(!1);
2662
- }, [l]), Y(() => (se.isSupported() && j(), V), [V, j]), null;
2663
- }
2664
- function Ir({ url: e, isLive: t, isMuted: n = !1 }) {
2665
- const r = p((y) => y.handleDurationChange), o = p((y) => y.handleEnd), a = p((y) => y.handleLoadedMetadata), u = p((y) => y.handleLoadStart), i = p((y) => y.handlePause), l = p((y) => y.handlePlay), d = p((y) => y.handlePlaying), h = p((y) => y.handleSeeked), m = p((y) => y.handleSeeking), x = p((y) => y.handleTimeUpdate), S = p((y) => y.handleWaiting), C = p((y) => y.techRef), j = Z(null), V = (y) => {
2666
- console.error("[Player][Native] ERROR", y);
2667
- }, b = () => t ? {} : {
2668
- onDurationChange: r,
2669
- onSeeked: h,
2670
- onSeeking: m,
2671
- onTimeUpdate: w
2672
- }, w = () => {
2673
- (!j.current || Date.now() - j.current >= 1e3) && (x(), j.current = Date.now());
2674
- }, v = b();
2675
- return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2676
- /* @__PURE__ */ c.jsx(gi, { isLive: t, url: e }),
2677
- /* @__PURE__ */ c.jsx(
2678
- yi,
1534
+ ]), F = I(() => {
1535
+ r.current && (r.current.off(z.Events.MEDIA_ATTACHED, L), r.current.off(z.Events.MANIFEST_LOADED, j), r.current.off(z.Events.ERROR, V), r.current.destroy(), r.current = null), w(!1);
1536
+ }, [j, L, V]);
1537
+ return M(() => {
1538
+ s !== null && x(s);
1539
+ }, [s, x]), M(() => {
1540
+ u && w(!1);
1541
+ }, [u]), M(() => (z.isSupported() && U(), F), [F, U]), null;
1542
+ }
1543
+ function kt({ url: e, isLive: t, isMuted: r = !1 }) {
1544
+ const s = c((v) => v.handleDurationChange), a = c((v) => v.handleEnd), d = c((v) => v.handleLoadedMetadata), h = c((v) => v.handleLoadStart), i = c((v) => v.handlePause), u = c((v) => v.handlePlay), f = c((v) => v.handlePlaying), w = c((v) => v.handleSeeked), x = c((v) => v.handleSeeking), L = c((v) => v.handleTimeUpdate), j = c((v) => v.handleWaiting), V = c((v) => v.handleVolumeChange), U = c((v) => v.handleError), F = c((v) => v.techRef), g = $(null), E = () => t ? {} : {
1545
+ onDurationChange: s,
1546
+ onSeeked: w,
1547
+ onSeeking: x,
1548
+ onTimeUpdate: T
1549
+ }, T = () => {
1550
+ (!g.current || Date.now() - g.current >= 1e3) && (L(), g.current = Date.now());
1551
+ }, B = E();
1552
+ return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1553
+ /* @__PURE__ */ o.jsx(pr, { isLive: t, url: e }),
1554
+ /* @__PURE__ */ o.jsx(
1555
+ vr,
2679
1556
  {
2680
- ref: C,
1557
+ ref: F,
2681
1558
  playsInline: !0,
2682
1559
  autoPlay: !0,
2683
1560
  controls: !1,
2684
- muted: n,
1561
+ muted: r,
2685
1562
  preload: "auto",
2686
1563
  crossOrigin: "anonymous",
2687
- onEnded: o,
2688
- onError: V,
2689
- onLoadedMetadata: a,
2690
- onLoadStart: u,
1564
+ onEnded: a,
1565
+ onError: U,
1566
+ onLoadedMetadata: d,
1567
+ onLoadStart: h,
2691
1568
  onPause: i,
2692
- onPlay: l,
2693
- onPlaying: d,
2694
- onWaiting: S,
1569
+ onPlay: u,
1570
+ onPlaying: f,
1571
+ onWaiting: j,
1572
+ onVolumeChange: V,
2695
1573
  tabIndex: -1,
2696
- ...v
1574
+ ...B
2697
1575
  }
2698
1576
  )
2699
1577
  ] });
2700
1578
  }
2701
- const yi = I.video`
1579
+ const vr = C.video`
2702
1580
  position: relative;
2703
1581
  width: 100%;
2704
1582
  height: 100%;
@@ -2707,17 +1585,26 @@ const yi = I.video`
2707
1585
  pointer-events: none;
2708
1586
  }
2709
1587
  `;
2710
- function vi({ url: e }) {
2711
- const [t, n] = q(null), r = B((a) => a.delay), o = N(async () => {
2712
- n(
2713
- r ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${r}.m3u8`) : e
1588
+ function gr({ url: e }) {
1589
+ const [t, r] = H(null), s = _((d) => d.delay), a = I(async () => {
1590
+ r(
1591
+ s ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${s}.m3u8`) : e
2714
1592
  );
2715
- }, [r, e]);
2716
- return Y(() => {
2717
- o();
2718
- }, [o]), t ? /* @__PURE__ */ c.jsx(Ir, { url: t, isLive: !0 }) : null;
1593
+ }, [s, e]);
1594
+ return M(() => {
1595
+ a();
1596
+ }, [a]), t ? /* @__PURE__ */ o.jsx(kt, { url: t, isLive: !0 }) : null;
1597
+ }
1598
+ function Ft({ callback: e }) {
1599
+ const t = c((r) => r.eventEmitter);
1600
+ return M(() => {
1601
+ const r = () => e("play", void 0), s = () => e("pause", void 0), a = () => e("ended", void 0), d = () => e("seeking", void 0), h = () => e("seeked", void 0), i = (F) => e("timeUpdate", F), u = (F) => e("volumeChange", F), f = (F) => e("fullscreenChange", F), w = (F) => e("qualityChange", F), x = (F) => e("loadedMetadata", F), L = () => e("loadStart", void 0), j = () => e("playing", void 0), V = () => e("waiting", void 0), U = () => e("error", void 0);
1602
+ return t.on("play", r), t.on("pause", s), t.on("ended", a), t.on("seeking", d), t.on("seeked", h), t.on("timeUpdate", i), t.on("volumeChange", u), t.on("fullscreenChange", f), t.on("qualityChange", w), t.on("loadedMetadata", x), t.on("loadStart", L), t.on("playing", j), t.on("waiting", V), t.on("error", U), () => {
1603
+ t.off("play", r), t.off("pause", s), t.off("ended", a), t.off("seeking", d), t.off("seeked", h), t.off("timeUpdate", i), t.off("volumeChange", u), t.off("fullscreenChange", f), t.off("qualityChange", w), t.off("loadedMetadata", x), t.off("loadStart", L), t.off("playing", j), t.off("waiting", V), t.off("error", U);
1604
+ };
1605
+ }, [e, t]), null;
2719
1606
  }
2720
- const Dr = I.div`
1607
+ const Dt = C.div`
2721
1608
  position: absolute;
2722
1609
  top: 0;
2723
1610
  left: 0;
@@ -2726,7 +1613,7 @@ const Dr = I.div`
2726
1613
  color: white;
2727
1614
  background: black;
2728
1615
  overflow: hidden;
2729
- `, Ar = I.div`
1616
+ `, _t = C.div`
2730
1617
  position: absolute;
2731
1618
  left: 0;
2732
1619
  width: 100%;
@@ -2738,7 +1625,7 @@ const Dr = I.div`
2738
1625
  @media (min-width: 768px) {
2739
1626
  padding-top: 2rem;
2740
1627
  }
2741
- `, Or = I.div`
1628
+ `, Mt = C.div`
2742
1629
  display: flex;
2743
1630
  flex-direction: column;
2744
1631
  padding-left: 0.5rem;
@@ -2750,83 +1637,83 @@ const Dr = I.div`
2750
1637
  padding-left: 1rem;
2751
1638
  padding-right: 1rem;
2752
1639
  }
2753
- `, Fr = I.div`
1640
+ `, It = C.div`
2754
1641
  display: flex;
2755
1642
  padding: 0.5rem 0;
2756
1643
  width: 100%;
2757
1644
  align-items: center;
2758
- `, Mr = I.div`
1645
+ `, Vt = C.div`
2759
1646
  display: flex;
2760
1647
  flex: 1;
2761
1648
  align-items: center;
2762
1649
  gap: 0.5rem;
2763
- `, Vr = I(Mr)`
1650
+ `, Ht = C(Vt)`
2764
1651
  justify-content: flex-start;
2765
- `, Nr = I(Mr)`
1652
+ `, Ot = C(Vt)`
2766
1653
  justify-content: flex-end;
2767
1654
  `;
2768
- function wi() {
2769
- return /* @__PURE__ */ c.jsx(
1655
+ function yr() {
1656
+ return /* @__PURE__ */ o.jsx(
2770
1657
  "svg",
2771
1658
  {
2772
1659
  xmlns: "http://www.w3.org/2000/svg",
2773
1660
  viewBox: "0 0 24 24",
2774
1661
  fill: "currentColor",
2775
- children: /* @__PURE__ */ c.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
1662
+ children: /* @__PURE__ */ o.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
2776
1663
  }
2777
1664
  );
2778
1665
  }
2779
- function bi() {
2780
- return /* @__PURE__ */ c.jsx(
1666
+ function xr() {
1667
+ return /* @__PURE__ */ o.jsx(
2781
1668
  "svg",
2782
1669
  {
2783
1670
  xmlns: "http://www.w3.org/2000/svg",
2784
1671
  viewBox: "0 0 24 24",
2785
1672
  fill: "currentColor",
2786
- children: /* @__PURE__ */ c.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
1673
+ children: /* @__PURE__ */ o.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
2787
1674
  }
2788
1675
  );
2789
1676
  }
2790
- function Hr() {
2791
- const e = p((d) => d.containerRef), t = p((d) => d.exitFullscreen), n = p((d) => d.isFullscreen), r = p((d) => d.requestFullscreen), o = p((d) => d.setIsFullscreen), a = p((d) => d.setIsFullscreenReady), u = p((d) => d.techRef), i = N(
2792
- (d) => {
2793
- d.stopPropagation(), o(Us());
1677
+ function At() {
1678
+ const e = c((f) => f.containerRef), t = c((f) => f.exitFullscreen), r = c((f) => f.isFullscreen), s = c((f) => f.requestFullscreen), a = c((f) => f.setIsFullscreen), d = c((f) => f.setIsFullscreenReady), h = c((f) => f.techRef), i = I(
1679
+ (f) => {
1680
+ f.stopPropagation(), a(Un());
2794
1681
  },
2795
- [o]
2796
- ), l = () => {
2797
- n ? t() : r();
1682
+ [a]
1683
+ ), u = () => {
1684
+ r ? t() : s();
2798
1685
  };
2799
- return Y(() => {
2800
- const d = hr ? u.current : e.current;
2801
- if (d)
2802
- return qs(d, i);
2803
- }, [e, i, u]), Y(() => {
2804
- a(!0);
2805
- }, [a]), /* @__PURE__ */ c.jsx(xe, { onClick: l, children: n ? /* @__PURE__ */ c.jsx(bi, {}) : /* @__PURE__ */ c.jsx(wi, {}) });
2806
- }
2807
- const xi = 5 * 1e3;
2808
- function $r({ children: e }) {
2809
- const t = Z(null), [n, r] = q(!1), o = Z(null), u = p((d) => d.idleLocks).size, i = N(() => {
2810
- o.current !== null && (window.clearTimeout(o.current), o.current = null);
2811
- }, []), l = N(() => {
2812
- i(), o.current = window.setTimeout(() => r(!0), xi);
1686
+ return M(() => {
1687
+ const f = ft ? h.current : e.current;
1688
+ if (f)
1689
+ return qn(f, i);
1690
+ }, [e, i, h]), M(() => {
1691
+ d(!0);
1692
+ }, [d]), /* @__PURE__ */ o.jsx(G, { onClick: u, children: r ? /* @__PURE__ */ o.jsx(xr, {}) : /* @__PURE__ */ o.jsx(yr, {}) });
1693
+ }
1694
+ const wr = 5 * 1e3;
1695
+ function $t({ children: e }) {
1696
+ const t = $(null), [r, s] = H(!1), a = $(null), h = c((f) => f.idleLocks).size, i = I(() => {
1697
+ a.current !== null && (window.clearTimeout(a.current), a.current = null);
1698
+ }, []), u = I(() => {
1699
+ i(), a.current = window.setTimeout(() => s(!0), wr);
2813
1700
  }, [i]);
2814
- return Y(() => (r(!1), l(), () => {
1701
+ return M(() => (s(!1), u(), () => {
2815
1702
  i();
2816
- }), [i, l]), Y(() => {
2817
- const d = t.current;
2818
- if (!d) return;
2819
- const h = (x) => {
2820
- n && (x.stopPropagation(), r(!1), l());
2821
- }, m = () => {
2822
- n && r(!1), l();
1703
+ }), [i, u]), M(() => {
1704
+ const f = t.current;
1705
+ if (!f) return;
1706
+ const w = (L) => {
1707
+ r && (L.stopPropagation(), s(!1), u());
1708
+ }, x = () => {
1709
+ r && s(!1), u();
2823
1710
  };
2824
- return d.addEventListener("click", h), d.addEventListener("mousemove", m), () => {
2825
- d.removeEventListener("click", h), d.removeEventListener("mousemove", m);
1711
+ return f.addEventListener("click", w), f.addEventListener("mousemove", x), () => {
1712
+ f.removeEventListener("click", w), f.removeEventListener("mousemove", x);
2826
1713
  };
2827
- }, [t, n, r, l]), /* @__PURE__ */ c.jsx(Si, { ref: t, $isIdle: n && !u, children: e });
1714
+ }, [t, r, s, u]), /* @__PURE__ */ o.jsx(br, { ref: t, $isIdle: r && !h, children: e });
2828
1715
  }
2829
- const Si = I.div`
1716
+ const br = C.div`
2830
1717
  position: absolute;
2831
1718
  top: 0;
2832
1719
  left: 0;
@@ -2836,38 +1723,38 @@ const Si = I.div`
2836
1723
  cursor: ${({ $isIdle: e }) => e ? "none" : "auto"};
2837
1724
  opacity: ${({ $isIdle: e }) => e ? 0 : 1};
2838
1725
  `;
2839
- function ki(e) {
2840
- return /* @__PURE__ */ c.jsx(Ti, { ...e });
1726
+ function Er(e) {
1727
+ return /* @__PURE__ */ o.jsx(Cr, { ...e });
2841
1728
  }
2842
- const Ei = Ds`
1729
+ const Tr = En`
2843
1730
  from {
2844
1731
  transform: rotate(0deg);
2845
1732
  }
2846
1733
  to {
2847
1734
  transform: rotate(360deg);
2848
1735
  }
2849
- `, Ti = I.div`
1736
+ `, Cr = C.div`
2850
1737
  width: 1.5rem;
2851
1738
  height: 1.5rem;
2852
1739
  border: 2px solid white;
2853
1740
  border-bottom-color: transparent;
2854
1741
  border-radius: 50%;
2855
- animation: ${Ei} 1s linear infinite;
1742
+ animation: ${Tr} 1s linear infinite;
2856
1743
  `;
2857
- function Pi(e, t = 500) {
2858
- const [n, r] = q(e);
2859
- return Y(() => {
2860
- const o = window.setTimeout(() => r(e), t);
1744
+ function Rr(e, t = 500) {
1745
+ const [r, s] = H(e);
1746
+ return M(() => {
1747
+ const a = window.setTimeout(() => s(e), t);
2861
1748
  return () => {
2862
- window.clearTimeout(o);
1749
+ window.clearTimeout(a);
2863
1750
  };
2864
- }, [e, t]), n;
1751
+ }, [e, t]), r;
2865
1752
  }
2866
- function zr({ style: e, ...t }) {
2867
- const n = p((o) => o.isLoading);
2868
- return Pi(n, 100) ? /* @__PURE__ */ c.jsx(Ci, { style: e, ...t, children: /* @__PURE__ */ c.jsx(ki, {}) }) : null;
1753
+ function Ut({ style: e, ...t }) {
1754
+ const r = c((a) => a.isLoading);
1755
+ return Rr(r, 100) ? /* @__PURE__ */ o.jsx(Sr, { style: e, ...t, children: /* @__PURE__ */ o.jsx(Er, {}) }) : null;
2869
1756
  }
2870
- const Ci = I.div`
1757
+ const Sr = C.div`
2871
1758
  pointer-events: none;
2872
1759
  position: absolute;
2873
1760
  top: 0;
@@ -2880,43 +1767,43 @@ const Ci = I.div`
2880
1767
  align-items: center;
2881
1768
  justify-content: center;
2882
1769
  `;
2883
- function Ri() {
2884
- return /* @__PURE__ */ c.jsx(
1770
+ function Pr() {
1771
+ return /* @__PURE__ */ o.jsx(
2885
1772
  "svg",
2886
1773
  {
2887
1774
  xmlns: "http://www.w3.org/2000/svg",
2888
1775
  viewBox: "0 0 24 24",
2889
1776
  fill: "currentColor",
2890
- children: /* @__PURE__ */ c.jsx("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })
1777
+ children: /* @__PURE__ */ o.jsx("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })
2891
1778
  }
2892
1779
  );
2893
1780
  }
2894
- function ji() {
2895
- return /* @__PURE__ */ c.jsx(
1781
+ function Lr() {
1782
+ return /* @__PURE__ */ o.jsx(
2896
1783
  "svg",
2897
1784
  {
2898
1785
  xmlns: "http://www.w3.org/2000/svg",
2899
1786
  viewBox: "0 0 24 24",
2900
1787
  fill: "currentColor",
2901
- children: /* @__PURE__ */ c.jsx("path", { d: "M4 5V19H20V5H4ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM7.5 11.25H9.5V9H11V15H9.5V12.75H7.5V15H6V9H7.5V11.25ZM14.5 10.5V13.5H16C16.2761 13.5 16.5 13.2761 16.5 13V11C16.5 10.7239 16.2761 10.5 16 10.5H14.5ZM13 9H16C17.1046 9 18 9.89543 18 11V13C18 14.1046 17.1046 15 16 15H13V9Z" })
1788
+ children: /* @__PURE__ */ o.jsx("path", { d: "M4 5V19H20V5H4ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM7.5 11.25H9.5V9H11V15H9.5V12.75H7.5V15H6V9H7.5V11.25ZM14.5 10.5V13.5H16C16.2761 13.5 16.5 13.2761 16.5 13V11C16.5 10.7239 16.2761 10.5 16 10.5H14.5ZM13 9H16C17.1046 9 18 9.89543 18 11V13C18 14.1046 17.1046 15 16 15H13V9Z" })
2902
1789
  }
2903
1790
  );
2904
1791
  }
2905
- const Li = Qe.Root, _i = Qe.Trigger, Ii = Qe.Portal, Br = yt(({ sideOffset: e = 4, ...t }, n) => /* @__PURE__ */ c.jsx(
2906
- Di,
1792
+ const jr = ce.Root, kr = ce.Trigger, Fr = ce.Portal, Bt = ge(({ sideOffset: e = 4, ...t }, r) => /* @__PURE__ */ o.jsx(
1793
+ Dr,
2907
1794
  {
2908
- ref: n,
1795
+ ref: r,
2909
1796
  sideOffset: e,
2910
- onCloseAutoFocus: (r) => {
2911
- r.preventDefault();
1797
+ onCloseAutoFocus: (s) => {
1798
+ s.preventDefault();
2912
1799
  },
2913
1800
  ...t
2914
1801
  }
2915
1802
  ));
2916
- Br.displayName = "PlayerDropdownMenuContent";
2917
- const Ur = yt((e, t) => /* @__PURE__ */ c.jsx(Ai, { ref: t, ...e }));
2918
- Ur.displayName = "PlayerDropdownMenuItem";
2919
- const Di = I(Qe.Content).withConfig({
1803
+ Bt.displayName = "PlayerDropdownMenuContent";
1804
+ const Nt = ge((e, t) => /* @__PURE__ */ o.jsx(_r, { ref: t, ...e }));
1805
+ Nt.displayName = "PlayerDropdownMenuItem";
1806
+ const Dr = C(ce.Content).withConfig({
2920
1807
  shouldForwardProp: (e) => e !== "ref"
2921
1808
  })`
2922
1809
  padding: 0.25rem;
@@ -2993,7 +1880,7 @@ const Di = I(Qe.Content).withConfig({
2993
1880
  transform: translateX(0);
2994
1881
  }
2995
1882
  }
2996
- `, Ai = I(Qe.Item)`
1883
+ `, _r = C(ce.Item)`
2997
1884
  position: relative;
2998
1885
  display: flex;
2999
1886
  align-items: center;
@@ -3030,87 +1917,87 @@ const Di = I(Qe.Content).withConfig({
3030
1917
  color: rgba(255, 255, 255, 0.5);
3031
1918
  pointer-events: none;
3032
1919
  }
3033
- `, Fn = "settings";
3034
- function Wr() {
3035
- const [e, t] = q(!1), n = p((l) => l.containerRef), r = p((l) => l.addIdleLock), o = p((l) => l.removeIdleLock), a = p((l) => l.levels), u = p((l) => l.setLevel), i = N(
3036
- (l) => {
3037
- t(l), l ? r(Fn) : o(Fn);
1920
+ `, rt = "settings";
1921
+ function qt() {
1922
+ const [e, t] = H(!1), r = c((u) => u.containerRef), s = c((u) => u.addIdleLock), a = c((u) => u.removeIdleLock), d = c((u) => u.levels), h = c((u) => u.setLevel), i = I(
1923
+ (u) => {
1924
+ t(u), u ? s(rt) : a(rt);
3038
1925
  },
3039
- [r, o]
1926
+ [s, a]
3040
1927
  );
3041
- return /* @__PURE__ */ c.jsxs(Li, { open: e, onOpenChange: i, children: [
3042
- /* @__PURE__ */ c.jsx(_i, { asChild: !0, children: /* @__PURE__ */ c.jsx(xe, { children: /* @__PURE__ */ c.jsx(ji, {}) }) }),
3043
- /* @__PURE__ */ c.jsx(Ii, { container: n.current, children: /* @__PURE__ */ c.jsx(Br, { side: "top", align: "end", children: a?.map((l) => /* @__PURE__ */ c.jsxs(
3044
- Ur,
1928
+ return /* @__PURE__ */ o.jsxs(jr, { open: e, onOpenChange: i, children: [
1929
+ /* @__PURE__ */ o.jsx(kr, { asChild: !0, children: /* @__PURE__ */ o.jsx(G, { children: /* @__PURE__ */ o.jsx(Lr, {}) }) }),
1930
+ /* @__PURE__ */ o.jsx(Fr, { container: r.current, children: /* @__PURE__ */ o.jsx(Bt, { side: "top", align: "end", children: d?.map((u) => /* @__PURE__ */ o.jsxs(
1931
+ Nt,
3045
1932
  {
3046
- onClick: () => u(l.value),
1933
+ onClick: () => h(u.value),
3047
1934
  children: [
3048
- l.label,
3049
- l.selected && /* @__PURE__ */ c.jsx(Ri, {})
1935
+ u.label,
1936
+ u.selected && /* @__PURE__ */ o.jsx(Pr, {})
3050
1937
  ]
3051
1938
  },
3052
- l.sid
1939
+ u.sid
3053
1940
  )) }) })
3054
1941
  ] });
3055
1942
  }
3056
- function Oi() {
3057
- return /* @__PURE__ */ c.jsx(
1943
+ function Mr() {
1944
+ return /* @__PURE__ */ o.jsx(
3058
1945
  "svg",
3059
1946
  {
3060
1947
  xmlns: "http://www.w3.org/2000/svg",
3061
1948
  viewBox: "0 0 24 24",
3062
1949
  fill: "currentColor",
3063
- children: /* @__PURE__ */ c.jsx("path", { d: "M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" })
1950
+ children: /* @__PURE__ */ o.jsx("path", { d: "M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" })
3064
1951
  }
3065
1952
  );
3066
1953
  }
3067
- function Fi() {
3068
- return /* @__PURE__ */ c.jsx(
1954
+ function Ir() {
1955
+ return /* @__PURE__ */ o.jsx(
3069
1956
  "svg",
3070
1957
  {
3071
1958
  xmlns: "http://www.w3.org/2000/svg",
3072
1959
  viewBox: "0 0 24 24",
3073
1960
  fill: "currentColor",
3074
- children: /* @__PURE__ */ c.jsx("path", { d: "M13 7.22056L9.60282 10.0001H6V14.0001H9.60282L13 16.7796V7.22056ZM8.88889 16.0001H5C4.44772 16.0001 4 15.5524 4 15.0001V9.00007C4 8.44778 4.44772 8.00007 5 8.00007H8.88889L14.1834 3.66821C14.3971 3.49335 14.7121 3.52485 14.887 3.73857C14.9601 3.8279 15 3.93977 15 4.05519V19.9449C15 20.2211 14.7761 20.4449 14.5 20.4449C14.3846 20.4449 14.2727 20.405 14.1834 20.3319L8.88889 16.0001ZM18.8631 16.5911L17.4411 15.1691C18.3892 14.4376 19 13.2902 19 12.0001C19 10.5697 18.2493 9.31476 17.1203 8.60766L18.5589 7.16906C20.0396 8.26166 21 10.0187 21 12.0001C21 13.8422 20.1698 15.4905 18.8631 16.5911Z" })
1961
+ children: /* @__PURE__ */ o.jsx("path", { d: "M13 7.22056L9.60282 10.0001H6V14.0001H9.60282L13 16.7796V7.22056ZM8.88889 16.0001H5C4.44772 16.0001 4 15.5524 4 15.0001V9.00007C4 8.44778 4.44772 8.00007 5 8.00007H8.88889L14.1834 3.66821C14.3971 3.49335 14.7121 3.52485 14.887 3.73857C14.9601 3.8279 15 3.93977 15 4.05519V19.9449C15 20.2211 14.7761 20.4449 14.5 20.4449C14.3846 20.4449 14.2727 20.405 14.1834 20.3319L8.88889 16.0001ZM18.8631 16.5911L17.4411 15.1691C18.3892 14.4376 19 13.2902 19 12.0001C19 10.5697 18.2493 9.31476 17.1203 8.60766L18.5589 7.16906C20.0396 8.26166 21 10.0187 21 12.0001C21 13.8422 20.1698 15.4905 18.8631 16.5911Z" })
3075
1962
  }
3076
1963
  );
3077
1964
  }
3078
- function Mi() {
3079
- return /* @__PURE__ */ c.jsx(
1965
+ function Vr() {
1966
+ return /* @__PURE__ */ o.jsx(
3080
1967
  "svg",
3081
1968
  {
3082
1969
  xmlns: "http://www.w3.org/2000/svg",
3083
1970
  viewBox: "0 0 24 24",
3084
1971
  fill: "currentColor",
3085
- children: /* @__PURE__ */ c.jsx("path", { d: "M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z" })
1972
+ children: /* @__PURE__ */ o.jsx("path", { d: "M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z" })
3086
1973
  }
3087
1974
  );
3088
1975
  }
3089
- const Mn = "volume";
3090
- function Yr() {
3091
- p((i) => i.containerRef);
3092
- const e = p((i) => i.setVolume), t = p((i) => i.volume), n = p((i) => i.addIdleLock), r = p((i) => i.removeIdleLock), o = (i) => {
3093
- e(i[0]), n(Mn);
3094
- }, a = () => {
3095
- r(Mn);
3096
- }, u = () => e(t ? 0 : 100);
3097
- return /* @__PURE__ */ c.jsxs(Vi, { children: [
3098
- /* @__PURE__ */ c.jsx(xe, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ c.jsx(Oi, {}) : /* @__PURE__ */ c.jsx(Fi, {}) : /* @__PURE__ */ c.jsx(Mi, {}) }),
3099
- /* @__PURE__ */ c.jsx(qr, { children: /* @__PURE__ */ c.jsx(
3100
- Pt,
1976
+ const ot = "volume";
1977
+ function zt() {
1978
+ c((i) => i.containerRef);
1979
+ const e = c((i) => i.setVolume), t = c((i) => i.volume), r = c((i) => i.addIdleLock), s = c((i) => i.removeIdleLock), a = (i) => {
1980
+ e(i[0]), r(ot);
1981
+ }, d = () => {
1982
+ s(ot);
1983
+ }, h = () => e(t ? 0 : 100);
1984
+ return /* @__PURE__ */ o.jsxs(Hr, { children: [
1985
+ /* @__PURE__ */ o.jsx(G, { onClick: h, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ o.jsx(Mr, {}) : /* @__PURE__ */ o.jsx(Ir, {}) : /* @__PURE__ */ o.jsx(Vr, {}) }),
1986
+ /* @__PURE__ */ o.jsx(Wt, { children: /* @__PURE__ */ o.jsx(
1987
+ xe,
3101
1988
  {
3102
1989
  value: [t],
3103
- onValueChange: o,
3104
- onValueCommit: a
1990
+ onValueChange: a,
1991
+ onValueCommit: d
3105
1992
  }
3106
1993
  ) })
3107
1994
  ] });
3108
1995
  }
3109
- const qr = I.div`
1996
+ const Wt = C.div`
3110
1997
  width: 0;
3111
1998
  opacity: 0;
3112
1999
  transition: all 0.2s ease-in-out;
3113
- `, Vi = I.div`
2000
+ `, Hr = C.div`
3114
2001
  display: flex;
3115
2002
  align-items: center;
3116
2003
  gap: 0.25rem;
@@ -3121,50 +2008,60 @@ const qr = I.div`
3121
2008
  &:hover {
3122
2009
  width: 6rem;
3123
2010
 
3124
- ${qr} {
2011
+ ${Wt} {
3125
2012
  width: 100%;
3126
2013
  opacity: 1;
3127
2014
  }
3128
2015
  }
3129
2016
  }
3130
2017
  `;
3131
- function Ji({ url: e, startDate: t, endDate: n, messages: r }) {
3132
- return /* @__PURE__ */ c.jsx(
3133
- fi,
2018
+ function Xr({
2019
+ url: e,
2020
+ startDate: t,
2021
+ endDate: r,
2022
+ messages: s,
2023
+ onEvent: a
2024
+ }) {
2025
+ return /* @__PURE__ */ o.jsx(
2026
+ dr,
3134
2027
  {
3135
2028
  startDate: new Date(t),
3136
- endDate: new Date(n),
3137
- children: /* @__PURE__ */ c.jsx(Ni, { url: e, messages: r })
2029
+ endDate: new Date(r),
2030
+ children: /* @__PURE__ */ o.jsx(Or, { url: e, messages: s, onEvent: a })
3138
2031
  }
3139
2032
  );
3140
2033
  }
3141
- function Ni({ url: e, messages: t }) {
3142
- const n = p((r) => r.containerRef);
3143
- return /* @__PURE__ */ c.jsxs(Dr, { ref: n, children: [
3144
- /* @__PURE__ */ c.jsxs(
3145
- As,
2034
+ function Or({
2035
+ url: e,
2036
+ messages: t,
2037
+ onEvent: r
2038
+ }) {
2039
+ const s = c((a) => a.containerRef);
2040
+ return /* @__PURE__ */ o.jsxs(Dt, { ref: s, children: [
2041
+ /* @__PURE__ */ o.jsxs(
2042
+ Fn,
3146
2043
  {
3147
2044
  eventFinishedMessage: t?.eventFinished,
3148
2045
  eventNotStartedMessage: t?.eventNotStarted,
3149
2046
  eventStartingSoonMessage: t?.eventStartingSoon,
3150
2047
  children: [
3151
- /* @__PURE__ */ c.jsx(vi, { url: e }),
3152
- /* @__PURE__ */ c.jsx(zr, {}),
3153
- /* @__PURE__ */ c.jsxs($r, { children: [
3154
- /* @__PURE__ */ c.jsx(oi, {}),
3155
- /* @__PURE__ */ c.jsx(Ar, { children: /* @__PURE__ */ c.jsxs(Or, { children: [
3156
- /* @__PURE__ */ c.jsx(di, {}),
3157
- /* @__PURE__ */ c.jsxs(Fr, { children: [
3158
- /* @__PURE__ */ c.jsxs(Vr, { children: [
3159
- /* @__PURE__ */ c.jsx(ni, {}),
3160
- /* @__PURE__ */ c.jsx(mi, {}),
3161
- /* @__PURE__ */ c.jsx(Yr, {}),
3162
- /* @__PURE__ */ c.jsx(pi, {})
2048
+ /* @__PURE__ */ o.jsx(gr, { url: e }),
2049
+ /* @__PURE__ */ o.jsx(Ut, {}),
2050
+ /* @__PURE__ */ o.jsxs($t, { children: [
2051
+ /* @__PURE__ */ o.jsx(rr, {}),
2052
+ /* @__PURE__ */ o.jsx(_t, { children: /* @__PURE__ */ o.jsxs(Mt, { children: [
2053
+ /* @__PURE__ */ o.jsx(ur, {}),
2054
+ /* @__PURE__ */ o.jsxs(It, { children: [
2055
+ /* @__PURE__ */ o.jsxs(Ht, { children: [
2056
+ /* @__PURE__ */ o.jsx(tr, {}),
2057
+ /* @__PURE__ */ o.jsx(hr, {}),
2058
+ /* @__PURE__ */ o.jsx(zt, {}),
2059
+ /* @__PURE__ */ o.jsx(fr, {})
3163
2060
  ] }),
3164
- /* @__PURE__ */ c.jsxs(Nr, { children: [
3165
- /* @__PURE__ */ c.jsx(Hs, { message: t?.live }),
3166
- /* @__PURE__ */ c.jsx(Wr, {}),
3167
- /* @__PURE__ */ c.jsx(Hr, {})
2061
+ /* @__PURE__ */ o.jsxs(Ot, { children: [
2062
+ /* @__PURE__ */ o.jsx(Hn, { message: t?.live }),
2063
+ /* @__PURE__ */ o.jsx(qt, {}),
2064
+ /* @__PURE__ */ o.jsx(At, {})
3168
2065
  ] })
3169
2066
  ] })
3170
2067
  ] }) })
@@ -3172,156 +2069,126 @@ function Ni({ url: e, messages: t }) {
3172
2069
  ]
3173
2070
  }
3174
2071
  ),
3175
- /* @__PURE__ */ c.jsx(ti, {})
2072
+ /* @__PURE__ */ o.jsx(er, {}),
2073
+ r && /* @__PURE__ */ o.jsx(Ft, { callback: r })
3176
2074
  ] });
3177
2075
  }
3178
- function Hi() {
3179
- const e = p((i) => i.currentTime), t = p((i) => i.duration), n = p((i) => i.isPlaying), r = p((i) => i.pause), o = p((i) => i.play), a = p((i) => i.seek), u = N(
2076
+ function Ar() {
2077
+ const e = c((i) => i.currentTime), t = c((i) => i.duration), r = c((i) => i.isPlaying), s = c((i) => i.pause), a = c((i) => i.play), d = c((i) => i.seek), h = I(
3180
2078
  (i) => {
3181
- let l = !1;
2079
+ let u = !1;
3182
2080
  if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
3183
2081
  switch (i.code) {
3184
2082
  case "ArrowLeft":
3185
- a(e - 10 >= 0 ? e - 10 : 0), l = !0;
2083
+ d(e - 10 >= 0 ? e - 10 : 0), u = !0;
3186
2084
  break;
3187
2085
  case "ArrowRight":
3188
- a(e + 10 < t ? e + 10 : t), l = !0;
2086
+ d(e + 10 < t ? e + 10 : t), u = !0;
3189
2087
  break;
3190
2088
  case "Space":
3191
- n ? r() : o(), l = !0;
2089
+ r ? s() : a(), u = !0;
3192
2090
  break;
3193
2091
  }
3194
- l && i.preventDefault();
2092
+ u && i.preventDefault();
3195
2093
  }
3196
2094
  },
3197
- [e, t, n, r, o, a]
2095
+ [e, t, r, s, a, d]
3198
2096
  );
3199
- return Y(() => (document.addEventListener("keydown", u), () => {
3200
- document.removeEventListener("keydown", u);
3201
- }), [u]), /* @__PURE__ */ c.jsx(gr, {});
2097
+ return M(() => (document.addEventListener("keydown", h), () => {
2098
+ document.removeEventListener("keydown", h);
2099
+ }), [h]), /* @__PURE__ */ o.jsx(ht, {});
3202
2100
  }
3203
- function $i() {
3204
- const e = p((o) => o.isPlaying), t = p((o) => o.pause), n = p((o) => o.play), r = () => {
3205
- e ? t() : n();
2101
+ function $r() {
2102
+ const e = c((a) => a.isPlaying), t = c((a) => a.pause), r = c((a) => a.play), s = () => {
2103
+ e ? t() : r();
3206
2104
  };
3207
- return /* @__PURE__ */ c.jsx(xe, { onClick: r, children: e ? /* @__PURE__ */ c.jsx(yr, {}) : /* @__PURE__ */ c.jsx(vr, {}) });
2105
+ return /* @__PURE__ */ o.jsx(G, { onClick: s, children: e ? /* @__PURE__ */ o.jsx(pt, {}) : /* @__PURE__ */ o.jsx(vt, {}) });
3208
2106
  }
3209
- function zi() {
3210
- const e = p((o) => o.isPlaying), t = p((o) => o.pause), n = p((o) => o.play), r = () => {
3211
- e ? t() : n();
2107
+ function Ur() {
2108
+ const e = c((a) => a.isPlaying), t = c((a) => a.pause), r = c((a) => a.play), s = () => {
2109
+ e ? t() : r();
3212
2110
  };
3213
- return /* @__PURE__ */ c.jsx(wr, { onClick: r });
3214
- }
3215
- const Vn = "vod-player-progress-bar";
3216
- function Bi() {
3217
- const e = Z(null), t = Z(null), [n, r] = q(!1), [o, a] = q(-1), [u, i] = q(-1), l = p((v) => v.currentTime), d = p((v) => v.duration), h = p((v) => v.seek), m = p((v) => v.addIdleLock), x = p((v) => v.removeIdleLock), S = parseFloat(
3218
- (d ? (u !== -1 ? u : l) / d * 100 : 0).toFixed(1)
3219
- ), C = (v) => {
3220
- i(d * (v[0] / 100)), m(Vn);
3221
- }, j = () => {
3222
- u !== -1 && (h(u), i(-1), x(Vn));
3223
- }, V = () => r(!0), b = () => r(!1), w = N(
3224
- (v) => {
3225
- const y = e.current, _ = t.current;
3226
- if (y && _) {
3227
- const T = gt(y), k = gt(_), U = (v.pageX || v.clientX) - T.left, J = U / T.width;
3228
- if (J < 0) return;
3229
- let D = U - k.width / 2;
3230
- D < 0 && (D = 0), D > T.width - k.width && (D = -1), _.style.left = D > -1 ? `${D}px` : "auto", _.style.right = D > -1 ? "auto" : "0px", a(J * d);
2111
+ return /* @__PURE__ */ o.jsx(gt, { onClick: s });
2112
+ }
2113
+ const it = "vod-player-progress-bar";
2114
+ function Br() {
2115
+ const e = $(null), t = $(null), [r, s] = H(!1), [a, d] = H(-1), [h, i] = H(-1), u = c((T) => T.currentTime), f = c((T) => T.duration), w = c((T) => T.seek), x = c((T) => T.addIdleLock), L = c((T) => T.removeIdleLock), j = parseFloat(
2116
+ (f ? (h !== -1 ? h : u) / f * 100 : 0).toFixed(1)
2117
+ ), V = (T) => {
2118
+ i(f * (T[0] / 100)), x(it);
2119
+ }, U = () => {
2120
+ h !== -1 && (w(h), i(-1), L(it));
2121
+ }, F = () => s(!0), g = () => s(!1), E = I(
2122
+ (T) => {
2123
+ const B = e.current, v = t.current;
2124
+ if (B && v) {
2125
+ const Y = ve(B), X = ve(v), K = (T.pageX || T.clientX) - Y.left, Q = K / Y.width;
2126
+ if (Q < 0) return;
2127
+ let R = K - X.width / 2;
2128
+ R < 0 && (R = 0), R > Y.width - X.width && (R = -1), v.style.left = R > -1 ? `${R}px` : "auto", v.style.right = R > -1 ? "auto" : "0px", d(Q * f);
3231
2129
  }
3232
- V();
2130
+ F();
3233
2131
  },
3234
- [d]
2132
+ [f]
3235
2133
  );
3236
- return /* @__PURE__ */ c.jsxs(br, { children: [
3237
- /* @__PURE__ */ c.jsx(
3238
- Pt,
2134
+ return /* @__PURE__ */ o.jsxs(yt, { children: [
2135
+ /* @__PURE__ */ o.jsx(
2136
+ xe,
3239
2137
  {
3240
2138
  ref: e,
3241
- value: [S],
3242
- onPointerLeave: b,
3243
- onPointerDown: b,
3244
- onPointerMove: w,
3245
- onValueChange: C,
3246
- onValueCommit: j,
2139
+ value: [j],
2140
+ onPointerLeave: g,
2141
+ onPointerDown: g,
2142
+ onPointerMove: E,
2143
+ onValueChange: V,
2144
+ onValueCommit: U,
3247
2145
  step: 0.1
3248
2146
  }
3249
2147
  ),
3250
- /* @__PURE__ */ c.jsx(xr, { ref: t, $isVisible: n, children: /* @__PURE__ */ c.jsx(Sr, { children: Be(o) }) })
3251
- ] });
3252
- }
3253
- function Ui() {
3254
- const e = p((n) => n.currentTime), t = p((n) => n.duration);
3255
- return /* @__PURE__ */ c.jsxs(Cr, { children: [
3256
- /* @__PURE__ */ c.jsx(jr, { children: Be(e) }),
3257
- /* @__PURE__ */ c.jsx(_r, {}),
3258
- /* @__PURE__ */ c.jsx(Lr, { children: Be(t) })
2148
+ /* @__PURE__ */ o.jsx(xt, { ref: t, $isVisible: r, children: /* @__PURE__ */ o.jsx(wt, { children: oe(a) }) })
3259
2149
  ] });
3260
2150
  }
3261
- const Wi = 60, Yi = 95;
3262
- function qi({ storageKey: e }) {
3263
- const t = p((h) => h.currentTime), n = p((h) => h.duration), r = p((h) => h.isPlaying), o = p((h) => h.setStartTime), a = Z(!1), u = N(() => {
3264
- window.localStorage.setItem(
3265
- e,
3266
- JSON.stringify({
3267
- currentTime: t,
3268
- duration: n
3269
- })
3270
- );
3271
- }, [t, n, e]), i = N(() => {
3272
- const h = window.localStorage.getItem(e);
3273
- if (h) {
3274
- const m = JSON.parse(h);
3275
- return {
3276
- startTime: m.currentTime,
3277
- progress: m.currentTime / m.duration * 100
3278
- };
3279
- }
3280
- return { startTime: null, progress: null };
3281
- }, [e]), l = N(() => {
3282
- t < Wi || u();
3283
- }, [t, u]), d = N(() => {
3284
- if (a.current) return;
3285
- const { progress: h, startTime: m } = i();
3286
- m && h && h < Yi && (o(m), a.current = !0);
3287
- }, [i, o]);
3288
- return wt(() => l(), r ? 1e3 : null), Y(() => {
3289
- d();
3290
- }, [d]), null;
3291
- }
3292
- function Qi({ url: e, watchHistory: t }) {
3293
- return /* @__PURE__ */ c.jsxs(Pr, { children: [
3294
- /* @__PURE__ */ c.jsx(Zi, { url: e }),
3295
- t?.enabled && /* @__PURE__ */ c.jsx(qi, { storageKey: t.storageKey })
2151
+ function Nr() {
2152
+ const e = c((r) => r.currentTime), t = c((r) => r.duration);
2153
+ return /* @__PURE__ */ o.jsxs(Rt, { children: [
2154
+ /* @__PURE__ */ o.jsx(Pt, { children: oe(e) }),
2155
+ /* @__PURE__ */ o.jsx(jt, {}),
2156
+ /* @__PURE__ */ o.jsx(Lt, { children: oe(t) })
3296
2157
  ] });
3297
2158
  }
3298
- function Zi({ url: e }) {
3299
- const t = p((n) => n.containerRef);
3300
- return /* @__PURE__ */ c.jsxs(Dr, { ref: t, children: [
3301
- /* @__PURE__ */ c.jsx(Ir, { url: e, isLive: !1 }),
3302
- /* @__PURE__ */ c.jsx(zr, {}),
3303
- /* @__PURE__ */ c.jsxs($r, { children: [
3304
- /* @__PURE__ */ c.jsx(zi, {}),
3305
- /* @__PURE__ */ c.jsx(Ar, { children: /* @__PURE__ */ c.jsxs(Or, { children: [
3306
- /* @__PURE__ */ c.jsx(Bi, {}),
3307
- /* @__PURE__ */ c.jsxs(Fr, { children: [
3308
- /* @__PURE__ */ c.jsxs(Vr, { children: [
3309
- /* @__PURE__ */ c.jsx($i, {}),
3310
- /* @__PURE__ */ c.jsx(Yr, {}),
3311
- /* @__PURE__ */ c.jsx(Ui, {})
2159
+ function Jr(e) {
2160
+ return /* @__PURE__ */ o.jsx(Ct, { children: /* @__PURE__ */ o.jsx(qr, { ...e }) });
2161
+ }
2162
+ function qr({ url: e, onEvent: t, startTime: r }) {
2163
+ const s = c((d) => d.setStartTime), a = c((d) => d.containerRef);
2164
+ return M(() => {
2165
+ r && s(r);
2166
+ }, [r, s]), /* @__PURE__ */ o.jsxs(Dt, { ref: a, children: [
2167
+ /* @__PURE__ */ o.jsx(kt, { url: e, isLive: !1 }),
2168
+ /* @__PURE__ */ o.jsx(Ut, {}),
2169
+ /* @__PURE__ */ o.jsxs($t, { children: [
2170
+ /* @__PURE__ */ o.jsx(Ur, {}),
2171
+ /* @__PURE__ */ o.jsx(_t, { children: /* @__PURE__ */ o.jsxs(Mt, { children: [
2172
+ /* @__PURE__ */ o.jsx(Br, {}),
2173
+ /* @__PURE__ */ o.jsxs(It, { children: [
2174
+ /* @__PURE__ */ o.jsxs(Ht, { children: [
2175
+ /* @__PURE__ */ o.jsx($r, {}),
2176
+ /* @__PURE__ */ o.jsx(zt, {}),
2177
+ /* @__PURE__ */ o.jsx(Nr, {})
3312
2178
  ] }),
3313
- /* @__PURE__ */ c.jsxs(Nr, { children: [
3314
- /* @__PURE__ */ c.jsx(Wr, {}),
3315
- /* @__PURE__ */ c.jsx(Hr, {})
2179
+ /* @__PURE__ */ o.jsxs(Ot, { children: [
2180
+ /* @__PURE__ */ o.jsx(qt, {}),
2181
+ /* @__PURE__ */ o.jsx(At, {})
3316
2182
  ] })
3317
2183
  ] })
3318
2184
  ] }) })
3319
2185
  ] }),
3320
- /* @__PURE__ */ c.jsx(Hi, {})
2186
+ /* @__PURE__ */ o.jsx(Ar, {}),
2187
+ t && /* @__PURE__ */ o.jsx(Ft, { callback: t })
3321
2188
  ] });
3322
2189
  }
3323
2190
  export {
3324
- Ji as LivePlayer,
3325
- Qi as VodPlayer
2191
+ Xr as LivePlayer,
2192
+ Jr as VodPlayer
3326
2193
  };
3327
2194
  //# sourceMappingURL=react-video-player.es.js.map