@halibegic/react-video-player 0.0.31 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +1,29 @@
1
- var Zn = Object.defineProperty, qn = Object.defineProperties;
1
+ var qn = Object.defineProperty, Zn = Object.defineProperties;
2
2
  var Yn = Object.getOwnPropertyDescriptors;
3
- var Ee = Object.getOwnPropertySymbols;
3
+ var Te = Object.getOwnPropertySymbols;
4
4
  var vt = Object.prototype.hasOwnProperty, pt = Object.prototype.propertyIsEnumerable;
5
- var mt = (e, t, n) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, j = (e, t) => {
5
+ var mt = (e, t, n) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, b = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
7
  vt.call(t, n) && mt(e, n, t[n]);
8
- if (Ee)
9
- for (var n of Ee(t))
8
+ if (Te)
9
+ for (var n of Te(t))
10
10
  pt.call(t, n) && mt(e, n, t[n]);
11
11
  return e;
12
- }, he = (e, t) => qn(e, Yn(t));
12
+ }, he = (e, t) => Zn(e, Yn(t));
13
13
  var G = (e, t) => {
14
14
  var n = {};
15
15
  for (var o in e)
16
16
  vt.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
17
- if (e != null && Ee)
18
- for (var o of Ee(e))
17
+ if (e != null && Te)
18
+ for (var o of Te(e))
19
19
  t.indexOf(o) < 0 && pt.call(e, o) && (n[o] = e[o]);
20
20
  return n;
21
21
  };
22
- import Pt, { useLayoutEffect as Kn, useEffect as V, useRef as A, useState as U, createContext as Lt, useContext as jt, useCallback as M, forwardRef as De } from "react";
22
+ import Pt, { useLayoutEffect as Kn, useEffect as O, useRef as A, useState as U, createContext as Lt, useContext as jt, useCallback as V, forwardRef as De } from "react";
23
23
  import { create as bt, useStore as kt } from "zustand";
24
- import { toZonedTime as Xn } from "date-fns-tz";
25
- import Jn from "mitt";
24
+ import Xn from "mitt";
26
25
  import K from "hls.js";
27
- import * as Te from "@radix-ui/react-slider";
26
+ import * as Ee from "@radix-ui/react-slider";
28
27
  import * as ye from "@radix-ui/react-dropdown-menu";
29
28
  function Dt(e) {
30
29
  var t = this.constructor;
@@ -101,19 +100,19 @@ function Nt(e) {
101
100
  }
102
101
  });
103
102
  }
104
- var Gn = setTimeout;
103
+ var Jn = setTimeout;
105
104
  function Mt(e) {
106
105
  return !!(e && typeof e.length != "undefined");
107
106
  }
