@halibegic/react-video-player 0.0.14 → 0.0.16

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