@banou/media-player 0.4.7 → 0.5.1

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.
package/build/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import * as ce from "react";
2
- import mr, { forwardRef as pr, useContext as Ue, createContext as hr, useState as Z, useEffect as z, useCallback as ot, useRef as Ne, useMemo as pe } from "react";
3
- import { css as Q } from "@emotion/react";
2
+ import mr, { forwardRef as pr, useContext as Se, createContext as hr, useState as Q, useEffect as z, useCallback as ot, useRef as Ie, useMemo as pe } from "react";
3
+ import { css as K } from "@emotion/react";
4
4
  import { createActorContext as vr } from "@xstate/react";
5
- import { fromCallback as Xt, setup as Er, enqueueActions as br, assign as Y, sendTo as q } from "xstate";
5
+ import { fromCallback as Xt, setup as Er, enqueueActions as gr, assign as Y, sendTo as H } from "xstate";
6
6
  import qt from "p-queue";
7
7
  import { makeRemuxer as Ht } from "libav-wasm";
8
- import gr from "jassub";
9
- import { parse as Me, stringify as _t } from "ass-compiler";
10
- import { Settings as yr, ChevronRight as Ke, VolumeX as Sr, Volume1 as xr, Volume2 as Tr, RotateCcw as wr, Play as Rr, Pause as Ar, Minimize as _r, Maximize as Cr } from "react-feather";
8
+ import br from "jassub";
9
+ import { parse as Le, stringify as _t } from "ass-compiler";
10
+ import { Settings as yr, ChevronRight as Ke, VolumeX as xr, Volume1 as Sr, Volume2 as Tr, RotateCcw as wr, Play as Rr, Pause as Ar, Minimize as _r, Maximize as Cr } from "react-feather";
11
11
  import { Tooltip as Pr } from "react-tooltip";
12
- var Je = { exports: {} }, Ce = {};
12
+ var Je = { exports: {} }, Oe = {};
13
13
  /**
14
14
  * @license React
15
15
  * react-jsx-runtime.production.js
@@ -21,27 +21,27 @@ var Je = { exports: {} }, Ce = {};
21
21
  */
22
22
  var Ct;
