@aigamo/hydrangean-diva 0.0.1-alpha.13 → 0.0.1-alpha.15
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/App.d.ts +6 -0
- package/dist/api/apis/MediaPlayerPlaylistsApi.d.ts +79 -0
- package/dist/api/apis/index.d.ts +1 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/models/HydrangeanDivaMediaPlayerContractsPlaylistsDtosGetPlaylistResponseDto.d.ts +22 -0
- package/dist/api/models/HydrangeanDivaMediaPlayerContractsPlaylistsDtosListPlaylistsResponseDto.d.ts +22 -0
- package/dist/api/models/HydrangeanDivaMediaPlayerContractsPlaylistsDtosPlaylistDto.d.ts +38 -0
- package/dist/api/models/HydrangeanDivaMediaPlayerEndpointsPlaylistsCreatePlaylistRequest.d.ts +32 -0
- package/dist/api/models/HydrangeanDivaMediaPlayerEndpointsPlaylistsRenamePlaylistRequest.d.ts +32 -0
- package/dist/api/models/index.d.ts +5 -0
- package/dist/api/runtime.d.ts +184 -0
- package/dist/common/components/AppLink.d.ts +6 -0
- package/dist/common/components/AppPageTemplateHeader.d.ts +18 -0
- package/dist/features/common/components/useLocationStateHandler.d.ts +10 -0
- package/dist/features/common/helpers/bottomBarHeight.d.ts +1 -0
- package/dist/features/common/helpers/featureFlags.d.ts +5 -0
- package/dist/features/common/helpers/miniPlayerSize.d.ts +4 -0
- package/dist/features/common/helpers/videoServiceIcons.d.ts +2 -0
- package/dist/features/media-player.play-queue/components/AddVideoButton.d.ts +6 -3
- package/dist/features/media-player.play-queue/components/{HydrangeanDiva.d.ts → PlayQueue.d.ts} +2 -2
- package/dist/features/media-player.play-queue/components/index.d.ts +1 -1
- package/dist/features/media-player.play-queue/helpers/isNoembedResult.d.ts +5 -0
- package/dist/features/media-player.play-queue/interfaces/IPlayQueueStore.d.ts +1 -0
- package/dist/features/media-player.player/components/BottomBar.d.ts +0 -1
- package/dist/features/media-player.player/components/BottomBarCenterControls.d.ts +11 -0
- package/dist/features/media-player.player/components/BottomBarLeftControls.d.ts +9 -0
- package/dist/features/media-player.player/components/BottomBarRightControls.d.ts +10 -0
- package/dist/features/media-player.player/components/CookieConsentPanel.d.ts +8 -0
- package/dist/features/media-player.player/components/MiniPlayer.d.ts +0 -4
- package/dist/features/media-player.player/components/SeekBar.d.ts +11 -0
- package/dist/features/media-player.player/interfaces/IPlayerStore.d.ts +3 -1
- package/dist/features/media-player.player/stores/PlayerStore.d.ts +3 -1
- package/dist/features/media-player.playlists/components/CreatePlaylistButton.d.ts +10 -0
- package/dist/features/media-player.playlists/helpers/mediaPlayerPlaylistsApi.d.ts +2 -0
- package/dist/features/media-player.playlists/pages/PlaylistDetailsPage.d.ts +7 -0
- package/dist/features/media-player.playlists/pages/PlaylistListPage.d.ts +2 -0
- package/dist/features/media-player.playlists/stores/PlaylistListStore.d.ts +16 -0
- package/dist/index.cjs.js +12 -12
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1031 -961
- package/dist/index.es.js.map +1 -1
- package/dist/routeTree.gen.d.ts +91 -0
- package/dist/routes/__root.d.ts +1 -0
- package/dist/routes/_authenticated/index.d.ts +1 -0
- package/dist/routes/_authenticated/play-queue.d.ts +1 -0
- package/dist/routes/_authenticated/playlists/$playlistId.index.d.ts +1 -0
- package/dist/routes/_authenticated/playlists/index.d.ts +1 -0
- package/dist/routes/_authenticated.d.ts +1 -0
- package/package.json +18 -12
- package/dist/AppRoutes.d.ts +0 -4
- /package/dist/{common → features/common}/components/Compose.d.ts +0 -0
- /package/dist/features/{media-player → media-player.header}/components/Header.d.ts +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Pr = (t, e, n) => e in t ?
|
|
3
|
-
var
|
|
4
|
-
import { makeObservable as
|
|
5
|
-
import * as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
var Sr = Object.defineProperty;
|
|
2
|
+
var Pr = (t, e, n) => e in t ? Sr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var B = (t, e, n) => Pr(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { makeObservable as wr, action as y, computed as A, observable as Z, reaction as Or } from "mobx";
|
|
5
|
+
import * as te from "react";
|
|
6
|
+
import Dt, { forwardRef as _r, useContext as ot, memo as me, useState as q, useCallback as D, useMemo as at, createContext as zt, useEffect as Ar, useLayoutEffect as kr } from "react";
|
|
7
|
+
import Mr from "@emotion/cache";
|
|
8
|
+
import { useNostalgicDiva as ne, findVideoService as Fr, NostalgicDiva as jr, nullPlayerController as Nr } from "@aigamo/nostalgic-diva";
|
|
9
|
+
import { EuiButton as re, useGeneratedHtmlId as $r, EuiModalHeaderTitle as Dr, EuiModalHeader as zr, EuiForm as Lr, EuiFormRow as et, EuiFieldText as Rt, EuiModalBody as Vr, EuiModalFooter as Yr, EuiButtonEmpty as Lt, EuiModal as Br, useEuiTheme as Vt, EuiCheckbox as Yt, EuiTableHeaderCellCheckbox as Wr, EuiTableHeader as Ur, EuiTableRowCell as tt, EuiTableRowCellCheckbox as qr, EuiLink as Gr, EuiTableRow as Hr, EuiTable as Jr, EuiButtonIcon as H, EuiPopover as st, EuiIcon as G, EuiContextMenu as Bt, EuiTableHeaderCell as Ke, EuiCodeBlock as Kr, EuiFlyout as Xr, EuiFlexGroup as se, EuiFlexItem as J, EuiSpacer as Wt, EuiEmptyPrompt as Zr, EuiRange as Ut, EuiBottomBar as Qr, EuiPageTemplate as en } from "@elastic/eui";
|
|
10
|
+
import { AddRegular as lt, PlayRegular as tn, DismissRegular as ct, MoreHorizontalFilled as qt, ArrowUploadRegular as rn, ArrowDownloadRegular as nn, WindowDevToolsRegular as on, DeleteRegular as an, ArrowRepeat1Filled as sn, ArrowRepeatAllFilled as ln, ArrowRepeatAllOffFilled as cn, ArrowShuffleFilled as un, ArrowShuffleOffFilled as dn, PreviousFilled as fn, PauseFilled as mn, PlayFilled as hn, NextFilled as vn, Speaker2Regular as Gt, TopSpeedRegular as pn, SkipBack10Regular as yn, SkipForward30Regular as gn, NavigationPlayRegular as bn } from "@fluentui/react-icons";
|
|
11
|
+
import { observer as N } from "mobx-react-lite";
|
|
12
12
|
import { ReactSortable as En } from "react-sortablejs";
|
|
13
|
-
import { pull as
|
|
13
|
+
import { pull as St } from "lodash-es";
|
|
14
14
|
import Tn from "ajv";
|
|
15
|
-
class
|
|
15
|
+
class Ht {
|
|
16
16
|
makeObservable(e, n) {
|
|
17
|
-
return
|
|
17
|
+
return wr(e, n);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
class
|
|
20
|
+
class Ai {
|
|
21
21
|
makeObservable(e, n) {
|
|
22
22
|
return e;
|
|
23
23
|
}
|
|
@@ -32,21 +32,21 @@ var $e = { exports: {} }, xe = {};
|
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
34
|
*/
|
|
35
|
-
var
|
|
35
|
+
var Pt;
|
|
36
36
|
function xn() {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
var t =
|
|
40
|
-
function
|
|
41
|
-
var E,
|
|
42
|
-
p !== void 0 && (
|
|
43
|
-
for (E in m) i.call(m, E) && !l.hasOwnProperty(E) && (
|
|
44
|
-
if (h && h.defaultProps) for (E in m = h.defaultProps, m)
|
|
45
|
-
return { $$typeof: e, type: h, key:
|
|
46
|
-
}
|
|
47
|
-
return xe.Fragment = n, xe.jsx =
|
|
37
|
+
if (Pt) return xe;
|
|
38
|
+
Pt = 1;
|
|
39
|
+
var t = Dt, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
40
|
+
function d(h, m, p) {
|
|
41
|
+
var E, S = {}, I = null, $ = null;
|
|
42
|
+
p !== void 0 && (I = "" + p), m.key !== void 0 && (I = "" + m.key), m.ref !== void 0 && ($ = m.ref);
|
|
43
|
+
for (E in m) i.call(m, E) && !l.hasOwnProperty(E) && (S[E] = m[E]);
|
|
44
|
+
if (h && h.defaultProps) for (E in m = h.defaultProps, m) S[E] === void 0 && (S[E] = m[E]);
|
|
45
|
+
return { $$typeof: e, type: h, key: I, ref: $, props: S, _owner: a.current };
|
|
46
|
+
}
|
|
47
|
+
return xe.Fragment = n, xe.jsx = d, xe.jsxs = d, xe;
|
|
48
48
|
}
|
|
49
|
-
var
|
|
49
|
+
var Ce = {};
|
|
50
50
|
/**
|
|
51
51
|
* @license React
|
|
52
52
|
* react-jsx-runtime.development.js
|
|
@@ -56,44 +56,44 @@ var Se = {};
|
|
|
56
56
|
* This source code is licensed under the MIT license found in the
|
|
57
57
|
* LICENSE file in the root directory of this source tree.
|
|
58
58
|
*/
|
|
59
|
-
var
|
|
60
|
-
function
|
|
61
|
-
return
|
|
62
|
-
var t =
|
|
59
|
+
var wt;
|
|
60
|
+
function Cn() {
|
|
61
|
+
return wt || (wt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
62
|
+
var t = Dt, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), h = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), k = Symbol.iterator, W = "@@iterator";
|
|
63
63
|
function Q(r) {
|
|
64
64
|
if (r === null || typeof r != "object")
|
|
65
65
|
return null;
|
|
66
|
-
var s =
|
|
66
|
+
var s = k && r[k] || r[W];
|
|
67
67
|
return typeof s == "function" ? s : null;
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
function
|
|
69
|
+
var L = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
70
|
+
function P(r) {
|
|
71
71
|
{
|
|
72
72
|
for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), v = 1; v < s; v++)
|
|
73
73
|
u[v - 1] = arguments[v];
|
|
74
|
-
|
|
74
|
+
M("error", r, u);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function M(r, s, u) {
|
|
78
78
|
{
|
|
79
|
-
var v =
|
|
79
|
+
var v = L.ReactDebugCurrentFrame, T = v.getStackAddendum();
|
|
80
80
|
T !== "" && (s += "%s", u = u.concat([T]));
|
|
81
|
-
var
|
|
81
|
+
var R = u.map(function(b) {
|
|
82
82
|
return String(b);
|
|
83
83
|
});
|
|
84
|
-
|
|
84
|
+
R.unshift("Warning: " + s), Function.prototype.apply.call(console[r], console, R);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
var
|
|
87
|
+
var O = !1, c = !1, V = !1, he = !1, Pe = !1, we;
|
|
88
88
|
we = Symbol.for("react.module.reference");
|
|
89
|
-
function
|
|
90
|
-
return !!(typeof r == "string" || typeof r == "function" || r === i || r === l ||
|
|
89
|
+
function Le(r) {
|
|
90
|
+
return !!(typeof r == "string" || typeof r == "function" || r === i || r === l || Pe || r === a || r === p || r === E || he || r === $ || O || c || V || typeof r == "object" && r !== null && (r.$$typeof === I || r.$$typeof === S || r.$$typeof === d || r.$$typeof === h || r.$$typeof === m || // This needs to include all possible module reference object
|
|
91
91
|
// types supported by any Flight configuration anywhere since
|
|
92
92
|
// we don't know which Flight build this will end up being used
|
|
93
93
|
// with.
|
|
94
94
|
r.$$typeof === we || r.getModuleId !== void 0));
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Ve(r, s, u) {
|
|
97
97
|
var v = r.displayName;
|
|
98
98
|
if (v)
|
|
99
99
|
return v;
|
|
@@ -106,7 +106,7 @@ function Sn() {
|
|
|
106
106
|
function K(r) {
|
|
107
107
|
if (r == null)
|
|
108
108
|
return null;
|
|
109
|
-
if (typeof r.tag == "number" &&
|
|
109
|
+
if (typeof r.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
110
110
|
return r.displayName || r.name || null;
|
|
111
111
|
if (typeof r == "string")
|
|
112
112
|
return r;
|
|
@@ -129,18 +129,18 @@ function Sn() {
|
|
|
129
129
|
case h:
|
|
130
130
|
var s = r;
|
|
131
131
|
return Oe(s) + ".Consumer";
|
|
132
|
-
case
|
|
132
|
+
case d:
|
|
133
133
|
var u = r;
|
|
134
134
|
return Oe(u._context) + ".Provider";
|
|
135
135
|
case m:
|
|
136
|
-
return
|
|
137
|
-
case
|
|
136
|
+
return Ve(r, r.render, "ForwardRef");
|
|
137
|
+
case S:
|
|
138
138
|
var v = r.displayName || null;
|
|
139
139
|
return v !== null ? v : K(r.type) || "Memo";
|
|
140
|
-
case
|
|
141
|
-
var T = r,
|
|
140
|
+
case I: {
|
|
141
|
+
var T = r, R = T._payload, b = T._init;
|
|
142
142
|
try {
|
|
143
|
-
return K(b(
|
|
143
|
+
return K(b(R));
|
|
144
144
|
} catch {
|
|
145
145
|
return null;
|
|
146
146
|
}
|
|
@@ -148,13 +148,13 @@ function Sn() {
|
|
|
148
148
|
}
|
|
149
149
|
return null;
|
|
150
150
|
}
|
|
151
|
-
var ee = Object.assign,
|
|
151
|
+
var ee = Object.assign, ie = 0, _e, Ae, ve, ke, pe, Me, Fe;
|
|
152
152
|
function je() {
|
|
153
153
|
}
|
|
154
154
|
je.__reactDisabledLog = !0;
|
|
155
|
-
function
|
|
155
|
+
function Ye() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (ie === 0) {
|
|
158
158
|
_e = console.log, Ae = console.info, ve = console.warn, ke = console.error, pe = console.group, Me = console.groupCollapsed, Fe = console.groupEnd;
|
|
159
159
|
var r = {
|
|
160
160
|
configurable: !0,
|
|
@@ -172,12 +172,12 @@ function Sn() {
|
|
|
172
172
|
groupEnd: r
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
ie++;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function Be() {
|
|
179
179
|
{
|
|
180
|
-
if (
|
|
180
|
+
if (ie--, ie === 0) {
|
|
181
181
|
var r = {
|
|
182
182
|
configurable: !0,
|
|
183
183
|
enumerable: !0,
|
|
@@ -207,10 +207,10 @@ function Sn() {
|
|
|
207
207
|
})
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
-
|
|
210
|
+
ie < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
var ye =
|
|
213
|
+
var ye = L.ReactCurrentDispatcher, ge;
|
|
214
214
|
function le(r, s, u) {
|
|
215
215
|
{
|
|
216
216
|
if (ge === void 0)
|
|
@@ -226,10 +226,10 @@ function Sn() {
|
|
|
226
226
|
}
|
|
227
227
|
var be = !1, ce;
|
|
228
228
|
{
|
|
229
|
-
var
|
|
230
|
-
ce = new
|
|
229
|
+
var We = typeof WeakMap == "function" ? WeakMap : Map;
|
|
230
|
+
ce = new We();
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function f(r, s) {
|
|
233
233
|
if (!r || be)
|
|
234
234
|
return "";
|
|
235
235
|
{
|
|
@@ -241,8 +241,8 @@ function Sn() {
|
|
|
241
241
|
be = !0;
|
|
242
242
|
var T = Error.prepareStackTrace;
|
|
243
243
|
Error.prepareStackTrace = void 0;
|
|
244
|
-
var
|
|
245
|
-
|
|
244
|
+
var R;
|
|
245
|
+
R = ye.current, ye.current = null, Ye();
|
|
246
246
|
try {
|
|
247
247
|
if (s) {
|
|
248
248
|
var b = function() {
|
|
@@ -255,63 +255,63 @@ function Sn() {
|
|
|
255
255
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
256
256
|
try {
|
|
257
257
|
Reflect.construct(b, []);
|
|
258
|
-
} catch (
|
|
259
|
-
v =
|
|
258
|
+
} catch (Y) {
|
|
259
|
+
v = Y;
|
|
260
260
|
}
|
|
261
261
|
Reflect.construct(r, [], b);
|
|
262
262
|
} else {
|
|
263
263
|
try {
|
|
264
264
|
b.call();
|
|
265
|
-
} catch (
|
|
266
|
-
v =
|
|
265
|
+
} catch (Y) {
|
|
266
|
+
v = Y;
|
|
267
267
|
}
|
|
268
268
|
r.call(b.prototype);
|
|
269
269
|
}
|
|
270
270
|
} else {
|
|
271
271
|
try {
|
|
272
272
|
throw Error();
|
|
273
|
-
} catch (
|
|
274
|
-
v =
|
|
273
|
+
} catch (Y) {
|
|
274
|
+
v = Y;
|
|
275
275
|
}
|
|
276
276
|
r();
|
|
277
277
|
}
|
|
278
|
-
} catch (
|
|
279
|
-
if (
|
|
280
|
-
for (var g =
|
|
281
|
-
`),
|
|
282
|
-
`),
|
|
283
|
-
|
|
284
|
-
for (;
|
|
285
|
-
if (g[
|
|
286
|
-
if (
|
|
278
|
+
} catch (Y) {
|
|
279
|
+
if (Y && v && typeof Y.stack == "string") {
|
|
280
|
+
for (var g = Y.stack.split(`
|
|
281
|
+
`), z = v.stack.split(`
|
|
282
|
+
`), _ = g.length - 1, F = z.length - 1; _ >= 1 && F >= 0 && g[_] !== z[F]; )
|
|
283
|
+
F--;
|
|
284
|
+
for (; _ >= 1 && F >= 0; _--, F--)
|
|
285
|
+
if (g[_] !== z[F]) {
|
|
286
|
+
if (_ !== 1 || F !== 1)
|
|
287
287
|
do
|
|
288
|
-
if (
|
|
289
|
-
var
|
|
290
|
-
` + g[
|
|
291
|
-
return r.displayName &&
|
|
288
|
+
if (_--, F--, F < 0 || g[_] !== z[F]) {
|
|
289
|
+
var U = `
|
|
290
|
+
` + g[_].replace(" at new ", " at ");
|
|
291
|
+
return r.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", r.displayName)), typeof r == "function" && ce.set(r, U), U;
|
|
292
292
|
}
|
|
293
|
-
while (
|
|
293
|
+
while (_ >= 1 && F >= 0);
|
|
294
294
|
break;
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
} finally {
|
|
298
|
-
be = !1, ye.current =
|
|
298
|
+
be = !1, ye.current = R, Be(), Error.prepareStackTrace = T;
|
|
299
299
|
}
|
|
300
|
-
var
|
|
301
|
-
return typeof r == "function" && ce.set(r,
|
|
300
|
+
var fe = r ? r.displayName || r.name : "", ae = fe ? le(fe) : "";
|
|
301
|
+
return typeof r == "function" && ce.set(r, ae), ae;
|
|
302
302
|
}
|
|
303
303
|
function Ee(r, s, u) {
|
|
304
|
-
return
|
|
304
|
+
return f(r, !1);
|
|
305
305
|
}
|
|
306
306
|
function ue(r) {
|
|
307
307
|
var s = r.prototype;
|
|
308
308
|
return !!(s && s.isReactComponent);
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function oe(r, s, u) {
|
|
311
311
|
if (r == null)
|
|
312
312
|
return "";
|
|
313
313
|
if (typeof r == "function")
|
|
314
|
-
return
|
|
314
|
+
return f(r, ue(r));
|
|
315
315
|
if (typeof r == "string")
|
|
316
316
|
return le(r);
|
|
317
317
|
switch (r) {
|
|
@@ -324,56 +324,56 @@ function Sn() {
|
|
|
324
324
|
switch (r.$$typeof) {
|
|
325
325
|
case m:
|
|
326
326
|
return Ee(r.render);
|
|
327
|
-
case
|
|
328
|
-
return
|
|
329
|
-
case
|
|
330
|
-
var v = r, T = v._payload,
|
|
327
|
+
case S:
|
|
328
|
+
return oe(r.type, s, u);
|
|
329
|
+
case I: {
|
|
330
|
+
var v = r, T = v._payload, R = v._init;
|
|
331
331
|
try {
|
|
332
|
-
return
|
|
332
|
+
return oe(R(T), s, u);
|
|
333
333
|
} catch {
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
return "";
|
|
338
338
|
}
|
|
339
|
-
var Te = Object.prototype.hasOwnProperty,
|
|
339
|
+
var Te = Object.prototype.hasOwnProperty, dt = {}, ft = L.ReactDebugCurrentFrame;
|
|
340
340
|
function Ne(r) {
|
|
341
341
|
if (r) {
|
|
342
|
-
var s = r._owner, u =
|
|
343
|
-
|
|
342
|
+
var s = r._owner, u = oe(r.type, r._source, s ? s.type : null);
|
|
343
|
+
ft.setExtraStackFrame(u);
|
|
344
344
|
} else
|
|
345
|
-
|
|
345
|
+
ft.setExtraStackFrame(null);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function ir(r, s, u, v, T) {
|
|
348
348
|
{
|
|
349
|
-
var
|
|
349
|
+
var R = Function.call.bind(Te);
|
|
350
350
|
for (var b in r)
|
|
351
|
-
if (
|
|
351
|
+
if (R(r, b)) {
|
|
352
352
|
var g = void 0;
|
|
353
353
|
try {
|
|
354
354
|
if (typeof r[b] != "function") {
|
|
355
|
-
var
|
|
356
|
-
throw
|
|
355
|
+
var z = Error((v || "React class") + ": " + u + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
356
|
+
throw z.name = "Invariant Violation", z;
|
|
357
357
|
}
|
|
358
358
|
g = r[b](s, b, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
359
|
-
} catch (
|
|
360
|
-
g =
|
|
359
|
+
} catch (_) {
|
|
360
|
+
g = _;
|
|
361
361
|
}
|
|
362
|
-
g && !(g instanceof Error) && (Ne(T),
|
|
362
|
+
g && !(g instanceof Error) && (Ne(T), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", u, b, typeof g), Ne(null)), g instanceof Error && !(g.message in dt) && (dt[g.message] = !0, Ne(T), P("Failed %s type: %s", u, g.message), Ne(null));
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
var
|
|
367
|
-
function
|
|
368
|
-
return
|
|
366
|
+
var or = Array.isArray;
|
|
367
|
+
function Ue(r) {
|
|
368
|
+
return or(r);
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function ar(r) {
|
|
371
371
|
{
|
|
372
372
|
var s = typeof Symbol == "function" && Symbol.toStringTag, u = s && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
373
373
|
return u;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function sr(r) {
|
|
377
377
|
try {
|
|
378
378
|
return mt(r), !1;
|
|
379
379
|
} catch {
|
|
@@ -384,16 +384,16 @@ function Sn() {
|
|
|
384
384
|
return "" + r;
|
|
385
385
|
}
|
|
386
386
|
function ht(r) {
|
|
387
|
-
if (
|
|
388
|
-
return
|
|
387
|
+
if (sr(r))
|
|
388
|
+
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ar(r)), mt(r);
|
|
389
389
|
}
|
|
390
|
-
var vt =
|
|
390
|
+
var vt = L.ReactCurrentOwner, lr = {
|
|
391
391
|
key: !0,
|
|
392
392
|
ref: !0,
|
|
393
393
|
__self: !0,
|
|
394
394
|
__source: !0
|
|
395
395
|
}, pt, yt;
|
|
396
|
-
function
|
|
396
|
+
function cr(r) {
|
|
397
397
|
if (Te.call(r, "ref")) {
|
|
398
398
|
var s = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
399
399
|
if (s && s.isReactWarning)
|
|
@@ -401,7 +401,7 @@ function Sn() {
|
|
|
401
401
|
}
|
|
402
402
|
return r.ref !== void 0;
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function ur(r) {
|
|
405
405
|
if (Te.call(r, "key")) {
|
|
406
406
|
var s = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
407
407
|
if (s && s.isReactWarning)
|
|
@@ -409,13 +409,13 @@ function Sn() {
|
|
|
409
409
|
}
|
|
410
410
|
return r.key !== void 0;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function dr(r, s) {
|
|
413
413
|
typeof r.ref == "string" && vt.current;
|
|
414
414
|
}
|
|
415
415
|
function fr(r, s) {
|
|
416
416
|
{
|
|
417
417
|
var u = function() {
|
|
418
|
-
pt || (pt = !0,
|
|
418
|
+
pt || (pt = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
|
|
419
419
|
};
|
|
420
420
|
u.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
421
421
|
get: u,
|
|
@@ -423,10 +423,10 @@ function Sn() {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function mr(r, s) {
|
|
427
427
|
{
|
|
428
428
|
var u = function() {
|
|
429
|
-
yt || (yt = !0,
|
|
429
|
+
yt || (yt = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
|
|
430
430
|
};
|
|
431
431
|
u.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
432
432
|
get: u,
|
|
@@ -434,7 +434,7 @@ function Sn() {
|
|
|
434
434
|
});
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
var
|
|
437
|
+
var hr = function(r, s, u, v, T, R, b) {
|
|
438
438
|
var g = {
|
|
439
439
|
// This tag allows us to uniquely identify this as a React Element
|
|
440
440
|
$$typeof: e,
|
|
@@ -444,7 +444,7 @@ function Sn() {
|
|
|
444
444
|
ref: u,
|
|
445
445
|
props: b,
|
|
446
446
|
// Record the component responsible for creating this element.
|
|
447
|
-
_owner:
|
|
447
|
+
_owner: R
|
|
448
448
|
};
|
|
449
449
|
return g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
450
450
|
configurable: !1,
|
|
@@ -463,41 +463,41 @@ function Sn() {
|
|
|
463
463
|
value: T
|
|
464
464
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
465
465
|
};
|
|
466
|
-
function
|
|
466
|
+
function vr(r, s, u, v, T) {
|
|
467
467
|
{
|
|
468
|
-
var
|
|
469
|
-
u !== void 0 && (ht(u), g = "" + u),
|
|
470
|
-
for (
|
|
471
|
-
Te.call(s,
|
|
468
|
+
var R, b = {}, g = null, z = null;
|
|
469
|
+
u !== void 0 && (ht(u), g = "" + u), ur(s) && (ht(s.key), g = "" + s.key), cr(s) && (z = s.ref, dr(s, T));
|
|
470
|
+
for (R in s)
|
|
471
|
+
Te.call(s, R) && !lr.hasOwnProperty(R) && (b[R] = s[R]);
|
|
472
472
|
if (r && r.defaultProps) {
|
|
473
|
-
var
|
|
474
|
-
for (
|
|
475
|
-
b[
|
|
473
|
+
var _ = r.defaultProps;
|
|
474
|
+
for (R in _)
|
|
475
|
+
b[R] === void 0 && (b[R] = _[R]);
|
|
476
476
|
}
|
|
477
|
-
if (g ||
|
|
478
|
-
var
|
|
479
|
-
g && fr(b,
|
|
477
|
+
if (g || z) {
|
|
478
|
+
var F = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
479
|
+
g && fr(b, F), z && mr(b, F);
|
|
480
480
|
}
|
|
481
|
-
return
|
|
481
|
+
return hr(r, g, z, T, v, vt.current, b);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
var
|
|
485
|
-
function
|
|
484
|
+
var qe = L.ReactCurrentOwner, gt = L.ReactDebugCurrentFrame;
|
|
485
|
+
function de(r) {
|
|
486
486
|
if (r) {
|
|
487
|
-
var s = r._owner, u =
|
|
487
|
+
var s = r._owner, u = oe(r.type, r._source, s ? s.type : null);
|
|
488
488
|
gt.setExtraStackFrame(u);
|
|
489
489
|
} else
|
|
490
490
|
gt.setExtraStackFrame(null);
|
|
491
491
|
}
|
|
492
492
|
var Ge;
|
|
493
493
|
Ge = !1;
|
|
494
|
-
function
|
|
494
|
+
function He(r) {
|
|
495
495
|
return typeof r == "object" && r !== null && r.$$typeof === e;
|
|
496
496
|
}
|
|
497
497
|
function bt() {
|
|
498
498
|
{
|
|
499
|
-
if (
|
|
500
|
-
var r = K(
|
|
499
|
+
if (qe.current) {
|
|
500
|
+
var r = K(qe.current.type);
|
|
501
501
|
if (r)
|
|
502
502
|
return `
|
|
503
503
|
|
|
@@ -506,11 +506,11 @@ Check the render method of \`` + r + "`.";
|
|
|
506
506
|
return "";
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function pr(r) {
|
|
510
510
|
return "";
|
|
511
511
|
}
|
|
512
512
|
var Et = {};
|
|
513
|
-
function
|
|
513
|
+
function yr(r) {
|
|
514
514
|
{
|
|
515
515
|
var s = bt();
|
|
516
516
|
if (!s) {
|
|
@@ -527,34 +527,34 @@ Check the top-level render call using <` + u + ">.");
|
|
|
527
527
|
if (!r._store || r._store.validated || r.key != null)
|
|
528
528
|
return;
|
|
529
529
|
r._store.validated = !0;
|
|
530
|
-
var u =
|
|
530
|
+
var u = yr(s);
|
|
531
531
|
if (Et[u])
|
|
532
532
|
return;
|
|
533
533
|
Et[u] = !0;
|
|
534
534
|
var v = "";
|
|
535
|
-
r && r._owner && r._owner !==
|
|
535
|
+
r && r._owner && r._owner !== qe.current && (v = " It was passed a child from " + K(r._owner.type) + "."), de(r), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), de(null);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
function xt(r, s) {
|
|
539
539
|
{
|
|
540
540
|
if (typeof r != "object")
|
|
541
541
|
return;
|
|
542
|
-
if (
|
|
542
|
+
if (Ue(r))
|
|
543
543
|
for (var u = 0; u < r.length; u++) {
|
|
544
544
|
var v = r[u];
|
|
545
|
-
|
|
545
|
+
He(v) && Tt(v, s);
|
|
546
546
|
}
|
|
547
|
-
else if (
|
|
547
|
+
else if (He(r))
|
|
548
548
|
r._store && (r._store.validated = !0);
|
|
549
549
|
else if (r) {
|
|
550
550
|
var T = Q(r);
|
|
551
551
|
if (typeof T == "function" && T !== r.entries)
|
|
552
|
-
for (var
|
|
553
|
-
|
|
552
|
+
for (var R = T.call(r), b; !(b = R.next()).done; )
|
|
553
|
+
He(b.value) && Tt(b.value, s);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function gr(r) {
|
|
558
558
|
{
|
|
559
559
|
var s = r.type;
|
|
560
560
|
if (s == null || typeof s == "string")
|
|
@@ -564,93 +564,93 @@ Check the top-level render call using <` + u + ">.");
|
|
|
564
564
|
u = s.propTypes;
|
|
565
565
|
else if (typeof s == "object" && (s.$$typeof === m || // Note: Memo only checks outer props here.
|
|
566
566
|
// Inner props are checked in the reconciler.
|
|
567
|
-
s.$$typeof ===
|
|
567
|
+
s.$$typeof === S))
|
|
568
568
|
u = s.propTypes;
|
|
569
569
|
else
|
|
570
570
|
return;
|
|
571
571
|
if (u) {
|
|
572
572
|
var v = K(s);
|
|
573
|
-
|
|
573
|
+
ir(u, r.props, "prop", v, r);
|
|
574
574
|
} else if (s.PropTypes !== void 0 && !Ge) {
|
|
575
575
|
Ge = !0;
|
|
576
576
|
var T = K(s);
|
|
577
|
-
|
|
577
|
+
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
|
|
578
578
|
}
|
|
579
|
-
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved &&
|
|
579
|
+
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function br(r) {
|
|
583
583
|
{
|
|
584
584
|
for (var s = Object.keys(r.props), u = 0; u < s.length; u++) {
|
|
585
585
|
var v = s[u];
|
|
586
586
|
if (v !== "children" && v !== "key") {
|
|
587
|
-
|
|
587
|
+
de(r), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), de(null);
|
|
588
588
|
break;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
r.ref !== null && (
|
|
591
|
+
r.ref !== null && (de(r), P("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
var
|
|
595
|
-
function
|
|
594
|
+
var Ct = {};
|
|
595
|
+
function It(r, s, u, v, T, R) {
|
|
596
596
|
{
|
|
597
|
-
var b =
|
|
597
|
+
var b = Le(r);
|
|
598
598
|
if (!b) {
|
|
599
599
|
var g = "";
|
|
600
600
|
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
601
|
-
var
|
|
602
|
-
|
|
603
|
-
var
|
|
604
|
-
r === null ?
|
|
601
|
+
var z = pr();
|
|
602
|
+
z ? g += z : g += bt();
|
|
603
|
+
var _;
|
|
604
|
+
r === null ? _ = "null" : Ue(r) ? _ = "array" : r !== void 0 && r.$$typeof === e ? (_ = "<" + (K(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof r, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, g);
|
|
605
605
|
}
|
|
606
|
-
var
|
|
607
|
-
if (
|
|
608
|
-
return
|
|
606
|
+
var F = vr(r, s, u, T, R);
|
|
607
|
+
if (F == null)
|
|
608
|
+
return F;
|
|
609
609
|
if (b) {
|
|
610
|
-
var
|
|
611
|
-
if (
|
|
610
|
+
var U = s.children;
|
|
611
|
+
if (U !== void 0)
|
|
612
612
|
if (v)
|
|
613
|
-
if (
|
|
614
|
-
for (var
|
|
615
|
-
xt(
|
|
616
|
-
Object.freeze && Object.freeze(
|
|
613
|
+
if (Ue(U)) {
|
|
614
|
+
for (var fe = 0; fe < U.length; fe++)
|
|
615
|
+
xt(U[fe], r);
|
|
616
|
+
Object.freeze && Object.freeze(U);
|
|
617
617
|
} else
|
|
618
|
-
|
|
618
|
+
P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
619
619
|
else
|
|
620
|
-
xt(
|
|
620
|
+
xt(U, r);
|
|
621
621
|
}
|
|
622
622
|
if (Te.call(s, "key")) {
|
|
623
|
-
var
|
|
624
|
-
return
|
|
625
|
-
}),
|
|
626
|
-
if (!
|
|
627
|
-
var
|
|
628
|
-
|
|
623
|
+
var ae = K(r), Y = Object.keys(s).filter(function(Rr) {
|
|
624
|
+
return Rr !== "key";
|
|
625
|
+
}), Je = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
626
|
+
if (!Ct[ae + Je]) {
|
|
627
|
+
var Ir = Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}";
|
|
628
|
+
P(`A props object containing a "key" prop is being spread into JSX:
|
|
629
629
|
let props = %s;
|
|
630
630
|
<%s {...props} />
|
|
631
631
|
React keys must be passed directly to JSX without using spread:
|
|
632
632
|
let props = %s;
|
|
633
|
-
<%s key={someKey} {...props} />`,
|
|
633
|
+
<%s key={someKey} {...props} />`, Je, ae, Ir, ae), Ct[ae + Je] = !0;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
return r === i ?
|
|
636
|
+
return r === i ? br(F) : gr(F), F;
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
|
-
function br(r, s, u) {
|
|
640
|
-
return Ct(r, s, u, !0);
|
|
641
|
-
}
|
|
642
639
|
function Er(r, s, u) {
|
|
643
|
-
return
|
|
640
|
+
return It(r, s, u, !0);
|
|
644
641
|
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
642
|
+
function Tr(r, s, u) {
|
|
643
|
+
return It(r, s, u, !1);
|
|
644
|
+
}
|
|
645
|
+
var xr = Tr, Cr = Er;
|
|
646
|
+
Ce.Fragment = i, Ce.jsx = xr, Ce.jsxs = Cr;
|
|
647
|
+
})()), Ce;
|
|
648
648
|
}
|
|
649
|
-
var
|
|
650
|
-
function
|
|
651
|
-
return
|
|
649
|
+
var Ot;
|
|
650
|
+
function In() {
|
|
651
|
+
return Ot || (Ot = 1, process.env.NODE_ENV === "production" ? $e.exports = xn() : $e.exports = Cn()), $e.exports;
|
|
652
652
|
}
|
|
653
|
-
var
|
|
653
|
+
var Re = In(), De = { exports: {} }, x = {};
|
|
654
654
|
/** @license React v16.13.1
|
|
655
655
|
* react-is.production.min.js
|
|
656
656
|
*
|
|
@@ -659,15 +659,15 @@ var Ie = Cn(), De = { exports: {} }, x = {};
|
|
|
659
659
|
* This source code is licensed under the MIT license found in the
|
|
660
660
|
* LICENSE file in the root directory of this source tree.
|
|
661
661
|
*/
|
|
662
|
-
var
|
|
663
|
-
function
|
|
664
|
-
if (
|
|
665
|
-
|
|
666
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114,
|
|
667
|
-
function
|
|
662
|
+
var _t;
|
|
663
|
+
function Rn() {
|
|
664
|
+
if (_t) return x;
|
|
665
|
+
_t = 1;
|
|
666
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, d = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112, S = t ? Symbol.for("react.suspense") : 60113, I = t ? Symbol.for("react.suspense_list") : 60120, $ = t ? Symbol.for("react.memo") : 60115, k = t ? Symbol.for("react.lazy") : 60116, W = t ? Symbol.for("react.block") : 60121, Q = t ? Symbol.for("react.fundamental") : 60117, L = t ? Symbol.for("react.responder") : 60118, P = t ? Symbol.for("react.scope") : 60119;
|
|
667
|
+
function M(c) {
|
|
668
668
|
if (typeof c == "object" && c !== null) {
|
|
669
|
-
var
|
|
670
|
-
switch (
|
|
669
|
+
var V = c.$$typeof;
|
|
670
|
+
switch (V) {
|
|
671
671
|
case e:
|
|
672
672
|
switch (c = c.type, c) {
|
|
673
673
|
case m:
|
|
@@ -675,57 +675,57 @@ function In() {
|
|
|
675
675
|
case i:
|
|
676
676
|
case l:
|
|
677
677
|
case a:
|
|
678
|
-
case
|
|
678
|
+
case S:
|
|
679
679
|
return c;
|
|
680
680
|
default:
|
|
681
681
|
switch (c = c && c.$$typeof, c) {
|
|
682
682
|
case h:
|
|
683
683
|
case E:
|
|
684
|
-
case
|
|
685
|
-
case
|
|
686
|
-
case
|
|
684
|
+
case k:
|
|
685
|
+
case $:
|
|
686
|
+
case d:
|
|
687
687
|
return c;
|
|
688
688
|
default:
|
|
689
|
-
return
|
|
689
|
+
return V;
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
692
|
case n:
|
|
693
|
-
return
|
|
693
|
+
return V;
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
|
-
function
|
|
698
|
-
return
|
|
697
|
+
function O(c) {
|
|
698
|
+
return M(c) === p;
|
|
699
699
|
}
|
|
700
|
-
return x.AsyncMode = m, x.ConcurrentMode = p, x.ContextConsumer = h, x.ContextProvider =
|
|
701
|
-
return
|
|
702
|
-
}, x.isConcurrentMode =
|
|
703
|
-
return
|
|
700
|
+
return x.AsyncMode = m, x.ConcurrentMode = p, x.ContextConsumer = h, x.ContextProvider = d, x.Element = e, x.ForwardRef = E, x.Fragment = i, x.Lazy = k, x.Memo = $, x.Portal = n, x.Profiler = l, x.StrictMode = a, x.Suspense = S, x.isAsyncMode = function(c) {
|
|
701
|
+
return O(c) || M(c) === m;
|
|
702
|
+
}, x.isConcurrentMode = O, x.isContextConsumer = function(c) {
|
|
703
|
+
return M(c) === h;
|
|
704
704
|
}, x.isContextProvider = function(c) {
|
|
705
|
-
return
|
|
705
|
+
return M(c) === d;
|
|
706
706
|
}, x.isElement = function(c) {
|
|
707
707
|
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
708
708
|
}, x.isForwardRef = function(c) {
|
|
709
|
-
return
|
|
709
|
+
return M(c) === E;
|
|
710
710
|
}, x.isFragment = function(c) {
|
|
711
|
-
return
|
|
711
|
+
return M(c) === i;
|
|
712
712
|
}, x.isLazy = function(c) {
|
|
713
|
-
return
|
|
713
|
+
return M(c) === k;
|
|
714
714
|
}, x.isMemo = function(c) {
|
|
715
|
-
return
|
|
715
|
+
return M(c) === $;
|
|
716
716
|
}, x.isPortal = function(c) {
|
|
717
|
-
return
|
|
717
|
+
return M(c) === n;
|
|
718
718
|
}, x.isProfiler = function(c) {
|
|
719
|
-
return
|
|
719
|
+
return M(c) === l;
|
|
720
720
|
}, x.isStrictMode = function(c) {
|
|
721
|
-
return
|
|
721
|
+
return M(c) === a;
|
|
722
722
|
}, x.isSuspense = function(c) {
|
|
723
|
-
return
|
|
723
|
+
return M(c) === S;
|
|
724
724
|
}, x.isValidElementType = function(c) {
|
|
725
|
-
return typeof c == "string" || typeof c == "function" || c === i || c === p || c === l || c === a || c ===
|
|
726
|
-
}, x.typeOf =
|
|
725
|
+
return typeof c == "string" || typeof c == "function" || c === i || c === p || c === l || c === a || c === S || c === I || typeof c == "object" && c !== null && (c.$$typeof === k || c.$$typeof === $ || c.$$typeof === d || c.$$typeof === h || c.$$typeof === E || c.$$typeof === Q || c.$$typeof === L || c.$$typeof === P || c.$$typeof === W);
|
|
726
|
+
}, x.typeOf = M, x;
|
|
727
727
|
}
|
|
728
|
-
var
|
|
728
|
+
var C = {};
|
|
729
729
|
/** @license React v16.13.1
|
|
730
730
|
* react-is.development.js
|
|
731
731
|
*
|
|
@@ -734,37 +734,37 @@ var S = {};
|
|
|
734
734
|
* This source code is licensed under the MIT license found in the
|
|
735
735
|
* LICENSE file in the root directory of this source tree.
|
|
736
736
|
*/
|
|
737
|
-
var
|
|
738
|
-
function
|
|
739
|
-
return
|
|
740
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114,
|
|
741
|
-
function
|
|
742
|
-
return typeof
|
|
743
|
-
|
|
744
|
-
}
|
|
745
|
-
function
|
|
746
|
-
if (typeof
|
|
747
|
-
var Ee =
|
|
737
|
+
var At;
|
|
738
|
+
function Sn() {
|
|
739
|
+
return At || (At = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
740
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, l = t ? Symbol.for("react.profiler") : 60114, d = t ? Symbol.for("react.provider") : 60109, h = t ? Symbol.for("react.context") : 60110, m = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, E = t ? Symbol.for("react.forward_ref") : 60112, S = t ? Symbol.for("react.suspense") : 60113, I = t ? Symbol.for("react.suspense_list") : 60120, $ = t ? Symbol.for("react.memo") : 60115, k = t ? Symbol.for("react.lazy") : 60116, W = t ? Symbol.for("react.block") : 60121, Q = t ? Symbol.for("react.fundamental") : 60117, L = t ? Symbol.for("react.responder") : 60118, P = t ? Symbol.for("react.scope") : 60119;
|
|
741
|
+
function M(f) {
|
|
742
|
+
return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
743
|
+
f === i || f === p || f === l || f === a || f === S || f === I || typeof f == "object" && f !== null && (f.$$typeof === k || f.$$typeof === $ || f.$$typeof === d || f.$$typeof === h || f.$$typeof === E || f.$$typeof === Q || f.$$typeof === L || f.$$typeof === P || f.$$typeof === W);
|
|
744
|
+
}
|
|
745
|
+
function O(f) {
|
|
746
|
+
if (typeof f == "object" && f !== null) {
|
|
747
|
+
var Ee = f.$$typeof;
|
|
748
748
|
switch (Ee) {
|
|
749
749
|
case e:
|
|
750
|
-
var ue =
|
|
750
|
+
var ue = f.type;
|
|
751
751
|
switch (ue) {
|
|
752
752
|
case m:
|
|
753
753
|
case p:
|
|
754
754
|
case i:
|
|
755
755
|
case l:
|
|
756
756
|
case a:
|
|
757
|
-
case
|
|
757
|
+
case S:
|
|
758
758
|
return ue;
|
|
759
759
|
default:
|
|
760
|
-
var
|
|
761
|
-
switch (
|
|
760
|
+
var oe = ue && ue.$$typeof;
|
|
761
|
+
switch (oe) {
|
|
762
762
|
case h:
|
|
763
763
|
case E:
|
|
764
|
-
case
|
|
765
|
-
case
|
|
766
|
-
case
|
|
767
|
-
return
|
|
764
|
+
case k:
|
|
765
|
+
case $:
|
|
766
|
+
case d:
|
|
767
|
+
return oe;
|
|
768
768
|
default:
|
|
769
769
|
return Ee;
|
|
770
770
|
}
|
|
@@ -774,58 +774,58 @@ function Pn() {
|
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
|
-
var c = m,
|
|
778
|
-
function ke(
|
|
779
|
-
return ve || (ve = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), pe(
|
|
777
|
+
var c = m, V = p, he = h, Pe = d, we = e, Le = E, Ve = i, Oe = k, K = $, ee = n, ie = l, _e = a, Ae = S, ve = !1;
|
|
778
|
+
function ke(f) {
|
|
779
|
+
return ve || (ve = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), pe(f) || O(f) === m;
|
|
780
780
|
}
|
|
781
|
-
function pe(
|
|
782
|
-
return
|
|
781
|
+
function pe(f) {
|
|
782
|
+
return O(f) === p;
|
|
783
783
|
}
|
|
784
|
-
function Me(
|
|
785
|
-
return
|
|
784
|
+
function Me(f) {
|
|
785
|
+
return O(f) === h;
|
|
786
786
|
}
|
|
787
|
-
function Fe(
|
|
788
|
-
return
|
|
787
|
+
function Fe(f) {
|
|
788
|
+
return O(f) === d;
|
|
789
789
|
}
|
|
790
|
-
function je(
|
|
791
|
-
return typeof
|
|
790
|
+
function je(f) {
|
|
791
|
+
return typeof f == "object" && f !== null && f.$$typeof === e;
|
|
792
792
|
}
|
|
793
|
-
function
|
|
794
|
-
return
|
|
793
|
+
function Ye(f) {
|
|
794
|
+
return O(f) === E;
|
|
795
795
|
}
|
|
796
|
-
function
|
|
797
|
-
return
|
|
796
|
+
function Be(f) {
|
|
797
|
+
return O(f) === i;
|
|
798
798
|
}
|
|
799
|
-
function ye(
|
|
800
|
-
return
|
|
799
|
+
function ye(f) {
|
|
800
|
+
return O(f) === k;
|
|
801
801
|
}
|
|
802
|
-
function ge(
|
|
803
|
-
return
|
|
802
|
+
function ge(f) {
|
|
803
|
+
return O(f) === $;
|
|
804
804
|
}
|
|
805
|
-
function le(
|
|
806
|
-
return
|
|
805
|
+
function le(f) {
|
|
806
|
+
return O(f) === n;
|
|
807
807
|
}
|
|
808
|
-
function be(
|
|
809
|
-
return
|
|
808
|
+
function be(f) {
|
|
809
|
+
return O(f) === l;
|
|
810
810
|
}
|
|
811
|
-
function ce(
|
|
812
|
-
return
|
|
811
|
+
function ce(f) {
|
|
812
|
+
return O(f) === a;
|
|
813
813
|
}
|
|
814
|
-
function
|
|
815
|
-
return
|
|
814
|
+
function We(f) {
|
|
815
|
+
return O(f) === S;
|
|
816
816
|
}
|
|
817
|
-
|
|
818
|
-
}()),
|
|
817
|
+
C.AsyncMode = c, C.ConcurrentMode = V, C.ContextConsumer = he, C.ContextProvider = Pe, C.Element = we, C.ForwardRef = Le, C.Fragment = Ve, C.Lazy = Oe, C.Memo = K, C.Portal = ee, C.Profiler = ie, C.StrictMode = _e, C.Suspense = Ae, C.isAsyncMode = ke, C.isConcurrentMode = pe, C.isContextConsumer = Me, C.isContextProvider = Fe, C.isElement = je, C.isForwardRef = Ye, C.isFragment = Be, C.isLazy = ye, C.isMemo = ge, C.isPortal = le, C.isProfiler = be, C.isStrictMode = ce, C.isSuspense = We, C.isValidElementType = M, C.typeOf = O;
|
|
818
|
+
})()), C;
|
|
819
819
|
}
|
|
820
|
-
var
|
|
821
|
-
function
|
|
822
|
-
return
|
|
820
|
+
var kt;
|
|
821
|
+
function Pn() {
|
|
822
|
+
return kt || (kt = 1, process.env.NODE_ENV === "production" ? De.exports = Rn() : De.exports = Sn()), De.exports;
|
|
823
823
|
}
|
|
824
|
-
var
|
|
824
|
+
var Xe, Mt;
|
|
825
825
|
function wn() {
|
|
826
|
-
if (
|
|
827
|
-
|
|
828
|
-
var t =
|
|
826
|
+
if (Mt) return Xe;
|
|
827
|
+
Mt = 1;
|
|
828
|
+
var t = Pn(), e = {
|
|
829
829
|
childContextTypes: !0,
|
|
830
830
|
contextType: !0,
|
|
831
831
|
contextTypes: !0,
|
|
@@ -860,32 +860,32 @@ function wn() {
|
|
|
860
860
|
type: !0
|
|
861
861
|
}, l = {};
|
|
862
862
|
l[t.ForwardRef] = i, l[t.Memo] = a;
|
|
863
|
-
function
|
|
864
|
-
return t.isMemo(
|
|
865
|
-
}
|
|
866
|
-
var h = Object.defineProperty, m = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, E = Object.getOwnPropertyDescriptor,
|
|
867
|
-
function
|
|
868
|
-
if (typeof
|
|
869
|
-
if (
|
|
870
|
-
var
|
|
871
|
-
|
|
863
|
+
function d(k) {
|
|
864
|
+
return t.isMemo(k) ? a : l[k.$$typeof] || e;
|
|
865
|
+
}
|
|
866
|
+
var h = Object.defineProperty, m = Object.getOwnPropertyNames, p = Object.getOwnPropertySymbols, E = Object.getOwnPropertyDescriptor, S = Object.getPrototypeOf, I = Object.prototype;
|
|
867
|
+
function $(k, W, Q) {
|
|
868
|
+
if (typeof W != "string") {
|
|
869
|
+
if (I) {
|
|
870
|
+
var L = S(W);
|
|
871
|
+
L && L !== I && $(k, L, Q);
|
|
872
872
|
}
|
|
873
|
-
var
|
|
874
|
-
p && (
|
|
875
|
-
for (var
|
|
876
|
-
var
|
|
877
|
-
if (!n[
|
|
878
|
-
var he = E(
|
|
873
|
+
var P = m(W);
|
|
874
|
+
p && (P = P.concat(p(W)));
|
|
875
|
+
for (var M = d(k), O = d(W), c = 0; c < P.length; ++c) {
|
|
876
|
+
var V = P[c];
|
|
877
|
+
if (!n[V] && !(Q && Q[V]) && !(O && O[V]) && !(M && M[V])) {
|
|
878
|
+
var he = E(W, V);
|
|
879
879
|
try {
|
|
880
|
-
h(
|
|
880
|
+
h(k, V, he);
|
|
881
881
|
} catch {
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
|
-
return
|
|
886
|
+
return k;
|
|
887
887
|
}
|
|
888
|
-
return
|
|
888
|
+
return Xe = $, Xe;
|
|
889
889
|
}
|
|
890
890
|
wn();
|
|
891
891
|
var On = !0;
|
|
@@ -994,11 +994,11 @@ function Fn(t) {
|
|
|
994
994
|
}
|
|
995
995
|
var jn = /[A-Z]|^ms/g, Nn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Kt = function(e) {
|
|
996
996
|
return e.charCodeAt(1) === 45;
|
|
997
|
-
},
|
|
997
|
+
}, Ft = function(e) {
|
|
998
998
|
return e != null && typeof e != "boolean";
|
|
999
|
-
},
|
|
999
|
+
}, Ze = /* @__PURE__ */ Fn(function(t) {
|
|
1000
1000
|
return Kt(t) ? t : t.replace(jn, "-$&").toLowerCase();
|
|
1001
|
-
}),
|
|
1001
|
+
}), jt = function(e, n) {
|
|
1002
1002
|
switch (e) {
|
|
1003
1003
|
case "animation":
|
|
1004
1004
|
case "animationName":
|
|
@@ -1013,7 +1013,7 @@ var jn = /[A-Z]|^ms/g, Nn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Kt = function(e) {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
return Mn[e] !== 1 && !Kt(e) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
1015
1015
|
};
|
|
1016
|
-
function
|
|
1016
|
+
function Se(t, e, n) {
|
|
1017
1017
|
if (n == null)
|
|
1018
1018
|
return "";
|
|
1019
1019
|
var i = n;
|
|
@@ -1032,14 +1032,14 @@ function Pe(t, e, n) {
|
|
|
1032
1032
|
}, a.name;
|
|
1033
1033
|
var l = n;
|
|
1034
1034
|
if (l.styles !== void 0) {
|
|
1035
|
-
var
|
|
1036
|
-
if (
|
|
1037
|
-
for (;
|
|
1035
|
+
var d = l.next;
|
|
1036
|
+
if (d !== void 0)
|
|
1037
|
+
for (; d !== void 0; )
|
|
1038
1038
|
X = {
|
|
1039
|
-
name:
|
|
1040
|
-
styles:
|
|
1039
|
+
name: d.name,
|
|
1040
|
+
styles: d.styles,
|
|
1041
1041
|
next: X
|
|
1042
|
-
},
|
|
1042
|
+
}, d = d.next;
|
|
1043
1043
|
var h = l.styles + ";";
|
|
1044
1044
|
return h;
|
|
1045
1045
|
}
|
|
@@ -1048,7 +1048,7 @@ function Pe(t, e, n) {
|
|
|
1048
1048
|
case "function": {
|
|
1049
1049
|
if (t !== void 0) {
|
|
1050
1050
|
var m = X, p = n(t);
|
|
1051
|
-
return X = m,
|
|
1051
|
+
return X = m, Se(t, e, p);
|
|
1052
1052
|
}
|
|
1053
1053
|
break;
|
|
1054
1054
|
}
|
|
@@ -1060,22 +1060,22 @@ function $n(t, e, n) {
|
|
|
1060
1060
|
var i = "";
|
|
1061
1061
|
if (Array.isArray(n))
|
|
1062
1062
|
for (var a = 0; a < n.length; a++)
|
|
1063
|
-
i +=
|
|
1063
|
+
i += Se(t, e, n[a]) + ";";
|
|
1064
1064
|
else
|
|
1065
1065
|
for (var l in n) {
|
|
1066
|
-
var
|
|
1067
|
-
if (typeof
|
|
1068
|
-
var h =
|
|
1069
|
-
|
|
1070
|
-
} else if (Array.isArray(
|
|
1071
|
-
for (var m = 0; m <
|
|
1072
|
-
|
|
1066
|
+
var d = n[l];
|
|
1067
|
+
if (typeof d != "object") {
|
|
1068
|
+
var h = d;
|
|
1069
|
+
Ft(h) && (i += Ze(l) + ":" + jt(l, h) + ";");
|
|
1070
|
+
} else if (Array.isArray(d) && typeof d[0] == "string" && e == null)
|
|
1071
|
+
for (var m = 0; m < d.length; m++)
|
|
1072
|
+
Ft(d[m]) && (i += Ze(l) + ":" + jt(l, d[m]) + ";");
|
|
1073
1073
|
else {
|
|
1074
|
-
var p =
|
|
1074
|
+
var p = Se(t, e, d);
|
|
1075
1075
|
switch (l) {
|
|
1076
1076
|
case "animation":
|
|
1077
1077
|
case "animationName": {
|
|
1078
|
-
i +=
|
|
1078
|
+
i += Ze(l) + ":" + p + ";";
|
|
1079
1079
|
break;
|
|
1080
1080
|
}
|
|
1081
1081
|
default:
|
|
@@ -1085,7 +1085,7 @@ function $n(t, e, n) {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
return i;
|
|
1087
1087
|
}
|
|
1088
|
-
var
|
|
1088
|
+
var Nt = /label:\s*([^\s;{]+)\s*(;|$)/g, X;
|
|
1089
1089
|
function Dn(t, e, n) {
|
|
1090
1090
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
1091
1091
|
return t[0];
|
|
@@ -1093,50 +1093,50 @@ function Dn(t, e, n) {
|
|
|
1093
1093
|
X = void 0;
|
|
1094
1094
|
var l = t[0];
|
|
1095
1095
|
if (l == null || l.raw === void 0)
|
|
1096
|
-
i = !1, a +=
|
|
1096
|
+
i = !1, a += Se(n, e, l);
|
|
1097
1097
|
else {
|
|
1098
|
-
var
|
|
1099
|
-
a +=
|
|
1098
|
+
var d = l;
|
|
1099
|
+
a += d[0];
|
|
1100
1100
|
}
|
|
1101
1101
|
for (var h = 1; h < t.length; h++)
|
|
1102
|
-
if (a +=
|
|
1102
|
+
if (a += Se(n, e, t[h]), i) {
|
|
1103
1103
|
var m = l;
|
|
1104
1104
|
a += m[h];
|
|
1105
1105
|
}
|
|
1106
|
-
|
|
1107
|
-
for (var p = "", E; (E =
|
|
1106
|
+
Nt.lastIndex = 0;
|
|
1107
|
+
for (var p = "", E; (E = Nt.exec(a)) !== null; )
|
|
1108
1108
|
p += "-" + E[1];
|
|
1109
|
-
var
|
|
1109
|
+
var S = kn(a) + p;
|
|
1110
1110
|
return {
|
|
1111
|
-
name:
|
|
1111
|
+
name: S,
|
|
1112
1112
|
styles: a,
|
|
1113
1113
|
next: X
|
|
1114
1114
|
};
|
|
1115
1115
|
}
|
|
1116
1116
|
var zn = function(e) {
|
|
1117
1117
|
return e();
|
|
1118
|
-
}, Ln =
|
|
1118
|
+
}, Ln = te.useInsertionEffect ? te.useInsertionEffect : !1, Vn = Ln || zn, Xt = /* @__PURE__ */ te.createContext(
|
|
1119
1119
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1120
1120
|
// because this module is primarily intended for the browser and node
|
|
1121
1121
|
// but it's also required in react native and similar environments sometimes
|
|
1122
1122
|
// and we could have a special build just for that
|
|
1123
1123
|
// but this is much easier and the native packages
|
|
1124
1124
|
// might use a different theme context in the future anyway
|
|
1125
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1125
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ Mr({
|
|
1126
1126
|
key: "css"
|
|
1127
1127
|
}) : null
|
|
1128
1128
|
);
|
|
1129
1129
|
Xt.Provider;
|
|
1130
1130
|
var Yn = function(e) {
|
|
1131
|
-
return /* @__PURE__ */
|
|
1132
|
-
var a =
|
|
1131
|
+
return /* @__PURE__ */ _r(function(n, i) {
|
|
1132
|
+
var a = ot(Xt);
|
|
1133
1133
|
return e(n, a, i);
|
|
1134
1134
|
});
|
|
1135
|
-
}, Bn = /* @__PURE__ */
|
|
1135
|
+
}, Bn = /* @__PURE__ */ te.createContext({}), ze = {}.hasOwnProperty, rt = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Zt = function(e, n) {
|
|
1136
1136
|
var i = {};
|
|
1137
1137
|
for (var a in n)
|
|
1138
1138
|
ze.call(n, a) && (i[a] = n[a]);
|
|
1139
|
-
return i[
|
|
1139
|
+
return i[rt] = e, i;
|
|
1140
1140
|
}, Wn = function(e) {
|
|
1141
1141
|
var n = e.cache, i = e.serialized, a = e.isStringTag;
|
|
1142
1142
|
return Jt(n, i, a), Vn(function() {
|
|
@@ -1145,106 +1145,92 @@ var Yn = function(e) {
|
|
|
1145
1145
|
}, Un = /* @__PURE__ */ Yn(function(t, e, n) {
|
|
1146
1146
|
var i = t.css;
|
|
1147
1147
|
typeof i == "string" && e.registered[i] !== void 0 && (i = e.registered[i]);
|
|
1148
|
-
var a = t[
|
|
1149
|
-
typeof t.className == "string" ?
|
|
1150
|
-
var h = Dn(l, void 0,
|
|
1151
|
-
|
|
1148
|
+
var a = t[rt], l = [i], d = "";
|
|
1149
|
+
typeof t.className == "string" ? d = _n(e.registered, l, t.className) : t.className != null && (d = t.className + " ");
|
|
1150
|
+
var h = Dn(l, void 0, te.useContext(Bn));
|
|
1151
|
+
d += e.key + "-" + h.name;
|
|
1152
1152
|
var m = {};
|
|
1153
1153
|
for (var p in t)
|
|
1154
|
-
ze.call(t, p) && p !== "css" && p !==
|
|
1155
|
-
return m.className =
|
|
1154
|
+
ze.call(t, p) && p !== "css" && p !== rt && (m[p] = t[p]);
|
|
1155
|
+
return m.className = d, n && (m.ref = n), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(Wn, {
|
|
1156
1156
|
cache: e,
|
|
1157
1157
|
serialized: h,
|
|
1158
1158
|
isStringTag: typeof a == "string"
|
|
1159
|
-
}), /* @__PURE__ */
|
|
1160
|
-
}), Qt = Un,
|
|
1161
|
-
return ze.call(n, "css") ?
|
|
1162
|
-
},
|
|
1163
|
-
return ze.call(n, "css") ?
|
|
1159
|
+
}), /* @__PURE__ */ te.createElement(a, m));
|
|
1160
|
+
}), Qt = Un, ut = Re.Fragment, o = function(e, n, i) {
|
|
1161
|
+
return ze.call(n, "css") ? Re.jsx(Qt, Zt(e, n), i) : Re.jsx(e, n, i);
|
|
1162
|
+
}, j = function(e, n, i) {
|
|
1163
|
+
return ze.call(n, "css") ? Re.jsxs(Qt, Zt(e, n), i) : Re.jsxs(e, n, i);
|
|
1164
1164
|
};
|
|
1165
1165
|
const qn = ({
|
|
1166
1166
|
onCancel: t,
|
|
1167
1167
|
onSave: e
|
|
1168
1168
|
}) => {
|
|
1169
|
-
const
|
|
1170
|
-
return /* @__PURE__ */
|
|
1171
|
-
/* @__PURE__ */ o(
|
|
1172
|
-
/* @__PURE__ */ o(
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1169
|
+
const n = $r({ prefix: "modalForm" }), [i, a] = q(""), [l, d] = q(""), [h, m] = q(!1);
|
|
1170
|
+
return /* @__PURE__ */ j(Br, { onClose: t, initialFocus: "[name=url]", children: [
|
|
1171
|
+
/* @__PURE__ */ o(zr, { children: /* @__PURE__ */ o(Dr, { children: "Add video" }) }),
|
|
1172
|
+
/* @__PURE__ */ o(Vr, { children: /* @__PURE__ */ j(
|
|
1173
|
+
Lr,
|
|
1174
|
+
{
|
|
1175
|
+
id: n,
|
|
1176
|
+
component: "form",
|
|
1177
|
+
onSubmit: async (p) => {
|
|
1178
|
+
p.preventDefault();
|
|
1179
|
+
try {
|
|
1180
|
+
m(!0), await e({ url: i, title: l });
|
|
1181
|
+
} finally {
|
|
1182
|
+
m(!1);
|
|
1183
|
+
}
|
|
1184
|
+
},
|
|
1185
|
+
children: [
|
|
1186
|
+
/* @__PURE__ */ o(et, { label: "URL", children: /* @__PURE__ */ o(
|
|
1187
|
+
Rt,
|
|
1188
|
+
{
|
|
1189
|
+
name: "url",
|
|
1190
|
+
value: i,
|
|
1191
|
+
onChange: (p) => a(p.target.value)
|
|
1192
|
+
}
|
|
1193
|
+
) }),
|
|
1194
|
+
/* @__PURE__ */ o(et, { label: "Title", children: /* @__PURE__ */ o(
|
|
1195
|
+
Rt,
|
|
1196
|
+
{
|
|
1197
|
+
name: "title",
|
|
1198
|
+
value: l,
|
|
1199
|
+
onChange: (p) => d(p.target.value)
|
|
1200
|
+
}
|
|
1201
|
+
) })
|
|
1202
|
+
]
|
|
1203
|
+
}
|
|
1204
|
+
) }),
|
|
1205
|
+
/* @__PURE__ */ j(Yr, { children: [
|
|
1206
|
+
/* @__PURE__ */ o(Lt, { onClick: t, children: "Cancel" }),
|
|
1192
1207
|
/* @__PURE__ */ o(
|
|
1193
|
-
|
|
1208
|
+
re,
|
|
1194
1209
|
{
|
|
1195
1210
|
type: "submit",
|
|
1196
|
-
|
|
1197
|
-
try {
|
|
1198
|
-
h(!0), await e({ url: n, title: a });
|
|
1199
|
-
} finally {
|
|
1200
|
-
h(!1);
|
|
1201
|
-
}
|
|
1202
|
-
},
|
|
1211
|
+
form: n,
|
|
1203
1212
|
fill: !0,
|
|
1204
|
-
disabled:
|
|
1205
|
-
isLoading:
|
|
1206
|
-
children: "
|
|
1213
|
+
disabled: i.trim().length === 0,
|
|
1214
|
+
isLoading: h,
|
|
1215
|
+
children: "Add video"
|
|
1207
1216
|
}
|
|
1208
1217
|
)
|
|
1209
1218
|
] })
|
|
1210
1219
|
] });
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
}
|
|
1215
|
-
const Dt = Z(
|
|
1216
|
-
({ playQueueStore: t }) => {
|
|
1217
|
-
const [e, n] = q(!1), i = $(
|
|
1220
|
+
}, $t = me(
|
|
1221
|
+
({ onSave: t }) => {
|
|
1222
|
+
const [e, n] = q(!1), i = D(
|
|
1218
1223
|
async (a) => {
|
|
1219
|
-
|
|
1220
|
-
if (l !== void 0) {
|
|
1221
|
-
const f = l.extractVideoId(a.url);
|
|
1222
|
-
if (f !== void 0) {
|
|
1223
|
-
const m = await (await fetch(
|
|
1224
|
-
`https://noembed.com/embed?url=${encodeURIComponent(
|
|
1225
|
-
a.url
|
|
1226
|
-
)}`
|
|
1227
|
-
)).json();
|
|
1228
|
-
await t.addItems([
|
|
1229
|
-
t.createItem({
|
|
1230
|
-
url: a.url,
|
|
1231
|
-
type: l.type,
|
|
1232
|
-
videoId: f,
|
|
1233
|
-
title: a.title || (Hn(m) ? m.title : f)
|
|
1234
|
-
})
|
|
1235
|
-
]);
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
n(!1);
|
|
1224
|
+
await t(a), n(!1);
|
|
1239
1225
|
},
|
|
1240
1226
|
[t]
|
|
1241
1227
|
);
|
|
1242
|
-
return /* @__PURE__ */
|
|
1228
|
+
return /* @__PURE__ */ j(ut, { children: [
|
|
1243
1229
|
/* @__PURE__ */ o(
|
|
1244
|
-
|
|
1230
|
+
re,
|
|
1245
1231
|
{
|
|
1246
1232
|
onClick: () => n(!0),
|
|
1247
|
-
iconType:
|
|
1233
|
+
iconType: lt,
|
|
1248
1234
|
color: "primary",
|
|
1249
1235
|
children: "Add video"
|
|
1250
1236
|
}
|
|
@@ -1258,11 +1244,19 @@ const Dt = Z(
|
|
|
1258
1244
|
)
|
|
1259
1245
|
] });
|
|
1260
1246
|
}
|
|
1261
|
-
),
|
|
1247
|
+
), er = {
|
|
1248
|
+
Audio: "",
|
|
1249
|
+
Dailymotion: "https://www.dailymotion.com/favicon.ico",
|
|
1250
|
+
Niconico: "https://www.nicovideo.jp/favicon.ico",
|
|
1251
|
+
SoundCloud: "https://soundcloud.com/favicon.ico",
|
|
1252
|
+
Twitch: "https://www.twitch.tv/favicon.ico",
|
|
1253
|
+
Vimeo: "https://vimeo.com/favicon.ico",
|
|
1254
|
+
YouTube: "https://www.youtube.com/favicon.ico"
|
|
1255
|
+
}, Gn = N(
|
|
1262
1256
|
({ playQueueStore: t }) => {
|
|
1263
|
-
const { euiTheme: e } =
|
|
1264
|
-
return /* @__PURE__ */
|
|
1265
|
-
|
|
1257
|
+
const { euiTheme: e } = Vt();
|
|
1258
|
+
return /* @__PURE__ */ j(
|
|
1259
|
+
Ur,
|
|
1266
1260
|
{
|
|
1267
1261
|
style: {
|
|
1268
1262
|
position: "sticky",
|
|
@@ -1271,8 +1265,8 @@ const Dt = Z(
|
|
|
1271
1265
|
background: e.colors.backgroundBasePlain
|
|
1272
1266
|
},
|
|
1273
1267
|
children: [
|
|
1274
|
-
/* @__PURE__ */ o(
|
|
1275
|
-
|
|
1268
|
+
/* @__PURE__ */ o(Wr, { children: /* @__PURE__ */ o(
|
|
1269
|
+
Yt,
|
|
1276
1270
|
{
|
|
1277
1271
|
id: "",
|
|
1278
1272
|
checked: t.allItemsSelected,
|
|
@@ -1281,105 +1275,97 @@ const Dt = Z(
|
|
|
1281
1275
|
}
|
|
1282
1276
|
}
|
|
1283
1277
|
) }),
|
|
1284
|
-
/* @__PURE__ */ o(
|
|
1285
|
-
/* @__PURE__ */ o(
|
|
1286
|
-
/* @__PURE__ */ o(
|
|
1278
|
+
/* @__PURE__ */ o(Ke, { width: 24 }),
|
|
1279
|
+
/* @__PURE__ */ o(Ke, { children: "Title" }),
|
|
1280
|
+
/* @__PURE__ */ o(Ke, {})
|
|
1287
1281
|
]
|
|
1288
1282
|
}
|
|
1289
1283
|
);
|
|
1290
1284
|
}
|
|
1291
|
-
),
|
|
1285
|
+
), Hn = me(
|
|
1292
1286
|
({
|
|
1293
1287
|
item: t,
|
|
1294
1288
|
closePopover: e
|
|
1295
1289
|
}) => {
|
|
1296
|
-
const n =
|
|
1297
|
-
(
|
|
1298
|
-
onClick: i,
|
|
1299
|
-
...a
|
|
1300
|
-
}) => {
|
|
1301
|
-
const l = $(
|
|
1302
|
-
(f) => {
|
|
1303
|
-
e(), i == null || i(f);
|
|
1304
|
-
},
|
|
1305
|
-
[i]
|
|
1306
|
-
);
|
|
1307
|
-
return /* @__PURE__ */ o(Yr, { ...a, onClick: l });
|
|
1308
|
-
}
|
|
1309
|
-
);
|
|
1310
|
-
return /* @__PURE__ */ F(Br, { children: [
|
|
1311
|
-
/* @__PURE__ */ o(
|
|
1312
|
-
n,
|
|
1313
|
-
{
|
|
1314
|
-
icon: /* @__PURE__ */ o(H, { type: "" }),
|
|
1315
|
-
onClick: t.playFirst,
|
|
1316
|
-
children: "Play first"
|
|
1317
|
-
}
|
|
1318
|
-
),
|
|
1319
|
-
/* @__PURE__ */ o(
|
|
1320
|
-
n,
|
|
1321
|
-
{
|
|
1322
|
-
icon: /* @__PURE__ */ o(H, { type: "" }),
|
|
1323
|
-
onClick: t.playNext,
|
|
1324
|
-
children: "Play next"
|
|
1325
|
-
}
|
|
1326
|
-
),
|
|
1327
|
-
/* @__PURE__ */ o(
|
|
1328
|
-
n,
|
|
1329
|
-
{
|
|
1330
|
-
icon: /* @__PURE__ */ o(H, { type: ct }),
|
|
1331
|
-
onClick: t.addToPlayQueue,
|
|
1332
|
-
children: "Add to play queue"
|
|
1333
|
-
}
|
|
1334
|
-
),
|
|
1335
|
-
/* @__PURE__ */ o(Pt, { margin: "none" }),
|
|
1336
|
-
/* @__PURE__ */ o(
|
|
1337
|
-
n,
|
|
1338
|
-
{
|
|
1339
|
-
icon: /* @__PURE__ */ o(H, { type: en }),
|
|
1340
|
-
onClick: t.moveToTop,
|
|
1341
|
-
disabled: !t.canMoveToTop,
|
|
1342
|
-
children: "Move to the top"
|
|
1343
|
-
}
|
|
1344
|
-
),
|
|
1345
|
-
/* @__PURE__ */ o(
|
|
1346
|
-
n,
|
|
1347
|
-
{
|
|
1348
|
-
icon: /* @__PURE__ */ o(H, { type: tn }),
|
|
1349
|
-
onClick: t.moveToBottom,
|
|
1350
|
-
disabled: !t.canMoveToBottom,
|
|
1351
|
-
children: "Move to the bottom"
|
|
1352
|
-
}
|
|
1353
|
-
),
|
|
1354
|
-
/* @__PURE__ */ o(Pt, { margin: "none" }),
|
|
1355
|
-
/* @__PURE__ */ o(
|
|
1356
|
-
n,
|
|
1357
|
-
{
|
|
1358
|
-
icon: /* @__PURE__ */ o(H, { type: "" }),
|
|
1359
|
-
onClick: t.removeToTop,
|
|
1360
|
-
disabled: !t.canRemoveToTop,
|
|
1361
|
-
children: "Remove to the top"
|
|
1362
|
-
}
|
|
1363
|
-
),
|
|
1364
|
-
/* @__PURE__ */ o(
|
|
1365
|
-
n,
|
|
1290
|
+
const n = at(
|
|
1291
|
+
() => [
|
|
1366
1292
|
{
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1293
|
+
id: 0,
|
|
1294
|
+
items: [
|
|
1295
|
+
{
|
|
1296
|
+
name: "Play first",
|
|
1297
|
+
icon: /* @__PURE__ */ o(G, { type: "" }),
|
|
1298
|
+
onClick: async () => {
|
|
1299
|
+
e(), await t.playFirst();
|
|
1300
|
+
}
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
name: "Play next",
|
|
1304
|
+
icon: /* @__PURE__ */ o(G, { type: "" }),
|
|
1305
|
+
onClick: async () => {
|
|
1306
|
+
e(), await t.playNext();
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
name: "Add to play queue",
|
|
1311
|
+
icon: /* @__PURE__ */ o(G, { type: lt }),
|
|
1312
|
+
onClick: async () => {
|
|
1313
|
+
e(), await t.addToPlayQueue();
|
|
1314
|
+
}
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
isSeparator: !0
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
name: "Move to the top",
|
|
1321
|
+
icon: /* @__PURE__ */ o(G, { type: rn }),
|
|
1322
|
+
onClick: async () => {
|
|
1323
|
+
e(), t.moveToTop();
|
|
1324
|
+
},
|
|
1325
|
+
disabled: !t.canMoveToTop
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
name: "Move to the bottom",
|
|
1329
|
+
icon: /* @__PURE__ */ o(G, { type: nn }),
|
|
1330
|
+
onClick: async () => {
|
|
1331
|
+
e(), t.moveToBottom();
|
|
1332
|
+
},
|
|
1333
|
+
disabled: !t.canMoveToBottom
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
isSeparator: !0
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
name: "Remove to the top",
|
|
1340
|
+
icon: /* @__PURE__ */ o(G, { type: "" }),
|
|
1341
|
+
onClick: async () => {
|
|
1342
|
+
e(), await t.removeToTop();
|
|
1343
|
+
},
|
|
1344
|
+
disabled: !t.canRemoveToTop
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
name: "Remove others",
|
|
1348
|
+
icon: /* @__PURE__ */ o(G, { type: "" }),
|
|
1349
|
+
onClick: async () => {
|
|
1350
|
+
e(), await t.removeOthers();
|
|
1351
|
+
},
|
|
1352
|
+
disabled: !t.canRemoveOthers
|
|
1353
|
+
}
|
|
1354
|
+
]
|
|
1371
1355
|
}
|
|
1372
|
-
|
|
1373
|
-
|
|
1356
|
+
],
|
|
1357
|
+
[e, t]
|
|
1358
|
+
);
|
|
1359
|
+
return /* @__PURE__ */ o(Bt, { initialPanelId: 0, panels: n });
|
|
1374
1360
|
}
|
|
1375
|
-
),
|
|
1361
|
+
), Jn = me(
|
|
1376
1362
|
({ item: t }) => {
|
|
1377
|
-
const [e, n] = q(!1), i =
|
|
1363
|
+
const [e, n] = q(!1), i = D(() => n(!e), [e]), a = D(() => n(!1), []);
|
|
1378
1364
|
return /* @__PURE__ */ o(
|
|
1379
|
-
|
|
1365
|
+
st,
|
|
1380
1366
|
{
|
|
1381
1367
|
button: /* @__PURE__ */ o(
|
|
1382
|
-
|
|
1368
|
+
H,
|
|
1383
1369
|
{
|
|
1384
1370
|
title: "More options",
|
|
1385
1371
|
"aria-label": "More options",
|
|
@@ -1394,7 +1380,7 @@ const Dt = Z(
|
|
|
1394
1380
|
panelPaddingSize: "none",
|
|
1395
1381
|
anchorPosition: "leftCenter",
|
|
1396
1382
|
children: /* @__PURE__ */ o(
|
|
1397
|
-
|
|
1383
|
+
Hn,
|
|
1398
1384
|
{
|
|
1399
1385
|
item: t,
|
|
1400
1386
|
closePopover: a
|
|
@@ -1403,14 +1389,14 @@ const Dt = Z(
|
|
|
1403
1389
|
}
|
|
1404
1390
|
);
|
|
1405
1391
|
}
|
|
1406
|
-
),
|
|
1392
|
+
), Kn = N(
|
|
1407
1393
|
({ item: t }) => {
|
|
1408
|
-
const e =
|
|
1409
|
-
return /* @__PURE__ */
|
|
1394
|
+
const e = ne();
|
|
1395
|
+
return /* @__PURE__ */ j(tt, { textOnly: !1, hasActions: !0, align: "right", children: [
|
|
1410
1396
|
/* @__PURE__ */ o(
|
|
1411
|
-
|
|
1397
|
+
re,
|
|
1412
1398
|
{
|
|
1413
|
-
iconType:
|
|
1399
|
+
iconType: tn,
|
|
1414
1400
|
size: "s",
|
|
1415
1401
|
onClick: async () => {
|
|
1416
1402
|
t.isCurrent ? await e.setCurrentTime(0) : t.play();
|
|
@@ -1419,48 +1405,40 @@ const Dt = Z(
|
|
|
1419
1405
|
}
|
|
1420
1406
|
),
|
|
1421
1407
|
/* @__PURE__ */ o(
|
|
1422
|
-
|
|
1408
|
+
re,
|
|
1423
1409
|
{
|
|
1424
|
-
iconType:
|
|
1410
|
+
iconType: ct,
|
|
1425
1411
|
size: "s",
|
|
1426
1412
|
onClick: t.remove,
|
|
1427
1413
|
children: "Remove"
|
|
1428
1414
|
}
|
|
1429
1415
|
),
|
|
1430
|
-
/* @__PURE__ */ o(
|
|
1416
|
+
/* @__PURE__ */ o(Jn, { item: t })
|
|
1431
1417
|
] });
|
|
1432
1418
|
}
|
|
1433
|
-
),
|
|
1434
|
-
Audio: "",
|
|
1435
|
-
Dailymotion: "https://www.dailymotion.com/favicon.ico",
|
|
1436
|
-
Niconico: "https://www.nicovideo.jp/favicon.ico",
|
|
1437
|
-
SoundCloud: "https://soundcloud.com/favicon.ico",
|
|
1438
|
-
Twitch: "https://www.twitch.tv/favicon.ico",
|
|
1439
|
-
Vimeo: "https://vimeo.com/favicon.ico",
|
|
1440
|
-
YouTube: "https://www.youtube.com/favicon.ico"
|
|
1441
|
-
}, Qn = Y(
|
|
1419
|
+
), Xn = N(
|
|
1442
1420
|
({ item: t }) => {
|
|
1443
|
-
const e =
|
|
1444
|
-
return /* @__PURE__ */
|
|
1445
|
-
/* @__PURE__ */ o(
|
|
1446
|
-
|
|
1421
|
+
const e = ne();
|
|
1422
|
+
return /* @__PURE__ */ j(Hr, { isSelected: t.isCurrent, children: [
|
|
1423
|
+
/* @__PURE__ */ o(qr, { children: /* @__PURE__ */ o(
|
|
1424
|
+
Yt,
|
|
1447
1425
|
{
|
|
1448
1426
|
id: t.id.toString(),
|
|
1449
1427
|
checked: t.isSelected,
|
|
1450
1428
|
onChange: t.toggleSelected
|
|
1451
1429
|
}
|
|
1452
1430
|
) }),
|
|
1453
|
-
/* @__PURE__ */ o(
|
|
1431
|
+
/* @__PURE__ */ o(tt, { textOnly: !1, children: /* @__PURE__ */ o(
|
|
1454
1432
|
"img",
|
|
1455
1433
|
{
|
|
1456
|
-
src:
|
|
1434
|
+
src: er[t.type],
|
|
1457
1435
|
width: 16,
|
|
1458
1436
|
height: 16,
|
|
1459
1437
|
alt: t.type
|
|
1460
1438
|
}
|
|
1461
1439
|
) }),
|
|
1462
|
-
/* @__PURE__ */ o(
|
|
1463
|
-
|
|
1440
|
+
/* @__PURE__ */ o(tt, { children: /* @__PURE__ */ o(
|
|
1441
|
+
Gr,
|
|
1464
1442
|
{
|
|
1465
1443
|
href: t.url,
|
|
1466
1444
|
target: "_blank",
|
|
@@ -1469,37 +1447,51 @@ const Dt = Z(
|
|
|
1469
1447
|
children: t.title
|
|
1470
1448
|
}
|
|
1471
1449
|
) }),
|
|
1472
|
-
/* @__PURE__ */ o(
|
|
1450
|
+
/* @__PURE__ */ o(Kn, { item: t })
|
|
1473
1451
|
] }, t.id);
|
|
1474
1452
|
}
|
|
1475
|
-
),
|
|
1453
|
+
), Zn = N(
|
|
1476
1454
|
({ playQueueStore: t }) => /* @__PURE__ */ o(
|
|
1477
1455
|
En,
|
|
1478
1456
|
{
|
|
1479
1457
|
tag: "tbody",
|
|
1480
1458
|
list: t.items,
|
|
1481
1459
|
setList: (e) => t.setItems(e),
|
|
1482
|
-
children: t.items.map((e) => /* @__PURE__ */ o(
|
|
1460
|
+
children: t.items.map((e) => /* @__PURE__ */ o(Xn, { item: e }, e.id))
|
|
1483
1461
|
}
|
|
1484
1462
|
)
|
|
1485
|
-
),
|
|
1486
|
-
({ playQueueStore: t }) => /* @__PURE__ */
|
|
1463
|
+
), Qn = N(
|
|
1464
|
+
({ playQueueStore: t }) => /* @__PURE__ */ j(Jr, { children: [
|
|
1487
1465
|
/* @__PURE__ */ o(Gn, { playQueueStore: t }),
|
|
1488
|
-
/* @__PURE__ */ o(
|
|
1466
|
+
/* @__PURE__ */ o(Zn, { playQueueStore: t })
|
|
1489
1467
|
] })
|
|
1490
1468
|
);
|
|
1491
|
-
|
|
1469
|
+
function ei(t) {
|
|
1470
|
+
return t !== null && typeof t == "object" && "title" in t && typeof t.title == "string";
|
|
1471
|
+
}
|
|
1472
|
+
const ti = N(
|
|
1473
|
+
({ playQueueStore: t }) => /* @__PURE__ */ o(
|
|
1474
|
+
re,
|
|
1475
|
+
{
|
|
1476
|
+
iconType: lt,
|
|
1477
|
+
onClick: t.addSelectedItems,
|
|
1478
|
+
disabled: t.isEmpty || t.selectedItems.length === 0,
|
|
1479
|
+
children: "Add to play queue"
|
|
1480
|
+
}
|
|
1481
|
+
)
|
|
1482
|
+
);
|
|
1483
|
+
N(
|
|
1492
1484
|
({ playQueueStore: t }) => {
|
|
1493
1485
|
const [e, n] = q(!1);
|
|
1494
|
-
return /* @__PURE__ */
|
|
1486
|
+
return /* @__PURE__ */ j(ut, { children: [
|
|
1495
1487
|
e && /* @__PURE__ */ o(
|
|
1496
|
-
|
|
1488
|
+
Xr,
|
|
1497
1489
|
{
|
|
1498
1490
|
type: "push",
|
|
1499
1491
|
size: "s",
|
|
1500
1492
|
onClose: () => n(!1),
|
|
1501
1493
|
children: /* @__PURE__ */ o("div", { style: { blockSize: "100%" }, children: /* @__PURE__ */ o(
|
|
1502
|
-
|
|
1494
|
+
Kr,
|
|
1503
1495
|
{
|
|
1504
1496
|
language: "json",
|
|
1505
1497
|
overflowHeight: "100%",
|
|
@@ -1515,22 +1507,45 @@ Y(
|
|
|
1515
1507
|
}
|
|
1516
1508
|
),
|
|
1517
1509
|
/* @__PURE__ */ o(
|
|
1518
|
-
|
|
1510
|
+
re,
|
|
1519
1511
|
{
|
|
1520
1512
|
onClick: () => n((i) => !i),
|
|
1521
|
-
iconType:
|
|
1513
|
+
iconType: on,
|
|
1522
1514
|
children: "Developer tools"
|
|
1523
1515
|
}
|
|
1524
1516
|
)
|
|
1525
1517
|
] });
|
|
1526
1518
|
}
|
|
1527
1519
|
);
|
|
1528
|
-
const
|
|
1520
|
+
const ki = N(
|
|
1529
1521
|
({ playQueueStore: t }) => {
|
|
1530
|
-
const { euiTheme: e } =
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1522
|
+
const { euiTheme: e } = Vt(), n = D(
|
|
1523
|
+
async (i) => {
|
|
1524
|
+
const a = Fr(i.url);
|
|
1525
|
+
if (a !== void 0) {
|
|
1526
|
+
const l = a.extractVideoId(i.url);
|
|
1527
|
+
if (l !== void 0) {
|
|
1528
|
+
const h = await (await fetch(
|
|
1529
|
+
`https://noembed.com/embed?url=${encodeURIComponent(
|
|
1530
|
+
i.url
|
|
1531
|
+
)}`
|
|
1532
|
+
)).json();
|
|
1533
|
+
await t.addItems([
|
|
1534
|
+
t.createItem({
|
|
1535
|
+
url: i.url,
|
|
1536
|
+
type: a.type,
|
|
1537
|
+
videoId: l,
|
|
1538
|
+
title: i.title || (ei(h) ? h.title : l)
|
|
1539
|
+
})
|
|
1540
|
+
]);
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
},
|
|
1544
|
+
[t]
|
|
1545
|
+
);
|
|
1546
|
+
return /* @__PURE__ */ j(ut, { children: [
|
|
1547
|
+
/* @__PURE__ */ j(
|
|
1548
|
+
se,
|
|
1534
1549
|
{
|
|
1535
1550
|
alignItems: "center",
|
|
1536
1551
|
gutterSize: "m",
|
|
@@ -1542,44 +1557,36 @@ const ri = Y(
|
|
|
1542
1557
|
},
|
|
1543
1558
|
children: [
|
|
1544
1559
|
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1545
|
-
|
|
1560
|
+
re,
|
|
1546
1561
|
{
|
|
1547
1562
|
disabled: t.isEmpty || t.selectedItems.length === 0,
|
|
1548
1563
|
onClick: t.playSelectedItemsNext,
|
|
1549
1564
|
children: "Play next"
|
|
1550
1565
|
}
|
|
1551
1566
|
) }),
|
|
1567
|
+
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(ti, { playQueueStore: t }) }),
|
|
1552
1568
|
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1553
|
-
|
|
1569
|
+
re,
|
|
1554
1570
|
{
|
|
1555
1571
|
iconType: ct,
|
|
1556
|
-
onClick: t.addSelectedItems,
|
|
1557
|
-
disabled: t.isEmpty || t.selectedItems.length === 0,
|
|
1558
|
-
children: "Add to play queue"
|
|
1559
|
-
}
|
|
1560
|
-
) }),
|
|
1561
|
-
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1562
|
-
ne,
|
|
1563
|
-
{
|
|
1564
|
-
iconType: ut,
|
|
1565
1572
|
onClick: t.removeSelectedItems,
|
|
1566
1573
|
disabled: t.isEmpty || t.selectedItems.length === 0,
|
|
1567
1574
|
children: "Remove"
|
|
1568
1575
|
}
|
|
1569
1576
|
) }),
|
|
1570
1577
|
/* @__PURE__ */ o(J, { grow: !1, children: /* @__PURE__ */ o(
|
|
1571
|
-
|
|
1578
|
+
re,
|
|
1572
1579
|
{
|
|
1573
|
-
iconType:
|
|
1580
|
+
iconType: an,
|
|
1574
1581
|
onClick: t.clear,
|
|
1575
1582
|
disabled: t.isEmpty,
|
|
1576
1583
|
children: "Clear"
|
|
1577
1584
|
}
|
|
1578
1585
|
) }),
|
|
1579
1586
|
/* @__PURE__ */ o(J, { grow: !0 }),
|
|
1580
|
-
/* @__PURE__ */
|
|
1587
|
+
/* @__PURE__ */ j(J, { grow: !1, children: [
|
|
1581
1588
|
!1,
|
|
1582
|
-
/* @__PURE__ */ o(
|
|
1589
|
+
/* @__PURE__ */ o($t, { onSave: n })
|
|
1583
1590
|
] })
|
|
1584
1591
|
]
|
|
1585
1592
|
}
|
|
@@ -1597,32 +1604,21 @@ const ri = Y(
|
|
|
1597
1604
|
}
|
|
1598
1605
|
),
|
|
1599
1606
|
t.isEmpty ? /* @__PURE__ */ o(
|
|
1600
|
-
|
|
1607
|
+
Zr,
|
|
1601
1608
|
{
|
|
1602
1609
|
title: /* @__PURE__ */ o("h2", { children: "We couldn't find any videos" }),
|
|
1603
1610
|
body: /* @__PURE__ */ o("p", { children: "Your video library doesn't contain any video content." }),
|
|
1604
|
-
actions: /* @__PURE__ */ o(
|
|
1611
|
+
actions: /* @__PURE__ */ o($t, { onSave: n })
|
|
1605
1612
|
}
|
|
1606
|
-
) : /* @__PURE__ */ o(
|
|
1613
|
+
) : /* @__PURE__ */ o(Qn, { playQueueStore: t })
|
|
1607
1614
|
] });
|
|
1608
1615
|
}
|
|
1609
|
-
),
|
|
1610
|
-
({ playQueueStore: t }) => /* @__PURE__ */ F(Le, { children: [
|
|
1611
|
-
/* @__PURE__ */ o(
|
|
1612
|
-
nt.Header,
|
|
1613
|
-
{
|
|
1614
|
-
pageTitle: "Play queue",
|
|
1615
|
-
rightSideItems: []
|
|
1616
|
-
}
|
|
1617
|
-
),
|
|
1618
|
-
/* @__PURE__ */ o(nt.Section, { children: /* @__PURE__ */ o(ri, { playQueueStore: t }) })
|
|
1619
|
-
] })
|
|
1620
|
-
), et = new Tn({
|
|
1616
|
+
), Qe = new Tn({
|
|
1621
1617
|
coerceTypes: !0
|
|
1622
1618
|
});
|
|
1623
|
-
function
|
|
1619
|
+
function ri(t, e) {
|
|
1624
1620
|
let n;
|
|
1625
|
-
if (n =
|
|
1621
|
+
if (n = Qe.getSchema(e), n === void 0 && (Qe.addSchema(t, e), n = Qe.getSchema(e)), n === void 0 || n.schema !== t)
|
|
1626
1622
|
throw new Error(
|
|
1627
1623
|
`Invalid schema. Expected: '${JSON.stringify(
|
|
1628
1624
|
t
|
|
@@ -1630,7 +1626,7 @@ function ni(t, e) {
|
|
|
1630
1626
|
);
|
|
1631
1627
|
return n;
|
|
1632
1628
|
}
|
|
1633
|
-
const
|
|
1629
|
+
const ni = {
|
|
1634
1630
|
type: "object",
|
|
1635
1631
|
properties: {
|
|
1636
1632
|
url: {
|
|
@@ -1648,8 +1644,8 @@ const ii = {
|
|
|
1648
1644
|
},
|
|
1649
1645
|
required: ["url", "type", "videoId", "title"]
|
|
1650
1646
|
};
|
|
1651
|
-
var
|
|
1652
|
-
const
|
|
1647
|
+
var w = /* @__PURE__ */ ((t) => (t.Off = "Off", t.All = "All", t.One = "One", t))(w || {});
|
|
1648
|
+
const ii = {
|
|
1653
1649
|
type: "object",
|
|
1654
1650
|
properties: {
|
|
1655
1651
|
version: {
|
|
@@ -1658,7 +1654,7 @@ const oi = {
|
|
|
1658
1654
|
},
|
|
1659
1655
|
repeat: {
|
|
1660
1656
|
type: "string",
|
|
1661
|
-
enum: Object.values(
|
|
1657
|
+
enum: Object.values(w),
|
|
1662
1658
|
nullable: !0
|
|
1663
1659
|
},
|
|
1664
1660
|
shuffle: {
|
|
@@ -1668,27 +1664,27 @@ const oi = {
|
|
|
1668
1664
|
items: {
|
|
1669
1665
|
type: "array",
|
|
1670
1666
|
nullable: !0,
|
|
1671
|
-
items:
|
|
1667
|
+
items: ni
|
|
1672
1668
|
},
|
|
1673
1669
|
currentIndex: {
|
|
1674
1670
|
type: "integer",
|
|
1675
1671
|
nullable: !0
|
|
1676
1672
|
}
|
|
1677
1673
|
}
|
|
1678
|
-
},
|
|
1674
|
+
}, Ie = class Ie {
|
|
1679
1675
|
constructor(e, n, i) {
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
this.observableStateProvider = e, this.playQueueStore = n, this.dto = i, this.id =
|
|
1683
|
-
isSelected:
|
|
1684
|
-
isCurrent:
|
|
1685
|
-
index:
|
|
1686
|
-
isFirst:
|
|
1687
|
-
isLast:
|
|
1688
|
-
canMoveToTop:
|
|
1689
|
-
canMoveToBottom:
|
|
1690
|
-
canRemoveToTop:
|
|
1691
|
-
canRemoveOthers:
|
|
1676
|
+
B(this, "id");
|
|
1677
|
+
B(this, "isSelected", !1);
|
|
1678
|
+
this.observableStateProvider = e, this.playQueueStore = n, this.dto = i, this.id = Ie.nextId++, e.makeObservable(this, {
|
|
1679
|
+
isSelected: Z,
|
|
1680
|
+
isCurrent: A,
|
|
1681
|
+
index: A,
|
|
1682
|
+
isFirst: A,
|
|
1683
|
+
isLast: A,
|
|
1684
|
+
canMoveToTop: A,
|
|
1685
|
+
canMoveToBottom: A,
|
|
1686
|
+
canRemoveToTop: A,
|
|
1687
|
+
canRemoveOthers: A,
|
|
1692
1688
|
unselect: y,
|
|
1693
1689
|
toggleSelected: y.bound,
|
|
1694
1690
|
play: y,
|
|
@@ -1703,7 +1699,7 @@ const oi = {
|
|
|
1703
1699
|
});
|
|
1704
1700
|
}
|
|
1705
1701
|
static fromDto(e, n, i) {
|
|
1706
|
-
return new
|
|
1702
|
+
return new Ie(
|
|
1707
1703
|
e,
|
|
1708
1704
|
n,
|
|
1709
1705
|
i
|
|
@@ -1785,34 +1781,34 @@ const oi = {
|
|
|
1785
1781
|
return this.playQueueStore.removeOtherItems(this);
|
|
1786
1782
|
}
|
|
1787
1783
|
};
|
|
1788
|
-
|
|
1789
|
-
let
|
|
1790
|
-
class
|
|
1784
|
+
B(Ie, "nextId", 1);
|
|
1785
|
+
let nt = Ie;
|
|
1786
|
+
class oi {
|
|
1791
1787
|
constructor(e) {
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1788
|
+
B(this, "interacted", !1);
|
|
1789
|
+
B(this, "items", []);
|
|
1790
|
+
B(this, "currentId");
|
|
1791
|
+
B(this, "repeat", w.Off);
|
|
1792
|
+
B(this, "shuffle", !1);
|
|
1797
1793
|
this.observableStateProvider = e, e.makeObservable(this, {
|
|
1798
|
-
interacted:
|
|
1799
|
-
items:
|
|
1800
|
-
currentId:
|
|
1801
|
-
repeat:
|
|
1802
|
-
shuffle:
|
|
1803
|
-
localStorageState:
|
|
1804
|
-
isEmpty:
|
|
1805
|
-
currentItem:
|
|
1806
|
-
canPlay:
|
|
1807
|
-
canPause:
|
|
1808
|
-
hasMultipleItems:
|
|
1809
|
-
currentIndex:
|
|
1810
|
-
hasPreviousItem:
|
|
1811
|
-
hasNextItem:
|
|
1812
|
-
isLastItem:
|
|
1813
|
-
selectedItems:
|
|
1814
|
-
allItemsSelected:
|
|
1815
|
-
selectedItemsOrAllItems:
|
|
1794
|
+
interacted: Z,
|
|
1795
|
+
items: Z,
|
|
1796
|
+
currentId: Z,
|
|
1797
|
+
repeat: Z,
|
|
1798
|
+
shuffle: Z,
|
|
1799
|
+
localStorageState: A.struct,
|
|
1800
|
+
isEmpty: A,
|
|
1801
|
+
currentItem: A,
|
|
1802
|
+
canPlay: A,
|
|
1803
|
+
canPause: A,
|
|
1804
|
+
hasMultipleItems: A,
|
|
1805
|
+
currentIndex: A,
|
|
1806
|
+
hasPreviousItem: A,
|
|
1807
|
+
hasNextItem: A,
|
|
1808
|
+
isLastItem: A,
|
|
1809
|
+
selectedItems: A,
|
|
1810
|
+
allItemsSelected: A,
|
|
1811
|
+
selectedItemsOrAllItems: A,
|
|
1816
1812
|
setItems: y,
|
|
1817
1813
|
interact: y,
|
|
1818
1814
|
clear: y.bound,
|
|
@@ -1838,7 +1834,7 @@ class ai {
|
|
|
1838
1834
|
});
|
|
1839
1835
|
}
|
|
1840
1836
|
createItem(e) {
|
|
1841
|
-
return
|
|
1837
|
+
return nt.fromDto(
|
|
1842
1838
|
this.observableStateProvider,
|
|
1843
1839
|
this,
|
|
1844
1840
|
e
|
|
@@ -1855,11 +1851,11 @@ class ai {
|
|
|
1855
1851
|
}
|
|
1856
1852
|
set localStorageState(e) {
|
|
1857
1853
|
var n;
|
|
1858
|
-
this.repeat = e.repeat ??
|
|
1854
|
+
this.repeat = e.repeat ?? w.Off, this.shuffle = e.shuffle ?? !1, this.items = ((n = e.items) == null ? void 0 : n.map((i) => this.createItem(i))) ?? [], this.currentIndex = e.currentIndex;
|
|
1859
1855
|
}
|
|
1860
1856
|
validateLocalStorageState(e) {
|
|
1861
|
-
return
|
|
1862
|
-
|
|
1857
|
+
return ri(
|
|
1858
|
+
ii,
|
|
1863
1859
|
"PlayQueueDto"
|
|
1864
1860
|
)(e);
|
|
1865
1861
|
}
|
|
@@ -1967,9 +1963,9 @@ class ai {
|
|
|
1967
1963
|
}
|
|
1968
1964
|
async removeItems(e) {
|
|
1969
1965
|
const { currentItem: n } = this;
|
|
1970
|
-
|
|
1966
|
+
St(this.items, ...e.filter((l) => l !== n));
|
|
1971
1967
|
const { currentIndex: i, isLastItem: a } = this;
|
|
1972
|
-
|
|
1968
|
+
St(
|
|
1973
1969
|
this.items,
|
|
1974
1970
|
e.find((l) => l === n)
|
|
1975
1971
|
), this.currentItem !== n && (this.interact(), a ? await this.goToFirst() : this.currentIndex = i);
|
|
@@ -1991,14 +1987,14 @@ class ai {
|
|
|
1991
1987
|
}
|
|
1992
1988
|
toggleRepeat() {
|
|
1993
1989
|
switch (this.repeat) {
|
|
1994
|
-
case
|
|
1995
|
-
this.repeat =
|
|
1990
|
+
case w.Off:
|
|
1991
|
+
this.repeat = w.All;
|
|
1996
1992
|
break;
|
|
1997
|
-
case
|
|
1998
|
-
this.repeat =
|
|
1993
|
+
case w.All:
|
|
1994
|
+
this.repeat = w.One;
|
|
1999
1995
|
break;
|
|
2000
|
-
case
|
|
2001
|
-
this.repeat =
|
|
1996
|
+
case w.One:
|
|
1997
|
+
this.repeat = w.Off;
|
|
2002
1998
|
break;
|
|
2003
1999
|
}
|
|
2004
2000
|
}
|
|
@@ -2015,232 +2011,36 @@ class ai {
|
|
|
2015
2011
|
this.currentIndex !== void 0 && (this.currentIndex = 0);
|
|
2016
2012
|
}
|
|
2017
2013
|
}
|
|
2018
|
-
const
|
|
2014
|
+
const tr = zt(void 0), Mi = ({
|
|
2019
2015
|
children: t
|
|
2020
2016
|
}) => {
|
|
2021
2017
|
const [e] = q(
|
|
2022
|
-
() => new
|
|
2023
|
-
), n =
|
|
2024
|
-
return
|
|
2018
|
+
() => new oi(new Ht())
|
|
2019
|
+
), n = ne();
|
|
2020
|
+
return Ar(() => Or(
|
|
2025
2021
|
() => e.currentItem,
|
|
2026
2022
|
async (i, a) => {
|
|
2027
2023
|
i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await n.setCurrentTime(0);
|
|
2028
2024
|
}
|
|
2029
|
-
), [e, n]), /* @__PURE__ */ o(
|
|
2030
|
-
},
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
t.setPercent(h);
|
|
2036
|
-
},
|
|
2037
|
-
[t]
|
|
2038
|
-
), a = $(
|
|
2039
|
-
(f) => {
|
|
2040
|
-
f.button === 0 && t.setSeeking(!0);
|
|
2041
|
-
},
|
|
2042
|
-
[t]
|
|
2043
|
-
), l = $(
|
|
2044
|
-
async (f) => {
|
|
2045
|
-
if (f.button === 0) {
|
|
2046
|
-
const h = Number(f.currentTarget.value) / 100;
|
|
2047
|
-
t.setSeeking(!1);
|
|
2048
|
-
const m = await n.getDuration();
|
|
2049
|
-
m !== void 0 && await n.setCurrentTime(m * h);
|
|
2050
|
-
}
|
|
2051
|
-
},
|
|
2052
|
-
[t, n]
|
|
2053
|
-
);
|
|
2054
|
-
return /* @__PURE__ */ o(
|
|
2055
|
-
Ut,
|
|
2056
|
-
{
|
|
2057
|
-
min: 0,
|
|
2058
|
-
max: 100,
|
|
2059
|
-
step: 1e-7,
|
|
2060
|
-
value: t.percent * 100,
|
|
2061
|
-
onChange: i,
|
|
2062
|
-
onMouseDown: a,
|
|
2063
|
-
onMouseUp: l,
|
|
2064
|
-
fullWidth: !0,
|
|
2065
|
-
showRange: !0,
|
|
2066
|
-
css: { blockSize: 32 },
|
|
2067
|
-
disabled: e.isEmpty
|
|
2068
|
-
}
|
|
2069
|
-
);
|
|
2070
|
-
}
|
|
2071
|
-
), ci = Z(
|
|
2072
|
-
({ button: t, isOpen: e, closePopover: n }) => {
|
|
2073
|
-
const [i, a] = q("0"), l = ie();
|
|
2074
|
-
Ar(() => {
|
|
2075
|
-
e && l.getVolume().then((h) => {
|
|
2076
|
-
h !== void 0 && a(Math.floor(h * 100).toString());
|
|
2077
|
-
});
|
|
2078
|
-
}, [e, l]);
|
|
2079
|
-
const f = $(
|
|
2080
|
-
async (h) => {
|
|
2081
|
-
a(h.currentTarget.value), await l.setVolume(Number(h.currentTarget.value) / 100);
|
|
2082
|
-
},
|
|
2083
|
-
[l]
|
|
2084
|
-
);
|
|
2085
|
-
return /* @__PURE__ */ o(
|
|
2086
|
-
lt,
|
|
2087
|
-
{
|
|
2088
|
-
button: t,
|
|
2089
|
-
isOpen: e,
|
|
2090
|
-
closePopover: n,
|
|
2091
|
-
anchorPosition: "upRight",
|
|
2092
|
-
children: /* @__PURE__ */ o(tt, { children: /* @__PURE__ */ F(
|
|
2093
|
-
me,
|
|
2094
|
-
{
|
|
2095
|
-
responsive: !1,
|
|
2096
|
-
gutterSize: "s",
|
|
2097
|
-
justifyContent: "center",
|
|
2098
|
-
alignItems: "center",
|
|
2099
|
-
children: [
|
|
2100
|
-
/* @__PURE__ */ o(
|
|
2101
|
-
G,
|
|
2102
|
-
{
|
|
2103
|
-
title: "Mute",
|
|
2104
|
-
"aria-label": "Mute",
|
|
2105
|
-
iconType: Ht,
|
|
2106
|
-
size: "s",
|
|
2107
|
-
iconSize: "l"
|
|
2108
|
-
}
|
|
2109
|
-
),
|
|
2110
|
-
/* @__PURE__ */ o(
|
|
2111
|
-
Ut,
|
|
2112
|
-
{
|
|
2113
|
-
min: 0,
|
|
2114
|
-
max: 100,
|
|
2115
|
-
step: 1,
|
|
2116
|
-
value: i,
|
|
2117
|
-
onChange: f,
|
|
2118
|
-
css: { blockSize: 32 }
|
|
2119
|
-
}
|
|
2120
|
-
)
|
|
2121
|
-
]
|
|
2122
|
-
}
|
|
2123
|
-
) })
|
|
2124
|
-
}
|
|
2125
|
-
);
|
|
2126
|
-
}
|
|
2127
|
-
), ui = Z(
|
|
2128
|
-
({
|
|
2129
|
-
playQueueStore: t,
|
|
2130
|
-
closePopover: e
|
|
2131
|
-
}) => {
|
|
2132
|
-
const n = ie(), i = $(async () => {
|
|
2133
|
-
const p = await n.getCurrentTime();
|
|
2134
|
-
p !== void 0 && await n.setCurrentTime(p - 10), e();
|
|
2135
|
-
}, [n, e]), a = $(async () => {
|
|
2136
|
-
const p = await n.getCurrentTime();
|
|
2137
|
-
p !== void 0 && await n.setCurrentTime(p + 30), e();
|
|
2138
|
-
}, [n, e]), l = $(
|
|
2139
|
-
async (p) => {
|
|
2140
|
-
await n.setPlaybackRate(p), e();
|
|
2141
|
-
},
|
|
2142
|
-
[n, e]
|
|
2143
|
-
), f = $(async () => {
|
|
2144
|
-
t.currentItem !== void 0 && await t.removeItems([
|
|
2145
|
-
t.currentItem
|
|
2146
|
-
]), e();
|
|
2147
|
-
}, [t, e]), [h] = q(), m = Vt(
|
|
2148
|
-
() => [
|
|
2149
|
-
{
|
|
2150
|
-
id: 0,
|
|
2151
|
-
items: [
|
|
2152
|
-
{
|
|
2153
|
-
name: "Speed",
|
|
2154
|
-
icon: /* @__PURE__ */ o(H, { type: on, size: "m" }),
|
|
2155
|
-
panel: 1
|
|
2156
|
-
},
|
|
2157
|
-
{
|
|
2158
|
-
name: "Skip back 10 seconds",
|
|
2159
|
-
icon: /* @__PURE__ */ o(H, { type: an, size: "m" }),
|
|
2160
|
-
onClick: i,
|
|
2161
|
-
disabled: t.isEmpty
|
|
2162
|
-
},
|
|
2163
|
-
{
|
|
2164
|
-
name: "Skip forward 30 seconds",
|
|
2165
|
-
icon: /* @__PURE__ */ o(H, { type: sn, size: "m" }),
|
|
2166
|
-
onClick: a,
|
|
2167
|
-
disabled: t.isEmpty
|
|
2168
|
-
},
|
|
2169
|
-
{
|
|
2170
|
-
isSeparator: !0
|
|
2171
|
-
},
|
|
2172
|
-
{
|
|
2173
|
-
name: "Remove from play queue",
|
|
2174
|
-
icon: /* @__PURE__ */ o(H, { type: ut, size: "m" }),
|
|
2175
|
-
onClick: f,
|
|
2176
|
-
disabled: t.isEmpty
|
|
2177
|
-
}
|
|
2178
|
-
]
|
|
2179
|
-
},
|
|
2180
|
-
{
|
|
2181
|
-
id: 1,
|
|
2182
|
-
title: "Speed",
|
|
2183
|
-
items: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2].map(
|
|
2184
|
-
(p) => ({
|
|
2185
|
-
name: p.toString(),
|
|
2186
|
-
onClick: () => l(p),
|
|
2187
|
-
icon: p === h ? "check" : "empty"
|
|
2188
|
-
})
|
|
2189
|
-
)
|
|
2190
|
-
}
|
|
2191
|
-
],
|
|
2192
|
-
[
|
|
2193
|
-
t,
|
|
2194
|
-
i,
|
|
2195
|
-
a,
|
|
2196
|
-
f,
|
|
2197
|
-
l,
|
|
2198
|
-
h
|
|
2199
|
-
]
|
|
2200
|
-
);
|
|
2201
|
-
return /* @__PURE__ */ o(Xr, { initialPanelId: 0, panels: m });
|
|
2202
|
-
}
|
|
2203
|
-
), fi = Z(
|
|
2204
|
-
({
|
|
2205
|
-
playQueueStore: t,
|
|
2206
|
-
button: e,
|
|
2207
|
-
isOpen: n,
|
|
2208
|
-
closePopover: i
|
|
2209
|
-
}) => /* @__PURE__ */ o(
|
|
2210
|
-
lt,
|
|
2211
|
-
{
|
|
2212
|
-
button: e,
|
|
2213
|
-
isOpen: n,
|
|
2214
|
-
closePopover: i,
|
|
2215
|
-
panelPaddingSize: "none",
|
|
2216
|
-
anchorPosition: "upRight",
|
|
2217
|
-
children: /* @__PURE__ */ o(
|
|
2218
|
-
ui,
|
|
2219
|
-
{
|
|
2220
|
-
playQueueStore: t,
|
|
2221
|
-
closePopover: i
|
|
2222
|
-
}
|
|
2223
|
-
)
|
|
2224
|
-
}
|
|
2225
|
-
)
|
|
2226
|
-
), di = {
|
|
2227
|
-
[R.Off]: un,
|
|
2228
|
-
[R.All]: cn,
|
|
2229
|
-
[R.One]: ln
|
|
2230
|
-
}, mi = Y(
|
|
2025
|
+
), [e, n]), /* @__PURE__ */ o(tr.Provider, { value: e, children: t });
|
|
2026
|
+
}, ai = () => ot(tr), si = {
|
|
2027
|
+
[w.Off]: cn,
|
|
2028
|
+
[w.All]: ln,
|
|
2029
|
+
[w.One]: sn
|
|
2030
|
+
}, li = N(
|
|
2231
2031
|
({
|
|
2232
2032
|
playerStore: t,
|
|
2233
2033
|
playQueueStore: e
|
|
2234
2034
|
}) => {
|
|
2235
|
-
const n =
|
|
2035
|
+
const n = ne(), i = D(async () => {
|
|
2236
2036
|
if (e.hasPreviousItem) {
|
|
2237
2037
|
const a = await n.getCurrentTime();
|
|
2238
2038
|
a === void 0 || a < 5 ? await e.previous() : await n.setCurrentTime(0);
|
|
2239
2039
|
} else
|
|
2240
2040
|
await n.setCurrentTime(0);
|
|
2241
2041
|
}, [e, n]);
|
|
2242
|
-
return /* @__PURE__ */
|
|
2243
|
-
|
|
2042
|
+
return /* @__PURE__ */ j(
|
|
2043
|
+
se,
|
|
2244
2044
|
{
|
|
2245
2045
|
responsive: !1,
|
|
2246
2046
|
gutterSize: "s",
|
|
@@ -2248,11 +2048,11 @@ const er = Lt(void 0), ki = ({
|
|
|
2248
2048
|
alignItems: "center",
|
|
2249
2049
|
children: [
|
|
2250
2050
|
/* @__PURE__ */ o(
|
|
2251
|
-
|
|
2051
|
+
H,
|
|
2252
2052
|
{
|
|
2253
2053
|
title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2254
2054
|
"aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2255
|
-
iconType: e.shuffle ?
|
|
2055
|
+
iconType: e.shuffle ? un : dn,
|
|
2256
2056
|
size: "s",
|
|
2257
2057
|
iconSize: "l",
|
|
2258
2058
|
onClick: e.toggleShuffle,
|
|
@@ -2260,11 +2060,11 @@ const er = Lt(void 0), ki = ({
|
|
|
2260
2060
|
}
|
|
2261
2061
|
),
|
|
2262
2062
|
/* @__PURE__ */ o(
|
|
2263
|
-
|
|
2063
|
+
H,
|
|
2264
2064
|
{
|
|
2265
2065
|
title: "Previous",
|
|
2266
2066
|
"aria-label": "Previous",
|
|
2267
|
-
iconType:
|
|
2067
|
+
iconType: fn,
|
|
2268
2068
|
size: "s",
|
|
2269
2069
|
iconSize: "l",
|
|
2270
2070
|
onClick: i,
|
|
@@ -2272,34 +2072,34 @@ const er = Lt(void 0), ki = ({
|
|
|
2272
2072
|
}
|
|
2273
2073
|
),
|
|
2274
2074
|
t.playing ? /* @__PURE__ */ o(
|
|
2275
|
-
|
|
2075
|
+
H,
|
|
2276
2076
|
{
|
|
2277
2077
|
title: "Pause",
|
|
2278
2078
|
"aria-label": "Pause",
|
|
2279
|
-
iconType:
|
|
2079
|
+
iconType: mn,
|
|
2280
2080
|
size: "s",
|
|
2281
2081
|
iconSize: "l",
|
|
2282
2082
|
onClick: () => n.pause(),
|
|
2283
|
-
disabled: !e.
|
|
2083
|
+
disabled: !e.canPause || !t.controller.supports("pause")
|
|
2284
2084
|
}
|
|
2285
2085
|
) : /* @__PURE__ */ o(
|
|
2286
|
-
|
|
2086
|
+
H,
|
|
2287
2087
|
{
|
|
2288
2088
|
title: "Play",
|
|
2289
2089
|
"aria-label": "Play",
|
|
2290
|
-
iconType:
|
|
2090
|
+
iconType: hn,
|
|
2291
2091
|
size: "s",
|
|
2292
2092
|
iconSize: "l",
|
|
2293
2093
|
onClick: () => n.play(),
|
|
2294
|
-
disabled: !e.canPlay
|
|
2094
|
+
disabled: !e.canPlay || !t.controller.supports("play")
|
|
2295
2095
|
}
|
|
2296
2096
|
),
|
|
2297
2097
|
/* @__PURE__ */ o(
|
|
2298
|
-
|
|
2098
|
+
H,
|
|
2299
2099
|
{
|
|
2300
2100
|
title: "Next",
|
|
2301
2101
|
"aria-label": "Next",
|
|
2302
|
-
iconType:
|
|
2102
|
+
iconType: vn,
|
|
2303
2103
|
size: "s",
|
|
2304
2104
|
iconSize: "l",
|
|
2305
2105
|
onClick: e.next,
|
|
@@ -2307,11 +2107,11 @@ const er = Lt(void 0), ki = ({
|
|
|
2307
2107
|
}
|
|
2308
2108
|
),
|
|
2309
2109
|
/* @__PURE__ */ o(
|
|
2310
|
-
|
|
2110
|
+
H,
|
|
2311
2111
|
{
|
|
2312
|
-
title: `Repeat: ${e.repeat ===
|
|
2313
|
-
"aria-label": `Repeat: ${e.repeat ===
|
|
2314
|
-
iconType:
|
|
2112
|
+
title: `Repeat: ${e.repeat === w.All ? "All" : e.repeat === w.One ? "One" : "Off"}`,
|
|
2113
|
+
"aria-label": `Repeat: ${e.repeat === w.All ? "All" : e.repeat === w.One ? "One" : "Off"}`,
|
|
2114
|
+
iconType: si[e.repeat],
|
|
2315
2115
|
size: "s",
|
|
2316
2116
|
iconSize: "l",
|
|
2317
2117
|
onClick: e.toggleRepeat
|
|
@@ -2321,101 +2121,365 @@ const er = Lt(void 0), ki = ({
|
|
|
2321
2121
|
}
|
|
2322
2122
|
);
|
|
2323
2123
|
}
|
|
2324
|
-
),
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2124
|
+
), ci = N(
|
|
2125
|
+
({ playQueueStore: t }) => {
|
|
2126
|
+
const e = ne();
|
|
2127
|
+
return /* @__PURE__ */ o(
|
|
2128
|
+
se,
|
|
2129
|
+
{
|
|
2130
|
+
responsive: !1,
|
|
2131
|
+
gutterSize: "s",
|
|
2132
|
+
justifyContent: "flexStart",
|
|
2133
|
+
alignItems: "center",
|
|
2134
|
+
children: t.currentItem && /* @__PURE__ */ o(
|
|
2135
|
+
Lt,
|
|
2136
|
+
{
|
|
2137
|
+
href: t.currentItem.url,
|
|
2138
|
+
target: "_blank",
|
|
2139
|
+
iconType: er[t.currentItem.type],
|
|
2140
|
+
size: "s",
|
|
2141
|
+
onClick: () => e.pause(),
|
|
2142
|
+
children: t.currentItem.title
|
|
2143
|
+
}
|
|
2144
|
+
)
|
|
2145
|
+
}
|
|
2146
|
+
);
|
|
2147
|
+
}
|
|
2148
|
+
), ui = N(
|
|
2149
|
+
({ playerStore: t }) => /* @__PURE__ */ o(
|
|
2150
|
+
H,
|
|
2328
2151
|
{
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
size: "s",
|
|
2336
|
-
iconSize: "l",
|
|
2337
|
-
onClick: () => e(!t)
|
|
2338
|
-
}
|
|
2339
|
-
),
|
|
2340
|
-
isOpen: t,
|
|
2341
|
-
closePopover: () => e(!1)
|
|
2152
|
+
title: "Mute",
|
|
2153
|
+
"aria-label": "Mute",
|
|
2154
|
+
iconType: Gt,
|
|
2155
|
+
size: "s",
|
|
2156
|
+
iconSize: "l",
|
|
2157
|
+
disabled: !t.controller.supports("setMuted")
|
|
2342
2158
|
}
|
|
2343
|
-
)
|
|
2344
|
-
|
|
2159
|
+
)
|
|
2160
|
+
), di = N(
|
|
2161
|
+
({
|
|
2162
|
+
playerStore: t,
|
|
2163
|
+
button: e,
|
|
2164
|
+
isOpen: n,
|
|
2165
|
+
closePopover: i
|
|
2166
|
+
}) => {
|
|
2167
|
+
const [a, l] = q("0"), d = ne();
|
|
2168
|
+
kr(() => {
|
|
2169
|
+
n && d.getVolume().then((m) => {
|
|
2170
|
+
m !== void 0 && l(Math.floor(m * 100).toString());
|
|
2171
|
+
});
|
|
2172
|
+
}, [n, d]);
|
|
2173
|
+
const h = D(
|
|
2174
|
+
async (m) => {
|
|
2175
|
+
l(m.currentTarget.value), await d.setVolume(Number(m.currentTarget.value) / 100);
|
|
2176
|
+
},
|
|
2177
|
+
[d]
|
|
2178
|
+
);
|
|
2179
|
+
return /* @__PURE__ */ o(
|
|
2180
|
+
st,
|
|
2181
|
+
{
|
|
2182
|
+
button: e,
|
|
2183
|
+
isOpen: n,
|
|
2184
|
+
closePopover: i,
|
|
2185
|
+
anchorPosition: "upRight",
|
|
2186
|
+
children: /* @__PURE__ */ o(et, { children: /* @__PURE__ */ j(
|
|
2187
|
+
se,
|
|
2188
|
+
{
|
|
2189
|
+
responsive: !1,
|
|
2190
|
+
gutterSize: "s",
|
|
2191
|
+
justifyContent: "center",
|
|
2192
|
+
alignItems: "center",
|
|
2193
|
+
children: [
|
|
2194
|
+
/* @__PURE__ */ o(ui, { playerStore: t }),
|
|
2195
|
+
/* @__PURE__ */ o(
|
|
2196
|
+
Ut,
|
|
2197
|
+
{
|
|
2198
|
+
min: 0,
|
|
2199
|
+
max: 100,
|
|
2200
|
+
step: 1,
|
|
2201
|
+
value: a,
|
|
2202
|
+
onChange: h,
|
|
2203
|
+
css: { blockSize: 32 },
|
|
2204
|
+
disabled: !t.controller.supports("setVolume")
|
|
2205
|
+
}
|
|
2206
|
+
)
|
|
2207
|
+
]
|
|
2208
|
+
}
|
|
2209
|
+
) })
|
|
2210
|
+
}
|
|
2211
|
+
);
|
|
2212
|
+
}
|
|
2213
|
+
), fi = N(
|
|
2214
|
+
({ playerStore: t }) => {
|
|
2215
|
+
const [e, n] = q(!1);
|
|
2216
|
+
return /* @__PURE__ */ o(
|
|
2217
|
+
di,
|
|
2218
|
+
{
|
|
2219
|
+
playerStore: t,
|
|
2220
|
+
button: /* @__PURE__ */ o(
|
|
2221
|
+
H,
|
|
2222
|
+
{
|
|
2223
|
+
title: "Volume",
|
|
2224
|
+
"aria-label": "Volume",
|
|
2225
|
+
iconType: Gt,
|
|
2226
|
+
size: "s",
|
|
2227
|
+
iconSize: "l",
|
|
2228
|
+
onClick: () => n(!e),
|
|
2229
|
+
disabled: !t.controller.supports("getVolume")
|
|
2230
|
+
}
|
|
2231
|
+
),
|
|
2232
|
+
isOpen: e,
|
|
2233
|
+
closePopover: () => n(!1)
|
|
2234
|
+
}
|
|
2235
|
+
);
|
|
2236
|
+
}
|
|
2237
|
+
), mi = ({
|
|
2345
2238
|
onClickPlayQueueButton: t
|
|
2346
2239
|
}) => /* @__PURE__ */ o(
|
|
2347
|
-
|
|
2240
|
+
H,
|
|
2348
2241
|
{
|
|
2349
2242
|
title: "Play queue",
|
|
2350
2243
|
"aria-label": "Play queue",
|
|
2351
|
-
iconType:
|
|
2244
|
+
iconType: bn,
|
|
2352
2245
|
size: "s",
|
|
2353
2246
|
iconSize: "l",
|
|
2354
2247
|
onClick: t
|
|
2355
2248
|
}
|
|
2356
|
-
),
|
|
2357
|
-
({
|
|
2358
|
-
|
|
2249
|
+
), hi = N(
|
|
2250
|
+
({
|
|
2251
|
+
playerStore: t,
|
|
2252
|
+
playQueueStore: e,
|
|
2253
|
+
closePopover: n
|
|
2254
|
+
}) => {
|
|
2255
|
+
const i = ne(), a = D(async () => {
|
|
2256
|
+
const I = await i.getCurrentTime();
|
|
2257
|
+
I !== void 0 && await i.setCurrentTime(I - 10), n();
|
|
2258
|
+
}, [i, n]), l = D(async () => {
|
|
2259
|
+
const I = await i.getCurrentTime();
|
|
2260
|
+
I !== void 0 && await i.setCurrentTime(I + 30), n();
|
|
2261
|
+
}, [i, n]), d = D(
|
|
2262
|
+
async (I) => {
|
|
2263
|
+
await i.setPlaybackRate(I), n();
|
|
2264
|
+
},
|
|
2265
|
+
[i, n]
|
|
2266
|
+
), h = D(async () => {
|
|
2267
|
+
e.currentItem !== void 0 && await e.removeItems([
|
|
2268
|
+
e.currentItem
|
|
2269
|
+
]), n();
|
|
2270
|
+
}, [e, n]), [m, p] = q(), E = D(async () => {
|
|
2271
|
+
await t.controller.getPlaybackRate().then((I) => p(I));
|
|
2272
|
+
}, [t]), S = at(
|
|
2273
|
+
() => [
|
|
2274
|
+
{
|
|
2275
|
+
id: 0,
|
|
2276
|
+
items: [
|
|
2277
|
+
{
|
|
2278
|
+
name: "Speed",
|
|
2279
|
+
icon: /* @__PURE__ */ o(G, { type: pn }),
|
|
2280
|
+
panel: 1,
|
|
2281
|
+
onClick: E,
|
|
2282
|
+
disabled: !t.controller.supports(
|
|
2283
|
+
"getPlaybackRate"
|
|
2284
|
+
)
|
|
2285
|
+
},
|
|
2286
|
+
{
|
|
2287
|
+
name: "Skip back 10 seconds",
|
|
2288
|
+
icon: /* @__PURE__ */ o(G, { type: yn }),
|
|
2289
|
+
onClick: a,
|
|
2290
|
+
disabled: e.isEmpty || !t.controller.supports(
|
|
2291
|
+
"setCurrentTime"
|
|
2292
|
+
)
|
|
2293
|
+
},
|
|
2294
|
+
{
|
|
2295
|
+
name: "Skip forward 30 seconds",
|
|
2296
|
+
icon: /* @__PURE__ */ o(G, { type: gn }),
|
|
2297
|
+
onClick: l,
|
|
2298
|
+
disabled: e.isEmpty || !t.controller.supports(
|
|
2299
|
+
"setCurrentTime"
|
|
2300
|
+
)
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
isSeparator: !0
|
|
2304
|
+
},
|
|
2305
|
+
{
|
|
2306
|
+
name: "Remove from play queue",
|
|
2307
|
+
icon: /* @__PURE__ */ o(G, { type: ct }),
|
|
2308
|
+
onClick: h,
|
|
2309
|
+
disabled: e.isEmpty
|
|
2310
|
+
}
|
|
2311
|
+
]
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
id: 1,
|
|
2315
|
+
title: "Speed",
|
|
2316
|
+
items: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2].map(
|
|
2317
|
+
(I) => ({
|
|
2318
|
+
name: I.toString(),
|
|
2319
|
+
onClick: () => d(I),
|
|
2320
|
+
icon: I === m ? "check" : "empty",
|
|
2321
|
+
disabled: !t.controller.supports(
|
|
2322
|
+
"setPlaybackRate"
|
|
2323
|
+
)
|
|
2324
|
+
})
|
|
2325
|
+
)
|
|
2326
|
+
}
|
|
2327
|
+
],
|
|
2328
|
+
[
|
|
2329
|
+
t,
|
|
2330
|
+
e,
|
|
2331
|
+
E,
|
|
2332
|
+
a,
|
|
2333
|
+
l,
|
|
2334
|
+
h,
|
|
2335
|
+
d,
|
|
2336
|
+
m
|
|
2337
|
+
]
|
|
2338
|
+
);
|
|
2339
|
+
return /* @__PURE__ */ o(Bt, { initialPanelId: 0, panels: S });
|
|
2340
|
+
}
|
|
2341
|
+
), vi = me(
|
|
2342
|
+
({
|
|
2343
|
+
playerStore: t,
|
|
2344
|
+
playQueueStore: e,
|
|
2345
|
+
button: n,
|
|
2346
|
+
isOpen: i,
|
|
2347
|
+
closePopover: a
|
|
2348
|
+
}) => /* @__PURE__ */ o(
|
|
2349
|
+
st,
|
|
2350
|
+
{
|
|
2351
|
+
button: n,
|
|
2352
|
+
isOpen: i,
|
|
2353
|
+
closePopover: a,
|
|
2354
|
+
panelPaddingSize: "none",
|
|
2355
|
+
anchorPosition: "upRight",
|
|
2356
|
+
children: /* @__PURE__ */ o(
|
|
2357
|
+
hi,
|
|
2358
|
+
{
|
|
2359
|
+
playerStore: t,
|
|
2360
|
+
playQueueStore: e,
|
|
2361
|
+
closePopover: a
|
|
2362
|
+
}
|
|
2363
|
+
)
|
|
2364
|
+
}
|
|
2365
|
+
)
|
|
2366
|
+
), pi = me(
|
|
2367
|
+
({ playerStore: t, playQueueStore: e }) => {
|
|
2368
|
+
const [n, i] = q(!1);
|
|
2359
2369
|
return /* @__PURE__ */ o(
|
|
2360
|
-
|
|
2370
|
+
vi,
|
|
2361
2371
|
{
|
|
2362
|
-
|
|
2372
|
+
playerStore: t,
|
|
2373
|
+
playQueueStore: e,
|
|
2363
2374
|
button: /* @__PURE__ */ o(
|
|
2364
|
-
|
|
2375
|
+
H,
|
|
2365
2376
|
{
|
|
2366
2377
|
title: "More options",
|
|
2367
2378
|
"aria-label": "More options",
|
|
2368
2379
|
iconType: qt,
|
|
2369
2380
|
size: "s",
|
|
2370
2381
|
iconSize: "l",
|
|
2371
|
-
onClick: () =>
|
|
2382
|
+
onClick: () => i(!n)
|
|
2372
2383
|
}
|
|
2373
2384
|
),
|
|
2374
|
-
isOpen:
|
|
2375
|
-
closePopover: () =>
|
|
2385
|
+
isOpen: n,
|
|
2386
|
+
closePopover: () => i(!1)
|
|
2376
2387
|
}
|
|
2377
2388
|
);
|
|
2378
2389
|
}
|
|
2379
|
-
), yi =
|
|
2390
|
+
), yi = me(
|
|
2380
2391
|
({
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2392
|
+
playerStore: t,
|
|
2393
|
+
playQueueStore: e,
|
|
2394
|
+
onClickPlayQueueButton: n
|
|
2395
|
+
}) => /* @__PURE__ */ j(
|
|
2396
|
+
se,
|
|
2385
2397
|
{
|
|
2386
2398
|
responsive: !1,
|
|
2387
2399
|
gutterSize: "s",
|
|
2388
2400
|
justifyContent: "flexEnd",
|
|
2389
2401
|
alignItems: "center",
|
|
2390
2402
|
children: [
|
|
2391
|
-
/* @__PURE__ */ o(
|
|
2392
|
-
|
|
2393
|
-
|
|
2403
|
+
/* @__PURE__ */ o(fi, { playerStore: t }),
|
|
2404
|
+
n && /* @__PURE__ */ o(
|
|
2405
|
+
mi,
|
|
2394
2406
|
{
|
|
2395
|
-
onClickPlayQueueButton:
|
|
2407
|
+
onClickPlayQueueButton: n
|
|
2396
2408
|
}
|
|
2397
2409
|
),
|
|
2398
|
-
/* @__PURE__ */ o(
|
|
2410
|
+
/* @__PURE__ */ o(
|
|
2411
|
+
pi,
|
|
2412
|
+
{
|
|
2413
|
+
playerStore: t,
|
|
2414
|
+
playQueueStore: e
|
|
2415
|
+
}
|
|
2416
|
+
)
|
|
2399
2417
|
]
|
|
2400
2418
|
}
|
|
2401
2419
|
)
|
|
2402
|
-
),
|
|
2420
|
+
), gi = N(
|
|
2421
|
+
({ playerStore: t, playQueueStore: e }) => {
|
|
2422
|
+
const n = ne(), i = D(
|
|
2423
|
+
(d) => {
|
|
2424
|
+
const h = Number(d.currentTarget.value) / 100;
|
|
2425
|
+
t.setPercent(h);
|
|
2426
|
+
},
|
|
2427
|
+
[t]
|
|
2428
|
+
), a = D(
|
|
2429
|
+
(d) => {
|
|
2430
|
+
d.button === 0 && t.setSeeking(!0);
|
|
2431
|
+
},
|
|
2432
|
+
[t]
|
|
2433
|
+
), l = D(
|
|
2434
|
+
async (d) => {
|
|
2435
|
+
if (d.button === 0) {
|
|
2436
|
+
const h = Number(d.currentTarget.value) / 100;
|
|
2437
|
+
t.setSeeking(!1);
|
|
2438
|
+
const m = await n.getDuration();
|
|
2439
|
+
m !== void 0 && await n.setCurrentTime(m * h);
|
|
2440
|
+
}
|
|
2441
|
+
},
|
|
2442
|
+
[t, n]
|
|
2443
|
+
);
|
|
2444
|
+
return /* @__PURE__ */ o(
|
|
2445
|
+
Ut,
|
|
2446
|
+
{
|
|
2447
|
+
min: 0,
|
|
2448
|
+
max: 100,
|
|
2449
|
+
step: 1e-7,
|
|
2450
|
+
value: t.percent * 100,
|
|
2451
|
+
onChange: i,
|
|
2452
|
+
onMouseDown: a,
|
|
2453
|
+
onMouseUp: l,
|
|
2454
|
+
fullWidth: !0,
|
|
2455
|
+
showRange: !0,
|
|
2456
|
+
css: { blockSize: 32 },
|
|
2457
|
+
disabled: e.isEmpty
|
|
2458
|
+
}
|
|
2459
|
+
);
|
|
2460
|
+
}
|
|
2461
|
+
), Fi = N(
|
|
2403
2462
|
({
|
|
2404
2463
|
playerStore: t,
|
|
2405
2464
|
playQueueStore: e,
|
|
2406
2465
|
onClickPlayQueueButton: n
|
|
2407
|
-
}) => /* @__PURE__ */ o(
|
|
2466
|
+
}) => /* @__PURE__ */ o(Qr, { paddingSize: "s", children: /* @__PURE__ */ j(se, { direction: "column", gutterSize: "none", children: [
|
|
2408
2467
|
/* @__PURE__ */ o(J, { children: /* @__PURE__ */ o(
|
|
2409
|
-
|
|
2468
|
+
gi,
|
|
2410
2469
|
{
|
|
2411
2470
|
playerStore: t,
|
|
2412
2471
|
playQueueStore: e
|
|
2413
2472
|
}
|
|
2414
2473
|
) }),
|
|
2415
|
-
/* @__PURE__ */ o(J, { children: /* @__PURE__ */
|
|
2416
|
-
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }
|
|
2474
|
+
/* @__PURE__ */ o(J, { children: /* @__PURE__ */ j(se, { responsive: !1, children: [
|
|
2475
|
+
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2476
|
+
ci,
|
|
2477
|
+
{
|
|
2478
|
+
playQueueStore: e
|
|
2479
|
+
}
|
|
2480
|
+
) }),
|
|
2417
2481
|
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2418
|
-
|
|
2482
|
+
li,
|
|
2419
2483
|
{
|
|
2420
2484
|
playerStore: t,
|
|
2421
2485
|
playQueueStore: e
|
|
@@ -2424,32 +2488,50 @@ const er = Lt(void 0), ki = ({
|
|
|
2424
2488
|
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2425
2489
|
yi,
|
|
2426
2490
|
{
|
|
2491
|
+
playerStore: t,
|
|
2427
2492
|
playQueueStore: e,
|
|
2428
2493
|
onClickPlayQueueButton: n
|
|
2429
2494
|
}
|
|
2430
2495
|
) })
|
|
2431
2496
|
] }) })
|
|
2432
2497
|
] }) })
|
|
2433
|
-
),
|
|
2434
|
-
width:
|
|
2435
|
-
height:
|
|
2436
|
-
},
|
|
2498
|
+
), rr = 81, it = {
|
|
2499
|
+
width: 400,
|
|
2500
|
+
height: 225
|
|
2501
|
+
}, ji = N(
|
|
2502
|
+
({ children: t }) => {
|
|
2503
|
+
const e = ai();
|
|
2504
|
+
return /* @__PURE__ */ j(
|
|
2505
|
+
en,
|
|
2506
|
+
{
|
|
2507
|
+
panelled: !0,
|
|
2508
|
+
style: {
|
|
2509
|
+
minBlockSize: `max(460px, 100vh - ${rr}px)`
|
|
2510
|
+
},
|
|
2511
|
+
children: [
|
|
2512
|
+
t,
|
|
2513
|
+
!e.isEmpty && /* @__PURE__ */ o(Wt, { style: { blockSize: it.height } })
|
|
2514
|
+
]
|
|
2515
|
+
}
|
|
2516
|
+
);
|
|
2517
|
+
}
|
|
2518
|
+
), Ni = N(
|
|
2437
2519
|
({ playerStore: t, playQueueStore: e }) => {
|
|
2438
|
-
const n =
|
|
2520
|
+
const n = ne(), i = D(async () => {
|
|
2439
2521
|
e.interacted && await n.play();
|
|
2440
|
-
}, [e, n]), a =
|
|
2522
|
+
}, [e, n]), a = D(async () => {
|
|
2441
2523
|
switch (e.repeat) {
|
|
2442
|
-
case
|
|
2524
|
+
case w.One:
|
|
2443
2525
|
await n.setCurrentTime(0);
|
|
2444
2526
|
break;
|
|
2445
|
-
case
|
|
2446
|
-
case
|
|
2527
|
+
case w.Off:
|
|
2528
|
+
case w.All:
|
|
2447
2529
|
if (e.isLastItem)
|
|
2448
2530
|
switch (e.repeat) {
|
|
2449
|
-
case
|
|
2531
|
+
case w.Off:
|
|
2450
2532
|
t.onEnded();
|
|
2451
2533
|
break;
|
|
2452
|
-
case
|
|
2534
|
+
case w.All:
|
|
2453
2535
|
e.hasMultipleItems ? await e.goToFirst() : await n.setCurrentTime(0);
|
|
2454
2536
|
break;
|
|
2455
2537
|
}
|
|
@@ -2457,7 +2539,7 @@ const er = Lt(void 0), ki = ({
|
|
|
2457
2539
|
await e.next();
|
|
2458
2540
|
break;
|
|
2459
2541
|
}
|
|
2460
|
-
}, [e, t, n]), l =
|
|
2542
|
+
}, [e, t, n]), l = at(
|
|
2461
2543
|
() => ({
|
|
2462
2544
|
onLoaded: i,
|
|
2463
2545
|
onPlay: t.onPlay,
|
|
@@ -2473,54 +2555,41 @@ const er = Lt(void 0), ki = ({
|
|
|
2473
2555
|
css: {
|
|
2474
2556
|
position: "fixed",
|
|
2475
2557
|
right: 0,
|
|
2476
|
-
bottom:
|
|
2477
|
-
width:
|
|
2478
|
-
height:
|
|
2558
|
+
bottom: rr,
|
|
2559
|
+
width: it.width,
|
|
2560
|
+
height: it.height,
|
|
2479
2561
|
zIndex: 998,
|
|
2480
2562
|
backgroundColor: "rgb(39, 39, 39)",
|
|
2481
2563
|
display: "flex",
|
|
2482
2564
|
flexDirection: "column"
|
|
2483
2565
|
},
|
|
2484
2566
|
children: /* @__PURE__ */ o("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: e.currentItem && /* @__PURE__ */ o(
|
|
2485
|
-
|
|
2567
|
+
jr,
|
|
2486
2568
|
{
|
|
2487
2569
|
src: e.currentItem.url,
|
|
2488
|
-
options: l
|
|
2570
|
+
options: l,
|
|
2571
|
+
onControllerChange: t.onControllerChange
|
|
2489
2572
|
}
|
|
2490
2573
|
) })
|
|
2491
2574
|
}
|
|
2492
2575
|
);
|
|
2493
2576
|
}
|
|
2494
|
-
), ji = Y(
|
|
2495
|
-
({ children: t }) => {
|
|
2496
|
-
const e = si();
|
|
2497
|
-
return /* @__PURE__ */ F(
|
|
2498
|
-
nt,
|
|
2499
|
-
{
|
|
2500
|
-
panelled: !0,
|
|
2501
|
-
style: {
|
|
2502
|
-
minBlockSize: `max(460px, 100vh - ${tr}px)`
|
|
2503
|
-
},
|
|
2504
|
-
children: [
|
|
2505
|
-
t,
|
|
2506
|
-
!e.isEmpty && /* @__PURE__ */ o(Wt, { style: { blockSize: at.height } })
|
|
2507
|
-
]
|
|
2508
|
-
}
|
|
2509
|
-
);
|
|
2510
|
-
}
|
|
2511
2577
|
);
|
|
2512
|
-
class
|
|
2578
|
+
class bi {
|
|
2513
2579
|
constructor(e) {
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2580
|
+
B(this, "controller", Nr);
|
|
2581
|
+
B(this, "playing", !1);
|
|
2582
|
+
B(this, "percent", 0);
|
|
2583
|
+
B(this, "seeking", !1);
|
|
2517
2584
|
e.makeObservable(this, {
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2585
|
+
controller: Z,
|
|
2586
|
+
playing: Z,
|
|
2587
|
+
percent: Z,
|
|
2588
|
+
seeking: Z,
|
|
2521
2589
|
setPlaying: y,
|
|
2522
2590
|
setPercent: y,
|
|
2523
2591
|
setSeeking: y,
|
|
2592
|
+
onControllerChange: y.bound,
|
|
2524
2593
|
onPlay: y.bound,
|
|
2525
2594
|
onPause: y.bound,
|
|
2526
2595
|
onEnded: y.bound,
|
|
@@ -2536,6 +2605,9 @@ class gi {
|
|
|
2536
2605
|
setSeeking(e) {
|
|
2537
2606
|
this.seeking = e;
|
|
2538
2607
|
}
|
|
2608
|
+
onControllerChange(e) {
|
|
2609
|
+
this.controller = e;
|
|
2610
|
+
}
|
|
2539
2611
|
onPlay() {
|
|
2540
2612
|
this.playing = !0;
|
|
2541
2613
|
}
|
|
@@ -2549,27 +2621,25 @@ class gi {
|
|
|
2549
2621
|
e !== void 0 && (this.seeking || (this.percent = e));
|
|
2550
2622
|
}
|
|
2551
2623
|
}
|
|
2552
|
-
const
|
|
2624
|
+
const nr = zt(void 0), $i = ({
|
|
2553
2625
|
children: t
|
|
2554
2626
|
}) => {
|
|
2555
2627
|
const [e] = q(
|
|
2556
|
-
() => new
|
|
2628
|
+
() => new bi(new Ht())
|
|
2557
2629
|
);
|
|
2558
|
-
return /* @__PURE__ */ o(
|
|
2559
|
-
},
|
|
2630
|
+
return /* @__PURE__ */ o(nr.Provider, { value: e, children: t });
|
|
2631
|
+
}, Di = () => ot(nr);
|
|
2560
2632
|
export {
|
|
2561
|
-
|
|
2562
|
-
Ai as HydrangeanDiva,
|
|
2633
|
+
Fi as BottomBar,
|
|
2563
2634
|
ji as MediaPlayerLayout,
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
ki as
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
$i as usePlayerStore
|
|
2635
|
+
Ni as MiniPlayer,
|
|
2636
|
+
Ht as MobXObservableStateProvider,
|
|
2637
|
+
Ai as ObservableStateProvider,
|
|
2638
|
+
ki as PlayQueue,
|
|
2639
|
+
Mi as PlayQueueStoreProvider,
|
|
2640
|
+
$i as PlayerStoreProvider,
|
|
2641
|
+
w as RepeatMode,
|
|
2642
|
+
ai as usePlayQueueStore,
|
|
2643
|
+
Di as usePlayerStore
|
|
2574
2644
|
};
|
|
2575
2645
|
//# sourceMappingURL=index.es.js.map
|