108
- function Qn() {
107
+ function Gn() {
109
108
  }
110
- function er(e, t) {
109
+ function Qn(e, t) {
111
110
  return function() {
112
111
  e.apply(t, arguments);
113
112
  };
114
113
  }
115
- function P(e) {
116
- if (!(this instanceof P))
114
+ function j(e) {
115
+ if (!(this instanceof j))
117
116
  throw new TypeError("Promises must be constructed via new");
118
117
  if (typeof e != "function") throw new TypeError("not a function");
119
118
  this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], Ot(e, this);
@@ -125,7 +124,7 @@ function Vt(e, t) {
125
124
  e._deferreds.push(t);
126
125
  return;
127
126
  }
128
- e._handled = !0, P._immediateFn(function() {
127
+ e._handled = !0, j._immediateFn(function() {
129
128
  var n = e._state === 1 ? t.onFulfilled : t.onRejected;
130
129
  if (n === null) {
131
130
  (e._state === 1 ? Be : pe)(t.promise, e._value);
@@ -147,11 +146,11 @@ function Be(e, t) {
147
146
  throw new TypeError("A promise cannot be resolved with itself.");
148
147
  if (t && (typeof t == "object" || typeof t == "function")) {
149
148
  var n = t.then;
150
- if (t instanceof P) {
149
+ if (t instanceof j) {
151
150
  e._state = 3, e._value = t, We(e);
152
151
  return;
153
152
  } else if (typeof n == "function") {
154
- Ot(er(n, t), e);
153
+ Ot(Qn(n, t), e);
155
154
  return;
156
155
  }
157
156
  }
@@ -164,14 +163,14 @@ function pe(e, t) {
164
163
  e._state = 2, e._value = t, We(e);
165
164
  }
166
165
  function We(e) {
167
- e._state === 2 && e._deferreds.length === 0 && P._immediateFn(function() {
168
- e._handled || P._unhandledRejectionFn(e._value);
166
+ e._state === 2 && e._deferreds.length === 0 && j._immediateFn(function() {
167
+ e._handled || j._unhandledRejectionFn(e._value);
169
168
  });
170
169
  for (var t = 0, n = e._deferreds.length; t < n; t++)
171
170
  Vt(e, e._deferreds[t]);
172
171
  e._deferreds = null;
173
172
  }
174
- function tr(e, t, n) {
173
+ function er(e, t, n) {
175
174
  this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.promise = n;
176
175
  }
177
176
  function Ot(e, t) {
@@ -190,16 +189,16 @@ function Ot(e, t) {
190
189
  n = !0, pe(t, o);
191
190
  }
192
191
  }
193
- P.prototype.catch = function(e) {
192
+ j.prototype.catch = function(e) {
194
193
  return this.then(null, e);
195
194
  };
196
- P.prototype.then = function(e, t) {
197
- var n = new this.constructor(Qn);
198
- return Vt(this, new tr(e, t, n)), n;
195
+ j.prototype.then = function(e, t) {
196
+ var n = new this.constructor(Gn);
197
+ return Vt(this, new er(e, t, n)), n;
199
198
  };
200
- P.prototype.finally = Dt;
201
- P.all = function(e) {
202
- return new P(function(t, n) {
199
+ j.prototype.finally = Dt;
200
+ j.all = function(e) {
201
+ return new j(function(t, n) {
203
202
  if (!Mt(e))
204
203
  return n(new TypeError("Promise.all accepts an array"));
205
204
  var o = Array.prototype.slice.call(e);
@@ -229,33 +228,33 @@ P.all = function(e) {
229
228
  l(u, o[u]);
230
229
  });
231
230
  };
232
- P.any = Nt;
233
- P.allSettled = It;
234
- P.resolve = function(e) {
235
- return e && typeof e == "object" && e.constructor === P ? e : new P(function(t) {
231
+ j.any = Nt;
232
+ j.allSettled = It;
233
+ j.resolve = function(e) {
234
+ return e && typeof e == "object" && e.constructor === j ? e : new j(function(t) {
236
235
  t(e);
237
236
  });
238
237
  };
239
- P.reject = function(e) {
240
- return new P(function(t, n) {
238
+ j.reject = function(e) {
239
+ return new j(function(t, n) {
241
240
  n(e);
242
241
  });
243
242
  };
244
- P.race = function(e) {
245
- return new P(function(t, n) {
243
+ j.race = function(e) {
244
+ return new j(function(t, n) {
246
245
  if (!Mt(e))
247
246
  return n(new TypeError("Promise.race accepts an array"));
248
247
  for (var o = 0, s = e.length; o < s; o++)
249
- P.resolve(e[o]).then(t, n);
248
+ j.resolve(e[o]).then(t, n);
250
249
  });
251
250
  };
252
- P._immediateFn = // @ts-ignore
251
+ j._immediateFn = // @ts-ignore
253
252
  typeof setImmediate == "function" && function(e) {
254
253
  setImmediate(e);
255
254
  } || function(e) {
256
- Gn(e, 0);
255
+ Jn(e, 0);
257
256
  };
258
- P._unhandledRejectionFn = function(t) {
257
+ j._unhandledRejectionFn = function(t) {
259
258
  typeof console != "undefined" && console && console.warn("Possible Unhandled Promise Rejection:", t);
260
259
  };
261
260
  var ne = (function() {
@@ -267,35 +266,35 @@ var ne = (function() {
267
266
  return global;
268
267
  throw new Error("unable to locate global object");
269
268
  })();
270
- typeof ne.Promise != "function" ? ne.Promise = P : (ne.Promise.prototype.finally || (ne.Promise.prototype.finally = Dt), ne.Promise.allSettled || (ne.Promise.allSettled = It), ne.Promise.any || (ne.Promise.any = Nt));
269
+ typeof ne.Promise != "function" ? ne.Promise = j : (ne.Promise.prototype.finally || (ne.Promise.prototype.finally = Dt), ne.Promise.allSettled || (ne.Promise.allSettled = It), ne.Promise.any || (ne.Promise.any = Nt));
271
270
  var Re = { exports: {} }, me = {};
272
271
  var yt;
273
- function nr() {
272
+ function tr() {
274
273
  if (yt) return me;
275
274
  yt = 1;
276
275
  var e = Pt, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
277
276
  function u(i, c, h) {
278
- var v, C = {}, R = null, _ = null;
279
- h !== void 0 && (R = "" + h), c.key !== void 0 && (R = "" + c.key), c.ref !== void 0 && (_ = c.ref);
277
+ var v, C = {}, S = null, T = null;
278
+ h !== void 0 && (S = "" + h), c.key !== void 0 && (S = "" + c.key), c.ref !== void 0 && (T = c.ref);
280
279
  for (v in c) o.call(c, v) && !l.hasOwnProperty(v) && (C[v] = c[v]);
281
280
  if (i && i.defaultProps) for (v in c = i.defaultProps, c) C[v] === void 0 && (C[v] = c[v]);
282
- return { $$typeof: t, type: i, key: R, ref: _, props: C, _owner: s.current };
281
+ return { $$typeof: t, type: i, key: S, ref: T, props: C, _owner: s.current };
283
282
  }
284
283
  return me.Fragment = n, me.jsx = u, me.jsxs = u, me;
285
284
  }
286
285
  var ve = {};
287
286
  var gt;
288
- function rr() {
287
+ function nr() {
289
288
  return gt || (gt = 1, process.env.NODE_ENV !== "production" && (function() {
290
- var e = Pt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), b = Symbol.iterator, H = "@@iterator";
291
- function L(r) {
289
+ var e = Pt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), L = Symbol.iterator, N = "@@iterator";
290
+ function x(r) {
292
291
  if (r === null || typeof r != "object")
293
292
  return null;
294
- var d = b && r[b] || r[H];
293
+ var d = L && r[L] || r[N];
295
294
  return typeof d == "function" ? d : null;
296
295
  }
297
- var N = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
298
- function S(r) {
296
+ var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
297
+ function P(r) {
299
298
  {
300
299
  for (var d = arguments.length, m = new Array(d > 1 ? d - 1 : 0), y = 1; y < d; y++)
301
300
  m[y - 1] = arguments[y];
@@ -304,18 +303,18 @@ function rr() {
304
303
  }
305
304
  function g(r, d, m) {
306
305
  {
307
- var y = N.ReactDebugCurrentFrame, E = y.getStackAddendum();
306
+ var y = M.ReactDebugCurrentFrame, E = y.getStackAddendum();
308
307
  E !== "" && (d += "%s", m = m.concat([E]));
309
- var T = m.map(function(x) {
310
- return String(x);
308
+ var R = m.map(function(_) {
309
+ return String(_);
311
310
  });
312
- T.unshift("Warning: " + d), Function.prototype.apply.call(console[r], console, T);
311
+ R.unshift("Warning: " + d), Function.prototype.apply.call(console[r], console, R);
313
312
  }
314
313
  }
315
- var k = !1, p = !1, q = !1, Q = !1, ee = !1, X;
314
+ var k = !1, p = !1, Z = !1, Q = !1, ee = !1, X;
316
315
  X = Symbol.for("react.module.reference");
317
316
  function W(r) {
318
- return !!(typeof r == "string" || typeof r == "function" || r === o || r === l || ee || r === s || r === h || r === v || Q || r === _ || k || p || q || typeof r == "object" && r !== null && (r.$$typeof === R || r.$$typeof === C || r.$$typeof === u || r.$$typeof === i || r.$$typeof === c || // This needs to include all possible module reference object
317
+ return !!(typeof r == "string" || typeof r == "function" || r === o || r === l || ee || r === s || r === h || r === v || Q || r === T || k || p || Z || typeof r == "object" && r !== null && (r.$$typeof === S || r.$$typeof === C || r.$$typeof === u || r.$$typeof === i || r.$$typeof === c || // This needs to include all possible module reference object
319
318
  // types supported by any Flight configuration anywhere since
320
319
  // we don't know which Flight build this will end up being used
321
320
  // with.
@@ -334,7 +333,7 @@ function rr() {
334
333
  function z(r) {
335
334
  if (r == null)
336
335
  return null;
337
- if (typeof r.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
336
+ if (typeof r.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
338
337
  return r.displayName || r.name || null;
339
338
  if (typeof r == "string")
340
339
  return r;
@@ -365,10 +364,10 @@ function rr() {
365
364
  case C:
366
365
  var y = r.displayName || null;
367
366
  return y !== null ? y : z(r.type) || "Memo";
368
- case R: {
369
- var E = r, T = E._payload, x = E._init;
367
+ case S: {
368
+ var E = r, R = E._payload, _ = E._init;
370
369
  try {
371
- return z(x(T));
370
+ return z(_(R));
372
371
  } catch (w) {
373
372
  return null;
374
373
  }
@@ -435,10 +434,10 @@ function rr() {
435
434
  })
436
435
  });
437
436
  }
438
- te < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
437
+ te < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
439
438
  }
440
439
  }
441
- var Fe = N.ReactCurrentDispatcher, Ne;
440
+ var Fe = M.ReactCurrentDispatcher, Ne;
442
441
  function Ce(r, d, m) {
443
442
  {
444
443
  if (Ne === void 0)
@@ -469,31 +468,31 @@ function rr() {
469
468
  Me = !0;
470
469
  var E = Error.prepareStackTrace;
471
470
  Error.prepareStackTrace = void 0;
472
- var T;
473
- T = Fe.current, Fe.current = null, Cn();
471
+ var R;
472
+ R = Fe.current, Fe.current = null, Cn();
474
473
  try {
475
474
  if (d) {
476
- var x = function() {
475
+ var _ = function() {
477
476
  throw Error();
478
477
  };
479
- if (Object.defineProperty(x.prototype, "props", {
478
+ if (Object.defineProperty(_.prototype, "props", {
480
479
  set: function() {
481
480
  throw Error();
482
481
  }
483
482
  }), typeof Reflect == "object" && Reflect.construct) {
484
483
  try {
485
- Reflect.construct(x, []);
484
+ Reflect.construct(_, []);
486
485
  } catch (B) {
487
486
  y = B;
488
487
  }
489
- Reflect.construct(r, [], x);
488
+ Reflect.construct(r, [], _);
490
489
  } else {
491
490
  try {
492
- x.call();
491
+ _.call();
493
492
  } catch (B) {
494
493
  y = B;
495
494
  }
496
- r.call(x.prototype);
495
+ r.call(_.prototype);
497
496
  }
498
497
  } else {
499
498
  try {
@@ -514,16 +513,16 @@ function rr() {
514
513
  if (D !== 1 || F !== 1)
515
514
  do
516
515
  if (D--, F--, F < 0 || w[D] !== $[F]) {
517
- var Z = `
516
+ var q = `
518
517
  ` + w[D].replace(" at new ", " at ");
519
- return r.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", r.displayName)), typeof r == "function" && we.set(r, Z), Z;
518
+ return r.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", r.displayName)), typeof r == "function" && we.set(r, q), q;
520
519
  }
521
520
  while (D >= 1 && F >= 0);
522
521
  break;
523
522
  }
524
523
  }
525
524
  } finally {
526
- Me = !1, Fe.current = T, wn(), Error.prepareStackTrace = E;
525
+ Me = !1, Fe.current = R, wn(), Error.prepareStackTrace = E;
527
526
  }
528
527
  var ae = r ? r.displayName || r.name : "", ie = ae ? Ce(ae) : "";
529
528
  return typeof r == "function" && we.set(r, ie), ie;
@@ -531,7 +530,7 @@ function rr() {
531
530
  function _n(r, d, m) {
532
531
  return Qe(r, !1);
533
532
  }
534
- function En(r) {
533
+ function Tn(r) {
535
534
  var d = r.prototype;
536
535
  return !!(d && d.isReactComponent);
537
536
  }
@@ -539,7 +538,7 @@ function rr() {
539
538
  if (r == null)
540
539
  return "";
541
540
  if (typeof r == "function")
542
- return Qe(r, En(r));
541
+ return Qe(r, Tn(r));
543
542
  if (typeof r == "string")
544
543
  return Ce(r);
545
544
  switch (r) {
@@ -554,17 +553,17 @@ function rr() {
554
553
  return _n(r.render);
555
554
  case C:
556
555
  return xe(r.type, d, m);
557
- case R: {
558
- var y = r, E = y._payload, T = y._init;
556
+ case S: {
557
+ var y = r, E = y._payload, R = y._init;
559
558
  try {
560
- return xe(T(E), d, m);
561
- } catch (x) {
559
+ return xe(R(E), d, m);
560
+ } catch (_) {
562
561
  }
563
562
  }
564
563
  }
565
564
  return "";
566
565
  }
567
- var fe = Object.prototype.hasOwnProperty, et = {}, tt = N.ReactDebugCurrentFrame;
566
+ var fe = Object.prototype.hasOwnProperty, et = {}, tt = M.ReactDebugCurrentFrame;
568
567
  function _e(r) {
569
568
  if (r) {
570
569
  var d = r._owner, m = xe(r.type, r._source, d ? d.type : null);
@@ -572,22 +571,22 @@ function rr() {
572
571
  } else
573
572
  tt.setExtraStackFrame(null);
574
573
  }
575
- function Tn(r, d, m, y, E) {
574
+ function En(r, d, m, y, E) {
576
575
  {
577
- var T = Function.call.bind(fe);
578
- for (var x in r)
579
- if (T(r, x)) {
576
+ var R = Function.call.bind(fe);
577
+ for (var _ in r)
578
+ if (R(r, _)) {
580
579
  var w = void 0;
581
580
  try {
582
- if (typeof r[x] != "function") {
583
- var $ = Error((y || "React class") + ": " + m + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
581
+ if (typeof r[_] != "function") {
582
+ var $ = Error((y || "React class") + ": " + m + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
584
583
  throw $.name = "Invariant Violation", $;
585
584
  }
586
- w = r[x](d, x, y, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
585
+ w = r[_](d, _, y, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
587
586
  } catch (D) {
588
587
  w = D;
589
588
  }
590
- w && !(w instanceof Error) && (_e(E), S("%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).", y || "React class", m, x, typeof w), _e(null)), w instanceof Error && !(w.message in et) && (et[w.message] = !0, _e(E), S("Failed %s type: %s", m, w.message), _e(null));
589
+ w && !(w instanceof Error) && (_e(E), P("%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).", y || "React class", m, _, typeof w), _e(null)), w instanceof Error && !(w.message in et) && (et[w.message] = !0, _e(E), P("Failed %s type: %s", m, w.message), _e(null));
591
590
  }
592
591
  }
593
592
  }
@@ -613,9 +612,9 @@ function rr() {
613
612
  }
614
613
  function rt(r) {
615
614
  if (Pn(r))
616
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Sn(r)), nt(r);
615
+ return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Sn(r)), nt(r);
617
616
  }
618
- var ot = N.ReactCurrentOwner, Ln = {
617
+ var ot = M.ReactCurrentOwner, Ln = {
619
618
  key: !0,
620
619
  ref: !0,
621
620
  __self: !0,
@@ -643,7 +642,7 @@ function rr() {
643
642
  function Dn(r, d) {
644
643
  {
645
644
  var m = function() {
646
- it || (it = !0, S("%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)", d));
645
+ it || (it = !0, P("%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)", d));
647
646
  };
648
647
  m.isReactWarning = !0, Object.defineProperty(r, "key", {
649
648
  get: m,
@@ -654,7 +653,7 @@ function rr() {
654
653
  function In(r, d) {
655
654
  {
656
655
  var m = function() {
657
- st || (st = !0, S("%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)", d));
656
+ st || (st = !0, P("%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)", d));
658
657
  };
659
658
  m.isReactWarning = !0, Object.defineProperty(r, "ref", {
660
659
  get: m,
@@ -662,7 +661,7 @@ function rr() {
662
661
  });
663
662
  }
664
663
  }
665
- var Fn = function(r, d, m, y, E, T, x) {
664
+ var Fn = function(r, d, m, y, E, R, _) {
666
665
  var w = {
667
666
  // This tag allows us to uniquely identify this as a React Element
668
667
  $$typeof: t,
@@ -670,9 +669,9 @@ function rr() {
670
669
  type: r,
671
670
  key: d,
672
671
  ref: m,
673
- props: x,
672
+ props: _,
674
673
  // Record the component responsible for creating this element.
675
- _owner: T
674
+ _owner: R
676
675
  };
677
676
  return w._store = {}, Object.defineProperty(w._store, "validated", {
678
677
  configurable: !1,
@@ -693,23 +692,23 @@ function rr() {
693
692
  };
694
693
  function Nn(r, d, m, y, E) {
695
694
  {
696
- var T, x = {}, w = null, $ = null;
695
+ var R, _ = {}, w = null, $ = null;
697
696
  m !== void 0 && (rt(m), w = "" + m), bn(d) && (rt(d.key), w = "" + d.key), jn(d) && ($ = d.ref, kn(d, E));
698
- for (T in d)
699
- fe.call(d, T) && !Ln.hasOwnProperty(T) && (x[T] = d[T]);
697
+ for (R in d)
698
+ fe.call(d, R) && !Ln.hasOwnProperty(R) && (_[R] = d[R]);
700
699
  if (r && r.defaultProps) {
701
700
  var D = r.defaultProps;
702
- for (T in D)
703
- x[T] === void 0 && (x[T] = D[T]);
701
+ for (R in D)
702
+ _[R] === void 0 && (_[R] = D[R]);
704
703
  }
705
704
  if (w || $) {
706
705
  var F = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
707
- w && Dn(x, F), $ && In(x, F);
706
+ w && Dn(_, F), $ && In(_, F);
708
707
  }
709
- return Fn(r, w, $, E, y, ot.current, x);
708
+ return Fn(r, w, $, E, y, ot.current, _);
710
709
  }
711
710
  }
712
- var Oe = N.ReactCurrentOwner, at = N.ReactDebugCurrentFrame;
711
+ var Oe = M.ReactCurrentOwner, at = M.ReactDebugCurrentFrame;
713
712
  function se(r) {
714
713
  if (r) {
715
714
  var d = r._owner, m = xe(r.type, r._source, d ? d.type : null);
@@ -760,7 +759,7 @@ Check the top-level render call using <` + m + ">.");
760
759
  return;
761
760
  ct[m] = !0;
762
761
  var y = "";
763
- r && r._owner && r._owner !== Oe.current && (y = " It was passed a child from " + z(r._owner.type) + "."), se(r), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, y), se(null);
762
+ r && r._owner && r._owner !== Oe.current && (y = " It was passed a child from " + z(r._owner.type) + "."), se(r), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, y), se(null);
764
763
  }
765
764
  }
766
765
  function dt(r, d) {
@@ -775,10 +774,10 @@ Check the top-level render call using <` + m + ">.");
775
774
  else if (Ae(r))
776
775
  r._store && (r._store.validated = !0);
777
776
  else if (r) {
778
- var E = L(r);
777
+ var E = x(r);
779
778
  if (typeof E == "function" && E !== r.entries)
780
- for (var T = E.call(r), x; !(x = T.next()).done; )
781
- Ae(x.value) && ut(x.value, d);
779
+ for (var R = E.call(r), _; !(_ = R.next()).done; )
780
+ Ae(_.value) && ut(_.value, d);
782
781
  }
783
782
  }
784
783
  }
@@ -798,13 +797,13 @@ Check the top-level render call using <` + m + ">.");
798
797
  return;
799
798
  if (m) {
800
799
  var y = z(d);
801
- Tn(m, r.props, "prop", y, r);
800
+ En(m, r.props, "prop", y, r);
802
801
  } else if (d.PropTypes !== void 0 && !He) {
803
802
  He = !0;
804
803
  var E = z(d);
805
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
804
+ P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
806
805
  }
807
- typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
806
+ typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
808
807
  }
809
808
  }
810
809
  function Hn(r) {
@@ -812,40 +811,40 @@ Check the top-level render call using <` + m + ">.");
812
811
  for (var d = Object.keys(r.props), m = 0; m < d.length; m++) {
813
812
  var y = d[m];
814
813
  if (y !== "children" && y !== "key") {
815
- se(r), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), se(null);
814
+ se(r), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), se(null);
816
815
  break;
817
816
  }
818
817
  }
819
- r.ref !== null && (se(r), S("Invalid attribute `ref` supplied to `React.Fragment`."), se(null));
818
+ r.ref !== null && (se(r), P("Invalid attribute `ref` supplied to `React.Fragment`."), se(null));
820
819
  }
821
820
  }
822
821
  var ft = {};
823
- function ht(r, d, m, y, E, T) {
822
+ function ht(r, d, m, y, E, R) {
824
823
  {
825
- var x = W(r);
826
- if (!x) {
824
+ var _ = W(r);
825
+ if (!_) {
827
826
  var w = "";
828
827
  (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
829
828
  var $ = Mn();
830
829
  $ ? w += $ : w += lt();
831
830
  var D;
832
- r === null ? D = "null" : Ve(r) ? D = "array" : r !== void 0 && r.$$typeof === t ? (D = "<" + (z(r.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : D = typeof r, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, w);
831
+ r === null ? D = "null" : Ve(r) ? D = "array" : r !== void 0 && r.$$typeof === t ? (D = "<" + (z(r.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : D = typeof r, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, w);
833
832
  }
834
- var F = Nn(r, d, m, E, T);
833
+ var F = Nn(r, d, m, E, R);
835
834
  if (F == null)
836
835
  return F;
837
- if (x) {
838
- var Z = d.children;
839
- if (Z !== void 0)
836
+ if (_) {
837
+ var q = d.children;
838
+ if (q !== void 0)
840
839
  if (y)
841
- if (Ve(Z)) {
842
- for (var ae = 0; ae < Z.length; ae++)
843
- dt(Z[ae], r);
844
- Object.freeze && Object.freeze(Z);
840
+ if (Ve(q)) {
841
+ for (var ae = 0; ae < q.length; ae++)
842
+ dt(q[ae], r);
843
+ Object.freeze && Object.freeze(q);
845
844
  } else
846
- S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
845
+ P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
847
846
  else
848
- dt(Z, r);
847
+ dt(q, r);
849
848
  }
850
849
  if (fe.call(d, "key")) {
851
850
  var ie = z(r), B = Object.keys(d).filter(function(zn) {
@@ -853,7 +852,7 @@ Check the top-level render call using <` + m + ">.");
853
852
  }), $e = B.length > 0 ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}";
854
853
  if (!ft[ie + $e]) {
855
854
  var Wn = B.length > 0 ? "{" + B.join(": ..., ") + ": ...}" : "{}";
856
- S(`A props object containing a "key" prop is being spread into JSX:
855
+ P(`A props object containing a "key" prop is being spread into JSX:
857
856
  let props = %s;
858
857
  <%s {...props} />
859
858
  React keys must be passed directly to JSX without using spread:
@@ -875,20 +874,20 @@ React keys must be passed directly to JSX without using spread:
875
874
  })()), ve;
876
875
  }
877
876
  var Ct;
878
- function or() {
879
- return Ct || (Ct = 1, process.env.NODE_ENV === "production" ? Re.exports = nr() : Re.exports = rr()), Re.exports;
880
- }
881
- var a = or();
882
- const ir = "_playerNotice_wol1k_1", sr = "_playerNoticeTitle_wol1k_16", ar = "_playerNoticeText_wol1k_25", Ze = {
883
- playerNotice: ir,
884
- playerNoticeTitle: sr,
885
- playerNoticeText: ar
886
- }, Le = Ze.playerNotice, je = Ze.playerNoticeTitle, ze = Ze.playerNoticeText, Ht = typeof window != "undefined" ? Kn : V;
887
- function qe(e, t) {
877
+ function rr() {
878
+ return Ct || (Ct = 1, process.env.NODE_ENV === "production" ? Re.exports = tr() : Re.exports = nr()), Re.exports;
879
+ }
880
+ var a = rr();
881
+ const or = "_playerNotice_wol1k_1", ir = "_playerNoticeTitle_wol1k_16", sr = "_playerNoticeText_wol1k_25", qe = {
882
+ playerNotice: or,
883
+ playerNoticeTitle: ir,
884
+ playerNoticeText: sr
885
+ }, Le = qe.playerNotice, je = qe.playerNoticeTitle, ze = qe.playerNoticeText, Ht = typeof window != "undefined" ? Kn : O;
886
+ function Ze(e, t) {
888
887
  const n = A(e);
889
888
  Ht(() => {
890
889
  n.current = e;
891
- }, [e]), V(() => {
890
+ }, [e]), O(() => {
892
891
  if (t === null)
893
892
  return;
894
893
  const o = setInterval(() => {
@@ -899,29 +898,29 @@ function qe(e, t) {
899
898
  };
900
899
  }, [t]);
901
900
  }
902
- function lr(e) {
901
+ function ar(e) {
903
902
  const [, t] = U(0);
904
- qe(() => t((n) => n + 1), e);
903
+ Ze(() => t((n) => n + 1), e);
905
904
  }
906
- const cr = () => bt((e) => ({
905
+ const lr = () => bt((e) => ({
907
906
  delay: 0,
908
907
  startDate: null,
909
908
  setDelay: (t) => e({ delay: t }),
910
909
  setStartDate: (t) => e({ startDate: t })
911
910
  })), At = Lt(
912
911
  null
913
- ), ur = ({ children: e }) => {
912
+ ), cr = ({ children: e }) => {
914
913
  const t = A(
915
914
  null
916
915
  );
917
- return t.current || (t.current = cr()), /* @__PURE__ */ a.jsx(At.Provider, { value: t.current, children: e });
918
- }, O = (e) => {
916
+ return t.current || (t.current = lr()), /* @__PURE__ */ a.jsx(At.Provider, { value: t.current, children: e });
917
+ }, H = (e) => {
919
918
  const t = jt(At);
920
919
  if (!t)
921
920
  throw new Error("usePlayerStore must be used within PlayerStoreProvider");
922
921
  return kt(t, e);
923
922
  };
924
- function dr(e, t, n) {
923
+ function ur(e, t, n) {
925
924
  const o = {
926
925
  days: 86400,
927
926
  hours: 3600,
@@ -931,39 +930,79 @@ function dr(e, t, n) {
931
930
  };
932
931
  return e * (o[t] / o[n]);
933
932
  }
934
- function fr(e) {
935
- return dr(e, "milliseconds", "seconds");
933
+ function dr(e) {
934
+ return ur(e, "milliseconds", "seconds");
936
935
  }
937
936
  const be = (e) => {
938
937
  if (isNaN(e) || e === 1 / 0) return "0:00";
939
938
  const t = (l) => (l < 10 ? "0" : "") + l, n = Math.floor(e / 3600), o = Math.floor(e % 3600 / 60), s = Math.floor(e % 60);
940
939
  return n === 0 ? `${o}:${t(s)}` : `${n}:${t(o)}:${t(s)}`;
941
940
  };
942
- function hr(e, t) {
943
- return Xn(e, t);
944
- }
945
- function mr(e) {
941
+ function fr(e, t) {
942
+ var n, o, s, l, u, i;
943
+ if (typeof Intl != "undefined" && Intl.DateTimeFormat)
944
+ try {
945
+ const h = new Intl.DateTimeFormat("en-US", {
946
+ timeZone: t,
947
+ year: "numeric",
948
+ month: "2-digit",
949
+ day: "2-digit",
950
+ hour: "2-digit",
951
+ minute: "2-digit",
952
+ second: "2-digit",
953
+ hour12: !1
954
+ }).formatToParts(e), v = parseInt(
955
+ ((n = h.find((x) => x.type === "year")) == null ? void 0 : n.value) || "0",
956
+ 10
957
+ ), C = parseInt(
958
+ ((o = h.find((x) => x.type === "month")) == null ? void 0 : o.value) || "0",
959
+ 10
960
+ ) - 1, S = parseInt(
961
+ ((s = h.find((x) => x.type === "day")) == null ? void 0 : s.value) || "0",
962
+ 10
963
+ ), T = parseInt(
964
+ ((l = h.find((x) => x.type === "hour")) == null ? void 0 : l.value) || "0",
965
+ 10
966
+ ), L = parseInt(
967
+ ((u = h.find((x) => x.type === "minute")) == null ? void 0 : u.value) || "0",
968
+ 10
969
+ ), N = parseInt(
970
+ ((i = h.find((x) => x.type === "second")) == null ? void 0 : i.value) || "0",
971
+ 10
972
+ );
973
+ return new Date(v, C, S, T, L, N);
974
+ } catch (c) {
975
+ return console.warn(
976
+ `Failed to convert date to timezone ${t}, returning original date:`,
977
+ c
978
+ ), e;
979
+ }
980
+ return console.warn(
981
+ "Intl.DateTimeFormat not available, timezone conversion may be inaccurate"
982
+ ), e;
983
+ }
984
+ function hr(e) {
946
985
  var n;
947
986
  const t = typeof window != "undefined" && ((n = window.navigator) == null ? void 0 : n.userAgent) || "";
948
987
  return e.test(t);
949
988
  }
950
- const $t = mr(/iPhone|iPad|iPod/i);
951
- function vr() {
989
+ const $t = hr(/iPhone|iPad|iPod/i);
990
+ function mr() {
952
991
  const e = document;
953
992
  return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
954
993
  }
955
- function pr(e) {
994
+ function vr(e) {
956
995
  e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
957
996
  }
958
- function yr(e) {
997
+ function pr(e) {
959
998
  e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
960
999
  }
961
- function gr(e, t) {
1000
+ function yr(e, t) {
962
1001
  return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
963
1002
  e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
964
1003
  };
965
1004
  }
966
- const Cr = () => Jn(), wr = (e, t) => ({
1005
+ const gr = () => Xn(), Cr = (e, t) => ({
967
1006
  currentTime: 0,
968
1007
  duration: 0,
969
1008
  isEnded: !1,
@@ -1075,7 +1114,7 @@ const Cr = () => Jn(), wr = (e, t) => ({
1075
1114
  }));
1076
1115
  },
1077
1116
  getPauseTimeDiff: () => !t().isStarted || !t().pauseTime ? 0 : parseInt(
1078
- fr(Date.now() - t().pauseTime).toFixed(0)
1117
+ dr(Date.now() - t().pauseTime).toFixed(0)
1079
1118
  ),
1080
1119
  play: () => {
1081
1120
  const n = t().techRef.current;
@@ -1122,7 +1161,7 @@ const Cr = () => Jn(), wr = (e, t) => ({
1122
1161
  isLoading: !1
1123
1162
  });
1124
1163
  }
1125
- }), xr = (e) => ({
1164
+ }), wr = (e) => ({
1126
1165
  idleLocks: /* @__PURE__ */ new Set(),
1127
1166
  addIdleLock: (t) => e((n) => ({
1128
1167
  idleLocks: new Set(n.idleLocks).add(t)
@@ -1131,40 +1170,40 @@ const Cr = () => Jn(), wr = (e, t) => ({
1131
1170
  const o = new Set(n.idleLocks);
1132
1171
  return o.delete(t), { idleLocks: o };
1133
1172
  })
1134
- }), _r = (e, t) => ({
1173
+ }), xr = (e, t) => ({
1135
1174
  level: null,
1136
1175
  levels: null,
1137
1176
  setLevels: (n) => e({ levels: n }),
1138
1177
  setLevel: (n) => {
1139
1178
  n && t().eventEmitter.emit("qualityChange", { level: n }), e({ level: n });
1140
1179
  }
1141
- }), Er = (e, t) => ({
1180
+ }), _r = (e, t) => ({
1142
1181
  isFullscreen: !1,
1143
1182
  isFullscreenReady: !1,
1144
1183
  exitFullscreen: () => {
1145
- t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }), yr(document), e({ isFullscreen: !1 });
1184
+ t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }), pr(document), e({ isFullscreen: !1 });
1146
1185
  },
1147
1186
  requestFullscreen: () => {
1148
1187
  const n = t().techRef.current, o = t().containerRef.current;
1149
1188
  if (!n || !o) return;
1150
1189
  t().eventEmitter.emit("fullscreenChange", { isFullscreen: !0 });
1151
1190
  const s = $t ? n : o;
1152
- s && pr(s), e({ isFullscreen: !0 });
1191
+ s && vr(s), e({ isFullscreen: !0 });
1153
1192
  },
1154
1193
  setIsFullscreen: (n) => e({ isFullscreen: n }),
1155
1194
  setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
1156
1195
  }), Tr = (e) => ({
1157
1196
  error: null,
1158
1197
  setError: (t) => e({ error: t })
1159
- }), Rr = () => ({
1160
- eventEmitter: Cr()
1161
- }), Sr = (e) => () => j({}, e), Pr = (e, t) => bt()((...n) => j(j(j(j(j(j(j({}, wr(...n)), xr(...n)), Er(...n)), _r(...n)), Tr(...n)), Rr(...n)), Sr({
1198
+ }), Er = () => ({
1199
+ eventEmitter: gr()
1200
+ }), Rr = (e) => () => b({}, e), Sr = (e, t) => bt()((...n) => b(b(b(b(b(b(b({}, Cr(...n)), wr(...n)), _r(...n)), xr(...n)), Tr(...n)), Er(...n)), Rr({
1162
1201
  techRef: e,
1163
1202
  containerRef: t
1164
1203
  })(...n))), Ut = Lt(null);
1165
- function Lr({ children: e }) {
1204
+ function Pr({ children: e }) {
1166
1205
  const t = A(null), n = A(null), o = A(null);
1167
- return t.current || (t.current = Pr(n, o)), /* @__PURE__ */ a.jsx(Ut.Provider, { value: t.current, children: e });
1206
+ return t.current || (t.current = Sr(n, o)), /* @__PURE__ */ a.jsx(Ut.Provider, { value: t.current, children: e });
1168
1207
  }
1169
1208
  const f = (e) => {
1170
1209
  const t = jt(Ut);
@@ -1172,7 +1211,7 @@ const f = (e) => {
1172
1211
  throw new Error("usePlayerStore must be used within PlayerStoreProvider");
1173
1212
  return kt(t, e);
1174
1213
  };
1175
- function jr(e) {
1214
+ function Lr(e) {
1176
1215
  const t = e.split(`
1177
1216
  `);
1178
1217
  for (const n of t) {
@@ -1180,12 +1219,12 @@ function jr(e) {
1180
1219
  if (o.startsWith("#EXT-X-PROGRAM-DATE-TIME:")) {
1181
1220
  const s = o.replace("#EXT-X-PROGRAM-DATE-TIME:", "").trim(), l = new Date(s);
1182
1221
  if (!isNaN(l.getTime()))
1183
- return hr(l, "Europe/Sarajevo");
1222
+ return fr(l, "Europe/Sarajevo");
1184
1223
  }
1185
1224
  }
1186
1225
  return null;
1187
1226
  }
1188
- function br(e, t) {
1227
+ function jr(e, t) {
1189
1228
  const n = e.split(`
1190
1229
  `);
1191
1230
  let o = !1;
@@ -1212,19 +1251,19 @@ function br(e, t) {
1212
1251
  }
1213
1252
  return null;
1214
1253
  }
1215
- function kr(e) {
1254
+ function br(e) {
1216
1255
  return e.replace("playlist.m3u8", "playlist_fmp4_dvr.m3u8");
1217
1256
  }
1218
- async function Dr(e) {
1257
+ async function kr(e) {
1219
1258
  try {
1220
- const t = kr(e);
1259
+ const t = br(e);
1221
1260
  console.log("Converting to DVR URL:", t);
1222
1261
  const n = await fetch(t);
1223
1262
  if (!n.ok)
1224
1263
  throw new Error(
1225
1264
  `Failed to fetch master playlist: ${n.status} ${n.statusText}`
1226
1265
  );
1227
- const o = await n.text(), s = br(
1266
+ const o = await n.text(), s = jr(
1228
1267
  o,
1229
1268
  t
1230
1269
  );
@@ -1236,32 +1275,32 @@ async function Dr(e) {
1236
1275
  throw new Error(
1237
1276
  `Failed to fetch chunklist: ${l.status} ${l.statusText}`
1238
1277
  );
1239
- const u = await l.text(), i = jr(u);
1278
+ const u = await l.text(), i = Lr(u);
1240
1279
  return i ? console.log("Successfully detected start time:", i.toISOString()) : console.log(" No start time found in chunklist"), i;
1241
1280
  } catch (t) {
1242
1281
  return console.error("Error getting start time from HLS URL:", t), null;
1243
1282
  }
1244
1283
  }
1245
- function Ir(n) {
1284
+ function Dr(n) {
1246
1285
  var o = n, { url: e } = o, t = G(o, ["url"]);
1247
- const [s, l] = U(!0), u = O((h) => h.startDate), i = O((h) => h.setStartDate), c = M(async () => {
1248
- const h = await Dr(e);
1286
+ const [s, l] = U(!0), u = H((h) => h.startDate), i = H((h) => h.setStartDate), c = V(async () => {
1287
+ const h = await kr(e);
1249
1288
  h && i(h);
1250
1289
  }, [e, i]);
1251
- return V(() => {
1290
+ return O(() => {
1252
1291
  (async () => {
1253
1292
  l(!0), await c(), l(!1);
1254
1293
  })();
1255
- }, [c]), qe(c, u ? null : 5e3), s ? null : /* @__PURE__ */ a.jsx(Fr, j({}, t));
1294
+ }, [c]), Ze(c, u ? null : 5e3), s ? null : /* @__PURE__ */ a.jsx(Ir, b({}, t));
1256
1295
  }
1257
- function Fr({
1296
+ function Ir({
1258
1297
  children: e,
1259
1298
  eventNotStartedMessage: t = "Event has not started yet.",
1260
1299
  eventStartingSoonMessage: n = "Starting in few seconds..."
1261
1300
  }) {
1262
- const o = O((i) => i.startDate), s = f((i) => i.isStarted);
1263
- return lr(s ? null : 5e3), o ? Date.now() < o.getTime() ? /* @__PURE__ */ a.jsx(
1264
- Nr,
1301
+ const o = H((i) => i.startDate), s = f((i) => i.isStarted);
1302
+ return ar(s ? null : 5e3), o ? Date.now() < o.getTime() ? /* @__PURE__ */ a.jsx(
1303
+ Fr,
1265
1304
  {
1266
1305
  startDate: o,
1267
1306
  title: t,
@@ -1269,7 +1308,7 @@ function Fr({
1269
1308
  }
1270
1309
  ) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e }) : /* @__PURE__ */ a.jsx("div", { className: Le, children: /* @__PURE__ */ a.jsx("h3", { className: je, children: t }) });
1271
1310
  }
1272
- function Nr({ startDate: e, title: t, message: n }) {
1311
+ function Fr({ startDate: e, title: t, message: n }) {
1273
1312
  const o = e.getTime() - Date.now(), s = Math.floor(o / (1e3 * 60 * 60)), l = Math.floor(
1274
1313
  o % (1e3 * 60 * 60) / (1e3 * 60)
1275
1314
  );
@@ -1283,7 +1322,7 @@ function Nr({ startDate: e, title: t, message: n }) {
1283
1322
  ] }) : /* @__PURE__ */ a.jsx("div", { className: Le, children: /* @__PURE__ */ a.jsx("h3", { className: je, children: n }) });
1284
1323
  }
1285
1324
  function Bt() {
1286
- const e = f((i) => i.exitFullscreen), t = f((i) => i.isFullscreen), n = f((i) => i.isFullscreenReady), o = f((i) => i.requestFullscreen), s = f((i) => i.setVolume), l = f((i) => i.volume), u = M(
1325
+ const e = f((i) => i.exitFullscreen), t = f((i) => i.isFullscreen), n = f((i) => i.isFullscreenReady), o = f((i) => i.requestFullscreen), s = f((i) => i.setVolume), l = f((i) => i.volume), u = V(
1287
1326
  (i) => {
1288
1327
  let c = !1;
1289
1328
  if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
@@ -1313,12 +1352,12 @@ function Bt() {
1313
1352
  l
1314
1353
  ]
1315
1354
  );
1316
- return V(() => (document.addEventListener("keydown", u), () => {
1355
+ return O(() => (document.addEventListener("keydown", u), () => {
1317
1356
  document.removeEventListener("keydown", u);
1318
1357
  }), [u]), null;
1319
1358
  }
1320
- function Mr() {
1321
- const e = O((i) => i.delay), t = f((i) => i.isPlaying), n = f((i) => i.pause), o = f((i) => i.getPauseTimeDiff), s = f((i) => i.play), l = O((i) => i.setDelay), u = M(
1359
+ function Nr() {
1360
+ const e = H((i) => i.delay), t = f((i) => i.isPlaying), n = f((i) => i.pause), o = f((i) => i.getPauseTimeDiff), s = f((i) => i.play), l = H((i) => i.setDelay), u = V(
1322
1361
  (i) => {
1323
1362
  let c = !1;
1324
1363
  if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
@@ -1344,23 +1383,23 @@ function Mr() {
1344
1383
  },
1345
1384
  [e, o, t, n, s, l]
1346
1385
  );
1347
- return V(() => (document.addEventListener("keydown", u), () => {
1386
+ return O(() => (document.addEventListener("keydown", u), () => {
1348
1387
  document.removeEventListener("keydown", u);
1349
1388
  }), [u]), /* @__PURE__ */ a.jsx(Bt, {});
1350
1389
  }
1351
1390
  function Wt({ children: e }) {
1352
- return /* @__PURE__ */ a.jsx(Lr, { children: e });
1391
+ return /* @__PURE__ */ a.jsx(Pr, { children: e });
1353
1392
  }
1354
- function Vr({ children: e }) {
1355
- return /* @__PURE__ */ a.jsx(ur, { children: /* @__PURE__ */ a.jsx(Wt, { children: e }) });
1393
+ function Mr({ children: e }) {
1394
+ return /* @__PURE__ */ a.jsx(cr, { children: /* @__PURE__ */ a.jsx(Wt, { children: e }) });
1356
1395
  }
1357
1396
  const zt = (e, t = 0) => parseInt(
1358
1397
  Math.max(0, (Date.now() - (e + t * 1e3)) / 1e3).toFixed(0)
1359
- ), Or = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), Hr = (e, t) => Math.max(0, (t - e) / 1e3), Ar = (e, t = 0) => {
1398
+ ), Vr = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), Or = (e, t) => Math.max(0, (t - e) / 1e3), Hr = (e, t = 0) => {
1360
1399
  const o = t < 0 ? 0 : t, s = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], l = Math.floor(Math.log(e) / Math.log(1024));
1361
1400
  return `${parseFloat((e / Math.pow(1024, l)).toFixed(o))}${s[l]}`;
1362
1401
  };
1363
- function $r({
1402
+ function Ar({
1364
1403
  isAuto: e,
1365
1404
  level: t,
1366
1405
  levels: n
@@ -1378,33 +1417,33 @@ function $r({
1378
1417
  const { bitrate: u, height: i, index: c } = l;
1379
1418
  s.push({
1380
1419
  sid: `quality-level-${c}`,
1381
- label: i ? `${i}p` : Ar(u),
1420
+ label: i ? `${i}p` : Hr(u),
1382
1421
  value: c,
1383
1422
  selected: o === 1 || !e && c === t
1384
1423
  });
1385
1424
  }), s;
1386
1425
  }
1387
- function Ur({ url: e, isLive: t }) {
1388
- const n = A(null), o = f((g) => g.level), s = f((g) => g.levels), l = f((g) => g.setLevel), u = f((g) => g.setLevels), i = f((g) => g.techRef), c = f((g) => g.setError), h = A(0), v = A(null), C = 50, R = 1e4, _ = M(
1426
+ function $r({ url: e, isLive: t }) {
1427
+ const n = A(null), o = f((g) => g.level), s = f((g) => g.levels), l = f((g) => g.setLevel), u = f((g) => g.setLevels), i = f((g) => g.techRef), c = f((g) => g.setError), h = A(0), v = A(null), C = 50, S = 1e4, T = V(
1389
1428
  (g) => {
1390
1429
  if (n.current && (n.current.nextLevel = g, l(null), s)) {
1391
- const k = s.map((p) => he(j({}, p), {
1430
+ const k = s.map((p) => he(b({}, p), {
1392
1431
  selected: p.value === g
1393
1432
  }));
1394
1433
  u(k);
1395
1434
  }
1396
1435
  },
1397
1436
  [s, l, u, n]
1398
- ), b = M(() => {
1437
+ ), L = V(() => {
1399
1438
  n.current && (console.log("[Player][HLS] MEDIA_ATTACHED"), n.current.loadSource(e));
1400
- }, [e]), H = M(() => {
1439
+ }, [e]), N = V(() => {
1401
1440
  if (!n.current) return;
1402
1441
  console.log("[Player][HLS] MANIFEST_LOADED"), c(null), v.current && (clearTimeout(v.current), v.current = null), h.current = 0;
1403
1442
  const g = n.current.levels, k = n.current.currentLevel, p = n.current.autoLevelEnabled;
1404
1443
  u(
1405
- $r({
1406
- levels: g.map((q, Q) => {
1407
- const { bitrate: ee, height: X, width: W } = q;
1444
+ Ar({
1445
+ levels: g.map((Z, Q) => {
1446
+ const { bitrate: ee, height: X, width: W } = Z;
1408
1447
  return {
1409
1448
  bitrate: ee,
1410
1449
  height: X,
@@ -1416,7 +1455,7 @@ function Ur({ url: e, isLive: t }) {
1416
1455
  isAuto: p
1417
1456
  })
1418
1457
  );
1419
- }, [c, u]), L = M(
1458
+ }, [c, u]), x = V(
1420
1459
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1421
1460
  (g, k) => {
1422
1461
  if (console.error("[Player][HLS] ERROR", g, k), !!n.current)
@@ -1429,7 +1468,7 @@ function Ur({ url: e, isLive: t }) {
1429
1468
  } catch (p) {
1430
1469
  console.error("[Player][HLS] Retry failed:", p);
1431
1470
  }
1432
- }, R)), c({
1471
+ }, S)), c({
1433
1472
  message: "Live event will be back shortly.",
1434
1473
  code: "MANIFEST_LOAD_ERROR",
1435
1474
  tech: "hls"
@@ -1441,7 +1480,7 @@ function Ur({ url: e, isLive: t }) {
1441
1480
  }
1442
1481
  },
1443
1482
  [t, e, c]
1444
- ), N = M(() => {
1483
+ ), M = V(() => {
1445
1484
  if (!i.current) return;
1446
1485
  const g = {
1447
1486
  backBufferLength: 10,
@@ -1455,43 +1494,43 @@ function Ur({ url: e, isLive: t }) {
1455
1494
  // 30MB
1456
1495
  }, p = t ? g : k;
1457
1496
  try {
1458
- console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(p)), console.log("[Player][HLS] Version", K.version), n.current = new K(p), n.current.attachMedia(i.current), n.current.on(K.Events.MEDIA_ATTACHED, b), n.current.on(K.Events.MANIFEST_LOADED, H), n.current.on(K.Events.ERROR, L);
1459
- } catch (q) {
1460
- throw new Error(`Error initializing Hls: ${q}`);
1497
+ console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(p)), console.log("[Player][HLS] Version", K.version), n.current = new K(p), n.current.attachMedia(i.current), n.current.on(K.Events.MEDIA_ATTACHED, L), n.current.on(K.Events.MANIFEST_LOADED, N), n.current.on(K.Events.ERROR, x);
1498
+ } catch (Z) {
1499
+ throw new Error(`Error initializing Hls: ${Z}`);
1461
1500
  }
1462
1501
  }, [
1463
- H,
1464
- b,
1502
+ N,
1465
1503
  L,
1504
+ x,
1466
1505
  t,
1467
1506
  i,
1468
1507
  e
1469
- ]), S = M(() => {
1470
- n.current && (n.current.off(K.Events.MEDIA_ATTACHED, b), n.current.off(K.Events.MANIFEST_LOADED, H), n.current.off(K.Events.ERROR, L), n.current.destroy(), n.current = null), v.current && (clearTimeout(v.current), v.current = null), h.current = 0;
1471
- }, [H, b, L]);
1472
- return V(() => {
1473
- o !== null && _(o);
1474
- }, [o, _]), V(() => (K.isSupported() && N(), S), [S, N]), null;
1475
- }
1476
- const Br = "_video_14rmx_1", Wr = {
1477
- video: Br
1508
+ ]), P = V(() => {
1509
+ n.current && (n.current.off(K.Events.MEDIA_ATTACHED, L), n.current.off(K.Events.MANIFEST_LOADED, N), n.current.off(K.Events.ERROR, x), n.current.destroy(), n.current = null), v.current && (clearTimeout(v.current), v.current = null), h.current = 0;
1510
+ }, [N, L, x]);
1511
+ return O(() => {
1512
+ o !== null && T(o);
1513
+ }, [o, T]), O(() => (K.isSupported() && M(), P), [P, M]), null;
1514
+ }
1515
+ const Ur = "_video_14rmx_1", Br = {
1516
+ video: Ur
1478
1517
  };
1479
- function Zt({ url: e, isLive: t, isMuted: n = !1 }) {
1480
- const o = f((p) => p.handleDurationChange), s = f((p) => p.handleEnd), l = f((p) => p.handleLoadedMetadata), u = f((p) => p.handleLoadStart), i = f((p) => p.handlePause), c = f((p) => p.handlePlay), h = f((p) => p.handlePlaying), v = f((p) => p.handleSeeked), C = f((p) => p.handleSeeking), R = f((p) => p.handleTimeUpdate), _ = f((p) => p.handleWaiting), b = f((p) => p.handleVolumeChange), H = f((p) => p.handleError), L = f((p) => p.techRef), N = A(null), S = () => t ? {} : {
1518
+ function qt({ url: e, isLive: t, isMuted: n = !1 }) {
1519
+ const o = f((p) => p.handleDurationChange), s = f((p) => p.handleEnd), l = f((p) => p.handleLoadedMetadata), u = f((p) => p.handleLoadStart), i = f((p) => p.handlePause), c = f((p) => p.handlePlay), h = f((p) => p.handlePlaying), v = f((p) => p.handleSeeked), C = f((p) => p.handleSeeking), S = f((p) => p.handleTimeUpdate), T = f((p) => p.handleWaiting), L = f((p) => p.handleVolumeChange), N = f((p) => p.handleError), x = f((p) => p.techRef), M = A(null), P = () => t ? {} : {
1481
1520
  onDurationChange: o,
1482
1521
  onSeeked: v,
1483
1522
  onSeeking: C,
1484
1523
  onTimeUpdate: g
1485
1524
  }, g = () => {
1486
- (!N.current || Date.now() - N.current >= 1e3) && (R(), N.current = Date.now());
1487
- }, k = S();
1525
+ (!M.current || Date.now() - M.current >= 1e3) && (S(), M.current = Date.now());
1526
+ }, k = P();
1488
1527
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1489
- /* @__PURE__ */ a.jsx(Ur, { isLive: t, url: e }),
1528
+ /* @__PURE__ */ a.jsx($r, { isLive: t, url: e }),
1490
1529
  /* @__PURE__ */ a.jsx(
1491
1530
  "video",
1492
- j({
1493
- ref: L,
1494
- className: Wr.video,
1531
+ b({
1532
+ ref: x,
1533
+ className: Br.video,
1495
1534
  playsInline: !0,
1496
1535
  autoPlay: !0,
1497
1536
  controls: !1,
@@ -1499,33 +1538,33 @@ function Zt({ url: e, isLive: t, isMuted: n = !1 }) {
1499
1538
  preload: "auto",
1500
1539
  crossOrigin: "anonymous",
1501
1540
  onEnded: s,
1502
- onError: H,
1541
+ onError: N,
1503
1542
  onLoadedMetadata: l,
1504
1543
  onLoadStart: u,
1505
1544
  onPause: i,
1506
1545
  onPlay: c,
1507
1546
  onPlaying: h,
1508
- onWaiting: _,
1509
- onVolumeChange: b,
1547
+ onWaiting: T,
1548
+ onVolumeChange: L,
1510
1549
  tabIndex: -1
1511
1550
  }, k)
1512
1551
  )
1513
1552
  ] });
1514
1553
  }
1515
- function zr({ url: e }) {
1516
- const [t, n] = U(null), o = O((l) => l.delay), s = M(async () => {
1554
+ function Wr({ url: e }) {
1555
+ const [t, n] = U(null), o = H((l) => l.delay), s = V(async () => {
1517
1556
  n(
1518
1557
  o ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${o}.m3u8`) : e
1519
1558
  );
1520
1559
  }, [o, e]);
1521
- return V(() => {
1560
+ return O(() => {
1522
1561
  s();
1523
- }, [s]), t ? /* @__PURE__ */ a.jsx(Zt, { url: t, isLive: !0 }) : null;
1562
+ }, [s]), t ? /* @__PURE__ */ a.jsx(qt, { url: t, isLive: !0 }) : null;
1524
1563
  }
1525
- const Zr = "_toggleButton_m3he7_1", qr = {
1526
- toggleButton: Zr
1564
+ const zr = "_toggleButton_m3he7_1", qr = {
1565
+ toggleButton: zr
1527
1566
  };
1528
- function qt(o) {
1567
+ function Zt(o) {
1529
1568
  var s = o, {
1530
1569
  className: e,
1531
1570
  onClick: t
@@ -1533,28 +1572,28 @@ function qt(o) {
1533
1572
  "className",
1534
1573
  "onClick"
1535
1574
  ]);
1536
- const l = A(null), u = f((_) => _.exitFullscreen), i = f((_) => _.isFullscreen), c = f((_) => _.requestFullscreen), h = (_) => {
1537
- R() ? (C(), i ? u() : c()) : v(_);
1538
- }, v = (_) => {
1575
+ const l = A(null), u = f((T) => T.exitFullscreen), i = f((T) => T.isFullscreen), c = f((T) => T.requestFullscreen), h = (T) => {
1576
+ S() ? (C(), i ? u() : c()) : v(T);
1577
+ }, v = (T) => {
1539
1578
  l.current = window.setTimeout(() => {
1540
- t == null || t(_), C();
1579
+ t == null || t(T), C();
1541
1580
  }, 200);
1542
1581
  }, C = () => {
1543
1582
  l.current !== null && (window.clearTimeout(l.current), l.current = null);
1544
- }, R = () => l.current !== null;
1545
- return V(() => () => {
1583
+ }, S = () => l.current !== null;
1584
+ return O(() => () => {
1546
1585
  C();
1547
1586
  }, []), /* @__PURE__ */ a.jsx(
1548
1587
  "button",
1549
- j({
1588
+ b({
1550
1589
  onClick: h,
1551
1590
  className: [qr.toggleButton, e].filter(Boolean).join(" "),
1552
1591
  "aria-label": "Player playback indicator"
1553
1592
  }, n)
1554
1593
  );
1555
1594
  }
1556
- function Yr() {
1557
- const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), s = O((i) => i.delay), l = O((i) => i.setDelay), u = () => {
1595
+ function Zr() {
1596
+ const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), s = H((i) => i.delay), l = H((i) => i.setDelay), u = () => {
1558
1597
  if (e)
1559
1598
  t();
1560
1599
  else {
@@ -1562,30 +1601,30 @@ function Yr() {
1562
1601
  i && l(s + i), o();
1563
1602
  }
1564
1603
  };
1565
- return /* @__PURE__ */ a.jsx(qt, { onClick: u });
1604
+ return /* @__PURE__ */ a.jsx(Zt, { onClick: u });
1566
1605
  }
1567
- const Kr = "_button_e9zrb_1", Xr = "_buttonCircle_e9zrb_43", wt = {
1568
- button: Kr,
1569
- buttonCircle: Xr
1606
+ const Yr = "_button_e9zrb_1", Kr = "_buttonCircle_e9zrb_43", wt = {
1607
+ button: Yr,
1608
+ buttonCircle: Kr
1570
1609
  }, oe = De(
1571
1610
  (s, o) => {
1572
1611
  var l = s, { shape: e = "circle", className: t } = l, n = G(l, ["shape", "className"]);
1573
1612
  const u = e === "circle" ? wt.buttonCircle : "", i = [wt.button, u, t].filter(Boolean).join(" ");
1574
- return /* @__PURE__ */ a.jsx("button", j({ ref: o, className: i }, n));
1613
+ return /* @__PURE__ */ a.jsx("button", b({ ref: o, className: i }, n));
1575
1614
  }
1576
1615
  );
1577
1616
  oe.displayName = "PlayerButton";
1578
- const Jr = "_liveIndicator_1k5fh_1", Gr = "_liveIndicatorHasDelay_1k5fh_8", Qr = "_liveIndicatorNoDelay_1k5fh_12", Se = {
1579
- liveIndicator: Jr,
1580
- liveIndicatorHasDelay: Gr,
1581
- liveIndicatorNoDelay: Qr
1617
+ const Xr = "_liveIndicator_1k5fh_1", Jr = "_liveIndicatorHasDelay_1k5fh_8", Gr = "_liveIndicatorNoDelay_1k5fh_12", Se = {
1618
+ liveIndicator: Xr,
1619
+ liveIndicatorHasDelay: Jr,
1620
+ liveIndicatorNoDelay: Gr
1582
1621
  };
1583
- function eo(n) {
1622
+ function Qr(n) {
1584
1623
  var o = n, { message: e } = o, t = G(o, ["message"]);
1585
- const s = O((c) => c.delay), l = O((c) => c.setDelay), u = () => {
1624
+ const s = H((c) => c.delay), l = H((c) => c.setDelay), u = () => {
1586
1625
  s && l(0);
1587
1626
  }, i = s ? `${Se.liveIndicator} ${Se.liveIndicatorHasDelay}` : `${Se.liveIndicator} ${Se.liveIndicatorNoDelay}`;
1588
- return /* @__PURE__ */ a.jsxs(oe, he(j({ onClick: u, shape: "square" }, t), { children: [
1627
+ return /* @__PURE__ */ a.jsxs(oe, he(b({ onClick: u, shape: "square" }, t), { children: [
1589
1628
  /* @__PURE__ */ a.jsx("div", { className: i }),
1590
1629
  e || "Live"
1591
1630
  ] }));
@@ -1612,8 +1651,8 @@ function Kt() {
1612
1651
  }
1613
1652
  );
1614
1653
  }
1615
- function to() {
1616
- const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), s = O((i) => i.delay), l = O((i) => i.setDelay), u = () => {
1654
+ function eo() {
1655
+ const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), s = H((i) => i.delay), l = H((i) => i.setDelay), u = () => {
1617
1656
  if (e)
1618
1657
  t();
1619
1658
  else {
@@ -1623,22 +1662,22 @@ function to() {
1623
1662
  };
1624
1663
  return /* @__PURE__ */ a.jsx(oe, { onClick: u, children: e ? /* @__PURE__ */ a.jsx(Yt, {}) : /* @__PURE__ */ a.jsx(Kt, {}) });
1625
1664
  }
1626
- const no = "_progressSlider_hwzgf_1", ro = "_tipContainer_hwzgf_7", oo = "_tipContainerVisible_hwzgf_17", io = "_tipContainerHidden_hwzgf_22", so = "_tipContent_hwzgf_27", ge = {
1627
- progressSlider: no,
1628
- tipContainer: ro,
1629
- tipContainerVisible: oo,
1630
- tipContainerHidden: io,
1631
- tipContent: so
1632
- }, Xt = ge.progressSlider, Jt = ge.tipContainer, Gt = ge.tipContainerVisible, Qt = ge.tipContainerHidden, en = ge.tipContent, ao = "_sliderRoot_aeak6_1", lo = "_sliderTrack_aeak6_18", co = "_sliderRange_aeak6_28", uo = "_sliderThumb_aeak6_37", Pe = {
1633
- sliderRoot: ao,
1634
- sliderTrack: lo,
1635
- sliderRange: co,
1636
- sliderThumb: uo
1665
+ const to = "_progressSlider_hwzgf_1", no = "_tipContainer_hwzgf_7", ro = "_tipContainerVisible_hwzgf_17", oo = "_tipContainerHidden_hwzgf_22", io = "_tipContent_hwzgf_27", ge = {
1666
+ progressSlider: to,
1667
+ tipContainer: no,
1668
+ tipContainerVisible: ro,
1669
+ tipContainerHidden: oo,
1670
+ tipContent: io
1671
+ }, Xt = ge.progressSlider, Jt = ge.tipContainer, Gt = ge.tipContainerVisible, Qt = ge.tipContainerHidden, en = ge.tipContent, so = "_sliderRoot_aeak6_1", ao = "_sliderTrack_aeak6_18", lo = "_sliderRange_aeak6_28", co = "_sliderThumb_aeak6_37", Pe = {
1672
+ sliderRoot: so,
1673
+ sliderTrack: ao,
1674
+ sliderRange: lo,
1675
+ sliderThumb: co
1637
1676
  }, Ie = De((l, s) => {
1638
1677
  var u = l, { max: e = 100, min: t = 0, className: n } = u, o = G(u, ["max", "min", "className"]);
1639
1678
  return /* @__PURE__ */ a.jsxs(
1640
- Te.Root,
1641
- he(j({
1679
+ Ee.Root,
1680
+ he(b({
1642
1681
  ref: s,
1643
1682
  min: t,
1644
1683
  max: e,
@@ -1651,8 +1690,8 @@ const no = "_progressSlider_hwzgf_1", ro = "_tipContainer_hwzgf_7", oo = "_tipCo
1651
1690
  )
1652
1691
  }, o), {
1653
1692
  children: [
1654
- /* @__PURE__ */ a.jsx(Te.Track, { className: Pe.sliderTrack, children: /* @__PURE__ */ a.jsx(Te.Range, { className: Pe.sliderRange }) }),
1655
- /* @__PURE__ */ a.jsx(Te.Thumb, { className: Pe.sliderThumb })
1693
+ /* @__PURE__ */ a.jsx(Ee.Track, { className: Pe.sliderTrack, children: /* @__PURE__ */ a.jsx(Ee.Range, { className: Pe.sliderRange }) }),
1694
+ /* @__PURE__ */ a.jsx(Ee.Thumb, { className: Pe.sliderThumb })
1656
1695
  ]
1657
1696
  })
1658
1697
  );
@@ -1670,19 +1709,19 @@ function ke(e) {
1670
1709
  } : t;
1671
1710
  }
1672
1711
  const xt = "vod-player-progress-bar";
1673
- function fo() {
1674
- const e = A(null), t = A(null), [n, o] = U(0), [s, l] = U(0), [u, i] = U(!1), [c, h] = U(-1), [v, C] = U(-1), R = O((I) => I.delay), _ = O((I) => I.startDate), b = _ ? _.getTime() : 0, H = (/* @__PURE__ */ new Date()).getTime(), L = O((I) => I.setDelay), N = f((I) => I.isPlaying), S = f((I) => I.addIdleLock), g = f((I) => I.removeIdleLock), k = M(() => {
1675
- o(Or(b, R)), l(Hr(b, H));
1676
- }, [R, H, b]), p = parseFloat(
1712
+ function uo() {
1713
+ const e = A(null), t = A(null), [n, o] = U(0), [s, l] = U(0), [u, i] = U(!1), [c, h] = U(-1), [v, C] = U(-1), S = H((I) => I.delay), T = H((I) => I.startDate), L = T ? T.getTime() : 0, N = (/* @__PURE__ */ new Date()).getTime(), x = H((I) => I.setDelay), M = f((I) => I.isPlaying), P = f((I) => I.addIdleLock), g = f((I) => I.removeIdleLock), k = V(() => {
1714
+ o(Vr(L, S)), l(Or(L, N));
1715
+ }, [S, N, L]), p = parseFloat(
1677
1716
  (s ? (v !== -1 ? v : n) / s * 100 : 0).toFixed(1)
1678
- ), q = (I) => {
1679
- C(s * (I[0] / 100)), S(xt);
1717
+ ), Z = (I) => {
1718
+ C(s * (I[0] / 100)), P(xt);
1680
1719
  }, Q = () => {
1681
1720
  if (v !== -1) {
1682
- const I = zt(b, v);
1683
- L(I), C(-1), g(xt);
1721
+ const I = zt(L, v);
1722
+ x(I), C(-1), g(xt);
1684
1723
  }
1685
- }, ee = () => i(!0), X = () => i(!1), W = M(
1724
+ }, ee = () => i(!0), X = () => i(!1), W = V(
1686
1725
  (I) => {
1687
1726
  const le = e.current, z = t.current;
1688
1727
  if (le && z) {
@@ -1697,7 +1736,7 @@ function fo() {
1697
1736
  },
1698
1737
  [s]
1699
1738
  );
1700
- return qe(() => k(), N ? 1e3 : null), V(() => {
1739
+ return Ze(() => k(), M ? 1e3 : null), O(() => {
1701
1740
  k();
1702
1741
  }, [k]), /* @__PURE__ */ a.jsxs("div", { className: Xt, children: [
1703
1742
  /* @__PURE__ */ a.jsx(
@@ -1708,7 +1747,7 @@ function fo() {
1708
1747
  onPointerLeave: X,
1709
1748
  onPointerDown: X,
1710
1749
  onPointerMove: W,
1711
- onValueChange: q,
1750
+ onValueChange: Z,
1712
1751
  onValueCommit: Q,
1713
1752
  step: 0.1
1714
1753
  }
@@ -1723,7 +1762,7 @@ function fo() {
1723
1762
  )
1724
1763
  ] });
1725
1764
  }
1726
- function ho() {
1765
+ function fo() {
1727
1766
  return /* @__PURE__ */ a.jsx(
1728
1767
  "svg",
1729
1768
  {
@@ -1734,9 +1773,9 @@ function ho() {
1734
1773
  }
1735
1774
  );
1736
1775
  }
1737
- function mo() {
1738
- const e = O((s) => s.startDate), t = O((s) => s.setDelay), n = e ? e.getTime() : 0, o = () => t(zt(n));
1739
- return /* @__PURE__ */ a.jsx(oe, { onClick: o, children: /* @__PURE__ */ a.jsx(ho, {}) });
1776
+ function ho() {
1777
+ const e = H((s) => s.startDate), t = H((s) => s.setDelay), n = e ? e.getTime() : 0, o = () => t(zt(n));
1778
+ return /* @__PURE__ */ a.jsx(oe, { onClick: o, children: /* @__PURE__ */ a.jsx(fo, {}) });
1740
1779
  }
1741
1780
  function tn() {
1742
1781
  const e = f((t) => t.error);
@@ -1754,23 +1793,23 @@ function tn() {
1754
1793
  }
1755
1794
  function nn({ callback: e }) {
1756
1795
  const t = f((n) => n.eventEmitter);
1757
- return V(() => {
1758
- const n = () => e("play", void 0), o = () => e("pause", void 0), s = () => e("ended", void 0), l = () => e("seeking", void 0), u = () => e("seeked", void 0), i = (L) => e("timeUpdate", L), c = (L) => e("volumeChange", L), h = (L) => e("fullscreenChange", L), v = (L) => e("qualityChange", L), C = (L) => e("loadedMetadata", L), R = () => e("loadStart", void 0), _ = () => e("playing", void 0), b = () => e("waiting", void 0), H = () => e("error", void 0);
1759
- return t.on("play", n), t.on("pause", o), t.on("ended", s), t.on("seeking", l), t.on("seeked", u), t.on("timeUpdate", i), t.on("volumeChange", c), t.on("fullscreenChange", h), t.on("qualityChange", v), t.on("loadedMetadata", C), t.on("loadStart", R), t.on("playing", _), t.on("waiting", b), t.on("error", H), () => {
1760
- t.off("play", n), t.off("pause", o), t.off("ended", s), t.off("seeking", l), t.off("seeked", u), t.off("timeUpdate", i), t.off("volumeChange", c), t.off("fullscreenChange", h), t.off("qualityChange", v), t.off("loadedMetadata", C), t.off("loadStart", R), t.off("playing", _), t.off("waiting", b), t.off("error", H);
1796
+ return O(() => {
1797
+ const n = () => e("play", void 0), o = () => e("pause", void 0), s = () => e("ended", void 0), l = () => e("seeking", void 0), u = () => e("seeked", void 0), i = (x) => e("timeUpdate", x), c = (x) => e("volumeChange", x), h = (x) => e("fullscreenChange", x), v = (x) => e("qualityChange", x), C = (x) => e("loadedMetadata", x), S = () => e("loadStart", void 0), T = () => e("playing", void 0), L = () => e("waiting", void 0), N = () => e("error", void 0);
1798
+ return t.on("play", n), t.on("pause", o), t.on("ended", s), t.on("seeking", l), t.on("seeked", u), t.on("timeUpdate", i), t.on("volumeChange", c), t.on("fullscreenChange", h), t.on("qualityChange", v), t.on("loadedMetadata", C), t.on("loadStart", S), t.on("playing", T), t.on("waiting", L), t.on("error", N), () => {
1799
+ t.off("play", n), t.off("pause", o), t.off("ended", s), t.off("seeking", l), t.off("seeked", u), t.off("timeUpdate", i), t.off("volumeChange", c), t.off("fullscreenChange", h), t.off("qualityChange", v), t.off("loadedMetadata", C), t.off("loadStart", S), t.off("playing", T), t.off("waiting", L), t.off("error", N);
1761
1800
  };
1762
1801
  }, [e, t]), null;
1763
1802
  }
1764
- const vo = "_playerContainer_rry4k_1", po = "_controlsBottom_rry4k_29", yo = "_controlsContainer_rry4k_45", go = "_controlsRow_rry4k_61", Co = "_controlsSection_rry4k_68", wo = "_controlsSectionStart_rry4k_75", xo = "_controlsSectionEnd_rry4k_79", re = {
1765
- playerContainer: vo,
1766
- controlsBottom: po,
1767
- controlsContainer: yo,
1768
- controlsRow: go,
1769
- controlsSection: Co,
1770
- controlsSectionStart: wo,
1771
- controlsSectionEnd: xo
1803
+ const mo = "_playerContainer_rry4k_1", vo = "_controlsBottom_rry4k_29", po = "_controlsContainer_rry4k_45", yo = "_controlsRow_rry4k_61", go = "_controlsSection_rry4k_68", Co = "_controlsSectionStart_rry4k_75", wo = "_controlsSectionEnd_rry4k_79", re = {
1804
+ playerContainer: mo,
1805
+ controlsBottom: vo,
1806
+ controlsContainer: po,
1807
+ controlsRow: yo,
1808
+ controlsSection: go,
1809
+ controlsSectionStart: Co,
1810
+ controlsSectionEnd: wo
1772
1811
  }, rn = re.playerContainer, on = re.controlsBottom, sn = re.controlsContainer, an = re.controlsRow, ln = `${re.controlsSection} ${re.controlsSectionStart}`, cn = `${re.controlsSection} ${re.controlsSectionEnd}`;
1773
- function _o() {
1812
+ function xo() {
1774
1813
  return /* @__PURE__ */ a.jsx(
1775
1814
  "svg",
1776
1815
  {
@@ -1781,7 +1820,7 @@ function _o() {
1781
1820
  }
1782
1821
  );
1783
1822
  }
1784
- function Eo() {
1823
+ function _o() {
1785
1824
  return /* @__PURE__ */ a.jsx(
1786
1825
  "svg",
1787
1826
  {
@@ -1793,74 +1832,74 @@ function Eo() {
1793
1832
  );
1794
1833
  }
1795
1834
  function un() {
1796
- const e = f((h) => h.containerRef), t = f((h) => h.exitFullscreen), n = f((h) => h.isFullscreen), o = f((h) => h.requestFullscreen), s = f((h) => h.setIsFullscreen), l = f((h) => h.setIsFullscreenReady), u = f((h) => h.techRef), i = M(
1835
+ const e = f((h) => h.containerRef), t = f((h) => h.exitFullscreen), n = f((h) => h.isFullscreen), o = f((h) => h.requestFullscreen), s = f((h) => h.setIsFullscreen), l = f((h) => h.setIsFullscreenReady), u = f((h) => h.techRef), i = V(
1797
1836
  (h) => {
1798
- h.stopPropagation(), s(vr());
1837
+ h.stopPropagation(), s(mr());
1799
1838
  },
1800
1839
  [s]
1801
1840
  ), c = () => {
1802
1841
  n ? t() : o();
1803
1842
  };
1804
- return V(() => {
1843
+ return O(() => {
1805
1844
  const h = $t ? u.current : e.current;
1806
1845
  if (h)
1807
- return gr(h, i);
1808
- }, [e, i, u]), V(() => {
1846
+ return yr(h, i);
1847
+ }, [e, i, u]), O(() => {
1809
1848
  l(!0);
1810
- }, [l]), /* @__PURE__ */ a.jsx(oe, { onClick: c, children: n ? /* @__PURE__ */ a.jsx(Eo, {}) : /* @__PURE__ */ a.jsx(_o, {}) });
1849
+ }, [l]), /* @__PURE__ */ a.jsx(oe, { onClick: c, children: n ? /* @__PURE__ */ a.jsx(_o, {}) : /* @__PURE__ */ a.jsx(xo, {}) });
1811
1850
  }
1812
- const To = "_idleCheckContainer_iz9tu_1", Ro = "_idleCheckContainerIdle_iz9tu_10", So = "_idleCheckContainerActive_iz9tu_15", Ue = {
1851
+ const To = "_idleCheckContainer_iz9tu_1", Eo = "_idleCheckContainerIdle_iz9tu_10", Ro = "_idleCheckContainerActive_iz9tu_15", Ue = {
1813
1852
  idleCheckContainer: To,
1814
- idleCheckContainerIdle: Ro,
1815
- idleCheckContainerActive: So
1816
- }, Po = 5 * 1e3;
1853
+ idleCheckContainerIdle: Eo,
1854
+ idleCheckContainerActive: Ro
1855
+ }, So = 5 * 1e3;
1817
1856
  function dn({ children: e }) {
1818
- const t = A(null), [n, o] = U(!1), s = A(null), u = f((C) => C.idleLocks).size, i = M(() => {
1857
+ const t = A(null), [n, o] = U(!1), s = A(null), u = f((C) => C.idleLocks).size, i = V(() => {
1819
1858
  s.current !== null && (window.clearTimeout(s.current), s.current = null);
1820
- }, []), c = M(() => {
1821
- i(), s.current = window.setTimeout(() => o(!0), Po);
1859
+ }, []), c = V(() => {
1860
+ i(), s.current = window.setTimeout(() => o(!0), So);
1822
1861
  }, [i]);
1823
- V(() => (o(!1), c(), () => {
1862
+ O(() => (o(!1), c(), () => {
1824
1863
  i();
1825
- }), [i, c]), V(() => {
1864
+ }), [i, c]), O(() => {
1826
1865
  const C = t.current;
1827
1866
  if (!C) return;
1828
- const R = (b) => {
1829
- n && (b.stopPropagation(), o(!1), c());
1830
- }, _ = () => {
1867
+ const S = (L) => {
1868
+ n && (L.stopPropagation(), o(!1), c());
1869
+ }, T = () => {
1831
1870
  n && o(!1), c();
1832
1871
  };
1833
- return C.addEventListener("click", R), C.addEventListener("mousemove", _), () => {
1834
- C.removeEventListener("click", R), C.removeEventListener("mousemove", _);
1872
+ return C.addEventListener("click", S), C.addEventListener("mousemove", T), () => {
1873
+ C.removeEventListener("click", S), C.removeEventListener("mousemove", T);
1835
1874
  };
1836
1875
  }, [t, n, o, c]);
1837
1876
  const h = n && !u, v = `${Ue.idleCheckContainer} ${h ? Ue.idleCheckContainerIdle : Ue.idleCheckContainerActive}`;
1838
1877
  return /* @__PURE__ */ a.jsx("div", { ref: t, className: v, children: e });
1839
1878
  }
1840
- const Lo = "_spinner_oo4hi_10", jo = {
1841
- spinner: Lo
1879
+ const Po = "_spinner_oo4hi_10", Lo = {
1880
+ spinner: Po
1842
1881
  };
1843
- function bo(e) {
1844
- return /* @__PURE__ */ a.jsx("div", j({ className: jo.spinner }, e));
1882
+ function jo(e) {
1883
+ return /* @__PURE__ */ a.jsx("div", b({ className: Lo.spinner }, e));
1845
1884
  }
1846
- function ko(e, t = 500) {
1885
+ function bo(e, t = 500) {
1847
1886
  const [n, o] = U(e);
1848
- return V(() => {
1887
+ return O(() => {
1849
1888
  const s = window.setTimeout(() => o(e), t);
1850
1889
  return () => {
1851
1890
  window.clearTimeout(s);
1852
1891
  };
1853
1892
  }, [e, t]), n;
1854
1893
  }
1855
- const Do = "_loadingContainer_v9v7r_1", Io = {
1856
- loadingContainer: Do
1894
+ const ko = "_loadingContainer_v9v7r_1", Do = {
1895
+ loadingContainer: ko
1857
1896
  };
1858
1897
  function fn(n) {
1859
1898
  var o = n, { style: e } = o, t = G(o, ["style"]);
1860
1899
  const s = f((u) => u.isLoading);
1861
- return ko(s, 100) ? /* @__PURE__ */ a.jsx("div", he(j({ className: Io.loadingContainer, style: e }, t), { children: /* @__PURE__ */ a.jsx(bo, {}) })) : null;
1900
+ return bo(s, 100) ? /* @__PURE__ */ a.jsx("div", he(b({ className: Do.loadingContainer, style: e }, t), { children: /* @__PURE__ */ a.jsx(jo, {}) })) : null;
1862
1901
  }
1863
- function Fo() {
1902
+ function Io() {
1864
1903
  return /* @__PURE__ */ a.jsx(
1865
1904
  "svg",
1866
1905
  {
@@ -1871,7 +1910,7 @@ function Fo() {
1871
1910
  }
1872
1911
  );
1873
1912
  }
1874
- function No() {
1913
+ function Fo() {
1875
1914
  return /* @__PURE__ */ a.jsx(
1876
1915
  "svg",
1877
1916
  {
@@ -1882,14 +1921,14 @@ function No() {
1882
1921
  }
1883
1922
  );
1884
1923
  }
1885
- const Mo = "_dropdownMenuContent_1gwy6_1", Vo = "_dropdownMenuItem_1gwy6_80", hn = {
1886
- dropdownMenuContent: Mo,
1887
- dropdownMenuItem: Vo
1888
- }, Oo = ye.Root, Ho = ye.Trigger, Ao = ye.Portal, mn = De((s, o) => {
1924
+ const No = "_dropdownMenuContent_1gwy6_1", Mo = "_dropdownMenuItem_1gwy6_80", hn = {
1925
+ dropdownMenuContent: No,
1926
+ dropdownMenuItem: Mo
1927
+ }, Vo = ye.Root, Oo = ye.Trigger, Ho = ye.Portal, mn = De((s, o) => {
1889
1928
  var l = s, { sideOffset: e = 4, className: t } = l, n = G(l, ["sideOffset", "className"]);
1890
1929
  return /* @__PURE__ */ a.jsx(
1891
1930
  ye.Content,
1892
- j({
1931
+ b({
1893
1932
  ref: o,
1894
1933
  sideOffset: e,
1895
1934
  className: [hn.dropdownMenuContent, t].filter(Boolean).join(" "),
@@ -1904,7 +1943,7 @@ const vn = De((o, n) => {
1904
1943
  var s = o, { className: e } = s, t = G(s, ["className"]);
1905
1944
  return /* @__PURE__ */ a.jsx(
1906
1945
  ye.Item,
1907
- j({
1946
+ b({
1908
1947
  ref: n,
1909
1948
  className: [hn.dropdownMenuItem, e].filter(Boolean).join(" ")
1910
1949
  }, t)
@@ -1913,28 +1952,28 @@ const vn = De((o, n) => {
1913
1952
  vn.displayName = "PlayerDropdownMenuItem";
1914
1953
  const _t = "settings";
1915
1954
  function pn() {
1916
- const [e, t] = U(!1), n = f((c) => c.containerRef), o = f((c) => c.addIdleLock), s = f((c) => c.removeIdleLock), l = f((c) => c.levels), u = f((c) => c.setLevel), i = M(
1955
+ const [e, t] = U(!1), n = f((c) => c.containerRef), o = f((c) => c.addIdleLock), s = f((c) => c.removeIdleLock), l = f((c) => c.levels), u = f((c) => c.setLevel), i = V(
1917
1956
  (c) => {
1918
1957
  t(c), c ? o(_t) : s(_t);
1919
1958
  },
1920
1959
  [o, s]
1921
1960
  );
1922
- return /* @__PURE__ */ a.jsxs(Oo, { open: e, onOpenChange: i, children: [
1923
- /* @__PURE__ */ a.jsx(Ho, { asChild: !0, children: /* @__PURE__ */ a.jsx(oe, { children: /* @__PURE__ */ a.jsx(No, {}) }) }),
1924
- /* @__PURE__ */ a.jsx(Ao, { container: n.current, children: /* @__PURE__ */ a.jsx(mn, { side: "top", align: "end", children: l == null ? void 0 : l.map((c) => /* @__PURE__ */ a.jsxs(
1961
+ return /* @__PURE__ */ a.jsxs(Vo, { open: e, onOpenChange: i, children: [
1962
+ /* @__PURE__ */ a.jsx(Oo, { asChild: !0, children: /* @__PURE__ */ a.jsx(oe, { children: /* @__PURE__ */ a.jsx(Fo, {}) }) }),
1963
+ /* @__PURE__ */ a.jsx(Ho, { container: n.current, children: /* @__PURE__ */ a.jsx(mn, { side: "top", align: "end", children: l == null ? void 0 : l.map((c) => /* @__PURE__ */ a.jsxs(
1925
1964
  vn,
1926
1965
  {
1927
1966
  onClick: () => u(c.value),
1928
1967
  children: [
1929
1968
  c.label,
1930
- c.selected && /* @__PURE__ */ a.jsx(Fo, {})
1969
+ c.selected && /* @__PURE__ */ a.jsx(Io, {})
1931
1970
  ]
1932
1971
  },
1933
1972
  c.sid
1934
1973
  )) }) })
1935
1974
  ] });
1936
1975
  }
1937
- function $o() {
1976
+ function Ao() {
1938
1977
  return /* @__PURE__ */ a.jsx(
1939
1978
  "svg",
1940
1979
  {
@@ -1945,7 +1984,7 @@ function $o() {
1945
1984
  }
1946
1985
  );
1947
1986
  }
1948
- function Uo() {
1987
+ function $o() {
1949
1988
  return /* @__PURE__ */ a.jsx(
1950
1989
  "svg",
1951
1990
  {
@@ -1956,7 +1995,7 @@ function Uo() {
1956
1995
  }
1957
1996
  );
1958
1997
  }
1959
- function Bo() {
1998
+ function Uo() {
1960
1999
  return /* @__PURE__ */ a.jsx(
1961
2000
  "svg",
1962
2001
  {
@@ -1967,19 +2006,19 @@ function Bo() {
1967
2006
  }
1968
2007
  );
1969
2008
  }
1970
- const Wo = "_volumeSlider_59ltz_1", zo = "_volumeContainer_59ltz_7", Et = {
1971
- volumeSlider: Wo,
1972
- volumeContainer: zo
1973
- }, Tt = "volume";
2009
+ const Bo = "_volumeSlider_59ltz_1", Wo = "_volumeContainer_59ltz_7", Tt = {
2010
+ volumeSlider: Bo,
2011
+ volumeContainer: Wo
2012
+ }, Et = "volume";
1974
2013
  function yn() {
1975
2014
  const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), o = f((i) => i.removeIdleLock), s = (i) => {
1976
- e(i[0]), n(Tt);
2015
+ e(i[0]), n(Et);
1977
2016
  }, l = () => {
1978
- o(Tt);
2017
+ o(Et);
1979
2018
  }, u = () => e(t ? 0 : 100);
1980
- return /* @__PURE__ */ a.jsxs("div", { className: Et.volumeContainer, children: [
1981
- /* @__PURE__ */ a.jsx(oe, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ a.jsx($o, {}) : /* @__PURE__ */ a.jsx(Uo, {}) : /* @__PURE__ */ a.jsx(Bo, {}) }),
1982
- /* @__PURE__ */ a.jsx("div", { className: Et.volumeSlider, children: /* @__PURE__ */ a.jsx(
2019
+ return /* @__PURE__ */ a.jsxs("div", { className: Tt.volumeContainer, children: [
2020
+ /* @__PURE__ */ a.jsx(oe, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ a.jsx(Ao, {}) : /* @__PURE__ */ a.jsx($o, {}) : /* @__PURE__ */ a.jsx(Uo, {}) }),
2021
+ /* @__PURE__ */ a.jsx("div", { className: Tt.volumeSlider, children: /* @__PURE__ */ a.jsx(
1983
2022
  Ie,
1984
2023
  {
1985
2024
  value: [t],
@@ -2006,10 +2045,10 @@ function gn(e, {
2006
2045
  };
2007
2046
  }, [e]), s;
2008
2047
  }
2009
- function ui(e) {
2010
- return /* @__PURE__ */ a.jsx(Vr, { children: /* @__PURE__ */ a.jsx(Zo, j({}, e)) });
2048
+ function li(e) {
2049
+ return /* @__PURE__ */ a.jsx(Mr, { children: /* @__PURE__ */ a.jsx(zo, b({}, e)) });
2011
2050
  }
2012
- function Zo({ url: e, messages: t, onEvent: n }) {
2051
+ function zo({ url: e, messages: t, onEvent: n }) {
2013
2052
  const o = gn("(min-width: 1024px)"), s = f((l) => l.containerRef);
2014
2053
  return /* @__PURE__ */ a.jsxs(
2015
2054
  "div",
@@ -2018,28 +2057,28 @@ function Zo({ url: e, messages: t, onEvent: n }) {
2018
2057
  className: rn,
2019
2058
  children: [
2020
2059
  /* @__PURE__ */ a.jsxs(
2021
- Ir,
2060
+ Dr,
2022
2061
  {
2023
2062
  url: e,
2024
2063
  eventFinishedMessage: t == null ? void 0 : t.eventFinished,
2025
2064
  eventNotStartedMessage: t == null ? void 0 : t.eventNotStarted,
2026
2065
  eventStartingSoonMessage: t == null ? void 0 : t.eventStartingSoon,
2027
2066
  children: [
2028
- /* @__PURE__ */ a.jsx(zr, { url: e }),
2067
+ /* @__PURE__ */ a.jsx(Wr, { url: e }),
2029
2068
  /* @__PURE__ */ a.jsx(tn, {}),
2030
2069
  /* @__PURE__ */ a.jsx(fn, {}),
2031
2070
  /* @__PURE__ */ a.jsxs(dn, { children: [
2032
- o ? /* @__PURE__ */ a.jsx(Yr, {}) : null,
2071
+ o ? /* @__PURE__ */ a.jsx(Zr, {}) : null,
2033
2072
  /* @__PURE__ */ a.jsx("div", { className: on, children: /* @__PURE__ */ a.jsxs("div", { className: sn, children: [
2034
- /* @__PURE__ */ a.jsx(fo, {}),
2073
+ /* @__PURE__ */ a.jsx(uo, {}),
2035
2074
  /* @__PURE__ */ a.jsxs("div", { className: an, children: [
2036
2075
  /* @__PURE__ */ a.jsxs("div", { className: ln, children: [
2037
- /* @__PURE__ */ a.jsx(to, {}),
2038
- /* @__PURE__ */ a.jsx(mo, {}),
2076
+ /* @__PURE__ */ a.jsx(eo, {}),
2077
+ /* @__PURE__ */ a.jsx(ho, {}),
2039
2078
  /* @__PURE__ */ a.jsx(yn, {})
2040
2079
  ] }),
2041
2080
  /* @__PURE__ */ a.jsxs("div", { className: cn, children: [
2042
- /* @__PURE__ */ a.jsx(eo, { message: t == null ? void 0 : t.live }),
2081
+ /* @__PURE__ */ a.jsx(Qr, { message: t == null ? void 0 : t.live }),
2043
2082
  /* @__PURE__ */ a.jsx(pn, {}),
2044
2083
  /* @__PURE__ */ a.jsx(un, {})
2045
2084
  ] })
@@ -2049,7 +2088,7 @@ function Zo({ url: e, messages: t, onEvent: n }) {
2049
2088
  ]
2050
2089
  }
2051
2090
  ),
2052
- /* @__PURE__ */ a.jsx(Mr, {}),
2091
+ /* @__PURE__ */ a.jsx(Nr, {}),
2053
2092
  n && /* @__PURE__ */ a.jsx(nn, { callback: n })
2054
2093
  ]
2055
2094
  }
@@ -2059,32 +2098,32 @@ function qo() {
2059
2098
  const e = f((s) => s.isPlaying), t = f((s) => s.pause), n = f((s) => s.play), o = () => {
2060
2099
  e ? t() : n();
2061
2100
  };
2062
- return /* @__PURE__ */ a.jsx(qt, { onClick: o });
2101
+ return /* @__PURE__ */ a.jsx(Zt, { onClick: o });
2063
2102
  }
2064
- function Yo() {
2103
+ function Zo() {
2065
2104
  const e = f((s) => s.isPlaying), t = f((s) => s.pause), n = f((s) => s.play), o = () => {
2066
2105
  e ? t() : n();
2067
2106
  };
2068
2107
  return /* @__PURE__ */ a.jsx(oe, { onClick: o, children: e ? /* @__PURE__ */ a.jsx(Yt, {}) : /* @__PURE__ */ a.jsx(Kt, {}) });
2069
2108
  }
2070
2109
  const Rt = "vod-player-progress-bar";
2071
- function Ko() {
2072
- const e = A(null), t = A(null), [n, o] = U(!1), [s, l] = U(-1), [u, i] = U(-1), c = f((g) => g.currentTime), h = f((g) => g.duration), v = f((g) => g.seek), C = f((g) => g.addIdleLock), R = f((g) => g.removeIdleLock), _ = parseFloat(
2110
+ function Yo() {
2111
+ const e = A(null), t = A(null), [n, o] = U(!1), [s, l] = U(-1), [u, i] = U(-1), c = f((g) => g.currentTime), h = f((g) => g.duration), v = f((g) => g.seek), C = f((g) => g.addIdleLock), S = f((g) => g.removeIdleLock), T = parseFloat(
2073
2112
  (h ? (u !== -1 ? u : c) / h * 100 : 0).toFixed(1)
2074
- ), b = (g) => {
2113
+ ), L = (g) => {
2075
2114
  i(h * (g[0] / 100)), C(Rt);
2076
- }, H = () => {
2077
- u !== -1 && (v(u), i(-1), R(Rt));
2078
- }, L = () => o(!0), N = () => o(!1), S = M(
2115
+ }, N = () => {
2116
+ u !== -1 && (v(u), i(-1), S(Rt));
2117
+ }, x = () => o(!0), M = () => o(!1), P = V(
2079
2118
  (g) => {
2080
2119
  const k = e.current, p = t.current;
2081
2120
  if (k && p) {
2082
- const q = ke(k), Q = ke(p), ee = (g.pageX || g.clientX) - q.left, X = ee / q.width;
2121
+ const Z = ke(k), Q = ke(p), ee = (g.pageX || g.clientX) - Z.left, X = ee / Z.width;
2083
2122
  if (X < 0) return;
2084
2123
  let W = ee - Q.width / 2;
2085
- W < 0 && (W = 0), W > q.width - Q.width && (W = -1), p.style.left = W > -1 ? `${W}px` : "auto", p.style.right = W > -1 ? "auto" : "0px", l(X * h);
2124
+ W < 0 && (W = 0), W > Z.width - Q.width && (W = -1), p.style.left = W > -1 ? `${W}px` : "auto", p.style.right = W > -1 ? "auto" : "0px", l(X * h);
2086
2125
  }
2087
- L();
2126
+ x();
2088
2127
  },
2089
2128
  [h]
2090
2129
  );
@@ -2093,12 +2132,12 @@ function Ko() {
2093
2132
  Ie,
2094
2133
  {
2095
2134
  ref: e,
2096
- value: [_],
2097
- onPointerLeave: N,
2098
- onPointerDown: N,
2099
- onPointerMove: S,
2100
- onValueChange: b,
2101
- onValueCommit: H,
2135
+ value: [T],
2136
+ onPointerLeave: M,
2137
+ onPointerDown: M,
2138
+ onPointerMove: P,
2139
+ onValueChange: L,
2140
+ onValueCommit: N,
2102
2141
  step: 0.1
2103
2142
  }
2104
2143
  ),
@@ -2112,21 +2151,21 @@ function Ko() {
2112
2151
  )
2113
2152
  ] });
2114
2153
  }
2115
- const Xo = "_remainingTime_1c40f_1", Jo = "_time_1c40f_7", Go = "_separator_1c40f_18", Ye = {
2116
- remainingTime: Xo,
2117
- time: Jo,
2118
- separator: Go
2119
- }, Qo = Ye.remainingTime, St = Ye.time, ei = Ye.separator;
2120
- function ti() {
2154
+ const Ko = "_remainingTime_1c40f_1", Xo = "_time_1c40f_7", Jo = "_separator_1c40f_18", Ye = {
2155
+ remainingTime: Ko,
2156
+ time: Xo,
2157
+ separator: Jo
2158
+ }, Go = Ye.remainingTime, St = Ye.time, Qo = Ye.separator;
2159
+ function ei() {
2121
2160
  const e = f((n) => n.currentTime), t = f((n) => n.duration);
2122
- return /* @__PURE__ */ a.jsxs("div", { className: Qo, children: [
2161
+ return /* @__PURE__ */ a.jsxs("div", { className: Go, children: [
2123
2162
  /* @__PURE__ */ a.jsx("p", { className: St, children: be(e) }),
2124
- /* @__PURE__ */ a.jsx("p", { className: ei }),
2163
+ /* @__PURE__ */ a.jsx("p", { className: Qo }),
2125
2164
  /* @__PURE__ */ a.jsx("p", { className: St, children: be(t) })
2126
2165
  ] });
2127
2166
  }
2128
- function ni() {
2129
- const e = f((i) => i.currentTime), t = f((i) => i.duration), n = f((i) => i.isPlaying), o = f((i) => i.pause), s = f((i) => i.play), l = f((i) => i.seek), u = M(
2167
+ function ti() {
2168
+ const e = f((i) => i.currentTime), t = f((i) => i.duration), n = f((i) => i.isPlaying), o = f((i) => i.pause), s = f((i) => i.play), l = f((i) => i.seek), u = V(
2130
2169
  (i) => {
2131
2170
  let c = !1;
2132
2171
  if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
@@ -2146,16 +2185,16 @@ function ni() {
2146
2185
  },
2147
2186
  [e, t, n, o, s, l]
2148
2187
  );
2149
- return V(() => (document.addEventListener("keydown", u), () => {
2188
+ return O(() => (document.addEventListener("keydown", u), () => {
2150
2189
  document.removeEventListener("keydown", u);
2151
2190
  }), [u]), /* @__PURE__ */ a.jsx(Bt, {});
2152
2191
  }
2153
- function di(e) {
2154
- return /* @__PURE__ */ a.jsx(Wt, { children: /* @__PURE__ */ a.jsx(ri, j({}, e)) });
2192
+ function ci(e) {
2193
+ return /* @__PURE__ */ a.jsx(Wt, { children: /* @__PURE__ */ a.jsx(ni, b({}, e)) });
2155
2194
  }
2156
- function ri({ url: e, onEvent: t, startTime: n }) {
2195
+ function ni({ url: e, onEvent: t, startTime: n }) {
2157
2196
  const o = gn("(min-width: 1024px)"), s = f((u) => u.setStartTime), l = f((u) => u.containerRef);
2158
- return V(() => {
2197
+ return O(() => {
2159
2198
  n && s(n);
2160
2199
  }, [n, s]), /* @__PURE__ */ a.jsxs(
2161
2200
  "div",
@@ -2163,18 +2202,18 @@ function ri({ url: e, onEvent: t, startTime: n }) {
2163
2202
  ref: l,
2164
2203
  className: rn,
2165
2204
  children: [
2166
- /* @__PURE__ */ a.jsx(Zt, { url: e, isLive: !1 }),
2205
+ /* @__PURE__ */ a.jsx(qt, { url: e, isLive: !1 }),
2167
2206
  /* @__PURE__ */ a.jsx(tn, {}),
2168
2207
  /* @__PURE__ */ a.jsx(fn, {}),
2169
2208
  /* @__PURE__ */ a.jsxs(dn, { children: [
2170
2209
  o ? /* @__PURE__ */ a.jsx(qo, {}) : null,
2171
2210
  /* @__PURE__ */ a.jsx("div", { className: on, children: /* @__PURE__ */ a.jsxs("div", { className: sn, children: [
2172
- /* @__PURE__ */ a.jsx(Ko, {}),
2211
+ /* @__PURE__ */ a.jsx(Yo, {}),
2173
2212
  /* @__PURE__ */ a.jsxs("div", { className: an, children: [
2174
2213
  /* @__PURE__ */ a.jsxs("div", { className: ln, children: [
2175
- /* @__PURE__ */ a.jsx(Yo, {}),
2214
+ /* @__PURE__ */ a.jsx(Zo, {}),
2176
2215
  /* @__PURE__ */ a.jsx(yn, {}),
2177
- /* @__PURE__ */ a.jsx(ti, {})
2216
+ /* @__PURE__ */ a.jsx(ei, {})
2178
2217
  ] }),
2179
2218
  /* @__PURE__ */ a.jsxs("div", { className: cn, children: [
2180
2219
  /* @__PURE__ */ a.jsx(pn, {}),
@@ -2183,14 +2222,14 @@ function ri({ url: e, onEvent: t, startTime: n }) {
2183
2222
  ] })
2184
2223
  ] }) })
2185
2224
  ] }),
2186
- /* @__PURE__ */ a.jsx(ni, {}),
2225
+ /* @__PURE__ */ a.jsx(ti, {}),
2187
2226
  t && /* @__PURE__ */ a.jsx(nn, { callback: t })
2188
2227
  ]
2189
2228
  }
2190
2229
  );
2191
2230
  }
2192
2231
  export {
2193
- ui as LivePlayer,
2194
- di as VodPlayer
2232
+ li as LivePlayer,
2233
+ ci as VodPlayer
2195
2234
  };
2196
2235
  //# sourceMappingURL=react-video-player.es.js.map