@aigamo/hydrangean-diva 0.0.1-alpha.22 → 0.0.1-alpha.23
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/api/apis/MediaPlayerPlaylistsApi.d.ts +3 -3
- package/dist/api/models/HydrangeanDivaMediaPlayerContractsPlaylistsDtosListTracksResponseDto.d.ts +22 -0
- package/dist/api/models/HydrangeanDivaMediaPlayerContractsPlaylistsDtosTrackDto.d.ts +56 -0
- package/dist/api/models/index.d.ts +2 -0
- package/dist/features/common/stores/MobXObservableStateProvider.d.ts +1 -1
- package/dist/features/common/stores/ObservableStateProvider.d.ts +1 -1
- package/dist/features/media-player.play-queue/components/AddToSelectablePopover.d.ts +8 -0
- package/dist/features/media-player.play-queue/components/PlayQueue.d.ts +1 -1
- package/dist/features/media-player.play-queue/components/{PlayQueueStoreContext.d.ts → PlayQueueStoreProvider.d.ts} +0 -2
- package/dist/features/media-player.play-queue/components/PlayQueueTable.d.ts +1 -1
- package/dist/features/media-player.play-queue/components/index.d.ts +1 -1
- package/dist/features/media-player.play-queue/helpers/mediaPlayerPlaylistsApi.d.ts +2 -0
- package/dist/features/media-player.play-queue/index.d.ts +0 -1
- package/dist/features/media-player.play-queue/stores/PlayQueueItemStore.d.ts +4 -4
- package/dist/features/media-player.play-queue/stores/PlayQueueStore.d.ts +7 -7
- package/dist/features/media-player.play-queue.abstractions/contexts/PlayQueueStoreContext.d.ts +3 -0
- package/dist/features/media-player.play-queue.abstractions/index.d.ts +1 -0
- package/dist/features/{media-player.play-queue → media-player.play-queue.abstractions}/interfaces/IPlayQueueStore.d.ts +3 -1
- package/dist/features/media-player.player/components/MiniPlayer.d.ts +3 -5
- package/dist/features/media-player.player/components/PlayerStoreContext.d.ts +1 -1
- package/dist/features/media-player.player/components/bottom-bar/BottomBar.d.ts +10 -0
- package/dist/features/media-player.player/components/bottom-bar/BottomBarCenterControls.d.ts +9 -0
- package/dist/features/media-player.player/components/bottom-bar/BottomBarLeftControls.d.ts +9 -0
- package/dist/features/media-player.player/components/bottom-bar/BottomBarRightControls.d.ts +8 -0
- package/dist/features/media-player.player/components/bottom-bar/SeekBar.d.ts +9 -0
- package/dist/features/media-player.player/components/index.d.ts +1 -1
- package/dist/features/media-player.player/interfaces/IBottomBarStore.d.ts +27 -0
- package/dist/features/media-player.player/interfaces/IMiniPlayerStore.d.ts +11 -0
- package/dist/features/media-player.player/stores/BottomBarStore.d.ts +32 -0
- package/dist/features/media-player.player/stores/MiniPlayerStore.d.ts +18 -0
- package/dist/features/media-player.player/stores/PlayerStore.d.ts +1 -1
- package/dist/features/media-player.playlists/components/PlaylistTable.d.ts +9 -0
- package/dist/features/media-player.playlists/pages/PlaylistDetailsPage.d.ts +6 -2
- package/dist/features/media-player.playlists/stores/PlaylistItemStore.d.ts +20 -0
- package/dist/features/media-player.playlists/stores/PlaylistListStore.d.ts +1 -1
- package/dist/features/media-player.playlists/stores/PlaylistStore.d.ts +32 -0
- package/dist/index.cjs.js +8 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1739 -1360
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
- package/dist/features/media-player.player/components/BottomBar.d.ts +0 -12
- package/dist/features/media-player.player/components/BottomBarCenterControls.d.ts +0 -11
- package/dist/features/media-player.player/components/BottomBarLeftControls.d.ts +0 -9
- package/dist/features/media-player.player/components/BottomBarRightControls.d.ts +0 -10
- package/dist/features/media-player.player/components/SeekBar.d.ts +0 -11
- package/dist/features/{media-player.play-queue → media-player.play-queue.abstractions}/interfaces/IPlayQueueItemStore.d.ts +1 -1
- package/dist/features/{media-player.play-queue → media-player.play-queue.abstractions}/interfaces/PlayQueueDto.d.ts +1 -1
- /package/dist/features/{media-player.play-queue → media-player.play-queue.abstractions}/interfaces/PlayQueueItemDto.d.ts +0 -0
- /package/dist/features/{media-player.play-queue → media-player.play-queue.abstractions}/interfaces/RepeatMode.d.ts +0 -0
- /package/dist/features/{media-player.play-queue → media-player.play-queue.abstractions}/interfaces/index.d.ts +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
import { makeObservable as
|
|
1
|
+
import { makeObservable as Nr, action as v, computed as _, observable as X, reaction as $r } from "mobx";
|
|
2
2
|
import * as te from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { observer as
|
|
9
|
-
import { ReactSortable as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useRouter as
|
|
13
|
-
const
|
|
14
|
-
class
|
|
15
|
-
makeObservable(t,
|
|
16
|
-
return
|
|
3
|
+
import Lt, { forwardRef as jr, useContext as ct, useState as z, useEffect as Vt, memo as re, useCallback as $, useMemo as Ve, createContext as Ut, useLayoutEffect as zr } from "react";
|
|
4
|
+
import qr from "@emotion/cache";
|
|
5
|
+
import { EuiSelectable as Lr, EuiPopoverTitle as Vr, EuiPopoverFooter as Ur, EuiButton as Q, EuiPopover as xe, useGeneratedHtmlId as Yr, EuiModalHeaderTitle as Wr, EuiModalHeader as Hr, EuiForm as Gr, EuiFormRow as at, EuiFieldText as xt, EuiModalBody as Jr, EuiModalFooter as Qr, EuiButtonEmpty as Yt, EuiModal as Kr, useEuiTheme as Wt, EuiCheckbox as Ht, EuiTableHeaderCellCheckbox as Br, EuiTableHeader as Xr, EuiTableRowCell as st, EuiTableRowCellCheckbox as Zr, EuiLink as en, EuiTableRow as tn, EuiTable as rn, EuiButtonIcon as W, EuiIcon as Y, EuiContextMenu as ut, EuiTableHeaderCell as tt, EuiCodeBlock as nn, EuiFlyout as an, EuiFlexGroup as oe, EuiFlexItem as J, EuiSpacer as Gt, EuiEmptyPrompt as sn, EuiPageTemplate as dt, EuiRange as Jt, EuiBottomBar as on } from "@elastic/eui";
|
|
6
|
+
import { AddRegular as Te, PlayRegular as ln, DismissRegular as ft, MoreHorizontalFilled as Qt, ArrowUploadRegular as cn, ArrowDownloadRegular as un, WindowDevToolsRegular as dn, DeleteRegular as fn, ArrowShuffleFilled as pn, ArrowShuffleOffFilled as yn, PreviousFilled as hn, SkipBack10Regular as Kt, PauseFilled as mn, PlayFilled as vn, SkipForward30Regular as Bt, NextFilled as gn, ArrowRepeat1Filled as Pn, ArrowRepeatAllFilled as bn, ArrowRepeatAllOffFilled as wn, OpenRegular as Sn, Speaker2Regular as Xt, TopSpeedRegular as En, NavigationPlayRegular as Rn } from "@fluentui/react-icons";
|
|
7
|
+
import { useNostalgicDiva as le, findVideoService as Tn, NostalgicDivaProvider as Cn, NostalgicDiva as In, nullPlayerController as xn } from "@aigamo/nostalgic-diva";
|
|
8
|
+
import { observer as C } from "mobx-react-lite";
|
|
9
|
+
import { ReactSortable as On } from "react-sortablejs";
|
|
10
|
+
import _n from "ajv";
|
|
11
|
+
import { pull as Ot } from "lodash-es";
|
|
12
|
+
import { useRouter as kn } from "@tanstack/react-router";
|
|
13
|
+
const Zt = 81;
|
|
14
|
+
class er {
|
|
15
|
+
makeObservable(t, r) {
|
|
16
|
+
return Nr(t, r);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
class
|
|
20
|
-
makeObservable(t,
|
|
19
|
+
class Sa {
|
|
20
|
+
makeObservable(t, r) {
|
|
21
21
|
return t;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
if (
|
|
28
|
-
|
|
29
|
-
var e =
|
|
30
|
-
function
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
for (
|
|
34
|
-
if (
|
|
35
|
-
return { $$typeof: t, type:
|
|
36
|
-
}
|
|
37
|
-
return
|
|
24
|
+
var N = /* @__PURE__ */ ((e) => (e.Off = "Off", e.All = "All", e.One = "One", e))(N || {}), ze = { exports: {} }, Se = {};
|
|
25
|
+
var _t;
|
|
26
|
+
function An() {
|
|
27
|
+
if (_t) return Se;
|
|
28
|
+
_t = 1;
|
|
29
|
+
var e = Lt, t = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
30
|
+
function c(f, p, m) {
|
|
31
|
+
var P, w = {}, q = null, F = null;
|
|
32
|
+
m !== void 0 && (q = "" + m), p.key !== void 0 && (q = "" + p.key), p.ref !== void 0 && (F = p.ref);
|
|
33
|
+
for (P in p) i.call(p, P) && !o.hasOwnProperty(P) && (w[P] = p[P]);
|
|
34
|
+
if (f && f.defaultProps) for (P in p = f.defaultProps, p) w[P] === void 0 && (w[P] = p[P]);
|
|
35
|
+
return { $$typeof: t, type: f, key: q, ref: F, props: w, _owner: a.current };
|
|
36
|
+
}
|
|
37
|
+
return Se.Fragment = r, Se.jsx = c, Se.jsxs = c, Se;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
return
|
|
43
|
-
var e =
|
|
44
|
-
function
|
|
45
|
-
if (
|
|
39
|
+
var Ee = {};
|
|
40
|
+
var kt;
|
|
41
|
+
function Dn() {
|
|
42
|
+
return kt || (kt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
43
|
+
var e = Lt, t = /* @__PURE__ */ Symbol.for("react.element"), r = /* @__PURE__ */ Symbol.for("react.portal"), i = /* @__PURE__ */ Symbol.for("react.fragment"), a = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), c = /* @__PURE__ */ Symbol.for("react.provider"), f = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), m = /* @__PURE__ */ Symbol.for("react.suspense"), P = /* @__PURE__ */ Symbol.for("react.suspense_list"), w = /* @__PURE__ */ Symbol.for("react.memo"), q = /* @__PURE__ */ Symbol.for("react.lazy"), F = /* @__PURE__ */ Symbol.for("react.offscreen"), k = Symbol.iterator, H = "@@iterator";
|
|
44
|
+
function Z(n) {
|
|
45
|
+
if (n === null || typeof n != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var
|
|
48
|
-
return typeof
|
|
47
|
+
var l = k && n[k] || n[H];
|
|
48
|
+
return typeof l == "function" ? l : null;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
function
|
|
50
|
+
var L = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function I(n) {
|
|
52
52
|
{
|
|
53
|
-
for (var
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), h = 1; h < l; h++)
|
|
54
|
+
d[h - 1] = arguments[h];
|
|
55
|
+
A("error", n, d);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function A(n, l, d) {
|
|
59
59
|
{
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
var
|
|
60
|
+
var h = L.ReactDebugCurrentFrame, S = h.getStackAddendum();
|
|
61
|
+
S !== "" && (l += "%s", d = d.concat([S]));
|
|
62
|
+
var T = d.map(function(b) {
|
|
63
63
|
return String(b);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
T.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, T);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof
|
|
68
|
+
var x = !1, u = !1, V = !1, ye = !1, Oe = !1, _e;
|
|
69
|
+
_e = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
70
|
+
function We(n) {
|
|
71
|
+
return !!(typeof n == "string" || typeof n == "function" || n === i || n === o || Oe || n === a || n === m || n === P || ye || n === F || x || u || V || typeof n == "object" && n !== null && (n.$$typeof === q || n.$$typeof === w || n.$$typeof === c || n.$$typeof === f || n.$$typeof === p || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
|
-
|
|
75
|
+
n.$$typeof === _e || n.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
var
|
|
82
|
-
return
|
|
77
|
+
function He(n, l, d) {
|
|
78
|
+
var h = n.displayName;
|
|
79
|
+
if (h)
|
|
80
|
+
return h;
|
|
81
|
+
var S = l.displayName || l.name || "";
|
|
82
|
+
return S !== "" ? d + "(" + S + ")" : d;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function ke(n) {
|
|
85
|
+
return n.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function K(
|
|
88
|
-
if (
|
|
87
|
+
function K(n) {
|
|
88
|
+
if (n == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof
|
|
91
|
-
return
|
|
92
|
-
if (typeof
|
|
93
|
-
return
|
|
94
|
-
switch (
|
|
90
|
+
if (typeof n.tag == "number" && I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
91
|
+
return n.displayName || n.name || null;
|
|
92
|
+
if (typeof n == "string")
|
|
93
|
+
return n;
|
|
94
|
+
switch (n) {
|
|
95
95
|
case i:
|
|
96
96
|
return "Fragment";
|
|
97
|
-
case
|
|
97
|
+
case r:
|
|
98
98
|
return "Portal";
|
|
99
|
-
case
|
|
99
|
+
case o:
|
|
100
100
|
return "Profiler";
|
|
101
101
|
case a:
|
|
102
102
|
return "StrictMode";
|
|
103
|
-
case
|
|
103
|
+
case m:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case P:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
|
-
if (typeof
|
|
109
|
-
switch (
|
|
110
|
-
case
|
|
111
|
-
var
|
|
112
|
-
return
|
|
113
|
-
case
|
|
114
|
-
var
|
|
115
|
-
return
|
|
116
|
-
case
|
|
117
|
-
return
|
|
118
|
-
case
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
var
|
|
108
|
+
if (typeof n == "object")
|
|
109
|
+
switch (n.$$typeof) {
|
|
110
|
+
case f:
|
|
111
|
+
var l = n;
|
|
112
|
+
return ke(l) + ".Consumer";
|
|
113
|
+
case c:
|
|
114
|
+
var d = n;
|
|
115
|
+
return ke(d._context) + ".Provider";
|
|
116
|
+
case p:
|
|
117
|
+
return He(n, n.render, "ForwardRef");
|
|
118
|
+
case w:
|
|
119
|
+
var h = n.displayName || null;
|
|
120
|
+
return h !== null ? h : K(n.type) || "Memo";
|
|
121
|
+
case q: {
|
|
122
|
+
var S = n, T = S._payload, b = S._init;
|
|
123
123
|
try {
|
|
124
|
-
return K(b(
|
|
124
|
+
return K(b(T));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,103 +129,103 @@ function xn() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var ee = Object.assign,
|
|
133
|
-
function
|
|
132
|
+
var ee = Object.assign, ne = 0, Ae, De, he, Me, me, Fe, Ne;
|
|
133
|
+
function $e() {
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
function
|
|
135
|
+
$e.__reactDisabledLog = !0;
|
|
136
|
+
function Ge() {
|
|
137
137
|
{
|
|
138
|
-
if (
|
|
139
|
-
|
|
140
|
-
var
|
|
138
|
+
if (ne === 0) {
|
|
139
|
+
Ae = console.log, De = console.info, he = console.warn, Me = console.error, me = console.group, Fe = console.groupCollapsed, Ne = console.groupEnd;
|
|
140
|
+
var n = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
143
|
-
value:
|
|
143
|
+
value: $e,
|
|
144
144
|
writable: !0
|
|
145
145
|
};
|
|
146
146
|
Object.defineProperties(console, {
|
|
147
|
-
info:
|
|
148
|
-
log:
|
|
149
|
-
warn:
|
|
150
|
-
error:
|
|
151
|
-
group:
|
|
152
|
-
groupCollapsed:
|
|
153
|
-
groupEnd:
|
|
147
|
+
info: n,
|
|
148
|
+
log: n,
|
|
149
|
+
warn: n,
|
|
150
|
+
error: n,
|
|
151
|
+
group: n,
|
|
152
|
+
groupCollapsed: n,
|
|
153
|
+
groupEnd: n
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
ne++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Je() {
|
|
160
160
|
{
|
|
161
|
-
if (
|
|
162
|
-
var
|
|
161
|
+
if (ne--, ne === 0) {
|
|
162
|
+
var n = {
|
|
163
163
|
configurable: !0,
|
|
164
164
|
enumerable: !0,
|
|
165
165
|
writable: !0
|
|
166
166
|
};
|
|
167
167
|
Object.defineProperties(console, {
|
|
168
|
-
log: ee({},
|
|
169
|
-
value:
|
|
168
|
+
log: ee({}, n, {
|
|
169
|
+
value: Ae
|
|
170
170
|
}),
|
|
171
|
-
info: ee({},
|
|
172
|
-
value:
|
|
171
|
+
info: ee({}, n, {
|
|
172
|
+
value: De
|
|
173
173
|
}),
|
|
174
|
-
warn: ee({},
|
|
174
|
+
warn: ee({}, n, {
|
|
175
175
|
value: he
|
|
176
176
|
}),
|
|
177
|
-
error: ee({},
|
|
178
|
-
value:
|
|
177
|
+
error: ee({}, n, {
|
|
178
|
+
value: Me
|
|
179
179
|
}),
|
|
180
|
-
group: ee({},
|
|
181
|
-
value:
|
|
180
|
+
group: ee({}, n, {
|
|
181
|
+
value: me
|
|
182
182
|
}),
|
|
183
|
-
groupCollapsed: ee({},
|
|
184
|
-
value:
|
|
183
|
+
groupCollapsed: ee({}, n, {
|
|
184
|
+
value: Fe
|
|
185
185
|
}),
|
|
186
|
-
groupEnd: ee({},
|
|
187
|
-
value:
|
|
186
|
+
groupEnd: ee({}, n, {
|
|
187
|
+
value: Ne
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
|
|
191
|
+
ne < 0 && I("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var
|
|
195
|
-
function
|
|
194
|
+
var ve = L.ReactCurrentDispatcher, ge;
|
|
195
|
+
function ce(n, l, d) {
|
|
196
196
|
{
|
|
197
|
-
if (
|
|
197
|
+
if (ge === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var
|
|
202
|
-
|
|
200
|
+
} catch (S) {
|
|
201
|
+
var h = S.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
ge = h && h[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
|
-
` +
|
|
205
|
+
` + ge + n;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var
|
|
208
|
+
var Pe = !1, ue;
|
|
209
209
|
{
|
|
210
|
-
var
|
|
211
|
-
|
|
210
|
+
var Qe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
ue = new Qe();
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
if (!
|
|
213
|
+
function y(n, l) {
|
|
214
|
+
if (!n || Pe)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var
|
|
218
|
-
if (
|
|
219
|
-
return
|
|
217
|
+
var d = ue.get(n);
|
|
218
|
+
if (d !== void 0)
|
|
219
|
+
return d;
|
|
220
220
|
}
|
|
221
|
-
var
|
|
222
|
-
|
|
223
|
-
var
|
|
221
|
+
var h;
|
|
222
|
+
Pe = !0;
|
|
223
|
+
var S = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var T;
|
|
226
|
+
T = ve.current, ve.current = null, Ge();
|
|
227
227
|
try {
|
|
228
|
-
if (
|
|
228
|
+
if (l) {
|
|
229
229
|
var b = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
@@ -236,196 +236,196 @@ function xn() {
|
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
238
|
Reflect.construct(b, []);
|
|
239
|
-
} catch (
|
|
240
|
-
|
|
239
|
+
} catch (U) {
|
|
240
|
+
h = U;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(
|
|
242
|
+
Reflect.construct(n, [], b);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
245
|
b.call();
|
|
246
|
-
} catch (
|
|
247
|
-
|
|
246
|
+
} catch (U) {
|
|
247
|
+
h = U;
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
n.call(b.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
|
-
} catch (
|
|
255
|
-
|
|
254
|
+
} catch (U) {
|
|
255
|
+
h = U;
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
n();
|
|
258
258
|
}
|
|
259
|
-
} catch (
|
|
260
|
-
if (
|
|
261
|
-
for (var g =
|
|
262
|
-
`),
|
|
263
|
-
`),
|
|
264
|
-
|
|
265
|
-
for (;
|
|
266
|
-
if (g[
|
|
267
|
-
if (
|
|
259
|
+
} catch (U) {
|
|
260
|
+
if (U && h && typeof U.stack == "string") {
|
|
261
|
+
for (var g = U.stack.split(`
|
|
262
|
+
`), j = h.stack.split(`
|
|
263
|
+
`), O = g.length - 1, D = j.length - 1; O >= 1 && D >= 0 && g[O] !== j[D]; )
|
|
264
|
+
D--;
|
|
265
|
+
for (; O >= 1 && D >= 0; O--, D--)
|
|
266
|
+
if (g[O] !== j[D]) {
|
|
267
|
+
if (O !== 1 || D !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
269
|
+
if (O--, D--, D < 0 || g[O] !== j[D]) {
|
|
270
270
|
var G = `
|
|
271
|
-
` + g[
|
|
272
|
-
return
|
|
271
|
+
` + g[O].replace(" at new ", " at ");
|
|
272
|
+
return n.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", n.displayName)), typeof n == "function" && ue.set(n, G), G;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while (O >= 1 && D >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
|
|
279
|
+
Pe = !1, ve.current = T, Je(), Error.prepareStackTrace = S;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
282
|
-
return typeof
|
|
281
|
+
var pe = n ? n.displayName || n.name : "", ae = pe ? ce(pe) : "";
|
|
282
|
+
return typeof n == "function" && ue.set(n, ae), ae;
|
|
283
283
|
}
|
|
284
|
-
function be(
|
|
285
|
-
return
|
|
284
|
+
function be(n, l, d) {
|
|
285
|
+
return y(n, !1);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
var
|
|
289
|
-
return !!(
|
|
287
|
+
function de(n) {
|
|
288
|
+
var l = n.prototype;
|
|
289
|
+
return !!(l && l.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
if (
|
|
291
|
+
function ie(n, l, d) {
|
|
292
|
+
if (n == null)
|
|
293
293
|
return "";
|
|
294
|
-
if (typeof
|
|
295
|
-
return
|
|
296
|
-
if (typeof
|
|
297
|
-
return
|
|
298
|
-
switch (
|
|
299
|
-
case
|
|
300
|
-
return
|
|
301
|
-
case
|
|
302
|
-
return
|
|
294
|
+
if (typeof n == "function")
|
|
295
|
+
return y(n, de(n));
|
|
296
|
+
if (typeof n == "string")
|
|
297
|
+
return ce(n);
|
|
298
|
+
switch (n) {
|
|
299
|
+
case m:
|
|
300
|
+
return ce("Suspense");
|
|
301
|
+
case P:
|
|
302
|
+
return ce("SuspenseList");
|
|
303
303
|
}
|
|
304
|
-
if (typeof
|
|
305
|
-
switch (
|
|
306
|
-
case
|
|
307
|
-
return be(
|
|
308
|
-
case
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
-
var
|
|
304
|
+
if (typeof n == "object")
|
|
305
|
+
switch (n.$$typeof) {
|
|
306
|
+
case p:
|
|
307
|
+
return be(n.render);
|
|
308
|
+
case w:
|
|
309
|
+
return ie(n.type, l, d);
|
|
310
|
+
case q: {
|
|
311
|
+
var h = n, S = h._payload, T = h._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return ie(T(S), l, d);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
function
|
|
322
|
-
if (
|
|
323
|
-
var
|
|
324
|
-
|
|
320
|
+
var we = Object.prototype.hasOwnProperty, yt = {}, ht = L.ReactDebugCurrentFrame;
|
|
321
|
+
function je(n) {
|
|
322
|
+
if (n) {
|
|
323
|
+
var l = n._owner, d = ie(n.type, n._source, l ? l.type : null);
|
|
324
|
+
ht.setExtraStackFrame(d);
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
ht.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function yr(n, l, d, h, S) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
331
|
-
for (var b in
|
|
332
|
-
if (
|
|
330
|
+
var T = Function.call.bind(we);
|
|
331
|
+
for (var b in n)
|
|
332
|
+
if (T(n, b)) {
|
|
333
333
|
var g = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
335
|
+
if (typeof n[b] != "function") {
|
|
336
|
+
var j = Error((h || "React class") + ": " + d + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw j.name = "Invariant Violation", j;
|
|
338
338
|
}
|
|
339
|
-
g =
|
|
340
|
-
} catch (
|
|
341
|
-
g =
|
|
339
|
+
g = n[b](l, b, h, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (O) {
|
|
341
|
+
g = O;
|
|
342
342
|
}
|
|
343
|
-
g && !(g instanceof Error) && (
|
|
343
|
+
g && !(g instanceof Error) && (je(S), I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", h || "React class", d, b, typeof g), je(null)), g instanceof Error && !(g.message in yt) && (yt[g.message] = !0, je(S), I("Failed %s type: %s", d, g.message), je(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
return
|
|
347
|
+
var hr = Array.isArray;
|
|
348
|
+
function Ke(n) {
|
|
349
|
+
return hr(n);
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function mr(n) {
|
|
352
352
|
{
|
|
353
|
-
var
|
|
354
|
-
return
|
|
353
|
+
var l = typeof Symbol == "function" && Symbol.toStringTag, d = l && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
354
|
+
return d;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function vr(n) {
|
|
358
358
|
try {
|
|
359
|
-
return mt(
|
|
359
|
+
return mt(n), !1;
|
|
360
360
|
} catch {
|
|
361
361
|
return !0;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function mt(
|
|
365
|
-
return "" +
|
|
364
|
+
function mt(n) {
|
|
365
|
+
return "" + n;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
if (
|
|
369
|
-
return
|
|
367
|
+
function vt(n) {
|
|
368
|
+
if (vr(n))
|
|
369
|
+
return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mr(n)), mt(n);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var gt = L.ReactCurrentOwner, gr = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
375
375
|
__source: !0
|
|
376
|
-
},
|
|
377
|
-
function
|
|
378
|
-
if (
|
|
379
|
-
var
|
|
380
|
-
if (
|
|
376
|
+
}, Pt, bt;
|
|
377
|
+
function Pr(n) {
|
|
378
|
+
if (we.call(n, "ref")) {
|
|
379
|
+
var l = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
380
|
+
if (l && l.isReactWarning)
|
|
381
381
|
return !1;
|
|
382
382
|
}
|
|
383
|
-
return
|
|
383
|
+
return n.ref !== void 0;
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
if (
|
|
387
|
-
var
|
|
388
|
-
if (
|
|
385
|
+
function br(n) {
|
|
386
|
+
if (we.call(n, "key")) {
|
|
387
|
+
var l = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
388
|
+
if (l && l.isReactWarning)
|
|
389
389
|
return !1;
|
|
390
390
|
}
|
|
391
|
-
return
|
|
391
|
+
return n.key !== void 0;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
typeof
|
|
393
|
+
function wr(n, l) {
|
|
394
|
+
typeof n.ref == "string" && gt.current;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function Sr(n, l) {
|
|
397
397
|
{
|
|
398
|
-
var
|
|
399
|
-
|
|
398
|
+
var d = function() {
|
|
399
|
+
Pt || (Pt = !0, I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
400
400
|
};
|
|
401
|
-
|
|
402
|
-
get:
|
|
401
|
+
d.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
402
|
+
get: d,
|
|
403
403
|
configurable: !0
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Er(n, l) {
|
|
408
408
|
{
|
|
409
|
-
var
|
|
410
|
-
|
|
409
|
+
var d = function() {
|
|
410
|
+
bt || (bt = !0, I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", l));
|
|
411
411
|
};
|
|
412
|
-
|
|
413
|
-
get:
|
|
412
|
+
d.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
413
|
+
get: d,
|
|
414
414
|
configurable: !0
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var
|
|
418
|
+
var Rr = function(n, l, d, h, S, T, b) {
|
|
419
419
|
var g = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
421
|
$$typeof: t,
|
|
422
422
|
// Built-in properties that belong on the element
|
|
423
|
-
type:
|
|
424
|
-
key:
|
|
425
|
-
ref:
|
|
423
|
+
type: n,
|
|
424
|
+
key: l,
|
|
425
|
+
ref: d,
|
|
426
426
|
props: b,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
|
-
_owner:
|
|
428
|
+
_owner: T
|
|
429
429
|
};
|
|
430
430
|
return g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
431
431
|
configurable: !1,
|
|
@@ -436,361 +436,361 @@ function xn() {
|
|
|
436
436
|
configurable: !1,
|
|
437
437
|
enumerable: !1,
|
|
438
438
|
writable: !1,
|
|
439
|
-
value:
|
|
439
|
+
value: h
|
|
440
440
|
}), Object.defineProperty(g, "_source", {
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
|
-
value:
|
|
444
|
+
value: S
|
|
445
445
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
446
446
|
};
|
|
447
|
-
function
|
|
447
|
+
function Tr(n, l, d, h, S) {
|
|
448
448
|
{
|
|
449
|
-
var
|
|
450
|
-
|
|
451
|
-
for (
|
|
452
|
-
|
|
453
|
-
if (
|
|
454
|
-
var
|
|
455
|
-
for (
|
|
456
|
-
b[
|
|
449
|
+
var T, b = {}, g = null, j = null;
|
|
450
|
+
d !== void 0 && (vt(d), g = "" + d), br(l) && (vt(l.key), g = "" + l.key), Pr(l) && (j = l.ref, wr(l, S));
|
|
451
|
+
for (T in l)
|
|
452
|
+
we.call(l, T) && !gr.hasOwnProperty(T) && (b[T] = l[T]);
|
|
453
|
+
if (n && n.defaultProps) {
|
|
454
|
+
var O = n.defaultProps;
|
|
455
|
+
for (T in O)
|
|
456
|
+
b[T] === void 0 && (b[T] = O[T]);
|
|
457
457
|
}
|
|
458
|
-
if (g ||
|
|
459
|
-
var
|
|
460
|
-
g &&
|
|
458
|
+
if (g || j) {
|
|
459
|
+
var D = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
460
|
+
g && Sr(b, D), j && Er(b, D);
|
|
461
461
|
}
|
|
462
|
-
return
|
|
462
|
+
return Rr(n, g, j, S, h, gt.current, b);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
var
|
|
466
|
-
function
|
|
467
|
-
if (
|
|
468
|
-
var
|
|
469
|
-
|
|
465
|
+
var Be = L.ReactCurrentOwner, wt = L.ReactDebugCurrentFrame;
|
|
466
|
+
function fe(n) {
|
|
467
|
+
if (n) {
|
|
468
|
+
var l = n._owner, d = ie(n.type, n._source, l ? l.type : null);
|
|
469
|
+
wt.setExtraStackFrame(d);
|
|
470
470
|
} else
|
|
471
|
-
|
|
471
|
+
wt.setExtraStackFrame(null);
|
|
472
472
|
}
|
|
473
|
-
var
|
|
474
|
-
|
|
475
|
-
function
|
|
476
|
-
return typeof
|
|
473
|
+
var Xe;
|
|
474
|
+
Xe = !1;
|
|
475
|
+
function Ze(n) {
|
|
476
|
+
return typeof n == "object" && n !== null && n.$$typeof === t;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function St() {
|
|
479
479
|
{
|
|
480
|
-
if (
|
|
481
|
-
var
|
|
482
|
-
if (
|
|
480
|
+
if (Be.current) {
|
|
481
|
+
var n = K(Be.current.type);
|
|
482
|
+
if (n)
|
|
483
483
|
return `
|
|
484
484
|
|
|
485
|
-
Check the render method of \`` +
|
|
485
|
+
Check the render method of \`` + n + "`.";
|
|
486
486
|
}
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Cr(n) {
|
|
491
491
|
return "";
|
|
492
492
|
}
|
|
493
|
-
var
|
|
494
|
-
function
|
|
493
|
+
var Et = {};
|
|
494
|
+
function Ir(n) {
|
|
495
495
|
{
|
|
496
|
-
var
|
|
497
|
-
if (!
|
|
498
|
-
var
|
|
499
|
-
|
|
496
|
+
var l = St();
|
|
497
|
+
if (!l) {
|
|
498
|
+
var d = typeof n == "string" ? n : n.displayName || n.name;
|
|
499
|
+
d && (l = `
|
|
500
500
|
|
|
501
|
-
Check the top-level render call using <` +
|
|
501
|
+
Check the top-level render call using <` + d + ">.");
|
|
502
502
|
}
|
|
503
|
-
return
|
|
503
|
+
return l;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function Rt(n, l) {
|
|
507
507
|
{
|
|
508
|
-
if (!
|
|
508
|
+
if (!n._store || n._store.validated || n.key != null)
|
|
509
509
|
return;
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
if (
|
|
510
|
+
n._store.validated = !0;
|
|
511
|
+
var d = Ir(l);
|
|
512
|
+
if (Et[d])
|
|
513
513
|
return;
|
|
514
|
-
|
|
515
|
-
var
|
|
516
|
-
|
|
514
|
+
Et[d] = !0;
|
|
515
|
+
var h = "";
|
|
516
|
+
n && n._owner && n._owner !== Be.current && (h = " It was passed a child from " + K(n._owner.type) + "."), fe(n), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, h), fe(null);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Tt(n, l) {
|
|
520
520
|
{
|
|
521
|
-
if (typeof
|
|
521
|
+
if (typeof n != "object")
|
|
522
522
|
return;
|
|
523
|
-
if (
|
|
524
|
-
for (var
|
|
525
|
-
var
|
|
526
|
-
|
|
523
|
+
if (Ke(n))
|
|
524
|
+
for (var d = 0; d < n.length; d++) {
|
|
525
|
+
var h = n[d];
|
|
526
|
+
Ze(h) && Rt(h, l);
|
|
527
527
|
}
|
|
528
|
-
else if (
|
|
529
|
-
|
|
530
|
-
else if (
|
|
531
|
-
var
|
|
532
|
-
if (typeof
|
|
533
|
-
for (var
|
|
534
|
-
|
|
528
|
+
else if (Ze(n))
|
|
529
|
+
n._store && (n._store.validated = !0);
|
|
530
|
+
else if (n) {
|
|
531
|
+
var S = Z(n);
|
|
532
|
+
if (typeof S == "function" && S !== n.entries)
|
|
533
|
+
for (var T = S.call(n), b; !(b = T.next()).done; )
|
|
534
|
+
Ze(b.value) && Rt(b.value, l);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function xr(n) {
|
|
539
539
|
{
|
|
540
|
-
var
|
|
541
|
-
if (
|
|
540
|
+
var l = n.type;
|
|
541
|
+
if (l == null || typeof l == "string")
|
|
542
542
|
return;
|
|
543
|
-
var
|
|
544
|
-
if (typeof
|
|
545
|
-
|
|
546
|
-
else if (typeof
|
|
543
|
+
var d;
|
|
544
|
+
if (typeof l == "function")
|
|
545
|
+
d = l.propTypes;
|
|
546
|
+
else if (typeof l == "object" && (l.$$typeof === p || // Note: Memo only checks outer props here.
|
|
547
547
|
// Inner props are checked in the reconciler.
|
|
548
|
-
|
|
549
|
-
|
|
548
|
+
l.$$typeof === w))
|
|
549
|
+
d = l.propTypes;
|
|
550
550
|
else
|
|
551
551
|
return;
|
|
552
|
-
if (
|
|
553
|
-
var
|
|
554
|
-
|
|
555
|
-
} else if (
|
|
556
|
-
|
|
557
|
-
var
|
|
558
|
-
|
|
552
|
+
if (d) {
|
|
553
|
+
var h = K(l);
|
|
554
|
+
yr(d, n.props, "prop", h, n);
|
|
555
|
+
} else if (l.PropTypes !== void 0 && !Xe) {
|
|
556
|
+
Xe = !0;
|
|
557
|
+
var S = K(l);
|
|
558
|
+
I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
|
|
559
559
|
}
|
|
560
|
-
typeof
|
|
560
|
+
typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Or(n) {
|
|
564
564
|
{
|
|
565
|
-
for (var
|
|
566
|
-
var
|
|
567
|
-
if (
|
|
568
|
-
|
|
565
|
+
for (var l = Object.keys(n.props), d = 0; d < l.length; d++) {
|
|
566
|
+
var h = l[d];
|
|
567
|
+
if (h !== "children" && h !== "key") {
|
|
568
|
+
fe(n), I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), fe(null);
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
|
|
572
|
+
n.ref !== null && (fe(n), I("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
var
|
|
576
|
-
function It(
|
|
575
|
+
var Ct = {};
|
|
576
|
+
function It(n, l, d, h, S, T) {
|
|
577
577
|
{
|
|
578
|
-
var b =
|
|
578
|
+
var b = We(n);
|
|
579
579
|
if (!b) {
|
|
580
580
|
var g = "";
|
|
581
|
-
(
|
|
582
|
-
var
|
|
583
|
-
|
|
584
|
-
var
|
|
585
|
-
|
|
581
|
+
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
|
+
var j = Cr();
|
|
583
|
+
j ? g += j : g += St();
|
|
584
|
+
var O;
|
|
585
|
+
n === null ? O = "null" : Ke(n) ? O = "array" : n !== void 0 && n.$$typeof === t ? (O = "<" + (K(n.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : O = typeof n, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, g);
|
|
586
586
|
}
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
return
|
|
587
|
+
var D = Tr(n, l, d, S, T);
|
|
588
|
+
if (D == null)
|
|
589
|
+
return D;
|
|
590
590
|
if (b) {
|
|
591
|
-
var G =
|
|
591
|
+
var G = l.children;
|
|
592
592
|
if (G !== void 0)
|
|
593
|
-
if (
|
|
594
|
-
if (
|
|
595
|
-
for (var
|
|
596
|
-
|
|
593
|
+
if (h)
|
|
594
|
+
if (Ke(G)) {
|
|
595
|
+
for (var pe = 0; pe < G.length; pe++)
|
|
596
|
+
Tt(G[pe], n);
|
|
597
597
|
Object.freeze && Object.freeze(G);
|
|
598
598
|
} else
|
|
599
|
-
|
|
599
|
+
I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
600
|
else
|
|
601
|
-
|
|
601
|
+
Tt(G, n);
|
|
602
602
|
}
|
|
603
|
-
if (
|
|
604
|
-
var ae = K(
|
|
605
|
-
return
|
|
606
|
-
}),
|
|
607
|
-
if (!
|
|
608
|
-
var
|
|
609
|
-
|
|
603
|
+
if (we.call(l, "key")) {
|
|
604
|
+
var ae = K(n), U = Object.keys(l).filter(function(Fr) {
|
|
605
|
+
return Fr !== "key";
|
|
606
|
+
}), et = U.length > 0 ? "{key: someKey, " + U.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
+
if (!Ct[ae + et]) {
|
|
608
|
+
var Mr = U.length > 0 ? "{" + U.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
+
I(`A props object containing a "key" prop is being spread into JSX:
|
|
610
610
|
let props = %s;
|
|
611
611
|
<%s {...props} />
|
|
612
612
|
React keys must be passed directly to JSX without using spread:
|
|
613
613
|
let props = %s;
|
|
614
|
-
<%s key={someKey} {...props} />`,
|
|
614
|
+
<%s key={someKey} {...props} />`, et, ae, Mr, ae), Ct[ae + et] = !0;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return n === i ? Or(D) : xr(D), D;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return It(
|
|
620
|
+
function _r(n, l, d) {
|
|
621
|
+
return It(n, l, d, !0);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return It(
|
|
623
|
+
function kr(n, l, d) {
|
|
624
|
+
return It(n, l, d, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
})()),
|
|
626
|
+
var Ar = kr, Dr = _r;
|
|
627
|
+
Ee.Fragment = i, Ee.jsx = Ar, Ee.jsxs = Dr;
|
|
628
|
+
})()), Ee;
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
function
|
|
632
|
-
return
|
|
630
|
+
var At;
|
|
631
|
+
function Mn() {
|
|
632
|
+
return At || (At = 1, process.env.NODE_ENV === "production" ? ze.exports = An() : ze.exports = Dn()), ze.exports;
|
|
633
633
|
}
|
|
634
|
-
var
|
|
635
|
-
var
|
|
636
|
-
function
|
|
637
|
-
if (
|
|
638
|
-
|
|
639
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103,
|
|
640
|
-
function
|
|
641
|
-
if (typeof
|
|
642
|
-
var
|
|
643
|
-
switch (
|
|
634
|
+
var Ce = Mn(), qe = { exports: {} }, E = {};
|
|
635
|
+
var Dt;
|
|
636
|
+
function Fn() {
|
|
637
|
+
if (Dt) return E;
|
|
638
|
+
Dt = 1;
|
|
639
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, P = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, w = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, F = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, k = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, H = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, Z = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, L = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, I = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
640
|
+
function A(u) {
|
|
641
|
+
if (typeof u == "object" && u !== null) {
|
|
642
|
+
var V = u.$$typeof;
|
|
643
|
+
switch (V) {
|
|
644
644
|
case t:
|
|
645
|
-
switch (
|
|
646
|
-
case m:
|
|
645
|
+
switch (u = u.type, u) {
|
|
647
646
|
case p:
|
|
647
|
+
case m:
|
|
648
648
|
case i:
|
|
649
|
-
case
|
|
649
|
+
case o:
|
|
650
650
|
case a:
|
|
651
|
-
case
|
|
652
|
-
return
|
|
651
|
+
case w:
|
|
652
|
+
return u;
|
|
653
653
|
default:
|
|
654
|
-
switch (
|
|
655
|
-
case
|
|
656
|
-
case
|
|
657
|
-
case
|
|
658
|
-
case
|
|
659
|
-
case
|
|
660
|
-
return
|
|
654
|
+
switch (u = u && u.$$typeof, u) {
|
|
655
|
+
case f:
|
|
656
|
+
case P:
|
|
657
|
+
case k:
|
|
658
|
+
case F:
|
|
659
|
+
case c:
|
|
660
|
+
return u;
|
|
661
661
|
default:
|
|
662
|
-
return
|
|
662
|
+
return V;
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
case
|
|
666
|
-
return
|
|
665
|
+
case r:
|
|
666
|
+
return V;
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
return
|
|
672
|
-
}
|
|
673
|
-
return
|
|
674
|
-
return
|
|
675
|
-
},
|
|
676
|
-
return
|
|
677
|
-
},
|
|
678
|
-
return
|
|
679
|
-
},
|
|
680
|
-
return typeof
|
|
681
|
-
},
|
|
682
|
-
return
|
|
683
|
-
},
|
|
684
|
-
return
|
|
685
|
-
},
|
|
686
|
-
return
|
|
687
|
-
},
|
|
688
|
-
return
|
|
689
|
-
},
|
|
690
|
-
return
|
|
691
|
-
},
|
|
692
|
-
return
|
|
693
|
-
},
|
|
694
|
-
return
|
|
695
|
-
},
|
|
696
|
-
return
|
|
697
|
-
},
|
|
698
|
-
return typeof
|
|
699
|
-
},
|
|
670
|
+
function x(u) {
|
|
671
|
+
return A(u) === m;
|
|
672
|
+
}
|
|
673
|
+
return E.AsyncMode = p, E.ConcurrentMode = m, E.ContextConsumer = f, E.ContextProvider = c, E.Element = t, E.ForwardRef = P, E.Fragment = i, E.Lazy = k, E.Memo = F, E.Portal = r, E.Profiler = o, E.StrictMode = a, E.Suspense = w, E.isAsyncMode = function(u) {
|
|
674
|
+
return x(u) || A(u) === p;
|
|
675
|
+
}, E.isConcurrentMode = x, E.isContextConsumer = function(u) {
|
|
676
|
+
return A(u) === f;
|
|
677
|
+
}, E.isContextProvider = function(u) {
|
|
678
|
+
return A(u) === c;
|
|
679
|
+
}, E.isElement = function(u) {
|
|
680
|
+
return typeof u == "object" && u !== null && u.$$typeof === t;
|
|
681
|
+
}, E.isForwardRef = function(u) {
|
|
682
|
+
return A(u) === P;
|
|
683
|
+
}, E.isFragment = function(u) {
|
|
684
|
+
return A(u) === i;
|
|
685
|
+
}, E.isLazy = function(u) {
|
|
686
|
+
return A(u) === k;
|
|
687
|
+
}, E.isMemo = function(u) {
|
|
688
|
+
return A(u) === F;
|
|
689
|
+
}, E.isPortal = function(u) {
|
|
690
|
+
return A(u) === r;
|
|
691
|
+
}, E.isProfiler = function(u) {
|
|
692
|
+
return A(u) === o;
|
|
693
|
+
}, E.isStrictMode = function(u) {
|
|
694
|
+
return A(u) === a;
|
|
695
|
+
}, E.isSuspense = function(u) {
|
|
696
|
+
return A(u) === w;
|
|
697
|
+
}, E.isValidElementType = function(u) {
|
|
698
|
+
return typeof u == "string" || typeof u == "function" || u === i || u === m || u === o || u === a || u === w || u === q || typeof u == "object" && u !== null && (u.$$typeof === k || u.$$typeof === F || u.$$typeof === c || u.$$typeof === f || u.$$typeof === P || u.$$typeof === Z || u.$$typeof === L || u.$$typeof === I || u.$$typeof === H);
|
|
699
|
+
}, E.typeOf = A, E;
|
|
700
700
|
}
|
|
701
|
-
var
|
|
702
|
-
var
|
|
703
|
-
function
|
|
704
|
-
return
|
|
705
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103,
|
|
706
|
-
function
|
|
707
|
-
return typeof
|
|
708
|
-
|
|
709
|
-
}
|
|
710
|
-
function
|
|
711
|
-
if (typeof
|
|
712
|
-
var be =
|
|
701
|
+
var R = {};
|
|
702
|
+
var Mt;
|
|
703
|
+
function Nn() {
|
|
704
|
+
return Mt || (Mt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
705
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, c = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, f = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, p = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, P = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, w = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, F = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, k = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, H = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, Z = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, L = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, I = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
706
|
+
function A(y) {
|
|
707
|
+
return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
708
|
+
y === i || y === m || y === o || y === a || y === w || y === q || typeof y == "object" && y !== null && (y.$$typeof === k || y.$$typeof === F || y.$$typeof === c || y.$$typeof === f || y.$$typeof === P || y.$$typeof === Z || y.$$typeof === L || y.$$typeof === I || y.$$typeof === H);
|
|
709
|
+
}
|
|
710
|
+
function x(y) {
|
|
711
|
+
if (typeof y == "object" && y !== null) {
|
|
712
|
+
var be = y.$$typeof;
|
|
713
713
|
switch (be) {
|
|
714
714
|
case t:
|
|
715
|
-
var
|
|
716
|
-
switch (
|
|
717
|
-
case m:
|
|
715
|
+
var de = y.type;
|
|
716
|
+
switch (de) {
|
|
718
717
|
case p:
|
|
718
|
+
case m:
|
|
719
719
|
case i:
|
|
720
|
-
case
|
|
720
|
+
case o:
|
|
721
721
|
case a:
|
|
722
|
-
case
|
|
723
|
-
return
|
|
722
|
+
case w:
|
|
723
|
+
return de;
|
|
724
724
|
default:
|
|
725
|
-
var
|
|
726
|
-
switch (
|
|
727
|
-
case
|
|
728
|
-
case
|
|
729
|
-
case
|
|
730
|
-
case
|
|
731
|
-
case
|
|
732
|
-
return
|
|
725
|
+
var ie = de && de.$$typeof;
|
|
726
|
+
switch (ie) {
|
|
727
|
+
case f:
|
|
728
|
+
case P:
|
|
729
|
+
case k:
|
|
730
|
+
case F:
|
|
731
|
+
case c:
|
|
732
|
+
return ie;
|
|
733
733
|
default:
|
|
734
734
|
return be;
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
case
|
|
737
|
+
case r:
|
|
738
738
|
return be;
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
|
-
var
|
|
743
|
-
function
|
|
744
|
-
return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
742
|
+
var u = p, V = m, ye = f, Oe = c, _e = t, We = P, He = i, ke = k, K = F, ee = r, ne = o, Ae = a, De = w, he = !1;
|
|
743
|
+
function Me(y) {
|
|
744
|
+
return he || (he = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), me(y) || x(y) === p;
|
|
745
745
|
}
|
|
746
|
-
function
|
|
747
|
-
return
|
|
746
|
+
function me(y) {
|
|
747
|
+
return x(y) === m;
|
|
748
748
|
}
|
|
749
|
-
function
|
|
750
|
-
return
|
|
749
|
+
function Fe(y) {
|
|
750
|
+
return x(y) === f;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
753
|
-
return
|
|
752
|
+
function Ne(y) {
|
|
753
|
+
return x(y) === c;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
return typeof
|
|
755
|
+
function $e(y) {
|
|
756
|
+
return typeof y == "object" && y !== null && y.$$typeof === t;
|
|
757
757
|
}
|
|
758
|
-
function
|
|
759
|
-
return
|
|
758
|
+
function Ge(y) {
|
|
759
|
+
return x(y) === P;
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
return
|
|
761
|
+
function Je(y) {
|
|
762
|
+
return x(y) === i;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
765
|
-
return
|
|
764
|
+
function ve(y) {
|
|
765
|
+
return x(y) === k;
|
|
766
766
|
}
|
|
767
|
-
function
|
|
768
|
-
return
|
|
767
|
+
function ge(y) {
|
|
768
|
+
return x(y) === F;
|
|
769
769
|
}
|
|
770
|
-
function
|
|
771
|
-
return
|
|
770
|
+
function ce(y) {
|
|
771
|
+
return x(y) === r;
|
|
772
772
|
}
|
|
773
|
-
function
|
|
774
|
-
return
|
|
773
|
+
function Pe(y) {
|
|
774
|
+
return x(y) === o;
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
return
|
|
776
|
+
function ue(y) {
|
|
777
|
+
return x(y) === a;
|
|
778
778
|
}
|
|
779
|
-
function
|
|
780
|
-
return
|
|
779
|
+
function Qe(y) {
|
|
780
|
+
return x(y) === w;
|
|
781
781
|
}
|
|
782
|
-
|
|
783
|
-
})()),
|
|
782
|
+
R.AsyncMode = u, R.ConcurrentMode = V, R.ContextConsumer = ye, R.ContextProvider = Oe, R.Element = _e, R.ForwardRef = We, R.Fragment = He, R.Lazy = ke, R.Memo = K, R.Portal = ee, R.Profiler = ne, R.StrictMode = Ae, R.Suspense = De, R.isAsyncMode = Me, R.isConcurrentMode = me, R.isContextConsumer = Fe, R.isContextProvider = Ne, R.isElement = $e, R.isForwardRef = Ge, R.isFragment = Je, R.isLazy = ve, R.isMemo = ge, R.isPortal = ce, R.isProfiler = Pe, R.isStrictMode = ue, R.isSuspense = Qe, R.isValidElementType = A, R.typeOf = x;
|
|
783
|
+
})()), R;
|
|
784
784
|
}
|
|
785
|
-
var
|
|
786
|
-
function
|
|
787
|
-
return
|
|
785
|
+
var Ft;
|
|
786
|
+
function $n() {
|
|
787
|
+
return Ft || (Ft = 1, process.env.NODE_ENV === "production" ? qe.exports = Fn() : qe.exports = Nn()), qe.exports;
|
|
788
788
|
}
|
|
789
|
-
var
|
|
790
|
-
function
|
|
791
|
-
if (
|
|
792
|
-
|
|
793
|
-
var e =
|
|
789
|
+
var rt, Nt;
|
|
790
|
+
function jn() {
|
|
791
|
+
if (Nt) return rt;
|
|
792
|
+
Nt = 1;
|
|
793
|
+
var e = $n(), t = {
|
|
794
794
|
childContextTypes: !0,
|
|
795
795
|
contextType: !0,
|
|
796
796
|
contextTypes: !0,
|
|
@@ -802,7 +802,7 @@ function wn() {
|
|
|
802
802
|
mixins: !0,
|
|
803
803
|
propTypes: !0,
|
|
804
804
|
type: !0
|
|
805
|
-
},
|
|
805
|
+
}, r = {
|
|
806
806
|
name: !0,
|
|
807
807
|
length: !0,
|
|
808
808
|
prototype: !0,
|
|
@@ -823,45 +823,45 @@ function wn() {
|
|
|
823
823
|
displayName: !0,
|
|
824
824
|
propTypes: !0,
|
|
825
825
|
type: !0
|
|
826
|
-
},
|
|
827
|
-
|
|
828
|
-
function
|
|
829
|
-
return e.isMemo(
|
|
826
|
+
}, o = {};
|
|
827
|
+
o[e.ForwardRef] = i, o[e.Memo] = a;
|
|
828
|
+
function c(k) {
|
|
829
|
+
return e.isMemo(k) ? a : o[k.$$typeof] || t;
|
|
830
830
|
}
|
|
831
|
-
var
|
|
832
|
-
function
|
|
831
|
+
var f = Object.defineProperty, p = Object.getOwnPropertyNames, m = Object.getOwnPropertySymbols, P = Object.getOwnPropertyDescriptor, w = Object.getPrototypeOf, q = Object.prototype;
|
|
832
|
+
function F(k, H, Z) {
|
|
833
833
|
if (typeof H != "string") {
|
|
834
|
-
if (
|
|
835
|
-
var
|
|
836
|
-
|
|
834
|
+
if (q) {
|
|
835
|
+
var L = w(H);
|
|
836
|
+
L && L !== q && F(k, L, Z);
|
|
837
837
|
}
|
|
838
|
-
var
|
|
839
|
-
|
|
840
|
-
for (var
|
|
841
|
-
var
|
|
842
|
-
if (!
|
|
843
|
-
var
|
|
838
|
+
var I = p(H);
|
|
839
|
+
m && (I = I.concat(m(H)));
|
|
840
|
+
for (var A = c(k), x = c(H), u = 0; u < I.length; ++u) {
|
|
841
|
+
var V = I[u];
|
|
842
|
+
if (!r[V] && !(Z && Z[V]) && !(x && x[V]) && !(A && A[V])) {
|
|
843
|
+
var ye = P(H, V);
|
|
844
844
|
try {
|
|
845
|
-
|
|
845
|
+
f(k, V, ye);
|
|
846
846
|
} catch {
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
return
|
|
851
|
+
return k;
|
|
852
852
|
}
|
|
853
|
-
return
|
|
853
|
+
return rt = F, rt;
|
|
854
854
|
}
|
|
855
|
-
|
|
856
|
-
var
|
|
857
|
-
function
|
|
855
|
+
jn();
|
|
856
|
+
var zn = !0;
|
|
857
|
+
function qn(e, t, r) {
|
|
858
858
|
var i = "";
|
|
859
|
-
return
|
|
859
|
+
return r.split(" ").forEach(function(a) {
|
|
860
860
|
e[a] !== void 0 ? t.push(e[a] + ";") : a && (i += a + " ");
|
|
861
861
|
}), i;
|
|
862
862
|
}
|
|
863
|
-
var
|
|
864
|
-
var a = t.key + "-" +
|
|
863
|
+
var tr = function(t, r, i) {
|
|
864
|
+
var a = t.key + "-" + r.name;
|
|
865
865
|
// we only need to add the styles to the registered cache if the
|
|
866
866
|
// class name could be used further down
|
|
867
867
|
// the tree but if it's a string tag, we know it won't
|
|
@@ -871,23 +871,23 @@ var Xt = function(t, n, i) {
|
|
|
871
871
|
// in node since emotion-server relies on whether a style is in
|
|
872
872
|
// the registered cache to know whether a style is global or not
|
|
873
873
|
// also, note that this check will be dead code eliminated in the browser
|
|
874
|
-
|
|
875
|
-
},
|
|
876
|
-
|
|
877
|
-
var a = t.key + "-" +
|
|
878
|
-
if (t.inserted[
|
|
879
|
-
var
|
|
874
|
+
zn === !1) && t.registered[a] === void 0 && (t.registered[a] = r.styles);
|
|
875
|
+
}, Ln = function(t, r, i) {
|
|
876
|
+
tr(t, r, i);
|
|
877
|
+
var a = t.key + "-" + r.name;
|
|
878
|
+
if (t.inserted[r.name] === void 0) {
|
|
879
|
+
var o = r;
|
|
880
880
|
do
|
|
881
|
-
t.insert(
|
|
882
|
-
while (
|
|
881
|
+
t.insert(r === o ? "." + a : "", o, t.sheet, !0), o = o.next;
|
|
882
|
+
while (o !== void 0);
|
|
883
883
|
}
|
|
884
884
|
};
|
|
885
|
-
function
|
|
886
|
-
for (var t = 0,
|
|
887
|
-
|
|
888
|
-
(
|
|
889
|
-
|
|
890
|
-
(
|
|
885
|
+
function Vn(e) {
|
|
886
|
+
for (var t = 0, r, i = 0, a = e.length; a >= 4; ++i, a -= 4)
|
|
887
|
+
r = e.charCodeAt(i) & 255 | (e.charCodeAt(++i) & 255) << 8 | (e.charCodeAt(++i) & 255) << 16 | (e.charCodeAt(++i) & 255) << 24, r = /* Math.imul(k, m): */
|
|
888
|
+
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
|
889
|
+
r >>> 24, t = /* Math.imul(k, m): */
|
|
890
|
+
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
891
891
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
892
892
|
switch (a) {
|
|
893
893
|
case 3:
|
|
@@ -901,7 +901,7 @@ function An(e) {
|
|
|
901
901
|
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
902
902
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
903
903
|
}
|
|
904
|
-
var
|
|
904
|
+
var Un = {
|
|
905
905
|
animationIterationCount: 1,
|
|
906
906
|
aspectRatio: 1,
|
|
907
907
|
borderImageOutset: 1,
|
|
@@ -951,265 +951,739 @@ var Mn = {
|
|
|
951
951
|
strokeOpacity: 1,
|
|
952
952
|
strokeWidth: 1
|
|
953
953
|
};
|
|
954
|
-
function
|
|
954
|
+
function Yn(e) {
|
|
955
955
|
var t = /* @__PURE__ */ Object.create(null);
|
|
956
|
-
return function(
|
|
957
|
-
return t[
|
|
956
|
+
return function(r) {
|
|
957
|
+
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
|
-
var
|
|
960
|
+
var Wn = /[A-Z]|^ms/g, Hn = /_EMO_([^_]+?)_([^]*?)_EMO_/g, rr = function(t) {
|
|
961
961
|
return t.charCodeAt(1) === 45;
|
|
962
|
-
},
|
|
962
|
+
}, $t = function(t) {
|
|
963
963
|
return t != null && typeof t != "boolean";
|
|
964
|
-
},
|
|
965
|
-
return
|
|
966
|
-
}), jt = function(t,
|
|
964
|
+
}, nt = /* @__PURE__ */ Yn(function(e) {
|
|
965
|
+
return rr(e) ? e : e.replace(Wn, "-$&").toLowerCase();
|
|
966
|
+
}), jt = function(t, r) {
|
|
967
967
|
switch (t) {
|
|
968
968
|
case "animation":
|
|
969
969
|
case "animationName":
|
|
970
|
-
if (typeof
|
|
971
|
-
return
|
|
972
|
-
return
|
|
970
|
+
if (typeof r == "string")
|
|
971
|
+
return r.replace(Hn, function(i, a, o) {
|
|
972
|
+
return B = {
|
|
973
973
|
name: a,
|
|
974
|
-
styles:
|
|
975
|
-
next:
|
|
974
|
+
styles: o,
|
|
975
|
+
next: B
|
|
976
976
|
}, a;
|
|
977
977
|
});
|
|
978
978
|
}
|
|
979
|
-
return
|
|
979
|
+
return Un[t] !== 1 && !rr(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
980
980
|
};
|
|
981
|
-
function Ie(e, t,
|
|
982
|
-
if (
|
|
981
|
+
function Ie(e, t, r) {
|
|
982
|
+
if (r == null)
|
|
983
983
|
return "";
|
|
984
|
-
var i =
|
|
984
|
+
var i = r;
|
|
985
985
|
if (i.__emotion_styles !== void 0)
|
|
986
986
|
return i;
|
|
987
|
-
switch (typeof
|
|
987
|
+
switch (typeof r) {
|
|
988
988
|
case "boolean":
|
|
989
989
|
return "";
|
|
990
990
|
case "object": {
|
|
991
|
-
var a =
|
|
991
|
+
var a = r;
|
|
992
992
|
if (a.anim === 1)
|
|
993
|
-
return
|
|
993
|
+
return B = {
|
|
994
994
|
name: a.name,
|
|
995
995
|
styles: a.styles,
|
|
996
|
-
next:
|
|
996
|
+
next: B
|
|
997
997
|
}, a.name;
|
|
998
|
-
var
|
|
999
|
-
if (
|
|
1000
|
-
var
|
|
1001
|
-
if (
|
|
1002
|
-
for (;
|
|
1003
|
-
|
|
1004
|
-
name:
|
|
1005
|
-
styles:
|
|
1006
|
-
next:
|
|
1007
|
-
},
|
|
1008
|
-
var
|
|
1009
|
-
return
|
|
998
|
+
var o = r;
|
|
999
|
+
if (o.styles !== void 0) {
|
|
1000
|
+
var c = o.next;
|
|
1001
|
+
if (c !== void 0)
|
|
1002
|
+
for (; c !== void 0; )
|
|
1003
|
+
B = {
|
|
1004
|
+
name: c.name,
|
|
1005
|
+
styles: c.styles,
|
|
1006
|
+
next: B
|
|
1007
|
+
}, c = c.next;
|
|
1008
|
+
var f = o.styles + ";";
|
|
1009
|
+
return f;
|
|
1010
1010
|
}
|
|
1011
|
-
return
|
|
1011
|
+
return Gn(e, t, r);
|
|
1012
1012
|
}
|
|
1013
1013
|
case "function": {
|
|
1014
1014
|
if (e !== void 0) {
|
|
1015
|
-
var
|
|
1016
|
-
return
|
|
1015
|
+
var p = B, m = r(e);
|
|
1016
|
+
return B = p, Ie(e, t, m);
|
|
1017
1017
|
}
|
|
1018
1018
|
break;
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
|
-
var
|
|
1022
|
-
return
|
|
1021
|
+
var P = r;
|
|
1022
|
+
return P;
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function Gn(e, t, r) {
|
|
1025
1025
|
var i = "";
|
|
1026
|
-
if (Array.isArray(
|
|
1027
|
-
for (var a = 0; a <
|
|
1028
|
-
i += Ie(e, t,
|
|
1026
|
+
if (Array.isArray(r))
|
|
1027
|
+
for (var a = 0; a < r.length; a++)
|
|
1028
|
+
i += Ie(e, t, r[a]) + ";";
|
|
1029
1029
|
else
|
|
1030
|
-
for (var
|
|
1031
|
-
var
|
|
1032
|
-
if (typeof
|
|
1033
|
-
var
|
|
1034
|
-
|
|
1035
|
-
} else if (Array.isArray(
|
|
1036
|
-
for (var
|
|
1037
|
-
|
|
1030
|
+
for (var o in r) {
|
|
1031
|
+
var c = r[o];
|
|
1032
|
+
if (typeof c != "object") {
|
|
1033
|
+
var f = c;
|
|
1034
|
+
$t(f) && (i += nt(o) + ":" + jt(o, f) + ";");
|
|
1035
|
+
} else if (Array.isArray(c) && typeof c[0] == "string" && t == null)
|
|
1036
|
+
for (var p = 0; p < c.length; p++)
|
|
1037
|
+
$t(c[p]) && (i += nt(o) + ":" + jt(o, c[p]) + ";");
|
|
1038
1038
|
else {
|
|
1039
|
-
var
|
|
1040
|
-
switch (
|
|
1039
|
+
var m = Ie(e, t, c);
|
|
1040
|
+
switch (o) {
|
|
1041
1041
|
case "animation":
|
|
1042
1042
|
case "animationName": {
|
|
1043
|
-
i +=
|
|
1043
|
+
i += nt(o) + ":" + m + ";";
|
|
1044
1044
|
break;
|
|
1045
1045
|
}
|
|
1046
1046
|
default:
|
|
1047
|
-
i +=
|
|
1047
|
+
i += o + "{" + m + "}";
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
1051
1051
|
return i;
|
|
1052
1052
|
}
|
|
1053
|
-
var
|
|
1054
|
-
function
|
|
1053
|
+
var zt = /label:\s*([^\s;{]+)\s*(;|$)/g, B;
|
|
1054
|
+
function Jn(e, t, r) {
|
|
1055
1055
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1056
1056
|
return e[0];
|
|
1057
1057
|
var i = !0, a = "";
|
|
1058
|
-
|
|
1059
|
-
var
|
|
1060
|
-
if (
|
|
1061
|
-
i = !1, a += Ie(
|
|
1058
|
+
B = void 0;
|
|
1059
|
+
var o = e[0];
|
|
1060
|
+
if (o == null || o.raw === void 0)
|
|
1061
|
+
i = !1, a += Ie(r, t, o);
|
|
1062
1062
|
else {
|
|
1063
|
-
var
|
|
1064
|
-
a +=
|
|
1065
|
-
}
|
|
1066
|
-
for (var
|
|
1067
|
-
if (a += Ie(
|
|
1068
|
-
var
|
|
1069
|
-
a +=
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
for (var
|
|
1073
|
-
|
|
1074
|
-
var
|
|
1063
|
+
var c = o;
|
|
1064
|
+
a += c[0];
|
|
1065
|
+
}
|
|
1066
|
+
for (var f = 1; f < e.length; f++)
|
|
1067
|
+
if (a += Ie(r, t, e[f]), i) {
|
|
1068
|
+
var p = o;
|
|
1069
|
+
a += p[f];
|
|
1070
|
+
}
|
|
1071
|
+
zt.lastIndex = 0;
|
|
1072
|
+
for (var m = "", P; (P = zt.exec(a)) !== null; )
|
|
1073
|
+
m += "-" + P[1];
|
|
1074
|
+
var w = Vn(a) + m;
|
|
1075
1075
|
return {
|
|
1076
|
-
name:
|
|
1076
|
+
name: w,
|
|
1077
1077
|
styles: a,
|
|
1078
|
-
next:
|
|
1078
|
+
next: B
|
|
1079
1079
|
};
|
|
1080
1080
|
}
|
|
1081
|
-
var
|
|
1081
|
+
var Qn = function(t) {
|
|
1082
1082
|
return t();
|
|
1083
|
-
},
|
|
1083
|
+
}, Kn = te.useInsertionEffect ? te.useInsertionEffect : !1, Bn = Kn || Qn, nr = /* @__PURE__ */ te.createContext(
|
|
1084
1084
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1085
1085
|
// because this module is primarily intended for the browser and node
|
|
1086
1086
|
// but it's also required in react native and similar environments sometimes
|
|
1087
1087
|
// and we could have a special build just for that
|
|
1088
1088
|
// but this is much easier and the native packages
|
|
1089
1089
|
// might use a different theme context in the future anyway
|
|
1090
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1090
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ qr({
|
|
1091
1091
|
key: "css"
|
|
1092
1092
|
}) : null
|
|
1093
1093
|
);
|
|
1094
|
-
|
|
1095
|
-
var
|
|
1096
|
-
return /* @__PURE__ */
|
|
1097
|
-
var a =
|
|
1098
|
-
return t(
|
|
1094
|
+
nr.Provider;
|
|
1095
|
+
var Xn = function(t) {
|
|
1096
|
+
return /* @__PURE__ */ jr(function(r, i) {
|
|
1097
|
+
var a = ct(nr);
|
|
1098
|
+
return t(r, a, i);
|
|
1099
1099
|
});
|
|
1100
|
-
},
|
|
1100
|
+
}, Zn = /* @__PURE__ */ te.createContext({}), Ue = {}.hasOwnProperty, ot = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", ir = function(t, r) {
|
|
1101
1101
|
var i = {};
|
|
1102
|
-
for (var a in
|
|
1103
|
-
|
|
1104
|
-
return i[
|
|
1105
|
-
},
|
|
1106
|
-
var
|
|
1107
|
-
return
|
|
1108
|
-
return
|
|
1102
|
+
for (var a in r)
|
|
1103
|
+
Ue.call(r, a) && (i[a] = r[a]);
|
|
1104
|
+
return i[ot] = t, i;
|
|
1105
|
+
}, ei = function(t) {
|
|
1106
|
+
var r = t.cache, i = t.serialized, a = t.isStringTag;
|
|
1107
|
+
return tr(r, i, a), Bn(function() {
|
|
1108
|
+
return Ln(r, i, a);
|
|
1109
1109
|
}), null;
|
|
1110
|
-
},
|
|
1110
|
+
}, ti = /* @__PURE__ */ Xn(function(e, t, r) {
|
|
1111
1111
|
var i = e.css;
|
|
1112
1112
|
typeof i == "string" && t.registered[i] !== void 0 && (i = t.registered[i]);
|
|
1113
|
-
var a = e[
|
|
1114
|
-
typeof e.className == "string" ?
|
|
1115
|
-
var
|
|
1116
|
-
|
|
1117
|
-
var
|
|
1118
|
-
for (var
|
|
1119
|
-
|
|
1120
|
-
return
|
|
1113
|
+
var a = e[ot], o = [i], c = "";
|
|
1114
|
+
typeof e.className == "string" ? c = qn(t.registered, o, e.className) : e.className != null && (c = e.className + " ");
|
|
1115
|
+
var f = Jn(o, void 0, te.useContext(Zn));
|
|
1116
|
+
c += t.key + "-" + f.name;
|
|
1117
|
+
var p = {};
|
|
1118
|
+
for (var m in e)
|
|
1119
|
+
Ue.call(e, m) && m !== "css" && m !== ot && (p[m] = e[m]);
|
|
1120
|
+
return p.className = c, r && (p.ref = r), /* @__PURE__ */ te.createElement(te.Fragment, null, /* @__PURE__ */ te.createElement(ei, {
|
|
1121
1121
|
cache: t,
|
|
1122
|
-
serialized:
|
|
1122
|
+
serialized: f,
|
|
1123
1123
|
isStringTag: typeof a == "string"
|
|
1124
|
-
}), /* @__PURE__ */ te.createElement(a,
|
|
1125
|
-
}),
|
|
1126
|
-
return
|
|
1127
|
-
},
|
|
1128
|
-
return
|
|
1124
|
+
}), /* @__PURE__ */ te.createElement(a, p));
|
|
1125
|
+
}), ar = ti, Ye = Ce.Fragment, s = function(t, r, i) {
|
|
1126
|
+
return Ue.call(r, "css") ? Ce.jsx(ar, ir(t, r), i) : Ce.jsx(t, r, i);
|
|
1127
|
+
}, M = function(t, r, i) {
|
|
1128
|
+
return Ue.call(r, "css") ? Ce.jsxs(ar, ir(t, r), i) : Ce.jsxs(t, r, i);
|
|
1129
1129
|
};
|
|
1130
|
-
const
|
|
1130
|
+
const ri = {
|
|
1131
|
+
mediaPlayer: {
|
|
1132
|
+
enablePlaylists: process.env.NODE_ENV !== "production"
|
|
1133
|
+
}
|
|
1134
|
+
}, ni = "http://localhost".replace(/\/+$/, "");
|
|
1135
|
+
class sr {
|
|
1136
|
+
constructor(t = {}) {
|
|
1137
|
+
this.configuration = t;
|
|
1138
|
+
}
|
|
1139
|
+
set config(t) {
|
|
1140
|
+
this.configuration = t;
|
|
1141
|
+
}
|
|
1142
|
+
get basePath() {
|
|
1143
|
+
return this.configuration.basePath != null ? this.configuration.basePath : ni;
|
|
1144
|
+
}
|
|
1145
|
+
get fetchApi() {
|
|
1146
|
+
return this.configuration.fetchApi;
|
|
1147
|
+
}
|
|
1148
|
+
get middleware() {
|
|
1149
|
+
return this.configuration.middleware || [];
|
|
1150
|
+
}
|
|
1151
|
+
get queryParamsStringify() {
|
|
1152
|
+
return this.configuration.queryParamsStringify || or;
|
|
1153
|
+
}
|
|
1154
|
+
get username() {
|
|
1155
|
+
return this.configuration.username;
|
|
1156
|
+
}
|
|
1157
|
+
get password() {
|
|
1158
|
+
return this.configuration.password;
|
|
1159
|
+
}
|
|
1160
|
+
get apiKey() {
|
|
1161
|
+
const t = this.configuration.apiKey;
|
|
1162
|
+
if (t)
|
|
1163
|
+
return typeof t == "function" ? t : () => t;
|
|
1164
|
+
}
|
|
1165
|
+
get accessToken() {
|
|
1166
|
+
const t = this.configuration.accessToken;
|
|
1167
|
+
if (t)
|
|
1168
|
+
return typeof t == "function" ? t : async () => t;
|
|
1169
|
+
}
|
|
1170
|
+
get headers() {
|
|
1171
|
+
return this.configuration.headers;
|
|
1172
|
+
}
|
|
1173
|
+
get credentials() {
|
|
1174
|
+
return this.configuration.credentials;
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
const ii = new sr();
|
|
1178
|
+
class pt {
|
|
1179
|
+
constructor(t = ii) {
|
|
1180
|
+
this.configuration = t, this.middleware = t.middleware;
|
|
1181
|
+
}
|
|
1182
|
+
static jsonRegex = new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i");
|
|
1183
|
+
middleware;
|
|
1184
|
+
withMiddleware(...t) {
|
|
1185
|
+
const r = this.clone();
|
|
1186
|
+
return r.middleware = r.middleware.concat(...t), r;
|
|
1187
|
+
}
|
|
1188
|
+
withPreMiddleware(...t) {
|
|
1189
|
+
const r = t.map((i) => ({ pre: i }));
|
|
1190
|
+
return this.withMiddleware(...r);
|
|
1191
|
+
}
|
|
1192
|
+
withPostMiddleware(...t) {
|
|
1193
|
+
const r = t.map((i) => ({ post: i }));
|
|
1194
|
+
return this.withMiddleware(...r);
|
|
1195
|
+
}
|
|
1196
|
+
/**
|
|
1197
|
+
* Check if the given MIME is a JSON MIME.
|
|
1198
|
+
* JSON MIME examples:
|
|
1199
|
+
* application/json
|
|
1200
|
+
* application/json; charset=UTF8
|
|
1201
|
+
* APPLICATION/JSON
|
|
1202
|
+
* application/vnd.company+json
|
|
1203
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
1204
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
1205
|
+
*/
|
|
1206
|
+
isJsonMime(t) {
|
|
1207
|
+
return t ? pt.jsonRegex.test(t) : !1;
|
|
1208
|
+
}
|
|
1209
|
+
async request(t, r) {
|
|
1210
|
+
const { url: i, init: a } = await this.createFetchParams(t, r), o = await this.fetchApi(i, a);
|
|
1211
|
+
if (o && o.status >= 200 && o.status < 300)
|
|
1212
|
+
return o;
|
|
1213
|
+
throw new oi(o, "Response returned an error code");
|
|
1214
|
+
}
|
|
1215
|
+
async createFetchParams(t, r) {
|
|
1216
|
+
let i = this.configuration.basePath + t.path;
|
|
1217
|
+
t.query !== void 0 && Object.keys(t.query).length !== 0 && (i += "?" + this.configuration.queryParamsStringify(t.query));
|
|
1218
|
+
const a = Object.assign({}, this.configuration.headers, t.headers);
|
|
1219
|
+
Object.keys(a).forEach((P) => a[P] === void 0 ? delete a[P] : {});
|
|
1220
|
+
const o = typeof r == "function" ? r : async () => r, c = {
|
|
1221
|
+
method: t.method,
|
|
1222
|
+
headers: a,
|
|
1223
|
+
body: t.body,
|
|
1224
|
+
credentials: this.configuration.credentials
|
|
1225
|
+
}, f = {
|
|
1226
|
+
...c,
|
|
1227
|
+
...await o({
|
|
1228
|
+
init: c,
|
|
1229
|
+
context: t
|
|
1230
|
+
})
|
|
1231
|
+
};
|
|
1232
|
+
let p;
|
|
1233
|
+
si(f.body) || f.body instanceof URLSearchParams || ai(f.body) ? p = f.body : this.isJsonMime(a["Content-Type"]) ? p = JSON.stringify(f.body) : p = f.body;
|
|
1234
|
+
const m = {
|
|
1235
|
+
...f,
|
|
1236
|
+
body: p
|
|
1237
|
+
};
|
|
1238
|
+
return { url: i, init: m };
|
|
1239
|
+
}
|
|
1240
|
+
fetchApi = async (t, r) => {
|
|
1241
|
+
let i = { url: t, init: r };
|
|
1242
|
+
for (const o of this.middleware)
|
|
1243
|
+
o.pre && (i = await o.pre({
|
|
1244
|
+
fetch: this.fetchApi,
|
|
1245
|
+
...i
|
|
1246
|
+
}) || i);
|
|
1247
|
+
let a;
|
|
1248
|
+
try {
|
|
1249
|
+
a = await (this.configuration.fetchApi || fetch)(i.url, i.init);
|
|
1250
|
+
} catch (o) {
|
|
1251
|
+
for (const c of this.middleware)
|
|
1252
|
+
c.onError && (a = await c.onError({
|
|
1253
|
+
fetch: this.fetchApi,
|
|
1254
|
+
url: i.url,
|
|
1255
|
+
init: i.init,
|
|
1256
|
+
error: o,
|
|
1257
|
+
response: a ? a.clone() : void 0
|
|
1258
|
+
}) || a);
|
|
1259
|
+
if (a === void 0)
|
|
1260
|
+
throw o instanceof Error ? new li(o, "The request failed and the interceptors did not return an alternative response") : o;
|
|
1261
|
+
}
|
|
1262
|
+
for (const o of this.middleware)
|
|
1263
|
+
o.post && (a = await o.post({
|
|
1264
|
+
fetch: this.fetchApi,
|
|
1265
|
+
url: i.url,
|
|
1266
|
+
init: i.init,
|
|
1267
|
+
response: a.clone()
|
|
1268
|
+
}) || a);
|
|
1269
|
+
return a;
|
|
1270
|
+
};
|
|
1271
|
+
/**
|
|
1272
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
1273
|
+
* and then shallow cloning data members.
|
|
1274
|
+
*/
|
|
1275
|
+
clone() {
|
|
1276
|
+
const t = this.constructor, r = new t(this.configuration);
|
|
1277
|
+
return r.middleware = this.middleware.slice(), r;
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
function ai(e) {
|
|
1281
|
+
return typeof Blob < "u" && e instanceof Blob;
|
|
1282
|
+
}
|
|
1283
|
+
function si(e) {
|
|
1284
|
+
return typeof FormData < "u" && e instanceof FormData;
|
|
1285
|
+
}
|
|
1286
|
+
class oi extends Error {
|
|
1287
|
+
constructor(t, r) {
|
|
1288
|
+
super(r), this.response = t;
|
|
1289
|
+
}
|
|
1290
|
+
name = "ResponseError";
|
|
1291
|
+
}
|
|
1292
|
+
class li extends Error {
|
|
1293
|
+
constructor(t, r) {
|
|
1294
|
+
super(r), this.cause = t;
|
|
1295
|
+
}
|
|
1296
|
+
name = "FetchError";
|
|
1297
|
+
}
|
|
1298
|
+
class Re extends Error {
|
|
1299
|
+
constructor(t, r) {
|
|
1300
|
+
super(r), this.field = t;
|
|
1301
|
+
}
|
|
1302
|
+
name = "RequiredError";
|
|
1303
|
+
}
|
|
1304
|
+
function or(e, t = "") {
|
|
1305
|
+
return Object.keys(e).map((r) => lr(r, e[r], t)).filter((r) => r.length > 0).join("&");
|
|
1306
|
+
}
|
|
1307
|
+
function lr(e, t, r = "") {
|
|
1308
|
+
const i = r + (r.length ? `[${e}]` : e);
|
|
1309
|
+
if (t instanceof Array) {
|
|
1310
|
+
const a = t.map((o) => encodeURIComponent(String(o))).join(`&${encodeURIComponent(i)}=`);
|
|
1311
|
+
return `${encodeURIComponent(i)}=${a}`;
|
|
1312
|
+
}
|
|
1313
|
+
if (t instanceof Set) {
|
|
1314
|
+
const a = Array.from(t);
|
|
1315
|
+
return lr(e, a, r);
|
|
1316
|
+
}
|
|
1317
|
+
return t instanceof Date ? `${encodeURIComponent(i)}=${encodeURIComponent(t.toISOString())}` : t instanceof Object ? or(t, i) : `${encodeURIComponent(i)}=${encodeURIComponent(String(t))}`;
|
|
1318
|
+
}
|
|
1319
|
+
class se {
|
|
1320
|
+
constructor(t, r = (i) => i) {
|
|
1321
|
+
this.raw = t, this.transformer = r;
|
|
1322
|
+
}
|
|
1323
|
+
async value() {
|
|
1324
|
+
return this.transformer(await this.raw.json());
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
function cr(e) {
|
|
1328
|
+
return ci(e);
|
|
1329
|
+
}
|
|
1330
|
+
function ci(e, t) {
|
|
1331
|
+
return e == null ? e : {
|
|
1332
|
+
id: e.id,
|
|
1333
|
+
name: e.name
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
function ui(e) {
|
|
1337
|
+
return di(e);
|
|
1338
|
+
}
|
|
1339
|
+
function di(e, t) {
|
|
1340
|
+
return e == null ? e : {
|
|
1341
|
+
playlist: cr(e.playlist)
|
|
1342
|
+
};
|
|
1343
|
+
}
|
|
1344
|
+
function fi(e) {
|
|
1345
|
+
return pi(e);
|
|
1346
|
+
}
|
|
1347
|
+
function pi(e, t) {
|
|
1348
|
+
return e == null ? e : {
|
|
1349
|
+
items: e.items.map(cr)
|
|
1350
|
+
};
|
|
1351
|
+
}
|
|
1352
|
+
function yi(e) {
|
|
1353
|
+
return hi(e);
|
|
1354
|
+
}
|
|
1355
|
+
function hi(e, t) {
|
|
1356
|
+
return e == null ? e : {
|
|
1357
|
+
id: e.id,
|
|
1358
|
+
url: e.url,
|
|
1359
|
+
type: e.type,
|
|
1360
|
+
videoId: e.videoId,
|
|
1361
|
+
title: e.title
|
|
1362
|
+
};
|
|
1363
|
+
}
|
|
1364
|
+
function mi(e) {
|
|
1365
|
+
return vi(e);
|
|
1366
|
+
}
|
|
1367
|
+
function vi(e, t) {
|
|
1368
|
+
return e == null ? e : {
|
|
1369
|
+
items: e.items.map(yi)
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
function gi(e) {
|
|
1373
|
+
return Pi(e, !1);
|
|
1374
|
+
}
|
|
1375
|
+
function Pi(e, t = !1) {
|
|
1376
|
+
return e == null ? e : {
|
|
1377
|
+
name: e.name
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
function bi(e) {
|
|
1381
|
+
return wi(e, !1);
|
|
1382
|
+
}
|
|
1383
|
+
function wi(e, t = !1) {
|
|
1384
|
+
return e == null ? e : {
|
|
1385
|
+
name: e.name
|
|
1386
|
+
};
|
|
1387
|
+
}
|
|
1388
|
+
class Si extends pt {
|
|
1389
|
+
/**
|
|
1390
|
+
*/
|
|
1391
|
+
async mediaPlayerPlaylistsGetRaw(t) {
|
|
1392
|
+
const r = {}, i = {}, o = await this.request({
|
|
1393
|
+
path: "/media-player/playlists",
|
|
1394
|
+
method: "GET",
|
|
1395
|
+
headers: i,
|
|
1396
|
+
query: r
|
|
1397
|
+
}, t);
|
|
1398
|
+
return new se(o, (c) => fi(c));
|
|
1399
|
+
}
|
|
1400
|
+
/**
|
|
1401
|
+
*/
|
|
1402
|
+
async mediaPlayerPlaylistsGet(t) {
|
|
1403
|
+
return await (await this.mediaPlayerPlaylistsGetRaw(t)).value();
|
|
1404
|
+
}
|
|
1405
|
+
/**
|
|
1406
|
+
*/
|
|
1407
|
+
async mediaPlayerPlaylistsIdDeleteRaw(t, r) {
|
|
1408
|
+
if (t.id == null)
|
|
1409
|
+
throw new Re(
|
|
1410
|
+
"id",
|
|
1411
|
+
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdDelete().'
|
|
1412
|
+
);
|
|
1413
|
+
const i = {}, a = {};
|
|
1414
|
+
let o = "/media-player/playlists/{id}";
|
|
1415
|
+
o = o.replace("{id}", encodeURIComponent(String(t.id)));
|
|
1416
|
+
const c = await this.request({
|
|
1417
|
+
path: o,
|
|
1418
|
+
method: "DELETE",
|
|
1419
|
+
headers: a,
|
|
1420
|
+
query: i
|
|
1421
|
+
}, r);
|
|
1422
|
+
return new se(c);
|
|
1423
|
+
}
|
|
1424
|
+
/**
|
|
1425
|
+
*/
|
|
1426
|
+
async mediaPlayerPlaylistsIdDelete(t, r) {
|
|
1427
|
+
return await (await this.mediaPlayerPlaylistsIdDeleteRaw(t, r)).value();
|
|
1428
|
+
}
|
|
1429
|
+
/**
|
|
1430
|
+
*/
|
|
1431
|
+
async mediaPlayerPlaylistsIdGetRaw(t, r) {
|
|
1432
|
+
if (t.id == null)
|
|
1433
|
+
throw new Re(
|
|
1434
|
+
"id",
|
|
1435
|
+
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdGet().'
|
|
1436
|
+
);
|
|
1437
|
+
const i = {}, a = {};
|
|
1438
|
+
let o = "/media-player/playlists/{id}";
|
|
1439
|
+
o = o.replace("{id}", encodeURIComponent(String(t.id)));
|
|
1440
|
+
const c = await this.request({
|
|
1441
|
+
path: o,
|
|
1442
|
+
method: "GET",
|
|
1443
|
+
headers: a,
|
|
1444
|
+
query: i
|
|
1445
|
+
}, r);
|
|
1446
|
+
return new se(c, (f) => ui(f));
|
|
1447
|
+
}
|
|
1448
|
+
/**
|
|
1449
|
+
*/
|
|
1450
|
+
async mediaPlayerPlaylistsIdGet(t, r) {
|
|
1451
|
+
return await (await this.mediaPlayerPlaylistsIdGetRaw(t, r)).value();
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1454
|
+
*/
|
|
1455
|
+
async mediaPlayerPlaylistsIdRenamePostRaw(t, r) {
|
|
1456
|
+
if (t.id == null)
|
|
1457
|
+
throw new Re(
|
|
1458
|
+
"id",
|
|
1459
|
+
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdRenamePost().'
|
|
1460
|
+
);
|
|
1461
|
+
const i = {}, a = {};
|
|
1462
|
+
a["Content-Type"] = "application/json";
|
|
1463
|
+
let o = "/media-player/playlists/{id}:rename";
|
|
1464
|
+
o = o.replace("{id}", encodeURIComponent(String(t.id)));
|
|
1465
|
+
const c = await this.request({
|
|
1466
|
+
path: o,
|
|
1467
|
+
method: "POST",
|
|
1468
|
+
headers: a,
|
|
1469
|
+
query: i,
|
|
1470
|
+
body: bi(t.hydrangeanDivaMediaPlayerEndpointsPlaylistsRenamePlaylistRequest)
|
|
1471
|
+
}, r);
|
|
1472
|
+
return new se(c);
|
|
1473
|
+
}
|
|
1474
|
+
/**
|
|
1475
|
+
*/
|
|
1476
|
+
async mediaPlayerPlaylistsIdRenamePost(t, r) {
|
|
1477
|
+
return await (await this.mediaPlayerPlaylistsIdRenamePostRaw(t, r)).value();
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
*/
|
|
1481
|
+
async mediaPlayerPlaylistsIdTracksGetRaw(t, r) {
|
|
1482
|
+
if (t.id == null)
|
|
1483
|
+
throw new Re(
|
|
1484
|
+
"id",
|
|
1485
|
+
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdTracksGet().'
|
|
1486
|
+
);
|
|
1487
|
+
const i = {}, a = {};
|
|
1488
|
+
let o = "/media-player/playlists/{id}/tracks";
|
|
1489
|
+
o = o.replace("{id}", encodeURIComponent(String(t.id)));
|
|
1490
|
+
const c = await this.request({
|
|
1491
|
+
path: o,
|
|
1492
|
+
method: "GET",
|
|
1493
|
+
headers: a,
|
|
1494
|
+
query: i
|
|
1495
|
+
}, r);
|
|
1496
|
+
return new se(c, (f) => mi(f));
|
|
1497
|
+
}
|
|
1498
|
+
/**
|
|
1499
|
+
*/
|
|
1500
|
+
async mediaPlayerPlaylistsIdTracksGet(t, r) {
|
|
1501
|
+
return await (await this.mediaPlayerPlaylistsIdTracksGetRaw(t, r)).value();
|
|
1502
|
+
}
|
|
1503
|
+
/**
|
|
1504
|
+
*/
|
|
1505
|
+
async mediaPlayerPlaylistsIdTracksPutRaw(t, r) {
|
|
1506
|
+
if (t.id == null)
|
|
1507
|
+
throw new Re(
|
|
1508
|
+
"id",
|
|
1509
|
+
'Required parameter "id" was null or undefined when calling mediaPlayerPlaylistsIdTracksPut().'
|
|
1510
|
+
);
|
|
1511
|
+
const i = {}, a = {};
|
|
1512
|
+
let o = "/media-player/playlists/{id}/tracks";
|
|
1513
|
+
o = o.replace("{id}", encodeURIComponent(String(t.id)));
|
|
1514
|
+
const c = await this.request({
|
|
1515
|
+
path: o,
|
|
1516
|
+
method: "PUT",
|
|
1517
|
+
headers: a,
|
|
1518
|
+
query: i
|
|
1519
|
+
}, r);
|
|
1520
|
+
return new se(c);
|
|
1521
|
+
}
|
|
1522
|
+
/**
|
|
1523
|
+
*/
|
|
1524
|
+
async mediaPlayerPlaylistsIdTracksPut(t, r) {
|
|
1525
|
+
return await (await this.mediaPlayerPlaylistsIdTracksPutRaw(t, r)).value();
|
|
1526
|
+
}
|
|
1527
|
+
/**
|
|
1528
|
+
*/
|
|
1529
|
+
async mediaPlayerPlaylistsPostRaw(t, r) {
|
|
1530
|
+
const i = {}, a = {};
|
|
1531
|
+
a["Content-Type"] = "application/json";
|
|
1532
|
+
const c = await this.request({
|
|
1533
|
+
path: "/media-player/playlists",
|
|
1534
|
+
method: "POST",
|
|
1535
|
+
headers: a,
|
|
1536
|
+
query: i,
|
|
1537
|
+
body: gi(t.hydrangeanDivaMediaPlayerEndpointsPlaylistsCreatePlaylistRequest)
|
|
1538
|
+
}, r);
|
|
1539
|
+
return new se(c);
|
|
1540
|
+
}
|
|
1541
|
+
/**
|
|
1542
|
+
*/
|
|
1543
|
+
async mediaPlayerPlaylistsPost(t = {}, r) {
|
|
1544
|
+
return await (await this.mediaPlayerPlaylistsPostRaw(t, r)).value();
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
const Ei = new sr({
|
|
1548
|
+
basePath: new URL("api", window.location.origin).toString()
|
|
1549
|
+
}), Ri = new Si(
|
|
1550
|
+
Ei
|
|
1551
|
+
), Ti = ({
|
|
1552
|
+
disabled: e,
|
|
1553
|
+
onAddToPlaylist: t
|
|
1554
|
+
}) => {
|
|
1555
|
+
const [r, i] = z(!1), [a, o] = z(
|
|
1556
|
+
"loading"
|
|
1557
|
+
);
|
|
1558
|
+
return Vt(() => {
|
|
1559
|
+
Ri.mediaPlayerPlaylistsGet().then(
|
|
1560
|
+
(c) => o(
|
|
1561
|
+
c.items.map((f) => ({
|
|
1562
|
+
key: f.id,
|
|
1563
|
+
label: f.name
|
|
1564
|
+
}))
|
|
1565
|
+
)
|
|
1566
|
+
);
|
|
1567
|
+
}, []), /* @__PURE__ */ s(
|
|
1568
|
+
xe,
|
|
1569
|
+
{
|
|
1570
|
+
panelPaddingSize: "none",
|
|
1571
|
+
button: /* @__PURE__ */ s(
|
|
1572
|
+
Q,
|
|
1573
|
+
{
|
|
1574
|
+
iconType: Te,
|
|
1575
|
+
onClick: () => i(!r),
|
|
1576
|
+
disabled: e,
|
|
1577
|
+
children: "Add to"
|
|
1578
|
+
}
|
|
1579
|
+
),
|
|
1580
|
+
isOpen: r,
|
|
1581
|
+
closePopover: () => i(!1),
|
|
1582
|
+
children: /* @__PURE__ */ s(
|
|
1583
|
+
Lr,
|
|
1584
|
+
{
|
|
1585
|
+
searchable: !0,
|
|
1586
|
+
searchProps: {
|
|
1587
|
+
compressed: !0
|
|
1588
|
+
},
|
|
1589
|
+
options: a === "loading" ? void 0 : a,
|
|
1590
|
+
isLoading: a === "loading",
|
|
1591
|
+
onChange: async (c, f, p) => {
|
|
1592
|
+
i(!1), await t(p);
|
|
1593
|
+
},
|
|
1594
|
+
singleSelection: !0,
|
|
1595
|
+
children: (c, f) => /* @__PURE__ */ M("div", { style: { width: 240 }, children: [
|
|
1596
|
+
/* @__PURE__ */ s(Vr, { paddingSize: "s", children: f }),
|
|
1597
|
+
c,
|
|
1598
|
+
/* @__PURE__ */ s(Ur, { paddingSize: "s", children: /* @__PURE__ */ s(Q, { size: "s", fullWidth: !0, iconType: Te, children: "New playlist" }) })
|
|
1599
|
+
] })
|
|
1600
|
+
}
|
|
1601
|
+
)
|
|
1602
|
+
}
|
|
1603
|
+
);
|
|
1604
|
+
}, Ci = ({
|
|
1131
1605
|
onCancel: e,
|
|
1132
1606
|
onSave: t
|
|
1133
1607
|
}) => {
|
|
1134
|
-
const
|
|
1135
|
-
return /* @__PURE__ */
|
|
1136
|
-
/* @__PURE__ */
|
|
1137
|
-
/* @__PURE__ */
|
|
1138
|
-
|
|
1608
|
+
const r = Yr({ prefix: "modalForm" }), [i, a] = z(""), [o, c] = z(""), [f, p] = z(!1);
|
|
1609
|
+
return /* @__PURE__ */ M(Kr, { onClose: e, initialFocus: "[name=url]", children: [
|
|
1610
|
+
/* @__PURE__ */ s(Hr, { children: /* @__PURE__ */ s(Wr, { children: "Add video" }) }),
|
|
1611
|
+
/* @__PURE__ */ s(Jr, { children: /* @__PURE__ */ M(
|
|
1612
|
+
Gr,
|
|
1139
1613
|
{
|
|
1140
|
-
id:
|
|
1614
|
+
id: r,
|
|
1141
1615
|
component: "form",
|
|
1142
|
-
onSubmit: async (
|
|
1143
|
-
|
|
1616
|
+
onSubmit: async (m) => {
|
|
1617
|
+
m.preventDefault();
|
|
1144
1618
|
try {
|
|
1145
|
-
|
|
1619
|
+
p(!0), await t({ url: i, title: o });
|
|
1146
1620
|
} finally {
|
|
1147
|
-
|
|
1621
|
+
p(!1);
|
|
1148
1622
|
}
|
|
1149
1623
|
},
|
|
1150
1624
|
children: [
|
|
1151
|
-
/* @__PURE__ */
|
|
1152
|
-
|
|
1625
|
+
/* @__PURE__ */ s(at, { label: "URL", children: /* @__PURE__ */ s(
|
|
1626
|
+
xt,
|
|
1153
1627
|
{
|
|
1154
1628
|
name: "url",
|
|
1155
1629
|
value: i,
|
|
1156
|
-
onChange: (
|
|
1630
|
+
onChange: (m) => a(m.target.value)
|
|
1157
1631
|
}
|
|
1158
1632
|
) }),
|
|
1159
|
-
/* @__PURE__ */
|
|
1160
|
-
|
|
1633
|
+
/* @__PURE__ */ s(at, { label: "Title", children: /* @__PURE__ */ s(
|
|
1634
|
+
xt,
|
|
1161
1635
|
{
|
|
1162
1636
|
name: "title",
|
|
1163
|
-
value:
|
|
1164
|
-
onChange: (
|
|
1637
|
+
value: o,
|
|
1638
|
+
onChange: (m) => c(m.target.value)
|
|
1165
1639
|
}
|
|
1166
1640
|
) })
|
|
1167
1641
|
]
|
|
1168
1642
|
}
|
|
1169
1643
|
) }),
|
|
1170
|
-
/* @__PURE__ */
|
|
1171
|
-
/* @__PURE__ */
|
|
1172
|
-
/* @__PURE__ */
|
|
1173
|
-
|
|
1644
|
+
/* @__PURE__ */ M(Qr, { children: [
|
|
1645
|
+
/* @__PURE__ */ s(Yt, { onClick: e, children: "Cancel" }),
|
|
1646
|
+
/* @__PURE__ */ s(
|
|
1647
|
+
Q,
|
|
1174
1648
|
{
|
|
1175
1649
|
type: "submit",
|
|
1176
|
-
form:
|
|
1650
|
+
form: r,
|
|
1177
1651
|
fill: !0,
|
|
1178
1652
|
disabled: i.trim().length === 0,
|
|
1179
|
-
isLoading:
|
|
1653
|
+
isLoading: f,
|
|
1180
1654
|
children: "Add video"
|
|
1181
1655
|
}
|
|
1182
1656
|
)
|
|
1183
1657
|
] })
|
|
1184
1658
|
] });
|
|
1185
|
-
},
|
|
1659
|
+
}, qt = re(
|
|
1186
1660
|
({ onSave: e }) => {
|
|
1187
|
-
const [t,
|
|
1661
|
+
const [t, r] = z(!1), i = $(
|
|
1188
1662
|
async (a) => {
|
|
1189
|
-
await e(a),
|
|
1663
|
+
await e(a), r(!1);
|
|
1190
1664
|
},
|
|
1191
1665
|
[e]
|
|
1192
1666
|
);
|
|
1193
|
-
return /* @__PURE__ */
|
|
1194
|
-
/* @__PURE__ */
|
|
1195
|
-
|
|
1667
|
+
return /* @__PURE__ */ M(Ye, { children: [
|
|
1668
|
+
/* @__PURE__ */ s(
|
|
1669
|
+
Q,
|
|
1196
1670
|
{
|
|
1197
|
-
onClick: () =>
|
|
1198
|
-
iconType:
|
|
1671
|
+
onClick: () => r(!0),
|
|
1672
|
+
iconType: Te,
|
|
1199
1673
|
color: "primary",
|
|
1200
1674
|
children: "Add video"
|
|
1201
1675
|
}
|
|
1202
1676
|
),
|
|
1203
|
-
t && /* @__PURE__ */
|
|
1204
|
-
|
|
1677
|
+
t && /* @__PURE__ */ s(
|
|
1678
|
+
Ci,
|
|
1205
1679
|
{
|
|
1206
|
-
onCancel: () =>
|
|
1680
|
+
onCancel: () => r(!1),
|
|
1207
1681
|
onSave: i
|
|
1208
1682
|
}
|
|
1209
1683
|
)
|
|
1210
1684
|
] });
|
|
1211
1685
|
}
|
|
1212
|
-
),
|
|
1686
|
+
), ur = {
|
|
1213
1687
|
Audio: "",
|
|
1214
1688
|
Dailymotion: "https://www.dailymotion.com/favicon.ico",
|
|
1215
1689
|
Niconico: "https://www.nicovideo.jp/favicon.ico",
|
|
@@ -1217,11 +1691,11 @@ const qn = ({
|
|
|
1217
1691
|
Twitch: "https://www.twitch.tv/favicon.ico",
|
|
1218
1692
|
Vimeo: "https://vimeo.com/favicon.ico",
|
|
1219
1693
|
YouTube: "https://www.youtube.com/favicon.ico"
|
|
1220
|
-
},
|
|
1694
|
+
}, Ii = C(
|
|
1221
1695
|
({ playQueueStore: e }) => {
|
|
1222
|
-
const { euiTheme: t } =
|
|
1223
|
-
return /* @__PURE__ */
|
|
1224
|
-
|
|
1696
|
+
const { euiTheme: t } = Wt();
|
|
1697
|
+
return /* @__PURE__ */ M(
|
|
1698
|
+
Xr,
|
|
1225
1699
|
{
|
|
1226
1700
|
style: {
|
|
1227
1701
|
position: "sticky",
|
|
@@ -1230,50 +1704,50 @@ const qn = ({
|
|
|
1230
1704
|
background: t.colors.backgroundBasePlain
|
|
1231
1705
|
},
|
|
1232
1706
|
children: [
|
|
1233
|
-
/* @__PURE__ */
|
|
1234
|
-
|
|
1707
|
+
/* @__PURE__ */ s(Br, { children: /* @__PURE__ */ s(
|
|
1708
|
+
Ht,
|
|
1235
1709
|
{
|
|
1236
1710
|
id: "",
|
|
1237
1711
|
checked: e.allItemsSelected,
|
|
1238
|
-
onChange: (
|
|
1239
|
-
e.allItemsSelected =
|
|
1712
|
+
onChange: (r) => {
|
|
1713
|
+
e.allItemsSelected = r.target.checked;
|
|
1240
1714
|
}
|
|
1241
1715
|
}
|
|
1242
1716
|
) }),
|
|
1243
|
-
/* @__PURE__ */
|
|
1244
|
-
/* @__PURE__ */
|
|
1245
|
-
/* @__PURE__ */
|
|
1717
|
+
/* @__PURE__ */ s(tt, { width: 24 }),
|
|
1718
|
+
/* @__PURE__ */ s(tt, { children: "Title" }),
|
|
1719
|
+
/* @__PURE__ */ s(tt, {})
|
|
1246
1720
|
]
|
|
1247
1721
|
}
|
|
1248
1722
|
);
|
|
1249
1723
|
}
|
|
1250
|
-
),
|
|
1724
|
+
), xi = re(
|
|
1251
1725
|
({
|
|
1252
1726
|
item: e,
|
|
1253
1727
|
closePopover: t
|
|
1254
1728
|
}) => {
|
|
1255
|
-
const
|
|
1729
|
+
const r = Ve(
|
|
1256
1730
|
() => [
|
|
1257
1731
|
{
|
|
1258
1732
|
id: 0,
|
|
1259
1733
|
items: [
|
|
1260
1734
|
{
|
|
1261
1735
|
name: "Play first",
|
|
1262
|
-
icon: /* @__PURE__ */
|
|
1736
|
+
icon: /* @__PURE__ */ s(Y, { type: "" }),
|
|
1263
1737
|
onClick: async () => {
|
|
1264
1738
|
t(), await e.playFirst();
|
|
1265
1739
|
}
|
|
1266
1740
|
},
|
|
1267
1741
|
{
|
|
1268
1742
|
name: "Play next",
|
|
1269
|
-
icon: /* @__PURE__ */
|
|
1743
|
+
icon: /* @__PURE__ */ s(Y, { type: "" }),
|
|
1270
1744
|
onClick: async () => {
|
|
1271
1745
|
t(), await e.playNext();
|
|
1272
1746
|
}
|
|
1273
1747
|
},
|
|
1274
1748
|
{
|
|
1275
1749
|
name: "Add to play queue",
|
|
1276
|
-
icon: /* @__PURE__ */
|
|
1750
|
+
icon: /* @__PURE__ */ s(Y, { type: Te }),
|
|
1277
1751
|
onClick: async () => {
|
|
1278
1752
|
t(), await e.addToPlayQueue();
|
|
1279
1753
|
}
|
|
@@ -1283,7 +1757,7 @@ const qn = ({
|
|
|
1283
1757
|
},
|
|
1284
1758
|
{
|
|
1285
1759
|
name: "Move to the top",
|
|
1286
|
-
icon: /* @__PURE__ */
|
|
1760
|
+
icon: /* @__PURE__ */ s(Y, { type: cn }),
|
|
1287
1761
|
onClick: async () => {
|
|
1288
1762
|
t(), e.moveToTop();
|
|
1289
1763
|
},
|
|
@@ -1291,7 +1765,7 @@ const qn = ({
|
|
|
1291
1765
|
},
|
|
1292
1766
|
{
|
|
1293
1767
|
name: "Move to the bottom",
|
|
1294
|
-
icon: /* @__PURE__ */
|
|
1768
|
+
icon: /* @__PURE__ */ s(Y, { type: un }),
|
|
1295
1769
|
onClick: async () => {
|
|
1296
1770
|
t(), e.moveToBottom();
|
|
1297
1771
|
},
|
|
@@ -1302,7 +1776,7 @@ const qn = ({
|
|
|
1302
1776
|
},
|
|
1303
1777
|
{
|
|
1304
1778
|
name: "Remove to the top",
|
|
1305
|
-
icon: /* @__PURE__ */
|
|
1779
|
+
icon: /* @__PURE__ */ s(Y, { type: "" }),
|
|
1306
1780
|
onClick: async () => {
|
|
1307
1781
|
t(), await e.removeToTop();
|
|
1308
1782
|
},
|
|
@@ -1310,7 +1784,7 @@ const qn = ({
|
|
|
1310
1784
|
},
|
|
1311
1785
|
{
|
|
1312
1786
|
name: "Remove others",
|
|
1313
|
-
icon: /* @__PURE__ */
|
|
1787
|
+
icon: /* @__PURE__ */ s(Y, { type: "" }),
|
|
1314
1788
|
onClick: async () => {
|
|
1315
1789
|
t(), await e.removeOthers();
|
|
1316
1790
|
},
|
|
@@ -1321,20 +1795,20 @@ const qn = ({
|
|
|
1321
1795
|
],
|
|
1322
1796
|
[t, e]
|
|
1323
1797
|
);
|
|
1324
|
-
return /* @__PURE__ */
|
|
1798
|
+
return /* @__PURE__ */ s(ut, { initialPanelId: 0, panels: r });
|
|
1325
1799
|
}
|
|
1326
|
-
),
|
|
1800
|
+
), Oi = re(
|
|
1327
1801
|
({ item: e }) => {
|
|
1328
|
-
const [t,
|
|
1329
|
-
return /* @__PURE__ */
|
|
1330
|
-
|
|
1802
|
+
const [t, r] = z(!1), i = $(() => r(!t), [t]), a = $(() => r(!1), []);
|
|
1803
|
+
return /* @__PURE__ */ s(
|
|
1804
|
+
xe,
|
|
1331
1805
|
{
|
|
1332
|
-
button: /* @__PURE__ */
|
|
1333
|
-
|
|
1806
|
+
button: /* @__PURE__ */ s(
|
|
1807
|
+
W,
|
|
1334
1808
|
{
|
|
1335
1809
|
title: "More options",
|
|
1336
1810
|
"aria-label": "More options",
|
|
1337
|
-
iconType:
|
|
1811
|
+
iconType: Qt,
|
|
1338
1812
|
size: "s",
|
|
1339
1813
|
color: "text",
|
|
1340
1814
|
onClick: i
|
|
@@ -1344,8 +1818,8 @@ const qn = ({
|
|
|
1344
1818
|
closePopover: a,
|
|
1345
1819
|
panelPaddingSize: "none",
|
|
1346
1820
|
anchorPosition: "leftCenter",
|
|
1347
|
-
children: /* @__PURE__ */
|
|
1348
|
-
|
|
1821
|
+
children: /* @__PURE__ */ s(
|
|
1822
|
+
xi,
|
|
1349
1823
|
{
|
|
1350
1824
|
item: e,
|
|
1351
1825
|
closePopover: a
|
|
@@ -1354,14 +1828,14 @@ const qn = ({
|
|
|
1354
1828
|
}
|
|
1355
1829
|
);
|
|
1356
1830
|
}
|
|
1357
|
-
),
|
|
1831
|
+
), _i = C(
|
|
1358
1832
|
({ item: e }) => {
|
|
1359
|
-
const t =
|
|
1360
|
-
return /* @__PURE__ */
|
|
1361
|
-
/* @__PURE__ */
|
|
1362
|
-
|
|
1833
|
+
const t = le();
|
|
1834
|
+
return /* @__PURE__ */ M(st, { textOnly: !1, hasActions: !0, align: "right", children: [
|
|
1835
|
+
/* @__PURE__ */ s(
|
|
1836
|
+
Q,
|
|
1363
1837
|
{
|
|
1364
|
-
iconType:
|
|
1838
|
+
iconType: ln,
|
|
1365
1839
|
size: "s",
|
|
1366
1840
|
onClick: async () => {
|
|
1367
1841
|
e.isCurrent ? await t.setCurrentTime(0) : e.play();
|
|
@@ -1369,41 +1843,41 @@ const qn = ({
|
|
|
1369
1843
|
children: "Play"
|
|
1370
1844
|
}
|
|
1371
1845
|
),
|
|
1372
|
-
/* @__PURE__ */
|
|
1373
|
-
|
|
1846
|
+
/* @__PURE__ */ s(
|
|
1847
|
+
Q,
|
|
1374
1848
|
{
|
|
1375
|
-
iconType:
|
|
1849
|
+
iconType: ft,
|
|
1376
1850
|
size: "s",
|
|
1377
1851
|
onClick: e.remove,
|
|
1378
1852
|
children: "Remove"
|
|
1379
1853
|
}
|
|
1380
1854
|
),
|
|
1381
|
-
/* @__PURE__ */
|
|
1855
|
+
/* @__PURE__ */ s(Oi, { item: e })
|
|
1382
1856
|
] });
|
|
1383
1857
|
}
|
|
1384
|
-
),
|
|
1858
|
+
), ki = C(
|
|
1385
1859
|
({ item: e }) => {
|
|
1386
|
-
const t =
|
|
1387
|
-
return /* @__PURE__ */
|
|
1388
|
-
/* @__PURE__ */
|
|
1389
|
-
|
|
1860
|
+
const t = le();
|
|
1861
|
+
return /* @__PURE__ */ M(tn, { isSelected: e.isCurrent, children: [
|
|
1862
|
+
/* @__PURE__ */ s(Zr, { children: /* @__PURE__ */ s(
|
|
1863
|
+
Ht,
|
|
1390
1864
|
{
|
|
1391
1865
|
id: e.id.toString(),
|
|
1392
1866
|
checked: e.isSelected,
|
|
1393
1867
|
onChange: e.toggleSelected
|
|
1394
1868
|
}
|
|
1395
1869
|
) }),
|
|
1396
|
-
/* @__PURE__ */
|
|
1870
|
+
/* @__PURE__ */ s(st, { textOnly: !1, children: /* @__PURE__ */ s(
|
|
1397
1871
|
"img",
|
|
1398
1872
|
{
|
|
1399
|
-
src:
|
|
1873
|
+
src: ur[e.type],
|
|
1400
1874
|
width: 16,
|
|
1401
1875
|
height: 16,
|
|
1402
1876
|
alt: e.type
|
|
1403
1877
|
}
|
|
1404
1878
|
) }),
|
|
1405
|
-
/* @__PURE__ */
|
|
1406
|
-
|
|
1879
|
+
/* @__PURE__ */ s(st, { children: /* @__PURE__ */ s(
|
|
1880
|
+
en,
|
|
1407
1881
|
{
|
|
1408
1882
|
href: e.url,
|
|
1409
1883
|
target: "_blank",
|
|
@@ -1412,51 +1886,51 @@ const qn = ({
|
|
|
1412
1886
|
children: e.title
|
|
1413
1887
|
}
|
|
1414
1888
|
) }),
|
|
1415
|
-
/* @__PURE__ */
|
|
1889
|
+
/* @__PURE__ */ s(_i, { item: e })
|
|
1416
1890
|
] }, e.id);
|
|
1417
1891
|
}
|
|
1418
|
-
),
|
|
1419
|
-
({ playQueueStore: e }) => /* @__PURE__ */
|
|
1420
|
-
|
|
1892
|
+
), Ai = C(
|
|
1893
|
+
({ playQueueStore: e }) => /* @__PURE__ */ s(
|
|
1894
|
+
On,
|
|
1421
1895
|
{
|
|
1422
1896
|
tag: "tbody",
|
|
1423
1897
|
list: e.items,
|
|
1424
1898
|
setList: (t) => e.setItems(t),
|
|
1425
|
-
children: e.items.map((t) => /* @__PURE__ */
|
|
1899
|
+
children: e.items.map((t) => /* @__PURE__ */ s(ki, { item: t }, t.id))
|
|
1426
1900
|
}
|
|
1427
1901
|
)
|
|
1428
|
-
),
|
|
1429
|
-
({ playQueueStore: e }) => /* @__PURE__ */
|
|
1430
|
-
/* @__PURE__ */
|
|
1431
|
-
/* @__PURE__ */
|
|
1902
|
+
), Di = C(
|
|
1903
|
+
({ playQueueStore: e }) => /* @__PURE__ */ M(rn, { children: [
|
|
1904
|
+
/* @__PURE__ */ s(Ii, { playQueueStore: e }),
|
|
1905
|
+
/* @__PURE__ */ s(Ai, { playQueueStore: e })
|
|
1432
1906
|
] })
|
|
1433
1907
|
);
|
|
1434
|
-
function
|
|
1908
|
+
function Mi(e) {
|
|
1435
1909
|
return e !== null && typeof e == "object" && "title" in e && typeof e.title == "string";
|
|
1436
1910
|
}
|
|
1437
|
-
const
|
|
1438
|
-
({ playQueueStore: e }) => /* @__PURE__ */
|
|
1439
|
-
|
|
1911
|
+
const Fi = C(
|
|
1912
|
+
({ playQueueStore: e }) => /* @__PURE__ */ s(
|
|
1913
|
+
Q,
|
|
1440
1914
|
{
|
|
1441
|
-
iconType:
|
|
1915
|
+
iconType: Te,
|
|
1442
1916
|
onClick: e.addSelectedItems,
|
|
1443
1917
|
disabled: e.isEmpty || e.selectedItems.length === 0,
|
|
1444
1918
|
children: "Add to play queue"
|
|
1445
1919
|
}
|
|
1446
1920
|
)
|
|
1447
1921
|
);
|
|
1448
|
-
|
|
1922
|
+
C(
|
|
1449
1923
|
({ playQueueStore: e }) => {
|
|
1450
|
-
const [t,
|
|
1451
|
-
return /* @__PURE__ */
|
|
1452
|
-
t && /* @__PURE__ */
|
|
1453
|
-
|
|
1924
|
+
const [t, r] = z(!1);
|
|
1925
|
+
return /* @__PURE__ */ M(Ye, { children: [
|
|
1926
|
+
t && /* @__PURE__ */ s(
|
|
1927
|
+
an,
|
|
1454
1928
|
{
|
|
1455
1929
|
type: "push",
|
|
1456
1930
|
size: "s",
|
|
1457
|
-
onClose: () =>
|
|
1458
|
-
children: /* @__PURE__ */
|
|
1459
|
-
|
|
1931
|
+
onClose: () => r(!1),
|
|
1932
|
+
children: /* @__PURE__ */ s("div", { style: { blockSize: "100%" }, children: /* @__PURE__ */ s(
|
|
1933
|
+
nn,
|
|
1460
1934
|
{
|
|
1461
1935
|
language: "json",
|
|
1462
1936
|
overflowHeight: "100%",
|
|
@@ -1471,36 +1945,37 @@ P(
|
|
|
1471
1945
|
) })
|
|
1472
1946
|
}
|
|
1473
1947
|
),
|
|
1474
|
-
/* @__PURE__ */
|
|
1475
|
-
|
|
1948
|
+
/* @__PURE__ */ s(
|
|
1949
|
+
Q,
|
|
1476
1950
|
{
|
|
1477
|
-
onClick: () =>
|
|
1478
|
-
iconType:
|
|
1951
|
+
onClick: () => r((i) => !i),
|
|
1952
|
+
iconType: dn,
|
|
1479
1953
|
children: "Developer tools"
|
|
1480
1954
|
}
|
|
1481
1955
|
)
|
|
1482
1956
|
] });
|
|
1483
1957
|
}
|
|
1484
1958
|
);
|
|
1485
|
-
const
|
|
1959
|
+
const Ni = C(
|
|
1486
1960
|
({ playQueueStore: e }) => {
|
|
1487
|
-
const { euiTheme: t } =
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1961
|
+
const { euiTheme: t } = Wt(), r = $(async () => {
|
|
1962
|
+
}, []), i = $(
|
|
1963
|
+
async (a) => {
|
|
1964
|
+
const o = Tn(a.url);
|
|
1965
|
+
if (o !== void 0) {
|
|
1966
|
+
const c = o.extractVideoId(a.url);
|
|
1967
|
+
if (c !== void 0) {
|
|
1968
|
+
const p = await (await fetch(
|
|
1494
1969
|
`https://noembed.com/embed?url=${encodeURIComponent(
|
|
1495
|
-
|
|
1970
|
+
a.url
|
|
1496
1971
|
)}`
|
|
1497
1972
|
)).json();
|
|
1498
1973
|
await e.addItems([
|
|
1499
1974
|
e.createItem({
|
|
1500
|
-
url:
|
|
1501
|
-
type:
|
|
1502
|
-
videoId:
|
|
1503
|
-
title:
|
|
1975
|
+
url: a.url,
|
|
1976
|
+
type: o.type,
|
|
1977
|
+
videoId: c,
|
|
1978
|
+
title: a.title || (Mi(p) ? p.title : c)
|
|
1504
1979
|
})
|
|
1505
1980
|
]);
|
|
1506
1981
|
}
|
|
@@ -1508,9 +1983,9 @@ const ri = P(
|
|
|
1508
1983
|
},
|
|
1509
1984
|
[e]
|
|
1510
1985
|
);
|
|
1511
|
-
return /* @__PURE__ */
|
|
1512
|
-
/* @__PURE__ */
|
|
1513
|
-
|
|
1986
|
+
return /* @__PURE__ */ M(Ye, { children: [
|
|
1987
|
+
/* @__PURE__ */ M(
|
|
1988
|
+
oe,
|
|
1514
1989
|
{
|
|
1515
1990
|
alignItems: "center",
|
|
1516
1991
|
gutterSize: "m",
|
|
@@ -1521,43 +1996,50 @@ const ri = P(
|
|
|
1521
1996
|
background: t.colors.backgroundBasePlain
|
|
1522
1997
|
},
|
|
1523
1998
|
children: [
|
|
1524
|
-
/* @__PURE__ */
|
|
1525
|
-
|
|
1999
|
+
/* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(
|
|
2000
|
+
Q,
|
|
1526
2001
|
{
|
|
1527
2002
|
disabled: e.isEmpty || e.selectedItems.length === 0,
|
|
1528
2003
|
onClick: e.playSelectedItemsNext,
|
|
1529
2004
|
children: "Play next"
|
|
1530
2005
|
}
|
|
1531
2006
|
) }),
|
|
1532
|
-
/* @__PURE__ */
|
|
1533
|
-
/* @__PURE__ */
|
|
1534
|
-
|
|
2007
|
+
/* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(Fi, { playQueueStore: e }) }),
|
|
2008
|
+
/* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(
|
|
2009
|
+
Ti,
|
|
2010
|
+
{
|
|
2011
|
+
disabled: !ri.mediaPlayer.enablePlaylists,
|
|
2012
|
+
onAddToPlaylist: r
|
|
2013
|
+
}
|
|
2014
|
+
) }),
|
|
2015
|
+
/* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(
|
|
2016
|
+
Q,
|
|
1535
2017
|
{
|
|
1536
|
-
iconType:
|
|
2018
|
+
iconType: ft,
|
|
1537
2019
|
onClick: e.removeSelectedItems,
|
|
1538
2020
|
disabled: e.isEmpty || e.selectedItems.length === 0,
|
|
1539
2021
|
children: "Remove"
|
|
1540
2022
|
}
|
|
1541
2023
|
) }),
|
|
1542
|
-
/* @__PURE__ */
|
|
1543
|
-
|
|
2024
|
+
/* @__PURE__ */ s(J, { grow: !1, children: /* @__PURE__ */ s(
|
|
2025
|
+
Q,
|
|
1544
2026
|
{
|
|
1545
|
-
iconType:
|
|
2027
|
+
iconType: fn,
|
|
1546
2028
|
onClick: e.clear,
|
|
1547
2029
|
disabled: e.isEmpty,
|
|
1548
2030
|
children: "Clear"
|
|
1549
2031
|
}
|
|
1550
2032
|
) }),
|
|
1551
|
-
/* @__PURE__ */
|
|
1552
|
-
/* @__PURE__ */
|
|
2033
|
+
/* @__PURE__ */ s(J, { grow: !0 }),
|
|
2034
|
+
/* @__PURE__ */ M(J, { grow: !1, children: [
|
|
1553
2035
|
!1,
|
|
1554
|
-
/* @__PURE__ */
|
|
2036
|
+
/* @__PURE__ */ s(qt, { onSave: i })
|
|
1555
2037
|
] })
|
|
1556
2038
|
]
|
|
1557
2039
|
}
|
|
1558
2040
|
),
|
|
1559
|
-
/* @__PURE__ */
|
|
1560
|
-
|
|
2041
|
+
/* @__PURE__ */ s(
|
|
2042
|
+
Gt,
|
|
1561
2043
|
{
|
|
1562
2044
|
size: "l",
|
|
1563
2045
|
style: {
|
|
@@ -1568,30 +2050,30 @@ const ri = P(
|
|
|
1568
2050
|
}
|
|
1569
2051
|
}
|
|
1570
2052
|
),
|
|
1571
|
-
e.isEmpty ? /* @__PURE__ */
|
|
1572
|
-
|
|
2053
|
+
e.isEmpty ? /* @__PURE__ */ s(
|
|
2054
|
+
sn,
|
|
1573
2055
|
{
|
|
1574
|
-
title: /* @__PURE__ */
|
|
1575
|
-
body: /* @__PURE__ */
|
|
1576
|
-
actions: /* @__PURE__ */
|
|
2056
|
+
title: /* @__PURE__ */ s("h2", { children: "We couldn't find any videos" }),
|
|
2057
|
+
body: /* @__PURE__ */ s("p", { children: "Your video library doesn't contain any video content." }),
|
|
2058
|
+
actions: /* @__PURE__ */ s(qt, { onSave: i })
|
|
1577
2059
|
}
|
|
1578
|
-
) : /* @__PURE__ */
|
|
2060
|
+
) : /* @__PURE__ */ s(Di, { playQueueStore: e })
|
|
1579
2061
|
] });
|
|
1580
2062
|
}
|
|
1581
|
-
),
|
|
2063
|
+
), dr = Ut(void 0), fr = () => ct(dr), it = new _n({
|
|
1582
2064
|
coerceTypes: !0
|
|
1583
2065
|
});
|
|
1584
|
-
function
|
|
1585
|
-
let
|
|
1586
|
-
if (
|
|
2066
|
+
function $i(e, t) {
|
|
2067
|
+
let r;
|
|
2068
|
+
if (r = it.getSchema(t), r === void 0 && (it.addSchema(e, t), r = it.getSchema(t)), r === void 0 || r.schema !== e)
|
|
1587
2069
|
throw new Error(
|
|
1588
2070
|
`Invalid schema. Expected: '${JSON.stringify(
|
|
1589
2071
|
e
|
|
1590
|
-
)}', but got '${JSON.stringify(
|
|
2072
|
+
)}', but got '${JSON.stringify(r?.schema)}'.`
|
|
1591
2073
|
);
|
|
1592
|
-
return
|
|
2074
|
+
return r;
|
|
1593
2075
|
}
|
|
1594
|
-
const
|
|
2076
|
+
const ji = {
|
|
1595
2077
|
type: "object",
|
|
1596
2078
|
properties: {
|
|
1597
2079
|
url: {
|
|
@@ -1608,9 +2090,7 @@ const ii = {
|
|
|
1608
2090
|
}
|
|
1609
2091
|
},
|
|
1610
2092
|
required: ["url", "type", "videoId", "title"]
|
|
1611
|
-
}
|
|
1612
|
-
var O = /* @__PURE__ */ ((e) => (e.Off = "Off", e.All = "All", e.One = "One", e))(O || {});
|
|
1613
|
-
const oi = {
|
|
2093
|
+
}, zi = {
|
|
1614
2094
|
type: "object",
|
|
1615
2095
|
properties: {
|
|
1616
2096
|
version: {
|
|
@@ -1619,7 +2099,7 @@ const oi = {
|
|
|
1619
2099
|
},
|
|
1620
2100
|
repeat: {
|
|
1621
2101
|
type: "string",
|
|
1622
|
-
enum: Object.values(
|
|
2102
|
+
enum: Object.values(N),
|
|
1623
2103
|
nullable: !0
|
|
1624
2104
|
},
|
|
1625
2105
|
shuffle: {
|
|
@@ -1629,7 +2109,7 @@ const oi = {
|
|
|
1629
2109
|
items: {
|
|
1630
2110
|
type: "array",
|
|
1631
2111
|
nullable: !0,
|
|
1632
|
-
items:
|
|
2112
|
+
items: ji
|
|
1633
2113
|
},
|
|
1634
2114
|
currentIndex: {
|
|
1635
2115
|
type: "integer",
|
|
@@ -1637,38 +2117,38 @@ const oi = {
|
|
|
1637
2117
|
}
|
|
1638
2118
|
}
|
|
1639
2119
|
};
|
|
1640
|
-
class
|
|
1641
|
-
constructor(t,
|
|
1642
|
-
this.observableStateProvider = t, this.playQueueStore =
|
|
1643
|
-
isSelected:
|
|
1644
|
-
isCurrent:
|
|
1645
|
-
index:
|
|
1646
|
-
isFirst:
|
|
1647
|
-
isLast:
|
|
1648
|
-
canMoveToTop:
|
|
1649
|
-
canMoveToBottom:
|
|
1650
|
-
canRemoveToTop:
|
|
1651
|
-
canRemoveOthers:
|
|
1652
|
-
unselect:
|
|
1653
|
-
toggleSelected:
|
|
1654
|
-
play:
|
|
1655
|
-
remove:
|
|
1656
|
-
playFirst:
|
|
1657
|
-
playNext:
|
|
1658
|
-
addToPlayQueue:
|
|
1659
|
-
moveToTop:
|
|
1660
|
-
moveToBottom:
|
|
1661
|
-
removeToTop:
|
|
1662
|
-
removeOthers:
|
|
2120
|
+
class Le {
|
|
2121
|
+
constructor(t, r, i) {
|
|
2122
|
+
this.observableStateProvider = t, this.playQueueStore = r, this.dto = i, this.id = Le.nextId++, t.makeObservable(this, {
|
|
2123
|
+
isSelected: X,
|
|
2124
|
+
isCurrent: _,
|
|
2125
|
+
index: _,
|
|
2126
|
+
isFirst: _,
|
|
2127
|
+
isLast: _,
|
|
2128
|
+
canMoveToTop: _,
|
|
2129
|
+
canMoveToBottom: _,
|
|
2130
|
+
canRemoveToTop: _,
|
|
2131
|
+
canRemoveOthers: _,
|
|
2132
|
+
unselect: v,
|
|
2133
|
+
toggleSelected: v.bound,
|
|
2134
|
+
play: v,
|
|
2135
|
+
remove: v.bound,
|
|
2136
|
+
playFirst: v.bound,
|
|
2137
|
+
playNext: v.bound,
|
|
2138
|
+
addToPlayQueue: v.bound,
|
|
2139
|
+
moveToTop: v.bound,
|
|
2140
|
+
moveToBottom: v.bound,
|
|
2141
|
+
removeToTop: v.bound,
|
|
2142
|
+
removeOthers: v.bound
|
|
1663
2143
|
});
|
|
1664
2144
|
}
|
|
1665
2145
|
static nextId = 1;
|
|
1666
2146
|
id;
|
|
1667
2147
|
isSelected = !1;
|
|
1668
|
-
static fromDto(t,
|
|
1669
|
-
return new
|
|
2148
|
+
static fromDto(t, r, i) {
|
|
2149
|
+
return new Le(
|
|
1670
2150
|
t,
|
|
1671
|
-
|
|
2151
|
+
r,
|
|
1672
2152
|
i
|
|
1673
2153
|
);
|
|
1674
2154
|
}
|
|
@@ -1748,62 +2228,63 @@ class $e {
|
|
|
1748
2228
|
return this.playQueueStore.removeOtherItems(this);
|
|
1749
2229
|
}
|
|
1750
2230
|
}
|
|
1751
|
-
class
|
|
2231
|
+
class qi {
|
|
1752
2232
|
constructor(t) {
|
|
1753
2233
|
this.observableStateProvider = t, t.makeObservable(this, {
|
|
1754
|
-
interacted:
|
|
1755
|
-
items:
|
|
1756
|
-
currentId:
|
|
1757
|
-
repeat:
|
|
1758
|
-
shuffle:
|
|
1759
|
-
localStorageState:
|
|
1760
|
-
isEmpty:
|
|
1761
|
-
currentItem:
|
|
1762
|
-
canPlay:
|
|
1763
|
-
canPause:
|
|
1764
|
-
hasMultipleItems:
|
|
1765
|
-
currentIndex:
|
|
1766
|
-
hasPreviousItem:
|
|
1767
|
-
hasNextItem:
|
|
1768
|
-
isLastItem:
|
|
1769
|
-
selectedItems:
|
|
1770
|
-
allItemsSelected:
|
|
1771
|
-
selectedItemsOrAllItems:
|
|
1772
|
-
setItems:
|
|
1773
|
-
interact:
|
|
1774
|
-
clear:
|
|
1775
|
-
unselectAll:
|
|
1776
|
-
setCurrentItem:
|
|
1777
|
-
setNextItems:
|
|
1778
|
-
clearAndSetItems:
|
|
1779
|
-
playNext:
|
|
1780
|
-
playSelectedItemsNext:
|
|
1781
|
-
addItems:
|
|
1782
|
-
addSelectedItems:
|
|
1783
|
-
playFirst:
|
|
1784
|
-
moveItem:
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
2234
|
+
interacted: X,
|
|
2235
|
+
items: X,
|
|
2236
|
+
currentId: X,
|
|
2237
|
+
repeat: X,
|
|
2238
|
+
shuffle: X,
|
|
2239
|
+
localStorageState: _.struct,
|
|
2240
|
+
isEmpty: _,
|
|
2241
|
+
currentItem: _,
|
|
2242
|
+
canPlay: _,
|
|
2243
|
+
canPause: _,
|
|
2244
|
+
hasMultipleItems: _,
|
|
2245
|
+
currentIndex: _,
|
|
2246
|
+
hasPreviousItem: _,
|
|
2247
|
+
hasNextItem: _,
|
|
2248
|
+
isLastItem: _,
|
|
2249
|
+
selectedItems: _,
|
|
2250
|
+
allItemsSelected: _,
|
|
2251
|
+
selectedItemsOrAllItems: _,
|
|
2252
|
+
setItems: v,
|
|
2253
|
+
interact: v,
|
|
2254
|
+
clear: v.bound,
|
|
2255
|
+
unselectAll: v,
|
|
2256
|
+
setCurrentItem: v,
|
|
2257
|
+
setNextItems: v,
|
|
2258
|
+
clearAndSetItems: v,
|
|
2259
|
+
playNext: v,
|
|
2260
|
+
playSelectedItemsNext: v.bound,
|
|
2261
|
+
addItems: v,
|
|
2262
|
+
addSelectedItems: v.bound,
|
|
2263
|
+
playFirst: v,
|
|
2264
|
+
moveItem: v,
|
|
2265
|
+
goToFirst: v,
|
|
2266
|
+
removeItems: v,
|
|
2267
|
+
removeSelectedItems: v.bound,
|
|
2268
|
+
removeOtherItems: v,
|
|
2269
|
+
removeItemsAbove: v,
|
|
2270
|
+
toggleRepeat: v.bound,
|
|
2271
|
+
toggleShuffle: v.bound,
|
|
2272
|
+
previous: v,
|
|
2273
|
+
next: v.bound
|
|
1794
2274
|
});
|
|
1795
2275
|
}
|
|
1796
2276
|
interacted = !1;
|
|
1797
2277
|
items = [];
|
|
1798
2278
|
currentId;
|
|
1799
|
-
repeat =
|
|
2279
|
+
repeat = N.Off;
|
|
1800
2280
|
shuffle = !1;
|
|
1801
2281
|
createItem(t) {
|
|
1802
|
-
return
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
t
|
|
1806
|
-
|
|
2282
|
+
return Le.fromDto(this.observableStateProvider, this, {
|
|
2283
|
+
url: t.url,
|
|
2284
|
+
type: t.type,
|
|
2285
|
+
videoId: t.videoId,
|
|
2286
|
+
title: t.title
|
|
2287
|
+
});
|
|
1807
2288
|
}
|
|
1808
2289
|
get localStorageState() {
|
|
1809
2290
|
return {
|
|
@@ -1815,11 +2296,11 @@ class ai {
|
|
|
1815
2296
|
};
|
|
1816
2297
|
}
|
|
1817
2298
|
set localStorageState(t) {
|
|
1818
|
-
this.repeat = t.repeat ??
|
|
2299
|
+
this.repeat = t.repeat ?? N.Off, this.shuffle = t.shuffle ?? !1, this.items = t.items?.map((r) => this.createItem(r)) ?? [], this.currentIndex = t.currentIndex;
|
|
1819
2300
|
}
|
|
1820
2301
|
validateLocalStorageState(t) {
|
|
1821
|
-
return
|
|
1822
|
-
|
|
2302
|
+
return $i(
|
|
2303
|
+
zi,
|
|
1823
2304
|
"PlayQueueDto"
|
|
1824
2305
|
)(t);
|
|
1825
2306
|
}
|
|
@@ -1860,8 +2341,8 @@ class ai {
|
|
|
1860
2341
|
return this.selectedItems.length === this.items.length;
|
|
1861
2342
|
}
|
|
1862
2343
|
set allItemsSelected(t) {
|
|
1863
|
-
for (const
|
|
1864
|
-
|
|
2344
|
+
for (const r of this.items)
|
|
2345
|
+
r.isSelected = t;
|
|
1865
2346
|
}
|
|
1866
2347
|
get selectedItemsOrAllItems() {
|
|
1867
2348
|
return this.selectedItems.length > 0 ? this.selectedItems : this.items;
|
|
@@ -1917,47 +2398,50 @@ class ai {
|
|
|
1917
2398
|
this.clearAndSetItems(t);
|
|
1918
2399
|
return;
|
|
1919
2400
|
}
|
|
1920
|
-
const { currentIndex:
|
|
1921
|
-
|
|
2401
|
+
const { currentIndex: r } = this;
|
|
2402
|
+
r !== void 0 && (this.interact(), this.items.splice(r, 0, ...t), this.currentIndex = r);
|
|
1922
2403
|
}
|
|
1923
|
-
moveItem(t,
|
|
2404
|
+
moveItem(t, r) {
|
|
1924
2405
|
const i = this.items.splice(this.items.indexOf(t), 1)[0];
|
|
1925
|
-
this.items.splice(
|
|
2406
|
+
this.items.splice(r, 0, i);
|
|
2407
|
+
}
|
|
2408
|
+
async goToFirst() {
|
|
2409
|
+
this.currentIndex !== void 0 && (this.currentIndex = 0);
|
|
1926
2410
|
}
|
|
1927
2411
|
async removeItems(t) {
|
|
1928
|
-
const { currentItem:
|
|
1929
|
-
|
|
2412
|
+
const { currentItem: r } = this;
|
|
2413
|
+
Ot(this.items, ...t.filter((o) => o !== r));
|
|
1930
2414
|
const { currentIndex: i, isLastItem: a } = this;
|
|
1931
|
-
|
|
2415
|
+
Ot(
|
|
1932
2416
|
this.items,
|
|
1933
|
-
t.find((
|
|
1934
|
-
), this.currentItem !==
|
|
2417
|
+
t.find((o) => o === r)
|
|
2418
|
+
), this.currentItem !== r && (this.interact(), a ? await this.goToFirst() : this.currentIndex = i);
|
|
1935
2419
|
}
|
|
1936
2420
|
async removeSelectedItems() {
|
|
1937
2421
|
await this.removeItems(this.selectedItemsOrAllItems), this.unselectAll();
|
|
1938
2422
|
}
|
|
1939
2423
|
async removeOtherItems(t) {
|
|
1940
|
-
const
|
|
2424
|
+
const r = t.id;
|
|
1941
2425
|
return this.removeItems(
|
|
1942
|
-
this.items.filter((i) => i.id !==
|
|
2426
|
+
this.items.filter((i) => i.id !== r)
|
|
1943
2427
|
);
|
|
1944
2428
|
}
|
|
1945
2429
|
async removeItemsAbove(t) {
|
|
1946
|
-
const
|
|
2430
|
+
const r = this.items.indexOf(t);
|
|
1947
2431
|
return this.removeItems(
|
|
1948
|
-
this.items.filter((i, a) => a <
|
|
2432
|
+
this.items.filter((i, a) => a < r)
|
|
1949
2433
|
);
|
|
1950
2434
|
}
|
|
1951
2435
|
toggleRepeat() {
|
|
1952
2436
|
switch (this.repeat) {
|
|
1953
|
-
case
|
|
1954
|
-
this.repeat =
|
|
2437
|
+
case N.Off:
|
|
2438
|
+
this.repeat = N.All;
|
|
1955
2439
|
break;
|
|
1956
|
-
case
|
|
1957
|
-
this.repeat =
|
|
2440
|
+
case N.All:
|
|
2441
|
+
this.repeat = N.One;
|
|
1958
2442
|
break;
|
|
1959
|
-
case
|
|
1960
|
-
this.repeat =
|
|
2443
|
+
case N.One:
|
|
2444
|
+
this.repeat = N.Off;
|
|
1961
2445
|
break;
|
|
1962
2446
|
}
|
|
1963
2447
|
}
|
|
@@ -1970,266 +2454,207 @@ class ai {
|
|
|
1970
2454
|
async next() {
|
|
1971
2455
|
this.currentIndex !== void 0 && this.hasNextItem && (this.interact(), this.currentIndex++);
|
|
1972
2456
|
}
|
|
1973
|
-
async goToFirst() {
|
|
1974
|
-
this.currentIndex !== void 0 && (this.currentIndex = 0);
|
|
1975
|
-
}
|
|
1976
2457
|
}
|
|
1977
|
-
const
|
|
2458
|
+
const Ea = ({
|
|
1978
2459
|
children: e
|
|
1979
2460
|
}) => {
|
|
1980
|
-
const [t] =
|
|
1981
|
-
() => new
|
|
1982
|
-
),
|
|
1983
|
-
return
|
|
2461
|
+
const [t] = z(
|
|
2462
|
+
() => new qi(new er())
|
|
2463
|
+
), r = le();
|
|
2464
|
+
return Vt(() => $r(
|
|
1984
2465
|
() => t.currentItem,
|
|
1985
2466
|
async (i, a) => {
|
|
1986
|
-
i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await
|
|
2467
|
+
i === void 0 || a === void 0 || i.type === a.type && i.videoId === a.videoId && await r.setCurrentTime(0);
|
|
1987
2468
|
}
|
|
1988
|
-
), [t,
|
|
1989
|
-
},
|
|
2469
|
+
), [t, r]), /* @__PURE__ */ s(dr.Provider, { value: t, children: e });
|
|
2470
|
+
}, Li = ({
|
|
1990
2471
|
breadcrumbs: e,
|
|
1991
2472
|
tabs: t,
|
|
1992
|
-
...
|
|
2473
|
+
...r
|
|
1993
2474
|
}) => {
|
|
1994
|
-
const i =
|
|
1995
|
-
return /* @__PURE__ */
|
|
1996
|
-
|
|
2475
|
+
const i = kn();
|
|
2476
|
+
return /* @__PURE__ */ s(
|
|
2477
|
+
dt.Header,
|
|
1997
2478
|
{
|
|
1998
|
-
...
|
|
1999
|
-
breadcrumbs: e?.map(({ linkProps: a, ...
|
|
2000
|
-
...
|
|
2479
|
+
...r,
|
|
2480
|
+
breadcrumbs: e?.map(({ linkProps: a, ...o }) => ({
|
|
2481
|
+
...o,
|
|
2001
2482
|
href: a === void 0 ? void 0 : i.buildLocation(
|
|
2002
2483
|
a
|
|
2003
2484
|
/* FIXME */
|
|
2004
2485
|
).href,
|
|
2005
|
-
onClick: a === void 0 ? void 0 : async (
|
|
2006
|
-
|
|
2486
|
+
onClick: a === void 0 ? void 0 : async (c) => {
|
|
2487
|
+
c.preventDefault(), await i.navigate(a);
|
|
2007
2488
|
}
|
|
2008
2489
|
})),
|
|
2009
|
-
tabs: t?.map(({ linkProps: a, ...
|
|
2010
|
-
...
|
|
2490
|
+
tabs: t?.map(({ linkProps: a, ...o }) => ({
|
|
2491
|
+
...o,
|
|
2011
2492
|
href: a === void 0 ? void 0 : i.buildLocation(
|
|
2012
2493
|
a
|
|
2013
2494
|
/* FIXME */
|
|
2014
2495
|
).href,
|
|
2015
|
-
onClick: a === void 0 ? void 0 : async (
|
|
2016
|
-
|
|
2496
|
+
onClick: a === void 0 ? void 0 : async (c) => {
|
|
2497
|
+
c.preventDefault(), await i.navigate(a);
|
|
2017
2498
|
}
|
|
2018
2499
|
}))
|
|
2019
2500
|
}
|
|
2020
2501
|
);
|
|
2021
|
-
},
|
|
2022
|
-
const e =
|
|
2023
|
-
return /* @__PURE__ */
|
|
2024
|
-
/* @__PURE__ */
|
|
2025
|
-
|
|
2502
|
+
}, Ra = () => {
|
|
2503
|
+
const e = fr();
|
|
2504
|
+
return /* @__PURE__ */ M(Ye, { children: [
|
|
2505
|
+
/* @__PURE__ */ s(
|
|
2506
|
+
Li,
|
|
2026
2507
|
{
|
|
2027
2508
|
pageTitle: "Play queue",
|
|
2028
2509
|
rightSideItems: []
|
|
2029
2510
|
}
|
|
2030
2511
|
),
|
|
2031
|
-
/* @__PURE__ */
|
|
2512
|
+
/* @__PURE__ */ s(dt.Section, { children: /* @__PURE__ */ s(Ni, { playQueueStore: e }) })
|
|
2032
2513
|
] });
|
|
2033
|
-
},
|
|
2034
|
-
({
|
|
2035
|
-
|
|
2514
|
+
}, Vi = C(
|
|
2515
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2516
|
+
W,
|
|
2036
2517
|
{
|
|
2037
2518
|
title: `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2038
2519
|
"aria-label": `Shuffle: ${e.shuffle ? "On" : "Off"}`,
|
|
2039
|
-
iconType: e.shuffle ?
|
|
2520
|
+
iconType: e.shuffle ? pn : yn,
|
|
2040
2521
|
size: "s",
|
|
2041
2522
|
iconSize: "l",
|
|
2042
2523
|
onClick: e.toggleShuffle,
|
|
2043
|
-
disabled: !
|
|
2524
|
+
disabled: !e.canToggleShuffle
|
|
2044
2525
|
}
|
|
2045
2526
|
)
|
|
2046
|
-
),
|
|
2047
|
-
({
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
onClick: () => n.play(),
|
|
2115
|
-
disabled: !t.canPlay || !e.controller.supports("play")
|
|
2116
|
-
}
|
|
2117
|
-
);
|
|
2118
|
-
}
|
|
2119
|
-
), mi = P(
|
|
2120
|
-
({
|
|
2121
|
-
playerStore: e,
|
|
2122
|
-
playQueueStore: t
|
|
2123
|
-
}) => {
|
|
2124
|
-
const n = U(), i = N(async () => {
|
|
2125
|
-
const a = await n.getCurrentTime();
|
|
2126
|
-
a !== void 0 && await n.setCurrentTime(a + 30);
|
|
2127
|
-
}, [n]);
|
|
2128
|
-
return /* @__PURE__ */ o(
|
|
2129
|
-
q,
|
|
2130
|
-
{
|
|
2131
|
-
title: "Skip forward 30 seconds",
|
|
2132
|
-
"aria-label": "Skip forward 30 seconds",
|
|
2133
|
-
iconType: Ht,
|
|
2134
|
-
size: "s",
|
|
2135
|
-
iconSize: "l",
|
|
2136
|
-
onClick: i,
|
|
2137
|
-
disabled: t.isEmpty || !e.controller.supports("setCurrentTime")
|
|
2138
|
-
}
|
|
2139
|
-
);
|
|
2140
|
-
}
|
|
2141
|
-
), hi = P(
|
|
2142
|
-
({ playQueueStore: e }) => /* @__PURE__ */ o(
|
|
2143
|
-
q,
|
|
2527
|
+
), Ui = C(
|
|
2528
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2529
|
+
W,
|
|
2530
|
+
{
|
|
2531
|
+
title: "Previous",
|
|
2532
|
+
"aria-label": "Previous",
|
|
2533
|
+
iconType: hn,
|
|
2534
|
+
size: "s",
|
|
2535
|
+
iconSize: "l",
|
|
2536
|
+
onClick: e.previous,
|
|
2537
|
+
disabled: !e.canPrevious
|
|
2538
|
+
}
|
|
2539
|
+
)
|
|
2540
|
+
), Yi = C(
|
|
2541
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2542
|
+
W,
|
|
2543
|
+
{
|
|
2544
|
+
title: "Skip back 10 seconds",
|
|
2545
|
+
"aria-label": "Skip back 10 seconds",
|
|
2546
|
+
iconType: Kt,
|
|
2547
|
+
size: "s",
|
|
2548
|
+
iconSize: "l",
|
|
2549
|
+
onClick: e.skipBack10,
|
|
2550
|
+
disabled: !e.canSkipBack10
|
|
2551
|
+
}
|
|
2552
|
+
)
|
|
2553
|
+
), Wi = C(
|
|
2554
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2555
|
+
W,
|
|
2556
|
+
{
|
|
2557
|
+
title: "Pause",
|
|
2558
|
+
"aria-label": "Pause",
|
|
2559
|
+
iconType: mn,
|
|
2560
|
+
size: "s",
|
|
2561
|
+
iconSize: "l",
|
|
2562
|
+
onClick: e.pause,
|
|
2563
|
+
disabled: !e.canPause
|
|
2564
|
+
}
|
|
2565
|
+
)
|
|
2566
|
+
), Hi = C(
|
|
2567
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2568
|
+
W,
|
|
2569
|
+
{
|
|
2570
|
+
title: "Play",
|
|
2571
|
+
"aria-label": "Play",
|
|
2572
|
+
iconType: vn,
|
|
2573
|
+
size: "s",
|
|
2574
|
+
iconSize: "l",
|
|
2575
|
+
onClick: e.play,
|
|
2576
|
+
disabled: !e.canPlay
|
|
2577
|
+
}
|
|
2578
|
+
)
|
|
2579
|
+
), Gi = C(
|
|
2580
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2581
|
+
W,
|
|
2582
|
+
{
|
|
2583
|
+
title: "Skip forward 30 seconds",
|
|
2584
|
+
"aria-label": "Skip forward 30 seconds",
|
|
2585
|
+
iconType: Bt,
|
|
2586
|
+
size: "s",
|
|
2587
|
+
iconSize: "l",
|
|
2588
|
+
onClick: e.skipForward30,
|
|
2589
|
+
disabled: !e.canSkipForward30
|
|
2590
|
+
}
|
|
2591
|
+
)
|
|
2592
|
+
), Ji = C(
|
|
2593
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2594
|
+
W,
|
|
2144
2595
|
{
|
|
2145
2596
|
title: "Next",
|
|
2146
2597
|
"aria-label": "Next",
|
|
2147
|
-
iconType:
|
|
2598
|
+
iconType: gn,
|
|
2148
2599
|
size: "s",
|
|
2149
2600
|
iconSize: "l",
|
|
2150
2601
|
onClick: e.next,
|
|
2151
|
-
disabled: !e.
|
|
2602
|
+
disabled: !e.canNext
|
|
2152
2603
|
}
|
|
2153
2604
|
)
|
|
2154
|
-
),
|
|
2155
|
-
[
|
|
2156
|
-
[
|
|
2157
|
-
[
|
|
2158
|
-
},
|
|
2159
|
-
({
|
|
2160
|
-
|
|
2605
|
+
), Qi = {
|
|
2606
|
+
[N.Off]: wn,
|
|
2607
|
+
[N.All]: bn,
|
|
2608
|
+
[N.One]: Pn
|
|
2609
|
+
}, Ki = C(
|
|
2610
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2611
|
+
W,
|
|
2161
2612
|
{
|
|
2162
|
-
title: `Repeat: ${e.repeat ===
|
|
2163
|
-
"aria-label": `Repeat: ${e.repeat ===
|
|
2164
|
-
iconType:
|
|
2613
|
+
title: `Repeat: ${e.repeat === N.All ? "All" : e.repeat === N.One ? "One" : "Off"}`,
|
|
2614
|
+
"aria-label": `Repeat: ${e.repeat === N.All ? "All" : e.repeat === N.One ? "One" : "Off"}`,
|
|
2615
|
+
iconType: Qi[e.repeat],
|
|
2165
2616
|
size: "s",
|
|
2166
2617
|
iconSize: "l",
|
|
2167
|
-
onClick: e.toggleRepeat
|
|
2618
|
+
onClick: e.toggleRepeat,
|
|
2619
|
+
disabled: !e.canToggleRepeat
|
|
2168
2620
|
}
|
|
2169
2621
|
)
|
|
2170
|
-
),
|
|
2171
|
-
({
|
|
2172
|
-
|
|
2173
|
-
playQueueStore: t
|
|
2174
|
-
}) => /* @__PURE__ */ $(
|
|
2175
|
-
se,
|
|
2622
|
+
), Bi = C(
|
|
2623
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ M(
|
|
2624
|
+
oe,
|
|
2176
2625
|
{
|
|
2177
2626
|
responsive: !1,
|
|
2178
2627
|
gutterSize: "s",
|
|
2179
2628
|
justifyContent: "center",
|
|
2180
2629
|
alignItems: "center",
|
|
2181
2630
|
children: [
|
|
2182
|
-
/* @__PURE__ */
|
|
2183
|
-
/* @__PURE__ */
|
|
2184
|
-
/* @__PURE__ */
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
}
|
|
2190
|
-
),
|
|
2191
|
-
e.playing ? /* @__PURE__ */ o(
|
|
2192
|
-
di,
|
|
2193
|
-
{
|
|
2194
|
-
playerStore: e,
|
|
2195
|
-
playQueueStore: t
|
|
2196
|
-
}
|
|
2197
|
-
) : /* @__PURE__ */ o(
|
|
2198
|
-
fi,
|
|
2199
|
-
{
|
|
2200
|
-
playerStore: e,
|
|
2201
|
-
playQueueStore: t
|
|
2202
|
-
}
|
|
2203
|
-
),
|
|
2204
|
-
/* @__PURE__ */ o(
|
|
2205
|
-
mi,
|
|
2206
|
-
{
|
|
2207
|
-
playerStore: e,
|
|
2208
|
-
playQueueStore: t
|
|
2209
|
-
}
|
|
2210
|
-
),
|
|
2211
|
-
/* @__PURE__ */ o(hi, { playQueueStore: t }),
|
|
2212
|
-
/* @__PURE__ */ o(pi, { playQueueStore: t })
|
|
2631
|
+
/* @__PURE__ */ s(Vi, { bottomBarStore: e }),
|
|
2632
|
+
/* @__PURE__ */ s(Ui, { bottomBarStore: e }),
|
|
2633
|
+
/* @__PURE__ */ s(Yi, { bottomBarStore: e }),
|
|
2634
|
+
e.playing ? /* @__PURE__ */ s(Wi, { bottomBarStore: e }) : /* @__PURE__ */ s(Hi, { bottomBarStore: e }),
|
|
2635
|
+
/* @__PURE__ */ s(Gi, { bottomBarStore: e }),
|
|
2636
|
+
/* @__PURE__ */ s(Ji, { bottomBarStore: e }),
|
|
2637
|
+
/* @__PURE__ */ s(Ki, { bottomBarStore: e })
|
|
2213
2638
|
]
|
|
2214
2639
|
}
|
|
2215
2640
|
)
|
|
2216
|
-
),
|
|
2641
|
+
), Xi = re(
|
|
2217
2642
|
({ item: e, closePopover: t }) => {
|
|
2218
|
-
const
|
|
2643
|
+
const r = le(), i = Ve(
|
|
2219
2644
|
() => [
|
|
2220
2645
|
{
|
|
2221
2646
|
id: 0,
|
|
2222
2647
|
items: [
|
|
2223
2648
|
{
|
|
2224
2649
|
name: "Open in new tab",
|
|
2225
|
-
icon: /* @__PURE__ */
|
|
2650
|
+
icon: /* @__PURE__ */ s(Y, { type: Sn }),
|
|
2226
2651
|
onClick: async () => {
|
|
2227
|
-
t(), await
|
|
2652
|
+
t(), await r.pause(), window.open(e.dto.url, "_blank");
|
|
2228
2653
|
}
|
|
2229
2654
|
},
|
|
2230
2655
|
{
|
|
2231
2656
|
name: "Copy link address",
|
|
2232
|
-
icon: /* @__PURE__ */
|
|
2657
|
+
icon: /* @__PURE__ */ s(Y, { type: "" }),
|
|
2233
2658
|
onClick: async () => {
|
|
2234
2659
|
t(), await navigator.clipboard.writeText(
|
|
2235
2660
|
e.dto.url
|
|
@@ -2238,7 +2663,7 @@ const nr = zt(void 0), Yi = ({
|
|
|
2238
2663
|
},
|
|
2239
2664
|
{
|
|
2240
2665
|
name: "Copy link text",
|
|
2241
|
-
icon: /* @__PURE__ */
|
|
2666
|
+
icon: /* @__PURE__ */ s(Y, { type: "" }),
|
|
2242
2667
|
onClick: async () => {
|
|
2243
2668
|
t(), await navigator.clipboard.writeText(
|
|
2244
2669
|
e.dto.title
|
|
@@ -2248,20 +2673,20 @@ const nr = zt(void 0), Yi = ({
|
|
|
2248
2673
|
]
|
|
2249
2674
|
}
|
|
2250
2675
|
],
|
|
2251
|
-
[t,
|
|
2676
|
+
[t, r, e]
|
|
2252
2677
|
);
|
|
2253
|
-
return /* @__PURE__ */
|
|
2678
|
+
return /* @__PURE__ */ s(ut, { initialPanelId: 0, panels: i });
|
|
2254
2679
|
}
|
|
2255
|
-
),
|
|
2680
|
+
), Zi = re(
|
|
2256
2681
|
({ item: e }) => {
|
|
2257
|
-
const [t,
|
|
2258
|
-
return /* @__PURE__ */
|
|
2259
|
-
|
|
2682
|
+
const [t, r] = z(!1), i = $(() => r(!t), [t]), a = $(() => r(!1), []);
|
|
2683
|
+
return /* @__PURE__ */ s(
|
|
2684
|
+
xe,
|
|
2260
2685
|
{
|
|
2261
|
-
button: /* @__PURE__ */
|
|
2262
|
-
|
|
2686
|
+
button: /* @__PURE__ */ s(
|
|
2687
|
+
Yt,
|
|
2263
2688
|
{
|
|
2264
|
-
iconType:
|
|
2689
|
+
iconType: ur[e.type],
|
|
2265
2690
|
size: "s",
|
|
2266
2691
|
onClick: i,
|
|
2267
2692
|
children: e.title
|
|
@@ -2271,8 +2696,8 @@ const nr = zt(void 0), Yi = ({
|
|
|
2271
2696
|
closePopover: a,
|
|
2272
2697
|
panelPaddingSize: "none",
|
|
2273
2698
|
anchorPosition: "upLeft",
|
|
2274
|
-
children: /* @__PURE__ */
|
|
2275
|
-
|
|
2699
|
+
children: /* @__PURE__ */ s(
|
|
2700
|
+
Xi,
|
|
2276
2701
|
{
|
|
2277
2702
|
item: e,
|
|
2278
2703
|
closePopover: a
|
|
@@ -2281,74 +2706,76 @@ const nr = zt(void 0), Yi = ({
|
|
|
2281
2706
|
}
|
|
2282
2707
|
);
|
|
2283
2708
|
}
|
|
2284
|
-
),
|
|
2285
|
-
({
|
|
2286
|
-
|
|
2709
|
+
), ea = C(
|
|
2710
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2711
|
+
oe,
|
|
2287
2712
|
{
|
|
2288
2713
|
responsive: !1,
|
|
2289
2714
|
gutterSize: "s",
|
|
2290
2715
|
justifyContent: "flexStart",
|
|
2291
2716
|
alignItems: "center",
|
|
2292
|
-
children: e.currentItem && /* @__PURE__ */
|
|
2717
|
+
children: e.currentItem && /* @__PURE__ */ s(Zi, { item: e.currentItem })
|
|
2293
2718
|
}
|
|
2294
2719
|
)
|
|
2295
|
-
),
|
|
2296
|
-
({
|
|
2297
|
-
|
|
2720
|
+
), ta = C(
|
|
2721
|
+
({ bottomBarStore: e }) => /* @__PURE__ */ s(
|
|
2722
|
+
W,
|
|
2298
2723
|
{
|
|
2299
2724
|
title: "Mute",
|
|
2300
2725
|
"aria-label": "Mute",
|
|
2301
|
-
iconType:
|
|
2726
|
+
iconType: Xt,
|
|
2302
2727
|
size: "s",
|
|
2303
2728
|
iconSize: "l",
|
|
2304
|
-
disabled: !e.controller.supports("setMuted")
|
|
2729
|
+
disabled: !e.playerStore.controller.supports("setMuted")
|
|
2305
2730
|
}
|
|
2306
2731
|
)
|
|
2307
|
-
),
|
|
2732
|
+
), ra = C(
|
|
2308
2733
|
({
|
|
2309
|
-
|
|
2734
|
+
bottomBarStore: e,
|
|
2310
2735
|
button: t,
|
|
2311
|
-
isOpen:
|
|
2736
|
+
isOpen: r,
|
|
2312
2737
|
closePopover: i
|
|
2313
2738
|
}) => {
|
|
2314
|
-
const [a,
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2739
|
+
const [a, o] = z("0"), c = le();
|
|
2740
|
+
zr(() => {
|
|
2741
|
+
r && c.getVolume().then((p) => {
|
|
2742
|
+
p !== void 0 && o(Math.floor(p * 100).toString());
|
|
2318
2743
|
});
|
|
2319
|
-
}, [
|
|
2320
|
-
const
|
|
2321
|
-
async (
|
|
2322
|
-
|
|
2744
|
+
}, [r, c]);
|
|
2745
|
+
const f = $(
|
|
2746
|
+
async (p) => {
|
|
2747
|
+
o(p.currentTarget.value), await c.setVolume(Number(p.currentTarget.value) / 100);
|
|
2323
2748
|
},
|
|
2324
|
-
[
|
|
2749
|
+
[c]
|
|
2325
2750
|
);
|
|
2326
|
-
return /* @__PURE__ */
|
|
2327
|
-
|
|
2751
|
+
return /* @__PURE__ */ s(
|
|
2752
|
+
xe,
|
|
2328
2753
|
{
|
|
2329
2754
|
button: t,
|
|
2330
|
-
isOpen:
|
|
2755
|
+
isOpen: r,
|
|
2331
2756
|
closePopover: i,
|
|
2332
2757
|
anchorPosition: "upRight",
|
|
2333
|
-
children: /* @__PURE__ */
|
|
2334
|
-
|
|
2758
|
+
children: /* @__PURE__ */ s(at, { children: /* @__PURE__ */ M(
|
|
2759
|
+
oe,
|
|
2335
2760
|
{
|
|
2336
2761
|
responsive: !1,
|
|
2337
2762
|
gutterSize: "s",
|
|
2338
2763
|
justifyContent: "center",
|
|
2339
2764
|
alignItems: "center",
|
|
2340
2765
|
children: [
|
|
2341
|
-
/* @__PURE__ */
|
|
2342
|
-
/* @__PURE__ */
|
|
2343
|
-
|
|
2766
|
+
/* @__PURE__ */ s(ta, { bottomBarStore: e }),
|
|
2767
|
+
/* @__PURE__ */ s(
|
|
2768
|
+
Jt,
|
|
2344
2769
|
{
|
|
2345
2770
|
min: 0,
|
|
2346
2771
|
max: 100,
|
|
2347
2772
|
step: 1,
|
|
2348
2773
|
value: a,
|
|
2349
|
-
onChange:
|
|
2774
|
+
onChange: f,
|
|
2350
2775
|
css: { blockSize: 32 },
|
|
2351
|
-
disabled: !e.controller.supports(
|
|
2776
|
+
disabled: !e.playerStore.controller.supports(
|
|
2777
|
+
"setVolume"
|
|
2778
|
+
)
|
|
2352
2779
|
}
|
|
2353
2780
|
)
|
|
2354
2781
|
]
|
|
@@ -2357,103 +2784,98 @@ const nr = zt(void 0), Yi = ({
|
|
|
2357
2784
|
}
|
|
2358
2785
|
);
|
|
2359
2786
|
}
|
|
2360
|
-
),
|
|
2361
|
-
({
|
|
2362
|
-
const [t,
|
|
2363
|
-
return /* @__PURE__ */
|
|
2364
|
-
|
|
2787
|
+
), na = C(
|
|
2788
|
+
({ bottomBarStore: e }) => {
|
|
2789
|
+
const [t, r] = z(!1);
|
|
2790
|
+
return /* @__PURE__ */ s(
|
|
2791
|
+
ra,
|
|
2365
2792
|
{
|
|
2366
|
-
|
|
2367
|
-
button: /* @__PURE__ */
|
|
2368
|
-
|
|
2793
|
+
bottomBarStore: e,
|
|
2794
|
+
button: /* @__PURE__ */ s(
|
|
2795
|
+
W,
|
|
2369
2796
|
{
|
|
2370
2797
|
title: "Volume",
|
|
2371
2798
|
"aria-label": "Volume",
|
|
2372
|
-
iconType:
|
|
2799
|
+
iconType: Xt,
|
|
2373
2800
|
size: "s",
|
|
2374
2801
|
iconSize: "l",
|
|
2375
|
-
onClick: () =>
|
|
2376
|
-
disabled: !e.controller.supports(
|
|
2802
|
+
onClick: () => r(!t),
|
|
2803
|
+
disabled: !e.playerStore.controller.supports(
|
|
2804
|
+
"getVolume"
|
|
2805
|
+
)
|
|
2377
2806
|
}
|
|
2378
2807
|
),
|
|
2379
2808
|
isOpen: t,
|
|
2380
|
-
closePopover: () =>
|
|
2809
|
+
closePopover: () => r(!1)
|
|
2381
2810
|
}
|
|
2382
2811
|
);
|
|
2383
2812
|
}
|
|
2384
|
-
),
|
|
2813
|
+
), ia = ({
|
|
2385
2814
|
onClickPlayQueueButton: e
|
|
2386
|
-
}) => /* @__PURE__ */
|
|
2387
|
-
|
|
2815
|
+
}) => /* @__PURE__ */ s(
|
|
2816
|
+
W,
|
|
2388
2817
|
{
|
|
2389
2818
|
title: "Play queue",
|
|
2390
2819
|
"aria-label": "Play queue",
|
|
2391
|
-
iconType:
|
|
2820
|
+
iconType: Rn,
|
|
2392
2821
|
size: "s",
|
|
2393
2822
|
iconSize: "l",
|
|
2394
2823
|
onClick: e
|
|
2395
2824
|
}
|
|
2396
|
-
),
|
|
2825
|
+
), aa = C(
|
|
2397
2826
|
({
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
closePopover: n
|
|
2827
|
+
bottomBarStore: e,
|
|
2828
|
+
closePopover: t
|
|
2401
2829
|
}) => {
|
|
2402
|
-
const
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
async (I) => {
|
|
2410
|
-
await i.setPlaybackRate(I), n();
|
|
2830
|
+
const r = le(), i = $(async () => {
|
|
2831
|
+
await e.skipBack10(), t();
|
|
2832
|
+
}, [e, t]), a = $(async () => {
|
|
2833
|
+
await e.skipForward30(), t();
|
|
2834
|
+
}, [e, t]), o = $(
|
|
2835
|
+
async (w) => {
|
|
2836
|
+
await r.setPlaybackRate(w), t();
|
|
2411
2837
|
},
|
|
2412
|
-
[
|
|
2413
|
-
),
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
]),
|
|
2417
|
-
}, [
|
|
2418
|
-
await e.controller.getPlaybackRate().then((
|
|
2419
|
-
}, [e]),
|
|
2838
|
+
[r, t]
|
|
2839
|
+
), c = $(async () => {
|
|
2840
|
+
e.currentItem !== void 0 && await e.playQueueStore.removeItems([
|
|
2841
|
+
e.currentItem
|
|
2842
|
+
]), t();
|
|
2843
|
+
}, [e, t]), [f, p] = z(), m = $(async () => {
|
|
2844
|
+
await e.playerStore.controller.getPlaybackRate().then((w) => p(w));
|
|
2845
|
+
}, [e]), P = Ve(
|
|
2420
2846
|
() => [
|
|
2421
2847
|
{
|
|
2422
2848
|
id: 0,
|
|
2423
2849
|
items: [
|
|
2424
2850
|
{
|
|
2425
2851
|
name: "Speed",
|
|
2426
|
-
icon: /* @__PURE__ */
|
|
2852
|
+
icon: /* @__PURE__ */ s(Y, { type: En }),
|
|
2427
2853
|
panel: 1,
|
|
2428
|
-
onClick:
|
|
2429
|
-
disabled: !e.controller.supports(
|
|
2854
|
+
onClick: m,
|
|
2855
|
+
disabled: !e.playerStore.controller.supports(
|
|
2430
2856
|
"getPlaybackRate"
|
|
2431
2857
|
)
|
|
2432
2858
|
},
|
|
2433
2859
|
{
|
|
2434
2860
|
name: "Skip back 10 seconds",
|
|
2435
|
-
icon: /* @__PURE__ */
|
|
2436
|
-
onClick:
|
|
2437
|
-
disabled:
|
|
2438
|
-
"setCurrentTime"
|
|
2439
|
-
)
|
|
2861
|
+
icon: /* @__PURE__ */ s(Y, { type: Kt }),
|
|
2862
|
+
onClick: i,
|
|
2863
|
+
disabled: !e.canSkipBack10
|
|
2440
2864
|
},
|
|
2441
2865
|
{
|
|
2442
2866
|
name: "Skip forward 30 seconds",
|
|
2443
|
-
icon: /* @__PURE__ */
|
|
2444
|
-
onClick:
|
|
2445
|
-
disabled:
|
|
2446
|
-
"setCurrentTime"
|
|
2447
|
-
)
|
|
2867
|
+
icon: /* @__PURE__ */ s(Y, { type: Bt }),
|
|
2868
|
+
onClick: a,
|
|
2869
|
+
disabled: !e.canSkipForward30
|
|
2448
2870
|
},
|
|
2449
2871
|
{
|
|
2450
2872
|
isSeparator: !0
|
|
2451
2873
|
},
|
|
2452
2874
|
{
|
|
2453
2875
|
name: "Remove from play queue",
|
|
2454
|
-
icon: /* @__PURE__ */
|
|
2455
|
-
onClick:
|
|
2456
|
-
disabled:
|
|
2876
|
+
icon: /* @__PURE__ */ s(Y, { type: ft }),
|
|
2877
|
+
onClick: c,
|
|
2878
|
+
disabled: e.playQueueStore.isEmpty
|
|
2457
2879
|
}
|
|
2458
2880
|
]
|
|
2459
2881
|
},
|
|
@@ -2461,11 +2883,11 @@ const nr = zt(void 0), Yi = ({
|
|
|
2461
2883
|
id: 1,
|
|
2462
2884
|
title: "Speed",
|
|
2463
2885
|
items: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2].map(
|
|
2464
|
-
(
|
|
2465
|
-
name:
|
|
2466
|
-
onClick: () =>
|
|
2467
|
-
icon:
|
|
2468
|
-
disabled: !e.controller.supports(
|
|
2886
|
+
(w) => ({
|
|
2887
|
+
name: w.toString(),
|
|
2888
|
+
onClick: () => o(w),
|
|
2889
|
+
icon: w === f ? "check" : "empty",
|
|
2890
|
+
disabled: !e.playerStore.controller.supports(
|
|
2469
2891
|
"setPlaybackRate"
|
|
2470
2892
|
)
|
|
2471
2893
|
})
|
|
@@ -2474,247 +2896,205 @@ const nr = zt(void 0), Yi = ({
|
|
|
2474
2896
|
],
|
|
2475
2897
|
[
|
|
2476
2898
|
e,
|
|
2477
|
-
|
|
2478
|
-
|
|
2899
|
+
m,
|
|
2900
|
+
i,
|
|
2479
2901
|
a,
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
m
|
|
2902
|
+
c,
|
|
2903
|
+
o,
|
|
2904
|
+
f
|
|
2484
2905
|
]
|
|
2485
2906
|
);
|
|
2486
|
-
return /* @__PURE__ */
|
|
2907
|
+
return /* @__PURE__ */ s(ut, { initialPanelId: 0, panels: P });
|
|
2487
2908
|
}
|
|
2488
|
-
),
|
|
2909
|
+
), sa = re(
|
|
2489
2910
|
({
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
ze,
|
|
2911
|
+
bottomBarStore: e,
|
|
2912
|
+
button: t,
|
|
2913
|
+
isOpen: r,
|
|
2914
|
+
closePopover: i
|
|
2915
|
+
}) => /* @__PURE__ */ s(
|
|
2916
|
+
xe,
|
|
2497
2917
|
{
|
|
2498
|
-
button:
|
|
2499
|
-
isOpen:
|
|
2500
|
-
closePopover:
|
|
2918
|
+
button: t,
|
|
2919
|
+
isOpen: r,
|
|
2920
|
+
closePopover: i,
|
|
2501
2921
|
panelPaddingSize: "none",
|
|
2502
2922
|
anchorPosition: "upRight",
|
|
2503
|
-
children: /* @__PURE__ */
|
|
2504
|
-
|
|
2923
|
+
children: /* @__PURE__ */ s(
|
|
2924
|
+
aa,
|
|
2505
2925
|
{
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
closePopover: a
|
|
2926
|
+
bottomBarStore: e,
|
|
2927
|
+
closePopover: i
|
|
2509
2928
|
}
|
|
2510
2929
|
)
|
|
2511
2930
|
}
|
|
2512
2931
|
)
|
|
2513
|
-
),
|
|
2514
|
-
({
|
|
2515
|
-
const [
|
|
2516
|
-
return /* @__PURE__ */
|
|
2517
|
-
|
|
2932
|
+
), oa = re(
|
|
2933
|
+
({ bottomBarStore: e }) => {
|
|
2934
|
+
const [t, r] = z(!1);
|
|
2935
|
+
return /* @__PURE__ */ s(
|
|
2936
|
+
sa,
|
|
2518
2937
|
{
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
q,
|
|
2938
|
+
bottomBarStore: e,
|
|
2939
|
+
button: /* @__PURE__ */ s(
|
|
2940
|
+
W,
|
|
2523
2941
|
{
|
|
2524
2942
|
title: "More options",
|
|
2525
2943
|
"aria-label": "More options",
|
|
2526
|
-
iconType:
|
|
2944
|
+
iconType: Qt,
|
|
2527
2945
|
size: "s",
|
|
2528
2946
|
iconSize: "l",
|
|
2529
|
-
onClick: () =>
|
|
2947
|
+
onClick: () => r(!t)
|
|
2530
2948
|
}
|
|
2531
2949
|
),
|
|
2532
|
-
isOpen:
|
|
2533
|
-
closePopover: () =>
|
|
2950
|
+
isOpen: t,
|
|
2951
|
+
closePopover: () => r(!1)
|
|
2534
2952
|
}
|
|
2535
2953
|
);
|
|
2536
2954
|
}
|
|
2537
|
-
),
|
|
2955
|
+
), la = re(
|
|
2538
2956
|
({
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
se,
|
|
2957
|
+
bottomBarStore: e,
|
|
2958
|
+
onClickPlayQueueButton: t
|
|
2959
|
+
}) => /* @__PURE__ */ M(
|
|
2960
|
+
oe,
|
|
2544
2961
|
{
|
|
2545
2962
|
responsive: !1,
|
|
2546
2963
|
gutterSize: "s",
|
|
2547
2964
|
justifyContent: "flexEnd",
|
|
2548
2965
|
alignItems: "center",
|
|
2549
2966
|
children: [
|
|
2550
|
-
/* @__PURE__ */
|
|
2551
|
-
|
|
2552
|
-
|
|
2967
|
+
/* @__PURE__ */ s(na, { bottomBarStore: e }),
|
|
2968
|
+
t && /* @__PURE__ */ s(
|
|
2969
|
+
ia,
|
|
2553
2970
|
{
|
|
2554
|
-
onClickPlayQueueButton:
|
|
2971
|
+
onClickPlayQueueButton: t
|
|
2555
2972
|
}
|
|
2556
2973
|
),
|
|
2557
|
-
/* @__PURE__ */
|
|
2558
|
-
Ri,
|
|
2559
|
-
{
|
|
2560
|
-
playerStore: e,
|
|
2561
|
-
playQueueStore: t
|
|
2562
|
-
}
|
|
2563
|
-
)
|
|
2974
|
+
/* @__PURE__ */ s(oa, { bottomBarStore: e })
|
|
2564
2975
|
]
|
|
2565
2976
|
}
|
|
2566
2977
|
)
|
|
2567
|
-
),
|
|
2568
|
-
({
|
|
2569
|
-
const
|
|
2570
|
-
(
|
|
2571
|
-
const
|
|
2572
|
-
e.setPercent(
|
|
2978
|
+
), ca = C(
|
|
2979
|
+
({ bottomBarStore: e }) => {
|
|
2980
|
+
const t = le(), r = $(
|
|
2981
|
+
(o) => {
|
|
2982
|
+
const c = Number(o.currentTarget.value) / 100;
|
|
2983
|
+
e.playerStore.setPercent(c);
|
|
2573
2984
|
},
|
|
2574
2985
|
[e]
|
|
2575
|
-
),
|
|
2576
|
-
(
|
|
2577
|
-
|
|
2986
|
+
), i = $(
|
|
2987
|
+
(o) => {
|
|
2988
|
+
o.button === 0 && e.playerStore.setSeeking(!0);
|
|
2578
2989
|
},
|
|
2579
2990
|
[e]
|
|
2580
|
-
),
|
|
2581
|
-
async (
|
|
2582
|
-
if (
|
|
2583
|
-
const
|
|
2584
|
-
e.setSeeking(!1);
|
|
2585
|
-
const
|
|
2586
|
-
|
|
2991
|
+
), a = $(
|
|
2992
|
+
async (o) => {
|
|
2993
|
+
if (o.button === 0) {
|
|
2994
|
+
const c = Number(o.currentTarget.value) / 100;
|
|
2995
|
+
e.playerStore.setSeeking(!1);
|
|
2996
|
+
const f = await t.getDuration();
|
|
2997
|
+
f !== void 0 && await t.setCurrentTime(f * c);
|
|
2587
2998
|
}
|
|
2588
2999
|
},
|
|
2589
|
-
[e,
|
|
3000
|
+
[e, t]
|
|
2590
3001
|
);
|
|
2591
|
-
return /* @__PURE__ */
|
|
2592
|
-
|
|
3002
|
+
return /* @__PURE__ */ s(
|
|
3003
|
+
Jt,
|
|
2593
3004
|
{
|
|
2594
3005
|
min: 0,
|
|
2595
3006
|
max: 100,
|
|
2596
3007
|
step: 1e-7,
|
|
2597
|
-
value: e.percent * 100,
|
|
2598
|
-
onChange:
|
|
2599
|
-
onMouseDown:
|
|
2600
|
-
onMouseUp:
|
|
3008
|
+
value: e.playerStore.percent * 100,
|
|
3009
|
+
onChange: r,
|
|
3010
|
+
onMouseDown: i,
|
|
3011
|
+
onMouseUp: a,
|
|
2601
3012
|
fullWidth: !0,
|
|
2602
3013
|
showRange: !0,
|
|
2603
3014
|
css: { blockSize: 32 },
|
|
2604
|
-
disabled:
|
|
3015
|
+
disabled: e.playQueueStore.isEmpty
|
|
2605
3016
|
}
|
|
2606
3017
|
);
|
|
2607
3018
|
}
|
|
2608
|
-
),
|
|
3019
|
+
), Ta = C(
|
|
2609
3020
|
({
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
/* @__PURE__ */
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
playerStore: e,
|
|
2618
|
-
playQueueStore: t
|
|
2619
|
-
}
|
|
2620
|
-
) }),
|
|
2621
|
-
/* @__PURE__ */ o(J, { children: /* @__PURE__ */ $(se, { responsive: !1, children: [
|
|
2622
|
-
/* @__PURE__ */ o(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ o(
|
|
2623
|
-
Ti,
|
|
3021
|
+
bottomBarStore: e,
|
|
3022
|
+
onClickPlayQueueButton: t
|
|
3023
|
+
}) => /* @__PURE__ */ s(on, { paddingSize: "s", children: /* @__PURE__ */ M(oe, { direction: "column", gutterSize: "none", children: [
|
|
3024
|
+
/* @__PURE__ */ s(J, { children: /* @__PURE__ */ s(ca, { bottomBarStore: e }) }),
|
|
3025
|
+
/* @__PURE__ */ s(J, { children: /* @__PURE__ */ M(oe, { responsive: !1, children: [
|
|
3026
|
+
/* @__PURE__ */ s(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
|
|
3027
|
+
ea,
|
|
2624
3028
|
{
|
|
2625
|
-
|
|
3029
|
+
bottomBarStore: e
|
|
2626
3030
|
}
|
|
2627
3031
|
) }),
|
|
2628
|
-
/* @__PURE__ */
|
|
2629
|
-
|
|
3032
|
+
/* @__PURE__ */ s(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
|
|
3033
|
+
Bi,
|
|
2630
3034
|
{
|
|
2631
|
-
|
|
2632
|
-
playQueueStore: t
|
|
3035
|
+
bottomBarStore: e
|
|
2633
3036
|
}
|
|
2634
3037
|
) }),
|
|
2635
|
-
/* @__PURE__ */
|
|
2636
|
-
|
|
3038
|
+
/* @__PURE__ */ s(J, { css: { width: "calc(100% / 3)" }, children: /* @__PURE__ */ s(
|
|
3039
|
+
la,
|
|
2637
3040
|
{
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
onClickPlayQueueButton: n
|
|
3041
|
+
bottomBarStore: e,
|
|
3042
|
+
onClickPlayQueueButton: t
|
|
2641
3043
|
}
|
|
2642
3044
|
) })
|
|
2643
3045
|
] }) })
|
|
2644
3046
|
] }) })
|
|
2645
|
-
),
|
|
3047
|
+
), Ca = (e) => /* @__PURE__ */ s(Cn, { ...e }), lt = {
|
|
2646
3048
|
width: 400,
|
|
2647
3049
|
height: 225
|
|
2648
|
-
},
|
|
3050
|
+
}, Ia = C(
|
|
2649
3051
|
({ children: e }) => {
|
|
2650
|
-
const t =
|
|
2651
|
-
return /* @__PURE__ */
|
|
2652
|
-
|
|
3052
|
+
const t = fr();
|
|
3053
|
+
return /* @__PURE__ */ M(
|
|
3054
|
+
dt,
|
|
2653
3055
|
{
|
|
2654
3056
|
panelled: !0,
|
|
2655
3057
|
style: {
|
|
2656
|
-
minBlockSize: `max(460px, 100vh - ${
|
|
3058
|
+
minBlockSize: `max(460px, 100vh - ${Zt}px)`
|
|
2657
3059
|
},
|
|
2658
3060
|
children: [
|
|
2659
3061
|
e,
|
|
2660
|
-
!t.isEmpty && /* @__PURE__ */
|
|
3062
|
+
!t.isEmpty && /* @__PURE__ */ s(Gt, { style: { blockSize: lt.height } })
|
|
2661
3063
|
]
|
|
2662
3064
|
}
|
|
2663
3065
|
);
|
|
2664
3066
|
}
|
|
2665
|
-
),
|
|
2666
|
-
({
|
|
2667
|
-
const
|
|
2668
|
-
t.interacted && await n.play();
|
|
2669
|
-
}, [t, n]), a = N(async () => {
|
|
2670
|
-
switch (t.repeat) {
|
|
2671
|
-
case O.One:
|
|
2672
|
-
await n.setCurrentTime(0);
|
|
2673
|
-
break;
|
|
2674
|
-
case O.Off:
|
|
2675
|
-
case O.All:
|
|
2676
|
-
if (t.isLastItem)
|
|
2677
|
-
switch (t.repeat) {
|
|
2678
|
-
case O.Off:
|
|
2679
|
-
e.onEnded();
|
|
2680
|
-
break;
|
|
2681
|
-
case O.All:
|
|
2682
|
-
t.hasMultipleItems ? await t.goToFirst() : await n.setCurrentTime(0);
|
|
2683
|
-
break;
|
|
2684
|
-
}
|
|
2685
|
-
else
|
|
2686
|
-
await t.next();
|
|
2687
|
-
break;
|
|
2688
|
-
}
|
|
2689
|
-
}, [t, e, n]), l = De(
|
|
3067
|
+
), xa = C(
|
|
3068
|
+
({ miniPlayerStore: e }) => {
|
|
3069
|
+
const t = Ve(
|
|
2690
3070
|
() => ({
|
|
2691
|
-
onLoaded:
|
|
3071
|
+
onLoaded: e.onLoaded,
|
|
2692
3072
|
onPlay: e.onPlay,
|
|
2693
3073
|
onPause: e.onPause,
|
|
2694
|
-
onEnded:
|
|
3074
|
+
onEnded: e.onEnded,
|
|
2695
3075
|
onTimeUpdate: e.onTimeUpdate
|
|
2696
3076
|
}),
|
|
2697
|
-
[e
|
|
3077
|
+
[e]
|
|
2698
3078
|
);
|
|
2699
|
-
return /* @__PURE__ */
|
|
3079
|
+
return /* @__PURE__ */ s(
|
|
2700
3080
|
"div",
|
|
2701
3081
|
{
|
|
2702
3082
|
css: {
|
|
2703
3083
|
position: "fixed",
|
|
2704
3084
|
right: 0,
|
|
2705
|
-
bottom:
|
|
2706
|
-
width:
|
|
2707
|
-
height:
|
|
3085
|
+
bottom: Zt,
|
|
3086
|
+
width: lt.width,
|
|
3087
|
+
height: lt.height,
|
|
2708
3088
|
zIndex: 998,
|
|
2709
3089
|
backgroundColor: "rgb(39, 39, 39)",
|
|
2710
3090
|
display: "flex",
|
|
2711
3091
|
flexDirection: "column"
|
|
2712
3092
|
},
|
|
2713
|
-
children: /* @__PURE__ */
|
|
2714
|
-
|
|
3093
|
+
children: /* @__PURE__ */ s("div", { css: { flexGrow: 1, backgroundColor: "black" }, children: e.currentItem && /* @__PURE__ */ s(
|
|
3094
|
+
In,
|
|
2715
3095
|
{
|
|
2716
|
-
src:
|
|
2717
|
-
options:
|
|
3096
|
+
src: e.currentItem.url,
|
|
3097
|
+
options: t,
|
|
2718
3098
|
onControllerChange: e.onControllerChange
|
|
2719
3099
|
}
|
|
2720
3100
|
) })
|
|
@@ -2722,25 +3102,25 @@ const nr = zt(void 0), Yi = ({
|
|
|
2722
3102
|
);
|
|
2723
3103
|
}
|
|
2724
3104
|
);
|
|
2725
|
-
class
|
|
2726
|
-
controller =
|
|
3105
|
+
class ua {
|
|
3106
|
+
controller = xn;
|
|
2727
3107
|
playing = !1;
|
|
2728
3108
|
percent = 0;
|
|
2729
3109
|
seeking = !1;
|
|
2730
3110
|
constructor(t) {
|
|
2731
3111
|
t.makeObservable(this, {
|
|
2732
|
-
controller:
|
|
2733
|
-
playing:
|
|
2734
|
-
percent:
|
|
2735
|
-
seeking:
|
|
2736
|
-
setPlaying:
|
|
2737
|
-
setPercent:
|
|
2738
|
-
setSeeking:
|
|
2739
|
-
onControllerChange:
|
|
2740
|
-
onPlay:
|
|
2741
|
-
onPause:
|
|
2742
|
-
onEnded:
|
|
2743
|
-
onTimeUpdate:
|
|
3112
|
+
controller: X,
|
|
3113
|
+
playing: X,
|
|
3114
|
+
percent: X,
|
|
3115
|
+
seeking: X,
|
|
3116
|
+
setPlaying: v,
|
|
3117
|
+
setPercent: v,
|
|
3118
|
+
setSeeking: v,
|
|
3119
|
+
onControllerChange: v.bound,
|
|
3120
|
+
onPlay: v.bound,
|
|
3121
|
+
onPause: v.bound,
|
|
3122
|
+
onEnded: v.bound,
|
|
3123
|
+
onTimeUpdate: v.bound
|
|
2744
3124
|
});
|
|
2745
3125
|
}
|
|
2746
3126
|
setPlaying(t) {
|
|
@@ -2768,28 +3148,27 @@ class _i {
|
|
|
2768
3148
|
t !== void 0 && (this.seeking || (this.percent = t));
|
|
2769
3149
|
}
|
|
2770
3150
|
}
|
|
2771
|
-
const
|
|
3151
|
+
const pr = Ut(void 0), Oa = ({
|
|
2772
3152
|
children: e
|
|
2773
3153
|
}) => {
|
|
2774
|
-
const [t] =
|
|
2775
|
-
() => new
|
|
3154
|
+
const [t] = z(
|
|
3155
|
+
() => new ua(new er())
|
|
2776
3156
|
);
|
|
2777
|
-
return /* @__PURE__ */
|
|
2778
|
-
},
|
|
3157
|
+
return /* @__PURE__ */ s(pr.Provider, { value: t, children: e });
|
|
3158
|
+
}, _a = () => ct(pr);
|
|
2779
3159
|
export {
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
Ki as usePlayerStore
|
|
3160
|
+
Ta as BottomBar,
|
|
3161
|
+
Ca as HydrangeanDivaProvider,
|
|
3162
|
+
Ia as MediaPlayerLayout,
|
|
3163
|
+
xa as MiniPlayer,
|
|
3164
|
+
er as MobXObservableStateProvider,
|
|
3165
|
+
Sa as ObservableStateProvider,
|
|
3166
|
+
Ni as PlayQueue,
|
|
3167
|
+
Ra as PlayQueuePage,
|
|
3168
|
+
Ea as PlayQueueStoreProvider,
|
|
3169
|
+
Oa as PlayerStoreProvider,
|
|
3170
|
+
N as RepeatMode,
|
|
3171
|
+
Zt as bottomBarHeight,
|
|
3172
|
+
_a as usePlayerStore
|
|
2794
3173
|
};
|
|
2795
3174
|
//# sourceMappingURL=index.es.js.map
|