@aigamo/hydrangean-diva 0.0.1-alpha.19 → 0.0.1-alpha.21

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/dist/index.es.js CHANGED
@@ -1,90 +1,90 @@
1
- import { makeObservable as Pr, action as y, computed as A, observable as X, reaction as Rr } from "mobx";
2
- import * as ee from "react";
3
- import Dt, { forwardRef as wr, useContext as at, memo as ne, useState as W, useCallback as N, useMemo as De, createContext as zt, useEffect as Or, useLayoutEffect as _r } from "react";
4
- import Ar from "@emotion/cache";
5
- import { useNostalgicDiva as re, findVideoService as kr, NostalgicDivaProvider as Mr, NostalgicDiva as Fr, nullPlayerController as jr } from "@aigamo/nostalgic-diva";
6
- import { EuiButton as te, useGeneratedHtmlId as Nr, EuiModalHeaderTitle as $r, EuiModalHeader as Dr, EuiForm as zr, EuiFormRow as rt, EuiFieldText as St, EuiModalBody as Lr, EuiModalFooter as Vr, EuiButtonEmpty as Lt, EuiModal as Yr, useEuiTheme as Vt, EuiCheckbox as Yt, EuiTableHeaderCellCheckbox as Br, EuiTableHeader as Wr, EuiTableRowCell as nt, EuiTableRowCellCheckbox as Ur, EuiLink as qr, EuiTableRow as Hr, EuiTable as Gr, EuiButtonIcon as H, EuiPopover as ze, EuiIcon as B, EuiContextMenu as st, EuiTableHeaderCell as Ze, EuiCodeBlock as Jr, EuiFlyout as Kr, EuiFlexGroup as se, EuiFlexItem as G, EuiSpacer as Bt, EuiEmptyPrompt as Xr, EuiPageTemplate as lt, EuiRange as Wt, EuiBottomBar as Zr } from "@elastic/eui";
7
- import { AddRegular as ct, PlayRegular as Qr, DismissRegular as ut, MoreHorizontalFilled as Ut, ArrowUploadRegular as en, ArrowDownloadRegular as tn, WindowDevToolsRegular as rn, DeleteRegular as nn, ArrowRepeat1Filled as on, ArrowRepeatAllFilled as an, ArrowRepeatAllOffFilled as sn, ArrowShuffleFilled as ln, ArrowShuffleOffFilled as cn, PreviousFilled as un, PauseFilled as dn, PlayFilled as fn, NextFilled as mn, OpenRegular as hn, Speaker2Regular as qt, TopSpeedRegular as vn, SkipBack10Regular as pn, SkipForward30Regular as yn, NavigationPlayRegular as gn } from "@fluentui/react-icons";
8
- import { observer as $ } from "mobx-react-lite";
9
- import { ReactSortable as bn } from "react-sortablejs";
1
+ import { makeObservable as Rr, action as y, computed as A, observable as Z, reaction as Or } from "mobx";
2
+ import * as te from "react";
3
+ import Dt, { forwardRef as _r, useContext as at, memo as ne, useState as W, useCallback as N, useMemo as De, createContext as zt, useEffect as kr, useLayoutEffect as Ar } from "react";
4
+ import Mr from "@emotion/cache";
5
+ import { useNostalgicDiva as U, findVideoService as Fr, NostalgicDivaProvider as jr, PlayerType as Nr, NostalgicDiva as $r, nullPlayerController as Dr } from "@aigamo/nostalgic-diva";
6
+ import { EuiButton as re, useGeneratedHtmlId as zr, EuiModalHeaderTitle as Br, EuiModalHeader as Lr, EuiForm as Vr, EuiFormRow as rt, EuiFieldText as St, EuiModalBody as Yr, EuiModalFooter as Wr, EuiButtonEmpty as Bt, EuiModal as Ur, useEuiTheme as Lt, EuiCheckbox as Vt, EuiTableHeaderCellCheckbox as qr, EuiTableHeader as Hr, EuiTableRowCell as nt, EuiTableRowCellCheckbox as Gr, EuiLink as Jr, EuiTableRow as Kr, EuiTable as Xr, EuiButtonIcon as q, EuiPopover as ze, EuiIcon as Y, EuiContextMenu as st, EuiTableHeaderCell as Ze, EuiCodeBlock as Zr, EuiFlyout as Qr, EuiFlexGroup as se, EuiFlexItem as J, EuiSpacer as Yt, EuiEmptyPrompt as en, EuiPageTemplate as lt, EuiRange as Wt, EuiBottomBar as tn } from "@elastic/eui";
7
+ import { AddRegular as ct, PlayRegular as rn, DismissRegular as ut, MoreHorizontalFilled as Ut, ArrowUploadRegular as nn, ArrowDownloadRegular as on, WindowDevToolsRegular as an, DeleteRegular as sn, ArrowShuffleFilled as ln, ArrowShuffleOffFilled as cn, PreviousFilled as un, SkipBack10Regular as qt, PauseFilled as dn, PlayFilled as fn, SkipForward30Regular as Ht, NextFilled as mn, ArrowRepeat1Filled as hn, ArrowRepeatAllFilled as vn, ArrowRepeatAllOffFilled as pn, OpenRegular as yn, Speaker2Regular as Gt, TopSpeedRegular as gn, NavigationPlayRegular as bn } from "@fluentui/react-icons";
8
+ import { observer as P } from "mobx-react-lite";
9
+ import { ReactSortable as Tn } from "react-sortablejs";
10
10
  import { pull as Pt } from "lodash-es";
11
11
  import En from "ajv";
