@halibegic/react-video-player 0.0.37 → 0.0.39

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,32 +1,32 @@
1
- var Fn = Object.defineProperty, Mn = Object.defineProperties;
2
- var Nn = Object.getOwnPropertyDescriptors;
3
- var be = Object.getOwnPropertySymbols;
4
- var pt = Object.prototype.hasOwnProperty, vt = Object.prototype.propertyIsEnumerable;
5
- var mt = (e, t, n) => t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, P = (e, t) => {
1
+ var Mn = Object.defineProperty, Nn = Object.defineProperties;
2
+ var Vn = Object.getOwnPropertyDescriptors;
3
+ var Se = Object.getOwnPropertySymbols;
4
+ var vt = Object.prototype.hasOwnProperty, yt = Object.prototype.propertyIsEnumerable;
5
+ var pt = (e, t, n) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, L = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- pt.call(t, n) && mt(e, n, t[n]);
8
- if (be)
9
- for (var n of be(t))
10
- vt.call(t, n) && mt(e, n, t[n]);
7
+ vt.call(t, n) && pt(e, n, t[n]);
8
+ if (Se)
9
+ for (var n of Se(t))
10
+ yt.call(t, n) && pt(e, n, t[n]);
11
11
  return e;
12
- }, he = (e, t) => Mn(e, Nn(t));
12
+ }, he = (e, t) => Nn(e, Vn(t));
13
13
  var ne = (e, t) => {
14
14
  var n = {};
15
15
  for (var o in e)
16
- pt.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
17
- if (e != null && be)
18
- for (var o of be(e))
19
- t.indexOf(o) < 0 && vt.call(e, o) && (n[o] = e[o]);
16
+ vt.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
17
+ if (e != null && Se)
18
+ for (var o of Se(e))
19
+ t.indexOf(o) < 0 && yt.call(e, o) && (n[o] = e[o]);
20
20
  return n;
21
21
  };
22
- import St, { useLayoutEffect as Vn, useEffect as N, useRef as O, useState as X, createContext as bt, useContext as Lt, useCallback as B, forwardRef as Me } from "react";
23
- import { create as Pt, useStore as jt } from "zustand";
24
- import An from "mitt";
22
+ import St, { useLayoutEffect as An, useEffect as F, useRef as V, useState as X, createContext as jt, useContext as Lt, useCallback as z, forwardRef as Ne } from "react";
23
+ import { create as Pt, useStore as kt } from "zustand";
24
+ import On from "mitt";
25
25
  import re from "hls.js";
