@aigamo/hydrangean-diva 0.0.1-alpha.6 → 0.0.1-alpha.8

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,158 +1,1301 @@
1
- var Q = Object.defineProperty;
2
- var ee = (n, e, i) => e in n ? Q(n, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[e] = i;
3
- var p = (n, e, i) => ee(n, typeof e != "symbol" ? e + "" : e, i);
4
- import { useNostalgicDiva as C, findVideoService as te, NostalgicDiva as ne } from "@aigamo/nostalgic-diva";
5
- import { EuiRange as j, EuiPopover as F, EuiFormRow as O, EuiFlexGroup as k, EuiButtonIcon as I, EuiIcon as E, EuiContextMenu as ie, EuiBottomBar as se, EuiFlexItem as v, EuiButton as x, EuiModal as re, EuiModalHeader as le, EuiModalHeaderTitle as ae, EuiModalBody as oe, EuiForm as ce, EuiFieldText as V, EuiModalFooter as me, EuiButtonEmpty as de, useEuiTheme as H, EuiTableHeader as ue, EuiTableHeaderCellCheckbox as he, EuiCheckbox as U, EuiTableHeaderCell as P, EuiContextMenuItem as pe, EuiContextMenuPanel as ge, EuiHorizontalRule as L, EuiTableRowCell as A, EuiTableRow as fe, EuiTableRowCellCheckbox as Ee, EuiLink as ve, EuiTable as Ie, EuiFlyout as ye, EuiCodeBlock as be, EuiSpacer as $, EuiPageTemplate as z } from "@elastic/eui";
6
- import { Speaker2Regular as q, TopSpeedRegular as Te, SkipBack10Regular as xe, SkipForward30Regular as Ce, DismissRegular as B, ArrowRepeat1Filled as ke, ArrowRepeatAllFilled as we, ArrowRepeatAllOffFilled as Pe, ArrowShuffleFilled as Se, ArrowShuffleOffFilled as Oe, PreviousFilled as Ae, PauseFilled as ze, PlayFilled as Me, NextFilled as Re, MoreHorizontalFilled as J, AddRegular as N, ArrowUploadRegular as Fe, ArrowDownloadRegular as Be, PlayRegular as Ne, DeleteRegular as Ve } from "@fluentui/react-icons";
7
- import { observer as h } from "mobx-react-lite";
8
- import t, { useCallback as u, memo as y, useState as g, useLayoutEffect as Le, useMemo as G, createContext as W, useContext as X, useEffect as De } from "react";
9
- import { ReactSortable as je } from "react-sortablejs";
10
- import { makeObservable as He, action as r, computed as c, observable as b, reaction as Ue } from "mobx";
11
- import { pull as D } from "lodash-es";
12
- import $e from "ajv";
13
- var o = /* @__PURE__ */ ((n) => (n.Off = "Off", n.All = "All", n.One = "One", n))(o || {});
14
- const Y = 80, qe = h(({ playerStore: n }) => {
15
- const e = C(), i = u(
16
- (a) => {
17
- const m = Number(a.currentTarget.value) / 100;
18
- n.setPercent(m);
1
+ var Cr = Object.defineProperty;
2
+ var Ir = (t, e, n) => e in t ? Cr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var U = (t, e, n) => Ir(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import * as te from "react";
5
+ import Dt, { forwardRef as Pr, useContext as st, useCallback as $, memo as Z, useState as q, useLayoutEffect as Rr, useMemo as zt, createContext as Lt, useEffect as wr } from "react";
6
+ import Or from "@emotion/cache";
7
+ import { useNostalgicDiva as ie, findVideoService as _r, NostalgicDiva as Ar } from "@aigamo/nostalgic-diva";
8
+ import { EuiRange as Vt, EuiButtonIcon as K, EuiFlexGroup as me, EuiFlexItem as G, EuiBottomBar as kr, EuiFormRow as tt, EuiPopover as lt, EuiIcon as H, EuiContextMenu as Mr, EuiButton as ne, EuiModalHeaderTitle as Fr, EuiModalHeader as jr, EuiForm as Nr, EuiFieldText as It, EuiModalBody as $r, EuiModalFooter as Dr, EuiButtonEmpty as zr, EuiModal as Lr, useEuiTheme as Yt, EuiCheckbox as Bt, EuiTableHeaderCellCheckbox as Vr, EuiTableHeaderCell as Xe, EuiTableHeader as Yr, EuiContextMenuItem as Br, EuiHorizontalRule as Pt, EuiContextMenuPanel as Wr, EuiTableRowCell as rt, EuiTableRowCellCheckbox as Ur, EuiLink as qr, EuiTableRow as Hr, EuiTable as Gr, EuiCodeBlock as Jr, EuiFlyout as Kr, EuiSpacer as Wt, EuiPageTemplate as nt } from "@elastic/eui";
9
+ import { ArrowRepeat1Filled as Xr, ArrowRepeatAllFilled as Zr, ArrowRepeatAllOffFilled as Qr, ArrowShuffleFilled as en, ArrowShuffleOffFilled as tn, PreviousFilled as rn, PauseFilled as nn, PlayFilled as on, NextFilled as an, Speaker2Regular as Ut, MoreHorizontalFilled as qt, TopSpeedRegular as sn, SkipBack10Regular as ln, SkipForward30Regular as cn, DismissRegular as ct, AddRegular as ut, ArrowUploadRegular as un, ArrowDownloadRegular as fn, PlayRegular as dn, DeleteRegular as mn } from "@fluentui/react-icons";
10
+ import { observer as Y } from "mobx-react-lite";
11
+ import { ReactSortable as hn } from "react-sortablejs";
12
+ import { makeObservable as vn, action as y, computed as _, observable as re, reaction as pn } from "mobx";
13
+ import { pull as Rt } from "lodash-es";
14
+ import yn from "ajv";
15
+ var De = { exports: {} }, xe = {};
16
+ /**
17
+ * @license React
18
+ * react-jsx-runtime.production.min.js
19
+ *
20
+ * Copyright (c) Facebook, Inc. and its affiliates.
21
+ *
22
+ * This source code is licensed under the MIT license found in the
23
+ * LICENSE file in the root directory of this source tree.
24
+ */
25
+ var wt;
26
+ function gn() {
27
+ if (wt) return xe;
28
+ wt = 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 };
30
+ function f(m, h, p) {
31
+ var E, P = {}, D = null, j = null;
32
+ p !== void 0 && (D = "" + p), h.key !== void 0 && (D = "" + h.key), h.ref !== void 0 && (j = h.ref);
33
+ for (E in h) i.call(h, E) && !l.hasOwnProperty(E) && (P[E] = h[E]);
34
+ if (m && m.defaultProps) for (E in h = m.defaultProps, h) P[E] === void 0 && (P[E] = h[E]);
35
+ return { $$typeof: e, type: m, key: D, ref: j, props: P, _owner: a.current };
36
+ }
37
+ return xe.Fragment = n, xe.jsx = f, xe.jsxs = f, xe;
38
+ }
39
+ var Se = {};
40
+ /**
41
+ * @license React
42
+ * react-jsx-runtime.development.js
43
+ *
44
+ * Copyright (c) Facebook, Inc. and its affiliates.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE file in the root directory of this source tree.
48
+ */
49
+ var Ot;
50
+ function bn() {
51
+ return Ot || (Ot = 1, process.env.NODE_ENV !== "production" && function() {
52
+ 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"), f = Symbol.for("react.provider"), m = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), A = Symbol.iterator, B = "@@iterator";
53
+ function Q(r) {
54
+ if (r === null || typeof r != "object")
55
+ return null;
56
+ var s = A && r[A] || r[B];
57
+ return typeof s == "function" ? s : null;
58
+ }
59
+ var z = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
60
+ function I(r) {
61
+ {
62
+ for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), v = 1; v < s; v++)
63
+ u[v - 1] = arguments[v];
64
+ k("error", r, u);
65
+ }
66
+ }
67
+ function k(r, s, u) {
68
+ {
69
+ var v = z.ReactDebugCurrentFrame, T = v.getStackAddendum();
70
+ T !== "" && (s += "%s", u = u.concat([T]));
71
+ var C = u.map(function(b) {
72
+ return String(b);
73
+ });
74
+ C.unshift("Warning: " + s), Function.prototype.apply.call(console[r], console, C);
75
+ }
76
+ }
77
+ var w = !1, c = !1, L = !1, he = !1, we = !1, Oe;
78
+ Oe = Symbol.for("react.module.reference");
79
+ function Ve(r) {
80
+ return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || we || r === a || r === p || r === E || he || r === j || w || c || L || typeof r == "object" && r !== null && (r.$$typeof === D || r.$$typeof === P || r.$$typeof === f || r.$$typeof === m || r.$$typeof === h || // This needs to include all possible module reference object
81
+ // types supported by any Flight configuration anywhere since
82
+ // we don't know which Flight build this will end up being used
83
+ // with.
84
+ r.$$typeof === Oe || r.getModuleId !== void 0));
85
+ }
86
+ function Ye(r, s, u) {
87
+ var v = r.displayName;
88
+ if (v)
89
+ return v;
90
+ var T = s.displayName || s.name || "";
91
+ return T !== "" ? u + "(" + T + ")" : u;
92
+ }
93
+ function _e(r) {
94
+ return r.displayName || "Context";
95
+ }
96
+ function J(r) {
97
+ if (r == null)
98
+ return null;
99
+ if (typeof r.tag == "number" && I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
100
+ return r.displayName || r.name || null;
101
+ if (typeof r == "string")
102
+ return r;
103
+ switch (r) {
104
+ case i:
105
+ return "Fragment";
106
+ case n:
107
+ return "Portal";
108
+ case l:
109
+ return "Profiler";
110
+ case a:
111
+ return "StrictMode";
112
+ case p:
113
+ return "Suspense";
114
+ case E:
115
+ return "SuspenseList";
116
+ }
117
+ if (typeof r == "object")
118
+ switch (r.$$typeof) {
119
+ case m:
120
+ var s = r;
121
+ return _e(s) + ".Consumer";
122
+ case f:
123
+ var u = r;
124
+ return _e(u._context) + ".Provider";
125
+ case h:
126
+ return Ye(r, r.render, "ForwardRef");
127
+ case P:
128
+ var v = r.displayName || null;
129
+ return v !== null ? v : J(r.type) || "Memo";
130
+ case D: {
131
+ var T = r, C = T._payload, b = T._init;
132
+ try {
133
+ return J(b(C));
134
+ } catch {
135
+ return null;
136
+ }
137
+ }
138
+ }
139
+ return null;
140
+ }
141
+ var ee = Object.assign, oe = 0, Ae, ke, ve, Me, pe, Fe, je;
142
+ function Ne() {
143
+ }
144
+ Ne.__reactDisabledLog = !0;
145
+ function Be() {
146
+ {
147
+ if (oe === 0) {
148
+ Ae = console.log, ke = console.info, ve = console.warn, Me = console.error, pe = console.group, Fe = console.groupCollapsed, je = console.groupEnd;
149
+ var r = {
150
+ configurable: !0,
151
+ enumerable: !0,
152
+ value: Ne,
153
+ writable: !0
154
+ };
155
+ Object.defineProperties(console, {
156
+ info: r,
157
+ log: r,
158
+ warn: r,
159
+ error: r,
160
+ group: r,
161
+ groupCollapsed: r,
162
+ groupEnd: r
163
+ });
164
+ }
165
+ oe++;
166
+ }
167
+ }
168
+ function We() {
169
+ {
170
+ if (oe--, oe === 0) {
171
+ var r = {
172
+ configurable: !0,
173
+ enumerable: !0,
174
+ writable: !0
175
+ };
176
+ Object.defineProperties(console, {
177
+ log: ee({}, r, {
178
+ value: Ae
179
+ }),
180
+ info: ee({}, r, {
181
+ value: ke
182
+ }),
183
+ warn: ee({}, r, {
184
+ value: ve
185
+ }),
186
+ error: ee({}, r, {
187
+ value: Me
188
+ }),
189
+ group: ee({}, r, {
190
+ value: pe
191
+ }),
192
+ groupCollapsed: ee({}, r, {
193
+ value: Fe
194
+ }),
195
+ groupEnd: ee({}, r, {
196
+ value: je
197
+ })
198
+ });
199
+ }
200
+ oe < 0 && I("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
201
+ }
202
+ }
203
+ var ye = z.ReactCurrentDispatcher, ge;
204
+ function le(r, s, u) {
205
+ {
206
+ if (ge === void 0)
207
+ try {
208
+ throw Error();
209
+ } catch (T) {
210
+ var v = T.stack.trim().match(/\n( *(at )?)/);
211
+ ge = v && v[1] || "";
212
+ }
213
+ return `
214
+ ` + ge + r;
215
+ }
216
+ }
217
+ var be = !1, ce;
218
+ {
219
+ var Ue = typeof WeakMap == "function" ? WeakMap : Map;
220
+ ce = new Ue();
221
+ }
222
+ function d(r, s) {
223
+ if (!r || be)
224
+ return "";
225
+ {
226
+ var u = ce.get(r);
227
+ if (u !== void 0)
228
+ return u;
229
+ }
230
+ var v;
231
+ be = !0;
232
+ var T = Error.prepareStackTrace;
233
+ Error.prepareStackTrace = void 0;
234
+ var C;
235
+ C = ye.current, ye.current = null, Be();
236
+ try {
237
+ if (s) {
238
+ var b = function() {
239
+ throw Error();
240
+ };
241
+ if (Object.defineProperty(b.prototype, "props", {
242
+ set: function() {
243
+ throw Error();
244
+ }
245
+ }), typeof Reflect == "object" && Reflect.construct) {
246
+ try {
247
+ Reflect.construct(b, []);
248
+ } catch (V) {
249
+ v = V;
250
+ }
251
+ Reflect.construct(r, [], b);
252
+ } else {
253
+ try {
254
+ b.call();
255
+ } catch (V) {
256
+ v = V;
257
+ }
258
+ r.call(b.prototype);
259
+ }
260
+ } else {
261
+ try {
262
+ throw Error();
263
+ } catch (V) {
264
+ v = V;
265
+ }
266
+ r();
267
+ }
268
+ } catch (V) {
269
+ if (V && v && typeof V.stack == "string") {
270
+ for (var g = V.stack.split(`
271
+ `), N = v.stack.split(`
272
+ `), O = g.length - 1, M = N.length - 1; O >= 1 && M >= 0 && g[O] !== N[M]; )
273
+ M--;
274
+ for (; O >= 1 && M >= 0; O--, M--)
275
+ if (g[O] !== N[M]) {
276
+ if (O !== 1 || M !== 1)
277
+ do
278
+ if (O--, M--, M < 0 || g[O] !== N[M]) {
279
+ var W = `
280
+ ` + g[O].replace(" at new ", " at ");
281
+ return r.displayName && W.includes("<anonymous>") && (W = W.replace("<anonymous>", r.displayName)), typeof r == "function" && ce.set(r, W), W;
282
+ }
283
+ while (O >= 1 && M >= 0);
284
+ break;
285
+ }
286
+ }
287
+ } finally {
288
+ be = !1, ye.current = C, We(), Error.prepareStackTrace = T;
289
+ }
290
+ var de = r ? r.displayName || r.name : "", se = de ? le(de) : "";
291
+ return typeof r == "function" && ce.set(r, se), se;
292
+ }
293
+ function Ee(r, s, u) {
294
+ return d(r, !1);
295
+ }
296
+ function ue(r) {
297
+ var s = r.prototype;
298
+ return !!(s && s.isReactComponent);
299
+ }
300
+ function ae(r, s, u) {
301
+ if (r == null)
302
+ return "";
303
+ if (typeof r == "function")
304
+ return d(r, ue(r));
305
+ if (typeof r == "string")
306
+ return le(r);
307
+ switch (r) {
308
+ case p:
309
+ return le("Suspense");
310
+ case E:
311
+ return le("SuspenseList");
312
+ }
313
+ if (typeof r == "object")
314
+ switch (r.$$typeof) {
315
+ case h:
316
+ return Ee(r.render);
317
+ case P:
318
+ return ae(r.type, s, u);
319
+ case D: {
320
+ var v = r, T = v._payload, C = v._init;
321
+ try {
322
+ return ae(C(T), s, u);
323
+ } catch {
324
+ }
325
+ }
326
+ }
327
+ return "";
328
+ }
329
+ var Te = Object.prototype.hasOwnProperty, ft = {}, dt = z.ReactDebugCurrentFrame;
330
+ function $e(r) {
331
+ if (r) {
332
+ var s = r._owner, u = ae(r.type, r._source, s ? s.type : null);
333
+ dt.setExtraStackFrame(u);
334
+ } else
335
+ dt.setExtraStackFrame(null);
336
+ }
337
+ function rr(r, s, u, v, T) {
338
+ {
339
+ var C = Function.call.bind(Te);
340
+ for (var b in r)
341
+ if (C(r, b)) {
342
+ var g = void 0;
343
+ try {
344
+ if (typeof r[b] != "function") {
345
+ var N = Error((v || "React class") + ": " + u + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
346
+ throw N.name = "Invariant Violation", N;
347
+ }
348
+ g = r[b](s, b, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
349
+ } catch (O) {
350
+ g = O;
351
+ }
352
+ g && !(g instanceof Error) && ($e(T), I("%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), $e(null)), g instanceof Error && !(g.message in ft) && (ft[g.message] = !0, $e(T), I("Failed %s type: %s", u, g.message), $e(null));
353
+ }
354
+ }
355
+ }
356
+ var nr = Array.isArray;
357
+ function qe(r) {
358
+ return nr(r);
359
+ }
360
+ function ir(r) {
361
+ {
362
+ var s = typeof Symbol == "function" && Symbol.toStringTag, u = s && r[Symbol.toStringTag] || r.constructor.name || "Object";
363
+ return u;
364
+ }
365
+ }
366
+ function or(r) {
367
+ try {
368
+ return mt(r), !1;
369
+ } catch {
370
+ return !0;
371
+ }
372
+ }
373
+ function mt(r) {
374
+ return "" + r;
375
+ }
376
+ function ht(r) {
377
+ if (or(r))
378
+ return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ir(r)), mt(r);
379
+ }
380
+ var vt = z.ReactCurrentOwner, ar = {
381
+ key: !0,
382
+ ref: !0,
383
+ __self: !0,
384
+ __source: !0
385
+ }, pt, yt;
386
+ function sr(r) {
387
+ if (Te.call(r, "ref")) {
388
+ var s = Object.getOwnPropertyDescriptor(r, "ref").get;
389
+ if (s && s.isReactWarning)
390
+ return !1;
391
+ }
392
+ return r.ref !== void 0;
393
+ }
394
+ function lr(r) {
395
+ if (Te.call(r, "key")) {
396
+ var s = Object.getOwnPropertyDescriptor(r, "key").get;
397
+ if (s && s.isReactWarning)
398
+ return !1;
399
+ }
400
+ return r.key !== void 0;
401
+ }
402
+ function cr(r, s) {
403
+ typeof r.ref == "string" && vt.current;
404
+ }
405
+ function ur(r, s) {
406
+ {
407
+ var u = function() {
408
+ pt || (pt = !0, I("%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));
409
+ };
410
+ u.isReactWarning = !0, Object.defineProperty(r, "key", {
411
+ get: u,
412
+ configurable: !0
413
+ });
414
+ }
415
+ }
416
+ function fr(r, s) {
417
+ {
418
+ var u = function() {
419
+ yt || (yt = !0, I("%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));
420
+ };
421
+ u.isReactWarning = !0, Object.defineProperty(r, "ref", {
422
+ get: u,
423
+ configurable: !0
424
+ });
425
+ }
426
+ }
427
+ var dr = function(r, s, u, v, T, C, b) {
428
+ var g = {
429
+ // This tag allows us to uniquely identify this as a React Element
430
+ $$typeof: e,
431
+ // Built-in properties that belong on the element
432
+ type: r,
433
+ key: s,
434
+ ref: u,
435
+ props: b,
436
+ // Record the component responsible for creating this element.
437
+ _owner: C
438
+ };
439
+ return g._store = {}, Object.defineProperty(g._store, "validated", {
440
+ configurable: !1,
441
+ enumerable: !1,
442
+ writable: !0,
443
+ value: !1
444
+ }), Object.defineProperty(g, "_self", {
445
+ configurable: !1,
446
+ enumerable: !1,
447
+ writable: !1,
448
+ value: v
449
+ }), Object.defineProperty(g, "_source", {
450
+ configurable: !1,
451
+ enumerable: !1,
452
+ writable: !1,
453
+ value: T
454
+ }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
455
+ };
456
+ function mr(r, s, u, v, T) {
457
+ {
458
+ var C, b = {}, g = null, N = null;
459
+ u !== void 0 && (ht(u), g = "" + u), lr(s) && (ht(s.key), g = "" + s.key), sr(s) && (N = s.ref, cr(s, T));
460
+ for (C in s)
461
+ Te.call(s, C) && !ar.hasOwnProperty(C) && (b[C] = s[C]);
462
+ if (r && r.defaultProps) {
463
+ var O = r.defaultProps;
464
+ for (C in O)
465
+ b[C] === void 0 && (b[C] = O[C]);
466
+ }
467
+ if (g || N) {
468
+ var M = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
469
+ g && ur(b, M), N && fr(b, M);
470
+ }
471
+ return dr(r, g, N, T, v, vt.current, b);
472
+ }
473
+ }
474
+ var He = z.ReactCurrentOwner, gt = z.ReactDebugCurrentFrame;
475
+ function fe(r) {
476
+ if (r) {
477
+ var s = r._owner, u = ae(r.type, r._source, s ? s.type : null);
478
+ gt.setExtraStackFrame(u);
479
+ } else
480
+ gt.setExtraStackFrame(null);
481
+ }
482
+ var Ge;
483
+ Ge = !1;
484
+ function Je(r) {
485
+ return typeof r == "object" && r !== null && r.$$typeof === e;
486
+ }
487
+ function bt() {
488
+ {
489
+ if (He.current) {
490
+ var r = J(He.current.type);
491
+ if (r)
492
+ return `
493
+
494
+ Check the render method of \`` + r + "`.";
495
+ }
496
+ return "";
497
+ }
498
+ }
499
+ function hr(r) {
500
+ return "";
501
+ }
502
+ var Et = {};
503
+ function vr(r) {
504
+ {
505
+ var s = bt();
506
+ if (!s) {
507
+ var u = typeof r == "string" ? r : r.displayName || r.name;
508
+ u && (s = `
509
+
510
+ Check the top-level render call using <` + u + ">.");
511
+ }
512
+ return s;
513
+ }
514
+ }
515
+ function Tt(r, s) {
516
+ {
517
+ if (!r._store || r._store.validated || r.key != null)
518
+ return;
519
+ r._store.validated = !0;
520
+ var u = vr(s);
521
+ if (Et[u])
522
+ return;
523
+ Et[u] = !0;
524
+ var v = "";
525
+ r && r._owner && r._owner !== He.current && (v = " It was passed a child from " + J(r._owner.type) + "."), fe(r), I('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), fe(null);
526
+ }
527
+ }
528
+ function xt(r, s) {
529
+ {
530
+ if (typeof r != "object")
531
+ return;
532
+ if (qe(r))
533
+ for (var u = 0; u < r.length; u++) {
534
+ var v = r[u];
535
+ Je(v) && Tt(v, s);
536
+ }
537
+ else if (Je(r))
538
+ r._store && (r._store.validated = !0);
539
+ else if (r) {
540
+ var T = Q(r);
541
+ if (typeof T == "function" && T !== r.entries)
542
+ for (var C = T.call(r), b; !(b = C.next()).done; )
543
+ Je(b.value) && Tt(b.value, s);
544
+ }
545
+ }
546
+ }
547
+ function pr(r) {
548
+ {
549
+ var s = r.type;
550
+ if (s == null || typeof s == "string")
551
+ return;
552
+ var u;
553
+ if (typeof s == "function")
554
+ u = s.propTypes;
555
+ else if (typeof s == "object" && (s.$$typeof === h || // Note: Memo only checks outer props here.
556
+ // Inner props are checked in the reconciler.
557
+ s.$$typeof === P))
558
+ u = s.propTypes;
559
+ else
560
+ return;
561
+ if (u) {
562
+ var v = J(s);
563
+ rr(u, r.props, "prop", v, r);
564
+ } else if (s.PropTypes !== void 0 && !Ge) {
565
+ Ge = !0;
566
+ var T = J(s);
567
+ I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
568
+ }
569
+ typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
570
+ }
571
+ }
572
+ function yr(r) {
573
+ {
574
+ for (var s = Object.keys(r.props), u = 0; u < s.length; u++) {
575
+ var v = s[u];
576
+ if (v !== "children" && v !== "key") {
577
+ fe(r), I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), fe(null);
578
+ break;
579
+ }
580
+ }
581
+ r.ref !== null && (fe(r), I("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
582
+ }
583
+ }
584
+ var St = {};
585
+ function Ct(r, s, u, v, T, C) {
586
+ {
587
+ var b = Ve(r);
588
+ if (!b) {
589
+ var g = "";
590
+ (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.");
591
+ var N = hr();
592
+ N ? g += N : g += bt();
593
+ var O;
594
+ r === null ? O = "null" : qe(r) ? O = "array" : r !== void 0 && r.$$typeof === e ? (O = "<" + (J(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : O = typeof r, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, g);
595
+ }
596
+ var M = mr(r, s, u, T, C);
597
+ if (M == null)
598
+ return M;
599
+ if (b) {
600
+ var W = s.children;
601
+ if (W !== void 0)
602
+ if (v)
603
+ if (qe(W)) {
604
+ for (var de = 0; de < W.length; de++)
605
+ xt(W[de], r);
606
+ Object.freeze && Object.freeze(W);
607
+ } else
608
+ I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
609
+ else
610
+ xt(W, r);
611
+ }
612
+ if (Te.call(s, "key")) {
613
+ var se = J(r), V = Object.keys(s).filter(function(Sr) {
614
+ return Sr !== "key";
615
+ }), Ke = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
616
+ if (!St[se + Ke]) {
617
+ var xr = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
618
+ I(`A props object containing a "key" prop is being spread into JSX:
619
+ let props = %s;
620
+ <%s {...props} />
621
+ React keys must be passed directly to JSX without using spread:
622
+ let props = %s;
623
+ <%s key={someKey} {...props} />`, Ke, se, xr, se), St[se + Ke] = !0;
624
+ }
625
+ }
626
+ return r === i ? yr(M) : pr(M), M;
627
+ }
628
+ }
629
+ function gr(r, s, u) {
630
+ return Ct(r, s, u, !0);
631
+ }
632
+ function br(r, s, u) {
633
+ return Ct(r, s, u, !1);
634
+ }
635
+ var Er = br, Tr = gr;
636
+ Se.Fragment = i, Se.jsx = Er, Se.jsxs = Tr;
637
+ }()), Se;
638
+ }
639
+ var _t;
640
+ function En() {
641
+ return _t || (_t = 1, process.env.NODE_ENV === "production" ? De.exports = gn() : De.exports = bn()), De.exports;
642
+ }
643
+ var Ie = En(), ze = { exports: {} }, x = {};
644
+ /** @license React v16.13.1
645
+ * react-is.production.min.js
646
+ *
647
+ * Copyright (c) Facebook, Inc. and its affiliates.
648
+ *
649
+ * This source code is licensed under the MIT license found in the
650
+ * LICENSE file in the root directory of this source tree.
651
+ */
652
+ var At;
653
+ function Tn() {
654
+ if (At) return x;
655
+ At = 1;
656
+ 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, f = t ? Symbol.for("react.provider") : 60109, m = t ? Symbol.for("react.context") : 60110, h = 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, D = t ? Symbol.for("react.suspense_list") : 60120, j = t ? Symbol.for("react.memo") : 60115, A = t ? Symbol.for("react.lazy") : 60116, B = t ? Symbol.for("react.block") : 60121, Q = t ? Symbol.for("react.fundamental") : 60117, z = t ? Symbol.for("react.responder") : 60118, I = t ? Symbol.for("react.scope") : 60119;
657
+ function k(c) {
658
+ if (typeof c == "object" && c !== null) {
659
+ var L = c.$$typeof;
660
+ switch (L) {
661
+ case e:
662
+ switch (c = c.type, c) {
663
+ case h:
664
+ case p:
665
+ case i:
666
+ case l:
667
+ case a:
668
+ case P:
669
+ return c;
670
+ default:
671
+ switch (c = c && c.$$typeof, c) {
672
+ case m:
673
+ case E:
674
+ case A:
675
+ case j:
676
+ case f:
677
+ return c;
678
+ default:
679
+ return L;
680
+ }
681
+ }
682
+ case n:
683
+ return L;
684
+ }
685
+ }
686
+ }
687
+ function w(c) {
688
+ return k(c) === p;
689
+ }
690
+ return x.AsyncMode = h, x.ConcurrentMode = p, x.ContextConsumer = m, x.ContextProvider = f, x.Element = e, x.ForwardRef = E, x.Fragment = i, x.Lazy = A, x.Memo = j, x.Portal = n, x.Profiler = l, x.StrictMode = a, x.Suspense = P, x.isAsyncMode = function(c) {
691
+ return w(c) || k(c) === h;
692
+ }, x.isConcurrentMode = w, x.isContextConsumer = function(c) {
693
+ return k(c) === m;
694
+ }, x.isContextProvider = function(c) {
695
+ return k(c) === f;
696
+ }, x.isElement = function(c) {
697
+ return typeof c == "object" && c !== null && c.$$typeof === e;
698
+ }, x.isForwardRef = function(c) {
699
+ return k(c) === E;
700
+ }, x.isFragment = function(c) {
701
+ return k(c) === i;
702
+ }, x.isLazy = function(c) {
703
+ return k(c) === A;
704
+ }, x.isMemo = function(c) {
705
+ return k(c) === j;
706
+ }, x.isPortal = function(c) {
707
+ return k(c) === n;
708
+ }, x.isProfiler = function(c) {
709
+ return k(c) === l;
710
+ }, x.isStrictMode = function(c) {
711
+ return k(c) === a;
712
+ }, x.isSuspense = function(c) {
713
+ return k(c) === P;
714
+ }, x.isValidElementType = function(c) {
715
+ return typeof c == "string" || typeof c == "function" || c === i || c === p || c === l || c === a || c === P || c === D || typeof c == "object" && c !== null && (c.$$typeof === A || c.$$typeof === j || c.$$typeof === f || c.$$typeof === m || c.$$typeof === E || c.$$typeof === Q || c.$$typeof === z || c.$$typeof === I || c.$$typeof === B);
716
+ }, x.typeOf = k, x;
717
+ }
718
+ var S = {};
719
+ /** @license React v16.13.1
720
+ * react-is.development.js
721
+ *
722
+ * Copyright (c) Facebook, Inc. and its affiliates.
723
+ *
724
+ * This source code is licensed under the MIT license found in the
725
+ * LICENSE file in the root directory of this source tree.
726
+ */
727
+ var kt;
728
+ function xn() {
729
+ return kt || (kt = 1, process.env.NODE_ENV !== "production" && function() {
730
+ 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, f = t ? Symbol.for("react.provider") : 60109, m = t ? Symbol.for("react.context") : 60110, h = 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, D = t ? Symbol.for("react.suspense_list") : 60120, j = t ? Symbol.for("react.memo") : 60115, A = t ? Symbol.for("react.lazy") : 60116, B = t ? Symbol.for("react.block") : 60121, Q = t ? Symbol.for("react.fundamental") : 60117, z = t ? Symbol.for("react.responder") : 60118, I = t ? Symbol.for("react.scope") : 60119;
731
+ function k(d) {
732
+ return typeof d == "string" || typeof d == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
733
+ d === i || d === p || d === l || d === a || d === P || d === D || typeof d == "object" && d !== null && (d.$$typeof === A || d.$$typeof === j || d.$$typeof === f || d.$$typeof === m || d.$$typeof === E || d.$$typeof === Q || d.$$typeof === z || d.$$typeof === I || d.$$typeof === B);
734
+ }
735
+ function w(d) {
736
+ if (typeof d == "object" && d !== null) {
737
+ var Ee = d.$$typeof;
738
+ switch (Ee) {
739
+ case e:
740
+ var ue = d.type;
741
+ switch (ue) {
742
+ case h:
743
+ case p:
744
+ case i:
745
+ case l:
746
+ case a:
747
+ case P:
748
+ return ue;
749
+ default:
750
+ var ae = ue && ue.$$typeof;
751
+ switch (ae) {
752
+ case m:
753
+ case E:
754
+ case A:
755
+ case j:
756
+ case f:
757
+ return ae;
758
+ default:
759
+ return Ee;
760
+ }
761
+ }
762
+ case n:
763
+ return Ee;
764
+ }
765
+ }
766
+ }
767
+ var c = h, L = p, he = m, we = f, Oe = e, Ve = E, Ye = i, _e = A, J = j, ee = n, oe = l, Ae = a, ke = P, ve = !1;
768
+ function Me(d) {
769
+ return ve || (ve = !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.")), pe(d) || w(d) === h;
770
+ }
771
+ function pe(d) {
772
+ return w(d) === p;
773
+ }
774
+ function Fe(d) {
775
+ return w(d) === m;
776
+ }
777
+ function je(d) {
778
+ return w(d) === f;
779
+ }
780
+ function Ne(d) {
781
+ return typeof d == "object" && d !== null && d.$$typeof === e;
782
+ }
783
+ function Be(d) {
784
+ return w(d) === E;
785
+ }
786
+ function We(d) {
787
+ return w(d) === i;
788
+ }
789
+ function ye(d) {
790
+ return w(d) === A;
791
+ }
792
+ function ge(d) {
793
+ return w(d) === j;
794
+ }
795
+ function le(d) {
796
+ return w(d) === n;
797
+ }
798
+ function be(d) {
799
+ return w(d) === l;
800
+ }
801
+ function ce(d) {
802
+ return w(d) === a;
803
+ }
804
+ function Ue(d) {
805
+ return w(d) === P;
806
+ }
807
+ S.AsyncMode = c, S.ConcurrentMode = L, S.ContextConsumer = he, S.ContextProvider = we, S.Element = Oe, S.ForwardRef = Ve, S.Fragment = Ye, S.Lazy = _e, S.Memo = J, S.Portal = ee, S.Profiler = oe, S.StrictMode = Ae, S.Suspense = ke, S.isAsyncMode = Me, S.isConcurrentMode = pe, S.isContextConsumer = Fe, S.isContextProvider = je, S.isElement = Ne, S.isForwardRef = Be, S.isFragment = We, S.isLazy = ye, S.isMemo = ge, S.isPortal = le, S.isProfiler = be, S.isStrictMode = ce, S.isSuspense = Ue, S.isValidElementType = k, S.typeOf = w;
808
+ }()), S;
809
+ }
810
+ var Mt;
811
+ function Sn() {
812
+ return Mt || (Mt = 1, process.env.NODE_ENV === "production" ? ze.exports = Tn() : ze.exports = xn()), ze.exports;
813
+ }
814
+ var Ze, Ft;
815
+ function Cn() {
816
+ if (Ft) return Ze;
817
+ Ft = 1;
818
+ var t = Sn(), e = {
819
+ childContextTypes: !0,
820
+ contextType: !0,
821
+ contextTypes: !0,
822
+ defaultProps: !0,
823
+ displayName: !0,
824
+ getDefaultProps: !0,
825
+ getDerivedStateFromError: !0,
826
+ getDerivedStateFromProps: !0,
827
+ mixins: !0,
828
+ propTypes: !0,
829
+ type: !0
830
+ }, n = {
831
+ name: !0,
832
+ length: !0,
833
+ prototype: !0,
834
+ caller: !0,
835
+ callee: !0,
836
+ arguments: !0,
837
+ arity: !0
838
+ }, i = {
839
+ $$typeof: !0,
840
+ render: !0,
841
+ defaultProps: !0,
842
+ displayName: !0,
843
+ propTypes: !0
844
+ }, a = {
845
+ $$typeof: !0,
846
+ compare: !0,
847
+ defaultProps: !0,
848
+ displayName: !0,
849
+ propTypes: !0,
850
+ type: !0
851
+ }, l = {};
852
+ l[t.ForwardRef] = i, l[t.Memo] = a;
853
+ function f(A) {
854
+ return t.isMemo(A) ? a : l[A.$$typeof] || e;
855
+ }
856
+ var m = Object.defineProperty, h = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, E = Object.getOwnPropertyDescriptor, P = Object.getPrototypeOf, D = Object.prototype;
857
+ function j(A, B, Q) {
858
+ if (typeof B != "string") {
859
+ if (D) {
860
+ var z = P(B);
861
+ z && z !== D && j(A, z, Q);
862
+ }
863
+ var I = h(B);
864
+ p && (I = I.concat(p(B)));
865
+ for (var k = f(A), w = f(B), c = 0; c < I.length; ++c) {
866
+ var L = I[c];
867
+ if (!n[L] && !(Q && Q[L]) && !(w && w[L]) && !(k && k[L])) {
868
+ var he = E(B, L);
869
+ try {
870
+ m(A, L, he);
871
+ } catch {
872
+ }
873
+ }
874
+ }
875
+ }
876
+ return A;
877
+ }
878
+ return Ze = j, Ze;
879
+ }
880
+ Cn();
881
+ var In = !0;
882
+ function Pn(t, e, n) {
883
+ var i = "";
884
+ return n.split(" ").forEach(function(a) {
885
+ t[a] !== void 0 ? e.push(t[a] + ";") : a && (i += a + " ");
886
+ }), i;
887
+ }
888
+ var Ht = function(e, n, i) {
889
+ var a = e.key + "-" + n.name;
890
+ // we only need to add the styles to the registered cache if the
891
+ // class name could be used further down
892
+ // the tree but if it's a string tag, we know it won't
893
+ // so we don't have to add it to registered cache.
894
+ // this improves memory usage since we can avoid storing the whole style string
895
+ (i === !1 || // we need to always store it if we're in compat mode and
896
+ // in node since emotion-server relies on whether a style is in
897
+ // the registered cache to know whether a style is global or not
898
+ // also, note that this check will be dead code eliminated in the browser
899
+ In === !1) && e.registered[a] === void 0 && (e.registered[a] = n.styles);
900
+ }, Rn = function(e, n, i) {
901
+ Ht(e, n, i);
902
+ var a = e.key + "-" + n.name;
903
+ if (e.inserted[n.name] === void 0) {
904
+ var l = n;
905
+ do
906
+ e.insert(n === l ? "." + a : "", l, e.sheet, !0), l = l.next;
907
+ while (l !== void 0);
908
+ }
909
+ };
910
+ function wn(t) {
911
+ for (var e = 0, n, i = 0, a = t.length; a >= 4; ++i, a -= 4)
912
+ 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): */
913
+ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
914
+ n >>> 24, e = /* Math.imul(k, m): */
915
+ (n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
916
+ (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
917
+ switch (a) {
918
+ case 3:
919
+ e ^= (t.charCodeAt(i + 2) & 255) << 16;
920
+ case 2:
921
+ e ^= (t.charCodeAt(i + 1) & 255) << 8;
922
+ case 1:
923
+ e ^= t.charCodeAt(i) & 255, e = /* Math.imul(h, m): */
924
+ (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16);
925
+ }
926
+ return e ^= e >>> 13, e = /* Math.imul(h, m): */
927
+ (e & 65535) * 1540483477 + ((e >>> 16) * 59797 << 16), ((e ^ e >>> 15) >>> 0).toString(36);
928
+ }
929
+ var On = {
930
+ animationIterationCount: 1,
931
+ aspectRatio: 1,
932
+ borderImageOutset: 1,
933
+ borderImageSlice: 1,
934
+ borderImageWidth: 1,
935
+ boxFlex: 1,
936
+ boxFlexGroup: 1,
937
+ boxOrdinalGroup: 1,
938
+ columnCount: 1,
939
+ columns: 1,
940
+ flex: 1,
941
+ flexGrow: 1,
942
+ flexPositive: 1,
943
+ flexShrink: 1,
944
+ flexNegative: 1,
945
+ flexOrder: 1,
946
+ gridRow: 1,
947
+ gridRowEnd: 1,
948
+ gridRowSpan: 1,
949
+ gridRowStart: 1,
950
+ gridColumn: 1,
951
+ gridColumnEnd: 1,
952
+ gridColumnSpan: 1,
953
+ gridColumnStart: 1,
954
+ msGridRow: 1,
955
+ msGridRowSpan: 1,
956
+ msGridColumn: 1,
957
+ msGridColumnSpan: 1,
958
+ fontWeight: 1,
959
+ lineHeight: 1,
960
+ opacity: 1,
961
+ order: 1,
962
+ orphans: 1,
963
+ scale: 1,
964
+ tabSize: 1,
965
+ widows: 1,
966
+ zIndex: 1,
967
+ zoom: 1,
968
+ WebkitLineClamp: 1,
969
+ // SVG-related properties
970
+ fillOpacity: 1,
971
+ floodOpacity: 1,
972
+ stopOpacity: 1,
973
+ strokeDasharray: 1,
974
+ strokeDashoffset: 1,
975
+ strokeMiterlimit: 1,
976
+ strokeOpacity: 1,
977
+ strokeWidth: 1
978
+ };
979
+ function _n(t) {
980
+ var e = /* @__PURE__ */ Object.create(null);
981
+ return function(n) {
982
+ return e[n] === void 0 && (e[n] = t(n)), e[n];
983
+ };
984
+ }
985
+ var An = /[A-Z]|^ms/g, kn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Gt = function(e) {
986
+ return e.charCodeAt(1) === 45;
987
+ }, jt = function(e) {
988
+ return e != null && typeof e != "boolean";
989
+ }, Qe = /* @__PURE__ */ _n(function(t) {
990
+ return Gt(t) ? t : t.replace(An, "-$&").toLowerCase();
991
+ }), Nt = function(e, n) {
992
+ switch (e) {
993
+ case "animation":
994
+ case "animationName":
995
+ if (typeof n == "string")
996
+ return n.replace(kn, function(i, a, l) {
997
+ return X = {
998
+ name: a,
999
+ styles: l,
1000
+ next: X
1001
+ }, a;
1002
+ });
1003
+ }
1004
+ return On[e] !== 1 && !Gt(e) && typeof n == "number" && n !== 0 ? n + "px" : n;
1005
+ };
1006
+ function Pe(t, e, n) {
1007
+ if (n == null)
1008
+ return "";
1009
+ var i = n;
1010
+ if (i.__emotion_styles !== void 0)
1011
+ return i;
1012
+ switch (typeof n) {
1013
+ case "boolean":
1014
+ return "";
1015
+ case "object": {
1016
+ var a = n;
1017
+ if (a.anim === 1)
1018
+ return X = {
1019
+ name: a.name,
1020
+ styles: a.styles,
1021
+ next: X
1022
+ }, a.name;
1023
+ var l = n;
1024
+ if (l.styles !== void 0) {
1025
+ var f = l.next;
1026
+ if (f !== void 0)
1027
+ for (; f !== void 0; )
1028
+ X = {
1029
+ name: f.name,
1030
+ styles: f.styles,
1031
+ next: X
1032
+ }, f = f.next;
1033
+ var m = l.styles + ";";
1034
+ return m;
1035
+ }
1036
+ return Mn(t, e, n);
1037
+ }
1038
+ case "function": {
1039
+ if (t !== void 0) {
1040
+ var h = X, p = n(t);
1041
+ return X = h, Pe(t, e, p);
1042
+ }
1043
+ break;
1044
+ }
1045
+ }
1046
+ var E = n;
1047
+ return E;
1048
+ }
1049
+ function Mn(t, e, n) {
1050
+ var i = "";
1051
+ if (Array.isArray(n))
1052
+ for (var a = 0; a < n.length; a++)
1053
+ i += Pe(t, e, n[a]) + ";";
1054
+ else
1055
+ for (var l in n) {
1056
+ var f = n[l];
1057
+ if (typeof f != "object") {
1058
+ var m = f;
1059
+ jt(m) && (i += Qe(l) + ":" + Nt(l, m) + ";");
1060
+ } else if (Array.isArray(f) && typeof f[0] == "string" && e == null)
1061
+ for (var h = 0; h < f.length; h++)
1062
+ jt(f[h]) && (i += Qe(l) + ":" + Nt(l, f[h]) + ";");
1063
+ else {
1064
+ var p = Pe(t, e, f);
1065
+ switch (l) {
1066
+ case "animation":
1067
+ case "animationName": {
1068
+ i += Qe(l) + ":" + p + ";";
1069
+ break;
1070
+ }
1071
+ default:
1072
+ i += l + "{" + p + "}";
1073
+ }
1074
+ }
1075
+ }
1076
+ return i;
1077
+ }
1078
+ var $t = /label:\s*([^\s;{]+)\s*(;|$)/g, X;
1079
+ function Fn(t, e, n) {
1080
+ if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
1081
+ return t[0];
1082
+ var i = !0, a = "";
1083
+ X = void 0;
1084
+ var l = t[0];
1085
+ if (l == null || l.raw === void 0)
1086
+ i = !1, a += Pe(n, e, l);
1087
+ else {
1088
+ var f = l;
1089
+ a += f[0];
1090
+ }
1091
+ for (var m = 1; m < t.length; m++)
1092
+ if (a += Pe(n, e, t[m]), i) {
1093
+ var h = l;
1094
+ a += h[m];
1095
+ }
1096
+ $t.lastIndex = 0;
1097
+ for (var p = "", E; (E = $t.exec(a)) !== null; )
1098
+ p += "-" + E[1];
1099
+ var P = wn(a) + p;
1100
+ return {
1101
+ name: P,
1102
+ styles: a,
1103
+ next: X
1104
+ };
1105
+ }
1106
+ var jn = function(e) {
1107
+ return e();
1108
+ }, Nn = te.useInsertionEffect ? te.useInsertionEffect : !1, $n = Nn || jn, Jt = /* @__PURE__ */ te.createContext(
1109
+ // we're doing this to avoid preconstruct's dead code elimination in this one case
1110
+ // because this module is primarily intended for the browser and node
1111
+ // but it's also required in react native and similar environments sometimes
1112
+ // and we could have a special build just for that
1113
+ // but this is much easier and the native packages
1114
+ // might use a different theme context in the future anyway
1115
+ typeof HTMLElement < "u" ? /* @__PURE__ */ Or({
1116
+ key: "css"
1117
+ }) : null
1118
+ );
1119
+ Jt.Provider;
1120
+ var Dn = function(e) {
1121
+ return /* @__PURE__ */ Pr(function(n, i) {
1122
+ var a = st(Jt);
1123
+ return e(n, a, i);
1124
+ });
1125
+ }, zn = /* @__PURE__ */ te.createContext({}), Le = {}.hasOwnProperty, it = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Kt = function(e, n) {
1126
+ var i = {};
1127
+ for (var a in n)
1128
+ Le.call(n, a) && (i[a] = n[a]);
1129
+ return i[it] = e, i;
1130
+ }, Ln = function(e) {
1131
+ var n = e.cache, i = e.serialized, a = e.isStringTag;
1132
+ return Ht(n, i, a), $n(function() {
1133
+ return Rn(n, i, a);
1134
+ }), null;
1135
+ }, Vn = /* @__PURE__ */ Dn(function(t, e, n) {
1136
+ var i = t.css;
1137
+ typeof i == "string" && e.registered[i] !== void 0 && (i = e.registered[i]);
1138
+ var a = t[it], l = [i], f = "";
1139
+ typeof t.className == "string" ? f = Pn(e.registered, l, t.className) : t.className != null && (f = t.className + " ");
1140
+ var m = Fn(l, void 0, te.useContext(zn));
1141
+ f += e.key + "-" + m.name;
1142
+ var h = {};
1143
+ for (var p in t)
1144
+ Le.call(t, p) && p !== "css" && p !== it && (h[p] = t[p]);
1145
+ return h.className = f, n && (h.ref = n), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(Ln, {
1146
+ cache: e,
1147
+ serialized: m,
1148
+ isStringTag: typeof a == "string"
1149
+ }), /* @__PURE__ */ te.createElement(a, h));
1150
+ }), Xt = Vn, Re = Ie.Fragment, o = function(e, n, i) {
1151
+ return Le.call(n, "css") ? Ie.jsx(Xt, Kt(e, n), i) : Ie.jsx(e, n, i);
1152
+ }, F = function(e, n, i) {
1153
+ return Le.call(n, "css") ? Ie.jsxs(Xt, Kt(e, n), i) : Ie.jsxs(e, n, i);
1154
+ }, R = /* @__PURE__ */ ((t) => (t.Off = "Off", t.All = "All", t.One = "One", t))(R || {});
1155
+ const Zt = 80, Yn = Y(({ playerStore: t }) => {
1156
+ const e = ie(), n = $(
1157
+ (l) => {
1158
+ const f = Number(l.currentTarget.value) / 100;
1159
+ t.setPercent(f);
19
1160
  },
20
- [n]
21
- ), s = u(
22
- (a) => {
23
- a.button === 0 && n.setSeeking(!0);
1161
+ [t]
1162
+ ), i = $(
1163
+ (l) => {
1164
+ l.button === 0 && t.setSeeking(!0);
24
1165
  },
25
- [n]
26
- ), l = u(
27
- async (a) => {
28
- if (a.button === 0) {
29
- const m = Number(a.currentTarget.value) / 100;
30
- n.setSeeking(!1);
31
- const d = await e.getDuration();
32
- d !== void 0 && await e.setCurrentTime(d * m);
1166
+ [t]
1167
+ ), a = $(
1168
+ async (l) => {
1169
+ if (l.button === 0) {
1170
+ const f = Number(l.currentTarget.value) / 100;
1171
+ t.setSeeking(!1);
1172
+ const m = await e.getDuration();
1173
+ m !== void 0 && await e.setCurrentTime(m * f);
33
1174
  }
34
1175
  },
35
- [n, e]
1176
+ [t, e]
36
1177
  );
37
- return /* @__PURE__ */ t.createElement(
38
- j,
1178
+ return /* @__PURE__ */ o(
1179
+ Vt,
39
1180
  {
40
1181
  min: 0,
41
1182
  max: 100,
42
1183
  step: 1e-7,
43
- value: n.percent * 100,
44
- onChange: i,
45
- onMouseDown: s,
46
- onMouseUp: l,
1184
+ value: t.percent * 100,
1185
+ onChange: n,
1186
+ onMouseDown: i,
1187
+ onMouseUp: a,
47
1188
  fullWidth: !0,
48
1189
  showRange: !0,
49
1190
  css: { blockSize: 32 }
50
1191
  }
51
1192
  );
52
- }), Je = y(
53
- ({ button: n, isOpen: e, closePopover: i }) => {
54
- const [s, l] = g("0"), a = C();
55
- Le(() => {
56
- e && a.getVolume().then((d) => {
57
- d !== void 0 && l(Math.floor(d * 100).toString());
1193
+ }), Bn = Z(
1194
+ ({ button: t, isOpen: e, closePopover: n }) => {
1195
+ const [i, a] = q("0"), l = ie();
1196
+ Rr(() => {
1197
+ e && l.getVolume().then((m) => {
1198
+ m !== void 0 && a(Math.floor(m * 100).toString());
58
1199
  });
59
- }, [e, a]);
60
- const m = u(
61
- async (d) => {
62
- l(d.currentTarget.value), await a.setVolume(Number(d.currentTarget.value) / 100);
1200
+ }, [e, l]);
1201
+ const f = $(
1202
+ async (m) => {
1203
+ a(m.currentTarget.value), await l.setVolume(Number(m.currentTarget.value) / 100);
63
1204
  },
64
- [a]
1205
+ [l]
65
1206
  );
66
- return /* @__PURE__ */ t.createElement(
67
- F,
1207
+ return /* @__PURE__ */ o(
1208
+ lt,
68
1209
  {
69
- button: n,
1210
+ button: t,
70
1211
  isOpen: e,
71
- closePopover: i,
72
- anchorPosition: "upRight"
73
- },
74
- /* @__PURE__ */ t.createElement(O, null, /* @__PURE__ */ t.createElement(
75
- k,
76
- {
77
- responsive: !1,
78
- gutterSize: "s",
79
- justifyContent: "center",
80
- alignItems: "center"
81
- },
82
- /* @__PURE__ */ t.createElement(
83
- I,
1212
+ closePopover: n,
1213
+ anchorPosition: "upRight",
1214
+ children: /* @__PURE__ */ o(tt, { children: /* @__PURE__ */ F(
1215
+ me,
84
1216
  {
85
- title: "Mute",
86
- "aria-label": "Mute",
87
- iconType: q,
88
- size: "s",
89
- iconSize: "l"
1217
+ responsive: !1,
1218
+ gutterSize: "s",
1219
+ justifyContent: "center",
1220
+ alignItems: "center",
1221
+ children: [
1222
+ /* @__PURE__ */ o(
1223
+ K,
1224
+ {
1225
+ title: "Mute",
1226
+ "aria-label": "Mute",
1227
+ iconType: Ut,
1228
+ size: "s",
1229
+ iconSize: "l"
1230
+ }
1231
+ ),
1232
+ /* @__PURE__ */ o(
1233
+ Vt,
1234
+ {
1235
+ min: 0,
1236
+ max: 100,
1237
+ step: 1,
1238
+ value: i,
1239
+ onChange: f,
1240
+ css: { blockSize: 32 }
1241
+ }
1242
+ )
1243
+ ]
90
1244
  }
91
- ),
92
- /* @__PURE__ */ t.createElement(
93
- j,
94
- {
95
- min: 0,
96
- max: 100,
97
- step: 1,
98
- value: s,
99
- onChange: m,
100
- css: { blockSize: 32 }
101
- }
102
- )
103
- ))
1245
+ ) })
1246
+ }
104
1247
  );
105
1248
  }
106
- ), Ge = y(
1249
+ ), Wn = Z(
107
1250
  ({
108
- playQueueStore: n,
1251
+ playQueueStore: t,
109
1252
  closePopover: e
110
1253
  }) => {
111
- const i = C(), s = u(async () => {
112
- const f = await i.getCurrentTime();
113
- f !== void 0 && await i.setCurrentTime(f - 10), e();
114
- }, [i, e]), l = u(async () => {
115
- const f = await i.getCurrentTime();
116
- f !== void 0 && await i.setCurrentTime(f + 30), e();
117
- }, [i, e]), a = u(
118
- async (f) => {
119
- await i.setPlaybackRate(f), e();
1254
+ const n = ie(), i = $(async () => {
1255
+ const p = await n.getCurrentTime();
1256
+ p !== void 0 && await n.setCurrentTime(p - 10), e();
1257
+ }, [n, e]), a = $(async () => {
1258
+ const p = await n.getCurrentTime();
1259
+ p !== void 0 && await n.setCurrentTime(p + 30), e();
1260
+ }, [n, e]), l = $(
1261
+ async (p) => {
1262
+ await n.setPlaybackRate(p), e();
120
1263
  },
121
- [i, e]
122
- ), m = u(async () => {
123
- n.currentItem !== void 0 && await n.removeItems([
124
- n.currentItem
1264
+ [n, e]
1265
+ ), f = $(async () => {
1266
+ t.currentItem !== void 0 && await t.removeItems([
1267
+ t.currentItem
125
1268
  ]), e();
126
- }, [n, e]), [d] = g(), T = G(
1269
+ }, [t, e]), [m] = q(), h = zt(
127
1270
  () => [
128
1271
  {
129
1272
  id: 0,
130
1273
  items: [
131
1274
  {
132
1275
  name: "Speed",
133
- icon: /* @__PURE__ */ t.createElement(E, { type: Te, size: "m" }),
1276
+ icon: /* @__PURE__ */ o(H, { type: sn, size: "m" }),
134
1277
  panel: 1
135
1278
  },
136
1279
  {
137
1280
  name: "Skip back 10 seconds",
138
- icon: /* @__PURE__ */ t.createElement(E, { type: xe, size: "m" }),
139
- onClick: s,
140
- disabled: n.isEmpty
1281
+ icon: /* @__PURE__ */ o(H, { type: ln, size: "m" }),
1282
+ onClick: i,
1283
+ disabled: t.isEmpty
141
1284
  },
142
1285
  {
143
1286
  name: "Skip forward 30 seconds",
144
- icon: /* @__PURE__ */ t.createElement(E, { type: Ce, size: "m" }),
145
- onClick: l,
146
- disabled: n.isEmpty
1287
+ icon: /* @__PURE__ */ o(H, { type: cn, size: "m" }),
1288
+ onClick: a,
1289
+ disabled: t.isEmpty
147
1290
  },
148
1291
  {
149
1292
  isSeparator: !0
150
1293
  },
151
1294
  {
152
1295
  name: "Remove from play queue",
153
- icon: /* @__PURE__ */ t.createElement(E, { type: B, size: "m" }),
154
- onClick: m,
155
- disabled: n.isEmpty
1296
+ icon: /* @__PURE__ */ o(H, { type: ct, size: "m" }),
1297
+ onClick: f,
1298
+ disabled: t.isEmpty
156
1299
  }
157
1300
  ]
158
1301
  },
@@ -160,452 +1303,492 @@ const Y = 80, qe = h(({ playerStore: n }) => {
160
1303
  id: 1,
161
1304
  title: "Speed",
162
1305
  items: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2].map(
163
- (f) => ({
164
- name: f.toString(),
165
- onClick: () => a(f),
166
- icon: f === d ? "check" : "empty"
1306
+ (p) => ({
1307
+ name: p.toString(),
1308
+ onClick: () => l(p),
1309
+ icon: p === m ? "check" : "empty"
167
1310
  })
168
1311
  )
169
1312
  }
170
1313
  ],
171
1314
  [
172
- n,
173
- s,
174
- l,
175
- m,
1315
+ t,
1316
+ i,
176
1317
  a,
177
- d
1318
+ f,
1319
+ l,
1320
+ m
178
1321
  ]
179
1322
  );
180
- return /* @__PURE__ */ t.createElement(ie, { initialPanelId: 0, panels: T });
1323
+ return /* @__PURE__ */ o(Mr, { initialPanelId: 0, panels: h });
181
1324
  }
182
- ), We = y(
1325
+ ), Un = Z(
183
1326
  ({
184
- playQueueStore: n,
1327
+ playQueueStore: t,
185
1328
  button: e,
186
- isOpen: i,
187
- closePopover: s
188
- }) => /* @__PURE__ */ t.createElement(
189
- F,
1329
+ isOpen: n,
1330
+ closePopover: i
1331
+ }) => /* @__PURE__ */ o(
1332
+ lt,
190
1333
  {
191
1334
  button: e,
192
- isOpen: i,
193
- closePopover: s,
1335
+ isOpen: n,
1336
+ closePopover: i,
194
1337
  panelPaddingSize: "none",
195
- anchorPosition: "upRight"
196
- },
197
- /* @__PURE__ */ t.createElement(
198
- Ge,
199
- {
200
- playQueueStore: n,
201
- closePopover: s
202
- }
203
- )
1338
+ anchorPosition: "upRight",
1339
+ children: /* @__PURE__ */ o(
1340
+ Wn,
1341
+ {
1342
+ playQueueStore: t,
1343
+ closePopover: i
1344
+ }
1345
+ )
1346
+ }
204
1347
  )
205
- ), Xe = {
206
- [o.Off]: Pe,
207
- [o.All]: we,
208
- [o.One]: ke
209
- }, Ye = h(
1348
+ ), qn = {
1349
+ [R.Off]: Qr,
1350
+ [R.All]: Zr,
1351
+ [R.One]: Xr
1352
+ }, Hn = Y(
210
1353
  ({
211
- playerStore: n,
1354
+ playerStore: t,
212
1355
  playQueueStore: e
213
1356
  }) => {
214
- const i = C(), s = u(async () => {
1357
+ const n = ie(), i = $(async () => {
215
1358
  if (e.hasPreviousItem) {
216
- const l = await i.getCurrentTime();
217
- l === void 0 || l < 5 ? await e.previous() : await i.setCurrentTime(0);
1359
+ const a = await n.getCurrentTime();
1360
+ a === void 0 || a < 5 ? await e.previous() : await n.setCurrentTime(0);
218
1361
  } else
219
- await i.setCurrentTime(0);
220
- }, [e, i]);
221
- return /* @__PURE__ */ t.createElement(
222
- k,
1362
+ await n.setCurrentTime(0);
1363
+ }, [e, n]);
1364
+ return /* @__PURE__ */ F(
1365
+ me,
223
1366
  {
224
1367
  responsive: !1,
225
1368
  gutterSize: "s",
226
1369
  justifyContent: "center",
227
- alignItems: "center"
228
- },
229
- /* @__PURE__ */ t.createElement(
230
- I,
231
- {
232
- title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
233
- "aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
234
- iconType: e.shuffle ? Se : Oe,
235
- size: "s",
236
- iconSize: "l",
237
- onClick: e.toggleShuffle,
238
- disabled: !0
239
- }
240
- ),
241
- /* @__PURE__ */ t.createElement(
242
- I,
243
- {
244
- title: "Previous",
245
- "aria-label": "Previous",
246
- iconType: Ae,
247
- size: "s",
248
- iconSize: "l",
249
- onClick: s,
250
- disabled: e.isEmpty
251
- }
252
- ),
253
- n.playing ? /* @__PURE__ */ t.createElement(
254
- I,
255
- {
256
- title: "Pause",
257
- "aria-label": "Pause",
258
- iconType: ze,
259
- size: "s",
260
- iconSize: "l",
261
- onClick: () => i.pause(),
262
- disabled: !e.canPlay
263
- }
264
- ) : /* @__PURE__ */ t.createElement(
265
- I,
266
- {
267
- title: "Play",
268
- "aria-label": "Play",
269
- iconType: Me,
270
- size: "s",
271
- iconSize: "l",
272
- onClick: () => i.play(),
273
- disabled: !e.canPlay
274
- }
275
- ),
276
- /* @__PURE__ */ t.createElement(
277
- I,
278
- {
279
- title: "Next",
280
- "aria-label": "Next",
281
- iconType: Re,
282
- size: "s",
283
- iconSize: "l",
284
- onClick: e.next,
285
- disabled: !e.hasNextItem
286
- }
287
- ),
288
- /* @__PURE__ */ t.createElement(
289
- I,
290
- {
291
- title: `Repeat: ${e.repeat === o.All ? "All" : e.repeat === o.One ? "One" : "Off"}`,
292
- "aria-label": `Repeat: ${e.repeat === o.All ? "All" : e.repeat === o.One ? "One" : "Off"}`,
293
- iconType: Xe[e.repeat],
294
- size: "s",
295
- iconSize: "l",
296
- onClick: e.toggleRepeat
297
- }
298
- )
1370
+ alignItems: "center",
1371
+ children: [
1372
+ /* @__PURE__ */ o(
1373
+ K,
1374
+ {
1375
+ title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
1376
+ "aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
1377
+ iconType: e.shuffle ? en : tn,
1378
+ size: "s",
1379
+ iconSize: "l",
1380
+ onClick: e.toggleShuffle,
1381
+ disabled: !0
1382
+ }
1383
+ ),
1384
+ /* @__PURE__ */ o(
1385
+ K,
1386
+ {
1387
+ title: "Previous",
1388
+ "aria-label": "Previous",
1389
+ iconType: rn,
1390
+ size: "s",
1391
+ iconSize: "l",
1392
+ onClick: i,
1393
+ disabled: e.isEmpty
1394
+ }
1395
+ ),
1396
+ t.playing ? /* @__PURE__ */ o(
1397
+ K,
1398
+ {
1399
+ title: "Pause",
1400
+ "aria-label": "Pause",
1401
+ iconType: nn,
1402
+ size: "s",
1403
+ iconSize: "l",
1404
+ onClick: () => n.pause(),
1405
+ disabled: !e.canPlay
1406
+ }
1407
+ ) : /* @__PURE__ */ o(
1408
+ K,
1409
+ {
1410
+ title: "Play",
1411
+ "aria-label": "Play",
1412
+ iconType: on,
1413
+ size: "s",
1414
+ iconSize: "l",
1415
+ onClick: () => n.play(),
1416
+ disabled: !e.canPlay
1417
+ }
1418
+ ),
1419
+ /* @__PURE__ */ o(
1420
+ K,
1421
+ {
1422
+ title: "Next",
1423
+ "aria-label": "Next",
1424
+ iconType: an,
1425
+ size: "s",
1426
+ iconSize: "l",
1427
+ onClick: e.next,
1428
+ disabled: !e.hasNextItem
1429
+ }
1430
+ ),
1431
+ /* @__PURE__ */ o(
1432
+ K,
1433
+ {
1434
+ title: `Repeat: ${e.repeat === R.All ? "All" : e.repeat === R.One ? "One" : "Off"}`,
1435
+ "aria-label": `Repeat: ${e.repeat === R.All ? "All" : e.repeat === R.One ? "One" : "Off"}`,
1436
+ iconType: qn[e.repeat],
1437
+ size: "s",
1438
+ iconSize: "l",
1439
+ onClick: e.toggleRepeat
1440
+ }
1441
+ )
1442
+ ]
1443
+ }
299
1444
  );
300
1445
  }
301
- ), Ke = y(() => {
302
- const [n, e] = g(!1), i = () => e(!n);
303
- return /* @__PURE__ */ t.createElement(
304
- Je,
1446
+ ), Gn = Z(() => {
1447
+ const [t, e] = q(!1);
1448
+ return /* @__PURE__ */ o(
1449
+ Bn,
305
1450
  {
306
- button: /* @__PURE__ */ t.createElement(
307
- I,
1451
+ button: /* @__PURE__ */ o(
1452
+ K,
308
1453
  {
309
1454
  title: "Volume",
310
1455
  "aria-label": "Volume",
311
- iconType: q,
1456
+ iconType: Ut,
312
1457
  size: "s",
313
1458
  iconSize: "l",
314
- onClick: i
1459
+ onClick: () => e(!t)
315
1460
  }
316
1461
  ),
317
- isOpen: n,
1462
+ isOpen: t,
318
1463
  closePopover: () => e(!1)
319
1464
  }
320
1465
  );
321
- }), Ze = y(
322
- ({ playQueueStore: n }) => {
323
- const [e, i] = g(!1), s = () => i(!e);
324
- return /* @__PURE__ */ t.createElement(
325
- We,
1466
+ }), Jn = Z(
1467
+ ({ playQueueStore: t }) => {
1468
+ const [e, n] = q(!1);
1469
+ return /* @__PURE__ */ o(
1470
+ Un,
326
1471
  {
327
- playQueueStore: n,
328
- button: /* @__PURE__ */ t.createElement(
329
- I,
1472
+ playQueueStore: t,
1473
+ button: /* @__PURE__ */ o(
1474
+ K,
330
1475
  {
331
1476
  title: "More options",
332
1477
  "aria-label": "More options",
333
- iconType: J,
1478
+ iconType: qt,
334
1479
  size: "s",
335
1480
  iconSize: "l",
336
- onClick: s
1481
+ onClick: () => n(!e)
337
1482
  }
338
1483
  ),
339
1484
  isOpen: e,
340
- closePopover: () => i(!1)
1485
+ closePopover: () => n(!1)
341
1486
  }
342
1487
  );
343
1488
  }
344
- ), _e = y(
345
- ({ playQueueStore: n }) => /* @__PURE__ */ t.createElement(
346
- k,
1489
+ ), Kn = Z(
1490
+ ({ playQueueStore: t }) => /* @__PURE__ */ F(
1491
+ me,
347
1492
  {
348
1493
  responsive: !1,
349
1494
  gutterSize: "s",
350
1495
  justifyContent: "flexEnd",
351
- alignItems: "center"
352
- },
353
- /* @__PURE__ */ t.createElement(Ke, null),
354
- /* @__PURE__ */ t.createElement(Ze, { playQueueStore: n })
355
- )
356
- ), St = h(
357
- ({ playerStore: n, playQueueStore: e }) => /* @__PURE__ */ t.createElement(se, { paddingSize: "s" }, /* @__PURE__ */ t.createElement(k, { direction: "column", gutterSize: "none" }, /* @__PURE__ */ t.createElement(v, null, /* @__PURE__ */ t.createElement(qe, { playerStore: n })), /* @__PURE__ */ t.createElement(v, null, /* @__PURE__ */ t.createElement(k, { responsive: !1 }, /* @__PURE__ */ t.createElement(v, { css: { width: "calc(100% / 3)" } }), /* @__PURE__ */ t.createElement(v, { css: { width: "calc(100% / 3)" } }, /* @__PURE__ */ t.createElement(
358
- Ye,
359
- {
360
- playerStore: n,
361
- playQueueStore: e
362
- }
363
- )), /* @__PURE__ */ t.createElement(v, { css: { width: "calc(100% / 3)" } }, /* @__PURE__ */ t.createElement(
364
- _e,
365
- {
366
- playQueueStore: e
1496
+ alignItems: "center",
1497
+ children: [
1498
+ /* @__PURE__ */ o(Gn, {}),
1499
+ /* @__PURE__ */ o(Jn, { playQueueStore: t })
1500
+ ]
367
1501
  }
368
- ))))))
369
- ), Qe = ({
370
- onCancel: n,
1502
+ )
1503
+ ), Ri = Y(
1504
+ ({ playerStore: t, playQueueStore: e }) => /* @__PURE__ */ o(kr, { paddingSize: "s", children: /* @__PURE__ */ F(me, { direction: "column", gutterSize: "none", children: [
1505
+ /* @__PURE__ */ o(G, { children: /* @__PURE__ */ o(Yn, { playerStore: t }) }),
1506
+ /* @__PURE__ */ o(G, { children: /* @__PURE__ */ F(me, { responsive: !1, children: [
1507
+ /* @__PURE__ */ o(G, { css: { width: "calc(100% / 3)" } }),
1508
+ /* @__PURE__ */ o(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
1509
+ Hn,
1510
+ {
1511
+ playerStore: t,
1512
+ playQueueStore: e
1513
+ }
1514
+ ) }),
1515
+ /* @__PURE__ */ o(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
1516
+ Kn,
1517
+ {
1518
+ playQueueStore: e
1519
+ }
1520
+ ) })
1521
+ ] }) })
1522
+ ] }) })
1523
+ ), Xn = ({
1524
+ onCancel: t,
371
1525
  onSave: e
372
1526
  }) => {
373
- const [i, s] = g(""), [l, a] = g(""), [m, d] = g(!1);
374
- return /* @__PURE__ */ t.createElement(re, { onClose: n, initialFocus: "[name=url]" }, /* @__PURE__ */ t.createElement(le, null, /* @__PURE__ */ t.createElement(ae, null, "Add video")), /* @__PURE__ */ t.createElement(oe, null, /* @__PURE__ */ t.createElement(ce, { component: "form" }, /* @__PURE__ */ t.createElement(O, { label: "URL" }, /* @__PURE__ */ t.createElement(
375
- V,
376
- {
377
- name: "url",
378
- value: i,
379
- onChange: (T) => s(T.target.value)
380
- }
381
- )), /* @__PURE__ */ t.createElement(O, { label: "Title" }, /* @__PURE__ */ t.createElement(
382
- V,
383
- {
384
- name: "title",
385
- value: l,
386
- onChange: (T) => a(T.target.value)
387
- }
388
- )))), /* @__PURE__ */ t.createElement(me, null, /* @__PURE__ */ t.createElement(de, { onClick: n }, "Cancel"), /* @__PURE__ */ t.createElement(
389
- x,
390
- {
391
- type: "submit",
392
- onClick: async () => {
393
- try {
394
- d(!0), await e({ url: i, title: l });
395
- } finally {
396
- d(!1);
1527
+ const [n, i] = q(""), [a, l] = q(""), [f, m] = q(!1);
1528
+ return /* @__PURE__ */ F(Lr, { onClose: t, initialFocus: "[name=url]", children: [
1529
+ /* @__PURE__ */ o(jr, { children: /* @__PURE__ */ o(Fr, { children: "Add video" }) }),
1530
+ /* @__PURE__ */ o($r, { children: /* @__PURE__ */ F(Nr, { component: "form", children: [
1531
+ /* @__PURE__ */ o(tt, { label: "URL", children: /* @__PURE__ */ o(
1532
+ It,
1533
+ {
1534
+ name: "url",
1535
+ value: n,
1536
+ onChange: (h) => i(h.target.value)
397
1537
  }
398
- },
399
- fill: !0,
400
- disabled: i.trim().length === 0,
401
- isLoading: m
402
- },
403
- "Save"
404
- )));
1538
+ ) }),
1539
+ /* @__PURE__ */ o(tt, { label: "Title", children: /* @__PURE__ */ o(
1540
+ It,
1541
+ {
1542
+ name: "title",
1543
+ value: a,
1544
+ onChange: (h) => l(h.target.value)
1545
+ }
1546
+ ) })
1547
+ ] }) }),
1548
+ /* @__PURE__ */ F(Dr, { children: [
1549
+ /* @__PURE__ */ o(zr, { onClick: t, children: "Cancel" }),
1550
+ /* @__PURE__ */ o(
1551
+ ne,
1552
+ {
1553
+ type: "submit",
1554
+ onClick: async () => {
1555
+ try {
1556
+ m(!0), await e({ url: n, title: a });
1557
+ } finally {
1558
+ m(!1);
1559
+ }
1560
+ },
1561
+ fill: !0,
1562
+ disabled: n.trim().length === 0,
1563
+ isLoading: f,
1564
+ children: "Save"
1565
+ }
1566
+ )
1567
+ ] })
1568
+ ] });
405
1569
  };
406
- function et(n) {
407
- return n !== null && typeof n == "object" && "title" in n && typeof n.title == "string";
1570
+ function Zn(t) {
1571
+ return t !== null && typeof t == "object" && "title" in t && typeof t.title == "string";
408
1572
  }
409
- const tt = y(
410
- ({ playQueueStore: n }) => {
411
- const [e, i] = g(!1), s = u(
412
- async (l) => {
413
- const a = te(l.url);
414
- if (a !== void 0) {
415
- const m = a.extractVideoId(l.url);
416
- if (m !== void 0) {
417
- const T = await (await fetch(
1573
+ const Qn = Z(
1574
+ ({ playQueueStore: t }) => {
1575
+ const [e, n] = q(!1), i = $(
1576
+ async (a) => {
1577
+ const l = _r(a.url);
1578
+ if (l !== void 0) {
1579
+ const f = l.extractVideoId(a.url);
1580
+ if (f !== void 0) {
1581
+ const h = await (await fetch(
418
1582
  `https://noembed.com/embed?url=${encodeURIComponent(
419
- l.url
1583
+ a.url
420
1584
  )}`
421
1585
  )).json();
422
- await n.addItems([
423
- n.createItem({
424
- url: l.url,
425
- type: a.type,
426
- videoId: m,
427
- title: l.title || (et(T) ? T.title : m)
1586
+ await t.addItems([
1587
+ t.createItem({
1588
+ url: a.url,
1589
+ type: l.type,
1590
+ videoId: f,
1591
+ title: a.title || (Zn(h) ? h.title : f)
428
1592
  })
429
1593
  ]);
430
1594
  }
431
1595
  }
432
- i(!1);
1596
+ n(!1);
433
1597
  },
434
- [n]
1598
+ [t]
435
1599
  );
436
- return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
437
- x,
438
- {
439
- onClick: () => i(!0),
440
- iconType: N,
441
- color: "primary"
442
- },
443
- "Add video"
444
- ), e && /* @__PURE__ */ t.createElement(
445
- Qe,
446
- {
447
- onCancel: () => i(!1),
448
- onSave: s
449
- }
450
- ));
1600
+ return /* @__PURE__ */ F(Re, { children: [
1601
+ /* @__PURE__ */ o(
1602
+ ne,
1603
+ {
1604
+ onClick: () => n(!0),
1605
+ iconType: ut,
1606
+ color: "primary",
1607
+ children: "Add video"
1608
+ }
1609
+ ),
1610
+ e && /* @__PURE__ */ o(
1611
+ Xn,
1612
+ {
1613
+ onCancel: () => n(!1),
1614
+ onSave: i
1615
+ }
1616
+ )
1617
+ ] });
451
1618
  }
452
- ), nt = h(
453
- ({ playQueueStore: n }) => {
454
- const { euiTheme: e } = H();
455
- return /* @__PURE__ */ t.createElement(
456
- ue,
1619
+ ), ei = Y(
1620
+ ({ playQueueStore: t }) => {
1621
+ const { euiTheme: e } = Yt();
1622
+ return /* @__PURE__ */ F(
1623
+ Yr,
457
1624
  {
458
1625
  style: {
459
1626
  position: "sticky",
460
1627
  top: 112,
461
1628
  zIndex: 998,
462
1629
  background: e.colors.backgroundBasePlain
463
- }
464
- },
465
- /* @__PURE__ */ t.createElement(he, null, /* @__PURE__ */ t.createElement(
466
- U,
467
- {
468
- id: "",
469
- checked: n.allItemsSelected,
470
- onChange: (i) => {
471
- n.allItemsSelected = i.target.checked;
472
- }
473
- }
474
- )),
475
- /* @__PURE__ */ t.createElement(P, { width: 24 }),
476
- /* @__PURE__ */ t.createElement(P, null, "Title"),
477
- /* @__PURE__ */ t.createElement(P, null)
1630
+ },
1631
+ children: [
1632
+ /* @__PURE__ */ o(Vr, { children: /* @__PURE__ */ o(
1633
+ Bt,
1634
+ {
1635
+ id: "",
1636
+ checked: t.allItemsSelected,
1637
+ onChange: (n) => {
1638
+ t.allItemsSelected = n.target.checked;
1639
+ }
1640
+ }
1641
+ ) }),
1642
+ /* @__PURE__ */ o(Xe, { width: 24 }),
1643
+ /* @__PURE__ */ o(Xe, { children: "Title" }),
1644
+ /* @__PURE__ */ o(Xe, {})
1645
+ ]
1646
+ }
478
1647
  );
479
1648
  }
480
- ), it = y(
1649
+ ), ti = Z(
481
1650
  ({
482
- item: n,
1651
+ item: t,
483
1652
  closePopover: e
484
1653
  }) => {
485
- const i = y(
1654
+ const n = Z(
486
1655
  ({
487
- onClick: s,
488
- ...l
1656
+ onClick: i,
1657
+ ...a
489
1658
  }) => {
490
- const a = u(
491
- (m) => {
492
- e(), s == null || s(m);
1659
+ const l = $(
1660
+ (f) => {
1661
+ e(), i == null || i(f);
493
1662
  },
494
- [s]
1663
+ [i]
495
1664
  );
496
- return /* @__PURE__ */ t.createElement(pe, { ...l, onClick: a });
1665
+ return /* @__PURE__ */ o(Br, { ...a, onClick: l });
497
1666
  }
498
1667
  );
499
- return /* @__PURE__ */ t.createElement(ge, null, /* @__PURE__ */ t.createElement(
500
- i,
501
- {
502
- icon: /* @__PURE__ */ t.createElement(E, { type: "" }),
503
- onClick: n.playFirst
504
- },
505
- "Play first"
506
- ), /* @__PURE__ */ t.createElement(
507
- i,
508
- {
509
- icon: /* @__PURE__ */ t.createElement(E, { type: "" }),
510
- onClick: n.playNext
511
- },
512
- "Play next"
513
- ), /* @__PURE__ */ t.createElement(
514
- i,
515
- {
516
- icon: /* @__PURE__ */ t.createElement(E, { type: N }),
517
- onClick: n.addToPlayQueue
518
- },
519
- "Add to play queue"
520
- ), /* @__PURE__ */ t.createElement(L, { margin: "none" }), /* @__PURE__ */ t.createElement(
521
- i,
522
- {
523
- icon: /* @__PURE__ */ t.createElement(E, { type: Fe }),
524
- onClick: n.moveToTop,
525
- disabled: !n.canMoveToTop
526
- },
527
- "Move to the top"
528
- ), /* @__PURE__ */ t.createElement(
529
- i,
530
- {
531
- icon: /* @__PURE__ */ t.createElement(E, { type: Be }),
532
- onClick: n.moveToBottom,
533
- disabled: !n.canMoveToBottom
534
- },
535
- "Move to the bottom"
536
- ), /* @__PURE__ */ t.createElement(L, { margin: "none" }), /* @__PURE__ */ t.createElement(
537
- i,
538
- {
539
- icon: /* @__PURE__ */ t.createElement(E, { type: "" }),
540
- onClick: n.removeToTop,
541
- disabled: !n.canRemoveToTop
542
- },
543
- "Remove to the top"
544
- ), /* @__PURE__ */ t.createElement(
545
- i,
546
- {
547
- icon: /* @__PURE__ */ t.createElement(E, { type: "" }),
548
- onClick: n.removeOthers,
549
- disabled: !n.canRemoveOthers
550
- },
551
- "Remove others"
552
- ));
553
- }
554
- ), st = y(
555
- ({ item: n }) => {
556
- const [e, i] = g(!1), s = u(() => i(!e), [e]), l = u(() => i(!1), []);
557
- return /* @__PURE__ */ t.createElement(
558
- F,
1668
+ return /* @__PURE__ */ F(Wr, { children: [
1669
+ /* @__PURE__ */ o(
1670
+ n,
1671
+ {
1672
+ icon: /* @__PURE__ */ o(H, { type: "" }),
1673
+ onClick: t.playFirst,
1674
+ children: "Play first"
1675
+ }
1676
+ ),
1677
+ /* @__PURE__ */ o(
1678
+ n,
1679
+ {
1680
+ icon: /* @__PURE__ */ o(H, { type: "" }),
1681
+ onClick: t.playNext,
1682
+ children: "Play next"
1683
+ }
1684
+ ),
1685
+ /* @__PURE__ */ o(
1686
+ n,
1687
+ {
1688
+ icon: /* @__PURE__ */ o(H, { type: ut }),
1689
+ onClick: t.addToPlayQueue,
1690
+ children: "Add to play queue"
1691
+ }
1692
+ ),
1693
+ /* @__PURE__ */ o(Pt, { margin: "none" }),
1694
+ /* @__PURE__ */ o(
1695
+ n,
1696
+ {
1697
+ icon: /* @__PURE__ */ o(H, { type: un }),
1698
+ onClick: t.moveToTop,
1699
+ disabled: !t.canMoveToTop,
1700
+ children: "Move to the top"
1701
+ }
1702
+ ),
1703
+ /* @__PURE__ */ o(
1704
+ n,
1705
+ {
1706
+ icon: /* @__PURE__ */ o(H, { type: fn }),
1707
+ onClick: t.moveToBottom,
1708
+ disabled: !t.canMoveToBottom,
1709
+ children: "Move to the bottom"
1710
+ }
1711
+ ),
1712
+ /* @__PURE__ */ o(Pt, { margin: "none" }),
1713
+ /* @__PURE__ */ o(
1714
+ n,
1715
+ {
1716
+ icon: /* @__PURE__ */ o(H, { type: "" }),
1717
+ onClick: t.removeToTop,
1718
+ disabled: !t.canRemoveToTop,
1719
+ children: "Remove to the top"
1720
+ }
1721
+ ),
1722
+ /* @__PURE__ */ o(
1723
+ n,
1724
+ {
1725
+ icon: /* @__PURE__ */ o(H, { type: "" }),
1726
+ onClick: t.removeOthers,
1727
+ disabled: !t.canRemoveOthers,
1728
+ children: "Remove others"
1729
+ }
1730
+ )
1731
+ ] });
1732
+ }
1733
+ ), ri = Z(
1734
+ ({ item: t }) => {
1735
+ const [e, n] = q(!1), i = $(() => n(!e), [e]), a = $(() => n(!1), []);
1736
+ return /* @__PURE__ */ o(
1737
+ lt,
559
1738
  {
560
- button: /* @__PURE__ */ t.createElement(
561
- I,
1739
+ button: /* @__PURE__ */ o(
1740
+ K,
562
1741
  {
563
1742
  title: "More options",
564
1743
  "aria-label": "More options",
565
- iconType: J,
1744
+ iconType: qt,
566
1745
  size: "s",
567
1746
  color: "text",
568
- onClick: s
1747
+ onClick: i
569
1748
  }
570
1749
  ),
571
1750
  isOpen: e,
572
- closePopover: l,
1751
+ closePopover: a,
573
1752
  panelPaddingSize: "none",
574
- anchorPosition: "leftCenter"
575
- },
576
- /* @__PURE__ */ t.createElement(
577
- it,
578
- {
579
- item: n,
580
- closePopover: l
581
- }
582
- )
1753
+ anchorPosition: "leftCenter",
1754
+ children: /* @__PURE__ */ o(
1755
+ ti,
1756
+ {
1757
+ item: t,
1758
+ closePopover: a
1759
+ }
1760
+ )
1761
+ }
583
1762
  );
584
1763
  }
585
- ), rt = h(
586
- ({ item: n }) => {
587
- const e = C();
588
- return /* @__PURE__ */ t.createElement(A, { textOnly: !1, hasActions: !0, align: "right" }, /* @__PURE__ */ t.createElement(
589
- x,
590
- {
591
- iconType: Ne,
592
- size: "s",
593
- onClick: async () => {
594
- n.isCurrent ? await e.setCurrentTime(0) : n.play();
1764
+ ), ni = Y(
1765
+ ({ item: t }) => {
1766
+ const e = ie();
1767
+ return /* @__PURE__ */ F(rt, { textOnly: !1, hasActions: !0, align: "right", children: [
1768
+ /* @__PURE__ */ o(
1769
+ ne,
1770
+ {
1771
+ iconType: dn,
1772
+ size: "s",
1773
+ onClick: async () => {
1774
+ t.isCurrent ? await e.setCurrentTime(0) : t.play();
1775
+ },
1776
+ children: "Play"
595
1777
  }
596
- },
597
- "Play"
598
- ), /* @__PURE__ */ t.createElement(
599
- x,
600
- {
601
- iconType: B,
602
- size: "s",
603
- onClick: n.remove
604
- },
605
- "Remove"
606
- ), /* @__PURE__ */ t.createElement(st, { item: n }));
1778
+ ),
1779
+ /* @__PURE__ */ o(
1780
+ ne,
1781
+ {
1782
+ iconType: ct,
1783
+ size: "s",
1784
+ onClick: t.remove,
1785
+ children: "Remove"
1786
+ }
1787
+ ),
1788
+ /* @__PURE__ */ o(ri, { item: t })
1789
+ ] });
607
1790
  }
608
- ), lt = {
1791
+ ), ii = {
609
1792
  Audio: "",
610
1793
  Dailymotion: "https://www.dailymotion.com/favicon.ico",
611
1794
  Niconico: "https://www.nicovideo.jp/favicon.ico",
@@ -613,251 +1796,273 @@ const tt = y(
613
1796
  Twitch: "https://www.twitch.tv/favicon.ico",
614
1797
  Vimeo: "https://vimeo.com/favicon.ico",
615
1798
  YouTube: "https://www.youtube.com/favicon.ico"
616
- }, at = h(
617
- ({ item: n }) => {
618
- const e = C();
619
- return /* @__PURE__ */ t.createElement(fe, { key: n.id, isSelected: n.isCurrent }, /* @__PURE__ */ t.createElement(Ee, null, /* @__PURE__ */ t.createElement(
620
- U,
621
- {
622
- id: n.id.toString(),
623
- checked: n.isSelected,
624
- onChange: n.toggleSelected
625
- }
626
- )), /* @__PURE__ */ t.createElement(A, { textOnly: !1 }, /* @__PURE__ */ t.createElement(
627
- "img",
628
- {
629
- src: lt[n.type],
630
- width: 16,
631
- height: 16,
632
- alt: n.type
633
- }
634
- )), /* @__PURE__ */ t.createElement(A, null, /* @__PURE__ */ t.createElement(
635
- ve,
636
- {
637
- href: n.url,
638
- target: "_blank",
639
- external: !0,
640
- onClick: () => e.pause()
641
- },
642
- n.title
643
- )), /* @__PURE__ */ t.createElement(rt, { item: n }));
1799
+ }, oi = Y(
1800
+ ({ item: t }) => {
1801
+ const e = ie();
1802
+ return /* @__PURE__ */ F(Hr, { isSelected: t.isCurrent, children: [
1803
+ /* @__PURE__ */ o(Ur, { children: /* @__PURE__ */ o(
1804
+ Bt,
1805
+ {
1806
+ id: t.id.toString(),
1807
+ checked: t.isSelected,
1808
+ onChange: t.toggleSelected
1809
+ }
1810
+ ) }),
1811
+ /* @__PURE__ */ o(rt, { textOnly: !1, children: /* @__PURE__ */ o(
1812
+ "img",
1813
+ {
1814
+ src: ii[t.type],
1815
+ width: 16,
1816
+ height: 16,
1817
+ alt: t.type
1818
+ }
1819
+ ) }),
1820
+ /* @__PURE__ */ o(rt, { children: /* @__PURE__ */ o(
1821
+ qr,
1822
+ {
1823
+ href: t.url,
1824
+ target: "_blank",
1825
+ external: !0,
1826
+ onClick: () => e.pause(),
1827
+ children: t.title
1828
+ }
1829
+ ) }),
1830
+ /* @__PURE__ */ o(ni, { item: t })
1831
+ ] }, t.id);
644
1832
  }
645
- ), ot = h(
646
- ({ playQueueStore: n }) => /* @__PURE__ */ t.createElement(
647
- je,
1833
+ ), ai = Y(
1834
+ ({ playQueueStore: t }) => /* @__PURE__ */ o(
1835
+ hn,
648
1836
  {
649
1837
  tag: "tbody",
650
- list: n.items,
651
- setList: (e) => n.setItems(e)
652
- },
653
- n.items.map((e) => /* @__PURE__ */ t.createElement(at, { key: e.id, item: e }))
1838
+ list: t.items,
1839
+ setList: (e) => t.setItems(e),
1840
+ children: t.items.map((e) => /* @__PURE__ */ o(oi, { item: e }, e.id))
1841
+ }
654
1842
  )
655
- ), ct = h(
656
- ({ playQueueStore: n }) => /* @__PURE__ */ t.createElement(Ie, null, /* @__PURE__ */ t.createElement(nt, { playQueueStore: n }), /* @__PURE__ */ t.createElement(ot, { playQueueStore: n }))
657
- ), mt = h(
658
- ({ playQueueStore: n }) => {
659
- const [e, i] = g(!1);
660
- return /* @__PURE__ */ t.createElement(t.Fragment, null, e && /* @__PURE__ */ t.createElement(
661
- ye,
662
- {
663
- type: "push",
664
- size: "s",
665
- onClose: () => i(!1)
666
- },
667
- /* @__PURE__ */ t.createElement("div", { style: { blockSize: "100%" } }, /* @__PURE__ */ t.createElement(
668
- be,
1843
+ ), si = Y(
1844
+ ({ playQueueStore: t }) => /* @__PURE__ */ F(Gr, { children: [
1845
+ /* @__PURE__ */ o(ei, { playQueueStore: t }),
1846
+ /* @__PURE__ */ o(ai, { playQueueStore: t })
1847
+ ] })
1848
+ ), li = Y(
1849
+ ({ playQueueStore: t }) => {
1850
+ const [e, n] = q(!1);
1851
+ return /* @__PURE__ */ F(Re, { children: [
1852
+ e && /* @__PURE__ */ o(
1853
+ Kr,
669
1854
  {
670
- language: "json",
671
- overflowHeight: "100%",
672
- isCopyable: !0,
673
- isVirtualized: !0
674
- },
675
- JSON.stringify(
676
- n.localStorageState,
677
- void 0,
678
- 2
679
- )
680
- ))
681
- ), /* @__PURE__ */ t.createElement(tt, { playQueueStore: n }));
682
- }
683
- ), dt = h(
684
- ({ playerStore: n, playQueueStore: e }) => {
685
- const { euiTheme: i } = H();
686
- return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
687
- k,
688
- {
689
- alignItems: "center",
690
- gutterSize: "m",
691
- style: {
692
- position: "sticky",
693
- top: 48,
694
- zIndex: 998,
695
- background: i.colors.backgroundBasePlain
1855
+ type: "push",
1856
+ size: "s",
1857
+ onClose: () => n(!1),
1858
+ children: /* @__PURE__ */ o("div", { style: { blockSize: "100%" }, children: /* @__PURE__ */ o(
1859
+ Jr,
1860
+ {
1861
+ language: "json",
1862
+ overflowHeight: "100%",
1863
+ isCopyable: !0,
1864
+ isVirtualized: !0,
1865
+ children: JSON.stringify(
1866
+ t.localStorageState,
1867
+ void 0,
1868
+ 2
1869
+ )
1870
+ }
1871
+ ) })
696
1872
  }
697
- },
698
- /* @__PURE__ */ t.createElement(v, { grow: !1 }, /* @__PURE__ */ t.createElement(
699
- x,
700
- {
701
- disabled: e.isEmpty || e.selectedItems.length === 0,
702
- onClick: e.playSelectedItemsNext
703
- },
704
- "Play next"
705
- )),
706
- /* @__PURE__ */ t.createElement(v, { grow: !1 }, /* @__PURE__ */ t.createElement(
707
- x,
708
- {
709
- iconType: N,
710
- onClick: e.addSelectedItems,
711
- disabled: e.isEmpty || e.selectedItems.length === 0
712
- },
713
- "Add to play queue"
714
- )),
715
- /* @__PURE__ */ t.createElement(v, { grow: !1 }, /* @__PURE__ */ t.createElement(
716
- x,
717
- {
718
- iconType: B,
719
- onClick: e.removeSelectedItems,
720
- disabled: e.isEmpty || e.selectedItems.length === 0
721
- },
722
- "Remove"
723
- )),
724
- /* @__PURE__ */ t.createElement(v, { grow: !1 }, /* @__PURE__ */ t.createElement(
725
- x,
1873
+ ),
1874
+ /* @__PURE__ */ o(Qn, { playQueueStore: t })
1875
+ ] });
1876
+ }
1877
+ ), ci = Y(
1878
+ ({ playerStore: t, playQueueStore: e }) => {
1879
+ const { euiTheme: n } = Yt();
1880
+ return /* @__PURE__ */ F(Re, { children: [
1881
+ /* @__PURE__ */ F(
1882
+ me,
726
1883
  {
727
- iconType: Ve,
728
- onClick: e.clear,
729
- disabled: e.isEmpty
730
- },
731
- "Clear"
732
- )),
733
- /* @__PURE__ */ t.createElement(v, { grow: !0 }),
734
- /* @__PURE__ */ t.createElement(v, { grow: !1 }, /* @__PURE__ */ t.createElement(mt, { playQueueStore: e }))
735
- ), !e.isEmpty && /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
736
- $,
737
- {
738
- size: "l",
739
- style: {
740
- position: "sticky",
741
- top: 88,
742
- zIndex: 998,
743
- background: i.colors.backgroundBasePlain
1884
+ alignItems: "center",
1885
+ gutterSize: "m",
1886
+ style: {
1887
+ position: "sticky",
1888
+ top: 48,
1889
+ zIndex: 998,
1890
+ background: n.colors.backgroundBasePlain
1891
+ },
1892
+ children: [
1893
+ /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(
1894
+ ne,
1895
+ {
1896
+ disabled: e.isEmpty || e.selectedItems.length === 0,
1897
+ onClick: e.playSelectedItemsNext,
1898
+ children: "Play next"
1899
+ }
1900
+ ) }),
1901
+ /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(
1902
+ ne,
1903
+ {
1904
+ iconType: ut,
1905
+ onClick: e.addSelectedItems,
1906
+ disabled: e.isEmpty || e.selectedItems.length === 0,
1907
+ children: "Add to play queue"
1908
+ }
1909
+ ) }),
1910
+ /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(
1911
+ ne,
1912
+ {
1913
+ iconType: ct,
1914
+ onClick: e.removeSelectedItems,
1915
+ disabled: e.isEmpty || e.selectedItems.length === 0,
1916
+ children: "Remove"
1917
+ }
1918
+ ) }),
1919
+ /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(
1920
+ ne,
1921
+ {
1922
+ iconType: mn,
1923
+ onClick: e.clear,
1924
+ disabled: e.isEmpty,
1925
+ children: "Clear"
1926
+ }
1927
+ ) }),
1928
+ /* @__PURE__ */ o(G, { grow: !0 }),
1929
+ /* @__PURE__ */ o(G, { grow: !1, children: /* @__PURE__ */ o(li, { playQueueStore: e }) })
1930
+ ]
744
1931
  }
1932
+ ),
1933
+ !e.isEmpty && /* @__PURE__ */ F(Re, { children: [
1934
+ /* @__PURE__ */ o(
1935
+ Wt,
1936
+ {
1937
+ size: "l",
1938
+ style: {
1939
+ position: "sticky",
1940
+ top: 88,
1941
+ zIndex: 998,
1942
+ background: n.colors.backgroundBasePlain
1943
+ }
1944
+ }
1945
+ ),
1946
+ /* @__PURE__ */ o(si, { playQueueStore: e })
1947
+ ] })
1948
+ ] });
1949
+ }
1950
+ ), wi = Y(
1951
+ ({ playerStore: t, playQueueStore: e }) => /* @__PURE__ */ F(Re, { children: [
1952
+ /* @__PURE__ */ o(
1953
+ nt.Header,
1954
+ {
1955
+ pageTitle: "Play queue",
1956
+ rightSideItems: []
745
1957
  }
746
- ), /* @__PURE__ */ t.createElement(ct, { playQueueStore: e })));
747
- }
748
- ), Ot = h(
749
- ({ playerStore: n, playQueueStore: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
750
- z.Header,
751
- {
752
- pageTitle: "Play queue",
753
- rightSideItems: []
754
- }
755
- ), /* @__PURE__ */ t.createElement(z.Section, null, /* @__PURE__ */ t.createElement(
756
- dt,
757
- {
758
- playerStore: n,
759
- playQueueStore: e
760
- }
761
- )))
762
- ), M = {
1958
+ ),
1959
+ /* @__PURE__ */ o(nt.Section, { children: /* @__PURE__ */ o(
1960
+ ci,
1961
+ {
1962
+ playerStore: t,
1963
+ playQueueStore: e
1964
+ }
1965
+ ) })
1966
+ ] })
1967
+ ), ot = {
763
1968
  width: 16 * 25,
764
1969
  height: 9 * 25
765
- }, At = h(
766
- ({ playerStore: n, playQueueStore: e }) => {
767
- const i = C(), s = u(async () => {
768
- e.interacted && await i.play();
769
- }, [e, i]), l = u(async () => {
1970
+ }, Oi = Y(
1971
+ ({ playerStore: t, playQueueStore: e }) => {
1972
+ const n = ie(), i = $(async () => {
1973
+ e.interacted && await n.play();
1974
+ }, [e, n]), a = $(async () => {
770
1975
  switch (e.repeat) {
771
- case o.One:
772
- await i.setCurrentTime(0);
1976
+ case R.One:
1977
+ await n.setCurrentTime(0);
773
1978
  break;
774
- case o.Off:
775
- case o.All:
1979
+ case R.Off:
1980
+ case R.All:
776
1981
  if (e.isLastItem)
777
1982
  switch (e.repeat) {
778
- case o.Off:
779
- n.onEnded();
1983
+ case R.Off:
1984
+ t.onEnded();
780
1985
  break;
781
- case o.All:
782
- e.hasMultipleItems ? await e.goToFirst() : await i.setCurrentTime(0);
1986
+ case R.All:
1987
+ e.hasMultipleItems ? await e.goToFirst() : await n.setCurrentTime(0);
783
1988
  break;
784
1989
  }
785
1990
  else
786
1991
  await e.next();
787
1992
  break;
788
1993
  }
789
- }, [e, n, i]), a = G(
1994
+ }, [e, t, n]), l = zt(
790
1995
  () => ({
791
- onLoaded: s,
792
- onPlay: n.onPlay,
793
- onPause: n.onPause,
794
- onEnded: l,
795
- onTimeUpdate: n.onTimeUpdate
1996
+ onLoaded: i,
1997
+ onPlay: t.onPlay,
1998
+ onPause: t.onPause,
1999
+ onEnded: a,
2000
+ onTimeUpdate: t.onTimeUpdate
796
2001
  }),
797
- [n, s, l]
2002
+ [t, i, a]
798
2003
  );
799
- return /* @__PURE__ */ t.createElement(
2004
+ return /* @__PURE__ */ o(
800
2005
  "div",
801
2006
  {
802
2007
  css: {
803
2008
  position: "fixed",
804
2009
  right: 0,
805
- bottom: Y,
806
- width: M.width,
807
- height: M.height,
2010
+ bottom: Zt,
2011
+ width: ot.width,
2012
+ height: ot.height,
808
2013
  zIndex: 998,
809
2014
  backgroundColor: "rgb(39, 39, 39)",
810
2015
  display: "flex",
811
2016
  flexDirection: "column"
812
- }
813
- },
814
- /* @__PURE__ */ t.createElement("div", { css: { flexGrow: 1, backgroundColor: "black" } }, e.currentItem && /* @__PURE__ */ t.createElement(
815
- ne,
816
- {
817
- src: e.currentItem.url,
818
- options: a
819
- }
820
- ))
2017
+ },
2018
+ children: /* @__PURE__ */ o("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: e.currentItem && /* @__PURE__ */ o(
2019
+ Ar,
2020
+ {
2021
+ src: e.currentItem.url,
2022
+ options: l
2023
+ }
2024
+ ) })
2025
+ }
821
2026
  );
822
2027
  }
823
2028
  );
824
- class K {
825
- makeObservable(e, i) {
826
- return He(e, i);
2029
+ class Qt {
2030
+ makeObservable(e, n) {
2031
+ return vn(e, n);
827
2032
  }
828
2033
  }
829
- const w = class w {
830
- constructor(e, i, s) {
831
- p(this, "id");
832
- p(this, "isSelected", !1);
833
- this.observableStateProvider = e, this.playQueueStore = i, this.dto = s, this.id = w.nextId++, e.makeObservable(this, {
834
- isSelected: b,
835
- isCurrent: c,
836
- index: c,
837
- isFirst: c,
838
- isLast: c,
839
- canMoveToTop: c,
840
- canMoveToBottom: c,
841
- canRemoveToTop: c,
842
- canRemoveOthers: c,
843
- unselect: r,
844
- toggleSelected: r.bound,
845
- play: r,
846
- remove: r.bound,
847
- playFirst: r.bound,
848
- playNext: r.bound,
849
- addToPlayQueue: r.bound,
850
- moveToTop: r.bound,
851
- moveToBottom: r.bound,
852
- removeToTop: r.bound,
853
- removeOthers: r.bound
2034
+ const Ce = class Ce {
2035
+ constructor(e, n, i) {
2036
+ U(this, "id");
2037
+ U(this, "isSelected", !1);
2038
+ this.observableStateProvider = e, this.playQueueStore = n, this.dto = i, this.id = Ce.nextId++, e.makeObservable(this, {
2039
+ isSelected: re,
2040
+ isCurrent: _,
2041
+ index: _,
2042
+ isFirst: _,
2043
+ isLast: _,
2044
+ canMoveToTop: _,
2045
+ canMoveToBottom: _,
2046
+ canRemoveToTop: _,
2047
+ canRemoveOthers: _,
2048
+ unselect: y,
2049
+ toggleSelected: y.bound,
2050
+ play: y,
2051
+ remove: y.bound,
2052
+ playFirst: y.bound,
2053
+ playNext: y.bound,
2054
+ addToPlayQueue: y.bound,
2055
+ moveToTop: y.bound,
2056
+ moveToBottom: y.bound,
2057
+ removeToTop: y.bound,
2058
+ removeOthers: y.bound
854
2059
  });
855
2060
  }
856
- static fromDto(e, i, s) {
857
- return new w(
2061
+ static fromDto(e, n, i) {
2062
+ return new Ce(
858
2063
  e,
859
- i,
860
- s
2064
+ n,
2065
+ i
861
2066
  );
862
2067
  }
863
2068
  get url() {
@@ -936,22 +2141,22 @@ const w = class w {
936
2141
  return this.playQueueStore.removeOtherItems(this);
937
2142
  }
938
2143
  };
939
- p(w, "nextId", 1);
940
- let R = w;
941
- const S = new $e({
2144
+ U(Ce, "nextId", 1);
2145
+ let at = Ce;
2146
+ const et = new yn({
942
2147
  coerceTypes: !0
943
2148
  });
944
- function ut(n, e) {
945
- let i;
946
- if (i = S.getSchema(e), i === void 0 && (S.addSchema(n, e), i = S.getSchema(e)), i === void 0 || i.schema !== n)
2149
+ function ui(t, e) {
2150
+ let n;
2151
+ if (n = et.getSchema(e), n === void 0 && (et.addSchema(t, e), n = et.getSchema(e)), n === void 0 || n.schema !== t)
947
2152
  throw new Error(
948
2153
  `Invalid schema. Expected: '${JSON.stringify(
949
- n
950
- )}', but got '${JSON.stringify(i == null ? void 0 : i.schema)}'.`
2154
+ t
2155
+ )}', but got '${JSON.stringify(n == null ? void 0 : n.schema)}'.`
951
2156
  );
952
- return i;
2157
+ return n;
953
2158
  }
954
- const ht = {
2159
+ const fi = {
955
2160
  type: "object",
956
2161
  properties: {
957
2162
  version: {
@@ -960,7 +2165,7 @@ const ht = {
960
2165
  },
961
2166
  repeat: {
962
2167
  type: "string",
963
- enum: Object.values(o),
2168
+ enum: Object.values(R),
964
2169
  nullable: !0
965
2170
  },
966
2171
  shuffle: {
@@ -994,62 +2199,62 @@ const ht = {
994
2199
  nullable: !0
995
2200
  }
996
2201
  }
997
- }, pt = ut(
998
- ht,
2202
+ }, di = ui(
2203
+ fi,
999
2204
  "PlayQueueStore"
1000
2205
  );
1001
- class gt {
2206
+ class mi {
1002
2207
  constructor(e) {
1003
- p(this, "interacted", !1);
1004
- p(this, "items", []);
1005
- p(this, "currentId");
1006
- p(this, "repeat", o.Off);
1007
- p(this, "shuffle", !1);
2208
+ U(this, "interacted", !1);
2209
+ U(this, "items", []);
2210
+ U(this, "currentId");
2211
+ U(this, "repeat", R.Off);
2212
+ U(this, "shuffle", !1);
1008
2213
  this.observableStateProvider = e, e.makeObservable(this, {
1009
- interacted: b,
1010
- items: b,
1011
- currentId: b,
1012
- repeat: b,
1013
- shuffle: b,
1014
- localStorageState: c.struct,
1015
- isEmpty: c,
1016
- currentItem: c,
1017
- canPlay: c,
1018
- canPause: c,
1019
- hasMultipleItems: c,
1020
- currentIndex: c,
1021
- hasPreviousItem: c,
1022
- hasNextItem: c,
1023
- isLastItem: c,
1024
- selectedItems: c,
1025
- allItemsSelected: c,
1026
- selectedItemsOrAllItems: c,
1027
- setItems: r,
1028
- interact: r,
1029
- clear: r.bound,
1030
- unselectAll: r,
1031
- setCurrentItem: r,
1032
- setNextItems: r,
1033
- clearAndSetItems: r,
1034
- playNext: r,
1035
- playSelectedItemsNext: r.bound,
1036
- addItems: r,
1037
- addSelectedItems: r.bound,
1038
- playFirst: r,
1039
- moveItem: r,
1040
- removeItems: r,
1041
- removeSelectedItems: r.bound,
1042
- removeOtherItems: r,
1043
- removeItemsAbove: r,
1044
- toggleRepeat: r.bound,
1045
- toggleShuffle: r.bound,
1046
- previous: r,
1047
- next: r.bound,
1048
- goToFirst: r
2214
+ interacted: re,
2215
+ items: re,
2216
+ currentId: re,
2217
+ repeat: re,
2218
+ shuffle: re,
2219
+ localStorageState: _.struct,
2220
+ isEmpty: _,
2221
+ currentItem: _,
2222
+ canPlay: _,
2223
+ canPause: _,
2224
+ hasMultipleItems: _,
2225
+ currentIndex: _,
2226
+ hasPreviousItem: _,
2227
+ hasNextItem: _,
2228
+ isLastItem: _,
2229
+ selectedItems: _,
2230
+ allItemsSelected: _,
2231
+ selectedItemsOrAllItems: _,
2232
+ setItems: y,
2233
+ interact: y,
2234
+ clear: y.bound,
2235
+ unselectAll: y,
2236
+ setCurrentItem: y,
2237
+ setNextItems: y,
2238
+ clearAndSetItems: y,
2239
+ playNext: y,
2240
+ playSelectedItemsNext: y.bound,
2241
+ addItems: y,
2242
+ addSelectedItems: y.bound,
2243
+ playFirst: y,
2244
+ moveItem: y,
2245
+ removeItems: y,
2246
+ removeSelectedItems: y.bound,
2247
+ removeOtherItems: y,
2248
+ removeItemsAbove: y,
2249
+ toggleRepeat: y.bound,
2250
+ toggleShuffle: y.bound,
2251
+ previous: y,
2252
+ next: y.bound,
2253
+ goToFirst: y
1049
2254
  });
1050
2255
  }
1051
2256
  createItem(e) {
1052
- return R.fromDto(
2257
+ return at.fromDto(
1053
2258
  this.observableStateProvider,
1054
2259
  this,
1055
2260
  e
@@ -1065,11 +2270,11 @@ class gt {
1065
2270
  };
1066
2271
  }
1067
2272
  set localStorageState(e) {
1068
- var i;
1069
- this.repeat = e.repeat ?? o.Off, this.shuffle = e.shuffle ?? !1, this.items = ((i = e.items) == null ? void 0 : i.map((s) => this.createItem(s))) ?? [], this.currentIndex = e.currentIndex;
2273
+ var n;
2274
+ this.repeat = e.repeat ?? R.Off, this.shuffle = e.shuffle ?? !1, this.items = ((n = e.items) == null ? void 0 : n.map((i) => this.createItem(i))) ?? [], this.currentIndex = e.currentIndex;
1070
2275
  }
1071
2276
  validateLocalStorageState(e) {
1072
- return pt(e);
2277
+ return di(e);
1073
2278
  }
1074
2279
  get isEmpty() {
1075
2280
  return this.items.length === 0;
@@ -1090,8 +2295,8 @@ class gt {
1090
2295
  return this.currentId !== void 0 ? this.items.findIndex((e) => e.id === this.currentId) : void 0;
1091
2296
  }
1092
2297
  set currentIndex(e) {
1093
- var i;
1094
- this.currentId = e !== void 0 ? (i = this.items.at(e)) == null ? void 0 : i.id : void 0;
2298
+ var n;
2299
+ this.currentId = e !== void 0 ? (n = this.items.at(e)) == null ? void 0 : n.id : void 0;
1095
2300
  }
1096
2301
  get hasPreviousItem() {
1097
2302
  return this.hasMultipleItems && this.currentIndex !== void 0 && this.currentIndex > 0;
@@ -1109,8 +2314,8 @@ class gt {
1109
2314
  return this.selectedItems.length === this.items.length;
1110
2315
  }
1111
2316
  set allItemsSelected(e) {
1112
- for (const i of this.items)
1113
- i.isSelected = e;
2317
+ for (const n of this.items)
2318
+ n.isSelected = e;
1114
2319
  }
1115
2320
  get selectedItemsOrAllItems() {
1116
2321
  return this.selectedItems.length > 0 ? this.selectedItems : this.items;
@@ -1166,47 +2371,47 @@ class gt {
1166
2371
  this.clearAndSetItems(e);
1167
2372
  return;
1168
2373
  }
1169
- const { currentIndex: i } = this;
1170
- i !== void 0 && (this.interact(), this.items.splice(i, 0, ...e), this.currentIndex = i);
2374
+ const { currentIndex: n } = this;
2375
+ n !== void 0 && (this.interact(), this.items.splice(n, 0, ...e), this.currentIndex = n);
1171
2376
  }
1172
- moveItem(e, i) {
1173
- const s = this.items.splice(this.items.indexOf(e), 1)[0];
1174
- this.items.splice(i, 0, s);
2377
+ moveItem(e, n) {
2378
+ const i = this.items.splice(this.items.indexOf(e), 1)[0];
2379
+ this.items.splice(n, 0, i);
1175
2380
  }
1176
2381
  async removeItems(e) {
1177
- const { currentItem: i } = this;
1178
- D(this.items, ...e.filter((a) => a !== i));
1179
- const { currentIndex: s, isLastItem: l } = this;
1180
- D(
2382
+ const { currentItem: n } = this;
2383
+ Rt(this.items, ...e.filter((l) => l !== n));
2384
+ const { currentIndex: i, isLastItem: a } = this;
2385
+ Rt(
1181
2386
  this.items,
1182
- e.find((a) => a === i)
1183
- ), this.currentItem !== i && (this.interact(), l ? await this.goToFirst() : this.currentIndex = s);
2387
+ e.find((l) => l === n)
2388
+ ), this.currentItem !== n && (this.interact(), a ? await this.goToFirst() : this.currentIndex = i);
1184
2389
  }
1185
2390
  async removeSelectedItems() {
1186
2391
  await this.removeItems(this.selectedItemsOrAllItems), this.unselectAll();
1187
2392
  }
1188
2393
  async removeOtherItems(e) {
1189
- const i = e.id;
2394
+ const n = e.id;
1190
2395
  return this.removeItems(
1191
- this.items.filter((s) => s.id !== i)
2396
+ this.items.filter((i) => i.id !== n)
1192
2397
  );
1193
2398
  }
1194
2399
  async removeItemsAbove(e) {
1195
- const i = this.items.indexOf(e);
2400
+ const n = this.items.indexOf(e);
1196
2401
  return this.removeItems(
1197
- this.items.filter((s, l) => l < i)
2402
+ this.items.filter((i, a) => a < n)
1198
2403
  );
1199
2404
  }
1200
2405
  toggleRepeat() {
1201
2406
  switch (this.repeat) {
1202
- case o.Off:
1203
- this.repeat = o.All;
2407
+ case R.Off:
2408
+ this.repeat = R.All;
1204
2409
  break;
1205
- case o.All:
1206
- this.repeat = o.One;
2410
+ case R.All:
2411
+ this.repeat = R.One;
1207
2412
  break;
1208
- case o.One:
1209
- this.repeat = o.Off;
2413
+ case R.One:
2414
+ this.repeat = R.Off;
1210
2415
  break;
1211
2416
  }
1212
2417
  }
@@ -1223,50 +2428,52 @@ class gt {
1223
2428
  this.currentIndex !== void 0 && (this.currentIndex = 0);
1224
2429
  }
1225
2430
  }
1226
- const Z = W(void 0), zt = ({
1227
- children: n
2431
+ const er = Lt(void 0), _i = ({
2432
+ children: t
1228
2433
  }) => {
1229
- const [e] = g(
1230
- () => new gt(new K())
1231
- ), i = C();
1232
- return De(() => Ue(
2434
+ const [e] = q(
2435
+ () => new mi(new Qt())
2436
+ ), n = ie();
2437
+ return wr(() => pn(
1233
2438
  () => e.currentItem,
1234
- async (s, l) => {
1235
- s === void 0 || l === void 0 || s.type === l.type && s.videoId === l.videoId && await i.setCurrentTime(0);
1236
- }
1237
- ), [e, i]), /* @__PURE__ */ t.createElement(Z.Provider, { value: e }, n);
1238
- }, ft = () => X(Z), Mt = h(
1239
- ({ children: n }) => {
1240
- const e = ft();
1241
- return /* @__PURE__ */ t.createElement(
1242
- z,
2439
+ async (i, a) => {
2440
+ i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await n.setCurrentTime(0);
2441
+ }
2442
+ ), [e, n]), /* @__PURE__ */ o(er.Provider, { value: e, children: t });
2443
+ }, hi = () => st(er), Ai = Y(
2444
+ ({ children: t }) => {
2445
+ const e = hi();
2446
+ return /* @__PURE__ */ F(
2447
+ nt,
1243
2448
  {
1244
2449
  panelled: !0,
1245
2450
  style: {
1246
- minBlockSize: `max(460px, 100vh - ${Y}px)`
1247
- }
1248
- },
1249
- n,
1250
- !e.isEmpty && /* @__PURE__ */ t.createElement($, { style: { blockSize: M.height } })
2451
+ minBlockSize: `max(460px, 100vh - ${Zt}px)`
2452
+ },
2453
+ children: [
2454
+ t,
2455
+ !e.isEmpty && /* @__PURE__ */ o(Wt, { style: { blockSize: ot.height } })
2456
+ ]
2457
+ }
1251
2458
  );
1252
2459
  }
1253
2460
  );
1254
- class Et {
2461
+ class vi {
1255
2462
  constructor(e) {
1256
- p(this, "playing", !1);
1257
- p(this, "percent", 0);
1258
- p(this, "seeking", !1);
2463
+ U(this, "playing", !1);
2464
+ U(this, "percent", 0);
2465
+ U(this, "seeking", !1);
1259
2466
  e.makeObservable(this, {
1260
- playing: b,
1261
- percent: b,
1262
- seeking: b,
1263
- setPlaying: r,
1264
- setPercent: r,
1265
- setSeeking: r,
1266
- onPlay: r.bound,
1267
- onPause: r.bound,
1268
- onEnded: r.bound,
1269
- onTimeUpdate: r.bound
2467
+ playing: re,
2468
+ percent: re,
2469
+ seeking: re,
2470
+ setPlaying: y,
2471
+ setPercent: y,
2472
+ setSeeking: y,
2473
+ onPlay: y.bound,
2474
+ onPause: y.bound,
2475
+ onEnded: y.bound,
2476
+ onTimeUpdate: y.bound
1270
2477
  });
1271
2478
  }
1272
2479
  setPlaying(e) {
@@ -1291,32 +2498,32 @@ class Et {
1291
2498
  e !== void 0 && (this.seeking || (this.percent = e));
1292
2499
  }
1293
2500
  }
1294
- const _ = W(void 0), Rt = ({
1295
- children: n
2501
+ const tr = Lt(void 0), ki = ({
2502
+ children: t
1296
2503
  }) => {
1297
- const [e] = g(
1298
- () => new Et(new K())
2504
+ const [e] = q(
2505
+ () => new vi(new Qt())
1299
2506
  );
1300
- return /* @__PURE__ */ t.createElement(_.Provider, { value: e }, n);
1301
- }, Ft = () => X(_);
1302
- class Bt {
1303
- makeObservable(e, i) {
2507
+ return /* @__PURE__ */ o(tr.Provider, { value: e, children: t });
2508
+ }, Mi = () => st(tr);
2509
+ class Fi {
2510
+ makeObservable(e, n) {
1304
2511
  return e;
1305
2512
  }
1306
2513
  }
1307
2514
  export {
1308
- St as BottomBar,
1309
- Ot as HydrangeanDiva,
1310
- Mt as MediaPlayerLayout,
1311
- At as MiniPlayer,
1312
- K as MobXObservableStateProvider,
1313
- Bt as ObservableStateProvider,
1314
- zt as PlayQueueStoreProvider,
1315
- Rt as PlayerStoreProvider,
1316
- o as RepeatMode,
1317
- Y as bottomBarHeight,
1318
- M as miniPlayerSize,
1319
- ft as usePlayQueueStore,
1320
- Ft as usePlayerStore
2515
+ Ri as BottomBar,
2516
+ wi as HydrangeanDiva,
2517
+ Ai as MediaPlayerLayout,
2518
+ Oi as MiniPlayer,
2519
+ Qt as MobXObservableStateProvider,
2520
+ Fi as ObservableStateProvider,
2521
+ _i as PlayQueueStoreProvider,
2522
+ ki as PlayerStoreProvider,
2523
+ R as RepeatMode,
2524
+ Zt as bottomBarHeight,
2525
+ ot as miniPlayerSize,
2526
+ hi as usePlayQueueStore,
2527
+ Mi as usePlayerStore
1321
2528
  };
1322
2529
  //# sourceMappingURL=index.es.js.map