@devix-technologies/react-gjirafa-vp-player 1.0.4 → 1.0.5
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import mt, { forwardRef as yt, useContext as et, useState as
|
|
3
|
-
var he = { exports: {} },
|
|
1
|
+
import * as H from "react";
|
|
2
|
+
import mt, { forwardRef as yt, useContext as et, useState as D, useEffect as xe, useRef as Me, useMemo as tt, createContext as gt, useCallback as ze } from "react";
|
|
3
|
+
var he = { exports: {} }, se = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -12,7 +12,7 @@ var he = { exports: {} }, ie = {};
|
|
|
12
12
|
*/
|
|
13
13
|
var De;
|
|
14
14
|
function vt() {
|
|
15
|
-
if (De) return
|
|
15
|
+
if (De) return se;
|
|
16
16
|
De = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
18
18
|
function r(n, a, i) {
|
|
@@ -30,9 +30,9 @@ function vt() {
|
|
|
30
30
|
props: i
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return se.Fragment = t, se.jsx = r, se.jsxs = r, se;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var ce = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -48,7 +48,7 @@ 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 === A ? null : o.displayName || o.name || null;
|
|
52
52
|
if (typeof o == "string") return o;
|
|
53
53
|
switch (o) {
|
|
54
54
|
case p:
|
|
@@ -79,7 +79,7 @@ function bt() {
|
|
|
79
79
|
return o = o.displayName, o || (o = g.displayName || g.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
80
80
|
case f:
|
|
81
81
|
return g = o.displayName || null, g !== null ? g : e(o.type) || "Memo";
|
|
82
|
-
case
|
|
82
|
+
case T:
|
|
83
83
|
g = o._payload, o = o._init;
|
|
84
84
|
try {
|
|
85
85
|
return e(o(g));
|
|
@@ -100,17 +100,17 @@ function bt() {
|
|
|
100
100
|
}
|
|
101
101
|
if (g) {
|
|
102
102
|
g = console;
|
|
103
|
-
var R = g.error,
|
|
103
|
+
var R = g.error, j = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
104
|
return R.call(
|
|
105
105
|
g,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
-
|
|
107
|
+
j
|
|
108
108
|
), t(o);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
function n(o) {
|
|
112
112
|
if (o === p) return "<>";
|
|
113
|
-
if (typeof o == "object" && o !== null && o.$$typeof ===
|
|
113
|
+
if (typeof o == "object" && o !== null && o.$$typeof === T)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
116
|
var g = e(o);
|
|
@@ -127,7 +127,7 @@ function bt() {
|
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
129
|
function s(o) {
|
|
130
|
-
if (
|
|
130
|
+
if (J.call(o, "key")) {
|
|
131
131
|
var g = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
132
132
|
if (g && g.isReactWarning) return !1;
|
|
133
133
|
}
|
|
@@ -135,7 +135,7 @@ function bt() {
|
|
|
135
135
|
}
|
|
136
136
|
function c(o, g) {
|
|
137
137
|
function R() {
|
|
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
|
g
|
|
141
141
|
));
|
|
@@ -147,17 +147,17 @@ function bt() {
|
|
|
147
147
|
}
|
|
148
148
|
function d() {
|
|
149
149
|
var o = e(this.type);
|
|
150
|
-
return
|
|
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, g, R,
|
|
155
|
-
return R =
|
|
154
|
+
function m(o, g, R, j, X, U, _e, Se) {
|
|
155
|
+
return R = U.ref, o = {
|
|
156
156
|
$$typeof: w,
|
|
157
157
|
type: o,
|
|
158
158
|
key: g,
|
|
159
|
-
props:
|
|
160
|
-
_owner:
|
|
159
|
+
props: U,
|
|
160
|
+
_owner: X
|
|
161
161
|
}, (R !== void 0 ? R : null) !== null ? Object.defineProperty(o, "ref", {
|
|
162
162
|
enumerable: !1,
|
|
163
163
|
get: d
|
|
@@ -183,36 +183,36 @@ function bt() {
|
|
|
183
183
|
value: Se
|
|
184
184
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
185
185
|
}
|
|
186
|
-
function l(o, g, R,
|
|
186
|
+
function l(o, g, R, j, X, U, _e, Se) {
|
|
187
187
|
var L = g.children;
|
|
188
188
|
if (L !== void 0)
|
|
189
|
-
if (
|
|
189
|
+
if (j)
|
|
190
190
|
if (z(L)) {
|
|
191
|
-
for (
|
|
192
|
-
u(L[
|
|
191
|
+
for (j = 0; j < L.length; j++)
|
|
192
|
+
u(L[j]);
|
|
193
193
|
Object.freeze && Object.freeze(L);
|
|
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
198
|
else u(L);
|
|
199
|
-
if (
|
|
199
|
+
if (J.call(g, "key")) {
|
|
200
200
|
L = e(o);
|
|
201
|
-
var
|
|
201
|
+
var ee = Object.keys(g).filter(function(ht) {
|
|
202
202
|
return ht !== "key";
|
|
203
203
|
});
|
|
204
|
-
|
|
204
|
+
j = 0 < ee.length ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}", oe[L + j] || (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
|
-
|
|
211
|
+
j,
|
|
212
212
|
L,
|
|
213
|
-
|
|
213
|
+
ee,
|
|
214
214
|
L
|
|
215
|
-
),
|
|
215
|
+
), oe[L + j] = !0);
|
|
216
216
|
}
|
|
217
217
|
if (L = null, R !== void 0 && (r(R), L = "" + R), s(g) && (r(g.key), L = "" + g.key), "key" in g) {
|
|
218
218
|
R = {};
|
|
@@ -225,8 +225,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
225
225
|
), m(
|
|
226
226
|
o,
|
|
227
227
|
L,
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
U,
|
|
229
|
+
X,
|
|
230
230
|
a(),
|
|
231
231
|
R,
|
|
232
232
|
_e,
|
|
@@ -236,7 +236,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
236
236
|
function u(o) {
|
|
237
237
|
typeof o == "object" && o !== null && o.$$typeof === w && o._store && (o._store.validated = 1);
|
|
238
238
|
}
|
|
239
|
-
var h = mt, w = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"),
|
|
239
|
+
var h = mt, w = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), A = Symbol.for("react.client.reference"), V = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, z = Array.isArray, G = console.createTask ? console.createTask : function() {
|
|
240
240
|
return null;
|
|
241
241
|
};
|
|
242
242
|
h = {
|
|
@@ -244,36 +244,36 @@ React keys must be passed directly to JSX without using spread:
|
|
|
244
244
|
return o();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
|
-
var
|
|
247
|
+
var Z, Q = {}, K = h["react-stack-bottom-frame"].bind(
|
|
248
248
|
h,
|
|
249
249
|
i
|
|
250
|
-
)(),
|
|
251
|
-
|
|
252
|
-
var
|
|
250
|
+
)(), ie = G(n(i)), oe = {};
|
|
251
|
+
ce.Fragment = p, ce.jsx = function(o, g, R, j, X) {
|
|
252
|
+
var U = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
253
253
|
return l(
|
|
254
254
|
o,
|
|
255
255
|
g,
|
|
256
256
|
R,
|
|
257
257
|
!1,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
258
|
+
j,
|
|
259
|
+
X,
|
|
260
|
+
U ? Error("react-stack-top-frame") : K,
|
|
261
|
+
U ? G(n(o)) : ie
|
|
262
262
|
);
|
|
263
|
-
},
|
|
264
|
-
var
|
|
263
|
+
}, ce.jsxs = function(o, g, R, j, X) {
|
|
264
|
+
var U = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
265
265
|
return l(
|
|
266
266
|
o,
|
|
267
267
|
g,
|
|
268
268
|
R,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
270
|
+
j,
|
|
271
|
+
X,
|
|
272
|
+
U ? Error("react-stack-top-frame") : K,
|
|
273
|
+
U ? G(n(o)) : ie
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
|
-
}()),
|
|
276
|
+
}()), ce;
|
|
277
277
|
}
|
|
278
278
|
var We;
|
|
279
279
|
function xt() {
|
|
@@ -331,12 +331,12 @@ var Pt = /* @__PURE__ */ function() {
|
|
|
331
331
|
}, e;
|
|
332
332
|
}(), N = "-ms-", we = "-moz-", k = "-webkit-", rt = "comm", Ne = "rule", Fe = "decl", Et = "@import", nt = "@keyframes", _t = "@layer", St = Math.abs, ke = String.fromCharCode, Rt = Object.assign;
|
|
333
333
|
function At(e, t) {
|
|
334
|
-
return
|
|
334
|
+
return $(e, 0) ^ 45 ? (((t << 2 ^ $(e, 0)) << 2 ^ $(e, 1)) << 2 ^ $(e, 2)) << 2 ^ $(e, 3) : 0;
|
|
335
335
|
}
|
|
336
336
|
function at(e) {
|
|
337
337
|
return e.trim();
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function Tt(e, t) {
|
|
340
340
|
return (e = t.exec(e)) ? e[0] : e;
|
|
341
341
|
}
|
|
342
342
|
function P(e, t, r) {
|
|
@@ -345,13 +345,13 @@ function P(e, t, r) {
|
|
|
345
345
|
function $e(e, t) {
|
|
346
346
|
return e.indexOf(t);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function $(e, t) {
|
|
349
349
|
return e.charCodeAt(t) | 0;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function ue(e, t, r) {
|
|
352
352
|
return e.slice(t, r);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function W(e) {
|
|
355
355
|
return e.length;
|
|
356
356
|
}
|
|
357
357
|
function Ve(e) {
|
|
@@ -360,35 +360,35 @@ function Ve(e) {
|
|
|
360
360
|
function me(e, t) {
|
|
361
361
|
return t.push(e), e;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Ct(e, t) {
|
|
364
364
|
return e.map(t).join("");
|
|
365
365
|
}
|
|
366
|
-
var Pe = 1,
|
|
366
|
+
var Pe = 1, re = 1, it = 0, B = 0, C = 0, ae = "";
|
|
367
367
|
function Ee(e, t, r, n, a, i, s) {
|
|
368
|
-
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Pe, column:
|
|
368
|
+
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Pe, column: re, length: s, return: "" };
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function le(e, t) {
|
|
371
371
|
return Rt(Ee("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
372
372
|
}
|
|
373
373
|
function Ot() {
|
|
374
|
-
return
|
|
374
|
+
return C;
|
|
375
375
|
}
|
|
376
376
|
function It() {
|
|
377
|
-
return
|
|
377
|
+
return C = B > 0 ? $(ae, --B) : 0, re--, C === 10 && (re = 1, Pe--), C;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
379
|
+
function M() {
|
|
380
|
+
return C = B < it ? $(ae, B++) : 0, re++, C === 10 && (re = 1, Pe++), C;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
return
|
|
382
|
+
function q() {
|
|
383
|
+
return $(ae, B);
|
|
384
384
|
}
|
|
385
385
|
function ge() {
|
|
386
|
-
return
|
|
386
|
+
return B;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
return
|
|
388
|
+
function pe(e, t) {
|
|
389
|
+
return ue(ae, e, t);
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function de(e) {
|
|
392
392
|
switch (e) {
|
|
393
393
|
// \0 \t \n \r \s whitespace token
|
|
394
394
|
case 0:
|
|
@@ -427,34 +427,34 @@ function le(e) {
|
|
|
427
427
|
return 0;
|
|
428
428
|
}
|
|
429
429
|
function ot(e) {
|
|
430
|
-
return Pe =
|
|
430
|
+
return Pe = re = 1, it = W(ae = e), B = 0, [];
|
|
431
431
|
}
|
|
432
432
|
function st(e) {
|
|
433
|
-
return
|
|
433
|
+
return ae = "", e;
|
|
434
434
|
}
|
|
435
435
|
function ve(e) {
|
|
436
|
-
return at(
|
|
436
|
+
return at(pe(B - 1, je(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
437
437
|
}
|
|
438
438
|
function $t(e) {
|
|
439
|
-
for (; (
|
|
440
|
-
|
|
441
|
-
return
|
|
439
|
+
for (; (C = q()) && C < 33; )
|
|
440
|
+
M();
|
|
441
|
+
return de(e) > 2 || de(C) > 3 ? "" : " ";
|
|
442
442
|
}
|
|
443
443
|
function jt(e, t) {
|
|
444
|
-
for (; --t &&
|
|
444
|
+
for (; --t && M() && !(C < 48 || C > 102 || C > 57 && C < 65 || C > 70 && C < 97); )
|
|
445
445
|
;
|
|
446
|
-
return
|
|
446
|
+
return pe(e, ge() + (t < 6 && q() == 32 && M() == 32));
|
|
447
447
|
}
|
|
448
448
|
function je(e) {
|
|
449
|
-
for (;
|
|
450
|
-
switch (
|
|
449
|
+
for (; M(); )
|
|
450
|
+
switch (C) {
|
|
451
451
|
// ] ) " '
|
|
452
452
|
case e:
|
|
453
|
-
return
|
|
453
|
+
return B;
|
|
454
454
|
// " '
|
|
455
455
|
case 34:
|
|
456
456
|
case 39:
|
|
457
|
-
e !== 34 && e !== 39 && je(
|
|
457
|
+
e !== 34 && e !== 39 && je(C);
|
|
458
458
|
break;
|
|
459
459
|
// (
|
|
460
460
|
case 40:
|
|
@@ -462,31 +462,31 @@ function je(e) {
|
|
|
462
462
|
break;
|
|
463
463
|
// \
|
|
464
464
|
case 92:
|
|
465
|
-
|
|
465
|
+
M();
|
|
466
466
|
break;
|
|
467
467
|
}
|
|
468
|
-
return
|
|
468
|
+
return B;
|
|
469
469
|
}
|
|
470
470
|
function Lt(e, t) {
|
|
471
|
-
for (;
|
|
472
|
-
if (e +
|
|
471
|
+
for (; M() && e + C !== 57; )
|
|
472
|
+
if (e + C === 84 && q() === 47)
|
|
473
473
|
break;
|
|
474
|
-
return "/*" +
|
|
474
|
+
return "/*" + pe(t, B - 1) + "*" + ke(e === 47 ? e : M());
|
|
475
475
|
}
|
|
476
476
|
function Nt(e) {
|
|
477
|
-
for (; !
|
|
478
|
-
|
|
479
|
-
return
|
|
477
|
+
for (; !de(q()); )
|
|
478
|
+
M();
|
|
479
|
+
return pe(e, B);
|
|
480
480
|
}
|
|
481
481
|
function Ft(e) {
|
|
482
482
|
return st(be("", null, null, null, [""], e = ot(e), 0, [0], e));
|
|
483
483
|
}
|
|
484
484
|
function be(e, t, r, n, a, i, s, c, d) {
|
|
485
485
|
for (var m = 0, l = 0, u = s, h = 0, w = 0, x = 0, p = 1, y = 1, v = 1, b = 0, _ = "", O = a, E = i, S = n, f = _; y; )
|
|
486
|
-
switch (x = b, b =
|
|
486
|
+
switch (x = b, b = M()) {
|
|
487
487
|
// (
|
|
488
488
|
case 40:
|
|
489
|
-
if (x != 108 &&
|
|
489
|
+
if (x != 108 && $(f, u - 1) == 58) {
|
|
490
490
|
$e(f += P(ve(b), "&", "&\f"), "&\f") != -1 && (v = -1);
|
|
491
491
|
break;
|
|
492
492
|
}
|
|
@@ -509,10 +509,10 @@ function be(e, t, r, n, a, i, s, c, d) {
|
|
|
509
509
|
continue;
|
|
510
510
|
// /
|
|
511
511
|
case 47:
|
|
512
|
-
switch (
|
|
512
|
+
switch (q()) {
|
|
513
513
|
case 42:
|
|
514
514
|
case 47:
|
|
515
|
-
me(Vt(Lt(
|
|
515
|
+
me(Vt(Lt(M(), ge()), t, r), d);
|
|
516
516
|
break;
|
|
517
517
|
default:
|
|
518
518
|
f += "/";
|
|
@@ -520,7 +520,7 @@ function be(e, t, r, n, a, i, s, c, d) {
|
|
|
520
520
|
break;
|
|
521
521
|
// {
|
|
522
522
|
case 123 * p:
|
|
523
|
-
c[m++] =
|
|
523
|
+
c[m++] = W(f) * v;
|
|
524
524
|
// } ; \0
|
|
525
525
|
case 125 * p:
|
|
526
526
|
case 59:
|
|
@@ -532,7 +532,7 @@ function be(e, t, r, n, a, i, s, c, d) {
|
|
|
532
532
|
y = 0;
|
|
533
533
|
// ;
|
|
534
534
|
case 59 + l:
|
|
535
|
-
v == -1 && (f = P(f, /\f/g, "")), w > 0 &&
|
|
535
|
+
v == -1 && (f = P(f, /\f/g, "")), w > 0 && W(f) - u && me(w > 32 ? qe(f + ";", n, r, u - 1) : qe(P(f, " ", "") + ";", n, r, u - 2), d);
|
|
536
536
|
break;
|
|
537
537
|
// @ ;
|
|
538
538
|
case 59:
|
|
@@ -543,7 +543,7 @@ function be(e, t, r, n, a, i, s, c, d) {
|
|
|
543
543
|
if (l === 0)
|
|
544
544
|
be(f, t, S, S, O, i, u, c, E);
|
|
545
545
|
else
|
|
546
|
-
switch (h === 99 &&
|
|
546
|
+
switch (h === 99 && $(f, 3) === 110 ? 100 : h) {
|
|
547
547
|
// d l m s
|
|
548
548
|
case 100:
|
|
549
549
|
case 108:
|
|
@@ -559,7 +559,7 @@ function be(e, t, r, n, a, i, s, c, d) {
|
|
|
559
559
|
break;
|
|
560
560
|
// :
|
|
561
561
|
case 58:
|
|
562
|
-
u = 1 +
|
|
562
|
+
u = 1 + W(f), w = x;
|
|
563
563
|
default:
|
|
564
564
|
if (p < 1) {
|
|
565
565
|
if (b == 123)
|
|
@@ -574,32 +574,32 @@ function be(e, t, r, n, a, i, s, c, d) {
|
|
|
574
574
|
break;
|
|
575
575
|
// ,
|
|
576
576
|
case 44:
|
|
577
|
-
c[m++] = (
|
|
577
|
+
c[m++] = (W(f) - 1) * v, v = 1;
|
|
578
578
|
break;
|
|
579
579
|
// @
|
|
580
580
|
case 64:
|
|
581
|
-
|
|
581
|
+
q() === 45 && (f += ve(M())), h = q(), l = u = W(_ = f += Nt(ge())), b++;
|
|
582
582
|
break;
|
|
583
583
|
// -
|
|
584
584
|
case 45:
|
|
585
|
-
x === 45 &&
|
|
585
|
+
x === 45 && W(f) == 2 && (p = 0);
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
return i;
|
|
589
589
|
}
|
|
590
590
|
function Ye(e, t, r, n, a, i, s, c, d, m, l) {
|
|
591
591
|
for (var u = a - 1, h = a === 0 ? i : [""], w = Ve(h), x = 0, p = 0, y = 0; x < n; ++x)
|
|
592
|
-
for (var v = 0, b =
|
|
592
|
+
for (var v = 0, b = ue(e, u + 1, u = St(p = s[x])), _ = e; v < w; ++v)
|
|
593
593
|
(_ = at(p > 0 ? h[v] + " " + b : P(b, /&\f/g, h[v]))) && (d[y++] = _);
|
|
594
594
|
return Ee(e, t, r, a === 0 ? Ne : c, d, m, l);
|
|
595
595
|
}
|
|
596
596
|
function Vt(e, t, r) {
|
|
597
|
-
return Ee(e, t, r, rt, ke(Ot()),
|
|
597
|
+
return Ee(e, t, r, rt, ke(Ot()), ue(e, 2, -2), 0);
|
|
598
598
|
}
|
|
599
599
|
function qe(e, t, r, n) {
|
|
600
|
-
return Ee(e, t, r, Fe,
|
|
600
|
+
return Ee(e, t, r, Fe, ue(e, 0, n), ue(e, n + 1, -1), n);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function te(e, t) {
|
|
603
603
|
for (var r = "", n = Ve(e), a = 0; a < n; a++)
|
|
604
604
|
r += t(e[a], a, e, t) || "";
|
|
605
605
|
return r;
|
|
@@ -614,11 +614,11 @@ function Bt(e, t, r, n) {
|
|
|
614
614
|
case rt:
|
|
615
615
|
return "";
|
|
616
616
|
case nt:
|
|
617
|
-
return e.return = e.value + "{" +
|
|
617
|
+
return e.return = e.value + "{" + te(e.children, n) + "}";
|
|
618
618
|
case Ne:
|
|
619
619
|
e.value = e.props.join(",");
|
|
620
620
|
}
|
|
621
|
-
return
|
|
621
|
+
return W(r = te(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
622
622
|
}
|
|
623
623
|
function Mt(e) {
|
|
624
624
|
var t = Ve(e);
|
|
@@ -640,29 +640,29 @@ function ct(e) {
|
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
642
|
var Dt = function(t, r, n) {
|
|
643
|
-
for (var a = 0, i = 0; a = i, i =
|
|
644
|
-
|
|
645
|
-
return
|
|
643
|
+
for (var a = 0, i = 0; a = i, i = q(), a === 38 && i === 12 && (r[n] = 1), !de(i); )
|
|
644
|
+
M();
|
|
645
|
+
return pe(t, B);
|
|
646
646
|
}, Ut = function(t, r) {
|
|
647
647
|
var n = -1, a = 44;
|
|
648
648
|
do
|
|
649
|
-
switch (
|
|
649
|
+
switch (de(a)) {
|
|
650
650
|
case 0:
|
|
651
|
-
a === 38 &&
|
|
651
|
+
a === 38 && q() === 12 && (r[n] = 1), t[n] += Dt(B - 1, r, n);
|
|
652
652
|
break;
|
|
653
653
|
case 2:
|
|
654
654
|
t[n] += ve(a);
|
|
655
655
|
break;
|
|
656
656
|
case 4:
|
|
657
657
|
if (a === 44) {
|
|
658
|
-
t[++n] =
|
|
658
|
+
t[++n] = q() === 58 ? "&\f" : "", r[n] = t[n].length;
|
|
659
659
|
break;
|
|
660
660
|
}
|
|
661
661
|
// fallthrough
|
|
662
662
|
default:
|
|
663
663
|
t[n] += ke(a);
|
|
664
664
|
}
|
|
665
|
-
while (a =
|
|
665
|
+
while (a = M());
|
|
666
666
|
return t;
|
|
667
667
|
}, Wt = function(t, r) {
|
|
668
668
|
return st(Ut(ot(t), r));
|
|
@@ -786,13 +786,13 @@ function lt(e, t) {
|
|
|
786
786
|
case 5789:
|
|
787
787
|
case 5021:
|
|
788
788
|
case 4765:
|
|
789
|
-
if (
|
|
789
|
+
if (W(e) - 1 - t > 6) switch ($(e, t + 1)) {
|
|
790
790
|
// (m)ax-content, (m)in-content
|
|
791
791
|
case 109:
|
|
792
|
-
if (
|
|
792
|
+
if ($(e, t + 4) !== 45) break;
|
|
793
793
|
// (f)ill-available, (f)it-content
|
|
794
794
|
case 102:
|
|
795
|
-
return P(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + we + (
|
|
795
|
+
return P(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + we + ($(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
796
796
|
// (s)tretch
|
|
797
797
|
case 115:
|
|
798
798
|
return ~$e(e, "stretch") ? lt(P(e, "stretch", "fill-available"), t) + e : e;
|
|
@@ -800,21 +800,21 @@ function lt(e, t) {
|
|
|
800
800
|
break;
|
|
801
801
|
// position: sticky
|
|
802
802
|
case 4949:
|
|
803
|
-
if (
|
|
803
|
+
if ($(e, t + 1) !== 115) break;
|
|
804
804
|
// display: (flex|inline-flex)
|
|
805
805
|
case 6444:
|
|
806
|
-
switch (
|
|
806
|
+
switch ($(e, W(e) - 3 - (~$e(e, "!important") && 10))) {
|
|
807
807
|
// stic(k)y
|
|
808
808
|
case 107:
|
|
809
809
|
return P(e, ":", ":" + k) + e;
|
|
810
810
|
// (inline-)?fl(e)x
|
|
811
811
|
case 101:
|
|
812
|
-
return P(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + k + (
|
|
812
|
+
return P(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + k + ($(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + N + "$2box$3") + e;
|
|
813
813
|
}
|
|
814
814
|
break;
|
|
815
815
|
// writing-mode
|
|
816
816
|
case 5936:
|
|
817
|
-
switch (
|
|
817
|
+
switch ($(e, t + 11)) {
|
|
818
818
|
// vertical-l(r)
|
|
819
819
|
case 114:
|
|
820
820
|
return k + e + N + P(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
@@ -835,25 +835,25 @@ var Ht = function(t, r, n, a) {
|
|
|
835
835
|
t.return = lt(t.value, t.length);
|
|
836
836
|
break;
|
|
837
837
|
case nt:
|
|
838
|
-
return
|
|
838
|
+
return te([le(t, {
|
|
839
839
|
value: P(t.value, "@", "@" + k)
|
|
840
840
|
})], a);
|
|
841
841
|
case Ne:
|
|
842
|
-
if (t.length) return
|
|
843
|
-
switch (
|
|
842
|
+
if (t.length) return Ct(t.props, function(i) {
|
|
843
|
+
switch (Tt(i, /(::plac\w+|:read-\w+)/)) {
|
|
844
844
|
// :read-(only|write)
|
|
845
845
|
case ":read-only":
|
|
846
846
|
case ":read-write":
|
|
847
|
-
return
|
|
847
|
+
return te([le(t, {
|
|
848
848
|
props: [P(i, /:(read-\w+)/, ":" + we + "$1")]
|
|
849
849
|
})], a);
|
|
850
850
|
// :placeholder
|
|
851
851
|
case "::placeholder":
|
|
852
|
-
return
|
|
852
|
+
return te([le(t, {
|
|
853
853
|
props: [P(i, /:(plac\w+)/, ":" + k + "input-$1")]
|
|
854
|
-
}),
|
|
854
|
+
}), le(t, {
|
|
855
855
|
props: [P(i, /:(plac\w+)/, ":" + we + "$1")]
|
|
856
|
-
}),
|
|
856
|
+
}), le(t, {
|
|
857
857
|
props: [P(i, /:(plac\w+)/, N + "input-$1")]
|
|
858
858
|
})], a);
|
|
859
859
|
}
|
|
@@ -885,7 +885,7 @@ var Ht = function(t, r, n, a) {
|
|
|
885
885
|
var l, u = [Bt, zt(function(p) {
|
|
886
886
|
l.insert(p);
|
|
887
887
|
})], h = Mt(m.concat(a, u)), w = function(y) {
|
|
888
|
-
return
|
|
888
|
+
return te(Ft(y), h);
|
|
889
889
|
};
|
|
890
890
|
d = function(y, v, b, _) {
|
|
891
891
|
l = b, w(y ? y + "{" + v.styles + "}" : v.styles), _ && (x.inserted[v.name] = !0);
|
|
@@ -1016,16 +1016,16 @@ var er = {
|
|
|
1016
1016
|
case "animationName":
|
|
1017
1017
|
if (typeof r == "string")
|
|
1018
1018
|
return r.replace(rr, function(n, a, i) {
|
|
1019
|
-
return
|
|
1019
|
+
return Y = {
|
|
1020
1020
|
name: a,
|
|
1021
1021
|
styles: i,
|
|
1022
|
-
next:
|
|
1022
|
+
next: Y
|
|
1023
1023
|
}, a;
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
1026
|
return er[t] !== 1 && !dt(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
1027
1027
|
};
|
|
1028
|
-
function
|
|
1028
|
+
function fe(e, t, r) {
|
|
1029
1029
|
if (r == null)
|
|
1030
1030
|
return "";
|
|
1031
1031
|
var n = r;
|
|
@@ -1037,20 +1037,20 @@ function ue(e, t, r) {
|
|
|
1037
1037
|
case "object": {
|
|
1038
1038
|
var a = r;
|
|
1039
1039
|
if (a.anim === 1)
|
|
1040
|
-
return
|
|
1040
|
+
return Y = {
|
|
1041
1041
|
name: a.name,
|
|
1042
1042
|
styles: a.styles,
|
|
1043
|
-
next:
|
|
1043
|
+
next: Y
|
|
1044
1044
|
}, a.name;
|
|
1045
1045
|
var i = r;
|
|
1046
1046
|
if (i.styles !== void 0) {
|
|
1047
1047
|
var s = i.next;
|
|
1048
1048
|
if (s !== void 0)
|
|
1049
1049
|
for (; s !== void 0; )
|
|
1050
|
-
|
|
1050
|
+
Y = {
|
|
1051
1051
|
name: s.name,
|
|
1052
1052
|
styles: s.styles,
|
|
1053
|
-
next:
|
|
1053
|
+
next: Y
|
|
1054
1054
|
}, s = s.next;
|
|
1055
1055
|
var c = i.styles + ";";
|
|
1056
1056
|
return c;
|
|
@@ -1059,8 +1059,8 @@ function ue(e, t, r) {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
case "function": {
|
|
1061
1061
|
if (e !== void 0) {
|
|
1062
|
-
var d =
|
|
1063
|
-
return
|
|
1062
|
+
var d = Y, m = r(e);
|
|
1063
|
+
return Y = d, fe(e, t, m);
|
|
1064
1064
|
}
|
|
1065
1065
|
break;
|
|
1066
1066
|
}
|
|
@@ -1075,7 +1075,7 @@ function nr(e, t, r) {
|
|
|
1075
1075
|
var n = "";
|
|
1076
1076
|
if (Array.isArray(r))
|
|
1077
1077
|
for (var a = 0; a < r.length; a++)
|
|
1078
|
-
n +=
|
|
1078
|
+
n += fe(e, t, r[a]) + ";";
|
|
1079
1079
|
else
|
|
1080
1080
|
for (var i in r) {
|
|
1081
1081
|
var s = r[i];
|
|
@@ -1086,7 +1086,7 @@ function nr(e, t, r) {
|
|
|
1086
1086
|
for (var d = 0; d < s.length; d++)
|
|
1087
1087
|
Ge(s[d]) && (n += Ae(i) + ":" + Xe(i, s[d]) + ";");
|
|
1088
1088
|
else {
|
|
1089
|
-
var m =
|
|
1089
|
+
var m = fe(e, t, s);
|
|
1090
1090
|
switch (i) {
|
|
1091
1091
|
case "animation":
|
|
1092
1092
|
case "animationName": {
|
|
@@ -1100,21 +1100,21 @@ function nr(e, t, r) {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
return n;
|
|
1102
1102
|
}
|
|
1103
|
-
var Ke = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
1103
|
+
var Ke = /label:\s*([^\s;{]+)\s*(;|$)/g, Y;
|
|
1104
1104
|
function ar(e, t, r) {
|
|
1105
1105
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1106
1106
|
return e[0];
|
|
1107
1107
|
var n = !0, a = "";
|
|
1108
|
-
|
|
1108
|
+
Y = void 0;
|
|
1109
1109
|
var i = e[0];
|
|
1110
1110
|
if (i == null || i.raw === void 0)
|
|
1111
|
-
n = !1, a +=
|
|
1111
|
+
n = !1, a += fe(r, t, i);
|
|
1112
1112
|
else {
|
|
1113
1113
|
var s = i;
|
|
1114
1114
|
a += s[0];
|
|
1115
1115
|
}
|
|
1116
1116
|
for (var c = 1; c < e.length; c++)
|
|
1117
|
-
if (a +=
|
|
1117
|
+
if (a += fe(r, t, e[c]), n) {
|
|
1118
1118
|
var d = i;
|
|
1119
1119
|
a += d[c];
|
|
1120
1120
|
}
|
|
@@ -1125,12 +1125,12 @@ function ar(e, t, r) {
|
|
|
1125
1125
|
return {
|
|
1126
1126
|
name: u,
|
|
1127
1127
|
styles: a,
|
|
1128
|
-
next:
|
|
1128
|
+
next: Y
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
var ir = function(t) {
|
|
1132
1132
|
return t();
|
|
1133
|
-
}, or =
|
|
1133
|
+
}, or = H.useInsertionEffect ? H.useInsertionEffect : !1, sr = or || ir, ft = /* @__PURE__ */ H.createContext(
|
|
1134
1134
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1135
1135
|
// because this module is primarily intended for the browser and node
|
|
1136
1136
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -1147,7 +1147,7 @@ var cr = function(t) {
|
|
|
1147
1147
|
var a = et(ft);
|
|
1148
1148
|
return t(r, a, n);
|
|
1149
1149
|
});
|
|
1150
|
-
}, lr = /* @__PURE__ */
|
|
1150
|
+
}, lr = /* @__PURE__ */ H.createContext({}), ur = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, dr = /* @__PURE__ */ ct(
|
|
1151
1151
|
function(e) {
|
|
1152
1152
|
return ur.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
1153
1153
|
}
|
|
@@ -1193,19 +1193,19 @@ var cr = function(t) {
|
|
|
1193
1193
|
S = {};
|
|
1194
1194
|
for (var f in y)
|
|
1195
1195
|
S[f] = y[f];
|
|
1196
|
-
S.theme =
|
|
1196
|
+
S.theme = H.useContext(lr);
|
|
1197
1197
|
}
|
|
1198
1198
|
typeof y.className == "string" ? O = Jt(v.registered, E, y.className) : y.className != null && (O = y.className + " ");
|
|
1199
|
-
var
|
|
1200
|
-
O += v.key + "-" +
|
|
1201
|
-
var F = m && c === void 0 ? Je(_) : d,
|
|
1199
|
+
var T = ar(u.concat(E), v.registered, S);
|
|
1200
|
+
O += v.key + "-" + T.name, s !== void 0 && (O += " " + s);
|
|
1201
|
+
var F = m && c === void 0 ? Je(_) : d, A = {};
|
|
1202
1202
|
for (var V in y)
|
|
1203
|
-
m && V === "as" || F(V) && (
|
|
1204
|
-
return
|
|
1203
|
+
m && V === "as" || F(V) && (A[V] = y[V]);
|
|
1204
|
+
return A.className = O, b && (A.ref = b), /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement(hr, {
|
|
1205
1205
|
cache: v,
|
|
1206
|
-
serialized:
|
|
1206
|
+
serialized: T,
|
|
1207
1207
|
isStringTag: typeof _ == "string"
|
|
1208
|
-
}), /* @__PURE__ */
|
|
1208
|
+
}), /* @__PURE__ */ H.createElement(_, A));
|
|
1209
1209
|
});
|
|
1210
1210
|
return p.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = a, p.__emotion_styles = u, p.__emotion_forwardProp = c, Object.defineProperty(p, "toString", {
|
|
1211
1211
|
value: function() {
|
|
@@ -1354,11 +1354,11 @@ var cr = function(t) {
|
|
|
1354
1354
|
"svg",
|
|
1355
1355
|
"text",
|
|
1356
1356
|
"tspan"
|
|
1357
|
-
],
|
|
1357
|
+
], ne = mr.bind(null);
|
|
1358
1358
|
yr.forEach(function(e) {
|
|
1359
|
-
|
|
1359
|
+
ne[e] = ne(e);
|
|
1360
1360
|
});
|
|
1361
|
-
const gr =
|
|
1361
|
+
const gr = ne.div`
|
|
1362
1362
|
display: flex;
|
|
1363
1363
|
align-items: center;
|
|
1364
1364
|
justify-content: center;
|
|
@@ -1399,7 +1399,7 @@ const gr = re.div`
|
|
|
1399
1399
|
return "";
|
|
1400
1400
|
}
|
|
1401
1401
|
}}
|
|
1402
|
-
`, Le = ({ type: e, children: t, className: r, icon: n, action: a }) => I.jsxs(gr, { type: e, className: r, children: [n && I.jsx("span", { children: n }), I.jsx("span", { children: t }), a && I.jsx("span", { children: a })] }), Qe =
|
|
1402
|
+
`, Le = ({ type: e, children: t, className: r, icon: n, action: a }) => I.jsxs(gr, { type: e, className: r, children: [n && I.jsx("span", { children: n }), I.jsx("span", { children: t }), a && I.jsx("span", { children: a })] }), Qe = ne.div`
|
|
1403
1403
|
width: ${({ width: e }) => e || "100%"};
|
|
1404
1404
|
height: ${({ height: e }) => e || "100%"};
|
|
1405
1405
|
border-radius: 8px;
|
|
@@ -1409,7 +1409,7 @@ const gr = re.div`
|
|
|
1409
1409
|
|
|
1410
1410
|
/* Hide specific elements inside the player */
|
|
1411
1411
|
${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((t) => `.${t} { display: none !important; }`).join("")}
|
|
1412
|
-
`, vr =
|
|
1412
|
+
`, vr = ne.div`
|
|
1413
1413
|
position: fixed;
|
|
1414
1414
|
top: 0;
|
|
1415
1415
|
left: 0;
|
|
@@ -1421,7 +1421,7 @@ const gr = re.div`
|
|
|
1421
1421
|
align-items: center;
|
|
1422
1422
|
z-index: 1000;
|
|
1423
1423
|
pointer-events: auto;
|
|
1424
|
-
`, br =
|
|
1424
|
+
`, br = ne.div`
|
|
1425
1425
|
position: relative;
|
|
1426
1426
|
width: 100%; /* Default for mobile */
|
|
1427
1427
|
max-width: 100%;
|
|
@@ -1433,8 +1433,8 @@ const gr = re.div`
|
|
|
1433
1433
|
@media (min-width: 768px) {
|
|
1434
1434
|
width: min(70vw, 960px); /* Responsive width for desktop, capped at 960px */
|
|
1435
1435
|
}
|
|
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`, Be = (e, t) => `vp-player-${e || "default"}-${t || ""}`,
|
|
1437
|
-
const [r, n] =
|
|
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`, Be = (e, t) => `vp-player-${e || "default"}-${t || ""}`, Te = /* @__PURE__ */ new Map(), Pr = (e, t) => {
|
|
1437
|
+
const [r, n] = D(!1), [a, i] = D(null);
|
|
1438
1438
|
return xe(() => {
|
|
1439
1439
|
let s = null, c, d = 0;
|
|
1440
1440
|
const m = 3;
|
|
@@ -1446,19 +1446,19 @@ const gr = re.div`
|
|
|
1446
1446
|
i(`Failed to resolve script URL: ${x}`), n(!1);
|
|
1447
1447
|
return;
|
|
1448
1448
|
}
|
|
1449
|
-
if (
|
|
1449
|
+
if (Te.get(l)) {
|
|
1450
1450
|
n(!0), i(null);
|
|
1451
1451
|
return;
|
|
1452
1452
|
}
|
|
1453
1453
|
if (document.querySelector(`script[src="${l}"]`)) {
|
|
1454
|
-
|
|
1454
|
+
Te.set(l, !0), n(!0), i(null);
|
|
1455
1455
|
return;
|
|
1456
1456
|
}
|
|
1457
1457
|
const h = () => {
|
|
1458
1458
|
s = document.createElement("script"), s.src = l, s.async = !0, c = window.setTimeout(() => {
|
|
1459
1459
|
n(!1), i(`Loading script timed out: ${l}`);
|
|
1460
1460
|
}, 1e4), s.onload = () => {
|
|
1461
|
-
clearTimeout(c),
|
|
1461
|
+
clearTimeout(c), Te.set(l, !0), n(!0), i(null);
|
|
1462
1462
|
}, s.onerror = () => {
|
|
1463
1463
|
clearTimeout(c), d++, d < m ? setTimeout(h, 1e3 * d) : (n(!1), i(`Failed to load VP Player script after ${m} attempts: ${l}`));
|
|
1464
1464
|
}, document.body.appendChild(s);
|
|
@@ -1467,8 +1467,8 @@ const gr = re.div`
|
|
|
1467
1467
|
clearTimeout(c), s && document.body.contains(s) && document.body.removeChild(s);
|
|
1468
1468
|
};
|
|
1469
1469
|
}, [e, t]), { isLoaded: r, error: a };
|
|
1470
|
-
}, Er = {}, ye = /* @__PURE__ */ new Map(), _r = 15e3,
|
|
1471
|
-
const [i, s] =
|
|
1470
|
+
}, Er = {}, ye = /* @__PURE__ */ new Map(), _r = 15e3, Ce = 5, Sr = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
|
|
1471
|
+
const [i, s] = D(null), [c, d] = D(null), [m, l] = D(!1), [u, h] = D(null), w = a || (typeof Er < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
|
|
1472
1472
|
return xe(() => {
|
|
1473
1473
|
const x = t ? `video:${t}` : r ? `playlist:${r}` : null;
|
|
1474
1474
|
if (!e || n || !t && !r) {
|
|
@@ -1489,7 +1489,7 @@ const gr = re.div`
|
|
|
1489
1489
|
var _, O;
|
|
1490
1490
|
l(!0), h(null);
|
|
1491
1491
|
let b = 0;
|
|
1492
|
-
for (; b <
|
|
1492
|
+
for (; b < Ce; )
|
|
1493
1493
|
try {
|
|
1494
1494
|
const E = t && !r ? xr(e, t) : wr(e, r), S = setTimeout(() => p.abort(), _r), f = await fetch(E, {
|
|
1495
1495
|
method: "GET",
|
|
@@ -1498,16 +1498,16 @@ const gr = re.div`
|
|
|
1498
1498
|
});
|
|
1499
1499
|
if (clearTimeout(S), !f.ok)
|
|
1500
1500
|
throw new Error(`Fetch failed with status ${f.status}`);
|
|
1501
|
-
const
|
|
1501
|
+
const T = await f.json();
|
|
1502
1502
|
if (t && !r) {
|
|
1503
|
-
const F = (O = (_ =
|
|
1503
|
+
const F = (O = (_ = T.result) == null ? void 0 : _.items) == null ? void 0 : O.find((A) => A.mediaId === t);
|
|
1504
1504
|
if (!(F != null && F.playbackUrl))
|
|
1505
1505
|
throw new Error("Invalid video data");
|
|
1506
1506
|
s(F.playbackUrl), d(null), x && ye.set(x, { url: F.playbackUrl, playlist: null });
|
|
1507
1507
|
} else {
|
|
1508
|
-
if (!Array.isArray(
|
|
1508
|
+
if (!Array.isArray(T.result))
|
|
1509
1509
|
throw new Error("Invalid playlist format");
|
|
1510
|
-
d(
|
|
1510
|
+
d(T.result), s(null), x && ye.set(x, { url: null, playlist: T.result });
|
|
1511
1511
|
}
|
|
1512
1512
|
break;
|
|
1513
1513
|
} catch (E) {
|
|
@@ -1515,9 +1515,9 @@ const gr = re.div`
|
|
|
1515
1515
|
h("Request timed out");
|
|
1516
1516
|
break;
|
|
1517
1517
|
}
|
|
1518
|
-
if (b++, b >=
|
|
1518
|
+
if (b++, b >= Ce) {
|
|
1519
1519
|
const S = E instanceof Error ? E.message : String(E);
|
|
1520
|
-
h(`Failed after ${
|
|
1520
|
+
h(`Failed after ${Ce} attempts: ${S}`);
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
l(!1);
|
|
@@ -1654,25 +1654,25 @@ const gr = re.div`
|
|
|
1654
1654
|
};
|
|
1655
1655
|
}
|
|
1656
1656
|
throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.");
|
|
1657
|
-
},
|
|
1657
|
+
}, Tr = (e) => {
|
|
1658
1658
|
if (!e)
|
|
1659
1659
|
return;
|
|
1660
1660
|
const t = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, r = e.match(t);
|
|
1661
1661
|
return r ? r[2] : void 0;
|
|
1662
|
-
},
|
|
1663
|
-
const l = Me(null), u = Me(null), { isLoaded: h, error: w } = Pr(r, s), x = t ||
|
|
1662
|
+
}, Cr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: d, isReels: m = !1 }) => {
|
|
1663
|
+
const l = Me(null), u = Me(null), { isLoaded: h, error: w } = Pr(r, s), x = t || Tr(s), [p, y] = D(null), { fetchedPlaybackUrl: v, fetchedPlaylist: b, isLoading: _, error: O } = Sr({
|
|
1664
1664
|
projectId: a,
|
|
1665
1665
|
videoId: x,
|
|
1666
1666
|
playlistId: i,
|
|
1667
1667
|
videoUrl: n,
|
|
1668
1668
|
apiKey: d
|
|
1669
1669
|
}), E = Be(e, x), S = tt(() => {
|
|
1670
|
-
const f = c.config || {},
|
|
1670
|
+
const f = c.config || {}, T = m && !f.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : f.size || { sizeType: "FIXED", width: "100%" };
|
|
1671
1671
|
return {
|
|
1672
1672
|
...c,
|
|
1673
1673
|
config: {
|
|
1674
1674
|
...f,
|
|
1675
|
-
size:
|
|
1675
|
+
size: T
|
|
1676
1676
|
}
|
|
1677
1677
|
};
|
|
1678
1678
|
}, [c, m]);
|
|
@@ -1686,47 +1686,48 @@ const gr = re.div`
|
|
|
1686
1686
|
let f = !0;
|
|
1687
1687
|
const F = setTimeout(async () => {
|
|
1688
1688
|
try {
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1689
|
+
const A = s == null ? void 0 : s.includes("vertical-player");
|
|
1690
|
+
if (document.querySelectorAll('[id*="player"]').forEach((Q) => {
|
|
1691
|
+
var ie, oe;
|
|
1692
|
+
const K = Q.id;
|
|
1693
|
+
if (K !== E)
|
|
1694
|
+
try {
|
|
1695
|
+
const o = A ? (ie = window.vpVerticalPlayer) == null ? void 0 : ie.call(window, K) : (oe = window.vpPlayer) == null ? void 0 : oe.call(window, K);
|
|
1696
|
+
o != null && o.destroy && o.destroy();
|
|
1697
|
+
} catch (o) {
|
|
1698
|
+
console.warn(`Failed to destroy existing player ${K}:`, o);
|
|
1699
|
+
}
|
|
1700
|
+
}), await new Promise((Q) => setTimeout(Q, 100)), !f || !l.current)
|
|
1699
1701
|
return;
|
|
1700
1702
|
if (!document.getElementById(E)) {
|
|
1701
1703
|
y("DOM element not found after cleanup.");
|
|
1702
1704
|
return;
|
|
1703
1705
|
}
|
|
1704
|
-
|
|
1705
|
-
if (!z.vpPlayer && !z.vpVerticalPlayer) {
|
|
1706
|
+
if (!window.vpPlayer && !window.vpVerticalPlayer) {
|
|
1706
1707
|
y("VP Player script not loaded.");
|
|
1707
1708
|
return;
|
|
1708
1709
|
}
|
|
1709
|
-
const
|
|
1710
|
-
if (!
|
|
1711
|
-
y(`VP ${
|
|
1710
|
+
const z = A ? window.vpVerticalPlayer : window.vpPlayer;
|
|
1711
|
+
if (!z) {
|
|
1712
|
+
y(`VP ${A ? "Vertical " : ""}Player script not loaded.`);
|
|
1712
1713
|
return;
|
|
1713
1714
|
}
|
|
1714
|
-
const
|
|
1715
|
+
const G = Ar({
|
|
1715
1716
|
videoUrl: n,
|
|
1716
1717
|
fetchedPlaybackUrl: v,
|
|
1717
1718
|
fetchedPlaylist: b,
|
|
1718
1719
|
projectId: a,
|
|
1719
1720
|
config: S
|
|
1720
|
-
}),
|
|
1721
|
-
if (!
|
|
1722
|
-
y(`Failed to create VP ${
|
|
1721
|
+
}), Z = z(E);
|
|
1722
|
+
if (!Z) {
|
|
1723
|
+
y(`Failed to create VP ${A ? "Vertical " : ""}Player instance.`);
|
|
1723
1724
|
return;
|
|
1724
1725
|
}
|
|
1725
|
-
f && l.current && (
|
|
1726
|
-
} catch (
|
|
1726
|
+
f && l.current && (Z.setup(G), u.current = Z, y(null));
|
|
1727
|
+
} catch (A) {
|
|
1727
1728
|
if (f) {
|
|
1728
|
-
const V =
|
|
1729
|
-
y(V), console.error("VP Player initialization error:",
|
|
1729
|
+
const V = A instanceof Error ? A.message : String(A);
|
|
1730
|
+
y(V), console.error("VP Player initialization error:", A);
|
|
1730
1731
|
}
|
|
1731
1732
|
}
|
|
1732
1733
|
}, 150);
|
|
@@ -1748,8 +1749,8 @@ const gr = re.div`
|
|
|
1748
1749
|
if (u.current) {
|
|
1749
1750
|
try {
|
|
1750
1751
|
u.current.destroy && u.current.destroy();
|
|
1751
|
-
} catch (
|
|
1752
|
-
console.warn(`Failed to destroy player ${E}:`,
|
|
1752
|
+
} catch (T) {
|
|
1753
|
+
console.warn(`Failed to destroy player ${E}:`, T);
|
|
1753
1754
|
}
|
|
1754
1755
|
u.current = null;
|
|
1755
1756
|
}
|
|
@@ -1763,8 +1764,8 @@ const gr = re.div`
|
|
|
1763
1764
|
error: O || p || w
|
|
1764
1765
|
};
|
|
1765
1766
|
}, Or = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: d, isReels: m = !1, hiddenClasses: l = [], onClose: u, className: h }) => {
|
|
1766
|
-
var F,
|
|
1767
|
-
const { playerRef: w, playerInstanceRef: x, isScriptLoaded: p, isLoading: y, error: v } =
|
|
1767
|
+
var F, A, V, J;
|
|
1768
|
+
const { playerRef: w, playerInstanceRef: x, isScriptLoaded: p, isLoading: y, error: v } = Cr({
|
|
1768
1769
|
playerId: e,
|
|
1769
1770
|
videoId: t,
|
|
1770
1771
|
version: r,
|
|
@@ -1775,13 +1776,13 @@ const gr = re.div`
|
|
|
1775
1776
|
config: c,
|
|
1776
1777
|
apiKey: d,
|
|
1777
1778
|
isReels: m
|
|
1778
|
-
}), [b, _] =
|
|
1779
|
-
var z,
|
|
1780
|
-
_(!1), (
|
|
1781
|
-
}, S = (
|
|
1782
|
-
return v ? I.jsxs(Le, { type: "error", children: ["An error occurred: ", v] }) : y || !p ? I.jsx(Le, { type: "loading", children: "Loading..." }) : I.jsxs(I.Fragment, { children: [m && !b ? I.jsx("div", { onClick: O }) : null, !m && I.jsx("div", { children: I.jsx(Qe, { id:
|
|
1779
|
+
}), [b, _] = D(!0), O = () => m && _(!0), E = () => {
|
|
1780
|
+
var z, G;
|
|
1781
|
+
_(!1), (G = (z = x.current) == null ? void 0 : z.play) == null || G.call(z), u == null || u();
|
|
1782
|
+
}, S = (A = (F = c == null ? void 0 : c.config) == null ? void 0 : F.size) != null && A.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, f = (J = (V = c == null ? void 0 : c.config) == null ? void 0 : V.size) != null && J.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, T = Be(e, t);
|
|
1783
|
+
return v ? I.jsxs(Le, { type: "error", children: ["An error occurred: ", v] }) : y || !p ? I.jsx(Le, { type: "loading", children: "Loading..." }) : I.jsxs(I.Fragment, { children: [m && !b ? I.jsx("div", { onClick: O }) : null, !m && I.jsx("div", { children: I.jsx(Qe, { id: T, ref: w, width: S || "100%", height: f || "auto", $hiddenClasses: l, className: h }) }, T), m && b && I.jsx(vr, { onClick: E, className: h, children: I.jsx(br, { className: h, onClick: (z) => z.stopPropagation(), children: I.jsx("div", { children: I.jsx(Qe, { id: T, ref: w, width: "100%", height: "auto", $hiddenClasses: l, className: h }) }, T) }) })] });
|
|
1783
1784
|
}, pt = gt(void 0), $r = ({ children: e }) => {
|
|
1784
|
-
const [t, r] =
|
|
1785
|
+
const [t, r] = D(!1), [n, a] = D(null), [i, s] = D(null), c = ze((l) => {
|
|
1785
1786
|
try {
|
|
1786
1787
|
const u = Be(l.playerId, l.videoId);
|
|
1787
1788
|
a({ ...l, playerId: u }), r(!0), s(null);
|
|
@@ -1893,10 +1894,10 @@ export {
|
|
|
1893
1894
|
Fr as baseConfigWithAutoplay,
|
|
1894
1895
|
Ar as buildVPPlayerConfig,
|
|
1895
1896
|
Lr as defaultVPPlayerConfig,
|
|
1896
|
-
|
|
1897
|
+
Tr as extractVideoId,
|
|
1897
1898
|
Vr as getAdConfig,
|
|
1898
1899
|
jr as useVPPlayer,
|
|
1899
|
-
|
|
1900
|
+
Cr as useVPPlayerLogic,
|
|
1900
1901
|
Pr as useVPPlayerScript,
|
|
1901
1902
|
Sr as useVideoData
|
|
1902
1903
|
};
|