26
- import * as Le from "@radix-ui/react-slider";
27
- import * as xe from "@radix-ui/react-popover";
28
- import * as Pe from "@radix-ui/react-scroll-area";
29
- function kt(e) {
26
+ import * as je from "@radix-ui/react-slider";
27
+ import * as Te from "@radix-ui/react-popover";
28
+ import * as Le from "@radix-ui/react-scroll-area";
29
+ function It(e) {
30
30
  var t = this.constructor;
31
31
  return this.then(
32
32
  function(n) {
@@ -41,7 +41,7 @@ function kt(e) {
41
41
  }
42
42
  );
43
43
  }
44
- function It(e) {
44
+ function Dt(e) {
45
45
  var t = this;
46
46
  return new t(function(n, o) {
47
47
  if (!(e && typeof e.length != "undefined"))
@@ -50,48 +50,48 @@ function It(e) {
50
50
  typeof e + " " + e + " is not iterable(cannot read property Symbol(Symbol.iterator))"
51
51
  )
52
52
  );
53
- var s = Array.prototype.slice.call(e);
54
- if (s.length === 0) return n([]);
55
- var c = s.length;
56
- function u(l, d) {
53
+ var a = Array.prototype.slice.call(e);
54
+ if (a.length === 0) return n([]);
55
+ var l = a.length;
56
+ function u(c, d) {
57
57
  if (d && (typeof d == "object" || typeof d == "function")) {
58
58
  var g = d.then;
59
59
  if (typeof g == "function") {
60
60
  g.call(
61
61
  d,
62
62
  function(y) {
63
- u(l, y);
63
+ u(c, y);
64
64
  },
65
65
  function(y) {
66
- s[l] = { status: "rejected", reason: y }, --c === 0 && n(s);
66
+ a[c] = { status: "rejected", reason: y }, --l === 0 && n(a);
67
67
  }
68
68
  );
69
69
  return;
70
70
  }
71
71
  }
72
- s[l] = { status: "fulfilled", value: d }, --c === 0 && n(s);
72
+ a[c] = { status: "fulfilled", value: d }, --l === 0 && n(a);
73
73
  }
74
- for (var i = 0; i < s.length; i++)
75
- u(i, s[i]);
74
+ for (var i = 0; i < a.length; i++)
75
+ u(i, a[i]);
76
76
  });
77
77
  }
78
- function Dt(e, t) {
78
+ function Ft(e, t) {
79
79
  this.name = "AggregateError", this.errors = e, this.message = t || "";
80
80
  }
81
- Dt.prototype = Error.prototype;
82
- function Ft(e) {
81
+ Ft.prototype = Error.prototype;
82
+ function Mt(e) {
83
83
  var t = this;
84
84
  return new t(function(n, o) {
85
85
  if (!(e && typeof e.length != "undefined"))
86
86
  return o(new TypeError("Promise.any accepts an array"));
87
- var s = Array.prototype.slice.call(e);
88
- if (s.length === 0) return o();
89
- for (var c = [], u = 0; u < s.length; u++)
87
+ var a = Array.prototype.slice.call(e);
88
+ if (a.length === 0) return o();
89
+ for (var l = [], u = 0; u < a.length; u++)
90
90
  try {
91
- t.resolve(s[u]).then(n).catch(function(i) {
92
- c.push(i), c.length === s.length && o(
93
- new Dt(
94
- c,
91
+ t.resolve(a[u]).then(n).catch(function(i) {
92
+ l.push(i), l.length === a.length && o(
93
+ new Ft(
94
+ l,
95
95
  "All promises were rejected"
96
96
  )
97
97
  );
@@ -101,161 +101,161 @@ function Ft(e) {
101
101
  }
102
102
  });
103
103
  }
104
- var On = setTimeout;
105
- function Mt(e) {
104
+ var Hn = setTimeout;
105
+ function Nt(e) {
106
106
  return !!(e && typeof e.length != "undefined");
107
107
  }
108
- function Hn() {
108
+ function $n() {
109
109
  }
110
- function $n(e, t) {
110
+ function Un(e, t) {
111
111
  return function() {
112
112
  e.apply(t, arguments);
113
113
  };
114
114
  }
115
- function F(e) {
116
- if (!(this instanceof F))
115
+ function M(e) {
116
+ if (!(this instanceof M))
117
117
  throw new TypeError("Promises must be constructed via new");
118
118
  if (typeof e != "function") throw new TypeError("not a function");
119
- this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], Vt(e, this);
119
+ this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], At(e, this);
120
120
  }
121
- function Nt(e, t) {
121
+ function Vt(e, t) {
122
122
  for (; e._state === 3; )
123
123
  e = e._value;
124
124
  if (e._state === 0) {
125
125
  e._deferreds.push(t);
126
126
  return;
127
127
  }
128
- e._handled = !0, F._immediateFn(function() {
128
+ e._handled = !0, M._immediateFn(function() {
129
129
  var n = e._state === 1 ? t.onFulfilled : t.onRejected;
130
130
  if (n === null) {
131
- (e._state === 1 ? We : Te)(t.promise, e._value);
131
+ (e._state === 1 ? Ke : _e)(t.promise, e._value);
132
132
  return;
133
133
  }
134
134
  var o;
135
135
  try {
136
136
  o = n(e._value);
137
- } catch (s) {
138
- Te(t.promise, s);
137
+ } catch (a) {
138
+ _e(t.promise, a);
139
139
  return;
140
140
  }
141
- We(t.promise, o);
141
+ Ke(t.promise, o);
142
142
  });
143
143
  }
144
- function We(e, t) {
144
+ function Ke(e, t) {
145
145
  try {
146
146
  if (t === e)
147
147
  throw new TypeError("A promise cannot be resolved with itself.");
148
148
  if (t && (typeof t == "object" || typeof t == "function")) {
149
149
  var n = t.then;
150
- if (t instanceof F) {
151
- e._state = 3, e._value = t, Ze(e);
150
+ if (t instanceof M) {
151
+ e._state = 3, e._value = t, Ye(e);
152
152
  return;
153
153
  } else if (typeof n == "function") {
154
- Vt($n(n, t), e);
154
+ At(Un(n, t), e);
155
155
  return;
156
156
  }
157
157
  }
158
- e._state = 1, e._value = t, Ze(e);
158
+ e._state = 1, e._value = t, Ye(e);
159
159
  } catch (o) {
160
- Te(e, o);
160
+ _e(e, o);
161
161
  }
162
162
  }
163
- function Te(e, t) {
164
- e._state = 2, e._value = t, Ze(e);
163
+ function _e(e, t) {
164
+ e._state = 2, e._value = t, Ye(e);
165
165
  }
166
- function Ze(e) {
167
- e._state === 2 && e._deferreds.length === 0 && F._immediateFn(function() {
168
- e._handled || F._unhandledRejectionFn(e._value);
166
+ function Ye(e) {
167
+ e._state === 2 && e._deferreds.length === 0 && M._immediateFn(function() {
168
+ e._handled || M._unhandledRejectionFn(e._value);
169
169
  });
170
170
  for (var t = 0, n = e._deferreds.length; t < n; t++)
171
- Nt(e, e._deferreds[t]);
171
+ Vt(e, e._deferreds[t]);
172
172
  e._deferreds = null;
173
173
  }
174
- function Un(e, t, n) {
174
+ function Bn(e, t, n) {
175
175
  this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.promise = n;
176
176
  }
177
- function Vt(e, t) {
177
+ function At(e, t) {
178
178
  var n = !1;
179
179
  try {
180
180
  e(
181
181
  function(o) {
182
- n || (n = !0, We(t, o));
182
+ n || (n = !0, Ke(t, o));
183
183
  },
184
184
  function(o) {
185
- n || (n = !0, Te(t, o));
185
+ n || (n = !0, _e(t, o));
186
186
  }
187
187
  );
188
188
  } catch (o) {
189
189
  if (n) return;
190
- n = !0, Te(t, o);
190
+ n = !0, _e(t, o);
191
191
  }
192
192
  }
193
- F.prototype.catch = function(e) {
193
+ M.prototype.catch = function(e) {
194
194
  return this.then(null, e);
195
195
  };
196
- F.prototype.then = function(e, t) {
197
- var n = new this.constructor(Hn);
198
- return Nt(this, new Un(e, t, n)), n;
196
+ M.prototype.then = function(e, t) {
197
+ var n = new this.constructor($n);
198
+ return Vt(this, new Bn(e, t, n)), n;
199
199
  };
200
- F.prototype.finally = kt;
201
- F.all = function(e) {
202
- return new F(function(t, n) {
203
- if (!Mt(e))
200
+ M.prototype.finally = It;
201
+ M.all = function(e) {
202
+ return new M(function(t, n) {
203
+ if (!Nt(e))
204
204
  return n(new TypeError("Promise.all accepts an array"));
205
205
  var o = Array.prototype.slice.call(e);
206
206
  if (o.length === 0) return t([]);
207
- var s = o.length;
208
- function c(i, l) {
207
+ var a = o.length;
208
+ function l(i, c) {
209
209
  try {
210
- if (l && (typeof l == "object" || typeof l == "function")) {
211
- var d = l.then;
210
+ if (c && (typeof c == "object" || typeof c == "function")) {
211
+ var d = c.then;
212
212
  if (typeof d == "function") {
213
213
  d.call(
214
- l,
214
+ c,
215
215
  function(g) {
216
- c(i, g);
216
+ l(i, g);
217
217
  },
218
218
  n
219
219
  );
220
220
  return;
221
221
  }
222
222
  }
223
- o[i] = l, --s === 0 && t(o);
223
+ o[i] = c, --a === 0 && t(o);
224
224
  } catch (g) {
225
225
  n(g);
226
226
  }
227
227
  }
228
228
  for (var u = 0; u < o.length; u++)
229
- c(u, o[u]);
229
+ l(u, o[u]);
230
230
  });
231
231
  };
232
- F.any = Ft;
233
- F.allSettled = It;
234
- F.resolve = function(e) {
235
- return e && typeof e == "object" && e.constructor === F ? e : new F(function(t) {
232
+ M.any = Mt;
233
+ M.allSettled = Dt;
234
+ M.resolve = function(e) {
235
+ return e && typeof e == "object" && e.constructor === M ? e : new M(function(t) {
236
236
  t(e);
237
237
  });
238
238
  };
239
- F.reject = function(e) {
240
- return new F(function(t, n) {
239
+ M.reject = function(e) {
240
+ return new M(function(t, n) {
241
241
  n(e);
242
242
  });
243
243
  };
244
- F.race = function(e) {
245
- return new F(function(t, n) {
246
- if (!Mt(e))
244
+ M.race = function(e) {
245
+ return new M(function(t, n) {
246
+ if (!Nt(e))
247
247
  return n(new TypeError("Promise.race accepts an array"));
248
- for (var o = 0, s = e.length; o < s; o++)
249
- F.resolve(e[o]).then(t, n);
248
+ for (var o = 0, a = e.length; o < a; o++)
249
+ M.resolve(e[o]).then(t, n);
250
250
  });
251
251
  };
252
- F._immediateFn = // @ts-ignore
252
+ M._immediateFn = // @ts-ignore
253
253
  typeof setImmediate == "function" && function(e) {
254
254
  setImmediate(e);
255
255
  } || function(e) {
256
- On(e, 0);
256
+ Hn(e, 0);
257
257
  };
258
- F._unhandledRejectionFn = function(t) {
258
+ M._unhandledRejectionFn = function(t) {
259
259
  typeof console != "undefined" && console && console.warn("Possible Unhandled Promise Rejection:", t);
260
260
  };
261
261
  var ae = (function() {
@@ -267,35 +267,35 @@ var ae = (function() {
267
267
  return global;
268
268
  throw new Error("unable to locate global object");
269
269
  })();
270
- typeof ae.Promise != "function" ? ae.Promise = F : (ae.Promise.prototype.finally || (ae.Promise.prototype.finally = kt), ae.Promise.allSettled || (ae.Promise.allSettled = It), ae.Promise.any || (ae.Promise.any = Ft));
271
- var je = { exports: {} }, ge = {};
272
- var yt;
273
- function Bn() {
274
- if (yt) return ge;
275
- yt = 1;
276
- var e = St, 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, c = { key: !0, ref: !0, __self: !0, __source: !0 };
277
- function u(i, l, d) {
278
- var g, y = {}, v = null, _ = null;
279
- d !== void 0 && (v = "" + d), l.key !== void 0 && (v = "" + l.key), l.ref !== void 0 && (_ = l.ref);
280
- for (g in l) o.call(l, g) && !c.hasOwnProperty(g) && (y[g] = l[g]);
281
- if (i && i.defaultProps) for (g in l = i.defaultProps, l) y[g] === void 0 && (y[g] = l[g]);
282
- return { $$typeof: t, type: i, key: v, ref: _, props: y, _owner: s.current };
270
+ typeof ae.Promise != "function" ? ae.Promise = M : (ae.Promise.prototype.finally || (ae.Promise.prototype.finally = It), ae.Promise.allSettled || (ae.Promise.allSettled = Dt), ae.Promise.any || (ae.Promise.any = Mt));
271
+ var Pe = { exports: {} }, ge = {};
272
+ var gt;
273
+ function zn() {
274
+ if (gt) return ge;
275
+ gt = 1;
276
+ var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
277
+ function u(i, c, d) {
278
+ var g, y = {}, v = null, x = null;
279
+ d !== void 0 && (v = "" + d), c.key !== void 0 && (v = "" + c.key), c.ref !== void 0 && (x = c.ref);
280
+ for (g in c) o.call(c, g) && !l.hasOwnProperty(g) && (y[g] = c[g]);
281
+ if (i && i.defaultProps) for (g in c = i.defaultProps, c) y[g] === void 0 && (y[g] = c[g]);
282
+ return { $$typeof: t, type: i, key: v, ref: x, props: y, _owner: a.current };
283
283
  }
284
284
  return ge.Fragment = n, ge.jsx = u, ge.jsxs = u, ge;
285
285
  }
286
286
  var we = {};
287
- var gt;
288
- function zn() {
289
- return gt || (gt = 1, process.env.NODE_ENV !== "production" && (function() {
290
- var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = 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"), g = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), j = Symbol.iterator, S = "@@iterator";
291
- function L(r) {
287
+ var wt;
288
+ function qn() {
289
+ return wt || (wt = 1, process.env.NODE_ENV !== "production" && (function() {
290
+ var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = 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"), d = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), P = Symbol.iterator, b = "@@iterator";
291
+ function E(r) {
292
292
  if (r === null || typeof r != "object")
293
293
  return null;
294
- var h = j && r[j] || r[S];
294
+ var h = P && r[P] || r[b];
295
295
  return typeof h == "function" ? h : null;
296
296
  }
297
- var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
298
- function R(r) {
297
+ var N = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
298
+ function S(r) {
299
299
  {
300
300
  for (var h = arguments.length, m = new Array(h > 1 ? h - 1 : 0), w = 1; w < h; w++)
301
301
  m[w - 1] = arguments[w];
@@ -304,37 +304,37 @@ function zn() {
304
304
  }
305
305
  function k(r, h, m) {
306
306
  {
307
- var w = M.ReactDebugCurrentFrame, C = w.getStackAddendum();
308
- C !== "" && (h += "%s", m = m.concat([C]));
309
- var b = m.map(function(E) {
310
- return String(E);
307
+ var w = N.ReactDebugCurrentFrame, R = w.getStackAddendum();
308
+ R !== "" && (h += "%s", m = m.concat([R]));
309
+ var j = m.map(function(C) {
310
+ return String(C);
311
311
  });
312
- b.unshift("Warning: " + h), Function.prototype.apply.call(console[r], console, b);
312
+ j.unshift("Warning: " + h), Function.prototype.apply.call(console[r], console, j);
313
313
  }
314
314
  }
315
- var T = !1, I = !1, p = !1, H = !1, G = !1, W;
316
- W = Symbol.for("react.module.reference");
317
- function V(r) {
318
- return !!(typeof r == "string" || typeof r == "function" || r === o || r === c || G || r === s || r === d || r === g || H || r === _ || T || I || p || typeof r == "object" && r !== null && (r.$$typeof === v || r.$$typeof === y || r.$$typeof === u || r.$$typeof === i || r.$$typeof === l || // This needs to include all possible module reference object
315
+ var _ = !1, I = !1, p = !1, $ = !1, G = !1, Z;
316
+ Z = Symbol.for("react.module.reference");
317
+ function O(r) {
318
+ return !!(typeof r == "string" || typeof r == "function" || r === o || r === l || G || r === a || r === d || r === g || $ || r === x || _ || I || p || typeof r == "object" && r !== null && (r.$$typeof === v || r.$$typeof === y || r.$$typeof === u || r.$$typeof === i || r.$$typeof === c || // This needs to include all possible module reference object
319
319
  // types supported by any Flight configuration anywhere since
320
320
  // we don't know which Flight build this will end up being used
321
321
  // with.
322
- r.$$typeof === W || r.getModuleId !== void 0));
322
+ r.$$typeof === Z || r.getModuleId !== void 0));
323
323
  }
324
324
  function D(r, h, m) {
325
325
  var w = r.displayName;
326
326
  if (w)
327
327
  return w;
328
- var C = h.displayName || h.name || "";
329
- return C !== "" ? m + "(" + C + ")" : m;
328
+ var R = h.displayName || h.name || "";
329
+ return R !== "" ? m + "(" + R + ")" : m;
330
330
  }
331
331
  function Q(r) {
332
332
  return r.displayName || "Context";
333
333
  }
334
- function Z(r) {
334
+ function K(r) {
335
335
  if (r == null)
336
336
  return null;
337
- if (typeof r.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
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")
338
338
  return r.displayName || r.name || null;
339
339
  if (typeof r == "string")
340
340
  return r;
@@ -343,9 +343,9 @@ function zn() {
343
343
  return "Fragment";
344
344
  case n:
345
345
  return "Portal";
346
- case c:
346
+ case l:
347
347
  return "Profiler";
348
- case s:
348
+ case a:
349
349
  return "StrictMode";
350
350
  case d:
351
351
  return "Suspense";
@@ -360,34 +360,34 @@ function zn() {
360
360
  case u:
361
361
  var m = r;
362
362
  return Q(m._context) + ".Provider";
363
- case l:
363
+ case c:
364
364
  return D(r, r.render, "ForwardRef");
365
365
  case y:
366
366
  var w = r.displayName || null;
367
- return w !== null ? w : Z(r.type) || "Memo";
367
+ return w !== null ? w : K(r.type) || "Memo";
368
368
  case v: {
369
- var C = r, b = C._payload, E = C._init;
369
+ var R = r, j = R._payload, C = R._init;
370
370
  try {
371
- return Z(E(b));
372
- } catch (x) {
371
+ return K(C(j));
372
+ } catch (T) {
373
373
  return null;
374
374
  }
375
375
  }
376
376
  }
377
377
  return null;
378
378
  }
379
- var z = Object.assign, oe = 0, ue, te, q, ve, Ye, Xe, Ge;
380
- function Je() {
379
+ var q = Object.assign, oe = 0, ue, te, W, ve, Xe, Ge, Je;
380
+ function Qe() {
381
381
  }
382
- Je.__reactDisabledLog = !0;
383
- function an() {
382
+ Qe.__reactDisabledLog = !0;
383
+ function ln() {
384
384
  {
385
385
  if (oe === 0) {
386
- ue = console.log, te = console.info, q = console.warn, ve = console.error, Ye = console.group, Xe = console.groupCollapsed, Ge = console.groupEnd;
386
+ ue = console.log, te = console.info, W = console.warn, ve = console.error, Xe = console.group, Ge = console.groupCollapsed, Je = console.groupEnd;
387
387
  var r = {
388
388
  configurable: !0,
389
389
  enumerable: !0,
390
- value: Je,
390
+ value: Qe,
391
391
  writable: !0
392
392
  };
393
393
  Object.defineProperties(console, {
@@ -403,7 +403,7 @@ function zn() {
403
403
  oe++;
404
404
  }
405
405
  }
406
- function ln() {
406
+ function cn() {
407
407
  {
408
408
  if (oe--, oe === 0) {
409
409
  var r = {
@@ -412,88 +412,88 @@ function zn() {
412
412
  writable: !0
413
413
  };
414
414
  Object.defineProperties(console, {
415
- log: z({}, r, {
415
+ log: q({}, r, {
416
416
  value: ue
417
417
  }),
418
- info: z({}, r, {
418
+ info: q({}, r, {
419
419
  value: te
420
420
  }),
421
- warn: z({}, r, {
422
- value: q
421
+ warn: q({}, r, {
422
+ value: W
423
423
  }),
424
- error: z({}, r, {
424
+ error: q({}, r, {
425
425
  value: ve
426
426
  }),
427
- group: z({}, r, {
428
- value: Ye
429
- }),
430
- groupCollapsed: z({}, r, {
427
+ group: q({}, r, {
431
428
  value: Xe
432
429
  }),
433
- groupEnd: z({}, r, {
430
+ groupCollapsed: q({}, r, {
434
431
  value: Ge
432
+ }),
433
+ groupEnd: q({}, r, {
434
+ value: Je
435
435
  })
436
436
  });
437
437
  }
438
- oe < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
438
+ oe < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
439
439
  }
440
440
  }
441
- var Ve = M.ReactCurrentDispatcher, Ae;
442
- function Ee(r, h, m) {
441
+ var Oe = N.ReactCurrentDispatcher, He;
442
+ function Ce(r, h, m) {
443
443
  {
444
- if (Ae === void 0)
444
+ if (He === void 0)
445
445
  try {
446
446
  throw Error();
447
- } catch (C) {
448
- var w = C.stack.trim().match(/\n( *(at )?)/);
449
- Ae = w && w[1] || "";
447
+ } catch (R) {
448
+ var w = R.stack.trim().match(/\n( *(at )?)/);
449
+ He = w && w[1] || "";
450
450
  }
451
451
  return `
452
- ` + Ae + r;
452
+ ` + He + r;
453
453
  }
454
454
  }
455
- var Oe = !1, Ce;
455
+ var $e = !1, Ee;
456
456
  {
457
- var cn = typeof WeakMap == "function" ? WeakMap : Map;
458
- Ce = new cn();
457
+ var un = typeof WeakMap == "function" ? WeakMap : Map;
458
+ Ee = new un();
459
459
  }
460
- function Qe(r, h) {
461
- if (!r || Oe)
460
+ function et(r, h) {
461
+ if (!r || $e)
462
462
  return "";
463
463
  {
464
- var m = Ce.get(r);
464
+ var m = Ee.get(r);
465
465
  if (m !== void 0)
466
466
  return m;
467
467
  }
468
468
  var w;
469
- Oe = !0;
470
- var C = Error.prepareStackTrace;
469
+ $e = !0;
470
+ var R = Error.prepareStackTrace;
471
471
  Error.prepareStackTrace = void 0;
472
- var b;
473
- b = Ve.current, Ve.current = null, an();
472
+ var j;
473
+ j = Oe.current, Oe.current = null, ln();
474
474
  try {
475
475
  if (h) {
476
- var E = function() {
476
+ var C = function() {
477
477
  throw Error();
478
478
  };
479
- if (Object.defineProperty(E.prototype, "props", {
479
+ if (Object.defineProperty(C.prototype, "props", {
480
480
  set: function() {
481
481
  throw Error();
482
482
  }
483
483
  }), typeof Reflect == "object" && Reflect.construct) {
484
484
  try {
485
- Reflect.construct(E, []);
485
+ Reflect.construct(C, []);
486
486
  } catch (J) {
487
487
  w = J;
488
488
  }
489
- Reflect.construct(r, [], E);
489
+ Reflect.construct(r, [], C);
490
490
  } else {
491
491
  try {
492
- E.call();
492
+ C.call();
493
493
  } catch (J) {
494
494
  w = J;
495
495
  }
496
- r.call(E.prototype);
496
+ r.call(C.prototype);
497
497
  }
498
498
  } else {
499
499
  try {
@@ -505,33 +505,33 @@ function zn() {
505
505
  }
506
506
  } catch (J) {
507
507
  if (J && w && typeof J.stack == "string") {
508
- for (var x = J.stack.split(`
508
+ for (var T = J.stack.split(`
509
509
  `), Y = w.stack.split(`
510
- `), A = x.length - 1, $ = Y.length - 1; A >= 1 && $ >= 0 && x[A] !== Y[$]; )
511
- $--;
512
- for (; A >= 1 && $ >= 0; A--, $--)
513
- if (x[A] !== Y[$]) {
514
- if (A !== 1 || $ !== 1)
510
+ `), H = T.length - 1, U = Y.length - 1; H >= 1 && U >= 0 && T[H] !== Y[U]; )
511
+ U--;
512
+ for (; H >= 1 && U >= 0; H--, U--)
513
+ if (T[H] !== Y[U]) {
514
+ if (H !== 1 || U !== 1)
515
515
  do
516
- if (A--, $--, $ < 0 || x[A] !== Y[$]) {
516
+ if (H--, U--, U < 0 || T[H] !== Y[U]) {
517
517
  var ee = `
518
- ` + x[A].replace(" at new ", " at ");
519
- return r.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", r.displayName)), typeof r == "function" && Ce.set(r, ee), ee;
518
+ ` + T[H].replace(" at new ", " at ");
519
+ return r.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", r.displayName)), typeof r == "function" && Ee.set(r, ee), ee;
520
520
  }
521
- while (A >= 1 && $ >= 0);
521
+ while (H >= 1 && U >= 0);
522
522
  break;
523
523
  }
524
524
  }
525
525
  } finally {
526
- Oe = !1, Ve.current = b, ln(), Error.prepareStackTrace = C;
526
+ $e = !1, Oe.current = j, cn(), Error.prepareStackTrace = R;
527
527
  }
528
- var fe = r ? r.displayName || r.name : "", ce = fe ? Ee(fe) : "";
529
- return typeof r == "function" && Ce.set(r, ce), ce;
528
+ var fe = r ? r.displayName || r.name : "", ce = fe ? Ce(fe) : "";
529
+ return typeof r == "function" && Ee.set(r, ce), ce;
530
530
  }
531
- function un(r, h, m) {
532
- return Qe(r, !1);
531
+ function dn(r, h, m) {
532
+ return et(r, !1);
533
533
  }
534
- function dn(r) {
534
+ function fn(r) {
535
535
  var h = r.prototype;
536
536
  return !!(h && h.isReactComponent);
537
537
  }
@@ -539,89 +539,89 @@ function zn() {
539
539
  if (r == null)
540
540
  return "";
541
541
  if (typeof r == "function")
542
- return Qe(r, dn(r));
542
+ return et(r, fn(r));
543
543
  if (typeof r == "string")
544
- return Ee(r);
544
+ return Ce(r);
545
545
  switch (r) {
546
546
  case d:
547
- return Ee("Suspense");
547
+ return Ce("Suspense");
548
548
  case g:
549
- return Ee("SuspenseList");
549
+ return Ce("SuspenseList");
550
550
  }
551
551
  if (typeof r == "object")
552
552
  switch (r.$$typeof) {
553
- case l:
554
- return un(r.render);
553
+ case c:
554
+ return dn(r.render);
555
555
  case y:
556
556
  return Re(r.type, h, m);
557
557
  case v: {
558
- var w = r, C = w._payload, b = w._init;
558
+ var w = r, R = w._payload, j = w._init;
559
559
  try {
560
- return Re(b(C), h, m);
561
- } catch (E) {
560
+ return Re(j(R), h, m);
561
+ } catch (C) {
562
562
  }
563
563
  }
564
564
  }
565
565
  return "";
566
566
  }
567
- var ye = Object.prototype.hasOwnProperty, et = {}, tt = M.ReactDebugCurrentFrame;
568
- function Se(r) {
567
+ var ye = Object.prototype.hasOwnProperty, tt = {}, nt = N.ReactDebugCurrentFrame;
568
+ function be(r) {
569
569
  if (r) {
570
570
  var h = r._owner, m = Re(r.type, r._source, h ? h.type : null);
571
- tt.setExtraStackFrame(m);
571
+ nt.setExtraStackFrame(m);
572
572
  } else
573
- tt.setExtraStackFrame(null);
573
+ nt.setExtraStackFrame(null);
574
574
  }
575
- function fn(r, h, m, w, C) {
575
+ function hn(r, h, m, w, R) {
576
576
  {
577
- var b = Function.call.bind(ye);
578
- for (var E in r)
579
- if (b(r, E)) {
580
- var x = void 0;
577
+ var j = Function.call.bind(ye);
578
+ for (var C in r)
579
+ if (j(r, C)) {
580
+ var T = void 0;
581
581
  try {
582
- if (typeof r[E] != "function") {
583
- var Y = Error((w || "React class") + ": " + m + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
582
+ if (typeof r[C] != "function") {
583
+ var Y = Error((w || "React class") + ": " + m + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
584
584
  throw Y.name = "Invariant Violation", Y;
585
585
  }
586
- x = r[E](h, E, w, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
587
- } catch (A) {
588
- x = A;
586
+ T = r[C](h, C, w, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
587
+ } catch (H) {
588
+ T = H;
589
589
  }
590
- x && !(x instanceof Error) && (Se(C), R("%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).", w || "React class", m, E, typeof x), Se(null)), x instanceof Error && !(x.message in et) && (et[x.message] = !0, Se(C), R("Failed %s type: %s", m, x.message), Se(null));
590
+ T && !(T instanceof Error) && (be(R), 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).", w || "React class", m, C, typeof T), be(null)), T instanceof Error && !(T.message in tt) && (tt[T.message] = !0, be(R), S("Failed %s type: %s", m, T.message), be(null));
591
591
  }
592
592
  }
593
593
  }
594
- var hn = Array.isArray;
595
- function He(r) {
596
- return hn(r);
594
+ var mn = Array.isArray;
595
+ function Ue(r) {
596
+ return mn(r);
597
597
  }
598
- function mn(r) {
598
+ function pn(r) {
599
599
  {
600
600
  var h = typeof Symbol == "function" && Symbol.toStringTag, m = h && r[Symbol.toStringTag] || r.constructor.name || "Object";
601
601
  return m;
602
602
  }
603
603
  }
604
- function pn(r) {
604
+ function vn(r) {
605
605
  try {
606
- return nt(r), !1;
606
+ return rt(r), !1;
607
607
  } catch (h) {
608
608
  return !0;
609
609
  }
610
610
  }
611
- function nt(r) {
611
+ function rt(r) {
612
612
  return "" + r;
613
613
  }
614
- function rt(r) {
615
- if (pn(r))
616
- return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mn(r)), nt(r);
614
+ function ot(r) {
615
+ if (vn(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.", pn(r)), rt(r);
617
617
  }
618
- var ot = M.ReactCurrentOwner, vn = {
618
+ var it = N.ReactCurrentOwner, yn = {
619
619
  key: !0,
620
620
  ref: !0,
621
621
  __self: !0,
622
622
  __source: !0
623
- }, it, st;
624
- function yn(r) {
623
+ }, st, at;
624
+ function gn(r) {
625
625
  if (ye.call(r, "ref")) {
626
626
  var h = Object.getOwnPropertyDescriptor(r, "ref").get;
627
627
  if (h && h.isReactWarning)
@@ -629,7 +629,7 @@ function zn() {
629
629
  }
630
630
  return r.ref !== void 0;
631
631
  }
632
- function gn(r) {
632
+ function wn(r) {
633
633
  if (ye.call(r, "key")) {
634
634
  var h = Object.getOwnPropertyDescriptor(r, "key").get;
635
635
  if (h && h.isReactWarning)
@@ -637,13 +637,13 @@ function zn() {
637
637
  }
638
638
  return r.key !== void 0;
639
639
  }
640
- function wn(r, h) {
641
- typeof r.ref == "string" && ot.current;
640
+ function _n(r, h) {
641
+ typeof r.ref == "string" && it.current;
642
642
  }
643
- function Tn(r, h) {
643
+ function xn(r, h) {
644
644
  {
645
645
  var m = function() {
646
- it || (it = !0, R("%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)", h));
646
+ st || (st = !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)", h));
647
647
  };
648
648
  m.isReactWarning = !0, Object.defineProperty(r, "key", {
649
649
  get: m,
@@ -651,10 +651,10 @@ function zn() {
651
651
  });
652
652
  }
653
653
  }
654
- function _n(r, h) {
654
+ function Tn(r, h) {
655
655
  {
656
656
  var m = function() {
657
- st || (st = !0, R("%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)", h));
657
+ at || (at = !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)", h));
658
658
  };
659
659
  m.isReactWarning = !0, Object.defineProperty(r, "ref", {
660
660
  get: m,
@@ -662,70 +662,70 @@ function zn() {
662
662
  });
663
663
  }
664
664
  }
665
- var xn = function(r, h, m, w, C, b, E) {
666
- var x = {
665
+ var Cn = function(r, h, m, w, R, j, C) {
666
+ var T = {
667
667
  // This tag allows us to uniquely identify this as a React Element
668
668
  $$typeof: t,
669
669
  // Built-in properties that belong on the element
670
670
  type: r,
671
671
  key: h,
672
672
  ref: m,
673
- props: E,
673
+ props: C,
674
674
  // Record the component responsible for creating this element.
675
- _owner: b
675
+ _owner: j
676
676
  };
677
- return x._store = {}, Object.defineProperty(x._store, "validated", {
677
+ return T._store = {}, Object.defineProperty(T._store, "validated", {
678
678
  configurable: !1,
679
679
  enumerable: !1,
680
680
  writable: !0,
681
681
  value: !1
682
- }), Object.defineProperty(x, "_self", {
682
+ }), Object.defineProperty(T, "_self", {
683
683
  configurable: !1,
684
684
  enumerable: !1,
685
685
  writable: !1,
686
686
  value: w
687
- }), Object.defineProperty(x, "_source", {
687
+ }), Object.defineProperty(T, "_source", {
688
688
  configurable: !1,
689
689
  enumerable: !1,
690
690
  writable: !1,
691
- value: C
692
- }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
691
+ value: R
692
+ }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
693
693
  };
694
- function En(r, h, m, w, C) {
694
+ function En(r, h, m, w, R) {
695
695
  {
696
- var b, E = {}, x = null, Y = null;
697
- m !== void 0 && (rt(m), x = "" + m), gn(h) && (rt(h.key), x = "" + h.key), yn(h) && (Y = h.ref, wn(h, C));
698
- for (b in h)
699
- ye.call(h, b) && !vn.hasOwnProperty(b) && (E[b] = h[b]);
696
+ var j, C = {}, T = null, Y = null;
697
+ m !== void 0 && (ot(m), T = "" + m), wn(h) && (ot(h.key), T = "" + h.key), gn(h) && (Y = h.ref, _n(h, R));
698
+ for (j in h)
699
+ ye.call(h, j) && !yn.hasOwnProperty(j) && (C[j] = h[j]);
700
700
  if (r && r.defaultProps) {
701
- var A = r.defaultProps;
702
- for (b in A)
703
- E[b] === void 0 && (E[b] = A[b]);
701
+ var H = r.defaultProps;
702
+ for (j in H)
703
+ C[j] === void 0 && (C[j] = H[j]);
704
704
  }
705
- if (x || Y) {
706
- var $ = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
707
- x && Tn(E, $), Y && _n(E, $);
705
+ if (T || Y) {
706
+ var U = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
707
+ T && xn(C, U), Y && Tn(C, U);
708
708
  }
709
- return xn(r, x, Y, C, w, ot.current, E);
709
+ return Cn(r, T, Y, R, w, it.current, C);
710
710
  }
711
711
  }
712
- var $e = M.ReactCurrentOwner, at = M.ReactDebugCurrentFrame;
712
+ var Be = N.ReactCurrentOwner, lt = N.ReactDebugCurrentFrame;
713
713
  function de(r) {
714
714
  if (r) {
715
715
  var h = r._owner, m = Re(r.type, r._source, h ? h.type : null);
716
- at.setExtraStackFrame(m);
716
+ lt.setExtraStackFrame(m);
717
717
  } else
718
- at.setExtraStackFrame(null);
718
+ lt.setExtraStackFrame(null);
719
719
  }
720
- var Ue;
721
- Ue = !1;
722
- function Be(r) {
720
+ var ze;
721
+ ze = !1;
722
+ function qe(r) {
723
723
  return typeof r == "object" && r !== null && r.$$typeof === t;
724
724
  }
725
- function lt() {
725
+ function ct() {
726
726
  {
727
- if ($e.current) {
728
- var r = Z($e.current.type);
727
+ if (Be.current) {
728
+ var r = K(Be.current.type);
729
729
  if (r)
730
730
  return `
731
731
 
@@ -734,13 +734,13 @@ Check the render method of \`` + r + "`.";
734
734
  return "";
735
735
  }
736
736
  }
737
- function Cn(r) {
737
+ function Rn(r) {
738
738
  return "";
739
739
  }
740
- var ct = {};
741
- function Rn(r) {
740
+ var ut = {};
741
+ function bn(r) {
742
742
  {
743
- var h = lt();
743
+ var h = ct();
744
744
  if (!h) {
745
745
  var m = typeof r == "string" ? r : r.displayName || r.name;
746
746
  m && (h = `
@@ -750,35 +750,35 @@ Check the top-level render call using <` + m + ">.");
750
750
  return h;
751
751
  }
752
752
  }
753
- function ut(r, h) {
753
+ function dt(r, h) {
754
754
  {
755
755
  if (!r._store || r._store.validated || r.key != null)
756
756
  return;
757
757
  r._store.validated = !0;
758
- var m = Rn(h);
759
- if (ct[m])
758
+ var m = bn(h);
759
+ if (ut[m])
760
760
  return;
761
- ct[m] = !0;
761
+ ut[m] = !0;
762
762
  var w = "";
763
- r && r._owner && r._owner !== $e.current && (w = " It was passed a child from " + Z(r._owner.type) + "."), de(r), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, w), de(null);
763
+ r && r._owner && r._owner !== Be.current && (w = " It was passed a child from " + K(r._owner.type) + "."), de(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, w), de(null);
764
764
  }
765
765
  }
766
- function dt(r, h) {
766
+ function ft(r, h) {
767
767
  {
768
768
  if (typeof r != "object")
769
769
  return;
770
- if (He(r))
770
+ if (Ue(r))
771
771
  for (var m = 0; m < r.length; m++) {
772
772
  var w = r[m];
773
- Be(w) && ut(w, h);
773
+ qe(w) && dt(w, h);
774
774
  }
775
- else if (Be(r))
775
+ else if (qe(r))
776
776
  r._store && (r._store.validated = !0);
777
777
  else if (r) {
778
- var C = L(r);
779
- if (typeof C == "function" && C !== r.entries)
780
- for (var b = C.call(r), E; !(E = b.next()).done; )
781
- Be(E.value) && ut(E.value, h);
778
+ var R = E(r);
779
+ if (typeof R == "function" && R !== r.entries)
780
+ for (var j = R.call(r), C; !(C = j.next()).done; )
781
+ qe(C.value) && dt(C.value, h);
782
782
  }
783
783
  }
784
784
  }
@@ -790,106 +790,106 @@ Check the top-level render call using <` + m + ">.");
790
790
  var m;
791
791
  if (typeof h == "function")
792
792
  m = h.propTypes;
793
- else if (typeof h == "object" && (h.$$typeof === l || // Note: Memo only checks outer props here.
793
+ else if (typeof h == "object" && (h.$$typeof === c || // Note: Memo only checks outer props here.
794
794
  // Inner props are checked in the reconciler.
795
795
  h.$$typeof === y))
796
796
  m = h.propTypes;
797
797
  else
798
798
  return;
799
799
  if (m) {
800
- var w = Z(h);
801
- fn(m, r.props, "prop", w, r);
802
- } else if (h.PropTypes !== void 0 && !Ue) {
803
- Ue = !0;
804
- var C = Z(h);
805
- R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", C || "Unknown");
800
+ var w = K(h);
801
+ hn(m, r.props, "prop", w, r);
802
+ } else if (h.PropTypes !== void 0 && !ze) {
803
+ ze = !0;
804
+ var R = K(h);
805
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
806
806
  }
807
- typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
807
+ typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
808
808
  }
809
809
  }
810
- function bn(r) {
810
+ function jn(r) {
811
811
  {
812
812
  for (var h = Object.keys(r.props), m = 0; m < h.length; m++) {
813
813
  var w = h[m];
814
814
  if (w !== "children" && w !== "key") {
815
- de(r), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), de(null);
815
+ de(r), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), de(null);
816
816
  break;
817
817
  }
818
818
  }
819
- r.ref !== null && (de(r), R("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
819
+ r.ref !== null && (de(r), S("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
820
820
  }
821
821
  }
822
- var ft = {};
823
- function ht(r, h, m, w, C, b) {
822
+ var ht = {};
823
+ function mt(r, h, m, w, R, j) {
824
824
  {
825
- var E = V(r);
826
- if (!E) {
827
- var x = "";
828
- (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (x += " 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
- var Y = Cn();
830
- Y ? x += Y : x += lt();
831
- var A;
832
- r === null ? A = "null" : He(r) ? A = "array" : r !== void 0 && r.$$typeof === t ? (A = "<" + (Z(r.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : A = typeof r, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, x);
825
+ var C = O(r);
826
+ if (!C) {
827
+ var T = "";
828
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (T += " 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
+ var Y = Rn();
830
+ Y ? T += Y : T += ct();
831
+ var H;
832
+ r === null ? H = "null" : Ue(r) ? H = "array" : r !== void 0 && r.$$typeof === t ? (H = "<" + (K(r.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : H = 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", H, T);
833
833
  }
834
- var $ = En(r, h, m, C, b);
835
- if ($ == null)
836
- return $;
837
- if (E) {
834
+ var U = En(r, h, m, R, j);
835
+ if (U == null)
836
+ return U;
837
+ if (C) {
838
838
  var ee = h.children;
839
839
  if (ee !== void 0)
840
840
  if (w)
841
- if (He(ee)) {
841
+ if (Ue(ee)) {
842
842
  for (var fe = 0; fe < ee.length; fe++)
843
- dt(ee[fe], r);
843
+ ft(ee[fe], r);
844
844
  Object.freeze && Object.freeze(ee);
845
845
  } else
846
- R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
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.");
847
847
  else
848
- dt(ee, r);
848
+ ft(ee, r);
849
849
  }
850
850
  if (ye.call(h, "key")) {
851
- var ce = Z(r), J = Object.keys(h).filter(function(Dn) {
852
- return Dn !== "key";
853
- }), ze = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
854
- if (!ft[ce + ze]) {
855
- var In = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
856
- R(`A props object containing a "key" prop is being spread into JSX:
851
+ var ce = K(r), J = Object.keys(h).filter(function(Fn) {
852
+ return Fn !== "key";
853
+ }), We = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
854
+ if (!ht[ce + We]) {
855
+ var Dn = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
856
+ S(`A props object containing a "key" prop is being spread into JSX:
857
857
  let props = %s;
858
858
  <%s {...props} />
859
859
  React keys must be passed directly to JSX without using spread:
860
860
  let props = %s;
861
- <%s key={someKey} {...props} />`, ze, ce, In, ce), ft[ce + ze] = !0;
861
+ <%s key={someKey} {...props} />`, We, ce, Dn, ce), ht[ce + We] = !0;
862
862
  }
863
863
  }
864
- return r === o ? bn($) : Sn($), $;
864
+ return r === o ? jn(U) : Sn(U), U;
865
865
  }
866
866
  }
867
867
  function Ln(r, h, m) {
868
- return ht(r, h, m, !0);
868
+ return mt(r, h, m, !0);
869
869
  }
870
870
  function Pn(r, h, m) {
871
- return ht(r, h, m, !1);
871
+ return mt(r, h, m, !1);
872
872
  }
873
- var jn = Pn, kn = Ln;
874
- we.Fragment = o, we.jsx = jn, we.jsxs = kn;
873
+ var kn = Pn, In = Ln;
874
+ we.Fragment = o, we.jsx = kn, we.jsxs = In;
875
875
  })()), we;
876
876
  }
877
- var wt;
878
- function qn() {
879
- return wt || (wt = 1, process.env.NODE_ENV === "production" ? je.exports = Bn() : je.exports = zn()), je.exports;
880
- }
881
- var a = qn();
882
- const Wn = "_playerNotice_lq5nz_1", Zn = "_playerNoticeTitle_lq5nz_17", Kn = "_playerNoticeText_lq5nz_26", Yn = "_playerNoticeLowZIndex_lq5nz_35", ie = {
883
- playerNotice: Wn,
884
- playerNoticeTitle: Zn,
885
- playerNoticeText: Kn,
886
- playerNoticeLowZIndex: Yn
887
- }, At = typeof window != "undefined" ? Vn : N;
888
- function Ke(e, t) {
889
- const n = O(e);
890
- At(() => {
877
+ var _t;
878
+ function Wn() {
879
+ return _t || (_t = 1, process.env.NODE_ENV === "production" ? Pe.exports = zn() : Pe.exports = qn()), Pe.exports;
880
+ }
881
+ var s = Wn();
882
+ const Zn = "_playerNotice_lq5nz_1", Kn = "_playerNoticeTitle_lq5nz_17", Yn = "_playerNoticeText_lq5nz_26", Xn = "_playerNoticeLowZIndex_lq5nz_35", ie = {
883
+ playerNotice: Zn,
884
+ playerNoticeTitle: Kn,
885
+ playerNoticeText: Yn,
886
+ playerNoticeLowZIndex: Xn
887
+ }, Ot = typeof window != "undefined" ? An : F;
888
+ function Ve(e, t) {
889
+ const n = V(e);
890
+ Ot(() => {
891
891
  n.current = e;
892
- }, [e]), N(() => {
892
+ }, [e]), F(() => {
893
893
  if (t === null)
894
894
  return;
895
895
  const o = setInterval(() => {
@@ -900,29 +900,31 @@ function Ke(e, t) {
900
900
  };
901
901
  }, [t]);
902
902
  }
903
- function Xn(e) {
903
+ function Gn(e) {
904
904
  const [, t] = X(0);
905
- Ke(() => t((n) => n + 1), e);
905
+ Ve(() => t((n) => n + 1), e);
906
906
  }
907
- const Gn = () => Pt((e) => ({
907
+ const Jn = () => Pt((e) => ({
908
908
  delay: 0,
909
909
  startDate: null,
910
+ viewerCount: null,
910
911
  setDelay: (t) => e({ delay: t }),
911
- setStartDate: (t) => e({ startDate: t })
912
- })), Ot = bt(
912
+ setStartDate: (t) => e({ startDate: t }),
913
+ setViewerCount: (t) => e({ viewerCount: t })
914
+ })), Ht = jt(
913
915
  null
914
- ), Jn = ({ children: e }) => {
915
- const t = O(
916
+ ), Qn = ({ children: e }) => {
917
+ const t = V(
916
918
  null
917
919
  );
918
- return t.current || (t.current = Gn()), /* @__PURE__ */ a.jsx(Ot.Provider, { value: t.current, children: e });
919
- }, U = (e) => {
920
- const t = Lt(Ot);
920
+ return t.current || (t.current = Jn()), /* @__PURE__ */ s.jsx(Ht.Provider, { value: t.current, children: e });
921
+ }, A = (e) => {
922
+ const t = Lt(Ht);
921
923
  if (!t)
922
924
  throw new Error("usePlayerStore must be used within PlayerStoreProvider");
923
- return jt(t, e);
925
+ return kt(t, e);
924
926
  };
925
- function Qn(e, t, n) {
927
+ function er(e, t, n) {
926
928
  const o = {
927
929
  days: 86400,
928
930
  hours: 3600,
@@ -932,16 +934,16 @@ function Qn(e, t, n) {
932
934
  };
933
935
  return e * (o[t] / o[n]);
934
936
  }
935
- function er(e) {
936
- return Qn(e, "milliseconds", "seconds");
937
+ function tr(e) {
938
+ return er(e, "milliseconds", "seconds");
937
939
  }
938
- const _e = (e) => {
940
+ const xe = (e) => {
939
941
  if (isNaN(e) || e === 1 / 0) return "0:00";
940
- const t = (c) => (c < 10 ? "0" : "") + c, n = Math.floor(e / 3600), o = Math.floor(e % 3600 / 60), s = Math.floor(e % 60);
941
- return n === 0 ? `${o}:${t(s)}` : `${n}:${t(o)}:${t(s)}`;
942
+ const t = (l) => (l < 10 ? "0" : "") + l, n = Math.floor(e / 3600), o = Math.floor(e % 3600 / 60), a = Math.floor(e % 60);
943
+ return n === 0 ? `${o}:${t(a)}` : `${n}:${t(o)}:${t(a)}`;
942
944
  };
943
- function tr(e, t) {
944
- var n, o, s, c, u, i;
945
+ function nr(e, t) {
946
+ var n, o, a, l, u, i;
945
947
  if (typeof Intl != "undefined" && Intl.DateTimeFormat)
946
948
  try {
947
949
  const d = new Intl.DateTimeFormat("en-US", {
@@ -954,57 +956,57 @@ function tr(e, t) {
954
956
  second: "2-digit",
955
957
  hour12: !1
956
958
  }).formatToParts(e), g = parseInt(
957
- ((n = d.find((L) => L.type === "year")) == null ? void 0 : n.value) || "0",
959
+ ((n = d.find((E) => E.type === "year")) == null ? void 0 : n.value) || "0",
958
960
  10
959
961
  ), y = parseInt(
960
- ((o = d.find((L) => L.type === "month")) == null ? void 0 : o.value) || "0",
962
+ ((o = d.find((E) => E.type === "month")) == null ? void 0 : o.value) || "0",
961
963
  10
962
964
  ) - 1, v = parseInt(
963
- ((s = d.find((L) => L.type === "day")) == null ? void 0 : s.value) || "0",
965
+ ((a = d.find((E) => E.type === "day")) == null ? void 0 : a.value) || "0",
964
966
  10
965
- ), _ = parseInt(
966
- ((c = d.find((L) => L.type === "hour")) == null ? void 0 : c.value) || "0",
967
+ ), x = parseInt(
968
+ ((l = d.find((E) => E.type === "hour")) == null ? void 0 : l.value) || "0",
967
969
  10
968
- ), j = parseInt(
969
- ((u = d.find((L) => L.type === "minute")) == null ? void 0 : u.value) || "0",
970
+ ), P = parseInt(
971
+ ((u = d.find((E) => E.type === "minute")) == null ? void 0 : u.value) || "0",
970
972
  10
971
- ), S = parseInt(
972
- ((i = d.find((L) => L.type === "second")) == null ? void 0 : i.value) || "0",
973
+ ), b = parseInt(
974
+ ((i = d.find((E) => E.type === "second")) == null ? void 0 : i.value) || "0",
973
975
  10
974
976
  );
975
- return new Date(g, y, v, _, j, S);
976
- } catch (l) {
977
+ return new Date(g, y, v, x, P, b);
978
+ } catch (c) {
977
979
  return console.warn(
978
980
  `Failed to convert date to timezone ${t}, returning original date:`,
979
- l
981
+ c
980
982
  ), e;
981
983
  }
982
984
  return console.warn(
983
985
  "Intl.DateTimeFormat not available, timezone conversion may be inaccurate"
984
986
  ), e;
985
987
  }
986
- function Ht(e) {
988
+ function $t(e) {
987
989
  var n;
988
990
  const t = typeof window != "undefined" && ((n = window.navigator) == null ? void 0 : n.userAgent) || "";
989
991
  return e.test(t);
990
992
  }
991
- const $t = Ht(/iPhone|iPad|iPod/i), nr = Ht(/Tizen/i);
992
- function rr() {
993
+ const Ut = $t(/iPhone|iPad|iPod/i), rr = $t(/Tizen/i);
994
+ function or() {
993
995
  const e = document;
994
996
  return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
995
997
  }
996
- function or(e) {
998
+ function ir(e) {
997
999
  e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
998
1000
  }
999
- function ir(e) {
1001
+ function sr(e) {
1000
1002
  e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
1001
1003
  }
1002
- function sr(e, t) {
1004
+ function ar(e, t) {
1003
1005
  return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
1004
1006
  e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
1005
1007
  };
1006
1008
  }
1007
- const ar = () => An(), lr = (e, t) => ({
1009
+ const lr = () => On(), cr = (e, t) => ({
1008
1010
  currentTime: 0,
1009
1011
  duration: 0,
1010
1012
  isEnded: !1,
@@ -1102,10 +1104,10 @@ const ar = () => An(), lr = (e, t) => ({
1102
1104
  const o = t().techRef.current;
1103
1105
  if (!o) return;
1104
1106
  t().eventEmitter.emit("error", n);
1105
- const s = o.error;
1106
- if (!s) return;
1107
- const c = `${s.code}`, u = s.message || "Unknown error occurred";
1108
- e({ error: { message: u, code: c, tech: "native" } });
1107
+ const a = o.error;
1108
+ if (!a) return;
1109
+ const l = `${a.code}`, u = a.message || "Unknown error occurred";
1110
+ e({ error: { message: u, code: l, tech: "native" } });
1109
1111
  },
1110
1112
  pause: () => {
1111
1113
  const n = t().techRef.current;
@@ -1116,7 +1118,7 @@ const ar = () => An(), lr = (e, t) => ({
1116
1118
  }));
1117
1119
  },
1118
1120
  getPauseTimeDiff: () => !t().isStarted || !t().pauseTime ? 0 : parseInt(
1119
- er(Date.now() - t().pauseTime).toFixed(0)
1121
+ tr(Date.now() - t().pauseTime).toFixed(0)
1120
1122
  ),
1121
1123
  play: () => {
1122
1124
  const n = t().techRef.current;
@@ -1163,11 +1165,11 @@ const ar = () => An(), lr = (e, t) => ({
1163
1165
  isLoading: !1
1164
1166
  });
1165
1167
  }
1166
- }), cr = (e, t) => ({
1168
+ }), ur = (e, t) => ({
1167
1169
  isIdle: !1,
1168
1170
  setIsIdle: (n) => e({ isIdle: n }),
1169
1171
  resetIdle: () => t().eventEmitter.emit("resetIdle")
1170
- }), ur = (e) => ({
1172
+ }), dr = (e) => ({
1171
1173
  idleLocks: /* @__PURE__ */ new Set(),
1172
1174
  addIdleLock: (t) => e((n) => ({
1173
1175
  idleLocks: new Set(n.idleLocks).add(t)
@@ -1176,77 +1178,77 @@ const ar = () => An(), lr = (e, t) => ({
1176
1178
  const o = new Set(n.idleLocks);
1177
1179
  return o.delete(t), { idleLocks: o };
1178
1180
  })
1179
- }), dr = (e, t) => ({
1181
+ }), fr = (e, t) => ({
1180
1182
  level: null,
1181
1183
  levels: null,
1182
1184
  setLevels: (n) => e({ levels: n }),
1183
1185
  setLevel: (n) => {
1184
1186
  n && t().eventEmitter.emit("qualityChange", { level: n }), e({ level: n });
1185
1187
  }
1186
- }), fr = (e, t) => ({
1188
+ }), hr = (e, t) => ({
1187
1189
  isFullscreen: !1,
1188
1190
  isFullscreenReady: !1,
1189
1191
  exitFullscreen: () => {
1190
- t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }), ir(document), e({ isFullscreen: !1 });
1192
+ t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }), sr(document), e({ isFullscreen: !1 });
1191
1193
  },
1192
1194
  requestFullscreen: () => {
1193
1195
  const n = t().techRef.current, o = t().containerRef.current;
1194
1196
  if (!n || !o) return;
1195
1197
  t().eventEmitter.emit("fullscreenChange", { isFullscreen: !0 });
1196
- const s = $t ? n : o;
1197
- s && or(s), e({ isFullscreen: !0 });
1198
+ const a = Ut ? n : o;
1199
+ a && ir(a), e({ isFullscreen: !0 });
1198
1200
  },
1199
1201
  setIsFullscreen: (n) => e({ isFullscreen: n }),
1200
1202
  setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
1201
- }), hr = (e) => ({
1203
+ }), mr = (e) => ({
1202
1204
  error: null,
1203
1205
  setError: (t) => e({ error: t })
1204
- }), mr = () => ({
1205
- eventEmitter: ar()
1206
- }), pr = (e) => () => P({}, e), vr = (e, t) => Pt()((...n) => P(P(P(P(P(P(P(P({}, lr(...n)), cr(...n)), ur(...n)), fr(...n)), dr(...n)), hr(...n)), mr(...n)), pr({
1206
+ }), pr = () => ({
1207
+ eventEmitter: lr()
1208
+ }), vr = (e) => () => L({}, e), yr = (e, t) => Pt()((...n) => L(L(L(L(L(L(L(L({}, cr(...n)), ur(...n)), dr(...n)), hr(...n)), fr(...n)), mr(...n)), pr(...n)), vr({
1207
1209
  techRef: e,
1208
1210
  containerRef: t
1209
- })(...n))), Ut = bt(null);
1210
- function yr({ children: e }) {
1211
- const t = O(null), n = O(null), o = O(null);
1212
- return t.current || (t.current = vr(n, o)), /* @__PURE__ */ a.jsx(Ut.Provider, { value: t.current, children: e });
1211
+ })(...n))), Bt = jt(null);
1212
+ function gr({ children: e }) {
1213
+ const t = V(null), n = V(null), o = V(null);
1214
+ return t.current || (t.current = yr(n, o)), /* @__PURE__ */ s.jsx(Bt.Provider, { value: t.current, children: e });
1213
1215
  }
1214
1216
  const f = (e) => {
1215
- const t = Lt(Ut);
1217
+ const t = Lt(Bt);
1216
1218
  if (!t)
1217
1219
  throw new Error("usePlayerStore must be used within PlayerStoreProvider");
1218
- return jt(t, e);
1220
+ return kt(t, e);
1219
1221
  };
1220
- function gr(e) {
1222
+ function wr(e) {
1221
1223
  const t = e.split(`
1222
1224
  `);
1223
1225
  for (const n of t) {
1224
1226
  const o = n.trim();
1225
1227
  if (o.startsWith("#EXT-X-PROGRAM-DATE-TIME:")) {
1226
- const s = o.replace("#EXT-X-PROGRAM-DATE-TIME:", "").trim(), c = new Date(s);
1227
- if (!isNaN(c.getTime()))
1228
- return tr(c, "Europe/Sarajevo");
1228
+ const a = o.replace("#EXT-X-PROGRAM-DATE-TIME:", "").trim(), l = new Date(a);
1229
+ if (!isNaN(l.getTime()))
1230
+ return nr(l, "Europe/Sarajevo");
1229
1231
  }
1230
1232
  }
1231
1233
  return null;
1232
1234
  }
1233
- function wr(e, t) {
1235
+ function _r(e, t) {
1234
1236
  const n = e.split(`
1235
1237
  `);
1236
1238
  let o = !1;
1237
- for (const s of n) {
1238
- const c = s.trim();
1239
- if (c.startsWith("#EXT-X-STREAM-INF:")) {
1239
+ for (const a of n) {
1240
+ const l = a.trim();
1241
+ if (l.startsWith("#EXT-X-STREAM-INF:")) {
1240
1242
  o = !0;
1241
1243
  continue;
1242
1244
  }
1243
- if (o && !c.startsWith("#")) {
1244
- if (c.startsWith("http"))
1245
- return c;
1245
+ if (o && !l.startsWith("#")) {
1246
+ if (l.startsWith("http"))
1247
+ return l;
1246
1248
  {
1247
1249
  const u = new URL(t);
1248
1250
  return new URL(
1249
- c,
1251
+ l,
1250
1252
  u.origin + u.pathname.substring(
1251
1253
  0,
1252
1254
  u.pathname.lastIndexOf("/")
@@ -1257,147 +1259,147 @@ function wr(e, t) {
1257
1259
  }
1258
1260
  return null;
1259
1261
  }
1260
- function Tr(e) {
1262
+ function xr(e) {
1261
1263
  return e.replace("playlist.m3u8", "playlist_fmp4_dvr.m3u8");
1262
1264
  }
1263
- async function _r(e) {
1265
+ async function Tr(e) {
1264
1266
  try {
1265
- const t = Tr(e);
1267
+ const t = xr(e);
1266
1268
  console.log("Converting to DVR URL:", t);
1267
1269
  const n = await fetch(t);
1268
1270
  if (!n.ok)
1269
1271
  throw new Error(
1270
1272
  `Failed to fetch master playlist: ${n.status} ${n.statusText}`
1271
1273
  );
1272
- const o = await n.text(), s = wr(
1274
+ const o = await n.text(), a = _r(
1273
1275
  o,
1274
1276
  t
1275
1277
  );
1276
- if (!s)
1278
+ if (!a)
1277
1279
  throw new Error("No chunklist URL found in master playlist");
1278
- console.log("Found chunklist URL:", s);
1279
- const c = await fetch(s);
1280
- if (!c.ok)
1280
+ console.log("Found chunklist URL:", a);
1281
+ const l = await fetch(a);
1282
+ if (!l.ok)
1281
1283
  throw new Error(
1282
- `Failed to fetch chunklist: ${c.status} ${c.statusText}`
1284
+ `Failed to fetch chunklist: ${l.status} ${l.statusText}`
1283
1285
  );
1284
- const u = await c.text(), i = gr(u);
1286
+ const u = await l.text(), i = wr(u);
1285
1287
  return i ? console.log("Successfully detected start time:", i.toISOString()) : console.log(" No start time found in chunklist"), i;
1286
1288
  } catch (t) {
1287
1289
  return console.error("Error getting start time from HLS URL:", t), null;
1288
1290
  }
1289
1291
  }
1290
- function xr(n) {
1292
+ function Cr(n) {
1291
1293
  var o = n, { url: e } = o, t = ne(o, ["url"]);
1292
- const [s, c] = X(!0), u = U((d) => d.startDate), i = U((d) => d.setStartDate), l = B(async () => {
1293
- const d = await _r(e);
1294
+ const [a, l] = X(!0), u = A((d) => d.startDate), i = A((d) => d.setStartDate), c = z(async () => {
1295
+ const d = await Tr(e);
1294
1296
  d && i(d);
1295
1297
  }, [e, i]);
1296
- return N(() => {
1298
+ return F(() => {
1297
1299
  (async () => {
1298
- c(!0), await l(), c(!1);
1300
+ l(!0), await c(), l(!1);
1299
1301
  })();
1300
- }, [l]), Ke(l, u ? null : 5e3), s ? null : /* @__PURE__ */ a.jsx(Er, P({}, t));
1302
+ }, [c]), Ve(c, u ? null : 5e3), a ? null : /* @__PURE__ */ s.jsx(Er, L({}, t));
1301
1303
  }
1302
1304
  function Er({
1303
1305
  children: e,
1304
1306
  messages: t = {}
1305
1307
  }) {
1306
- var u, i, l;
1307
- const n = U((d) => d.startDate), o = f((d) => d.isStarted);
1308
- return Xn(o ? null : 5e3), n ? Date.now() < n.getTime() ? /* @__PURE__ */ a.jsx(
1309
- Cr,
1308
+ var u, i, c;
1309
+ const n = A((d) => d.startDate), o = f((d) => d.isStarted);
1310
+ return Gn(o ? null : 5e3), n ? Date.now() < n.getTime() ? /* @__PURE__ */ s.jsx(
1311
+ Rr,
1310
1312
  {
1311
1313
  startDate: n,
1312
1314
  title: (i = t == null ? void 0 : t.eventNotStarted) != null ? i : "Event has not started yet.",
1313
- message: (l = t == null ? void 0 : t.eventStartingSoon) != null ? l : "Starting in few seconds..."
1315
+ message: (c = t == null ? void 0 : t.eventStartingSoon) != null ? c : "Starting in few seconds..."
1314
1316
  }
1315
- ) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e }) : /* @__PURE__ */ a.jsx("div", { className: ie.playerNotice, children: /* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: (u = t == null ? void 0 : t.eventNotStarted) != null ? u : "Event has not started yet." }) });
1317
+ ) : /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx("div", { className: ie.playerNotice, children: /* @__PURE__ */ s.jsx("h3", { className: ie.playerNoticeTitle, children: (u = t == null ? void 0 : t.eventNotStarted) != null ? u : "Event has not started yet." }) });
1316
1318
  }
1317
- function Cr({ startDate: e, title: t, message: n }) {
1318
- const o = e.getTime() - Date.now(), s = Math.floor(o / (1e3 * 60 * 60)), c = Math.floor(
1319
+ function Rr({ startDate: e, title: t, message: n }) {
1320
+ const o = e.getTime() - Date.now(), a = Math.floor(o / (1e3 * 60 * 60)), l = Math.floor(
1319
1321
  o % (1e3 * 60 * 60) / (1e3 * 60)
1320
1322
  );
1321
- return s || c ? /* @__PURE__ */ a.jsxs("div", { className: ie.playerNotice, children: [
1322
- /* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: t }),
1323
- /* @__PURE__ */ a.jsxs("p", { className: ie.playerNoticeText, children: [
1323
+ return a || l ? /* @__PURE__ */ s.jsxs("div", { className: ie.playerNotice, children: [
1324
+ /* @__PURE__ */ s.jsx("h3", { className: ie.playerNoticeTitle, children: t }),
1325
+ /* @__PURE__ */ s.jsxs("p", { className: ie.playerNoticeText, children: [
1324
1326
  "(",
1325
- s > 0 ? `${s}h ${c}m` : `${c}m`,
1327
+ a > 0 ? `${a}h ${l}m` : `${l}m`,
1326
1328
  ")"
1327
1329
  ] })
1328
- ] }) : /* @__PURE__ */ a.jsx("div", { className: ie.playerNotice, children: /* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: n }) });
1330
+ ] }) : /* @__PURE__ */ s.jsx("div", { className: ie.playerNotice, children: /* @__PURE__ */ s.jsx("h3", { className: ie.playerNoticeTitle, children: n }) });
1329
1331
  }
1330
- function Bt({ callback: e }) {
1332
+ function zt({ callback: e }) {
1331
1333
  const t = f((n) => n.eventEmitter);
1332
- return N(() => {
1333
- const n = () => e("play", void 0), o = () => e("pause", void 0), s = () => e("ended", void 0), c = () => e("seeking", void 0), u = () => e("seeked", void 0), i = (S) => e("volumeChange", S), l = (S) => e("fullscreenChange", S), d = (S) => e("qualityChange", S), g = (S) => e("loadedMetadata", S), y = () => e("loadStart", void 0), v = () => e("playing", void 0), _ = () => e("waiting", void 0), j = () => e("error", void 0);
1334
- return t.on("play", n), t.on("pause", o), t.on("ended", s), t.on("seeking", c), t.on("seeked", u), t.on("volumeChange", i), t.on("fullscreenChange", l), t.on("qualityChange", d), t.on("loadedMetadata", g), t.on("loadStart", y), t.on("playing", v), t.on("waiting", _), t.on("error", j), () => {
1335
- t.off("play", n), t.off("pause", o), t.off("ended", s), t.off("seeking", c), t.off("seeked", u), t.off("volumeChange", i), t.off("fullscreenChange", l), t.off("qualityChange", d), t.off("loadedMetadata", g), t.off("loadStart", y), t.off("playing", v), t.off("waiting", _), t.off("error", j);
1334
+ return F(() => {
1335
+ const n = () => e("play", void 0), o = () => e("pause", void 0), a = () => e("ended", void 0), l = () => e("seeking", void 0), u = () => e("seeked", void 0), i = (b) => e("volumeChange", b), c = (b) => e("fullscreenChange", b), d = (b) => e("qualityChange", b), g = (b) => e("loadedMetadata", b), y = () => e("loadStart", void 0), v = () => e("playing", void 0), x = () => e("waiting", void 0), P = () => e("error", void 0);
1336
+ return t.on("play", n), t.on("pause", o), t.on("ended", a), t.on("seeking", l), t.on("seeked", u), t.on("volumeChange", i), t.on("fullscreenChange", c), t.on("qualityChange", d), t.on("loadedMetadata", g), t.on("loadStart", y), t.on("playing", v), t.on("waiting", x), t.on("error", P), () => {
1337
+ t.off("play", n), t.off("pause", o), t.off("ended", a), t.off("seeking", l), t.off("seeked", u), t.off("volumeChange", i), t.off("fullscreenChange", c), t.off("qualityChange", d), t.off("loadedMetadata", g), t.off("loadStart", y), t.off("playing", v), t.off("waiting", x), t.off("error", P);
1336
1338
  };
1337
1339
  }, [e, t]), null;
1338
1340
  }
1339
- const zt = (e, t = 0) => parseInt(
1341
+ const qt = (e, t = 0) => parseInt(
1340
1342
  Math.max(0, (Date.now() - (e + t * 1e3)) / 1e3).toFixed(0)
1341
- ), qt = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), Rr = (e, t) => Math.max(0, (t - e) / 1e3), Sr = (e, t = 0) => {
1342
- const o = t < 0 ? 0 : t, s = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], c = Math.floor(Math.log(e) / Math.log(1024));
1343
- return `${parseFloat((e / Math.pow(1024, c)).toFixed(o))}${s[c]}`;
1343
+ ), Wt = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), br = (e, t) => Math.max(0, (t - e) / 1e3), Sr = (e, t = 0) => {
1344
+ const o = t < 0 ? 0 : t, a = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], l = Math.floor(Math.log(e) / Math.log(1024));
1345
+ return `${parseFloat((e / Math.pow(1024, l)).toFixed(o))}${a[l]}`;
1344
1346
  };
1345
- function br({
1347
+ function jr({
1346
1348
  isAuto: e,
1347
1349
  level: t,
1348
1350
  levels: n
1349
1351
  }) {
1350
- const o = n.length, s = [];
1351
- return o > 1 && s.push({
1352
+ const o = n.length, a = [];
1353
+ return o > 1 && a.push({
1352
1354
  sid: "quality-level-auto",
1353
1355
  label: "Auto",
1354
1356
  value: -1,
1355
1357
  selected: e || t === -1
1356
- }), n.sort(function(c, u) {
1357
- const i = c.height || c.bitrate || 0, l = u.height || u.bitrate || 0;
1358
- return i === l ? 0 : i > l ? 1 : -1;
1359
- }), n.map((c) => {
1360
- const { bitrate: u, height: i, index: l } = c;
1361
- s.push({
1362
- sid: `quality-level-${l}`,
1358
+ }), n.sort(function(l, u) {
1359
+ const i = l.height || l.bitrate || 0, c = u.height || u.bitrate || 0;
1360
+ return i === c ? 0 : i > c ? 1 : -1;
1361
+ }), n.map((l) => {
1362
+ const { bitrate: u, height: i, index: c } = l;
1363
+ a.push({
1364
+ sid: `quality-level-${c}`,
1363
1365
  label: i ? `${i}p` : Sr(u),
1364
- value: l,
1365
- selected: o === 1 || !e && l === t
1366
+ value: c,
1367
+ selected: o === 1 || !e && c === t
1366
1368
  });
1367
- }), s;
1369
+ }), a;
1368
1370
  }
1369
1371
  function Lr({ callback: e }) {
1370
- const t = U((c) => c.delay), n = U((c) => c.startDate), o = n ? n.getTime() : 0, s = f((c) => c.eventEmitter);
1371
- return N(() => {
1372
- const c = () => e("timeUpdate", {
1373
- currentTime: qt(o, t),
1372
+ const t = A((l) => l.delay), n = A((l) => l.startDate), o = n ? n.getTime() : 0, a = f((l) => l.eventEmitter);
1373
+ return F(() => {
1374
+ const l = () => e("timeUpdate", {
1375
+ currentTime: Wt(o, t),
1374
1376
  duration: -1
1375
1377
  });
1376
- return s.on("timeUpdate", c), () => {
1377
- s.off("timeUpdate", c);
1378
+ return a.on("timeUpdate", l), () => {
1379
+ a.off("timeUpdate", l);
1378
1380
  };
1379
- }, [e, s]), /* @__PURE__ */ a.jsx(Bt, { callback: e });
1381
+ }, [e, a]), /* @__PURE__ */ s.jsx(zt, { callback: e });
1380
1382
  }
1381
- function Wt() {
1382
- 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), c = f((i) => i.volume), u = B(
1383
+ function Zt() {
1384
+ const e = f((i) => i.exitFullscreen), t = f((i) => i.isFullscreen), n = f((i) => i.isFullscreenReady), o = f((i) => i.requestFullscreen), a = f((i) => i.setVolume), l = f((i) => i.volume), u = z(
1383
1385
  (i) => {
1384
- let l = !1;
1386
+ let c = !1;
1385
1387
  if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
1386
1388
  switch (i.code) {
1387
1389
  case "ArrowUp":
1388
- s(c + 10 < 100 ? c + 10 : 100), l = !0;
1390
+ a(l + 10 < 100 ? l + 10 : 100), c = !0;
1389
1391
  break;
1390
1392
  case "ArrowDown":
1391
- s(c - 10 > 0 ? c - 10 : 0), l = !0;
1393
+ a(l - 10 > 0 ? l - 10 : 0), c = !0;
1392
1394
  break;
1393
1395
  case "KeyM":
1394
- s(c === 0 ? 100 : 0), l = !0;
1396
+ a(l === 0 ? 100 : 0), c = !0;
1395
1397
  break;
1396
1398
  case "KeyF":
1397
- n && (t ? e() : o(), l = !0);
1399
+ n && (t ? e() : o(), c = !0);
1398
1400
  break;
1399
1401
  }
1400
- l && i.preventDefault();
1402
+ c && i.preventDefault();
1401
1403
  }
1402
1404
  },
1403
1405
  [
@@ -1405,75 +1407,75 @@ function Wt() {
1405
1407
  t,
1406
1408
  n,
1407
1409
  o,
1408
- s,
1409
- c
1410
+ a,
1411
+ l
1410
1412
  ]
1411
1413
  );
1412
- return N(() => (document.addEventListener("keydown", u), () => {
1414
+ return F(() => (document.addEventListener("keydown", u), () => {
1413
1415
  document.removeEventListener("keydown", u);
1414
1416
  }), [u]), null;
1415
1417
  }
1416
1418
  function Pr() {
1417
- const e = U((i) => i.delay), t = f((i) => i.isPlaying), n = f((i) => i.pause), o = f((i) => i.getPauseTimeDiff), s = f((i) => i.play), c = U((i) => i.setDelay), u = B(
1419
+ const e = A((i) => i.delay), t = f((i) => i.isPlaying), n = f((i) => i.pause), o = f((i) => i.getPauseTimeDiff), a = f((i) => i.play), l = A((i) => i.setDelay), u = z(
1418
1420
  (i) => {
1419
- let l = !1;
1421
+ let c = !1;
1420
1422
  if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
1421
1423
  switch (i.code) {
1422
1424
  case "ArrowLeft":
1423
- c(e + 10), l = !0;
1425
+ l(e + 10), c = !0;
1424
1426
  break;
1425
1427
  case "ArrowRight":
1426
- c(e - 10 > 0 ? e - 10 : 0), l = !0;
1428
+ l(e - 10 > 0 ? e - 10 : 0), c = !0;
1427
1429
  break;
1428
1430
  case "Space":
1429
1431
  if (t)
1430
1432
  n();
1431
1433
  else {
1432
1434
  const d = o();
1433
- d && c(e + d), s();
1435
+ d && l(e + d), a();
1434
1436
  }
1435
- l = !0;
1437
+ c = !0;
1436
1438
  break;
1437
1439
  }
1438
- l && i.preventDefault();
1440
+ c && i.preventDefault();
1439
1441
  }
1440
1442
  },
1441
- [e, o, t, n, s, c]
1443
+ [e, o, t, n, a, l]
1442
1444
  );
1443
- return N(() => (document.addEventListener("keydown", u), () => {
1445
+ return F(() => (document.addEventListener("keydown", u), () => {
1444
1446
  document.removeEventListener("keydown", u);
1445
- }), [u]), /* @__PURE__ */ a.jsx(Wt, {});
1447
+ }), [u]), /* @__PURE__ */ s.jsx(Zt, {});
1446
1448
  }
1447
- function Zt({ children: e }) {
1448
- return /* @__PURE__ */ a.jsx(yr, { children: e });
1449
+ function Kt({ children: e }) {
1450
+ return /* @__PURE__ */ s.jsx(gr, { children: e });
1449
1451
  }
1450
- function jr({ children: e }) {
1451
- return /* @__PURE__ */ a.jsx(Jn, { children: /* @__PURE__ */ a.jsx(Zt, { children: e }) });
1452
+ function kr({ children: e }) {
1453
+ return /* @__PURE__ */ s.jsx(Qn, { children: /* @__PURE__ */ s.jsx(Kt, { children: e }) });
1452
1454
  }
1453
- function kr({ url: e, isLive: t, messages: n }) {
1454
- const o = O(null), s = f((T) => T.level), c = f((T) => T.levels), u = f((T) => T.setLevel), i = f((T) => T.setLevels), l = f((T) => T.techRef), d = f((T) => T.setError), g = O(0), y = O(null), v = 50, _ = 1e4, j = B(
1455
- (T) => {
1456
- if (o.current && (o.current.nextLevel = T, u(null), c)) {
1457
- const I = c.map((p) => he(P({}, p), {
1458
- selected: p.value === T
1455
+ function Ir({ url: e, isLive: t, messages: n }) {
1456
+ const o = V(null), a = f((_) => _.level), l = f((_) => _.levels), u = f((_) => _.setLevel), i = f((_) => _.setLevels), c = f((_) => _.techRef), d = f((_) => _.setError), g = V(0), y = V(null), v = 50, x = 1e4, P = z(
1457
+ (_) => {
1458
+ if (o.current && (o.current.nextLevel = _, u(null), l)) {
1459
+ const I = l.map((p) => he(L({}, p), {
1460
+ selected: p.value === _
1459
1461
  }));
1460
1462
  i(I);
1461
1463
  }
1462
1464
  },
1463
- [c, u, i, o]
1464
- ), S = B(() => {
1465
+ [l, u, i, o]
1466
+ ), b = z(() => {
1465
1467
  o.current && (console.log("[Player][HLS] MEDIA_ATTACHED"), o.current.loadSource(e));
1466
- }, [e]), L = B(() => {
1468
+ }, [e]), E = z(() => {
1467
1469
  if (!o.current) return;
1468
1470
  console.log("[Player][HLS] MANIFEST_LOADED"), d(null), y.current && (clearTimeout(y.current), y.current = null), g.current = 0;
1469
- const T = o.current.levels, I = o.current.currentLevel, p = o.current.autoLevelEnabled;
1471
+ const _ = o.current.levels, I = o.current.currentLevel, p = o.current.autoLevelEnabled;
1470
1472
  i(
1471
- br({
1472
- levels: T.map((H, G) => {
1473
- const { bitrate: W, height: V, width: D } = H;
1473
+ jr({
1474
+ levels: _.map(($, G) => {
1475
+ const { bitrate: Z, height: O, width: D } = $;
1474
1476
  return {
1475
- bitrate: W,
1476
- height: V,
1477
+ bitrate: Z,
1478
+ height: O,
1477
1479
  index: G,
1478
1480
  width: D
1479
1481
  };
@@ -1482,11 +1484,11 @@ function kr({ url: e, isLive: t, messages: n }) {
1482
1484
  isAuto: p
1483
1485
  })
1484
1486
  );
1485
- }, [d, i]), M = B(
1487
+ }, [d, i]), N = z(
1486
1488
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1487
- (T, I) => {
1488
- var p, H;
1489
- if (console.error("[Player][HLS] ERROR", T, I), !!o.current && I.fatal)
1489
+ (_, I) => {
1490
+ var p, $;
1491
+ if (console.error("[Player][HLS] ERROR", _, I), !!o.current && I.fatal)
1490
1492
  switch (I.type) {
1491
1493
  case re.ErrorTypes.NETWORK_ERROR:
1492
1494
  console.log("[Player][HLS] NETWORK_ERROR", I), t ? I.details === "manifestLoadError" && (g.current < v && (y.current && clearTimeout(y.current), g.current += 1, y.current = setTimeout(() => {
@@ -1496,12 +1498,12 @@ function kr({ url: e, isLive: t, messages: n }) {
1496
1498
  } catch (G) {
1497
1499
  console.error("[Player][HLS] Retry failed:", G);
1498
1500
  }
1499
- }, _)), d({
1501
+ }, x)), d({
1500
1502
  message: (p = n == null ? void 0 : n.eventFinished) != null ? p : "Live event will be back shortly.",
1501
1503
  code: "LIVE_MANIFEST_LOAD_ERROR",
1502
1504
  tech: "hls"
1503
1505
  })) : (d({
1504
- message: (H = n == null ? void 0 : n.unableToPlay) != null ? H : "Unable to play the video. Please try again later.",
1506
+ message: ($ = n == null ? void 0 : n.unableToPlay) != null ? $ : "Unable to play the video. Please try again later.",
1505
1507
  code: "NETWORK_ERROR",
1506
1508
  tech: "hls"
1507
1509
  }), o.current.startLoad());
@@ -1512,122 +1514,159 @@ function kr({ url: e, isLive: t, messages: n }) {
1512
1514
  }
1513
1515
  },
1514
1516
  [t, e, d]
1515
- ), R = B(() => {
1516
- if (!l.current) return;
1517
- let T = {
1517
+ ), S = z(() => {
1518
+ if (!c.current) return;
1519
+ let _ = {
1518
1520
  startLevel: -1,
1519
1521
  maxBufferSize: 30 * 1024 * 1024
1520
1522
  // 30MB
1521
1523
  };
1522
- nr ? (T.backBufferLength = -1, T.enableWorker = !1) : t ? T.backBufferLength = 10 : T.backBufferLength = 60;
1524
+ rr ? (_.backBufferLength = -1, _.enableWorker = !1) : t ? _.backBufferLength = 10 : _.backBufferLength = 60;
1523
1525
  try {
1524
- console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(T)), console.log("[Player][HLS] Version", re.version), o.current = new re(T), o.current.attachMedia(l.current), o.current.on(re.Events.MEDIA_ATTACHED, S), o.current.on(re.Events.MANIFEST_LOADED, L), o.current.on(re.Events.ERROR, M);
1526
+ console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(_)), console.log("[Player][HLS] Version", re.version), o.current = new re(_), o.current.attachMedia(c.current), o.current.on(re.Events.MEDIA_ATTACHED, b), o.current.on(re.Events.MANIFEST_LOADED, E), o.current.on(re.Events.ERROR, N);
1525
1527
  } catch (I) {
1526
1528
  throw new Error(`Error initializing Hls: ${I}`);
1527
1529
  }
1528
1530
  }, [
1529
- L,
1530
- S,
1531
- M,
1531
+ E,
1532
+ b,
1533
+ N,
1532
1534
  t,
1533
- l,
1535
+ c,
1534
1536
  e
1535
- ]), k = B(() => {
1536
- o.current && (o.current.off(re.Events.MEDIA_ATTACHED, S), o.current.off(re.Events.MANIFEST_LOADED, L), o.current.off(re.Events.ERROR, M), o.current.destroy(), o.current = null), y.current && (clearTimeout(y.current), y.current = null), g.current = 0;
1537
- }, [L, S, M]);
1538
- return N(() => {
1539
- s !== null && j(s);
1540
- }, [s, j]), N(() => (re.isSupported() && R(), k), [k, R]), null;
1541
- }
1542
- const Ir = "_playerVideo_wc0sm_1", Dr = {
1543
- playerVideo: Ir
1537
+ ]), k = z(() => {
1538
+ o.current && (o.current.off(re.Events.MEDIA_ATTACHED, b), o.current.off(re.Events.MANIFEST_LOADED, E), o.current.off(re.Events.ERROR, N), o.current.destroy(), o.current = null), y.current && (clearTimeout(y.current), y.current = null), g.current = 0;
1539
+ }, [E, b, N]);
1540
+ return F(() => {
1541
+ a !== null && P(a);
1542
+ }, [a, P]), F(() => (re.isSupported() && S(), k), [k, S]), null;
1543
+ }
1544
+ const Dr = "_playerVideo_wc0sm_1", Fr = {
1545
+ playerVideo: Dr
1544
1546
  };
1545
- function Kt({
1547
+ function Yt({
1546
1548
  url: e,
1547
1549
  isLive: t,
1548
1550
  isMuted: n = !1,
1549
1551
  messages: o = {}
1550
1552
  }) {
1551
- const s = f((p) => p.handleDurationChange), c = f((p) => p.handleEnd), u = f((p) => p.handleLoadedMetadata), i = f((p) => p.handleLoadStart), l = f((p) => p.handlePause), d = f((p) => p.handlePlay), g = f((p) => p.handlePlaying), y = f((p) => p.handleSeeked), v = f((p) => p.handleSeeking), _ = f((p) => p.handleTimeUpdate), j = f((p) => p.handleWaiting), S = f((p) => p.handleVolumeChange), L = f((p) => p.handleError), M = f((p) => p.techRef), R = O(null), k = () => t ? {
1552
- onTimeUpdate: T
1553
+ const a = f((p) => p.handleDurationChange), l = f((p) => p.handleEnd), u = f((p) => p.handleLoadedMetadata), i = f((p) => p.handleLoadStart), c = f((p) => p.handlePause), d = f((p) => p.handlePlay), g = f((p) => p.handlePlaying), y = f((p) => p.handleSeeked), v = f((p) => p.handleSeeking), x = f((p) => p.handleTimeUpdate), P = f((p) => p.handleWaiting), b = f((p) => p.handleVolumeChange), E = f((p) => p.handleError), N = f((p) => p.techRef), S = V(null), k = () => t ? {
1554
+ onTimeUpdate: _
1553
1555
  } : {
1554
- onDurationChange: s,
1556
+ onDurationChange: a,
1555
1557
  onSeeked: y,
1556
1558
  onSeeking: v,
1557
- onTimeUpdate: T
1558
- }, T = () => {
1559
- (!R.current || Date.now() - R.current >= 1e3) && (_(), R.current = Date.now());
1559
+ onTimeUpdate: _
1560
+ }, _ = () => {
1561
+ (!S.current || Date.now() - S.current >= 1e3) && (x(), S.current = Date.now());
1560
1562
  }, I = k();
1561
- return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1562
- /* @__PURE__ */ a.jsx(kr, { isLive: t, url: e, messages: o }),
1563
- /* @__PURE__ */ a.jsx(
1563
+ return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1564
+ /* @__PURE__ */ s.jsx(Ir, { isLive: t, url: e, messages: o }),
1565
+ /* @__PURE__ */ s.jsx(
1564
1566
  "video",
1565
- P({
1566
- ref: M,
1567
- className: Dr.playerVideo,
1567
+ L({
1568
+ ref: N,
1569
+ className: Fr.playerVideo,
1568
1570
  playsInline: !0,
1569
1571
  autoPlay: !0,
1570
1572
  controls: !1,
1571
1573
  muted: n,
1572
1574
  preload: "auto",
1573
1575
  crossOrigin: "anonymous",
1574
- onEnded: c,
1575
- onError: L,
1576
+ onEnded: l,
1577
+ onError: E,
1576
1578
  onLoadedMetadata: u,
1577
1579
  onLoadStart: i,
1578
- onPause: l,
1580
+ onPause: c,
1579
1581
  onPlay: d,
1580
1582
  onPlaying: g,
1581
- onWaiting: j,
1582
- onVolumeChange: S,
1583
+ onWaiting: P,
1584
+ onVolumeChange: b,
1583
1585
  tabIndex: -1
1584
1586
  }, I)
1585
1587
  )
1586
1588
  ] });
1587
1589
  }
1588
- function Fr({ url: e, messages: t = {} }) {
1589
- const [n, o] = X(null), s = U((u) => u.delay), c = B(async () => {
1590
+ function Mr({ url: e, messages: t = {} }) {
1591
+ const [n, o] = X(null), a = A((u) => u.delay), l = z(async () => {
1590
1592
  o(
1591
- s ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${s}.m3u8`) : e
1593
+ a ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${a}.m3u8`) : e
1592
1594
  );
1593
- }, [s, e]);
1594
- return N(() => {
1595
- c();
1596
- }, [c]), n ? /* @__PURE__ */ a.jsx(Kt, { url: n, isLive: !0, messages: t }) : null;
1595
+ }, [a, e]);
1596
+ return F(() => {
1597
+ l();
1598
+ }, [l]), n ? /* @__PURE__ */ s.jsx(Yt, { url: n, isLive: !0, messages: t }) : null;
1599
+ }
1600
+ function Nr({ url: e }) {
1601
+ return f((n) => n.isStarted) ? /* @__PURE__ */ s.jsx(Vr, { url: e }) : null;
1602
+ }
1603
+ function Vr({ url: e }) {
1604
+ const t = A((l) => l.setViewerCount), n = V(null), o = (l) => {
1605
+ try {
1606
+ return new URL(l).pathname.split("/").filter((d) => d.length > 0)[0] || null;
1607
+ } catch (u) {
1608
+ return console.error("Failed to extract URI from player URL:", u), null;
1609
+ }
1610
+ }, a = async () => {
1611
+ var c;
1612
+ const l = o(e);
1613
+ if (!l) {
1614
+ console.error("Could not extract URI from URL:", e);
1615
+ return;
1616
+ }
1617
+ n.current && n.current.abort(), n.current = new AbortController();
1618
+ const i = `https://${e.includes("staging") ? "stg" : "prd"}-fitnessanny.spectar.tv/analytics-api/v1/token-info/uri/${l}`;
1619
+ try {
1620
+ const d = await fetch(i, {
1621
+ signal: n.current.signal
1622
+ });
1623
+ if (!d.ok)
1624
+ throw new Error(`HTTP error! status: ${d.status}`);
1625
+ const y = (c = (await d.json()).count) != null ? c : 0;
1626
+ t(y);
1627
+ } catch (d) {
1628
+ if (d.name === "AbortError")
1629
+ return;
1630
+ console.error("Failed to fetch viewer count:", d), t(null);
1631
+ }
1632
+ };
1633
+ return F(() => (a(), () => {
1634
+ n.current && n.current.abort();
1635
+ }), [e]), Ve(a, 15e3), null;
1597
1636
  }
1598
- function Mr(e, {
1637
+ function Ar(e, {
1599
1638
  defaultValue: t = !1,
1600
1639
  initializeWithValue: n = !0
1601
1640
  } = {}) {
1602
- const o = (i) => typeof window == "undefined" ? t : window.matchMedia(i).matches, [s, c] = X(() => n ? o(e) : t);
1641
+ const o = (i) => typeof window == "undefined" ? t : window.matchMedia(i).matches, [a, l] = X(() => n ? o(e) : t);
1603
1642
  function u() {
1604
- c(o(e));
1643
+ l(o(e));
1605
1644
  }
1606
- return At(() => {
1645
+ return Ot(() => {
1607
1646
  if (typeof window == "undefined")
1608
1647
  return;
1609
1648
  const i = window.matchMedia(e);
1610
1649
  return u(), i.addListener ? i.addListener(u) : i.addEventListener("change", u), () => {
1611
1650
  i.removeListener ? i.removeListener(u) : i.removeEventListener("change", u);
1612
1651
  };
1613
- }, [e]), s;
1614
- }
1615
- const Nr = "_playbackButton_lgsgw_1", Vr = "_seekIndicator_lgsgw_23", Ar = "_seekIndicatorLeft_lgsgw_49", Or = "_seekIndicatorRight_lgsgw_53", Hr = "_seekIndicatorVisible_lgsgw_57", me = {
1616
- playbackButton: Nr,
1617
- seekIndicator: Vr,
1618
- seekIndicatorLeft: Ar,
1619
- seekIndicatorRight: Or,
1620
- seekIndicatorVisible: Hr
1621
- }, $r = 10;
1622
- function Yt(i) {
1623
- var l = i, {
1652
+ }, [e]), a;
1653
+ }
1654
+ const Or = "_playbackButton_lgsgw_1", Hr = "_seekIndicator_lgsgw_23", $r = "_seekIndicatorLeft_lgsgw_49", Ur = "_seekIndicatorRight_lgsgw_53", Br = "_seekIndicatorVisible_lgsgw_57", me = {
1655
+ playbackButton: Or,
1656
+ seekIndicator: Hr,
1657
+ seekIndicatorLeft: $r,
1658
+ seekIndicatorRight: Ur,
1659
+ seekIndicatorVisible: Br
1660
+ }, zr = 10;
1661
+ function Xt(i) {
1662
+ var c = i, {
1624
1663
  className: e,
1625
1664
  onClick: t,
1626
1665
  onForwardSeek: n,
1627
1666
  onBackwardSeek: o,
1628
- maxForwardTime: s,
1629
- maxBackwardTime: c
1630
- } = l, u = ne(l, [
1667
+ maxForwardTime: a,
1668
+ maxBackwardTime: l
1669
+ } = c, u = ne(c, [
1631
1670
  "className",
1632
1671
  "onClick",
1633
1672
  "onForwardSeek",
@@ -1635,220 +1674,220 @@ function Yt(i) {
1635
1674
  "maxForwardTime",
1636
1675
  "maxBackwardTime"
1637
1676
  ]);
1638
- return Mr("(min-width: 1024px)") ? /* @__PURE__ */ a.jsx(Ur, P({ className: e, onClick: t }, u)) : /* @__PURE__ */ a.jsx(
1639
- Br,
1640
- P({
1677
+ return Ar("(min-width: 1024px)") ? /* @__PURE__ */ s.jsx(qr, L({ className: e, onClick: t }, u)) : /* @__PURE__ */ s.jsx(
1678
+ Wr,
1679
+ L({
1641
1680
  className: e,
1642
- maxForwardTime: s,
1643
- maxBackwardTime: c,
1681
+ maxForwardTime: a,
1682
+ maxBackwardTime: l,
1644
1683
  onForwardSeek: n,
1645
1684
  onBackwardSeek: o
1646
1685
  }, u)
1647
1686
  );
1648
1687
  }
1649
- function Ur(o) {
1650
- var s = o, { className: e, onClick: t } = s, n = ne(s, ["className", "onClick"]);
1651
- const c = O(null), u = f((_) => _.exitFullscreen), i = f((_) => _.isFullscreen), l = f((_) => _.requestFullscreen), d = (_) => {
1652
- v() ? (y(), i ? u() : l()) : g(_);
1653
- }, g = (_) => {
1654
- c.current = window.setTimeout(() => {
1655
- t == null || t(_), y();
1688
+ function qr(o) {
1689
+ var a = o, { className: e, onClick: t } = a, n = ne(a, ["className", "onClick"]);
1690
+ const l = V(null), u = f((x) => x.exitFullscreen), i = f((x) => x.isFullscreen), c = f((x) => x.requestFullscreen), d = (x) => {
1691
+ v() ? (y(), i ? u() : c()) : g(x);
1692
+ }, g = (x) => {
1693
+ l.current = window.setTimeout(() => {
1694
+ t == null || t(x), y();
1656
1695
  }, 200);
1657
1696
  }, y = () => {
1658
- c.current !== null && (window.clearTimeout(c.current), c.current = null);
1659
- }, v = () => c.current !== null;
1660
- return N(() => () => {
1697
+ l.current !== null && (window.clearTimeout(l.current), l.current = null);
1698
+ }, v = () => l.current !== null;
1699
+ return F(() => () => {
1661
1700
  y();
1662
- }, []), /* @__PURE__ */ a.jsx(
1701
+ }, []), /* @__PURE__ */ s.jsx(
1663
1702
  "button",
1664
- P({
1703
+ L({
1665
1704
  onClick: d,
1666
1705
  className: [me.playbackButton, e].filter(Boolean).join(" "),
1667
1706
  "aria-label": "Player gestures"
1668
1707
  }, n)
1669
1708
  );
1670
1709
  }
1671
- function Br(u) {
1710
+ function Wr(u) {
1672
1711
  var i = u, {
1673
1712
  className: e,
1674
1713
  maxForwardTime: t,
1675
1714
  maxBackwardTime: n,
1676
1715
  onForwardSeek: o,
1677
- onBackwardSeek: s
1678
- } = i, c = ne(i, [
1716
+ onBackwardSeek: a
1717
+ } = i, l = ne(i, [
1679
1718
  "className",
1680
1719
  "maxForwardTime",
1681
1720
  "maxBackwardTime",
1682
1721
  "onForwardSeek",
1683
1722
  "onBackwardSeek"
1684
1723
  ]);
1685
- const l = O(null), d = O({
1724
+ const c = V(null), d = V({
1686
1725
  single: null,
1687
1726
  indicator: null,
1688
1727
  accumulate: null
1689
- }), g = O(null), y = O(0), v = O(null), [_, j] = X({ visible: !1, direction: null, time: 0 }), S = f((p) => p.isIdle), L = f((p) => p.setIsIdle), M = f((p) => p.resetIdle), R = (p, H) => p < H / 2 ? "backward" : "forward", k = (p) => {
1728
+ }), g = V(null), y = V(0), v = V(null), [x, P] = X({ visible: !1, direction: null, time: 0 }), b = f((p) => p.isIdle), E = f((p) => p.setIsIdle), N = f((p) => p.resetIdle), S = (p, $) => p < $ / 2 ? "backward" : "forward", k = (p) => {
1690
1729
  if (!g.current) return;
1691
- const H = p.changedTouches[0];
1692
- if (!H) return;
1693
- const G = Date.now(), W = g.current.getBoundingClientRect(), V = H.clientX - W.left, D = H.clientY - W.top;
1694
- if (V < 0 || V > W.width || D < 0 || D > W.height)
1730
+ const $ = p.changedTouches[0];
1731
+ if (!$) return;
1732
+ const G = Date.now(), Z = g.current.getBoundingClientRect(), O = $.clientX - Z.left, D = $.clientY - Z.top;
1733
+ if (O < 0 || O > Z.width || D < 0 || D > Z.height)
1695
1734
  return;
1696
- const Q = l.current, Z = Q ? G - Q.time : 1 / 0, z = R(V, W.width), oe = v.current !== null && v.current === z && Q !== null && Z < 700 && Math.abs(V - Q.x) < 100;
1697
- if (Q !== null && v.current === null && Z < 300 && Math.abs(V - Q.x) < 50 || oe) {
1698
- p.preventDefault(), p.stopPropagation(), d.current.single && (window.clearTimeout(d.current.single), d.current.single = null), M(), (v.current === null || v.current !== z) && (y.current = 0, v.current = z);
1699
- const te = z === "backward" ? n : t;
1735
+ const Q = c.current, K = Q ? G - Q.time : 1 / 0, q = S(O, Z.width), oe = v.current !== null && v.current === q && Q !== null && K < 700 && Math.abs(O - Q.x) < 100;
1736
+ if (Q !== null && v.current === null && K < 300 && Math.abs(O - Q.x) < 50 || oe) {
1737
+ p.preventDefault(), p.stopPropagation(), d.current.single && (window.clearTimeout(d.current.single), d.current.single = null), N(), (v.current === null || v.current !== q) && (y.current = 0, v.current = q);
1738
+ const te = q === "backward" ? n : t;
1700
1739
  y.current = Math.min(
1701
- y.current + $r,
1740
+ y.current + zr,
1702
1741
  te != null ? te : 1 / 0
1703
- ), T(z, y.current), d.current.accumulate && window.clearTimeout(d.current.accumulate), d.current.accumulate = window.setTimeout(() => {
1704
- const q = y.current;
1705
- q > 0 && (v.current === "backward" ? s == null || s(q) : o == null || o(q), M()), y.current = 0, v.current = null, l.current = null, I(), d.current.accumulate = null;
1706
- }, 500), l.current = { time: G, x: V };
1742
+ ), _(q, y.current), d.current.accumulate && window.clearTimeout(d.current.accumulate), d.current.accumulate = window.setTimeout(() => {
1743
+ const W = y.current;
1744
+ W > 0 && (v.current === "backward" ? a == null || a(W) : o == null || o(W), N()), y.current = 0, v.current = null, c.current = null, I(), d.current.accumulate = null;
1745
+ }, 500), c.current = { time: G, x: O };
1707
1746
  } else {
1708
- l.current = { time: G, x: V }, d.current.single && window.clearTimeout(d.current.single);
1747
+ c.current = { time: G, x: O }, d.current.single && window.clearTimeout(d.current.single);
1709
1748
  const te = v.current !== null ? 700 : 350;
1710
1749
  d.current.single = window.setTimeout(() => {
1711
1750
  if (v.current === null) {
1712
1751
  d.current.single = null;
1713
- const q = S;
1714
- L(!q), q && M();
1752
+ const W = b;
1753
+ E(!W), W && N();
1715
1754
  }
1716
- l.current = null;
1755
+ c.current = null;
1717
1756
  }, te);
1718
1757
  }
1719
- }, T = (p, H) => {
1720
- H !== 0 && (j({ visible: !0, direction: p, time: H }), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.indicator = window.setTimeout(() => {
1758
+ }, _ = (p, $) => {
1759
+ $ !== 0 && (P({ visible: !0, direction: p, time: $ }), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.indicator = window.setTimeout(() => {
1721
1760
  I();
1722
1761
  }, 700));
1723
1762
  }, I = () => {
1724
- j({ visible: !1, direction: null, time: 0 }), d.current.indicator && (window.clearTimeout(d.current.indicator), d.current.indicator = null);
1763
+ P({ visible: !1, direction: null, time: 0 }), d.current.indicator && (window.clearTimeout(d.current.indicator), d.current.indicator = null);
1725
1764
  };
1726
- return N(() => () => {
1765
+ return F(() => () => {
1727
1766
  d.current.single && window.clearTimeout(d.current.single), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.accumulate && window.clearTimeout(d.current.accumulate);
1728
- }, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1729
- /* @__PURE__ */ a.jsx(
1767
+ }, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1768
+ /* @__PURE__ */ s.jsx(
1730
1769
  "button",
1731
- P({
1770
+ L({
1732
1771
  ref: g,
1733
1772
  onTouchEnd: k,
1734
1773
  className: [me.playbackButton, e].filter(Boolean).join(" "),
1735
1774
  "aria-label": "Player gestures"
1736
- }, c)
1775
+ }, l)
1737
1776
  ),
1738
- _.visible && /* @__PURE__ */ a.jsxs(
1777
+ x.visible && /* @__PURE__ */ s.jsxs(
1739
1778
  "div",
1740
1779
  {
1741
- className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${_.direction === "backward" ? me.seekIndicatorLeft : me.seekIndicatorRight}`,
1780
+ className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${x.direction === "backward" ? me.seekIndicatorLeft : me.seekIndicatorRight}`,
1742
1781
  children: [
1743
- _.direction === "backward" ? "-" : "+",
1744
- _e(_.time)
1782
+ x.direction === "backward" ? "-" : "+",
1783
+ xe(x.time)
1745
1784
  ]
1746
1785
  }
1747
1786
  )
1748
1787
  ] });
1749
1788
  }
1750
- function zr() {
1751
- const e = f((l) => l.isPlaying), t = f((l) => l.pause), n = f((l) => l.getPauseTimeDiff), o = f((l) => l.play), s = U((l) => l.delay), c = U((l) => l.setDelay), u = U((l) => l.startDate), i = u ? u.getTime() : 0;
1752
- return /* @__PURE__ */ a.jsx(
1753
- Yt,
1789
+ function Zr() {
1790
+ const e = f((c) => c.isPlaying), t = f((c) => c.pause), n = f((c) => c.getPauseTimeDiff), o = f((c) => c.play), a = A((c) => c.delay), l = A((c) => c.setDelay), u = A((c) => c.startDate), i = u ? u.getTime() : 0;
1791
+ return /* @__PURE__ */ s.jsx(
1792
+ Xt,
1754
1793
  {
1755
1794
  onClick: () => {
1756
1795
  if (e)
1757
1796
  t();
1758
1797
  else {
1759
- const l = n();
1760
- l && c(s + l), o();
1798
+ const c = n();
1799
+ c && l(a + c), o();
1761
1800
  }
1762
1801
  },
1763
- onBackwardSeek: (l) => {
1764
- const d = s + l;
1765
- c(d);
1802
+ onBackwardSeek: (c) => {
1803
+ const d = a + c;
1804
+ l(d);
1766
1805
  },
1767
- onForwardSeek: (l) => {
1768
- const d = Math.max(0, s - l);
1769
- c(d);
1806
+ onForwardSeek: (c) => {
1807
+ const d = Math.max(0, a - c);
1808
+ l(d);
1770
1809
  },
1771
1810
  maxBackwardTime: Math.floor(i),
1772
- maxForwardTime: Math.floor(s)
1811
+ maxForwardTime: Math.floor(a)
1773
1812
  }
1774
1813
  );
1775
1814
  }
1776
- const qr = "_playerButton_izwqq_1", Wr = "_playerButtonCircle_izwqq_42", Tt = {
1777
- playerButton: qr,
1778
- playerButtonCircle: Wr
1779
- }, le = Me(
1780
- (s, o) => {
1781
- var c = s, { shape: e = "circle", className: t } = c, n = ne(c, ["shape", "className"]);
1782
- const u = e === "circle" ? Tt.playerButtonCircle : "", i = [Tt.playerButton, u, t].filter(Boolean).join(" ");
1783
- return /* @__PURE__ */ a.jsx("button", P({ ref: o, className: i }, n));
1815
+ const Kr = "_playerButton_izwqq_1", Yr = "_playerButtonCircle_izwqq_42", xt = {
1816
+ playerButton: Kr,
1817
+ playerButtonCircle: Yr
1818
+ }, le = Ne(
1819
+ (a, o) => {
1820
+ var l = a, { shape: e = "circle", className: t } = l, n = ne(l, ["shape", "className"]);
1821
+ const u = e === "circle" ? xt.playerButtonCircle : "", i = [xt.playerButton, u, t].filter(Boolean).join(" ");
1822
+ return /* @__PURE__ */ s.jsx("button", L({ ref: o, className: i }, n));
1784
1823
  }
1785
1824
  );
1786
1825
  le.displayName = "PlayerButton";
1787
- const Zr = "_liveIndicator_1jczn_1", Kr = "_liveIndicatorHasDelay_1jczn_9", Yr = "_liveIndicatorNoDelay_1jczn_13", ke = {
1788
- liveIndicator: Zr,
1789
- liveIndicatorHasDelay: Kr,
1790
- liveIndicatorNoDelay: Yr
1826
+ const Xr = "_liveIndicator_1jczn_1", Gr = "_liveIndicatorHasDelay_1jczn_9", Jr = "_liveIndicatorNoDelay_1jczn_13", ke = {
1827
+ liveIndicator: Xr,
1828
+ liveIndicatorHasDelay: Gr,
1829
+ liveIndicatorNoDelay: Jr
1791
1830
  };
1792
- function Xr(n) {
1831
+ function Qr(n) {
1793
1832
  var o = n, { message: e } = o, t = ne(o, ["message"]);
1794
- const s = U((l) => l.delay), c = U((l) => l.setDelay), u = () => {
1795
- s && c(0);
1796
- }, i = s ? `${ke.liveIndicator} ${ke.liveIndicatorHasDelay}` : `${ke.liveIndicator} ${ke.liveIndicatorNoDelay}`;
1797
- return /* @__PURE__ */ a.jsxs(le, he(P({ onClick: u, shape: "square" }, t), { children: [
1798
- /* @__PURE__ */ a.jsx("div", { className: i }),
1833
+ const a = A((c) => c.delay), l = A((c) => c.setDelay), u = () => {
1834
+ a && l(0);
1835
+ }, i = a ? `${ke.liveIndicator} ${ke.liveIndicatorHasDelay}` : `${ke.liveIndicator} ${ke.liveIndicatorNoDelay}`;
1836
+ return /* @__PURE__ */ s.jsxs(le, he(L({ onClick: u, shape: "square" }, t), { children: [
1837
+ /* @__PURE__ */ s.jsx("div", { className: i }),
1799
1838
  e || "Live"
1800
1839
  ] }));
1801
1840
  }
1802
- function Xt() {
1803
- return /* @__PURE__ */ a.jsx(
1841
+ function Gt() {
1842
+ return /* @__PURE__ */ s.jsx(
1804
1843
  "svg",
1805
1844
  {
1806
1845
  xmlns: "http://www.w3.org/2000/svg",
1807
1846
  viewBox: "0 0 24 24",
1808
1847
  fill: "currentColor",
1809
- children: /* @__PURE__ */ a.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
1848
+ children: /* @__PURE__ */ s.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
1810
1849
  }
1811
1850
  );
1812
1851
  }
1813
- function Gt() {
1814
- return /* @__PURE__ */ a.jsx(
1852
+ function Jt() {
1853
+ return /* @__PURE__ */ s.jsx(
1815
1854
  "svg",
1816
1855
  {
1817
1856
  xmlns: "http://www.w3.org/2000/svg",
1818
1857
  viewBox: "0 0 24 24",
1819
1858
  fill: "currentColor",
1820
- children: /* @__PURE__ */ a.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" })
1859
+ children: /* @__PURE__ */ s.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" })
1821
1860
  }
1822
1861
  );
1823
1862
  }
1824
- function Gr() {
1825
- const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), s = U((i) => i.delay), c = U((i) => i.setDelay), u = () => {
1863
+ function eo() {
1864
+ const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), a = A((i) => i.delay), l = A((i) => i.setDelay), u = () => {
1826
1865
  if (e)
1827
1866
  t();
1828
1867
  else {
1829
1868
  const i = n();
1830
- i && c(s + i), o();
1869
+ i && l(a + i), o();
1831
1870
  }
1832
1871
  };
1833
- return /* @__PURE__ */ a.jsx(le, { onClick: u, children: e ? /* @__PURE__ */ a.jsx(Xt, {}) : /* @__PURE__ */ a.jsx(Gt, {}) });
1834
- }
1835
- const Jr = "_progressSlider_hwzgf_1", Qr = "_tipContainer_hwzgf_7", eo = "_tipContainerVisible_hwzgf_17", to = "_tipContainerHidden_hwzgf_22", no = "_tipContent_hwzgf_27", se = {
1836
- progressSlider: Jr,
1837
- tipContainer: Qr,
1838
- tipContainerVisible: eo,
1839
- tipContainerHidden: to,
1840
- tipContent: no
1841
- }, ro = "_sliderRoot_aeak6_1", oo = "_sliderTrack_aeak6_18", io = "_sliderRange_aeak6_28", so = "_sliderThumb_aeak6_37", Ie = {
1842
- sliderRoot: ro,
1843
- sliderTrack: oo,
1844
- sliderRange: io,
1845
- sliderThumb: so
1846
- }, Ne = Me((c, s) => {
1847
- var u = c, { max: e = 100, min: t = 0, className: n } = u, o = ne(u, ["max", "min", "className"]);
1848
- return /* @__PURE__ */ a.jsxs(
1849
- Le.Root,
1850
- he(P({
1851
- ref: s,
1872
+ return /* @__PURE__ */ s.jsx(le, { onClick: u, children: e ? /* @__PURE__ */ s.jsx(Gt, {}) : /* @__PURE__ */ s.jsx(Jt, {}) });
1873
+ }
1874
+ const to = "_progressSlider_hwzgf_1", no = "_tipContainer_hwzgf_7", ro = "_tipContainerVisible_hwzgf_17", oo = "_tipContainerHidden_hwzgf_22", io = "_tipContent_hwzgf_27", se = {
1875
+ progressSlider: to,
1876
+ tipContainer: no,
1877
+ tipContainerVisible: ro,
1878
+ tipContainerHidden: oo,
1879
+ tipContent: io
1880
+ }, so = "_sliderRoot_aeak6_1", ao = "_sliderTrack_aeak6_18", lo = "_sliderRange_aeak6_28", co = "_sliderThumb_aeak6_37", Ie = {
1881
+ sliderRoot: so,
1882
+ sliderTrack: ao,
1883
+ sliderRange: lo,
1884
+ sliderThumb: co
1885
+ }, Ae = Ne((l, a) => {
1886
+ var u = l, { max: e = 100, min: t = 0, className: n } = u, o = ne(u, ["max", "min", "className"]);
1887
+ return /* @__PURE__ */ s.jsxs(
1888
+ je.Root,
1889
+ he(L({
1890
+ ref: a,
1852
1891
  min: t,
1853
1892
  max: e,
1854
1893
  "aria-label": "Player progress",
@@ -1860,14 +1899,14 @@ const Jr = "_progressSlider_hwzgf_1", Qr = "_tipContainer_hwzgf_7", eo = "_tipCo
1860
1899
  )
1861
1900
  }, o), {
1862
1901
  children: [
1863
- /* @__PURE__ */ a.jsx(Le.Track, { className: Ie.sliderTrack, children: /* @__PURE__ */ a.jsx(Le.Range, { className: Ie.sliderRange }) }),
1864
- /* @__PURE__ */ a.jsx(Le.Thumb, { className: Ie.sliderThumb })
1902
+ /* @__PURE__ */ s.jsx(je.Track, { className: Ie.sliderTrack, children: /* @__PURE__ */ s.jsx(je.Range, { className: Ie.sliderRange }) }),
1903
+ /* @__PURE__ */ s.jsx(je.Thumb, { className: Ie.sliderThumb })
1865
1904
  ]
1866
1905
  })
1867
1906
  );
1868
1907
  });
1869
- Ne.displayName = "PlayerSlider";
1870
- function Fe(e) {
1908
+ Ae.displayName = "PlayerSlider";
1909
+ function Me(e) {
1871
1910
  const t = e.getBoundingClientRect();
1872
1911
  return e.offsetWidth / e.offsetHeight > e.clientWidth / e.clientHeight ? {
1873
1912
  left: t.left * 100,
@@ -1878,160 +1917,205 @@ function Fe(e) {
1878
1917
  height: t.height * 100
1879
1918
  } : t;
1880
1919
  }
1881
- const _t = "vod-player-progress-bar";
1882
- function ao() {
1883
- const e = O(null), t = O(null), [n, o] = X(0), [s, c] = X(0), [u, i] = X(!1), [l, d] = X(-1), [g, y] = X(-1), v = U((D) => D.delay), _ = U((D) => D.startDate), j = _ ? _.getTime() : 0, S = (/* @__PURE__ */ new Date()).getTime(), L = U((D) => D.setDelay), M = f((D) => D.isPlaying), R = f((D) => D.addIdleLock), k = f((D) => D.removeIdleLock), T = B(() => {
1884
- o(qt(j, v)), c(Rr(j, S));
1885
- }, [v, S, j]), I = parseFloat(
1886
- (s ? (g !== -1 ? g : n) / s * 100 : 0).toFixed(1)
1920
+ const Tt = "vod-player-progress-bar";
1921
+ function uo() {
1922
+ const e = V(null), t = V(null), [n, o] = X(0), [a, l] = X(0), [u, i] = X(!1), [c, d] = X(-1), [g, y] = X(-1), v = A((D) => D.delay), x = A((D) => D.startDate), P = x ? x.getTime() : 0, b = (/* @__PURE__ */ new Date()).getTime(), E = A((D) => D.setDelay), N = f((D) => D.isPlaying), S = f((D) => D.addIdleLock), k = f((D) => D.removeIdleLock), _ = z(() => {
1923
+ o(Wt(P, v)), l(br(P, b));
1924
+ }, [v, b, P]), I = parseFloat(
1925
+ (a ? (g !== -1 ? g : n) / a * 100 : 0).toFixed(1)
1887
1926
  ), p = (D) => {
1888
- y(s * (D[0] / 100)), R(_t);
1889
- }, H = () => {
1927
+ y(a * (D[0] / 100)), S(Tt);
1928
+ }, $ = () => {
1890
1929
  if (g !== -1) {
1891
- const D = zt(j, g);
1892
- L(D), y(-1), k(_t);
1930
+ const D = qt(P, g);
1931
+ E(D), y(-1), k(Tt);
1893
1932
  }
1894
- }, G = () => i(!0), W = () => i(!1), V = B(
1933
+ }, G = () => i(!0), Z = () => i(!1), O = z(
1895
1934
  (D) => {
1896
- const Q = e.current, Z = t.current;
1897
- if (Q && Z) {
1898
- const z = Fe(Q), oe = Fe(Z), ue = (D.pageX || D.clientX) - z.left, te = ue / z.width;
1935
+ const Q = e.current, K = t.current;
1936
+ if (Q && K) {
1937
+ const q = Me(Q), oe = Me(K), ue = (D.pageX || D.clientX) - q.left, te = ue / q.width;
1899
1938
  if (te < 0) return;
1900
- let q = ue - oe.width / 2;
1901
- q < 0 && (q = 0), q > z.width - oe.width && (q = -1), Z.style.left = q > -1 ? `${q}px` : "auto", Z.style.right = q > -1 ? "auto" : "0px";
1902
- const ve = s - te * s;
1939
+ let W = ue - oe.width / 2;
1940
+ W < 0 && (W = 0), W > q.width - oe.width && (W = -1), K.style.left = W > -1 ? `${W}px` : "auto", K.style.right = W > -1 ? "auto" : "0px";
1941
+ const ve = a - te * a;
1903
1942
  d(ve > 0 ? ve : 0);
1904
1943
  }
1905
1944
  G();
1906
1945
  },
1907
- [s]
1946
+ [a]
1908
1947
  );
1909
- return Ke(() => T(), M ? 1e3 : null), N(() => {
1910
- T();
1911
- }, [T]), /* @__PURE__ */ a.jsxs("div", { className: se.progressSlider, children: [
1912
- /* @__PURE__ */ a.jsx(
1913
- Ne,
1948
+ return Ve(() => _(), N ? 1e3 : null), F(() => {
1949
+ _();
1950
+ }, [_]), /* @__PURE__ */ s.jsxs("div", { className: se.progressSlider, children: [
1951
+ /* @__PURE__ */ s.jsx(
1952
+ Ae,
1914
1953
  {
1915
1954
  ref: e,
1916
1955
  value: [I],
1917
- onPointerLeave: W,
1918
- onPointerDown: W,
1919
- onPointerMove: V,
1956
+ onPointerLeave: Z,
1957
+ onPointerDown: Z,
1958
+ onPointerMove: O,
1920
1959
  onValueChange: p,
1921
- onValueCommit: H,
1960
+ onValueCommit: $,
1922
1961
  step: 0.1
1923
1962
  }
1924
1963
  ),
1925
- /* @__PURE__ */ a.jsx(
1964
+ /* @__PURE__ */ s.jsx(
1926
1965
  "div",
1927
1966
  {
1928
1967
  ref: t,
1929
1968
  className: `${se.tipContainer} ${u ? se.tipContainerVisible : se.tipContainerHidden}`,
1930
- children: /* @__PURE__ */ a.jsx("p", { className: se.tipContent, children: `-${_e(l)}` })
1969
+ children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: `-${xe(c)}` })
1931
1970
  }
1932
1971
  )
1933
1972
  ] });
1934
1973
  }
1935
- function lo() {
1936
- return /* @__PURE__ */ a.jsx(
1974
+ function fo() {
1975
+ return /* @__PURE__ */ s.jsx(
1937
1976
  "svg",
1938
1977
  {
1939
1978
  xmlns: "http://www.w3.org/2000/svg",
1940
1979
  viewBox: "0 0 24 24",
1941
1980
  fill: "currentColor",
1942
- children: /* @__PURE__ */ a.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" })
1981
+ children: /* @__PURE__ */ s.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" })
1943
1982
  }
1944
1983
  );
1945
1984
  }
1946
- function co() {
1947
- const e = U((s) => s.startDate), t = U((s) => s.setDelay), n = e ? e.getTime() : 0, o = () => t(zt(n));
1948
- return /* @__PURE__ */ a.jsx(le, { onClick: o, children: /* @__PURE__ */ a.jsx(lo, {}) });
1985
+ function ho() {
1986
+ const e = A((a) => a.startDate), t = A((a) => a.setDelay), n = e ? e.getTime() : 0, o = () => t(qt(n));
1987
+ return /* @__PURE__ */ s.jsx(le, { onClick: o, children: /* @__PURE__ */ s.jsx(fo, {}) });
1949
1988
  }
1950
- function Jt() {
1989
+ const mo = "_viewersContainer_bsl3f_1", po = "_viewersIndicator_bsl3f_13", vo = "_viewersIcon_bsl3f_21", yo = "_viewersCount_bsl3f_25", De = {
1990
+ viewersContainer: mo,
1991
+ viewersIndicator: po,
1992
+ viewersIcon: vo,
1993
+ viewersCount: yo
1994
+ };
1995
+ function go() {
1996
+ const e = A((t) => t.viewerCount);
1997
+ return e ? /* @__PURE__ */ s.jsxs("div", { className: De.viewersContainer, children: [
1998
+ /* @__PURE__ */ s.jsx("span", { className: De.viewersIndicator }),
1999
+ /* @__PURE__ */ s.jsxs(
2000
+ "svg",
2001
+ {
2002
+ className: De.viewersIcon,
2003
+ width: "16",
2004
+ height: "16",
2005
+ viewBox: "0 0 16 16",
2006
+ fill: "none",
2007
+ xmlns: "http://www.w3.org/2000/svg",
2008
+ children: [
2009
+ /* @__PURE__ */ s.jsx(
2010
+ "path",
2011
+ {
2012
+ d: "M8 7C9.10457 7 10 6.10457 10 5C10 3.89543 9.10457 3 8 3C6.89543 3 6 3.89543 6 5C6 6.10457 6.89543 7 8 7Z",
2013
+ fill: "currentColor"
2014
+ }
2015
+ ),
2016
+ /* @__PURE__ */ s.jsx(
2017
+ "path",
2018
+ {
2019
+ d: "M8 8C5.79086 8 4 9.79086 4 12V13H12V12C12 9.79086 10.2091 8 8 8Z",
2020
+ fill: "currentColor"
2021
+ }
2022
+ )
2023
+ ]
2024
+ }
2025
+ ),
2026
+ /* @__PURE__ */ s.jsx("span", { className: De.viewersCount, children: e.toLocaleString() })
2027
+ ] }) : null;
2028
+ }
2029
+ function Qt() {
1951
2030
  const e = f((n) => n.error);
1952
2031
  if (!e) return null;
1953
2032
  const t = e.code === "LIVE_MANIFEST_LOAD_ERROR";
1954
- return /* @__PURE__ */ a.jsx(
2033
+ return /* @__PURE__ */ s.jsx(
1955
2034
  "div",
1956
2035
  {
1957
2036
  className: `${ie.playerNotice} ${t ? ie.playerNoticeLowZIndex : ""}`,
1958
- children: /* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: e.message })
2037
+ children: /* @__PURE__ */ s.jsx("h3", { className: ie.playerNoticeTitle, children: e.message })
1959
2038
  }
1960
2039
  );
1961
2040
  }
1962
- const uo = "_playerContainer_1fn8l_1", fo = "_controlsBottom_1fn8l_29", ho = "_controlsContainer_1fn8l_45", mo = "_controlsRow_1fn8l_61", po = "_controlsSection_1fn8l_68", vo = "_controlsSectionStart_1fn8l_78", yo = "_controlsSectionEnd_1fn8l_82", K = {
1963
- playerContainer: uo,
1964
- controlsBottom: fo,
1965
- controlsContainer: ho,
1966
- controlsRow: mo,
1967
- controlsSection: po,
1968
- controlsSectionStart: vo,
1969
- controlsSectionEnd: yo
2041
+ const wo = "_playerContainer_146tx_1", _o = "_controlsTop_146tx_12", xo = "_controlsBottom_146tx_29", To = "_controlsContainer_146tx_45", Co = "_controlsRow_146tx_61", Eo = "_controlsSection_146tx_68", Ro = "_controlsSectionStart_146tx_78", bo = "_controlsSectionEnd_146tx_82", B = {
2042
+ playerContainer: wo,
2043
+ controlsTop: _o,
2044
+ controlsBottom: xo,
2045
+ controlsContainer: To,
2046
+ controlsRow: Co,
2047
+ controlsSection: Eo,
2048
+ controlsSectionStart: Ro,
2049
+ controlsSectionEnd: bo
1970
2050
  };
1971
- function go() {
1972
- return /* @__PURE__ */ a.jsx(
2051
+ function So() {
2052
+ return /* @__PURE__ */ s.jsx(
1973
2053
  "svg",
1974
2054
  {
1975
2055
  xmlns: "http://www.w3.org/2000/svg",
1976
2056
  viewBox: "0 0 24 24",
1977
2057
  fill: "currentColor",
1978
- children: /* @__PURE__ */ a.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
2058
+ children: /* @__PURE__ */ s.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
1979
2059
  }
1980
2060
  );
1981
2061
  }
1982
- function wo() {
1983
- return /* @__PURE__ */ a.jsx(
2062
+ function jo() {
2063
+ return /* @__PURE__ */ s.jsx(
1984
2064
  "svg",
1985
2065
  {
1986
2066
  xmlns: "http://www.w3.org/2000/svg",
1987
2067
  viewBox: "0 0 24 24",
1988
2068
  fill: "currentColor",
1989
- children: /* @__PURE__ */ a.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
2069
+ children: /* @__PURE__ */ s.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
1990
2070
  }
1991
2071
  );
1992
2072
  }
1993
- function Qt() {
1994
- const e = f((d) => d.containerRef), t = f((d) => d.exitFullscreen), n = f((d) => d.isFullscreen), o = f((d) => d.requestFullscreen), s = f((d) => d.setIsFullscreen), c = f((d) => d.setIsFullscreenReady), u = f((d) => d.techRef), i = B(
2073
+ function en() {
2074
+ const e = f((d) => d.containerRef), t = f((d) => d.exitFullscreen), n = f((d) => d.isFullscreen), o = f((d) => d.requestFullscreen), a = f((d) => d.setIsFullscreen), l = f((d) => d.setIsFullscreenReady), u = f((d) => d.techRef), i = z(
1995
2075
  (d) => {
1996
- d.stopPropagation(), s(rr());
2076
+ d.stopPropagation(), a(or());
1997
2077
  },
1998
- [s]
1999
- ), l = () => {
2078
+ [a]
2079
+ ), c = () => {
2000
2080
  n ? t() : o();
2001
2081
  };
2002
- return N(() => {
2003
- const d = $t ? u.current : e.current;
2082
+ return F(() => {
2083
+ const d = Ut ? u.current : e.current;
2004
2084
  if (d)
2005
- return sr(d, i);
2006
- }, [e, i, u]), N(() => {
2007
- c(!0);
2008
- }, [c]), /* @__PURE__ */ a.jsx(le, { onClick: l, children: n ? /* @__PURE__ */ a.jsx(wo, {}) : /* @__PURE__ */ a.jsx(go, {}) });
2009
- }
2010
- const To = "_idleCheckContainer_iz9tu_1", _o = "_idleCheckContainerIdle_iz9tu_10", xo = "_idleCheckContainerActive_iz9tu_15", qe = {
2011
- idleCheckContainer: To,
2012
- idleCheckContainerIdle: _o,
2013
- idleCheckContainerActive: xo
2014
- }, Eo = 5 * 1e3;
2015
- function en({ children: e }) {
2016
- const t = O(null), n = f((v) => v.isIdle), o = f((v) => v.setIsIdle), s = O(null), u = f((v) => v.idleLocks).size, i = f((v) => v.eventEmitter), l = B(() => {
2017
- s.current !== null && (window.clearTimeout(s.current), s.current = null);
2018
- }, []), d = B(() => {
2019
- l(), s.current = window.setTimeout(() => o(!0), Eo);
2020
- }, [l]);
2021
- N(() => (o(!1), d(), () => {
2022
- l();
2023
- }), [l, d]), N(() => {
2085
+ return ar(d, i);
2086
+ }, [e, i, u]), F(() => {
2087
+ l(!0);
2088
+ }, [l]), /* @__PURE__ */ s.jsx(le, { onClick: c, children: n ? /* @__PURE__ */ s.jsx(jo, {}) : /* @__PURE__ */ s.jsx(So, {}) });
2089
+ }
2090
+ const Lo = "_idleCheckContainer_iz9tu_1", Po = "_idleCheckContainerIdle_iz9tu_10", ko = "_idleCheckContainerActive_iz9tu_15", Ze = {
2091
+ idleCheckContainer: Lo,
2092
+ idleCheckContainerIdle: Po,
2093
+ idleCheckContainerActive: ko
2094
+ }, Io = 5 * 1e3;
2095
+ function tn({ children: e }) {
2096
+ const t = V(null), n = f((v) => v.isIdle), o = f((v) => v.setIsIdle), a = V(null), u = f((v) => v.idleLocks).size, i = f((v) => v.eventEmitter), c = z(() => {
2097
+ a.current !== null && (window.clearTimeout(a.current), a.current = null);
2098
+ }, []), d = z(() => {
2099
+ c(), a.current = window.setTimeout(() => o(!0), Io);
2100
+ }, [c]);
2101
+ F(() => (o(!1), d(), () => {
2102
+ c();
2103
+ }), [c, d]), F(() => {
2024
2104
  const v = t.current;
2025
2105
  if (!v) return;
2026
- const _ = (S) => {
2027
- n && (S.stopPropagation(), o(!1), d());
2028
- }, j = () => {
2106
+ const x = (E) => {
2107
+ n && (E.preventDefault(), E.stopPropagation(), o(!1), d());
2108
+ }, P = (E) => {
2109
+ n && (E.preventDefault(), E.stopPropagation(), o(!1), d());
2110
+ }, b = () => {
2029
2111
  n && o(!1), d();
2030
2112
  };
2031
- return v.addEventListener("click", _), v.addEventListener("mousemove", j), () => {
2032
- v.removeEventListener("click", _), v.removeEventListener("mousemove", j);
2113
+ return v.addEventListener("click", x), v.addEventListener("touchstart", P, {
2114
+ passive: !1
2115
+ }), v.addEventListener("mousemove", b), () => {
2116
+ v.removeEventListener("click", x), v.removeEventListener("touchstart", P), v.removeEventListener("mousemove", b);
2033
2117
  };
2034
- }, [t, n, o, d]), N(() => {
2118
+ }, [t, n, o, d]), F(() => {
2035
2119
  const v = () => {
2036
2120
  o(!1), d();
2037
2121
  };
@@ -2039,67 +2123,67 @@ function en({ children: e }) {
2039
2123
  i.off("resetIdle", v);
2040
2124
  };
2041
2125
  }, [i, o, d]);
2042
- const g = n && !u, y = `${qe.idleCheckContainer} ${g ? qe.idleCheckContainerIdle : qe.idleCheckContainerActive}`;
2043
- return /* @__PURE__ */ a.jsx("div", { ref: t, className: y, children: e });
2126
+ const g = n && !u, y = `${Ze.idleCheckContainer} ${g ? Ze.idleCheckContainerIdle : Ze.idleCheckContainerActive}`;
2127
+ return /* @__PURE__ */ s.jsx("div", { ref: t, className: y, children: e });
2044
2128
  }
2045
- const Co = "_spinner_oo4hi_10", Ro = {
2046
- spinner: Co
2129
+ const Do = "_spinner_oo4hi_10", Fo = {
2130
+ spinner: Do
2047
2131
  };
2048
- function So(e) {
2049
- return /* @__PURE__ */ a.jsx("div", P({ className: Ro.spinner }, e));
2132
+ function Mo(e) {
2133
+ return /* @__PURE__ */ s.jsx("div", L({ className: Fo.spinner }, e));
2050
2134
  }
2051
- function bo(e, t = 500) {
2135
+ function No(e, t = 500) {
2052
2136
  const [n, o] = X(e);
2053
- return N(() => {
2054
- const s = window.setTimeout(() => o(e), t);
2137
+ return F(() => {
2138
+ const a = window.setTimeout(() => o(e), t);
2055
2139
  return () => {
2056
- window.clearTimeout(s);
2140
+ window.clearTimeout(a);
2057
2141
  };
2058
2142
  }, [e, t]), n;
2059
2143
  }
2060
- const Lo = "_loadingContainer_v9v7r_1", Po = {
2061
- loadingContainer: Lo
2144
+ const Vo = "_loadingContainer_v9v7r_1", Ao = {
2145
+ loadingContainer: Vo
2062
2146
  };
2063
- function tn(n) {
2147
+ function nn(n) {
2064
2148
  var o = n, { style: e } = o, t = ne(o, ["style"]);
2065
- const s = f((u) => u.isLoading);
2066
- return bo(s, 100) ? /* @__PURE__ */ a.jsx("div", he(P({ className: Po.loadingContainer, style: e }, t), { children: /* @__PURE__ */ a.jsx(So, {}) })) : null;
2149
+ const a = f((u) => u.isLoading);
2150
+ return No(a, 100) ? /* @__PURE__ */ s.jsx("div", he(L({ className: Ao.loadingContainer, style: e }, t), { children: /* @__PURE__ */ s.jsx(Mo, {}) })) : null;
2067
2151
  }
2068
- function jo() {
2069
- return /* @__PURE__ */ a.jsx(
2152
+ function Oo() {
2153
+ return /* @__PURE__ */ s.jsx(
2070
2154
  "svg",
2071
2155
  {
2072
2156
  xmlns: "http://www.w3.org/2000/svg",
2073
2157
  viewBox: "0 0 24 24",
2074
2158
  fill: "currentColor",
2075
- children: /* @__PURE__ */ a.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" })
2159
+ children: /* @__PURE__ */ s.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" })
2076
2160
  }
2077
2161
  );
2078
2162
  }
2079
- function ko() {
2080
- return /* @__PURE__ */ a.jsx(
2163
+ function Ho() {
2164
+ return /* @__PURE__ */ s.jsx(
2081
2165
  "svg",
2082
2166
  {
2083
2167
  xmlns: "http://www.w3.org/2000/svg",
2084
2168
  viewBox: "0 0 24 24",
2085
2169
  fill: "currentColor",
2086
- children: /* @__PURE__ */ a.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" })
2170
+ children: /* @__PURE__ */ s.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" })
2087
2171
  }
2088
2172
  );
2089
2173
  }
2090
- const Io = "_dropdownMenuContent_11aiz_1", Do = "_dropdownMenuItem_11aiz_82", Fo = "_scrollAreaRoot_11aiz_124", Mo = "_scrollAreaViewport_11aiz_132", No = "_scrollAreaScrollbar_11aiz_140", Vo = "_scrollAreaThumb_11aiz_167", pe = {
2091
- dropdownMenuContent: Io,
2092
- dropdownMenuItem: Do,
2093
- scrollAreaRoot: Fo,
2094
- scrollAreaViewport: Mo,
2095
- scrollAreaScrollbar: No,
2096
- scrollAreaThumb: Vo
2097
- }, Ao = xe.Root, Oo = xe.Trigger, Ho = xe.Portal, nn = Me((c, s) => {
2098
- var u = c, { sideOffset: e = 4, className: t, children: n } = u, o = ne(u, ["sideOffset", "className", "children"]);
2099
- return /* @__PURE__ */ a.jsx(
2100
- xe.Content,
2101
- he(P({
2102
- ref: s,
2174
+ const $o = "_dropdownMenuContent_b7j6b_1", Uo = "_dropdownMenuItem_b7j6b_83", Bo = "_scrollAreaRoot_b7j6b_125", zo = "_scrollAreaViewport_b7j6b_133", qo = "_scrollAreaScrollbar_b7j6b_141", Wo = "_scrollAreaThumb_b7j6b_168", pe = {
2175
+ dropdownMenuContent: $o,
2176
+ dropdownMenuItem: Uo,
2177
+ scrollAreaRoot: Bo,
2178
+ scrollAreaViewport: zo,
2179
+ scrollAreaScrollbar: qo,
2180
+ scrollAreaThumb: Wo
2181
+ }, Zo = Te.Root, Ko = Te.Trigger, Yo = Te.Portal, rn = Ne((l, a) => {
2182
+ var u = l, { sideOffset: e = 4, className: t, children: n } = u, o = ne(u, ["sideOffset", "className", "children"]);
2183
+ return /* @__PURE__ */ s.jsx(
2184
+ Te.Content,
2185
+ he(L({
2186
+ ref: a,
2103
2187
  sideOffset: e,
2104
2188
  className: [pe.dropdownMenuContent, t].filter(Boolean).join(" "),
2105
2189
  onOpenAutoFocus: (i) => {
@@ -2109,20 +2193,20 @@ const Io = "_dropdownMenuContent_11aiz_1", Do = "_dropdownMenuItem_11aiz_82", Fo
2109
2193
  i.preventDefault();
2110
2194
  }
2111
2195
  }, o), {
2112
- children: /* @__PURE__ */ a.jsxs(
2113
- Pe.Root,
2196
+ children: /* @__PURE__ */ s.jsxs(
2197
+ Le.Root,
2114
2198
  {
2115
2199
  className: pe.scrollAreaRoot,
2116
2200
  type: "always",
2117
2201
  scrollHideDelay: 0,
2118
2202
  children: [
2119
- /* @__PURE__ */ a.jsx(Pe.Viewport, { className: pe.scrollAreaViewport, children: n }),
2120
- /* @__PURE__ */ a.jsx(
2121
- Pe.Scrollbar,
2203
+ /* @__PURE__ */ s.jsx(Le.Viewport, { className: pe.scrollAreaViewport, children: n }),
2204
+ /* @__PURE__ */ s.jsx(
2205
+ Le.Scrollbar,
2122
2206
  {
2123
2207
  className: pe.scrollAreaScrollbar,
2124
2208
  orientation: "vertical",
2125
- children: /* @__PURE__ */ a.jsx(Pe.Thumb, { className: pe.scrollAreaThumb })
2209
+ children: /* @__PURE__ */ s.jsx(Le.Thumb, { className: pe.scrollAreaThumb })
2126
2210
  }
2127
2211
  )
2128
2212
  ]
@@ -2131,17 +2215,17 @@ const Io = "_dropdownMenuContent_11aiz_1", Do = "_dropdownMenuItem_11aiz_82", Fo
2131
2215
  })
2132
2216
  );
2133
2217
  });
2134
- nn.displayName = "PlayerMenuContent";
2135
- const rn = Me((s, o) => {
2136
- var c = s, { className: e, onClick: t } = c, n = ne(c, ["className", "onClick"]);
2137
- const u = (l) => {
2138
- t == null || t(l);
2139
- }, i = (l) => {
2140
- (l.key === "Enter" || l.key === " ") && (l.preventDefault(), t == null || t(l));
2218
+ rn.displayName = "PlayerMenuContent";
2219
+ const on = Ne((a, o) => {
2220
+ var l = a, { className: e, onClick: t } = l, n = ne(l, ["className", "onClick"]);
2221
+ const u = (c) => {
2222
+ t == null || t(c);
2223
+ }, i = (c) => {
2224
+ (c.key === "Enter" || c.key === " ") && (c.preventDefault(), t == null || t(c));
2141
2225
  };
2142
- return /* @__PURE__ */ a.jsx(xe.Close, { asChild: !0, children: /* @__PURE__ */ a.jsx(
2226
+ return /* @__PURE__ */ s.jsx(Te.Close, { asChild: !0, children: /* @__PURE__ */ s.jsx(
2143
2227
  "div",
2144
- P({
2228
+ L({
2145
2229
  ref: o,
2146
2230
  className: [pe.dropdownMenuItem, e].filter(Boolean).join(" "),
2147
2231
  role: "menuitem",
@@ -2151,98 +2235,98 @@ const rn = Me((s, o) => {
2151
2235
  }, n)
2152
2236
  ) });
2153
2237
  });
2154
- rn.displayName = "PlayerMenuItem";
2155
- const xt = "settings";
2156
- function on() {
2157
- const [e, t] = X(!1), n = f((l) => l.containerRef), o = f((l) => l.addIdleLock), s = f((l) => l.removeIdleLock), c = f((l) => l.levels), u = f((l) => l.setLevel), i = B(
2158
- (l) => {
2159
- t(l), l ? o(xt) : s(xt);
2238
+ on.displayName = "PlayerMenuItem";
2239
+ const Ct = "settings";
2240
+ function sn() {
2241
+ const [e, t] = X(!1), n = f((c) => c.containerRef), o = f((c) => c.addIdleLock), a = f((c) => c.removeIdleLock), l = f((c) => c.levels), u = f((c) => c.setLevel), i = z(
2242
+ (c) => {
2243
+ t(c), c ? o(Ct) : a(Ct);
2160
2244
  },
2161
- [o, s]
2245
+ [o, a]
2162
2246
  );
2163
- return /* @__PURE__ */ a.jsxs(Ao, { open: e, onOpenChange: i, children: [
2164
- /* @__PURE__ */ a.jsx(Oo, { asChild: !0, children: /* @__PURE__ */ a.jsx(le, { children: /* @__PURE__ */ a.jsx(ko, {}) }) }),
2165
- /* @__PURE__ */ a.jsx(Ho, { container: n.current, children: /* @__PURE__ */ a.jsx(nn, { side: "top", align: "end", children: c == null ? void 0 : c.map((l) => /* @__PURE__ */ a.jsxs(
2166
- rn,
2247
+ return /* @__PURE__ */ s.jsxs(Zo, { open: e, onOpenChange: i, children: [
2248
+ /* @__PURE__ */ s.jsx(Ko, { asChild: !0, children: /* @__PURE__ */ s.jsx(le, { children: /* @__PURE__ */ s.jsx(Ho, {}) }) }),
2249
+ /* @__PURE__ */ s.jsx(Yo, { container: n.current, children: /* @__PURE__ */ s.jsx(rn, { side: "top", align: "end", children: l == null ? void 0 : l.map((c) => /* @__PURE__ */ s.jsxs(
2250
+ on,
2167
2251
  {
2168
- onClick: () => u(l.value),
2252
+ onClick: () => u(c.value),
2169
2253
  children: [
2170
- l.label,
2171
- l.selected && /* @__PURE__ */ a.jsx(jo, {})
2254
+ c.label,
2255
+ c.selected && /* @__PURE__ */ s.jsx(Oo, {})
2172
2256
  ]
2173
2257
  },
2174
- l.sid
2258
+ c.sid
2175
2259
  )) }) })
2176
2260
  ] });
2177
2261
  }
2178
- function $o() {
2179
- return /* @__PURE__ */ a.jsx(
2262
+ function Xo() {
2263
+ return /* @__PURE__ */ s.jsx(
2180
2264
  "svg",
2181
2265
  {
2182
2266
  xmlns: "http://www.w3.org/2000/svg",
2183
2267
  viewBox: "0 0 24 24",
2184
2268
  fill: "currentColor",
2185
- children: /* @__PURE__ */ a.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" })
2269
+ children: /* @__PURE__ */ s.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" })
2186
2270
  }
2187
2271
  );
2188
2272
  }
2189
- function Uo() {
2190
- return /* @__PURE__ */ a.jsx(
2273
+ function Go() {
2274
+ return /* @__PURE__ */ s.jsx(
2191
2275
  "svg",
2192
2276
  {
2193
2277
  xmlns: "http://www.w3.org/2000/svg",
2194
2278
  viewBox: "0 0 24 24",
2195
2279
  fill: "currentColor",
2196
- children: /* @__PURE__ */ a.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" })
2280
+ children: /* @__PURE__ */ s.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" })
2197
2281
  }
2198
2282
  );
2199
2283
  }
2200
- function Bo() {
2201
- return /* @__PURE__ */ a.jsx(
2284
+ function Jo() {
2285
+ return /* @__PURE__ */ s.jsx(
2202
2286
  "svg",
2203
2287
  {
2204
2288
  xmlns: "http://www.w3.org/2000/svg",
2205
2289
  viewBox: "0 0 24 24",
2206
2290
  fill: "currentColor",
2207
- children: /* @__PURE__ */ a.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" })
2291
+ children: /* @__PURE__ */ s.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" })
2208
2292
  }
2209
2293
  );
2210
2294
  }
2211
- const zo = "_volumeContainer_4d6jg_1", qo = "_volumeSlider_4d6jg_8", Et = {
2212
- volumeContainer: zo,
2213
- volumeSlider: qo
2214
- }, Ct = "volume";
2215
- function sn() {
2216
- const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), o = f((i) => i.removeIdleLock), s = (i) => {
2217
- e(i[0]), n(Ct);
2218
- }, c = () => {
2219
- o(Ct);
2295
+ const Qo = "_volumeContainer_4d6jg_1", ei = "_volumeSlider_4d6jg_8", Et = {
2296
+ volumeContainer: Qo,
2297
+ volumeSlider: ei
2298
+ }, Rt = "volume";
2299
+ function an() {
2300
+ const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), o = f((i) => i.removeIdleLock), a = (i) => {
2301
+ e(i[0]), n(Rt);
2302
+ }, l = () => {
2303
+ o(Rt);
2220
2304
  }, u = () => e(t ? 0 : 100);
2221
- return /* @__PURE__ */ a.jsxs("div", { className: Et.volumeContainer, children: [
2222
- /* @__PURE__ */ a.jsx(le, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ a.jsx($o, {}) : /* @__PURE__ */ a.jsx(Uo, {}) : /* @__PURE__ */ a.jsx(Bo, {}) }),
2223
- /* @__PURE__ */ a.jsx("div", { className: Et.volumeSlider, children: /* @__PURE__ */ a.jsx(
2224
- Ne,
2305
+ return /* @__PURE__ */ s.jsxs("div", { className: Et.volumeContainer, children: [
2306
+ /* @__PURE__ */ s.jsx(le, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ s.jsx(Xo, {}) : /* @__PURE__ */ s.jsx(Go, {}) : /* @__PURE__ */ s.jsx(Jo, {}) }),
2307
+ /* @__PURE__ */ s.jsx("div", { className: Et.volumeSlider, children: /* @__PURE__ */ s.jsx(
2308
+ Ae,
2225
2309
  {
2226
2310
  value: [t],
2227
- onValueChange: s,
2228
- onValueCommit: c
2311
+ onValueChange: a,
2312
+ onValueCommit: l
2229
2313
  }
2230
2314
  ) })
2231
2315
  ] });
2232
2316
  }
2233
- function li(e) {
2234
- return /* @__PURE__ */ a.jsx(jr, { children: /* @__PURE__ */ a.jsx(Wo, P({}, e)) });
2317
+ function yi(e) {
2318
+ return /* @__PURE__ */ s.jsx(kr, { children: /* @__PURE__ */ s.jsx(ti, L({}, e)) });
2235
2319
  }
2236
- function Wo({ url: e, messages: t, onEvent: n }) {
2237
- const o = f((s) => s.containerRef);
2238
- return /* @__PURE__ */ a.jsxs(
2320
+ function ti({ url: e, messages: t, onEvent: n }) {
2321
+ const o = f((a) => a.containerRef);
2322
+ return /* @__PURE__ */ s.jsxs(
2239
2323
  "div",
2240
2324
  {
2241
2325
  ref: o,
2242
- className: K.playerContainer,
2326
+ className: B.playerContainer,
2243
2327
  children: [
2244
- /* @__PURE__ */ a.jsxs(
2245
- xr,
2328
+ /* @__PURE__ */ s.jsxs(
2329
+ Cr,
2246
2330
  {
2247
2331
  url: e,
2248
2332
  messages: {
@@ -2250,8 +2334,8 @@ function Wo({ url: e, messages: t, onEvent: n }) {
2250
2334
  eventStartingSoon: t == null ? void 0 : t.eventStartingSoon
2251
2335
  },
2252
2336
  children: [
2253
- /* @__PURE__ */ a.jsx(
2254
- Fr,
2337
+ /* @__PURE__ */ s.jsx(
2338
+ Mr,
2255
2339
  {
2256
2340
  url: e,
2257
2341
  messages: {
@@ -2259,32 +2343,33 @@ function Wo({ url: e, messages: t, onEvent: n }) {
2259
2343
  }
2260
2344
  }
2261
2345
  ),
2262
- /* @__PURE__ */ a.jsx(Jt, {}),
2263
- /* @__PURE__ */ a.jsx(tn, {}),
2264
- /* @__PURE__ */ a.jsxs(en, { children: [
2265
- /* @__PURE__ */ a.jsx(zr, {}),
2266
- /* @__PURE__ */ a.jsx("div", { className: K.controlsBottom, children: /* @__PURE__ */ a.jsxs("div", { className: K.controlsContainer, children: [
2267
- /* @__PURE__ */ a.jsx(ao, {}),
2268
- /* @__PURE__ */ a.jsxs("div", { className: K.controlsRow, children: [
2269
- /* @__PURE__ */ a.jsxs(
2346
+ /* @__PURE__ */ s.jsx(Qt, {}),
2347
+ /* @__PURE__ */ s.jsx(nn, {}),
2348
+ /* @__PURE__ */ s.jsxs(tn, { children: [
2349
+ /* @__PURE__ */ s.jsx(Zr, {}),
2350
+ /* @__PURE__ */ s.jsx("div", { className: B.controlsTop, children: /* @__PURE__ */ s.jsx("div", { className: B.controlsContainer, children: /* @__PURE__ */ s.jsx("div", { className: B.controlsRow, children: /* @__PURE__ */ s.jsx(go, {}) }) }) }),
2351
+ /* @__PURE__ */ s.jsx("div", { className: B.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: B.controlsContainer, children: [
2352
+ /* @__PURE__ */ s.jsx(uo, {}),
2353
+ /* @__PURE__ */ s.jsxs("div", { className: B.controlsRow, children: [
2354
+ /* @__PURE__ */ s.jsxs(
2270
2355
  "div",
2271
2356
  {
2272
- className: `${K.controlsSection} ${K.controlsSectionStart}`,
2357
+ className: `${B.controlsSection} ${B.controlsSectionStart}`,
2273
2358
  children: [
2274
- /* @__PURE__ */ a.jsx(Gr, {}),
2275
- /* @__PURE__ */ a.jsx(co, {}),
2276
- /* @__PURE__ */ a.jsx(sn, {})
2359
+ /* @__PURE__ */ s.jsx(eo, {}),
2360
+ /* @__PURE__ */ s.jsx(ho, {}),
2361
+ /* @__PURE__ */ s.jsx(an, {})
2277
2362
  ]
2278
2363
  }
2279
2364
  ),
2280
- /* @__PURE__ */ a.jsxs(
2365
+ /* @__PURE__ */ s.jsxs(
2281
2366
  "div",
2282
2367
  {
2283
- className: `${K.controlsSection} ${K.controlsSectionEnd}`,
2368
+ className: `${B.controlsSection} ${B.controlsSectionEnd}`,
2284
2369
  children: [
2285
- /* @__PURE__ */ a.jsx(Xr, { message: t == null ? void 0 : t.live }),
2286
- /* @__PURE__ */ a.jsx(on, {}),
2287
- /* @__PURE__ */ a.jsx(Qt, {})
2370
+ /* @__PURE__ */ s.jsx(Qr, { message: t == null ? void 0 : t.live }),
2371
+ /* @__PURE__ */ s.jsx(sn, {}),
2372
+ /* @__PURE__ */ s.jsx(en, {})
2288
2373
  ]
2289
2374
  }
2290
2375
  )
@@ -2294,184 +2379,185 @@ function Wo({ url: e, messages: t, onEvent: n }) {
2294
2379
  ]
2295
2380
  }
2296
2381
  ),
2297
- /* @__PURE__ */ a.jsx(Pr, {}),
2298
- n && /* @__PURE__ */ a.jsx(Lr, { callback: n })
2382
+ /* @__PURE__ */ s.jsx(Pr, {}),
2383
+ /* @__PURE__ */ s.jsx(Nr, { url: e }),
2384
+ n && /* @__PURE__ */ s.jsx(Lr, { callback: n })
2299
2385
  ]
2300
2386
  }
2301
2387
  );
2302
2388
  }
2303
- function Zo() {
2304
- const e = f((u) => u.isPlaying), t = f((u) => u.pause), n = f((u) => u.play), o = f((u) => u.currentTime), s = f((u) => u.duration), c = f((u) => u.seek);
2305
- return /* @__PURE__ */ a.jsx(
2306
- Yt,
2389
+ function ni() {
2390
+ const e = f((u) => u.isPlaying), t = f((u) => u.pause), n = f((u) => u.play), o = f((u) => u.currentTime), a = f((u) => u.duration), l = f((u) => u.seek);
2391
+ return /* @__PURE__ */ s.jsx(
2392
+ Xt,
2307
2393
  {
2308
2394
  onClick: () => {
2309
2395
  e ? t() : n();
2310
2396
  },
2311
2397
  onBackwardSeek: (u) => {
2312
2398
  const i = Math.max(0, o - u);
2313
- c(i);
2399
+ l(i);
2314
2400
  },
2315
2401
  onForwardSeek: (u) => {
2316
- const i = Math.min(o + u, s);
2317
- c(i);
2402
+ const i = Math.min(o + u, a);
2403
+ l(i);
2318
2404
  },
2319
2405
  maxBackwardTime: Math.floor(o),
2320
- maxForwardTime: Math.floor(s - o)
2406
+ maxForwardTime: Math.floor(a - o)
2321
2407
  }
2322
2408
  );
2323
2409
  }
2324
- function Ko() {
2325
- const e = f((s) => s.isPlaying), t = f((s) => s.pause), n = f((s) => s.play), o = () => {
2410
+ function ri() {
2411
+ const e = f((a) => a.isPlaying), t = f((a) => a.pause), n = f((a) => a.play), o = () => {
2326
2412
  e ? t() : n();
2327
2413
  };
2328
- return /* @__PURE__ */ a.jsx(le, { onClick: o, children: e ? /* @__PURE__ */ a.jsx(Xt, {}) : /* @__PURE__ */ a.jsx(Gt, {}) });
2329
- }
2330
- const Rt = "vod-player-progress-bar";
2331
- function Yo() {
2332
- const e = O(null), t = O(null), [n, o] = X(!1), [s, c] = X(-1), [u, i] = X(-1), l = f((k) => k.currentTime), d = f((k) => k.duration), g = f((k) => k.seek), y = f((k) => k.addIdleLock), v = f((k) => k.removeIdleLock), _ = parseFloat(
2333
- (d ? (u !== -1 ? u : l) / d * 100 : 0).toFixed(1)
2334
- ), j = (k) => {
2335
- i(d * (k[0] / 100)), y(Rt);
2336
- }, S = () => {
2337
- u !== -1 && (g(u), i(-1), v(Rt));
2338
- }, L = () => o(!0), M = () => o(!1), R = B(
2414
+ return /* @__PURE__ */ s.jsx(le, { onClick: o, children: e ? /* @__PURE__ */ s.jsx(Gt, {}) : /* @__PURE__ */ s.jsx(Jt, {}) });
2415
+ }
2416
+ const bt = "vod-player-progress-bar";
2417
+ function oi() {
2418
+ const e = V(null), t = V(null), [n, o] = X(!1), [a, l] = X(-1), [u, i] = X(-1), c = f((k) => k.currentTime), d = f((k) => k.duration), g = f((k) => k.seek), y = f((k) => k.addIdleLock), v = f((k) => k.removeIdleLock), x = parseFloat(
2419
+ (d ? (u !== -1 ? u : c) / d * 100 : 0).toFixed(1)
2420
+ ), P = (k) => {
2421
+ i(d * (k[0] / 100)), y(bt);
2422
+ }, b = () => {
2423
+ u !== -1 && (g(u), i(-1), v(bt));
2424
+ }, E = () => o(!0), N = () => o(!1), S = z(
2339
2425
  (k) => {
2340
- const T = e.current, I = t.current;
2341
- if (T && I) {
2342
- const p = Fe(T), H = Fe(I), G = (k.pageX || k.clientX) - p.left, W = G / p.width;
2343
- if (W < 0) return;
2344
- let V = G - H.width / 2;
2345
- V < 0 && (V = 0), V > p.width - H.width && (V = -1), I.style.left = V > -1 ? `${V}px` : "auto", I.style.right = V > -1 ? "auto" : "0px", c(W * d);
2426
+ const _ = e.current, I = t.current;
2427
+ if (_ && I) {
2428
+ const p = Me(_), $ = Me(I), G = (k.pageX || k.clientX) - p.left, Z = G / p.width;
2429
+ if (Z < 0) return;
2430
+ let O = G - $.width / 2;
2431
+ O < 0 && (O = 0), O > p.width - $.width && (O = -1), I.style.left = O > -1 ? `${O}px` : "auto", I.style.right = O > -1 ? "auto" : "0px", l(Z * d);
2346
2432
  }
2347
- L();
2433
+ E();
2348
2434
  },
2349
2435
  [d]
2350
2436
  );
2351
- return /* @__PURE__ */ a.jsxs("div", { className: se.progressSlider, children: [
2352
- /* @__PURE__ */ a.jsx(
2353
- Ne,
2437
+ return /* @__PURE__ */ s.jsxs("div", { className: se.progressSlider, children: [
2438
+ /* @__PURE__ */ s.jsx(
2439
+ Ae,
2354
2440
  {
2355
2441
  ref: e,
2356
- value: [_],
2357
- onPointerLeave: M,
2358
- onPointerDown: M,
2359
- onPointerMove: R,
2360
- onValueChange: j,
2361
- onValueCommit: S,
2442
+ value: [x],
2443
+ onPointerLeave: N,
2444
+ onPointerDown: N,
2445
+ onPointerMove: S,
2446
+ onValueChange: P,
2447
+ onValueCommit: b,
2362
2448
  step: 0.1
2363
2449
  }
2364
2450
  ),
2365
- /* @__PURE__ */ a.jsx(
2451
+ /* @__PURE__ */ s.jsx(
2366
2452
  "div",
2367
2453
  {
2368
2454
  ref: t,
2369
2455
  className: `${se.tipContainer} ${n ? se.tipContainerVisible : se.tipContainerHidden}`,
2370
- children: /* @__PURE__ */ a.jsx("p", { className: se.tipContent, children: _e(s) })
2456
+ children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: xe(a) })
2371
2457
  }
2372
2458
  )
2373
2459
  ] });
2374
2460
  }
2375
- const Xo = "_remainingTimeContainer_1yyhb_1", Go = "_remainingTime_1yyhb_1", Jo = "_remainingSeparator_1yyhb_17", De = {
2376
- remainingTimeContainer: Xo,
2377
- remainingTime: Go,
2378
- remainingSeparator: Jo
2461
+ const ii = "_remainingTimeContainer_1yyhb_1", si = "_remainingTime_1yyhb_1", ai = "_remainingSeparator_1yyhb_17", Fe = {
2462
+ remainingTimeContainer: ii,
2463
+ remainingTime: si,
2464
+ remainingSeparator: ai
2379
2465
  };
2380
- function Qo() {
2466
+ function li() {
2381
2467
  const e = f((n) => n.currentTime), t = f((n) => n.duration);
2382
- return /* @__PURE__ */ a.jsxs("div", { className: De.remainingTimeContainer, children: [
2383
- /* @__PURE__ */ a.jsx("p", { className: De.remainingTime, children: _e(e) }),
2384
- /* @__PURE__ */ a.jsx("p", { className: De.remainingSeparator }),
2385
- /* @__PURE__ */ a.jsx("p", { className: De.remainingTime, children: _e(t) })
2468
+ return /* @__PURE__ */ s.jsxs("div", { className: Fe.remainingTimeContainer, children: [
2469
+ /* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: xe(e) }),
2470
+ /* @__PURE__ */ s.jsx("p", { className: Fe.remainingSeparator }),
2471
+ /* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: xe(t) })
2386
2472
  ] });
2387
2473
  }
2388
- function ei({ callback: e }) {
2474
+ function ci({ callback: e }) {
2389
2475
  const t = f((n) => n.eventEmitter);
2390
- return N(() => {
2476
+ return F(() => {
2391
2477
  const n = (o) => e("timeUpdate", o);
2392
2478
  return t.on("timeUpdate", n), () => {
2393
2479
  t.off("timeUpdate", n);
2394
2480
  };
2395
- }, [e, t]), /* @__PURE__ */ a.jsx(Bt, { callback: e });
2481
+ }, [e, t]), /* @__PURE__ */ s.jsx(zt, { callback: e });
2396
2482
  }
2397
- function ti() {
2398
- 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), c = f((i) => i.seek), u = B(
2483
+ function ui() {
2484
+ const e = f((i) => i.currentTime), t = f((i) => i.duration), n = f((i) => i.isPlaying), o = f((i) => i.pause), a = f((i) => i.play), l = f((i) => i.seek), u = z(
2399
2485
  (i) => {
2400
- let l = !1;
2486
+ let c = !1;
2401
2487
  if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
2402
2488
  switch (i.code) {
2403
2489
  case "ArrowLeft":
2404
- c(e - 10 >= 0 ? e - 10 : 0), l = !0;
2490
+ l(e - 10 >= 0 ? e - 10 : 0), c = !0;
2405
2491
  break;
2406
2492
  case "ArrowRight":
2407
- c(e + 10 < t ? e + 10 : t), l = !0;
2493
+ l(e + 10 < t ? e + 10 : t), c = !0;
2408
2494
  break;
2409
2495
  case "Space":
2410
- n ? o() : s(), l = !0;
2496
+ n ? o() : a(), c = !0;
2411
2497
  break;
2412
2498
  }
2413
- l && i.preventDefault();
2499
+ c && i.preventDefault();
2414
2500
  }
2415
2501
  },
2416
- [e, t, n, o, s, c]
2502
+ [e, t, n, o, a, l]
2417
2503
  );
2418
- return N(() => (document.addEventListener("keydown", u), () => {
2504
+ return F(() => (document.addEventListener("keydown", u), () => {
2419
2505
  document.removeEventListener("keydown", u);
2420
- }), [u]), /* @__PURE__ */ a.jsx(Wt, {});
2506
+ }), [u]), /* @__PURE__ */ s.jsx(Zt, {});
2421
2507
  }
2422
- function ci(e) {
2423
- return /* @__PURE__ */ a.jsx(Zt, { children: /* @__PURE__ */ a.jsx(ni, P({}, e)) });
2508
+ function gi(e) {
2509
+ return /* @__PURE__ */ s.jsx(Kt, { children: /* @__PURE__ */ s.jsx(di, L({}, e)) });
2424
2510
  }
2425
- function ni({ url: e, messages: t, onEvent: n, startTime: o }) {
2426
- const s = f((u) => u.setStartTime), c = f((u) => u.containerRef);
2427
- return N(() => {
2428
- o && s(o);
2429
- }, [o, s]), /* @__PURE__ */ a.jsxs(
2511
+ function di({ url: e, messages: t, onEvent: n, startTime: o }) {
2512
+ const a = f((u) => u.setStartTime), l = f((u) => u.containerRef);
2513
+ return F(() => {
2514
+ o && a(o);
2515
+ }, [o, a]), /* @__PURE__ */ s.jsxs(
2430
2516
  "div",
2431
2517
  {
2432
- ref: c,
2433
- className: K.playerContainer,
2518
+ ref: l,
2519
+ className: B.playerContainer,
2434
2520
  children: [
2435
- /* @__PURE__ */ a.jsx(Kt, { url: e, isLive: !1, messages: t }),
2436
- /* @__PURE__ */ a.jsx(Jt, {}),
2437
- /* @__PURE__ */ a.jsx(tn, {}),
2438
- /* @__PURE__ */ a.jsxs(en, { children: [
2439
- /* @__PURE__ */ a.jsx(Zo, {}),
2440
- /* @__PURE__ */ a.jsx("div", { className: K.controlsBottom, children: /* @__PURE__ */ a.jsxs("div", { className: K.controlsContainer, children: [
2441
- /* @__PURE__ */ a.jsx(Yo, {}),
2442
- /* @__PURE__ */ a.jsxs("div", { className: K.controlsRow, children: [
2443
- /* @__PURE__ */ a.jsxs(
2521
+ /* @__PURE__ */ s.jsx(Yt, { url: e, isLive: !1, messages: t }),
2522
+ /* @__PURE__ */ s.jsx(Qt, {}),
2523
+ /* @__PURE__ */ s.jsx(nn, {}),
2524
+ /* @__PURE__ */ s.jsxs(tn, { children: [
2525
+ /* @__PURE__ */ s.jsx(ni, {}),
2526
+ /* @__PURE__ */ s.jsx("div", { className: B.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: B.controlsContainer, children: [
2527
+ /* @__PURE__ */ s.jsx(oi, {}),
2528
+ /* @__PURE__ */ s.jsxs("div", { className: B.controlsRow, children: [
2529
+ /* @__PURE__ */ s.jsxs(
2444
2530
  "div",
2445
2531
  {
2446
- className: `${K.controlsSection} ${K.controlsSectionStart}`,
2532
+ className: `${B.controlsSection} ${B.controlsSectionStart}`,
2447
2533
  children: [
2448
- /* @__PURE__ */ a.jsx(Ko, {}),
2449
- /* @__PURE__ */ a.jsx(sn, {}),
2450
- /* @__PURE__ */ a.jsx(Qo, {})
2534
+ /* @__PURE__ */ s.jsx(ri, {}),
2535
+ /* @__PURE__ */ s.jsx(an, {}),
2536
+ /* @__PURE__ */ s.jsx(li, {})
2451
2537
  ]
2452
2538
  }
2453
2539
  ),
2454
- /* @__PURE__ */ a.jsxs(
2540
+ /* @__PURE__ */ s.jsxs(
2455
2541
  "div",
2456
2542
  {
2457
- className: `${K.controlsSection} ${K.controlsSectionEnd}`,
2543
+ className: `${B.controlsSection} ${B.controlsSectionEnd}`,
2458
2544
  children: [
2459
- /* @__PURE__ */ a.jsx(on, {}),
2460
- /* @__PURE__ */ a.jsx(Qt, {})
2545
+ /* @__PURE__ */ s.jsx(sn, {}),
2546
+ /* @__PURE__ */ s.jsx(en, {})
2461
2547
  ]
2462
2548
  }
2463
2549
  )
2464
2550
  ] })
2465
2551
  ] }) })
2466
2552
  ] }),
2467
- /* @__PURE__ */ a.jsx(ti, {}),
2468
- n && /* @__PURE__ */ a.jsx(ei, { callback: n })
2553
+ /* @__PURE__ */ s.jsx(ui, {}),
2554
+ n && /* @__PURE__ */ s.jsx(ci, { callback: n })
2469
2555
  ]
2470
2556
  }
2471
2557
  );
2472
2558
  }
2473
2559
  export {
2474
- li as LivePlayer,
2475
- ci as VodPlayer
2560
+ yi as LivePlayer,
2561
+ gi as VodPlayer
2476
2562
  };
2477
2563
  //# sourceMappingURL=react-video-player.es.js.map