@aigamo/hydrangean-diva 0.0.1-alpha.22 → 0.0.1-alpha.24

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