@devix-technologies/react-gjirafa-vp-player 1.0.9 → 1.0.11
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.
|
@@ -48,20 +48,20 @@ function bt() {
|
|
|
48
48
|
function e(o) {
|
|
49
49
|
if (o == null) return null;
|
|
50
50
|
if (typeof o == "function")
|
|
51
|
-
return o.$$typeof ===
|
|
51
|
+
return o.$$typeof === R ? null : o.displayName || o.name || null;
|
|
52
52
|
if (typeof o == "string") return o;
|
|
53
53
|
switch (o) {
|
|
54
|
-
case
|
|
54
|
+
case f:
|
|
55
55
|
return "Fragment";
|
|
56
56
|
case y:
|
|
57
57
|
return "Profiler";
|
|
58
58
|
case h:
|
|
59
59
|
return "StrictMode";
|
|
60
|
-
case
|
|
60
|
+
case x:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case S:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case $:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
67
|
if (typeof o == "object")
|
|
@@ -70,16 +70,16 @@ function bt() {
|
|
|
70
70
|
), o.$$typeof) {
|
|
71
71
|
case v:
|
|
72
72
|
return "Portal";
|
|
73
|
-
case
|
|
73
|
+
case _:
|
|
74
74
|
return (o.displayName || "Context") + ".Provider";
|
|
75
75
|
case w:
|
|
76
76
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
|
-
case
|
|
77
|
+
case T:
|
|
78
78
|
var b = o.render;
|
|
79
79
|
return o = o.displayName, o || (o = b.displayName || b.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
80
|
-
case
|
|
80
|
+
case u:
|
|
81
81
|
return b = o.displayName || null, b !== null ? b : e(o.type) || "Memo";
|
|
82
|
-
case
|
|
82
|
+
case A:
|
|
83
83
|
b = o._payload, o = o._init;
|
|
84
84
|
try {
|
|
85
85
|
return e(o(b));
|
|
@@ -100,17 +100,17 @@ function bt() {
|
|
|
100
100
|
}
|
|
101
101
|
if (b) {
|
|
102
102
|
b = console;
|
|
103
|
-
var
|
|
104
|
-
return
|
|
103
|
+
var C = b.error, L = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
|
+
return C.call(
|
|
105
105
|
b,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
-
|
|
107
|
+
L
|
|
108
108
|
), t(o);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
function n(o) {
|
|
112
|
-
if (o ===
|
|
113
|
-
if (typeof o == "object" && o !== null && o.$$typeof ===
|
|
112
|
+
if (o === f) return "<>";
|
|
113
|
+
if (typeof o == "object" && o !== null && o.$$typeof === A)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
116
|
var b = e(o);
|
|
@@ -120,7 +120,7 @@ function bt() {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
function a() {
|
|
123
|
-
var o =
|
|
123
|
+
var o = I.A;
|
|
124
124
|
return o === null ? null : o.getOwner();
|
|
125
125
|
}
|
|
126
126
|
function i() {
|
|
@@ -134,33 +134,33 @@ function bt() {
|
|
|
134
134
|
return o.key !== void 0;
|
|
135
135
|
}
|
|
136
136
|
function c(o, b) {
|
|
137
|
-
function
|
|
137
|
+
function C() {
|
|
138
138
|
Z || (Z = !0, console.error(
|
|
139
139
|
"%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://react.dev/link/special-props)",
|
|
140
140
|
b
|
|
141
141
|
));
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
get:
|
|
143
|
+
C.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
144
|
+
get: C,
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function d() {
|
|
149
149
|
var o = e(this.type);
|
|
150
150
|
return Q[o] || (Q[o] = !0, console.error(
|
|
151
151
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
152
152
|
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
153
153
|
}
|
|
154
|
-
function m(o, b,
|
|
155
|
-
return
|
|
154
|
+
function m(o, b, C, L, K, D, _e, Se) {
|
|
155
|
+
return C = D.ref, o = {
|
|
156
156
|
$$typeof: k,
|
|
157
157
|
type: o,
|
|
158
158
|
key: b,
|
|
159
159
|
props: D,
|
|
160
160
|
_owner: K
|
|
161
|
-
}, (
|
|
161
|
+
}, (C !== void 0 ? C : null) !== null ? Object.defineProperty(o, "ref", {
|
|
162
162
|
enumerable: !1,
|
|
163
|
-
get:
|
|
163
|
+
get: d
|
|
164
164
|
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
165
165
|
configurable: !1,
|
|
166
166
|
enumerable: !1,
|
|
@@ -183,52 +183,52 @@ function bt() {
|
|
|
183
183
|
value: Se
|
|
184
184
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
185
185
|
}
|
|
186
|
-
function l(o, b,
|
|
187
|
-
var
|
|
188
|
-
if (
|
|
189
|
-
if (
|
|
190
|
-
if (z(
|
|
191
|
-
for (
|
|
192
|
-
p(L
|
|
193
|
-
Object.freeze && Object.freeze(
|
|
186
|
+
function l(o, b, C, L, K, D, _e, Se) {
|
|
187
|
+
var F = b.children;
|
|
188
|
+
if (F !== void 0)
|
|
189
|
+
if (L)
|
|
190
|
+
if (z(F)) {
|
|
191
|
+
for (L = 0; L < F.length; L++)
|
|
192
|
+
p(F[L]);
|
|
193
|
+
Object.freeze && Object.freeze(F);
|
|
194
194
|
} else
|
|
195
195
|
console.error(
|
|
196
196
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
197
|
);
|
|
198
|
-
else p(
|
|
198
|
+
else p(F);
|
|
199
199
|
if (G.call(b, "key")) {
|
|
200
|
-
|
|
200
|
+
F = e(o);
|
|
201
201
|
var ee = Object.keys(b).filter(function(ht) {
|
|
202
202
|
return ht !== "key";
|
|
203
203
|
});
|
|
204
|
-
|
|
204
|
+
L = 0 < ee.length ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}", oe[F + L] || (ee = 0 < ee.length ? "{" + ee.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
205
|
`A props object containing a "key" prop is being spread into JSX:
|
|
206
206
|
let props = %s;
|
|
207
207
|
<%s {...props} />
|
|
208
208
|
React keys must be passed directly to JSX without using spread:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s key={someKey} {...props} />`,
|
|
211
|
-
N,
|
|
212
211
|
L,
|
|
212
|
+
F,
|
|
213
213
|
ee,
|
|
214
|
-
|
|
215
|
-
), oe[
|
|
214
|
+
F
|
|
215
|
+
), oe[F + L] = !0);
|
|
216
216
|
}
|
|
217
|
-
if (
|
|
218
|
-
|
|
217
|
+
if (F = null, C !== void 0 && (r(C), F = "" + C), s(b) && (r(b.key), F = "" + b.key), "key" in b) {
|
|
218
|
+
C = {};
|
|
219
219
|
for (var Re in b)
|
|
220
|
-
Re !== "key" && (
|
|
221
|
-
} else
|
|
222
|
-
return
|
|
223
|
-
|
|
220
|
+
Re !== "key" && (C[Re] = b[Re]);
|
|
221
|
+
} else C = b;
|
|
222
|
+
return F && c(
|
|
223
|
+
C,
|
|
224
224
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
225
225
|
), m(
|
|
226
226
|
o,
|
|
227
|
-
|
|
227
|
+
F,
|
|
228
228
|
D,
|
|
229
229
|
K,
|
|
230
230
|
a(),
|
|
231
|
-
|
|
231
|
+
C,
|
|
232
232
|
_e,
|
|
233
233
|
Se
|
|
234
234
|
);
|
|
@@ -236,7 +236,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
236
236
|
function p(o) {
|
|
237
237
|
typeof o == "object" && o !== null && o.$$typeof === k && o._store && (o._store.validated = 1);
|
|
238
238
|
}
|
|
239
|
-
var g = mt, k = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"),
|
|
239
|
+
var g = mt, k = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), I = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, z = Array.isArray, X = console.createTask ? console.createTask : function() {
|
|
240
240
|
return null;
|
|
241
241
|
};
|
|
242
242
|
g = {
|
|
@@ -248,26 +248,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
g,
|
|
249
249
|
i
|
|
250
250
|
)(), ie = X(n(i)), oe = {};
|
|
251
|
-
ce.Fragment =
|
|
252
|
-
var D = 1e4 >
|
|
251
|
+
ce.Fragment = f, ce.jsx = function(o, b, C, L, K) {
|
|
252
|
+
var D = 1e4 > I.recentlyCreatedOwnerStacks++;
|
|
253
253
|
return l(
|
|
254
254
|
o,
|
|
255
255
|
b,
|
|
256
|
-
|
|
256
|
+
C,
|
|
257
257
|
!1,
|
|
258
|
-
|
|
258
|
+
L,
|
|
259
259
|
K,
|
|
260
260
|
D ? Error("react-stack-top-frame") : J,
|
|
261
261
|
D ? X(n(o)) : ie
|
|
262
262
|
);
|
|
263
|
-
}, ce.jsxs = function(o, b,
|
|
264
|
-
var D = 1e4 >
|
|
263
|
+
}, ce.jsxs = function(o, b, C, L, K) {
|
|
264
|
+
var D = 1e4 > I.recentlyCreatedOwnerStacks++;
|
|
265
265
|
return l(
|
|
266
266
|
o,
|
|
267
267
|
b,
|
|
268
|
-
|
|
268
|
+
C,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
270
|
+
L,
|
|
271
271
|
K,
|
|
272
272
|
D ? Error("react-stack-top-frame") : J,
|
|
273
273
|
D ? X(n(o)) : ie
|
|
@@ -329,9 +329,9 @@ var Pt = /* @__PURE__ */ function() {
|
|
|
329
329
|
return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
|
|
330
330
|
}), this.tags = [], this.ctr = 0;
|
|
331
331
|
}, e;
|
|
332
|
-
}(),
|
|
332
|
+
}(), V = "-ms-", we = "-moz-", P = "-webkit-", rt = "comm", Le = "rule", Fe = "decl", Et = "@import", nt = "@keyframes", _t = "@layer", St = Math.abs, ke = String.fromCharCode, Rt = Object.assign;
|
|
333
333
|
function Tt(e, t) {
|
|
334
|
-
return
|
|
334
|
+
return N(e, 0) ^ 45 ? (((t << 2 ^ N(e, 0)) << 2 ^ N(e, 1)) << 2 ^ N(e, 2)) << 2 ^ N(e, 3) : 0;
|
|
335
335
|
}
|
|
336
336
|
function at(e) {
|
|
337
337
|
return e.trim();
|
|
@@ -339,13 +339,13 @@ function at(e) {
|
|
|
339
339
|
function At(e, t) {
|
|
340
340
|
return (e = t.exec(e)) ? e[0] : e;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function E(e, t, r) {
|
|
343
343
|
return e.replace(t, r);
|
|
344
344
|
}
|
|
345
345
|
function je(e, t) {
|
|
346
346
|
return e.indexOf(t);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function N(e, t) {
|
|
349
349
|
return e.charCodeAt(t) | 0;
|
|
350
350
|
}
|
|
351
351
|
function ue(e, t, r) {
|
|
@@ -374,13 +374,13 @@ function It() {
|
|
|
374
374
|
return O;
|
|
375
375
|
}
|
|
376
376
|
function Ot() {
|
|
377
|
-
return O = M > 0 ?
|
|
377
|
+
return O = M > 0 ? N(ae, --M) : 0, re--, O === 10 && (re = 1, Pe--), O;
|
|
378
378
|
}
|
|
379
379
|
function B() {
|
|
380
|
-
return O = M < it ?
|
|
380
|
+
return O = M < it ? N(ae, M++) : 0, re++, O === 10 && (re = 1, Pe++), O;
|
|
381
381
|
}
|
|
382
382
|
function q() {
|
|
383
|
-
return
|
|
383
|
+
return N(ae, M);
|
|
384
384
|
}
|
|
385
385
|
function ge() {
|
|
386
386
|
return M;
|
|
@@ -481,48 +481,48 @@ function Lt(e) {
|
|
|
481
481
|
function Ft(e) {
|
|
482
482
|
return st(be("", null, null, null, [""], e = ot(e), 0, [0], e));
|
|
483
483
|
}
|
|
484
|
-
function be(e, t, r, n, a, i, s, c,
|
|
485
|
-
for (var m = 0, l = 0, p = s, g = 0, k = 0, v = 0,
|
|
484
|
+
function be(e, t, r, n, a, i, s, c, d) {
|
|
485
|
+
for (var m = 0, l = 0, p = s, g = 0, k = 0, v = 0, f = 1, h = 1, y = 1, w = 0, _ = "", T = a, x = i, S = n, u = _; h; )
|
|
486
486
|
switch (v = w, w = B()) {
|
|
487
487
|
// (
|
|
488
488
|
case 40:
|
|
489
|
-
if (v != 108 &&
|
|
490
|
-
je(
|
|
489
|
+
if (v != 108 && N(u, p - 1) == 58) {
|
|
490
|
+
je(u += E(ve(w), "&", "&\f"), "&\f") != -1 && (y = -1);
|
|
491
491
|
break;
|
|
492
492
|
}
|
|
493
493
|
// " ' [
|
|
494
494
|
case 34:
|
|
495
495
|
case 39:
|
|
496
496
|
case 91:
|
|
497
|
-
|
|
497
|
+
u += ve(w);
|
|
498
498
|
break;
|
|
499
499
|
// \t \n \r \s
|
|
500
500
|
case 9:
|
|
501
501
|
case 10:
|
|
502
502
|
case 13:
|
|
503
503
|
case 32:
|
|
504
|
-
|
|
504
|
+
u += jt(v);
|
|
505
505
|
break;
|
|
506
506
|
// \
|
|
507
507
|
case 92:
|
|
508
|
-
|
|
508
|
+
u += $t(ge() - 1, 7);
|
|
509
509
|
continue;
|
|
510
510
|
// /
|
|
511
511
|
case 47:
|
|
512
512
|
switch (q()) {
|
|
513
513
|
case 42:
|
|
514
514
|
case 47:
|
|
515
|
-
me(Vt(Nt(B(), ge()), t, r),
|
|
515
|
+
me(Vt(Nt(B(), ge()), t, r), d);
|
|
516
516
|
break;
|
|
517
517
|
default:
|
|
518
|
-
|
|
518
|
+
u += "/";
|
|
519
519
|
}
|
|
520
520
|
break;
|
|
521
521
|
// {
|
|
522
|
-
case 123 *
|
|
523
|
-
c[m++] = W(
|
|
522
|
+
case 123 * f:
|
|
523
|
+
c[m++] = W(u) * y;
|
|
524
524
|
// } ; \0
|
|
525
|
-
case 125 *
|
|
525
|
+
case 125 * f:
|
|
526
526
|
case 59:
|
|
527
527
|
case 0:
|
|
528
528
|
switch (w) {
|
|
@@ -532,66 +532,66 @@ function be(e, t, r, n, a, i, s, c, u) {
|
|
|
532
532
|
h = 0;
|
|
533
533
|
// ;
|
|
534
534
|
case 59 + l:
|
|
535
|
-
y == -1 && (
|
|
535
|
+
y == -1 && (u = E(u, /\f/g, "")), k > 0 && W(u) - p && me(k > 32 ? qe(u + ";", n, r, p - 1) : qe(E(u, " ", "") + ";", n, r, p - 2), d);
|
|
536
536
|
break;
|
|
537
537
|
// @ ;
|
|
538
538
|
case 59:
|
|
539
|
-
|
|
539
|
+
u += ";";
|
|
540
540
|
// { rule/at-rule
|
|
541
541
|
default:
|
|
542
|
-
if (me(
|
|
542
|
+
if (me(S = Ye(u, t, r, m, l, a, c, _, T = [], x = [], p), i), w === 123)
|
|
543
543
|
if (l === 0)
|
|
544
|
-
be(
|
|
544
|
+
be(u, t, S, S, T, i, p, c, x);
|
|
545
545
|
else
|
|
546
|
-
switch (g === 99 &&
|
|
546
|
+
switch (g === 99 && N(u, 3) === 110 ? 100 : g) {
|
|
547
547
|
// d l m s
|
|
548
548
|
case 100:
|
|
549
549
|
case 108:
|
|
550
550
|
case 109:
|
|
551
551
|
case 115:
|
|
552
|
-
be(e,
|
|
552
|
+
be(e, S, S, n && me(Ye(e, S, S, 0, 0, a, c, _, a, T = [], p), x), a, x, p, c, n ? T : x);
|
|
553
553
|
break;
|
|
554
554
|
default:
|
|
555
|
-
be(
|
|
555
|
+
be(u, S, S, S, [""], x, 0, c, x);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
m = l = k = 0,
|
|
558
|
+
m = l = k = 0, f = y = 1, _ = u = "", p = s;
|
|
559
559
|
break;
|
|
560
560
|
// :
|
|
561
561
|
case 58:
|
|
562
|
-
p = 1 + W(
|
|
562
|
+
p = 1 + W(u), k = v;
|
|
563
563
|
default:
|
|
564
|
-
if (
|
|
564
|
+
if (f < 1) {
|
|
565
565
|
if (w == 123)
|
|
566
|
-
--
|
|
567
|
-
else if (w == 125 &&
|
|
566
|
+
--f;
|
|
567
|
+
else if (w == 125 && f++ == 0 && Ot() == 125)
|
|
568
568
|
continue;
|
|
569
569
|
}
|
|
570
|
-
switch (
|
|
570
|
+
switch (u += ke(w), w * f) {
|
|
571
571
|
// &
|
|
572
572
|
case 38:
|
|
573
|
-
y = l > 0 ? 1 : (
|
|
573
|
+
y = l > 0 ? 1 : (u += "\f", -1);
|
|
574
574
|
break;
|
|
575
575
|
// ,
|
|
576
576
|
case 44:
|
|
577
|
-
c[m++] = (W(
|
|
577
|
+
c[m++] = (W(u) - 1) * y, y = 1;
|
|
578
578
|
break;
|
|
579
579
|
// @
|
|
580
580
|
case 64:
|
|
581
|
-
q() === 45 && (
|
|
581
|
+
q() === 45 && (u += ve(B())), g = q(), l = p = W(_ = u += Lt(ge())), w++;
|
|
582
582
|
break;
|
|
583
583
|
// -
|
|
584
584
|
case 45:
|
|
585
|
-
v === 45 && W(
|
|
585
|
+
v === 45 && W(u) == 2 && (f = 0);
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
return i;
|
|
589
589
|
}
|
|
590
|
-
function Ye(e, t, r, n, a, i, s, c,
|
|
591
|
-
for (var p = a - 1, g = a === 0 ? i : [""], k = Ve(g), v = 0,
|
|
592
|
-
for (var y = 0, w = ue(e, p + 1, p = St(
|
|
593
|
-
(
|
|
594
|
-
return Ee(e, t, r, a === 0 ? Le : c,
|
|
590
|
+
function Ye(e, t, r, n, a, i, s, c, d, m, l) {
|
|
591
|
+
for (var p = a - 1, g = a === 0 ? i : [""], k = Ve(g), v = 0, f = 0, h = 0; v < n; ++v)
|
|
592
|
+
for (var y = 0, w = ue(e, p + 1, p = St(f = s[v])), _ = e; y < k; ++y)
|
|
593
|
+
(_ = at(f > 0 ? g[y] + " " + w : E(w, /&\f/g, g[y]))) && (d[h++] = _);
|
|
594
|
+
return Ee(e, t, r, a === 0 ? Le : c, d, m, l);
|
|
595
595
|
}
|
|
596
596
|
function Vt(e, t, r) {
|
|
597
597
|
return Ee(e, t, r, rt, ke(It()), ue(e, 2, -2), 0);
|
|
@@ -674,9 +674,9 @@ var Ut = function(t, r, n) {
|
|
|
674
674
|
if (n = n.parent, !n) return;
|
|
675
675
|
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !He.get(n)) && !a) {
|
|
676
676
|
He.set(t, !0);
|
|
677
|
-
for (var i = [], s = Wt(r, i), c = n.props,
|
|
677
|
+
for (var i = [], s = Wt(r, i), c = n.props, d = 0, m = 0; d < s.length; d++)
|
|
678
678
|
for (var l = 0; l < c.length; l++, m++)
|
|
679
|
-
t.props[m] = i[
|
|
679
|
+
t.props[m] = i[d] ? s[d].replace(/&\f/g, c[l]) : c[l] + " " + s[d];
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
}, qt = function(t) {
|
|
@@ -691,7 +691,7 @@ function lt(e, t) {
|
|
|
691
691
|
switch (Tt(e, t)) {
|
|
692
692
|
// color-adjust
|
|
693
693
|
case 5103:
|
|
694
|
-
return
|
|
694
|
+
return P + "print-" + e + e;
|
|
695
695
|
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
696
696
|
case 5737:
|
|
697
697
|
case 4201:
|
|
@@ -721,58 +721,58 @@ function lt(e, t) {
|
|
|
721
721
|
case 5365:
|
|
722
722
|
case 5621:
|
|
723
723
|
case 3829:
|
|
724
|
-
return
|
|
724
|
+
return P + e + e;
|
|
725
725
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
726
726
|
case 5349:
|
|
727
727
|
case 4246:
|
|
728
728
|
case 4810:
|
|
729
729
|
case 6968:
|
|
730
730
|
case 2756:
|
|
731
|
-
return
|
|
731
|
+
return P + e + we + e + V + e + e;
|
|
732
732
|
// flex, flex-direction
|
|
733
733
|
case 6828:
|
|
734
734
|
case 4268:
|
|
735
|
-
return
|
|
735
|
+
return P + e + V + e + e;
|
|
736
736
|
// order
|
|
737
737
|
case 6165:
|
|
738
|
-
return
|
|
738
|
+
return P + e + V + "flex-" + e + e;
|
|
739
739
|
// align-items
|
|
740
740
|
case 5187:
|
|
741
|
-
return
|
|
741
|
+
return P + e + E(e, /(\w+).+(:[^]+)/, P + "box-$1$2" + V + "flex-$1$2") + e;
|
|
742
742
|
// align-self
|
|
743
743
|
case 5443:
|
|
744
|
-
return
|
|
744
|
+
return P + e + V + "flex-item-" + E(e, /flex-|-self/, "") + e;
|
|
745
745
|
// align-content
|
|
746
746
|
case 4675:
|
|
747
|
-
return
|
|
747
|
+
return P + e + V + "flex-line-pack" + E(e, /align-content|flex-|-self/, "") + e;
|
|
748
748
|
// flex-shrink
|
|
749
749
|
case 5548:
|
|
750
|
-
return
|
|
750
|
+
return P + e + V + E(e, "shrink", "negative") + e;
|
|
751
751
|
// flex-basis
|
|
752
752
|
case 5292:
|
|
753
|
-
return
|
|
753
|
+
return P + e + V + E(e, "basis", "preferred-size") + e;
|
|
754
754
|
// flex-grow
|
|
755
755
|
case 6060:
|
|
756
|
-
return
|
|
756
|
+
return P + "box-" + E(e, "-grow", "") + P + e + V + E(e, "grow", "positive") + e;
|
|
757
757
|
// transition
|
|
758
758
|
case 4554:
|
|
759
|
-
return
|
|
759
|
+
return P + E(e, /([^-])(transform)/g, "$1" + P + "$2") + e;
|
|
760
760
|
// cursor
|
|
761
761
|
case 6187:
|
|
762
|
-
return
|
|
762
|
+
return E(E(E(e, /(zoom-|grab)/, P + "$1"), /(image-set)/, P + "$1"), e, "") + e;
|
|
763
763
|
// background, background-image
|
|
764
764
|
case 5495:
|
|
765
765
|
case 3959:
|
|
766
|
-
return
|
|
766
|
+
return E(e, /(image-set\([^]*)/, P + "$1$`$1");
|
|
767
767
|
// justify-content
|
|
768
768
|
case 4968:
|
|
769
|
-
return
|
|
769
|
+
return E(E(e, /(.+:)(flex-)?(.*)/, P + "box-pack:$3" + V + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + P + e + e;
|
|
770
770
|
// (margin|padding)-inline-(start|end)
|
|
771
771
|
case 4095:
|
|
772
772
|
case 3583:
|
|
773
773
|
case 4068:
|
|
774
774
|
case 2532:
|
|
775
|
-
return
|
|
775
|
+
return E(e, /(.+)-inline(.+)/, P + "$1$2") + e;
|
|
776
776
|
// (min|max)?(width|height|inline-size|block-size)
|
|
777
777
|
case 8116:
|
|
778
778
|
case 7059:
|
|
@@ -786,46 +786,46 @@ function lt(e, t) {
|
|
|
786
786
|
case 5789:
|
|
787
787
|
case 5021:
|
|
788
788
|
case 4765:
|
|
789
|
-
if (W(e) - 1 - t > 6) switch (
|
|
789
|
+
if (W(e) - 1 - t > 6) switch (N(e, t + 1)) {
|
|
790
790
|
// (m)ax-content, (m)in-content
|
|
791
791
|
case 109:
|
|
792
|
-
if (
|
|
792
|
+
if (N(e, t + 4) !== 45) break;
|
|
793
793
|
// (f)ill-available, (f)it-content
|
|
794
794
|
case 102:
|
|
795
|
-
return
|
|
795
|
+
return E(e, /(.+:)(.+)-([^]+)/, "$1" + P + "$2-$3$1" + we + (N(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
796
796
|
// (s)tretch
|
|
797
797
|
case 115:
|
|
798
|
-
return ~je(e, "stretch") ? lt(
|
|
798
|
+
return ~je(e, "stretch") ? lt(E(e, "stretch", "fill-available"), t) + e : e;
|
|
799
799
|
}
|
|
800
800
|
break;
|
|
801
801
|
// position: sticky
|
|
802
802
|
case 4949:
|
|
803
|
-
if (
|
|
803
|
+
if (N(e, t + 1) !== 115) break;
|
|
804
804
|
// display: (flex|inline-flex)
|
|
805
805
|
case 6444:
|
|
806
|
-
switch (
|
|
806
|
+
switch (N(e, W(e) - 3 - (~je(e, "!important") && 10))) {
|
|
807
807
|
// stic(k)y
|
|
808
808
|
case 107:
|
|
809
|
-
return
|
|
809
|
+
return E(e, ":", ":" + P) + e;
|
|
810
810
|
// (inline-)?fl(e)x
|
|
811
811
|
case 101:
|
|
812
|
-
return
|
|
812
|
+
return E(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + P + (N(e, 14) === 45 ? "inline-" : "") + "box$3$1" + P + "$2$3$1" + V + "$2box$3") + e;
|
|
813
813
|
}
|
|
814
814
|
break;
|
|
815
815
|
// writing-mode
|
|
816
816
|
case 5936:
|
|
817
|
-
switch (
|
|
817
|
+
switch (N(e, t + 11)) {
|
|
818
818
|
// vertical-l(r)
|
|
819
819
|
case 114:
|
|
820
|
-
return
|
|
820
|
+
return P + e + V + E(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
821
821
|
// vertical-r(l)
|
|
822
822
|
case 108:
|
|
823
|
-
return
|
|
823
|
+
return P + e + V + E(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
824
824
|
// horizontal(-)tb
|
|
825
825
|
case 45:
|
|
826
|
-
return
|
|
826
|
+
return P + e + V + E(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
827
827
|
}
|
|
828
|
-
return
|
|
828
|
+
return P + e + V + e + e;
|
|
829
829
|
}
|
|
830
830
|
return e;
|
|
831
831
|
}
|
|
@@ -836,7 +836,7 @@ var Ht = function(t, r, n, a) {
|
|
|
836
836
|
break;
|
|
837
837
|
case nt:
|
|
838
838
|
return te([le(t, {
|
|
839
|
-
value:
|
|
839
|
+
value: E(t.value, "@", "@" + P)
|
|
840
840
|
})], a);
|
|
841
841
|
case Le:
|
|
842
842
|
if (t.length) return Ct(t.props, function(i) {
|
|
@@ -845,16 +845,16 @@ var Ht = function(t, r, n, a) {
|
|
|
845
845
|
case ":read-only":
|
|
846
846
|
case ":read-write":
|
|
847
847
|
return te([le(t, {
|
|
848
|
-
props: [
|
|
848
|
+
props: [E(i, /:(read-\w+)/, ":" + we + "$1")]
|
|
849
849
|
})], a);
|
|
850
850
|
// :placeholder
|
|
851
851
|
case "::placeholder":
|
|
852
852
|
return te([le(t, {
|
|
853
|
-
props: [
|
|
853
|
+
props: [E(i, /:(plac\w+)/, ":" + P + "input-$1")]
|
|
854
854
|
}), le(t, {
|
|
855
|
-
props: [
|
|
855
|
+
props: [E(i, /:(plac\w+)/, ":" + we + "$1")]
|
|
856
856
|
}), le(t, {
|
|
857
|
-
props: [
|
|
857
|
+
props: [E(i, /:(plac\w+)/, V + "input-$1")]
|
|
858
858
|
})], a);
|
|
859
859
|
}
|
|
860
860
|
return "";
|
|
@@ -864,9 +864,9 @@ var Ht = function(t, r, n, a) {
|
|
|
864
864
|
var r = t.key;
|
|
865
865
|
if (r === "css") {
|
|
866
866
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
867
|
-
Array.prototype.forEach.call(n, function(
|
|
868
|
-
var h =
|
|
869
|
-
h.indexOf(" ") !== -1 && (document.head.appendChild(
|
|
867
|
+
Array.prototype.forEach.call(n, function(f) {
|
|
868
|
+
var h = f.getAttribute("data-emotion");
|
|
869
|
+
h.indexOf(" ") !== -1 && (document.head.appendChild(f), f.setAttribute("data-s", ""));
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
872
|
var a = t.stylisPlugins || Gt, i = {}, s, c = [];
|
|
@@ -874,21 +874,21 @@ var Ht = function(t, r, n, a) {
|
|
|
874
874
|
// this means we will ignore elements which don't have a space in them which
|
|
875
875
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
876
876
|
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
877
|
-
function(
|
|
878
|
-
for (var h =
|
|
877
|
+
function(f) {
|
|
878
|
+
for (var h = f.getAttribute("data-emotion").split(" "), y = 1; y < h.length; y++)
|
|
879
879
|
i[h[y]] = !0;
|
|
880
|
-
c.push(
|
|
880
|
+
c.push(f);
|
|
881
881
|
}
|
|
882
882
|
);
|
|
883
|
-
var
|
|
883
|
+
var d, m = [Yt, qt];
|
|
884
884
|
{
|
|
885
|
-
var l, p = [Mt, zt(function(
|
|
886
|
-
l.insert(
|
|
885
|
+
var l, p = [Mt, zt(function(f) {
|
|
886
|
+
l.insert(f);
|
|
887
887
|
})], g = Bt(m.concat(a, p)), k = function(h) {
|
|
888
888
|
return te(Ft(h), g);
|
|
889
889
|
};
|
|
890
|
-
|
|
891
|
-
l = w, k(h ? h + "{" + y.styles + "}" : y.styles),
|
|
890
|
+
d = function(h, y, w, _) {
|
|
891
|
+
l = w, k(h ? h + "{" + y.styles + "}" : y.styles), _ && (v.inserted[y.name] = !0);
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
var v = {
|
|
@@ -904,7 +904,7 @@ var Ht = function(t, r, n, a) {
|
|
|
904
904
|
nonce: t.nonce,
|
|
905
905
|
inserted: i,
|
|
906
906
|
registered: {},
|
|
907
|
-
insert:
|
|
907
|
+
insert: d
|
|
908
908
|
};
|
|
909
909
|
return v.sheet.hydrate(c), v;
|
|
910
910
|
}, Kt = !0;
|
|
@@ -1059,8 +1059,8 @@ function fe(e, t, r) {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
case "function": {
|
|
1061
1061
|
if (e !== void 0) {
|
|
1062
|
-
var
|
|
1063
|
-
return Y =
|
|
1062
|
+
var d = Y, m = r(e);
|
|
1063
|
+
return Y = d, fe(e, t, m);
|
|
1064
1064
|
}
|
|
1065
1065
|
break;
|
|
1066
1066
|
}
|
|
@@ -1083,8 +1083,8 @@ function nr(e, t, r) {
|
|
|
1083
1083
|
var c = s;
|
|
1084
1084
|
t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : Ge(c) && (n += Te(i) + ":" + Xe(i, c) + ";");
|
|
1085
1085
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (t == null || t[s[0]] === void 0))
|
|
1086
|
-
for (var
|
|
1087
|
-
Ge(s[
|
|
1086
|
+
for (var d = 0; d < s.length; d++)
|
|
1087
|
+
Ge(s[d]) && (n += Te(i) + ":" + Xe(i, s[d]) + ";");
|
|
1088
1088
|
else {
|
|
1089
1089
|
var m = fe(e, t, s);
|
|
1090
1090
|
switch (i) {
|
|
@@ -1115,8 +1115,8 @@ function ar(e, t, r) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
for (var c = 1; c < e.length; c++)
|
|
1117
1117
|
if (a += fe(r, t, e[c]), n) {
|
|
1118
|
-
var
|
|
1119
|
-
a +=
|
|
1118
|
+
var d = i;
|
|
1119
|
+
a += d[c];
|
|
1120
1120
|
}
|
|
1121
1121
|
Ke.lastIndex = 0;
|
|
1122
1122
|
for (var m = "", l; (l = Ke.exec(a)) !== null; )
|
|
@@ -1176,7 +1176,7 @@ var cr = function(t) {
|
|
|
1176
1176
|
}, mr = function e(t, r) {
|
|
1177
1177
|
var n = t.__emotion_real === t, a = n && t.__emotion_base || t, i, s;
|
|
1178
1178
|
r !== void 0 && (i = r.label, s = r.target);
|
|
1179
|
-
var c = Ze(t, r, n),
|
|
1179
|
+
var c = Ze(t, r, n), d = c || Je(a), m = !d("as");
|
|
1180
1180
|
return function() {
|
|
1181
1181
|
var l = arguments, p = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
1182
1182
|
if (i !== void 0 && p.push("label:" + i + ";"), l[0] == null || l[0].raw === void 0)
|
|
@@ -1187,36 +1187,36 @@ var cr = function(t) {
|
|
|
1187
1187
|
for (var k = l.length, v = 1; v < k; v++)
|
|
1188
1188
|
p.push(l[v], g[v]);
|
|
1189
1189
|
}
|
|
1190
|
-
var
|
|
1191
|
-
var
|
|
1190
|
+
var f = cr(function(h, y, w) {
|
|
1191
|
+
var _ = m && h.as || a, T = "", x = [], S = h;
|
|
1192
1192
|
if (h.theme == null) {
|
|
1193
|
-
|
|
1194
|
-
for (var
|
|
1195
|
-
|
|
1196
|
-
|
|
1193
|
+
S = {};
|
|
1194
|
+
for (var u in h)
|
|
1195
|
+
S[u] = h[u];
|
|
1196
|
+
S.theme = H.useContext(lr);
|
|
1197
1197
|
}
|
|
1198
|
-
typeof h.className == "string" ?
|
|
1199
|
-
var
|
|
1200
|
-
|
|
1201
|
-
var
|
|
1202
|
-
for (var
|
|
1203
|
-
m &&
|
|
1204
|
-
return
|
|
1198
|
+
typeof h.className == "string" ? T = Jt(y.registered, x, h.className) : h.className != null && (T = h.className + " ");
|
|
1199
|
+
var A = ar(p.concat(x), y.registered, S);
|
|
1200
|
+
T += y.key + "-" + A.name, s !== void 0 && (T += " " + s);
|
|
1201
|
+
var $ = m && c === void 0 ? Je(_) : d, R = {};
|
|
1202
|
+
for (var I in h)
|
|
1203
|
+
m && I === "as" || $(I) && (R[I] = h[I]);
|
|
1204
|
+
return R.className = T, w && (R.ref = w), /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement(hr, {
|
|
1205
1205
|
cache: y,
|
|
1206
|
-
serialized:
|
|
1207
|
-
isStringTag: typeof
|
|
1208
|
-
}), /* @__PURE__ */ H.createElement(
|
|
1206
|
+
serialized: A,
|
|
1207
|
+
isStringTag: typeof _ == "string"
|
|
1208
|
+
}), /* @__PURE__ */ H.createElement(_, R));
|
|
1209
1209
|
});
|
|
1210
|
-
return
|
|
1210
|
+
return f.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", f.defaultProps = t.defaultProps, f.__emotion_real = f, f.__emotion_base = a, f.__emotion_styles = p, f.__emotion_forwardProp = c, Object.defineProperty(f, "toString", {
|
|
1211
1211
|
value: function() {
|
|
1212
1212
|
return "." + s;
|
|
1213
1213
|
}
|
|
1214
|
-
}),
|
|
1214
|
+
}), f.withComponent = function(h, y) {
|
|
1215
1215
|
var w = e(h, Oe({}, r, y, {
|
|
1216
|
-
shouldForwardProp: Ze(
|
|
1216
|
+
shouldForwardProp: Ze(f, y, !0)
|
|
1217
1217
|
}));
|
|
1218
1218
|
return w.apply(void 0, p);
|
|
1219
|
-
},
|
|
1219
|
+
}, f;
|
|
1220
1220
|
};
|
|
1221
1221
|
}, yr = [
|
|
1222
1222
|
"a",
|
|
@@ -1436,7 +1436,7 @@ const gr = ne.div`
|
|
|
1436
1436
|
`, xr = (e, t) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`, wr = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`, kr = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, Me = (e, t) => `vp-player-${e || "default"}-${t || ""}`, Ae = /* @__PURE__ */ new Map(), Pr = (e, t) => {
|
|
1437
1437
|
const [r, n] = U(!1), [a, i] = U(null);
|
|
1438
1438
|
return xe(() => {
|
|
1439
|
-
let s = null, c,
|
|
1439
|
+
let s = null, c, d = 0;
|
|
1440
1440
|
const m = 3;
|
|
1441
1441
|
let l;
|
|
1442
1442
|
try {
|
|
@@ -1460,7 +1460,7 @@ const gr = ne.div`
|
|
|
1460
1460
|
}, 1e4), s.onload = () => {
|
|
1461
1461
|
clearTimeout(c), Ae.set(l, !0), n(!0), i(null);
|
|
1462
1462
|
}, s.onerror = () => {
|
|
1463
|
-
clearTimeout(c),
|
|
1463
|
+
clearTimeout(c), d++, d < m ? setTimeout(g, 1e3 * d) : (n(!1), i(`Failed to load VP Player script after ${m} attempts: ${l}`));
|
|
1464
1464
|
}, document.body.appendChild(s);
|
|
1465
1465
|
};
|
|
1466
1466
|
return g(), () => {
|
|
@@ -1468,11 +1468,11 @@ const gr = ne.div`
|
|
|
1468
1468
|
};
|
|
1469
1469
|
}, [e, t]), { isLoaded: r, error: a };
|
|
1470
1470
|
}, Er = {}, ye = /* @__PURE__ */ new Map(), _r = 3e4, Ce = 5, Sr = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
|
|
1471
|
-
const [i, s] = U(null), [c,
|
|
1471
|
+
const [i, s] = U(null), [c, d] = U(null), [m, l] = U(!1), [p, g] = U(null), k = a || (typeof Er < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
|
|
1472
1472
|
return xe(() => {
|
|
1473
1473
|
const v = t ? `video:${t}` : r ? `playlist:${r}` : null;
|
|
1474
1474
|
if (!e || n || !t && !r) {
|
|
1475
|
-
s(n || null),
|
|
1475
|
+
s(n || null), d(null), l(!1), g(null);
|
|
1476
1476
|
return;
|
|
1477
1477
|
}
|
|
1478
1478
|
if (!k) {
|
|
@@ -1480,20 +1480,20 @@ const gr = ne.div`
|
|
|
1480
1480
|
return;
|
|
1481
1481
|
}
|
|
1482
1482
|
if (v && ye.has(v)) {
|
|
1483
|
-
const
|
|
1484
|
-
s(
|
|
1483
|
+
const T = ye.get(v);
|
|
1484
|
+
s(T.url), d(T.playlist), l(!1), g(null);
|
|
1485
1485
|
return;
|
|
1486
1486
|
}
|
|
1487
|
-
let
|
|
1488
|
-
const h = new AbortController(), y = h.signal,
|
|
1489
|
-
var
|
|
1490
|
-
if (!
|
|
1487
|
+
let f = !0;
|
|
1488
|
+
const h = new AbortController(), y = h.signal, _ = setTimeout(async () => {
|
|
1489
|
+
var x, S;
|
|
1490
|
+
if (!f)
|
|
1491
1491
|
return;
|
|
1492
1492
|
l(!0), g(null);
|
|
1493
|
-
let
|
|
1494
|
-
for (;
|
|
1493
|
+
let T = 0;
|
|
1494
|
+
for (; T < Ce && f; )
|
|
1495
1495
|
try {
|
|
1496
|
-
const
|
|
1496
|
+
const u = t && !r ? xr(e, t) : wr(e, r), A = setTimeout(() => h.abort(), _r), $ = await fetch(u, {
|
|
1497
1497
|
method: "GET",
|
|
1498
1498
|
headers: {
|
|
1499
1499
|
"api-key": k,
|
|
@@ -1503,37 +1503,37 @@ const gr = ne.div`
|
|
|
1503
1503
|
},
|
|
1504
1504
|
signal: y
|
|
1505
1505
|
});
|
|
1506
|
-
if (clearTimeout(
|
|
1507
|
-
throw new Error(`Fetch failed with status ${
|
|
1508
|
-
const
|
|
1509
|
-
if (!
|
|
1506
|
+
if (clearTimeout(A), !$.ok)
|
|
1507
|
+
throw new Error(`Fetch failed with status ${$.status}`);
|
|
1508
|
+
const R = await $.json();
|
|
1509
|
+
if (!f)
|
|
1510
1510
|
return;
|
|
1511
1511
|
if (t && !r) {
|
|
1512
|
-
const
|
|
1513
|
-
if (!(
|
|
1512
|
+
const I = (S = (x = R.result) == null ? void 0 : x.items) == null ? void 0 : S.find((G) => G.mediaId === t);
|
|
1513
|
+
if (!(I != null && I.playbackUrl))
|
|
1514
1514
|
throw new Error("Invalid video data");
|
|
1515
|
-
s(
|
|
1515
|
+
s(I.playbackUrl), d(null), v && ye.set(v, { url: I.playbackUrl, playlist: null });
|
|
1516
1516
|
} else {
|
|
1517
|
-
if (!Array.isArray(
|
|
1517
|
+
if (!Array.isArray(R.result))
|
|
1518
1518
|
throw new Error("Invalid playlist format");
|
|
1519
|
-
|
|
1519
|
+
d(R.result), s(null), v && ye.set(v, { url: null, playlist: R.result });
|
|
1520
1520
|
}
|
|
1521
1521
|
break;
|
|
1522
|
-
} catch (
|
|
1522
|
+
} catch (u) {
|
|
1523
1523
|
if (y.aborted) {
|
|
1524
|
-
|
|
1524
|
+
f && g("Request timed out");
|
|
1525
1525
|
break;
|
|
1526
1526
|
}
|
|
1527
|
-
if (
|
|
1528
|
-
const
|
|
1529
|
-
|
|
1527
|
+
if (T++, T >= Ce) {
|
|
1528
|
+
const A = u instanceof Error ? u.message : String(u);
|
|
1529
|
+
f && g(`Failed after ${Ce} attempts: ${A}`);
|
|
1530
1530
|
} else
|
|
1531
|
-
await new Promise((
|
|
1531
|
+
await new Promise((A) => setTimeout(A, 2e3));
|
|
1532
1532
|
}
|
|
1533
|
-
|
|
1533
|
+
f && l(!1);
|
|
1534
1534
|
}, 100);
|
|
1535
1535
|
return () => {
|
|
1536
|
-
|
|
1536
|
+
f = !1, clearTimeout(_), h.abort();
|
|
1537
1537
|
};
|
|
1538
1538
|
}, [k, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: m, error: p };
|
|
1539
1539
|
}, Rr = {
|
|
@@ -1599,7 +1599,7 @@ const gr = ne.div`
|
|
|
1599
1599
|
isVerticalPlayer: i
|
|
1600
1600
|
// Distinguish between VP Player types
|
|
1601
1601
|
}) => {
|
|
1602
|
-
var l, p, g, k, v,
|
|
1602
|
+
var l, p, g, k, v, f, h, y, w, _, T;
|
|
1603
1603
|
const s = { ...Rr, ...a }, c = { ...s.config, ...a.config };
|
|
1604
1604
|
if (e)
|
|
1605
1605
|
return {
|
|
@@ -1622,59 +1622,67 @@ const gr = ne.div`
|
|
|
1622
1622
|
config: c
|
|
1623
1623
|
};
|
|
1624
1624
|
if (r && r.length > 0) {
|
|
1625
|
-
const
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
//
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1625
|
+
const x = ((p = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : p.playlistVideoIndex) ?? ((g = a == null ? void 0 : a.config) == null ? void 0 : g.playlistVideoIndex) ?? 0;
|
|
1626
|
+
if (i) {
|
|
1627
|
+
const S = Number(x), u = r[S] || r[0];
|
|
1628
|
+
return {
|
|
1629
|
+
...s,
|
|
1630
|
+
projectId: n || "vp-player-projectId",
|
|
1631
|
+
video: {
|
|
1632
|
+
...s.video,
|
|
1633
|
+
// Set target video file and metadata
|
|
1634
|
+
file: u == null ? void 0 : u.hlsUrl,
|
|
1635
|
+
title: u == null ? void 0 : u.title,
|
|
1636
|
+
// Don't set thumbnail - let VP Player manage thumbnails during scrolling
|
|
1637
|
+
// thumbnail: targetVideo?.thumbnailUrl,
|
|
1638
|
+
playlist: {
|
|
1639
|
+
state: !0,
|
|
1640
|
+
playlistId: "",
|
|
1641
|
+
// Will be set by API
|
|
1642
|
+
// Use original playlistVideoIndex - VP Player will navigate to it
|
|
1643
|
+
playlistVideoIndex: Number(x),
|
|
1644
|
+
// // Remove first video from playlist to avoid duplication (already in file)
|
|
1645
|
+
// videos: fetchedPlaylist.slice(1).map((video, index) => ({
|
|
1646
|
+
// videoId: String(index + 1), // Keep original IDs
|
|
1647
|
+
// Keep all videos in playlist (don't remove first video)
|
|
1648
|
+
videos: r.map(($, R) => ({
|
|
1649
|
+
videoId: String(R),
|
|
1650
|
+
// Use 0-based indexing
|
|
1651
|
+
title: $.title,
|
|
1652
|
+
file: $.hlsUrl,
|
|
1653
|
+
thumbnailUrl: $.thumbnailUrl,
|
|
1654
|
+
duration: $.duration
|
|
1655
|
+
}))
|
|
1656
|
+
}
|
|
1657
|
+
},
|
|
1658
|
+
config: c
|
|
1659
|
+
};
|
|
1660
|
+
} else
|
|
1661
|
+
return {
|
|
1662
|
+
...s,
|
|
1663
|
+
projectId: n || "vp-player-projectId",
|
|
1664
|
+
video: {
|
|
1665
|
+
...s.video,
|
|
1666
|
+
file: ((k = r[Number(x)]) == null ? void 0 : k.hlsUrl) || ((v = r[0]) == null ? void 0 : v.hlsUrl) || "",
|
|
1667
|
+
title: ((f = r[Number(x)]) == null ? void 0 : f.title) || ((h = r[0]) == null ? void 0 : h.title),
|
|
1668
|
+
thumbnail: ((y = r[Number(x)]) == null ? void 0 : y.thumbnailUrl) || ((w = r[0]) == null ? void 0 : w.thumbnailUrl),
|
|
1669
|
+
playlist: {
|
|
1670
|
+
state: !0,
|
|
1671
|
+
// playlistVideoIndex: String(userPlaylistVideoIndex), this has been bug, fixed, now int
|
|
1672
|
+
playlistVideoIndex: Number(x),
|
|
1673
|
+
videos: r.map((u, A) => ({
|
|
1674
|
+
videoId: String(A),
|
|
1675
|
+
title: u.title,
|
|
1676
|
+
file: u.hlsUrl,
|
|
1677
|
+
thumbnailUrl: u.thumbnailUrl,
|
|
1678
|
+
duration: u.duration
|
|
1679
|
+
}))
|
|
1680
|
+
}
|
|
1681
|
+
},
|
|
1682
|
+
config: c
|
|
1683
|
+
};
|
|
1676
1684
|
}
|
|
1677
|
-
const
|
|
1685
|
+
const d = ((_ = a == null ? void 0 : a.video) == null ? void 0 : _.playlist) || s.video.playlist, m = (T = a == null ? void 0 : a.video) == null ? void 0 : T.file;
|
|
1678
1686
|
if (m)
|
|
1679
1687
|
return {
|
|
1680
1688
|
...s,
|
|
@@ -1686,19 +1694,19 @@ const gr = ne.div`
|
|
|
1686
1694
|
},
|
|
1687
1695
|
config: c
|
|
1688
1696
|
};
|
|
1689
|
-
if (
|
|
1690
|
-
const
|
|
1697
|
+
if (d != null && d.videos && d.videos.length > 0) {
|
|
1698
|
+
const x = d.videos[Number(d.playlistVideoIndex) || 0];
|
|
1691
1699
|
return {
|
|
1692
1700
|
...s,
|
|
1693
1701
|
video: {
|
|
1694
1702
|
...s.video,
|
|
1695
|
-
file: (
|
|
1703
|
+
file: (x == null ? void 0 : x.file) || "",
|
|
1696
1704
|
playlist: {
|
|
1697
|
-
...
|
|
1698
|
-
state:
|
|
1705
|
+
...d,
|
|
1706
|
+
state: d.state ?? !0,
|
|
1699
1707
|
// playlistVideoIndex: playlist.playlistVideoIndex ?? 0, this has been bug, fixed, now int
|
|
1700
|
-
playlistVideoIndex: Number(
|
|
1701
|
-
videos:
|
|
1708
|
+
playlistVideoIndex: Number(d.playlistVideoIndex || 0),
|
|
1709
|
+
videos: d.videos
|
|
1702
1710
|
}
|
|
1703
1711
|
},
|
|
1704
1712
|
config: {
|
|
@@ -1713,20 +1721,20 @@ const gr = ne.div`
|
|
|
1713
1721
|
return;
|
|
1714
1722
|
const t = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, r = e.match(t);
|
|
1715
1723
|
return r ? r[2] : void 0;
|
|
1716
|
-
}, Cr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey:
|
|
1717
|
-
const l = Be(null), p = Be(null), { isLoaded: g, error: k } = Pr(r, s), v = t || Ar(s), [
|
|
1724
|
+
}, Cr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: d, isReels: m = !1 }) => {
|
|
1725
|
+
const l = Be(null), p = Be(null), { isLoaded: g, error: k } = Pr(r, s), v = t || Ar(s), [f, h] = U(null), { fetchedPlaybackUrl: y, fetchedPlaylist: w, isLoading: _, error: T } = Sr({
|
|
1718
1726
|
projectId: a,
|
|
1719
1727
|
videoId: v,
|
|
1720
1728
|
playlistId: i,
|
|
1721
1729
|
videoUrl: n,
|
|
1722
|
-
apiKey:
|
|
1723
|
-
}),
|
|
1724
|
-
const
|
|
1730
|
+
apiKey: d
|
|
1731
|
+
}), x = Me(e, v), S = tt(() => {
|
|
1732
|
+
const u = c.config || {}, A = m && !u.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : u.size || { sizeType: "FIXED", width: "100%" };
|
|
1725
1733
|
return {
|
|
1726
1734
|
...c,
|
|
1727
1735
|
config: {
|
|
1728
|
-
...
|
|
1729
|
-
size:
|
|
1736
|
+
...u,
|
|
1737
|
+
size: A
|
|
1730
1738
|
}
|
|
1731
1739
|
};
|
|
1732
1740
|
}, [c, m]);
|
|
@@ -1735,25 +1743,25 @@ const gr = ne.div`
|
|
|
1735
1743
|
h(k);
|
|
1736
1744
|
return;
|
|
1737
1745
|
}
|
|
1738
|
-
if (!g ||
|
|
1746
|
+
if (!g || _ && !n)
|
|
1739
1747
|
return;
|
|
1740
|
-
let
|
|
1741
|
-
const
|
|
1748
|
+
let u = !0;
|
|
1749
|
+
const $ = setTimeout(async () => {
|
|
1742
1750
|
try {
|
|
1743
|
-
const
|
|
1751
|
+
const R = s == null ? void 0 : s.includes("vertical-player");
|
|
1744
1752
|
if (document.querySelectorAll('[id*="player"]').forEach((Q) => {
|
|
1745
1753
|
var ie, oe;
|
|
1746
1754
|
const J = Q.id;
|
|
1747
|
-
if (J !==
|
|
1755
|
+
if (J !== x)
|
|
1748
1756
|
try {
|
|
1749
|
-
const o =
|
|
1757
|
+
const o = R ? (ie = window.vpVerticalPlayer) == null ? void 0 : ie.call(window, J) : (oe = window.vpPlayer) == null ? void 0 : oe.call(window, J);
|
|
1750
1758
|
o != null && o.destroy && o.destroy();
|
|
1751
1759
|
} catch (o) {
|
|
1752
1760
|
console.warn(`Failed to destroy existing player ${J}:`, o);
|
|
1753
1761
|
}
|
|
1754
|
-
}), await new Promise((Q) => setTimeout(Q, 100)), !
|
|
1762
|
+
}), await new Promise((Q) => setTimeout(Q, 100)), !u || !l.current)
|
|
1755
1763
|
return;
|
|
1756
|
-
if (!document.getElementById(
|
|
1764
|
+
if (!document.getElementById(x)) {
|
|
1757
1765
|
h("DOM element not found after cleanup.");
|
|
1758
1766
|
return;
|
|
1759
1767
|
}
|
|
@@ -1761,9 +1769,9 @@ const gr = ne.div`
|
|
|
1761
1769
|
h("VP Player script not loaded.");
|
|
1762
1770
|
return;
|
|
1763
1771
|
}
|
|
1764
|
-
const z =
|
|
1772
|
+
const z = R ? window.vpVerticalPlayer : window.vpPlayer;
|
|
1765
1773
|
if (!z) {
|
|
1766
|
-
h(`VP ${
|
|
1774
|
+
h(`VP ${R ? "Vertical " : ""}Player script not loaded.`);
|
|
1767
1775
|
return;
|
|
1768
1776
|
}
|
|
1769
1777
|
const X = Tr({
|
|
@@ -1771,57 +1779,57 @@ const gr = ne.div`
|
|
|
1771
1779
|
fetchedPlaybackUrl: y ?? void 0,
|
|
1772
1780
|
fetchedPlaylist: w ?? void 0,
|
|
1773
1781
|
projectId: a,
|
|
1774
|
-
config:
|
|
1775
|
-
isVerticalPlayer:
|
|
1782
|
+
config: S,
|
|
1783
|
+
isVerticalPlayer: R
|
|
1776
1784
|
// Pass player type to config builder
|
|
1777
|
-
}), Z = z(
|
|
1785
|
+
}), Z = z(x);
|
|
1778
1786
|
if (!Z) {
|
|
1779
|
-
h(`Failed to create VP ${
|
|
1787
|
+
h(`Failed to create VP ${R ? "Vertical " : ""}Player instance.`);
|
|
1780
1788
|
return;
|
|
1781
1789
|
}
|
|
1782
|
-
|
|
1783
|
-
} catch (
|
|
1784
|
-
if (
|
|
1785
|
-
const
|
|
1786
|
-
h(
|
|
1790
|
+
u && l.current && (Z.setup(X), p.current = Z, h(null));
|
|
1791
|
+
} catch (R) {
|
|
1792
|
+
if (u) {
|
|
1793
|
+
const I = R instanceof Error ? R.message : String(R);
|
|
1794
|
+
h(I), console.error("VP Player initialization error:", R);
|
|
1787
1795
|
}
|
|
1788
1796
|
}
|
|
1789
1797
|
}, 150);
|
|
1790
1798
|
return () => {
|
|
1791
|
-
|
|
1799
|
+
u = !1, clearTimeout($);
|
|
1792
1800
|
};
|
|
1793
1801
|
}, [
|
|
1794
1802
|
g,
|
|
1795
|
-
|
|
1803
|
+
_,
|
|
1796
1804
|
n,
|
|
1797
1805
|
y,
|
|
1798
1806
|
w,
|
|
1799
1807
|
a,
|
|
1800
|
-
|
|
1801
|
-
|
|
1808
|
+
S,
|
|
1809
|
+
x,
|
|
1802
1810
|
k,
|
|
1803
1811
|
s
|
|
1804
1812
|
]), xe(() => () => {
|
|
1805
1813
|
if (p.current) {
|
|
1806
1814
|
try {
|
|
1807
1815
|
p.current.destroy && p.current.destroy();
|
|
1808
|
-
} catch (
|
|
1809
|
-
console.warn(`Failed to destroy player ${
|
|
1816
|
+
} catch (A) {
|
|
1817
|
+
console.warn(`Failed to destroy player ${x}:`, A);
|
|
1810
1818
|
}
|
|
1811
1819
|
p.current = null;
|
|
1812
1820
|
}
|
|
1813
|
-
const
|
|
1814
|
-
|
|
1815
|
-
}, [
|
|
1821
|
+
const u = document.getElementById(x);
|
|
1822
|
+
u && (u.innerHTML = "");
|
|
1823
|
+
}, [x]), {
|
|
1816
1824
|
playerRef: l,
|
|
1817
1825
|
playerInstanceRef: p,
|
|
1818
1826
|
isScriptLoaded: g,
|
|
1819
|
-
isLoading:
|
|
1820
|
-
error:
|
|
1827
|
+
isLoading: _,
|
|
1828
|
+
error: T || f || k
|
|
1821
1829
|
};
|
|
1822
|
-
}, Ir = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey:
|
|
1823
|
-
var
|
|
1824
|
-
const { playerRef: k, playerInstanceRef: v, isScriptLoaded:
|
|
1830
|
+
}, Ir = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: d, isReels: m = !1, hiddenClasses: l = [], onClose: p, className: g }) => {
|
|
1831
|
+
var $, R, I, G;
|
|
1832
|
+
const { playerRef: k, playerInstanceRef: v, isScriptLoaded: f, isLoading: h, error: y } = Cr({
|
|
1825
1833
|
playerId: e,
|
|
1826
1834
|
videoId: t,
|
|
1827
1835
|
version: r,
|
|
@@ -1830,13 +1838,13 @@ const gr = ne.div`
|
|
|
1830
1838
|
playlistId: i,
|
|
1831
1839
|
scriptUrl: s,
|
|
1832
1840
|
config: c,
|
|
1833
|
-
apiKey:
|
|
1841
|
+
apiKey: d,
|
|
1834
1842
|
isReels: m
|
|
1835
|
-
}), [w,
|
|
1843
|
+
}), [w, _] = U(!0), T = () => m && _(!0), x = () => {
|
|
1836
1844
|
var z, X;
|
|
1837
|
-
|
|
1838
|
-
},
|
|
1839
|
-
return y ? j.jsxs(Ne, { type: "error", children: ["An error occurred: ", y] }) : h || !
|
|
1845
|
+
_(!1), (X = (z = v.current) == null ? void 0 : z.play) == null || X.call(z), p == null || p();
|
|
1846
|
+
}, S = (R = ($ = c == null ? void 0 : c.config) == null ? void 0 : $.size) != null && R.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, u = (G = (I = c == null ? void 0 : c.config) == null ? void 0 : I.size) != null && G.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, A = Me(e, t);
|
|
1847
|
+
return y ? j.jsxs(Ne, { type: "error", children: ["An error occurred: ", y] }) : h || !f ? j.jsx(Ne, { type: "loading", children: "Loading..." }) : j.jsxs(j.Fragment, { children: [m && !w ? j.jsx("div", { onClick: T }) : null, !m && j.jsx("div", { children: j.jsx(Qe, { id: A, ref: k, width: S || "100%", height: u || "auto", $hiddenClasses: l, className: g }) }, A), m && w && j.jsx(vr, { onClick: x, className: g, children: j.jsx(br, { className: g, onClick: (z) => z.stopPropagation(), children: j.jsx("div", { children: j.jsx(Qe, { id: A, ref: k, width: "100%", height: "auto", $hiddenClasses: l, className: g }) }, A) }) })] });
|
|
1840
1848
|
}, pt = gt(void 0), jr = ({ children: e }) => {
|
|
1841
1849
|
const [t, r] = U(!1), [n, a] = U(null), [i, s] = U(null), c = ze((l) => {
|
|
1842
1850
|
try {
|
|
@@ -1845,15 +1853,15 @@ const gr = ne.div`
|
|
|
1845
1853
|
} catch {
|
|
1846
1854
|
s("Failed to show player.");
|
|
1847
1855
|
}
|
|
1848
|
-
}, []),
|
|
1856
|
+
}, []), d = ze(() => {
|
|
1849
1857
|
r(!1), a(null), s(null);
|
|
1850
1858
|
}, []), m = tt(() => ({
|
|
1851
1859
|
showPlayer: c,
|
|
1852
|
-
hidePlayer:
|
|
1860
|
+
hidePlayer: d,
|
|
1853
1861
|
isPlayerVisible: t,
|
|
1854
1862
|
playerParams: n
|
|
1855
|
-
}), [c,
|
|
1856
|
-
return j.jsxs(pt.Provider, { value: m, children: [e, i && j.jsx(Ne, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && j.jsx(Ir, { playerId: n.playerId, videoId: n.videoId, projectId: n.projectId, videoUrl: n.videoUrl, version: n.version, playlistId: n.playlistId, scriptUrl: n.scriptUrl, config: n.config, isReels: n.isReels, thumbnailUrl: n.thumbnailUrl, onClose:
|
|
1863
|
+
}), [c, d, t, n]);
|
|
1864
|
+
return j.jsxs(pt.Provider, { value: m, children: [e, i && j.jsx(Ne, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && j.jsx(Ir, { playerId: n.playerId, videoId: n.videoId, projectId: n.projectId, videoUrl: n.videoUrl, version: n.version, playlistId: n.playlistId, scriptUrl: n.scriptUrl, config: n.config, isReels: n.isReels, thumbnailUrl: n.thumbnailUrl, onClose: d, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
|
|
1857
1865
|
}, $r = () => {
|
|
1858
1866
|
const e = et(pt);
|
|
1859
1867
|
if (!e)
|