@halibegic/react-video-player 0.0.37 → 0.0.39
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 +1076 -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,159 @@ 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
|
+
return f((n) => n.isStarted) ? /* @__PURE__ */ s.jsx(Vr, { url: e }) : null;
|
|
1602
|
+
}
|
|
1603
|
+
function Vr({ url: e }) {
|
|
1604
|
+
const t = A((l) => l.setViewerCount), n = V(null), o = (l) => {
|
|
1605
|
+
try {
|
|
1606
|
+
return new URL(l).pathname.split("/").filter((d) => d.length > 0)[0] || null;
|
|
1607
|
+
} catch (u) {
|
|
1608
|
+
return console.error("Failed to extract URI from player URL:", u), null;
|
|
1609
|
+
}
|
|
1610
|
+
}, a = async () => {
|
|
1611
|
+
var c;
|
|
1612
|
+
const l = o(e);
|
|
1613
|
+
if (!l) {
|
|
1614
|
+
console.error("Could not extract URI from URL:", e);
|
|
1615
|
+
return;
|
|
1616
|
+
}
|
|
1617
|
+
n.current && n.current.abort(), n.current = new AbortController();
|
|
1618
|
+
const i = `https://${e.includes("staging") ? "stg" : "prd"}-fitnessanny.spectar.tv/analytics-api/v1/token-info/uri/${l}`;
|
|
1619
|
+
try {
|
|
1620
|
+
const d = await fetch(i, {
|
|
1621
|
+
signal: n.current.signal
|
|
1622
|
+
});
|
|
1623
|
+
if (!d.ok)
|
|
1624
|
+
throw new Error(`HTTP error! status: ${d.status}`);
|
|
1625
|
+
const y = (c = (await d.json()).count) != null ? c : 0;
|
|
1626
|
+
t(y);
|
|
1627
|
+
} catch (d) {
|
|
1628
|
+
if (d.name === "AbortError")
|
|
1629
|
+
return;
|
|
1630
|
+
console.error("Failed to fetch viewer count:", d), t(null);
|
|
1631
|
+
}
|
|
1632
|
+
};
|
|
1633
|
+
return F(() => (a(), () => {
|
|
1634
|
+
n.current && n.current.abort();
|
|
1635
|
+
}), [e]), Ve(a, 15e3), null;
|
|
1597
1636
|
}
|
|
1598
|
-
function
|
|
1637
|
+
function Ar(e, {
|
|
1599
1638
|
defaultValue: t = !1,
|
|
1600
1639
|
initializeWithValue: n = !0
|
|
1601
1640
|
} = {}) {
|
|
1602
|
-
const o = (i) => typeof window == "undefined" ? t : window.matchMedia(i).matches, [
|
|
1641
|
+
const o = (i) => typeof window == "undefined" ? t : window.matchMedia(i).matches, [a, l] = X(() => n ? o(e) : t);
|
|
1603
1642
|
function u() {
|
|
1604
|
-
|
|
1643
|
+
l(o(e));
|
|
1605
1644
|
}
|
|
1606
|
-
return
|
|
1645
|
+
return Ot(() => {
|
|
1607
1646
|
if (typeof window == "undefined")
|
|
1608
1647
|
return;
|
|
1609
1648
|
const i = window.matchMedia(e);
|
|
1610
1649
|
return u(), i.addListener ? i.addListener(u) : i.addEventListener("change", u), () => {
|
|
1611
1650
|
i.removeListener ? i.removeListener(u) : i.removeEventListener("change", u);
|
|
1612
1651
|
};
|
|
1613
|
-
}, [e]),
|
|
1614
|
-
}
|
|
1615
|
-
const
|
|
1616
|
-
playbackButton:
|
|
1617
|
-
seekIndicator:
|
|
1618
|
-
seekIndicatorLeft:
|
|
1619
|
-
seekIndicatorRight:
|
|
1620
|
-
seekIndicatorVisible:
|
|
1621
|
-
},
|
|
1622
|
-
function
|
|
1623
|
-
var
|
|
1652
|
+
}, [e]), a;
|
|
1653
|
+
}
|
|
1654
|
+
const Or = "_playbackButton_lgsgw_1", Hr = "_seekIndicator_lgsgw_23", $r = "_seekIndicatorLeft_lgsgw_49", Ur = "_seekIndicatorRight_lgsgw_53", Br = "_seekIndicatorVisible_lgsgw_57", me = {
|
|
1655
|
+
playbackButton: Or,
|
|
1656
|
+
seekIndicator: Hr,
|
|
1657
|
+
seekIndicatorLeft: $r,
|
|
1658
|
+
seekIndicatorRight: Ur,
|
|
1659
|
+
seekIndicatorVisible: Br
|
|
1660
|
+
}, zr = 10;
|
|
1661
|
+
function Xt(i) {
|
|
1662
|
+
var c = i, {
|
|
1624
1663
|
className: e,
|
|
1625
1664
|
onClick: t,
|
|
1626
1665
|
onForwardSeek: n,
|
|
1627
1666
|
onBackwardSeek: o,
|
|
1628
|
-
maxForwardTime:
|
|
1629
|
-
maxBackwardTime:
|
|
1630
|
-
} =
|
|
1667
|
+
maxForwardTime: a,
|
|
1668
|
+
maxBackwardTime: l
|
|
1669
|
+
} = c, u = ne(c, [
|
|
1631
1670
|
"className",
|
|
1632
1671
|
"onClick",
|
|
1633
1672
|
"onForwardSeek",
|
|
@@ -1635,220 +1674,220 @@ function Yt(i) {
|
|
|
1635
1674
|
"maxForwardTime",
|
|
1636
1675
|
"maxBackwardTime"
|
|
1637
1676
|
]);
|
|
1638
|
-
return
|
|
1639
|
-
|
|
1640
|
-
|
|
1677
|
+
return Ar("(min-width: 1024px)") ? /* @__PURE__ */ s.jsx(qr, L({ className: e, onClick: t }, u)) : /* @__PURE__ */ s.jsx(
|
|
1678
|
+
Wr,
|
|
1679
|
+
L({
|
|
1641
1680
|
className: e,
|
|
1642
|
-
maxForwardTime:
|
|
1643
|
-
maxBackwardTime:
|
|
1681
|
+
maxForwardTime: a,
|
|
1682
|
+
maxBackwardTime: l,
|
|
1644
1683
|
onForwardSeek: n,
|
|
1645
1684
|
onBackwardSeek: o
|
|
1646
1685
|
}, u)
|
|
1647
1686
|
);
|
|
1648
1687
|
}
|
|
1649
|
-
function
|
|
1650
|
-
var
|
|
1651
|
-
const
|
|
1652
|
-
v() ? (y(), i ? u() :
|
|
1653
|
-
}, g = (
|
|
1654
|
-
|
|
1655
|
-
t == null || t(
|
|
1688
|
+
function qr(o) {
|
|
1689
|
+
var a = o, { className: e, onClick: t } = a, n = ne(a, ["className", "onClick"]);
|
|
1690
|
+
const l = V(null), u = f((x) => x.exitFullscreen), i = f((x) => x.isFullscreen), c = f((x) => x.requestFullscreen), d = (x) => {
|
|
1691
|
+
v() ? (y(), i ? u() : c()) : g(x);
|
|
1692
|
+
}, g = (x) => {
|
|
1693
|
+
l.current = window.setTimeout(() => {
|
|
1694
|
+
t == null || t(x), y();
|
|
1656
1695
|
}, 200);
|
|
1657
1696
|
}, y = () => {
|
|
1658
|
-
|
|
1659
|
-
}, v = () =>
|
|
1660
|
-
return
|
|
1697
|
+
l.current !== null && (window.clearTimeout(l.current), l.current = null);
|
|
1698
|
+
}, v = () => l.current !== null;
|
|
1699
|
+
return F(() => () => {
|
|
1661
1700
|
y();
|
|
1662
|
-
}, []), /* @__PURE__ */
|
|
1701
|
+
}, []), /* @__PURE__ */ s.jsx(
|
|
1663
1702
|
"button",
|
|
1664
|
-
|
|
1703
|
+
L({
|
|
1665
1704
|
onClick: d,
|
|
1666
1705
|
className: [me.playbackButton, e].filter(Boolean).join(" "),
|
|
1667
1706
|
"aria-label": "Player gestures"
|
|
1668
1707
|
}, n)
|
|
1669
1708
|
);
|
|
1670
1709
|
}
|
|
1671
|
-
function
|
|
1710
|
+
function Wr(u) {
|
|
1672
1711
|
var i = u, {
|
|
1673
1712
|
className: e,
|
|
1674
1713
|
maxForwardTime: t,
|
|
1675
1714
|
maxBackwardTime: n,
|
|
1676
1715
|
onForwardSeek: o,
|
|
1677
|
-
onBackwardSeek:
|
|
1678
|
-
} = i,
|
|
1716
|
+
onBackwardSeek: a
|
|
1717
|
+
} = i, l = ne(i, [
|
|
1679
1718
|
"className",
|
|
1680
1719
|
"maxForwardTime",
|
|
1681
1720
|
"maxBackwardTime",
|
|
1682
1721
|
"onForwardSeek",
|
|
1683
1722
|
"onBackwardSeek"
|
|
1684
1723
|
]);
|
|
1685
|
-
const
|
|
1724
|
+
const c = V(null), d = V({
|
|
1686
1725
|
single: null,
|
|
1687
1726
|
indicator: null,
|
|
1688
1727
|
accumulate: null
|
|
1689
|
-
}), g =
|
|
1728
|
+
}), 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
1729
|
if (!g.current) return;
|
|
1691
|
-
const
|
|
1692
|
-
if (
|
|
1693
|
-
const G = Date.now(),
|
|
1694
|
-
if (
|
|
1730
|
+
const $ = p.changedTouches[0];
|
|
1731
|
+
if (!$) return;
|
|
1732
|
+
const G = Date.now(), Z = g.current.getBoundingClientRect(), O = $.clientX - Z.left, D = $.clientY - Z.top;
|
|
1733
|
+
if (O < 0 || O > Z.width || D < 0 || D > Z.height)
|
|
1695
1734
|
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 =
|
|
1735
|
+
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;
|
|
1736
|
+
if (Q !== null && v.current === null && K < 300 && Math.abs(O - Q.x) < 50 || oe) {
|
|
1737
|
+
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);
|
|
1738
|
+
const te = q === "backward" ? n : t;
|
|
1700
1739
|
y.current = Math.min(
|
|
1701
|
-
y.current +
|
|
1740
|
+
y.current + zr,
|
|
1702
1741
|
te != null ? te : 1 / 0
|
|
1703
|
-
),
|
|
1704
|
-
const
|
|
1705
|
-
|
|
1706
|
-
}, 500),
|
|
1742
|
+
), _(q, y.current), d.current.accumulate && window.clearTimeout(d.current.accumulate), d.current.accumulate = window.setTimeout(() => {
|
|
1743
|
+
const W = y.current;
|
|
1744
|
+
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;
|
|
1745
|
+
}, 500), c.current = { time: G, x: O };
|
|
1707
1746
|
} else {
|
|
1708
|
-
|
|
1747
|
+
c.current = { time: G, x: O }, d.current.single && window.clearTimeout(d.current.single);
|
|
1709
1748
|
const te = v.current !== null ? 700 : 350;
|
|
1710
1749
|
d.current.single = window.setTimeout(() => {
|
|
1711
1750
|
if (v.current === null) {
|
|
1712
1751
|
d.current.single = null;
|
|
1713
|
-
const
|
|
1714
|
-
|
|
1752
|
+
const W = b;
|
|
1753
|
+
E(!W), W && N();
|
|
1715
1754
|
}
|
|
1716
|
-
|
|
1755
|
+
c.current = null;
|
|
1717
1756
|
}, te);
|
|
1718
1757
|
}
|
|
1719
|
-
},
|
|
1720
|
-
|
|
1758
|
+
}, _ = (p, $) => {
|
|
1759
|
+
$ !== 0 && (P({ visible: !0, direction: p, time: $ }), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.indicator = window.setTimeout(() => {
|
|
1721
1760
|
I();
|
|
1722
1761
|
}, 700));
|
|
1723
1762
|
}, I = () => {
|
|
1724
|
-
|
|
1763
|
+
P({ visible: !1, direction: null, time: 0 }), d.current.indicator && (window.clearTimeout(d.current.indicator), d.current.indicator = null);
|
|
1725
1764
|
};
|
|
1726
|
-
return
|
|
1765
|
+
return F(() => () => {
|
|
1727
1766
|
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__ */
|
|
1767
|
+
}, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1768
|
+
/* @__PURE__ */ s.jsx(
|
|
1730
1769
|
"button",
|
|
1731
|
-
|
|
1770
|
+
L({
|
|
1732
1771
|
ref: g,
|
|
1733
1772
|
onTouchEnd: k,
|
|
1734
1773
|
className: [me.playbackButton, e].filter(Boolean).join(" "),
|
|
1735
1774
|
"aria-label": "Player gestures"
|
|
1736
|
-
},
|
|
1775
|
+
}, l)
|
|
1737
1776
|
),
|
|
1738
|
-
|
|
1777
|
+
x.visible && /* @__PURE__ */ s.jsxs(
|
|
1739
1778
|
"div",
|
|
1740
1779
|
{
|
|
1741
|
-
className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${
|
|
1780
|
+
className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${x.direction === "backward" ? me.seekIndicatorLeft : me.seekIndicatorRight}`,
|
|
1742
1781
|
children: [
|
|
1743
|
-
|
|
1744
|
-
|
|
1782
|
+
x.direction === "backward" ? "-" : "+",
|
|
1783
|
+
xe(x.time)
|
|
1745
1784
|
]
|
|
1746
1785
|
}
|
|
1747
1786
|
)
|
|
1748
1787
|
] });
|
|
1749
1788
|
}
|
|
1750
|
-
function
|
|
1751
|
-
const e = f((
|
|
1752
|
-
return /* @__PURE__ */
|
|
1753
|
-
|
|
1789
|
+
function Zr() {
|
|
1790
|
+
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;
|
|
1791
|
+
return /* @__PURE__ */ s.jsx(
|
|
1792
|
+
Xt,
|
|
1754
1793
|
{
|
|
1755
1794
|
onClick: () => {
|
|
1756
1795
|
if (e)
|
|
1757
1796
|
t();
|
|
1758
1797
|
else {
|
|
1759
|
-
const
|
|
1760
|
-
|
|
1798
|
+
const c = n();
|
|
1799
|
+
c && l(a + c), o();
|
|
1761
1800
|
}
|
|
1762
1801
|
},
|
|
1763
|
-
onBackwardSeek: (
|
|
1764
|
-
const d =
|
|
1765
|
-
|
|
1802
|
+
onBackwardSeek: (c) => {
|
|
1803
|
+
const d = a + c;
|
|
1804
|
+
l(d);
|
|
1766
1805
|
},
|
|
1767
|
-
onForwardSeek: (
|
|
1768
|
-
const d = Math.max(0,
|
|
1769
|
-
|
|
1806
|
+
onForwardSeek: (c) => {
|
|
1807
|
+
const d = Math.max(0, a - c);
|
|
1808
|
+
l(d);
|
|
1770
1809
|
},
|
|
1771
1810
|
maxBackwardTime: Math.floor(i),
|
|
1772
|
-
maxForwardTime: Math.floor(
|
|
1811
|
+
maxForwardTime: Math.floor(a)
|
|
1773
1812
|
}
|
|
1774
1813
|
);
|
|
1775
1814
|
}
|
|
1776
|
-
const
|
|
1777
|
-
playerButton:
|
|
1778
|
-
playerButtonCircle:
|
|
1779
|
-
}, le =
|
|
1780
|
-
(
|
|
1781
|
-
var
|
|
1782
|
-
const u = e === "circle" ?
|
|
1783
|
-
return /* @__PURE__ */
|
|
1815
|
+
const Kr = "_playerButton_izwqq_1", Yr = "_playerButtonCircle_izwqq_42", xt = {
|
|
1816
|
+
playerButton: Kr,
|
|
1817
|
+
playerButtonCircle: Yr
|
|
1818
|
+
}, le = Ne(
|
|
1819
|
+
(a, o) => {
|
|
1820
|
+
var l = a, { shape: e = "circle", className: t } = l, n = ne(l, ["shape", "className"]);
|
|
1821
|
+
const u = e === "circle" ? xt.playerButtonCircle : "", i = [xt.playerButton, u, t].filter(Boolean).join(" ");
|
|
1822
|
+
return /* @__PURE__ */ s.jsx("button", L({ ref: o, className: i }, n));
|
|
1784
1823
|
}
|
|
1785
1824
|
);
|
|
1786
1825
|
le.displayName = "PlayerButton";
|
|
1787
|
-
const
|
|
1788
|
-
liveIndicator:
|
|
1789
|
-
liveIndicatorHasDelay:
|
|
1790
|
-
liveIndicatorNoDelay:
|
|
1826
|
+
const Xr = "_liveIndicator_1jczn_1", Gr = "_liveIndicatorHasDelay_1jczn_9", Jr = "_liveIndicatorNoDelay_1jczn_13", ke = {
|
|
1827
|
+
liveIndicator: Xr,
|
|
1828
|
+
liveIndicatorHasDelay: Gr,
|
|
1829
|
+
liveIndicatorNoDelay: Jr
|
|
1791
1830
|
};
|
|
1792
|
-
function
|
|
1831
|
+
function Qr(n) {
|
|
1793
1832
|
var o = n, { message: e } = o, t = ne(o, ["message"]);
|
|
1794
|
-
const
|
|
1795
|
-
|
|
1796
|
-
}, i =
|
|
1797
|
-
return /* @__PURE__ */
|
|
1798
|
-
/* @__PURE__ */
|
|
1833
|
+
const a = A((c) => c.delay), l = A((c) => c.setDelay), u = () => {
|
|
1834
|
+
a && l(0);
|
|
1835
|
+
}, i = a ? `${ke.liveIndicator} ${ke.liveIndicatorHasDelay}` : `${ke.liveIndicator} ${ke.liveIndicatorNoDelay}`;
|
|
1836
|
+
return /* @__PURE__ */ s.jsxs(le, he(L({ onClick: u, shape: "square" }, t), { children: [
|
|
1837
|
+
/* @__PURE__ */ s.jsx("div", { className: i }),
|
|
1799
1838
|
e || "Live"
|
|
1800
1839
|
] }));
|
|
1801
1840
|
}
|
|
1802
|
-
function
|
|
1803
|
-
return /* @__PURE__ */
|
|
1841
|
+
function Gt() {
|
|
1842
|
+
return /* @__PURE__ */ s.jsx(
|
|
1804
1843
|
"svg",
|
|
1805
1844
|
{
|
|
1806
1845
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1807
1846
|
viewBox: "0 0 24 24",
|
|
1808
1847
|
fill: "currentColor",
|
|
1809
|
-
children: /* @__PURE__ */
|
|
1848
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
|
|
1810
1849
|
}
|
|
1811
1850
|
);
|
|
1812
1851
|
}
|
|
1813
|
-
function
|
|
1814
|
-
return /* @__PURE__ */
|
|
1852
|
+
function Jt() {
|
|
1853
|
+
return /* @__PURE__ */ s.jsx(
|
|
1815
1854
|
"svg",
|
|
1816
1855
|
{
|
|
1817
1856
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1818
1857
|
viewBox: "0 0 24 24",
|
|
1819
1858
|
fill: "currentColor",
|
|
1820
|
-
children: /* @__PURE__ */
|
|
1859
|
+
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
1860
|
}
|
|
1822
1861
|
);
|
|
1823
1862
|
}
|
|
1824
|
-
function
|
|
1825
|
-
const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play),
|
|
1863
|
+
function eo() {
|
|
1864
|
+
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
1865
|
if (e)
|
|
1827
1866
|
t();
|
|
1828
1867
|
else {
|
|
1829
1868
|
const i = n();
|
|
1830
|
-
i &&
|
|
1869
|
+
i && l(a + i), o();
|
|
1831
1870
|
}
|
|
1832
1871
|
};
|
|
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:
|
|
1872
|
+
return /* @__PURE__ */ s.jsx(le, { onClick: u, children: e ? /* @__PURE__ */ s.jsx(Gt, {}) : /* @__PURE__ */ s.jsx(Jt, {}) });
|
|
1873
|
+
}
|
|
1874
|
+
const to = "_progressSlider_hwzgf_1", no = "_tipContainer_hwzgf_7", ro = "_tipContainerVisible_hwzgf_17", oo = "_tipContainerHidden_hwzgf_22", io = "_tipContent_hwzgf_27", se = {
|
|
1875
|
+
progressSlider: to,
|
|
1876
|
+
tipContainer: no,
|
|
1877
|
+
tipContainerVisible: ro,
|
|
1878
|
+
tipContainerHidden: oo,
|
|
1879
|
+
tipContent: io
|
|
1880
|
+
}, so = "_sliderRoot_aeak6_1", ao = "_sliderTrack_aeak6_18", lo = "_sliderRange_aeak6_28", co = "_sliderThumb_aeak6_37", Ie = {
|
|
1881
|
+
sliderRoot: so,
|
|
1882
|
+
sliderTrack: ao,
|
|
1883
|
+
sliderRange: lo,
|
|
1884
|
+
sliderThumb: co
|
|
1885
|
+
}, Ae = Ne((l, a) => {
|
|
1886
|
+
var u = l, { max: e = 100, min: t = 0, className: n } = u, o = ne(u, ["max", "min", "className"]);
|
|
1887
|
+
return /* @__PURE__ */ s.jsxs(
|
|
1888
|
+
je.Root,
|
|
1889
|
+
he(L({
|
|
1890
|
+
ref: a,
|
|
1852
1891
|
min: t,
|
|
1853
1892
|
max: e,
|
|
1854
1893
|
"aria-label": "Player progress",
|
|
@@ -1860,14 +1899,14 @@ const Jr = "_progressSlider_hwzgf_1", Qr = "_tipContainer_hwzgf_7", eo = "_tipCo
|
|
|
1860
1899
|
)
|
|
1861
1900
|
}, o), {
|
|
1862
1901
|
children: [
|
|
1863
|
-
/* @__PURE__ */
|
|
1864
|
-
/* @__PURE__ */
|
|
1902
|
+
/* @__PURE__ */ s.jsx(je.Track, { className: Ie.sliderTrack, children: /* @__PURE__ */ s.jsx(je.Range, { className: Ie.sliderRange }) }),
|
|
1903
|
+
/* @__PURE__ */ s.jsx(je.Thumb, { className: Ie.sliderThumb })
|
|
1865
1904
|
]
|
|
1866
1905
|
})
|
|
1867
1906
|
);
|
|
1868
1907
|
});
|
|
1869
|
-
|
|
1870
|
-
function
|
|
1908
|
+
Ae.displayName = "PlayerSlider";
|
|
1909
|
+
function Me(e) {
|
|
1871
1910
|
const t = e.getBoundingClientRect();
|
|
1872
1911
|
return e.offsetWidth / e.offsetHeight > e.clientWidth / e.clientHeight ? {
|
|
1873
1912
|
left: t.left * 100,
|
|
@@ -1878,160 +1917,205 @@ function Fe(e) {
|
|
|
1878
1917
|
height: t.height * 100
|
|
1879
1918
|
} : t;
|
|
1880
1919
|
}
|
|
1881
|
-
const
|
|
1882
|
-
function
|
|
1883
|
-
const e =
|
|
1884
|
-
o(
|
|
1885
|
-
}, [v,
|
|
1886
|
-
(
|
|
1920
|
+
const Tt = "vod-player-progress-bar";
|
|
1921
|
+
function uo() {
|
|
1922
|
+
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(() => {
|
|
1923
|
+
o(Wt(P, v)), l(br(P, b));
|
|
1924
|
+
}, [v, b, P]), I = parseFloat(
|
|
1925
|
+
(a ? (g !== -1 ? g : n) / a * 100 : 0).toFixed(1)
|
|
1887
1926
|
), p = (D) => {
|
|
1888
|
-
y(
|
|
1889
|
-
},
|
|
1927
|
+
y(a * (D[0] / 100)), S(Tt);
|
|
1928
|
+
}, $ = () => {
|
|
1890
1929
|
if (g !== -1) {
|
|
1891
|
-
const D =
|
|
1892
|
-
|
|
1930
|
+
const D = qt(P, g);
|
|
1931
|
+
E(D), y(-1), k(Tt);
|
|
1893
1932
|
}
|
|
1894
|
-
}, G = () => i(!0),
|
|
1933
|
+
}, G = () => i(!0), Z = () => i(!1), O = z(
|
|
1895
1934
|
(D) => {
|
|
1896
|
-
const Q = e.current,
|
|
1897
|
-
if (Q &&
|
|
1898
|
-
const
|
|
1935
|
+
const Q = e.current, K = t.current;
|
|
1936
|
+
if (Q && K) {
|
|
1937
|
+
const q = Me(Q), oe = Me(K), ue = (D.pageX || D.clientX) - q.left, te = ue / q.width;
|
|
1899
1938
|
if (te < 0) return;
|
|
1900
|
-
let
|
|
1901
|
-
|
|
1902
|
-
const ve =
|
|
1939
|
+
let W = ue - oe.width / 2;
|
|
1940
|
+
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";
|
|
1941
|
+
const ve = a - te * a;
|
|
1903
1942
|
d(ve > 0 ? ve : 0);
|
|
1904
1943
|
}
|
|
1905
1944
|
G();
|
|
1906
1945
|
},
|
|
1907
|
-
[
|
|
1946
|
+
[a]
|
|
1908
1947
|
);
|
|
1909
|
-
return
|
|
1910
|
-
|
|
1911
|
-
}, [
|
|
1912
|
-
/* @__PURE__ */
|
|
1913
|
-
|
|
1948
|
+
return Ve(() => _(), N ? 1e3 : null), F(() => {
|
|
1949
|
+
_();
|
|
1950
|
+
}, [_]), /* @__PURE__ */ s.jsxs("div", { className: se.progressSlider, children: [
|
|
1951
|
+
/* @__PURE__ */ s.jsx(
|
|
1952
|
+
Ae,
|
|
1914
1953
|
{
|
|
1915
1954
|
ref: e,
|
|
1916
1955
|
value: [I],
|
|
1917
|
-
onPointerLeave:
|
|
1918
|
-
onPointerDown:
|
|
1919
|
-
onPointerMove:
|
|
1956
|
+
onPointerLeave: Z,
|
|
1957
|
+
onPointerDown: Z,
|
|
1958
|
+
onPointerMove: O,
|
|
1920
1959
|
onValueChange: p,
|
|
1921
|
-
onValueCommit:
|
|
1960
|
+
onValueCommit: $,
|
|
1922
1961
|
step: 0.1
|
|
1923
1962
|
}
|
|
1924
1963
|
),
|
|
1925
|
-
/* @__PURE__ */
|
|
1964
|
+
/* @__PURE__ */ s.jsx(
|
|
1926
1965
|
"div",
|
|
1927
1966
|
{
|
|
1928
1967
|
ref: t,
|
|
1929
1968
|
className: `${se.tipContainer} ${u ? se.tipContainerVisible : se.tipContainerHidden}`,
|
|
1930
|
-
children: /* @__PURE__ */
|
|
1969
|
+
children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: `-${xe(c)}` })
|
|
1931
1970
|
}
|
|
1932
1971
|
)
|
|
1933
1972
|
] });
|
|
1934
1973
|
}
|
|
1935
|
-
function
|
|
1936
|
-
return /* @__PURE__ */
|
|
1974
|
+
function fo() {
|
|
1975
|
+
return /* @__PURE__ */ s.jsx(
|
|
1937
1976
|
"svg",
|
|
1938
1977
|
{
|
|
1939
1978
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1940
1979
|
viewBox: "0 0 24 24",
|
|
1941
1980
|
fill: "currentColor",
|
|
1942
|
-
children: /* @__PURE__ */
|
|
1981
|
+
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
1982
|
}
|
|
1944
1983
|
);
|
|
1945
1984
|
}
|
|
1946
|
-
function
|
|
1947
|
-
const e =
|
|
1948
|
-
return /* @__PURE__ */
|
|
1985
|
+
function ho() {
|
|
1986
|
+
const e = A((a) => a.startDate), t = A((a) => a.setDelay), n = e ? e.getTime() : 0, o = () => t(qt(n));
|
|
1987
|
+
return /* @__PURE__ */ s.jsx(le, { onClick: o, children: /* @__PURE__ */ s.jsx(fo, {}) });
|
|
1949
1988
|
}
|
|
1950
|
-
|
|
1989
|
+
const mo = "_viewersContainer_bsl3f_1", po = "_viewersIndicator_bsl3f_13", vo = "_viewersIcon_bsl3f_21", yo = "_viewersCount_bsl3f_25", De = {
|
|
1990
|
+
viewersContainer: mo,
|
|
1991
|
+
viewersIndicator: po,
|
|
1992
|
+
viewersIcon: vo,
|
|
1993
|
+
viewersCount: yo
|
|
1994
|
+
};
|
|
1995
|
+
function go() {
|
|
1996
|
+
const e = A((t) => t.viewerCount);
|
|
1997
|
+
return e ? /* @__PURE__ */ s.jsxs("div", { className: De.viewersContainer, children: [
|
|
1998
|
+
/* @__PURE__ */ s.jsx("span", { className: De.viewersIndicator }),
|
|
1999
|
+
/* @__PURE__ */ s.jsxs(
|
|
2000
|
+
"svg",
|
|
2001
|
+
{
|
|
2002
|
+
className: De.viewersIcon,
|
|
2003
|
+
width: "16",
|
|
2004
|
+
height: "16",
|
|
2005
|
+
viewBox: "0 0 16 16",
|
|
2006
|
+
fill: "none",
|
|
2007
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2008
|
+
children: [
|
|
2009
|
+
/* @__PURE__ */ s.jsx(
|
|
2010
|
+
"path",
|
|
2011
|
+
{
|
|
2012
|
+
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",
|
|
2013
|
+
fill: "currentColor"
|
|
2014
|
+
}
|
|
2015
|
+
),
|
|
2016
|
+
/* @__PURE__ */ s.jsx(
|
|
2017
|
+
"path",
|
|
2018
|
+
{
|
|
2019
|
+
d: "M8 8C5.79086 8 4 9.79086 4 12V13H12V12C12 9.79086 10.2091 8 8 8Z",
|
|
2020
|
+
fill: "currentColor"
|
|
2021
|
+
}
|
|
2022
|
+
)
|
|
2023
|
+
]
|
|
2024
|
+
}
|
|
2025
|
+
),
|
|
2026
|
+
/* @__PURE__ */ s.jsx("span", { className: De.viewersCount, children: e.toLocaleString() })
|
|
2027
|
+
] }) : null;
|
|
2028
|
+
}
|
|
2029
|
+
function Qt() {
|
|
1951
2030
|
const e = f((n) => n.error);
|
|
1952
2031
|
if (!e) return null;
|
|
1953
2032
|
const t = e.code === "LIVE_MANIFEST_LOAD_ERROR";
|
|
1954
|
-
return /* @__PURE__ */
|
|
2033
|
+
return /* @__PURE__ */ s.jsx(
|
|
1955
2034
|
"div",
|
|
1956
2035
|
{
|
|
1957
2036
|
className: `${ie.playerNotice} ${t ? ie.playerNoticeLowZIndex : ""}`,
|
|
1958
|
-
children: /* @__PURE__ */
|
|
2037
|
+
children: /* @__PURE__ */ s.jsx("h3", { className: ie.playerNoticeTitle, children: e.message })
|
|
1959
2038
|
}
|
|
1960
2039
|
);
|
|
1961
2040
|
}
|
|
1962
|
-
const
|
|
1963
|
-
playerContainer:
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
2041
|
+
const wo = "_playerContainer_146tx_1", _o = "_controlsTop_146tx_12", xo = "_controlsBottom_146tx_29", To = "_controlsContainer_146tx_45", Co = "_controlsRow_146tx_61", Eo = "_controlsSection_146tx_68", Ro = "_controlsSectionStart_146tx_78", bo = "_controlsSectionEnd_146tx_82", B = {
|
|
2042
|
+
playerContainer: wo,
|
|
2043
|
+
controlsTop: _o,
|
|
2044
|
+
controlsBottom: xo,
|
|
2045
|
+
controlsContainer: To,
|
|
2046
|
+
controlsRow: Co,
|
|
2047
|
+
controlsSection: Eo,
|
|
2048
|
+
controlsSectionStart: Ro,
|
|
2049
|
+
controlsSectionEnd: bo
|
|
1970
2050
|
};
|
|
1971
|
-
function
|
|
1972
|
-
return /* @__PURE__ */
|
|
2051
|
+
function So() {
|
|
2052
|
+
return /* @__PURE__ */ s.jsx(
|
|
1973
2053
|
"svg",
|
|
1974
2054
|
{
|
|
1975
2055
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1976
2056
|
viewBox: "0 0 24 24",
|
|
1977
2057
|
fill: "currentColor",
|
|
1978
|
-
children: /* @__PURE__ */
|
|
2058
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
|
|
1979
2059
|
}
|
|
1980
2060
|
);
|
|
1981
2061
|
}
|
|
1982
|
-
function
|
|
1983
|
-
return /* @__PURE__ */
|
|
2062
|
+
function jo() {
|
|
2063
|
+
return /* @__PURE__ */ s.jsx(
|
|
1984
2064
|
"svg",
|
|
1985
2065
|
{
|
|
1986
2066
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1987
2067
|
viewBox: "0 0 24 24",
|
|
1988
2068
|
fill: "currentColor",
|
|
1989
|
-
children: /* @__PURE__ */
|
|
2069
|
+
children: /* @__PURE__ */ s.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
|
|
1990
2070
|
}
|
|
1991
2071
|
);
|
|
1992
2072
|
}
|
|
1993
|
-
function
|
|
1994
|
-
const e = f((d) => d.containerRef), t = f((d) => d.exitFullscreen), n = f((d) => d.isFullscreen), o = f((d) => d.requestFullscreen),
|
|
2073
|
+
function en() {
|
|
2074
|
+
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
2075
|
(d) => {
|
|
1996
|
-
d.stopPropagation(),
|
|
2076
|
+
d.stopPropagation(), a(or());
|
|
1997
2077
|
},
|
|
1998
|
-
[
|
|
1999
|
-
),
|
|
2078
|
+
[a]
|
|
2079
|
+
), c = () => {
|
|
2000
2080
|
n ? t() : o();
|
|
2001
2081
|
};
|
|
2002
|
-
return
|
|
2003
|
-
const d =
|
|
2082
|
+
return F(() => {
|
|
2083
|
+
const d = Ut ? u.current : e.current;
|
|
2004
2084
|
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
|
-
}), [
|
|
2085
|
+
return ar(d, i);
|
|
2086
|
+
}, [e, i, u]), F(() => {
|
|
2087
|
+
l(!0);
|
|
2088
|
+
}, [l]), /* @__PURE__ */ s.jsx(le, { onClick: c, children: n ? /* @__PURE__ */ s.jsx(jo, {}) : /* @__PURE__ */ s.jsx(So, {}) });
|
|
2089
|
+
}
|
|
2090
|
+
const Lo = "_idleCheckContainer_iz9tu_1", Po = "_idleCheckContainerIdle_iz9tu_10", ko = "_idleCheckContainerActive_iz9tu_15", Ze = {
|
|
2091
|
+
idleCheckContainer: Lo,
|
|
2092
|
+
idleCheckContainerIdle: Po,
|
|
2093
|
+
idleCheckContainerActive: ko
|
|
2094
|
+
}, Io = 5 * 1e3;
|
|
2095
|
+
function tn({ children: e }) {
|
|
2096
|
+
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(() => {
|
|
2097
|
+
a.current !== null && (window.clearTimeout(a.current), a.current = null);
|
|
2098
|
+
}, []), d = z(() => {
|
|
2099
|
+
c(), a.current = window.setTimeout(() => o(!0), Io);
|
|
2100
|
+
}, [c]);
|
|
2101
|
+
F(() => (o(!1), d(), () => {
|
|
2102
|
+
c();
|
|
2103
|
+
}), [c, d]), F(() => {
|
|
2024
2104
|
const v = t.current;
|
|
2025
2105
|
if (!v) return;
|
|
2026
|
-
const
|
|
2027
|
-
n && (
|
|
2028
|
-
},
|
|
2106
|
+
const x = (E) => {
|
|
2107
|
+
n && (E.preventDefault(), E.stopPropagation(), o(!1), d());
|
|
2108
|
+
}, P = (E) => {
|
|
2109
|
+
n && (E.preventDefault(), E.stopPropagation(), o(!1), d());
|
|
2110
|
+
}, b = () => {
|
|
2029
2111
|
n && o(!1), d();
|
|
2030
2112
|
};
|
|
2031
|
-
return v.addEventListener("click",
|
|
2032
|
-
|
|
2113
|
+
return v.addEventListener("click", x), v.addEventListener("touchstart", P, {
|
|
2114
|
+
passive: !1
|
|
2115
|
+
}), v.addEventListener("mousemove", b), () => {
|
|
2116
|
+
v.removeEventListener("click", x), v.removeEventListener("touchstart", P), v.removeEventListener("mousemove", b);
|
|
2033
2117
|
};
|
|
2034
|
-
}, [t, n, o, d]),
|
|
2118
|
+
}, [t, n, o, d]), F(() => {
|
|
2035
2119
|
const v = () => {
|
|
2036
2120
|
o(!1), d();
|
|
2037
2121
|
};
|
|
@@ -2039,67 +2123,67 @@ function en({ children: e }) {
|
|
|
2039
2123
|
i.off("resetIdle", v);
|
|
2040
2124
|
};
|
|
2041
2125
|
}, [i, o, d]);
|
|
2042
|
-
const g = n && !u, y = `${
|
|
2043
|
-
return /* @__PURE__ */
|
|
2126
|
+
const g = n && !u, y = `${Ze.idleCheckContainer} ${g ? Ze.idleCheckContainerIdle : Ze.idleCheckContainerActive}`;
|
|
2127
|
+
return /* @__PURE__ */ s.jsx("div", { ref: t, className: y, children: e });
|
|
2044
2128
|
}
|
|
2045
|
-
const
|
|
2046
|
-
spinner:
|
|
2129
|
+
const Do = "_spinner_oo4hi_10", Fo = {
|
|
2130
|
+
spinner: Do
|
|
2047
2131
|
};
|
|
2048
|
-
function
|
|
2049
|
-
return /* @__PURE__ */
|
|
2132
|
+
function Mo(e) {
|
|
2133
|
+
return /* @__PURE__ */ s.jsx("div", L({ className: Fo.spinner }, e));
|
|
2050
2134
|
}
|
|
2051
|
-
function
|
|
2135
|
+
function No(e, t = 500) {
|
|
2052
2136
|
const [n, o] = X(e);
|
|
2053
|
-
return
|
|
2054
|
-
const
|
|
2137
|
+
return F(() => {
|
|
2138
|
+
const a = window.setTimeout(() => o(e), t);
|
|
2055
2139
|
return () => {
|
|
2056
|
-
window.clearTimeout(
|
|
2140
|
+
window.clearTimeout(a);
|
|
2057
2141
|
};
|
|
2058
2142
|
}, [e, t]), n;
|
|
2059
2143
|
}
|
|
2060
|
-
const
|
|
2061
|
-
loadingContainer:
|
|
2144
|
+
const Vo = "_loadingContainer_v9v7r_1", Ao = {
|
|
2145
|
+
loadingContainer: Vo
|
|
2062
2146
|
};
|
|
2063
|
-
function
|
|
2147
|
+
function nn(n) {
|
|
2064
2148
|
var o = n, { style: e } = o, t = ne(o, ["style"]);
|
|
2065
|
-
const
|
|
2066
|
-
return
|
|
2149
|
+
const a = f((u) => u.isLoading);
|
|
2150
|
+
return No(a, 100) ? /* @__PURE__ */ s.jsx("div", he(L({ className: Ao.loadingContainer, style: e }, t), { children: /* @__PURE__ */ s.jsx(Mo, {}) })) : null;
|
|
2067
2151
|
}
|
|
2068
|
-
function
|
|
2069
|
-
return /* @__PURE__ */
|
|
2152
|
+
function Oo() {
|
|
2153
|
+
return /* @__PURE__ */ s.jsx(
|
|
2070
2154
|
"svg",
|
|
2071
2155
|
{
|
|
2072
2156
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2073
2157
|
viewBox: "0 0 24 24",
|
|
2074
2158
|
fill: "currentColor",
|
|
2075
|
-
children: /* @__PURE__ */
|
|
2159
|
+
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
2160
|
}
|
|
2077
2161
|
);
|
|
2078
2162
|
}
|
|
2079
|
-
function
|
|
2080
|
-
return /* @__PURE__ */
|
|
2163
|
+
function Ho() {
|
|
2164
|
+
return /* @__PURE__ */ s.jsx(
|
|
2081
2165
|
"svg",
|
|
2082
2166
|
{
|
|
2083
2167
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2084
2168
|
viewBox: "0 0 24 24",
|
|
2085
2169
|
fill: "currentColor",
|
|
2086
|
-
children: /* @__PURE__ */
|
|
2170
|
+
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
2171
|
}
|
|
2088
2172
|
);
|
|
2089
2173
|
}
|
|
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:
|
|
2174
|
+
const $o = "_dropdownMenuContent_b7j6b_1", Uo = "_dropdownMenuItem_b7j6b_83", Bo = "_scrollAreaRoot_b7j6b_125", zo = "_scrollAreaViewport_b7j6b_133", qo = "_scrollAreaScrollbar_b7j6b_141", Wo = "_scrollAreaThumb_b7j6b_168", pe = {
|
|
2175
|
+
dropdownMenuContent: $o,
|
|
2176
|
+
dropdownMenuItem: Uo,
|
|
2177
|
+
scrollAreaRoot: Bo,
|
|
2178
|
+
scrollAreaViewport: zo,
|
|
2179
|
+
scrollAreaScrollbar: qo,
|
|
2180
|
+
scrollAreaThumb: Wo
|
|
2181
|
+
}, Zo = Te.Root, Ko = Te.Trigger, Yo = Te.Portal, rn = Ne((l, a) => {
|
|
2182
|
+
var u = l, { sideOffset: e = 4, className: t, children: n } = u, o = ne(u, ["sideOffset", "className", "children"]);
|
|
2183
|
+
return /* @__PURE__ */ s.jsx(
|
|
2184
|
+
Te.Content,
|
|
2185
|
+
he(L({
|
|
2186
|
+
ref: a,
|
|
2103
2187
|
sideOffset: e,
|
|
2104
2188
|
className: [pe.dropdownMenuContent, t].filter(Boolean).join(" "),
|
|
2105
2189
|
onOpenAutoFocus: (i) => {
|
|
@@ -2109,20 +2193,20 @@ const Io = "_dropdownMenuContent_11aiz_1", Do = "_dropdownMenuItem_11aiz_82", Fo
|
|
|
2109
2193
|
i.preventDefault();
|
|
2110
2194
|
}
|
|
2111
2195
|
}, o), {
|
|
2112
|
-
children: /* @__PURE__ */
|
|
2113
|
-
|
|
2196
|
+
children: /* @__PURE__ */ s.jsxs(
|
|
2197
|
+
Le.Root,
|
|
2114
2198
|
{
|
|
2115
2199
|
className: pe.scrollAreaRoot,
|
|
2116
2200
|
type: "always",
|
|
2117
2201
|
scrollHideDelay: 0,
|
|
2118
2202
|
children: [
|
|
2119
|
-
/* @__PURE__ */
|
|
2120
|
-
/* @__PURE__ */
|
|
2121
|
-
|
|
2203
|
+
/* @__PURE__ */ s.jsx(Le.Viewport, { className: pe.scrollAreaViewport, children: n }),
|
|
2204
|
+
/* @__PURE__ */ s.jsx(
|
|
2205
|
+
Le.Scrollbar,
|
|
2122
2206
|
{
|
|
2123
2207
|
className: pe.scrollAreaScrollbar,
|
|
2124
2208
|
orientation: "vertical",
|
|
2125
|
-
children: /* @__PURE__ */
|
|
2209
|
+
children: /* @__PURE__ */ s.jsx(Le.Thumb, { className: pe.scrollAreaThumb })
|
|
2126
2210
|
}
|
|
2127
2211
|
)
|
|
2128
2212
|
]
|
|
@@ -2131,17 +2215,17 @@ const Io = "_dropdownMenuContent_11aiz_1", Do = "_dropdownMenuItem_11aiz_82", Fo
|
|
|
2131
2215
|
})
|
|
2132
2216
|
);
|
|
2133
2217
|
});
|
|
2134
|
-
|
|
2135
|
-
const
|
|
2136
|
-
var
|
|
2137
|
-
const u = (
|
|
2138
|
-
t == null || t(
|
|
2139
|
-
}, i = (
|
|
2140
|
-
(
|
|
2218
|
+
rn.displayName = "PlayerMenuContent";
|
|
2219
|
+
const on = Ne((a, o) => {
|
|
2220
|
+
var l = a, { className: e, onClick: t } = l, n = ne(l, ["className", "onClick"]);
|
|
2221
|
+
const u = (c) => {
|
|
2222
|
+
t == null || t(c);
|
|
2223
|
+
}, i = (c) => {
|
|
2224
|
+
(c.key === "Enter" || c.key === " ") && (c.preventDefault(), t == null || t(c));
|
|
2141
2225
|
};
|
|
2142
|
-
return /* @__PURE__ */
|
|
2226
|
+
return /* @__PURE__ */ s.jsx(Te.Close, { asChild: !0, children: /* @__PURE__ */ s.jsx(
|
|
2143
2227
|
"div",
|
|
2144
|
-
|
|
2228
|
+
L({
|
|
2145
2229
|
ref: o,
|
|
2146
2230
|
className: [pe.dropdownMenuItem, e].filter(Boolean).join(" "),
|
|
2147
2231
|
role: "menuitem",
|
|
@@ -2151,98 +2235,98 @@ const rn = Me((s, o) => {
|
|
|
2151
2235
|
}, n)
|
|
2152
2236
|
) });
|
|
2153
2237
|
});
|
|
2154
|
-
|
|
2155
|
-
const
|
|
2156
|
-
function
|
|
2157
|
-
const [e, t] = X(!1), n = f((
|
|
2158
|
-
(
|
|
2159
|
-
t(
|
|
2238
|
+
on.displayName = "PlayerMenuItem";
|
|
2239
|
+
const Ct = "settings";
|
|
2240
|
+
function sn() {
|
|
2241
|
+
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(
|
|
2242
|
+
(c) => {
|
|
2243
|
+
t(c), c ? o(Ct) : a(Ct);
|
|
2160
2244
|
},
|
|
2161
|
-
[o,
|
|
2245
|
+
[o, a]
|
|
2162
2246
|
);
|
|
2163
|
-
return /* @__PURE__ */
|
|
2164
|
-
/* @__PURE__ */
|
|
2165
|
-
/* @__PURE__ */
|
|
2166
|
-
|
|
2247
|
+
return /* @__PURE__ */ s.jsxs(Zo, { open: e, onOpenChange: i, children: [
|
|
2248
|
+
/* @__PURE__ */ s.jsx(Ko, { asChild: !0, children: /* @__PURE__ */ s.jsx(le, { children: /* @__PURE__ */ s.jsx(Ho, {}) }) }),
|
|
2249
|
+
/* @__PURE__ */ s.jsx(Yo, { container: n.current, children: /* @__PURE__ */ s.jsx(rn, { side: "top", align: "end", children: l == null ? void 0 : l.map((c) => /* @__PURE__ */ s.jsxs(
|
|
2250
|
+
on,
|
|
2167
2251
|
{
|
|
2168
|
-
onClick: () => u(
|
|
2252
|
+
onClick: () => u(c.value),
|
|
2169
2253
|
children: [
|
|
2170
|
-
|
|
2171
|
-
|
|
2254
|
+
c.label,
|
|
2255
|
+
c.selected && /* @__PURE__ */ s.jsx(Oo, {})
|
|
2172
2256
|
]
|
|
2173
2257
|
},
|
|
2174
|
-
|
|
2258
|
+
c.sid
|
|
2175
2259
|
)) }) })
|
|
2176
2260
|
] });
|
|
2177
2261
|
}
|
|
2178
|
-
function
|
|
2179
|
-
return /* @__PURE__ */
|
|
2262
|
+
function Xo() {
|
|
2263
|
+
return /* @__PURE__ */ s.jsx(
|
|
2180
2264
|
"svg",
|
|
2181
2265
|
{
|
|
2182
2266
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2183
2267
|
viewBox: "0 0 24 24",
|
|
2184
2268
|
fill: "currentColor",
|
|
2185
|
-
children: /* @__PURE__ */
|
|
2269
|
+
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
2270
|
}
|
|
2187
2271
|
);
|
|
2188
2272
|
}
|
|
2189
|
-
function
|
|
2190
|
-
return /* @__PURE__ */
|
|
2273
|
+
function Go() {
|
|
2274
|
+
return /* @__PURE__ */ s.jsx(
|
|
2191
2275
|
"svg",
|
|
2192
2276
|
{
|
|
2193
2277
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2194
2278
|
viewBox: "0 0 24 24",
|
|
2195
2279
|
fill: "currentColor",
|
|
2196
|
-
children: /* @__PURE__ */
|
|
2280
|
+
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
2281
|
}
|
|
2198
2282
|
);
|
|
2199
2283
|
}
|
|
2200
|
-
function
|
|
2201
|
-
return /* @__PURE__ */
|
|
2284
|
+
function Jo() {
|
|
2285
|
+
return /* @__PURE__ */ s.jsx(
|
|
2202
2286
|
"svg",
|
|
2203
2287
|
{
|
|
2204
2288
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2205
2289
|
viewBox: "0 0 24 24",
|
|
2206
2290
|
fill: "currentColor",
|
|
2207
|
-
children: /* @__PURE__ */
|
|
2291
|
+
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
2292
|
}
|
|
2209
2293
|
);
|
|
2210
2294
|
}
|
|
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(
|
|
2295
|
+
const Qo = "_volumeContainer_4d6jg_1", ei = "_volumeSlider_4d6jg_8", Et = {
|
|
2296
|
+
volumeContainer: Qo,
|
|
2297
|
+
volumeSlider: ei
|
|
2298
|
+
}, Rt = "volume";
|
|
2299
|
+
function an() {
|
|
2300
|
+
const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), o = f((i) => i.removeIdleLock), a = (i) => {
|
|
2301
|
+
e(i[0]), n(Rt);
|
|
2302
|
+
}, l = () => {
|
|
2303
|
+
o(Rt);
|
|
2220
2304
|
}, u = () => e(t ? 0 : 100);
|
|
2221
|
-
return /* @__PURE__ */
|
|
2222
|
-
/* @__PURE__ */
|
|
2223
|
-
/* @__PURE__ */
|
|
2224
|
-
|
|
2305
|
+
return /* @__PURE__ */ s.jsxs("div", { className: Et.volumeContainer, children: [
|
|
2306
|
+
/* @__PURE__ */ s.jsx(le, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ s.jsx(Xo, {}) : /* @__PURE__ */ s.jsx(Go, {}) : /* @__PURE__ */ s.jsx(Jo, {}) }),
|
|
2307
|
+
/* @__PURE__ */ s.jsx("div", { className: Et.volumeSlider, children: /* @__PURE__ */ s.jsx(
|
|
2308
|
+
Ae,
|
|
2225
2309
|
{
|
|
2226
2310
|
value: [t],
|
|
2227
|
-
onValueChange:
|
|
2228
|
-
onValueCommit:
|
|
2311
|
+
onValueChange: a,
|
|
2312
|
+
onValueCommit: l
|
|
2229
2313
|
}
|
|
2230
2314
|
) })
|
|
2231
2315
|
] });
|
|
2232
2316
|
}
|
|
2233
|
-
function
|
|
2234
|
-
return /* @__PURE__ */
|
|
2317
|
+
function yi(e) {
|
|
2318
|
+
return /* @__PURE__ */ s.jsx(kr, { children: /* @__PURE__ */ s.jsx(ti, L({}, e)) });
|
|
2235
2319
|
}
|
|
2236
|
-
function
|
|
2237
|
-
const o = f((
|
|
2238
|
-
return /* @__PURE__ */
|
|
2320
|
+
function ti({ url: e, messages: t, onEvent: n }) {
|
|
2321
|
+
const o = f((a) => a.containerRef);
|
|
2322
|
+
return /* @__PURE__ */ s.jsxs(
|
|
2239
2323
|
"div",
|
|
2240
2324
|
{
|
|
2241
2325
|
ref: o,
|
|
2242
|
-
className:
|
|
2326
|
+
className: B.playerContainer,
|
|
2243
2327
|
children: [
|
|
2244
|
-
/* @__PURE__ */
|
|
2245
|
-
|
|
2328
|
+
/* @__PURE__ */ s.jsxs(
|
|
2329
|
+
Cr,
|
|
2246
2330
|
{
|
|
2247
2331
|
url: e,
|
|
2248
2332
|
messages: {
|
|
@@ -2250,8 +2334,8 @@ function Wo({ url: e, messages: t, onEvent: n }) {
|
|
|
2250
2334
|
eventStartingSoon: t == null ? void 0 : t.eventStartingSoon
|
|
2251
2335
|
},
|
|
2252
2336
|
children: [
|
|
2253
|
-
/* @__PURE__ */
|
|
2254
|
-
|
|
2337
|
+
/* @__PURE__ */ s.jsx(
|
|
2338
|
+
Mr,
|
|
2255
2339
|
{
|
|
2256
2340
|
url: e,
|
|
2257
2341
|
messages: {
|
|
@@ -2259,32 +2343,33 @@ function Wo({ url: e, messages: t, onEvent: n }) {
|
|
|
2259
2343
|
}
|
|
2260
2344
|
}
|
|
2261
2345
|
),
|
|
2262
|
-
/* @__PURE__ */
|
|
2263
|
-
/* @__PURE__ */
|
|
2264
|
-
/* @__PURE__ */
|
|
2265
|
-
/* @__PURE__ */
|
|
2266
|
-
/* @__PURE__ */
|
|
2267
|
-
|
|
2268
|
-
/* @__PURE__ */
|
|
2269
|
-
|
|
2346
|
+
/* @__PURE__ */ s.jsx(Qt, {}),
|
|
2347
|
+
/* @__PURE__ */ s.jsx(nn, {}),
|
|
2348
|
+
/* @__PURE__ */ s.jsxs(tn, { children: [
|
|
2349
|
+
/* @__PURE__ */ s.jsx(Zr, {}),
|
|
2350
|
+
/* @__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(go, {}) }) }) }),
|
|
2351
|
+
/* @__PURE__ */ s.jsx("div", { className: B.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: B.controlsContainer, children: [
|
|
2352
|
+
/* @__PURE__ */ s.jsx(uo, {}),
|
|
2353
|
+
/* @__PURE__ */ s.jsxs("div", { className: B.controlsRow, children: [
|
|
2354
|
+
/* @__PURE__ */ s.jsxs(
|
|
2270
2355
|
"div",
|
|
2271
2356
|
{
|
|
2272
|
-
className: `${
|
|
2357
|
+
className: `${B.controlsSection} ${B.controlsSectionStart}`,
|
|
2273
2358
|
children: [
|
|
2274
|
-
/* @__PURE__ */
|
|
2275
|
-
/* @__PURE__ */
|
|
2276
|
-
/* @__PURE__ */
|
|
2359
|
+
/* @__PURE__ */ s.jsx(eo, {}),
|
|
2360
|
+
/* @__PURE__ */ s.jsx(ho, {}),
|
|
2361
|
+
/* @__PURE__ */ s.jsx(an, {})
|
|
2277
2362
|
]
|
|
2278
2363
|
}
|
|
2279
2364
|
),
|
|
2280
|
-
/* @__PURE__ */
|
|
2365
|
+
/* @__PURE__ */ s.jsxs(
|
|
2281
2366
|
"div",
|
|
2282
2367
|
{
|
|
2283
|
-
className: `${
|
|
2368
|
+
className: `${B.controlsSection} ${B.controlsSectionEnd}`,
|
|
2284
2369
|
children: [
|
|
2285
|
-
/* @__PURE__ */
|
|
2286
|
-
/* @__PURE__ */
|
|
2287
|
-
/* @__PURE__ */
|
|
2370
|
+
/* @__PURE__ */ s.jsx(Qr, { message: t == null ? void 0 : t.live }),
|
|
2371
|
+
/* @__PURE__ */ s.jsx(sn, {}),
|
|
2372
|
+
/* @__PURE__ */ s.jsx(en, {})
|
|
2288
2373
|
]
|
|
2289
2374
|
}
|
|
2290
2375
|
)
|
|
@@ -2294,184 +2379,185 @@ function Wo({ url: e, messages: t, onEvent: n }) {
|
|
|
2294
2379
|
]
|
|
2295
2380
|
}
|
|
2296
2381
|
),
|
|
2297
|
-
/* @__PURE__ */
|
|
2298
|
-
|
|
2382
|
+
/* @__PURE__ */ s.jsx(Pr, {}),
|
|
2383
|
+
/* @__PURE__ */ s.jsx(Nr, { url: e }),
|
|
2384
|
+
n && /* @__PURE__ */ s.jsx(Lr, { callback: n })
|
|
2299
2385
|
]
|
|
2300
2386
|
}
|
|
2301
2387
|
);
|
|
2302
2388
|
}
|
|
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
|
-
|
|
2389
|
+
function ni() {
|
|
2390
|
+
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);
|
|
2391
|
+
return /* @__PURE__ */ s.jsx(
|
|
2392
|
+
Xt,
|
|
2307
2393
|
{
|
|
2308
2394
|
onClick: () => {
|
|
2309
2395
|
e ? t() : n();
|
|
2310
2396
|
},
|
|
2311
2397
|
onBackwardSeek: (u) => {
|
|
2312
2398
|
const i = Math.max(0, o - u);
|
|
2313
|
-
|
|
2399
|
+
l(i);
|
|
2314
2400
|
},
|
|
2315
2401
|
onForwardSeek: (u) => {
|
|
2316
|
-
const i = Math.min(o + u,
|
|
2317
|
-
|
|
2402
|
+
const i = Math.min(o + u, a);
|
|
2403
|
+
l(i);
|
|
2318
2404
|
},
|
|
2319
2405
|
maxBackwardTime: Math.floor(o),
|
|
2320
|
-
maxForwardTime: Math.floor(
|
|
2406
|
+
maxForwardTime: Math.floor(a - o)
|
|
2321
2407
|
}
|
|
2322
2408
|
);
|
|
2323
2409
|
}
|
|
2324
|
-
function
|
|
2325
|
-
const e = f((
|
|
2410
|
+
function ri() {
|
|
2411
|
+
const e = f((a) => a.isPlaying), t = f((a) => a.pause), n = f((a) => a.play), o = () => {
|
|
2326
2412
|
e ? t() : n();
|
|
2327
2413
|
};
|
|
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
|
-
},
|
|
2414
|
+
return /* @__PURE__ */ s.jsx(le, { onClick: o, children: e ? /* @__PURE__ */ s.jsx(Gt, {}) : /* @__PURE__ */ s.jsx(Jt, {}) });
|
|
2415
|
+
}
|
|
2416
|
+
const bt = "vod-player-progress-bar";
|
|
2417
|
+
function oi() {
|
|
2418
|
+
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(
|
|
2419
|
+
(d ? (u !== -1 ? u : c) / d * 100 : 0).toFixed(1)
|
|
2420
|
+
), P = (k) => {
|
|
2421
|
+
i(d * (k[0] / 100)), y(bt);
|
|
2422
|
+
}, b = () => {
|
|
2423
|
+
u !== -1 && (g(u), i(-1), v(bt));
|
|
2424
|
+
}, E = () => o(!0), N = () => o(!1), S = z(
|
|
2339
2425
|
(k) => {
|
|
2340
|
-
const
|
|
2341
|
-
if (
|
|
2342
|
-
const p =
|
|
2343
|
-
if (
|
|
2344
|
-
let
|
|
2345
|
-
|
|
2426
|
+
const _ = e.current, I = t.current;
|
|
2427
|
+
if (_ && I) {
|
|
2428
|
+
const p = Me(_), $ = Me(I), G = (k.pageX || k.clientX) - p.left, Z = G / p.width;
|
|
2429
|
+
if (Z < 0) return;
|
|
2430
|
+
let O = G - $.width / 2;
|
|
2431
|
+
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
2432
|
}
|
|
2347
|
-
|
|
2433
|
+
E();
|
|
2348
2434
|
},
|
|
2349
2435
|
[d]
|
|
2350
2436
|
);
|
|
2351
|
-
return /* @__PURE__ */
|
|
2352
|
-
/* @__PURE__ */
|
|
2353
|
-
|
|
2437
|
+
return /* @__PURE__ */ s.jsxs("div", { className: se.progressSlider, children: [
|
|
2438
|
+
/* @__PURE__ */ s.jsx(
|
|
2439
|
+
Ae,
|
|
2354
2440
|
{
|
|
2355
2441
|
ref: e,
|
|
2356
|
-
value: [
|
|
2357
|
-
onPointerLeave:
|
|
2358
|
-
onPointerDown:
|
|
2359
|
-
onPointerMove:
|
|
2360
|
-
onValueChange:
|
|
2361
|
-
onValueCommit:
|
|
2442
|
+
value: [x],
|
|
2443
|
+
onPointerLeave: N,
|
|
2444
|
+
onPointerDown: N,
|
|
2445
|
+
onPointerMove: S,
|
|
2446
|
+
onValueChange: P,
|
|
2447
|
+
onValueCommit: b,
|
|
2362
2448
|
step: 0.1
|
|
2363
2449
|
}
|
|
2364
2450
|
),
|
|
2365
|
-
/* @__PURE__ */
|
|
2451
|
+
/* @__PURE__ */ s.jsx(
|
|
2366
2452
|
"div",
|
|
2367
2453
|
{
|
|
2368
2454
|
ref: t,
|
|
2369
2455
|
className: `${se.tipContainer} ${n ? se.tipContainerVisible : se.tipContainerHidden}`,
|
|
2370
|
-
children: /* @__PURE__ */
|
|
2456
|
+
children: /* @__PURE__ */ s.jsx("p", { className: se.tipContent, children: xe(a) })
|
|
2371
2457
|
}
|
|
2372
2458
|
)
|
|
2373
2459
|
] });
|
|
2374
2460
|
}
|
|
2375
|
-
const
|
|
2376
|
-
remainingTimeContainer:
|
|
2377
|
-
remainingTime:
|
|
2378
|
-
remainingSeparator:
|
|
2461
|
+
const ii = "_remainingTimeContainer_1yyhb_1", si = "_remainingTime_1yyhb_1", ai = "_remainingSeparator_1yyhb_17", Fe = {
|
|
2462
|
+
remainingTimeContainer: ii,
|
|
2463
|
+
remainingTime: si,
|
|
2464
|
+
remainingSeparator: ai
|
|
2379
2465
|
};
|
|
2380
|
-
function
|
|
2466
|
+
function li() {
|
|
2381
2467
|
const e = f((n) => n.currentTime), t = f((n) => n.duration);
|
|
2382
|
-
return /* @__PURE__ */
|
|
2383
|
-
/* @__PURE__ */
|
|
2384
|
-
/* @__PURE__ */
|
|
2385
|
-
/* @__PURE__ */
|
|
2468
|
+
return /* @__PURE__ */ s.jsxs("div", { className: Fe.remainingTimeContainer, children: [
|
|
2469
|
+
/* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: xe(e) }),
|
|
2470
|
+
/* @__PURE__ */ s.jsx("p", { className: Fe.remainingSeparator }),
|
|
2471
|
+
/* @__PURE__ */ s.jsx("p", { className: Fe.remainingTime, children: xe(t) })
|
|
2386
2472
|
] });
|
|
2387
2473
|
}
|
|
2388
|
-
function
|
|
2474
|
+
function ci({ callback: e }) {
|
|
2389
2475
|
const t = f((n) => n.eventEmitter);
|
|
2390
|
-
return
|
|
2476
|
+
return F(() => {
|
|
2391
2477
|
const n = (o) => e("timeUpdate", o);
|
|
2392
2478
|
return t.on("timeUpdate", n), () => {
|
|
2393
2479
|
t.off("timeUpdate", n);
|
|
2394
2480
|
};
|
|
2395
|
-
}, [e, t]), /* @__PURE__ */
|
|
2481
|
+
}, [e, t]), /* @__PURE__ */ s.jsx(zt, { callback: e });
|
|
2396
2482
|
}
|
|
2397
|
-
function
|
|
2398
|
-
const e = f((i) => i.currentTime), t = f((i) => i.duration), n = f((i) => i.isPlaying), o = f((i) => i.pause),
|
|
2483
|
+
function ui() {
|
|
2484
|
+
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
2485
|
(i) => {
|
|
2400
|
-
let
|
|
2486
|
+
let c = !1;
|
|
2401
2487
|
if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
|
|
2402
2488
|
switch (i.code) {
|
|
2403
2489
|
case "ArrowLeft":
|
|
2404
|
-
|
|
2490
|
+
l(e - 10 >= 0 ? e - 10 : 0), c = !0;
|
|
2405
2491
|
break;
|
|
2406
2492
|
case "ArrowRight":
|
|
2407
|
-
|
|
2493
|
+
l(e + 10 < t ? e + 10 : t), c = !0;
|
|
2408
2494
|
break;
|
|
2409
2495
|
case "Space":
|
|
2410
|
-
n ? o() :
|
|
2496
|
+
n ? o() : a(), c = !0;
|
|
2411
2497
|
break;
|
|
2412
2498
|
}
|
|
2413
|
-
|
|
2499
|
+
c && i.preventDefault();
|
|
2414
2500
|
}
|
|
2415
2501
|
},
|
|
2416
|
-
[e, t, n, o,
|
|
2502
|
+
[e, t, n, o, a, l]
|
|
2417
2503
|
);
|
|
2418
|
-
return
|
|
2504
|
+
return F(() => (document.addEventListener("keydown", u), () => {
|
|
2419
2505
|
document.removeEventListener("keydown", u);
|
|
2420
|
-
}), [u]), /* @__PURE__ */
|
|
2506
|
+
}), [u]), /* @__PURE__ */ s.jsx(Zt, {});
|
|
2421
2507
|
}
|
|
2422
|
-
function
|
|
2423
|
-
return /* @__PURE__ */
|
|
2508
|
+
function gi(e) {
|
|
2509
|
+
return /* @__PURE__ */ s.jsx(Kt, { children: /* @__PURE__ */ s.jsx(di, L({}, e)) });
|
|
2424
2510
|
}
|
|
2425
|
-
function
|
|
2426
|
-
const
|
|
2427
|
-
return
|
|
2428
|
-
o &&
|
|
2429
|
-
}, [o,
|
|
2511
|
+
function di({ url: e, messages: t, onEvent: n, startTime: o }) {
|
|
2512
|
+
const a = f((u) => u.setStartTime), l = f((u) => u.containerRef);
|
|
2513
|
+
return F(() => {
|
|
2514
|
+
o && a(o);
|
|
2515
|
+
}, [o, a]), /* @__PURE__ */ s.jsxs(
|
|
2430
2516
|
"div",
|
|
2431
2517
|
{
|
|
2432
|
-
ref:
|
|
2433
|
-
className:
|
|
2518
|
+
ref: l,
|
|
2519
|
+
className: B.playerContainer,
|
|
2434
2520
|
children: [
|
|
2435
|
-
/* @__PURE__ */
|
|
2436
|
-
/* @__PURE__ */
|
|
2437
|
-
/* @__PURE__ */
|
|
2438
|
-
/* @__PURE__ */
|
|
2439
|
-
/* @__PURE__ */
|
|
2440
|
-
/* @__PURE__ */
|
|
2441
|
-
/* @__PURE__ */
|
|
2442
|
-
/* @__PURE__ */
|
|
2443
|
-
/* @__PURE__ */
|
|
2521
|
+
/* @__PURE__ */ s.jsx(Yt, { url: e, isLive: !1, messages: t }),
|
|
2522
|
+
/* @__PURE__ */ s.jsx(Qt, {}),
|
|
2523
|
+
/* @__PURE__ */ s.jsx(nn, {}),
|
|
2524
|
+
/* @__PURE__ */ s.jsxs(tn, { children: [
|
|
2525
|
+
/* @__PURE__ */ s.jsx(ni, {}),
|
|
2526
|
+
/* @__PURE__ */ s.jsx("div", { className: B.controlsBottom, children: /* @__PURE__ */ s.jsxs("div", { className: B.controlsContainer, children: [
|
|
2527
|
+
/* @__PURE__ */ s.jsx(oi, {}),
|
|
2528
|
+
/* @__PURE__ */ s.jsxs("div", { className: B.controlsRow, children: [
|
|
2529
|
+
/* @__PURE__ */ s.jsxs(
|
|
2444
2530
|
"div",
|
|
2445
2531
|
{
|
|
2446
|
-
className: `${
|
|
2532
|
+
className: `${B.controlsSection} ${B.controlsSectionStart}`,
|
|
2447
2533
|
children: [
|
|
2448
|
-
/* @__PURE__ */
|
|
2449
|
-
/* @__PURE__ */
|
|
2450
|
-
/* @__PURE__ */
|
|
2534
|
+
/* @__PURE__ */ s.jsx(ri, {}),
|
|
2535
|
+
/* @__PURE__ */ s.jsx(an, {}),
|
|
2536
|
+
/* @__PURE__ */ s.jsx(li, {})
|
|
2451
2537
|
]
|
|
2452
2538
|
}
|
|
2453
2539
|
),
|
|
2454
|
-
/* @__PURE__ */
|
|
2540
|
+
/* @__PURE__ */ s.jsxs(
|
|
2455
2541
|
"div",
|
|
2456
2542
|
{
|
|
2457
|
-
className: `${
|
|
2543
|
+
className: `${B.controlsSection} ${B.controlsSectionEnd}`,
|
|
2458
2544
|
children: [
|
|
2459
|
-
/* @__PURE__ */
|
|
2460
|
-
/* @__PURE__ */
|
|
2545
|
+
/* @__PURE__ */ s.jsx(sn, {}),
|
|
2546
|
+
/* @__PURE__ */ s.jsx(en, {})
|
|
2461
2547
|
]
|
|
2462
2548
|
}
|
|
2463
2549
|
)
|
|
2464
2550
|
] })
|
|
2465
2551
|
] }) })
|
|
2466
2552
|
] }),
|
|
2467
|
-
/* @__PURE__ */
|
|
2468
|
-
n && /* @__PURE__ */
|
|
2553
|
+
/* @__PURE__ */ s.jsx(ui, {}),
|
|
2554
|
+
n && /* @__PURE__ */ s.jsx(ci, { callback: n })
|
|
2469
2555
|
]
|
|
2470
2556
|
}
|
|
2471
2557
|
);
|
|
2472
2558
|
}
|
|
2473
2559
|
export {
|
|
2474
|
-
|
|
2475
|
-
|
|
2560
|
+
yi as LivePlayer,
|
|
2561
|
+
gi as VodPlayer
|
|
2476
2562
|
};
|
|
2477
2563
|
//# sourceMappingURL=react-video-player.es.js.map
|