@aigamo/hydrangean-diva 0.0.1-alpha.23 → 0.0.1-alpha.25
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/features/media-player.play-queue/index.d.ts +1 -0
- package/dist/features/media-player.play-queue/stores/index.d.ts +2 -0
- package/dist/features/media-player.play-queue.abstractions/contexts/index.d.ts +1 -0
- package/dist/features/media-player.play-queue.abstractions/index.d.ts +1 -0
- package/dist/features/media-player.player/index.d.ts +2 -0
- package/dist/features/media-player.player/interfaces/index.d.ts +3 -0
- package/dist/features/media-player.player/stores/index.d.ts +3 -0
- package/dist/index.cjs.js +7 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +756 -604
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { makeObservable as Nr, action as
|
|
1
|
+
import { makeObservable as Nr, action as y, computed as w, observable as X, reaction as $r } from "mobx";
|
|
2
2
|
import * as te from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { EuiSelectable as
|
|
6
|
-
import { AddRegular as
|
|
7
|
-
import { useNostalgicDiva as le, findVideoService as
|
|
8
|
-
import { observer as
|
|
3
|
+
import qt, { createContext as Vt, useContext as ct, forwardRef as jr, useState as z, useEffect as Ut, memo as re, useCallback as $, useMemo as Ve, useLayoutEffect as zr } from "react";
|
|
4
|
+
import Lr from "@emotion/cache";
|
|
5
|
+
import { EuiSelectable as qr, EuiPopoverTitle as Vr, EuiPopoverFooter as Ur, EuiButton as J, EuiPopover as xe, useGeneratedHtmlId as Qr, EuiModalHeaderTitle as Yr, EuiModalHeader as Wr, EuiForm as Hr, EuiFormRow as at, EuiFieldText as xt, EuiModalBody as Gr, EuiModalFooter as Jr, EuiButtonEmpty as Qt, EuiModal as Br, useEuiTheme as Yt, EuiCheckbox as Wt, EuiTableHeaderCellCheckbox as Kr, EuiTableHeader as Xr, EuiTableRowCell as st, EuiTableRowCellCheckbox as Zr, EuiLink as en, EuiTableRow as tn, EuiTable as rn, EuiButtonIcon as Y, EuiIcon as Q, EuiContextMenu as ut, EuiTableHeaderCell as tt, EuiCodeBlock as nn, EuiFlyout as an, EuiFlexGroup as oe, EuiFlexItem as G, EuiSpacer as Ht, EuiEmptyPrompt as sn, EuiPageTemplate as dt, EuiRange as Gt, EuiBottomBar as on } from "@elastic/eui";
|
|
6
|
+
import { AddRegular as Re, PlayRegular as ln, DismissRegular as ft, MoreHorizontalFilled as Jt, ArrowUploadRegular as cn, ArrowDownloadRegular as un, WindowDevToolsRegular as dn, DeleteRegular as fn, ArrowShuffleFilled as pn, ArrowShuffleOffFilled as hn, PreviousFilled as yn, SkipBack10Regular as Bt, PauseFilled as mn, PlayFilled as vn, SkipForward30Regular as Kt, NextFilled as gn, ArrowRepeat1Filled as Pn, ArrowRepeatAllFilled as bn, ArrowRepeatAllOffFilled as wn, OpenRegular as Sn, Speaker2Regular as Xt, TopSpeedRegular as Tn, NavigationPlayRegular as En } from "@fluentui/react-icons";
|
|
7
|
+
import { useNostalgicDiva as le, findVideoService as Rn, NostalgicDivaProvider as Cn, NostalgicDiva as In, nullPlayerController as xn } from "@aigamo/nostalgic-diva";
|
|
8
|
+
import { observer as I } from "mobx-react-lite";
|
|
9
9
|
import { ReactSortable as On } from "react-sortablejs";
|
|
10
|
-
import
|
|
10
|
+
import kn from "ajv";
|
|
11
11
|
import { pull as Ot } from "lodash-es";
|
|
12
|
-
import { useRouter as
|
|
12
|
+
import { useRouter as _n } from "@tanstack/react-router";
|
|
13
13
|
const Zt = 81;
|
|
14
14
|
class er {
|
|
15
15
|
makeObservable(t, r) {
|
|
@@ -21,73 +21,74 @@ class Sa {
|
|
|
21
21
|
return t;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
var
|
|
24
|
+
const tr = Vt(void 0), rr = () => ct(tr);
|
|
25
|
+
var O = /* @__PURE__ */ ((e) => (e.Off = "Off", e.All = "All", e.One = "One", e))(O || {}), ze = { exports: {} }, Se = {};
|
|
26
|
+
var kt;
|
|
26
27
|
function An() {
|
|
27
|
-
if (
|
|
28
|
-
|
|
29
|
-
var e =
|
|
30
|
-
function c(f, p,
|
|
31
|
-
var P,
|
|
32
|
-
|
|
33
|
-
for (P in p) i.call(p, P) && !o.hasOwnProperty(P) && (
|
|
34
|
-
if (f && f.defaultProps) for (P in p = f.defaultProps, p)
|
|
35
|
-
return { $$typeof: t, type: f, key:
|
|
28
|
+
if (kt) return Se;
|
|
29
|
+
kt = 1;
|
|
30
|
+
var e = qt, t = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
31
|
+
function c(f, p, v) {
|
|
32
|
+
var P, S = {}, L = null, N = null;
|
|
33
|
+
v !== void 0 && (L = "" + v), p.key !== void 0 && (L = "" + p.key), p.ref !== void 0 && (N = p.ref);
|
|
34
|
+
for (P in p) i.call(p, P) && !o.hasOwnProperty(P) && (S[P] = p[P]);
|
|
35
|
+
if (f && f.defaultProps) for (P in p = f.defaultProps, p) S[P] === void 0 && (S[P] = p[P]);
|
|
36
|
+
return { $$typeof: t, type: f, key: L, ref: N, props: S, _owner: a.current };
|
|
36
37
|
}
|
|
37
38
|
return Se.Fragment = r, Se.jsx = c, Se.jsxs = c, Se;
|
|
38
39
|
}
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
return
|
|
43
|
-
var e =
|
|
40
|
+
var Te = {};
|
|
41
|
+
var _t;
|
|
42
|
+
function Fn() {
|
|
43
|
+
return _t || (_t = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
44
|
+
var e = qt, t = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.portal"), i = /* @__PURE__ */ Symbol.for("react.fragment"), a = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), c = /* @__PURE__ */ Symbol.for("react.provider"), f = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), v = /* @__PURE__ */ Symbol.for("react.suspense"), P = /* @__PURE__ */ Symbol.for("react.suspense_list"), S = /* @__PURE__ */ Symbol.for("react.memo"), L = /* @__PURE__ */ Symbol.for("react.lazy"), N = /* @__PURE__ */ Symbol.for("react.offscreen"), A = Symbol.iterator, W = "@@iterator";
|
|
44
45
|
function Z(n) {
|
|
45
46
|
if (n === null || typeof n != "object")
|
|
46
47
|
return null;
|
|
47
|
-
var l =
|
|
48
|
+
var l = A && n[A] || n[W];
|
|
48
49
|
return typeof l == "function" ? l : null;
|
|
49
50
|
}
|
|
50
|
-
var
|
|
51
|
-
function
|
|
51
|
+
var q = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
+
function x(n) {
|
|
52
53
|
{
|
|
53
|
-
for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0),
|
|
54
|
-
d[
|
|
55
|
-
|
|
54
|
+
for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), m = 1; m < l; m++)
|
|
55
|
+
d[m - 1] = arguments[m];
|
|
56
|
+
F("error", n, d);
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function F(n, l, d) {
|
|
59
60
|
{
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
var
|
|
61
|
+
var m = q.ReactDebugCurrentFrame, T = m.getStackAddendum();
|
|
62
|
+
T !== "" && (l += "%s", d = d.concat([T]));
|
|
63
|
+
var C = d.map(function(b) {
|
|
63
64
|
return String(b);
|
|
64
65
|
});
|
|
65
|
-
|
|
66
|
+
C.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, C);
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof n == "string" || typeof n == "function" || n === i || n === o || Oe || n === a || n ===
|
|
69
|
+
var k = !1, u = !1, V = !1, he = !1, Oe = !1, ke;
|
|
70
|
+
ke = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
71
|
+
function Ye(n) {
|
|
72
|
+
return !!(typeof n == "string" || typeof n == "function" || n === i || n === o || Oe || n === a || n === v || n === P || he || n === N || k || u || V || typeof n == "object" && n !== null && (n.$$typeof === L || n.$$typeof === S || n.$$typeof === c || n.$$typeof === f || n.$$typeof === p || // This needs to include all possible module reference object
|
|
72
73
|
// types supported by any Flight configuration anywhere since
|
|
73
74
|
// we don't know which Flight build this will end up being used
|
|
74
75
|
// with.
|
|
75
|
-
n.$$typeof ===
|
|
76
|
+
n.$$typeof === ke || n.getModuleId !== void 0));
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
var
|
|
82
|
-
return
|
|
78
|
+
function We(n, l, d) {
|
|
79
|
+
var m = n.displayName;
|
|
80
|
+
if (m)
|
|
81
|
+
return m;
|
|
82
|
+
var T = l.displayName || l.name || "";
|
|
83
|
+
return T !== "" ? d + "(" + T + ")" : d;
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function _e(n) {
|
|
85
86
|
return n.displayName || "Context";
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
+
function B(n) {
|
|
88
89
|
if (n == null)
|
|
89
90
|
return null;
|
|
90
|
-
if (typeof n.tag == "number" &&
|
|
91
|
+
if (typeof n.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
91
92
|
return n.displayName || n.name || null;
|
|
92
93
|
if (typeof n == "string")
|
|
93
94
|
return n;
|
|
@@ -100,7 +101,7 @@ function Dn() {
|
|
|
100
101
|
return "Profiler";
|
|
101
102
|
case a:
|
|
102
103
|
return "StrictMode";
|
|
103
|
-
case
|
|
104
|
+
case v:
|
|
104
105
|
return "Suspense";
|
|
105
106
|
case P:
|
|
106
107
|
return "SuspenseList";
|
|
@@ -109,19 +110,19 @@ function Dn() {
|
|
|
109
110
|
switch (n.$$typeof) {
|
|
110
111
|
case f:
|
|
111
112
|
var l = n;
|
|
112
|
-
return
|
|
113
|
+
return _e(l) + ".Consumer";
|
|
113
114
|
case c:
|
|
114
115
|
var d = n;
|
|
115
|
-
return
|
|
116
|
+
return _e(d._context) + ".Provider";
|
|
116
117
|
case p:
|
|
117
|
-
return
|
|
118
|
-
case
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
var
|
|
118
|
+
return We(n, n.render, "ForwardRef");
|
|
119
|
+
case S:
|
|
120
|
+
var m = n.displayName || null;
|
|
121
|
+
return m !== null ? m : B(n.type) || "Memo";
|
|
122
|
+
case L: {
|
|
123
|
+
var T = n, C = T._payload, b = T._init;
|
|
123
124
|
try {
|
|
124
|
-
return
|
|
125
|
+
return B(b(C));
|
|
125
126
|
} catch {
|
|
126
127
|
return null;
|
|
127
128
|
}
|
|
@@ -129,14 +130,14 @@ function Dn() {
|
|
|
129
130
|
}
|
|
130
131
|
return null;
|
|
131
132
|
}
|
|
132
|
-
var ee = Object.assign, ne = 0, Ae,
|
|
133
|
+
var ee = Object.assign, ne = 0, Ae, Fe, ye, Me, me, De, Ne;
|
|
133
134
|
function $e() {
|
|
134
135
|
}
|
|
135
136
|
$e.__reactDisabledLog = !0;
|
|
136
|
-
function
|
|
137
|
+
function He() {
|
|
137
138
|
{
|
|
138
139
|
if (ne === 0) {
|
|
139
|
-
Ae = console.log,
|
|
140
|
+
Ae = console.log, Fe = console.info, ye = console.warn, Me = console.error, me = console.group, De = console.groupCollapsed, Ne = console.groupEnd;
|
|
140
141
|
var n = {
|
|
141
142
|
configurable: !0,
|
|
142
143
|
enumerable: !0,
|
|
@@ -156,7 +157,7 @@ function Dn() {
|
|
|
156
157
|
ne++;
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
|
-
function
|
|
160
|
+
function Ge() {
|
|
160
161
|
{
|
|
161
162
|
if (ne--, ne === 0) {
|
|
162
163
|
var n = {
|
|
@@ -169,10 +170,10 @@ function Dn() {
|
|
|
169
170
|
value: Ae
|
|
170
171
|
}),
|
|
171
172
|
info: ee({}, n, {
|
|
172
|
-
value:
|
|
173
|
+
value: Fe
|
|
173
174
|
}),
|
|
174
175
|
warn: ee({}, n, {
|
|
175
|
-
value:
|
|
176
|
+
value: ye
|
|
176
177
|
}),
|
|
177
178
|
error: ee({}, n, {
|
|
178
179
|
value: Me
|
|
@@ -181,25 +182,25 @@ function Dn() {
|
|
|
181
182
|
value: me
|
|
182
183
|
}),
|
|
183
184
|
groupCollapsed: ee({}, n, {
|
|
184
|
-
value:
|
|
185
|
+
value: De
|
|
185
186
|
}),
|
|
186
187
|
groupEnd: ee({}, n, {
|
|
187
188
|
value: Ne
|
|
188
189
|
})
|
|
189
190
|
});
|
|
190
191
|
}
|
|
191
|
-
ne < 0 &&
|
|
192
|
+
ne < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
|
-
var ve =
|
|
195
|
+
var ve = q.ReactCurrentDispatcher, ge;
|
|
195
196
|
function ce(n, l, d) {
|
|
196
197
|
{
|
|
197
198
|
if (ge === void 0)
|
|
198
199
|
try {
|
|
199
200
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var
|
|
202
|
-
ge =
|
|
201
|
+
} catch (T) {
|
|
202
|
+
var m = T.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
ge = m && m[1] || "";
|
|
203
204
|
}
|
|
204
205
|
return `
|
|
205
206
|
` + ge + n;
|
|
@@ -207,10 +208,10 @@ function Dn() {
|
|
|
207
208
|
}
|
|
208
209
|
var Pe = !1, ue;
|
|
209
210
|
{
|
|
210
|
-
var
|
|
211
|
-
ue = new
|
|
211
|
+
var Je = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
+
ue = new Je();
|
|
212
213
|
}
|
|
213
|
-
function
|
|
214
|
+
function h(n, l) {
|
|
214
215
|
if (!n || Pe)
|
|
215
216
|
return "";
|
|
216
217
|
{
|
|
@@ -218,12 +219,12 @@ function Dn() {
|
|
|
218
219
|
if (d !== void 0)
|
|
219
220
|
return d;
|
|
220
221
|
}
|
|
221
|
-
var
|
|
222
|
+
var m;
|
|
222
223
|
Pe = !0;
|
|
223
|
-
var
|
|
224
|
+
var T = Error.prepareStackTrace;
|
|
224
225
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
226
|
+
var C;
|
|
227
|
+
C = ve.current, ve.current = null, He();
|
|
227
228
|
try {
|
|
228
229
|
if (l) {
|
|
229
230
|
var b = function() {
|
|
@@ -237,14 +238,14 @@ function Dn() {
|
|
|
237
238
|
try {
|
|
238
239
|
Reflect.construct(b, []);
|
|
239
240
|
} catch (U) {
|
|
240
|
-
|
|
241
|
+
m = U;
|
|
241
242
|
}
|
|
242
243
|
Reflect.construct(n, [], b);
|
|
243
244
|
} else {
|
|
244
245
|
try {
|
|
245
246
|
b.call();
|
|
246
247
|
} catch (U) {
|
|
247
|
-
|
|
248
|
+
m = U;
|
|
248
249
|
}
|
|
249
250
|
n.call(b.prototype);
|
|
250
251
|
}
|
|
@@ -252,37 +253,37 @@ function Dn() {
|
|
|
252
253
|
try {
|
|
253
254
|
throw Error();
|
|
254
255
|
} catch (U) {
|
|
255
|
-
|
|
256
|
+
m = U;
|
|
256
257
|
}
|
|
257
258
|
n();
|
|
258
259
|
}
|
|
259
260
|
} catch (U) {
|
|
260
|
-
if (U &&
|
|
261
|
+
if (U && m && typeof U.stack == "string") {
|
|
261
262
|
for (var g = U.stack.split(`
|
|
262
|
-
`), j =
|
|
263
|
-
`),
|
|
264
|
-
|
|
265
|
-
for (;
|
|
266
|
-
if (g[
|
|
267
|
-
if (
|
|
263
|
+
`), j = m.stack.split(`
|
|
264
|
+
`), _ = g.length - 1, M = j.length - 1; _ >= 1 && M >= 0 && g[_] !== j[M]; )
|
|
265
|
+
M--;
|
|
266
|
+
for (; _ >= 1 && M >= 0; _--, M--)
|
|
267
|
+
if (g[_] !== j[M]) {
|
|
268
|
+
if (_ !== 1 || M !== 1)
|
|
268
269
|
do
|
|
269
|
-
if (
|
|
270
|
-
var
|
|
271
|
-
` + g[
|
|
272
|
-
return n.displayName &&
|
|
270
|
+
if (_--, M--, M < 0 || g[_] !== j[M]) {
|
|
271
|
+
var H = `
|
|
272
|
+
` + g[_].replace(" at new ", " at ");
|
|
273
|
+
return n.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", n.displayName)), typeof n == "function" && ue.set(n, H), H;
|
|
273
274
|
}
|
|
274
|
-
while (
|
|
275
|
+
while (_ >= 1 && M >= 0);
|
|
275
276
|
break;
|
|
276
277
|
}
|
|
277
278
|
}
|
|
278
279
|
} finally {
|
|
279
|
-
Pe = !1, ve.current =
|
|
280
|
+
Pe = !1, ve.current = C, Ge(), Error.prepareStackTrace = T;
|
|
280
281
|
}
|
|
281
282
|
var pe = n ? n.displayName || n.name : "", ae = pe ? ce(pe) : "";
|
|
282
283
|
return typeof n == "function" && ue.set(n, ae), ae;
|
|
283
284
|
}
|
|
284
285
|
function be(n, l, d) {
|
|
285
|
-
return
|
|
286
|
+
return h(n, !1);
|
|
286
287
|
}
|
|
287
288
|
function de(n) {
|
|
288
289
|
var l = n.prototype;
|
|
@@ -292,11 +293,11 @@ function Dn() {
|
|
|
292
293
|
if (n == null)
|
|
293
294
|
return "";
|
|
294
295
|
if (typeof n == "function")
|
|
295
|
-
return
|
|
296
|
+
return h(n, de(n));
|
|
296
297
|
if (typeof n == "string")
|
|
297
298
|
return ce(n);
|
|
298
299
|
switch (n) {
|
|
299
|
-
case
|
|
300
|
+
case v:
|
|
300
301
|
return ce("Suspense");
|
|
301
302
|
case P:
|
|
302
303
|
return ce("SuspenseList");
|
|
@@ -305,48 +306,48 @@ function Dn() {
|
|
|
305
306
|
switch (n.$$typeof) {
|
|
306
307
|
case p:
|
|
307
308
|
return be(n.render);
|
|
308
|
-
case
|
|
309
|
+
case S:
|
|
309
310
|
return ie(n.type, l, d);
|
|
310
|
-
case
|
|
311
|
-
var
|
|
311
|
+
case L: {
|
|
312
|
+
var m = n, T = m._payload, C = m._init;
|
|
312
313
|
try {
|
|
313
|
-
return ie(T
|
|
314
|
+
return ie(C(T), l, d);
|
|
314
315
|
} catch {
|
|
315
316
|
}
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
319
|
return "";
|
|
319
320
|
}
|
|
320
|
-
var we = Object.prototype.hasOwnProperty,
|
|
321
|
+
var we = Object.prototype.hasOwnProperty, ht = {}, yt = q.ReactDebugCurrentFrame;
|
|
321
322
|
function je(n) {
|
|
322
323
|
if (n) {
|
|
323
324
|
var l = n._owner, d = ie(n.type, n._source, l ? l.type : null);
|
|
324
|
-
|
|
325
|
+
yt.setExtraStackFrame(d);
|
|
325
326
|
} else
|
|
326
|
-
|
|
327
|
+
yt.setExtraStackFrame(null);
|
|
327
328
|
}
|
|
328
|
-
function
|
|
329
|
+
function hr(n, l, d, m, T) {
|
|
329
330
|
{
|
|
330
|
-
var
|
|
331
|
+
var C = Function.call.bind(we);
|
|
331
332
|
for (var b in n)
|
|
332
|
-
if (
|
|
333
|
+
if (C(n, b)) {
|
|
333
334
|
var g = void 0;
|
|
334
335
|
try {
|
|
335
336
|
if (typeof n[b] != "function") {
|
|
336
|
-
var j = Error((
|
|
337
|
+
var j = Error((m || "React class") + ": " + d + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
338
|
throw j.name = "Invariant Violation", j;
|
|
338
339
|
}
|
|
339
|
-
g = n[b](l, b,
|
|
340
|
-
} catch (
|
|
341
|
-
g =
|
|
340
|
+
g = n[b](l, b, m, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (_) {
|
|
342
|
+
g = _;
|
|
342
343
|
}
|
|
343
|
-
g && !(g instanceof Error) && (je(
|
|
344
|
+
g && !(g instanceof Error) && (je(T), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", d, b, typeof g), je(null)), g instanceof Error && !(g.message in ht) && (ht[g.message] = !0, je(T), x("Failed %s type: %s", d, g.message), je(null));
|
|
344
345
|
}
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
return
|
|
348
|
+
var yr = Array.isArray;
|
|
349
|
+
function Be(n) {
|
|
350
|
+
return yr(n);
|
|
350
351
|
}
|
|
351
352
|
function mr(n) {
|
|
352
353
|
{
|
|
@@ -366,9 +367,9 @@ function Dn() {
|
|
|
366
367
|
}
|
|
367
368
|
function vt(n) {
|
|
368
369
|
if (vr(n))
|
|
369
|
-
return
|
|
370
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mr(n)), mt(n);
|
|
370
371
|
}
|
|
371
|
-
var gt =
|
|
372
|
+
var gt = q.ReactCurrentOwner, gr = {
|
|
372
373
|
key: !0,
|
|
373
374
|
ref: !0,
|
|
374
375
|
__self: !0,
|
|
@@ -396,7 +397,7 @@ function Dn() {
|
|
|
396
397
|
function Sr(n, l) {
|
|
397
398
|
{
|
|
398
399
|
var d = function() {
|
|
399
|
-
Pt || (Pt = !0,
|
|
400
|
+
Pt || (Pt = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
400
401
|
};
|
|
401
402
|
d.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
402
403
|
get: d,
|
|
@@ -404,10 +405,10 @@ function Dn() {
|
|
|
404
405
|
});
|
|
405
406
|
}
|
|
406
407
|
}
|
|
407
|
-
function
|
|
408
|
+
function Tr(n, l) {
|
|
408
409
|
{
|
|
409
410
|
var d = function() {
|
|
410
|
-
bt || (bt = !0,
|
|
411
|
+
bt || (bt = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
411
412
|
};
|
|
412
413
|
d.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
413
414
|
get: d,
|
|
@@ -415,7 +416,7 @@ function Dn() {
|
|
|
415
416
|
});
|
|
416
417
|
}
|
|
417
418
|
}
|
|
418
|
-
var
|
|
419
|
+
var Er = function(n, l, d, m, T, C, b) {
|
|
419
420
|
var g = {
|
|
420
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
422
|
$$typeof: t,
|
|
@@ -425,7 +426,7 @@ function Dn() {
|
|
|
425
426
|
ref: d,
|
|
426
427
|
props: b,
|
|
427
428
|
// Record the component responsible for creating this element.
|
|
428
|
-
_owner:
|
|
429
|
+
_owner: C
|
|
429
430
|
};
|
|
430
431
|
return g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
431
432
|
configurable: !1,
|
|
@@ -436,33 +437,33 @@ function Dn() {
|
|
|
436
437
|
configurable: !1,
|
|
437
438
|
enumerable: !1,
|
|
438
439
|
writable: !1,
|
|
439
|
-
value:
|
|
440
|
+
value: m
|
|
440
441
|
}), Object.defineProperty(g, "_source", {
|
|
441
442
|
configurable: !1,
|
|
442
443
|
enumerable: !1,
|
|
443
444
|
writable: !1,
|
|
444
|
-
value:
|
|
445
|
+
value: T
|
|
445
446
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
446
447
|
};
|
|
447
|
-
function
|
|
448
|
+
function Rr(n, l, d, m, T) {
|
|
448
449
|
{
|
|
449
|
-
var
|
|
450
|
-
d !== void 0 && (vt(d), g = "" + d), br(l) && (vt(l.key), g = "" + l.key), Pr(l) && (j = l.ref, wr(l,
|
|
451
|
-
for (
|
|
452
|
-
we.call(l,
|
|
450
|
+
var C, b = {}, g = null, j = null;
|
|
451
|
+
d !== void 0 && (vt(d), g = "" + d), br(l) && (vt(l.key), g = "" + l.key), Pr(l) && (j = l.ref, wr(l, T));
|
|
452
|
+
for (C in l)
|
|
453
|
+
we.call(l, C) && !gr.hasOwnProperty(C) && (b[C] = l[C]);
|
|
453
454
|
if (n && n.defaultProps) {
|
|
454
|
-
var
|
|
455
|
-
for (
|
|
456
|
-
b[
|
|
455
|
+
var _ = n.defaultProps;
|
|
456
|
+
for (C in _)
|
|
457
|
+
b[C] === void 0 && (b[C] = _[C]);
|
|
457
458
|
}
|
|
458
459
|
if (g || j) {
|
|
459
|
-
var
|
|
460
|
-
g && Sr(b,
|
|
460
|
+
var M = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
461
|
+
g && Sr(b, M), j && Tr(b, M);
|
|
461
462
|
}
|
|
462
|
-
return
|
|
463
|
+
return Er(n, g, j, T, m, gt.current, b);
|
|
463
464
|
}
|
|
464
465
|
}
|
|
465
|
-
var
|
|
466
|
+
var Ke = q.ReactCurrentOwner, wt = q.ReactDebugCurrentFrame;
|
|
466
467
|
function fe(n) {
|
|
467
468
|
if (n) {
|
|
468
469
|
var l = n._owner, d = ie(n.type, n._source, l ? l.type : null);
|
|
@@ -477,8 +478,8 @@ function Dn() {
|
|
|
477
478
|
}
|
|
478
479
|
function St() {
|
|
479
480
|
{
|
|
480
|
-
if (
|
|
481
|
-
var n =
|
|
481
|
+
if (Ke.current) {
|
|
482
|
+
var n = B(Ke.current.type);
|
|
482
483
|
if (n)
|
|
483
484
|
return `
|
|
484
485
|
|
|
@@ -490,7 +491,7 @@ Check the render method of \`` + n + "`.";
|
|
|
490
491
|
function Cr(n) {
|
|
491
492
|
return "";
|
|
492
493
|
}
|
|
493
|
-
var
|
|
494
|
+
var Tt = {};
|
|
494
495
|
function Ir(n) {
|
|
495
496
|
{
|
|
496
497
|
var l = St();
|
|
@@ -503,35 +504,35 @@ Check the top-level render call using <` + d + ">.");
|
|
|
503
504
|
return l;
|
|
504
505
|
}
|
|
505
506
|
}
|
|
506
|
-
function
|
|
507
|
+
function Et(n, l) {
|
|
507
508
|
{
|
|
508
509
|
if (!n._store || n._store.validated || n.key != null)
|
|
509
510
|
return;
|
|
510
511
|
n._store.validated = !0;
|
|
511
512
|
var d = Ir(l);
|
|
512
|
-
if (
|
|
513
|
+
if (Tt[d])
|
|
513
514
|
return;
|
|
514
|
-
|
|
515
|
-
var
|
|
516
|
-
n && n._owner && n._owner !==
|
|
515
|
+
Tt[d] = !0;
|
|
516
|
+
var m = "";
|
|
517
|
+
n && n._owner && n._owner !== Ke.current && (m = " It was passed a child from " + B(n._owner.type) + "."), fe(n), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, m), fe(null);
|
|
517
518
|
}
|
|
518
519
|
}
|
|
519
|
-
function
|
|
520
|
+
function Rt(n, l) {
|
|
520
521
|
{
|
|
521
522
|
if (typeof n != "object")
|
|
522
523
|
return;
|
|
523
|
-
if (
|
|
524
|
+
if (Be(n))
|
|
524
525
|
for (var d = 0; d < n.length; d++) {
|
|
525
|
-
var
|
|
526
|
-
Ze(
|
|
526
|
+
var m = n[d];
|
|
527
|
+
Ze(m) && Et(m, l);
|
|
527
528
|
}
|
|
528
529
|
else if (Ze(n))
|
|
529
530
|
n._store && (n._store.validated = !0);
|
|
530
531
|
else if (n) {
|
|
531
|
-
var
|
|
532
|
-
if (typeof
|
|
533
|
-
for (var
|
|
534
|
-
Ze(b.value) &&
|
|
532
|
+
var T = Z(n);
|
|
533
|
+
if (typeof T == "function" && T !== n.entries)
|
|
534
|
+
for (var C = T.call(n), b; !(b = C.next()).done; )
|
|
535
|
+
Ze(b.value) && Et(b.value, l);
|
|
535
536
|
}
|
|
536
537
|
}
|
|
537
538
|
}
|
|
@@ -545,68 +546,68 @@ Check the top-level render call using <` + d + ">.");
|
|
|
545
546
|
d = l.propTypes;
|
|
546
547
|
else if (typeof l == "object" && (l.$$typeof === p || // Note: Memo only checks outer props here.
|
|
547
548
|
// Inner props are checked in the reconciler.
|
|
548
|
-
l.$$typeof ===
|
|
549
|
+
l.$$typeof === S))
|
|
549
550
|
d = l.propTypes;
|
|
550
551
|
else
|
|
551
552
|
return;
|
|
552
553
|
if (d) {
|
|
553
|
-
var
|
|
554
|
-
|
|
554
|
+
var m = B(l);
|
|
555
|
+
hr(d, n.props, "prop", m, n);
|
|
555
556
|
} else if (l.PropTypes !== void 0 && !Xe) {
|
|
556
557
|
Xe = !0;
|
|
557
|
-
var
|
|
558
|
-
|
|
558
|
+
var T = B(l);
|
|
559
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
|
|
559
560
|
}
|
|
560
|
-
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved &&
|
|
561
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
562
|
}
|
|
562
563
|
}
|
|
563
564
|
function Or(n) {
|
|
564
565
|
{
|
|
565
566
|
for (var l = Object.keys(n.props), d = 0; d < l.length; d++) {
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
fe(n),
|
|
567
|
+
var m = l[d];
|
|
568
|
+
if (m !== "children" && m !== "key") {
|
|
569
|
+
fe(n), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), fe(null);
|
|
569
570
|
break;
|
|
570
571
|
}
|
|
571
572
|
}
|
|
572
|
-
n.ref !== null && (fe(n),
|
|
573
|
+
n.ref !== null && (fe(n), x("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
|
|
573
574
|
}
|
|
574
575
|
}
|
|
575
576
|
var Ct = {};
|
|
576
|
-
function It(n, l, d,
|
|
577
|
+
function It(n, l, d, m, T, C) {
|
|
577
578
|
{
|
|
578
|
-
var b =
|
|
579
|
+
var b = Ye(n);
|
|
579
580
|
if (!b) {
|
|
580
581
|
var g = "";
|
|
581
582
|
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
583
|
var j = Cr();
|
|
583
584
|
j ? g += j : g += St();
|
|
584
|
-
var
|
|
585
|
-
n === null ?
|
|
585
|
+
var _;
|
|
586
|
+
n === null ? _ = "null" : Be(n) ? _ = "array" : n !== void 0 && n.$$typeof === t ? (_ = "<" + (B(n.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof n, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, g);
|
|
586
587
|
}
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
return
|
|
588
|
+
var M = Rr(n, l, d, T, C);
|
|
589
|
+
if (M == null)
|
|
590
|
+
return M;
|
|
590
591
|
if (b) {
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
593
|
-
if (
|
|
594
|
-
if (
|
|
595
|
-
for (var pe = 0; pe <
|
|
596
|
-
|
|
597
|
-
Object.freeze && Object.freeze(
|
|
592
|
+
var H = l.children;
|
|
593
|
+
if (H !== void 0)
|
|
594
|
+
if (m)
|
|
595
|
+
if (Be(H)) {
|
|
596
|
+
for (var pe = 0; pe < H.length; pe++)
|
|
597
|
+
Rt(H[pe], n);
|
|
598
|
+
Object.freeze && Object.freeze(H);
|
|
598
599
|
} else
|
|
599
|
-
|
|
600
|
+
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
601
|
else
|
|
601
|
-
|
|
602
|
+
Rt(H, n);
|
|
602
603
|
}
|
|
603
604
|
if (we.call(l, "key")) {
|
|
604
|
-
var ae =
|
|
605
|
-
return
|
|
605
|
+
var ae = B(n), U = Object.keys(l).filter(function(Dr) {
|
|
606
|
+
return Dr !== "key";
|
|
606
607
|
}), et = U.length > 0 ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
608
|
if (!Ct[ae + et]) {
|
|
608
609
|
var Mr = U.length > 0 ? "{" + U.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
-
|
|
610
|
+
x(`A props object containing a "key" prop is being spread into JSX:
|
|
610
611
|
let props = %s;
|
|
611
612
|
<%s {...props} />
|
|
612
613
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -614,48 +615,48 @@ React keys must be passed directly to JSX without using spread:
|
|
|
614
615
|
<%s key={someKey} {...props} />`, et, ae, Mr, ae), Ct[ae + et] = !0;
|
|
615
616
|
}
|
|
616
617
|
}
|
|
617
|
-
return n === i ? Or(
|
|
618
|
+
return n === i ? Or(M) : xr(M), M;
|
|
618
619
|
}
|
|
619
620
|
}
|
|
620
|
-
function
|
|
621
|
+
function kr(n, l, d) {
|
|
621
622
|
return It(n, l, d, !0);
|
|
622
623
|
}
|
|
623
|
-
function
|
|
624
|
+
function _r(n, l, d) {
|
|
624
625
|
return It(n, l, d, !1);
|
|
625
626
|
}
|
|
626
|
-
var Ar =
|
|
627
|
-
|
|
628
|
-
})()),
|
|
627
|
+
var Ar = _r, Fr = kr;
|
|
628
|
+
Te.Fragment = i, Te.jsx = Ar, Te.jsxs = Fr;
|
|
629
|
+
})()), Te;
|
|
629
630
|
}
|
|
630
631
|
var At;
|
|
631
632
|
function Mn() {
|
|
632
|
-
return At || (At = 1, process.env.NODE_ENV === "production" ? ze.exports = An() : ze.exports =
|
|
633
|
+
return At || (At = 1, process.env.NODE_ENV === "production" ? ze.exports = An() : ze.exports = Fn()), ze.exports;
|
|
633
634
|
}
|
|
634
|
-
var Ce = Mn(),
|
|
635
|
-
var
|
|
636
|
-
function
|
|
637
|
-
if (
|
|
638
|
-
|
|
639
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111,
|
|
640
|
-
function
|
|
635
|
+
var Ce = Mn(), Le = { exports: {} }, E = {};
|
|
636
|
+
var Ft;
|
|
637
|
+
function Dn() {
|
|
638
|
+
if (Ft) return E;
|
|
639
|
+
Ft = 1;
|
|
640
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, P = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, S = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, L = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, N = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, A = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, W = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, Z = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, q = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, x = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
641
|
+
function F(u) {
|
|
641
642
|
if (typeof u == "object" && u !== null) {
|
|
642
643
|
var V = u.$$typeof;
|
|
643
644
|
switch (V) {
|
|
644
645
|
case t:
|
|
645
646
|
switch (u = u.type, u) {
|
|
646
647
|
case p:
|
|
647
|
-
case
|
|
648
|
+
case v:
|
|
648
649
|
case i:
|
|
649
650
|
case o:
|
|
650
651
|
case a:
|
|
651
|
-
case
|
|
652
|
+
case S:
|
|
652
653
|
return u;
|
|
653
654
|
default:
|
|
654
655
|
switch (u = u && u.$$typeof, u) {
|
|
655
656
|
case f:
|
|
656
657
|
case P:
|
|
657
|
-
case
|
|
658
|
-
case
|
|
658
|
+
case A:
|
|
659
|
+
case N:
|
|
659
660
|
case c:
|
|
660
661
|
return u;
|
|
661
662
|
default:
|
|
@@ -667,67 +668,67 @@ function Fn() {
|
|
|
667
668
|
}
|
|
668
669
|
}
|
|
669
670
|
}
|
|
670
|
-
function
|
|
671
|
-
return
|
|
671
|
+
function k(u) {
|
|
672
|
+
return F(u) === v;
|
|
672
673
|
}
|
|
673
|
-
return E.AsyncMode = p, E.ConcurrentMode =
|
|
674
|
-
return
|
|
675
|
-
}, E.isConcurrentMode =
|
|
676
|
-
return
|
|
674
|
+
return E.AsyncMode = p, E.ConcurrentMode = v, E.ContextConsumer = f, E.ContextProvider = c, E.Element = t, E.ForwardRef = P, E.Fragment = i, E.Lazy = A, E.Memo = N, E.Portal = r, E.Profiler = o, E.StrictMode = a, E.Suspense = S, E.isAsyncMode = function(u) {
|
|
675
|
+
return k(u) || F(u) === p;
|
|
676
|
+
}, E.isConcurrentMode = k, E.isContextConsumer = function(u) {
|
|
677
|
+
return F(u) === f;
|
|
677
678
|
}, E.isContextProvider = function(u) {
|
|
678
|
-
return
|
|
679
|
+
return F(u) === c;
|
|
679
680
|
}, E.isElement = function(u) {
|
|
680
681
|
return typeof u == "object" && u !== null && u.$$typeof === t;
|
|
681
682
|
}, E.isForwardRef = function(u) {
|
|
682
|
-
return
|
|
683
|
+
return F(u) === P;
|
|
683
684
|
}, E.isFragment = function(u) {
|
|
684
|
-
return
|
|
685
|
+
return F(u) === i;
|
|
685
686
|
}, E.isLazy = function(u) {
|
|
686
|
-
return
|
|
687
|
+
return F(u) === A;
|
|
687
688
|
}, E.isMemo = function(u) {
|
|
688
|
-
return
|
|
689
|
+
return F(u) === N;
|
|
689
690
|
}, E.isPortal = function(u) {
|
|
690
|
-
return
|
|
691
|
+
return F(u) === r;
|
|
691
692
|
}, E.isProfiler = function(u) {
|
|
692
|
-
return
|
|
693
|
+
return F(u) === o;
|
|
693
694
|
}, E.isStrictMode = function(u) {
|
|
694
|
-
return
|
|
695
|
+
return F(u) === a;
|
|
695
696
|
}, E.isSuspense = function(u) {
|
|
696
|
-
return
|
|
697
|
+
return F(u) === S;
|
|
697
698
|
}, E.isValidElementType = function(u) {
|
|
698
|
-
return typeof u == "string" || typeof u == "function" || u === i || u ===
|
|
699
|
-
}, E.typeOf =
|
|
699
|
+
return typeof u == "string" || typeof u == "function" || u === i || u === v || u === o || u === a || u === S || u === L || typeof u == "object" && u !== null && (u.$$typeof === A || u.$$typeof === N || u.$$typeof === c || u.$$typeof === f || u.$$typeof === P || u.$$typeof === Z || u.$$typeof === q || u.$$typeof === x || u.$$typeof === W);
|
|
700
|
+
}, E.typeOf = F, E;
|
|
700
701
|
}
|
|
701
702
|
var R = {};
|
|
702
703
|
var Mt;
|
|
703
704
|
function Nn() {
|
|
704
705
|
return Mt || (Mt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
705
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111,
|
|
706
|
-
function
|
|
707
|
-
return typeof
|
|
708
|
-
|
|
709
|
-
}
|
|
710
|
-
function
|
|
711
|
-
if (typeof
|
|
712
|
-
var be =
|
|
706
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, v = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, P = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, S = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, L = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, N = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, A = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, W = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, Z = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, q = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, x = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
707
|
+
function F(h) {
|
|
708
|
+
return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
709
|
+
h === i || h === v || h === o || h === a || h === S || h === L || typeof h == "object" && h !== null && (h.$$typeof === A || h.$$typeof === N || h.$$typeof === c || h.$$typeof === f || h.$$typeof === P || h.$$typeof === Z || h.$$typeof === q || h.$$typeof === x || h.$$typeof === W);
|
|
710
|
+
}
|
|
711
|
+
function k(h) {
|
|
712
|
+
if (typeof h == "object" && h !== null) {
|
|
713
|
+
var be = h.$$typeof;
|
|
713
714
|
switch (be) {
|
|
714
715
|
case t:
|
|
715
|
-
var de =
|
|
716
|
+
var de = h.type;
|
|
716
717
|
switch (de) {
|
|
717
718
|
case p:
|
|
718
|
-
case
|
|
719
|
+
case v:
|
|
719
720
|
case i:
|
|
720
721
|
case o:
|
|
721
722
|
case a:
|
|
722
|
-
case
|
|
723
|
+
case S:
|
|
723
724
|
return de;
|
|
724
725
|
default:
|
|
725
726
|
var ie = de && de.$$typeof;
|
|
726
727
|
switch (ie) {
|
|
727
728
|
case f:
|
|
728
729
|
case P:
|
|
729
|
-
case
|
|
730
|
-
case
|
|
730
|
+
case A:
|
|
731
|
+
case N:
|
|
731
732
|
case c:
|
|
732
733
|
return ie;
|
|
733
734
|
default:
|
|
@@ -739,52 +740,52 @@ function Nn() {
|
|
|
739
740
|
}
|
|
740
741
|
}
|
|
741
742
|
}
|
|
742
|
-
var u = p, V =
|
|
743
|
-
function Me(
|
|
744
|
-
return
|
|
743
|
+
var u = p, V = v, he = f, Oe = c, ke = t, Ye = P, We = i, _e = A, B = N, ee = r, ne = o, Ae = a, Fe = S, ye = !1;
|
|
744
|
+
function Me(h) {
|
|
745
|
+
return ye || (ye = !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.")), me(h) || k(h) === p;
|
|
745
746
|
}
|
|
746
|
-
function me(
|
|
747
|
-
return
|
|
747
|
+
function me(h) {
|
|
748
|
+
return k(h) === v;
|
|
748
749
|
}
|
|
749
|
-
function
|
|
750
|
-
return
|
|
750
|
+
function De(h) {
|
|
751
|
+
return k(h) === f;
|
|
751
752
|
}
|
|
752
|
-
function Ne(
|
|
753
|
-
return
|
|
753
|
+
function Ne(h) {
|
|
754
|
+
return k(h) === c;
|
|
754
755
|
}
|
|
755
|
-
function $e(
|
|
756
|
-
return typeof
|
|
756
|
+
function $e(h) {
|
|
757
|
+
return typeof h == "object" && h !== null && h.$$typeof === t;
|
|
757
758
|
}
|
|
758
|
-
function
|
|
759
|
-
return
|
|
759
|
+
function He(h) {
|
|
760
|
+
return k(h) === P;
|
|
760
761
|
}
|
|
761
|
-
function
|
|
762
|
-
return
|
|
762
|
+
function Ge(h) {
|
|
763
|
+
return k(h) === i;
|
|
763
764
|
}
|
|
764
|
-
function ve(
|
|
765
|
-
return
|
|
765
|
+
function ve(h) {
|
|
766
|
+
return k(h) === A;
|
|
766
767
|
}
|
|
767
|
-
function ge(
|
|
768
|
-
return
|
|
768
|
+
function ge(h) {
|
|
769
|
+
return k(h) === N;
|
|
769
770
|
}
|
|
770
|
-
function ce(
|
|
771
|
-
return
|
|
771
|
+
function ce(h) {
|
|
772
|
+
return k(h) === r;
|
|
772
773
|
}
|
|
773
|
-
function Pe(
|
|
774
|
-
return
|
|
774
|
+
function Pe(h) {
|
|
775
|
+
return k(h) === o;
|
|
775
776
|
}
|
|
776
|
-
function ue(
|
|
777
|
-
return
|
|
777
|
+
function ue(h) {
|
|
778
|
+
return k(h) === a;
|
|
778
779
|
}
|
|
779
|
-
function
|
|
780
|
-
return
|
|
780
|
+
function Je(h) {
|
|
781
|
+
return k(h) === S;
|
|
781
782
|
}
|
|
782
|
-
R.AsyncMode = u, R.ConcurrentMode = V, R.ContextConsumer =
|
|
783
|
+
R.AsyncMode = u, R.ConcurrentMode = V, R.ContextConsumer = he, R.ContextProvider = Oe, R.Element = ke, R.ForwardRef = Ye, R.Fragment = We, R.Lazy = _e, R.Memo = B, R.Portal = ee, R.Profiler = ne, R.StrictMode = Ae, R.Suspense = Fe, R.isAsyncMode = Me, R.isConcurrentMode = me, R.isContextConsumer = De, R.isContextProvider = Ne, R.isElement = $e, R.isForwardRef = He, R.isFragment = Ge, R.isLazy = ve, R.isMemo = ge, R.isPortal = ce, R.isProfiler = Pe, R.isStrictMode = ue, R.isSuspense = Je, R.isValidElementType = F, R.typeOf = k;
|
|
783
784
|
})()), R;
|
|
784
785
|
}
|
|
785
|
-
var
|
|
786
|
+
var Dt;
|
|
786
787
|
function $n() {
|
|
787
|
-
return
|
|
788
|
+
return Dt || (Dt = 1, process.env.NODE_ENV === "production" ? Le.exports = Dn() : Le.exports = Nn()), Le.exports;
|
|
788
789
|
}
|
|
789
790
|
var rt, Nt;
|
|
790
791
|
function jn() {
|
|
@@ -825,42 +826,42 @@ function jn() {
|
|
|
825
826
|
type: !0
|
|
826
827
|
}, o = {};
|
|
827
828
|
o[e.ForwardRef] = i, o[e.Memo] = a;
|
|
828
|
-
function c(
|
|
829
|
-
return e.isMemo(
|
|
830
|
-
}
|
|
831
|
-
var f = Object.defineProperty, p = Object.getOwnPropertyNames,
|
|
832
|
-
function
|
|
833
|
-
if (typeof
|
|
834
|
-
if (
|
|
835
|
-
var
|
|
836
|
-
|
|
829
|
+
function c(A) {
|
|
830
|
+
return e.isMemo(A) ? a : o[A.$$typeof] || t;
|
|
831
|
+
}
|
|
832
|
+
var f = Object.defineProperty, p = Object.getOwnPropertyNames, v = Object.getOwnPropertySymbols, P = Object.getOwnPropertyDescriptor, S = Object.getPrototypeOf, L = Object.prototype;
|
|
833
|
+
function N(A, W, Z) {
|
|
834
|
+
if (typeof W != "string") {
|
|
835
|
+
if (L) {
|
|
836
|
+
var q = S(W);
|
|
837
|
+
q && q !== L && N(A, q, Z);
|
|
837
838
|
}
|
|
838
|
-
var
|
|
839
|
-
|
|
840
|
-
for (var
|
|
841
|
-
var V =
|
|
842
|
-
if (!r[V] && !(Z && Z[V]) && !(
|
|
843
|
-
var
|
|
839
|
+
var x = p(W);
|
|
840
|
+
v && (x = x.concat(v(W)));
|
|
841
|
+
for (var F = c(A), k = c(W), u = 0; u < x.length; ++u) {
|
|
842
|
+
var V = x[u];
|
|
843
|
+
if (!r[V] && !(Z && Z[V]) && !(k && k[V]) && !(F && F[V])) {
|
|
844
|
+
var he = P(W, V);
|
|
844
845
|
try {
|
|
845
|
-
f(
|
|
846
|
+
f(A, V, he);
|
|
846
847
|
} catch {
|
|
847
848
|
}
|
|
848
849
|
}
|
|
849
850
|
}
|
|
850
851
|
}
|
|
851
|
-
return
|
|
852
|
+
return A;
|
|
852
853
|
}
|
|
853
|
-
return rt =
|
|
854
|
+
return rt = N, rt;
|
|
854
855
|
}
|
|
855
856
|
jn();
|
|
856
857
|
var zn = !0;
|
|
857
|
-
function
|
|
858
|
+
function Ln(e, t, r) {
|
|
858
859
|
var i = "";
|
|
859
860
|
return r.split(" ").forEach(function(a) {
|
|
860
861
|
e[a] !== void 0 ? t.push(e[a] + ";") : a && (i += a + " ");
|
|
861
862
|
}), i;
|
|
862
863
|
}
|
|
863
|
-
var
|
|
864
|
+
var nr = function(t, r, i) {
|
|
864
865
|
var a = t.key + "-" + r.name;
|
|
865
866
|
// we only need to add the styles to the registered cache if the
|
|
866
867
|
// class name could be used further down
|
|
@@ -872,8 +873,8 @@ var tr = function(t, r, i) {
|
|
|
872
873
|
// the registered cache to know whether a style is global or not
|
|
873
874
|
// also, note that this check will be dead code eliminated in the browser
|
|
874
875
|
zn === !1) && t.registered[a] === void 0 && (t.registered[a] = r.styles);
|
|
875
|
-
},
|
|
876
|
-
|
|
876
|
+
}, qn = function(t, r, i) {
|
|
877
|
+
nr(t, r, i);
|
|
877
878
|
var a = t.key + "-" + r.name;
|
|
878
879
|
if (t.inserted[r.name] === void 0) {
|
|
879
880
|
var o = r;
|
|
@@ -951,32 +952,32 @@ var Un = {
|
|
|
951
952
|
strokeOpacity: 1,
|
|
952
953
|
strokeWidth: 1
|
|
953
954
|
};
|
|
954
|
-
function
|
|
955
|
+
function Qn(e) {
|
|
955
956
|
var t = /* @__PURE__ */ Object.create(null);
|
|
956
957
|
return function(r) {
|
|
957
958
|
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
958
959
|
};
|
|
959
960
|
}
|
|
960
|
-
var
|
|
961
|
+
var Yn = /[A-Z]|^ms/g, Wn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ir = function(t) {
|
|
961
962
|
return t.charCodeAt(1) === 45;
|
|
962
963
|
}, $t = function(t) {
|
|
963
964
|
return t != null && typeof t != "boolean";
|
|
964
|
-
}, nt = /* @__PURE__ */
|
|
965
|
-
return
|
|
965
|
+
}, nt = /* @__PURE__ */ Qn(function(e) {
|
|
966
|
+
return ir(e) ? e : e.replace(Yn, "-$&").toLowerCase();
|
|
966
967
|
}), jt = function(t, r) {
|
|
967
968
|
switch (t) {
|
|
968
969
|
case "animation":
|
|
969
970
|
case "animationName":
|
|
970
971
|
if (typeof r == "string")
|
|
971
|
-
return r.replace(
|
|
972
|
-
return
|
|
972
|
+
return r.replace(Wn, function(i, a, o) {
|
|
973
|
+
return K = {
|
|
973
974
|
name: a,
|
|
974
975
|
styles: o,
|
|
975
|
-
next:
|
|
976
|
+
next: K
|
|
976
977
|
}, a;
|
|
977
978
|
});
|
|
978
979
|
}
|
|
979
|
-
return Un[t] !== 1 && !
|
|
980
|
+
return Un[t] !== 1 && !ir(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
980
981
|
};
|
|
981
982
|
function Ie(e, t, r) {
|
|
982
983
|
if (r == null)
|
|
@@ -990,30 +991,30 @@ function Ie(e, t, r) {
|
|
|
990
991
|
case "object": {
|
|
991
992
|
var a = r;
|
|
992
993
|
if (a.anim === 1)
|
|
993
|
-
return
|
|
994
|
+
return K = {
|
|
994
995
|
name: a.name,
|
|
995
996
|
styles: a.styles,
|
|
996
|
-
next:
|
|
997
|
+
next: K
|
|
997
998
|
}, a.name;
|
|
998
999
|
var o = r;
|
|
999
1000
|
if (o.styles !== void 0) {
|
|
1000
1001
|
var c = o.next;
|
|
1001
1002
|
if (c !== void 0)
|
|
1002
1003
|
for (; c !== void 0; )
|
|
1003
|
-
|
|
1004
|
+
K = {
|
|
1004
1005
|
name: c.name,
|
|
1005
1006
|
styles: c.styles,
|
|
1006
|
-
next:
|
|
1007
|
+
next: K
|
|
1007
1008
|
}, c = c.next;
|
|
1008
1009
|
var f = o.styles + ";";
|
|
1009
1010
|
return f;
|
|
1010
1011
|
}
|
|
1011
|
-
return
|
|
1012
|
+
return Hn(e, t, r);
|
|
1012
1013
|
}
|
|
1013
1014
|
case "function": {
|
|
1014
1015
|
if (e !== void 0) {
|
|
1015
|
-
var p =
|
|
1016
|
-
return
|
|
1016
|
+
var p = K, v = r(e);
|
|
1017
|
+
return K = p, Ie(e, t, v);
|
|
1017
1018
|
}
|
|
1018
1019
|
break;
|
|
1019
1020
|
}
|
|
@@ -1021,7 +1022,7 @@ function Ie(e, t, r) {
|
|
|
1021
1022
|
var P = r;
|
|
1022
1023
|
return P;
|
|
1023
1024
|
}
|
|
1024
|
-
function
|
|
1025
|
+
function Hn(e, t, r) {
|
|
1025
1026
|
var i = "";
|
|
1026
1027
|
if (Array.isArray(r))
|
|
1027
1028
|
for (var a = 0; a < r.length; a++)
|
|
@@ -1036,26 +1037,26 @@ function Gn(e, t, r) {
|
|
|
1036
1037
|
for (var p = 0; p < c.length; p++)
|
|
1037
1038
|
$t(c[p]) && (i += nt(o) + ":" + jt(o, c[p]) + ";");
|
|
1038
1039
|
else {
|
|
1039
|
-
var
|
|
1040
|
+
var v = Ie(e, t, c);
|
|
1040
1041
|
switch (o) {
|
|
1041
1042
|
case "animation":
|
|
1042
1043
|
case "animationName": {
|
|
1043
|
-
i += nt(o) + ":" +
|
|
1044
|
+
i += nt(o) + ":" + v + ";";
|
|
1044
1045
|
break;
|
|
1045
1046
|
}
|
|
1046
1047
|
default:
|
|
1047
|
-
i += o + "{" +
|
|
1048
|
+
i += o + "{" + v + "}";
|
|
1048
1049
|
}
|
|
1049
1050
|
}
|
|
1050
1051
|
}
|
|
1051
1052
|
return i;
|
|
1052
1053
|
}
|
|
1053
|
-
var zt = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
1054
|
-
function
|
|
1054
|
+
var zt = /label:\s*([^\s;{]+)\s*(;|$)/g, K;
|
|
1055
|
+
function Gn(e, t, r) {
|
|
1055
1056
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1056
1057
|
return e[0];
|
|
1057
1058
|
var i = !0, a = "";
|
|
1058
|
-
|
|
1059
|
+
K = void 0;
|
|
1059
1060
|
var o = e[0];
|
|
1060
1061
|
if (o == null || o.raw === void 0)
|
|
1061
1062
|
i = !1, a += Ie(r, t, o);
|
|
@@ -1069,70 +1070,70 @@ function Jn(e, t, r) {
|
|
|
1069
1070
|
a += p[f];
|
|
1070
1071
|
}
|
|
1071
1072
|
zt.lastIndex = 0;
|
|
1072
|
-
for (var
|
|
1073
|
-
|
|
1074
|
-
var
|
|
1073
|
+
for (var v = "", P; (P = zt.exec(a)) !== null; )
|
|
1074
|
+
v += "-" + P[1];
|
|
1075
|
+
var S = Vn(a) + v;
|
|
1075
1076
|
return {
|
|
1076
|
-
name:
|
|
1077
|
+
name: S,
|
|
1077
1078
|
styles: a,
|
|
1078
|
-
next:
|
|
1079
|
+
next: K
|
|
1079
1080
|
};
|
|
1080
1081
|
}
|
|
1081
|
-
var
|
|
1082
|
+
var Jn = function(t) {
|
|
1082
1083
|
return t();
|
|
1083
|
-
},
|
|
1084
|
+
}, Bn = te.useInsertionEffect ? te.useInsertionEffect : !1, Kn = Bn || Jn, ar = /* @__PURE__ */ te.createContext(
|
|
1084
1085
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1085
1086
|
// because this module is primarily intended for the browser and node
|
|
1086
1087
|
// but it's also required in react native and similar environments sometimes
|
|
1087
1088
|
// and we could have a special build just for that
|
|
1088
1089
|
// but this is much easier and the native packages
|
|
1089
1090
|
// might use a different theme context in the future anyway
|
|
1090
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1091
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ Lr({
|
|
1091
1092
|
key: "css"
|
|
1092
1093
|
}) : null
|
|
1093
1094
|
);
|
|
1094
|
-
|
|
1095
|
+
ar.Provider;
|
|
1095
1096
|
var Xn = function(t) {
|
|
1096
1097
|
return /* @__PURE__ */ jr(function(r, i) {
|
|
1097
|
-
var a = ct(
|
|
1098
|
+
var a = ct(ar);
|
|
1098
1099
|
return t(r, a, i);
|
|
1099
1100
|
});
|
|
1100
|
-
}, Zn = /* @__PURE__ */ te.createContext({}), Ue = {}.hasOwnProperty, ot = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__",
|
|
1101
|
+
}, Zn = /* @__PURE__ */ te.createContext({}), Ue = {}.hasOwnProperty, ot = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", sr = function(t, r) {
|
|
1101
1102
|
var i = {};
|
|
1102
1103
|
for (var a in r)
|
|
1103
1104
|
Ue.call(r, a) && (i[a] = r[a]);
|
|
1104
1105
|
return i[ot] = t, i;
|
|
1105
1106
|
}, ei = function(t) {
|
|
1106
1107
|
var r = t.cache, i = t.serialized, a = t.isStringTag;
|
|
1107
|
-
return
|
|
1108
|
-
return
|
|
1108
|
+
return nr(r, i, a), Kn(function() {
|
|
1109
|
+
return qn(r, i, a);
|
|
1109
1110
|
}), null;
|
|
1110
1111
|
}, ti = /* @__PURE__ */ Xn(function(e, t, r) {
|
|
1111
1112
|
var i = e.css;
|
|
1112
1113
|
typeof i == "string" && t.registered[i] !== void 0 && (i = t.registered[i]);
|
|
1113
1114
|
var a = e[ot], o = [i], c = "";
|
|
1114
|
-
typeof e.className == "string" ? c =
|
|
1115
|
-
var f =
|
|
1115
|
+
typeof e.className == "string" ? c = Ln(t.registered, o, e.className) : e.className != null && (c = e.className + " ");
|
|
1116
|
+
var f = Gn(o, void 0, te.useContext(Zn));
|
|
1116
1117
|
c += t.key + "-" + f.name;
|
|
1117
1118
|
var p = {};
|
|
1118
|
-
for (var
|
|
1119
|
-
Ue.call(e,
|
|
1119
|
+
for (var v in e)
|
|
1120
|
+
Ue.call(e, v) && v !== "css" && v !== ot && (p[v] = e[v]);
|
|
1120
1121
|
return p.className = c, r && (p.ref = r), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(ei, {
|
|
1121
1122
|
cache: t,
|
|
1122
1123
|
serialized: f,
|
|
1123
1124
|
isStringTag: typeof a == "string"
|
|
1124
1125
|
}), /* @__PURE__ */ te.createElement(a, p));
|
|
1125
|
-
}),
|
|
1126
|
-
return Ue.call(r, "css") ? Ce.jsx(
|
|
1127
|
-
},
|
|
1128
|
-
return Ue.call(r, "css") ? Ce.jsxs(
|
|
1126
|
+
}), or = ti, Qe = Ce.Fragment, s = function(t, r, i) {
|
|
1127
|
+
return Ue.call(r, "css") ? Ce.jsx(or, sr(t, r), i) : Ce.jsx(t, r, i);
|
|
1128
|
+
}, D = function(t, r, i) {
|
|
1129
|
+
return Ue.call(r, "css") ? Ce.jsxs(or, sr(t, r), i) : Ce.jsxs(t, r, i);
|
|
1129
1130
|
};
|
|
1130
1131
|
const ri = {
|
|
1131
1132
|
mediaPlayer: {
|
|
1132
1133
|
enablePlaylists: process.env.NODE_ENV !== "production"
|
|
1133
1134
|
}
|
|
1134
1135
|
}, ni = "http://localhost".replace(/\/+$/, "");
|
|
1135
|
-
class
|
|
1136
|
+
class lr {
|
|
1136
1137
|
constructor(t = {}) {
|
|
1137
1138
|
this.configuration = t;
|
|
1138
1139
|
}
|
|
@@ -1149,7 +1150,7 @@ class sr {
|
|
|
1149
1150
|
return this.configuration.middleware || [];
|
|
1150
1151
|
}
|
|
1151
1152
|
get queryParamsStringify() {
|
|
1152
|
-
return this.configuration.queryParamsStringify ||
|
|
1153
|
+
return this.configuration.queryParamsStringify || cr;
|
|
1153
1154
|
}
|
|
1154
1155
|
get username() {
|
|
1155
1156
|
return this.configuration.username;
|
|
@@ -1174,7 +1175,7 @@ class sr {
|
|
|
1174
1175
|
return this.configuration.credentials;
|
|
1175
1176
|
}
|
|
1176
1177
|
}
|
|
1177
|
-
const ii = new
|
|
1178
|
+
const ii = new lr();
|
|
1178
1179
|
class pt {
|
|
1179
1180
|
constructor(t = ii) {
|
|
1180
1181
|
this.configuration = t, this.middleware = t.middleware;
|
|
@@ -1231,11 +1232,11 @@ class pt {
|
|
|
1231
1232
|
};
|
|
1232
1233
|
let p;
|
|
1233
1234
|
si(f.body) || f.body instanceof URLSearchParams || ai(f.body) ? p = f.body : this.isJsonMime(a["Content-Type"]) ? p = JSON.stringify(f.body) : p = f.body;
|
|
1234
|
-
const
|
|
1235
|
+
const v = {
|
|
1235
1236
|
...f,
|
|
1236
1237
|
body: p
|
|
1237
1238
|
};
|
|
1238
|
-
return { url: i, init:
|
|
1239
|
+
return { url: i, init: v };
|
|
1239
1240
|
}
|
|
1240
1241
|
fetchApi = async (t, r) => {
|
|
1241
1242
|
let i = { url: t, init: r };
|
|
@@ -1295,16 +1296,16 @@ class li extends Error {
|
|
|
1295
1296
|
}
|
|
1296
1297
|
name = "FetchError";
|
|
1297
1298
|
}
|
|
1298
|
-
class
|
|
1299
|
+
class Ee extends Error {
|
|
1299
1300
|
constructor(t, r) {
|
|
1300
1301
|
super(r), this.field = t;
|
|
1301
1302
|
}
|
|
1302
1303
|
name = "RequiredError";
|
|
1303
1304
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return Object.keys(e).map((r) =>
|
|
1305
|
+
function cr(e, t = "") {
|
|
1306
|
+
return Object.keys(e).map((r) => ur(r, e[r], t)).filter((r) => r.length > 0).join("&");
|
|
1306
1307
|
}
|
|
1307
|
-
function
|
|
1308
|
+
function ur(e, t, r = "") {
|
|
1308
1309
|
const i = r + (r.length ? `[${e}]` : e);
|
|
1309
1310
|
if (t instanceof Array) {
|
|
1310
1311
|
const a = t.map((o) => encodeURIComponent(String(o))).join(`&${encodeURIComponent(i)}=`);
|
|
@@ -1312,9 +1313,9 @@ function lr(e, t, r = "") {
|
|
|
1312
1313
|
}
|
|
1313
1314
|
if (t instanceof Set) {
|
|
1314
1315
|
const a = Array.from(t);
|
|
1315
|
-
return
|
|
1316
|
+
return ur(e, a, r);
|
|
1316
1317
|
}
|
|
1317
|
-
return t instanceof Date ? `${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}` : t instanceof Object ?
|
|
1318
|
+
return t instanceof Date ? `${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}` : t instanceof Object ? cr(t, i) : `${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`;
|
|
1318
1319
|
}
|
|
1319
1320
|
class se {
|
|
1320
1321
|
constructor(t, r = (i) => i) {
|
|
@@ -1324,7 +1325,7 @@ class se {
|
|
|
1324
1325
|
return this.transformer(await this.raw.json());
|
|
1325
1326
|
}
|
|
1326
1327
|
}
|
|
1327
|
-
function
|
|
1328
|
+
function dr(e) {
|
|
1328
1329
|
return ci(e);
|
|
1329
1330
|
}
|
|
1330
1331
|
function ci(e, t) {
|
|
@@ -1338,7 +1339,7 @@ function ui(e) {
|
|
|
1338
1339
|
}
|
|
1339
1340
|
function di(e, t) {
|
|
1340
1341
|
return e == null ? e : {
|
|
1341
|
-
playlist:
|
|
1342
|
+
playlist: dr(e.playlist)
|
|
1342
1343
|
};
|
|
1343
1344
|
}
|
|
1344
1345
|
function fi(e) {
|
|
@@ -1346,13 +1347,13 @@ function fi(e) {
|
|
|
1346
1347
|
}
|
|
1347
1348
|
function pi(e, t) {
|
|
1348
1349
|
return e == null ? e : {
|
|
1349
|
-
items: e.items.map(
|
|
1350
|
+
items: e.items.map(dr)
|
|
1350
1351
|
};
|
|
1351
1352
|
}
|
|
1352
|
-
function
|
|
1353
|
-
return
|
|
1353
|
+
function hi(e) {
|
|
1354
|
+
return yi(e);
|
|
1354
1355
|
}
|
|
1355
|
-
function
|
|
1356
|
+
function yi(e, t) {
|
|
1356
1357
|
return e == null ? e : {
|
|
1357
1358
|
id: e.id,
|
|
1358
1359
|
url: e.url,
|
|
@@ -1366,7 +1367,7 @@ function mi(e) {
|
|
|
1366
1367
|
}
|
|
1367
1368
|
function vi(e, t) {
|
|
1368
1369
|
return e == null ? e : {
|
|
1369
|
-
items: e.items.map(
|
|
1370
|
+
items: e.items.map(hi)
|
|
1370
1371
|
};
|
|
1371
1372
|
}
|
|
1372
1373
|
function gi(e) {
|
|
@@ -1406,7 +1407,7 @@ class Si extends pt {
|
|
|
1406
1407
|
*/
|
|
1407
1408
|
async mediaPlayerPlaylistsIdDeleteRaw(t, r) {
|
|
1408
1409
|
if (t.id == null)
|
|
1409
|
-
throw new
|
|
1410
|
+
throw new Ee(
|
|
1410
1411
|
"id",
|
|
1411
1412
|
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdDelete().'
|
|
1412
1413
|
);
|
|
@@ -1430,7 +1431,7 @@ class Si extends pt {
|
|
|
1430
1431
|
*/
|
|
1431
1432
|
async mediaPlayerPlaylistsIdGetRaw(t, r) {
|
|
1432
1433
|
if (t.id == null)
|
|
1433
|
-
throw new
|
|
1434
|
+
throw new Ee(
|
|
1434
1435
|
"id",
|
|
1435
1436
|
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdGet().'
|
|
1436
1437
|
);
|
|
@@ -1454,7 +1455,7 @@ class Si extends pt {
|
|
|
1454
1455
|
*/
|
|
1455
1456
|
async mediaPlayerPlaylistsIdRenamePostRaw(t, r) {
|
|
1456
1457
|
if (t.id == null)
|
|
1457
|
-
throw new
|
|
1458
|
+
throw new Ee(
|
|
1458
1459
|
"id",
|
|
1459
1460
|
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdRenamePost().'
|
|
1460
1461
|
);
|
|
@@ -1480,7 +1481,7 @@ class Si extends pt {
|
|
|
1480
1481
|
*/
|
|
1481
1482
|
async mediaPlayerPlaylistsIdTracksGetRaw(t, r) {
|
|
1482
1483
|
if (t.id == null)
|
|
1483
|
-
throw new
|
|
1484
|
+
throw new Ee(
|
|
1484
1485
|
"id",
|
|
1485
1486
|
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdTracksGet().'
|
|
1486
1487
|
);
|
|
@@ -1504,7 +1505,7 @@ class Si extends pt {
|
|
|
1504
1505
|
*/
|
|
1505
1506
|
async mediaPlayerPlaylistsIdTracksPutRaw(t, r) {
|
|
1506
1507
|
if (t.id == null)
|
|
1507
|
-
throw new
|
|
1508
|
+
throw new Ee(
|
|
1508
1509
|
"id",
|
|
1509
1510
|
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdTracksPut().'
|
|
1510
1511
|
);
|
|
@@ -1544,19 +1545,19 @@ class Si extends pt {
|
|
|
1544
1545
|
return await (await this.mediaPlayerPlaylistsPostRaw(t, r)).value();
|
|
1545
1546
|
}
|
|
1546
1547
|
}
|
|
1547
|
-
const
|
|
1548
|
+
const Ti = new lr({
|
|
1548
1549
|
basePath: new URL("api", window.location.origin).toString()
|
|
1549
|
-
}),
|
|
1550
|
-
|
|
1551
|
-
),
|
|
1550
|
+
}), Ei = new Si(
|
|
1551
|
+
Ti
|
|
1552
|
+
), Ri = ({
|
|
1552
1553
|
disabled: e,
|
|
1553
1554
|
onAddToPlaylist: t
|
|
1554
1555
|
}) => {
|
|
1555
1556
|
const [r, i] = z(!1), [a, o] = z(
|
|
1556
1557
|
"loading"
|
|
1557
1558
|
);
|
|
1558
|
-
return
|
|
1559
|
-
|
|
1559
|
+
return Ut(() => {
|
|
1560
|
+
Ei.mediaPlayerPlaylistsGet().then(
|
|
1560
1561
|
(c) => o(
|
|
1561
1562
|
c.items.map((f) => ({
|
|
1562
1563
|
key: f.id,
|
|
@@ -1569,9 +1570,9 @@ const Ei = new sr({
|
|
|
1569
1570
|
{
|
|
1570
1571
|
panelPaddingSize: "none",
|
|
1571
1572
|
button: /* @__PURE__ */ s(
|
|
1572
|
-
|
|
1573
|
+
J,
|
|
1573
1574
|
{
|
|
1574
|
-
iconType:
|
|
1575
|
+
iconType: Re,
|
|
1575
1576
|
onClick: () => i(!r),
|
|
1576
1577
|
disabled: e,
|
|
1577
1578
|
children: "Add to"
|
|
@@ -1580,7 +1581,7 @@ const Ei = new sr({
|
|
|
1580
1581
|
isOpen: r,
|
|
1581
1582
|
closePopover: () => i(!1),
|
|
1582
1583
|
children: /* @__PURE__ */ s(
|
|
1583
|
-
|
|
1584
|
+
qr,
|
|
1584
1585
|
{
|
|
1585
1586
|
searchable: !0,
|
|
1586
1587
|
searchProps: {
|
|
@@ -1592,10 +1593,10 @@ const Ei = new sr({
|
|
|
1592
1593
|
i(!1), await t(p);
|
|
1593
1594
|
},
|
|
1594
1595
|
singleSelection: !0,
|
|
1595
|
-
children: (c, f) => /* @__PURE__ */
|
|
1596
|
+
children: (c, f) => /* @__PURE__ */ D("div", { style: { width: 240 }, children: [
|
|
1596
1597
|
/* @__PURE__ */ s(Vr, { paddingSize: "s", children: f }),
|
|
1597
1598
|
c,
|
|
1598
|
-
/* @__PURE__ */ s(Ur, { paddingSize: "s", children: /* @__PURE__ */ s(
|
|
1599
|
+
/* @__PURE__ */ s(Ur, { paddingSize: "s", children: /* @__PURE__ */ s(J, { size: "s", fullWidth: !0, iconType: Re, children: "New playlist" }) })
|
|
1599
1600
|
] })
|
|
1600
1601
|
}
|
|
1601
1602
|
)
|
|
@@ -1605,16 +1606,16 @@ const Ei = new sr({
|
|
|
1605
1606
|
onCancel: e,
|
|
1606
1607
|
onSave: t
|
|
1607
1608
|
}) => {
|
|
1608
|
-
const r =
|
|
1609
|
-
return /* @__PURE__ */
|
|
1610
|
-
/* @__PURE__ */ s(
|
|
1611
|
-
/* @__PURE__ */ s(
|
|
1612
|
-
|
|
1609
|
+
const r = Qr({ prefix: "modalForm" }), [i, a] = z(""), [o, c] = z(""), [f, p] = z(!1);
|
|
1610
|
+
return /* @__PURE__ */ D(Br, { onClose: e, initialFocus: "[name=url]", children: [
|
|
1611
|
+
/* @__PURE__ */ s(Wr, { children: /* @__PURE__ */ s(Yr, { children: "Add video" }) }),
|
|
1612
|
+
/* @__PURE__ */ s(Gr, { children: /* @__PURE__ */ D(
|
|
1613
|
+
Hr,
|
|
1613
1614
|
{
|
|
1614
1615
|
id: r,
|
|
1615
1616
|
component: "form",
|
|
1616
|
-
onSubmit: async (
|
|
1617
|
-
|
|
1617
|
+
onSubmit: async (v) => {
|
|
1618
|
+
v.preventDefault();
|
|
1618
1619
|
try {
|
|
1619
1620
|
p(!0), await t({ url: i, title: o });
|
|
1620
1621
|
} finally {
|
|
@@ -1627,7 +1628,7 @@ const Ei = new sr({
|
|
|
1627
1628
|
{
|
|
1628
1629
|
name: "url",
|
|
1629
1630
|
value: i,
|
|
1630
|
-
onChange: (
|
|
1631
|
+
onChange: (v) => a(v.target.value)
|
|
1631
1632
|
}
|
|
1632
1633
|
) }),
|
|
1633
1634
|
/* @__PURE__ */ s(at, { label: "Title", children: /* @__PURE__ */ s(
|
|
@@ -1635,16 +1636,16 @@ const Ei = new sr({
|
|
|
1635
1636
|
{
|
|
1636
1637
|
name: "title",
|
|
1637
1638
|
value: o,
|
|
1638
|
-
onChange: (
|
|
1639
|
+
onChange: (v) => c(v.target.value)
|
|
1639
1640
|
}
|
|
1640
1641
|
) })
|
|
1641
1642
|
]
|
|
1642
1643
|
}
|
|
1643
1644
|
) }),
|
|
1644
|
-
/* @__PURE__ */
|
|
1645
|
-
/* @__PURE__ */ s(
|
|
1645
|
+
/* @__PURE__ */ D(Jr, { children: [
|
|
1646
|
+
/* @__PURE__ */ s(Qt, { onClick: e, children: "Cancel" }),
|
|
1646
1647
|
/* @__PURE__ */ s(
|
|
1647
|
-
|
|
1648
|
+
J,
|
|
1648
1649
|
{
|
|
1649
1650
|
type: "submit",
|
|
1650
1651
|
form: r,
|
|
@@ -1656,7 +1657,7 @@ const Ei = new sr({
|
|
|
1656
1657
|
)
|
|
1657
1658
|
] })
|
|
1658
1659
|
] });
|
|
1659
|
-
},
|
|
1660
|
+
}, Lt = re(
|
|
1660
1661
|
({ onSave: e }) => {
|
|
1661
1662
|
const [t, r] = z(!1), i = $(
|
|
1662
1663
|
async (a) => {
|
|
@@ -1664,12 +1665,12 @@ const Ei = new sr({
|
|
|
1664
1665
|
},
|
|
1665
1666
|
[e]
|
|
1666
1667
|
);
|
|
1667
|
-
return /* @__PURE__ */
|
|
1668
|
+
return /* @__PURE__ */ D(Qe, { children: [
|
|
1668
1669
|
/* @__PURE__ */ s(
|
|
1669
|
-
|
|
1670
|
+
J,
|
|
1670
1671
|
{
|
|
1671
1672
|
onClick: () => r(!0),
|
|
1672
|
-
iconType:
|
|
1673
|
+
iconType: Re,
|
|
1673
1674
|
color: "primary",
|
|
1674
1675
|
children: "Add video"
|
|
1675
1676
|
}
|
|
@@ -1683,7 +1684,7 @@ const Ei = new sr({
|
|
|
1683
1684
|
)
|
|
1684
1685
|
] });
|
|
1685
1686
|
}
|
|
1686
|
-
),
|
|
1687
|
+
), fr = {
|
|
1687
1688
|
Audio: "",
|
|
1688
1689
|
Dailymotion: "https://www.dailymotion.com/favicon.ico",
|
|
1689
1690
|
Niconico: "https://www.nicovideo.jp/favicon.ico",
|
|
@@ -1691,10 +1692,10 @@ const Ei = new sr({
|
|
|
1691
1692
|
Twitch: "https://www.twitch.tv/favicon.ico",
|
|
1692
1693
|
Vimeo: "https://vimeo.com/favicon.ico",
|
|
1693
1694
|
YouTube: "https://www.youtube.com/favicon.ico"
|
|
1694
|
-
}, Ii =
|
|
1695
|
+
}, Ii = I(
|
|
1695
1696
|
({ playQueueStore: e }) => {
|
|
1696
|
-
const { euiTheme: t } =
|
|
1697
|
-
return /* @__PURE__ */
|
|
1697
|
+
const { euiTheme: t } = Yt();
|
|
1698
|
+
return /* @__PURE__ */ D(
|
|
1698
1699
|
Xr,
|
|
1699
1700
|
{
|
|
1700
1701
|
style: {
|
|
@@ -1704,8 +1705,8 @@ const Ei = new sr({
|
|
|
1704
1705
|
background: t.colors.backgroundBasePlain
|
|
1705
1706
|
},
|
|
1706
1707
|
children: [
|
|
1707
|
-
/* @__PURE__ */ s(
|
|
1708
|
-
|
|
1708
|
+
/* @__PURE__ */ s(Kr, { children: /* @__PURE__ */ s(
|
|
1709
|
+
Wt,
|
|
1709
1710
|
{
|
|
1710
1711
|
id: "",
|
|
1711
1712
|
checked: e.allItemsSelected,
|
|
@@ -1733,21 +1734,21 @@ const Ei = new sr({
|
|
|
1733
1734
|
items: [
|
|
1734
1735
|
{
|
|
1735
1736
|
name: "Play first",
|
|
1736
|
-
icon: /* @__PURE__ */ s(
|
|
1737
|
+
icon: /* @__PURE__ */ s(Q, { type: "" }),
|
|
1737
1738
|
onClick: async () => {
|
|
1738
1739
|
t(), await e.playFirst();
|
|
1739
1740
|
}
|
|
1740
1741
|
},
|
|
1741
1742
|
{
|
|
1742
1743
|
name: "Play next",
|
|
1743
|
-
icon: /* @__PURE__ */ s(
|
|
1744
|
+
icon: /* @__PURE__ */ s(Q, { type: "" }),
|
|
1744
1745
|
onClick: async () => {
|
|
1745
1746
|
t(), await e.playNext();
|
|
1746
1747
|
}
|
|
1747
1748
|
},
|
|
1748
1749
|
{
|
|
1749
1750
|
name: "Add to play queue",
|
|
1750
|
-
icon: /* @__PURE__ */ s(
|
|
1751
|
+
icon: /* @__PURE__ */ s(Q, { type: Re }),
|
|
1751
1752
|
onClick: async () => {
|
|
1752
1753
|
t(), await e.addToPlayQueue();
|
|
1753
1754
|
}
|
|
@@ -1757,7 +1758,7 @@ const Ei = new sr({
|
|
|
1757
1758
|
},
|
|
1758
1759
|
{
|
|
1759
1760
|
name: "Move to the top",
|
|
1760
|
-
icon: /* @__PURE__ */ s(
|
|
1761
|
+
icon: /* @__PURE__ */ s(Q, { type: cn }),
|
|
1761
1762
|
onClick: async () => {
|
|
1762
1763
|
t(), e.moveToTop();
|
|
1763
1764
|
},
|
|
@@ -1765,7 +1766,7 @@ const Ei = new sr({
|
|
|
1765
1766
|
},
|
|
1766
1767
|
{
|
|
1767
1768
|
name: "Move to the bottom",
|
|
1768
|
-
icon: /* @__PURE__ */ s(
|
|
1769
|
+
icon: /* @__PURE__ */ s(Q, { type: un }),
|
|
1769
1770
|
onClick: async () => {
|
|
1770
1771
|
t(), e.moveToBottom();
|
|
1771
1772
|
},
|
|
@@ -1776,7 +1777,7 @@ const Ei = new sr({
|
|
|
1776
1777
|
},
|
|
1777
1778
|
{
|
|
1778
1779
|
name: "Remove to the top",
|
|
1779
|
-
icon: /* @__PURE__ */ s(
|
|
1780
|
+
icon: /* @__PURE__ */ s(Q, { type: "" }),
|
|
1780
1781
|
onClick: async () => {
|
|
1781
1782
|
t(), await e.removeToTop();
|
|
1782
1783
|
},
|
|
@@ -1784,7 +1785,7 @@ const Ei = new sr({
|
|
|
1784
1785
|
},
|
|
1785
1786
|
{
|
|
1786
1787
|
name: "Remove others",
|
|
1787
|
-
icon: /* @__PURE__ */ s(
|
|
1788
|
+
icon: /* @__PURE__ */ s(Q, { type: "" }),
|
|
1788
1789
|
onClick: async () => {
|
|
1789
1790
|
t(), await e.removeOthers();
|
|
1790
1791
|
},
|
|
@@ -1804,11 +1805,11 @@ const Ei = new sr({
|
|
|
1804
1805
|
xe,
|
|
1805
1806
|
{
|
|
1806
1807
|
button: /* @__PURE__ */ s(
|
|
1807
|
-
|
|
1808
|
+
Y,
|
|
1808
1809
|
{
|
|
1809
1810
|
title: "More options",
|
|
1810
1811
|
"aria-label": "More options",
|
|
1811
|
-
iconType:
|
|
1812
|
+
iconType: Jt,
|
|
1812
1813
|
size: "s",
|
|
1813
1814
|
color: "text",
|
|
1814
1815
|
onClick: i
|
|
@@ -1828,12 +1829,12 @@ const Ei = new sr({
|
|
|
1828
1829
|
}
|
|
1829
1830
|
);
|
|
1830
1831
|
}
|
|
1831
|
-
),
|
|
1832
|
+
), ki = I(
|
|
1832
1833
|
({ item: e }) => {
|
|
1833
1834
|
const t = le();
|
|
1834
|
-
return /* @__PURE__ */
|
|
1835
|
+
return /* @__PURE__ */ D(st, { textOnly: !1, hasActions: !0, align: "right", children: [
|
|
1835
1836
|
/* @__PURE__ */ s(
|
|
1836
|
-
|
|
1837
|
+
J,
|
|
1837
1838
|
{
|
|
1838
1839
|
iconType: ln,
|
|
1839
1840
|
size: "s",
|
|
@@ -1844,7 +1845,7 @@ const Ei = new sr({
|
|
|
1844
1845
|
}
|
|
1845
1846
|
),
|
|
1846
1847
|
/* @__PURE__ */ s(
|
|
1847
|
-
|
|
1848
|
+
J,
|
|
1848
1849
|
{
|
|
1849
1850
|
iconType: ft,
|
|
1850
1851
|
size: "s",
|
|
@@ -1855,12 +1856,12 @@ const Ei = new sr({
|
|
|
1855
1856
|
/* @__PURE__ */ s(Oi, { item: e })
|
|
1856
1857
|
] });
|
|
1857
1858
|
}
|
|
1858
|
-
),
|
|
1859
|
+
), _i = I(
|
|
1859
1860
|
({ item: e }) => {
|
|
1860
1861
|
const t = le();
|
|
1861
|
-
return /* @__PURE__ */
|
|
1862
|
+
return /* @__PURE__ */ D(tn, { isSelected: e.isCurrent, children: [
|
|
1862
1863
|
/* @__PURE__ */ s(Zr, { children: /* @__PURE__ */ s(
|
|
1863
|
-
|
|
1864
|
+
Wt,
|
|
1864
1865
|
{
|
|
1865
1866
|
id: e.id.toString(),
|
|
1866
1867
|
checked: e.isSelected,
|
|
@@ -1870,7 +1871,7 @@ const Ei = new sr({
|
|
|
1870
1871
|
/* @__PURE__ */ s(st, { textOnly: !1, children: /* @__PURE__ */ s(
|
|
1871
1872
|
"img",
|
|
1872
1873
|
{
|
|
1873
|
-
src:
|
|
1874
|
+
src: fr[e.type],
|
|
1874
1875
|
width: 16,
|
|
1875
1876
|
height: 16,
|
|
1876
1877
|
alt: e.type
|
|
@@ -1886,21 +1887,21 @@ const Ei = new sr({
|
|
|
1886
1887
|
children: e.title
|
|
1887
1888
|
}
|
|
1888
1889
|
) }),
|
|
1889
|
-
/* @__PURE__ */ s(
|
|
1890
|
+
/* @__PURE__ */ s(ki, { item: e })
|
|
1890
1891
|
] }, e.id);
|
|
1891
1892
|
}
|
|
1892
|
-
), Ai =
|
|
1893
|
+
), Ai = I(
|
|
1893
1894
|
({ playQueueStore: e }) => /* @__PURE__ */ s(
|
|
1894
1895
|
On,
|
|
1895
1896
|
{
|
|
1896
1897
|
tag: "tbody",
|
|
1897
1898
|
list: e.items,
|
|
1898
1899
|
setList: (t) => e.setItems(t),
|
|
1899
|
-
children: e.items.map((t) => /* @__PURE__ */ s(
|
|
1900
|
+
children: e.items.map((t) => /* @__PURE__ */ s(_i, { item: t }, t.id))
|
|
1900
1901
|
}
|
|
1901
1902
|
)
|
|
1902
|
-
),
|
|
1903
|
-
({ playQueueStore: e }) => /* @__PURE__ */
|
|
1903
|
+
), Fi = I(
|
|
1904
|
+
({ playQueueStore: e }) => /* @__PURE__ */ D(rn, { children: [
|
|
1904
1905
|
/* @__PURE__ */ s(Ii, { playQueueStore: e }),
|
|
1905
1906
|
/* @__PURE__ */ s(Ai, { playQueueStore: e })
|
|
1906
1907
|
] })
|
|
@@ -1908,21 +1909,21 @@ const Ei = new sr({
|
|
|
1908
1909
|
function Mi(e) {
|
|
1909
1910
|
return e !== null && typeof e == "object" && "title" in e && typeof e.title == "string";
|
|
1910
1911
|
}
|
|
1911
|
-
const
|
|
1912
|
+
const Di = I(
|
|
1912
1913
|
({ playQueueStore: e }) => /* @__PURE__ */ s(
|
|
1913
|
-
|
|
1914
|
+
J,
|
|
1914
1915
|
{
|
|
1915
|
-
iconType:
|
|
1916
|
+
iconType: Re,
|
|
1916
1917
|
onClick: e.addSelectedItems,
|
|
1917
1918
|
disabled: e.isEmpty || e.selectedItems.length === 0,
|
|
1918
1919
|
children: "Add to play queue"
|
|
1919
1920
|
}
|
|
1920
1921
|
)
|
|
1921
1922
|
);
|
|
1922
|
-
|
|
1923
|
+
I(
|
|
1923
1924
|
({ playQueueStore: e }) => {
|
|
1924
1925
|
const [t, r] = z(!1);
|
|
1925
|
-
return /* @__PURE__ */
|
|
1926
|
+
return /* @__PURE__ */ D(Qe, { children: [
|
|
1926
1927
|
t && /* @__PURE__ */ s(
|
|
1927
1928
|
an,
|
|
1928
1929
|
{
|
|
@@ -1946,7 +1947,7 @@ C(
|
|
|
1946
1947
|
}
|
|
1947
1948
|
),
|
|
1948
1949
|
/* @__PURE__ */ s(
|
|
1949
|
-
|
|
1950
|
+
J,
|
|
1950
1951
|
{
|
|
1951
1952
|
onClick: () => r((i) => !i),
|
|
1952
1953
|
iconType: dn,
|
|
@@ -1956,12 +1957,12 @@ C(
|
|
|
1956
1957
|
] });
|
|
1957
1958
|
}
|
|
1958
1959
|
);
|
|
1959
|
-
const Ni =
|
|
1960
|
+
const Ni = I(
|
|
1960
1961
|
({ playQueueStore: e }) => {
|
|
1961
|
-
const { euiTheme: t } =
|
|
1962
|
+
const { euiTheme: t } = Yt(), r = $(async () => {
|
|
1962
1963
|
}, []), i = $(
|
|
1963
1964
|
async (a) => {
|
|
1964
|
-
const o =
|
|
1965
|
+
const o = Rn(a.url);
|
|
1965
1966
|
if (o !== void 0) {
|
|
1966
1967
|
const c = o.extractVideoId(a.url);
|
|
1967
1968
|
if (c !== void 0) {
|
|
@@ -1983,8 +1984,8 @@ const Ni = C(
|
|
|
1983
1984
|
},
|
|
1984
1985
|
[e]
|
|
1985
1986
|
);
|
|
1986
|
-
return /* @__PURE__ */
|
|
1987
|
-
/* @__PURE__ */
|
|
1987
|
+
return /* @__PURE__ */ D(Qe, { children: [
|
|
1988
|
+
/* @__PURE__ */ D(
|
|
1988
1989
|
oe,
|
|
1989
1990
|
{
|
|
1990
1991
|
alignItems: "center",
|
|
@@ -1996,24 +1997,24 @@ const Ni = C(
|
|
|
1996
1997
|
background: t.colors.backgroundBasePlain
|
|
1997
1998
|
},
|
|
1998
1999
|
children: [
|
|
1999
|
-
/* @__PURE__ */ s(
|
|
2000
|
-
|
|
2000
|
+
/* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(
|
|
2001
|
+
J,
|
|
2001
2002
|
{
|
|
2002
2003
|
disabled: e.isEmpty || e.selectedItems.length === 0,
|
|
2003
2004
|
onClick: e.playSelectedItemsNext,
|
|
2004
2005
|
children: "Play next"
|
|
2005
2006
|
}
|
|
2006
2007
|
) }),
|
|
2007
|
-
/* @__PURE__ */ s(
|
|
2008
|
-
/* @__PURE__ */ s(
|
|
2009
|
-
|
|
2008
|
+
/* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(Di, { playQueueStore: e }) }),
|
|
2009
|
+
/* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(
|
|
2010
|
+
Ri,
|
|
2010
2011
|
{
|
|
2011
2012
|
disabled: !ri.mediaPlayer.enablePlaylists,
|
|
2012
2013
|
onAddToPlaylist: r
|
|
2013
2014
|
}
|
|
2014
2015
|
) }),
|
|
2015
|
-
/* @__PURE__ */ s(
|
|
2016
|
-
|
|
2016
|
+
/* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(
|
|
2017
|
+
J,
|
|
2017
2018
|
{
|
|
2018
2019
|
iconType: ft,
|
|
2019
2020
|
onClick: e.removeSelectedItems,
|
|
@@ -2021,8 +2022,8 @@ const Ni = C(
|
|
|
2021
2022
|
children: "Remove"
|
|
2022
2023
|
}
|
|
2023
2024
|
) }),
|
|
2024
|
-
/* @__PURE__ */ s(
|
|
2025
|
-
|
|
2025
|
+
/* @__PURE__ */ s(G, { grow: !1, children: /* @__PURE__ */ s(
|
|
2026
|
+
J,
|
|
2026
2027
|
{
|
|
2027
2028
|
iconType: fn,
|
|
2028
2029
|
onClick: e.clear,
|
|
@@ -2030,16 +2031,16 @@ const Ni = C(
|
|
|
2030
2031
|
children: "Clear"
|
|
2031
2032
|
}
|
|
2032
2033
|
) }),
|
|
2033
|
-
/* @__PURE__ */ s(
|
|
2034
|
-
/* @__PURE__ */
|
|
2034
|
+
/* @__PURE__ */ s(G, { grow: !0 }),
|
|
2035
|
+
/* @__PURE__ */ D(G, { grow: !1, children: [
|
|
2035
2036
|
!1,
|
|
2036
|
-
/* @__PURE__ */ s(
|
|
2037
|
+
/* @__PURE__ */ s(Lt, { onSave: i })
|
|
2037
2038
|
] })
|
|
2038
2039
|
]
|
|
2039
2040
|
}
|
|
2040
2041
|
),
|
|
2041
2042
|
/* @__PURE__ */ s(
|
|
2042
|
-
|
|
2043
|
+
Ht,
|
|
2043
2044
|
{
|
|
2044
2045
|
size: "l",
|
|
2045
2046
|
style: {
|
|
@@ -2055,12 +2056,12 @@ const Ni = C(
|
|
|
2055
2056
|
{
|
|
2056
2057
|
title: /* @__PURE__ */ s("h2", { children: "We couldn't find any videos" }),
|
|
2057
2058
|
body: /* @__PURE__ */ s("p", { children: "Your video library doesn't contain any video content." }),
|
|
2058
|
-
actions: /* @__PURE__ */ s(
|
|
2059
|
+
actions: /* @__PURE__ */ s(Lt, { onSave: i })
|
|
2059
2060
|
}
|
|
2060
|
-
) : /* @__PURE__ */ s(
|
|
2061
|
+
) : /* @__PURE__ */ s(Fi, { playQueueStore: e })
|
|
2061
2062
|
] });
|
|
2062
2063
|
}
|
|
2063
|
-
),
|
|
2064
|
+
), it = new kn({
|
|
2064
2065
|
coerceTypes: !0
|
|
2065
2066
|
});
|
|
2066
2067
|
function $i(e, t) {
|
|
@@ -2099,7 +2100,7 @@ const ji = {
|
|
|
2099
2100
|
},
|
|
2100
2101
|
repeat: {
|
|
2101
2102
|
type: "string",
|
|
2102
|
-
enum: Object.values(
|
|
2103
|
+
enum: Object.values(O),
|
|
2103
2104
|
nullable: !0
|
|
2104
2105
|
},
|
|
2105
2106
|
shuffle: {
|
|
@@ -2117,36 +2118,36 @@ const ji = {
|
|
|
2117
2118
|
}
|
|
2118
2119
|
}
|
|
2119
2120
|
};
|
|
2120
|
-
class
|
|
2121
|
+
class qe {
|
|
2121
2122
|
constructor(t, r, i) {
|
|
2122
|
-
this.observableStateProvider = t, this.playQueueStore = r, this.dto = i, this.id =
|
|
2123
|
+
this.observableStateProvider = t, this.playQueueStore = r, this.dto = i, this.id = qe.nextId++, t.makeObservable(this, {
|
|
2123
2124
|
isSelected: X,
|
|
2124
|
-
isCurrent:
|
|
2125
|
-
index:
|
|
2126
|
-
isFirst:
|
|
2127
|
-
isLast:
|
|
2128
|
-
canMoveToTop:
|
|
2129
|
-
canMoveToBottom:
|
|
2130
|
-
canRemoveToTop:
|
|
2131
|
-
canRemoveOthers:
|
|
2132
|
-
unselect:
|
|
2133
|
-
toggleSelected:
|
|
2134
|
-
play:
|
|
2135
|
-
remove:
|
|
2136
|
-
playFirst:
|
|
2137
|
-
playNext:
|
|
2138
|
-
addToPlayQueue:
|
|
2139
|
-
moveToTop:
|
|
2140
|
-
moveToBottom:
|
|
2141
|
-
removeToTop:
|
|
2142
|
-
removeOthers:
|
|
2125
|
+
isCurrent: w,
|
|
2126
|
+
index: w,
|
|
2127
|
+
isFirst: w,
|
|
2128
|
+
isLast: w,
|
|
2129
|
+
canMoveToTop: w,
|
|
2130
|
+
canMoveToBottom: w,
|
|
2131
|
+
canRemoveToTop: w,
|
|
2132
|
+
canRemoveOthers: w,
|
|
2133
|
+
unselect: y,
|
|
2134
|
+
toggleSelected: y.bound,
|
|
2135
|
+
play: y,
|
|
2136
|
+
remove: y.bound,
|
|
2137
|
+
playFirst: y.bound,
|
|
2138
|
+
playNext: y.bound,
|
|
2139
|
+
addToPlayQueue: y.bound,
|
|
2140
|
+
moveToTop: y.bound,
|
|
2141
|
+
moveToBottom: y.bound,
|
|
2142
|
+
removeToTop: y.bound,
|
|
2143
|
+
removeOthers: y.bound
|
|
2143
2144
|
});
|
|
2144
2145
|
}
|
|
2145
2146
|
static nextId = 1;
|
|
2146
2147
|
id;
|
|
2147
2148
|
isSelected = !1;
|
|
2148
2149
|
static fromDto(t, r, i) {
|
|
2149
|
-
return new
|
|
2150
|
+
return new qe(
|
|
2150
2151
|
t,
|
|
2151
2152
|
r,
|
|
2152
2153
|
i
|
|
@@ -2228,7 +2229,7 @@ class Le {
|
|
|
2228
2229
|
return this.playQueueStore.removeOtherItems(this);
|
|
2229
2230
|
}
|
|
2230
2231
|
}
|
|
2231
|
-
class
|
|
2232
|
+
class Li {
|
|
2232
2233
|
constructor(t) {
|
|
2233
2234
|
this.observableStateProvider = t, t.makeObservable(this, {
|
|
2234
2235
|
interacted: X,
|
|
@@ -2236,50 +2237,50 @@ class qi {
|
|
|
2236
2237
|
currentId: X,
|
|
2237
2238
|
repeat: X,
|
|
2238
2239
|
shuffle: X,
|
|
2239
|
-
localStorageState:
|
|
2240
|
-
isEmpty:
|
|
2241
|
-
currentItem:
|
|
2242
|
-
canPlay:
|
|
2243
|
-
canPause:
|
|
2244
|
-
hasMultipleItems:
|
|
2245
|
-
currentIndex:
|
|
2246
|
-
hasPreviousItem:
|
|
2247
|
-
hasNextItem:
|
|
2248
|
-
isLastItem:
|
|
2249
|
-
selectedItems:
|
|
2250
|
-
allItemsSelected:
|
|
2251
|
-
selectedItemsOrAllItems:
|
|
2252
|
-
setItems:
|
|
2253
|
-
interact:
|
|
2254
|
-
clear:
|
|
2255
|
-
unselectAll:
|
|
2256
|
-
setCurrentItem:
|
|
2257
|
-
setNextItems:
|
|
2258
|
-
clearAndSetItems:
|
|
2259
|
-
playNext:
|
|
2260
|
-
playSelectedItemsNext:
|
|
2261
|
-
addItems:
|
|
2262
|
-
addSelectedItems:
|
|
2263
|
-
playFirst:
|
|
2264
|
-
moveItem:
|
|
2265
|
-
goToFirst:
|
|
2266
|
-
removeItems:
|
|
2267
|
-
removeSelectedItems:
|
|
2268
|
-
removeOtherItems:
|
|
2269
|
-
removeItemsAbove:
|
|
2270
|
-
toggleRepeat:
|
|
2271
|
-
toggleShuffle:
|
|
2272
|
-
previous:
|
|
2273
|
-
next:
|
|
2240
|
+
localStorageState: w.struct,
|
|
2241
|
+
isEmpty: w,
|
|
2242
|
+
currentItem: w,
|
|
2243
|
+
canPlay: w,
|
|
2244
|
+
canPause: w,
|
|
2245
|
+
hasMultipleItems: w,
|
|
2246
|
+
currentIndex: w,
|
|
2247
|
+
hasPreviousItem: w,
|
|
2248
|
+
hasNextItem: w,
|
|
2249
|
+
isLastItem: w,
|
|
2250
|
+
selectedItems: w,
|
|
2251
|
+
allItemsSelected: w,
|
|
2252
|
+
selectedItemsOrAllItems: w,
|
|
2253
|
+
setItems: y,
|
|
2254
|
+
interact: y,
|
|
2255
|
+
clear: y.bound,
|
|
2256
|
+
unselectAll: y,
|
|
2257
|
+
setCurrentItem: y,
|
|
2258
|
+
setNextItems: y,
|
|
2259
|
+
clearAndSetItems: y,
|
|
2260
|
+
playNext: y,
|
|
2261
|
+
playSelectedItemsNext: y.bound,
|
|
2262
|
+
addItems: y,
|
|
2263
|
+
addSelectedItems: y.bound,
|
|
2264
|
+
playFirst: y,
|
|
2265
|
+
moveItem: y,
|
|
2266
|
+
goToFirst: y,
|
|
2267
|
+
removeItems: y,
|
|
2268
|
+
removeSelectedItems: y.bound,
|
|
2269
|
+
removeOtherItems: y,
|
|
2270
|
+
removeItemsAbove: y,
|
|
2271
|
+
toggleRepeat: y.bound,
|
|
2272
|
+
toggleShuffle: y.bound,
|
|
2273
|
+
previous: y,
|
|
2274
|
+
next: y.bound
|
|
2274
2275
|
});
|
|
2275
2276
|
}
|
|
2276
2277
|
interacted = !1;
|
|
2277
2278
|
items = [];
|
|
2278
2279
|
currentId;
|
|
2279
|
-
repeat =
|
|
2280
|
+
repeat = O.Off;
|
|
2280
2281
|
shuffle = !1;
|
|
2281
2282
|
createItem(t) {
|
|
2282
|
-
return
|
|
2283
|
+
return qe.fromDto(this.observableStateProvider, this, {
|
|
2283
2284
|
url: t.url,
|
|
2284
2285
|
type: t.type,
|
|
2285
2286
|
videoId: t.videoId,
|
|
@@ -2296,7 +2297,7 @@ class qi {
|
|
|
2296
2297
|
};
|
|
2297
2298
|
}
|
|
2298
2299
|
set localStorageState(t) {
|
|
2299
|
-
this.repeat = t.repeat ??
|
|
2300
|
+
this.repeat = t.repeat ?? O.Off, this.shuffle = t.shuffle ?? !1, this.items = t.items?.map((r) => this.createItem(r)) ?? [], this.currentIndex = t.currentIndex;
|
|
2300
2301
|
}
|
|
2301
2302
|
validateLocalStorageState(t) {
|
|
2302
2303
|
return $i(
|
|
@@ -2434,14 +2435,14 @@ class qi {
|
|
|
2434
2435
|
}
|
|
2435
2436
|
toggleRepeat() {
|
|
2436
2437
|
switch (this.repeat) {
|
|
2437
|
-
case
|
|
2438
|
-
this.repeat =
|
|
2438
|
+
case O.Off:
|
|
2439
|
+
this.repeat = O.All;
|
|
2439
2440
|
break;
|
|
2440
|
-
case
|
|
2441
|
-
this.repeat =
|
|
2441
|
+
case O.All:
|
|
2442
|
+
this.repeat = O.One;
|
|
2442
2443
|
break;
|
|
2443
|
-
case
|
|
2444
|
-
this.repeat =
|
|
2444
|
+
case O.One:
|
|
2445
|
+
this.repeat = O.Off;
|
|
2445
2446
|
break;
|
|
2446
2447
|
}
|
|
2447
2448
|
}
|
|
@@ -2455,24 +2456,24 @@ class qi {
|
|
|
2455
2456
|
this.currentIndex !== void 0 && this.hasNextItem && (this.interact(), this.currentIndex++);
|
|
2456
2457
|
}
|
|
2457
2458
|
}
|
|
2458
|
-
const
|
|
2459
|
+
const Ta = ({
|
|
2459
2460
|
children: e
|
|
2460
2461
|
}) => {
|
|
2461
2462
|
const [t] = z(
|
|
2462
|
-
() => new
|
|
2463
|
+
() => new Li(new er())
|
|
2463
2464
|
), r = le();
|
|
2464
|
-
return
|
|
2465
|
+
return Ut(() => $r(
|
|
2465
2466
|
() => t.currentItem,
|
|
2466
2467
|
async (i, a) => {
|
|
2467
2468
|
i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await r.setCurrentTime(0);
|
|
2468
2469
|
}
|
|
2469
|
-
), [t, r]), /* @__PURE__ */ s(
|
|
2470
|
-
},
|
|
2470
|
+
), [t, r]), /* @__PURE__ */ s(tr.Provider, { value: t, children: e });
|
|
2471
|
+
}, qi = ({
|
|
2471
2472
|
breadcrumbs: e,
|
|
2472
2473
|
tabs: t,
|
|
2473
2474
|
...r
|
|
2474
2475
|
}) => {
|
|
2475
|
-
const i =
|
|
2476
|
+
const i = _n();
|
|
2476
2477
|
return /* @__PURE__ */ s(
|
|
2477
2478
|
dt.Header,
|
|
2478
2479
|
{
|
|
@@ -2499,11 +2500,11 @@ const Ea = ({
|
|
|
2499
2500
|
}))
|
|
2500
2501
|
}
|
|
2501
2502
|
);
|
|
2502
|
-
},
|
|
2503
|
-
const e =
|
|
2504
|
-
return /* @__PURE__ */
|
|
2503
|
+
}, Ea = () => {
|
|
2504
|
+
const e = rr();
|
|
2505
|
+
return /* @__PURE__ */ D(Qe, { children: [
|
|
2505
2506
|
/* @__PURE__ */ s(
|
|
2506
|
-
|
|
2507
|
+
qi,
|
|
2507
2508
|
{
|
|
2508
2509
|
pageTitle: "Play queue",
|
|
2509
2510
|
rightSideItems: []
|
|
@@ -2511,48 +2512,48 @@ const Ea = ({
|
|
|
2511
2512
|
),
|
|
2512
2513
|
/* @__PURE__ */ s(dt.Section, { children: /* @__PURE__ */ s(Ni, { playQueueStore: e }) })
|
|
2513
2514
|
] });
|
|
2514
|
-
}, Vi =
|
|
2515
|
+
}, Vi = I(
|
|
2515
2516
|
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2516
|
-
|
|
2517
|
+
Y,
|
|
2517
2518
|
{
|
|
2518
2519
|
title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2519
2520
|
"aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2520
|
-
iconType: e.shuffle ? pn :
|
|
2521
|
+
iconType: e.shuffle ? pn : hn,
|
|
2521
2522
|
size: "s",
|
|
2522
2523
|
iconSize: "l",
|
|
2523
2524
|
onClick: e.toggleShuffle,
|
|
2524
2525
|
disabled: !e.canToggleShuffle
|
|
2525
2526
|
}
|
|
2526
2527
|
)
|
|
2527
|
-
), Ui =
|
|
2528
|
+
), Ui = I(
|
|
2528
2529
|
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2529
|
-
|
|
2530
|
+
Y,
|
|
2530
2531
|
{
|
|
2531
2532
|
title: "Previous",
|
|
2532
2533
|
"aria-label": "Previous",
|
|
2533
|
-
iconType:
|
|
2534
|
+
iconType: yn,
|
|
2534
2535
|
size: "s",
|
|
2535
2536
|
iconSize: "l",
|
|
2536
2537
|
onClick: e.previous,
|
|
2537
2538
|
disabled: !e.canPrevious
|
|
2538
2539
|
}
|
|
2539
2540
|
)
|
|
2540
|
-
),
|
|
2541
|
+
), Qi = I(
|
|
2541
2542
|
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2542
|
-
|
|
2543
|
+
Y,
|
|
2543
2544
|
{
|
|
2544
2545
|
title: "Skip back 10 seconds",
|
|
2545
2546
|
"aria-label": "Skip back 10 seconds",
|
|
2546
|
-
iconType:
|
|
2547
|
+
iconType: Bt,
|
|
2547
2548
|
size: "s",
|
|
2548
2549
|
iconSize: "l",
|
|
2549
2550
|
onClick: e.skipBack10,
|
|
2550
2551
|
disabled: !e.canSkipBack10
|
|
2551
2552
|
}
|
|
2552
2553
|
)
|
|
2553
|
-
),
|
|
2554
|
+
), Yi = I(
|
|
2554
2555
|
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2555
|
-
|
|
2556
|
+
Y,
|
|
2556
2557
|
{
|
|
2557
2558
|
title: "Pause",
|
|
2558
2559
|
"aria-label": "Pause",
|
|
@@ -2563,9 +2564,9 @@ const Ea = ({
|
|
|
2563
2564
|
disabled: !e.canPause
|
|
2564
2565
|
}
|
|
2565
2566
|
)
|
|
2566
|
-
),
|
|
2567
|
+
), Wi = I(
|
|
2567
2568
|
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2568
|
-
|
|
2569
|
+
Y,
|
|
2569
2570
|
{
|
|
2570
2571
|
title: "Play",
|
|
2571
2572
|
"aria-label": "Play",
|
|
@@ -2576,22 +2577,22 @@ const Ea = ({
|
|
|
2576
2577
|
disabled: !e.canPlay
|
|
2577
2578
|
}
|
|
2578
2579
|
)
|
|
2579
|
-
),
|
|
2580
|
+
), Hi = I(
|
|
2580
2581
|
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2581
|
-
|
|
2582
|
+
Y,
|
|
2582
2583
|
{
|
|
2583
2584
|
title: "Skip forward 30 seconds",
|
|
2584
2585
|
"aria-label": "Skip forward 30 seconds",
|
|
2585
|
-
iconType:
|
|
2586
|
+
iconType: Kt,
|
|
2586
2587
|
size: "s",
|
|
2587
2588
|
iconSize: "l",
|
|
2588
2589
|
onClick: e.skipForward30,
|
|
2589
2590
|
disabled: !e.canSkipForward30
|
|
2590
2591
|
}
|
|
2591
2592
|
)
|
|
2592
|
-
),
|
|
2593
|
+
), Gi = I(
|
|
2593
2594
|
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2594
|
-
|
|
2595
|
+
Y,
|
|
2595
2596
|
{
|
|
2596
2597
|
title: "Next",
|
|
2597
2598
|
"aria-label": "Next",
|
|
@@ -2602,25 +2603,25 @@ const Ea = ({
|
|
|
2602
2603
|
disabled: !e.canNext
|
|
2603
2604
|
}
|
|
2604
2605
|
)
|
|
2605
|
-
),
|
|
2606
|
-
[
|
|
2607
|
-
[
|
|
2608
|
-
[
|
|
2609
|
-
},
|
|
2606
|
+
), Ji = {
|
|
2607
|
+
[O.Off]: wn,
|
|
2608
|
+
[O.All]: bn,
|
|
2609
|
+
[O.One]: Pn
|
|
2610
|
+
}, Bi = I(
|
|
2610
2611
|
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2611
|
-
|
|
2612
|
+
Y,
|
|
2612
2613
|
{
|
|
2613
|
-
title: `Repeat: ${e.repeat ===
|
|
2614
|
-
"aria-label": `Repeat: ${e.repeat ===
|
|
2615
|
-
iconType:
|
|
2614
|
+
title: `Repeat: ${e.repeat === O.All ? "All" : e.repeat === O.One ? "One" : "Off"}`,
|
|
2615
|
+
"aria-label": `Repeat: ${e.repeat === O.All ? "All" : e.repeat === O.One ? "One" : "Off"}`,
|
|
2616
|
+
iconType: Ji[e.repeat],
|
|
2616
2617
|
size: "s",
|
|
2617
2618
|
iconSize: "l",
|
|
2618
2619
|
onClick: e.toggleRepeat,
|
|
2619
2620
|
disabled: !e.canToggleRepeat
|
|
2620
2621
|
}
|
|
2621
2622
|
)
|
|
2622
|
-
),
|
|
2623
|
-
({ bottomBarStore: e }) => /* @__PURE__ */
|
|
2623
|
+
), Ki = I(
|
|
2624
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ D(
|
|
2624
2625
|
oe,
|
|
2625
2626
|
{
|
|
2626
2627
|
responsive: !1,
|
|
@@ -2630,11 +2631,11 @@ const Ea = ({
|
|
|
2630
2631
|
children: [
|
|
2631
2632
|
/* @__PURE__ */ s(Vi, { bottomBarStore: e }),
|
|
2632
2633
|
/* @__PURE__ */ s(Ui, { bottomBarStore: e }),
|
|
2633
|
-
/* @__PURE__ */ s(
|
|
2634
|
-
e.playing ? /* @__PURE__ */ s(
|
|
2634
|
+
/* @__PURE__ */ s(Qi, { bottomBarStore: e }),
|
|
2635
|
+
e.playing ? /* @__PURE__ */ s(Yi, { bottomBarStore: e }) : /* @__PURE__ */ s(Wi, { bottomBarStore: e }),
|
|
2636
|
+
/* @__PURE__ */ s(Hi, { bottomBarStore: e }),
|
|
2635
2637
|
/* @__PURE__ */ s(Gi, { bottomBarStore: e }),
|
|
2636
|
-
/* @__PURE__ */ s(
|
|
2637
|
-
/* @__PURE__ */ s(Ki, { bottomBarStore: e })
|
|
2638
|
+
/* @__PURE__ */ s(Bi, { bottomBarStore: e })
|
|
2638
2639
|
]
|
|
2639
2640
|
}
|
|
2640
2641
|
)
|
|
@@ -2647,14 +2648,14 @@ const Ea = ({
|
|
|
2647
2648
|
items: [
|
|
2648
2649
|
{
|
|
2649
2650
|
name: "Open in new tab",
|
|
2650
|
-
icon: /* @__PURE__ */ s(
|
|
2651
|
+
icon: /* @__PURE__ */ s(Q, { type: Sn }),
|
|
2651
2652
|
onClick: async () => {
|
|
2652
2653
|
t(), await r.pause(), window.open(e.dto.url, "_blank");
|
|
2653
2654
|
}
|
|
2654
2655
|
},
|
|
2655
2656
|
{
|
|
2656
2657
|
name: "Copy link address",
|
|
2657
|
-
icon: /* @__PURE__ */ s(
|
|
2658
|
+
icon: /* @__PURE__ */ s(Q, { type: "" }),
|
|
2658
2659
|
onClick: async () => {
|
|
2659
2660
|
t(), await navigator.clipboard.writeText(
|
|
2660
2661
|
e.dto.url
|
|
@@ -2663,7 +2664,7 @@ const Ea = ({
|
|
|
2663
2664
|
},
|
|
2664
2665
|
{
|
|
2665
2666
|
name: "Copy link text",
|
|
2666
|
-
icon: /* @__PURE__ */ s(
|
|
2667
|
+
icon: /* @__PURE__ */ s(Q, { type: "" }),
|
|
2667
2668
|
onClick: async () => {
|
|
2668
2669
|
t(), await navigator.clipboard.writeText(
|
|
2669
2670
|
e.dto.title
|
|
@@ -2684,9 +2685,9 @@ const Ea = ({
|
|
|
2684
2685
|
xe,
|
|
2685
2686
|
{
|
|
2686
2687
|
button: /* @__PURE__ */ s(
|
|
2687
|
-
|
|
2688
|
+
Qt,
|
|
2688
2689
|
{
|
|
2689
|
-
iconType:
|
|
2690
|
+
iconType: fr[e.type],
|
|
2690
2691
|
size: "s",
|
|
2691
2692
|
onClick: i,
|
|
2692
2693
|
children: e.title
|
|
@@ -2706,7 +2707,7 @@ const Ea = ({
|
|
|
2706
2707
|
}
|
|
2707
2708
|
);
|
|
2708
2709
|
}
|
|
2709
|
-
), ea =
|
|
2710
|
+
), ea = I(
|
|
2710
2711
|
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2711
2712
|
oe,
|
|
2712
2713
|
{
|
|
@@ -2717,9 +2718,9 @@ const Ea = ({
|
|
|
2717
2718
|
children: e.currentItem && /* @__PURE__ */ s(Zi, { item: e.currentItem })
|
|
2718
2719
|
}
|
|
2719
2720
|
)
|
|
2720
|
-
), ta =
|
|
2721
|
+
), ta = I(
|
|
2721
2722
|
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2722
|
-
|
|
2723
|
+
Y,
|
|
2723
2724
|
{
|
|
2724
2725
|
title: "Mute",
|
|
2725
2726
|
"aria-label": "Mute",
|
|
@@ -2729,7 +2730,7 @@ const Ea = ({
|
|
|
2729
2730
|
disabled: !e.playerStore.controller.supports("setMuted")
|
|
2730
2731
|
}
|
|
2731
2732
|
)
|
|
2732
|
-
), ra =
|
|
2733
|
+
), ra = I(
|
|
2733
2734
|
({
|
|
2734
2735
|
bottomBarStore: e,
|
|
2735
2736
|
button: t,
|
|
@@ -2755,7 +2756,7 @@ const Ea = ({
|
|
|
2755
2756
|
isOpen: r,
|
|
2756
2757
|
closePopover: i,
|
|
2757
2758
|
anchorPosition: "upRight",
|
|
2758
|
-
children: /* @__PURE__ */ s(at, { children: /* @__PURE__ */
|
|
2759
|
+
children: /* @__PURE__ */ s(at, { children: /* @__PURE__ */ D(
|
|
2759
2760
|
oe,
|
|
2760
2761
|
{
|
|
2761
2762
|
responsive: !1,
|
|
@@ -2765,7 +2766,7 @@ const Ea = ({
|
|
|
2765
2766
|
children: [
|
|
2766
2767
|
/* @__PURE__ */ s(ta, { bottomBarStore: e }),
|
|
2767
2768
|
/* @__PURE__ */ s(
|
|
2768
|
-
|
|
2769
|
+
Gt,
|
|
2769
2770
|
{
|
|
2770
2771
|
min: 0,
|
|
2771
2772
|
max: 100,
|
|
@@ -2784,7 +2785,7 @@ const Ea = ({
|
|
|
2784
2785
|
}
|
|
2785
2786
|
);
|
|
2786
2787
|
}
|
|
2787
|
-
), na =
|
|
2788
|
+
), na = I(
|
|
2788
2789
|
({ bottomBarStore: e }) => {
|
|
2789
2790
|
const [t, r] = z(!1);
|
|
2790
2791
|
return /* @__PURE__ */ s(
|
|
@@ -2792,7 +2793,7 @@ const Ea = ({
|
|
|
2792
2793
|
{
|
|
2793
2794
|
bottomBarStore: e,
|
|
2794
2795
|
button: /* @__PURE__ */ s(
|
|
2795
|
-
|
|
2796
|
+
Y,
|
|
2796
2797
|
{
|
|
2797
2798
|
title: "Volume",
|
|
2798
2799
|
"aria-label": "Volume",
|
|
@@ -2813,16 +2814,16 @@ const Ea = ({
|
|
|
2813
2814
|
), ia = ({
|
|
2814
2815
|
onClickPlayQueueButton: e
|
|
2815
2816
|
}) => /* @__PURE__ */ s(
|
|
2816
|
-
|
|
2817
|
+
Y,
|
|
2817
2818
|
{
|
|
2818
2819
|
title: "Play queue",
|
|
2819
2820
|
"aria-label": "Play queue",
|
|
2820
|
-
iconType:
|
|
2821
|
+
iconType: En,
|
|
2821
2822
|
size: "s",
|
|
2822
2823
|
iconSize: "l",
|
|
2823
2824
|
onClick: e
|
|
2824
2825
|
}
|
|
2825
|
-
), aa =
|
|
2826
|
+
), aa = I(
|
|
2826
2827
|
({
|
|
2827
2828
|
bottomBarStore: e,
|
|
2828
2829
|
closePopover: t
|
|
@@ -2832,16 +2833,16 @@ const Ea = ({
|
|
|
2832
2833
|
}, [e, t]), a = $(async () => {
|
|
2833
2834
|
await e.skipForward30(), t();
|
|
2834
2835
|
}, [e, t]), o = $(
|
|
2835
|
-
async (
|
|
2836
|
-
await r.setPlaybackRate(
|
|
2836
|
+
async (S) => {
|
|
2837
|
+
await r.setPlaybackRate(S), t();
|
|
2837
2838
|
},
|
|
2838
2839
|
[r, t]
|
|
2839
2840
|
), c = $(async () => {
|
|
2840
2841
|
e.currentItem !== void 0 && await e.playQueueStore.removeItems([
|
|
2841
2842
|
e.currentItem
|
|
2842
2843
|
]), t();
|
|
2843
|
-
}, [e, t]), [f, p] = z(),
|
|
2844
|
-
await e.playerStore.controller.getPlaybackRate().then((
|
|
2844
|
+
}, [e, t]), [f, p] = z(), v = $(async () => {
|
|
2845
|
+
await e.playerStore.controller.getPlaybackRate().then((S) => p(S));
|
|
2845
2846
|
}, [e]), P = Ve(
|
|
2846
2847
|
() => [
|
|
2847
2848
|
{
|
|
@@ -2849,22 +2850,22 @@ const Ea = ({
|
|
|
2849
2850
|
items: [
|
|
2850
2851
|
{
|
|
2851
2852
|
name: "Speed",
|
|
2852
|
-
icon: /* @__PURE__ */ s(
|
|
2853
|
+
icon: /* @__PURE__ */ s(Q, { type: Tn }),
|
|
2853
2854
|
panel: 1,
|
|
2854
|
-
onClick:
|
|
2855
|
+
onClick: v,
|
|
2855
2856
|
disabled: !e.playerStore.controller.supports(
|
|
2856
2857
|
"getPlaybackRate"
|
|
2857
2858
|
)
|
|
2858
2859
|
},
|
|
2859
2860
|
{
|
|
2860
2861
|
name: "Skip back 10 seconds",
|
|
2861
|
-
icon: /* @__PURE__ */ s(
|
|
2862
|
+
icon: /* @__PURE__ */ s(Q, { type: Bt }),
|
|
2862
2863
|
onClick: i,
|
|
2863
2864
|
disabled: !e.canSkipBack10
|
|
2864
2865
|
},
|
|
2865
2866
|
{
|
|
2866
2867
|
name: "Skip forward 30 seconds",
|
|
2867
|
-
icon: /* @__PURE__ */ s(
|
|
2868
|
+
icon: /* @__PURE__ */ s(Q, { type: Kt }),
|
|
2868
2869
|
onClick: a,
|
|
2869
2870
|
disabled: !e.canSkipForward30
|
|
2870
2871
|
},
|
|
@@ -2873,7 +2874,7 @@ const Ea = ({
|
|
|
2873
2874
|
},
|
|
2874
2875
|
{
|
|
2875
2876
|
name: "Remove from play queue",
|
|
2876
|
-
icon: /* @__PURE__ */ s(
|
|
2877
|
+
icon: /* @__PURE__ */ s(Q, { type: ft }),
|
|
2877
2878
|
onClick: c,
|
|
2878
2879
|
disabled: e.playQueueStore.isEmpty
|
|
2879
2880
|
}
|
|
@@ -2883,10 +2884,10 @@ const Ea = ({
|
|
|
2883
2884
|
id: 1,
|
|
2884
2885
|
title: "Speed",
|
|
2885
2886
|
items: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2].map(
|
|
2886
|
-
(
|
|
2887
|
-
name:
|
|
2888
|
-
onClick: () => o(
|
|
2889
|
-
icon:
|
|
2887
|
+
(S) => ({
|
|
2888
|
+
name: S.toString(),
|
|
2889
|
+
onClick: () => o(S),
|
|
2890
|
+
icon: S === f ? "check" : "empty",
|
|
2890
2891
|
disabled: !e.playerStore.controller.supports(
|
|
2891
2892
|
"setPlaybackRate"
|
|
2892
2893
|
)
|
|
@@ -2896,7 +2897,7 @@ const Ea = ({
|
|
|
2896
2897
|
],
|
|
2897
2898
|
[
|
|
2898
2899
|
e,
|
|
2899
|
-
|
|
2900
|
+
v,
|
|
2900
2901
|
i,
|
|
2901
2902
|
a,
|
|
2902
2903
|
c,
|
|
@@ -2937,11 +2938,11 @@ const Ea = ({
|
|
|
2937
2938
|
{
|
|
2938
2939
|
bottomBarStore: e,
|
|
2939
2940
|
button: /* @__PURE__ */ s(
|
|
2940
|
-
|
|
2941
|
+
Y,
|
|
2941
2942
|
{
|
|
2942
2943
|
title: "More options",
|
|
2943
2944
|
"aria-label": "More options",
|
|
2944
|
-
iconType:
|
|
2945
|
+
iconType: Jt,
|
|
2945
2946
|
size: "s",
|
|
2946
2947
|
iconSize: "l",
|
|
2947
2948
|
onClick: () => r(!t)
|
|
@@ -2956,7 +2957,7 @@ const Ea = ({
|
|
|
2956
2957
|
({
|
|
2957
2958
|
bottomBarStore: e,
|
|
2958
2959
|
onClickPlayQueueButton: t
|
|
2959
|
-
}) => /* @__PURE__ */
|
|
2960
|
+
}) => /* @__PURE__ */ D(
|
|
2960
2961
|
oe,
|
|
2961
2962
|
{
|
|
2962
2963
|
responsive: !1,
|
|
@@ -2975,7 +2976,7 @@ const Ea = ({
|
|
|
2975
2976
|
]
|
|
2976
2977
|
}
|
|
2977
2978
|
)
|
|
2978
|
-
), ca =
|
|
2979
|
+
), ca = I(
|
|
2979
2980
|
({ bottomBarStore: e }) => {
|
|
2980
2981
|
const t = le(), r = $(
|
|
2981
2982
|
(o) => {
|
|
@@ -3000,7 +3001,7 @@ const Ea = ({
|
|
|
3000
3001
|
[e, t]
|
|
3001
3002
|
);
|
|
3002
3003
|
return /* @__PURE__ */ s(
|
|
3003
|
-
|
|
3004
|
+
Gt,
|
|
3004
3005
|
{
|
|
3005
3006
|
min: 0,
|
|
3006
3007
|
max: 100,
|
|
@@ -3016,26 +3017,26 @@ const Ea = ({
|
|
|
3016
3017
|
}
|
|
3017
3018
|
);
|
|
3018
3019
|
}
|
|
3019
|
-
),
|
|
3020
|
+
), Ra = I(
|
|
3020
3021
|
({
|
|
3021
3022
|
bottomBarStore: e,
|
|
3022
3023
|
onClickPlayQueueButton: t
|
|
3023
|
-
}) => /* @__PURE__ */ s(on, { paddingSize: "s", children: /* @__PURE__ */
|
|
3024
|
-
/* @__PURE__ */ s(
|
|
3025
|
-
/* @__PURE__ */ s(
|
|
3026
|
-
/* @__PURE__ */ s(
|
|
3024
|
+
}) => /* @__PURE__ */ s(on, { paddingSize: "s", children: /* @__PURE__ */ D(oe, { direction: "column", gutterSize: "none", children: [
|
|
3025
|
+
/* @__PURE__ */ s(G, { children: /* @__PURE__ */ s(ca, { bottomBarStore: e }) }),
|
|
3026
|
+
/* @__PURE__ */ s(G, { children: /* @__PURE__ */ D(oe, { responsive: !1, children: [
|
|
3027
|
+
/* @__PURE__ */ s(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
|
|
3027
3028
|
ea,
|
|
3028
3029
|
{
|
|
3029
3030
|
bottomBarStore: e
|
|
3030
3031
|
}
|
|
3031
3032
|
) }),
|
|
3032
|
-
/* @__PURE__ */ s(
|
|
3033
|
-
|
|
3033
|
+
/* @__PURE__ */ s(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
|
|
3034
|
+
Ki,
|
|
3034
3035
|
{
|
|
3035
3036
|
bottomBarStore: e
|
|
3036
3037
|
}
|
|
3037
3038
|
) }),
|
|
3038
|
-
/* @__PURE__ */ s(
|
|
3039
|
+
/* @__PURE__ */ s(G, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
|
|
3039
3040
|
la,
|
|
3040
3041
|
{
|
|
3041
3042
|
bottomBarStore: e,
|
|
@@ -3047,10 +3048,10 @@ const Ea = ({
|
|
|
3047
3048
|
), Ca = (e) => /* @__PURE__ */ s(Cn, { ...e }), lt = {
|
|
3048
3049
|
width: 400,
|
|
3049
3050
|
height: 225
|
|
3050
|
-
}, Ia =
|
|
3051
|
+
}, Ia = I(
|
|
3051
3052
|
({ children: e }) => {
|
|
3052
|
-
const t =
|
|
3053
|
-
return /* @__PURE__ */
|
|
3053
|
+
const t = rr();
|
|
3054
|
+
return /* @__PURE__ */ D(
|
|
3054
3055
|
dt,
|
|
3055
3056
|
{
|
|
3056
3057
|
panelled: !0,
|
|
@@ -3059,12 +3060,12 @@ const Ea = ({
|
|
|
3059
3060
|
},
|
|
3060
3061
|
children: [
|
|
3061
3062
|
e,
|
|
3062
|
-
!t.isEmpty && /* @__PURE__ */ s(
|
|
3063
|
+
!t.isEmpty && /* @__PURE__ */ s(Ht, { style: { blockSize: lt.height } })
|
|
3063
3064
|
]
|
|
3064
3065
|
}
|
|
3065
3066
|
);
|
|
3066
3067
|
}
|
|
3067
|
-
), xa =
|
|
3068
|
+
), xa = I(
|
|
3068
3069
|
({ miniPlayerStore: e }) => {
|
|
3069
3070
|
const t = Ve(
|
|
3070
3071
|
() => ({
|
|
@@ -3113,14 +3114,14 @@ class ua {
|
|
|
3113
3114
|
playing: X,
|
|
3114
3115
|
percent: X,
|
|
3115
3116
|
seeking: X,
|
|
3116
|
-
setPlaying:
|
|
3117
|
-
setPercent:
|
|
3118
|
-
setSeeking:
|
|
3119
|
-
onControllerChange:
|
|
3120
|
-
onPlay:
|
|
3121
|
-
onPause:
|
|
3122
|
-
onEnded:
|
|
3123
|
-
onTimeUpdate:
|
|
3117
|
+
setPlaying: y,
|
|
3118
|
+
setPercent: y,
|
|
3119
|
+
setSeeking: y,
|
|
3120
|
+
onControllerChange: y.bound,
|
|
3121
|
+
onPlay: y.bound,
|
|
3122
|
+
onPause: y.bound,
|
|
3123
|
+
onEnded: y.bound,
|
|
3124
|
+
onTimeUpdate: y.bound
|
|
3124
3125
|
});
|
|
3125
3126
|
}
|
|
3126
3127
|
setPlaying(t) {
|
|
@@ -3148,27 +3149,178 @@ class ua {
|
|
|
3148
3149
|
t !== void 0 && (this.seeking || (this.percent = t));
|
|
3149
3150
|
}
|
|
3150
3151
|
}
|
|
3151
|
-
const pr =
|
|
3152
|
+
const pr = Vt(void 0), Oa = ({
|
|
3152
3153
|
children: e
|
|
3153
3154
|
}) => {
|
|
3154
3155
|
const [t] = z(
|
|
3155
3156
|
() => new ua(new er())
|
|
3156
3157
|
);
|
|
3157
3158
|
return /* @__PURE__ */ s(pr.Provider, { value: t, children: e });
|
|
3158
|
-
},
|
|
3159
|
+
}, ka = () => ct(pr);
|
|
3160
|
+
class _a {
|
|
3161
|
+
constructor(t, r, i, a) {
|
|
3162
|
+
this.playerStore = r, this.playQueueStore = i, this.diva = a, t.makeObservable(this, {
|
|
3163
|
+
playing: w,
|
|
3164
|
+
currentItem: w,
|
|
3165
|
+
repeat: w,
|
|
3166
|
+
shuffle: w,
|
|
3167
|
+
canToggleRepeat: w,
|
|
3168
|
+
canToggleShuffle: w,
|
|
3169
|
+
canPlay: w,
|
|
3170
|
+
canPause: w,
|
|
3171
|
+
canPrevious: w,
|
|
3172
|
+
canNext: w,
|
|
3173
|
+
canSkipBack10: w,
|
|
3174
|
+
canSkipForward30: w,
|
|
3175
|
+
toggleRepeat: y.bound,
|
|
3176
|
+
toggleShuffle: y.bound,
|
|
3177
|
+
play: y.bound,
|
|
3178
|
+
pause: y.bound,
|
|
3179
|
+
previous: y.bound,
|
|
3180
|
+
next: y.bound,
|
|
3181
|
+
skipBack10: y.bound,
|
|
3182
|
+
skipForward30: y.bound
|
|
3183
|
+
});
|
|
3184
|
+
}
|
|
3185
|
+
get playing() {
|
|
3186
|
+
return this.playerStore.playing;
|
|
3187
|
+
}
|
|
3188
|
+
get currentItem() {
|
|
3189
|
+
return this.playQueueStore.currentItem;
|
|
3190
|
+
}
|
|
3191
|
+
get repeat() {
|
|
3192
|
+
return this.playQueueStore.repeat;
|
|
3193
|
+
}
|
|
3194
|
+
get shuffle() {
|
|
3195
|
+
return this.playQueueStore.shuffle;
|
|
3196
|
+
}
|
|
3197
|
+
get canToggleRepeat() {
|
|
3198
|
+
return !0;
|
|
3199
|
+
}
|
|
3200
|
+
get canToggleShuffle() {
|
|
3201
|
+
return !1;
|
|
3202
|
+
}
|
|
3203
|
+
get canPlay() {
|
|
3204
|
+
return this.playQueueStore.canPlay && this.playerStore.controller.supports("play");
|
|
3205
|
+
}
|
|
3206
|
+
get canPause() {
|
|
3207
|
+
return this.playQueueStore.canPause && this.playerStore.controller.supports("pause");
|
|
3208
|
+
}
|
|
3209
|
+
get canPrevious() {
|
|
3210
|
+
return !this.playQueueStore.isEmpty;
|
|
3211
|
+
}
|
|
3212
|
+
get canNext() {
|
|
3213
|
+
return this.playQueueStore.hasNextItem;
|
|
3214
|
+
}
|
|
3215
|
+
get canSkipBack10() {
|
|
3216
|
+
return !this.playQueueStore.isEmpty && this.playerStore.controller.supports("setCurrentTime");
|
|
3217
|
+
}
|
|
3218
|
+
get canSkipForward30() {
|
|
3219
|
+
return !this.playQueueStore.isEmpty && this.playerStore.controller.supports("setCurrentTime");
|
|
3220
|
+
}
|
|
3221
|
+
toggleRepeat() {
|
|
3222
|
+
this.playQueueStore.toggleRepeat();
|
|
3223
|
+
}
|
|
3224
|
+
toggleShuffle() {
|
|
3225
|
+
this.playQueueStore.toggleShuffle();
|
|
3226
|
+
}
|
|
3227
|
+
play() {
|
|
3228
|
+
return this.diva.play();
|
|
3229
|
+
}
|
|
3230
|
+
pause() {
|
|
3231
|
+
return this.diva.pause();
|
|
3232
|
+
}
|
|
3233
|
+
async previous() {
|
|
3234
|
+
if (this.playQueueStore.hasPreviousItem) {
|
|
3235
|
+
const t = await this.diva.getCurrentTime();
|
|
3236
|
+
t === void 0 || t < 5 ? await this.playQueueStore.previous() : await this.diva.setCurrentTime(0);
|
|
3237
|
+
} else
|
|
3238
|
+
await this.diva.setCurrentTime(0);
|
|
3239
|
+
}
|
|
3240
|
+
next() {
|
|
3241
|
+
return this.playQueueStore.next();
|
|
3242
|
+
}
|
|
3243
|
+
async skipBack10() {
|
|
3244
|
+
const t = await this.diva.getCurrentTime();
|
|
3245
|
+
t !== void 0 && await this.diva.setCurrentTime(t - 10);
|
|
3246
|
+
}
|
|
3247
|
+
async skipForward30() {
|
|
3248
|
+
const t = await this.diva.getCurrentTime();
|
|
3249
|
+
t !== void 0 && await this.diva.setCurrentTime(t + 30);
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
class Aa {
|
|
3253
|
+
constructor(t, r, i, a) {
|
|
3254
|
+
this.playerStore = r, this.playQueueStore = i, this.diva = a, t.makeObservable(this, {
|
|
3255
|
+
currentItem: w,
|
|
3256
|
+
onLoaded: y.bound,
|
|
3257
|
+
onPlay: y.bound,
|
|
3258
|
+
onPause: y.bound,
|
|
3259
|
+
onEnded: y.bound,
|
|
3260
|
+
onTimeUpdate: y.bound,
|
|
3261
|
+
onControllerChange: y.bound
|
|
3262
|
+
});
|
|
3263
|
+
}
|
|
3264
|
+
get currentItem() {
|
|
3265
|
+
return this.playQueueStore.currentItem;
|
|
3266
|
+
}
|
|
3267
|
+
async onLoaded() {
|
|
3268
|
+
this.playQueueStore.interacted && await this.diva.play();
|
|
3269
|
+
}
|
|
3270
|
+
onPlay() {
|
|
3271
|
+
this.playerStore.onPlay();
|
|
3272
|
+
}
|
|
3273
|
+
onPause() {
|
|
3274
|
+
this.playerStore.onPause();
|
|
3275
|
+
}
|
|
3276
|
+
async onEnded() {
|
|
3277
|
+
switch (this.playQueueStore.repeat) {
|
|
3278
|
+
case O.One:
|
|
3279
|
+
await this.diva.setCurrentTime(0);
|
|
3280
|
+
break;
|
|
3281
|
+
case O.Off:
|
|
3282
|
+
case O.All:
|
|
3283
|
+
if (this.playQueueStore.isLastItem)
|
|
3284
|
+
switch (this.playQueueStore.repeat) {
|
|
3285
|
+
case O.Off:
|
|
3286
|
+
this.playerStore.onEnded();
|
|
3287
|
+
break;
|
|
3288
|
+
case O.All:
|
|
3289
|
+
this.playQueueStore.hasMultipleItems ? await this.playQueueStore.goToFirst() : await this.diva.setCurrentTime(0);
|
|
3290
|
+
break;
|
|
3291
|
+
}
|
|
3292
|
+
else
|
|
3293
|
+
await this.playQueueStore.next();
|
|
3294
|
+
break;
|
|
3295
|
+
}
|
|
3296
|
+
}
|
|
3297
|
+
onTimeUpdate(t) {
|
|
3298
|
+
this.playerStore.onTimeUpdate(t);
|
|
3299
|
+
}
|
|
3300
|
+
onControllerChange(t) {
|
|
3301
|
+
this.playerStore.onControllerChange(t);
|
|
3302
|
+
}
|
|
3303
|
+
}
|
|
3159
3304
|
export {
|
|
3160
|
-
|
|
3305
|
+
Ra as BottomBar,
|
|
3306
|
+
_a as BottomBarStore,
|
|
3161
3307
|
Ca as HydrangeanDivaProvider,
|
|
3162
3308
|
Ia as MediaPlayerLayout,
|
|
3163
3309
|
xa as MiniPlayer,
|
|
3310
|
+
Aa as MiniPlayerStore,
|
|
3164
3311
|
er as MobXObservableStateProvider,
|
|
3165
3312
|
Sa as ObservableStateProvider,
|
|
3166
3313
|
Ni as PlayQueue,
|
|
3167
|
-
|
|
3168
|
-
Ea as
|
|
3314
|
+
qe as PlayQueueItemStore,
|
|
3315
|
+
Ea as PlayQueuePage,
|
|
3316
|
+
Li as PlayQueueStore,
|
|
3317
|
+
tr as PlayQueueStoreContext,
|
|
3318
|
+
Ta as PlayQueueStoreProvider,
|
|
3319
|
+
ua as PlayerStore,
|
|
3169
3320
|
Oa as PlayerStoreProvider,
|
|
3170
|
-
|
|
3321
|
+
O as RepeatMode,
|
|
3171
3322
|
Zt as bottomBarHeight,
|
|
3172
|
-
|
|
3323
|
+
rr as usePlayQueueStore,
|
|
3324
|
+
ka as usePlayerStore
|
|
3173
3325
|
};
|
|
3174
3326
|
//# sourceMappingURL=index.es.js.map
|