@halibegic/react-video-player 0.0.37 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/live-player/live-player-viewer-count.d.ts +5 -0
- package/dist/components/live-player/ui/live-player-viewers.d.ts +2 -0
- package/dist/react-video-player.es.js +1073 -990
- package/dist/react-video-player.es.js.map +1 -1
- package/dist/react-video-player.umd.js +9 -9
- package/dist/react-video-player.umd.js.map +1 -1
- package/dist/stores/live-player-store.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Mn = Object.defineProperty, Nn = Object.defineProperties;
|
|
2
|
+
var Vn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Se = Object.getOwnPropertySymbols;
|
|
4
|
+
var vt = Object.prototype.hasOwnProperty, yt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var pt = (e, t, n) => t in e ? Mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, L = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
vt.call(t, n) && pt(e, n, t[n]);
|
|
8
|
+
if (Se)
|
|
9
|
+
for (var n of Se(t))
|
|
10
|
+
yt.call(t, n) && pt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, he = (e, t) =>
|
|
12
|
+
}, he = (e, t) => Nn(e, Vn(t));
|
|
13
13
|
var ne = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var o in e)
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var o of
|
|
19
|
-
t.indexOf(o) < 0 &&
|
|
16
|
+
vt.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
17
|
+
if (e != null && Se)
|
|
18
|
+
for (var o of Se(e))
|
|
19
|
+
t.indexOf(o) < 0 && yt.call(e, o) && (n[o] = e[o]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
import St, { useLayoutEffect as
|
|
23
|
-
import { create as Pt, useStore as
|
|
24
|
-
import
|
|
22
|
+
import St, { useLayoutEffect as An, useEffect as F, useRef as V, useState as X, createContext as jt, useContext as Lt, useCallback as z, forwardRef as Ne } from "react";
|
|
23
|
+
import { create as Pt, useStore as kt } from "zustand";
|
|
24
|
+
import On from "mitt";
|
|
25
25
|
import re from "hls.js";
|
|
26
|
-
import * as
|
|
27
|
-
import * as
|
|
28
|
-
import * as
|
|
29
|
-
function
|
|
26
|
+
import * as je from "@radix-ui/react-slider";
|
|
27
|
+
import * as Te from "@radix-ui/react-popover";
|
|
28
|
+
import * as Le from "@radix-ui/react-scroll-area";
|
|
29
|
+
function It(e) {
|
|
30
30
|
var t = this.constructor;
|
|
31
31
|
return this.then(
|
|
32
32
|
function(n) {
|
|
@@ -41,7 +41,7 @@ function kt(e) {
|
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Dt(e) {
|
|
45
45
|
var t = this;
|
|
46
46
|
return new t(function(n, o) {
|
|
47
47
|
if (!(e && typeof e.length != "undefined"))
|
|
@@ -50,48 +50,48 @@ function It(e) {
|
|
|
50
50
|
typeof e + " " + e + " is not iterable(cannot read property Symbol(Symbol.iterator))"
|
|
51
51
|
)
|
|
52
52
|
);
|
|
53
|
-
var
|
|
54
|
-
if (
|
|
55
|
-
var
|
|
56
|
-
function u(
|
|
53
|
+
var a = Array.prototype.slice.call(e);
|
|
54
|
+
if (a.length === 0) return n([]);
|
|
55
|
+
var l = a.length;
|
|
56
|
+
function u(c, d) {
|
|
57
57
|
if (d && (typeof d == "object" || typeof d == "function")) {
|
|
58
58
|
var g = d.then;
|
|
59
59
|
if (typeof g == "function") {
|
|
60
60
|
g.call(
|
|
61
61
|
d,
|
|
62
62
|
function(y) {
|
|
63
|
-
u(
|
|
63
|
+
u(c, y);
|
|
64
64
|
},
|
|
65
65
|
function(y) {
|
|
66
|
-
|
|
66
|
+
a[c] = { status: "rejected", reason: y }, --l === 0 && n(a);
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
a[c] = { status: "fulfilled", value: d }, --l === 0 && n(a);
|
|
73
73
|
}
|
|
74
|
-
for (var i = 0; i <
|
|
75
|
-
u(i,
|
|
74
|
+
for (var i = 0; i < a.length; i++)
|
|
75
|
+
u(i, a[i]);
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Ft(e, t) {
|
|
79
79
|
this.name = "AggregateError", this.errors = e, this.message = t || "";
|
|
80
80
|
}
|
|
81
|
-
|
|
82
|
-
function
|
|
81
|
+
Ft.prototype = Error.prototype;
|
|
82
|
+
function Mt(e) {
|
|
83
83
|
var t = this;
|
|
84
84
|
return new t(function(n, o) {
|
|
85
85
|
if (!(e && typeof e.length != "undefined"))
|
|
86
86
|
return o(new TypeError("Promise.any accepts an array"));
|
|
87
|
-
var
|
|
88
|
-
if (
|
|
89
|
-
for (var
|
|
87
|
+
var a = Array.prototype.slice.call(e);
|
|
88
|
+
if (a.length === 0) return o();
|
|
89
|
+
for (var l = [], u = 0; u < a.length; u++)
|
|
90
90
|
try {
|
|
91
|
-
t.resolve(
|
|
92
|
-
|
|
93
|
-
new
|
|
94
|
-
|
|
91
|
+
t.resolve(a[u]).then(n).catch(function(i) {
|
|
92
|
+
l.push(i), l.length === a.length && o(
|
|
93
|
+
new Ft(
|
|
94
|
+
l,
|
|
95
95
|
"All promises were rejected"
|
|
96
96
|
)
|
|
97
97
|
);
|
|
@@ -101,161 +101,161 @@ function Ft(e) {
|
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
var
|
|
105
|
-
function
|
|
104
|
+
var Hn = setTimeout;
|
|
105
|
+
function Nt(e) {
|
|
106
106
|
return !!(e && typeof e.length != "undefined");
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function $n() {
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Un(e, t) {
|
|
111
111
|
return function() {
|
|
112
112
|
e.apply(t, arguments);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
if (!(this instanceof
|
|
115
|
+
function M(e) {
|
|
116
|
+
if (!(this instanceof M))
|
|
117
117
|
throw new TypeError("Promises must be constructed via new");
|
|
118
118
|
if (typeof e != "function") throw new TypeError("not a function");
|
|
119
|
-
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [],
|
|
119
|
+
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], At(e, this);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Vt(e, t) {
|
|
122
122
|
for (; e._state === 3; )
|
|
123
123
|
e = e._value;
|
|
124
124
|
if (e._state === 0) {
|
|
125
125
|
e._deferreds.push(t);
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
|
-
e._handled = !0,
|
|
128
|
+
e._handled = !0, M._immediateFn(function() {
|
|
129
129
|
var n = e._state === 1 ? t.onFulfilled : t.onRejected;
|
|
130
130
|
if (n === null) {
|
|
131
|
-
(e._state === 1 ?
|
|
131
|
+
(e._state === 1 ? Ke : _e)(t.promise, e._value);
|
|
132
132
|
return;
|
|
133
133
|
}
|
|
134
134
|
var o;
|
|
135
135
|
try {
|
|
136
136
|
o = n(e._value);
|
|
137
|
-
} catch (
|
|
138
|
-
|
|
137
|
+
} catch (a) {
|
|
138
|
+
_e(t.promise, a);
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
|
-
|
|
141
|
+
Ke(t.promise, o);
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function Ke(e, t) {
|
|
145
145
|
try {
|
|
146
146
|
if (t === e)
|
|
147
147
|
throw new TypeError("A promise cannot be resolved with itself.");
|
|
148
148
|
if (t && (typeof t == "object" || typeof t == "function")) {
|
|
149
149
|
var n = t.then;
|
|
150
|
-
if (t instanceof
|
|
151
|
-
e._state = 3, e._value = t,
|
|
150
|
+
if (t instanceof M) {
|
|
151
|
+
e._state = 3, e._value = t, Ye(e);
|
|
152
152
|
return;
|
|
153
153
|
} else if (typeof n == "function") {
|
|
154
|
-
|
|
154
|
+
At(Un(n, t), e);
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
e._state = 1, e._value = t,
|
|
158
|
+
e._state = 1, e._value = t, Ye(e);
|
|
159
159
|
} catch (o) {
|
|
160
|
-
|
|
160
|
+
_e(e, o);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
e._state = 2, e._value = t,
|
|
163
|
+
function _e(e, t) {
|
|
164
|
+
e._state = 2, e._value = t, Ye(e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
e._state === 2 && e._deferreds.length === 0 &&
|
|
168
|
-
e._handled ||
|
|
166
|
+
function Ye(e) {
|
|
167
|
+
e._state === 2 && e._deferreds.length === 0 && M._immediateFn(function() {
|
|
168
|
+
e._handled || M._unhandledRejectionFn(e._value);
|
|
169
169
|
});
|
|
170
170
|
for (var t = 0, n = e._deferreds.length; t < n; t++)
|
|
171
|
-
|
|
171
|
+
Vt(e, e._deferreds[t]);
|
|
172
172
|
e._deferreds = null;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Bn(e, t, n) {
|
|
175
175
|
this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.promise = n;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function At(e, t) {
|
|
178
178
|
var n = !1;
|
|
179
179
|
try {
|
|
180
180
|
e(
|
|
181
181
|
function(o) {
|
|
182
|
-
n || (n = !0,
|
|
182
|
+
n || (n = !0, Ke(t, o));
|
|
183
183
|
},
|
|
184
184
|
function(o) {
|
|
185
|
-
n || (n = !0,
|
|
185
|
+
n || (n = !0, _e(t, o));
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
} catch (o) {
|
|
189
189
|
if (n) return;
|
|
190
|
-
n = !0,
|
|
190
|
+
n = !0, _e(t, o);
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
M.prototype.catch = function(e) {
|
|
194
194
|
return this.then(null, e);
|
|
195
195
|
};
|
|
196
|
-
|
|
197
|
-
var n = new this.constructor(
|
|
198
|
-
return
|
|
196
|
+
M.prototype.then = function(e, t) {
|
|
197
|
+
var n = new this.constructor($n);
|
|
198
|
+
return Vt(this, new Bn(e, t, n)), n;
|
|
199
199
|
};
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
return new
|
|
203
|
-
if (!
|
|
200
|
+
M.prototype.finally = It;
|
|
201
|
+
M.all = function(e) {
|
|
202
|
+
return new M(function(t, n) {
|
|
203
|
+
if (!Nt(e))
|
|
204
204
|
return n(new TypeError("Promise.all accepts an array"));
|
|
205
205
|
var o = Array.prototype.slice.call(e);
|
|
206
206
|
if (o.length === 0) return t([]);
|
|
207
|
-
var
|
|
208
|
-
function
|
|
207
|
+
var a = o.length;
|
|
208
|
+
function l(i, c) {
|
|
209
209
|
try {
|
|
210
|
-
if (
|
|
211
|
-
var d =
|
|
210
|
+
if (c && (typeof c == "object" || typeof c == "function")) {
|
|
211
|
+
var d = c.then;
|
|
212
212
|
if (typeof d == "function") {
|
|
213
213
|
d.call(
|
|
214
|
-
|
|
214
|
+
c,
|
|
215
215
|
function(g) {
|
|
216
|
-
|
|
216
|
+
l(i, g);
|
|
217
217
|
},
|
|
218
218
|
n
|
|
219
219
|
);
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
o[i] =
|
|
223
|
+
o[i] = c, --a === 0 && t(o);
|
|
224
224
|
} catch (g) {
|
|
225
225
|
n(g);
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
for (var u = 0; u < o.length; u++)
|
|
229
|
-
|
|
229
|
+
l(u, o[u]);
|
|
230
230
|
});
|
|
231
231
|
};
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
return e && typeof e == "object" && e.constructor ===
|
|
232
|
+
M.any = Mt;
|
|
233
|
+
M.allSettled = Dt;
|
|
234
|
+
M.resolve = function(e) {
|
|
235
|
+
return e && typeof e == "object" && e.constructor === M ? e : new M(function(t) {
|
|
236
236
|
t(e);
|
|
237
237
|
});
|
|
238
238
|
};
|
|
239
|
-
|
|
240
|
-
return new
|
|
239
|
+
M.reject = function(e) {
|
|
240
|
+
return new M(function(t, n) {
|
|
241
241
|
n(e);
|
|
242
242
|
});
|
|
243
243
|
};
|
|
244
|
-
|
|
245
|
-
return new
|
|
246
|
-
if (!
|
|
244
|
+
M.race = function(e) {
|
|
245
|
+
return new M(function(t, n) {
|
|
246
|
+
if (!Nt(e))
|
|
247
247
|
return n(new TypeError("Promise.race accepts an array"));
|
|
248
|
-
for (var o = 0,
|
|
249
|
-
|
|
248
|
+
for (var o = 0, a = e.length; o < a; o++)
|
|
249
|
+
M.resolve(e[o]).then(t, n);
|
|
250
250
|
});
|
|
251
251
|
};
|
|
252
|
-
|
|
252
|
+
M._immediateFn = // @ts-ignore
|
|
253
253
|
typeof setImmediate == "function" && function(e) {
|
|
254
254
|
setImmediate(e);
|
|
255
255
|
} || function(e) {
|
|
256
|
-
|
|
256
|
+
Hn(e, 0);
|
|
257
257
|
};
|
|
258
|
-
|
|
258
|
+
M._unhandledRejectionFn = function(t) {
|
|
259
259
|
typeof console != "undefined" && console && console.warn("Possible Unhandled Promise Rejection:", t);
|
|
260
260
|
};
|
|
261
261
|
var ae = (function() {
|
|
@@ -267,35 +267,35 @@ var ae = (function() {
|
|
|
267
267
|
return global;
|
|
268
268
|
throw new Error("unable to locate global object");
|
|
269
269
|
})();
|
|
270
|
-
typeof ae.Promise != "function" ? ae.Promise =
|
|
271
|
-
var
|
|
272
|
-
var
|
|
273
|
-
function
|
|
274
|
-
if (
|
|
275
|
-
|
|
276
|
-
var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty,
|
|
277
|
-
function u(i,
|
|
278
|
-
var g, y = {}, v = null,
|
|
279
|
-
d !== void 0 && (v = "" + d),
|
|
280
|
-
for (g in
|
|
281
|
-
if (i && i.defaultProps) for (g in
|
|
282
|
-
return { $$typeof: t, type: i, key: v, ref:
|
|
270
|
+
typeof ae.Promise != "function" ? ae.Promise = M : (ae.Promise.prototype.finally || (ae.Promise.prototype.finally = It), ae.Promise.allSettled || (ae.Promise.allSettled = Dt), ae.Promise.any || (ae.Promise.any = Mt));
|
|
271
|
+
var Pe = { exports: {} }, ge = {};
|
|
272
|
+
var gt;
|
|
273
|
+
function zn() {
|
|
274
|
+
if (gt) return ge;
|
|
275
|
+
gt = 1;
|
|
276
|
+
var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = 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 };
|
|
277
|
+
function u(i, c, d) {
|
|
278
|
+
var g, y = {}, v = null, x = null;
|
|
279
|
+
d !== void 0 && (v = "" + d), c.key !== void 0 && (v = "" + c.key), c.ref !== void 0 && (x = c.ref);
|
|
280
|
+
for (g in c) o.call(c, g) && !l.hasOwnProperty(g) && (y[g] = c[g]);
|
|
281
|
+
if (i && i.defaultProps) for (g in c = i.defaultProps, c) y[g] === void 0 && (y[g] = c[g]);
|
|
282
|
+
return { $$typeof: t, type: i, key: v, ref: x, props: y, _owner: a.current };
|
|
283
283
|
}
|
|
284
284
|
return ge.Fragment = n, ge.jsx = u, ge.jsxs = u, ge;
|
|
285
285
|
}
|
|
286
286
|
var we = {};
|
|
287
|
-
var
|
|
288
|
-
function
|
|
289
|
-
return
|
|
290
|
-
var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"),
|
|
291
|
-
function
|
|
287
|
+
var wt;
|
|
288
|
+
function qn() {
|
|
289
|
+
return wt || (wt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
290
|
+
var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), P = Symbol.iterator, b = "@@iterator";
|
|
291
|
+
function E(r) {
|
|
292
292
|
if (r === null || typeof r != "object")
|
|
293
293
|
return null;
|
|
294
|
-
var h =
|
|
294
|
+
var h = P && r[P] || r[b];
|
|
295
295
|
return typeof h == "function" ? h : null;
|
|
296
296
|
}
|
|
297
|
-
var
|
|
298
|
-
function
|
|
297
|
+
var N = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
298
|
+
function S(r) {
|
|
299
299
|
{
|
|
300
300
|
for (var h = arguments.length, m = new Array(h > 1 ? h - 1 : 0), w = 1; w < h; w++)
|
|
301
301
|
m[w - 1] = arguments[w];
|
|
@@ -304,37 +304,37 @@ function zn() {
|
|
|
304
304
|
}
|
|
305
305
|
function k(r, h, m) {
|
|
306
306
|
{
|
|
307
|
-
var w =
|
|
308
|
-
|
|
309
|
-
var
|
|
310
|
-
return String(
|
|
307
|
+
var w = N.ReactDebugCurrentFrame, R = w.getStackAddendum();
|
|
308
|
+
R !== "" && (h += "%s", m = m.concat([R]));
|
|
309
|
+
var j = m.map(function(C) {
|
|
310
|
+
return String(C);
|
|
311
311
|
});
|
|
312
|
-
|
|
312
|
+
j.unshift("Warning: " + h), Function.prototype.apply.call(console[r], console, j);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
var
|
|
316
|
-
|
|
317
|
-
function
|
|
318
|
-
return !!(typeof r == "string" || typeof r == "function" || r === o || r ===
|
|
315
|
+
var _ = !1, I = !1, p = !1, $ = !1, G = !1, Z;
|
|
316
|
+
Z = Symbol.for("react.module.reference");
|
|
317
|
+
function O(r) {
|
|
318
|
+
return !!(typeof r == "string" || typeof r == "function" || r === o || r === l || G || r === a || r === d || r === g || $ || r === x || _ || I || p || typeof r == "object" && r !== null && (r.$$typeof === v || r.$$typeof === y || r.$$typeof === u || r.$$typeof === i || r.$$typeof === c || // This needs to include all possible module reference object
|
|
319
319
|
// types supported by any Flight configuration anywhere since
|
|
320
320
|
// we don't know which Flight build this will end up being used
|
|
321
321
|
// with.
|
|
322
|
-
r.$$typeof ===
|
|
322
|
+
r.$$typeof === Z || r.getModuleId !== void 0));
|
|
323
323
|
}
|
|
324
324
|
function D(r, h, m) {
|
|
325
325
|
var w = r.displayName;
|
|
326
326
|
if (w)
|
|
327
327
|
return w;
|
|
328
|
-
var
|
|
329
|
-
return
|
|
328
|
+
var R = h.displayName || h.name || "";
|
|
329
|
+
return R !== "" ? m + "(" + R + ")" : m;
|
|
330
330
|
}
|
|
331
331
|
function Q(r) {
|
|
332
332
|
return r.displayName || "Context";
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function K(r) {
|
|
335
335
|
if (r == null)
|
|
336
336
|
return null;
|
|
337
|
-
if (typeof r.tag == "number" &&
|
|
337
|
+
if (typeof r.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
338
338
|
return r.displayName || r.name || null;
|
|
339
339
|
if (typeof r == "string")
|
|
340
340
|
return r;
|
|
@@ -343,9 +343,9 @@ function zn() {
|
|
|
343
343
|
return "Fragment";
|
|
344
344
|
case n:
|
|
345
345
|
return "Portal";
|
|
346
|
-
case
|
|
346
|
+
case l:
|
|
347
347
|
return "Profiler";
|
|
348
|
-
case
|
|
348
|
+
case a:
|
|
349
349
|
return "StrictMode";
|
|
350
350
|
case d:
|
|
351
351
|
return "Suspense";
|
|
@@ -360,34 +360,34 @@ function zn() {
|
|
|
360
360
|
case u:
|
|
361
361
|
var m = r;
|
|
362
362
|
return Q(m._context) + ".Provider";
|
|
363
|
-
case
|
|
363
|
+
case c:
|
|
364
364
|
return D(r, r.render, "ForwardRef");
|
|
365
365
|
case y:
|
|
366
366
|
var w = r.displayName || null;
|
|
367
|
-
return w !== null ? w :
|
|
367
|
+
return w !== null ? w : K(r.type) || "Memo";
|
|
368
368
|
case v: {
|
|
369
|
-
var
|
|
369
|
+
var R = r, j = R._payload, C = R._init;
|
|
370
370
|
try {
|
|
371
|
-
return
|
|
372
|
-
} catch (
|
|
371
|
+
return K(C(j));
|
|
372
|
+
} catch (T) {
|
|
373
373
|
return null;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
return null;
|
|
378
378
|
}
|
|
379
|
-
var
|
|
380
|
-
function
|
|
379
|
+
var q = Object.assign, oe = 0, ue, te, W, ve, Xe, Ge, Je;
|
|
380
|
+
function Qe() {
|
|
381
381
|
}
|
|
382
|
-
|
|
383
|
-
function
|
|
382
|
+
Qe.__reactDisabledLog = !0;
|
|
383
|
+
function ln() {
|
|
384
384
|
{
|
|
385
385
|
if (oe === 0) {
|
|
386
|
-
ue = console.log, te = console.info,
|
|
386
|
+
ue = console.log, te = console.info, W = console.warn, ve = console.error, Xe = console.group, Ge = console.groupCollapsed, Je = console.groupEnd;
|
|
387
387
|
var r = {
|
|
388
388
|
configurable: !0,
|
|
389
389
|
enumerable: !0,
|
|
390
|
-
value:
|
|
390
|
+
value: Qe,
|
|
391
391
|
writable: !0
|
|
392
392
|
};
|
|
393
393
|
Object.defineProperties(console, {
|
|
@@ -403,7 +403,7 @@ function zn() {
|
|
|
403
403
|
oe++;
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function cn() {
|
|
407
407
|
{
|
|
408
408
|
if (oe--, oe === 0) {
|
|
409
409
|
var r = {
|
|
@@ -412,88 +412,88 @@ function zn() {
|
|
|
412
412
|
writable: !0
|
|
413
413
|
};
|
|
414
414
|
Object.defineProperties(console, {
|
|
415
|
-
log:
|
|
415
|
+
log: q({}, r, {
|
|
416
416
|
value: ue
|
|
417
417
|
}),
|
|
418
|
-
info:
|
|
418
|
+
info: q({}, r, {
|
|
419
419
|
value: te
|
|
420
420
|
}),
|
|
421
|
-
warn:
|
|
422
|
-
value:
|
|
421
|
+
warn: q({}, r, {
|
|
422
|
+
value: W
|
|
423
423
|
}),
|
|
424
|
-
error:
|
|
424
|
+
error: q({}, r, {
|
|
425
425
|
value: ve
|
|
426
426
|
}),
|
|
427
|
-
group:
|
|
428
|
-
value: Ye
|
|
429
|
-
}),
|
|
430
|
-
groupCollapsed: z({}, r, {
|
|
427
|
+
group: q({}, r, {
|
|
431
428
|
value: Xe
|
|
432
429
|
}),
|
|
433
|
-
|
|
430
|
+
groupCollapsed: q({}, r, {
|
|
434
431
|
value: Ge
|
|
432
|
+
}),
|
|
433
|
+
groupEnd: q({}, r, {
|
|
434
|
+
value: Je
|
|
435
435
|
})
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
|
-
oe < 0 &&
|
|
438
|
+
oe < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
var
|
|
442
|
-
function
|
|
441
|
+
var Oe = N.ReactCurrentDispatcher, He;
|
|
442
|
+
function Ce(r, h, m) {
|
|
443
443
|
{
|
|
444
|
-
if (
|
|
444
|
+
if (He === void 0)
|
|
445
445
|
try {
|
|
446
446
|
throw Error();
|
|
447
|
-
} catch (
|
|
448
|
-
var w =
|
|
449
|
-
|
|
447
|
+
} catch (R) {
|
|
448
|
+
var w = R.stack.trim().match(/\n( *(at )?)/);
|
|
449
|
+
He = w && w[1] || "";
|
|
450
450
|
}
|
|
451
451
|
return `
|
|
452
|
-
` +
|
|
452
|
+
` + He + r;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
var
|
|
455
|
+
var $e = !1, Ee;
|
|
456
456
|
{
|
|
457
|
-
var
|
|
458
|
-
|
|
457
|
+
var un = typeof WeakMap == "function" ? WeakMap : Map;
|
|
458
|
+
Ee = new un();
|
|
459
459
|
}
|
|
460
|
-
function
|
|
461
|
-
if (!r ||
|
|
460
|
+
function et(r, h) {
|
|
461
|
+
if (!r || $e)
|
|
462
462
|
return "";
|
|
463
463
|
{
|
|
464
|
-
var m =
|
|
464
|
+
var m = Ee.get(r);
|
|
465
465
|
if (m !== void 0)
|
|
466
466
|
return m;
|
|
467
467
|
}
|
|
468
468
|
var w;
|
|
469
|
-
|
|
470
|
-
var
|
|
469
|
+
$e = !0;
|
|
470
|
+
var R = Error.prepareStackTrace;
|
|
471
471
|
Error.prepareStackTrace = void 0;
|
|
472
|
-
var
|
|
473
|
-
|
|
472
|
+
var j;
|
|
473
|
+
j = Oe.current, Oe.current = null, ln();
|
|
474
474
|
try {
|
|
475
475
|
if (h) {
|
|
476
|
-
var
|
|
476
|
+
var C = function() {
|
|
477
477
|
throw Error();
|
|
478
478
|
};
|
|
479
|
-
if (Object.defineProperty(
|
|
479
|
+
if (Object.defineProperty(C.prototype, "props", {
|
|
480
480
|
set: function() {
|
|
481
481
|
throw Error();
|
|
482
482
|
}
|
|
483
483
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
484
484
|
try {
|
|
485
|
-
Reflect.construct(
|
|
485
|
+
Reflect.construct(C, []);
|
|
486
486
|
} catch (J) {
|
|
487
487
|
w = J;
|
|
488
488
|
}
|
|
489
|
-
Reflect.construct(r, [],
|
|
489
|
+
Reflect.construct(r, [], C);
|
|
490
490
|
} else {
|
|
491
491
|
try {
|
|
492
|
-
|
|
492
|
+
C.call();
|
|
493
493
|
} catch (J) {
|
|
494
494
|
w = J;
|
|
495
495
|
}
|
|
496
|
-
r.call(
|
|
496
|
+
r.call(C.prototype);
|
|
497
497
|
}
|
|
498
498
|
} else {
|
|
499
499
|
try {
|
|
@@ -505,33 +505,33 @@ function zn() {
|
|
|
505
505
|
}
|
|
506
506
|
} catch (J) {
|
|
507
507
|
if (J && w && typeof J.stack == "string") {
|
|
508
|
-
for (var
|
|
508
|
+
for (var T = J.stack.split(`
|
|
509
509
|
`), Y = w.stack.split(`
|
|
510
|
-
`),
|
|
511
|
-
|
|
512
|
-
for (;
|
|
513
|
-
if (
|
|
514
|
-
if (
|
|
510
|
+
`), H = T.length - 1, U = Y.length - 1; H >= 1 && U >= 0 && T[H] !== Y[U]; )
|
|
511
|
+
U--;
|
|
512
|
+
for (; H >= 1 && U >= 0; H--, U--)
|
|
513
|
+
if (T[H] !== Y[U]) {
|
|
514
|
+
if (H !== 1 || U !== 1)
|
|
515
515
|
do
|
|
516
|
-
if (
|
|
516
|
+
if (H--, U--, U < 0 || T[H] !== Y[U]) {
|
|
517
517
|
var ee = `
|
|
518
|
-
` +
|
|
519
|
-
return r.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", r.displayName)), typeof r == "function" &&
|
|
518
|
+
` + T[H].replace(" at new ", " at ");
|
|
519
|
+
return r.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", r.displayName)), typeof r == "function" && Ee.set(r, ee), ee;
|
|
520
520
|
}
|
|
521
|
-
while (
|
|
521
|
+
while (H >= 1 && U >= 0);
|
|
522
522
|
break;
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
} finally {
|
|
526
|
-
|
|
526
|
+
$e = !1, Oe.current = j, cn(), Error.prepareStackTrace = R;
|
|
527
527
|
}
|
|
528
|
-
var fe = r ? r.displayName || r.name : "", ce = fe ?
|
|
529
|
-
return typeof r == "function" &&
|
|
528
|
+
var fe = r ? r.displayName || r.name : "", ce = fe ? Ce(fe) : "";
|
|
529
|
+
return typeof r == "function" && Ee.set(r, ce), ce;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
532
|
-
return
|
|
531
|
+
function dn(r, h, m) {
|
|
532
|
+
return et(r, !1);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function fn(r) {
|
|
535
535
|
var h = r.prototype;
|
|
536
536
|
return !!(h && h.isReactComponent);
|
|
537
537
|
}
|
|
@@ -539,89 +539,89 @@ function zn() {
|
|
|
539
539
|
if (r == null)
|
|
540
540
|
return "";
|
|
541
541
|
if (typeof r == "function")
|
|
542
|
-
return
|
|
542
|
+
return et(r, fn(r));
|
|
543
543
|
if (typeof r == "string")
|
|
544
|
-
return
|
|
544
|
+
return Ce(r);
|
|
545
545
|
switch (r) {
|
|
546
546
|
case d:
|
|
547
|
-
return
|
|
547
|
+
return Ce("Suspense");
|
|
548
548
|
case g:
|
|
549
|
-
return
|
|
549
|
+
return Ce("SuspenseList");
|
|
550
550
|
}
|
|
551
551
|
if (typeof r == "object")
|
|
552
552
|
switch (r.$$typeof) {
|
|
553
|
-
case
|
|
554
|
-
return
|
|
553
|
+
case c:
|
|
554
|
+
return dn(r.render);
|
|
555
555
|
case y:
|
|
556
556
|
return Re(r.type, h, m);
|
|
557
557
|
case v: {
|
|
558
|
-
var w = r,
|
|
558
|
+
var w = r, R = w._payload, j = w._init;
|
|
559
559
|
try {
|
|
560
|
-
return Re(
|
|
561
|
-
} catch (
|
|
560
|
+
return Re(j(R), h, m);
|
|
561
|
+
} catch (C) {
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
return "";
|
|
566
566
|
}
|
|
567
|
-
var ye = Object.prototype.hasOwnProperty,
|
|
568
|
-
function
|
|
567
|
+
var ye = Object.prototype.hasOwnProperty, tt = {}, nt = N.ReactDebugCurrentFrame;
|
|
568
|
+
function be(r) {
|
|
569
569
|
if (r) {
|
|
570
570
|
var h = r._owner, m = Re(r.type, r._source, h ? h.type : null);
|
|
571
|
-
|
|
571
|
+
nt.setExtraStackFrame(m);
|
|
572
572
|
} else
|
|
573
|
-
|
|
573
|
+
nt.setExtraStackFrame(null);
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function hn(r, h, m, w, R) {
|
|
576
576
|
{
|
|
577
|
-
var
|
|
578
|
-
for (var
|
|
579
|
-
if (
|
|
580
|
-
var
|
|
577
|
+
var j = Function.call.bind(ye);
|
|
578
|
+
for (var C in r)
|
|
579
|
+
if (j(r, C)) {
|
|
580
|
+
var T = void 0;
|
|
581
581
|
try {
|
|
582
|
-
if (typeof r[
|
|
583
|
-
var Y = Error((w || "React class") + ": " + m + " type `" +
|
|
582
|
+
if (typeof r[C] != "function") {
|
|
583
|
+
var Y = Error((w || "React class") + ": " + m + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
584
584
|
throw Y.name = "Invariant Violation", Y;
|
|
585
585
|
}
|
|
586
|
-
|
|
587
|
-
} catch (
|
|
588
|
-
|
|
586
|
+
T = r[C](h, C, w, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
587
|
+
} catch (H) {
|
|
588
|
+
T = H;
|
|
589
589
|
}
|
|
590
|
-
|
|
590
|
+
T && !(T instanceof Error) && (be(R), S("%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).", w || "React class", m, C, typeof T), be(null)), T instanceof Error && !(T.message in tt) && (tt[T.message] = !0, be(R), S("Failed %s type: %s", m, T.message), be(null));
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
var
|
|
595
|
-
function
|
|
596
|
-
return
|
|
594
|
+
var mn = Array.isArray;
|
|
595
|
+
function Ue(r) {
|
|
596
|
+
return mn(r);
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function pn(r) {
|
|
599
599
|
{
|
|
600
600
|
var h = typeof Symbol == "function" && Symbol.toStringTag, m = h && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
601
601
|
return m;
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function vn(r) {
|
|
605
605
|
try {
|
|
606
|
-
return
|
|
606
|
+
return rt(r), !1;
|
|
607
607
|
} catch (h) {
|
|
608
608
|
return !0;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function rt(r) {
|
|
612
612
|
return "" + r;
|
|
613
613
|
}
|
|
614
|
-
function
|
|
615
|
-
if (
|
|
616
|
-
return
|
|
614
|
+
function ot(r) {
|
|
615
|
+
if (vn(r))
|
|
616
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pn(r)), rt(r);
|
|
617
617
|
}
|
|
618
|
-
var
|
|
618
|
+
var it = N.ReactCurrentOwner, yn = {
|
|
619
619
|
key: !0,
|
|
620
620
|
ref: !0,
|
|
621
621
|
__self: !0,
|
|
622
622
|
__source: !0
|
|
623
|
-
},
|
|
624
|
-
function
|
|
623
|
+
}, st, at;
|
|
624
|
+
function gn(r) {
|
|
625
625
|
if (ye.call(r, "ref")) {
|
|
626
626
|
var h = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
627
627
|
if (h && h.isReactWarning)
|
|
@@ -629,7 +629,7 @@ function zn() {
|
|
|
629
629
|
}
|
|
630
630
|
return r.ref !== void 0;
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function wn(r) {
|
|
633
633
|
if (ye.call(r, "key")) {
|
|
634
634
|
var h = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
635
635
|
if (h && h.isReactWarning)
|
|
@@ -637,13 +637,13 @@ function zn() {
|
|
|
637
637
|
}
|
|
638
638
|
return r.key !== void 0;
|
|
639
639
|
}
|
|
640
|
-
function
|
|
641
|
-
typeof r.ref == "string" &&
|
|
640
|
+
function _n(r, h) {
|
|
641
|
+
typeof r.ref == "string" && it.current;
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function xn(r, h) {
|
|
644
644
|
{
|
|
645
645
|
var m = function() {
|
|
646
|
-
|
|
646
|
+
st || (st = !0, S("%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)", h));
|
|
647
647
|
};
|
|
648
648
|
m.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
649
649
|
get: m,
|
|
@@ -651,10 +651,10 @@ function zn() {
|
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function Tn(r, h) {
|
|
655
655
|
{
|
|
656
656
|
var m = function() {
|
|
657
|
-
|
|
657
|
+
at || (at = !0, S("%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)", h));
|
|
658
658
|
};
|
|
659
659
|
m.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
660
660
|
get: m,
|
|
@@ -662,70 +662,70 @@ function zn() {
|
|
|
662
662
|
});
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
var
|
|
666
|
-
var
|
|
665
|
+
var Cn = function(r, h, m, w, R, j, C) {
|
|
666
|
+
var T = {
|
|
667
667
|
// This tag allows us to uniquely identify this as a React Element
|
|
668
668
|
$$typeof: t,
|
|
669
669
|
// Built-in properties that belong on the element
|
|
670
670
|
type: r,
|
|
671
671
|
key: h,
|
|
672
672
|
ref: m,
|
|
673
|
-
props:
|
|
673
|
+
props: C,
|
|
674
674
|
// Record the component responsible for creating this element.
|
|
675
|
-
_owner:
|
|
675
|
+
_owner: j
|
|
676
676
|
};
|
|
677
|
-
return
|
|
677
|
+
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
678
678
|
configurable: !1,
|
|
679
679
|
enumerable: !1,
|
|
680
680
|
writable: !0,
|
|
681
681
|
value: !1
|
|
682
|
-
}), Object.defineProperty(
|
|
682
|
+
}), Object.defineProperty(T, "_self", {
|
|
683
683
|
configurable: !1,
|
|
684
684
|
enumerable: !1,
|
|
685
685
|
writable: !1,
|
|
686
686
|
value: w
|
|
687
|
-
}), Object.defineProperty(
|
|
687
|
+
}), Object.defineProperty(T, "_source", {
|
|
688
688
|
configurable: !1,
|
|
689
689
|
enumerable: !1,
|
|
690
690
|
writable: !1,
|
|
691
|
-
value:
|
|
692
|
-
}), Object.freeze && (Object.freeze(
|
|
691
|
+
value: R
|
|
692
|
+
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
693
693
|
};
|
|
694
|
-
function En(r, h, m, w,
|
|
694
|
+
function En(r, h, m, w, R) {
|
|
695
695
|
{
|
|
696
|
-
var
|
|
697
|
-
m !== void 0 && (
|
|
698
|
-
for (
|
|
699
|
-
ye.call(h,
|
|
696
|
+
var j, C = {}, T = null, Y = null;
|
|
697
|
+
m !== void 0 && (ot(m), T = "" + m), wn(h) && (ot(h.key), T = "" + h.key), gn(h) && (Y = h.ref, _n(h, R));
|
|
698
|
+
for (j in h)
|
|
699
|
+
ye.call(h, j) && !yn.hasOwnProperty(j) && (C[j] = h[j]);
|
|
700
700
|
if (r && r.defaultProps) {
|
|
701
|
-
var
|
|
702
|
-
for (
|
|
703
|
-
|
|
701
|
+
var H = r.defaultProps;
|
|
702
|
+
for (j in H)
|
|
703
|
+
C[j] === void 0 && (C[j] = H[j]);
|
|
704
704
|
}
|
|
705
|
-
if (
|
|
706
|
-
var
|
|
707
|
-
|
|
705
|
+
if (T || Y) {
|
|
706
|
+
var U = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
707
|
+
T && xn(C, U), Y && Tn(C, U);
|
|
708
708
|
}
|
|
709
|
-
return
|
|
709
|
+
return Cn(r, T, Y, R, w, it.current, C);
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
|
-
var
|
|
712
|
+
var Be = N.ReactCurrentOwner, lt = N.ReactDebugCurrentFrame;
|
|
713
713
|
function de(r) {
|
|
714
714
|
if (r) {
|
|
715
715
|
var h = r._owner, m = Re(r.type, r._source, h ? h.type : null);
|
|
716
|
-
|
|
716
|
+
lt.setExtraStackFrame(m);
|
|
717
717
|
} else
|
|
718
|
-
|
|
718
|
+
lt.setExtraStackFrame(null);
|
|
719
719
|
}
|
|
720
|
-
var
|
|
721
|
-
|
|
722
|
-
function
|
|
720
|
+
var ze;
|
|
721
|
+
ze = !1;
|
|
722
|
+
function qe(r) {
|
|
723
723
|
return typeof r == "object" && r !== null && r.$$typeof === t;
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function ct() {
|
|
726
726
|
{
|
|
727
|
-
if (
|
|
728
|
-
var r =
|
|
727
|
+
if (Be.current) {
|
|
728
|
+
var r = K(Be.current.type);
|
|
729
729
|
if (r)
|
|
730
730
|
return `
|
|
731
731
|
|
|
@@ -734,13 +734,13 @@ Check the render method of \`` + r + "`.";
|
|
|
734
734
|
return "";
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function Rn(r) {
|
|
738
738
|
return "";
|
|
739
739
|
}
|
|
740
|
-
var
|
|
741
|
-
function
|
|
740
|
+
var ut = {};
|
|
741
|
+
function bn(r) {
|
|
742
742
|
{
|
|
743
|
-
var h =
|
|
743
|
+
var h = ct();
|
|
744
744
|
if (!h) {
|
|
745
745
|
var m = typeof r == "string" ? r : r.displayName || r.name;
|
|
746
746
|
m && (h = `
|
|
@@ -750,35 +750,35 @@ Check the top-level render call using <` + m + ">.");
|
|
|
750
750
|
return h;
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function dt(r, h) {
|
|
754
754
|
{
|
|
755
755
|
if (!r._store || r._store.validated || r.key != null)
|
|
756
756
|
return;
|
|
757
757
|
r._store.validated = !0;
|
|
758
|
-
var m =
|
|
759
|
-
if (
|
|
758
|
+
var m = bn(h);
|
|
759
|
+
if (ut[m])
|
|
760
760
|
return;
|
|
761
|
-
|
|
761
|
+
ut[m] = !0;
|
|
762
762
|
var w = "";
|
|
763
|
-
r && r._owner && r._owner !==
|
|
763
|
+
r && r._owner && r._owner !== Be.current && (w = " It was passed a child from " + K(r._owner.type) + "."), de(r), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, w), de(null);
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function ft(r, h) {
|
|
767
767
|
{
|
|
768
768
|
if (typeof r != "object")
|
|
769
769
|
return;
|
|
770
|
-
if (
|
|
770
|
+
if (Ue(r))
|
|
771
771
|
for (var m = 0; m < r.length; m++) {
|
|
772
772
|
var w = r[m];
|
|
773
|
-
|
|
773
|
+
qe(w) && dt(w, h);
|
|
774
774
|
}
|
|
775
|
-
else if (
|
|
775
|
+
else if (qe(r))
|
|
776
776
|
r._store && (r._store.validated = !0);
|
|
777
777
|
else if (r) {
|
|
778
|
-
var
|
|
779
|
-
if (typeof
|
|
780
|
-
for (var
|
|
781
|
-
|
|
778
|
+
var R = E(r);
|
|
779
|
+
if (typeof R == "function" && R !== r.entries)
|
|
780
|
+
for (var j = R.call(r), C; !(C = j.next()).done; )
|
|
781
|
+
qe(C.value) && dt(C.value, h);
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
}
|
|
@@ -790,106 +790,106 @@ Check the top-level render call using <` + m + ">.");
|
|
|
790
790
|
var m;
|
|
791
791
|
if (typeof h == "function")
|
|
792
792
|
m = h.propTypes;
|
|
793
|
-
else if (typeof h == "object" && (h.$$typeof ===
|
|
793
|
+
else if (typeof h == "object" && (h.$$typeof === c || // Note: Memo only checks outer props here.
|
|
794
794
|
// Inner props are checked in the reconciler.
|
|
795
795
|
h.$$typeof === y))
|
|
796
796
|
m = h.propTypes;
|
|
797
797
|
else
|
|
798
798
|
return;
|
|
799
799
|
if (m) {
|
|
800
|
-
var w =
|
|
801
|
-
|
|
802
|
-
} else if (h.PropTypes !== void 0 && !
|
|
803
|
-
|
|
804
|
-
var
|
|
805
|
-
|
|
800
|
+
var w = K(h);
|
|
801
|
+
hn(m, r.props, "prop", w, r);
|
|
802
|
+
} else if (h.PropTypes !== void 0 && !ze) {
|
|
803
|
+
ze = !0;
|
|
804
|
+
var R = K(h);
|
|
805
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
|
|
806
806
|
}
|
|
807
|
-
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved &&
|
|
807
|
+
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function jn(r) {
|
|
811
811
|
{
|
|
812
812
|
for (var h = Object.keys(r.props), m = 0; m < h.length; m++) {
|
|
813
813
|
var w = h[m];
|
|
814
814
|
if (w !== "children" && w !== "key") {
|
|
815
|
-
de(r),
|
|
815
|
+
de(r), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), de(null);
|
|
816
816
|
break;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
r.ref !== null && (de(r),
|
|
819
|
+
r.ref !== null && (de(r), S("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
|
-
var
|
|
823
|
-
function
|
|
822
|
+
var ht = {};
|
|
823
|
+
function mt(r, h, m, w, R, j) {
|
|
824
824
|
{
|
|
825
|
-
var
|
|
826
|
-
if (!
|
|
827
|
-
var
|
|
828
|
-
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (
|
|
829
|
-
var Y =
|
|
830
|
-
Y ?
|
|
831
|
-
var
|
|
832
|
-
r === null ?
|
|
825
|
+
var C = O(r);
|
|
826
|
+
if (!C) {
|
|
827
|
+
var T = "";
|
|
828
|
+
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
829
|
+
var Y = Rn();
|
|
830
|
+
Y ? T += Y : T += ct();
|
|
831
|
+
var H;
|
|
832
|
+
r === null ? H = "null" : Ue(r) ? H = "array" : r !== void 0 && r.$$typeof === t ? (H = "<" + (K(r.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : H = typeof r, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, T);
|
|
833
833
|
}
|
|
834
|
-
var
|
|
835
|
-
if (
|
|
836
|
-
return
|
|
837
|
-
if (
|
|
834
|
+
var U = En(r, h, m, R, j);
|
|
835
|
+
if (U == null)
|
|
836
|
+
return U;
|
|
837
|
+
if (C) {
|
|
838
838
|
var ee = h.children;
|
|
839
839
|
if (ee !== void 0)
|
|
840
840
|
if (w)
|
|
841
|
-
if (
|
|
841
|
+
if (Ue(ee)) {
|
|
842
842
|
for (var fe = 0; fe < ee.length; fe++)
|
|
843
|
-
|
|
843
|
+
ft(ee[fe], r);
|
|
844
844
|
Object.freeze && Object.freeze(ee);
|
|
845
845
|
} else
|
|
846
|
-
|
|
846
|
+
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
847
847
|
else
|
|
848
|
-
|
|
848
|
+
ft(ee, r);
|
|
849
849
|
}
|
|
850
850
|
if (ye.call(h, "key")) {
|
|
851
|
-
var ce =
|
|
852
|
-
return
|
|
853
|
-
}),
|
|
854
|
-
if (!
|
|
855
|
-
var
|
|
856
|
-
|
|
851
|
+
var ce = K(r), J = Object.keys(h).filter(function(Fn) {
|
|
852
|
+
return Fn !== "key";
|
|
853
|
+
}), We = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
854
|
+
if (!ht[ce + We]) {
|
|
855
|
+
var Dn = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
|
|
856
|
+
S(`A props object containing a "key" prop is being spread into JSX:
|
|
857
857
|
let props = %s;
|
|
858
858
|
<%s {...props} />
|
|
859
859
|
React keys must be passed directly to JSX without using spread:
|
|
860
860
|
let props = %s;
|
|
861
|
-
<%s key={someKey} {...props} />`,
|
|
861
|
+
<%s key={someKey} {...props} />`, We, ce, Dn, ce), ht[ce + We] = !0;
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
|
-
return r === o ?
|
|
864
|
+
return r === o ? jn(U) : Sn(U), U;
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
867
|
function Ln(r, h, m) {
|
|
868
|
-
return
|
|
868
|
+
return mt(r, h, m, !0);
|
|
869
869
|
}
|
|
870
870
|
function Pn(r, h, m) {
|
|
871
|
-
return
|
|
871
|
+
return mt(r, h, m, !1);
|
|
872
872
|
}
|
|
873
|
-
var
|
|
874
|
-
we.Fragment = o, we.jsx =
|
|
873
|
+
var kn = Pn, In = Ln;
|
|
874
|
+
we.Fragment = o, we.jsx = kn, we.jsxs = In;
|
|
875
875
|
})()), we;
|
|
876
876
|
}
|
|
877
|
-
var
|
|
878
|
-
function
|
|
879
|
-
return
|
|
880
|
-
}
|
|
881
|
-
var
|
|
882
|
-
const
|
|
883
|
-
playerNotice:
|
|
884
|
-
playerNoticeTitle:
|
|
885
|
-
playerNoticeText:
|
|
886
|
-
playerNoticeLowZIndex:
|
|
887
|
-
},
|
|
888
|
-
function
|
|
889
|
-
const n =
|
|
890
|
-
|
|
877
|
+
var _t;
|
|
878
|
+
function Wn() {
|
|
879
|
+
return _t || (_t = 1, process.env.NODE_ENV === "production" ? Pe.exports = zn() : Pe.exports = qn()), Pe.exports;
|
|
880
|
+
}
|
|
881
|
+
var s = Wn();
|
|
882
|
+
const Zn = "_playerNotice_lq5nz_1", Kn = "_playerNoticeTitle_lq5nz_17", Yn = "_playerNoticeText_lq5nz_26", Xn = "_playerNoticeLowZIndex_lq5nz_35", ie = {
|
|
883
|
+
playerNotice: Zn,
|
|
884
|
+
playerNoticeTitle: Kn,
|
|
885
|
+
playerNoticeText: Yn,
|
|
886
|
+
playerNoticeLowZIndex: Xn
|
|
887
|
+
}, Ot = typeof window != "undefined" ? An : F;
|
|
888
|
+
function Ve(e, t) {
|
|
889
|
+
const n = V(e);
|
|
890
|
+
Ot(() => {
|
|
891
891
|
n.current = e;
|
|
892
|
-
}, [e]),
|
|
892
|
+
}, [e]), F(() => {
|
|
893
893
|
if (t === null)
|
|
894
894
|
return;
|
|
895
895
|
const o = setInterval(() => {
|
|
@@ -900,29 +900,31 @@ function Ke(e, t) {
|
|
|
900
900
|
};
|
|
901
901
|
}, [t]);
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function Gn(e) {
|
|
904
904
|
const [, t] = X(0);
|
|
905
|
-
|
|
905
|
+
Ve(() => t((n) => n + 1), e);
|
|
906
906
|
}
|
|
907
|
-
const
|
|
907
|
+
const Jn = () => Pt((e) => ({
|
|
908
908
|
delay: 0,
|
|
909
909
|
startDate: null,
|
|
910
|
+
viewerCount: null,
|
|
910
911
|
setDelay: (t) => e({ delay: t }),
|
|
911
|
-
setStartDate: (t) => e({ startDate: t })
|
|
912
|
-
|
|
912
|
+
setStartDate: (t) => e({ startDate: t }),
|
|
913
|
+
setViewerCount: (t) => e({ viewerCount: t })
|
|
914
|
+
})), Ht = jt(
|
|
913
915
|
null
|
|
914
|
-
),
|
|
915
|
-
const t =
|
|
916
|
+
), Qn = ({ children: e }) => {
|
|
917
|
+
const t = V(
|
|
916
918
|
null
|
|
917
919
|
);
|
|
918
|
-
return t.current || (t.current =
|
|
919
|
-
},
|
|
920
|
-
const t = Lt(
|
|
920
|
+
return t.current || (t.current = Jn()), /* @__PURE__ */ s.jsx(Ht.Provider, { value: t.current, children: e });
|
|
921
|
+
}, A = (e) => {
|
|
922
|
+
const t = Lt(Ht);
|
|
921
923
|
if (!t)
|
|
922
924
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
923
|
-
return
|
|
925
|
+
return kt(t, e);
|
|
924
926
|
};
|
|
925
|
-
function
|
|
927
|
+
function er(e, t, n) {
|
|
926
928
|
const o = {
|
|
927
929
|
days: 86400,
|
|
928
930
|
hours: 3600,
|
|
@@ -932,16 +934,16 @@ function Qn(e, t, n) {
|
|
|
932
934
|
};
|
|
933
935
|
return e * (o[t] / o[n]);
|
|
934
936
|
}
|
|
935
|
-
function
|
|
936
|
-
return
|
|
937
|
+
function tr(e) {
|
|
938
|
+
return er(e, "milliseconds", "seconds");
|
|
937
939
|
}
|
|
938
|
-
const
|
|
940
|
+
const xe = (e) => {
|
|
939
941
|
if (isNaN(e) || e === 1 / 0) return "0:00";
|
|
940
|
-
const t = (
|
|
941
|
-
return n === 0 ? `${o}:${t(
|
|
942
|
+
const t = (l) => (l < 10 ? "0" : "") + l, n = Math.floor(e / 3600), o = Math.floor(e % 3600 / 60), a = Math.floor(e % 60);
|
|
943
|
+
return n === 0 ? `${o}:${t(a)}` : `${n}:${t(o)}:${t(a)}`;
|
|
942
944
|
};
|
|
943
|
-
function
|
|
944
|
-
var n, o,
|
|
945
|
+
function nr(e, t) {
|
|
946
|
+
var n, o, a, l, u, i;
|
|
945
947
|
if (typeof Intl != "undefined" && Intl.DateTimeFormat)
|
|
946
948
|
try {
|
|
947
949
|
const d = new Intl.DateTimeFormat("en-US", {
|
|
@@ -954,57 +956,57 @@ function tr(e, t) {
|
|
|
954
956
|
second: "2-digit",
|
|
955
957
|
hour12: !1
|
|
956
958
|
}).formatToParts(e), g = parseInt(
|
|
957
|
-
((n = d.find((
|
|
959
|
+
((n = d.find((E) => E.type === "year")) == null ? void 0 : n.value) || "0",
|
|
958
960
|
10
|
|
959
961
|
), y = parseInt(
|
|
960
|
-
((o = d.find((
|
|
962
|
+
((o = d.find((E) => E.type === "month")) == null ? void 0 : o.value) || "0",
|
|
961
963
|
10
|
|
962
964
|
) - 1, v = parseInt(
|
|
963
|
-
((
|
|
965
|
+
((a = d.find((E) => E.type === "day")) == null ? void 0 : a.value) || "0",
|
|
964
966
|
10
|
|
965
|
-
),
|
|
966
|
-
((
|
|
967
|
+
), x = parseInt(
|
|
968
|
+
((l = d.find((E) => E.type === "hour")) == null ? void 0 : l.value) || "0",
|
|
967
969
|
10
|
|
968
|
-
),
|
|
969
|
-
((u = d.find((
|
|
970
|
+
), P = parseInt(
|
|
971
|
+
((u = d.find((E) => E.type === "minute")) == null ? void 0 : u.value) || "0",
|
|
970
972
|
10
|
|
971
|
-
),
|
|
972
|
-
((i = d.find((
|
|
973
|
+
), b = parseInt(
|
|
974
|
+
((i = d.find((E) => E.type === "second")) == null ? void 0 : i.value) || "0",
|
|
973
975
|
10
|
|
974
976
|
);
|
|
975
|
-
return new Date(g, y, v,
|
|
976
|
-
} catch (
|
|
977
|
+
return new Date(g, y, v, x, P, b);
|
|
978
|
+
} catch (c) {
|
|
977
979
|
return console.warn(
|
|
978
980
|
`Failed to convert date to timezone ${t}, returning original date:`,
|
|
979
|
-
|
|
981
|
+
c
|
|
980
982
|
), e;
|
|
981
983
|
}
|
|
982
984
|
return console.warn(
|
|
983
985
|
"Intl.DateTimeFormat not available, timezone conversion may be inaccurate"
|
|
984
986
|
), e;
|
|
985
987
|
}
|
|
986
|
-
function
|
|
988
|
+
function $t(e) {
|
|
987
989
|
var n;
|
|
988
990
|
const t = typeof window != "undefined" && ((n = window.navigator) == null ? void 0 : n.userAgent) || "";
|
|
989
991
|
return e.test(t);
|
|
990
992
|
}
|
|
991
|
-
const
|
|
992
|
-
function
|
|
993
|
+
const Ut = $t(/iPhone|iPad|iPod/i), rr = $t(/Tizen/i);
|
|
994
|
+
function or() {
|
|
993
995
|
const e = document;
|
|
994
996
|
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
995
997
|
}
|
|
996
|
-
function
|
|
998
|
+
function ir(e) {
|
|
997
999
|
e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
|
|
998
1000
|
}
|
|
999
|
-
function
|
|
1001
|
+
function sr(e) {
|
|
1000
1002
|
e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
|
|
1001
1003
|
}
|
|
1002
|
-
function
|
|
1004
|
+
function ar(e, t) {
|
|
1003
1005
|
return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
|
|
1004
1006
|
e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
|
|
1005
1007
|
};
|
|
1006
1008
|
}
|
|
1007
|
-
const
|
|
1009
|
+
const lr = () => On(), cr = (e, t) => ({
|
|
1008
1010
|
currentTime: 0,
|
|
1009
1011
|
duration: 0,
|
|
1010
1012
|
isEnded: !1,
|
|
@@ -1102,10 +1104,10 @@ const ar = () => An(), lr = (e, t) => ({
|
|
|
1102
1104
|
const o = t().techRef.current;
|
|
1103
1105
|
if (!o) return;
|
|
1104
1106
|
t().eventEmitter.emit("error", n);
|
|
1105
|
-
const
|
|
1106
|
-
if (!
|
|
1107
|
-
const
|
|
1108
|
-
e({ error: { message: u, code:
|
|
1107
|
+
const a = o.error;
|
|
1108
|
+
if (!a) return;
|
|
1109
|
+
const l = `${a.code}`, u = a.message || "Unknown error occurred";
|
|
1110
|
+
e({ error: { message: u, code: l, tech: "native" } });
|
|
1109
1111
|
},
|
|
1110
1112
|
pause: () => {
|
|
1111
1113
|
const n = t().techRef.current;
|
|
@@ -1116,7 +1118,7 @@ const ar = () => An(), lr = (e, t) => ({
|
|
|
1116
1118
|
}));
|
|
1117
1119
|
},
|
|
1118
1120
|
getPauseTimeDiff: () => !t().isStarted || !t().pauseTime ? 0 : parseInt(
|
|
1119
|
-
|
|
1121
|
+
tr(Date.now() - t().pauseTime).toFixed(0)
|
|
1120
1122
|
),
|
|
1121
1123
|
play: () => {
|
|
1122
1124
|
const n = t().techRef.current;
|
|
@@ -1163,11 +1165,11 @@ const ar = () => An(), lr = (e, t) => ({
|
|
|
1163
1165
|
isLoading: !1
|
|
1164
1166
|
});
|
|
1165
1167
|
}
|
|
1166
|
-
}),
|
|
1168
|
+
}), ur = (e, t) => ({
|
|
1167
1169
|
isIdle: !1,
|
|
1168
1170
|
setIsIdle: (n) => e({ isIdle: n }),
|
|
1169
1171
|
resetIdle: () => t().eventEmitter.emit("resetIdle")
|
|
1170
|
-
}),
|
|
1172
|
+
}), dr = (e) => ({
|
|
1171
1173
|
idleLocks: /* @__PURE__ */ new Set(),
|
|
1172
1174
|
addIdleLock: (t) => e((n) => ({
|
|
1173
1175
|
idleLocks: new Set(n.idleLocks).add(t)
|
|
@@ -1176,77 +1178,77 @@ const ar = () => An(), lr = (e, t) => ({
|
|
|
1176
1178
|
const o = new Set(n.idleLocks);
|
|
1177
1179
|
return o.delete(t), { idleLocks: o };
|
|
1178
1180
|
})
|
|
1179
|
-
}),
|
|
1181
|
+
}), fr = (e, t) => ({
|
|
1180
1182
|
level: null,
|
|
1181
1183
|
levels: null,
|
|
1182
1184
|
setLevels: (n) => e({ levels: n }),
|
|
1183
1185
|
setLevel: (n) => {
|
|
1184
1186
|
n && t().eventEmitter.emit("qualityChange", { level: n }), e({ level: n });
|
|
1185
1187
|
}
|
|
1186
|
-
}),
|
|
1188
|
+
}), hr = (e, t) => ({
|
|
1187
1189
|
isFullscreen: !1,
|
|
1188
1190
|
isFullscreenReady: !1,
|
|
1189
1191
|
exitFullscreen: () => {
|
|
1190
|
-
t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }),
|
|
1192
|
+
t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }), sr(document), e({ isFullscreen: !1 });
|
|
1191
1193
|
},
|
|
1192
1194
|
requestFullscreen: () => {
|
|
1193
1195
|
const n = t().techRef.current, o = t().containerRef.current;
|
|
1194
1196
|
if (!n || !o) return;
|
|
1195
1197
|
t().eventEmitter.emit("fullscreenChange", { isFullscreen: !0 });
|
|
1196
|
-
const
|
|
1197
|
-
|
|
1198
|
+
const a = Ut ? n : o;
|
|
1199
|
+
a && ir(a), e({ isFullscreen: !0 });
|
|
1198
1200
|
},
|
|
1199
1201
|
setIsFullscreen: (n) => e({ isFullscreen: n }),
|
|
1200
1202
|
setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
|
|
1201
|
-
}),
|
|
1203
|
+
}), mr = (e) => ({
|
|
1202
1204
|
error: null,
|
|
1203
1205
|
setError: (t) => e({ error: t })
|
|
1204
|
-
}),
|
|
1205
|
-
eventEmitter:
|
|
1206
|
-
}),
|
|
1206
|
+
}), pr = () => ({
|
|
1207
|
+
eventEmitter: lr()
|
|
1208
|
+
}), vr = (e) => () => L({}, e), yr = (e, t) => Pt()((...n) => L(L(L(L(L(L(L(L({}, cr(...n)), ur(...n)), dr(...n)), hr(...n)), fr(...n)), mr(...n)), pr(...n)), vr({
|
|
1207
1209
|
techRef: e,
|
|
1208
1210
|
containerRef: t
|
|
1209
|
-
})(...n))),
|
|
1210
|
-
function
|
|
1211
|
-
const t =
|
|
1212
|
-
return t.current || (t.current =
|
|
1211
|
+
})(...n))), Bt = jt(null);
|
|
1212
|
+
function gr({ children: e }) {
|
|
1213
|
+
const t = V(null), n = V(null), o = V(null);
|
|
1214
|
+
return t.current || (t.current = yr(n, o)), /* @__PURE__ */ s.jsx(Bt.Provider, { value: t.current, children: e });
|
|
1213
1215
|
}
|
|
1214
1216
|
const f = (e) => {
|
|
1215
|
-
const t = Lt(
|
|
1217
|
+
const t = Lt(Bt);
|
|
1216
1218
|
if (!t)
|
|
1217
1219
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
1218
|
-
return
|
|
1220
|
+
return kt(t, e);
|
|
1219
1221
|
};
|
|
1220
|
-
function
|
|
1222
|
+
function wr(e) {
|
|
1221
1223
|
const t = e.split(`
|
|
1222
1224
|
`);
|
|
1223
1225
|
for (const n of t) {
|
|
1224
1226
|
const o = n.trim();
|
|
1225
1227
|
if (o.startsWith("#EXT-X-PROGRAM-DATE-TIME:")) {
|
|
1226
|
-
const
|
|
1227
|
-
if (!isNaN(
|
|
1228
|
-
return
|
|
1228
|
+
const a = o.replace("#EXT-X-PROGRAM-DATE-TIME:", "").trim(), l = new Date(a);
|
|
1229
|
+
if (!isNaN(l.getTime()))
|
|
1230
|
+
return nr(l, "Europe/Sarajevo");
|
|
1229
1231
|
}
|
|
1230
1232
|
}
|
|
1231
1233
|
return null;
|
|
1232
1234
|
}
|
|
1233
|
-
function
|
|
1235
|
+
function _r(e, t) {
|
|
1234
1236
|
const n = e.split(`
|
|
1235
1237
|
`);
|
|
1236
1238
|
let o = !1;
|
|
1237
|
-
for (const
|
|
1238
|
-
const
|
|
1239
|
-
if (
|
|
1239
|
+
for (const a of n) {
|
|
1240
|
+
const l = a.trim();
|
|
1241
|
+
if (l.startsWith("#EXT-X-STREAM-INF:")) {
|
|
1240
1242
|
o = !0;
|
|
1241
1243
|
continue;
|
|
1242
1244
|
}
|
|
1243
|
-
if (o && !
|
|
1244
|
-
if (
|
|
1245
|
-
return
|
|
1245
|
+
if (o && !l.startsWith("#")) {
|
|
1246
|
+
if (l.startsWith("http"))
|
|
1247
|
+
return l;
|
|
1246
1248
|
{
|
|
1247
1249
|
const u = new URL(t);
|
|
1248
1250
|
return new URL(
|
|
1249
|
-
|
|
1251
|
+
l,
|
|
1250
1252
|
u.origin + u.pathname.substring(
|
|
1251
1253
|
0,
|
|
1252
1254
|
u.pathname.lastIndexOf("/")
|
|
@@ -1257,147 +1259,147 @@ function wr(e, t) {
|
|
|
1257
1259
|
}
|
|
1258
1260
|
return null;
|
|
1259
1261
|
}
|
|
1260
|
-
function
|
|
1262
|
+
function xr(e) {
|
|
1261
1263
|
return e.replace("playlist.m3u8", "playlist_fmp4_dvr.m3u8");
|
|
1262
1264
|
}
|
|
1263
|
-
async function
|
|
1265
|
+
async function Tr(e) {
|
|
1264
1266
|
try {
|
|
1265
|
-
const t =
|
|
1267
|
+
const t = xr(e);
|
|
1266
1268
|
console.log("Converting to DVR URL:", t);
|
|
1267
1269
|
const n = await fetch(t);
|
|
1268
1270
|
if (!n.ok)
|
|
1269
1271
|
throw new Error(
|
|
1270
1272
|
`Failed to fetch master playlist: ${n.status} ${n.statusText}`
|
|
1271
1273
|
);
|
|
1272
|
-
const o = await n.text(),
|
|
1274
|
+
const o = await n.text(), a = _r(
|
|
1273
1275
|
o,
|
|
1274
1276
|
t
|
|
1275
1277
|
);
|
|
1276
|
-
if (!
|
|
1278
|
+
if (!a)
|
|
1277
1279
|
throw new Error("No chunklist URL found in master playlist");
|
|
1278
|
-
console.log("Found chunklist URL:",
|
|
1279
|
-
const
|
|
1280
|
-
if (!
|
|
1280
|
+
console.log("Found chunklist URL:", a);
|
|
1281
|
+
const l = await fetch(a);
|
|
1282
|
+
if (!l.ok)
|
|
1281
1283
|
throw new Error(
|
|
1282
|
-
`Failed to fetch chunklist: ${
|
|
1284
|
+
`Failed to fetch chunklist: ${l.status} ${l.statusText}`
|
|
1283
1285
|
);
|
|
1284
|
-
const u = await
|
|
1286
|
+
const u = await l.text(), i = wr(u);
|
|
1285
1287
|
return i ? console.log("Successfully detected start time:", i.toISOString()) : console.log(" No start time found in chunklist"), i;
|
|
1286
1288
|
} catch (t) {
|
|
1287
1289
|
return console.error("Error getting start time from HLS URL:", t), null;
|
|
1288
1290
|
}
|
|
1289
1291
|
}
|
|
1290
|
-
function
|
|
1292
|
+
function Cr(n) {
|
|
1291
1293
|
var o = n, { url: e } = o, t = ne(o, ["url"]);
|
|
1292
|
-
const [
|
|
1293
|
-
const d = await
|
|
1294
|
+
const [a, l] = X(!0), u = A((d) => d.startDate), i = A((d) => d.setStartDate), c = z(async () => {
|
|
1295
|
+
const d = await Tr(e);
|
|
1294
1296
|
d && i(d);
|
|
1295
1297
|
}, [e, i]);
|
|
1296
|
-
return
|
|
1298
|
+
return F(() => {
|
|
1297
1299
|
(async () => {
|
|
1298
|
-
|
|
1300
|
+
l(!0), await c(), l(!1);
|
|
1299
1301
|
})();
|
|
1300
|
-
}, [
|
|
1302
|
+
}, [c]), Ve(c, u ? null : 5e3), a ? null : /* @__PURE__ */ s.jsx(Er, L({}, t));
|
|
1301
1303
|
}
|
|
1302
1304
|
function Er({
|
|
1303
1305
|
children: e,
|
|
1304
1306
|
messages: t = {}
|
|
1305
1307
|
}) {
|
|
1306
|
-
var u, i,
|
|
1307
|
-
const n =
|
|
1308
|
-
return
|
|
1309
|
-
|
|
1308
|
+
var u, i, c;
|
|
1309
|
+
const n = A((d) => d.startDate), o = f((d) => d.isStarted);
|
|
1310
|
+
return Gn(o ? null : 5e3), n ? Date.now() < n.getTime() ? /* @__PURE__ */ s.jsx(
|
|
1311
|
+
Rr,
|
|
1310
1312
|
{
|
|
1311
1313
|
startDate: n,
|
|
1312
1314
|
title: (i = t == null ? void 0 : t.eventNotStarted) != null ? i : "Event has not started yet.",
|
|
1313
|
-
message: (
|
|
1315
|
+
message: (c = t == null ? void 0 : t.eventStartingSoon) != null ? c : "Starting in few seconds..."
|
|
1314
1316
|
}
|
|
1315
|
-
) : /* @__PURE__ */
|
|
1317
|
+
) : /* @__PURE__ */ s.jsx(s.Fragment, { children: e }) : /* @__PURE__ */ s.jsx("div", { className: ie.playerNotice, children: /* @__PURE__ */ s.jsx("h3", { className: ie.playerNoticeTitle, children: (u = t == null ? void 0 : t.eventNotStarted) != null ? u : "Event has not started yet." }) });
|
|
1316
1318
|
}
|
|
1317
|
-
function
|
|
1318
|
-
const o = e.getTime() - Date.now(),
|
|
1319
|
+
function Rr({ startDate: e, title: t, message: n }) {
|
|
1320
|
+
const o = e.getTime() - Date.now(), a = Math.floor(o / (1e3 * 60 * 60)), l = Math.floor(
|
|
1319
1321
|
o % (1e3 * 60 * 60) / (1e3 * 60)
|
|
1320
1322
|
);
|
|
1321
|
-
return
|
|
1322
|
-
/* @__PURE__ */
|
|
1323
|
-
/* @__PURE__ */
|
|
1323
|
+
return a || l ? /* @__PURE__ */ s.jsxs("div", { className: ie.playerNotice, children: [
|
|
1324
|
+
/* @__PURE__ */ s.jsx("h3", { className: ie.playerNoticeTitle, children: t }),
|
|
1325
|
+
/* @__PURE__ */ s.jsxs("p", { className: ie.playerNoticeText, children: [
|
|
1324
1326
|
"(",
|
|
1325
|
-
|
|
1327
|
+
a > 0 ? `${a}h ${l}m` : `${l}m`,
|
|
1326
1328
|
")"
|
|
1327
1329
|
] })
|
|
1328
|
-
] }) : /* @__PURE__ */
|
|
1330
|
+
] }) : /* @__PURE__ */ s.jsx("div", { className: ie.playerNotice, children: /* @__PURE__ */ s.jsx("h3", { className: ie.playerNoticeTitle, children: n }) });
|
|
1329
1331
|
}
|
|
1330
|
-
function
|
|
1332
|
+
function zt({ callback: e }) {
|
|
1331
1333
|
const t = f((n) => n.eventEmitter);
|
|
1332
|
-
return
|
|
1333
|
-
const n = () => e("play", void 0), o = () => e("pause", void 0),
|
|
1334
|
-
return t.on("play", n), t.on("pause", o), t.on("ended",
|
|
1335
|
-
t.off("play", n), t.off("pause", o), t.off("ended",
|
|
1334
|
+
return F(() => {
|
|
1335
|
+
const n = () => e("play", void 0), o = () => e("pause", void 0), a = () => e("ended", void 0), l = () => e("seeking", void 0), u = () => e("seeked", void 0), i = (b) => e("volumeChange", b), c = (b) => e("fullscreenChange", b), d = (b) => e("qualityChange", b), g = (b) => e("loadedMetadata", b), y = () => e("loadStart", void 0), v = () => e("playing", void 0), x = () => e("waiting", void 0), P = () => e("error", void 0);
|
|
1336
|
+
return t.on("play", n), t.on("pause", o), t.on("ended", a), t.on("seeking", l), t.on("seeked", u), t.on("volumeChange", i), t.on("fullscreenChange", c), t.on("qualityChange", d), t.on("loadedMetadata", g), t.on("loadStart", y), t.on("playing", v), t.on("waiting", x), t.on("error", P), () => {
|
|
1337
|
+
t.off("play", n), t.off("pause", o), t.off("ended", a), t.off("seeking", l), t.off("seeked", u), t.off("volumeChange", i), t.off("fullscreenChange", c), t.off("qualityChange", d), t.off("loadedMetadata", g), t.off("loadStart", y), t.off("playing", v), t.off("waiting", x), t.off("error", P);
|
|
1336
1338
|
};
|
|
1337
1339
|
}, [e, t]), null;
|
|
1338
1340
|
}
|
|
1339
|
-
const
|
|
1341
|
+
const qt = (e, t = 0) => parseInt(
|
|
1340
1342
|
Math.max(0, (Date.now() - (e + t * 1e3)) / 1e3).toFixed(0)
|
|
1341
|
-
),
|
|
1342
|
-
const o = t < 0 ? 0 : t,
|
|
1343
|
-
return `${parseFloat((e / Math.pow(1024,
|
|
1343
|
+
), Wt = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), br = (e, t) => Math.max(0, (t - e) / 1e3), Sr = (e, t = 0) => {
|
|
1344
|
+
const o = t < 0 ? 0 : t, a = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], l = Math.floor(Math.log(e) / Math.log(1024));
|
|
1345
|
+
return `${parseFloat((e / Math.pow(1024, l)).toFixed(o))}${a[l]}`;
|
|
1344
1346
|
};
|
|
1345
|
-
function
|
|
1347
|
+
function jr({
|
|
1346
1348
|
isAuto: e,
|
|
1347
1349
|
level: t,
|
|
1348
1350
|
levels: n
|
|
1349
1351
|
}) {
|
|
1350
|
-
const o = n.length,
|
|
1351
|
-
return o > 1 &&
|
|
1352
|
+
const o = n.length, a = [];
|
|
1353
|
+
return o > 1 && a.push({
|
|
1352
1354
|
sid: "quality-level-auto",
|
|
1353
1355
|
label: "Auto",
|
|
1354
1356
|
value: -1,
|
|
1355
1357
|
selected: e || t === -1
|
|
1356
|
-
}), n.sort(function(
|
|
1357
|
-
const i =
|
|
1358
|
-
return i ===
|
|
1359
|
-
}), n.map((
|
|
1360
|
-
const { bitrate: u, height: i, index:
|
|
1361
|
-
|
|
1362
|
-
sid: `quality-level-${
|
|
1358
|
+
}), n.sort(function(l, u) {
|
|
1359
|
+
const i = l.height || l.bitrate || 0, c = u.height || u.bitrate || 0;
|
|
1360
|
+
return i === c ? 0 : i > c ? 1 : -1;
|
|
1361
|
+
}), n.map((l) => {
|
|
1362
|
+
const { bitrate: u, height: i, index: c } = l;
|
|
1363
|
+
a.push({
|
|
1364
|
+
sid: `quality-level-${c}`,
|
|
1363
1365
|
label: i ? `${i}p` : Sr(u),
|
|
1364
|
-
value:
|
|
1365
|
-
selected: o === 1 || !e &&
|
|
1366
|
+
value: c,
|
|
1367
|
+
selected: o === 1 || !e && c === t
|
|
1366
1368
|
});
|
|
1367
|
-
}),
|
|
1369
|
+
}), a;
|
|
1368
1370
|
}
|
|
1369
1371
|
function Lr({ callback: e }) {
|
|
1370
|
-
const t =
|
|
1371
|
-
return
|
|
1372
|
-
const
|
|
1373
|
-
currentTime:
|
|
1372
|
+
const t = A((l) => l.delay), n = A((l) => l.startDate), o = n ? n.getTime() : 0, a = f((l) => l.eventEmitter);
|
|
1373
|
+
return F(() => {
|
|
1374
|
+
const l = () => e("timeUpdate", {
|
|
1375
|
+
currentTime: Wt(o, t),
|
|
1374
1376
|
duration: -1
|
|
1375
1377
|
});
|
|
1376
|
-
return
|
|
1377
|
-
|
|
1378
|
+
return a.on("timeUpdate", l), () => {
|
|
1379
|
+
a.off("timeUpdate", l);
|
|
1378
1380
|
};
|
|
1379
|
-
}, [e,
|
|
1381
|
+
}, [e, a]), /* @__PURE__ */ s.jsx(zt, { callback: e });
|
|
1380
1382
|
}
|
|
1381
|
-
function
|
|
1382
|
-
const e = f((i) => i.exitFullscreen), t = f((i) => i.isFullscreen), n = f((i) => i.isFullscreenReady), o = f((i) => i.requestFullscreen),
|
|
1383
|
+
function Zt() {
|
|
1384
|
+
const e = f((i) => i.exitFullscreen), t = f((i) => i.isFullscreen), n = f((i) => i.isFullscreenReady), o = f((i) => i.requestFullscreen), a = f((i) => i.setVolume), l = f((i) => i.volume), u = z(
|
|
1383
1385
|
(i) => {
|
|
1384
|
-
let
|
|
1386
|
+
let c = !1;
|
|
1385
1387
|
if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
|
|
1386
1388
|
switch (i.code) {
|
|
1387
1389
|
case "ArrowUp":
|
|
1388
|
-
|
|
1390
|
+
a(l + 10 < 100 ? l + 10 : 100), c = !0;
|
|
1389
1391
|
break;
|
|
1390
1392
|
case "ArrowDown":
|
|
1391
|
-
|
|
1393
|
+
a(l - 10 > 0 ? l - 10 : 0), c = !0;
|
|
1392
1394
|
break;
|
|
1393
1395
|
case "KeyM":
|
|
1394
|
-
|
|
1396
|
+
a(l === 0 ? 100 : 0), c = !0;
|
|
1395
1397
|
break;
|
|
1396
1398
|
case "KeyF":
|
|
1397
|
-
n && (t ? e() : o(),
|
|
1399
|
+
n && (t ? e() : o(), c = !0);
|
|
1398
1400
|
break;
|
|
1399
1401
|
}
|
|
1400
|
-
|
|
1402
|
+
c && i.preventDefault();
|
|
1401
1403
|
}
|
|
1402
1404
|
},
|
|
1403
1405
|
[
|
|
@@ -1405,75 +1407,75 @@ function Wt() {
|
|
|
1405
1407
|
t,
|
|
1406
1408
|
n,
|
|
1407
1409
|
o,
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
+
a,
|
|
1411
|
+
l
|
|
1410
1412
|
]
|
|
1411
1413
|
);
|
|
1412
|
-
return
|
|
1414
|
+
return F(() => (document.addEventListener("keydown", u), () => {
|
|
1413
1415
|
document.removeEventListener("keydown", u);
|
|
1414
1416
|
}), [u]), null;
|
|
1415
1417
|
}
|
|
1416
1418
|
function Pr() {
|
|
1417
|
-
const e =
|
|
1419
|
+
const e = A((i) => i.delay), t = f((i) => i.isPlaying), n = f((i) => i.pause), o = f((i) => i.getPauseTimeDiff), a = f((i) => i.play), l = A((i) => i.setDelay), u = z(
|
|
1418
1420
|
(i) => {
|
|
1419
|
-
let
|
|
1421
|
+
let c = !1;
|
|
1420
1422
|
if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
|
|
1421
1423
|
switch (i.code) {
|
|
1422
1424
|
case "ArrowLeft":
|
|
1423
|
-
|
|
1425
|
+
l(e + 10), c = !0;
|
|
1424
1426
|
break;
|
|
1425
1427
|
case "ArrowRight":
|
|
1426
|
-
|
|
1428
|
+
l(e - 10 > 0 ? e - 10 : 0), c = !0;
|
|
1427
1429
|
break;
|
|
1428
1430
|
case "Space":
|
|
1429
1431
|
if (t)
|
|
1430
1432
|
n();
|
|
1431
1433
|
else {
|
|
1432
1434
|
const d = o();
|
|
1433
|
-
d &&
|
|
1435
|
+
d && l(e + d), a();
|
|
1434
1436
|
}
|
|
1435
|
-
|
|
1437
|
+
c = !0;
|
|
1436
1438
|
break;
|
|
1437
1439
|
}
|
|
1438
|
-
|
|
1440
|
+
c && i.preventDefault();
|
|
1439
1441
|
}
|
|
1440
1442
|
},
|
|
1441
|
-
[e, o, t, n,
|
|
1443
|
+
[e, o, t, n, a, l]
|
|
1442
1444
|
);
|
|
1443
|
-
return
|
|
1445
|
+
return F(() => (document.addEventListener("keydown", u), () => {
|
|
1444
1446
|
document.removeEventListener("keydown", u);
|
|
1445
|
-
}), [u]), /* @__PURE__ */
|
|
1447
|
+
}), [u]), /* @__PURE__ */ s.jsx(Zt, {});
|
|
1446
1448
|
}
|
|
1447
|
-
function
|
|
1448
|
-
return /* @__PURE__ */
|
|
1449
|
+
function Kt({ children: e }) {
|
|
1450
|
+
return /* @__PURE__ */ s.jsx(gr, { children: e });
|
|
1449
1451
|
}
|
|
1450
|
-
function
|
|
1451
|
-
return /* @__PURE__ */
|
|
1452
|
+
function kr({ children: e }) {
|
|
1453
|
+
return /* @__PURE__ */ s.jsx(Qn, { children: /* @__PURE__ */ s.jsx(Kt, { children: e }) });
|
|
1452
1454
|
}
|
|
1453
|
-
function
|
|
1454
|
-
const o =
|
|
1455
|
-
(
|
|
1456
|
-
if (o.current && (o.current.nextLevel =
|
|
1457
|
-
const I =
|
|
1458
|
-
selected: p.value ===
|
|
1455
|
+
function Ir({ url: e, isLive: t, messages: n }) {
|
|
1456
|
+
const o = V(null), a = f((_) => _.level), l = f((_) => _.levels), u = f((_) => _.setLevel), i = f((_) => _.setLevels), c = f((_) => _.techRef), d = f((_) => _.setError), g = V(0), y = V(null), v = 50, x = 1e4, P = z(
|
|
1457
|
+
(_) => {
|
|
1458
|
+
if (o.current && (o.current.nextLevel = _, u(null), l)) {
|
|
1459
|
+
const I = l.map((p) => he(L({}, p), {
|
|
1460
|
+
selected: p.value === _
|
|
1459
1461
|
}));
|
|
1460
1462
|
i(I);
|
|
1461
1463
|
}
|
|
1462
1464
|
},
|
|
1463
|
-
[
|
|
1464
|
-
),
|
|
1465
|
+
[l, u, i, o]
|
|
1466
|
+
), b = z(() => {
|
|
1465
1467
|
o.current && (console.log("[Player][HLS] MEDIA_ATTACHED"), o.current.loadSource(e));
|
|
1466
|
-
}, [e]),
|
|
1468
|
+
}, [e]), E = z(() => {
|
|
1467
1469
|
if (!o.current) return;
|
|
1468
1470
|
console.log("[Player][HLS] MANIFEST_LOADED"), d(null), y.current && (clearTimeout(y.current), y.current = null), g.current = 0;
|
|
1469
|
-
const
|
|
1471
|
+
const _ = o.current.levels, I = o.current.currentLevel, p = o.current.autoLevelEnabled;
|
|
1470
1472
|
i(
|
|
1471
|
-
|
|
1472
|
-
levels:
|
|
1473
|
-
const { bitrate:
|
|
1473
|
+
jr({
|
|
1474
|
+
levels: _.map(($, G) => {
|
|
1475
|
+
const { bitrate: Z, height: O, width: D } = $;
|
|
1474
1476
|
return {
|
|
1475
|
-
bitrate:
|
|
1476
|
-
height:
|
|
1477
|
+
bitrate: Z,
|
|
1478
|
+
height: O,
|
|
1477
1479
|
index: G,
|
|
1478
1480
|
width: D
|
|
1479
1481
|
};
|
|
@@ -1482,11 +1484,11 @@ function kr({ url: e, isLive: t, messages: n }) {
|
|
|
1482
1484
|
isAuto: p
|
|
1483
1485
|
})
|
|
1484
1486
|
);
|
|
1485
|
-
}, [d, i]),
|
|
1487
|
+
}, [d, i]), N = z(
|
|
1486
1488
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1487
|
-
(
|
|
1488
|
-
var p,
|
|
1489
|
-
if (console.error("[Player][HLS] ERROR",
|
|
1489
|
+
(_, I) => {
|
|
1490
|
+
var p, $;
|
|
1491
|
+
if (console.error("[Player][HLS] ERROR", _, I), !!o.current && I.fatal)
|
|
1490
1492
|
switch (I.type) {
|
|
1491
1493
|
case re.ErrorTypes.NETWORK_ERROR:
|
|
1492
1494
|
console.log("[Player][HLS] NETWORK_ERROR", I), t ? I.details === "manifestLoadError" && (g.current < v && (y.current && clearTimeout(y.current), g.current += 1, y.current = setTimeout(() => {
|
|
@@ -1496,12 +1498,12 @@ function kr({ url: e, isLive: t, messages: n }) {
|
|
|
1496
1498
|
} catch (G) {
|
|
1497
1499
|
console.error("[Player][HLS] Retry failed:", G);
|
|
1498
1500
|
}
|
|
1499
|
-
},
|
|
1501
|
+
}, x)), d({
|
|
1500
1502
|
message: (p = n == null ? void 0 : n.eventFinished) != null ? p : "Live event will be back shortly.",
|
|
1501
1503
|
code: "LIVE_MANIFEST_LOAD_ERROR",
|
|
1502
1504
|
tech: "hls"
|
|
1503
1505
|
})) : (d({
|
|
1504
|
-
message: (
|
|
1506
|
+
message: ($ = n == null ? void 0 : n.unableToPlay) != null ? $ : "Unable to play the video. Please try again later.",
|
|
1505
1507
|
code: "NETWORK_ERROR",
|
|
1506
1508
|
tech: "hls"
|
|
1507
1509
|
}), o.current.startLoad());
|
|
@@ -1512,122 +1514,156 @@ function kr({ url: e, isLive: t, messages: n }) {
|
|
|
1512
1514
|
}
|
|
1513
1515
|
},
|
|
1514
1516
|
[t, e, d]
|
|
1515
|
-
),
|
|
1516
|
-
if (!
|
|
1517
|
-
let
|
|
1517
|
+
), S = z(() => {
|
|
1518
|
+
if (!c.current) return;
|
|
1519
|
+
let _ = {
|
|
1518
1520
|
startLevel: -1,
|
|
1519
1521
|
maxBufferSize: 30 * 1024 * 1024
|
|
1520
1522
|
// 30MB
|
|
1521
1523
|
};
|
|
1522
|
-
|
|
1524
|
+
rr ? (_.backBufferLength = -1, _.enableWorker = !1) : t ? _.backBufferLength = 10 : _.backBufferLength = 60;
|
|
1523
1525
|
try {
|
|
1524
|
-
console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(
|
|
1526
|
+
console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(_)), console.log("[Player][HLS] Version", re.version), o.current = new re(_), o.current.attachMedia(c.current), o.current.on(re.Events.MEDIA_ATTACHED, b), o.current.on(re.Events.MANIFEST_LOADED, E), o.current.on(re.Events.ERROR, N);
|
|
1525
1527
|
} catch (I) {
|
|
1526
1528
|
throw new Error(`Error initializing Hls: ${I}`);
|
|
1527
1529
|
}
|
|
1528
1530
|
}, [
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1531
|
+
E,
|
|
1532
|
+
b,
|
|
1533
|
+
N,
|
|
1532
1534
|
t,
|
|
1533
|
-
|
|
1535
|
+
c,
|
|
1534
1536
|
e
|
|
1535
|
-
]), k =
|
|
1536
|
-
o.current && (o.current.off(re.Events.MEDIA_ATTACHED,
|
|
1537
|
-
}, [
|
|
1538
|
-
return
|
|
1539
|
-
|
|
1540
|
-
}, [
|
|
1541
|
-
}
|
|
1542
|
-
const
|
|
1543
|
-
playerVideo:
|
|
1537
|
+
]), k = z(() => {
|
|
1538
|
+
o.current && (o.current.off(re.Events.MEDIA_ATTACHED, b), o.current.off(re.Events.MANIFEST_LOADED, E), o.current.off(re.Events.ERROR, N), o.current.destroy(), o.current = null), y.current && (clearTimeout(y.current), y.current = null), g.current = 0;
|
|
1539
|
+
}, [E, b, N]);
|
|
1540
|
+
return F(() => {
|
|
1541
|
+
a !== null && P(a);
|
|
1542
|
+
}, [a, P]), F(() => (re.isSupported() && S(), k), [k, S]), null;
|
|
1543
|
+
}
|
|
1544
|
+
const Dr = "_playerVideo_wc0sm_1", Fr = {
|
|
1545
|
+
playerVideo: Dr
|
|
1544
1546
|
};
|
|
1545
|
-
function
|
|
1547
|
+
function Yt({
|
|
1546
1548
|
url: e,
|
|
1547
1549
|
isLive: t,
|
|
1548
1550
|
isMuted: n = !1,
|
|
1549
1551
|
messages: o = {}
|
|
1550
1552
|
}) {
|
|
1551
|
-
const
|
|
1552
|
-
onTimeUpdate:
|
|
1553
|
+
const a = f((p) => p.handleDurationChange), l = f((p) => p.handleEnd), u = f((p) => p.handleLoadedMetadata), i = f((p) => p.handleLoadStart), c = f((p) => p.handlePause), d = f((p) => p.handlePlay), g = f((p) => p.handlePlaying), y = f((p) => p.handleSeeked), v = f((p) => p.handleSeeking), x = f((p) => p.handleTimeUpdate), P = f((p) => p.handleWaiting), b = f((p) => p.handleVolumeChange), E = f((p) => p.handleError), N = f((p) => p.techRef), S = V(null), k = () => t ? {
|
|
1554
|
+
onTimeUpdate: _
|
|
1553
1555
|
} : {
|
|
1554
|
-
onDurationChange:
|
|
1556
|
+
onDurationChange: a,
|
|
1555
1557
|
onSeeked: y,
|
|
1556
1558
|
onSeeking: v,
|
|
1557
|
-
onTimeUpdate:
|
|
1558
|
-
},
|
|
1559
|
-
(!
|
|
1559
|
+
onTimeUpdate: _
|
|
1560
|
+
}, _ = () => {
|
|
1561
|
+
(!S.current || Date.now() - S.current >= 1e3) && (x(), S.current = Date.now());
|
|
1560
1562
|
}, I = k();
|
|
1561
|
-
return /* @__PURE__ */
|
|
1562
|
-
/* @__PURE__ */
|
|
1563
|
-
/* @__PURE__ */
|
|
1563
|
+
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1564
|
+
/* @__PURE__ */ s.jsx(Ir, { isLive: t, url: e, messages: o }),
|
|
1565
|
+
/* @__PURE__ */ s.jsx(
|
|
1564
1566
|
"video",
|
|
1565
|
-
|
|
1566
|
-
ref:
|
|
1567
|
-
className:
|
|
1567
|
+
L({
|
|
1568
|
+
ref: N,
|
|
1569
|
+
className: Fr.playerVideo,
|
|
1568
1570
|
playsInline: !0,
|
|
1569
1571
|
autoPlay: !0,
|
|
1570
1572
|
controls: !1,
|
|
1571
1573
|
muted: n,
|
|
1572
1574
|
preload: "auto",
|
|
1573
1575
|
crossOrigin: "anonymous",
|
|
1574
|
-
onEnded:
|
|
1575
|
-
onError:
|
|
1576
|
+
onEnded: l,
|
|
1577
|
+
onError: E,
|
|
1576
1578
|
onLoadedMetadata: u,
|
|
1577
1579
|
onLoadStart: i,
|
|
1578
|
-
onPause:
|
|
1580
|
+
onPause: c,
|
|
1579
1581
|
onPlay: d,
|
|
1580
1582
|
onPlaying: g,
|
|
1581
|
-
onWaiting:
|
|
1582
|
-
onVolumeChange:
|
|
1583
|
+
onWaiting: P,
|
|
1584
|
+
onVolumeChange: b,
|
|
1583
1585
|
tabIndex: -1
|
|
1584
1586
|
}, I)
|
|
1585
1587
|
)
|
|
1586
1588
|
] });
|
|
1587
1589
|
}
|
|
1588
|
-
function
|
|
1589
|
-
const [n, o] = X(null),
|
|
1590
|
+
function Mr({ url: e, messages: t = {} }) {
|
|
1591
|
+
const [n, o] = X(null), a = A((u) => u.delay), l = z(async () => {
|
|
1590
1592
|
o(
|
|
1591
|
-
|
|
1593
|
+
a ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${a}.m3u8`) : e
|
|
1592
1594
|
);
|
|
1593
|
-
}, [
|
|
1594
|
-
return
|
|
1595
|
-
|
|
1596
|
-
}, [
|
|
1595
|
+
}, [a, e]);
|
|
1596
|
+
return F(() => {
|
|
1597
|
+
l();
|
|
1598
|
+
}, [l]), n ? /* @__PURE__ */ s.jsx(Yt, { url: n, isLive: !0, messages: t }) : null;
|
|
1599
|
+
}
|
|
1600
|
+
function Nr({ url: e }) {
|
|
1601
|
+
const t = A((l) => l.setViewerCount), n = V(null), o = (l) => {
|
|
1602
|
+
try {
|
|
1603
|
+
return new URL(l).pathname.split("/").filter((d) => d.length > 0)[0] || null;
|
|
1604
|
+
} catch (u) {
|
|
1605
|
+
return console.error("Failed to extract URI from player URL:", u), null;
|
|
1606
|
+
}
|
|
1607
|
+
}, a = async () => {
|
|
1608
|
+
var c;
|
|
1609
|
+
const l = o(e);
|
|
1610
|
+
if (!l) {
|
|
1611
|
+
console.error("Could not extract URI from URL:", e);
|
|
1612
|
+
return;
|
|
1613
|
+
}
|
|
1614
|
+
n.current && n.current.abort(), n.current = new AbortController();
|
|
1615
|
+
const i = `https://${e.includes("staging") ? "stg" : "prd"}-fitnessanny.spectar.tv/analytics-api/v1/token-info/uri/${l}`;
|
|
1616
|
+
try {
|
|
1617
|
+
const d = await fetch(i, {
|
|
1618
|
+
signal: n.current.signal
|
|
1619
|
+
});
|
|
1620
|
+
if (!d.ok)
|
|
1621
|
+
throw new Error(`HTTP error! status: ${d.status}`);
|
|
1622
|
+
const y = (c = (await d.json()).count) != null ? c : 0;
|
|
1623
|
+
t(y);
|
|
1624
|
+
} catch (d) {
|
|
1625
|
+
if (d.name === "AbortError")
|
|
1626
|
+
return;
|
|
1627
|
+
console.error("Failed to fetch viewer count:", d), t(null);
|
|
1628
|
+
}
|
|
1629
|
+
};
|
|
1630
|
+
return F(() => (a(), () => {
|
|
1631
|
+
n.current && n.current.abort();
|
|
1632
|
+
}), [e]), Ve(a, 15e3), null;
|
|
1597
1633
|
}
|
|
1598
|
-
function
|
|
1634
|
+
function Vr(e, {
|
|
1599
1635
|
defaultValue: t = !1,
|
|
1600
1636
|
initializeWithValue: n = !0
|
|
1601
1637
|
} = {}) {
|
|
1602
|
-
const o = (i) => typeof window == "undefined" ? t : window.matchMedia(i).matches, [
|
|
1638
|
+
const o = (i) => typeof window == "undefined" ? t : window.matchMedia(i).matches, [a, l] = X(() => n ? o(e) : t);
|
|
1603
1639
|
function u() {
|
|
1604
|
-
|
|
1640
|
+
l(o(e));
|
|
1605
1641
|
}
|
|
1606
|
-
return
|
|
1642
|
+
return Ot(() => {
|
|
1607
1643
|
if (typeof window == "undefined")
|
|
1608
1644
|
return;
|
|
1609
1645
|
const i = window.matchMedia(e);
|
|
1610
1646
|
return u(), i.addListener ? i.addListener(u) : i.addEventListener("change", u), () => {
|
|
1611
1647
|
i.removeListener ? i.removeListener(u) : i.removeEventListener("change", u);
|
|
1612
1648
|
};
|
|
1613
|
-
}, [e]),
|
|
1614
|
-
}
|
|
1615
|
-
const
|
|
1616
|
-
playbackButton:
|
|
1617
|
-
seekIndicator:
|
|
1618
|
-
seekIndicatorLeft:
|
|
1619
|
-
seekIndicatorRight:
|
|
1620
|
-
seekIndicatorVisible:
|
|
1621
|
-
},
|
|
1622
|
-
function
|
|
1623
|
-
var
|
|
1649
|
+
}, [e]), a;
|
|
1650
|
+
}
|
|
1651
|
+
const Ar = "_playbackButton_lgsgw_1", Or = "_seekIndicator_lgsgw_23", Hr = "_seekIndicatorLeft_lgsgw_49", $r = "_seekIndicatorRight_lgsgw_53", Ur = "_seekIndicatorVisible_lgsgw_57", me = {
|
|
1652
|
+
playbackButton: Ar,
|
|
1653
|
+
seekIndicator: Or,
|
|
1654
|
+
seekIndicatorLeft: Hr,
|
|
1655
|
+
seekIndicatorRight: $r,
|
|
1656
|
+
seekIndicatorVisible: Ur
|
|
1657
|
+
}, Br = 10;
|
|
1658
|
+
function Xt(i) {
|
|
1659
|
+
var c = i, {
|
|
1624
1660
|
className: e,
|
|
1625
1661
|
onClick: t,
|
|
1626
1662
|
onForwardSeek: n,
|
|
1627
1663
|
onBackwardSeek: o,
|
|
1628
|
-
maxForwardTime:
|
|
1629
|
-
maxBackwardTime:
|
|
1630
|
-
} =
|
|
1664
|
+
maxForwardTime: a,
|
|
1665
|
+
maxBackwardTime: l
|
|
1666
|
+
} = c, u = ne(c, [
|
|
1631
1667
|
"className",
|
|
1632
1668
|
"onClick",
|
|
1633
1669
|
"onForwardSeek",
|
|
@@ -1635,220 +1671,220 @@ function Yt(i) {
|
|
|
1635
1671
|
"maxForwardTime",
|
|
1636
1672
|
"maxBackwardTime"
|
|
1637
1673
|
]);
|
|
1638
|
-
return
|
|
1639
|
-
|
|
1640
|
-
|
|
1674
|
+
return Vr("(min-width: 1024px)") ? /* @__PURE__ */ s.jsx(zr, L({ className: e, onClick: t }, u)) : /* @__PURE__ */ s.jsx(
|
|
1675
|
+
qr,
|
|
1676
|
+
L({
|
|
1641
1677
|
className: e,
|
|
1642
|
-
maxForwardTime:
|
|
1643
|
-
maxBackwardTime:
|
|
1678
|
+
maxForwardTime: a,
|
|
1679
|
+
maxBackwardTime: l,
|
|
1644
1680
|
onForwardSeek: n,
|
|
1645
1681
|
onBackwardSeek: o
|
|
1646
1682
|
}, u)
|
|
1647
1683
|
);
|
|
1648
1684
|
}
|
|
1649
|
-
function
|
|
1650
|
-
var
|
|
1651
|
-
const
|
|
1652
|
-
v() ? (y(), i ? u() :
|
|
1653
|
-
}, g = (
|
|
1654
|
-
|
|
1655
|
-
t == null || t(
|
|
1685
|
+
function zr(o) {
|
|
1686
|
+
var a = o, { className: e, onClick: t } = a, n = ne(a, ["className", "onClick"]);
|
|
1687
|
+
const l = V(null), u = f((x) => x.exitFullscreen), i = f((x) => x.isFullscreen), c = f((x) => x.requestFullscreen), d = (x) => {
|
|
1688
|
+
v() ? (y(), i ? u() : c()) : g(x);
|
|
1689
|
+
}, g = (x) => {
|
|
1690
|
+
l.current = window.setTimeout(() => {
|
|
1691
|
+
t == null || t(x), y();
|
|
1656
1692
|
}, 200);
|
|
1657
1693
|
}, y = () => {
|
|
1658
|
-
|
|
1659
|
-
}, v = () =>
|
|
1660
|
-
return
|
|
1694
|
+
l.current !== null && (window.clearTimeout(l.current), l.current = null);
|
|
1695
|
+
}, v = () => l.current !== null;
|
|
1696
|
+
return F(() => () => {
|
|
1661
1697
|
y();
|
|
1662
|
-
}, []), /* @__PURE__ */
|
|
1698
|
+
}, []), /* @__PURE__ */ s.jsx(
|
|
1663
1699
|
"button",
|
|
1664
|
-
|
|
1700
|
+
L({
|
|
1665
1701
|
onClick: d,
|
|
1666
1702
|
className: [me.playbackButton, e].filter(Boolean).join(" "),
|
|
1667
1703
|
"aria-label": "Player gestures"
|
|
1668
1704
|
}, n)
|
|
1669
1705
|
);
|
|
1670
1706
|
}
|
|
1671
|
-
function
|
|
1707
|
+
function qr(u) {
|
|
1672
1708
|
var i = u, {
|
|
1673
1709
|
className: e,
|
|
1674
1710
|
maxForwardTime: t,
|
|
1675
1711
|
maxBackwardTime: n,
|
|
1676
1712
|
onForwardSeek: o,
|
|
1677
|
-
onBackwardSeek:
|
|
1678
|
-
} = i,
|
|
1713
|
+
onBackwardSeek: a
|
|
1714
|
+
} = i, l = ne(i, [
|
|
1679
1715
|
"className",
|
|
1680
1716
|
"maxForwardTime",
|
|
1681
1717
|
"maxBackwardTime",
|
|
1682
1718
|
"onForwardSeek",
|
|
1683
1719
|
"onBackwardSeek"
|
|
1684
1720
|
]);
|
|
1685
|
-
const
|
|
1721
|
+
const c = V(null), d = V({
|
|
1686
1722
|
single: null,
|
|
1687
1723
|
indicator: null,
|
|
1688
1724
|
accumulate: null
|
|
1689
|
-
}), g =
|
|
1725
|
+
}), g = V(null), y = V(0), v = V(null), [x, P] = X({ visible: !1, direction: null, time: 0 }), b = f((p) => p.isIdle), E = f((p) => p.setIsIdle), N = f((p) => p.resetIdle), S = (p, $) => p < $ / 2 ? "backward" : "forward", k = (p) => {
|
|
1690
1726
|
if (!g.current) return;
|
|
1691
|
-
const
|
|
1692
|
-
if (
|
|
1693
|
-
const G = Date.now(),
|
|
1694
|
-
if (
|
|
1727
|
+
const $ = p.changedTouches[0];
|
|
1728
|
+
if (!$) return;
|
|
1729
|
+
const G = Date.now(), Z = g.current.getBoundingClientRect(), O = $.clientX - Z.left, D = $.clientY - Z.top;
|
|
1730
|
+
if (O < 0 || O > Z.width || D < 0 || D > Z.height)
|
|
1695
1731
|
return;
|
|
1696
|
-
const Q =
|
|
1697
|
-
if (Q !== null && v.current === null &&
|
|
1698
|
-
p.preventDefault(), p.stopPropagation(), d.current.single && (window.clearTimeout(d.current.single), d.current.single = null),
|
|
1699
|
-
const te =
|
|
1732
|
+
const Q = c.current, K = Q ? G - Q.time : 1 / 0, q = S(O, Z.width), oe = v.current !== null && v.current === q && Q !== null && K < 700 && Math.abs(O - Q.x) < 100;
|
|
1733
|
+
if (Q !== null && v.current === null && K < 300 && Math.abs(O - Q.x) < 50 || oe) {
|
|
1734
|
+
p.preventDefault(), p.stopPropagation(), d.current.single && (window.clearTimeout(d.current.single), d.current.single = null), N(), (v.current === null || v.current !== q) && (y.current = 0, v.current = q);
|
|
1735
|
+
const te = q === "backward" ? n : t;
|
|
1700
1736
|
y.current = Math.min(
|
|
1701
|
-
y.current +
|
|
1737
|
+
y.current + Br,
|
|
1702
1738
|
te != null ? te : 1 / 0
|
|
1703
|
-
),
|
|
1704
|
-
const
|
|
1705
|
-
|
|
1706
|
-
}, 500),
|
|
1739
|
+
), _(q, y.current), d.current.accumulate && window.clearTimeout(d.current.accumulate), d.current.accumulate = window.setTimeout(() => {
|
|
1740
|
+
const W = y.current;
|
|
1741
|
+
W > 0 && (v.current === "backward" ? a == null || a(W) : o == null || o(W), N()), y.current = 0, v.current = null, c.current = null, I(), d.current.accumulate = null;
|
|
1742
|
+
}, 500), c.current = { time: G, x: O };
|
|
1707
1743
|
} else {
|
|
1708
|
-
|
|
1744
|
+
c.current = { time: G, x: O }, d.current.single && window.clearTimeout(d.current.single);
|
|
1709
1745
|
const te = v.current !== null ? 700 : 350;
|
|
1710
1746
|
d.current.single = window.setTimeout(() => {
|
|
1711
1747
|
if (v.current === null) {
|
|
1712
1748
|
d.current.single = null;
|
|
1713
|
-
const
|
|
1714
|
-
|
|
1749
|
+
const W = b;
|
|
1750
|
+
E(!W), W && N();
|
|
1715
1751
|
}
|
|
1716
|
-
|
|
1752
|
+
c.current = null;
|
|
1717
1753
|
}, te);
|
|
1718
1754
|
}
|
|
1719
|
-
},
|
|
1720
|
-
|
|
1755
|
+
}, _ = (p, $) => {
|
|
1756
|
+
$ !== 0 && (P({ visible: !0, direction: p, time: $ }), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.indicator = window.setTimeout(() => {
|
|
1721
1757
|
I();
|
|
1722
1758
|
}, 700));
|
|
1723
1759
|
}, I = () => {
|
|
1724
|
-
|
|
1760
|
+
P({ visible: !1, direction: null, time: 0 }), d.current.indicator && (window.clearTimeout(d.current.indicator), d.current.indicator = null);
|
|
1725
1761
|
};
|
|
1726
|
-
return
|
|
1762
|
+
return F(() => () => {
|
|
1727
1763
|
d.current.single && window.clearTimeout(d.current.single), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.accumulate && window.clearTimeout(d.current.accumulate);
|
|
1728
|
-
}, []), /* @__PURE__ */
|
|
1729
|
-
/* @__PURE__ */
|
|
1764
|
+
}, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1765
|
+
/* @__PURE__ */ s.jsx(
|
|
1730
1766
|
"button",
|
|
1731
|
-
|
|
1767
|
+
L({
|
|
1732
1768
|
ref: g,
|
|
1733
1769
|
onTouchEnd: k,
|
|
1734
1770
|
className: [me.playbackButton, e].filter(Boolean).join(" "),
|
|
1735
1771
|
"aria-label": "Player gestures"
|
|
1736
|
-
},
|
|
1772
|
+
}, l)
|
|
1737
1773
|
),
|
|
1738
|
-
|
|
1774
|
+
x.visible && /* @__PURE__ */ s.jsxs(
|
|
1739
1775
|
"div",
|
|
1740
1776
|
{
|
|
1741
|
-
className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${
|
|
1777
|
+
className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${x.direction === "backward" ? me.seekIndicatorLeft : me.seekIndicatorRight}`,
|
|
1742
1778
|
children: [
|
|
1743
|
-
|
|
1744
|
-
|
|
1779
|
+
x.direction === "backward" ? "-" : "+",
|
|
1780
|
+
xe(x.time)
|
|
1745
1781
|
]
|
|
1746
1782
|
}
|
|
1747
1783
|
)
|
|
1748
1784
|
] });
|
|
1749
1785
|
}
|
|
1750
|
-
function
|
|
1751
|
-
const e = f((
|
|
1752
|
-
return /* @__PURE__ */
|
|
1753
|
-
|
|
1786
|
+
function Wr() {
|
|
1787
|
+
const e = f((c) => c.isPlaying), t = f((c) => c.pause), n = f((c) => c.getPauseTimeDiff), o = f((c) => c.play), a = A((c) => c.delay), l = A((c) => c.setDelay), u = A((c) => c.startDate), i = u ? u.getTime() : 0;
|
|
1788
|
+
return /* @__PURE__ */ s.jsx(
|
|
1789
|
+
Xt,
|
|
1754
1790
|
{
|
|
1755
1791
|
onClick: () => {
|
|
1756
1792
|
if (e)
|
|
1757
1793
|
t();
|
|
1758
1794
|
else {
|
|
1759
|
-
const
|
|
1760
|
-
|
|
1795
|
+
const c = n();
|
|
1796
|
+
c && l(a + c), o();
|
|
1761
1797
|
}
|
|
1762
1798
|
},
|
|
1763
|
-
onBackwardSeek: (
|
|
1764
|
-
const d =
|
|
1765
|
-
|
|
1799
|
+
onBackwardSeek: (c) => {
|
|
1800
|
+
const d = a + c;
|
|
1801
|
+
l(d);
|
|
1766
1802
|
},
|
|
1767
|
-
onForwardSeek: (
|
|
1768
|
-
const d = Math.max(0,
|
|
1769
|
-
|
|
1803
|
+
onForwardSeek: (c) => {
|
|
1804
|
+
const d = Math.max(0, a - c);
|
|
1805
|
+
l(d);
|
|
1770
1806
|
},
|
|
1771
1807
|
maxBackwardTime: Math.floor(i),
|
|
1772
|
-
maxForwardTime: Math.floor(
|
|
1808
|
+
maxForwardTime: Math.floor(a)
|
|
1773
1809
|
}
|
|
1774
1810
|
);
|
|
1775
1811
|
}
|
|
1776
|
-
const
|
|
1777
|
-
playerButton:
|
|
1778
|
-
playerButtonCircle:
|
|
1779
|
-
}, le =
|
|
1780
|
-
(
|
|
1781
|
-
var
|
|
1782
|
-
const u = e === "circle" ?
|
|
1783
|
-
return /* @__PURE__ */
|
|
1812
|
+
const Zr = "_playerButton_izwqq_1", Kr = "_playerButtonCircle_izwqq_42", xt = {
|
|
1813
|
+
playerButton: Zr,
|
|
1814
|
+
playerButtonCircle: Kr
|
|
1815
|
+
}, le = Ne(
|
|
1816
|
+
(a, o) => {
|
|
1817
|
+
var l = a, { shape: e = "circle", className: t } = l, n = ne(l, ["shape", "className"]);
|
|
1818
|
+
const u = e === "circle" ? xt.playerButtonCircle : "", i = [xt.playerButton, u, t].filter(Boolean).join(" ");
|
|
1819
|
+
return /* @__PURE__ */ s.jsx("button", L({ ref: o, className: i }, n));
|
|
1784
1820
|
}
|
|
1785
1821
|
);
|
|
1786
1822
|
le.displayName = "PlayerButton";
|
|
1787
|
-
const
|
|
1788
|
-
liveIndicator:
|
|
1789
|
-
liveIndicatorHasDelay:
|
|
1790
|
-
liveIndicatorNoDelay:
|
|
1823
|
+
const Yr = "_liveIndicator_1jczn_1", Xr = "_liveIndicatorHasDelay_1jczn_9", Gr = "_liveIndicatorNoDelay_1jczn_13", ke = {
|
|
1824
|
+
liveIndicator: Yr,
|
|
1825
|
+
liveIndicatorHasDelay: Xr,
|
|
1826
|
+
liveIndicatorNoDelay: Gr
|
|
1791
1827
|
};
|
|
1792
|
-
function
|
|
1828
|
+
function Jr(n) {
|
|
1793
1829
|
var o = n, { message: e } = o, t = ne(o, ["message"]);
|
|
1794
|
-
const
|
|
1795
|
-
|
|
1796
|
-
}, i =
|
|
1797
|
-
return /* @__PURE__ */
|
|
1798
|
-
/* @__PURE__ */
|
|
1830
|
+
const a = A((c) => c.delay), l = A((c) => c.setDelay), u = () => {
|
|
1831
|
+
a && l(0);
|
|
1832
|
+
}, i = a ? `${ke.liveIndicator} ${ke.liveIndicatorHasDelay}` : `${ke.liveIndicator} ${ke.liveIndicatorNoDelay}`;
|
|
1833
|
+
return /* @__PURE__ */ s.jsxs(le, he(L({ onClick: u, shape: "square" }, t), { children: [
|
|
1834
|
+
/* @__PURE__ */ s.jsx("div", { className: i }),
|
|
1799
1835
|
e || "Live"
|
|
1800
1836
|
] }));
|
|
1801
1837
|
}
|
|
1802
|
-
function
|
|
1803
|
-
return /* @__PURE__ */
|
|
1838
|
+
function Gt() {
|
|
1839
|
+
return /* @__PURE__ */ s.jsx(
|
|
1804
1840
|
"svg",
|
|
1805
1841
|
{
|
|
1806
1842
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1807
1843
|
viewBox: "0 0 24 24",
|
|
1808
1844
|
fill: "currentColor",
|
|
1809
|
-
children: /* @__PURE__ */
|
|
1845
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
|
|
1810
1846
|
}
|
|
1811
1847
|
);
|
|
1812
1848
|
}
|
|
1813
|
-
function
|
|
1814
|
-
return /* @__PURE__ */
|
|
1849
|
+
function Jt() {
|
|
1850
|
+
return /* @__PURE__ */ s.jsx(
|
|
1815
1851
|
"svg",
|
|
1816
1852
|
{
|
|
1817
1853
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1818
1854
|
viewBox: "0 0 24 24",
|
|
1819
1855
|
fill: "currentColor",
|
|
1820
|
-
children: /* @__PURE__ */
|
|
1856
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })
|
|
1821
1857
|
}
|
|
1822
1858
|
);
|
|
1823
1859
|
}
|
|
1824
|
-
function
|
|
1825
|
-
const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play),
|
|
1860
|
+
function Qr() {
|
|
1861
|
+
const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), a = A((i) => i.delay), l = A((i) => i.setDelay), u = () => {
|
|
1826
1862
|
if (e)
|
|
1827
1863
|
t();
|
|
1828
1864
|
else {
|
|
1829
1865
|
const i = n();
|
|
1830
|
-
i &&
|
|
1866
|
+
i && l(a + i), o();
|
|
1831
1867
|
}
|
|
1832
1868
|
};
|
|
1833
|
-
return /* @__PURE__ */
|
|
1834
|
-
}
|
|
1835
|
-
const
|
|
1836
|
-
progressSlider:
|
|
1837
|
-
tipContainer:
|
|
1838
|
-
tipContainerVisible:
|
|
1839
|
-
tipContainerHidden:
|
|
1840
|
-
tipContent:
|
|
1841
|
-
},
|
|
1842
|
-
sliderRoot:
|
|
1843
|
-
sliderTrack:
|
|
1844
|
-
sliderRange:
|
|
1845
|
-
sliderThumb:
|
|
1846
|
-
},
|
|
1847
|
-
var u =
|
|
1848
|
-
return /* @__PURE__ */
|
|
1849
|
-
|
|
1850
|
-
he(
|
|
1851
|
-
ref:
|
|
1869
|
+
return /* @__PURE__ */ s.jsx(le, { onClick: u, children: e ? /* @__PURE__ */ s.jsx(Gt, {}) : /* @__PURE__ */ s.jsx(Jt, {}) });
|
|
1870
|
+
}
|
|
1871
|
+
const eo = "_progressSlider_hwzgf_1", to = "_tipContainer_hwzgf_7", no = "_tipContainerVisible_hwzgf_17", ro = "_tipContainerHidden_hwzgf_22", oo = "_tipContent_hwzgf_27", se = {
|
|
1872
|
+
progressSlider: eo,
|
|
1873
|
+
tipContainer: to,
|
|
1874
|
+
tipContainerVisible: no,
|
|
1875
|
+
tipContainerHidden: ro,
|
|
1876
|
+
tipContent: oo
|
|
1877
|
+
}, io = "_sliderRoot_aeak6_1", so = "_sliderTrack_aeak6_18", ao = "_sliderRange_aeak6_28", lo = "_sliderThumb_aeak6_37", Ie = {
|
|
1878
|
+
sliderRoot: io,
|
|
1879
|
+
sliderTrack: so,
|
|
1880
|
+
sliderRange: ao,
|
|
1881
|
+
sliderThumb: lo
|
|
1882
|
+
}, Ae = Ne((l, a) => {
|
|
1883
|
+
var u = l, { max: e = 100, min: t = 0, className: n } = u, o = ne(u, ["max", "min", "className"]);
|
|
1884
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1885
|
+
je.Root,
|
|
1886
|
+
he(L({
|
|
1887
|
+
ref: a,
|
|
1852
1888
|
min: t,
|
|
1853
1889
|
max: e,
|
|
1854
1890
|
"aria-label": "Player progress",
|
|
@@ -1860,14 +1896,14 @@ const Jr = "_progressSlider_hwzgf_1", Qr = "_tipContainer_hwzgf_7", eo = "_tipCo
|
|
|
1860
1896
|
)
|
|
1861
1897
|
}, o), {
|
|
1862
1898
|
children: [
|
|
1863
|
-
/* @__PURE__ */
|
|
1864
|
-
/* @__PURE__ */
|
|
1899
|
+
/* @__PURE__ */ s.jsx(je.Track, { className: Ie.sliderTrack, children: /* @__PURE__ */ s.jsx(je.Range, { className: Ie.sliderRange }) }),
|
|
1900
|
+
/* @__PURE__ */ s.jsx(je.Thumb, { className: Ie.sliderThumb })
|
|
1865
1901
|
]
|
|
1866
1902
|
})
|
|
1867
1903
|
);
|
|
1868
1904
|
});
|
|
1869
|
-
|
|
1870
|
-
function
|
|
1905
|
+
Ae.displayName = "PlayerSlider";
|
|
1906
|
+
function Me(e) {
|
|
1871
1907
|
const t = e.getBoundingClientRect();
|
|
1872
1908
|
return e.offsetWidth / e.offsetHeight > e.clientWidth / e.clientHeight ? {
|
|
1873
1909
|
left: t.left * 100,
|
|
@@ -1878,160 +1914,205 @@ function Fe(e) {
|
|
|
1878
1914
|
height: t.height * 100
|
|
1879
1915
|
} : t;
|
|
1880
1916
|
}
|
|
1881
|
-
const
|
|
1882
|
-
function
|
|
1883
|
-
const e =
|
|
1884
|
-
o(
|
|
1885
|
-
}, [v,
|
|
1886
|
-
(
|
|
1917
|
+
const Tt = "vod-player-progress-bar";
|
|
1918
|
+
function co() {
|
|
1919
|
+
const e = V(null), t = V(null), [n, o] = X(0), [a, l] = X(0), [u, i] = X(!1), [c, d] = X(-1), [g, y] = X(-1), v = A((D) => D.delay), x = A((D) => D.startDate), P = x ? x.getTime() : 0, b = (/* @__PURE__ */ new Date()).getTime(), E = A((D) => D.setDelay), N = f((D) => D.isPlaying), S = f((D) => D.addIdleLock), k = f((D) => D.removeIdleLock), _ = z(() => {
|
|
1920
|
+
o(Wt(P, v)), l(br(P, b));
|
|
1921
|
+
}, [v, b, P]), I = parseFloat(
|
|
1922
|
+
(a ? (g !== -1 ? g : n) / a * 100 : 0).toFixed(1)
|
|
1887
1923
|
), p = (D) => {
|
|
1888
|
-
y(
|
|
1889
|
-
},
|
|
1924
|
+
y(a * (D[0] / 100)), S(Tt);
|
|
1925
|
+
}, $ = () => {
|
|
1890
1926
|
if (g !== -1) {
|
|
1891
|
-
const D =
|
|
1892
|
-
|
|
1927
|
+
const D = qt(P, g);
|
|
1928
|
+
E(D), y(-1), k(Tt);
|
|
1893
1929
|
}
|
|
1894
|
-
}, G = () => i(!0),
|
|
1930
|
+
}, G = () => i(!0), Z = () => i(!1), O = z(
|
|
1895
1931
|
(D) => {
|
|
1896
|
-
const Q = e.current,
|
|
1897
|
-
if (Q &&
|
|
1898
|
-
const
|
|
1932
|
+
const Q = e.current, K = t.current;
|
|
1933
|
+
if (Q && K) {
|
|
1934
|
+
const q = Me(Q), oe = Me(K), ue = (D.pageX || D.clientX) - q.left, te = ue / q.width;
|
|
1899
1935
|
if (te < 0) return;
|
|
1900
|
-
let
|
|
1901
|
-
|
|
1902
|
-
const ve =
|
|
1936
|
+
let W = ue - oe.width / 2;
|
|
1937
|
+
W < 0 && (W = 0), W > q.width - oe.width && (W = -1), K.style.left = W > -1 ? `${W}px` : "auto", K.style.right = W > -1 ? "auto" : "0px";
|
|
1938
|
+
const ve = a - te * a;
|
|
1903
1939
|
d(ve > 0 ? ve : 0);
|
|
1904
1940
|
}
|
|
1905
1941
|
G();
|
|
1906
1942
|
},
|
|
1907
|
-
[
|
|
1943
|
+
[a]
|
|
1908
1944
|
);
|
|
1909
|
-
return
|
|
1910
|
-
|
|
1911
|
-
}, [
|
|
1912
|
-
/* @__PURE__ */
|
|
1913
|
-
|
|
1945
|
+
return Ve(() => _(), N ? 1e3 : null), F(() => {
|
|
1946
|
+
_();
|
|
1947
|
+
}, [_]), /* @__PURE__ */ s.jsxs("div", { className: se.progressSlider, children: [
|
|
1948
|
+
/* @__PURE__ */ s.jsx(
|
|
1949
|
+
Ae,
|
|
1914
1950
|
{
|
|
1915
1951
|
ref: e,
|
|
1916
1952
|
value: [I],
|
|
1917
|
-
onPointerLeave:
|
|
1918
|
-
onPointerDown:
|
|
1919
|
-
onPointerMove:
|
|
1953
|
+
onPointerLeave: Z,
|
|
1954
|
+
onPointerDown: Z,
|
|
1955
|
+
onPointerMove: O,
|
|
1920
1956
|
onValueChange: p,
|
|
1921
|
-
onValueCommit:
|
|
1957
|
+
onValueCommit: $,
|
|
1922
1958
|
step: 0.1
|
|
1923
1959
|
}
|
|
1924
1960
|
),
|
|
1925
|
-
/* @__PURE__ */
|
|
1961
|
+
/* @__PURE__ */ s.jsx(
|
|
1926
1962
|
"div",
|
|
1927
1963
|
{
|
|
1928
1964
|
ref: t,
|
|
1929
1965
|
className: `${se.tipContainer} ${u ? se.tipContainerVisible : se.tipContainerHidden}`,
|
|
1930
|
-
children: /* @__PURE__ */
|
|
1966
|
+
children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: `-${xe(c)}` })
|
|
1931
1967
|
}
|
|
1932
1968
|
)
|
|
1933
1969
|
] });
|
|
1934
1970
|
}
|
|
1935
|
-
function
|
|
1936
|
-
return /* @__PURE__ */
|
|
1971
|
+
function uo() {
|
|
1972
|
+
return /* @__PURE__ */ s.jsx(
|
|
1937
1973
|
"svg",
|
|
1938
1974
|
{
|
|
1939
1975
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1940
1976
|
viewBox: "0 0 24 24",
|
|
1941
1977
|
fill: "currentColor",
|
|
1942
|
-
children: /* @__PURE__ */
|
|
1978
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M22 12C22 17.5228 17.5229 22 12 22C6.4772 22 2 17.5228 2 12C2 6.47715 6.4772 2 12 2V4C7.5817 4 4 7.58172 4 12C4 16.4183 7.5817 20 12 20C16.4183 20 20 16.4183 20 12C20 9.53614 18.8862 7.33243 17.1346 5.86492L15 8V2L21 2L18.5535 4.44656C20.6649 6.28002 22 8.9841 22 12Z" })
|
|
1943
1979
|
}
|
|
1944
1980
|
);
|
|
1945
1981
|
}
|
|
1946
|
-
function
|
|
1947
|
-
const e =
|
|
1948
|
-
return /* @__PURE__ */
|
|
1982
|
+
function fo() {
|
|
1983
|
+
const e = A((a) => a.startDate), t = A((a) => a.setDelay), n = e ? e.getTime() : 0, o = () => t(qt(n));
|
|
1984
|
+
return /* @__PURE__ */ s.jsx(le, { onClick: o, children: /* @__PURE__ */ s.jsx(uo, {}) });
|
|
1949
1985
|
}
|
|
1950
|
-
|
|
1986
|
+
const ho = "_viewersContainer_bsl3f_1", mo = "_viewersIndicator_bsl3f_13", po = "_viewersIcon_bsl3f_21", vo = "_viewersCount_bsl3f_25", De = {
|
|
1987
|
+
viewersContainer: ho,
|
|
1988
|
+
viewersIndicator: mo,
|
|
1989
|
+
viewersIcon: po,
|
|
1990
|
+
viewersCount: vo
|
|
1991
|
+
};
|
|
1992
|
+
function yo() {
|
|
1993
|
+
const e = A((t) => t.viewerCount);
|
|
1994
|
+
return e ? /* @__PURE__ */ s.jsxs("div", { className: De.viewersContainer, children: [
|
|
1995
|
+
/* @__PURE__ */ s.jsx("span", { className: De.viewersIndicator }),
|
|
1996
|
+
/* @__PURE__ */ s.jsxs(
|
|
1997
|
+
"svg",
|
|
1998
|
+
{
|
|
1999
|
+
className: De.viewersIcon,
|
|
2000
|
+
width: "16",
|
|
2001
|
+
height: "16",
|
|
2002
|
+
viewBox: "0 0 16 16",
|
|
2003
|
+
fill: "none",
|
|
2004
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2005
|
+
children: [
|
|
2006
|
+
/* @__PURE__ */ s.jsx(
|
|
2007
|
+
"path",
|
|
2008
|
+
{
|
|
2009
|
+
d: "M8 7C9.10457 7 10 6.10457 10 5C10 3.89543 9.10457 3 8 3C6.89543 3 6 3.89543 6 5C6 6.10457 6.89543 7 8 7Z",
|
|
2010
|
+
fill: "currentColor"
|
|
2011
|
+
}
|
|
2012
|
+
),
|
|
2013
|
+
/* @__PURE__ */ s.jsx(
|
|
2014
|
+
"path",
|
|
2015
|
+
{
|
|
2016
|
+
d: "M8 8C5.79086 8 4 9.79086 4 12V13H12V12C12 9.79086 10.2091 8 8 8Z",
|
|
2017
|
+
fill: "currentColor"
|
|
2018
|
+
}
|
|
2019
|
+
)
|
|
2020
|
+
]
|
|
2021
|
+
}
|
|
2022
|
+
),
|
|
2023
|
+
/* @__PURE__ */ s.jsx("span", { className: De.viewersCount, children: e.toLocaleString() })
|
|
2024
|
+
] }) : null;
|
|
2025
|
+
}
|
|
2026
|
+
function Qt() {
|
|
1951
2027
|
const e = f((n) => n.error);
|
|
1952
2028
|
if (!e) return null;
|
|
1953
2029
|
const t = e.code === "LIVE_MANIFEST_LOAD_ERROR";
|
|
1954
|
-
return /* @__PURE__ */
|
|
2030
|
+
return /* @__PURE__ */ s.jsx(
|
|
1955
2031
|
"div",
|
|
1956
2032
|
{
|
|
1957
2033
|
className: `${ie.playerNotice} ${t ? ie.playerNoticeLowZIndex : ""}`,
|
|
1958
|
-
children: /* @__PURE__ */
|
|
2034
|
+
children: /* @__PURE__ */ s.jsx("h3", { className: ie.playerNoticeTitle, children: e.message })
|
|
1959
2035
|
}
|
|
1960
2036
|
);
|
|
1961
2037
|
}
|
|
1962
|
-
const
|
|
1963
|
-
playerContainer:
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
2038
|
+
const go = "_playerContainer_146tx_1", wo = "_controlsTop_146tx_12", _o = "_controlsBottom_146tx_29", xo = "_controlsContainer_146tx_45", To = "_controlsRow_146tx_61", Co = "_controlsSection_146tx_68", Eo = "_controlsSectionStart_146tx_78", Ro = "_controlsSectionEnd_146tx_82", B = {
|
|
2039
|
+
playerContainer: go,
|
|
2040
|
+
controlsTop: wo,
|
|
2041
|
+
controlsBottom: _o,
|
|
2042
|
+
controlsContainer: xo,
|
|
2043
|
+
controlsRow: To,
|
|
2044
|
+
controlsSection: Co,
|
|
2045
|
+
controlsSectionStart: Eo,
|
|
2046
|
+
controlsSectionEnd: Ro
|
|
1970
2047
|
};
|
|
1971
|
-
function
|
|
1972
|
-
return /* @__PURE__ */
|
|
2048
|
+
function bo() {
|
|
2049
|
+
return /* @__PURE__ */ s.jsx(
|
|
1973
2050
|
"svg",
|
|
1974
2051
|
{
|
|
1975
2052
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1976
2053
|
viewBox: "0 0 24 24",
|
|
1977
2054
|
fill: "currentColor",
|
|
1978
|
-
children: /* @__PURE__ */
|
|
2055
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
|
|
1979
2056
|
}
|
|
1980
2057
|
);
|
|
1981
2058
|
}
|
|
1982
|
-
function
|
|
1983
|
-
return /* @__PURE__ */
|
|
2059
|
+
function So() {
|
|
2060
|
+
return /* @__PURE__ */ s.jsx(
|
|
1984
2061
|
"svg",
|
|
1985
2062
|
{
|
|
1986
2063
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1987
2064
|
viewBox: "0 0 24 24",
|
|
1988
2065
|
fill: "currentColor",
|
|
1989
|
-
children: /* @__PURE__ */
|
|
2066
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
|
|
1990
2067
|
}
|
|
1991
2068
|
);
|
|
1992
2069
|
}
|
|
1993
|
-
function
|
|
1994
|
-
const e = f((d) => d.containerRef), t = f((d) => d.exitFullscreen), n = f((d) => d.isFullscreen), o = f((d) => d.requestFullscreen),
|
|
2070
|
+
function en() {
|
|
2071
|
+
const e = f((d) => d.containerRef), t = f((d) => d.exitFullscreen), n = f((d) => d.isFullscreen), o = f((d) => d.requestFullscreen), a = f((d) => d.setIsFullscreen), l = f((d) => d.setIsFullscreenReady), u = f((d) => d.techRef), i = z(
|
|
1995
2072
|
(d) => {
|
|
1996
|
-
d.stopPropagation(),
|
|
2073
|
+
d.stopPropagation(), a(or());
|
|
1997
2074
|
},
|
|
1998
|
-
[
|
|
1999
|
-
),
|
|
2075
|
+
[a]
|
|
2076
|
+
), c = () => {
|
|
2000
2077
|
n ? t() : o();
|
|
2001
2078
|
};
|
|
2002
|
-
return
|
|
2003
|
-
const d =
|
|
2079
|
+
return F(() => {
|
|
2080
|
+
const d = Ut ? u.current : e.current;
|
|
2004
2081
|
if (d)
|
|
2005
|
-
return
|
|
2006
|
-
}, [e, i, u]),
|
|
2007
|
-
|
|
2008
|
-
}, [
|
|
2009
|
-
}
|
|
2010
|
-
const
|
|
2011
|
-
idleCheckContainer:
|
|
2012
|
-
idleCheckContainerIdle:
|
|
2013
|
-
idleCheckContainerActive:
|
|
2014
|
-
},
|
|
2015
|
-
function
|
|
2016
|
-
const t =
|
|
2017
|
-
|
|
2018
|
-
}, []), d =
|
|
2019
|
-
|
|
2020
|
-
}, [
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
}), [
|
|
2082
|
+
return ar(d, i);
|
|
2083
|
+
}, [e, i, u]), F(() => {
|
|
2084
|
+
l(!0);
|
|
2085
|
+
}, [l]), /* @__PURE__ */ s.jsx(le, { onClick: c, children: n ? /* @__PURE__ */ s.jsx(So, {}) : /* @__PURE__ */ s.jsx(bo, {}) });
|
|
2086
|
+
}
|
|
2087
|
+
const jo = "_idleCheckContainer_iz9tu_1", Lo = "_idleCheckContainerIdle_iz9tu_10", Po = "_idleCheckContainerActive_iz9tu_15", Ze = {
|
|
2088
|
+
idleCheckContainer: jo,
|
|
2089
|
+
idleCheckContainerIdle: Lo,
|
|
2090
|
+
idleCheckContainerActive: Po
|
|
2091
|
+
}, ko = 5 * 1e3;
|
|
2092
|
+
function tn({ children: e }) {
|
|
2093
|
+
const t = V(null), n = f((v) => v.isIdle), o = f((v) => v.setIsIdle), a = V(null), u = f((v) => v.idleLocks).size, i = f((v) => v.eventEmitter), c = z(() => {
|
|
2094
|
+
a.current !== null && (window.clearTimeout(a.current), a.current = null);
|
|
2095
|
+
}, []), d = z(() => {
|
|
2096
|
+
c(), a.current = window.setTimeout(() => o(!0), ko);
|
|
2097
|
+
}, [c]);
|
|
2098
|
+
F(() => (o(!1), d(), () => {
|
|
2099
|
+
c();
|
|
2100
|
+
}), [c, d]), F(() => {
|
|
2024
2101
|
const v = t.current;
|
|
2025
2102
|
if (!v) return;
|
|
2026
|
-
const
|
|
2027
|
-
n && (
|
|
2028
|
-
},
|
|
2103
|
+
const x = (E) => {
|
|
2104
|
+
n && (E.preventDefault(), E.stopPropagation(), o(!1), d());
|
|
2105
|
+
}, P = (E) => {
|
|
2106
|
+
n && (E.preventDefault(), E.stopPropagation(), o(!1), d());
|
|
2107
|
+
}, b = () => {
|
|
2029
2108
|
n && o(!1), d();
|
|
2030
2109
|
};
|
|
2031
|
-
return v.addEventListener("click",
|
|
2032
|
-
|
|
2110
|
+
return v.addEventListener("click", x), v.addEventListener("touchstart", P, {
|
|
2111
|
+
passive: !1
|
|
2112
|
+
}), v.addEventListener("mousemove", b), () => {
|
|
2113
|
+
v.removeEventListener("click", x), v.removeEventListener("touchstart", P), v.removeEventListener("mousemove", b);
|
|
2033
2114
|
};
|
|
2034
|
-
}, [t, n, o, d]),
|
|
2115
|
+
}, [t, n, o, d]), F(() => {
|
|
2035
2116
|
const v = () => {
|
|
2036
2117
|
o(!1), d();
|
|
2037
2118
|
};
|
|
@@ -2039,67 +2120,67 @@ function en({ children: e }) {
|
|
|
2039
2120
|
i.off("resetIdle", v);
|
|
2040
2121
|
};
|
|
2041
2122
|
}, [i, o, d]);
|
|
2042
|
-
const g = n && !u, y = `${
|
|
2043
|
-
return /* @__PURE__ */
|
|
2123
|
+
const g = n && !u, y = `${Ze.idleCheckContainer} ${g ? Ze.idleCheckContainerIdle : Ze.idleCheckContainerActive}`;
|
|
2124
|
+
return /* @__PURE__ */ s.jsx("div", { ref: t, className: y, children: e });
|
|
2044
2125
|
}
|
|
2045
|
-
const
|
|
2046
|
-
spinner:
|
|
2126
|
+
const Io = "_spinner_oo4hi_10", Do = {
|
|
2127
|
+
spinner: Io
|
|
2047
2128
|
};
|
|
2048
|
-
function
|
|
2049
|
-
return /* @__PURE__ */
|
|
2129
|
+
function Fo(e) {
|
|
2130
|
+
return /* @__PURE__ */ s.jsx("div", L({ className: Do.spinner }, e));
|
|
2050
2131
|
}
|
|
2051
|
-
function
|
|
2132
|
+
function Mo(e, t = 500) {
|
|
2052
2133
|
const [n, o] = X(e);
|
|
2053
|
-
return
|
|
2054
|
-
const
|
|
2134
|
+
return F(() => {
|
|
2135
|
+
const a = window.setTimeout(() => o(e), t);
|
|
2055
2136
|
return () => {
|
|
2056
|
-
window.clearTimeout(
|
|
2137
|
+
window.clearTimeout(a);
|
|
2057
2138
|
};
|
|
2058
2139
|
}, [e, t]), n;
|
|
2059
2140
|
}
|
|
2060
|
-
const
|
|
2061
|
-
loadingContainer:
|
|
2141
|
+
const No = "_loadingContainer_v9v7r_1", Vo = {
|
|
2142
|
+
loadingContainer: No
|
|
2062
2143
|
};
|
|
2063
|
-
function
|
|
2144
|
+
function nn(n) {
|
|
2064
2145
|
var o = n, { style: e } = o, t = ne(o, ["style"]);
|
|
2065
|
-
const
|
|
2066
|
-
return
|
|
2146
|
+
const a = f((u) => u.isLoading);
|
|
2147
|
+
return Mo(a, 100) ? /* @__PURE__ */ s.jsx("div", he(L({ className: Vo.loadingContainer, style: e }, t), { children: /* @__PURE__ */ s.jsx(Fo, {}) })) : null;
|
|
2067
2148
|
}
|
|
2068
|
-
function
|
|
2069
|
-
return /* @__PURE__ */
|
|
2149
|
+
function Ao() {
|
|
2150
|
+
return /* @__PURE__ */ s.jsx(
|
|
2070
2151
|
"svg",
|
|
2071
2152
|
{
|
|
2072
2153
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2073
2154
|
viewBox: "0 0 24 24",
|
|
2074
2155
|
fill: "currentColor",
|
|
2075
|
-
children: /* @__PURE__ */
|
|
2156
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })
|
|
2076
2157
|
}
|
|
2077
2158
|
);
|
|
2078
2159
|
}
|
|
2079
|
-
function
|
|
2080
|
-
return /* @__PURE__ */
|
|
2160
|
+
function Oo() {
|
|
2161
|
+
return /* @__PURE__ */ s.jsx(
|
|
2081
2162
|
"svg",
|
|
2082
2163
|
{
|
|
2083
2164
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2084
2165
|
viewBox: "0 0 24 24",
|
|
2085
2166
|
fill: "currentColor",
|
|
2086
|
-
children: /* @__PURE__ */
|
|
2167
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M4 5V19H20V5H4ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM7.5 11.25H9.5V9H11V15H9.5V12.75H7.5V15H6V9H7.5V11.25ZM14.5 10.5V13.5H16C16.2761 13.5 16.5 13.2761 16.5 13V11C16.5 10.7239 16.2761 10.5 16 10.5H14.5ZM13 9H16C17.1046 9 18 9.89543 18 11V13C18 14.1046 17.1046 15 16 15H13V9Z" })
|
|
2087
2168
|
}
|
|
2088
2169
|
);
|
|
2089
2170
|
}
|
|
2090
|
-
const
|
|
2091
|
-
dropdownMenuContent:
|
|
2092
|
-
dropdownMenuItem:
|
|
2093
|
-
scrollAreaRoot:
|
|
2094
|
-
scrollAreaViewport:
|
|
2095
|
-
scrollAreaScrollbar:
|
|
2096
|
-
scrollAreaThumb:
|
|
2097
|
-
},
|
|
2098
|
-
var u =
|
|
2099
|
-
return /* @__PURE__ */
|
|
2100
|
-
|
|
2101
|
-
he(
|
|
2102
|
-
ref:
|
|
2171
|
+
const Ho = "_dropdownMenuContent_b7j6b_1", $o = "_dropdownMenuItem_b7j6b_83", Uo = "_scrollAreaRoot_b7j6b_125", Bo = "_scrollAreaViewport_b7j6b_133", zo = "_scrollAreaScrollbar_b7j6b_141", qo = "_scrollAreaThumb_b7j6b_168", pe = {
|
|
2172
|
+
dropdownMenuContent: Ho,
|
|
2173
|
+
dropdownMenuItem: $o,
|
|
2174
|
+
scrollAreaRoot: Uo,
|
|
2175
|
+
scrollAreaViewport: Bo,
|
|
2176
|
+
scrollAreaScrollbar: zo,
|
|
2177
|
+
scrollAreaThumb: qo
|
|
2178
|
+
}, Wo = Te.Root, Zo = Te.Trigger, Ko = Te.Portal, rn = Ne((l, a) => {
|
|
2179
|
+
var u = l, { sideOffset: e = 4, className: t, children: n } = u, o = ne(u, ["sideOffset", "className", "children"]);
|
|
2180
|
+
return /* @__PURE__ */ s.jsx(
|
|
2181
|
+
Te.Content,
|
|
2182
|
+
he(L({
|
|
2183
|
+
ref: a,
|
|
2103
2184
|
sideOffset: e,
|
|
2104
2185
|
className: [pe.dropdownMenuContent, t].filter(Boolean).join(" "),
|
|
2105
2186
|
onOpenAutoFocus: (i) => {
|
|
@@ -2109,20 +2190,20 @@ const Io = "_dropdownMenuContent_11aiz_1", Do = "_dropdownMenuItem_11aiz_82", Fo
|
|
|
2109
2190
|
i.preventDefault();
|
|
2110
2191
|
}
|
|
2111
2192
|
}, o), {
|
|
2112
|
-
children: /* @__PURE__ */
|
|
2113
|
-
|
|
2193
|
+
children: /* @__PURE__ */ s.jsxs(
|
|
2194
|
+
Le.Root,
|
|
2114
2195
|
{
|
|
2115
2196
|
className: pe.scrollAreaRoot,
|
|
2116
2197
|
type: "always",
|
|
2117
2198
|
scrollHideDelay: 0,
|
|
2118
2199
|
children: [
|
|
2119
|
-
/* @__PURE__ */
|
|
2120
|
-
/* @__PURE__ */
|
|
2121
|
-
|
|
2200
|
+
/* @__PURE__ */ s.jsx(Le.Viewport, { className: pe.scrollAreaViewport, children: n }),
|
|
2201
|
+
/* @__PURE__ */ s.jsx(
|
|
2202
|
+
Le.Scrollbar,
|
|
2122
2203
|
{
|
|
2123
2204
|
className: pe.scrollAreaScrollbar,
|
|
2124
2205
|
orientation: "vertical",
|
|
2125
|
-
children: /* @__PURE__ */
|
|
2206
|
+
children: /* @__PURE__ */ s.jsx(Le.Thumb, { className: pe.scrollAreaThumb })
|
|
2126
2207
|
}
|
|
2127
2208
|
)
|
|
2128
2209
|
]
|
|
@@ -2131,17 +2212,17 @@ const Io = "_dropdownMenuContent_11aiz_1", Do = "_dropdownMenuItem_11aiz_82", Fo
|
|
|
2131
2212
|
})
|
|
2132
2213
|
);
|
|
2133
2214
|
});
|
|
2134
|
-
|
|
2135
|
-
const
|
|
2136
|
-
var
|
|
2137
|
-
const u = (
|
|
2138
|
-
t == null || t(
|
|
2139
|
-
}, i = (
|
|
2140
|
-
(
|
|
2215
|
+
rn.displayName = "PlayerMenuContent";
|
|
2216
|
+
const on = Ne((a, o) => {
|
|
2217
|
+
var l = a, { className: e, onClick: t } = l, n = ne(l, ["className", "onClick"]);
|
|
2218
|
+
const u = (c) => {
|
|
2219
|
+
t == null || t(c);
|
|
2220
|
+
}, i = (c) => {
|
|
2221
|
+
(c.key === "Enter" || c.key === " ") && (c.preventDefault(), t == null || t(c));
|
|
2141
2222
|
};
|
|
2142
|
-
return /* @__PURE__ */
|
|
2223
|
+
return /* @__PURE__ */ s.jsx(Te.Close, { asChild: !0, children: /* @__PURE__ */ s.jsx(
|
|
2143
2224
|
"div",
|
|
2144
|
-
|
|
2225
|
+
L({
|
|
2145
2226
|
ref: o,
|
|
2146
2227
|
className: [pe.dropdownMenuItem, e].filter(Boolean).join(" "),
|
|
2147
2228
|
role: "menuitem",
|
|
@@ -2151,98 +2232,98 @@ const rn = Me((s, o) => {
|
|
|
2151
2232
|
}, n)
|
|
2152
2233
|
) });
|
|
2153
2234
|
});
|
|
2154
|
-
|
|
2155
|
-
const
|
|
2156
|
-
function
|
|
2157
|
-
const [e, t] = X(!1), n = f((
|
|
2158
|
-
(
|
|
2159
|
-
t(
|
|
2235
|
+
on.displayName = "PlayerMenuItem";
|
|
2236
|
+
const Ct = "settings";
|
|
2237
|
+
function sn() {
|
|
2238
|
+
const [e, t] = X(!1), n = f((c) => c.containerRef), o = f((c) => c.addIdleLock), a = f((c) => c.removeIdleLock), l = f((c) => c.levels), u = f((c) => c.setLevel), i = z(
|
|
2239
|
+
(c) => {
|
|
2240
|
+
t(c), c ? o(Ct) : a(Ct);
|
|
2160
2241
|
},
|
|
2161
|
-
[o,
|
|
2242
|
+
[o, a]
|
|
2162
2243
|
);
|
|
2163
|
-
return /* @__PURE__ */
|
|
2164
|
-
/* @__PURE__ */
|
|
2165
|
-
/* @__PURE__ */
|
|
2166
|
-
|
|
2244
|
+
return /* @__PURE__ */ s.jsxs(Wo, { open: e, onOpenChange: i, children: [
|
|
2245
|
+
/* @__PURE__ */ s.jsx(Zo, { asChild: !0, children: /* @__PURE__ */ s.jsx(le, { children: /* @__PURE__ */ s.jsx(Oo, {}) }) }),
|
|
2246
|
+
/* @__PURE__ */ s.jsx(Ko, { container: n.current, children: /* @__PURE__ */ s.jsx(rn, { side: "top", align: "end", children: l == null ? void 0 : l.map((c) => /* @__PURE__ */ s.jsxs(
|
|
2247
|
+
on,
|
|
2167
2248
|
{
|
|
2168
|
-
onClick: () => u(
|
|
2249
|
+
onClick: () => u(c.value),
|
|
2169
2250
|
children: [
|
|
2170
|
-
|
|
2171
|
-
|
|
2251
|
+
c.label,
|
|
2252
|
+
c.selected && /* @__PURE__ */ s.jsx(Ao, {})
|
|
2172
2253
|
]
|
|
2173
2254
|
},
|
|
2174
|
-
|
|
2255
|
+
c.sid
|
|
2175
2256
|
)) }) })
|
|
2176
2257
|
] });
|
|
2177
2258
|
}
|
|
2178
|
-
function
|
|
2179
|
-
return /* @__PURE__ */
|
|
2259
|
+
function Yo() {
|
|
2260
|
+
return /* @__PURE__ */ s.jsx(
|
|
2180
2261
|
"svg",
|
|
2181
2262
|
{
|
|
2182
2263
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2183
2264
|
viewBox: "0 0 24 24",
|
|
2184
2265
|
fill: "currentColor",
|
|
2185
|
-
children: /* @__PURE__ */
|
|
2266
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" })
|
|
2186
2267
|
}
|
|
2187
2268
|
);
|
|
2188
2269
|
}
|
|
2189
|
-
function
|
|
2190
|
-
return /* @__PURE__ */
|
|
2270
|
+
function Xo() {
|
|
2271
|
+
return /* @__PURE__ */ s.jsx(
|
|
2191
2272
|
"svg",
|
|
2192
2273
|
{
|
|
2193
2274
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2194
2275
|
viewBox: "0 0 24 24",
|
|
2195
2276
|
fill: "currentColor",
|
|
2196
|
-
children: /* @__PURE__ */
|
|
2277
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M13 7.22056L9.60282 10.0001H6V14.0001H9.60282L13 16.7796V7.22056ZM8.88889 16.0001H5C4.44772 16.0001 4 15.5524 4 15.0001V9.00007C4 8.44778 4.44772 8.00007 5 8.00007H8.88889L14.1834 3.66821C14.3971 3.49335 14.7121 3.52485 14.887 3.73857C14.9601 3.8279 15 3.93977 15 4.05519V19.9449C15 20.2211 14.7761 20.4449 14.5 20.4449C14.3846 20.4449 14.2727 20.405 14.1834 20.3319L8.88889 16.0001ZM18.8631 16.5911L17.4411 15.1691C18.3892 14.4376 19 13.2902 19 12.0001C19 10.5697 18.2493 9.31476 17.1203 8.60766L18.5589 7.16906C20.0396 8.26166 21 10.0187 21 12.0001C21 13.8422 20.1698 15.4905 18.8631 16.5911Z" })
|
|
2197
2278
|
}
|
|
2198
2279
|
);
|
|
2199
2280
|
}
|
|
2200
|
-
function
|
|
2201
|
-
return /* @__PURE__ */
|
|
2281
|
+
function Go() {
|
|
2282
|
+
return /* @__PURE__ */ s.jsx(
|
|
2202
2283
|
"svg",
|
|
2203
2284
|
{
|
|
2204
2285
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2205
2286
|
viewBox: "0 0 24 24",
|
|
2206
2287
|
fill: "currentColor",
|
|
2207
|
-
children: /* @__PURE__ */
|
|
2288
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z" })
|
|
2208
2289
|
}
|
|
2209
2290
|
);
|
|
2210
2291
|
}
|
|
2211
|
-
const
|
|
2212
|
-
volumeContainer:
|
|
2213
|
-
volumeSlider:
|
|
2214
|
-
},
|
|
2215
|
-
function
|
|
2216
|
-
const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), o = f((i) => i.removeIdleLock),
|
|
2217
|
-
e(i[0]), n(
|
|
2218
|
-
},
|
|
2219
|
-
o(
|
|
2292
|
+
const Jo = "_volumeContainer_4d6jg_1", Qo = "_volumeSlider_4d6jg_8", Et = {
|
|
2293
|
+
volumeContainer: Jo,
|
|
2294
|
+
volumeSlider: Qo
|
|
2295
|
+
}, Rt = "volume";
|
|
2296
|
+
function an() {
|
|
2297
|
+
const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), o = f((i) => i.removeIdleLock), a = (i) => {
|
|
2298
|
+
e(i[0]), n(Rt);
|
|
2299
|
+
}, l = () => {
|
|
2300
|
+
o(Rt);
|
|
2220
2301
|
}, u = () => e(t ? 0 : 100);
|
|
2221
|
-
return /* @__PURE__ */
|
|
2222
|
-
/* @__PURE__ */
|
|
2223
|
-
/* @__PURE__ */
|
|
2224
|
-
|
|
2302
|
+
return /* @__PURE__ */ s.jsxs("div", { className: Et.volumeContainer, children: [
|
|
2303
|
+
/* @__PURE__ */ s.jsx(le, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ s.jsx(Yo, {}) : /* @__PURE__ */ s.jsx(Xo, {}) : /* @__PURE__ */ s.jsx(Go, {}) }),
|
|
2304
|
+
/* @__PURE__ */ s.jsx("div", { className: Et.volumeSlider, children: /* @__PURE__ */ s.jsx(
|
|
2305
|
+
Ae,
|
|
2225
2306
|
{
|
|
2226
2307
|
value: [t],
|
|
2227
|
-
onValueChange:
|
|
2228
|
-
onValueCommit:
|
|
2308
|
+
onValueChange: a,
|
|
2309
|
+
onValueCommit: l
|
|
2229
2310
|
}
|
|
2230
2311
|
) })
|
|
2231
2312
|
] });
|
|
2232
2313
|
}
|
|
2233
|
-
function
|
|
2234
|
-
return /* @__PURE__ */
|
|
2314
|
+
function vi(e) {
|
|
2315
|
+
return /* @__PURE__ */ s.jsx(kr, { children: /* @__PURE__ */ s.jsx(ei, L({}, e)) });
|
|
2235
2316
|
}
|
|
2236
|
-
function
|
|
2237
|
-
const o = f((
|
|
2238
|
-
return /* @__PURE__ */
|
|
2317
|
+
function ei({ url: e, messages: t, onEvent: n }) {
|
|
2318
|
+
const o = f((a) => a.containerRef);
|
|
2319
|
+
return /* @__PURE__ */ s.jsxs(
|
|
2239
2320
|
"div",
|
|
2240
2321
|
{
|
|
2241
2322
|
ref: o,
|
|
2242
|
-
className:
|
|
2323
|
+
className: B.playerContainer,
|
|
2243
2324
|
children: [
|
|
2244
|
-
/* @__PURE__ */
|
|
2245
|
-
|
|
2325
|
+
/* @__PURE__ */ s.jsxs(
|
|
2326
|
+
Cr,
|
|
2246
2327
|
{
|
|
2247
2328
|
url: e,
|
|
2248
2329
|
messages: {
|
|
@@ -2250,8 +2331,8 @@ function Wo({ url: e, messages: t, onEvent: n }) {
|
|
|
2250
2331
|
eventStartingSoon: t == null ? void 0 : t.eventStartingSoon
|
|
2251
2332
|
},
|
|
2252
2333
|
children: [
|
|
2253
|
-
/* @__PURE__ */
|
|
2254
|
-
|
|
2334
|
+
/* @__PURE__ */ s.jsx(
|
|
2335
|
+
Mr,
|
|
2255
2336
|
{
|
|
2256
2337
|
url: e,
|
|
2257
2338
|
messages: {
|
|
@@ -2259,32 +2340,33 @@ function Wo({ url: e, messages: t, onEvent: n }) {
|
|
|
2259
2340
|
}
|
|
2260
2341
|
}
|
|
2261
2342
|
),
|
|
2262
|
-
/* @__PURE__ */
|
|
2263
|
-
/* @__PURE__ */
|
|
2264
|
-
/* @__PURE__ */
|
|
2265
|
-
/* @__PURE__ */
|
|
2266
|
-
/* @__PURE__ */
|
|
2267
|
-
|
|
2268
|
-
/* @__PURE__ */
|
|
2269
|
-
|
|
2343
|
+
/* @__PURE__ */ s.jsx(Qt, {}),
|
|
2344
|
+
/* @__PURE__ */ s.jsx(nn, {}),
|
|
2345
|
+
/* @__PURE__ */ s.jsxs(tn, { children: [
|
|
2346
|
+
/* @__PURE__ */ s.jsx(Wr, {}),
|
|
2347
|
+
/* @__PURE__ */ s.jsx("div", { className: B.controlsTop, children: /* @__PURE__ */ s.jsx("div", { className: B.controlsContainer, children: /* @__PURE__ */ s.jsx("div", { className: B.controlsRow, children: /* @__PURE__ */ s.jsx(yo, {}) }) }) }),
|
|
2348
|
+
/* @__PURE__ */ s.jsx("div", { className: B.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: B.controlsContainer, children: [
|
|
2349
|
+
/* @__PURE__ */ s.jsx(co, {}),
|
|
2350
|
+
/* @__PURE__ */ s.jsxs("div", { className: B.controlsRow, children: [
|
|
2351
|
+
/* @__PURE__ */ s.jsxs(
|
|
2270
2352
|
"div",
|
|
2271
2353
|
{
|
|
2272
|
-
className: `${
|
|
2354
|
+
className: `${B.controlsSection} ${B.controlsSectionStart}`,
|
|
2273
2355
|
children: [
|
|
2274
|
-
/* @__PURE__ */
|
|
2275
|
-
/* @__PURE__ */
|
|
2276
|
-
/* @__PURE__ */
|
|
2356
|
+
/* @__PURE__ */ s.jsx(Qr, {}),
|
|
2357
|
+
/* @__PURE__ */ s.jsx(fo, {}),
|
|
2358
|
+
/* @__PURE__ */ s.jsx(an, {})
|
|
2277
2359
|
]
|
|
2278
2360
|
}
|
|
2279
2361
|
),
|
|
2280
|
-
/* @__PURE__ */
|
|
2362
|
+
/* @__PURE__ */ s.jsxs(
|
|
2281
2363
|
"div",
|
|
2282
2364
|
{
|
|
2283
|
-
className: `${
|
|
2365
|
+
className: `${B.controlsSection} ${B.controlsSectionEnd}`,
|
|
2284
2366
|
children: [
|
|
2285
|
-
/* @__PURE__ */
|
|
2286
|
-
/* @__PURE__ */
|
|
2287
|
-
/* @__PURE__ */
|
|
2367
|
+
/* @__PURE__ */ s.jsx(Jr, { message: t == null ? void 0 : t.live }),
|
|
2368
|
+
/* @__PURE__ */ s.jsx(sn, {}),
|
|
2369
|
+
/* @__PURE__ */ s.jsx(en, {})
|
|
2288
2370
|
]
|
|
2289
2371
|
}
|
|
2290
2372
|
)
|
|
@@ -2294,184 +2376,185 @@ function Wo({ url: e, messages: t, onEvent: n }) {
|
|
|
2294
2376
|
]
|
|
2295
2377
|
}
|
|
2296
2378
|
),
|
|
2297
|
-
/* @__PURE__ */
|
|
2298
|
-
|
|
2379
|
+
/* @__PURE__ */ s.jsx(Pr, {}),
|
|
2380
|
+
/* @__PURE__ */ s.jsx(Nr, { url: e }),
|
|
2381
|
+
n && /* @__PURE__ */ s.jsx(Lr, { callback: n })
|
|
2299
2382
|
]
|
|
2300
2383
|
}
|
|
2301
2384
|
);
|
|
2302
2385
|
}
|
|
2303
|
-
function
|
|
2304
|
-
const e = f((u) => u.isPlaying), t = f((u) => u.pause), n = f((u) => u.play), o = f((u) => u.currentTime),
|
|
2305
|
-
return /* @__PURE__ */
|
|
2306
|
-
|
|
2386
|
+
function ti() {
|
|
2387
|
+
const e = f((u) => u.isPlaying), t = f((u) => u.pause), n = f((u) => u.play), o = f((u) => u.currentTime), a = f((u) => u.duration), l = f((u) => u.seek);
|
|
2388
|
+
return /* @__PURE__ */ s.jsx(
|
|
2389
|
+
Xt,
|
|
2307
2390
|
{
|
|
2308
2391
|
onClick: () => {
|
|
2309
2392
|
e ? t() : n();
|
|
2310
2393
|
},
|
|
2311
2394
|
onBackwardSeek: (u) => {
|
|
2312
2395
|
const i = Math.max(0, o - u);
|
|
2313
|
-
|
|
2396
|
+
l(i);
|
|
2314
2397
|
},
|
|
2315
2398
|
onForwardSeek: (u) => {
|
|
2316
|
-
const i = Math.min(o + u,
|
|
2317
|
-
|
|
2399
|
+
const i = Math.min(o + u, a);
|
|
2400
|
+
l(i);
|
|
2318
2401
|
},
|
|
2319
2402
|
maxBackwardTime: Math.floor(o),
|
|
2320
|
-
maxForwardTime: Math.floor(
|
|
2403
|
+
maxForwardTime: Math.floor(a - o)
|
|
2321
2404
|
}
|
|
2322
2405
|
);
|
|
2323
2406
|
}
|
|
2324
|
-
function
|
|
2325
|
-
const e = f((
|
|
2407
|
+
function ni() {
|
|
2408
|
+
const e = f((a) => a.isPlaying), t = f((a) => a.pause), n = f((a) => a.play), o = () => {
|
|
2326
2409
|
e ? t() : n();
|
|
2327
2410
|
};
|
|
2328
|
-
return /* @__PURE__ */
|
|
2329
|
-
}
|
|
2330
|
-
const
|
|
2331
|
-
function
|
|
2332
|
-
const e =
|
|
2333
|
-
(d ? (u !== -1 ? u :
|
|
2334
|
-
),
|
|
2335
|
-
i(d * (k[0] / 100)), y(
|
|
2336
|
-
},
|
|
2337
|
-
u !== -1 && (g(u), i(-1), v(
|
|
2338
|
-
},
|
|
2411
|
+
return /* @__PURE__ */ s.jsx(le, { onClick: o, children: e ? /* @__PURE__ */ s.jsx(Gt, {}) : /* @__PURE__ */ s.jsx(Jt, {}) });
|
|
2412
|
+
}
|
|
2413
|
+
const bt = "vod-player-progress-bar";
|
|
2414
|
+
function ri() {
|
|
2415
|
+
const e = V(null), t = V(null), [n, o] = X(!1), [a, l] = X(-1), [u, i] = X(-1), c = f((k) => k.currentTime), d = f((k) => k.duration), g = f((k) => k.seek), y = f((k) => k.addIdleLock), v = f((k) => k.removeIdleLock), x = parseFloat(
|
|
2416
|
+
(d ? (u !== -1 ? u : c) / d * 100 : 0).toFixed(1)
|
|
2417
|
+
), P = (k) => {
|
|
2418
|
+
i(d * (k[0] / 100)), y(bt);
|
|
2419
|
+
}, b = () => {
|
|
2420
|
+
u !== -1 && (g(u), i(-1), v(bt));
|
|
2421
|
+
}, E = () => o(!0), N = () => o(!1), S = z(
|
|
2339
2422
|
(k) => {
|
|
2340
|
-
const
|
|
2341
|
-
if (
|
|
2342
|
-
const p =
|
|
2343
|
-
if (
|
|
2344
|
-
let
|
|
2345
|
-
|
|
2423
|
+
const _ = e.current, I = t.current;
|
|
2424
|
+
if (_ && I) {
|
|
2425
|
+
const p = Me(_), $ = Me(I), G = (k.pageX || k.clientX) - p.left, Z = G / p.width;
|
|
2426
|
+
if (Z < 0) return;
|
|
2427
|
+
let O = G - $.width / 2;
|
|
2428
|
+
O < 0 && (O = 0), O > p.width - $.width && (O = -1), I.style.left = O > -1 ? `${O}px` : "auto", I.style.right = O > -1 ? "auto" : "0px", l(Z * d);
|
|
2346
2429
|
}
|
|
2347
|
-
|
|
2430
|
+
E();
|
|
2348
2431
|
},
|
|
2349
2432
|
[d]
|
|
2350
2433
|
);
|
|
2351
|
-
return /* @__PURE__ */
|
|
2352
|
-
/* @__PURE__ */
|
|
2353
|
-
|
|
2434
|
+
return /* @__PURE__ */ s.jsxs("div", { className: se.progressSlider, children: [
|
|
2435
|
+
/* @__PURE__ */ s.jsx(
|
|
2436
|
+
Ae,
|
|
2354
2437
|
{
|
|
2355
2438
|
ref: e,
|
|
2356
|
-
value: [
|
|
2357
|
-
onPointerLeave:
|
|
2358
|
-
onPointerDown:
|
|
2359
|
-
onPointerMove:
|
|
2360
|
-
onValueChange:
|
|
2361
|
-
onValueCommit:
|
|
2439
|
+
value: [x],
|
|
2440
|
+
onPointerLeave: N,
|
|
2441
|
+
onPointerDown: N,
|
|
2442
|
+
onPointerMove: S,
|
|
2443
|
+
onValueChange: P,
|
|
2444
|
+
onValueCommit: b,
|
|
2362
2445
|
step: 0.1
|
|
2363
2446
|
}
|
|
2364
2447
|
),
|
|
2365
|
-
/* @__PURE__ */
|
|
2448
|
+
/* @__PURE__ */ s.jsx(
|
|
2366
2449
|
"div",
|
|
2367
2450
|
{
|
|
2368
2451
|
ref: t,
|
|
2369
2452
|
className: `${se.tipContainer} ${n ? se.tipContainerVisible : se.tipContainerHidden}`,
|
|
2370
|
-
children: /* @__PURE__ */
|
|
2453
|
+
children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: xe(a) })
|
|
2371
2454
|
}
|
|
2372
2455
|
)
|
|
2373
2456
|
] });
|
|
2374
2457
|
}
|
|
2375
|
-
const
|
|
2376
|
-
remainingTimeContainer:
|
|
2377
|
-
remainingTime:
|
|
2378
|
-
remainingSeparator:
|
|
2458
|
+
const oi = "_remainingTimeContainer_1yyhb_1", ii = "_remainingTime_1yyhb_1", si = "_remainingSeparator_1yyhb_17", Fe = {
|
|
2459
|
+
remainingTimeContainer: oi,
|
|
2460
|
+
remainingTime: ii,
|
|
2461
|
+
remainingSeparator: si
|
|
2379
2462
|
};
|
|
2380
|
-
function
|
|
2463
|
+
function ai() {
|
|
2381
2464
|
const e = f((n) => n.currentTime), t = f((n) => n.duration);
|
|
2382
|
-
return /* @__PURE__ */
|
|
2383
|
-
/* @__PURE__ */
|
|
2384
|
-
/* @__PURE__ */
|
|
2385
|
-
/* @__PURE__ */
|
|
2465
|
+
return /* @__PURE__ */ s.jsxs("div", { className: Fe.remainingTimeContainer, children: [
|
|
2466
|
+
/* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: xe(e) }),
|
|
2467
|
+
/* @__PURE__ */ s.jsx("p", { className: Fe.remainingSeparator }),
|
|
2468
|
+
/* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: xe(t) })
|
|
2386
2469
|
] });
|
|
2387
2470
|
}
|
|
2388
|
-
function
|
|
2471
|
+
function li({ callback: e }) {
|
|
2389
2472
|
const t = f((n) => n.eventEmitter);
|
|
2390
|
-
return
|
|
2473
|
+
return F(() => {
|
|
2391
2474
|
const n = (o) => e("timeUpdate", o);
|
|
2392
2475
|
return t.on("timeUpdate", n), () => {
|
|
2393
2476
|
t.off("timeUpdate", n);
|
|
2394
2477
|
};
|
|
2395
|
-
}, [e, t]), /* @__PURE__ */
|
|
2478
|
+
}, [e, t]), /* @__PURE__ */ s.jsx(zt, { callback: e });
|
|
2396
2479
|
}
|
|
2397
|
-
function
|
|
2398
|
-
const e = f((i) => i.currentTime), t = f((i) => i.duration), n = f((i) => i.isPlaying), o = f((i) => i.pause),
|
|
2480
|
+
function ci() {
|
|
2481
|
+
const e = f((i) => i.currentTime), t = f((i) => i.duration), n = f((i) => i.isPlaying), o = f((i) => i.pause), a = f((i) => i.play), l = f((i) => i.seek), u = z(
|
|
2399
2482
|
(i) => {
|
|
2400
|
-
let
|
|
2483
|
+
let c = !1;
|
|
2401
2484
|
if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
|
|
2402
2485
|
switch (i.code) {
|
|
2403
2486
|
case "ArrowLeft":
|
|
2404
|
-
|
|
2487
|
+
l(e - 10 >= 0 ? e - 10 : 0), c = !0;
|
|
2405
2488
|
break;
|
|
2406
2489
|
case "ArrowRight":
|
|
2407
|
-
|
|
2490
|
+
l(e + 10 < t ? e + 10 : t), c = !0;
|
|
2408
2491
|
break;
|
|
2409
2492
|
case "Space":
|
|
2410
|
-
n ? o() :
|
|
2493
|
+
n ? o() : a(), c = !0;
|
|
2411
2494
|
break;
|
|
2412
2495
|
}
|
|
2413
|
-
|
|
2496
|
+
c && i.preventDefault();
|
|
2414
2497
|
}
|
|
2415
2498
|
},
|
|
2416
|
-
[e, t, n, o,
|
|
2499
|
+
[e, t, n, o, a, l]
|
|
2417
2500
|
);
|
|
2418
|
-
return
|
|
2501
|
+
return F(() => (document.addEventListener("keydown", u), () => {
|
|
2419
2502
|
document.removeEventListener("keydown", u);
|
|
2420
|
-
}), [u]), /* @__PURE__ */
|
|
2503
|
+
}), [u]), /* @__PURE__ */ s.jsx(Zt, {});
|
|
2421
2504
|
}
|
|
2422
|
-
function
|
|
2423
|
-
return /* @__PURE__ */
|
|
2505
|
+
function yi(e) {
|
|
2506
|
+
return /* @__PURE__ */ s.jsx(Kt, { children: /* @__PURE__ */ s.jsx(ui, L({}, e)) });
|
|
2424
2507
|
}
|
|
2425
|
-
function
|
|
2426
|
-
const
|
|
2427
|
-
return
|
|
2428
|
-
o &&
|
|
2429
|
-
}, [o,
|
|
2508
|
+
function ui({ url: e, messages: t, onEvent: n, startTime: o }) {
|
|
2509
|
+
const a = f((u) => u.setStartTime), l = f((u) => u.containerRef);
|
|
2510
|
+
return F(() => {
|
|
2511
|
+
o && a(o);
|
|
2512
|
+
}, [o, a]), /* @__PURE__ */ s.jsxs(
|
|
2430
2513
|
"div",
|
|
2431
2514
|
{
|
|
2432
|
-
ref:
|
|
2433
|
-
className:
|
|
2515
|
+
ref: l,
|
|
2516
|
+
className: B.playerContainer,
|
|
2434
2517
|
children: [
|
|
2435
|
-
/* @__PURE__ */
|
|
2436
|
-
/* @__PURE__ */
|
|
2437
|
-
/* @__PURE__ */
|
|
2438
|
-
/* @__PURE__ */
|
|
2439
|
-
/* @__PURE__ */
|
|
2440
|
-
/* @__PURE__ */
|
|
2441
|
-
/* @__PURE__ */
|
|
2442
|
-
/* @__PURE__ */
|
|
2443
|
-
/* @__PURE__ */
|
|
2518
|
+
/* @__PURE__ */ s.jsx(Yt, { url: e, isLive: !1, messages: t }),
|
|
2519
|
+
/* @__PURE__ */ s.jsx(Qt, {}),
|
|
2520
|
+
/* @__PURE__ */ s.jsx(nn, {}),
|
|
2521
|
+
/* @__PURE__ */ s.jsxs(tn, { children: [
|
|
2522
|
+
/* @__PURE__ */ s.jsx(ti, {}),
|
|
2523
|
+
/* @__PURE__ */ s.jsx("div", { className: B.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: B.controlsContainer, children: [
|
|
2524
|
+
/* @__PURE__ */ s.jsx(ri, {}),
|
|
2525
|
+
/* @__PURE__ */ s.jsxs("div", { className: B.controlsRow, children: [
|
|
2526
|
+
/* @__PURE__ */ s.jsxs(
|
|
2444
2527
|
"div",
|
|
2445
2528
|
{
|
|
2446
|
-
className: `${
|
|
2529
|
+
className: `${B.controlsSection} ${B.controlsSectionStart}`,
|
|
2447
2530
|
children: [
|
|
2448
|
-
/* @__PURE__ */
|
|
2449
|
-
/* @__PURE__ */
|
|
2450
|
-
/* @__PURE__ */
|
|
2531
|
+
/* @__PURE__ */ s.jsx(ni, {}),
|
|
2532
|
+
/* @__PURE__ */ s.jsx(an, {}),
|
|
2533
|
+
/* @__PURE__ */ s.jsx(ai, {})
|
|
2451
2534
|
]
|
|
2452
2535
|
}
|
|
2453
2536
|
),
|
|
2454
|
-
/* @__PURE__ */
|
|
2537
|
+
/* @__PURE__ */ s.jsxs(
|
|
2455
2538
|
"div",
|
|
2456
2539
|
{
|
|
2457
|
-
className: `${
|
|
2540
|
+
className: `${B.controlsSection} ${B.controlsSectionEnd}`,
|
|
2458
2541
|
children: [
|
|
2459
|
-
/* @__PURE__ */
|
|
2460
|
-
/* @__PURE__ */
|
|
2542
|
+
/* @__PURE__ */ s.jsx(sn, {}),
|
|
2543
|
+
/* @__PURE__ */ s.jsx(en, {})
|
|
2461
2544
|
]
|
|
2462
2545
|
}
|
|
2463
2546
|
)
|
|
2464
2547
|
] })
|
|
2465
2548
|
] }) })
|
|
2466
2549
|
] }),
|
|
2467
|
-
/* @__PURE__ */
|
|
2468
|
-
n && /* @__PURE__ */
|
|
2550
|
+
/* @__PURE__ */ s.jsx(ci, {}),
|
|
2551
|
+
n && /* @__PURE__ */ s.jsx(li, { callback: n })
|
|
2469
2552
|
]
|
|
2470
2553
|
}
|
|
2471
2554
|
);
|
|
2472
2555
|
}
|
|
2473
2556
|
export {
|
|
2474
|
-
|
|
2475
|
-
|
|
2557
|
+
vi as LivePlayer,
|
|
2558
|
+
yi as VodPlayer
|
|
2476
2559
|
};
|
|
2477
2560
|
//# sourceMappingURL=react-video-player.es.js.map
|