23
23
  function Or() {
24
- if (Ct) return Ce;
24
+ if (Ct) return Oe;
25
25
  Ct = 1;
26
26
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
27
- function n(r, o, a) {
27
+ function r(n, o, a) {
28
28
  var s = null;
29
29
  if (a !== void 0 && (s = "" + a), o.key !== void 0 && (s = "" + o.key), "key" in o) {
30
30
  a = {};
31
- for (var u in o)
32
- u !== "key" && (a[u] = o[u]);
31
+ for (var c in o)
32
+ c !== "key" && (a[c] = o[c]);
33
33
  } else a = o;
34
34
  return o = a.ref, {
35
35
  $$typeof: e,
36
- type: r,
36
+ type: n,
37
37
  key: s,
38
38
  ref: o !== void 0 ? o : null,
39
39
  props: a
40
40
  };
41
41
  }
42
- return Ce.Fragment = t, Ce.jsx = n, Ce.jsxs = n, Ce;
42
+ return Oe.Fragment = t, Oe.jsx = r, Oe.jsxs = r, Oe;
43
43
  }
44
- var Pe = {};
44
+ var Ne = {};
45
45
  /**
46
46
  * @license React
47
47
  * react-jsx-runtime.development.js
@@ -64,7 +64,7 @@ function Nr() {
64
64
  return "Fragment";
65
65
  case f:
66
66
  return "Portal";
67
- case W:
67
+ case F:
68
68
  return "Profiler";
69
69
  case C:
70
70
  return "StrictMode";
@@ -77,19 +77,19 @@ function Nr() {
77
77
  switch (typeof i.tag == "number" && console.error(
78
78
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
79
79
  ), i.$$typeof) {
80
- case K:
80
+ case B:
81
81
  return (i.displayName || "Context") + ".Provider";
82
- case D:
82
+ case U:
83
83
  return (i._context.displayName || "Context") + ".Consumer";
84
- case F:
85
- var x = i.render;
86
- return i = i.displayName, i || (i = x.displayName || x.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
87
- case Te:
88
- return x = i.displayName || null, x !== null ? x : e(i.type) || "Memo";
89
- case we:
90
- x = i._payload, i = i._init;
84
+ case V:
85
+ var T = i.render;
86
+ return i = i.displayName, i || (i = T.displayName || T.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
87
+ case Re:
88
+ return T = i.displayName || null, T !== null ? T : e(i.type) || "Memo";
89
+ case Ae:
90
+ T = i._payload, i = i._init;
91
91
  try {
92
- return e(i(x));
92
+ return e(i(T));
93
93
  } catch {
94
94
  }
95
95
  }
@@ -98,24 +98,24 @@ function Nr() {
98
98
  function t(i) {
99
99
  return "" + i;
100
100
  }
101
- function n(i) {
101
+ function r(i) {
102
102
  try {
103
103
  t(i);
104
- var x = !1;
104
+ var T = !1;
105
105
  } catch {
106
- x = !0;
106
+ T = !0;
107
107
  }
108
- if (x) {
109
- x = console;
110
- var T = x.error, O = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
111
- return T.call(
112
- x,
108
+ if (T) {
109
+ T = console;
110
+ var w = T.error, N = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
111
+ return w.call(
112
+ T,
113
113
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
114
- O
114
+ N
115
115
  ), t(i);
116
116
  }
117
117
  }
118
- function r() {
118
+ function n() {
119
119
  }
120
120
  function o() {
121
121
  if (fe === 0) {
@@ -123,7 +123,7 @@ function Nr() {
123
123
  var i = {
124
124
  configurable: !0,
125
125
  enumerable: !0,
126
- value: r,
126
+ value: n,
127
127
  writable: !0
128
128
  };
129
129
  Object.defineProperties(console, {
@@ -159,26 +159,26 @@ function Nr() {
159
159
  if (R === void 0)
160
160
  try {
161
161
  throw Error();
162
- } catch (T) {
163
- var x = T.stack.trim().match(/\n( *(at )?)/);
164
- R = x && x[1] || "", he = -1 < T.stack.indexOf(`
165
- at`) ? " (<anonymous>)" : -1 < T.stack.indexOf("@") ? "@unknown:0:0" : "";
162
+ } catch (w) {
163
+ var T = w.stack.trim().match(/\n( *(at )?)/);
164
+ R = T && T[1] || "", ve = -1 < w.stack.indexOf(`
165
+ at`) ? " (<anonymous>)" : -1 < w.stack.indexOf("@") ? "@unknown:0:0" : "";
166
166
  }
167
167
  return `
168
- ` + R + i + he;
168
+ ` + R + i + ve;
169
169
  }
170
- function u(i, x) {
170
+ function c(i, T) {
171
171
  if (!i || le) return "";
172
- var T = ve.get(i);
173
- if (T !== void 0) return T;
174
- le = !0, T = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
175
- var O = null;
176
- O = oe.H, oe.H = null, o();
172
+ var w = Ee.get(i);
173
+ if (w !== void 0) return w;
174
+ le = !0, w = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
175
+ var N = null;
176
+ N = oe.H, oe.H = null, o();
177
177
  try {
178
- var B = {
178
+ var G = {
179
179
  DetermineComponentFrameRoot: function() {
180
180
  try {
181
- if (x) {
181
+ if (T) {
182
182
  var de = function() {
183
183
  throw Error();
184
184
  };
@@ -217,60 +217,60 @@ function Nr() {
217
217
  return [null, null];
218
218
  }
219
219
  };
220
- B.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
221
- var U = Object.getOwnPropertyDescriptor(
222
- B.DetermineComponentFrameRoot,
220
+ G.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
221
+ var D = Object.getOwnPropertyDescriptor(
222
+ G.DetermineComponentFrameRoot,
223
223
  "name"
224
224
  );
225
- U && U.configurable && Object.defineProperty(
226
- B.DetermineComponentFrameRoot,
225
+ D && D.configurable && Object.defineProperty(
226
+ G.DetermineComponentFrameRoot,
227
227
  "name",
228
228
  { value: "DetermineComponentFrameRoot" }
229
229
  );
230
- var P = B.DetermineComponentFrameRoot(), ae = P[0], Ee = P[1];
231
- if (ae && Ee) {
232
- var X = ae.split(`
233
- `), me = Ee.split(`
230
+ var P = G.DetermineComponentFrameRoot(), ae = P[0], ge = P[1];
231
+ if (ae && ge) {
232
+ var q = ae.split(`
233
+ `), me = ge.split(`
234
234
  `);
235
- for (P = U = 0; U < X.length && !X[U].includes(
235
+ for (P = D = 0; D < q.length && !q[D].includes(
236
236
  "DetermineComponentFrameRoot"
237
237
  ); )
238
- U++;
238
+ D++;
239
239
  for (; P < me.length && !me[P].includes(
240
240
  "DetermineComponentFrameRoot"
241
241
  ); )
242
242
  P++;
243
- if (U === X.length || P === me.length)
244
- for (U = X.length - 1, P = me.length - 1; 1 <= U && 0 <= P && X[U] !== me[P]; )
243
+ if (D === q.length || P === me.length)
244
+ for (D = q.length - 1, P = me.length - 1; 1 <= D && 0 <= P && q[D] !== me[P]; )
245
245
  P--;
246
- for (; 1 <= U && 0 <= P; U--, P--)
247
- if (X[U] !== me[P]) {
248
- if (U !== 1 || P !== 1)
246
+ for (; 1 <= D && 0 <= P; D--, P--)
247
+ if (q[D] !== me[P]) {
248
+ if (D !== 1 || P !== 1)
249
249
  do
250
- if (U--, P--, 0 > P || X[U] !== me[P]) {
251
- var _e = `
252
- ` + X[U].replace(
250
+ if (D--, P--, 0 > P || q[D] !== me[P]) {
251
+ var Pe = `
252
+ ` + q[D].replace(
253
253
  " at new ",
254
254
  " at "
255
255
  );
256
- return i.displayName && _e.includes("<anonymous>") && (_e = _e.replace("<anonymous>", i.displayName)), typeof i == "function" && ve.set(i, _e), _e;
256
+ return i.displayName && Pe.includes("<anonymous>") && (Pe = Pe.replace("<anonymous>", i.displayName)), typeof i == "function" && Ee.set(i, Pe), Pe;
257
257
  }
258
- while (1 <= U && 0 <= P);
258
+ while (1 <= D && 0 <= P);
259
259
  break;
260
260
  }
261
261
  }
262
262
  } finally {
263
- le = !1, oe.H = O, a(), Error.prepareStackTrace = T;
263
+ le = !1, oe.H = N, a(), Error.prepareStackTrace = w;
264
264
  }
265
- return X = (X = i ? i.displayName || i.name : "") ? s(X) : "", typeof i == "function" && ve.set(i, X), X;
265
+ return q = (q = i ? i.displayName || i.name : "") ? s(q) : "", typeof i == "function" && Ee.set(i, q), q;
266
266
  }
267
- function l(i) {
267
+ function d(i) {
268
268
  if (i == null) return "";
269
269
  if (typeof i == "function") {
270
- var x = i.prototype;
271
- return u(
270
+ var T = i.prototype;
271
+ return c(
272
272
  i,
273
- !(!x || !x.isReactComponent)
273
+ !(!T || !T.isReactComponent)
274
274
  );
275
275
  }
276
276
  if (typeof i == "string") return s(i);
@@ -282,58 +282,58 @@ function Nr() {
282
282
  }
283
283
  if (typeof i == "object")
284
284
  switch (i.$$typeof) {
285
- case F:
286
- return i = u(i.render, !1), i;
287
- case Te:
288
- return l(i.type);
289
- case we:
290
- x = i._payload, i = i._init;
285
+ case V:
286
+ return i = c(i.render, !1), i;
287
+ case Re:
288
+ return d(i.type);
289
+ case Ae:
290
+ T = i._payload, i = i._init;
291
291
  try {
292
- return l(i(x));
292
+ return d(i(T));
293
293
  } catch {
294
294
  }
295
295
  }
296
296
  return "";
297
297
  }
298
- function E() {
298
+ function p() {
299
299
  var i = oe.A;
300
300
  return i === null ? null : i.getOwner();
301
301
  }
302
- function d(i) {
303
- if (Re.call(i, "key")) {
304
- var x = Object.getOwnPropertyDescriptor(i, "key").get;
305
- if (x && x.isReactWarning) return !1;
302
+ function m(i) {
303
+ if (_e.call(i, "key")) {
304
+ var T = Object.getOwnPropertyDescriptor(i, "key").get;
305
+ if (T && T.isReactWarning) return !1;
306
306
  }
307
307
  return i.key !== void 0;
308
308
  }
309
- function g(i, x) {
310
- function T() {
309
+ function g(i, T) {
310
+ function w() {
311
311
  Tt || (Tt = !0, console.error(
312
312
  "%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://react.dev/link/special-props)",
313
- x
313
+ T
314
314
  ));
315
315
  }
316
- T.isReactWarning = !0, Object.defineProperty(i, "key", {
317
- get: T,
316
+ w.isReactWarning = !0, Object.defineProperty(i, "key", {
317
+ get: w,
318
318
  configurable: !0
319
319
  });
320
320
  }
321
- function S() {
321
+ function b() {
322
322
  var i = e(this.type);
323
323
  return wt[i] || (wt[i] = !0, console.error(
324
324
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
325
325
  )), i = this.props.ref, i !== void 0 ? i : null;
326
326
  }
327
- function y(i, x, T, O, B, U) {
328
- return T = U.ref, i = {
327
+ function x(i, T, w, N, G, D) {
328
+ return w = D.ref, i = {
329
329
  $$typeof: A,
330
330
  type: i,
331
- key: x,
332
- props: U,
333
- _owner: B
334
- }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(i, "ref", {
331
+ key: T,
332
+ props: D,
333
+ _owner: G
334
+ }, (w !== void 0 ? w : null) !== null ? Object.defineProperty(i, "ref", {
335
335
  enumerable: !1,
336
- get: S
336
+ get: b
337
337
  }) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
338
338
  configurable: !1,
339
339
  enumerable: !1,
@@ -346,153 +346,153 @@ function Nr() {
346
346
  value: null
347
347
  }), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
348
348
  }
349
- function p(i, x, T, O, B, U) {
350
- if (typeof i == "string" || typeof i == "function" || i === _ || i === W || i === C || i === ee || i === ue || i === dt || typeof i == "object" && i !== null && (i.$$typeof === we || i.$$typeof === Te || i.$$typeof === K || i.$$typeof === D || i.$$typeof === F || i.$$typeof === ft || i.getModuleId !== void 0)) {
351
- var P = x.children;
349
+ function h(i, T, w, N, G, D) {
350
+ if (typeof i == "string" || typeof i == "function" || i === _ || i === F || i === C || i === ee || i === ue || i === dt || typeof i == "object" && i !== null && (i.$$typeof === Ae || i.$$typeof === Re || i.$$typeof === B || i.$$typeof === U || i.$$typeof === V || i.$$typeof === ft || i.getModuleId !== void 0)) {
351
+ var P = T.children;
352
352
  if (P !== void 0)
353
- if (O)
354
- if (Ae(P)) {
355
- for (O = 0; O < P.length; O++)
356
- m(P[O], i);
353
+ if (N)
354
+ if (Ce(P)) {
355
+ for (N = 0; N < P.length; N++)
356
+ y(P[N], i);
357
357
  Object.freeze && Object.freeze(P);
358
358
  } else
359
359
  console.error(
360
360
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
361
361
  );
362
- else m(P, i);
362
+ else y(P, i);
363
363
  } else
364
- P = "", (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), i === null ? O = "null" : Ae(i) ? O = "array" : i !== void 0 && i.$$typeof === A ? (O = "<" + (e(i.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : O = typeof i, console.error(
364
+ P = "", (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), i === null ? N = "null" : Ce(i) ? N = "array" : i !== void 0 && i.$$typeof === A ? (N = "<" + (e(i.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : N = typeof i, console.error(
365
365
  "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
366
- O,
366
+ N,
367
367
  P
368
368
  );
369
- if (Re.call(x, "key")) {
369
+ if (_e.call(T, "key")) {
370
370
  P = e(i);
371
- var ae = Object.keys(x).filter(function(X) {
372
- return X !== "key";
371
+ var ae = Object.keys(T).filter(function(q) {
372
+ return q !== "key";
373
373
  });
374
- O = 0 < ae.length ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}", Rt[P + O] || (ae = 0 < ae.length ? "{" + ae.join(": ..., ") + ": ...}" : "{}", console.error(
374
+ N = 0 < ae.length ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}", Rt[P + N] || (ae = 0 < ae.length ? "{" + ae.join(": ..., ") + ": ...}" : "{}", console.error(
375
375
  `A props object containing a "key" prop is being spread into JSX:
376
376
  let props = %s;
377
377
  <%s {...props} />
378
378
  React keys must be passed directly to JSX without using spread:
379
379
  let props = %s;
380
380
  <%s key={someKey} {...props} />`,
381
- O,
381
+ N,
382
382
  P,
383
383
  ae,
384
384
  P
385
- ), Rt[P + O] = !0);
385
+ ), Rt[P + N] = !0);
386
386
  }
387
- if (P = null, T !== void 0 && (n(T), P = "" + T), d(x) && (n(x.key), P = "" + x.key), "key" in x) {
388
- T = {};
389
- for (var Ee in x)
390
- Ee !== "key" && (T[Ee] = x[Ee]);
391
- } else T = x;
387
+ if (P = null, w !== void 0 && (r(w), P = "" + w), m(T) && (r(T.key), P = "" + T.key), "key" in T) {
388
+ w = {};
389
+ for (var ge in T)
390
+ ge !== "key" && (w[ge] = T[ge]);
391
+ } else w = T;
392
392
  return P && g(
393
- T,
393
+ w,
394
394
  typeof i == "function" ? i.displayName || i.name || "Unknown" : i
395
- ), y(i, P, U, B, E(), T);
395
+ ), x(i, P, D, G, p(), w);
396
396
  }
397
- function m(i, x) {
397
+ function y(i, T) {
398
398
  if (typeof i == "object" && i && i.$$typeof !== fr) {
399
- if (Ae(i))
400
- for (var T = 0; T < i.length; T++) {
401
- var O = i[T];
402
- c(O) && v(O, x);
399
+ if (Ce(i))
400
+ for (var w = 0; w < i.length; w++) {
401
+ var N = i[w];
402
+ u(N) && l(N, T);
403
403
  }
404
- else if (c(i))
404
+ else if (u(i))
405
405
  i._store && (i._store.validated = 1);
406
- else if (i === null || typeof i != "object" ? T = null : (T = Ye && i[Ye] || i["@@iterator"], T = typeof T == "function" ? T : null), typeof T == "function" && T !== i.entries && (T = T.call(i), T !== i))
407
- for (; !(i = T.next()).done; )
408
- c(i.value) && v(i.value, x);
406
+ else if (i === null || typeof i != "object" ? w = null : (w = Ye && i[Ye] || i["@@iterator"], w = typeof w == "function" ? w : null), typeof w == "function" && w !== i.entries && (w = w.call(i), w !== i))
407
+ for (; !(i = w.next()).done; )
408
+ u(i.value) && l(i.value, T);
409
409
  }
410
410
  }
411
- function c(i) {
411
+ function u(i) {
412
412
  return typeof i == "object" && i !== null && i.$$typeof === A;
413
413
  }
414
- function v(i, x) {
415
- if (i._store && !i._store.validated && i.key == null && (i._store.validated = 1, x = b(x), !At[x])) {
416
- At[x] = !0;
417
- var T = "";
418
- i && i._owner != null && i._owner !== E() && (T = null, typeof i._owner.tag == "number" ? T = e(i._owner.type) : typeof i._owner.name == "string" && (T = i._owner.name), T = " It was passed a child from " + T + ".");
419
- var O = oe.getCurrentStack;
414
+ function l(i, T) {
415
+ if (i._store && !i._store.validated && i.key == null && (i._store.validated = 1, T = v(T), !At[T])) {
416
+ At[T] = !0;
417
+ var w = "";
418
+ i && i._owner != null && i._owner !== p() && (w = null, typeof i._owner.tag == "number" ? w = e(i._owner.type) : typeof i._owner.name == "string" && (w = i._owner.name), w = " It was passed a child from " + w + ".");
419
+ var N = oe.getCurrentStack;
420
420
  oe.getCurrentStack = function() {
421
- var B = l(i.type);
422
- return O && (B += O() || ""), B;
421
+ var G = d(i.type);
422
+ return N && (G += N() || ""), G;
423
423
  }, console.error(
424
424
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
425
- x,
426
- T
427
- ), oe.getCurrentStack = O;
425
+ T,
426
+ w
427
+ ), oe.getCurrentStack = N;
428
428
  }
429
429
  }
430
- function b(i) {
431
- var x = "", T = E();
432
- return T && (T = e(T.type)) && (x = `
430
+ function v(i) {
431
+ var T = "", w = p();
432
+ return w && (w = e(w.type)) && (T = `
433
433
 
434
- Check the render method of \`` + T + "`."), x || (i = e(i)) && (x = `
434
+ Check the render method of \`` + w + "`."), T || (i = e(i)) && (T = `
435
435
 
436
- Check the top-level render call using <` + i + ">."), x;
436
+ Check the top-level render call using <` + i + ">."), T;
437
437
  }
438
- var w = mr, A = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), D = Symbol.for("react.consumer"), K = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), ee = Symbol.for("react.suspense"), ue = Symbol.for("react.suspense_list"), Te = Symbol.for("react.memo"), we = Symbol.for("react.lazy"), dt = Symbol.for("react.offscreen"), Ye = Symbol.iterator, ze = Symbol.for("react.client.reference"), oe = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Re = Object.prototype.hasOwnProperty, ie = Object.assign, ft = Symbol.for("react.client.reference"), Ae = Array.isArray, fe = 0, Fe, Ve, We, Be, Ge, Xe, qe;
439
- r.__reactDisabledLog = !0;
440
- var R, he, le = !1, ve = new (typeof WeakMap == "function" ? WeakMap : Map)(), fr = Symbol.for("react.client.reference"), Tt, wt = {}, Rt = {}, At = {};
441
- Pe.Fragment = _, Pe.jsx = function(i, x, T, O, B) {
442
- return p(i, x, T, !1, O, B);
443
- }, Pe.jsxs = function(i, x, T, O, B) {
444
- return p(i, x, T, !0, O, B);
438
+ var S = mr, A = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), U = Symbol.for("react.consumer"), B = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), ee = Symbol.for("react.suspense"), ue = Symbol.for("react.suspense_list"), Re = Symbol.for("react.memo"), Ae = Symbol.for("react.lazy"), dt = Symbol.for("react.offscreen"), Ye = Symbol.iterator, ze = Symbol.for("react.client.reference"), oe = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, _e = Object.prototype.hasOwnProperty, ie = Object.assign, ft = Symbol.for("react.client.reference"), Ce = Array.isArray, fe = 0, Fe, Ve, We, Be, Ge, Xe, qe;
439
+ n.__reactDisabledLog = !0;
440
+ var R, ve, le = !1, Ee = new (typeof WeakMap == "function" ? WeakMap : Map)(), fr = Symbol.for("react.client.reference"), Tt, wt = {}, Rt = {}, At = {};
441
+ Ne.Fragment = _, Ne.jsx = function(i, T, w, N, G) {
442
+ return h(i, T, w, !1, N, G);
443
+ }, Ne.jsxs = function(i, T, w, N, G) {
444
+ return h(i, T, w, !0, N, G);
445
445
  };
446
- }()), Pe;
446
+ }()), Ne;
447
447
  }
448
448
  var Ot;
449
449
  function Mr() {
450
450
  return Ot || (Ot = 1, process.env.NODE_ENV === "production" ? Je.exports = Or() : Je.exports = Nr()), Je.exports;
451
451
  }
452
- var Le = Mr();
453
- function Lr(e) {
452
+ var ke = Mr();
453
+ function Ir(e) {
454
454
  if (e.sheet)
455
455
  return e.sheet;
456
456
  for (var t = 0; t < document.styleSheets.length; t++)
457
457
  if (document.styleSheets[t].ownerNode === e)
458
458
  return document.styleSheets[t];
459
459
  }
460
- function kr(e) {
460
+ function Lr(e) {
461
461
  var t = document.createElement("style");
462
462
  return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
463
463
  }
464
- var $r = /* @__PURE__ */ function() {
465
- function e(n) {
466
- var r = this;
464
+ var kr = /* @__PURE__ */ function() {
465
+ function e(r) {
466
+ var n = this;
467
467
  this._insertTag = function(o) {
468
468
  var a;
469
- r.tags.length === 0 ? r.insertionPoint ? a = r.insertionPoint.nextSibling : r.prepend ? a = r.container.firstChild : a = r.before : a = r.tags[r.tags.length - 1].nextSibling, r.container.insertBefore(o, a), r.tags.push(o);
470
- }, this.isSpeedy = n.speedy === void 0 ? !0 : n.speedy, this.tags = [], this.ctr = 0, this.nonce = n.nonce, this.key = n.key, this.container = n.container, this.prepend = n.prepend, this.insertionPoint = n.insertionPoint, this.before = null;
469
+ n.tags.length === 0 ? n.insertionPoint ? a = n.insertionPoint.nextSibling : n.prepend ? a = n.container.firstChild : a = n.before : a = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(o, a), n.tags.push(o);
470
+ }, this.isSpeedy = r.speedy === void 0 ? !0 : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.prepend = r.prepend, this.insertionPoint = r.insertionPoint, this.before = null;
471
471
  }
472
472
  var t = e.prototype;
473
- return t.hydrate = function(r) {
474
- r.forEach(this._insertTag);
475
- }, t.insert = function(r) {
476
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(kr(this));
473
+ return t.hydrate = function(n) {
474
+ n.forEach(this._insertTag);
475
+ }, t.insert = function(n) {
476
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Lr(this));
477
477
  var o = this.tags[this.tags.length - 1];
478
478
  if (this.isSpeedy) {
479
- var a = Lr(o);
479
+ var a = Ir(o);
480
480
  try {
481
- a.insertRule(r, a.cssRules.length);
481
+ a.insertRule(n, a.cssRules.length);
482
482
  } catch {
483
483
  }
484
484
  } else
485
- o.appendChild(document.createTextNode(r));
485
+ o.appendChild(document.createTextNode(n));
486
486
  this.ctr++;
487
487
  }, t.flush = function() {
488
- this.tags.forEach(function(r) {
488
+ this.tags.forEach(function(n) {
489
489
  var o;
490
- return (o = r.parentNode) == null ? void 0 : o.removeChild(r);
490
+ return (o = n.parentNode) == null ? void 0 : o.removeChild(n);
491
491
  }), this.tags = [], this.ctr = 0;
492
492
  }, e;
493
- }(), G = "-ms-", it = "-moz-", N = "-webkit-", Kt = "comm", gt = "rule", yt = "decl", Ir = "@import", Jt = "@keyframes", Ur = "@layer", Dr = Math.abs, at = String.fromCharCode, jr = Object.assign;
493
+ }(), X = "-ms-", it = "-moz-", M = "-webkit-", Kt = "comm", bt = "rule", yt = "decl", $r = "@import", Jt = "@keyframes", Ur = "@layer", Dr = Math.abs, at = String.fromCharCode, jr = Object.assign;
494
494
  function Yr(e, t) {
495
- return V(e, 0) ^ 45 ? (((t << 2 ^ V(e, 0)) << 2 ^ V(e, 1)) << 2 ^ V(e, 2)) << 2 ^ V(e, 3) : 0;
495
+ return W(e, 0) ^ 45 ? (((t << 2 ^ W(e, 0)) << 2 ^ W(e, 1)) << 2 ^ W(e, 2)) << 2 ^ W(e, 3) : 0;
496
496
  }
497
497
  function Zt(e) {
498
498
  return e.trim();
@@ -500,22 +500,22 @@ function Zt(e) {
500
500
  function zr(e, t) {
501
501
  return (e = t.exec(e)) ? e[0] : e;
502
502
  }
503
- function M(e, t, n) {
504
- return e.replace(t, n);
503
+ function I(e, t, r) {
504
+ return e.replace(t, r);
505
505
  }
506
506
  function ht(e, t) {
507
507
  return e.indexOf(t);
508
508
  }
509
- function V(e, t) {
509
+ function W(e, t) {
510
510
  return e.charCodeAt(t) | 0;
511
511
  }
512
- function ke(e, t, n) {
513
- return e.slice(t, n);
512
+ function $e(e, t, r) {
513
+ return e.slice(t, r);
514
514
  }
515
515
  function te(e) {
516
516
  return e.length;
517
517
  }
518
- function St(e) {
518
+ function xt(e) {
519
519
  return e.length;
520
520
  }
521
521
  function Ze(e, t) {
@@ -524,32 +524,32 @@ function Ze(e, t) {
524
524
  function Fr(e, t) {
525
525
  return e.map(t).join("");
526
526
  }
527
- var st = 1, ye = 1, Qt = 0, H = 0, j = 0, xe = "";
528
- function ct(e, t, n, r, o, a, s) {
529
- return { value: e, root: t, parent: n, type: r, props: o, children: a, line: st, column: ye, length: s, return: "" };
527
+ var st = 1, xe = 1, Qt = 0, J = 0, j = 0, Te = "";
528
+ function ct(e, t, r, n, o, a, s) {
529
+ return { value: e, root: t, parent: r, type: n, props: o, children: a, line: st, column: xe, length: s, return: "" };
530
530
  }
531
- function Oe(e, t) {
531
+ function Me(e, t) {
532
532
  return jr(ct("", null, null, "", null, null, 0), e, { length: -e.length }, t);
533
533
  }
534
534
  function Vr() {
535
535
  return j;
536
536
  }
537
537
  function Wr() {
538
- return j = H > 0 ? V(xe, --H) : 0, ye--, j === 10 && (ye = 1, st--), j;
538
+ return j = J > 0 ? W(Te, --J) : 0, xe--, j === 10 && (xe = 1, st--), j;
539
539
  }
540
- function J() {
541
- return j = H < Qt ? V(xe, H++) : 0, ye++, j === 10 && (ye = 1, st++), j;
540
+ function Z() {
541
+ return j = J < Qt ? W(Te, J++) : 0, xe++, j === 10 && (xe = 1, st++), j;
542
542
  }
543
543
  function ne() {
544
- return V(xe, H);
544
+ return W(Te, J);
545
545
  }
546
546
  function et() {
547
- return H;
547
+ return J;
548
548
  }
549
- function De(e, t) {
550
- return ke(xe, e, t);
549
+ function je(e, t) {
550
+ return $e(Te, e, t);
551
551
  }
552
- function $e(e) {
552
+ function Ue(e) {
553
553
  switch (e) {
554
554
  // \0 \t \n \r \s whitespace token
555
555
  case 0:
@@ -588,30 +588,30 @@ function $e(e) {
588
588
  return 0;
589
589
  }
590
590
  function er(e) {
591
- return st = ye = 1, Qt = te(xe = e), H = 0, [];
591
+ return st = xe = 1, Qt = te(Te = e), J = 0, [];
592
592
  }
593
593
  function tr(e) {
594
- return xe = "", e;
594
+ return Te = "", e;
595
595
  }
596
596
  function tt(e) {
597
- return Zt(De(H - 1, vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
597
+ return Zt(je(J - 1, vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
598
598
  }
599
599
  function Br(e) {
600
600
  for (; (j = ne()) && j < 33; )
601
- J();
602
- return $e(e) > 2 || $e(j) > 3 ? "" : " ";
601
+ Z();
602
+ return Ue(e) > 2 || Ue(j) > 3 ? "" : " ";
603
603
  }
604
604
  function Gr(e, t) {
605
- for (; --t && J() && !(j < 48 || j > 102 || j > 57 && j < 65 || j > 70 && j < 97); )
605
+ for (; --t && Z() && !(j < 48 || j > 102 || j > 57 && j < 65 || j > 70 && j < 97); )
606
606
  ;
607
- return De(e, et() + (t < 6 && ne() == 32 && J() == 32));
607
+ return je(e, et() + (t < 6 && ne() == 32 && Z() == 32));
608
608
  }
609
609
  function vt(e) {
610
- for (; J(); )
610
+ for (; Z(); )
611
611
  switch (j) {
612
612
  // ] ) " '
613
613
  case e:
614
- return H;
614
+ return J;
615
615
  // " '
616
616
  case 34:
617
617
  case 39:
@@ -623,46 +623,46 @@ function vt(e) {
623
623
  break;
624
624
  // \
625
625
  case 92:
626
- J();
626
+ Z();
627
627
  break;
628
628
  }
629
- return H;
629
+ return J;
630
630
  }
631
631
  function Xr(e, t) {
632
- for (; J() && e + j !== 57; )
632
+ for (; Z() && e + j !== 57; )
633
633
  if (e + j === 84 && ne() === 47)
634
634
  break;
635
- return "/*" + De(t, H - 1) + "*" + at(e === 47 ? e : J());
635
+ return "/*" + je(t, J - 1) + "*" + at(e === 47 ? e : Z());
636
636
  }
637
637
  function qr(e) {
638
- for (; !$e(ne()); )
639
- J();
640
- return De(e, H);
638
+ for (; !Ue(ne()); )
639
+ Z();
640
+ return je(e, J);
641
641
  }
642
642
  function Hr(e) {
643
643
  return tr(rt("", null, null, null, [""], e = er(e), 0, [0], e));
644
644
  }
645
- function rt(e, t, n, r, o, a, s, u, l) {
646
- for (var E = 0, d = 0, g = s, S = 0, y = 0, p = 0, m = 1, c = 1, v = 1, b = 0, w = "", A = o, f = a, _ = r, C = w; c; )
647
- switch (p = b, b = J()) {
645
+ function rt(e, t, r, n, o, a, s, c, d) {
646
+ for (var p = 0, m = 0, g = s, b = 0, x = 0, h = 0, y = 1, u = 1, l = 1, v = 0, S = "", A = o, f = a, _ = n, C = S; u; )
647
+ switch (h = v, v = Z()) {
648
648
  // (
649
649
  case 40:
650
- if (p != 108 && V(C, g - 1) == 58) {
651
- ht(C += M(tt(b), "&", "&\f"), "&\f") != -1 && (v = -1);
650
+ if (h != 108 && W(C, g - 1) == 58) {
651
+ ht(C += I(tt(v), "&", "&\f"), "&\f") != -1 && (l = -1);
652
652
  break;
653
653
  }
654
654
  // " ' [
655
655
  case 34:
656
656
  case 39:
657
657
  case 91:
658
- C += tt(b);
658
+ C += tt(v);
659
659
  break;
660
660
  // \t \n \r \s
661
661
  case 9:
662
662
  case 10:
663
663
  case 13:
664
664
  case 32:
665
- C += Br(p);
665
+ C += Br(h);
666
666
  break;
667
667
  // \
668
668
  case 92:
@@ -673,119 +673,119 @@ function rt(e, t, n, r, o, a, s, u, l) {
673
673
  switch (ne()) {
674
674
  case 42:
675
675
  case 47:
676
- Ze(Kr(Xr(J(), et()), t, n), l);
676
+ Ze(Kr(Xr(Z(), et()), t, r), d);
677
677
  break;
678
678
  default:
679
679
  C += "/";
680
680
  }
681
681
  break;
682
682
  // {
683
- case 123 * m:
684
- u[E++] = te(C) * v;
683
+ case 123 * y:
684
+ c[p++] = te(C) * l;
685
685
  // } ; \0
686
- case 125 * m:
686
+ case 125 * y:
687
687
  case 59:
688
688
  case 0:
689
- switch (b) {
689
+ switch (v) {
690
690
  // \0 }
691
691
  case 0:
692
692
  case 125:
693
- c = 0;
693
+ u = 0;
694
694
  // ;
695
- case 59 + d:
696
- v == -1 && (C = M(C, /\f/g, "")), y > 0 && te(C) - g && Ze(y > 32 ? Mt(C + ";", r, n, g - 1) : Mt(M(C, " ", "") + ";", r, n, g - 2), l);
695
+ case 59 + m:
696
+ l == -1 && (C = I(C, /\f/g, "")), x > 0 && te(C) - g && Ze(x > 32 ? Mt(C + ";", n, r, g - 1) : Mt(I(C, " ", "") + ";", n, r, g - 2), d);
697
697
  break;
698
698
  // @ ;
699
699
  case 59:
700
700
  C += ";";
701
701
  // { rule/at-rule
702
702
  default:
703
- if (Ze(_ = Nt(C, t, n, E, d, o, u, w, A = [], f = [], g), a), b === 123)
704
- if (d === 0)
705
- rt(C, t, _, _, A, a, g, u, f);
703
+ if (Ze(_ = Nt(C, t, r, p, m, o, c, S, A = [], f = [], g), a), v === 123)
704
+ if (m === 0)
705
+ rt(C, t, _, _, A, a, g, c, f);
706
706
  else
707
- switch (S === 99 && V(C, 3) === 110 ? 100 : S) {
707
+ switch (b === 99 && W(C, 3) === 110 ? 100 : b) {
708
708
  // d l m s
709
709
  case 100:
710
710
  case 108:
711
711
  case 109:
712
712
  case 115:
713
- rt(e, _, _, r && Ze(Nt(e, _, _, 0, 0, o, u, w, o, A = [], g), f), o, f, g, u, r ? A : f);
713
+ rt(e, _, _, n && Ze(Nt(e, _, _, 0, 0, o, c, S, o, A = [], g), f), o, f, g, c, n ? A : f);
714
714
  break;
715
715
  default:
716
- rt(C, _, _, _, [""], f, 0, u, f);
716
+ rt(C, _, _, _, [""], f, 0, c, f);
717
717
  }
718
718
  }
719
- E = d = y = 0, m = v = 1, w = C = "", g = s;
719
+ p = m = x = 0, y = l = 1, S = C = "", g = s;
720
720
  break;
721
721
  // :
722
722
  case 58:
723
- g = 1 + te(C), y = p;
723
+ g = 1 + te(C), x = h;
724
724
  default:
725
- if (m < 1) {
726
- if (b == 123)
727
- --m;
728
- else if (b == 125 && m++ == 0 && Wr() == 125)
725
+ if (y < 1) {
726
+ if (v == 123)
727
+ --y;
728
+ else if (v == 125 && y++ == 0 && Wr() == 125)
729
729
  continue;
730
730
  }
731
- switch (C += at(b), b * m) {
731
+ switch (C += at(v), v * y) {
732
732
  // &
733
733
  case 38:
734
- v = d > 0 ? 1 : (C += "\f", -1);
734
+ l = m > 0 ? 1 : (C += "\f", -1);
735
735
  break;
736
736
  // ,
737
737
  case 44:
738
- u[E++] = (te(C) - 1) * v, v = 1;
738
+ c[p++] = (te(C) - 1) * l, l = 1;
739
739
  break;
740
740
  // @
741
741
  case 64:
742
- ne() === 45 && (C += tt(J())), S = ne(), d = g = te(w = C += qr(et())), b++;
742
+ ne() === 45 && (C += tt(Z())), b = ne(), m = g = te(S = C += qr(et())), v++;
743
743
  break;
744
744
  // -
745
745
  case 45:
746
- p === 45 && te(C) == 2 && (m = 0);
746
+ h === 45 && te(C) == 2 && (y = 0);
747
747
  }
748
748
  }
749
749
  return a;
750
750
  }
751
- function Nt(e, t, n, r, o, a, s, u, l, E, d) {
752
- for (var g = o - 1, S = o === 0 ? a : [""], y = St(S), p = 0, m = 0, c = 0; p < r; ++p)
753
- for (var v = 0, b = ke(e, g + 1, g = Dr(m = s[p])), w = e; v < y; ++v)
754
- (w = Zt(m > 0 ? S[v] + " " + b : M(b, /&\f/g, S[v]))) && (l[c++] = w);
755
- return ct(e, t, n, o === 0 ? gt : u, l, E, d);
751
+ function Nt(e, t, r, n, o, a, s, c, d, p, m) {
752
+ for (var g = o - 1, b = o === 0 ? a : [""], x = xt(b), h = 0, y = 0, u = 0; h < n; ++h)
753
+ for (var l = 0, v = $e(e, g + 1, g = Dr(y = s[h])), S = e; l < x; ++l)
754
+ (S = Zt(y > 0 ? b[l] + " " + v : I(v, /&\f/g, b[l]))) && (d[u++] = S);
755
+ return ct(e, t, r, o === 0 ? bt : c, d, p, m);
756
756
  }
757
- function Kr(e, t, n) {
758
- return ct(e, t, n, Kt, at(Vr()), ke(e, 2, -2), 0);
757
+ function Kr(e, t, r) {
758
+ return ct(e, t, r, Kt, at(Vr()), $e(e, 2, -2), 0);
759
759
  }
760
- function Mt(e, t, n, r) {
761
- return ct(e, t, n, yt, ke(e, 0, r), ke(e, r + 1, -1), r);
760
+ function Mt(e, t, r, n) {
761
+ return ct(e, t, r, yt, $e(e, 0, n), $e(e, n + 1, -1), n);
762
762
  }
763
763
  function be(e, t) {
764
- for (var n = "", r = St(e), o = 0; o < r; o++)
765
- n += t(e[o], o, e, t) || "";
766
- return n;
764
+ for (var r = "", n = xt(e), o = 0; o < n; o++)
765
+ r += t(e[o], o, e, t) || "";
766
+ return r;
767
767
  }
768
- function Jr(e, t, n, r) {
768
+ function Jr(e, t, r, n) {
769
769
  switch (e.type) {
770
770
  case Ur:
771
771
  if (e.children.length) break;
772
- case Ir:
772
+ case $r:
773
773
  case yt:
774
774
  return e.return = e.return || e.value;
775
775
  case Kt:
776
776
  return "";
777
777
  case Jt:
778
- return e.return = e.value + "{" + be(e.children, r) + "}";
779
- case gt:
778
+ return e.return = e.value + "{" + be(e.children, n) + "}";
779
+ case bt:
780
780
  e.value = e.props.join(",");
781
781
  }
782
- return te(n = be(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
782
+ return te(r = be(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
783
783
  }
784
784
  function Zr(e) {
785
- var t = St(e);
786
- return function(n, r, o, a) {
787
- for (var s = "", u = 0; u < t; u++)
788
- s += e[u](n, r, o, a) || "";
785
+ var t = xt(e);
786
+ return function(r, n, o, a) {
787
+ for (var s = "", c = 0; c < t; c++)
788
+ s += e[c](r, n, o, a) || "";
789
789
  return s;
790
790
  };
791
791
  }
@@ -796,63 +796,63 @@ function Qr(e) {
796
796
  }
797
797
  function en(e) {
798
798
  var t = /* @__PURE__ */ Object.create(null);
799
- return function(n) {
800
- return t[n] === void 0 && (t[n] = e(n)), t[n];
799
+ return function(r) {
800
+ return t[r] === void 0 && (t[r] = e(r)), t[r];
801
801
  };
802
802
  }
803
- var tn = function(t, n, r) {
804
- for (var o = 0, a = 0; o = a, a = ne(), o === 38 && a === 12 && (n[r] = 1), !$e(a); )
805
- J();
806
- return De(t, H);
807
- }, rn = function(t, n) {
808
- var r = -1, o = 44;
803
+ var tn = function(t, r, n) {
804
+ for (var o = 0, a = 0; o = a, a = ne(), o === 38 && a === 12 && (r[n] = 1), !Ue(a); )
805
+ Z();
806
+ return je(t, J);
807
+ }, rn = function(t, r) {
808
+ var n = -1, o = 44;
809
809
  do
810
- switch ($e(o)) {
810
+ switch (Ue(o)) {
811
811
  case 0:
812
- o === 38 && ne() === 12 && (n[r] = 1), t[r] += tn(H - 1, n, r);
812
+ o === 38 && ne() === 12 && (r[n] = 1), t[n] += tn(J - 1, r, n);
813
813
  break;
814
814
  case 2:
815
- t[r] += tt(o);
815
+ t[n] += tt(o);
816
816
  break;
817
817
  case 4:
818
818
  if (o === 44) {
819
- t[++r] = ne() === 58 ? "&\f" : "", n[r] = t[r].length;
819
+ t[++n] = ne() === 58 ? "&\f" : "", r[n] = t[n].length;
820
820
  break;
821
821
  }
822
822
  // fallthrough
823
823
  default:
824
- t[r] += at(o);
824
+ t[n] += at(o);
825
825
  }
826
- while (o = J());
826
+ while (o = Z());
827
827
  return t;
828
- }, nn = function(t, n) {
829
- return tr(rn(er(t), n));
830
- }, Lt = /* @__PURE__ */ new WeakMap(), on = function(t) {
828
+ }, nn = function(t, r) {
829
+ return tr(rn(er(t), r));
830
+ }, It = /* @__PURE__ */ new WeakMap(), on = function(t) {
831
831
  if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
832
832
  // negative .length indicates that this rule has been already prefixed
833
833
  t.length < 1)) {
834
- for (var n = t.value, r = t.parent, o = t.column === r.column && t.line === r.line; r.type !== "rule"; )
835
- if (r = r.parent, !r) return;
836
- if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !Lt.get(r)) && !o) {
837
- Lt.set(t, !0);
838
- for (var a = [], s = nn(n, a), u = r.props, l = 0, E = 0; l < s.length; l++)
839
- for (var d = 0; d < u.length; d++, E++)
840
- t.props[E] = a[l] ? s[l].replace(/&\f/g, u[d]) : u[d] + " " + s[l];
834
+ for (var r = t.value, n = t.parent, o = t.column === n.column && t.line === n.line; n.type !== "rule"; )
835
+ if (n = n.parent, !n) return;
836
+ if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !It.get(n)) && !o) {
837
+ It.set(t, !0);
838
+ for (var a = [], s = nn(r, a), c = n.props, d = 0, p = 0; d < s.length; d++)
839
+ for (var m = 0; m < c.length; m++, p++)
840
+ t.props[p] = a[d] ? s[d].replace(/&\f/g, c[m]) : c[m] + " " + s[d];
841
841
  }
842
842
  }
843
843
  }, an = function(t) {
844
844
  if (t.type === "decl") {
845
- var n = t.value;
845
+ var r = t.value;
846
846
  // charcode for l
847
- n.charCodeAt(0) === 108 && // charcode for b
848
- n.charCodeAt(2) === 98 && (t.return = "", t.value = "");
847
+ r.charCodeAt(0) === 108 && // charcode for b
848
+ r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
849
849
  }
850
850
  };
851
851
  function rr(e, t) {
852
852
  switch (Yr(e, t)) {
853
853
  // color-adjust
854
854
  case 5103:
855
- return N + "print-" + e + e;
855
+ return M + "print-" + e + e;
856
856
  // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
857
857
  case 5737:
858
858
  case 4201:
@@ -882,58 +882,58 @@ function rr(e, t) {
882
882
  case 5365:
883
883
  case 5621:
884
884
  case 3829:
885
- return N + e + e;
885
+ return M + e + e;
886
886
  // appearance, user-select, transform, hyphens, text-size-adjust
887
887
  case 5349:
888
888
  case 4246:
889
889
  case 4810:
890
890
  case 6968:
891
891
  case 2756:
892
- return N + e + it + e + G + e + e;
892
+ return M + e + it + e + X + e + e;
893
893
  // flex, flex-direction
894
894
  case 6828:
895
895
  case 4268:
896
- return N + e + G + e + e;
896
+ return M + e + X + e + e;
897
897
  // order
898
898
  case 6165:
899
- return N + e + G + "flex-" + e + e;
899
+ return M + e + X + "flex-" + e + e;
900
900
  // align-items
901
901
  case 5187:
902
- return N + e + M(e, /(\w+).+(:[^]+)/, N + "box-$1$2" + G + "flex-$1$2") + e;
902
+ return M + e + I(e, /(\w+).+(:[^]+)/, M + "box-$1$2" + X + "flex-$1$2") + e;
903
903
  // align-self
904
904
  case 5443:
905
- return N + e + G + "flex-item-" + M(e, /flex-|-self/, "") + e;
905
+ return M + e + X + "flex-item-" + I(e, /flex-|-self/, "") + e;
906
906
  // align-content
907
907
  case 4675:
908
- return N + e + G + "flex-line-pack" + M(e, /align-content|flex-|-self/, "") + e;
908
+ return M + e + X + "flex-line-pack" + I(e, /align-content|flex-|-self/, "") + e;
909
909
  // flex-shrink
910
910
  case 5548:
911
- return N + e + G + M(e, "shrink", "negative") + e;
911
+ return M + e + X + I(e, "shrink", "negative") + e;
912
912
  // flex-basis
913
913
  case 5292:
914
- return N + e + G + M(e, "basis", "preferred-size") + e;
914
+ return M + e + X + I(e, "basis", "preferred-size") + e;
915
915
  // flex-grow
916
916
  case 6060:
917
- return N + "box-" + M(e, "-grow", "") + N + e + G + M(e, "grow", "positive") + e;
917
+ return M + "box-" + I(e, "-grow", "") + M + e + X + I(e, "grow", "positive") + e;
918
918
  // transition
919
919
  case 4554:
920
- return N + M(e, /([^-])(transform)/g, "$1" + N + "$2") + e;
920
+ return M + I(e, /([^-])(transform)/g, "$1" + M + "$2") + e;
921
921
  // cursor
922
922
  case 6187:
923
- return M(M(M(e, /(zoom-|grab)/, N + "$1"), /(image-set)/, N + "$1"), e, "") + e;
923
+ return I(I(I(e, /(zoom-|grab)/, M + "$1"), /(image-set)/, M + "$1"), e, "") + e;
924
924
  // background, background-image
925
925
  case 5495:
926
926
  case 3959:
927
- return M(e, /(image-set\([^]*)/, N + "$1$`$1");
927
+ return I(e, /(image-set\([^]*)/, M + "$1$`$1");
928
928
  // justify-content
929
929
  case 4968:
930
- return M(M(e, /(.+:)(flex-)?(.*)/, N + "box-pack:$3" + G + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + N + e + e;
930
+ return I(I(e, /(.+:)(flex-)?(.*)/, M + "box-pack:$3" + X + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + M + e + e;
931
931
  // (margin|padding)-inline-(start|end)
932
932
  case 4095:
933
933
  case 3583:
934
934
  case 4068:
935
935
  case 2532:
936
- return M(e, /(.+)-inline(.+)/, N + "$1$2") + e;
936
+ return I(e, /(.+)-inline(.+)/, M + "$1$2") + e;
937
937
  // (min|max)?(width|height|inline-size|block-size)
938
938
  case 8116:
939
939
  case 7059:
@@ -947,115 +947,115 @@ function rr(e, t) {
947
947
  case 5789:
948
948
  case 5021:
949
949
  case 4765:
950
- if (te(e) - 1 - t > 6) switch (V(e, t + 1)) {
950
+ if (te(e) - 1 - t > 6) switch (W(e, t + 1)) {
951
951
  // (m)ax-content, (m)in-content
952
952
  case 109:
953
- if (V(e, t + 4) !== 45) break;
953
+ if (W(e, t + 4) !== 45) break;
954
954
  // (f)ill-available, (f)it-content
955
955
  case 102:
956
- return M(e, /(.+:)(.+)-([^]+)/, "$1" + N + "$2-$3$1" + it + (V(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
956
+ return I(e, /(.+:)(.+)-([^]+)/, "$1" + M + "$2-$3$1" + it + (W(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
957
957
  // (s)tretch
958
958
  case 115:
959
- return ~ht(e, "stretch") ? rr(M(e, "stretch", "fill-available"), t) + e : e;
959
+ return ~ht(e, "stretch") ? rr(I(e, "stretch", "fill-available"), t) + e : e;
960
960
  }
961
961
  break;
962
962
  // position: sticky
963
963
  case 4949:
964
- if (V(e, t + 1) !== 115) break;
964
+ if (W(e, t + 1) !== 115) break;
965
965
  // display: (flex|inline-flex)
966
966
  case 6444:
967
- switch (V(e, te(e) - 3 - (~ht(e, "!important") && 10))) {
967
+ switch (W(e, te(e) - 3 - (~ht(e, "!important") && 10))) {
968
968
  // stic(k)y
969
969
  case 107:
970
- return M(e, ":", ":" + N) + e;
970
+ return I(e, ":", ":" + M) + e;
971
971
  // (inline-)?fl(e)x
972
972
  case 101:
973
- return M(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + N + (V(e, 14) === 45 ? "inline-" : "") + "box$3$1" + N + "$2$3$1" + G + "$2box$3") + e;
973
+ return I(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + M + (W(e, 14) === 45 ? "inline-" : "") + "box$3$1" + M + "$2$3$1" + X + "$2box$3") + e;
974
974
  }
975
975
  break;
976
976
  // writing-mode
977
977
  case 5936:
978
- switch (V(e, t + 11)) {
978
+ switch (W(e, t + 11)) {
979
979
  // vertical-l(r)
980
980
  case 114:
981
- return N + e + G + M(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
981
+ return M + e + X + I(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
982
982
  // vertical-r(l)
983
983
  case 108:
984
- return N + e + G + M(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
984
+ return M + e + X + I(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
985
985
  // horizontal(-)tb
986
986
  case 45:
987
- return N + e + G + M(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
987
+ return M + e + X + I(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
988
988
  }
989
- return N + e + G + e + e;
989
+ return M + e + X + e + e;
990
990
  }
991
991
  return e;
992
992
  }
993
- var sn = function(t, n, r, o) {
993
+ var sn = function(t, r, n, o) {
994
994
  if (t.length > -1 && !t.return) switch (t.type) {
995
995
  case yt:
996
996
  t.return = rr(t.value, t.length);
997
997
  break;
998
998
  case Jt:
999
- return be([Oe(t, {
1000
- value: M(t.value, "@", "@" + N)
999
+ return be([Me(t, {
1000
+ value: I(t.value, "@", "@" + M)
1001
1001
  })], o);
1002
- case gt:
1002
+ case bt:
1003
1003
  if (t.length) return Fr(t.props, function(a) {
1004
1004
  switch (zr(a, /(::plac\w+|:read-\w+)/)) {
1005
1005
  // :read-(only|write)
1006
1006
  case ":read-only":
1007
1007
  case ":read-write":
1008
- return be([Oe(t, {
1009
- props: [M(a, /:(read-\w+)/, ":" + it + "$1")]
1008
+ return be([Me(t, {
1009
+ props: [I(a, /:(read-\w+)/, ":" + it + "$1")]
1010
1010
  })], o);
1011
1011
  // :placeholder
1012
1012
  case "::placeholder":
1013
- return be([Oe(t, {
1014
- props: [M(a, /:(plac\w+)/, ":" + N + "input-$1")]
1015
- }), Oe(t, {
1016
- props: [M(a, /:(plac\w+)/, ":" + it + "$1")]
1017
- }), Oe(t, {
1018
- props: [M(a, /:(plac\w+)/, G + "input-$1")]
1013
+ return be([Me(t, {
1014
+ props: [I(a, /:(plac\w+)/, ":" + M + "input-$1")]
1015
+ }), Me(t, {
1016
+ props: [I(a, /:(plac\w+)/, ":" + it + "$1")]
1017
+ }), Me(t, {
1018
+ props: [I(a, /:(plac\w+)/, X + "input-$1")]
1019
1019
  })], o);
1020
1020
  }
1021
1021
  return "";
1022
1022
  });
1023
1023
  }
1024
1024
  }, cn = [sn], un = function(t) {
1025
- var n = t.key;
1026
- if (n === "css") {
1027
- var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
1028
- Array.prototype.forEach.call(r, function(m) {
1029
- var c = m.getAttribute("data-emotion");
1030
- c.indexOf(" ") !== -1 && (document.head.appendChild(m), m.setAttribute("data-s", ""));
1025
+ var r = t.key;
1026
+ if (r === "css") {
1027
+ var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
1028
+ Array.prototype.forEach.call(n, function(y) {
1029
+ var u = y.getAttribute("data-emotion");
1030
+ u.indexOf(" ") !== -1 && (document.head.appendChild(y), y.setAttribute("data-s", ""));
1031
1031
  });
1032
1032
  }
1033
- var o = t.stylisPlugins || cn, a = {}, s, u = [];
1033
+ var o = t.stylisPlugins || cn, a = {}, s, c = [];
1034
1034
  s = t.container || document.head, Array.prototype.forEach.call(
1035
1035
  // this means we will ignore elements which don't have a space in them which
1036
1036
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1037
- document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
1038
- function(m) {
1039
- for (var c = m.getAttribute("data-emotion").split(" "), v = 1; v < c.length; v++)
1040
- a[c[v]] = !0;
1041
- u.push(m);
1037
+ document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
1038
+ function(y) {
1039
+ for (var u = y.getAttribute("data-emotion").split(" "), l = 1; l < u.length; l++)
1040
+ a[u[l]] = !0;
1041
+ c.push(y);
1042
1042
  }
1043
1043
  );
1044
- var l, E = [on, an];
1044
+ var d, p = [on, an];
1045
1045
  {
1046
- var d, g = [Jr, Qr(function(m) {
1047
- d.insert(m);
1048
- })], S = Zr(E.concat(o, g)), y = function(c) {
1049
- return be(Hr(c), S);
1046
+ var m, g = [Jr, Qr(function(y) {
1047
+ m.insert(y);
1048
+ })], b = Zr(p.concat(o, g)), x = function(u) {
1049
+ return be(Hr(u), b);
1050
1050
  };
1051
- l = function(c, v, b, w) {
1052
- d = b, y(c ? c + "{" + v.styles + "}" : v.styles), w && (p.inserted[v.name] = !0);
1051
+ d = function(u, l, v, S) {
1052
+ m = v, x(u ? u + "{" + l.styles + "}" : l.styles), S && (h.inserted[l.name] = !0);
1053
1053
  };
1054
1054
  }
1055
- var p = {
1056
- key: n,
1057
- sheet: new $r({
1058
- key: n,
1055
+ var h = {
1056
+ key: r,
1057
+ sheet: new kr({
1058
+ key: r,
1059
1059
  container: s,
1060
1060
  nonce: t.nonce,
1061
1061
  speedy: t.speedy,
@@ -1065,9 +1065,9 @@ var sn = function(t, n, r, o) {
1065
1065
  nonce: t.nonce,
1066
1066
  inserted: a,
1067
1067
  registered: {},
1068
- insert: l
1068
+ insert: d
1069
1069
  };
1070
- return p.sheet.hydrate(u), p;
1070
+ return h.sheet.hydrate(c), h;
1071
1071
  }, Qe = { exports: {} }, L = {};
1072
1072
  /** @license React v16.13.1
1073
1073
  * react-is.production.min.js
@@ -1077,71 +1077,71 @@ var sn = function(t, n, r, o) {
1077
1077
  * This source code is licensed under the MIT license found in the
1078
1078
  * LICENSE file in the root directory of this source tree.
1079
1079
  */
1080
- var kt;
1080
+ var Lt;
1081
1081
  function ln() {
1082
- if (kt) return L;
1083
- kt = 1;
1084
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, E = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, S = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, c = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
1085
- function w(f) {
1082
+ if (Lt) return L;
1083
+ Lt = 1;
1084
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, u = e ? Symbol.for("react.fundamental") : 60117, l = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
1085
+ function S(f) {
1086
1086
  if (typeof f == "object" && f !== null) {
1087
1087
  var _ = f.$$typeof;
1088
1088
  switch (_) {
1089
1089
  case t:
1090
1090
  switch (f = f.type, f) {
1091
- case l:
1092
- case E:
1093
- case r:
1091
+ case d:
1092
+ case p:
1093
+ case n:
1094
1094
  case a:
1095
1095
  case o:
1096
1096
  case g:
1097
1097
  return f;
1098
1098
  default:
1099
1099
  switch (f = f && f.$$typeof, f) {
1100
- case u:
1101
- case d:
1102
- case p:
1103
- case y:
1100
+ case c:
1101
+ case m:
1102
+ case h:
1103
+ case x:
1104
1104
  case s:
1105
1105
  return f;
1106
1106
  default:
1107
1107
  return _;
1108
1108
  }
1109
1109
  }
1110
- case n:
1110
+ case r:
1111
1111
  return _;
1112
1112
  }
1113
1113
  }
1114
1114
  }
1115
1115
  function A(f) {
1116
- return w(f) === E;
1116
+ return S(f) === p;
1117
1117
  }
1118
- return L.AsyncMode = l, L.ConcurrentMode = E, L.ContextConsumer = u, L.ContextProvider = s, L.Element = t, L.ForwardRef = d, L.Fragment = r, L.Lazy = p, L.Memo = y, L.Portal = n, L.Profiler = a, L.StrictMode = o, L.Suspense = g, L.isAsyncMode = function(f) {
1119
- return A(f) || w(f) === l;
1118
+ return L.AsyncMode = d, L.ConcurrentMode = p, L.ContextConsumer = c, L.ContextProvider = s, L.Element = t, L.ForwardRef = m, L.Fragment = n, L.Lazy = h, L.Memo = x, L.Portal = r, L.Profiler = a, L.StrictMode = o, L.Suspense = g, L.isAsyncMode = function(f) {
1119
+ return A(f) || S(f) === d;
1120
1120
  }, L.isConcurrentMode = A, L.isContextConsumer = function(f) {
1121
- return w(f) === u;
1121
+ return S(f) === c;
1122
1122
  }, L.isContextProvider = function(f) {
1123
- return w(f) === s;
1123
+ return S(f) === s;
1124
1124
  }, L.isElement = function(f) {
1125
1125
  return typeof f == "object" && f !== null && f.$$typeof === t;
1126
1126
  }, L.isForwardRef = function(f) {
1127
- return w(f) === d;
1127
+ return S(f) === m;
1128
1128
  }, L.isFragment = function(f) {
1129
- return w(f) === r;
1129
+ return S(f) === n;
1130
1130
  }, L.isLazy = function(f) {
1131
- return w(f) === p;
1131
+ return S(f) === h;
1132
1132
  }, L.isMemo = function(f) {
1133
- return w(f) === y;
1133
+ return S(f) === x;
1134
1134
  }, L.isPortal = function(f) {
1135
- return w(f) === n;
1135
+ return S(f) === r;
1136
1136
  }, L.isProfiler = function(f) {
1137
- return w(f) === a;
1137
+ return S(f) === a;
1138
1138
  }, L.isStrictMode = function(f) {
1139
- return w(f) === o;
1139
+ return S(f) === o;
1140
1140
  }, L.isSuspense = function(f) {
1141
- return w(f) === g;
1141
+ return S(f) === g;
1142
1142
  }, L.isValidElementType = function(f) {
1143
- return typeof f == "string" || typeof f == "function" || f === r || f === E || f === a || f === o || f === g || f === S || typeof f == "object" && f !== null && (f.$$typeof === p || f.$$typeof === y || f.$$typeof === s || f.$$typeof === u || f.$$typeof === d || f.$$typeof === c || f.$$typeof === v || f.$$typeof === b || f.$$typeof === m);
1144
- }, L.typeOf = w, L;
1143
+ return typeof f == "string" || typeof f == "function" || f === n || f === p || f === a || f === o || f === g || f === b || typeof f == "object" && f !== null && (f.$$typeof === h || f.$$typeof === x || f.$$typeof === s || f.$$typeof === c || f.$$typeof === m || f.$$typeof === u || f.$$typeof === l || f.$$typeof === v || f.$$typeof === y);
1144
+ }, L.typeOf = S, L;
1145
1145
  }
1146
1146
  var k = {};
1147
1147
  /** @license React v16.13.1
@@ -1152,76 +1152,76 @@ var k = {};
1152
1152
  * This source code is licensed under the MIT license found in the
1153
1153
  * LICENSE file in the root directory of this source tree.
1154
1154
  */
1155
- var $t;
1155
+ var kt;
1156
1156
  function dn() {
1157
- return $t || ($t = 1, process.env.NODE_ENV !== "production" && function() {
1158
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, E = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, S = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, c = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
1159
- function w(R) {
1157
+ return kt || (kt = 1, process.env.NODE_ENV !== "production" && function() {
1158
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, b = e ? Symbol.for("react.suspense_list") : 60120, x = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, u = e ? Symbol.for("react.fundamental") : 60117, l = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
1159
+ function S(R) {
1160
1160
  return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1161
- R === r || R === E || R === a || R === o || R === g || R === S || typeof R == "object" && R !== null && (R.$$typeof === p || R.$$typeof === y || R.$$typeof === s || R.$$typeof === u || R.$$typeof === d || R.$$typeof === c || R.$$typeof === v || R.$$typeof === b || R.$$typeof === m);
1161
+ R === n || R === p || R === a || R === o || R === g || R === b || typeof R == "object" && R !== null && (R.$$typeof === h || R.$$typeof === x || R.$$typeof === s || R.$$typeof === c || R.$$typeof === m || R.$$typeof === u || R.$$typeof === l || R.$$typeof === v || R.$$typeof === y);
1162
1162
  }
1163
1163
  function A(R) {
1164
1164
  if (typeof R == "object" && R !== null) {
1165
- var he = R.$$typeof;
1166
- switch (he) {
1165
+ var ve = R.$$typeof;
1166
+ switch (ve) {
1167
1167
  case t:
1168
1168
  var le = R.type;
1169
1169
  switch (le) {
1170
- case l:
1171
- case E:
1172
- case r:
1170
+ case d:
1171
+ case p:
1172
+ case n:
1173
1173
  case a:
1174
1174
  case o:
1175
1175
  case g:
1176
1176
  return le;
1177
1177
  default:
1178
- var ve = le && le.$$typeof;
1179
- switch (ve) {
1180
- case u:
1181
- case d:
1182
- case p:
1183
- case y:
1178
+ var Ee = le && le.$$typeof;
1179
+ switch (Ee) {
1180
+ case c:
1181
+ case m:
1182
+ case h:
1183
+ case x:
1184
1184
  case s:
1185
- return ve;
1185
+ return Ee;
1186
1186
  default:
1187
- return he;
1187
+ return ve;
1188
1188
  }
1189
1189
  }
1190
- case n:
1191
- return he;
1190
+ case r:
1191
+ return ve;
1192
1192
  }
1193
1193
  }
1194
1194
  }
1195
- var f = l, _ = E, C = u, W = s, D = t, K = d, F = r, ee = p, ue = y, Te = n, we = a, dt = o, Ye = g, ze = !1;
1195
+ var f = d, _ = p, C = c, F = s, U = t, B = m, V = n, ee = h, ue = x, Re = r, Ae = a, dt = o, Ye = g, ze = !1;
1196
1196
  function oe(R) {
1197
- return ze || (ze = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Re(R) || A(R) === l;
1197
+ return ze || (ze = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _e(R) || A(R) === d;
1198
1198
  }
1199
- function Re(R) {
1200
- return A(R) === E;
1199
+ function _e(R) {
1200
+ return A(R) === p;
1201
1201
  }
1202
1202
  function ie(R) {
1203
- return A(R) === u;
1203
+ return A(R) === c;
1204
1204
  }
1205
1205
  function ft(R) {
1206
1206
  return A(R) === s;
1207
1207
  }
1208
- function Ae(R) {
1208
+ function Ce(R) {
1209
1209
  return typeof R == "object" && R !== null && R.$$typeof === t;
1210
1210
  }
1211
1211
  function fe(R) {
1212
- return A(R) === d;
1212
+ return A(R) === m;
1213
1213
  }
1214
1214
  function Fe(R) {
1215
- return A(R) === r;
1215
+ return A(R) === n;
1216
1216
  }
1217
1217
  function Ve(R) {
1218
- return A(R) === p;
1218
+ return A(R) === h;
1219
1219
  }
1220
1220
  function We(R) {
1221
- return A(R) === y;
1221
+ return A(R) === x;
1222
1222
  }
1223
1223
  function Be(R) {
1224
- return A(R) === n;
1224
+ return A(R) === r;
1225
1225
  }
1226
1226
  function Ge(R) {
1227
1227
  return A(R) === a;
@@ -1232,12 +1232,12 @@ function dn() {
1232
1232
  function qe(R) {
1233
1233
  return A(R) === g;
1234
1234
  }
1235
- k.AsyncMode = f, k.ConcurrentMode = _, k.ContextConsumer = C, k.ContextProvider = W, k.Element = D, k.ForwardRef = K, k.Fragment = F, k.Lazy = ee, k.Memo = ue, k.Portal = Te, k.Profiler = we, k.StrictMode = dt, k.Suspense = Ye, k.isAsyncMode = oe, k.isConcurrentMode = Re, k.isContextConsumer = ie, k.isContextProvider = ft, k.isElement = Ae, k.isForwardRef = fe, k.isFragment = Fe, k.isLazy = Ve, k.isMemo = We, k.isPortal = Be, k.isProfiler = Ge, k.isStrictMode = Xe, k.isSuspense = qe, k.isValidElementType = w, k.typeOf = A;
1235
+ k.AsyncMode = f, k.ConcurrentMode = _, k.ContextConsumer = C, k.ContextProvider = F, k.Element = U, k.ForwardRef = B, k.Fragment = V, k.Lazy = ee, k.Memo = ue, k.Portal = Re, k.Profiler = Ae, k.StrictMode = dt, k.Suspense = Ye, k.isAsyncMode = oe, k.isConcurrentMode = _e, k.isContextConsumer = ie, k.isContextProvider = ft, k.isElement = Ce, k.isForwardRef = fe, k.isFragment = Fe, k.isLazy = Ve, k.isMemo = We, k.isPortal = Be, k.isProfiler = Ge, k.isStrictMode = Xe, k.isSuspense = qe, k.isValidElementType = S, k.typeOf = A;
1236
1236
  }()), k;
1237
1237
  }
1238
- var It;
1238
+ var $t;
1239
1239
  function fn() {
1240
- return It || (It = 1, process.env.NODE_ENV === "production" ? Qe.exports = ln() : Qe.exports = dn()), Qe.exports;
1240
+ return $t || ($t = 1, process.env.NODE_ENV === "production" ? Qe.exports = ln() : Qe.exports = dn()), Qe.exports;
1241
1241
  }
1242
1242
  var mt, Ut;
1243
1243
  function mn() {
@@ -1255,7 +1255,7 @@ function mn() {
1255
1255
  mixins: !0,
1256
1256
  propTypes: !0,
1257
1257
  type: !0
1258
- }, n = {
1258
+ }, r = {
1259
1259
  name: !0,
1260
1260
  length: !0,
1261
1261
  prototype: !0,
@@ -1263,7 +1263,7 @@ function mn() {
1263
1263
  callee: !0,
1264
1264
  arguments: !0,
1265
1265
  arity: !0
1266
- }, r = {
1266
+ }, n = {
1267
1267
  $$typeof: !0,
1268
1268
  render: !0,
1269
1269
  defaultProps: !0,
@@ -1277,84 +1277,84 @@ function mn() {
1277
1277
  propTypes: !0,
1278
1278
  type: !0
1279
1279
  }, a = {};
1280
- a[e.ForwardRef] = r, a[e.Memo] = o;
1281
- function s(p) {
1282
- return e.isMemo(p) ? o : a[p.$$typeof] || t;
1280
+ a[e.ForwardRef] = n, a[e.Memo] = o;
1281
+ function s(h) {
1282
+ return e.isMemo(h) ? o : a[h.$$typeof] || t;
1283
1283
  }
1284
- var u = Object.defineProperty, l = Object.getOwnPropertyNames, E = Object.getOwnPropertySymbols, d = Object.getOwnPropertyDescriptor, g = Object.getPrototypeOf, S = Object.prototype;
1285
- function y(p, m, c) {
1286
- if (typeof m != "string") {
1287
- if (S) {
1288
- var v = g(m);
1289
- v && v !== S && y(p, v, c);
1284
+ var c = Object.defineProperty, d = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, m = Object.getOwnPropertyDescriptor, g = Object.getPrototypeOf, b = Object.prototype;
1285
+ function x(h, y, u) {
1286
+ if (typeof y != "string") {
1287
+ if (b) {
1288
+ var l = g(y);
1289
+ l && l !== b && x(h, l, u);
1290
1290
  }
1291
- var b = l(m);
1292
- E && (b = b.concat(E(m)));
1293
- for (var w = s(p), A = s(m), f = 0; f < b.length; ++f) {
1294
- var _ = b[f];
1295
- if (!n[_] && !(c && c[_]) && !(A && A[_]) && !(w && w[_])) {
1296
- var C = d(m, _);
1291
+ var v = d(y);
1292
+ p && (v = v.concat(p(y)));
1293
+ for (var S = s(h), A = s(y), f = 0; f < v.length; ++f) {
1294
+ var _ = v[f];
1295
+ if (!r[_] && !(u && u[_]) && !(A && A[_]) && !(S && S[_])) {
1296
+ var C = m(y, _);
1297
1297
  try {
1298
- u(p, _, C);
1298
+ c(h, _, C);
1299
1299
  } catch {
1300
1300
  }
1301
1301
  }
1302
1302
  }
1303
1303
  }
1304
- return p;
1304
+ return h;
1305
1305
  }
1306
- return mt = y, mt;
1306
+ return mt = x, mt;
1307
1307
  }
1308
1308
  mn();
1309
1309
  var pn = !0;
1310
- function hn(e, t, n) {
1311
- var r = "";
1312
- return n.split(" ").forEach(function(o) {
1313
- e[o] !== void 0 ? t.push(e[o] + ";") : o && (r += o + " ");
1314
- }), r;
1310
+ function hn(e, t, r) {
1311
+ var n = "";
1312
+ return r.split(" ").forEach(function(o) {
1313
+ e[o] !== void 0 ? t.push(e[o] + ";") : o && (n += o + " ");
1314
+ }), n;
1315
1315
  }
1316
- var nr = function(t, n, r) {
1317
- var o = t.key + "-" + n.name;
1316
+ var nr = function(t, r, n) {
1317
+ var o = t.key + "-" + r.name;
1318
1318
  // we only need to add the styles to the registered cache if the
1319
1319
  // class name could be used further down
1320
1320
  // the tree but if it's a string tag, we know it won't
1321
1321
  // so we don't have to add it to registered cache.
1322
1322
  // this improves memory usage since we can avoid storing the whole style string
1323
- (r === !1 || // we need to always store it if we're in compat mode and
1323
+ (n === !1 || // we need to always store it if we're in compat mode and
1324
1324
  // in node since emotion-server relies on whether a style is in
1325
1325
  // the registered cache to know whether a style is global or not
1326
1326
  // also, note that this check will be dead code eliminated in the browser
1327
- pn === !1) && t.registered[o] === void 0 && (t.registered[o] = n.styles);
1328
- }, vn = function(t, n, r) {
1329
- nr(t, n, r);
1330
- var o = t.key + "-" + n.name;
1331
- if (t.inserted[n.name] === void 0) {
1332
- var a = n;
1327
+ pn === !1) && t.registered[o] === void 0 && (t.registered[o] = r.styles);
1328
+ }, vn = function(t, r, n) {
1329
+ nr(t, r, n);
1330
+ var o = t.key + "-" + r.name;
1331
+ if (t.inserted[r.name] === void 0) {
1332
+ var a = r;
1333
1333
  do
1334
- t.insert(n === a ? "." + o : "", a, t.sheet, !0), a = a.next;
1334
+ t.insert(r === a ? "." + o : "", a, t.sheet, !0), a = a.next;
1335
1335
  while (a !== void 0);
1336
1336
  }
1337
1337
  };
1338
1338
  function En(e) {
1339
- for (var t = 0, n, r = 0, o = e.length; o >= 4; ++r, o -= 4)
1340
- n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
1341
- (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
1342
- n >>> 24, t = /* Math.imul(k, m): */
1343
- (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1339
+ for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4)
1340
+ r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
1341
+ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
1342
+ r >>> 24, t = /* Math.imul(k, m): */
1343
+ (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1344
1344
  (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
1345
1345
  switch (o) {
1346
1346
  case 3:
1347
- t ^= (e.charCodeAt(r + 2) & 255) << 16;
1347
+ t ^= (e.charCodeAt(n + 2) & 255) << 16;
1348
1348
  case 2:
1349
- t ^= (e.charCodeAt(r + 1) & 255) << 8;
1349
+ t ^= (e.charCodeAt(n + 1) & 255) << 8;
1350
1350
  case 1:
1351
- t ^= e.charCodeAt(r) & 255, t = /* Math.imul(h, m): */
1351
+ t ^= e.charCodeAt(n) & 255, t = /* Math.imul(h, m): */
1352
1352
  (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
1353
1353
  }
1354
1354
  return t ^= t >>> 13, t = /* Math.imul(h, m): */
1355
1355
  (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
1356
1356
  }
1357
- var bn = {
1357
+ var gn = {
1358
1358
  animationIterationCount: 1,
1359
1359
  aspectRatio: 1,
1360
1360
  borderImageOutset: 1,
@@ -1403,18 +1403,18 @@ var bn = {
1403
1403
  strokeMiterlimit: 1,
1404
1404
  strokeOpacity: 1,
1405
1405
  strokeWidth: 1
1406
- }, gn = /[A-Z]|^ms/g, yn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, or = function(t) {
1406
+ }, bn = /[A-Z]|^ms/g, yn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, or = function(t) {
1407
1407
  return t.charCodeAt(1) === 45;
1408
1408
  }, Dt = function(t) {
1409
1409
  return t != null && typeof t != "boolean";
1410
1410
  }, pt = /* @__PURE__ */ en(function(e) {
1411
- return or(e) ? e : e.replace(gn, "-$&").toLowerCase();
1412
- }), jt = function(t, n) {
1411
+ return or(e) ? e : e.replace(bn, "-$&").toLowerCase();
1412
+ }), jt = function(t, r) {
1413
1413
  switch (t) {
1414
1414
  case "animation":
1415
1415
  case "animationName":
1416
- if (typeof n == "string")
1417
- return n.replace(yn, function(r, o, a) {
1416
+ if (typeof r == "string")
1417
+ return r.replace(yn, function(n, o, a) {
1418
1418
  return re = {
1419
1419
  name: o,
1420
1420
  styles: a,
@@ -1422,26 +1422,26 @@ var bn = {
1422
1422
  }, o;
1423
1423
  });
1424
1424
  }
1425
- return bn[t] !== 1 && !or(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
1425
+ return gn[t] !== 1 && !or(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
1426
1426
  };
1427
- function Ie(e, t, n) {
1428
- if (n == null)
1427
+ function De(e, t, r) {
1428
+ if (r == null)
1429
1429
  return "";
1430
- var r = n;
1431
- if (r.__emotion_styles !== void 0)
1432
- return r;
1433
- switch (typeof n) {
1430
+ var n = r;
1431
+ if (n.__emotion_styles !== void 0)
1432
+ return n;
1433
+ switch (typeof r) {
1434
1434
  case "boolean":
1435
1435
  return "";
1436
1436
  case "object": {
1437
- var o = n;
1437
+ var o = r;
1438
1438
  if (o.anim === 1)
1439
1439
  return re = {
1440
1440
  name: o.name,
1441
1441
  styles: o.styles,
1442
1442
  next: re
1443
1443
  }, o.name;
1444
- var a = n;
1444
+ var a = r;
1445
1445
  if (a.styles !== void 0) {
1446
1446
  var s = a.next;
1447
1447
  if (s !== void 0)
@@ -1451,73 +1451,73 @@ function Ie(e, t, n) {
1451
1451
  styles: s.styles,
1452
1452
  next: re
1453
1453
  }, s = s.next;
1454
- var u = a.styles + ";";
1455
- return u;
1454
+ var c = a.styles + ";";
1455
+ return c;
1456
1456
  }
1457
- return Sn(e, t, n);
1457
+ return xn(e, t, r);
1458
1458
  }
1459
1459
  case "function": {
1460
1460
  if (e !== void 0) {
1461
- var l = re, E = n(e);
1462
- return re = l, Ie(e, t, E);
1461
+ var d = re, p = r(e);
1462
+ return re = d, De(e, t, p);
1463
1463
  }
1464
1464
  break;
1465
1465
  }
1466
1466
  }
1467
- var d = n;
1468
- return d;
1467
+ var m = r;
1468
+ return m;
1469
1469
  }
1470
- function Sn(e, t, n) {
1471
- var r = "";
1472
- if (Array.isArray(n))
1473
- for (var o = 0; o < n.length; o++)
1474
- r += Ie(e, t, n[o]) + ";";
1470
+ function xn(e, t, r) {
1471
+ var n = "";
1472
+ if (Array.isArray(r))
1473
+ for (var o = 0; o < r.length; o++)
1474
+ n += De(e, t, r[o]) + ";";
1475
1475
  else
1476
- for (var a in n) {
1477
- var s = n[a];
1476
+ for (var a in r) {
1477
+ var s = r[a];
1478
1478
  if (typeof s != "object") {
1479
- var u = s;
1480
- Dt(u) && (r += pt(a) + ":" + jt(a, u) + ";");
1479
+ var c = s;
1480
+ Dt(c) && (n += pt(a) + ":" + jt(a, c) + ";");
1481
1481
  } else if (Array.isArray(s) && typeof s[0] == "string" && t == null)
1482
- for (var l = 0; l < s.length; l++)
1483
- Dt(s[l]) && (r += pt(a) + ":" + jt(a, s[l]) + ";");
1482
+ for (var d = 0; d < s.length; d++)
1483
+ Dt(s[d]) && (n += pt(a) + ":" + jt(a, s[d]) + ";");
1484
1484
  else {
1485
- var E = Ie(e, t, s);
1485
+ var p = De(e, t, s);
1486
1486
  switch (a) {
1487
1487
  case "animation":
1488
1488
  case "animationName": {
1489
- r += pt(a) + ":" + E + ";";
1489
+ n += pt(a) + ":" + p + ";";
1490
1490
  break;
1491
1491
  }
1492
1492
  default:
1493
- r += a + "{" + E + "}";
1493
+ n += a + "{" + p + "}";
1494
1494
  }
1495
1495
  }
1496
1496
  }
1497
- return r;
1497
+ return n;
1498
1498
  }
1499
1499
  var Yt = /label:\s*([^\s;{]+)\s*(;|$)/g, re;
1500
- function xn(e, t, n) {
1500
+ function Sn(e, t, r) {
1501
1501
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1502
1502
  return e[0];
1503
- var r = !0, o = "";
1503
+ var n = !0, o = "";
1504
1504
  re = void 0;
1505
1505
  var a = e[0];
1506
1506
  if (a == null || a.raw === void 0)
1507
- r = !1, o += Ie(n, t, a);
1507
+ n = !1, o += De(r, t, a);
1508
1508
  else {
1509
1509
  var s = a;
1510
1510
  o += s[0];
1511
1511
  }
1512
- for (var u = 1; u < e.length; u++)
1513
- if (o += Ie(n, t, e[u]), r) {
1514
- var l = a;
1515
- o += l[u];
1512
+ for (var c = 1; c < e.length; c++)
1513
+ if (o += De(r, t, e[c]), n) {
1514
+ var d = a;
1515
+ o += d[c];
1516
1516
  }
1517
1517
  Yt.lastIndex = 0;
1518
- for (var E = "", d; (d = Yt.exec(o)) !== null; )
1519
- E += "-" + d[1];
1520
- var g = En(o) + E;
1518
+ for (var p = "", m; (m = Yt.exec(o)) !== null; )
1519
+ p += "-" + m[1];
1520
+ var g = En(o) + p;
1521
1521
  return {
1522
1522
  name: g,
1523
1523
  styles: o,
@@ -1539,197 +1539,199 @@ var Tn = function(t) {
1539
1539
  );
1540
1540
  ir.Provider;
1541
1541
  var An = function(t) {
1542
- return /* @__PURE__ */ pr(function(n, r) {
1543
- var o = Ue(ir);
1544
- return t(n, o, r);
1542
+ return /* @__PURE__ */ pr(function(r, n) {
1543
+ var o = Se(ir);
1544
+ return t(r, o, n);
1545
1545
  });
1546
- }, _n = /* @__PURE__ */ ce.createContext({}), ut = {}.hasOwnProperty, Et = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", ar = function(t, n) {
1547
- var r = {};
1548
- for (var o in n)
1549
- ut.call(n, o) && (r[o] = n[o]);
1550
- return r[Et] = t, r;
1546
+ }, _n = /* @__PURE__ */ ce.createContext({}), ut = {}.hasOwnProperty, Et = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", ar = function(t, r) {
1547
+ var n = {};
1548
+ for (var o in r)
1549
+ ut.call(r, o) && (n[o] = r[o]);
1550
+ return n[Et] = t, n;
1551
1551
  }, Cn = function(t) {
1552
- var n = t.cache, r = t.serialized, o = t.isStringTag;
1553
- return nr(n, r, o), Rn(function() {
1554
- return vn(n, r, o);
1552
+ var r = t.cache, n = t.serialized, o = t.isStringTag;
1553
+ return nr(r, n, o), Rn(function() {
1554
+ return vn(r, n, o);
1555
1555
  }), null;
1556
- }, Pn = /* @__PURE__ */ An(function(e, t, n) {
1557
- var r = e.css;
1558
- typeof r == "string" && t.registered[r] !== void 0 && (r = t.registered[r]);
1559
- var o = e[Et], a = [r], s = "";
1556
+ }, Pn = /* @__PURE__ */ An(function(e, t, r) {
1557
+ var n = e.css;
1558
+ typeof n == "string" && t.registered[n] !== void 0 && (n = t.registered[n]);
1559
+ var o = e[Et], a = [n], s = "";
1560
1560
  typeof e.className == "string" ? s = hn(t.registered, a, e.className) : e.className != null && (s = e.className + " ");
1561
- var u = xn(a, void 0, ce.useContext(_n));
1562
- s += t.key + "-" + u.name;
1563
- var l = {};
1564
- for (var E in e)
1565
- ut.call(e, E) && E !== "css" && E !== Et && (l[E] = e[E]);
1566
- return l.className = s, n && (l.ref = n), /* @__PURE__ */ ce.createElement(ce.Fragment, null, /* @__PURE__ */ ce.createElement(Cn, {
1561
+ var c = Sn(a, void 0, ce.useContext(_n));
1562
+ s += t.key + "-" + c.name;
1563
+ var d = {};
1564
+ for (var p in e)
1565
+ ut.call(e, p) && p !== "css" && p !== Et && (d[p] = e[p]);
1566
+ return d.className = s, r && (d.ref = r), /* @__PURE__ */ ce.createElement(ce.Fragment, null, /* @__PURE__ */ ce.createElement(Cn, {
1567
1567
  cache: t,
1568
- serialized: u,
1568
+ serialized: c,
1569
1569
  isStringTag: typeof o == "string"
1570
- }), /* @__PURE__ */ ce.createElement(o, l));
1571
- }), sr = Pn, cr = Le.Fragment, h = function(t, n, r) {
1572
- return ut.call(n, "css") ? Le.jsx(sr, ar(t, n), r) : Le.jsx(t, n, r);
1573
- }, I = function(t, n, r) {
1574
- return ut.call(n, "css") ? Le.jsxs(sr, ar(t, n), r) : Le.jsxs(t, n, r);
1570
+ }), /* @__PURE__ */ ce.createElement(o, d));
1571
+ }), sr = Pn, cr = ke.Fragment, E = function(t, r, n) {
1572
+ return ut.call(r, "css") ? ke.jsx(sr, ar(t, r), n) : ke.jsx(t, r, n);
1573
+ }, $ = function(t, r, n) {
1574
+ return ut.call(r, "css") ? ke.jsxs(sr, ar(t, r), n) : ke.jsxs(t, r, n);
1575
1575
  };
1576
- const On = Xt(({ sendBack: e, receive: t, input: n }) => {
1577
- const { videoElement: r } = n;
1578
- t((S) => {
1579
- S.type === "PLAY" && (r.play(), o()), S.type === "PAUSE" && (r.pause(), o()), S.type === "SET_TIME" && (r.currentTime = S.value, u()), S.type === "SET_VOLUME" && (r.volume = S.volume, r.muted = S.muted, l()), S.type === "SET_PLAYBACK_RATE" && (r.playbackRate = S.playbackRate, E());
1576
+ const On = Xt(({ sendBack: e, receive: t, input: r }) => {
1577
+ const { videoElement: n } = r;
1578
+ t((b) => {
1579
+ b.type === "PLAY" && n.play().then(() => o()).catch((x) => {
1580
+ console.error(x);
1581
+ }), b.type === "PAUSE" && (n.pause(), a()), b.type === "SET_TIME" && (n.currentTime = b.value, c()), b.type === "SET_VOLUME" && (n.volume = b.volume, n.muted = b.muted, d()), b.type === "SET_PLAYBACK_RATE" && (n.playbackRate = b.playbackRate, p());
1580
1582
  });
1581
- const o = () => e({ type: "PLAYING" }), a = () => e({ type: "PAUSED" }), s = () => e({ type: "ENDED" }), u = () => e({ type: "TIME_UPDATE", currentTime: r.currentTime }), l = () => e({ type: "VOLUME_UPDATE", muted: r.muted, volume: r.volume }), E = () => e({ type: "PLAYBACK_RATE_UPDATE", playbackRate: r.playbackRate }), d = () => e({ type: "SEEKING", currentTime: r.currentTime }), g = () => e({ type: "DURATION_UPDATE", duration: r.duration });
1582
- return r.addEventListener("play", o), r.addEventListener("pause", a), r.addEventListener("ended", s), r.addEventListener("timeupdate", u), r.addEventListener("volumechange", l), r.addEventListener("ratechange", E), r.addEventListener("seeking", d), r.addEventListener("durationchange", g), () => {
1583
- r.removeEventListener("play", o), r.removeEventListener("pause", a), r.removeEventListener("ended", s), r.removeEventListener("timeupdate", u), r.removeEventListener("volumechange", l), r.removeEventListener("ratechange", E), r.removeEventListener("seeking", d), r.removeEventListener("durationchange", g);
1583
+ const o = () => e({ type: "PLAYING" }), a = () => e({ type: "PAUSED" }), s = () => e({ type: "ENDED" }), c = () => e({ type: "TIME_UPDATE", currentTime: n.currentTime }), d = () => e({ type: "VOLUME_UPDATE", muted: n.muted, volume: n.volume }), p = () => e({ type: "PLAYBACK_RATE_UPDATE", playbackRate: n.playbackRate }), m = () => e({ type: "SEEKING", currentTime: n.currentTime }), g = () => e({ type: "DURATION_UPDATE", duration: n.duration });
1584
+ return n.addEventListener("play", o), n.addEventListener("pause", a), n.addEventListener("ended", s), n.addEventListener("timeupdate", c), n.addEventListener("volumechange", d), n.addEventListener("ratechange", p), n.addEventListener("seeking", m), n.addEventListener("durationchange", g), () => {
1585
+ n.removeEventListener("play", o), n.removeEventListener("pause", a), n.removeEventListener("ended", s), n.removeEventListener("timeupdate", c), n.removeEventListener("volumechange", d), n.removeEventListener("ratechange", p), n.removeEventListener("seeking", m), n.removeEventListener("durationchange", g);
1584
1586
  };
1585
1587
  }), lt = (e) => Xt((...t) => {
1586
- const n = e(...t);
1588
+ const r = e(...t);
1587
1589
  return () => {
1588
- n.then((r) => r?.());
1590
+ r.then((n) => n?.());
1589
1591
  };
1590
- }), zt = (e) => Array(e.buffered.length).fill(void 0).map((t, n) => ({
1591
- index: n,
1592
- start: e.buffered.start(n),
1593
- end: e.buffered.end(n)
1594
- })), Ft = (e, t, n) => {
1595
- const r = (u) => {
1596
- t(u), s();
1597
- }, o = (u) => {
1598
- t(u), s();
1599
- }, a = (u) => {
1600
- console.error(u), n(u), s();
1592
+ }), zt = (e) => Array(e.buffered.length).fill(void 0).map((t, r) => ({
1593
+ index: r,
1594
+ start: e.buffered.start(r),
1595
+ end: e.buffered.end(r)
1596
+ })), Ft = (e, t, r) => {
1597
+ const n = (c) => {
1598
+ t(c), s();
1599
+ }, o = (c) => {
1600
+ t(c), s();
1601
+ }, a = (c) => {
1602
+ console.error(c), r(c), s();
1601
1603
  }, s = () => {
1602
- e.removeEventListener("updateend", r), e.removeEventListener("abort", o), e.removeEventListener("error", a);
1604
+ e.removeEventListener("updateend", n), e.removeEventListener("abort", o), e.removeEventListener("error", a);
1603
1605
  };
1604
- e.addEventListener("updateend", r, { once: !0 }), e.addEventListener("abort", o, { once: !0 }), e.addEventListener("error", a, { once: !0 });
1606
+ e.addEventListener("updateend", n, { once: !0 }), e.addEventListener("abort", o, { once: !0 }), e.addEventListener("error", a, { once: !0 });
1605
1607
  }, Nn = (e) => {
1606
1608
  const t = new qt({ concurrency: 1 });
1607
1609
  return {
1608
1610
  appendBuffer: (a) => t.add(
1609
- () => new Promise((s, u) => {
1610
- Ft(e, s, u), e.appendBuffer(a);
1611
+ () => new Promise((s, c) => {
1612
+ Ft(e, s, c), e.appendBuffer(a);
1611
1613
  })
1612
1614
  ),
1613
1615
  unbufferRange: async (a, s) => t.add(
1614
- () => new Promise((u, l) => {
1615
- Ft(e, u, l), e.remove(a, s);
1616
+ () => new Promise((c, d) => {
1617
+ Ft(e, c, d), e.remove(a, s);
1616
1618
  })
1617
1619
  ),
1618
1620
  updateTimestampOffset: (a) => t.add(() => {
1619
1621
  e.timestampOffset = a;
1620
1622
  })
1621
1623
  };
1622
- }, Mn = -20, Ln = 60, kn = 30, $n = lt(async ({ sendBack: e, receive: t, input: n, self: r, emit: o }) => {
1623
- const { videoElement: a, preEvictionTime: s, postEvictionTime: u, bufferTargetTime: l } = n, E = () => console.error(a.error);
1624
- a.addEventListener("error", E);
1625
- const d = new MediaSource(), g = URL.createObjectURL(d);
1624
+ }, Mn = -20, In = 60, Ln = 30, kn = lt(async ({ sendBack: e, receive: t, input: r, self: n, emit: o }) => {
1625
+ const { videoElement: a, preEvictionTime: s, postEvictionTime: c, bufferTargetTime: d } = r, p = () => console.error(a.error);
1626
+ a.addEventListener("error", p);
1627
+ const m = new MediaSource(), g = URL.createObjectURL(m);
1626
1628
  a.src = g;
1627
- const S = () => a.currentTime + (s ?? Mn), y = () => a.currentTime + (u ?? Ln), p = () => a.currentTime + (l ?? kn);
1628
- let m;
1629
- const c = await new Promise(
1630
- (D) => d.addEventListener(
1629
+ const b = () => a.currentTime + (s ?? Mn), x = () => a.currentTime + (c ?? In), h = () => a.currentTime + (d ?? Ln);
1630
+ let y;
1631
+ const u = await new Promise(
1632
+ (U) => m.addEventListener(
1631
1633
  "sourceopen",
1632
1634
  () => {
1633
- let K = !1;
1634
- t((F) => {
1635
- if (!K && F.type === "METADATA") {
1636
- const ee = d.addSourceBuffer(`video/mp4; codecs="${F.info.input.videoMimeType},${F.info.input.audioMimeType}"`);
1637
- ee.mode = "segments", d.duration = F.info.input.duration, m = F.data, K = !0, D(ee);
1635
+ let B = !1;
1636
+ t((V) => {
1637
+ if (!B && V.type === "METADATA") {
1638
+ const ee = m.addSourceBuffer(`video/mp4; codecs="${V.info.input.videoMimeType},${V.info.input.audioMimeType}"`);
1639
+ ee.mode = "segments", m.duration = V.info.input.duration, y = V.data, B = !0, U(ee);
1638
1640
  }
1639
1641
  });
1640
1642
  },
1641
1643
  { once: !0 }
1642
1644
  )
1643
1645
  );
1644
- if (!m) throw new Error("No header buffer");
1645
- const { appendBuffer: v, unbufferRange: b, updateTimestampOffset: w } = Nn(c);
1646
- v(m), t(async (D) => {
1647
- D.type === "DATA" ? await v(D.data) : D.type === "TIMESTAMP_OFFSET" && await w(D.timestampOffset);
1646
+ if (!y) throw new Error("No header buffer");
1647
+ const { appendBuffer: l, unbufferRange: v, updateTimestampOffset: S } = Nn(u);
1648
+ l(y), t(async (U) => {
1649
+ U.type === "DATA" ? await l(U.data) : U.type === "TIMESTAMP_OFFSET" && await S(U.timestampOffset);
1648
1650
  });
1649
1651
  const A = async () => {
1650
- const D = S(), K = y(), F = zt(c);
1651
- for (const { start: ee, end: ue } of F)
1652
- ee < D && await b(
1652
+ const U = b(), B = x(), V = zt(u);
1653
+ for (const { start: ee, end: ue } of V)
1654
+ ee < U && await v(
1653
1655
  ee,
1654
- D
1655
- ), ue > K && await b(
1656
- K,
1656
+ U
1657
+ ), ue > B && await v(
1658
+ B,
1657
1659
  ue
1658
1660
  );
1659
1661
  }, f = setInterval(async () => {
1660
1662
  await A();
1661
- const D = zt(c);
1662
- Math.max(...D.map(({ end: F }) => F)) < p() && e({ type: "NEED_DATA" });
1663
- }, 100), _ = () => e({ type: "SOURCE_OPEN" }), C = () => e({ type: "SOURCE_ENDED" }), W = () => e({ type: "SOURCE_ERROR" });
1664
- return d.addEventListener("sourceopen", _), d.addEventListener("sourceended", C), d.addEventListener("error", W), () => {
1665
- URL.revokeObjectURL(g), clearInterval(f), a.removeEventListener("error", E), d.removeEventListener("sourceopen", _), d.removeEventListener("sourceended", C), d.removeEventListener("error", W);
1663
+ const U = zt(u);
1664
+ Math.max(...U.map(({ end: V }) => V)) < h() && e({ type: "NEED_DATA" });
1665
+ }, 100), _ = () => e({ type: "SOURCE_OPEN" }), C = () => e({ type: "SOURCE_ENDED" }), F = () => e({ type: "SOURCE_ERROR" });
1666
+ return m.addEventListener("sourceopen", _), m.addEventListener("sourceended", C), m.addEventListener("error", F), () => {
1667
+ URL.revokeObjectURL(g), clearInterval(f), a.removeEventListener("error", p), m.removeEventListener("sourceopen", _), m.removeEventListener("sourceended", C), m.removeEventListener("error", F);
1666
1668
  };
1667
- }), In = (e, t) => {
1668
- let n, r, o;
1669
- const a = (s, u, l) => (E) => {
1670
- const d = performance.now();
1669
+ }), $n = (e, t) => {
1670
+ let r, n, o;
1671
+ const a = (s, c, d) => (p) => {
1672
+ const m = performance.now();
1671
1673
  return setTimeout(() => {
1672
1674
  if (!o) {
1673
- n = void 0, r = void 0;
1675
+ r = void 0, n = void 0;
1674
1676
  return;
1675
1677
  }
1676
1678
  const g = (async () => t(...o))();
1677
- o = void 0, g.then(u).catch((p) => {
1678
- console.error(p), l(p);
1679
+ o = void 0, g.then(c).catch((h) => {
1680
+ console.error(h), d(h);
1679
1681
  });
1680
- let S, y;
1681
- r = new Promise((p, m) => {
1682
- S = p, y = m;
1683
- }), n = g.then(a(d, S, y)).catch((p) => (console.error(p), a(s, S, y)(p)));
1684
- }, e - (d - s)), E;
1682
+ let b, x;
1683
+ n = new Promise((h, y) => {
1684
+ b = h, x = y;
1685
+ }), r = g.then(a(m, b, x)).catch((h) => (console.error(h), a(s, b, x)(h)));
1686
+ }, e - (m - s)), p;
1685
1687
  };
1686
1688
  return (...s) => {
1687
- if (o = s, n)
1688
- return r;
1689
+ if (o = s, r)
1690
+ return n;
1689
1691
  {
1690
- const u = performance.now(), l = (async () => t(...s))();
1692
+ const c = performance.now(), d = (async () => t(...s))();
1691
1693
  o = void 0;
1692
- let E, d;
1693
- return r = new Promise((g, S) => {
1694
- E = g, d = S;
1695
- }), n = l.then(a(u, E, d)).catch((g) => (console.error(g), a(u, E, d)(g))), l;
1694
+ let p, m;
1695
+ return n = new Promise((g, b) => {
1696
+ p = g, m = b;
1697
+ }), r = d.then(a(c, p, m)).catch((g) => (console.error(g), a(c, p, m)(g))), d;
1696
1698
  }
1697
1699
  };
1698
- }, Un = lt(async ({ sendBack: e, receive: t, input: n, self: r, emit: o }) => {
1699
- const { remuxerOptions: a } = n, { publicPath: s, workerUrl: u, bufferSize: l, length: E, read: d } = a, g = await Ht({
1700
+ }, Un = lt(async ({ sendBack: e, receive: t, input: r, self: n, emit: o }) => {
1701
+ const { remuxerOptions: a } = r, { publicPath: s, workerUrl: c, bufferSize: d, length: p, read: m } = a, g = await Ht({
1700
1702
  publicPath: s,
1701
- workerUrl: u,
1702
- bufferSize: l,
1703
- length: E,
1704
- read: d
1705
- }), S = await g.init();
1706
- S.attachments?.length && e({ type: "NEW_ATTACHMENTS", attachments: S.attachments }), S.subtitles?.length && e({ type: "NEW_SUBTITLE_FRAGMENTS", subtitles: S.subtitles }), e({ type: "METADATA", ...S });
1707
- let y = !1, p = [];
1708
- const m = In(100, async () => {
1709
- if (!(p.length || y))
1703
+ workerUrl: c,
1704
+ bufferSize: d,
1705
+ length: p,
1706
+ read: m
1707
+ }), b = await g.init();
1708
+ b.indexes && e({ type: "INDEXES", indexes: b.indexes }), b.attachments?.length && e({ type: "NEW_ATTACHMENTS", attachments: b.attachments }), b.subtitles?.length && e({ type: "NEW_SUBTITLE_FRAGMENTS", subtitles: b.subtitles }), e({ type: "METADATA", ...b });
1709
+ let x = !1, h = [];
1710
+ const y = $n(100, async () => {
1711
+ if (!(h.length || x))
1710
1712
  try {
1711
- const { data: c, subtitles: v, finished: b } = await g.read();
1712
- b && (y = !0), v.length && e({ type: "NEW_SUBTITLE_FRAGMENTS", subtitles: v }), e({ type: "DATA", data: c });
1713
- } catch (c) {
1714
- if (c.message === "Cancelled") return;
1715
- console.error(c);
1713
+ const { data: u, subtitles: l, finished: v } = await g.read();
1714
+ v && (x = !0), l.length && e({ type: "NEW_SUBTITLE_FRAGMENTS", subtitles: l }), e({ type: "DATA", data: u });
1715
+ } catch (u) {
1716
+ if (u.message === "Cancelled") return;
1717
+ console.error(u);
1716
1718
  }
1717
1719
  });
1718
- return t(async (c) => {
1719
- if (c.type === "NEED_DATA")
1720
- m();
1721
- else if (c.type === "SEEKING") {
1722
- y = !1;
1723
- const { currentTime: v } = c, b = { currentTime: v };
1724
- p = [...p, b];
1720
+ return t(async (u) => {
1721
+ if (u.type === "NEED_DATA")
1722
+ y();
1723
+ else if (u.type === "SEEKING") {
1724
+ x = !1;
1725
+ const { currentTime: l } = u, v = { currentTime: l };
1726
+ h = [...h, v];
1725
1727
  try {
1726
- const { data: w, pts: A } = await g.seek(v).finally(() => {
1727
- p = p.filter((f) => f !== b);
1728
+ const { data: S, pts: A } = await g.seek(l).finally(() => {
1729
+ h = h.filter((f) => f !== v);
1728
1730
  });
1729
- e({ type: "TIMESTAMP_OFFSET", timestampOffset: A }), e({ type: "DATA", data: w });
1730
- } catch (w) {
1731
- if (w.message === "Cancelled") return;
1732
- console.error(w);
1731
+ e({ type: "TIMESTAMP_OFFSET", timestampOffset: A }), e({ type: "DATA", data: S });
1732
+ } catch (S) {
1733
+ if (S.message === "Cancelled") return;
1734
+ console.error(S);
1733
1735
  }
1734
1736
  }
1735
1737
  }), () => {
@@ -1765,182 +1767,182 @@ const On = Xt(({ sendBack: e, receive: t, input: n }) => {
1765
1767
  Encoding: Number(t.Encoding)
1766
1768
  });
1767
1769
  }, Dn = (e) => {
1768
- const t = e.content.match(/\r\n\[Events\]\r\nFormat: (.*)/)?.[0], n = t?.trim().split(`
1770
+ const t = e.content.match(/\r\n\[Events\]\r\nFormat: (.*)/)?.[0], r = t?.trim().split(`
1769
1771
  `)[1];
1770
- if (!t || !n)
1772
+ if (!t || !r)
1771
1773
  throw new Error("dialogueFormatContent is undefined");
1772
1774
  return {
1773
1775
  type: "header",
1774
1776
  streamIndex: e.streamIndex,
1775
1777
  content: e.content,
1776
1778
  eventsContent: t,
1777
- dialogueFormatContent: n,
1778
- parsed: Me(e.content)
1779
+ dialogueFormatContent: r,
1780
+ parsed: Le(e.content)
1779
1781
  };
1780
1782
  }, jn = (e, t) => {
1781
- const [n, r] = t.content.split(","), o = Number(n), a = Vt(t.start), s = Vt(t.end), u = t.content.replace(`${o},${r},`, ""), l = `Dialogue: ${r},${a},${s},${u}`, d = Me(`${e.eventsContent}\r
1782
- ${l}`).events.dialogue[0];
1783
- if (!d)
1783
+ const [r, n] = t.content.split(","), o = Number(r), a = Vt(t.start), s = Vt(t.end), c = t.content.replace(`${o},${n},`, ""), d = `Dialogue: ${n},${a},${s},${c}`, m = Le(`${e.eventsContent}\r
1784
+ ${d}`).events.dialogue[0];
1785
+ if (!m)
1784
1786
  throw new Error("dialogueEvent is undefined");
1785
1787
  return {
1786
1788
  type: "dialogue",
1787
1789
  streamIndex: t.streamIndex,
1788
1790
  index: o,
1789
- content: l,
1790
- parsed: Me(`${e.eventsContent}\r
1791
- ${l}`),
1791
+ content: d,
1792
+ parsed: Le(`${e.eventsContent}\r
1793
+ ${d}`),
1792
1794
  assEvent: {
1793
- ...d,
1794
- Effect: d.Effect ?? "",
1795
- Text: d.Text.raw,
1796
- Duration: (d.End - d.Start) * 1e3,
1797
- Start: d.Start * 1e3,
1798
- End: d.End * 1e3,
1795
+ ...m,
1796
+ Effect: m.Effect ?? "",
1797
+ Text: m.Text.raw,
1798
+ Duration: (m.End - m.Start) * 1e3,
1799
+ Start: m.Start * 1e3,
1800
+ End: m.End * 1e3,
1799
1801
  ReadOrder: o,
1800
1802
  _index: o
1801
1803
  }
1802
1804
  };
1803
- }, Yn = lt(async ({ sendBack: e, receive: t, input: n, self: r, emit: o }) => {
1804
- const { publicPath: a, subtitlesRendererOptions: s, videoElement: u, canvasElement: l } = n;
1805
- let E = [], d;
1805
+ }, Yn = lt(async ({ sendBack: e, receive: t, input: r, self: n, emit: o }) => {
1806
+ const { publicPath: a, subtitlesRendererOptions: s, videoElement: c, canvasElement: d } = r;
1807
+ let p = [], m;
1806
1808
  const g = /* @__PURE__ */ new Map();
1807
- let S = [], y;
1808
- return t((p) => {
1809
- if (p.type === "SELECT_SUBTITLE_STREAM") {
1810
- if (y = p.streamIndex, e({ type: "SELECTED_SUBTITLE_STREAM_UPDATED", streamIndex: p.streamIndex }), !d) return;
1811
- d.freeTrack(), S = [];
1812
- const m = g.get(y);
1813
- if (!m)
1809
+ let b = [], x;
1810
+ return t((h) => {
1811
+ if (h.type === "SELECT_SUBTITLE_STREAM") {
1812
+ if (x = h.streamIndex, e({ type: "SELECTED_SUBTITLE_STREAM_UPDATED", streamIndex: h.streamIndex }), !m) return;
1813
+ m.freeTrack(), b = [];
1814
+ const y = g.get(x);
1815
+ if (!y)
1814
1816
  throw new Error("newSubtitleStreams is undefined");
1815
- const c = Me(m.header.content), v = {
1816
- ...c,
1817
+ const u = Le(y.header.content), l = {
1818
+ ...u,
1817
1819
  info: {
1818
- ...c.info,
1820
+ ...u.info,
1819
1821
  ScaledBorderAndShadow: "no",
1820
1822
  LayoutResX: "",
1821
1823
  LayoutResY: ""
1822
1824
  }
1823
- }, b = _t(v);
1824
- d.setTrack(b), d.setCurrentTime(u.paused, u.currentTime, u.playbackRate);
1825
- for (const w in m.header.parsed.styles) {
1826
- const A = m.header.parsed.styles.style[Number(w)];
1827
- A && Wt(d, A);
1825
+ }, v = _t(l);
1826
+ m.setTrack(v), m.setCurrentTime(c.paused, c.currentTime, c.playbackRate);
1827
+ for (const S in y.header.parsed.styles) {
1828
+ const A = y.header.parsed.styles.style[Number(S)];
1829
+ A && Wt(m, A);
1828
1830
  }
1829
- for (const w of m?.dialogues ?? [])
1830
- S.filter((f) => f.type === "dialogue").find(
1831
- (f) => f.streamIndex === w.streamIndex && f.index === w.index
1832
- ) || y !== w.streamIndex || (d?.createEvent(w.assEvent), S.push(w));
1833
- }
1834
- if (p.type === "NEW_SUBTITLE_FRAGMENTS") {
1835
- const m = p.subtitles.map((c) => {
1836
- if (c.type === "header") {
1837
- const v = Dn(c);
1838
- return g.set(c.streamIndex, { header: v, dialogues: [] }), y === void 0 && (y = c.streamIndex, e({ type: "SELECTED_SUBTITLE_STREAM_UPDATED", streamIndex: c.streamIndex })), e({ type: "SUBTITLE_STREAMS_UPDATED", subtitlesStreams: [...g.values()] }), v;
1831
+ for (const S of y?.dialogues ?? [])
1832
+ b.filter((f) => f.type === "dialogue").find(
1833
+ (f) => f.streamIndex === S.streamIndex && f.index === S.index
1834
+ ) || x !== S.streamIndex || (m?.createEvent(S.assEvent), b.push(S));
1835
+ }
1836
+ if (h.type === "NEW_SUBTITLE_FRAGMENTS") {
1837
+ const y = h.subtitles.map((u) => {
1838
+ if (u.type === "header") {
1839
+ const l = Dn(u);
1840
+ return g.set(u.streamIndex, { header: l, dialogues: [] }), x === void 0 && (x = u.streamIndex, e({ type: "SELECTED_SUBTITLE_STREAM_UPDATED", streamIndex: u.streamIndex })), e({ type: "SUBTITLE_STREAMS_UPDATED", subtitlesStreams: [...g.values()] }), l;
1839
1841
  } else {
1840
- const v = g.get(c.streamIndex)?.header;
1841
- if (!v)
1842
+ const l = g.get(u.streamIndex)?.header;
1843
+ if (!l)
1842
1844
  throw new Error("SubtitleStream or its header is undefined");
1843
- const b = jn(v, c);
1844
- return g.get(c.streamIndex)?.dialogues.push(b), e({ type: "SUBTITLE_STREAMS_UPDATED", subtitlesStreams: [...g.values()] }), b;
1845
+ const v = jn(l, u);
1846
+ return g.get(u.streamIndex)?.dialogues.push(v), e({ type: "SUBTITLE_STREAMS_UPDATED", subtitlesStreams: [...g.values()] }), v;
1845
1847
  }
1846
1848
  });
1847
- for (const c of m)
1848
- if (c.type === "dialogue") {
1849
- if (S.filter((b) => b.type === "dialogue").find(
1850
- (b) => b.streamIndex === c.streamIndex && b.index === c.index
1851
- ) || y !== c.streamIndex)
1849
+ for (const u of y)
1850
+ if (u.type === "dialogue") {
1851
+ if (b.filter((v) => v.type === "dialogue").find(
1852
+ (v) => v.streamIndex === u.streamIndex && v.index === u.index
1853
+ ) || x !== u.streamIndex)
1852
1854
  continue;
1853
- d?.createEvent(c.assEvent), S.push(c);
1854
- } else if (c.type === "header") {
1855
- if (!d) {
1856
- const v = Me(c.content), b = {
1857
- ...v,
1855
+ m?.createEvent(u.assEvent), b.push(u);
1856
+ } else if (u.type === "header") {
1857
+ if (!m) {
1858
+ const l = Le(u.content), v = {
1859
+ ...l,
1858
1860
  info: {
1859
- ...v.info,
1861
+ ...l.info,
1860
1862
  ScaledBorderAndShadow: "no",
1861
1863
  LayoutResX: "",
1862
1864
  LayoutResY: ""
1863
1865
  }
1864
- }, w = _t(b);
1865
- d = new gr({
1866
- video: u,
1867
- canvas: l,
1868
- subContent: w,
1866
+ }, S = _t(v);
1867
+ m = new br({
1868
+ video: c,
1869
+ canvas: d,
1870
+ subContent: S,
1869
1871
  workerUrl: s.workerUrl,
1870
1872
  modernWasmUrl: s.wasmUrl,
1871
- fonts: E.filter(Boolean).map(([A, f]) => f),
1872
- availableFonts: { ...Object.fromEntries(E), "liberation sans": `${a}default.woff2` }
1873
+ fonts: p.filter(Boolean).map(([A, f]) => f),
1874
+ availableFonts: { ...Object.fromEntries(p), "liberation sans": `${a}default.woff2` }
1873
1875
  // fallbackFont: 'liberation sans',
1874
1876
  });
1875
1877
  }
1876
- for (const v in c.parsed.styles) {
1877
- const b = c.parsed.styles.style[Number(v)];
1878
- b && Wt(d, b);
1878
+ for (const l in u.parsed.styles) {
1879
+ const v = u.parsed.styles.style[Number(l)];
1880
+ v && Wt(m, v);
1879
1881
  }
1880
1882
  } else
1881
1883
  throw new Error("Unknown subtitlePart type");
1882
1884
  }
1883
- p.type === "NEW_ATTACHMENTS" && (E = p.attachments.map((m) => [
1884
- m.filename,
1885
- new Uint8Array(m.data)
1885
+ h.type === "NEW_ATTACHMENTS" && (p = h.attachments.map((y) => [
1886
+ y.filename,
1887
+ new Uint8Array(y.data)
1886
1888
  ]));
1887
1889
  }), () => {
1888
- d?.destroy();
1890
+ m?.destroy();
1889
1891
  };
1890
- }), zn = lt(async ({ sendBack: e, receive: t, input: n, self: r, emit: o }) => {
1891
- const { remuxerOptions: a } = n, { publicPath: s, workerUrl: u, bufferSize: l, length: E, read: d } = a;
1892
+ }), zn = lt(async ({ sendBack: e, receive: t, input: r, self: n, emit: o }) => {
1893
+ const { remuxerOptions: a } = r, { publicPath: s, workerUrl: c, bufferSize: d, length: p, read: m } = a;
1892
1894
  let g;
1893
- const S = new Promise((b) => {
1894
- g = b;
1895
+ const b = new Promise((v) => {
1896
+ g = v;
1895
1897
  });
1896
- t(async (b) => {
1897
- await S, b.type === "DOWNLOADED_RANGES_UPDATED" && p.indexes.reduce((f, _) => {
1898
+ t(async (v) => {
1899
+ await b, v.type === "DOWNLOADED_RANGES_UPDATED" && h.indexes.reduce((f, _) => {
1898
1900
  const C = f.at(-1);
1899
1901
  if (C && _.timestamp - C.timestamp < 5)
1900
1902
  return f;
1901
1903
  {
1902
- const W = p.indexes.slice(_.index + 1).find((D) => D.timestamp > _.timestamp + 5);
1903
- return W ? [...f, { ..._, duration: W.timestamp - _.timestamp }] : [...f, _];
1904
+ const F = h.indexes.slice(_.index + 1).find((U) => U.timestamp > _.timestamp + 5);
1905
+ return F ? [...f, { ..._, duration: F.timestamp - _.timestamp }] : [...f, _];
1904
1906
  }
1905
1907
  }, []).filter((f) => {
1906
- const _ = p.indexes.at(f.index + 1), C = _ ? _.pos : a.length, W = f.pos;
1907
- return b.downloadedRanges.some(
1908
- ({ startByteOffset: K, endByteOffset: F }) => K <= W && C <= F
1908
+ const _ = h.indexes.at(f.index + 1), C = _ ? _.pos : a.length, F = f.pos;
1909
+ return v.downloadedRanges.some(
1910
+ ({ startByteOffset: B, endByteOffset: V }) => B <= F && C <= V
1909
1911
  );
1910
- }).sort((f, _) => f.timestamp - _.timestamp).forEach((f) => v(f));
1912
+ }).sort((f, _) => f.timestamp - _.timestamp).forEach((f) => l(f));
1911
1913
  });
1912
- const y = await Ht({
1914
+ const x = await Ht({
1913
1915
  publicPath: s,
1914
- workerUrl: u,
1915
- bufferSize: l,
1916
- length: E,
1917
- read: d
1918
- }), p = await y.init(), m = new qt({ concurrency: 1 });
1919
- let c = [];
1920
- const v = (b) => m.add(async () => {
1921
- if (c.find((D) => D.index.index === b.index)) return;
1922
- const w = await y.readKeyframe(b.timestamp), A = new Blob([w], { type: "image/png" }), f = URL.createObjectURL(A), _ = p.indexes.at(b.index + 1), C = _ ? _.timestamp - b.timestamp : p.info.input.duration - b.timestamp, W = {
1916
+ workerUrl: c,
1917
+ bufferSize: d,
1918
+ length: p,
1919
+ read: m
1920
+ }), h = await x.init(), y = new qt({ concurrency: 1 });
1921
+ let u = [];
1922
+ const l = (v) => y.add(async () => {
1923
+ if (u.find((U) => U.index.index === v.index)) return;
1924
+ const S = await x.readKeyframe(v.timestamp), A = new Blob([S], { type: "image/png" }), f = URL.createObjectURL(A), _ = h.indexes.at(v.index + 1), C = _ ? _.timestamp - v.timestamp : h.info.input.duration - v.timestamp, F = {
1923
1925
  blob: A,
1924
1926
  url: f,
1925
- timestamp: b.timestamp,
1926
- duration: b.duration ?? C,
1927
- index: b
1927
+ timestamp: v.timestamp,
1928
+ duration: v.duration ?? C,
1929
+ index: v
1928
1930
  };
1929
- c.push(W), e({ type: "NEW_THUMBNAIL", thumbnail: W });
1931
+ u.push(F), e({ type: "NEW_THUMBNAIL", thumbnail: F });
1930
1932
  });
1931
1933
  return g(), () => {
1932
- y.destroy();
1934
+ x.destroy();
1933
1935
  };
1934
1936
  }), Fn = Er({
1935
1937
  types: {},
1936
1938
  actions: {
1937
- isReady: br(({ context: e, enqueue: t }) => {
1939
+ isReady: gr(({ context: e, enqueue: t }) => {
1938
1940
  e.videoElement && e.canvasElement && e.remuxerOptions && e.subtitlesRendererOptions && e.mediaSourceOptions && t.raise({ type: "IS_READY" });
1939
1941
  })
1940
1942
  },
1941
1943
  actors: {
1942
1944
  mediaLogic: On,
1943
- mediaSourceLogic: $n,
1945
+ mediaSourceLogic: kn,
1944
1946
  dataSourceLogic: Un,
1945
1947
  thumbnailsLogic: zn,
1946
1948
  subtitlesLogic: Yn
@@ -1964,6 +1966,7 @@ ${l}`),
1964
1966
  subtitleFragments: [],
1965
1967
  subtitleStreams: [],
1966
1968
  selectedSubtitleStreamIndex: void 0,
1969
+ indexes: [],
1967
1970
  thumbnails: [],
1968
1971
  isReady: !1
1969
1972
  },
@@ -2054,47 +2057,52 @@ ${l}`),
2054
2057
  }
2055
2058
  ],
2056
2059
  on: {
2057
- PLAY: { actions: q("media", ({ event: e }) => e) },
2058
- PAUSE: { actions: q("media", ({ event: e }) => e) },
2059
- SET_TIME: { actions: q("media", ({ event: e }) => e) },
2060
- SET_PLAYBACK_RATE: { actions: q("media", ({ event: e }) => e) },
2060
+ PLAY: { actions: H("media", ({ event: e }) => e) },
2061
+ PAUSE: { actions: H("media", ({ event: e }) => e) },
2062
+ SET_TIME: { actions: H("media", ({ event: e }) => e) },
2063
+ SET_PLAYBACK_RATE: { actions: H("media", ({ event: e }) => e) },
2061
2064
  PLAYING: { actions: Y({ media: ({ context: e }) => ({ ...e.media, paused: !1 }) }) },
2062
2065
  PAUSED: { actions: Y({ media: ({ context: e }) => ({ ...e.media, paused: !0 }) }) },
2063
2066
  ENDED: { actions: Y({ media: ({ context: e }) => ({ ...e.media, paused: !0 }) }) },
2064
2067
  TIME_UPDATE: { actions: Y({ media: ({ context: e, event: t }) => ({ ...e.media, currentTime: t.currentTime }) }) },
2065
2068
  VOLUME_UPDATE: { actions: Y({ media: ({ context: e, event: t }) => ({ ...e.media, muted: t.muted, volume: t.volume }) }) },
2066
- SET_VOLUME: { actions: q("media", ({ event: e }) => e) },
2069
+ SET_VOLUME: { actions: H("media", ({ event: e }) => e) },
2067
2070
  PLAYBACK_RATE_UPDATE: { actions: Y({ media: ({ context: e, event: t }) => ({ ...e.media, playbackRate: t.playbackRate }) }) },
2068
2071
  DURATION_UPDATE: { actions: Y({ media: ({ context: e, event: t }) => ({ ...e.media, duration: t.duration }) }) },
2069
- NEED_DATA: { actions: q("dataSource", ({ event: e }) => e) },
2070
- METADATA: { actions: q("mediaSource", ({ event: e }) => e) },
2071
- SEEKING: { actions: q("dataSource", ({ event: e }) => e) },
2072
- DATA: { actions: q("mediaSource", ({ event: e }) => e) },
2073
- TIMESTAMP_OFFSET: { actions: q("mediaSource", ({ event: e }) => e) },
2072
+ NEED_DATA: { actions: H("dataSource", ({ event: e }) => e) },
2073
+ METADATA: { actions: H("mediaSource", ({ event: e }) => e) },
2074
+ SEEKING: { actions: H("dataSource", ({ event: e }) => e) },
2075
+ DATA: { actions: H("mediaSource", ({ event: e }) => e) },
2076
+ TIMESTAMP_OFFSET: { actions: H("mediaSource", ({ event: e }) => e) },
2074
2077
  NEW_THUMBNAIL: { actions: [Y({ thumbnails: ({ context: e, event: t }) => [...e.thumbnails, t.thumbnail] })] },
2075
- DOWNLOADED_RANGES_UPDATED: { actions: q("thumbnails", ({ event: e }) => e) },
2078
+ DOWNLOADED_RANGES_UPDATED: { actions: H("thumbnails", ({ event: e }) => e) },
2079
+ INDEXES: {
2080
+ actions: [
2081
+ Y({ indexes: ({ event: e }) => e.indexes })
2082
+ ]
2083
+ },
2076
2084
  NEW_ATTACHMENTS: {
2077
2085
  actions: [
2078
2086
  Y({ attachments: ({ context: e, event: t }) => [...e.attachments, ...t.attachments] }),
2079
- q("subtitles", ({ event: e }) => e)
2087
+ H("subtitles", ({ event: e }) => e)
2080
2088
  ]
2081
2089
  },
2082
2090
  NEW_SUBTITLE_FRAGMENTS: {
2083
2091
  actions: [
2084
2092
  Y({ subtitleFragments: ({ context: e, event: t }) => [...e.subtitleFragments, ...t.subtitles] }),
2085
- q("subtitles", ({ event: e }) => e)
2093
+ H("subtitles", ({ event: e }) => e)
2086
2094
  // emit(({ event }) => ({ type: 'NEW_SUBTITLE_FRAGMENTS', subtitles: event.subtitles }))
2087
2095
  ]
2088
2096
  },
2089
2097
  SUBTITLE_STREAMS_UPDATED: {
2090
2098
  actions: [
2091
2099
  Y({ subtitleStreams: ({ event: e }) => e.subtitlesStreams }),
2092
- q("subtitles", ({ event: e }) => e)
2100
+ H("subtitles", ({ event: e }) => e)
2093
2101
  ]
2094
2102
  },
2095
2103
  SELECT_SUBTITLE_STREAM: {
2096
2104
  actions: [
2097
- q("subtitles", ({ event: e }) => e)
2105
+ H("subtitles", ({ event: e }) => e)
2098
2106
  ]
2099
2107
  },
2100
2108
  SELECTED_SUBTITLE_STREAM_UPDATED: {
@@ -2107,46 +2115,39 @@ ${l}`),
2107
2115
  },
2108
2116
  DESTROYED: {}
2109
2117
  }
2110
- }), $ = vr(Fn), je = hr({}), Bt = (e, t) => {
2111
- const [n, r] = Z(() => localStorage.getItem(e) ?? t), o = (a) => {
2112
- localStorage.setItem(e, a), r(a), window.dispatchEvent(new Event("storage"));
2118
+ }), O = vr(Fn), we = hr({}), Bt = (e, t) => {
2119
+ const [r, n] = Q(() => localStorage.getItem(e) ?? t), o = (a) => {
2120
+ localStorage.setItem(e, a), n(a), window.dispatchEvent(new Event("storage"));
2113
2121
  };
2114
2122
  return z(() => {
2115
2123
  const a = () => {
2116
2124
  const s = localStorage.getItem(e);
2117
- r(s ?? t);
2125
+ n(s ?? t);
2118
2126
  };
2119
2127
  return window.addEventListener("storage", a), () => {
2120
2128
  window.removeEventListener("storage", a);
2121
2129
  };
2122
- }, [e]), [n, o];
2123
- }, nt = (e, t, n, r) => {
2130
+ }, [e]), [r, o];
2131
+ }, nt = (e, t, r, n) => {
2124
2132
  if (!e) throw new Error("Media actor not found");
2125
- if (!n) throw new Error("Duration not found");
2126
- n === r ? (e.send({ type: "SET_TIME", value: 0 }), e.send({ type: "PLAY" })) : t ? e.send({ type: "PLAY" }) : e.send({ type: "PAUSE" });
2127
- }, Vn = Q`
2128
- top: unset !important;
2129
- left: unset !important;
2130
- width: 100%;
2131
- height: 100%;
2132
- margin: auto;
2133
- `, Wn = () => {
2134
- const e = $.useActorRef(), [t, n] = Z(), r = ot((o) => {
2135
- n(o);
2136
- }, []);
2137
- return z(() => {
2138
- t && e.send({
2139
- type: "SET_CANVAS_ELEMENT",
2140
- canvasElement: t
2141
- });
2142
- }, [t]), /* @__PURE__ */ h(cr, { children: /* @__PURE__ */ h("canvas", { ref: r, css: Vn }) });
2143
- }, ur = 1e-4, bt = 1, lr = 2, dr = (e) => {
2144
- const t = Math.max(ur, Math.min(bt, e));
2145
- return Math.pow(t, lr);
2146
- }, xt = (e) => {
2147
- const t = Math.max(ur, Math.min(bt, e));
2148
- return Math.pow(t, bt / lr);
2149
- }, Se = {
2133
+ if (!r) throw new Error("Duration not found");
2134
+ r === n ? (e.send({ type: "SET_TIME", value: 0 }), e.send({ type: "PLAY" })) : t ? e.send({ type: "PLAY" }) : e.send({ type: "PAUSE" });
2135
+ }, he = {
2136
+ headings: {
2137
+ small: `
2138
+ font-weight: 500;
2139
+ font-size: 1.8rem;
2140
+ line-height: 1.9rem;
2141
+ @media (min-width: 960px) {
2142
+ font-size: 1.8rem;
2143
+ line-height: 2.2rem;
2144
+ }
2145
+ @media (min-width: 2560px) {
2146
+ font-size: 2.2rem;
2147
+ line-height: 2.6rem;
2148
+ }
2149
+ `
2150
+ },
2150
2151
  bMedium: {
2151
2152
  bold: `
2152
2153
  font-weight: 600;
@@ -2178,7 +2179,69 @@ ${l}`),
2178
2179
  }
2179
2180
  `
2180
2181
  }
2181
- }, Bn = (e) => Q`
2182
+ }, Vn = K`
2183
+ top: unset !important;
2184
+ left: unset !important;
2185
+ width: 100%;
2186
+ height: 100%;
2187
+ margin: auto;
2188
+ pointer-events: none;
2189
+ `, Wn = K`
2190
+ position: absolute;
2191
+ top: 0;
2192
+ left: 0;
2193
+ width: 100%;
2194
+ padding: 2.4rem;
2195
+ ${he.headings.small}
2196
+ color: white;
2197
+ text-shadow: 0 0 4px rgba(0, 0, 0, 1);
2198
+ z-index: 2;
2199
+ pointer-events: none;
2200
+
2201
+ background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 80%, transparent 100%);
2202
+ transition: opacity 0.1s cubic-bezier(.4,0,1,1);
2203
+ `, Bn = K`
2204
+ position: absolute;
2205
+ top: 0;
2206
+ left: 0;
2207
+ width: 100%;
2208
+ height: 100%;
2209
+ font-size: 2rem;
2210
+ color: white;
2211
+ text-shadow: 0 0 4px rgba(0, 0, 0, 1);
2212
+ z-index: 2;
2213
+ display: flex;
2214
+ justify-content: center;
2215
+ align-items: center;
2216
+ pointer-events: none;
2217
+ `, Gn = ({ loadingInformation: e }) => {
2218
+ const t = O.useActorRef(), r = O.useSelector((c) => c.context.media.duration), n = Se(we), [o, a] = Q(), s = ot((c) => {
2219
+ a(c);
2220
+ }, []);
2221
+ return z(() => {
2222
+ o && t.send({
2223
+ type: "SET_CANVAS_ELEMENT",
2224
+ canvasElement: o
2225
+ });
2226
+ }, [o]), /* @__PURE__ */ $(cr, { children: [
2227
+ n.title ? /* @__PURE__ */ E(
2228
+ "div",
2229
+ {
2230
+ css: Wn,
2231
+ style: { ...n.hideUI ? { opacity: "0", pointerEvents: "none" } : {} },
2232
+ children: n.title
2233
+ }
2234
+ ) : void 0,
2235
+ r === void 0 && e ? /* @__PURE__ */ E("div", { css: Bn, children: e }) : void 0,
2236
+ /* @__PURE__ */ E("canvas", { ref: s, css: Vn })
2237
+ ] });
2238
+ }, ur = 1e-4, gt = 1, lr = 2, dr = (e) => {
2239
+ const t = Math.max(ur, Math.min(gt, e));
2240
+ return Math.pow(t, lr);
2241
+ }, St = (e) => {
2242
+ const t = Math.max(ur, Math.min(gt, e));
2243
+ return Math.pow(t, gt / lr);
2244
+ }, Xn = (e) => K`
2182
2245
  display: flex;
2183
2246
  justify-content: flex-end;
2184
2247
 
@@ -2188,74 +2251,74 @@ ${l}`),
2188
2251
  z-index: 3;
2189
2252
 
2190
2253
  * {
2191
- ${Se.bSmall.regular}
2254
+ ${he.bSmall.regular}
2192
2255
  }
2193
2256
 
2194
- ${e === "sm" && Q`
2257
+ ${e === "sm" && K`
2195
2258
  padding: 0.4rem!important;
2196
2259
  `}
2197
- ${e === "md" && Q`
2260
+ ${e === "md" && K`
2198
2261
  padding: 0.6rem!important;
2199
2262
  `}
2200
- ${e === "lg" && Q`
2263
+ ${e === "lg" && K`
2201
2264
  padding: 1.2rem!important;
2202
2265
  `}
2203
- `, ge = ({
2266
+ `, ye = ({
2204
2267
  id: e,
2205
2268
  toolTipText: t,
2206
- text: n,
2207
- delayShow: r = 0,
2269
+ text: r,
2270
+ delayShow: n = 0,
2208
2271
  closeDelay: o = 0,
2209
2272
  offset: a = 20,
2210
2273
  tooltipPlace: s = "top",
2211
- disabled: u = !1,
2212
- size: l = "md"
2274
+ disabled: c = !1,
2275
+ size: d = "md"
2213
2276
  /* md */
2214
- }) => /* @__PURE__ */ I(cr, { children: [
2215
- /* @__PURE__ */ h(
2277
+ }) => /* @__PURE__ */ $(cr, { children: [
2278
+ /* @__PURE__ */ E(
2216
2279
  "div",
2217
2280
  {
2218
2281
  "data-tooltip-id": e,
2219
2282
  "data-open": !0,
2220
2283
  "data-tooltip-offset": a,
2221
- "data-tooltip-delay-show": r,
2284
+ "data-tooltip-delay-show": n,
2222
2285
  "data-tooltip-delay-hide": o,
2223
2286
  "data-tooltip-place": s,
2224
- children: n
2287
+ children: r
2225
2288
  }
2226
2289
  ),
2227
- !u && /* @__PURE__ */ h(
2290
+ !c && /* @__PURE__ */ E(
2228
2291
  Pr,
2229
2292
  {
2230
- css: Bn(l),
2293
+ css: Xn(d),
2231
2294
  id: e,
2232
2295
  noArrow: !0,
2233
2296
  children: t
2234
2297
  }
2235
2298
  )
2236
- ] }), Gn = ({ ref: e, defaultValue: t }) => {
2237
- const [n, r] = Z(t), [o, a] = Z(!1), s = (u) => {
2299
+ ] }), qn = ({ ref: e, defaultValue: t }) => {
2300
+ const [r, n] = Q(t), [o, a] = Q(!1), s = (c) => {
2238
2301
  if (a(!0), !e.current) return;
2239
- const { clientX: l } = u, { left: E, right: d } = e.current.getBoundingClientRect();
2240
- r(Math.min(Math.max((l - E) / (d - E), 0), 1));
2302
+ const { clientX: d } = c, { left: p, right: m } = e.current.getBoundingClientRect();
2303
+ n(Math.min(Math.max((d - p) / (m - p), 0), 1));
2241
2304
  };
2242
2305
  return z(() => {
2243
2306
  if (!o) return;
2244
- const u = () => a(!1), l = (E) => {
2307
+ const c = () => a(!1), d = (p) => {
2245
2308
  if (!e.current) return;
2246
- const { clientX: d } = E, { left: g, right: S } = e.current.getBoundingClientRect();
2247
- r(Math.min(Math.max((d - g) / (S - g), 0), 1));
2309
+ const { clientX: m } = p, { left: g, right: b } = e.current.getBoundingClientRect();
2310
+ n(Math.min(Math.max((m - g) / (b - g), 0), 1));
2248
2311
  };
2249
- return document.addEventListener("mousemove", l), document.addEventListener("mouseup", u), () => {
2250
- document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", u);
2312
+ return document.addEventListener("mousemove", d), document.addEventListener("mouseup", c), () => {
2313
+ document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", c);
2251
2314
  };
2252
2315
  }, [o]), {
2253
- value: n,
2316
+ value: r,
2254
2317
  scrubbing: o,
2255
2318
  scrub: s,
2256
- setValue: r
2319
+ setValue: n
2257
2320
  };
2258
- }, Xn = Q`
2321
+ }, Hn = K`
2259
2322
  position: relative;
2260
2323
  height: .4rem;
2261
2324
 
@@ -2296,7 +2359,7 @@ ${l}`),
2296
2359
  justify-content: center;
2297
2360
 
2298
2361
  text-shadow: 0 0 4px rgba(0, 0, 0, 1);
2299
- ${Se.bMedium.bold}
2362
+ ${he.bMedium.bold}
2300
2363
 
2301
2364
  position: absolute;
2302
2365
  top: -2.5rem;
@@ -2366,68 +2429,68 @@ ${l}`),
2366
2429
  object-fit: cover;
2367
2430
  }
2368
2431
  }
2369
- `, qn = () => {
2370
- const e = $.useActorRef(), t = $.useSelector((c) => c.context.media.currentTime), n = $.useSelector((c) => c.context.media.duration), r = $.useSelector((c) => c.context.thumbnails), o = Ue(je), a = Ne(null), { scrub: s, value: u } = Gn({ ref: a }), [l, E] = Z(void 0), d = (c) => {
2371
- const b = c.nativeEvent.offsetX / c.currentTarget.offsetWidth * (n ?? 0);
2372
- E(b);
2373
- }, g = () => {
2374
- a.current && E(void 0);
2375
- }, S = pe(
2376
- () => o.downloadedRanges?.map((c, v) => {
2377
- if ("startByteOffset" in c && "endByteOffset" in c && o.size) {
2378
- const b = c.startByteOffset / o.size, A = c.endByteOffset / o.size - b, f = b * 100;
2379
- return /* @__PURE__ */ h("div", { className: "loaded-part", style: { transform: `scaleX(${A})`, marginLeft: `${f}%` } }, v);
2380
- } else
2381
- return null;
2432
+ `, Kn = () => {
2433
+ const e = O.useActorRef(), t = O.useSelector((l) => l.context.media.currentTime), r = O.useSelector((l) => l.context.media.duration), n = O.useSelector((l) => l.context.indexes), o = O.useSelector((l) => l.context.thumbnails), a = Se(we), s = Ie(null), { scrub: c, value: d } = qn({ ref: s }), [p, m] = Q(void 0), g = (l) => {
2434
+ const S = l.nativeEvent.offsetX / l.currentTarget.offsetWidth * (r ?? 0);
2435
+ m(S);
2436
+ }, b = () => {
2437
+ s.current && m(void 0);
2438
+ }, x = pe(
2439
+ () => a.downloadedRanges?.map((l, v) => {
2440
+ if (!a.size || !r) return null;
2441
+ const S = n.filter((B) => l.startByteOffset <= B.pos && B.pos <= l.endByteOffset), A = S.at(0), f = S.at(-1);
2442
+ if (!A || !f) return null;
2443
+ const _ = A.timestamp / r, C = f.timestamp / r, F = Number((C - _).toFixed(2)), U = _ * 100;
2444
+ return /* @__PURE__ */ E("div", { className: "loaded-part", style: { transform: `scaleX(${F})`, marginLeft: `${U}%` } }, v);
2382
2445
  }) ?? [],
2383
- [o.downloadedRanges?.map(({ startByteOffset: c, endByteOffset: v }) => `${c}/${v}`).join(",")]
2384
- ), y = pe(() => {
2385
- if (!l || l < 0) return;
2386
- const c = Math.floor(l / 3600), v = Math.floor((l - c * 3600) / 60), b = Math.floor(l - c * 3600 - v * 60);
2387
- return `${c > 0 ? `${c}:` : ""}${v < 10 ? "0" : ""}${v}:${b < 10 ? "0" : ""}${b}`;
2388
- }, [l]);
2446
+ [r, n.length, a.downloadedRanges?.map(({ startByteOffset: l, endByteOffset: v }) => `${l}/${v}`).join(",")]
2447
+ ), h = pe(() => {
2448
+ if (!p || p < 0) return;
2449
+ const l = Math.floor(p / 3600), v = Math.floor((p - l * 3600) / 60), S = Math.floor(p - l * 3600 - v * 60);
2450
+ return `${l > 0 ? `${l}:` : ""}${v < 10 ? "0" : ""}${v}:${S < 10 ? "0" : ""}${S}`;
2451
+ }, [p]);
2389
2452
  z(() => {
2390
- if (!e || u === void 0 || !n) return;
2391
- const c = u * n;
2392
- e.send({ type: "SET_TIME", value: c });
2393
- }, [e, u, n]);
2394
- const p = pe(() => typeof n != "number" || typeof t != "number" ? 0 : 1 / ((n ?? 0) / (t ?? 0)), [n, t]), m = pe(() => {
2395
- if (!(!r.length || !l))
2396
- return r.find(
2397
- ({ timestamp: c, duration: v }) => c <= l && l <= c + v
2453
+ if (!e || d === void 0 || !r) return;
2454
+ const l = d * r;
2455
+ e.send({ type: "SET_TIME", value: l });
2456
+ }, [e, d, r]);
2457
+ const y = pe(() => typeof r != "number" || typeof t != "number" ? 0 : 1 / ((r ?? 0) / (t ?? 0)), [r, t]), u = pe(() => {
2458
+ if (!(!o.length || !p))
2459
+ return o.find(
2460
+ ({ timestamp: l, duration: v }) => l <= p && p <= l + v
2398
2461
  );
2399
- }, [r.length, l]);
2400
- return /* @__PURE__ */ I(
2462
+ }, [o.length, p]);
2463
+ return /* @__PURE__ */ $(
2401
2464
  "div",
2402
2465
  {
2403
- css: Xn,
2404
- ref: a,
2466
+ css: Hn,
2467
+ ref: s,
2405
2468
  className: "progress-bar",
2406
- onMouseMove: d,
2407
- onMouseOut: g,
2469
+ onMouseMove: g,
2470
+ onMouseOut: b,
2408
2471
  children: [
2409
- /* @__PURE__ */ h("div", { className: "background-bar" }),
2410
- l ? /* @__PURE__ */ h(
2472
+ /* @__PURE__ */ E("div", { className: "background-bar" }),
2473
+ p ? /* @__PURE__ */ E(
2411
2474
  "div",
2412
2475
  {
2413
2476
  className: "cursor-time",
2414
- style: { left: `clamp(1.8rem, ${1 / ((n ?? 0) / (l ?? 1)) * 100}%, calc(100% - 1.8rem))` },
2415
- children: y
2477
+ style: { left: `clamp(1.8rem, ${1 / ((r ?? 0) / (p ?? 1)) * 100}%, calc(100% - 1.8rem))` },
2478
+ children: h
2416
2479
  }
2417
2480
  ) : void 0,
2418
- /* @__PURE__ */ h("div", { className: "progress" }),
2419
- /* @__PURE__ */ h("div", { className: "loaded", children: S }),
2420
- /* @__PURE__ */ h("div", { className: "hover" }),
2421
- /* @__PURE__ */ h("div", { className: "play-container", children: /* @__PURE__ */ h("div", { className: "play", style: { transform: `scaleX(${p})` } }) }),
2422
- /* @__PURE__ */ h("div", { className: "chapters" }),
2423
- /* @__PURE__ */ h("div", { className: "scrubber" }),
2424
- /* @__PURE__ */ h("div", { className: "padding", onMouseDown: s }),
2425
- /* @__PURE__ */ h(
2481
+ /* @__PURE__ */ E("div", { className: "progress" }),
2482
+ /* @__PURE__ */ E("div", { className: "loaded", children: x }),
2483
+ /* @__PURE__ */ E("div", { className: "hover" }),
2484
+ /* @__PURE__ */ E("div", { className: "play-container", children: /* @__PURE__ */ E("div", { className: "play", style: { transform: `scaleX(${y})` } }) }),
2485
+ /* @__PURE__ */ E("div", { className: "chapters" }),
2486
+ /* @__PURE__ */ E("div", { className: "scrubber" }),
2487
+ /* @__PURE__ */ E("div", { className: "padding", onMouseDown: c }),
2488
+ /* @__PURE__ */ E(
2426
2489
  "div",
2427
2490
  {
2428
2491
  className: "thumbnail",
2429
- style: { left: `clamp(12.5rem, ${1 / ((n ?? 0) / (l ?? 1)) * 100}%, calc(100% - 12.5rem))` },
2430
- children: m ? /* @__PURE__ */ h("img", { src: m.url }) : void 0
2492
+ style: { left: `clamp(12.5rem, ${1 / ((r ?? 0) / (p ?? 1)) * 100}%, calc(100% - 12.5rem))` },
2493
+ children: u ? /* @__PURE__ */ E("img", { src: u.url }) : void 0
2431
2494
  }
2432
2495
  )
2433
2496
  ]
@@ -2435,9 +2498,9 @@ ${l}`),
2435
2498
  );
2436
2499
  }, Gt = (e) => {
2437
2500
  if (e === void 0) return "0:00";
2438
- const t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), r = Math.floor(e % 60);
2439
- return t > 0 ? `${t}:${n < 10 ? "0" : ""}${n}:${r < 10 ? "0" : ""}${r}` : `${n}:${r < 10 ? "0" : ""}${r}`;
2440
- }, Hn = (e, t) => `${Gt(e)} / ${Gt(t)}`, Kn = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-picture-in-picture'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'%20/%3e%3cpath%20d='M11%2019h-6a2%202%200%200%201%20-2%20-2v-10a2%202%200%200%201%202%20-2h14a2%202%200%200%201%202%202v4'%20/%3e%3cpath%20d='M14%2014m0%201a1%201%200%200%201%201%20-1h5a1%201%200%200%201%201%201v3a1%201%200%200%201%20-1%201h-5a1%201%200%200%201%20-1%20-1z'%20/%3e%3c/svg%3e", Jn = Q`
2501
+ const t = Math.floor(e / 3600), r = Math.floor(e % 3600 / 60), n = Math.floor(e % 60);
2502
+ return t > 0 ? `${t}:${r < 10 ? "0" : ""}${r}:${n < 10 ? "0" : ""}${n}` : `${r}:${n < 10 ? "0" : ""}${n}`;
2503
+ }, Jn = (e, t) => `${Gt(e)} / ${Gt(t)}`, Zn = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-picture-in-picture'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'%20/%3e%3cpath%20d='M11%2019h-6a2%202%200%200%201%20-2%20-2v-10a2%202%200%200%201%202%20-2h14a2%202%200%200%201%202%202v4'%20/%3e%3cpath%20d='M14%2014m0%201a1%201%200%200%201%201%20-1h5a1%201%200%200%201%201%201v3a1%201%200%200%201%20-1%201h-5a1%201%200%200%201%20-1%20-1z'%20/%3e%3c/svg%3e", Qn = K`
2441
2504
  position: relative;
2442
2505
 
2443
2506
  .popover {
@@ -2458,7 +2521,7 @@ position: relative;
2458
2521
 
2459
2522
  border-radius: 8px;
2460
2523
  background-color: rgba(28,28,28,0.95);
2461
- ${Se.bMedium.regular}
2524
+ ${he.bMedium.regular}
2462
2525
 
2463
2526
  z-index: 4;
2464
2527
 
@@ -2493,175 +2556,175 @@ position: relative;
2493
2556
 
2494
2557
  .secondary {
2495
2558
  color: #eee;
2496
- ${Se.bSmall.regular}
2559
+ ${he.bSmall.regular}
2497
2560
  }
2498
2561
  }
2499
2562
  }
2500
2563
  }
2501
- `, Zn = () => {
2502
- const e = $.useActorRef(), t = $.useSelector((p) => p.context.media.playbackRate), n = $.useSelector((p) => p.context.subtitleStreams), r = $.useSelector((p) => p.context.selectedSubtitleStreamIndex), [o, a] = Z(!1), [s, u] = Z(
2564
+ `, eo = () => {
2565
+ const e = O.useActorRef(), t = O.useSelector((h) => h.context.media.playbackRate), r = O.useSelector((h) => h.context.subtitleStreams), n = O.useSelector((h) => h.context.selectedSubtitleStreamIndex), [o, a] = Q(!1), [s, c] = Q(
2503
2566
  0
2504
2567
  /* Default */
2505
- ), l = Ne(null), E = () => {
2506
- a(!o), u(
2568
+ ), d = Ie(null), p = () => {
2569
+ a(!o), c(
2507
2570
  0
2508
2571
  /* Default */
2509
2572
  );
2510
- }, d = (p) => {
2511
- e.send({ type: "SET_PLAYBACK_RATE", playbackRate: p }), u(
2573
+ }, m = (h) => {
2574
+ e.send({ type: "SET_PLAYBACK_RATE", playbackRate: h }), c(
2512
2575
  0
2513
2576
  /* Default */
2514
2577
  );
2515
2578
  };
2516
2579
  z(() => {
2517
- const p = (m) => {
2518
- o && l.current && !l.current.contains(m.target) && E();
2580
+ const h = (y) => {
2581
+ o && d.current && !d.current.contains(y.target) && p();
2519
2582
  };
2520
- return document.addEventListener("mousedown", p), () => document.removeEventListener("mousedown", p);
2583
+ return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
2521
2584
  }, [o]);
2522
2585
  const g = pe(
2523
- () => n.map(({ header: p }) => ({ streamIndex: p.streamIndex, language: p.parsed.info.Title })),
2524
- [n.length]
2525
- ), S = (p) => () => {
2526
- e.send({ type: "SELECT_SUBTITLE_STREAM", streamIndex: p.streamIndex }), E();
2527
- }, y = (p) => () => {
2528
- u(p);
2586
+ () => r.map(({ header: h }) => ({ streamIndex: h.streamIndex, language: h.parsed.info.Title })),
2587
+ [r.length]
2588
+ ), b = (h) => () => {
2589
+ e.send({ type: "SELECT_SUBTITLE_STREAM", streamIndex: h.streamIndex }), p();
2590
+ }, x = (h) => () => {
2591
+ c(h);
2529
2592
  };
2530
- return /* @__PURE__ */ I("div", { css: Jn, ref: l, children: [
2531
- /* @__PURE__ */ h(
2532
- ge,
2593
+ return /* @__PURE__ */ $("div", { css: Qn, ref: d, children: [
2594
+ /* @__PURE__ */ E(
2595
+ ye,
2533
2596
  {
2534
2597
  id: "settings",
2535
2598
  disabled: o,
2536
- text: /* @__PURE__ */ h(
2599
+ text: /* @__PURE__ */ E(
2537
2600
  "button",
2538
2601
  {
2539
2602
  className: "settings",
2540
2603
  type: "button",
2541
- onClick: E,
2542
- children: /* @__PURE__ */ h(yr, {})
2604
+ onClick: p,
2605
+ children: /* @__PURE__ */ E(yr, {})
2543
2606
  }
2544
2607
  ),
2545
- toolTipText: /* @__PURE__ */ h("span", { children: "Settings" })
2608
+ toolTipText: /* @__PURE__ */ E("span", { children: "Settings" })
2546
2609
  }
2547
2610
  ),
2548
- o && s === 0 && /* @__PURE__ */ I("div", { className: "popover", children: [
2549
- /* @__PURE__ */ I("div", { onClick: y(
2611
+ o && s === 0 && /* @__PURE__ */ $("div", { className: "popover", children: [
2612
+ /* @__PURE__ */ $("div", { onClick: x(
2550
2613
  2
2551
2614
  /* Advanced */
2552
2615
  ), children: [
2553
- /* @__PURE__ */ h("span", { children: "Advanced" }),
2554
- /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(Ke, {}) })
2616
+ /* @__PURE__ */ E("span", { children: "Advanced" }),
2617
+ /* @__PURE__ */ E("div", { children: /* @__PURE__ */ E(Ke, {}) })
2555
2618
  ] }),
2556
- /* @__PURE__ */ I("div", { onClick: y(
2619
+ /* @__PURE__ */ $("div", { onClick: x(
2557
2620
  3
2558
2621
  /* SelectNewSources */
2559
2622
  ), children: [
2560
- /* @__PURE__ */ h("div", { children: "Select new sources" }),
2561
- /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(Ke, {}) })
2623
+ /* @__PURE__ */ E("div", { children: "Select new sources" }),
2624
+ /* @__PURE__ */ E("div", { children: /* @__PURE__ */ E(Ke, {}) })
2562
2625
  ] }),
2563
- /* @__PURE__ */ I("div", { onClick: y(
2626
+ /* @__PURE__ */ $("div", { onClick: x(
2564
2627
  4
2565
2628
  /* Subtitles */
2566
2629
  ), children: [
2567
- /* @__PURE__ */ h("div", { children: "Subtitles" }),
2568
- /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(Ke, {}) })
2630
+ /* @__PURE__ */ E("div", { children: "Subtitles" }),
2631
+ /* @__PURE__ */ E("div", { children: /* @__PURE__ */ E(Ke, {}) })
2569
2632
  ] }),
2570
- /* @__PURE__ */ I("div", { onClick: y(
2633
+ /* @__PURE__ */ $("div", { onClick: x(
2571
2634
  1
2572
2635
  /* PlaybackRate */
2573
2636
  ), children: [
2574
- /* @__PURE__ */ h("div", { children: "Playback speed" }),
2575
- /* @__PURE__ */ I("div", { children: [
2576
- /* @__PURE__ */ h("span", { className: "secondary", children: t === 1 ? "(Default)" : t.toFixed(2) }),
2577
- /* @__PURE__ */ h(Ke, {})
2637
+ /* @__PURE__ */ E("div", { children: "Playback speed" }),
2638
+ /* @__PURE__ */ $("div", { children: [
2639
+ /* @__PURE__ */ E("span", { className: "secondary", children: t === 1 ? "(Default)" : t.toFixed(2) }),
2640
+ /* @__PURE__ */ E(Ke, {})
2578
2641
  ] })
2579
2642
  ] })
2580
2643
  ] }),
2581
- o && s === 1 && /* @__PURE__ */ I("div", { className: "popover", children: [
2582
- /* @__PURE__ */ I("div", { onClick: y(
2644
+ o && s === 1 && /* @__PURE__ */ $("div", { className: "popover", children: [
2645
+ /* @__PURE__ */ $("div", { onClick: x(
2583
2646
  0
2584
2647
  /* Default */
2585
2648
  ), children: [
2586
- /* @__PURE__ */ h("div", { children: "Back" }),
2587
- /* @__PURE__ */ h("div", {})
2649
+ /* @__PURE__ */ E("div", { children: "Back" }),
2650
+ /* @__PURE__ */ E("div", {})
2588
2651
  ] }),
2589
- /* @__PURE__ */ I("div", { children: [
2590
- /* @__PURE__ */ h("div", { children: "Playback speed" }),
2591
- /* @__PURE__ */ I("div", { children: [
2592
- /* @__PURE__ */ h(
2652
+ /* @__PURE__ */ $("div", { children: [
2653
+ /* @__PURE__ */ E("div", { children: "Playback speed" }),
2654
+ /* @__PURE__ */ $("div", { children: [
2655
+ /* @__PURE__ */ E(
2593
2656
  "button",
2594
2657
  {
2595
2658
  type: "button",
2596
- onClick: () => d(0.5),
2659
+ onClick: () => m(0.5),
2597
2660
  children: "0.5x"
2598
2661
  }
2599
2662
  ),
2600
- /* @__PURE__ */ h(
2663
+ /* @__PURE__ */ E(
2601
2664
  "button",
2602
2665
  {
2603
2666
  type: "button",
2604
- onClick: () => d(1),
2667
+ onClick: () => m(1),
2605
2668
  children: "1x"
2606
2669
  }
2607
2670
  ),
2608
- /* @__PURE__ */ h(
2671
+ /* @__PURE__ */ E(
2609
2672
  "button",
2610
2673
  {
2611
2674
  type: "button",
2612
- onClick: () => d(1.5),
2675
+ onClick: () => m(1.5),
2613
2676
  children: "1.5x"
2614
2677
  }
2615
2678
  ),
2616
- /* @__PURE__ */ h(
2679
+ /* @__PURE__ */ E(
2617
2680
  "button",
2618
2681
  {
2619
2682
  type: "button",
2620
- onClick: () => d(2),
2683
+ onClick: () => m(2),
2621
2684
  children: "2x"
2622
2685
  }
2623
2686
  )
2624
2687
  ] })
2625
2688
  ] })
2626
2689
  ] }),
2627
- o && s === 2 && /* @__PURE__ */ h("div", { className: "popover", children: /* @__PURE__ */ I("div", { onClick: y(
2690
+ o && s === 2 && /* @__PURE__ */ E("div", { className: "popover", children: /* @__PURE__ */ $("div", { onClick: x(
2628
2691
  0
2629
2692
  /* Default */
2630
2693
  ), children: [
2631
- /* @__PURE__ */ h("div", { children: "Back" }),
2632
- /* @__PURE__ */ h("div", {})
2694
+ /* @__PURE__ */ E("div", { children: "Back" }),
2695
+ /* @__PURE__ */ E("div", {})
2633
2696
  ] }) }),
2634
- o && s === 3 && /* @__PURE__ */ h("div", { className: "popover", children: /* @__PURE__ */ I("div", { onClick: y(
2697
+ o && s === 3 && /* @__PURE__ */ E("div", { className: "popover", children: /* @__PURE__ */ $("div", { onClick: x(
2635
2698
  0
2636
2699
  /* Default */
2637
2700
  ), children: [
2638
- /* @__PURE__ */ h("div", { children: "Back" }),
2639
- /* @__PURE__ */ h("div", {})
2701
+ /* @__PURE__ */ E("div", { children: "Back" }),
2702
+ /* @__PURE__ */ E("div", {})
2640
2703
  ] }) }),
2641
- o && s === 4 && /* @__PURE__ */ I("div", { className: "popover", children: [
2642
- g.map((p) => /* @__PURE__ */ I(
2704
+ o && s === 4 && /* @__PURE__ */ $("div", { className: "popover", children: [
2705
+ g.map((h) => /* @__PURE__ */ $(
2643
2706
  "div",
2644
2707
  {
2645
- onClick: S(p),
2708
+ onClick: b(h),
2646
2709
  children: [
2647
- /* @__PURE__ */ h("div", { children: p.language }),
2648
- /* @__PURE__ */ h("div", { children: r === p.streamIndex ? "✓" : "" })
2710
+ /* @__PURE__ */ E("div", { children: h.language }),
2711
+ /* @__PURE__ */ E("div", { children: n === h.streamIndex ? "✓" : "" })
2649
2712
  ]
2650
2713
  },
2651
- p.streamIndex
2714
+ h.streamIndex
2652
2715
  )),
2653
- /* @__PURE__ */ I("div", { onClick: y(
2716
+ /* @__PURE__ */ $("div", { onClick: x(
2654
2717
  0
2655
2718
  /* Default */
2656
2719
  ), children: [
2657
- /* @__PURE__ */ h("div", { children: "Back" }),
2658
- /* @__PURE__ */ h("div", {})
2720
+ /* @__PURE__ */ E("div", { children: "Back" }),
2721
+ /* @__PURE__ */ E("div", {})
2659
2722
  ] })
2660
2723
  ] })
2661
2724
  ] });
2662
- }, Qn = {
2725
+ }, to = {
2663
2726
  hover: "rgba(255, 255, 255, 0.13)"
2664
- }, eo = Q`
2727
+ }, ro = K`
2665
2728
  display: flex;
2666
2729
  align-items: center;
2667
2730
 
@@ -2692,59 +2755,59 @@ position: relative;
2692
2755
  width: 10px;
2693
2756
  height: 10px;
2694
2757
  }
2695
- `, to = ({ value: e, onChange: t }) => {
2696
- const n = $.useSelector((c) => c.context.media.volume), r = $.useSelector((c) => c.context.media.muted), o = Ne(null), [a, s] = Z(!1), u = (c) => {
2758
+ `, no = ({ value: e, onChange: t }) => {
2759
+ const r = O.useSelector((u) => u.context.media.volume), n = O.useSelector((u) => u.context.media.muted), o = Ie(null), [a, s] = Q(!1), c = (u) => {
2697
2760
  if (!o.current) return e;
2698
- const v = o.current.getBoundingClientRect(), b = c - v.left;
2699
- return Math.max(0, Math.min(b, v.width)) / v.width;
2700
- }, l = (c) => {
2761
+ const l = o.current.getBoundingClientRect(), v = u - l.left;
2762
+ return Math.max(0, Math.min(v, l.width)) / l.width;
2763
+ }, d = (u) => {
2701
2764
  s(!0);
2702
- const v = u(c.clientX);
2703
- t(v);
2704
- }, E = (c) => {
2765
+ const l = c(u.clientX);
2766
+ t(l);
2767
+ }, p = (u) => {
2705
2768
  if (!a) return;
2706
- const v = u(c.clientX);
2707
- t(v);
2708
- }, d = () => {
2769
+ const l = c(u.clientX);
2770
+ t(l);
2771
+ }, m = () => {
2709
2772
  s(!1);
2710
- }, g = (c) => {
2711
- c.preventDefault();
2712
- const v = 0.05;
2713
- let b = e;
2714
- c.deltaY < 0 ? b = Math.min(1, b + v) : b = Math.max(0, b - v), t(b);
2773
+ }, g = (u) => {
2774
+ u.preventDefault();
2775
+ const l = 0.05;
2776
+ let v = e;
2777
+ u.deltaY < 0 ? v = Math.min(1, v + l) : v = Math.max(0, v - l), t(v);
2715
2778
  };
2716
- z(() => (window.addEventListener("mousemove", E), window.addEventListener("mouseup", d), () => {
2717
- window.removeEventListener("mousemove", E), window.removeEventListener("mouseup", d);
2779
+ z(() => (window.addEventListener("mousemove", p), window.addEventListener("mouseup", m), () => {
2780
+ window.removeEventListener("mousemove", p), window.removeEventListener("mouseup", m);
2718
2781
  }), [a]), z(() => {
2719
- const c = o.current;
2720
- return c && c.addEventListener("wheel", g, { passive: !1 }), () => {
2721
- c && c.removeEventListener("wheel", g);
2782
+ const u = o.current;
2783
+ return u && u.addEventListener("wheel", g, { passive: !1 }), () => {
2784
+ u && u.removeEventListener("wheel", g);
2722
2785
  };
2723
2786
  }, [e]);
2724
- const S = e * 100, y = "#fff", p = "#3A3A3A", m = pe(
2725
- () => Math.round(r ? 0 : xt(n) * 100),
2726
- [n]
2787
+ const b = e * 100, x = "#fff", h = "#3A3A3A", y = pe(
2788
+ () => Math.round(n ? 0 : St(r) * 100),
2789
+ [r]
2727
2790
  );
2728
- return /* @__PURE__ */ h(
2729
- ge,
2791
+ return /* @__PURE__ */ E(
2792
+ ye,
2730
2793
  {
2731
2794
  id: "volume-slider",
2732
- text: /* @__PURE__ */ h(
2795
+ text: /* @__PURE__ */ E(
2733
2796
  "div",
2734
2797
  {
2735
2798
  ref: o,
2736
- css: eo,
2737
- onMouseDown: l,
2738
- children: /* @__PURE__ */ h(
2799
+ css: ro,
2800
+ onMouseDown: d,
2801
+ children: /* @__PURE__ */ E(
2739
2802
  "div",
2740
2803
  {
2741
2804
  style: {
2742
2805
  background: `linear-gradient(to right,
2743
- ${y} 0% ${S}%,
2744
- ${p} ${S}% 100%
2806
+ ${x} 0% ${b}%,
2807
+ ${h} ${b}% 100%
2745
2808
  )`
2746
2809
  },
2747
- children: /* @__PURE__ */ h(
2810
+ children: /* @__PURE__ */ E(
2748
2811
  "div",
2749
2812
  {
2750
2813
  className: "volume-handle",
@@ -2757,13 +2820,13 @@ position: relative;
2757
2820
  )
2758
2821
  }
2759
2822
  ),
2760
- toolTipText: /* @__PURE__ */ I("div", { className: "volume-value", children: [
2761
- m,
2823
+ toolTipText: /* @__PURE__ */ $("div", { className: "volume-value", children: [
2824
+ y,
2762
2825
  "%"
2763
2826
  ] })
2764
2827
  }
2765
2828
  );
2766
- }, ro = Q`
2829
+ }, oo = K`
2767
2830
  position: relative;
2768
2831
  display: flex;
2769
2832
  align-items: center;
@@ -2788,7 +2851,7 @@ position: relative;
2788
2851
  border-radius: 4px;
2789
2852
 
2790
2853
  .volume-value {
2791
- ${Se.bMedium.regular};
2854
+ ${he.bMedium.regular};
2792
2855
  color: #ffffff;
2793
2856
  }
2794
2857
  }
@@ -2802,39 +2865,39 @@ position: relative;
2802
2865
 
2803
2866
  pointer-events: auto;
2804
2867
  }
2805
- `, no = ({ ref: e }) => {
2806
- const t = $.useActorRef(), n = $.useSelector((s) => s.context.media.volume), r = $.useSelector((s) => s.context.media.muted), o = pe(() => xt(n), [n]), a = (s, u) => t.send({
2868
+ `, io = ({ ref: e }) => {
2869
+ const t = O.useActorRef(), r = O.useSelector((s) => s.context.media.volume), n = O.useSelector((s) => s.context.media.muted), o = pe(() => St(r), [r]), a = (s, c) => t.send({
2807
2870
  type: "SET_VOLUME",
2808
- muted: u,
2871
+ muted: c,
2809
2872
  volume: dr(s)
2810
2873
  });
2811
- return /* @__PURE__ */ I("div", { css: ro, children: [
2812
- /* @__PURE__ */ h(
2813
- ge,
2874
+ return /* @__PURE__ */ $("div", { css: oo, children: [
2875
+ /* @__PURE__ */ E(
2876
+ ye,
2814
2877
  {
2815
2878
  id: "sound",
2816
- text: /* @__PURE__ */ h(
2879
+ text: /* @__PURE__ */ E(
2817
2880
  "button",
2818
2881
  {
2819
2882
  className: "sound",
2820
2883
  type: "button",
2821
- onClick: () => a(o, !r),
2884
+ onClick: () => a(o, !n),
2822
2885
  ref: e,
2823
- children: r || n === 0 ? /* @__PURE__ */ h(Sr, { size: 18, color: "#fff" }) : n <= 0.5 ? /* @__PURE__ */ h(xr, { size: 18, color: "#fff" }) : /* @__PURE__ */ h(Tr, { size: 18, color: "#fff" })
2886
+ children: n || r === 0 ? /* @__PURE__ */ E(xr, { size: 18, color: "#fff" }) : r <= 0.5 ? /* @__PURE__ */ E(Sr, { size: 18, color: "#fff" }) : /* @__PURE__ */ E(Tr, { size: 18, color: "#fff" })
2824
2887
  }
2825
2888
  ),
2826
- toolTipText: /* @__PURE__ */ h("span", { children: r ? "Unmute (m)" : "Mute (m)" })
2889
+ toolTipText: /* @__PURE__ */ E("span", { children: n ? "Unmute (m)" : "Mute (m)" })
2827
2890
  }
2828
2891
  ),
2829
- /* @__PURE__ */ h("div", { className: "volume-slider-container", children: /* @__PURE__ */ h("div", { className: "volume-slider-background", children: /* @__PURE__ */ h(
2830
- to,
2892
+ /* @__PURE__ */ E("div", { className: "volume-slider-container", children: /* @__PURE__ */ E("div", { className: "volume-slider-background", children: /* @__PURE__ */ E(
2893
+ no,
2831
2894
  {
2832
- value: r ? 0 : o,
2895
+ value: n ? 0 : o,
2833
2896
  onChange: (s) => a(s, !1)
2834
2897
  }
2835
2898
  ) }) })
2836
2899
  ] });
2837
- }, oo = Q`
2900
+ }, ao = K`
2838
2901
  position: absolute;
2839
2902
  bottom: 0;
2840
2903
  width: 100%;
@@ -2918,14 +2981,14 @@ position: relative;
2918
2981
  cursor: pointer;
2919
2982
 
2920
2983
  :hover {
2921
- background-color: ${Qn.hover};
2984
+ background-color: ${to.hover};
2922
2985
  }
2923
2986
  }
2924
2987
  }
2925
2988
 
2926
2989
  .left {
2927
2990
  .time {
2928
- ${Se.bMedium.regular}
2991
+ ${he.bMedium.regular}
2929
2992
  }
2930
2993
  }
2931
2994
  .right {
@@ -2946,117 +3009,116 @@ position: relative;
2946
3009
  }
2947
3010
  }
2948
3011
  }
2949
- `, io = ({
2950
- containerRef: e
2951
- }) => {
2952
- const t = $.useActorRef(), n = Ue(je), r = $.useSelector((m) => m.context.media.paused), o = $.useSelector((m) => m.context.media.volume), a = $.useSelector((m) => m.context.media.muted), s = $.useSelector((m) => m.context.media.currentTime), u = $.useSelector((m) => m.context.media.duration), [l, E] = Z(), [d, g] = Z(!1);
3012
+ `, so = ({ mediaInformation: e, containerRef: t }) => {
3013
+ const r = O.useActorRef(), n = Se(we), o = O.useSelector((u) => u.context.media.paused), a = O.useSelector((u) => u.context.media.volume), s = O.useSelector((u) => u.context.media.muted), c = O.useSelector((u) => u.context.media.currentTime), d = O.useSelector((u) => u.context.media.duration), [p, m] = Q(), [g, b] = Q(!1);
2953
3014
  z(() => {
2954
- const m = () => {
2955
- g(!!document.fullscreenElement);
3015
+ const u = () => {
3016
+ b(!!document.fullscreenElement);
2956
3017
  };
2957
- return document.addEventListener("fullscreenchange", m), () => {
2958
- document.removeEventListener("fullscreenchange", m);
3018
+ return document.addEventListener("fullscreenchange", u), () => {
3019
+ document.removeEventListener("fullscreenchange", u);
2959
3020
  };
2960
3021
  }, []);
2961
- const S = () => {
2962
- document.fullscreenElement ? document.exitFullscreen() : e.current && e.current.requestFullscreen();
2963
- }, y = ot(({ direction: m, stepSize: c }) => {
2964
- if (!t) return;
2965
- const v = xt(o), b = m === "up" ? c : -c, w = Math.max(0, Math.min(1, v + b)), A = dr(w);
2966
- t.send({
3022
+ const x = () => {
3023
+ document.fullscreenElement ? document.exitFullscreen() : t.current && t.current.requestFullscreen();
3024
+ }, h = ot(({ direction: u, stepSize: l }) => {
3025
+ if (!r) return;
3026
+ const v = St(a), S = u === "up" ? l : -l, A = Math.max(0, Math.min(1, v + S)), f = dr(A);
3027
+ r.send({
2967
3028
  type: "SET_VOLUME",
2968
- muted: a,
2969
- volume: A
3029
+ muted: s,
3030
+ volume: f
2970
3031
  });
2971
- }, [t.id, a, o]);
3032
+ }, [r.id, s, a]);
2972
3033
  z(() => {
2973
- const m = (c) => {
3034
+ const u = (l) => {
2974
3035
  let v = !0;
2975
- if (c.key === "f") S();
2976
- else if (c.key === "k") nt(t, r, u, s);
2977
- else if (c.key === " ") nt(t, r, u, s);
2978
- else if (c.key === "m")
2979
- t.send({ type: "SET_VOLUME", muted: !a, volume: o });
2980
- else if (c.key === "ArrowUp")
2981
- y({ direction: "up", stepSize: 0.05 });
2982
- else if (c.key === "ArrowDown")
2983
- y({ direction: "down", stepSize: 0.05 });
2984
- else if (c.key === "ArrowRight") {
2985
- if (!u) return;
2986
- s + 5 >= u ? t.send({ type: "SET_TIME", value: u }) : t.send({ type: "SET_TIME", value: s + 5 });
2987
- } else c.key === "ArrowLeft" ? s - 5 < 0 ? t.send({ type: "SET_TIME", value: 0 }) : t.send({ type: "SET_TIME", value: s - 5 }) : v = !1;
2988
- v && c.preventDefault();
3036
+ if (l.key === "f") x();
3037
+ else if (l.key === "k") nt(r, o, d, c);
3038
+ else if (l.key === " ") nt(r, o, d, c);
3039
+ else if (l.key === "m")
3040
+ r.send({ type: "SET_VOLUME", muted: !s, volume: a });
3041
+ else if (l.key === "ArrowUp")
3042
+ h({ direction: "up", stepSize: 0.05 });
3043
+ else if (l.key === "ArrowDown")
3044
+ h({ direction: "down", stepSize: 0.05 });
3045
+ else if (l.key === "ArrowRight") {
3046
+ if (!d) return;
3047
+ c + 5 >= d ? r.send({ type: "SET_TIME", value: d }) : r.send({ type: "SET_TIME", value: c + 5 });
3048
+ } else l.key === "ArrowLeft" ? c - 5 < 0 ? r.send({ type: "SET_TIME", value: 0 }) : r.send({ type: "SET_TIME", value: c - 5 }) : v = !1;
3049
+ v && l.preventDefault();
2989
3050
  };
2990
- return window.addEventListener("keydown", m), () => window.removeEventListener("keydown", m);
2991
- }, [t, o, a, r, s, u]);
2992
- const p = ot((m) => {
2993
- m.preventDefault(), m.deltaY < 0 ? y({ direction: "up", stepSize: 0.05 }) : y({ direction: "down", stepSize: 0.05 });
2994
- }, [y]);
3051
+ return window.addEventListener("keydown", u), () => window.removeEventListener("keydown", u);
3052
+ }, [r, a, s, o, c, d]);
3053
+ const y = ot((u) => {
3054
+ u.preventDefault(), u.deltaY < 0 ? h({ direction: "up", stepSize: 0.05 }) : h({ direction: "down", stepSize: 0.05 });
3055
+ }, [h]);
2995
3056
  return z(() => {
2996
- if (l)
2997
- return l.addEventListener("wheel", p, { passive: !1 }), () => l.removeEventListener("wheel", p);
2998
- }, [l, y]), /* @__PURE__ */ I("div", { css: oo, style: { ...n.hideUI ? { opacity: "0", pointerEvents: "none" } : {} }, children: [
2999
- /* @__PURE__ */ h(qn, {}),
3000
- /* @__PURE__ */ I("div", { className: "actions", children: [
3001
- /* @__PURE__ */ I("div", { className: "left", children: [
3002
- /* @__PURE__ */ h(
3003
- ge,
3057
+ if (p)
3058
+ return p.addEventListener("wheel", y, { passive: !1 }), () => p.removeEventListener("wheel", y);
3059
+ }, [p, h]), /* @__PURE__ */ $("div", { css: ao, style: { ...n.hideUI ? { opacity: "0", pointerEvents: "none" } : {} }, children: [
3060
+ /* @__PURE__ */ E(Kn, {}),
3061
+ /* @__PURE__ */ $("div", { className: "actions", children: [
3062
+ /* @__PURE__ */ $("div", { className: "left", children: [
3063
+ /* @__PURE__ */ E(
3064
+ ye,
3004
3065
  {
3005
3066
  id: "play",
3006
3067
  tooltipPlace: "top-start",
3007
- text: /* @__PURE__ */ h(
3068
+ text: /* @__PURE__ */ E(
3008
3069
  "button",
3009
3070
  {
3010
3071
  className: "play",
3011
3072
  type: "button",
3012
- onClick: () => nt(t, r, u, s),
3013
- children: u === s ? /* @__PURE__ */ h(wr, {}) : r ? /* @__PURE__ */ h(Rr, {}) : /* @__PURE__ */ h(Ar, {})
3073
+ onClick: () => nt(r, o, d, c),
3074
+ children: d === c ? /* @__PURE__ */ E(wr, {}) : o ? /* @__PURE__ */ E(Rr, {}) : /* @__PURE__ */ E(Ar, {})
3014
3075
  }
3015
3076
  ),
3016
- toolTipText: /* @__PURE__ */ h("span", { children: u === s ? "Replay (k)" : r ? "Play (k)" : "Pause (k)" })
3077
+ toolTipText: /* @__PURE__ */ E("span", { children: d === c ? "Replay (k)" : o ? "Play (k)" : "Pause (k)" })
3017
3078
  }
3018
3079
  ),
3019
- /* @__PURE__ */ h(no, { ref: E }),
3020
- /* @__PURE__ */ h("div", { className: "time", children: Hn(s, u) })
3080
+ /* @__PURE__ */ E(io, { ref: m }),
3081
+ /* @__PURE__ */ E("div", { className: "time", children: Jn(c, d) })
3021
3082
  ] }),
3022
- /* @__PURE__ */ I("div", { className: "right", children: [
3023
- /* @__PURE__ */ h(Zn, {}),
3024
- /* @__PURE__ */ h(
3025
- ge,
3083
+ /* @__PURE__ */ $("div", { className: "right", children: [
3084
+ e,
3085
+ /* @__PURE__ */ E(eo, {}),
3086
+ /* @__PURE__ */ E(
3087
+ ye,
3026
3088
  {
3027
3089
  id: "picture-in-picture",
3028
- text: /* @__PURE__ */ h(
3090
+ text: /* @__PURE__ */ E(
3029
3091
  "button",
3030
3092
  {
3031
3093
  className: "picture-in-picture",
3032
3094
  type: "button",
3033
- children: /* @__PURE__ */ h("img", { src: Kn })
3095
+ children: /* @__PURE__ */ E("img", { src: Zn })
3034
3096
  }
3035
3097
  ),
3036
- toolTipText: /* @__PURE__ */ h("span", { children: "Picture in picture" })
3098
+ toolTipText: /* @__PURE__ */ E("span", { children: "Picture in picture" })
3037
3099
  }
3038
3100
  ),
3039
- /* @__PURE__ */ h(
3040
- ge,
3101
+ /* @__PURE__ */ E(
3102
+ ye,
3041
3103
  {
3042
3104
  id: "full-screen",
3043
3105
  tooltipPlace: "top-end",
3044
- text: /* @__PURE__ */ h(
3106
+ text: /* @__PURE__ */ E(
3045
3107
  "button",
3046
3108
  {
3047
3109
  className: "full-screen",
3048
3110
  type: "button",
3049
- onClick: S,
3050
- children: d ? /* @__PURE__ */ h(_r, {}) : /* @__PURE__ */ h(Cr, {})
3111
+ onClick: x,
3112
+ children: g ? /* @__PURE__ */ E(_r, {}) : /* @__PURE__ */ E(Cr, {})
3051
3113
  }
3052
3114
  ),
3053
- toolTipText: /* @__PURE__ */ h("span", { children: d ? "Exit full screen (f)" : "Full screen (f)" })
3115
+ toolTipText: /* @__PURE__ */ E("span", { children: g ? "Exit full screen (f)" : "Full screen (f)" })
3054
3116
  }
3055
3117
  )
3056
3118
  ] })
3057
3119
  ] })
3058
3120
  ] });
3059
- }, ao = Q`
3121
+ }, co = K`
3060
3122
  position: relative;
3061
3123
  background-color: black;
3062
3124
  display: flex;
@@ -3088,84 +3150,85 @@ position: relative;
3088
3150
  &.hide {
3089
3151
  cursor: none;
3090
3152
  }
3091
- `, so = ({ children: e }) => {
3092
- const t = $.useActorRef(), n = Ue(je), r = $.useSelector((d) => d.context.media.paused), o = $.useSelector((d) => d.context.media.currentTime), a = $.useSelector((d) => d.context.media.duration), s = Ne(), u = Ne(null);
3093
- return /* @__PURE__ */ I(
3153
+ `, uo = ({ children: e, mediaInformation: t, loadingInformation: r }) => {
3154
+ const n = O.useActorRef(), o = Se(we), a = O.useSelector((b) => b.context.media.paused), s = O.useSelector((b) => b.context.media.currentTime), c = O.useSelector((b) => b.context.media.duration), d = Ie(), p = Ie(null);
3155
+ return /* @__PURE__ */ $(
3094
3156
  "div",
3095
3157
  {
3096
- css: ao,
3097
- ref: u,
3098
- onMouseMove: (d) => {
3099
- n.update({ ...n, hideUI: !1 }), s.current && clearInterval(s.current);
3100
- const g = setTimeout(() => {
3101
- n.update({ ...n, hideUI: !0 });
3158
+ css: co,
3159
+ ref: p,
3160
+ onMouseMove: (b) => {
3161
+ o.update({ ...o, hideUI: !1 }), d.current && clearInterval(d.current);
3162
+ const x = setTimeout(() => {
3163
+ o.update({ ...o, hideUI: !0 });
3102
3164
  }, 3e3);
3103
- s.current = g;
3165
+ d.current = x;
3104
3166
  },
3105
- onMouseOut: (d) => {
3106
- d.currentTarget.parentElement !== d.relatedTarget && d.relatedTarget !== null || n.update({ ...n, hideUI: !0 });
3167
+ onMouseOut: (b) => {
3168
+ b.currentTarget.parentElement !== b.relatedTarget && b.relatedTarget !== null || o.update({ ...o, hideUI: !0 });
3107
3169
  },
3108
- className: n.hideUI ? "hide" : "",
3170
+ className: o.hideUI ? "hide" : "",
3109
3171
  children: [
3110
- /* @__PURE__ */ h(Wn, {}),
3111
- /* @__PURE__ */ h(io, { containerRef: u }),
3112
- /* @__PURE__ */ h(
3172
+ /* @__PURE__ */ E(Gn, { loadingInformation: r }),
3173
+ /* @__PURE__ */ E(so, { mediaInformation: t, containerRef: p }),
3174
+ /* @__PURE__ */ E(
3113
3175
  "div",
3114
3176
  {
3115
3177
  className: "video",
3116
- onClick: () => nt(t, r, a, o),
3178
+ onClick: () => nt(n, a, c, s),
3117
3179
  children: e
3118
3180
  }
3119
3181
  )
3120
3182
  ]
3121
3183
  }
3122
3184
  );
3123
- }, co = 25e5, uo = Q`
3185
+ }, lo = 25e5, fo = K`
3124
3186
  display: flex;
3125
3187
  justify-content: center;
3126
3188
  background-color: #111;
3127
3189
  height: 100%;
3128
3190
  width: 100%;
3129
3191
  overflow: hidden;
3130
- `, lo = ({ options: e, videoElement: t, children: n }) => {
3131
- const r = Ue(je), o = $.useActorRef(), a = $.useSelector((m) => m.value), s = $.useSelector((m) => m.context.media.volume), u = $.useSelector((m) => m.context.media.muted), l = $.useSelector((m) => m.context.isReady), [E, d] = Bt("mediaVolume", "1"), [g, S] = Bt("mediaMute", "false"), [y, p] = Z(!0);
3132
- return z(
3133
- () => o.send({
3192
+ `, mo = ({ options: e, videoElement: t, children: r }) => {
3193
+ const n = Se(we), o = O.useActorRef(), a = O.useSelector((u) => u.value), s = O.useSelector((u) => u.context.media.volume), c = O.useSelector((u) => u.context.media.muted), d = O.useSelector((u) => u.context.isReady), p = O.useSelector((u) => u.context.media.duration), [m, g] = Bt("mediaVolume", "1"), [b, x] = Bt("mediaMute", "false"), [h, y] = Q(!0);
3194
+ return z(() => {
3195
+ o.send({
3134
3196
  type: "MEDIA_SOURCE_OPTIONS",
3135
3197
  mediaSourceOptions: {}
3136
- }),
3137
- []
3138
- ), z(
3198
+ });
3199
+ }, []), z(() => {
3200
+ !e.autoplay || p === void 0 || o.send({ type: "PLAY" });
3201
+ }, [p, e.autoplay]), z(
3139
3202
  () => {
3140
- !o || !l || !r.downloadedRanges || o.send({
3203
+ !o || !d || !n.downloadedRanges || o.send({
3141
3204
  type: "DOWNLOADED_RANGES_UPDATED",
3142
- downloadedRanges: r.downloadedRanges
3205
+ downloadedRanges: n.downloadedRanges
3143
3206
  });
3144
3207
  },
3145
3208
  [
3146
3209
  o,
3147
- l,
3148
- (r.downloadedRanges?.map((m) => `${m.startByteOffset}-${m.endByteOffset}`) ?? []).join(",")
3210
+ d,
3211
+ (n.downloadedRanges?.map((u) => `${u.startByteOffset}-${u.endByteOffset}`) ?? []).join(",")
3149
3212
  ]
3150
3213
  ), z(() => {
3151
- const { size: m, read: c, publicPath: v, libavWorkerUrl: b, jassubWasmUrl: w } = e;
3152
- !c || !m || !v || !b || !w || o.send({
3214
+ const { size: u, read: l, publicPath: v, libavWorkerUrl: S, jassubWasmUrl: A } = e;
3215
+ !l || !u || !v || !S || !A || o.send({
3153
3216
  type: "REMUXER_OPTIONS",
3154
3217
  remuxerOptions: {
3155
3218
  publicPath: v,
3156
- workerUrl: b,
3157
- bufferSize: e.bufferSize ?? co,
3158
- length: m,
3159
- read: c
3219
+ workerUrl: S,
3220
+ bufferSize: e.bufferSize ?? lo,
3221
+ length: u,
3222
+ read: l
3160
3223
  }
3161
3224
  });
3162
3225
  }, [e.read, e.size, e.publicPath, e.libavWorkerUrl, e.bufferSize]), z(() => {
3163
- const { jassubWorkerUrl: m, jassubWasmUrl: c, jassubModernWasmUrl: v } = e;
3164
- !m || !c || !v || o.send({
3226
+ const { jassubWorkerUrl: u, jassubWasmUrl: l, jassubModernWasmUrl: v } = e;
3227
+ !u || !l || !v || o.send({
3165
3228
  type: "SUBTITLES_RENDERER_OPTIONS",
3166
3229
  subtitlesRendererOptions: {
3167
- workerUrl: m,
3168
- wasmUrl: c,
3230
+ workerUrl: u,
3231
+ wasmUrl: l,
3169
3232
  modernWasmUrl: v
3170
3233
  }
3171
3234
  });
@@ -3175,32 +3238,32 @@ position: relative;
3175
3238
  videoElement: t
3176
3239
  });
3177
3240
  }, [t]), z(() => {
3178
- l && (y ? (o.send({
3241
+ d && (h ? (o.send({
3179
3242
  type: "SET_VOLUME",
3180
- muted: g === "true",
3181
- volume: isNaN(Number(E)) ? 1 : Number(E)
3182
- }), p(!1)) : (d(s.toString()), S(u ? "true" : "false")));
3183
- }, [l, s, u, y]), z(() => {
3243
+ muted: b === "true",
3244
+ volume: isNaN(Number(m)) ? 1 : Number(m)
3245
+ }), y(!1)) : (g(s.toString()), x(c ? "true" : "false")));
3246
+ }, [d, s, c, h]), z(() => {
3184
3247
  if (a === "OK")
3185
3248
  return () => {
3186
3249
  o.send({ type: "DESTROY" });
3187
3250
  };
3188
- }, [a]), /* @__PURE__ */ h("div", { css: uo, children: /* @__PURE__ */ h(so, { children: n }) });
3189
- }, xo = ({ ref: e, ...t }) => {
3190
- const n = (l) => o({ ...l, update: n }), [r, o] = Z({ update: n }), [a, s] = Z(), u = ot((l) => {
3191
- typeof e == "function" ? e(l) : e && "current" in e && (e.current = l), s(l ?? void 0);
3251
+ }, [a]), /* @__PURE__ */ E("div", { css: fo, children: /* @__PURE__ */ E(uo, { mediaInformation: e.mediaInformation, loadingInformation: e.loadingInformation, children: r }) });
3252
+ }, wo = ({ ref: e, ...t }) => {
3253
+ const r = (d) => o({ ...d, update: r }), [n, o] = Q({ update: r }), [a, s] = Q(), c = ot((d) => {
3254
+ typeof e == "function" ? e(d) : e && "current" in e && (e.current = d), s(d ?? void 0);
3192
3255
  }, []);
3193
3256
  return z(() => {
3194
- o((l) => ({
3195
- ...l,
3257
+ o((d) => ({
3258
+ ...d,
3196
3259
  videoElement: a,
3197
3260
  title: t?.title,
3198
3261
  size: t?.size,
3199
3262
  downloadedRanges: t?.downloadedRanges
3200
3263
  }));
3201
- }, [a, t?.title, t?.size, t?.downloadedRanges]), /* @__PURE__ */ h(je.Provider, { value: r, children: /* @__PURE__ */ h($.Provider, { children: /* @__PURE__ */ h(lo, { options: t, videoElement: a, children: /* @__PURE__ */ h("video", { ref: u, controls: !1 }) }) }) });
3264
+ }, [a, t?.title, t?.size, t?.downloadedRanges]), /* @__PURE__ */ E(we.Provider, { value: n, children: /* @__PURE__ */ E(O.Provider, { children: /* @__PURE__ */ E(mo, { options: t, videoElement: a, children: /* @__PURE__ */ E("video", { ref: c, controls: !1 }) }) }) });
3202
3265
  };
3203
3266
  export {
3204
- lo as FKNVideoRoot,
3205
- xo as default
3267
+ mo as FKNVideoRoot,
3268
+ wo as default
3206
3269
  };