12
- import { useRouter as Tn } from "@tanstack/react-router";
13
- const Ht = 81;
14
- class Gt {
15
- makeObservable(e, n) {
16
- return Pr(e, n);
12
+ import { useRouter as Cn } from "@tanstack/react-router";
13
+ const Jt = 81;
14
+ class Kt {
15
+ makeObservable(t, n) {
16
+ return Rr(t, n);
17
17
  }
18
18
  }
19
- class Fi {
20
- makeObservable(e, n) {
21
- return e;
19
+ class Yi {
20
+ makeObservable(t, n) {
21
+ return t;
22
22
  }
23
23
  }
24
- var je = { exports: {} }, Te = {};
25
- var Rt;
26
- function Cn() {
27
- if (Rt) return Te;
28
- Rt = 1;
29
- var t = Dt, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
24
+ var je = { exports: {} }, Ee = {};
25
+ var wt;
26
+ function xn() {
27
+ if (wt) return Ee;
28
+ wt = 1;
29
+ var e = Dt, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
30
30
  function d(h, m, p) {
31
- var E, P = {}, I = null, D = null;
31
+ var T, w = {}, I = null, D = null;
32
32
  p !== void 0 && (I = "" + p), m.key !== void 0 && (I = "" + m.key), m.ref !== void 0 && (D = m.ref);
33
- for (E in m) i.call(m, E) && !l.hasOwnProperty(E) && (P[E] = m[E]);
34
- if (h && h.defaultProps) for (E in m = h.defaultProps, m) P[E] === void 0 && (P[E] = m[E]);
35
- return { $$typeof: e, type: h, key: I, ref: D, props: P, _owner: a.current };
33
+ for (T in m) i.call(m, T) && !l.hasOwnProperty(T) && (w[T] = m[T]);
34
+ if (h && h.defaultProps) for (T in m = h.defaultProps, m) w[T] === void 0 && (w[T] = m[T]);
35
+ return { $$typeof: t, type: h, key: I, ref: D, props: w, _owner: a.current };
36
36
  }
37
- return Te.Fragment = n, Te.jsx = d, Te.jsxs = d, Te;
37
+ return Ee.Fragment = n, Ee.jsx = d, Ee.jsxs = d, Ee;
38
38
  }
39
39
  var Ce = {};
40
- var wt;
41
- function xn() {
42
- return wt || (wt = 1, process.env.NODE_ENV !== "production" && (function() {
43
- var t = Dt, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), h = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), k = Symbol.iterator, U = "@@iterator";
44
- function Z(r) {
40
+ var Rt;
41
+ function In() {
42
+ return Rt || (Rt = 1, process.env.NODE_ENV !== "production" && (function() {
43
+ var e = Dt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), h = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), M = Symbol.iterator, H = "@@iterator";
44
+ function Q(r) {
45
45
  if (r === null || typeof r != "object")
46
46
  return null;
47
- var s = k && r[k] || r[U];
47
+ var s = M && r[M] || r[H];
48
48
  return typeof s == "function" ? s : null;
49
49
  }
50
- var L = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
+ var B = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
51
  function R(r) {
52
52
  {
53
53
  for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), v = 1; v < s; v++)
54
54
  u[v - 1] = arguments[v];
55
- M("error", r, u);
55
+ F("error", r, u);
56
56
  }
57
57
  }
58
- function M(r, s, u) {
58
+ function F(r, s, u) {
59
59
  {
60
- var v = L.ReactDebugCurrentFrame, T = v.getStackAddendum();
61
- T !== "" && (s += "%s", u = u.concat([T]));
60
+ var v = B.ReactDebugCurrentFrame, E = v.getStackAddendum();
61
+ E !== "" && (s += "%s", u = u.concat([E]));
62
62
  var S = u.map(function(b) {
63
63
  return String(b);
64
64
  });
65
65
  S.unshift("Warning: " + s), Function.prototype.apply.call(console[r], console, S);
66
66
  }
67
67
  }
68
- var O = !1, c = !1, V = !1, me = !1, Se = !1, Pe;
68
+ var _ = !1, c = !1, L = !1, me = !1, Se = !1, Pe;
69
69
  Pe = Symbol.for("react.module.reference");
70
- function Ye(r) {
71
- return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || Se || r === a || r === p || r === E || me || r === D || O || c || V || typeof r == "object" && r !== null && (r.$$typeof === I || r.$$typeof === P || r.$$typeof === d || r.$$typeof === h || r.$$typeof === m || // This needs to include all possible module reference object
70
+ function Ve(r) {
71
+ return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || Se || r === a || r === p || r === T || me || r === D || _ || c || L || typeof r == "object" && r !== null && (r.$$typeof === I || r.$$typeof === w || r.$$typeof === d || r.$$typeof === h || r.$$typeof === m || // This needs to include all possible module reference object
72
72
  // types supported by any Flight configuration anywhere since
73
73
  // we don't know which Flight build this will end up being used
74
74
  // with.
75
75
  r.$$typeof === Pe || r.getModuleId !== void 0));
76
76
  }
77
- function Be(r, s, u) {
77
+ function Ye(r, s, u) {
78
78
  var v = r.displayName;
79
79
  if (v)
80
80
  return v;
81
- var T = s.displayName || s.name || "";
82
- return T !== "" ? u + "(" + T + ")" : u;
81
+ var E = s.displayName || s.name || "";
82
+ return E !== "" ? u + "(" + E + ")" : u;
83
83
  }
84
- function Re(r) {
84
+ function we(r) {
85
85
  return r.displayName || "Context";
86
86
  }
87
- function J(r) {
87
+ function K(r) {
88
88
  if (r == null)
89
89
  return null;
90
90
  if (typeof r.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
@@ -102,26 +102,26 @@ function xn() {
102
102
  return "StrictMode";
103
103
  case p:
104
104
  return "Suspense";
105
- case E:
105
+ case T:
106
106
  return "SuspenseList";
107
107
  }
108
108
  if (typeof r == "object")
109
109
  switch (r.$$typeof) {
110
110
  case h:
111
111
  var s = r;
112
- return Re(s) + ".Consumer";
112
+ return we(s) + ".Consumer";
113
113
  case d:
114
114
  var u = r;
115
- return Re(u._context) + ".Provider";
115
+ return we(u._context) + ".Provider";
116
116
  case m:
117
- return Be(r, r.render, "ForwardRef");
118
- case P:
117
+ return Ye(r, r.render, "ForwardRef");
118
+ case w:
119
119
  var v = r.displayName || null;
120
- return v !== null ? v : J(r.type) || "Memo";
120
+ return v !== null ? v : K(r.type) || "Memo";
121
121
  case I: {
122
- var T = r, S = T._payload, b = T._init;
122
+ var E = r, S = E._payload, b = E._init;
123
123
  try {
124
- return J(b(S));
124
+ return K(b(S));
125
125
  } catch {
126
126
  return null;
127
127
  }
@@ -129,14 +129,14 @@ function xn() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var Q = Object.assign, ie = 0, we, Oe, he, _e, ve, Ae, ke;
132
+ var ee = Object.assign, ie = 0, Re, Oe, he, _e, ve, ke, Ae;
133
133
  function Me() {
134
134
  }
135
135
  Me.__reactDisabledLog = !0;
136
136
  function We() {
137
137
  {
138
138
  if (ie === 0) {
139
- we = console.log, Oe = console.info, he = console.warn, _e = console.error, ve = console.group, Ae = console.groupCollapsed, ke = console.groupEnd;
139
+ Re = console.log, Oe = console.info, he = console.warn, _e = console.error, ve = console.group, ke = console.groupCollapsed, Ae = console.groupEnd;
140
140
  var r = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
@@ -165,40 +165,40 @@ function xn() {
165
165
  writable: !0
166
166
  };
167
167
  Object.defineProperties(console, {
168
- log: Q({}, r, {
169
- value: we
168
+ log: ee({}, r, {
169
+ value: Re
170
170
  }),
171
- info: Q({}, r, {
171
+ info: ee({}, r, {
172
172
  value: Oe
173
173
  }),
174
- warn: Q({}, r, {
174
+ warn: ee({}, r, {
175
175
  value: he
176
176
  }),
177
- error: Q({}, r, {
177
+ error: ee({}, r, {
178
178
  value: _e
179
179
  }),
180
- group: Q({}, r, {
180
+ group: ee({}, r, {
181
181
  value: ve
182
182
  }),
183
- groupCollapsed: Q({}, r, {
184
- value: Ae
185
- }),
186
- groupEnd: Q({}, r, {
183
+ groupCollapsed: ee({}, r, {
187
184
  value: ke
185
+ }),
186
+ groupEnd: ee({}, r, {
187
+ value: Ae
188
188
  })
189
189
  });
190
190
  }
191
191
  ie < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
192
  }
193
193
  }
194
- var pe = L.ReactCurrentDispatcher, ye;
194
+ var pe = B.ReactCurrentDispatcher, ye;
195
195
  function le(r, s, u) {
196
196
  {
197
197
  if (ye === void 0)
198
198
  try {
199
199
  throw Error();
200
- } catch (T) {
201
- var v = T.stack.trim().match(/\n( *(at )?)/);
200
+ } catch (E) {
201
+ var v = E.stack.trim().match(/\n( *(at )?)/);
202
202
  ye = v && v[1] || "";
203
203
  }
204
204
  return `
@@ -220,7 +220,7 @@ function xn() {
220
220
  }
221
221
  var v;
222
222
  ge = !0;
223
- var T = Error.prepareStackTrace;
223
+ var E = Error.prepareStackTrace;
224
224
  Error.prepareStackTrace = void 0;
225
225
  var S;
226
226
  S = pe.current, pe.current = null, We();
@@ -236,47 +236,47 @@ function xn() {
236
236
  }), typeof Reflect == "object" && Reflect.construct) {
237
237
  try {
238
238
  Reflect.construct(b, []);
239
- } catch (Y) {
240
- v = Y;
239
+ } catch (V) {
240
+ v = V;
241
241
  }
242
242
  Reflect.construct(r, [], b);
243
243
  } else {
244
244
  try {
245
245
  b.call();
246
- } catch (Y) {
247
- v = Y;
246
+ } catch (V) {
247
+ v = V;
248
248
  }
249
249
  r.call(b.prototype);
250
250
  }
251
251
  } else {
252
252
  try {
253
253
  throw Error();
254
- } catch (Y) {
255
- v = Y;
254
+ } catch (V) {
255
+ v = V;
256
256
  }
257
257
  r();
258
258
  }
259
- } catch (Y) {
260
- if (Y && v && typeof Y.stack == "string") {
261
- for (var g = Y.stack.split(`
259
+ } catch (V) {
260
+ if (V && v && typeof V.stack == "string") {
261
+ for (var g = V.stack.split(`
262
262
  `), z = v.stack.split(`
263
- `), _ = g.length - 1, F = z.length - 1; _ >= 1 && F >= 0 && g[_] !== z[F]; )
264
- F--;
265
- for (; _ >= 1 && F >= 0; _--, F--)
266
- if (g[_] !== z[F]) {
267
- if (_ !== 1 || F !== 1)
263
+ `), k = g.length - 1, j = z.length - 1; k >= 1 && j >= 0 && g[k] !== z[j]; )
264
+ j--;
265
+ for (; k >= 1 && j >= 0; k--, j--)
266
+ if (g[k] !== z[j]) {
267
+ if (k !== 1 || j !== 1)
268
268
  do
269
- if (_--, F--, F < 0 || g[_] !== z[F]) {
270
- var q = `
271
- ` + g[_].replace(" at new ", " at ");
272
- return r.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", r.displayName)), typeof r == "function" && ce.set(r, q), q;
269
+ if (k--, j--, j < 0 || g[k] !== z[j]) {
270
+ var G = `
271
+ ` + g[k].replace(" at new ", " at ");
272
+ return r.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", r.displayName)), typeof r == "function" && ce.set(r, G), G;
273
273
  }
274
- while (_ >= 1 && F >= 0);
274
+ while (k >= 1 && j >= 0);
275
275
  break;
276
276
  }
277
277
  }
278
278
  } finally {
279
- ge = !1, pe.current = S, Ue(), Error.prepareStackTrace = T;
279
+ ge = !1, pe.current = S, Ue(), Error.prepareStackTrace = E;
280
280
  }
281
281
  var fe = r ? r.displayName || r.name : "", ae = fe ? le(fe) : "";
282
282
  return typeof r == "function" && ce.set(r, ae), ae;
@@ -298,26 +298,26 @@ function xn() {
298
298
  switch (r) {
299
299
  case p:
300
300
  return le("Suspense");
301
- case E:
301
+ case T:
302
302
  return le("SuspenseList");
303
303
  }
304
304
  if (typeof r == "object")
305
305
  switch (r.$$typeof) {
306
306
  case m:
307
307
  return be(r.render);
308
- case P:
308
+ case w:
309
309
  return oe(r.type, s, u);
310
310
  case I: {
311
- var v = r, T = v._payload, S = v._init;
311
+ var v = r, E = v._payload, S = v._init;
312
312
  try {
313
- return oe(S(T), s, u);
313
+ return oe(S(E), s, u);
314
314
  } catch {
315
315
  }
316
316
  }
317
317
  }
318
318
  return "";
319
319
  }
320
- var Ee = Object.prototype.hasOwnProperty, dt = {}, ft = L.ReactDebugCurrentFrame;
320
+ var Te = Object.prototype.hasOwnProperty, dt = {}, ft = B.ReactDebugCurrentFrame;
321
321
  function Fe(r) {
322
322
  if (r) {
323
323
  var s = r._owner, u = oe(r.type, r._source, s ? s.type : null);
@@ -325,9 +325,9 @@ function xn() {
325
325
  } else
326
326
  ft.setExtraStackFrame(null);
327
327
  }
328
- function ir(r, s, u, v, T) {
328
+ function ar(r, s, u, v, E) {
329
329
  {
330
- var S = Function.call.bind(Ee);
330
+ var S = Function.call.bind(Te);
331
331
  for (var b in r)
332
332
  if (S(r, b)) {
333
333
  var g = void 0;
@@ -337,24 +337,24 @@ function xn() {
337
337
  throw z.name = "Invariant Violation", z;
338
338
  }
339
339
  g = r[b](s, b, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (_) {
341
- g = _;
340
+ } catch (k) {
341
+ g = k;
342
342
  }
343
- g && !(g instanceof Error) && (Fe(T), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", u, b, typeof g), Fe(null)), g instanceof Error && !(g.message in dt) && (dt[g.message] = !0, Fe(T), R("Failed %s type: %s", u, g.message), Fe(null));
343
+ g && !(g instanceof Error) && (Fe(E), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", u, b, typeof g), Fe(null)), g instanceof Error && !(g.message in dt) && (dt[g.message] = !0, Fe(E), R("Failed %s type: %s", u, g.message), Fe(null));
344
344
  }
345
345
  }
346
346
  }
347
- var or = Array.isArray;
347
+ var sr = Array.isArray;
348
348
  function He(r) {
349
- return or(r);
349
+ return sr(r);
350
350
  }
351
- function ar(r) {
351
+ function lr(r) {
352
352
  {
353
353
  var s = typeof Symbol == "function" && Symbol.toStringTag, u = s && r[Symbol.toStringTag] || r.constructor.name || "Object";
354
354
  return u;
355
355
  }
356
356
  }
357
- function sr(r) {
357
+ function cr(r) {
358
358
  try {
359
359
  return mt(r), !1;
360
360
  } catch {
@@ -365,35 +365,35 @@ function xn() {
365
365
  return "" + r;
366
366
  }
367
367
  function ht(r) {
368
- if (sr(r))
369
- return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ar(r)), mt(r);
368
+ if (cr(r))
369
+ return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", lr(r)), mt(r);
370
370
  }
371
- var vt = L.ReactCurrentOwner, lr = {
371
+ var vt = B.ReactCurrentOwner, ur = {
372
372
  key: !0,
373
373
  ref: !0,
374
374
  __self: !0,
375
375
  __source: !0
376
376
  }, pt, yt;
377
- function cr(r) {
378
- if (Ee.call(r, "ref")) {
377
+ function dr(r) {
378
+ if (Te.call(r, "ref")) {
379
379
  var s = Object.getOwnPropertyDescriptor(r, "ref").get;
380
380
  if (s && s.isReactWarning)
381
381
  return !1;
382
382
  }
383
383
  return r.ref !== void 0;
384
384
  }
385
- function ur(r) {
386
- if (Ee.call(r, "key")) {
385
+ function fr(r) {
386
+ if (Te.call(r, "key")) {
387
387
  var s = Object.getOwnPropertyDescriptor(r, "key").get;
388
388
  if (s && s.isReactWarning)
389
389
  return !1;
390
390
  }
391
391
  return r.key !== void 0;
392
392
  }
393
- function dr(r, s) {
393
+ function mr(r, s) {
394
394
  typeof r.ref == "string" && vt.current;
395
395
  }
396
- function fr(r, s) {
396
+ function hr(r, s) {
397
397
  {
398
398
  var u = function() {
399
399
  pt || (pt = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
@@ -404,7 +404,7 @@ function xn() {
404
404
  });
405
405
  }
406
406
  }
407
- function mr(r, s) {
407
+ function vr(r, s) {
408
408
  {
409
409
  var u = function() {
410
410
  yt || (yt = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
@@ -415,10 +415,10 @@ function xn() {
415
415
  });
416
416
  }
417
417
  }
418
- var hr = function(r, s, u, v, T, S, b) {
418
+ var pr = function(r, s, u, v, E, S, b) {
419
419
  var g = {
420
420
  // This tag allows us to uniquely identify this as a React Element
421
- $$typeof: e,
421
+ $$typeof: t,
422
422
  // Built-in properties that belong on the element
423
423
  type: r,
424
424
  key: s,
@@ -441,28 +441,28 @@ function xn() {
441
441
  configurable: !1,
442
442
  enumerable: !1,
443
443
  writable: !1,
444
- value: T
444
+ value: E
445
445
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
446
446
  };
447
- function vr(r, s, u, v, T) {
447
+ function yr(r, s, u, v, E) {
448
448
  {
449
449
  var S, b = {}, g = null, z = null;
450
- u !== void 0 && (ht(u), g = "" + u), ur(s) && (ht(s.key), g = "" + s.key), cr(s) && (z = s.ref, dr(s, T));
450
+ u !== void 0 && (ht(u), g = "" + u), fr(s) && (ht(s.key), g = "" + s.key), dr(s) && (z = s.ref, mr(s, E));
451
451
  for (S in s)
452
- Ee.call(s, S) && !lr.hasOwnProperty(S) && (b[S] = s[S]);
452
+ Te.call(s, S) && !ur.hasOwnProperty(S) && (b[S] = s[S]);
453
453
  if (r && r.defaultProps) {
454
- var _ = r.defaultProps;
455
- for (S in _)
456
- b[S] === void 0 && (b[S] = _[S]);
454
+ var k = r.defaultProps;
455
+ for (S in k)
456
+ b[S] === void 0 && (b[S] = k[S]);
457
457
  }
458
458
  if (g || z) {
459
- var F = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
460
- g && fr(b, F), z && mr(b, F);
459
+ var j = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
460
+ g && hr(b, j), z && vr(b, j);
461
461
  }
462
- return hr(r, g, z, T, v, vt.current, b);
462
+ return pr(r, g, z, E, v, vt.current, b);
463
463
  }
464
464
  }
465
- var Ge = L.ReactCurrentOwner, gt = L.ReactDebugCurrentFrame;
465
+ var Ge = B.ReactCurrentOwner, gt = B.ReactDebugCurrentFrame;
466
466
  function de(r) {
467
467
  if (r) {
468
468
  var s = r._owner, u = oe(r.type, r._source, s ? s.type : null);
@@ -473,12 +473,12 @@ function xn() {
473
473
  var Je;
474
474
  Je = !1;
475
475
  function Ke(r) {
476
- return typeof r == "object" && r !== null && r.$$typeof === e;
476
+ return typeof r == "object" && r !== null && r.$$typeof === t;
477
477
  }
478
478
  function bt() {
479
479
  {
480
480
  if (Ge.current) {
481
- var r = J(Ge.current.type);
481
+ var r = K(Ge.current.type);
482
482
  if (r)
483
483
  return `
484
484
 
@@ -487,11 +487,11 @@ Check the render method of \`` + r + "`.";
487
487
  return "";
488
488
  }
489
489
  }
490
- function pr(r) {
490
+ function gr(r) {
491
491
  return "";
492
492
  }
493
- var Et = {};
494
- function yr(r) {
493
+ var Tt = {};
494
+ function br(r) {
495
495
  {
496
496
  var s = bt();
497
497
  if (!s) {
@@ -503,17 +503,17 @@ Check the top-level render call using <` + u + ">.");
503
503
  return s;
504
504
  }
505
505
  }
506
- function Tt(r, s) {
506
+ function Et(r, s) {
507
507
  {
508
508
  if (!r._store || r._store.validated || r.key != null)
509
509
  return;
510
510
  r._store.validated = !0;
511
- var u = yr(s);
512
- if (Et[u])
511
+ var u = br(s);
512
+ if (Tt[u])
513
513
  return;
514
- Et[u] = !0;
514
+ Tt[u] = !0;
515
515
  var v = "";
516
- r && r._owner && r._owner !== Ge.current && (v = " It was passed a child from " + J(r._owner.type) + "."), de(r), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), de(null);
516
+ r && r._owner && r._owner !== Ge.current && (v = " It was passed a child from " + K(r._owner.type) + "."), de(r), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), de(null);
517
517
  }
518
518
  }
519
519
  function Ct(r, s) {
@@ -523,19 +523,19 @@ Check the top-level render call using <` + u + ">.");
523
523
  if (He(r))
524
524
  for (var u = 0; u < r.length; u++) {
525
525
  var v = r[u];
526
- Ke(v) && Tt(v, s);
526
+ Ke(v) && Et(v, s);
527
527
  }
528
528
  else if (Ke(r))
529
529
  r._store && (r._store.validated = !0);
530
530
  else if (r) {
531
- var T = Z(r);
532
- if (typeof T == "function" && T !== r.entries)
533
- for (var S = T.call(r), b; !(b = S.next()).done; )
534
- Ke(b.value) && Tt(b.value, s);
531
+ var E = Q(r);
532
+ if (typeof E == "function" && E !== r.entries)
533
+ for (var S = E.call(r), b; !(b = S.next()).done; )
534
+ Ke(b.value) && Et(b.value, s);
535
535
  }
536
536
  }
537
537
  }
538
- function gr(r) {
538
+ function Tr(r) {
539
539
  {
540
540
  var s = r.type;
541
541
  if (s == null || typeof s == "string")
@@ -545,22 +545,22 @@ Check the top-level render call using <` + u + ">.");
545
545
  u = s.propTypes;
546
546
  else if (typeof s == "object" && (s.$$typeof === m || // Note: Memo only checks outer props here.
547
547
  // Inner props are checked in the reconciler.
548
- s.$$typeof === P))
548
+ s.$$typeof === w))
549
549
  u = s.propTypes;
550
550
  else
551
551
  return;
552
552
  if (u) {
553
- var v = J(s);
554
- ir(u, r.props, "prop", v, r);
553
+ var v = K(s);
554
+ ar(u, r.props, "prop", v, r);
555
555
  } else if (s.PropTypes !== void 0 && !Je) {
556
556
  Je = !0;
557
- var T = J(s);
558
- R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
557
+ var E = K(s);
558
+ R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
559
559
  }
560
560
  typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
561
  }
562
562
  }
563
- function br(r) {
563
+ function Er(r) {
564
564
  {
565
565
  for (var s = Object.keys(r.props), u = 0; u < s.length; u++) {
566
566
  var v = s[u];
@@ -573,145 +573,145 @@ Check the top-level render call using <` + u + ">.");
573
573
  }
574
574
  }
575
575
  var xt = {};
576
- function It(r, s, u, v, T, S) {
576
+ function It(r, s, u, v, E, S) {
577
577
  {
578
- var b = Ye(r);
578
+ var b = Ve(r);
579
579
  if (!b) {
580
580
  var g = "";
581
581
  (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
- var z = pr();
582
+ var z = gr();
583
583
  z ? g += z : g += bt();
584
- var _;
585
- r === null ? _ = "null" : He(r) ? _ = "array" : r !== void 0 && r.$$typeof === e ? (_ = "<" + (J(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof r, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, g);
584
+ var k;
585
+ r === null ? k = "null" : He(r) ? k = "array" : r !== void 0 && r.$$typeof === t ? (k = "<" + (K(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : k = typeof r, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, g);
586
586
  }
587
- var F = vr(r, s, u, T, S);
588
- if (F == null)
589
- return F;
587
+ var j = yr(r, s, u, E, S);
588
+ if (j == null)
589
+ return j;
590
590
  if (b) {
591
- var q = s.children;
592
- if (q !== void 0)
591
+ var G = s.children;
592
+ if (G !== void 0)
593
593
  if (v)
594
- if (He(q)) {
595
- for (var fe = 0; fe < q.length; fe++)
596
- Ct(q[fe], r);
597
- Object.freeze && Object.freeze(q);
594
+ if (He(G)) {
595
+ for (var fe = 0; fe < G.length; fe++)
596
+ Ct(G[fe], r);
597
+ Object.freeze && Object.freeze(G);
598
598
  } else
599
599
  R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
600
600
  else
601
- Ct(q, r);
601
+ Ct(G, r);
602
602
  }
603
- if (Ee.call(s, "key")) {
604
- var ae = J(r), Y = Object.keys(s).filter(function(Sr) {
605
- return Sr !== "key";
606
- }), Xe = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
603
+ if (Te.call(s, "key")) {
604
+ var ae = K(r), V = Object.keys(s).filter(function(wr) {
605
+ return wr !== "key";
606
+ }), Xe = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
607
607
  if (!xt[ae + Xe]) {
608
- var Ir = Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}";
608
+ var Pr = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
609
609
  R(`A props object containing a "key" prop is being spread into JSX:
610
610
  let props = %s;
611
611
  <%s {...props} />
612
612
  React keys must be passed directly to JSX without using spread:
613
613
  let props = %s;
614
- <%s key={someKey} {...props} />`, Xe, ae, Ir, ae), xt[ae + Xe] = !0;
614
+ <%s key={someKey} {...props} />`, Xe, ae, Pr, ae), xt[ae + Xe] = !0;
615
615
  }
616
616
  }
617
- return r === i ? br(F) : gr(F), F;
617
+ return r === i ? Er(j) : Tr(j), j;
618
618
  }
619
619
  }
620
- function Er(r, s, u) {
620
+ function Cr(r, s, u) {
621
621
  return It(r, s, u, !0);
622
622
  }
623
- function Tr(r, s, u) {
623
+ function xr(r, s, u) {
624
624
  return It(r, s, u, !1);
625
625
  }
626
- var Cr = Tr, xr = Er;
627
- Ce.Fragment = i, Ce.jsx = Cr, Ce.jsxs = xr;
626
+ var Ir = xr, Sr = Cr;
627
+ Ce.Fragment = i, Ce.jsx = Ir, Ce.jsxs = Sr;
628
628
  })()), Ce;
629
629
  }
630
630
  var Ot;
631
- function In() {
632
- return Ot || (Ot = 1, process.env.NODE_ENV === "production" ? je.exports = Cn() : je.exports = xn()), je.exports;
631
+ function Sn() {
632
+ return Ot || (Ot = 1, process.env.NODE_ENV === "production" ? je.exports = xn() : je.exports = In()), je.exports;
633
633
  }
634
- var xe = In(), Ne = { exports: {} }, C = {};
634
+ var xe = Sn(), Ne = { exports: {} }, C = {};
635
635
  var _t;
636
- function Sn() {
636
+ function Pn() {
637
637
  if (_t) return C;
638
638
  _t = 1;
639
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, d = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112, P = t ? Symbol.for("react.suspense") : 60113, I = t ? Symbol.for("react.suspense_list") : 60120, D = t ? Symbol.for("react.memo") : 60115, k = t ? Symbol.for("react.lazy") : 60116, U = t ? Symbol.for("react.block") : 60121, Z = t ? Symbol.for("react.fundamental") : 60117, L = t ? Symbol.for("react.responder") : 60118, R = t ? Symbol.for("react.scope") : 60119;
640
- function M(c) {
639
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, h = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, T = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, I = e ? Symbol.for("react.suspense_list") : 60120, D = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, H = e ? Symbol.for("react.block") : 60121, Q = e ? Symbol.for("react.fundamental") : 60117, B = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
640
+ function F(c) {
641
641
  if (typeof c == "object" && c !== null) {
642
- var V = c.$$typeof;
643
- switch (V) {
644
- case e:
642
+ var L = c.$$typeof;
643
+ switch (L) {
644
+ case t:
645
645
  switch (c = c.type, c) {
646
646
  case m:
647
647
  case p:
648
648
  case i:
649
649
  case l:
650
650
  case a:
651
- case P:
651
+ case w:
652
652
  return c;
653
653
  default:
654
654
  switch (c = c && c.$$typeof, c) {
655
655
  case h:
656
- case E:
657
- case k:
656
+ case T:
657
+ case M:
658
658
  case D:
659
659
  case d:
660
660
  return c;
661
661
  default:
662
- return V;
662
+ return L;
663
663
  }
664
664
  }
665
665
  case n:
666
- return V;
666
+ return L;
667
667
  }
668
668
  }
669
669
  }
670
- function O(c) {
671
- return M(c) === p;
670
+ function _(c) {
671
+ return F(c) === p;
672
672
  }
673
- return C.AsyncMode = m, C.ConcurrentMode = p, C.ContextConsumer = h, C.ContextProvider = d, C.Element = e, C.ForwardRef = E, C.Fragment = i, C.Lazy = k, C.Memo = D, C.Portal = n, C.Profiler = l, C.StrictMode = a, C.Suspense = P, C.isAsyncMode = function(c) {
674
- return O(c) || M(c) === m;
675
- }, C.isConcurrentMode = O, C.isContextConsumer = function(c) {
676
- return M(c) === h;
673
+ return C.AsyncMode = m, C.ConcurrentMode = p, C.ContextConsumer = h, C.ContextProvider = d, C.Element = t, C.ForwardRef = T, C.Fragment = i, C.Lazy = M, C.Memo = D, C.Portal = n, C.Profiler = l, C.StrictMode = a, C.Suspense = w, C.isAsyncMode = function(c) {
674
+ return _(c) || F(c) === m;
675
+ }, C.isConcurrentMode = _, C.isContextConsumer = function(c) {
676
+ return F(c) === h;
677
677
  }, C.isContextProvider = function(c) {
678
- return M(c) === d;
678
+ return F(c) === d;
679
679
  }, C.isElement = function(c) {
680
- return typeof c == "object" && c !== null && c.$$typeof === e;
680
+ return typeof c == "object" && c !== null && c.$$typeof === t;
681
681
  }, C.isForwardRef = function(c) {
682
- return M(c) === E;
682
+ return F(c) === T;
683
683
  }, C.isFragment = function(c) {
684
- return M(c) === i;
684
+ return F(c) === i;
685
685
  }, C.isLazy = function(c) {
686
- return M(c) === k;
686
+ return F(c) === M;
687
687
  }, C.isMemo = function(c) {
688
- return M(c) === D;
688
+ return F(c) === D;
689
689
  }, C.isPortal = function(c) {
690
- return M(c) === n;
690
+ return F(c) === n;
691
691
  }, C.isProfiler = function(c) {
692
- return M(c) === l;
692
+ return F(c) === l;
693
693
  }, C.isStrictMode = function(c) {
694
- return M(c) === a;
694
+ return F(c) === a;
695
695
  }, C.isSuspense = function(c) {
696
- return M(c) === P;
696
+ return F(c) === w;
697
697
  }, C.isValidElementType = function(c) {
698
- return typeof c == "string" || typeof c == "function" || c === i || c === p || c === l || c === a || c === P || c === I || typeof c == "object" && c !== null && (c.$$typeof === k || c.$$typeof === D || c.$$typeof === d || c.$$typeof === h || c.$$typeof === E || c.$$typeof === Z || c.$$typeof === L || c.$$typeof === R || c.$$typeof === U);
699
- }, C.typeOf = M, C;
698
+ return typeof c == "string" || typeof c == "function" || c === i || c === p || c === l || c === a || c === w || c === I || typeof c == "object" && c !== null && (c.$$typeof === M || c.$$typeof === D || c.$$typeof === d || c.$$typeof === h || c.$$typeof === T || c.$$typeof === Q || c.$$typeof === B || c.$$typeof === R || c.$$typeof === H);
699
+ }, C.typeOf = F, C;
700
700
  }
701
701
  var x = {};
702
- var At;
703
- function Pn() {
704
- return At || (At = 1, process.env.NODE_ENV !== "production" && (function() {
705
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, d = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112, P = t ? Symbol.for("react.suspense") : 60113, I = t ? Symbol.for("react.suspense_list") : 60120, D = t ? Symbol.for("react.memo") : 60115, k = t ? Symbol.for("react.lazy") : 60116, U = t ? Symbol.for("react.block") : 60121, Z = t ? Symbol.for("react.fundamental") : 60117, L = t ? Symbol.for("react.responder") : 60118, R = t ? Symbol.for("react.scope") : 60119;
706
- function M(f) {
702
+ var kt;
703
+ function wn() {
704
+ return kt || (kt = 1, process.env.NODE_ENV !== "production" && (function() {
705
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, h = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, T = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, I = e ? Symbol.for("react.suspense_list") : 60120, D = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, H = e ? Symbol.for("react.block") : 60121, Q = e ? Symbol.for("react.fundamental") : 60117, B = e ? Symbol.for("react.responder") : 60118, R = e ? Symbol.for("react.scope") : 60119;
706
+ function F(f) {
707
707
  return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
708
- f === i || f === p || f === l || f === a || f === P || f === I || typeof f == "object" && f !== null && (f.$$typeof === k || f.$$typeof === D || f.$$typeof === d || f.$$typeof === h || f.$$typeof === E || f.$$typeof === Z || f.$$typeof === L || f.$$typeof === R || f.$$typeof === U);
708
+ f === i || f === p || f === l || f === a || f === w || f === I || typeof f == "object" && f !== null && (f.$$typeof === M || f.$$typeof === D || f.$$typeof === d || f.$$typeof === h || f.$$typeof === T || f.$$typeof === Q || f.$$typeof === B || f.$$typeof === R || f.$$typeof === H);
709
709
  }
710
- function O(f) {
710
+ function _(f) {
711
711
  if (typeof f == "object" && f !== null) {
712
712
  var be = f.$$typeof;
713
713
  switch (be) {
714
- case e:
714
+ case t:
715
715
  var ue = f.type;
716
716
  switch (ue) {
717
717
  case m:
@@ -719,14 +719,14 @@ function Pn() {
719
719
  case i:
720
720
  case l:
721
721
  case a:
722
- case P:
722
+ case w:
723
723
  return ue;
724
724
  default:
725
725
  var oe = ue && ue.$$typeof;
726
726
  switch (oe) {
727
727
  case h:
728
- case E:
729
- case k:
728
+ case T:
729
+ case M:
730
730
  case D:
731
731
  case d:
732
732
  return oe;
@@ -739,58 +739,58 @@ function Pn() {
739
739
  }
740
740
  }
741
741
  }
742
- var c = m, V = p, me = h, Se = d, Pe = e, Ye = E, Be = i, Re = k, J = D, Q = n, ie = l, we = a, Oe = P, he = !1;
742
+ var c = m, L = p, me = h, Se = d, Pe = t, Ve = T, Ye = i, we = M, K = D, ee = n, ie = l, Re = a, Oe = w, he = !1;
743
743
  function _e(f) {
744
- return he || (he = !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.")), ve(f) || O(f) === m;
744
+ return he || (he = !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.")), ve(f) || _(f) === m;
745
745
  }
746
746
  function ve(f) {
747
- return O(f) === p;
748
- }
749
- function Ae(f) {
750
- return O(f) === h;
747
+ return _(f) === p;
751
748
  }
752
749
  function ke(f) {
753
- return O(f) === d;
750
+ return _(f) === h;
751
+ }
752
+ function Ae(f) {
753
+ return _(f) === d;
754
754
  }
755
755
  function Me(f) {
756
- return typeof f == "object" && f !== null && f.$$typeof === e;
756
+ return typeof f == "object" && f !== null && f.$$typeof === t;
757
757
  }
758
758
  function We(f) {
759
- return O(f) === E;
759
+ return _(f) === T;
760
760
  }
761
761
  function Ue(f) {
762
- return O(f) === i;
762
+ return _(f) === i;
763
763
  }
764
764
  function pe(f) {
765
- return O(f) === k;
765
+ return _(f) === M;
766
766
  }
767
767
  function ye(f) {
768
- return O(f) === D;
768
+ return _(f) === D;
769
769
  }
770
770
  function le(f) {
771
- return O(f) === n;
771
+ return _(f) === n;
772
772
  }
773
773
  function ge(f) {
774
- return O(f) === l;
774
+ return _(f) === l;
775
775
  }
776
776
  function ce(f) {
777
- return O(f) === a;
777
+ return _(f) === a;
778
778
  }
779
779
  function qe(f) {
780
- return O(f) === P;
780
+ return _(f) === w;
781
781
  }
782
- x.AsyncMode = c, x.ConcurrentMode = V, x.ContextConsumer = me, x.ContextProvider = Se, x.Element = Pe, x.ForwardRef = Ye, x.Fragment = Be, x.Lazy = Re, x.Memo = J, x.Portal = Q, x.Profiler = ie, x.StrictMode = we, x.Suspense = Oe, x.isAsyncMode = _e, x.isConcurrentMode = ve, x.isContextConsumer = Ae, x.isContextProvider = ke, x.isElement = Me, x.isForwardRef = We, x.isFragment = Ue, x.isLazy = pe, x.isMemo = ye, x.isPortal = le, x.isProfiler = ge, x.isStrictMode = ce, x.isSuspense = qe, x.isValidElementType = M, x.typeOf = O;
782
+ x.AsyncMode = c, x.ConcurrentMode = L, x.ContextConsumer = me, x.ContextProvider = Se, x.Element = Pe, x.ForwardRef = Ve, x.Fragment = Ye, x.Lazy = we, x.Memo = K, x.Portal = ee, x.Profiler = ie, x.StrictMode = Re, x.Suspense = Oe, x.isAsyncMode = _e, x.isConcurrentMode = ve, x.isContextConsumer = ke, x.isContextProvider = Ae, x.isElement = Me, x.isForwardRef = We, x.isFragment = Ue, x.isLazy = pe, x.isMemo = ye, x.isPortal = le, x.isProfiler = ge, x.isStrictMode = ce, x.isSuspense = qe, x.isValidElementType = F, x.typeOf = _;
783
783
  })()), x;
784
784
  }
785
- var kt;
785
+ var At;
786
786
  function Rn() {
787
- return kt || (kt = 1, process.env.NODE_ENV === "production" ? Ne.exports = Sn() : Ne.exports = Pn()), Ne.exports;
787
+ return At || (At = 1, process.env.NODE_ENV === "production" ? Ne.exports = Pn() : Ne.exports = wn()), Ne.exports;
788
788
  }
789
789
  var Qe, Mt;
790
- function wn() {
790
+ function On() {
791
791
  if (Mt) return Qe;
792
792
  Mt = 1;
793
- var t = Rn(), e = {
793
+ var e = Rn(), t = {
794
794
  childContextTypes: !0,
795
795
  contextType: !0,
796
796
  contextTypes: !0,
@@ -824,44 +824,44 @@ function wn() {
824
824
  propTypes: !0,
825
825
  type: !0
826
826
  }, l = {};
827
- l[t.ForwardRef] = i, l[t.Memo] = a;
828
- function d(k) {
829
- return t.isMemo(k) ? a : l[k.$$typeof] || e;
827
+ l[e.ForwardRef] = i, l[e.Memo] = a;
828
+ function d(M) {
829
+ return e.isMemo(M) ? a : l[M.$$typeof] || t;
830
830
  }
831
- var h = Object.defineProperty, m = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, E = Object.getOwnPropertyDescriptor, P = Object.getPrototypeOf, I = Object.prototype;
832
- function D(k, U, Z) {
833
- if (typeof U != "string") {
831
+ var h = Object.defineProperty, m = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, T = Object.getOwnPropertyDescriptor, w = Object.getPrototypeOf, I = Object.prototype;
832
+ function D(M, H, Q) {
833
+ if (typeof H != "string") {
834
834
  if (I) {
835
- var L = P(U);
836
- L && L !== I && D(k, L, Z);
835
+ var B = w(H);
836
+ B && B !== I && D(M, B, Q);
837
837
  }
838
- var R = m(U);
839
- p && (R = R.concat(p(U)));
840
- for (var M = d(k), O = d(U), c = 0; c < R.length; ++c) {
841
- var V = R[c];
842
- if (!n[V] && !(Z && Z[V]) && !(O && O[V]) && !(M && M[V])) {
843
- var me = E(U, V);
838
+ var R = m(H);
839
+ p && (R = R.concat(p(H)));
840
+ for (var F = d(M), _ = d(H), c = 0; c < R.length; ++c) {
841
+ var L = R[c];
842
+ if (!n[L] && !(Q && Q[L]) && !(_ && _[L]) && !(F && F[L])) {
843
+ var me = T(H, L);
844
844
  try {
845
- h(k, V, me);
845
+ h(M, L, me);
846
846
  } catch {
847
847
  }
848
848
  }
849
849
  }
850
850
  }
851
- return k;
851
+ return M;
852
852
  }
853
853
  return Qe = D, Qe;
854
854
  }
855
- wn();
856
- var On = !0;
857
- function _n(t, e, n) {
855
+ On();
856
+ var _n = !0;
857
+ function kn(e, t, n) {
858
858
  var i = "";
859
859
  return n.split(" ").forEach(function(a) {
860
- t[a] !== void 0 ? e.push(t[a] + ";") : a && (i += a + " ");
860
+ e[a] !== void 0 ? t.push(e[a] + ";") : a && (i += a + " ");
861
861
  }), i;
862
862
  }
863
- var Jt = function(e, n, i) {
864
- var a = e.key + "-" + n.name;
863
+ var Xt = function(t, n, i) {
864
+ var a = t.key + "-" + n.name;
865
865
  // we only need to add the styles to the registered cache if the
866
866
  // class name could be used further down
867
867
  // the tree but if it's a string tag, we know it won't
@@ -871,37 +871,37 @@ var Jt = function(e, n, i) {
871
871
  // in node since emotion-server relies on whether a style is in
872
872
  // the registered cache to know whether a style is global or not
873
873
  // also, note that this check will be dead code eliminated in the browser
874
- On === !1) && e.registered[a] === void 0 && (e.registered[a] = n.styles);
875
- }, An = function(e, n, i) {
876
- Jt(e, n, i);
877
- var a = e.key + "-" + n.name;
878
- if (e.inserted[n.name] === void 0) {
874
+ _n === !1) && t.registered[a] === void 0 && (t.registered[a] = n.styles);
875
+ }, An = function(t, n, i) {
876
+ Xt(t, n, i);
877
+ var a = t.key + "-" + n.name;
878
+ if (t.inserted[n.name] === void 0) {
879
879
  var l = n;
880
880
  do
881
- e.insert(n === l ? "." + a : "", l, e.sheet, !0), l = l.next;
881
+ t.insert(n === l ? "." + a : "", l, t.sheet, !0), l = l.next;
882
882
  while (l !== void 0);
883
883
  }
884
884
  };
885
- function kn(t) {
886
- for (var e = 0, n, i = 0, a = t.length; a >= 4; ++i, a -= 4)
887
- n = t.charCodeAt(i) & 255 | (t.charCodeAt(++i) & 255) << 8 | (t.charCodeAt(++i) & 255) << 16 | (t.charCodeAt(++i) & 255) << 24, n = /* Math.imul(k, m): */
885
+ function Mn(e) {
886
+ for (var t = 0, n, i = 0, a = e.length; a >= 4; ++i, a -= 4)
887
+ n = e.charCodeAt(i) & 255 | (e.charCodeAt(++i) & 255) << 8 | (e.charCodeAt(++i) & 255) << 16 | (e.charCodeAt(++i) & 255) << 24, n = /* Math.imul(k, m): */
888
888
  (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
889
- n >>> 24, e = /* Math.imul(k, m): */
889
+ n >>> 24, t = /* Math.imul(k, m): */
890
890
  (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
891
- (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
891
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
892
892
  switch (a) {
893
893
  case 3:
894
- e ^= (t.charCodeAt(i + 2) & 255) << 16;
894
+ t ^= (e.charCodeAt(i + 2) & 255) << 16;
895
895
  case 2:
896
- e ^= (t.charCodeAt(i + 1) & 255) << 8;
896
+ t ^= (e.charCodeAt(i + 1) & 255) << 8;
897
897
  case 1:
898
- e ^= t.charCodeAt(i) & 255, e = /* Math.imul(h, m): */
899
- (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
898
+ t ^= e.charCodeAt(i) & 255, t = /* Math.imul(h, m): */
899
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
900
900
  }
901
- return e ^= e >>> 13, e = /* Math.imul(h, m): */
902
- (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
901
+ return t ^= t >>> 13, t = /* Math.imul(h, m): */
902
+ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
903
903
  }
904
- var Mn = {
904
+ var Fn = {
905
905
  animationIterationCount: 1,
906
906
  aspectRatio: 1,
907
907
  borderImageOutset: 1,
@@ -951,34 +951,34 @@ var Mn = {
951
951
  strokeOpacity: 1,
952
952
  strokeWidth: 1
953
953
  };
954
- function Fn(t) {
955
- var e = /* @__PURE__ */ Object.create(null);
954
+ function jn(e) {
955
+ var t = /* @__PURE__ */ Object.create(null);
956
956
  return function(n) {
957
- return e[n] === void 0 && (e[n] = t(n)), e[n];
957
+ return t[n] === void 0 && (t[n] = e(n)), t[n];
958
958
  };
959
959
  }
960
- var jn = /[A-Z]|^ms/g, Nn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Kt = function(e) {
961
- return e.charCodeAt(1) === 45;
962
- }, Ft = function(e) {
963
- return e != null && typeof e != "boolean";
964
- }, et = /* @__PURE__ */ Fn(function(t) {
965
- return Kt(t) ? t : t.replace(jn, "-$&").toLowerCase();
966
- }), jt = function(e, n) {
967
- switch (e) {
960
+ var Nn = /[A-Z]|^ms/g, $n = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Zt = function(t) {
961
+ return t.charCodeAt(1) === 45;
962
+ }, Ft = function(t) {
963
+ return t != null && typeof t != "boolean";
964
+ }, et = /* @__PURE__ */ jn(function(e) {
965
+ return Zt(e) ? e : e.replace(Nn, "-$&").toLowerCase();
966
+ }), jt = function(t, n) {
967
+ switch (t) {
968
968
  case "animation":
969
969
  case "animationName":
970
970
  if (typeof n == "string")
971
- return n.replace(Nn, function(i, a, l) {
972
- return K = {
971
+ return n.replace($n, function(i, a, l) {
972
+ return X = {
973
973
  name: a,
974
974
  styles: l,
975
- next: K
975
+ next: X
976
976
  }, a;
977
977
  });
978
978
  }
979
- return Mn[e] !== 1 && !Kt(e) && typeof n == "number" && n !== 0 ? n + "px" : n;
979
+ return Fn[t] !== 1 && !Zt(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
980
980
  };
981
- function Ie(t, e, n) {
981
+ function Ie(e, t, n) {
982
982
  if (n == null)
983
983
  return "";
984
984
  var i = n;
@@ -990,53 +990,53 @@ function Ie(t, e, n) {
990
990
  case "object": {
991
991
  var a = n;
992
992
  if (a.anim === 1)
993
- return K = {
993
+ return X = {
994
994
  name: a.name,
995
995
  styles: a.styles,
996
- next: K
996
+ next: X
997
997
  }, a.name;
998
998
  var l = n;
999
999
  if (l.styles !== void 0) {
1000
1000
  var d = l.next;
1001
1001
  if (d !== void 0)
1002
1002
  for (; d !== void 0; )
1003
- K = {
1003
+ X = {
1004
1004
  name: d.name,
1005
1005
  styles: d.styles,
1006
- next: K
1006
+ next: X
1007
1007
  }, d = d.next;
1008
1008
  var h = l.styles + ";";
1009
1009
  return h;
1010
1010
  }
1011
- return $n(t, e, n);
1011
+ return Dn(e, t, n);
1012
1012
  }
1013
1013
  case "function": {
1014
- if (t !== void 0) {
1015
- var m = K, p = n(t);
1016
- return K = m, Ie(t, e, p);
1014
+ if (e !== void 0) {
1015
+ var m = X, p = n(e);
1016
+ return X = m, Ie(e, t, p);
1017
1017
  }
1018
1018
  break;
1019
1019
  }
1020
1020
  }
1021
- var E = n;
1022
- return E;
1021
+ var T = n;
1022
+ return T;
1023
1023
  }
1024
- function $n(t, e, n) {
1024
+ function Dn(e, t, n) {
1025
1025
  var i = "";
1026
1026
  if (Array.isArray(n))
1027
1027
  for (var a = 0; a < n.length; a++)
1028
- i += Ie(t, e, n[a]) + ";";
1028
+ i += Ie(e, t, n[a]) + ";";
1029
1029
  else
1030
1030
  for (var l in n) {
1031
1031
  var d = n[l];
1032
1032
  if (typeof d != "object") {
1033
1033
  var h = d;
1034
1034
  Ft(h) && (i += et(l) + ":" + jt(l, h) + ";");
1035
- } else if (Array.isArray(d) && typeof d[0] == "string" && e == null)
1035
+ } else if (Array.isArray(d) && typeof d[0] == "string" && t == null)
1036
1036
  for (var m = 0; m < d.length; m++)
1037
1037
  Ft(d[m]) && (i += et(l) + ":" + jt(l, d[m]) + ";");
1038
1038
  else {
1039
- var p = Ie(t, e, d);
1039
+ var p = Ie(e, t, d);
1040
1040
  switch (l) {
1041
1041
  case "animation":
1042
1042
  case "animationName": {
@@ -1050,99 +1050,99 @@ function $n(t, e, n) {
1050
1050
  }
1051
1051
  return i;
1052
1052
  }
1053
- var Nt = /label:\s*([^\s;{]+)\s*(;|$)/g, K;
1054
- function Dn(t, e, n) {
1055
- if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1056
- return t[0];
1053
+ var Nt = /label:\s*([^\s;{]+)\s*(;|$)/g, X;
1054
+ function zn(e, t, n) {
1055
+ if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1056
+ return e[0];
1057
1057
  var i = !0, a = "";
1058
- K = void 0;
1059
- var l = t[0];
1058
+ X = void 0;
1059
+ var l = e[0];
1060
1060
  if (l == null || l.raw === void 0)
1061
- i = !1, a += Ie(n, e, l);
1061
+ i = !1, a += Ie(n, t, l);
1062
1062
  else {
1063
1063
  var d = l;
1064
1064
  a += d[0];
1065
1065
  }
1066
- for (var h = 1; h < t.length; h++)
1067
- if (a += Ie(n, e, t[h]), i) {
1066
+ for (var h = 1; h < e.length; h++)
1067
+ if (a += Ie(n, t, e[h]), i) {
1068
1068
  var m = l;
1069
1069
  a += m[h];
1070
1070
  }
1071
1071
  Nt.lastIndex = 0;
1072
- for (var p = "", E; (E = Nt.exec(a)) !== null; )
1073
- p += "-" + E[1];
1074
- var P = kn(a) + p;
1072
+ for (var p = "", T; (T = Nt.exec(a)) !== null; )
1073
+ p += "-" + T[1];
1074
+ var w = Mn(a) + p;
1075
1075
  return {
1076
- name: P,
1076
+ name: w,
1077
1077
  styles: a,
1078
- next: K
1078
+ next: X
1079
1079
  };
1080
1080
  }
1081
- var zn = function(e) {
1082
- return e();
1083
- }, Ln = ee.useInsertionEffect ? ee.useInsertionEffect : !1, Vn = Ln || zn, Xt = /* @__PURE__ */ ee.createContext(
1081
+ var Bn = function(t) {
1082
+ return t();
1083
+ }, Ln = te.useInsertionEffect ? te.useInsertionEffect : !1, Vn = Ln || Bn, Qt = /* @__PURE__ */ te.createContext(
1084
1084
  // we're doing this to avoid preconstruct's dead code elimination in this one case
1085
1085
  // because this module is primarily intended for the browser and node
1086
1086
  // but it's also required in react native and similar environments sometimes
1087
1087
  // and we could have a special build just for that
1088
1088
  // but this is much easier and the native packages
1089
1089
  // might use a different theme context in the future anyway
1090
- typeof HTMLElement < "u" ? /* @__PURE__ */ Ar({
1090
+ typeof HTMLElement < "u" ? /* @__PURE__ */ Mr({
1091
1091
  key: "css"
1092
1092
  }) : null
1093
1093
  );
1094
- Xt.Provider;
1095
- var Yn = function(e) {
1096
- return /* @__PURE__ */ wr(function(n, i) {
1097
- var a = at(Xt);
1098
- return e(n, a, i);
1094
+ Qt.Provider;
1095
+ var Yn = function(t) {
1096
+ return /* @__PURE__ */ _r(function(n, i) {
1097
+ var a = at(Qt);
1098
+ return t(n, a, i);
1099
1099
  });
1100
- }, Bn = /* @__PURE__ */ ee.createContext({}), Le = {}.hasOwnProperty, it = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Zt = function(e, n) {
1100
+ }, Wn = /* @__PURE__ */ te.createContext({}), Be = {}.hasOwnProperty, it = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", er = function(t, n) {
1101
1101
  var i = {};
1102
1102
  for (var a in n)
1103
- Le.call(n, a) && (i[a] = n[a]);
1104
- return i[it] = e, i;
1105
- }, Wn = function(e) {
1106
- var n = e.cache, i = e.serialized, a = e.isStringTag;
1107
- return Jt(n, i, a), Vn(function() {
1103
+ Be.call(n, a) && (i[a] = n[a]);
1104
+ return i[it] = t, i;
1105
+ }, Un = function(t) {
1106
+ var n = t.cache, i = t.serialized, a = t.isStringTag;
1107
+ return Xt(n, i, a), Vn(function() {
1108
1108
  return An(n, i, a);
1109
1109
  }), null;
1110
- }, Un = /* @__PURE__ */ Yn(function(t, e, n) {
1111
- var i = t.css;
1112
- typeof i == "string" && e.registered[i] !== void 0 && (i = e.registered[i]);
1113
- var a = t[it], l = [i], d = "";
1114
- typeof t.className == "string" ? d = _n(e.registered, l, t.className) : t.className != null && (d = t.className + " ");
1115
- var h = Dn(l, void 0, ee.useContext(Bn));
1116
- d += e.key + "-" + h.name;
1110
+ }, qn = /* @__PURE__ */ Yn(function(e, t, n) {
1111
+ var i = e.css;
1112
+ typeof i == "string" && t.registered[i] !== void 0 && (i = t.registered[i]);
1113
+ var a = e[it], l = [i], d = "";
1114
+ typeof e.className == "string" ? d = kn(t.registered, l, e.className) : e.className != null && (d = e.className + " ");
1115
+ var h = zn(l, void 0, te.useContext(Wn));
1116
+ d += t.key + "-" + h.name;
1117
1117
  var m = {};
1118
- for (var p in t)
1119
- Le.call(t, p) && p !== "css" && p !== it && (m[p] = t[p]);
1120
- return m.className = d, n && (m.ref = n), /* @__PURE__ */ ee.createElement(ee.Fragment, null, /* @__PURE__ */ ee.createElement(Wn, {
1121
- cache: e,
1118
+ for (var p in e)
1119
+ Be.call(e, p) && p !== "css" && p !== it && (m[p] = e[p]);
1120
+ return m.className = d, n && (m.ref = n), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(Un, {
1121
+ cache: t,
1122
1122
  serialized: h,
1123
1123
  isStringTag: typeof a == "string"
1124
- }), /* @__PURE__ */ ee.createElement(a, m));
1125
- }), Qt = Un, Ve = xe.Fragment, o = function(e, n, i) {
1126
- return Le.call(n, "css") ? xe.jsx(Qt, Zt(e, n), i) : xe.jsx(e, n, i);
1127
- }, j = function(e, n, i) {
1128
- return Le.call(n, "css") ? xe.jsxs(Qt, Zt(e, n), i) : xe.jsxs(e, n, i);
1124
+ }), /* @__PURE__ */ te.createElement(a, m));
1125
+ }), tr = qn, Le = xe.Fragment, o = function(t, n, i) {
1126
+ return Be.call(n, "css") ? xe.jsx(tr, er(t, n), i) : xe.jsx(t, n, i);
1127
+ }, $ = function(t, n, i) {
1128
+ return Be.call(n, "css") ? xe.jsxs(tr, er(t, n), i) : xe.jsxs(t, n, i);
1129
1129
  };
1130
- const qn = ({
1131
- onCancel: t,
1132
- onSave: e
1130
+ const Hn = ({
1131
+ onCancel: e,
1132
+ onSave: t
1133
1133
  }) => {
1134
- const n = Nr({ prefix: "modalForm" }), [i, a] = W(""), [l, d] = W(""), [h, m] = W(!1);
1135
- return /* @__PURE__ */ j(Yr, { onClose: t, initialFocus: "[name=url]", children: [
1136
- /* @__PURE__ */ o(Dr, { children: /* @__PURE__ */ o($r, { children: "Add video" }) }),
1137
- /* @__PURE__ */ o(Lr, { children: /* @__PURE__ */ j(
1138
- zr,
1134
+ const n = zr({ prefix: "modalForm" }), [i, a] = W(""), [l, d] = W(""), [h, m] = W(!1);
1135
+ return /* @__PURE__ */ $(Ur, { onClose: e, initialFocus: "[name=url]", children: [
1136
+ /* @__PURE__ */ o(Lr, { children: /* @__PURE__ */ o(Br, { children: "Add video" }) }),
1137
+ /* @__PURE__ */ o(Yr, { children: /* @__PURE__ */ $(
1138
+ Vr,
1139
1139
  {
1140
1140
  id: n,
1141
1141
  component: "form",
1142
1142
  onSubmit: async (p) => {
1143
1143
  p.preventDefault();
1144
1144
  try {
1145
- m(!0), await e({ url: i, title: l });
1145
+ m(!0), await t({ url: i, title: l });
1146
1146
  } finally {
1147
1147
  m(!1);
1148
1148
  }
@@ -1167,10 +1167,10 @@ const qn = ({
1167
1167
  ]
1168
1168
  }
1169
1169
  ) }),
1170
- /* @__PURE__ */ j(Vr, { children: [
1171
- /* @__PURE__ */ o(Lt, { onClick: t, children: "Cancel" }),
1170
+ /* @__PURE__ */ $(Wr, { children: [
1171
+ /* @__PURE__ */ o(Bt, { onClick: e, children: "Cancel" }),
1172
1172
  /* @__PURE__ */ o(
1173
- te,
1173
+ re,
1174
1174
  {
1175
1175
  type: "submit",
1176
1176
  form: n,
@@ -1183,16 +1183,16 @@ const qn = ({
1183
1183
  ] })
1184
1184
  ] });
1185
1185
  }, $t = ne(
1186
- ({ onSave: t }) => {
1187
- const [e, n] = W(!1), i = N(
1186
+ ({ onSave: e }) => {
1187
+ const [t, n] = W(!1), i = N(
1188
1188
  async (a) => {
1189
- await t(a), n(!1);
1189
+ await e(a), n(!1);
1190
1190
  },
1191
- [t]
1191
+ [e]
1192
1192
  );
1193
- return /* @__PURE__ */ j(Ve, { children: [
1193
+ return /* @__PURE__ */ $(Le, { children: [
1194
1194
  /* @__PURE__ */ o(
1195
- te,
1195
+ re,
1196
1196
  {
1197
1197
  onClick: () => n(!0),
1198
1198
  iconType: ct,
@@ -1200,8 +1200,8 @@ const qn = ({
1200
1200
  children: "Add video"
1201
1201
  }
1202
1202
  ),
1203
- e && /* @__PURE__ */ o(
1204
- qn,
1203
+ t && /* @__PURE__ */ o(
1204
+ Hn,
1205
1205
  {
1206
1206
  onCancel: () => n(!1),
1207
1207
  onSave: i
@@ -1209,7 +1209,7 @@ const qn = ({
1209
1209
  )
1210
1210
  ] });
1211
1211
  }
1212
- ), er = {
1212
+ ), rr = {
1213
1213
  Audio: "",
1214
1214
  Dailymotion: "https://www.dailymotion.com/favicon.ico",
1215
1215
  Niconico: "https://www.nicovideo.jp/favicon.ico",
@@ -1217,26 +1217,26 @@ const qn = ({
1217
1217
  Twitch: "https://www.twitch.tv/favicon.ico",
1218
1218
  Vimeo: "https://vimeo.com/favicon.ico",
1219
1219
  YouTube: "https://www.youtube.com/favicon.ico"
1220
- }, Hn = $(
1221
- ({ playQueueStore: t }) => {
1222
- const { euiTheme: e } = Vt();
1223
- return /* @__PURE__ */ j(
1224
- Wr,
1220
+ }, Gn = P(
1221
+ ({ playQueueStore: e }) => {
1222
+ const { euiTheme: t } = Lt();
1223
+ return /* @__PURE__ */ $(
1224
+ Hr,
1225
1225
  {
1226
1226
  style: {
1227
1227
  position: "sticky",
1228
1228
  top: 112,
1229
1229
  zIndex: 998,
1230
- background: e.colors.backgroundBasePlain
1230
+ background: t.colors.backgroundBasePlain
1231
1231
  },
1232
1232
  children: [
1233
- /* @__PURE__ */ o(Br, { children: /* @__PURE__ */ o(
1234
- Yt,
1233
+ /* @__PURE__ */ o(qr, { children: /* @__PURE__ */ o(
1234
+ Vt,
1235
1235
  {
1236
1236
  id: "",
1237
- checked: t.allItemsSelected,
1237
+ checked: e.allItemsSelected,
1238
1238
  onChange: (n) => {
1239
- t.allItemsSelected = n.target.checked;
1239
+ e.allItemsSelected = n.target.checked;
1240
1240
  }
1241
1241
  }
1242
1242
  ) }),
@@ -1247,10 +1247,10 @@ const qn = ({
1247
1247
  }
1248
1248
  );
1249
1249
  }
1250
- ), Gn = ne(
1250
+ ), Jn = ne(
1251
1251
  ({
1252
- item: t,
1253
- closePopover: e
1252
+ item: e,
1253
+ closePopover: t
1254
1254
  }) => {
1255
1255
  const n = De(
1256
1256
  () => [
@@ -1259,23 +1259,23 @@ const qn = ({
1259
1259
  items: [
1260
1260
  {
1261
1261
  name: "Play first",
1262
- icon: /* @__PURE__ */ o(B, { type: "" }),
1262
+ icon: /* @__PURE__ */ o(Y, { type: "" }),
1263
1263
  onClick: async () => {
1264
- e(), await t.playFirst();
1264
+ t(), await e.playFirst();
1265
1265
  }
1266
1266
  },
1267
1267
  {
1268
1268
  name: "Play next",
1269
- icon: /* @__PURE__ */ o(B, { type: "" }),
1269
+ icon: /* @__PURE__ */ o(Y, { type: "" }),
1270
1270
  onClick: async () => {
1271
- e(), await t.playNext();
1271
+ t(), await e.playNext();
1272
1272
  }
1273
1273
  },
1274
1274
  {
1275
1275
  name: "Add to play queue",
1276
- icon: /* @__PURE__ */ o(B, { type: ct }),
1276
+ icon: /* @__PURE__ */ o(Y, { type: ct }),
1277
1277
  onClick: async () => {
1278
- e(), await t.addToPlayQueue();
1278
+ t(), await e.addToPlayQueue();
1279
1279
  }
1280
1280
  },
1281
1281
  {
@@ -1283,54 +1283,54 @@ const qn = ({
1283
1283
  },
1284
1284
  {
1285
1285
  name: "Move to the top",
1286
- icon: /* @__PURE__ */ o(B, { type: en }),
1286
+ icon: /* @__PURE__ */ o(Y, { type: nn }),
1287
1287
  onClick: async () => {
1288
- e(), t.moveToTop();
1288
+ t(), e.moveToTop();
1289
1289
  },
1290
- disabled: !t.canMoveToTop
1290
+ disabled: !e.canMoveToTop
1291
1291
  },
1292
1292
  {
1293
1293
  name: "Move to the bottom",
1294
- icon: /* @__PURE__ */ o(B, { type: tn }),
1294
+ icon: /* @__PURE__ */ o(Y, { type: on }),
1295
1295
  onClick: async () => {
1296
- e(), t.moveToBottom();
1296
+ t(), e.moveToBottom();
1297
1297
  },
1298
- disabled: !t.canMoveToBottom
1298
+ disabled: !e.canMoveToBottom
1299
1299
  },
1300
1300
  {
1301
1301
  isSeparator: !0
1302
1302
  },
1303
1303
  {
1304
1304
  name: "Remove to the top",
1305
- icon: /* @__PURE__ */ o(B, { type: "" }),
1305
+ icon: /* @__PURE__ */ o(Y, { type: "" }),
1306
1306
  onClick: async () => {
1307
- e(), await t.removeToTop();
1307
+ t(), await e.removeToTop();
1308
1308
  },
1309
- disabled: !t.canRemoveToTop
1309
+ disabled: !e.canRemoveToTop
1310
1310
  },
1311
1311
  {
1312
1312
  name: "Remove others",
1313
- icon: /* @__PURE__ */ o(B, { type: "" }),
1313
+ icon: /* @__PURE__ */ o(Y, { type: "" }),
1314
1314
  onClick: async () => {
1315
- e(), await t.removeOthers();
1315
+ t(), await e.removeOthers();
1316
1316
  },
1317
- disabled: !t.canRemoveOthers
1317
+ disabled: !e.canRemoveOthers
1318
1318
  }
1319
1319
  ]
1320
1320
  }
1321
1321
  ],
1322
- [e, t]
1322
+ [t, e]
1323
1323
  );
1324
1324
  return /* @__PURE__ */ o(st, { initialPanelId: 0, panels: n });
1325
1325
  }
1326
- ), Jn = ne(
1327
- ({ item: t }) => {
1328
- const [e, n] = W(!1), i = N(() => n(!e), [e]), a = N(() => n(!1), []);
1326
+ ), Kn = ne(
1327
+ ({ item: e }) => {
1328
+ const [t, n] = W(!1), i = N(() => n(!t), [t]), a = N(() => n(!1), []);
1329
1329
  return /* @__PURE__ */ o(
1330
1330
  ze,
1331
1331
  {
1332
1332
  button: /* @__PURE__ */ o(
1333
- H,
1333
+ q,
1334
1334
  {
1335
1335
  title: "More options",
1336
1336
  "aria-label": "More options",
@@ -1340,130 +1340,130 @@ const qn = ({
1340
1340
  onClick: i
1341
1341
  }
1342
1342
  ),
1343
- isOpen: e,
1343
+ isOpen: t,
1344
1344
  closePopover: a,
1345
1345
  panelPaddingSize: "none",
1346
1346
  anchorPosition: "leftCenter",
1347
1347
  children: /* @__PURE__ */ o(
1348
- Gn,
1348
+ Jn,
1349
1349
  {
1350
- item: t,
1350
+ item: e,
1351
1351
  closePopover: a
1352
1352
  }
1353
1353
  )
1354
1354
  }
1355
1355
  );
1356
1356
  }
1357
- ), Kn = $(
1358
- ({ item: t }) => {
1359
- const e = re();
1360
- return /* @__PURE__ */ j(nt, { textOnly: !1, hasActions: !0, align: "right", children: [
1357
+ ), Xn = P(
1358
+ ({ item: e }) => {
1359
+ const t = U();
1360
+ return /* @__PURE__ */ $(nt, { textOnly: !1, hasActions: !0, align: "right", children: [
1361
1361
  /* @__PURE__ */ o(
1362
- te,
1362
+ re,
1363
1363
  {
1364
- iconType: Qr,
1364
+ iconType: rn,
1365
1365
  size: "s",
1366
1366
  onClick: async () => {
1367
- t.isCurrent ? await e.setCurrentTime(0) : t.play();
1367
+ e.isCurrent ? await t.setCurrentTime(0) : e.play();
1368
1368
  },
1369
1369
  children: "Play"
1370
1370
  }
1371
1371
  ),
1372
1372
  /* @__PURE__ */ o(
1373
- te,
1373
+ re,
1374
1374
  {
1375
1375
  iconType: ut,
1376
1376
  size: "s",
1377
- onClick: t.remove,
1377
+ onClick: e.remove,
1378
1378
  children: "Remove"
1379
1379
  }
1380
1380
  ),
1381
- /* @__PURE__ */ o(Jn, { item: t })
1381
+ /* @__PURE__ */ o(Kn, { item: e })
1382
1382
  ] });
1383
1383
  }
1384
- ), Xn = $(
1385
- ({ item: t }) => {
1386
- const e = re();
1387
- return /* @__PURE__ */ j(Hr, { isSelected: t.isCurrent, children: [
1388
- /* @__PURE__ */ o(Ur, { children: /* @__PURE__ */ o(
1389
- Yt,
1384
+ ), Zn = P(
1385
+ ({ item: e }) => {
1386
+ const t = U();
1387
+ return /* @__PURE__ */ $(Kr, { isSelected: e.isCurrent, children: [
1388
+ /* @__PURE__ */ o(Gr, { children: /* @__PURE__ */ o(
1389
+ Vt,
1390
1390
  {
1391
- id: t.id.toString(),
1392
- checked: t.isSelected,
1393
- onChange: t.toggleSelected
1391
+ id: e.id.toString(),
1392
+ checked: e.isSelected,
1393
+ onChange: e.toggleSelected
1394
1394
  }
1395
1395
  ) }),
1396
1396
  /* @__PURE__ */ o(nt, { textOnly: !1, children: /* @__PURE__ */ o(
1397
1397
  "img",
1398
1398
  {
1399
- src: er[t.type],
1399
+ src: rr[e.type],
1400
1400
  width: 16,
1401
1401
  height: 16,
1402
- alt: t.type
1402
+ alt: e.type
1403
1403
  }
1404
1404
  ) }),
1405
1405
  /* @__PURE__ */ o(nt, { children: /* @__PURE__ */ o(
1406
- qr,
1406
+ Jr,
1407
1407
  {
1408
- href: t.url,
1408
+ href: e.url,
1409
1409
  target: "_blank",
1410
1410
  external: !0,
1411
- onClick: () => e.pause(),
1412
- children: t.title
1411
+ onClick: () => t.pause(),
1412
+ children: e.title
1413
1413
  }
1414
1414
  ) }),
1415
- /* @__PURE__ */ o(Kn, { item: t })
1416
- ] }, t.id);
1415
+ /* @__PURE__ */ o(Xn, { item: e })
1416
+ ] }, e.id);
1417
1417
  }
1418
- ), Zn = $(
1419
- ({ playQueueStore: t }) => /* @__PURE__ */ o(
1420
- bn,
1418
+ ), Qn = P(
1419
+ ({ playQueueStore: e }) => /* @__PURE__ */ o(
1420
+ Tn,
1421
1421
  {
1422
1422
  tag: "tbody",
1423
- list: t.items,
1424
- setList: (e) => t.setItems(e),
1425
- children: t.items.map((e) => /* @__PURE__ */ o(Xn, { item: e }, e.id))
1423
+ list: e.items,
1424
+ setList: (t) => e.setItems(t),
1425
+ children: e.items.map((t) => /* @__PURE__ */ o(Zn, { item: t }, t.id))
1426
1426
  }
1427
1427
  )
1428
- ), Qn = $(
1429
- ({ playQueueStore: t }) => /* @__PURE__ */ j(Gr, { children: [
1430
- /* @__PURE__ */ o(Hn, { playQueueStore: t }),
1431
- /* @__PURE__ */ o(Zn, { playQueueStore: t })
1428
+ ), ei = P(
1429
+ ({ playQueueStore: e }) => /* @__PURE__ */ $(Xr, { children: [
1430
+ /* @__PURE__ */ o(Gn, { playQueueStore: e }),
1431
+ /* @__PURE__ */ o(Qn, { playQueueStore: e })
1432
1432
  ] })
1433
1433
  );
1434
- function ei(t) {
1435
- return t !== null && typeof t == "object" && "title" in t && typeof t.title == "string";
1434
+ function ti(e) {
1435
+ return e !== null && typeof e == "object" && "title" in e && typeof e.title == "string";
1436
1436
  }
1437
- const ti = $(
1438
- ({ playQueueStore: t }) => /* @__PURE__ */ o(
1439
- te,
1437
+ const ri = P(
1438
+ ({ playQueueStore: e }) => /* @__PURE__ */ o(
1439
+ re,
1440
1440
  {
1441
1441
  iconType: ct,
1442
- onClick: t.addSelectedItems,
1443
- disabled: t.isEmpty || t.selectedItems.length === 0,
1442
+ onClick: e.addSelectedItems,
1443
+ disabled: e.isEmpty || e.selectedItems.length === 0,
1444
1444
  children: "Add to play queue"
1445
1445
  }
1446
1446
  )
1447
1447
  );
1448
- $(
1449
- ({ playQueueStore: t }) => {
1450
- const [e, n] = W(!1);
1451
- return /* @__PURE__ */ j(Ve, { children: [
1452
- e && /* @__PURE__ */ o(
1453
- Kr,
1448
+ P(
1449
+ ({ playQueueStore: e }) => {
1450
+ const [t, n] = W(!1);
1451
+ return /* @__PURE__ */ $(Le, { children: [
1452
+ t && /* @__PURE__ */ o(
1453
+ Qr,
1454
1454
  {
1455
1455
  type: "push",
1456
1456
  size: "s",
1457
1457
  onClose: () => n(!1),
1458
1458
  children: /* @__PURE__ */ o("div", { style: { blockSize: "100%" }, children: /* @__PURE__ */ o(
1459
- Jr,
1459
+ Zr,
1460
1460
  {
1461
1461
  language: "json",
1462
1462
  overflowHeight: "100%",
1463
1463
  isCopyable: !0,
1464
1464
  isVirtualized: !0,
1465
1465
  children: JSON.stringify(
1466
- t.localStorageState,
1466
+ e.localStorageState,
1467
1467
  void 0,
1468
1468
  2
1469
1469
  )
@@ -1472,21 +1472,21 @@ $(
1472
1472
  }
1473
1473
  ),
1474
1474
  /* @__PURE__ */ o(
1475
- te,
1475
+ re,
1476
1476
  {
1477
1477
  onClick: () => n((i) => !i),
1478
- iconType: rn,
1478
+ iconType: an,
1479
1479
  children: "Developer tools"
1480
1480
  }
1481
1481
  )
1482
1482
  ] });
1483
1483
  }
1484
1484
  );
1485
- const ri = $(
1486
- ({ playQueueStore: t }) => {
1487
- const { euiTheme: e } = Vt(), n = N(
1485
+ const ni = P(
1486
+ ({ playQueueStore: e }) => {
1487
+ const { euiTheme: t } = Lt(), n = N(
1488
1488
  async (i) => {
1489
- const a = kr(i.url);
1489
+ const a = Fr(i.url);
1490
1490
  if (a !== void 0) {
1491
1491
  const l = a.extractVideoId(i.url);
1492
1492
  if (l !== void 0) {
@@ -1495,21 +1495,21 @@ const ri = $(
1495
1495
  i.url
1496
1496
  )}`
1497
1497
  )).json();
1498
- await t.addItems([
1499
- t.createItem({
1498
+ await e.addItems([
1499
+ e.createItem({
1500
1500
  url: i.url,
1501
1501
  type: a.type,
1502
1502
  videoId: l,
1503
- title: i.title || (ei(h) ? h.title : l)
1503
+ title: i.title || (ti(h) ? h.title : l)
1504
1504
  })
1505
1505
  ]);
1506
1506
  }
1507
1507
  }
1508
1508
  },
1509
- [t]
1509
+ [e]
1510
1510
  );
1511
- return /* @__PURE__ */ j(Ve, { children: [
1512
- /* @__PURE__ */ j(
1511
+ return /* @__PURE__ */ $(Le, { children: [
1512
+ /* @__PURE__ */ $(
1513
1513
  se,
1514
1514
  {
1515
1515
  alignItems: "center",
@@ -1518,38 +1518,38 @@ const ri = $(
1518
1518
  position: "sticky",
1519
1519
  top: 48,
1520
1520
  zIndex: 998,
1521
- background: e.colors.backgroundBasePlain
1521
+ background: t.colors.backgroundBasePlain
1522
1522
  },
1523
1523
  children: [
1524
- /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(
1525
- te,
1524
+ /* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
1525
+ re,
1526
1526
  {
1527
- disabled: t.isEmpty || t.selectedItems.length === 0,
1528
- onClick: t.playSelectedItemsNext,
1527
+ disabled: e.isEmpty || e.selectedItems.length === 0,
1528
+ onClick: e.playSelectedItemsNext,
1529
1529
  children: "Play next"
1530
1530
  }
1531
1531
  ) }),
1532
- /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(ti, { playQueueStore: t }) }),
1533
- /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(
1534
- te,
1532
+ /* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(ri, { playQueueStore: e }) }),
1533
+ /* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
1534
+ re,
1535
1535
  {
1536
1536
  iconType: ut,
1537
- onClick: t.removeSelectedItems,
1538
- disabled: t.isEmpty || t.selectedItems.length === 0,
1537
+ onClick: e.removeSelectedItems,
1538
+ disabled: e.isEmpty || e.selectedItems.length === 0,
1539
1539
  children: "Remove"
1540
1540
  }
1541
1541
  ) }),
1542
- /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(
1543
- te,
1542
+ /* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
1543
+ re,
1544
1544
  {
1545
- iconType: nn,
1546
- onClick: t.clear,
1547
- disabled: t.isEmpty,
1545
+ iconType: sn,
1546
+ onClick: e.clear,
1547
+ disabled: e.isEmpty,
1548
1548
  children: "Clear"
1549
1549
  }
1550
1550
  ) }),
1551
- /* @__PURE__ */ o(G, { grow: !0 }),
1552
- /* @__PURE__ */ j(G, { grow: !1, children: [
1551
+ /* @__PURE__ */ o(J, { grow: !0 }),
1552
+ /* @__PURE__ */ $(J, { grow: !1, children: [
1553
1553
  !1,
1554
1554
  /* @__PURE__ */ o($t, { onSave: n })
1555
1555
  ] })
@@ -1557,41 +1557,41 @@ const ri = $(
1557
1557
  }
1558
1558
  ),
1559
1559
  /* @__PURE__ */ o(
1560
- Bt,
1560
+ Yt,
1561
1561
  {
1562
1562
  size: "l",
1563
1563
  style: {
1564
1564
  position: "sticky",
1565
1565
  top: 88,
1566
1566
  zIndex: 998,
1567
- background: e.colors.backgroundBasePlain
1567
+ background: t.colors.backgroundBasePlain
1568
1568
  }
1569
1569
  }
1570
1570
  ),
1571
- t.isEmpty ? /* @__PURE__ */ o(
1572
- Xr,
1571
+ e.isEmpty ? /* @__PURE__ */ o(
1572
+ en,
1573
1573
  {
1574
1574
  title: /* @__PURE__ */ o("h2", { children: "We couldn't find any videos" }),
1575
1575
  body: /* @__PURE__ */ o("p", { children: "Your video library doesn't contain any video content." }),
1576
1576
  actions: /* @__PURE__ */ o($t, { onSave: n })
1577
1577
  }
1578
- ) : /* @__PURE__ */ o(Qn, { playQueueStore: t })
1578
+ ) : /* @__PURE__ */ o(ei, { playQueueStore: e })
1579
1579
  ] });
1580
1580
  }
1581
1581
  ), tt = new En({
1582
1582
  coerceTypes: !0
1583
1583
  });
1584
- function ni(t, e) {
1584
+ function ii(e, t) {
1585
1585
  let n;
1586
- if (n = tt.getSchema(e), n === void 0 && (tt.addSchema(t, e), n = tt.getSchema(e)), n === void 0 || n.schema !== t)
1586
+ if (n = tt.getSchema(t), n === void 0 && (tt.addSchema(e, t), n = tt.getSchema(t)), n === void 0 || n.schema !== e)
1587
1587
  throw new Error(
1588
1588
  `Invalid schema. Expected: '${JSON.stringify(
1589
- t
1589
+ e
1590
1590
  )}', but got '${JSON.stringify(n?.schema)}'.`
1591
1591
  );
1592
1592
  return n;
1593
1593
  }
1594
- const ii = {
1594
+ const oi = {
1595
1595
  type: "object",
1596
1596
  properties: {
1597
1597
  url: {
@@ -1609,8 +1609,8 @@ const ii = {
1609
1609
  },
1610
1610
  required: ["url", "type", "videoId", "title"]
1611
1611
  };
1612
- var w = /* @__PURE__ */ ((t) => (t.Off = "Off", t.All = "All", t.One = "One", t))(w || {});
1613
- const oi = {
1612
+ var O = /* @__PURE__ */ ((e) => (e.Off = "Off", e.All = "All", e.One = "One", e))(O || {});
1613
+ const ai = {
1614
1614
  type: "object",
1615
1615
  properties: {
1616
1616
  version: {
@@ -1619,7 +1619,7 @@ const oi = {
1619
1619
  },
1620
1620
  repeat: {
1621
1621
  type: "string",
1622
- enum: Object.values(w),
1622
+ enum: Object.values(O),
1623
1623
  nullable: !0
1624
1624
  },
1625
1625
  shuffle: {
@@ -1629,7 +1629,7 @@ const oi = {
1629
1629
  items: {
1630
1630
  type: "array",
1631
1631
  nullable: !0,
1632
- items: ii
1632
+ items: oi
1633
1633
  },
1634
1634
  currentIndex: {
1635
1635
  type: "integer",
@@ -1638,9 +1638,9 @@ const oi = {
1638
1638
  }
1639
1639
  };
1640
1640
  class $e {
1641
- constructor(e, n, i) {
1642
- this.observableStateProvider = e, this.playQueueStore = n, this.dto = i, this.id = $e.nextId++, e.makeObservable(this, {
1643
- isSelected: X,
1641
+ constructor(t, n, i) {
1642
+ this.observableStateProvider = t, this.playQueueStore = n, this.dto = i, this.id = $e.nextId++, t.makeObservable(this, {
1643
+ isSelected: Z,
1644
1644
  isCurrent: A,
1645
1645
  index: A,
1646
1646
  isFirst: A,
@@ -1665,9 +1665,9 @@ class $e {
1665
1665
  static nextId = 1;
1666
1666
  id;
1667
1667
  isSelected = !1;
1668
- static fromDto(e, n, i) {
1668
+ static fromDto(t, n, i) {
1669
1669
  return new $e(
1670
- e,
1670
+ t,
1671
1671
  n,
1672
1672
  i
1673
1673
  );
@@ -1748,14 +1748,14 @@ class $e {
1748
1748
  return this.playQueueStore.removeOtherItems(this);
1749
1749
  }
1750
1750
  }
1751
- class ai {
1752
- constructor(e) {
1753
- this.observableStateProvider = e, e.makeObservable(this, {
1754
- interacted: X,
1755
- items: X,
1756
- currentId: X,
1757
- repeat: X,
1758
- shuffle: X,
1751
+ class si {
1752
+ constructor(t) {
1753
+ this.observableStateProvider = t, t.makeObservable(this, {
1754
+ interacted: Z,
1755
+ items: Z,
1756
+ currentId: Z,
1757
+ repeat: Z,
1758
+ shuffle: Z,
1759
1759
  localStorageState: A.struct,
1760
1760
  isEmpty: A,
1761
1761
  currentItem: A,
@@ -1796,13 +1796,13 @@ class ai {
1796
1796
  interacted = !1;
1797
1797
  items = [];
1798
1798
  currentId;
1799
- repeat = w.Off;
1799
+ repeat = O.Off;
1800
1800
  shuffle = !1;
1801
- createItem(e) {
1801
+ createItem(t) {
1802
1802
  return $e.fromDto(
1803
1803
  this.observableStateProvider,
1804
1804
  this,
1805
- e
1805
+ t
1806
1806
  );
1807
1807
  }
1808
1808
  get localStorageState() {
@@ -1810,24 +1810,24 @@ class ai {
1810
1810
  version: "1.0",
1811
1811
  repeat: this.repeat,
1812
1812
  shuffle: this.shuffle,
1813
- items: this.items.map((e) => e.dto),
1813
+ items: this.items.map((t) => t.dto),
1814
1814
  currentIndex: this.currentIndex
1815
1815
  };
1816
1816
  }
1817
- set localStorageState(e) {
1818
- this.repeat = e.repeat ?? w.Off, this.shuffle = e.shuffle ?? !1, this.items = e.items?.map((n) => this.createItem(n)) ?? [], this.currentIndex = e.currentIndex;
1817
+ set localStorageState(t) {
1818
+ this.repeat = t.repeat ?? O.Off, this.shuffle = t.shuffle ?? !1, this.items = t.items?.map((n) => this.createItem(n)) ?? [], this.currentIndex = t.currentIndex;
1819
1819
  }
1820
- validateLocalStorageState(e) {
1821
- return ni(
1822
- oi,
1820
+ validateLocalStorageState(t) {
1821
+ return ii(
1822
+ ai,
1823
1823
  "PlayQueueDto"
1824
- )(e);
1824
+ )(t);
1825
1825
  }
1826
1826
  get isEmpty() {
1827
1827
  return this.items.length === 0;
1828
1828
  }
1829
1829
  get currentItem() {
1830
- return this.items.find((e) => e.id === this.currentId);
1830
+ return this.items.find((t) => t.id === this.currentId);
1831
1831
  }
1832
1832
  get canPlay() {
1833
1833
  return this.currentItem !== void 0;
@@ -1839,10 +1839,10 @@ class ai {
1839
1839
  return this.items.length > 1;
1840
1840
  }
1841
1841
  get currentIndex() {
1842
- return this.currentId !== void 0 ? this.items.findIndex((e) => e.id === this.currentId) : void 0;
1842
+ return this.currentId !== void 0 ? this.items.findIndex((t) => t.id === this.currentId) : void 0;
1843
1843
  }
1844
- set currentIndex(e) {
1845
- this.currentId = e !== void 0 ? this.items.at(e)?.id : void 0;
1844
+ set currentIndex(t) {
1845
+ this.currentId = t !== void 0 ? this.items.at(t)?.id : void 0;
1846
1846
  }
1847
1847
  get hasPreviousItem() {
1848
1848
  return this.hasMultipleItems && this.currentIndex !== void 0 && this.currentIndex > 0;
@@ -1854,20 +1854,20 @@ class ai {
1854
1854
  return this.currentIndex !== void 0 && this.currentIndex === this.items.length - 1;
1855
1855
  }
1856
1856
  get selectedItems() {
1857
- return this.items.filter((e) => e.isSelected);
1857
+ return this.items.filter((t) => t.isSelected);
1858
1858
  }
1859
1859
  get allItemsSelected() {
1860
1860
  return this.selectedItems.length === this.items.length;
1861
1861
  }
1862
- set allItemsSelected(e) {
1862
+ set allItemsSelected(t) {
1863
1863
  for (const n of this.items)
1864
- n.isSelected = e;
1864
+ n.isSelected = t;
1865
1865
  }
1866
1866
  get selectedItemsOrAllItems() {
1867
1867
  return this.selectedItems.length > 0 ? this.selectedItems : this.items;
1868
1868
  }
1869
- setItems(e) {
1870
- this.items = e;
1869
+ setItems(t) {
1870
+ this.items = t;
1871
1871
  }
1872
1872
  interact() {
1873
1873
  this.interacted = !0;
@@ -1876,88 +1876,88 @@ class ai {
1876
1876
  this.interact(), this.currentIndex = void 0, this.items = [];
1877
1877
  }
1878
1878
  unselectAll() {
1879
- for (const e of this.items)
1880
- e.unselect();
1879
+ for (const t of this.items)
1880
+ t.unselect();
1881
1881
  }
1882
- setCurrentItem(e) {
1883
- this.interact(), this.currentId = e?.id;
1882
+ setCurrentItem(t) {
1883
+ this.interact(), this.currentId = t?.id;
1884
1884
  }
1885
- setNextItems(e) {
1886
- this.currentIndex !== void 0 && this.items.splice(this.currentIndex + 1, 0, ...e);
1885
+ setNextItems(t) {
1886
+ this.currentIndex !== void 0 && this.items.splice(this.currentIndex + 1, 0, ...t);
1887
1887
  }
1888
- clearAndSetItems(e) {
1889
- this.clear(), this.setCurrentItem(e[0]), this.setNextItems(e);
1888
+ clearAndSetItems(t) {
1889
+ this.clear(), this.setCurrentItem(t[0]), this.setNextItems(t);
1890
1890
  }
1891
- async playNext(e) {
1891
+ async playNext(t) {
1892
1892
  if (this.isEmpty) {
1893
- this.clearAndSetItems(e);
1893
+ this.clearAndSetItems(t);
1894
1894
  return;
1895
1895
  }
1896
- this.setNextItems(e);
1896
+ this.setNextItems(t);
1897
1897
  }
1898
1898
  async playSelectedItemsNext() {
1899
1899
  await this.playNext(
1900
- this.selectedItemsOrAllItems.map((e) => e.clone())
1900
+ this.selectedItemsOrAllItems.map((t) => t.clone())
1901
1901
  ), this.unselectAll();
1902
1902
  }
1903
- async addItems(e) {
1903
+ async addItems(t) {
1904
1904
  if (this.isEmpty) {
1905
- this.clearAndSetItems(e);
1905
+ this.clearAndSetItems(t);
1906
1906
  return;
1907
1907
  }
1908
- this.items.push(...e);
1908
+ this.items.push(...t);
1909
1909
  }
1910
1910
  async addSelectedItems() {
1911
1911
  await this.addItems(
1912
- this.selectedItemsOrAllItems.map((e) => e.clone())
1912
+ this.selectedItemsOrAllItems.map((t) => t.clone())
1913
1913
  ), this.unselectAll();
1914
1914
  }
1915
- async playFirst(e) {
1915
+ async playFirst(t) {
1916
1916
  if (this.isEmpty) {
1917
- this.clearAndSetItems(e);
1917
+ this.clearAndSetItems(t);
1918
1918
  return;
1919
1919
  }
1920
1920
  const { currentIndex: n } = this;
1921
- n !== void 0 && (this.interact(), this.items.splice(n, 0, ...e), this.currentIndex = n);
1921
+ n !== void 0 && (this.interact(), this.items.splice(n, 0, ...t), this.currentIndex = n);
1922
1922
  }
1923
- moveItem(e, n) {
1924
- const i = this.items.splice(this.items.indexOf(e), 1)[0];
1923
+ moveItem(t, n) {
1924
+ const i = this.items.splice(this.items.indexOf(t), 1)[0];
1925
1925
  this.items.splice(n, 0, i);
1926
1926
  }
1927
- async removeItems(e) {
1927
+ async removeItems(t) {
1928
1928
  const { currentItem: n } = this;
1929
- Pt(this.items, ...e.filter((l) => l !== n));
1929
+ Pt(this.items, ...t.filter((l) => l !== n));
1930
1930
  const { currentIndex: i, isLastItem: a } = this;
1931
1931
  Pt(
1932
1932
  this.items,
1933
- e.find((l) => l === n)
1933
+ t.find((l) => l === n)
1934
1934
  ), this.currentItem !== n && (this.interact(), a ? await this.goToFirst() : this.currentIndex = i);
1935
1935
  }
1936
1936
  async removeSelectedItems() {
1937
1937
  await this.removeItems(this.selectedItemsOrAllItems), this.unselectAll();
1938
1938
  }
1939
- async removeOtherItems(e) {
1940
- const n = e.id;
1939
+ async removeOtherItems(t) {
1940
+ const n = t.id;
1941
1941
  return this.removeItems(
1942
1942
  this.items.filter((i) => i.id !== n)
1943
1943
  );
1944
1944
  }
1945
- async removeItemsAbove(e) {
1946
- const n = this.items.indexOf(e);
1945
+ async removeItemsAbove(t) {
1946
+ const n = this.items.indexOf(t);
1947
1947
  return this.removeItems(
1948
1948
  this.items.filter((i, a) => a < n)
1949
1949
  );
1950
1950
  }
1951
1951
  toggleRepeat() {
1952
1952
  switch (this.repeat) {
1953
- case w.Off:
1954
- this.repeat = w.All;
1953
+ case O.Off:
1954
+ this.repeat = O.All;
1955
1955
  break;
1956
- case w.All:
1957
- this.repeat = w.One;
1956
+ case O.All:
1957
+ this.repeat = O.One;
1958
1958
  break;
1959
- case w.One:
1960
- this.repeat = w.Off;
1959
+ case O.One:
1960
+ this.repeat = O.Off;
1961
1961
  break;
1962
1962
  }
1963
1963
  }
@@ -1974,29 +1974,29 @@ class ai {
1974
1974
  this.currentIndex !== void 0 && (this.currentIndex = 0);
1975
1975
  }
1976
1976
  }
1977
- const tr = zt(void 0), ji = ({
1978
- children: t
1977
+ const nr = zt(void 0), Wi = ({
1978
+ children: e
1979
1979
  }) => {
1980
- const [e] = W(
1981
- () => new ai(new Gt())
1982
- ), n = re();
1983
- return Or(() => Rr(
1984
- () => e.currentItem,
1980
+ const [t] = W(
1981
+ () => new si(new Kt())
1982
+ ), n = U();
1983
+ return kr(() => Or(
1984
+ () => t.currentItem,
1985
1985
  async (i, a) => {
1986
1986
  i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await n.setCurrentTime(0);
1987
1987
  }
1988
- ), [e, n]), /* @__PURE__ */ o(tr.Provider, { value: e, children: t });
1989
- }, rr = () => at(tr), si = ({
1990
- breadcrumbs: t,
1991
- tabs: e,
1988
+ ), [t, n]), /* @__PURE__ */ o(nr.Provider, { value: t, children: e });
1989
+ }, ir = () => at(nr), li = ({
1990
+ breadcrumbs: e,
1991
+ tabs: t,
1992
1992
  ...n
1993
1993
  }) => {
1994
- const i = Tn();
1994
+ const i = Cn();
1995
1995
  return /* @__PURE__ */ o(
1996
1996
  lt.Header,
1997
1997
  {
1998
1998
  ...n,
1999
- breadcrumbs: t?.map(({ linkProps: a, ...l }) => ({
1999
+ breadcrumbs: e?.map(({ linkProps: a, ...l }) => ({
2000
2000
  ...l,
2001
2001
  href: a === void 0 ? void 0 : i.buildLocation(
2002
2002
  a
@@ -2006,7 +2006,7 @@ const tr = zt(void 0), ji = ({
2006
2006
  d.preventDefault(), await i.navigate(a);
2007
2007
  }
2008
2008
  })),
2009
- tabs: e?.map(({ linkProps: a, ...l }) => ({
2009
+ tabs: t?.map(({ linkProps: a, ...l }) => ({
2010
2010
  ...l,
2011
2011
  href: a === void 0 ? void 0 : i.buildLocation(
2012
2012
  a
@@ -2018,216 +2018,301 @@ const tr = zt(void 0), ji = ({
2018
2018
  }))
2019
2019
  }
2020
2020
  );
2021
- }, Ni = () => {
2022
- const t = rr();
2023
- return /* @__PURE__ */ j(Ve, { children: [
2021
+ }, Ui = () => {
2022
+ const e = ir();
2023
+ return /* @__PURE__ */ $(Le, { children: [
2024
2024
  /* @__PURE__ */ o(
2025
- si,
2025
+ li,
2026
2026
  {
2027
2027
  pageTitle: "Play queue",
2028
2028
  rightSideItems: []
2029
2029
  }
2030
2030
  ),
2031
- /* @__PURE__ */ o(lt.Section, { children: /* @__PURE__ */ o(ri, { playQueueStore: t }) })
2031
+ /* @__PURE__ */ o(lt.Section, { children: /* @__PURE__ */ o(ni, { playQueueStore: e }) })
2032
2032
  ] });
2033
- }, li = {
2034
- [w.Off]: sn,
2035
- [w.All]: an,
2036
- [w.One]: on
2037
- }, ci = $(
2038
- ({
2039
- playerStore: t,
2040
- playQueueStore: e
2041
- }) => {
2042
- const n = re(), i = N(async () => {
2033
+ }, ci = P(
2034
+ ({ playQueueStore: e }) => /* @__PURE__ */ o(
2035
+ q,
2036
+ {
2037
+ title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
2038
+ "aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
2039
+ iconType: e.shuffle ? ln : cn,
2040
+ size: "s",
2041
+ iconSize: "l",
2042
+ onClick: e.toggleShuffle,
2043
+ disabled: !0
2044
+ }
2045
+ )
2046
+ ), ui = P(
2047
+ ({ playQueueStore: e }) => {
2048
+ const t = U(), n = N(async () => {
2043
2049
  if (e.hasPreviousItem) {
2044
- const a = await n.getCurrentTime();
2045
- a === void 0 || a < 5 ? await e.previous() : await n.setCurrentTime(0);
2050
+ const i = await t.getCurrentTime();
2051
+ i === void 0 || i < 5 ? await e.previous() : await t.setCurrentTime(0);
2046
2052
  } else
2047
- await n.setCurrentTime(0);
2048
- }, [e, n]);
2049
- return /* @__PURE__ */ j(
2050
- se,
2053
+ await t.setCurrentTime(0);
2054
+ }, [e, t]);
2055
+ return /* @__PURE__ */ o(
2056
+ q,
2051
2057
  {
2052
- responsive: !1,
2053
- gutterSize: "s",
2054
- justifyContent: "center",
2055
- alignItems: "center",
2056
- children: [
2057
- /* @__PURE__ */ o(
2058
- H,
2059
- {
2060
- title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
2061
- "aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
2062
- iconType: e.shuffle ? ln : cn,
2063
- size: "s",
2064
- iconSize: "l",
2065
- onClick: e.toggleShuffle,
2066
- disabled: !0
2067
- }
2068
- ),
2069
- /* @__PURE__ */ o(
2070
- H,
2071
- {
2072
- title: "Previous",
2073
- "aria-label": "Previous",
2074
- iconType: un,
2075
- size: "s",
2076
- iconSize: "l",
2077
- onClick: i,
2078
- disabled: e.isEmpty
2079
- }
2080
- ),
2081
- t.playing ? /* @__PURE__ */ o(
2082
- H,
2083
- {
2084
- title: "Pause",
2085
- "aria-label": "Pause",
2086
- iconType: dn,
2087
- size: "s",
2088
- iconSize: "l",
2089
- onClick: () => n.pause(),
2090
- disabled: !e.canPause || !t.controller.supports("pause")
2091
- }
2092
- ) : /* @__PURE__ */ o(
2093
- H,
2094
- {
2095
- title: "Play",
2096
- "aria-label": "Play",
2097
- iconType: fn,
2098
- size: "s",
2099
- iconSize: "l",
2100
- onClick: () => n.play(),
2101
- disabled: !e.canPlay || !t.controller.supports("play")
2102
- }
2103
- ),
2104
- /* @__PURE__ */ o(
2105
- H,
2106
- {
2107
- title: "Next",
2108
- "aria-label": "Next",
2109
- iconType: mn,
2110
- size: "s",
2111
- iconSize: "l",
2112
- onClick: e.next,
2113
- disabled: !e.hasNextItem
2114
- }
2115
- ),
2116
- /* @__PURE__ */ o(
2117
- H,
2118
- {
2119
- title: `Repeat: ${e.repeat === w.All ? "All" : e.repeat === w.One ? "One" : "Off"}`,
2120
- "aria-label": `Repeat: ${e.repeat === w.All ? "All" : e.repeat === w.One ? "One" : "Off"}`,
2121
- iconType: li[e.repeat],
2122
- size: "s",
2123
- iconSize: "l",
2124
- onClick: e.toggleRepeat
2125
- }
2126
- )
2127
- ]
2058
+ title: "Previous",
2059
+ "aria-label": "Previous",
2060
+ iconType: un,
2061
+ size: "s",
2062
+ iconSize: "l",
2063
+ onClick: n,
2064
+ disabled: e.isEmpty
2128
2065
  }
2129
2066
  );
2130
2067
  }
2131
- ), ui = ne(
2132
- ({ item: t, closePopover: e }) => {
2133
- const n = re(), i = De(
2068
+ ), di = P(
2069
+ ({ playerStore: e, playQueueStore: t }) => {
2070
+ const n = U(), i = N(async () => {
2071
+ const a = await n.getCurrentTime();
2072
+ a !== void 0 && await n.setCurrentTime(a - 10);
2073
+ }, [n]);
2074
+ return /* @__PURE__ */ o(
2075
+ q,
2076
+ {
2077
+ title: "Skip back 10 seconds",
2078
+ "aria-label": "Skip back 10 seconds",
2079
+ iconType: qt,
2080
+ size: "s",
2081
+ iconSize: "l",
2082
+ onClick: i,
2083
+ disabled: t.isEmpty || !e.controller.supports("setCurrentTime")
2084
+ }
2085
+ );
2086
+ }
2087
+ ), fi = P(
2088
+ ({ playerStore: e, playQueueStore: t }) => {
2089
+ const n = U();
2090
+ return /* @__PURE__ */ o(
2091
+ q,
2092
+ {
2093
+ title: "Pause",
2094
+ "aria-label": "Pause",
2095
+ iconType: dn,
2096
+ size: "s",
2097
+ iconSize: "l",
2098
+ onClick: () => n.pause(),
2099
+ disabled: !t.canPause || !e.controller.supports("pause")
2100
+ }
2101
+ );
2102
+ }
2103
+ ), mi = P(
2104
+ ({ playerStore: e, playQueueStore: t }) => {
2105
+ const n = U();
2106
+ return /* @__PURE__ */ o(
2107
+ q,
2108
+ {
2109
+ title: "Play",
2110
+ "aria-label": "Play",
2111
+ iconType: fn,
2112
+ size: "s",
2113
+ iconSize: "l",
2114
+ onClick: () => n.play(),
2115
+ disabled: !t.canPlay || !e.controller.supports("play")
2116
+ }
2117
+ );
2118
+ }
2119
+ ), hi = P(
2120
+ ({
2121
+ playerStore: e,
2122
+ playQueueStore: t
2123
+ }) => {
2124
+ const n = U(), i = N(async () => {
2125
+ const a = await n.getCurrentTime();
2126
+ a !== void 0 && await n.setCurrentTime(a + 30);
2127
+ }, [n]);
2128
+ return /* @__PURE__ */ o(
2129
+ q,
2130
+ {
2131
+ title: "Skip forward 30 seconds",
2132
+ "aria-label": "Skip forward 30 seconds",
2133
+ iconType: Ht,
2134
+ size: "s",
2135
+ iconSize: "l",
2136
+ onClick: i,
2137
+ disabled: t.isEmpty || !e.controller.supports("setCurrentTime")
2138
+ }
2139
+ );
2140
+ }
2141
+ ), vi = P(
2142
+ ({ playQueueStore: e }) => /* @__PURE__ */ o(
2143
+ q,
2144
+ {
2145
+ title: "Next",
2146
+ "aria-label": "Next",
2147
+ iconType: mn,
2148
+ size: "s",
2149
+ iconSize: "l",
2150
+ onClick: e.next,
2151
+ disabled: !e.hasNextItem
2152
+ }
2153
+ )
2154
+ ), pi = {
2155
+ [O.Off]: pn,
2156
+ [O.All]: vn,
2157
+ [O.One]: hn
2158
+ }, yi = P(
2159
+ ({ playQueueStore: e }) => /* @__PURE__ */ o(
2160
+ q,
2161
+ {
2162
+ title: `Repeat: ${e.repeat === O.All ? "All" : e.repeat === O.One ? "One" : "Off"}`,
2163
+ "aria-label": `Repeat: ${e.repeat === O.All ? "All" : e.repeat === O.One ? "One" : "Off"}`,
2164
+ iconType: pi[e.repeat],
2165
+ size: "s",
2166
+ iconSize: "l",
2167
+ onClick: e.toggleRepeat
2168
+ }
2169
+ )
2170
+ ), gi = P(
2171
+ ({
2172
+ playerStore: e,
2173
+ playQueueStore: t
2174
+ }) => /* @__PURE__ */ $(
2175
+ se,
2176
+ {
2177
+ responsive: !1,
2178
+ gutterSize: "s",
2179
+ justifyContent: "center",
2180
+ alignItems: "center",
2181
+ children: [
2182
+ /* @__PURE__ */ o(ci, { playQueueStore: t }),
2183
+ /* @__PURE__ */ o(ui, { playQueueStore: t }),
2184
+ /* @__PURE__ */ o(
2185
+ di,
2186
+ {
2187
+ playerStore: e,
2188
+ playQueueStore: t
2189
+ }
2190
+ ),
2191
+ e.playing ? /* @__PURE__ */ o(
2192
+ fi,
2193
+ {
2194
+ playerStore: e,
2195
+ playQueueStore: t
2196
+ }
2197
+ ) : /* @__PURE__ */ o(
2198
+ mi,
2199
+ {
2200
+ playerStore: e,
2201
+ playQueueStore: t
2202
+ }
2203
+ ),
2204
+ /* @__PURE__ */ o(
2205
+ hi,
2206
+ {
2207
+ playerStore: e,
2208
+ playQueueStore: t
2209
+ }
2210
+ ),
2211
+ /* @__PURE__ */ o(vi, { playQueueStore: t }),
2212
+ /* @__PURE__ */ o(yi, { playQueueStore: t })
2213
+ ]
2214
+ }
2215
+ )
2216
+ ), bi = ne(
2217
+ ({ item: e, closePopover: t }) => {
2218
+ const n = U(), i = De(
2134
2219
  () => [
2135
2220
  {
2136
2221
  id: 0,
2137
2222
  items: [
2138
2223
  {
2139
2224
  name: "Open in new tab",
2140
- icon: /* @__PURE__ */ o(B, { type: hn }),
2225
+ icon: /* @__PURE__ */ o(Y, { type: yn }),
2141
2226
  onClick: async () => {
2142
- e(), await n.pause(), window.open(t.dto.url, "_blank");
2227
+ t(), await n.pause(), window.open(e.dto.url, "_blank");
2143
2228
  }
2144
2229
  },
2145
2230
  {
2146
2231
  name: "Copy link address",
2147
- icon: /* @__PURE__ */ o(B, { type: "" }),
2232
+ icon: /* @__PURE__ */ o(Y, { type: "" }),
2148
2233
  onClick: async () => {
2149
- e(), await navigator.clipboard.writeText(
2150
- t.dto.url
2234
+ t(), await navigator.clipboard.writeText(
2235
+ e.dto.url
2151
2236
  );
2152
2237
  }
2153
2238
  },
2154
2239
  {
2155
2240
  name: "Copy link text",
2156
- icon: /* @__PURE__ */ o(B, { type: "" }),
2241
+ icon: /* @__PURE__ */ o(Y, { type: "" }),
2157
2242
  onClick: async () => {
2158
- e(), await navigator.clipboard.writeText(
2159
- t.dto.title
2243
+ t(), await navigator.clipboard.writeText(
2244
+ e.dto.title
2160
2245
  );
2161
2246
  }
2162
2247
  }
2163
2248
  ]
2164
2249
  }
2165
2250
  ],
2166
- [e, n, t]
2251
+ [t, n, e]
2167
2252
  );
2168
2253
  return /* @__PURE__ */ o(st, { initialPanelId: 0, panels: i });
2169
2254
  }
2170
- ), di = ne(
2171
- ({ item: t }) => {
2172
- const [e, n] = W(!1), i = N(() => n(!e), [e]), a = N(() => n(!1), []);
2255
+ ), Ti = ne(
2256
+ ({ item: e }) => {
2257
+ const [t, n] = W(!1), i = N(() => n(!t), [t]), a = N(() => n(!1), []);
2173
2258
  return /* @__PURE__ */ o(
2174
2259
  ze,
2175
2260
  {
2176
2261
  button: /* @__PURE__ */ o(
2177
- Lt,
2262
+ Bt,
2178
2263
  {
2179
- iconType: er[t.type],
2264
+ iconType: rr[e.type],
2180
2265
  size: "s",
2181
2266
  onClick: i,
2182
- children: t.title
2267
+ children: e.title
2183
2268
  }
2184
2269
  ),
2185
- isOpen: e,
2270
+ isOpen: t,
2186
2271
  closePopover: a,
2187
2272
  panelPaddingSize: "none",
2188
2273
  anchorPosition: "upLeft",
2189
2274
  children: /* @__PURE__ */ o(
2190
- ui,
2275
+ bi,
2191
2276
  {
2192
- item: t,
2277
+ item: e,
2193
2278
  closePopover: a
2194
2279
  }
2195
2280
  )
2196
2281
  }
2197
2282
  );
2198
2283
  }
2199
- ), fi = $(
2200
- ({ playQueueStore: t }) => /* @__PURE__ */ o(
2284
+ ), Ei = P(
2285
+ ({ playQueueStore: e }) => /* @__PURE__ */ o(
2201
2286
  se,
2202
2287
  {
2203
2288
  responsive: !1,
2204
2289
  gutterSize: "s",
2205
2290
  justifyContent: "flexStart",
2206
2291
  alignItems: "center",
2207
- children: t.currentItem && /* @__PURE__ */ o(di, { item: t.currentItem })
2292
+ children: e.currentItem && /* @__PURE__ */ o(Ti, { item: e.currentItem })
2208
2293
  }
2209
2294
  )
2210
- ), mi = $(
2211
- ({ playerStore: t }) => /* @__PURE__ */ o(
2212
- H,
2295
+ ), Ci = P(
2296
+ ({ playerStore: e }) => /* @__PURE__ */ o(
2297
+ q,
2213
2298
  {
2214
2299
  title: "Mute",
2215
2300
  "aria-label": "Mute",
2216
- iconType: qt,
2301
+ iconType: Gt,
2217
2302
  size: "s",
2218
2303
  iconSize: "l",
2219
- disabled: !t.controller.supports("setMuted")
2304
+ disabled: !e.controller.supports("setMuted")
2220
2305
  }
2221
2306
  )
2222
- ), hi = $(
2307
+ ), xi = P(
2223
2308
  ({
2224
- playerStore: t,
2225
- button: e,
2309
+ playerStore: e,
2310
+ button: t,
2226
2311
  isOpen: n,
2227
2312
  closePopover: i
2228
2313
  }) => {
2229
- const [a, l] = W("0"), d = re();
2230
- _r(() => {
2314
+ const [a, l] = W("0"), d = U();
2315
+ Ar(() => {
2231
2316
  n && d.getVolume().then((m) => {
2232
2317
  m !== void 0 && l(Math.floor(m * 100).toString());
2233
2318
  });
@@ -2241,11 +2326,11 @@ const tr = zt(void 0), ji = ({
2241
2326
  return /* @__PURE__ */ o(
2242
2327
  ze,
2243
2328
  {
2244
- button: e,
2329
+ button: t,
2245
2330
  isOpen: n,
2246
2331
  closePopover: i,
2247
2332
  anchorPosition: "upRight",
2248
- children: /* @__PURE__ */ o(rt, { children: /* @__PURE__ */ j(
2333
+ children: /* @__PURE__ */ o(rt, { children: /* @__PURE__ */ $(
2249
2334
  se,
2250
2335
  {
2251
2336
  responsive: !1,
@@ -2253,7 +2338,7 @@ const tr = zt(void 0), ji = ({
2253
2338
  justifyContent: "center",
2254
2339
  alignItems: "center",
2255
2340
  children: [
2256
- /* @__PURE__ */ o(mi, { playerStore: t }),
2341
+ /* @__PURE__ */ o(Ci, { playerStore: e }),
2257
2342
  /* @__PURE__ */ o(
2258
2343
  Wt,
2259
2344
  {
@@ -2263,7 +2348,7 @@ const tr = zt(void 0), ji = ({
2263
2348
  value: a,
2264
2349
  onChange: h,
2265
2350
  css: { blockSize: 32 },
2266
- disabled: !t.controller.supports("setVolume")
2351
+ disabled: !e.controller.supports("setVolume")
2267
2352
  }
2268
2353
  )
2269
2354
  ]
@@ -2272,49 +2357,49 @@ const tr = zt(void 0), ji = ({
2272
2357
  }
2273
2358
  );
2274
2359
  }
2275
- ), vi = $(
2276
- ({ playerStore: t }) => {
2277
- const [e, n] = W(!1);
2360
+ ), Ii = P(
2361
+ ({ playerStore: e }) => {
2362
+ const [t, n] = W(!1);
2278
2363
  return /* @__PURE__ */ o(
2279
- hi,
2364
+ xi,
2280
2365
  {
2281
- playerStore: t,
2366
+ playerStore: e,
2282
2367
  button: /* @__PURE__ */ o(
2283
- H,
2368
+ q,
2284
2369
  {
2285
2370
  title: "Volume",
2286
2371
  "aria-label": "Volume",
2287
- iconType: qt,
2372
+ iconType: Gt,
2288
2373
  size: "s",
2289
2374
  iconSize: "l",
2290
- onClick: () => n(!e),
2291
- disabled: !t.controller.supports("getVolume")
2375
+ onClick: () => n(!t),
2376
+ disabled: !e.controller.supports("getVolume")
2292
2377
  }
2293
2378
  ),
2294
- isOpen: e,
2379
+ isOpen: t,
2295
2380
  closePopover: () => n(!1)
2296
2381
  }
2297
2382
  );
2298
2383
  }
2299
- ), pi = ({
2300
- onClickPlayQueueButton: t
2384
+ ), Si = ({
2385
+ onClickPlayQueueButton: e
2301
2386
  }) => /* @__PURE__ */ o(
2302
- H,
2387
+ q,
2303
2388
  {
2304
2389
  title: "Play queue",
2305
2390
  "aria-label": "Play queue",
2306
- iconType: gn,
2391
+ iconType: bn,
2307
2392
  size: "s",
2308
2393
  iconSize: "l",
2309
- onClick: t
2394
+ onClick: e
2310
2395
  }
2311
- ), yi = $(
2396
+ ), Pi = P(
2312
2397
  ({
2313
- playerStore: t,
2314
- playQueueStore: e,
2398
+ playerStore: e,
2399
+ playQueueStore: t,
2315
2400
  closePopover: n
2316
2401
  }) => {
2317
- const i = re(), a = N(async () => {
2402
+ const i = U(), a = N(async () => {
2318
2403
  const I = await i.getCurrentTime();
2319
2404
  I !== void 0 && await i.setCurrentTime(I - 10), n();
2320
2405
  }, [i, n]), l = N(async () => {
@@ -2326,38 +2411,38 @@ const tr = zt(void 0), ji = ({
2326
2411
  },
2327
2412
  [i, n]
2328
2413
  ), h = N(async () => {
2329
- e.currentItem !== void 0 && await e.removeItems([
2330
- e.currentItem
2414
+ t.currentItem !== void 0 && await t.removeItems([
2415
+ t.currentItem
2331
2416
  ]), n();
2332
- }, [e, n]), [m, p] = W(), E = N(async () => {
2333
- await t.controller.getPlaybackRate().then((I) => p(I));
2334
- }, [t]), P = De(
2417
+ }, [t, n]), [m, p] = W(), T = N(async () => {
2418
+ await e.controller.getPlaybackRate().then((I) => p(I));
2419
+ }, [e]), w = De(
2335
2420
  () => [
2336
2421
  {
2337
2422
  id: 0,
2338
2423
  items: [
2339
2424
  {
2340
2425
  name: "Speed",
2341
- icon: /* @__PURE__ */ o(B, { type: vn }),
2426
+ icon: /* @__PURE__ */ o(Y, { type: gn }),
2342
2427
  panel: 1,
2343
- onClick: E,
2344
- disabled: !t.controller.supports(
2428
+ onClick: T,
2429
+ disabled: !e.controller.supports(
2345
2430
  "getPlaybackRate"
2346
2431
  )
2347
2432
  },
2348
2433
  {
2349
2434
  name: "Skip back 10 seconds",
2350
- icon: /* @__PURE__ */ o(B, { type: pn }),
2435
+ icon: /* @__PURE__ */ o(Y, { type: qt }),
2351
2436
  onClick: a,
2352
- disabled: e.isEmpty || !t.controller.supports(
2437
+ disabled: t.isEmpty || !e.controller.supports(
2353
2438
  "setCurrentTime"
2354
2439
  )
2355
2440
  },
2356
2441
  {
2357
2442
  name: "Skip forward 30 seconds",
2358
- icon: /* @__PURE__ */ o(B, { type: yn }),
2443
+ icon: /* @__PURE__ */ o(Y, { type: Ht }),
2359
2444
  onClick: l,
2360
- disabled: e.isEmpty || !t.controller.supports(
2445
+ disabled: t.isEmpty || !e.controller.supports(
2361
2446
  "setCurrentTime"
2362
2447
  )
2363
2448
  },
@@ -2366,9 +2451,9 @@ const tr = zt(void 0), ji = ({
2366
2451
  },
2367
2452
  {
2368
2453
  name: "Remove from play queue",
2369
- icon: /* @__PURE__ */ o(B, { type: ut }),
2454
+ icon: /* @__PURE__ */ o(Y, { type: ut }),
2370
2455
  onClick: h,
2371
- disabled: e.isEmpty
2456
+ disabled: t.isEmpty
2372
2457
  }
2373
2458
  ]
2374
2459
  },
@@ -2380,7 +2465,7 @@ const tr = zt(void 0), ji = ({
2380
2465
  name: I.toString(),
2381
2466
  onClick: () => d(I),
2382
2467
  icon: I === m ? "check" : "empty",
2383
- disabled: !t.controller.supports(
2468
+ disabled: !e.controller.supports(
2384
2469
  "setPlaybackRate"
2385
2470
  )
2386
2471
  })
@@ -2388,9 +2473,9 @@ const tr = zt(void 0), ji = ({
2388
2473
  }
2389
2474
  ],
2390
2475
  [
2391
- t,
2392
2476
  e,
2393
- E,
2477
+ t,
2478
+ T,
2394
2479
  a,
2395
2480
  l,
2396
2481
  h,
@@ -2398,12 +2483,12 @@ const tr = zt(void 0), ji = ({
2398
2483
  m
2399
2484
  ]
2400
2485
  );
2401
- return /* @__PURE__ */ o(st, { initialPanelId: 0, panels: P });
2486
+ return /* @__PURE__ */ o(st, { initialPanelId: 0, panels: w });
2402
2487
  }
2403
- ), gi = ne(
2488
+ ), wi = ne(
2404
2489
  ({
2405
- playerStore: t,
2406
- playQueueStore: e,
2490
+ playerStore: e,
2491
+ playQueueStore: t,
2407
2492
  button: n,
2408
2493
  isOpen: i,
2409
2494
  closePopover: a
@@ -2416,25 +2501,25 @@ const tr = zt(void 0), ji = ({
2416
2501
  panelPaddingSize: "none",
2417
2502
  anchorPosition: "upRight",
2418
2503
  children: /* @__PURE__ */ o(
2419
- yi,
2504
+ Pi,
2420
2505
  {
2421
- playerStore: t,
2422
- playQueueStore: e,
2506
+ playerStore: e,
2507
+ playQueueStore: t,
2423
2508
  closePopover: a
2424
2509
  }
2425
2510
  )
2426
2511
  }
2427
2512
  )
2428
- ), bi = ne(
2429
- ({ playerStore: t, playQueueStore: e }) => {
2513
+ ), Ri = ne(
2514
+ ({ playerStore: e, playQueueStore: t }) => {
2430
2515
  const [n, i] = W(!1);
2431
2516
  return /* @__PURE__ */ o(
2432
- gi,
2517
+ wi,
2433
2518
  {
2434
- playerStore: t,
2435
- playQueueStore: e,
2519
+ playerStore: e,
2520
+ playQueueStore: t,
2436
2521
  button: /* @__PURE__ */ o(
2437
- H,
2522
+ q,
2438
2523
  {
2439
2524
  title: "More options",
2440
2525
  "aria-label": "More options",
@@ -2449,12 +2534,12 @@ const tr = zt(void 0), ji = ({
2449
2534
  }
2450
2535
  );
2451
2536
  }
2452
- ), Ei = ne(
2537
+ ), Oi = ne(
2453
2538
  ({
2454
- playerStore: t,
2455
- playQueueStore: e,
2539
+ playerStore: e,
2540
+ playQueueStore: t,
2456
2541
  onClickPlayQueueButton: n
2457
- }) => /* @__PURE__ */ j(
2542
+ }) => /* @__PURE__ */ $(
2458
2543
  se,
2459
2544
  {
2460
2545
  responsive: !1,
@@ -2462,46 +2547,46 @@ const tr = zt(void 0), ji = ({
2462
2547
  justifyContent: "flexEnd",
2463
2548
  alignItems: "center",
2464
2549
  children: [
2465
- /* @__PURE__ */ o(vi, { playerStore: t }),
2550
+ /* @__PURE__ */ o(Ii, { playerStore: e }),
2466
2551
  n && /* @__PURE__ */ o(
2467
- pi,
2552
+ Si,
2468
2553
  {
2469
2554
  onClickPlayQueueButton: n
2470
2555
  }
2471
2556
  ),
2472
2557
  /* @__PURE__ */ o(
2473
- bi,
2558
+ Ri,
2474
2559
  {
2475
- playerStore: t,
2476
- playQueueStore: e
2560
+ playerStore: e,
2561
+ playQueueStore: t
2477
2562
  }
2478
2563
  )
2479
2564
  ]
2480
2565
  }
2481
2566
  )
2482
- ), Ti = $(
2483
- ({ playerStore: t, playQueueStore: e }) => {
2484
- const n = re(), i = N(
2567
+ ), _i = P(
2568
+ ({ playerStore: e, playQueueStore: t }) => {
2569
+ const n = U(), i = N(
2485
2570
  (d) => {
2486
2571
  const h = Number(d.currentTarget.value) / 100;
2487
- t.setPercent(h);
2572
+ e.setPercent(h);
2488
2573
  },
2489
- [t]
2574
+ [e]
2490
2575
  ), a = N(
2491
2576
  (d) => {
2492
- d.button === 0 && t.setSeeking(!0);
2577
+ d.button === 0 && e.setSeeking(!0);
2493
2578
  },
2494
- [t]
2579
+ [e]
2495
2580
  ), l = N(
2496
2581
  async (d) => {
2497
2582
  if (d.button === 0) {
2498
2583
  const h = Number(d.currentTarget.value) / 100;
2499
- t.setSeeking(!1);
2584
+ e.setSeeking(!1);
2500
2585
  const m = await n.getDuration();
2501
2586
  m !== void 0 && await n.setCurrentTime(m * h);
2502
2587
  }
2503
2588
  },
2504
- [t, n]
2589
+ [e, n]
2505
2590
  );
2506
2591
  return /* @__PURE__ */ o(
2507
2592
  Wt,
@@ -2509,107 +2594,112 @@ const tr = zt(void 0), ji = ({
2509
2594
  min: 0,
2510
2595
  max: 100,
2511
2596
  step: 1e-7,
2512
- value: t.percent * 100,
2597
+ value: e.percent * 100,
2513
2598
  onChange: i,
2514
2599
  onMouseDown: a,
2515
2600
  onMouseUp: l,
2516
2601
  fullWidth: !0,
2517
2602
  showRange: !0,
2518
2603
  css: { blockSize: 32 },
2519
- disabled: e.isEmpty
2604
+ disabled: t.isEmpty
2520
2605
  }
2521
2606
  );
2522
2607
  }
2523
- ), $i = $(
2608
+ ), qi = P(
2524
2609
  ({
2525
- playerStore: t,
2526
- playQueueStore: e,
2610
+ playerStore: e,
2611
+ playQueueStore: t,
2527
2612
  onClickPlayQueueButton: n
2528
- }) => /* @__PURE__ */ o(Zr, { paddingSize: "s", children: /* @__PURE__ */ j(se, { direction: "column", gutterSize: "none", children: [
2529
- /* @__PURE__ */ o(G, { children: /* @__PURE__ */ o(
2530
- Ti,
2613
+ }) => /* @__PURE__ */ o(tn, { paddingSize: "s", children: /* @__PURE__ */ $(se, { direction: "column", gutterSize: "none", children: [
2614
+ /* @__PURE__ */ o(J, { children: /* @__PURE__ */ o(
2615
+ _i,
2531
2616
  {
2532
- playerStore: t,
2533
- playQueueStore: e
2617
+ playerStore: e,
2618
+ playQueueStore: t
2534
2619
  }
2535
2620
  ) }),
2536
- /* @__PURE__ */ o(G, { children: /* @__PURE__ */ j(se, { responsive: !1, children: [
2537
- /* @__PURE__ */ o(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
2538
- fi,
2621
+ /* @__PURE__ */ o(J, { children: /* @__PURE__ */ $(se, { responsive: !1, children: [
2622
+ /* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
2623
+ Ei,
2539
2624
  {
2540
- playQueueStore: e
2625
+ playQueueStore: t
2541
2626
  }
2542
2627
  ) }),
2543
- /* @__PURE__ */ o(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
2544
- ci,
2628
+ /* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
2629
+ gi,
2545
2630
  {
2546
- playerStore: t,
2547
- playQueueStore: e
2631
+ playerStore: e,
2632
+ playQueueStore: t
2548
2633
  }
2549
2634
  ) }),
2550
- /* @__PURE__ */ o(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
2551
- Ei,
2635
+ /* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
2636
+ Oi,
2552
2637
  {
2553
- playerStore: t,
2554
- playQueueStore: e,
2638
+ playerStore: e,
2639
+ playQueueStore: t,
2555
2640
  onClickPlayQueueButton: n
2556
2641
  }
2557
2642
  ) })
2558
2643
  ] }) })
2559
2644
  ] }) })
2560
- ), Di = (t) => /* @__PURE__ */ o(Mr, { ...t }), ot = {
2645
+ ), Hi = (e) => /* @__PURE__ */ o(jr, { ...e }), ot = {
2561
2646
  width: 400,
2562
2647
  height: 225
2563
- }, zi = $(
2564
- ({ children: t }) => {
2565
- const e = rr();
2566
- return /* @__PURE__ */ j(
2648
+ }, Gi = P(
2649
+ ({ children: e }) => {
2650
+ const t = ir();
2651
+ return /* @__PURE__ */ $(
2567
2652
  lt,
2568
2653
  {
2569
2654
  panelled: !0,
2570
2655
  style: {
2571
- minBlockSize: `max(460px, 100vh - ${Ht}px)`
2656
+ minBlockSize: `max(460px, 100vh - ${Jt}px)`
2572
2657
  },
2573
2658
  children: [
2574
- t,
2575
- !e.isEmpty && /* @__PURE__ */ o(Bt, { style: { blockSize: ot.height } })
2659
+ e,
2660
+ !t.isEmpty && /* @__PURE__ */ o(Yt, { style: { blockSize: ot.height } })
2576
2661
  ]
2577
2662
  }
2578
2663
  );
2579
2664
  }
2580
- ), Li = $(
2581
- ({ playerStore: t, playQueueStore: e }) => {
2582
- const n = re(), i = N(async () => {
2583
- e.interacted && await n.play();
2584
- }, [e, n]), a = N(async () => {
2585
- switch (e.repeat) {
2586
- case w.One:
2665
+ ), Ji = P(
2666
+ ({ playerStore: e, playQueueStore: t }) => {
2667
+ const n = U(), i = N(async () => {
2668
+ t.interacted && await n.play();
2669
+ }, [t, n]), a = N(async () => {
2670
+ switch (t.repeat) {
2671
+ case O.One:
2587
2672
  await n.setCurrentTime(0);
2588
2673
  break;
2589
- case w.Off:
2590
- case w.All:
2591
- if (e.isLastItem)
2592
- switch (e.repeat) {
2593
- case w.Off:
2594
- t.onEnded();
2674
+ case O.Off:
2675
+ case O.All:
2676
+ if (t.isLastItem)
2677
+ switch (t.repeat) {
2678
+ case O.Off:
2679
+ e.onEnded();
2595
2680
  break;
2596
- case w.All:
2597
- e.hasMultipleItems ? await e.goToFirst() : await n.setCurrentTime(0);
2681
+ case O.All:
2682
+ t.hasMultipleItems ? await t.goToFirst() : await n.setCurrentTime(0);
2598
2683
  break;
2599
2684
  }
2600
2685
  else
2601
- await e.next();
2686
+ await t.next();
2602
2687
  break;
2603
2688
  }
2604
- }, [e, t, n]), l = De(
2689
+ }, [t, e, n]), l = De(
2605
2690
  () => ({
2691
+ services: {
2692
+ [Nr.YouTube]: {
2693
+ host: "https://www.youtube.com"
2694
+ }
2695
+ },
2606
2696
  onLoaded: i,
2607
- onPlay: t.onPlay,
2608
- onPause: t.onPause,
2697
+ onPlay: e.onPlay,
2698
+ onPause: e.onPause,
2609
2699
  onEnded: a,
2610
- onTimeUpdate: t.onTimeUpdate
2700
+ onTimeUpdate: e.onTimeUpdate
2611
2701
  }),
2612
- [t, i, a]
2702
+ [e, i, a]
2613
2703
  );
2614
2704
  return /* @__PURE__ */ o(
2615
2705
  "div",
@@ -2617,7 +2707,7 @@ const tr = zt(void 0), ji = ({
2617
2707
  css: {
2618
2708
  position: "fixed",
2619
2709
  right: 0,
2620
- bottom: Ht,
2710
+ bottom: Jt,
2621
2711
  width: ot.width,
2622
2712
  height: ot.height,
2623
2713
  zIndex: 998,
@@ -2625,29 +2715,29 @@ const tr = zt(void 0), ji = ({
2625
2715
  display: "flex",
2626
2716
  flexDirection: "column"
2627
2717
  },
2628
- children: /* @__PURE__ */ o("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: e.currentItem && /* @__PURE__ */ o(
2629
- Fr,
2718
+ children: /* @__PURE__ */ o("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: t.currentItem && /* @__PURE__ */ o(
2719
+ $r,
2630
2720
  {
2631
- src: e.currentItem.url,
2721
+ src: t.currentItem.url,
2632
2722
  options: l,
2633
- onControllerChange: t.onControllerChange
2723
+ onControllerChange: e.onControllerChange
2634
2724
  }
2635
2725
  ) })
2636
2726
  }
2637
2727
  );
2638
2728
  }
2639
2729
  );
2640
- class Ci {
2641
- controller = jr;
2730
+ class ki {
2731
+ controller = Dr;
2642
2732
  playing = !1;
2643
2733
  percent = 0;
2644
2734
  seeking = !1;
2645
- constructor(e) {
2646
- e.makeObservable(this, {
2647
- controller: X,
2648
- playing: X,
2649
- percent: X,
2650
- seeking: X,
2735
+ constructor(t) {
2736
+ t.makeObservable(this, {
2737
+ controller: Z,
2738
+ playing: Z,
2739
+ percent: Z,
2740
+ seeking: Z,
2651
2741
  setPlaying: y,
2652
2742
  setPercent: y,
2653
2743
  setSeeking: y,
@@ -2658,17 +2748,17 @@ class Ci {
2658
2748
  onTimeUpdate: y.bound
2659
2749
  });
2660
2750
  }
2661
- setPlaying(e) {
2662
- this.playing = e;
2751
+ setPlaying(t) {
2752
+ this.playing = t;
2663
2753
  }
2664
- setPercent(e) {
2665
- this.percent = e;
2754
+ setPercent(t) {
2755
+ this.percent = t;
2666
2756
  }
2667
- setSeeking(e) {
2668
- this.seeking = e;
2757
+ setSeeking(t) {
2758
+ this.seeking = t;
2669
2759
  }
2670
- onControllerChange(e) {
2671
- this.controller = e;
2760
+ onControllerChange(t) {
2761
+ this.controller = t;
2672
2762
  }
2673
2763
  onPlay() {
2674
2764
  this.playing = !0;
@@ -2679,32 +2769,32 @@ class Ci {
2679
2769
  onEnded() {
2680
2770
  this.playing = !1;
2681
2771
  }
2682
- onTimeUpdate({ percent: e }) {
2683
- e !== void 0 && (this.seeking || (this.percent = e));
2772
+ onTimeUpdate({ percent: t }) {
2773
+ t !== void 0 && (this.seeking || (this.percent = t));
2684
2774
  }
2685
2775
  }
2686
- const nr = zt(void 0), Vi = ({
2687
- children: t
2776
+ const or = zt(void 0), Ki = ({
2777
+ children: e
2688
2778
  }) => {
2689
- const [e] = W(
2690
- () => new Ci(new Gt())
2779
+ const [t] = W(
2780
+ () => new ki(new Kt())
2691
2781
  );
2692
- return /* @__PURE__ */ o(nr.Provider, { value: e, children: t });
2693
- }, Yi = () => at(nr);
2782
+ return /* @__PURE__ */ o(or.Provider, { value: t, children: e });
2783
+ }, Xi = () => at(or);
2694
2784
  export {
2695
- $i as BottomBar,
2696
- Di as HydrangeanDivaProvider,
2697
- zi as MediaPlayerLayout,
2698
- Li as MiniPlayer,
2699
- Gt as MobXObservableStateProvider,
2700
- Fi as ObservableStateProvider,
2701
- ri as PlayQueue,
2702
- Ni as PlayQueuePage,
2703
- ji as PlayQueueStoreProvider,
2704
- Vi as PlayerStoreProvider,
2705
- w as RepeatMode,
2706
- Ht as bottomBarHeight,
2707
- rr as usePlayQueueStore,
2708
- Yi as usePlayerStore
2785
+ qi as BottomBar,
2786
+ Hi as HydrangeanDivaProvider,
2787
+ Gi as MediaPlayerLayout,
2788
+ Ji as MiniPlayer,
2789
+ Kt as MobXObservableStateProvider,
2790
+ Yi as ObservableStateProvider,
2791
+ ni as PlayQueue,
2792
+ Ui as PlayQueuePage,
2793
+ Wi as PlayQueueStoreProvider,
2794
+ Ki as PlayerStoreProvider,
2795
+ O as RepeatMode,
2796
+ Jt as bottomBarHeight,
2797
+ ir as usePlayQueueStore,
2798
+ Xi as usePlayerStore
2709
2799
  };
2710
2800
  //# sourceMappingURL=index.es.js.map