@devix-technologies/react-gjirafa-vp-player 1.0.16 → 1.0.17
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.
|
@@ -100,11 +100,11 @@ function xt() {
|
|
|
100
100
|
}
|
|
101
101
|
if (v) {
|
|
102
102
|
v = console;
|
|
103
|
-
var T = v.error,
|
|
103
|
+
var T = v.error, F = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
104
|
return T.call(
|
|
105
105
|
v,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
-
|
|
107
|
+
F
|
|
108
108
|
), t(o);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -151,7 +151,7 @@ function xt() {
|
|
|
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, v, T,
|
|
154
|
+
function m(o, v, T, F, te, G, _e, Se) {
|
|
155
155
|
return T = G.ref, o = {
|
|
156
156
|
$$typeof: x,
|
|
157
157
|
type: o,
|
|
@@ -183,13 +183,13 @@ function xt() {
|
|
|
183
183
|
value: Se
|
|
184
184
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
185
185
|
}
|
|
186
|
-
function l(o, v, T,
|
|
186
|
+
function l(o, v, T, F, te, G, _e, Se) {
|
|
187
187
|
var V = v.children;
|
|
188
188
|
if (V !== void 0)
|
|
189
|
-
if (
|
|
189
|
+
if (F)
|
|
190
190
|
if (j(V)) {
|
|
191
|
-
for (
|
|
192
|
-
p(V[
|
|
191
|
+
for (F = 0; F < V.length; F++)
|
|
192
|
+
p(V[F]);
|
|
193
193
|
Object.freeze && Object.freeze(V);
|
|
194
194
|
} else
|
|
195
195
|
console.error(
|
|
@@ -201,18 +201,18 @@ function xt() {
|
|
|
201
201
|
var re = Object.keys(v).filter(function(mt) {
|
|
202
202
|
return mt !== "key";
|
|
203
203
|
});
|
|
204
|
-
|
|
204
|
+
F = 0 < re.length ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}", ee[V + F] || (re = 0 < re.length ? "{" + re.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
|
+
F,
|
|
212
212
|
V,
|
|
213
213
|
re,
|
|
214
214
|
V
|
|
215
|
-
), ee[V +
|
|
215
|
+
), ee[V + F] = !0);
|
|
216
216
|
}
|
|
217
217
|
if (V = null, T !== void 0 && (r(T), V = "" + T), s(v) && (r(v.key), V = "" + v.key), "key" in v) {
|
|
218
218
|
T = {};
|
|
@@ -248,26 +248,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
b,
|
|
249
249
|
i
|
|
250
250
|
)(), Q = U(n(i)), ee = {};
|
|
251
|
-
ce.Fragment = f, ce.jsx = function(o, v, T,
|
|
251
|
+
ce.Fragment = f, ce.jsx = function(o, v, T, F, te) {
|
|
252
252
|
var G = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
253
253
|
return l(
|
|
254
254
|
o,
|
|
255
255
|
v,
|
|
256
256
|
T,
|
|
257
257
|
!1,
|
|
258
|
-
|
|
258
|
+
F,
|
|
259
259
|
te,
|
|
260
260
|
G ? Error("react-stack-top-frame") : J,
|
|
261
261
|
G ? U(n(o)) : Q
|
|
262
262
|
);
|
|
263
|
-
}, ce.jsxs = function(o, v, T,
|
|
263
|
+
}, ce.jsxs = function(o, v, T, F, te) {
|
|
264
264
|
var G = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
265
265
|
return l(
|
|
266
266
|
o,
|
|
267
267
|
v,
|
|
268
268
|
T,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
270
|
+
F,
|
|
271
271
|
te,
|
|
272
272
|
G ? Error("react-stack-top-frame") : J,
|
|
273
273
|
G ? U(n(o)) : Q
|
|
@@ -329,9 +329,9 @@ var Et = /* @__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
|
-
}(), B = "-ms-", we = "-moz-", k = "-webkit-", nt = "comm",
|
|
332
|
+
}(), B = "-ms-", we = "-moz-", k = "-webkit-", nt = "comm", Le = "rule", Fe = "decl", _t = "@import", at = "@keyframes", St = "@layer", Rt = Math.abs, ke = String.fromCharCode, At = Object.assign;
|
|
333
333
|
function Ct(e, t) {
|
|
334
|
-
return
|
|
334
|
+
return L(e, 0) ^ 45 ? (((t << 2 ^ L(e, 0)) << 2 ^ L(e, 1)) << 2 ^ L(e, 2)) << 2 ^ L(e, 3) : 0;
|
|
335
335
|
}
|
|
336
336
|
function it(e) {
|
|
337
337
|
return e.trim();
|
|
@@ -345,7 +345,7 @@ function P(e, t, r) {
|
|
|
345
345
|
function je(e, t) {
|
|
346
346
|
return e.indexOf(t);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function L(e, t) {
|
|
349
349
|
return e.charCodeAt(t) | 0;
|
|
350
350
|
}
|
|
351
351
|
function de(e, t, r) {
|
|
@@ -374,13 +374,13 @@ function Ot() {
|
|
|
374
374
|
return O;
|
|
375
375
|
}
|
|
376
376
|
function jt() {
|
|
377
|
-
return O = M > 0 ?
|
|
377
|
+
return O = M > 0 ? L(oe, --M) : 0, ae--, O === 10 && (ae = 1, Pe--), O;
|
|
378
378
|
}
|
|
379
379
|
function z() {
|
|
380
|
-
return O = M < ot ?
|
|
380
|
+
return O = M < ot ? L(oe, M++) : 0, ae++, O === 10 && (ae = 1, Pe++), O;
|
|
381
381
|
}
|
|
382
382
|
function K() {
|
|
383
|
-
return
|
|
383
|
+
return L(oe, M);
|
|
384
384
|
}
|
|
385
385
|
function ge() {
|
|
386
386
|
return M;
|
|
@@ -467,13 +467,13 @@ function $e(e) {
|
|
|
467
467
|
}
|
|
468
468
|
return M;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Lt(e, t) {
|
|
471
471
|
for (; z() && e + O !== 57; )
|
|
472
472
|
if (e + O === 84 && K() === 47)
|
|
473
473
|
break;
|
|
474
474
|
return "/*" + he(t, M - 1) + "*" + ke(e === 47 ? e : z());
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Ft(e) {
|
|
477
477
|
for (; !fe(K()); )
|
|
478
478
|
z();
|
|
479
479
|
return he(e, M);
|
|
@@ -486,7 +486,7 @@ function be(e, t, r, n, a, i, s, c, u) {
|
|
|
486
486
|
switch (g = w, w = z()) {
|
|
487
487
|
// (
|
|
488
488
|
case 40:
|
|
489
|
-
if (g != 108 &&
|
|
489
|
+
if (g != 108 && L(d, p - 1) == 58) {
|
|
490
490
|
je(d += P(ve(w), "&", "&\f"), "&\f") != -1 && (y = -1);
|
|
491
491
|
break;
|
|
492
492
|
}
|
|
@@ -512,7 +512,7 @@ function be(e, t, r, n, a, i, s, c, u) {
|
|
|
512
512
|
switch (K()) {
|
|
513
513
|
case 42:
|
|
514
514
|
case 47:
|
|
515
|
-
ye(Bt(
|
|
515
|
+
ye(Bt(Lt(z(), ge()), t, r), u);
|
|
516
516
|
break;
|
|
517
517
|
default:
|
|
518
518
|
d += "/";
|
|
@@ -543,7 +543,7 @@ function be(e, t, r, n, a, i, s, c, u) {
|
|
|
543
543
|
if (l === 0)
|
|
544
544
|
be(d, t, R, R, A, i, p, c, S);
|
|
545
545
|
else
|
|
546
|
-
switch (b === 99 &&
|
|
546
|
+
switch (b === 99 && L(d, 3) === 110 ? 100 : b) {
|
|
547
547
|
// d l m s
|
|
548
548
|
case 100:
|
|
549
549
|
case 108:
|
|
@@ -578,7 +578,7 @@ function be(e, t, r, n, a, i, s, c, u) {
|
|
|
578
578
|
break;
|
|
579
579
|
// @
|
|
580
580
|
case 64:
|
|
581
|
-
K() === 45 && (d += ve(z())), b = K(), l = p = H(_ = d +=
|
|
581
|
+
K() === 45 && (d += ve(z())), b = K(), l = p = H(_ = d += Ft(ge())), w++;
|
|
582
582
|
break;
|
|
583
583
|
// -
|
|
584
584
|
case 45:
|
|
@@ -591,13 +591,13 @@ function Ye(e, t, r, n, a, i, s, c, u, m, l) {
|
|
|
591
591
|
for (var p = a - 1, b = a === 0 ? i : [""], x = Ve(b), g = 0, f = 0, h = 0; g < n; ++g)
|
|
592
592
|
for (var y = 0, w = de(e, p + 1, p = Rt(f = s[g])), _ = e; y < x; ++y)
|
|
593
593
|
(_ = it(f > 0 ? b[y] + " " + w : P(w, /&\f/g, b[y]))) && (u[h++] = _);
|
|
594
|
-
return Ee(e, t, r, a === 0 ?
|
|
594
|
+
return Ee(e, t, r, a === 0 ? Le : c, u, m, l);
|
|
595
595
|
}
|
|
596
596
|
function Bt(e, t, r) {
|
|
597
597
|
return Ee(e, t, r, nt, ke(Ot()), de(e, 2, -2), 0);
|
|
598
598
|
}
|
|
599
599
|
function qe(e, t, r, n) {
|
|
600
|
-
return Ee(e, t, r,
|
|
600
|
+
return Ee(e, t, r, Fe, de(e, 0, n), de(e, n + 1, -1), n);
|
|
601
601
|
}
|
|
602
602
|
function ne(e, t) {
|
|
603
603
|
for (var r = "", n = Ve(e), a = 0; a < n; a++)
|
|
@@ -609,13 +609,13 @@ function Mt(e, t, r, n) {
|
|
|
609
609
|
case St:
|
|
610
610
|
if (e.children.length) break;
|
|
611
611
|
case _t:
|
|
612
|
-
case
|
|
612
|
+
case Fe:
|
|
613
613
|
return e.return = e.return || e.value;
|
|
614
614
|
case nt:
|
|
615
615
|
return "";
|
|
616
616
|
case at:
|
|
617
617
|
return e.return = e.value + "{" + ne(e.children, n) + "}";
|
|
618
|
-
case
|
|
618
|
+
case Le:
|
|
619
619
|
e.value = e.props.join(",");
|
|
620
620
|
}
|
|
621
621
|
return H(r = ne(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
@@ -786,13 +786,13 @@ function ut(e, t) {
|
|
|
786
786
|
case 5789:
|
|
787
787
|
case 5021:
|
|
788
788
|
case 4765:
|
|
789
|
-
if (H(e) - 1 - t > 6) switch (
|
|
789
|
+
if (H(e) - 1 - t > 6) switch (L(e, t + 1)) {
|
|
790
790
|
// (m)ax-content, (m)in-content
|
|
791
791
|
case 109:
|
|
792
|
-
if (
|
|
792
|
+
if (L(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 + (L(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
796
796
|
// (s)tretch
|
|
797
797
|
case 115:
|
|
798
798
|
return ~je(e, "stretch") ? ut(P(e, "stretch", "fill-available"), t) + e : e;
|
|
@@ -800,21 +800,21 @@ function ut(e, t) {
|
|
|
800
800
|
break;
|
|
801
801
|
// position: sticky
|
|
802
802
|
case 4949:
|
|
803
|
-
if (
|
|
803
|
+
if (L(e, t + 1) !== 115) break;
|
|
804
804
|
// display: (flex|inline-flex)
|
|
805
805
|
case 6444:
|
|
806
|
-
switch (
|
|
806
|
+
switch (L(e, H(e) - 3 - (~je(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 + (L(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + B + "$2box$3") + e;
|
|
813
813
|
}
|
|
814
814
|
break;
|
|
815
815
|
// writing-mode
|
|
816
816
|
case 5936:
|
|
817
|
-
switch (
|
|
817
|
+
switch (L(e, t + 11)) {
|
|
818
818
|
// vertical-l(r)
|
|
819
819
|
case 114:
|
|
820
820
|
return k + e + B + P(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
@@ -831,14 +831,14 @@ function ut(e, t) {
|
|
|
831
831
|
}
|
|
832
832
|
var Ht = function(t, r, n, a) {
|
|
833
833
|
if (t.length > -1 && !t.return) switch (t.type) {
|
|
834
|
-
case
|
|
834
|
+
case Fe:
|
|
835
835
|
t.return = ut(t.value, t.length);
|
|
836
836
|
break;
|
|
837
837
|
case at:
|
|
838
838
|
return ne([le(t, {
|
|
839
839
|
value: P(t.value, "@", "@" + k)
|
|
840
840
|
})], a);
|
|
841
|
-
case
|
|
841
|
+
case Le:
|
|
842
842
|
if (t.length) return It(t.props, function(i) {
|
|
843
843
|
switch (Tt(i, /(::plac\w+|:read-\w+)/)) {
|
|
844
844
|
// :read-(only|write)
|
|
@@ -1402,23 +1402,15 @@ const vr = ie.div`
|
|
|
1402
1402
|
`, Ne = ({ type: e, children: t, className: r, icon: n, action: a }) => N.jsxs(vr, { type: e, className: r, children: [n && N.jsx("span", { children: n }), N.jsx("span", { children: t }), a && N.jsx("span", { children: a })] }), Qe = ie.div`
|
|
1403
1403
|
width: ${({ width: e }) => e || "100%"};
|
|
1404
1404
|
height: ${({ height: e }) => e || "100%"};
|
|
1405
|
-
border-radius: 0px !important; /* Force remove rounded corners */
|
|
1406
|
-
box-shadow: none !important;
|
|
1405
|
+
border-radius: 0px !important; /* Force remove rounded corners on container */
|
|
1406
|
+
box-shadow: none !important; /* Remove default border/halo */
|
|
1407
|
+
border: none !important;
|
|
1408
|
+
background: transparent !important;
|
|
1407
1409
|
position: relative;
|
|
1408
1410
|
z-index: 1002;
|
|
1409
1411
|
|
|
1410
1412
|
/* Hide specific elements inside the player */
|
|
1411
1413
|
${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((t) => `.${t} { display: none !important; }`).join("")}
|
|
1412
|
-
|
|
1413
|
-
/* Remove rounded corners from all child elements */
|
|
1414
|
-
* {
|
|
1415
|
-
border-radius: 0px !important;
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
/* Remove rounded corners from video element */
|
|
1419
|
-
video {
|
|
1420
|
-
border-radius: 0px !important;
|
|
1421
|
-
}
|
|
1422
1414
|
`, br = ie.div`
|
|
1423
1415
|
position: fixed;
|
|
1424
1416
|
top: 0;
|
|
@@ -1432,17 +1424,17 @@ const vr = ie.div`
|
|
|
1432
1424
|
z-index: 1000;
|
|
1433
1425
|
pointer-events: auto;
|
|
1434
1426
|
`, xr = ie.div`
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1427
|
+
position: relative;
|
|
1428
|
+
width: min(360px, 100%);
|
|
1429
|
+
max-width: 360px;
|
|
1430
|
+
aspect-ratio: 9 / 16;
|
|
1431
|
+
height: auto;
|
|
1432
|
+
z-index: 1001;
|
|
1441
1433
|
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1434
|
+
@media (max-width: 420px) {
|
|
1435
|
+
width: 100%;
|
|
1436
|
+
max-width: 100%;
|
|
1437
|
+
}
|
|
1446
1438
|
`, wr = (e, t) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`, et = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`, kr = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}`, Pr = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, Be = (e, t) => `vp-player-${e || "default"}-${t || ""}`, Ce = /* @__PURE__ */ new Map(), Er = (e, t) => {
|
|
1447
1439
|
const [r, n] = Y(!1), [a, i] = Y(null);
|
|
1448
1440
|
return xe(() => {
|
|
@@ -1904,7 +1896,7 @@ const vr = ie.div`
|
|
|
1904
1896
|
if (!e)
|
|
1905
1897
|
throw new Error("useVPPlayer must be used within a VPPlayerProvider");
|
|
1906
1898
|
return e;
|
|
1907
|
-
},
|
|
1899
|
+
}, Lr = {
|
|
1908
1900
|
projectId: "vp-player-projectId",
|
|
1909
1901
|
video: {
|
|
1910
1902
|
file: "",
|
|
@@ -1937,7 +1929,7 @@ const vr = ie.div`
|
|
|
1937
1929
|
shareButton: !0
|
|
1938
1930
|
}
|
|
1939
1931
|
}
|
|
1940
|
-
},
|
|
1932
|
+
}, Fr = {
|
|
1941
1933
|
config: {
|
|
1942
1934
|
autostartOnLoad: { state: !0, onMobile: !0, onData: !0 },
|
|
1943
1935
|
muted: !0
|
|
@@ -1990,11 +1982,11 @@ export {
|
|
|
1990
1982
|
xr as PlayerWrapper,
|
|
1991
1983
|
Or as VPPlayer,
|
|
1992
1984
|
$r as VPPlayerProvider,
|
|
1993
|
-
|
|
1985
|
+
Fr as baseConfig,
|
|
1994
1986
|
Ie as baseConfigWithAds,
|
|
1995
1987
|
Vr as baseConfigWithAutoplay,
|
|
1996
1988
|
Cr as buildVPPlayerConfig,
|
|
1997
|
-
|
|
1989
|
+
Lr as defaultVPPlayerConfig,
|
|
1998
1990
|
Tr as extractVideoId,
|
|
1999
1991
|
Br as getAdConfig,
|
|
2000
1992
|
Nr as useVPPlayer,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(S,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(S=typeof globalThis<"u"?globalThis:S||self,P(S.ReactGjirafaVPPlayer={},S.React))})(this,function(S,P){"use strict";function
|
|
1
|
+
(function(S,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(S=typeof globalThis<"u"?globalThis:S||self,P(S.ReactGjirafaVPPlayer={},S.React))})(this,function(S,P){"use strict";function vt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Z=vt(P);var ye={exports:{}},ce={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var De;function xt(){return De||(De=1,process.env.NODE_ENV!=="production"&&function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===_?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case f:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case I:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case g:return"Portal";case A:return(o.displayName||"Context")+".Provider";case x:return(o._context.displayName||"Context")+".Consumer";case R:var
|
|
17
|
+
*/var De;function xt(){return De||(De=1,process.env.NODE_ENV!=="production"&&function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===_?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case f:return"Fragment";case y:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case I:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case g:return"Portal";case A:return(o.displayName||"Context")+".Provider";case x:return(o._context.displayName||"Context")+".Consumer";case R:var b=o.render;return o=o.displayName,o||(o=b.displayName||b.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case d:return b=o.displayName||null,b!==null?b:e(o.type)||"Memo";case $:b=o._payload,o=o._init;try{return e(o(b))}catch{}}return null}function t(o){return""+o}function r(o){try{t(o);var b=!1}catch{b=!0}if(b){b=console;var O=b.error,M=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return O.call(b,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",M),t(o)}}function n(o){if(o===f)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===$)return"<...>";try{var b=e(o);return b?"<"+b+">":"<...>"}catch{return"<...>"}}function a(){var o=V.A;return o===null?null:o.getOwner()}function i(){return Error("react-stack-top-frame")}function s(o){if(Y.call(o,"key")){var b=Object.getOwnPropertyDescriptor(o,"key").get;if(b&&b.isReactWarning)return!1}return o.key!==void 0}function c(o,b){function O(){K||(K=!0,console.error("%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)",b))}O.isReactWarning=!0,Object.defineProperty(o,"key",{get:O,configurable:!0})}function u(){var o=e(this.type);return G[o]||(G[o]=!0,console.error("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.")),o=this.props.ref,o!==void 0?o:null}function m(o,b,O,M,re,J,Fe,Be){return O=J.ref,o={$$typeof:w,type:o,key:b,props:J,_owner:re},(O!==void 0?O:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:u}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Fe}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Be}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function l(o,b,O,M,re,J,Fe,Be){var U=b.children;if(U!==void 0)if(M)if(L(U)){for(M=0;M<U.length;M++)p(U[M]);Object.freeze&&Object.freeze(U)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(U);if(Y.call(b,"key")){U=e(o);var se=Object.keys(b).filter(function(Fr){return Fr!=="key"});M=0<se.length?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}",te[U+M]||(se=0<se.length?"{"+se.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,M,U,se,U),te[U+M]=!0)}if(U=null,O!==void 0&&(r(O),U=""+O),s(v)&&(r(v.key),U=""+v.key),"key"in v){O={};for(var Me in v)Me!=="key"&&(O[Me]=v[Me])}else O=v;return U&&c(O,typeof o=="function"?o.displayName||o.name||"Unknown":o),m(o,U,J,re,a(),O,Fe,Be)}function p(o){typeof o=="object"&&o!==null&&o.$$typeof===w&&o._store&&(o._store.validated=1)}var b=P,w=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),A=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),_=Symbol.for("react.client.reference"),V=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,L=Array.isArray,W=console.createTask?console.createTask:function(){return null};b={"react-stack-bottom-frame":function(o){return o()}};var K,G={},Q=b["react-stack-bottom-frame"].bind(b,i)(),ee=W(n(i)),te={};le.Fragment=f,le.jsx=function(o,v,O,M,re){var J=1e4>V.recentlyCreatedOwnerStacks++;return l(o,v,O,!1,M,re,J?Error("react-stack-top-frame"):Q,J?W(n(o)):ee)},le.jsxs=function(o,v,O,M,re){var J=1e4>V.recentlyCreatedOwnerStacks++;return l(o,v,O,!0,M,re,J?Error("react-stack-top-frame"):Q,J?W(n(o)):ee)}}()),le}var ze;function Pt(){return ze||(ze=1,process.env.NODE_ENV==="production"?ye.exports=wt():ye.exports=xt()),ye.exports}var N=Pt();function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Se.apply(null,arguments)}function kt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Et(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var _t=function(){function e(r){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Et(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=kt(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e}(),B="-ms-",ge="-moz-",k="-webkit-",We="comm",Ae="rule",Ce="decl",St="@import",Ye="@keyframes",At="@layer",Ct=Math.abs,ve=String.fromCharCode,Tt=Object.assign;function Rt(e,t){return F(e,0)^45?(((t<<2^F(e,0))<<2^F(e,1))<<2^F(e,2))<<2^F(e,3):0}function Ge(e){return e.trim()}function It(e,t){return(e=t.exec(e))?e[0]:e}function E(e,t,r){return e.replace(t,r)}function Te(e,t){return e.indexOf(t)}function F(e,t){return e.charCodeAt(t)|0}function ue(e,t,r){return e.slice(t,r)}function q(e){return e.length}function Re(e){return e.length}function be(e,t){return t.push(e),e}function Ot(e,t){return e.map(t).join("")}var we=1,ne=1,qe=0,D=0,j=0,ae="";function xe(e,t,r,n,a,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:we,column:ne,length:s,return:""}}function de(e,t){return Tt(xe("",null,null,"",null,null,0),e,{length:-e.length},t)}function jt(){return j}function $t(){return j=D>0?F(ae,--D):0,ne--,j===10&&(ne=1,we--),j}function z(){return j=D<qe?F(ae,D++):0,ne++,j===10&&(ne=1,we++),j}function H(){return F(ae,D)}function Pe(){return D}function fe(e,t){return ue(ae,e,t)}function pe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function He(e){return we=ne=1,qe=q(ae=e),D=0,[]}function Xe(e){return ae="",e}function ke(e){return Ge(fe(D-1,Ie(e===91?e+2:e===40?e+1:e)))}function Lt(e){for(;(j=H())&&j<33;)z();return pe(e)>2||pe(j)>3?"":" "}function Nt(e,t){for(;--t&&z()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return fe(e,Pe()+(t<6&&H()==32&&z()==32))}function Ie(e){for(;z();)switch(j){case e:return D;case 34:case 39:e!==34&&e!==39&&Ie(j);break;case 40:e===41&&Ie(e);break;case 92:z();break}return D}function Vt(e,t){for(;z()&&e+j!==57;)if(e+j===84&&H()===47)break;return"/*"+fe(t,D-1)+"*"+ve(e===47?e:z())}function Ft(e){for(;!pe(H());)z();return fe(e,D)}function Bt(e){return Xe(Ee("",null,null,null,[""],e=He(e),0,[0],e))}function Ee(e,t,r,n,a,i,s,c,u){for(var m=0,l=0,p=s,b=0,w=0,g=0,f=1,h=1,y=1,x=0,A="",R=a,C=i,T=n,d=A;h;)switch(g=x,x=z()){case 40:if(g!=108&&F(d,p-1)==58){Te(d+=E(ke(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:d+=ke(x);break;case 9:case 10:case 13:case 32:d+=Lt(g);break;case 92:d+=Nt(Pe()-1,7);continue;case 47:switch(H()){case 42:case 47:be(Mt(Vt(z(),Pe()),t,r),u);break;default:d+="/"}break;case 123*f:c[m++]=q(d)*y;case 125*f:case 59:case 0:switch(x){case 0:case 125:h=0;case 59+l:y==-1&&(d=E(d,/\f/g,"")),w>0&&q(d)-p&&be(w>32?Je(d+";",n,r,p-1):Je(E(d," ","")+";",n,r,p-2),u);break;case 59:d+=";";default:if(be(T=Ke(d,t,r,m,l,a,c,A,R=[],C=[],p),i),x===123)if(l===0)Ee(d,t,T,T,R,i,p,c,C);else switch(b===99&&F(d,3)===110?100:b){case 100:case 108:case 109:case 115:Ee(e,T,T,n&&be(Ke(e,T,T,0,0,a,c,A,a,R=[],p),C),a,C,p,c,n?R:C);break;default:Ee(d,T,T,T,[""],C,0,c,C)}}m=l=w=0,f=y=1,A=d="",p=s;break;case 58:p=1+q(d),w=g;default:if(f<1){if(x==123)--f;else if(x==125&&f++==0&&$t()==125)continue}switch(d+=ve(x),x*f){case 38:y=l>0?1:(d+="\f",-1);break;case 44:c[m++]=(q(d)-1)*y,y=1;break;case 64:H()===45&&(d+=ke(z())),b=H(),l=p=q(A=d+=Ft(Pe())),x++;break;case 45:g===45&&q(d)==2&&(f=0)}}return i}function Ke(e,t,r,n,a,i,s,c,u,m,l){for(var p=a-1,b=a===0?i:[""],w=Re(b),g=0,f=0,h=0;g<n;++g)for(var y=0,x=ue(e,p+1,p=Ct(f=s[g])),A=e;y<w;++y)(A=Ge(f>0?b[y]+" "+x:E(x,/&\f/g,b[y])))&&(u[h++]=A);return xe(e,t,r,a===0?Ae:c,u,m,l)}function Mt(e,t,r){return xe(e,t,r,We,ve(jt()),ue(e,2,-2),0)}function Je(e,t,r,n){return xe(e,t,r,Ce,ue(e,0,n),ue(e,n+1,-1),n)}function ie(e,t){for(var r="",n=Re(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Ut(e,t,r,n){switch(e.type){case At:if(e.children.length)break;case St:case Ce:return e.return=e.return||e.value;case We:return"";case Ye:return e.return=e.value+"{"+ie(e.children,n)+"}";case Ae:e.value=e.props.join(",")}return q(r=ie(e.children,n))?e.return=e.value+"{"+r+"}":""}function Dt(e){var t=Re(e);return function(r,n,a,i){for(var s="",c=0;c<t;c++)s+=e[c](r,n,a,i)||"";return s}}function zt(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ze(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Wt=function(t,r,n){for(var a=0,i=0;a=i,i=H(),a===38&&i===12&&(r[n]=1),!pe(i);)z();return fe(t,D)},Yt=function(t,r){var n=-1,a=44;do switch(pe(a)){case 0:a===38&&H()===12&&(r[n]=1),t[n]+=Wt(D-1,r,n);break;case 2:t[n]+=ke(a);break;case 4:if(a===44){t[++n]=H()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ve(a)}while(a=z());return t},Gt=function(t,r){return Xe(Yt(He(t),r))},Qe=new WeakMap,qt=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Qe.get(n))&&!a){Qe.set(t,!0);for(var i=[],s=Gt(r,i),c=n.props,u=0,m=0;u<s.length;u++)for(var l=0;l<c.length;l++,m++)t.props[m]=i[u]?s[u].replace(/&\f/g,c[l]):c[l]+" "+s[u]}}},Ht=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function et(e,t){switch(Rt(e,t)){case 5103:return k+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return k+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return k+e+ge+e+B+e+e;case 6828:case 4268:return k+e+B+e+e;case 6165:return k+e+B+"flex-"+e+e;case 5187:return k+e+E(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+B+"flex-$1$2")+e;case 5443:return k+e+B+"flex-item-"+E(e,/flex-|-self/,"")+e;case 4675:return k+e+B+"flex-line-pack"+E(e,/align-content|flex-|-self/,"")+e;case 5548:return k+e+B+E(e,"shrink","negative")+e;case 5292:return k+e+B+E(e,"basis","preferred-size")+e;case 6060:return k+"box-"+E(e,"-grow","")+k+e+B+E(e,"grow","positive")+e;case 4554:return k+E(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+B+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,k+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(q(e)-1-t>6)switch(F(e,t+1)){case 109:if(F(e,t+4)!==45)break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+ge+(F(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Te(e,"stretch")?et(E(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(F(e,t+1)!==115)break;case 6444:switch(F(e,q(e)-3-(~Te(e,"!important")&&10))){case 107:return E(e,":",":"+k)+e;case 101:return E(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+k+(F(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+B+"$2box$3")+e}break;case 5936:switch(F(e,t+11)){case 114:return k+e+B+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+B+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+B+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return k+e+B+e+e}return e}var Xt=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Ce:t.return=et(t.value,t.length);break;case Ye:return ie([de(t,{value:E(t.value,"@","@"+k)})],a);case Ae:if(t.length)return Ot(t.props,function(i){switch(It(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ie([de(t,{props:[E(i,/:(read-\w+)/,":"+ge+"$1")]})],a);case"::placeholder":return ie([de(t,{props:[E(i,/:(plac\w+)/,":"+k+"input-$1")]}),de(t,{props:[E(i,/:(plac\w+)/,":"+ge+"$1")]}),de(t,{props:[E(i,/:(plac\w+)/,B+"input-$1")]})],a)}return""})}},Kt=[Xt],Jt=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){var h=f.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var a=t.stylisPlugins||Kt,i={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(f){for(var h=f.getAttribute("data-emotion").split(" "),y=1;y<h.length;y++)i[h[y]]=!0;c.push(f)});var u,m=[qt,Ht];{var l,p=[Ut,zt(function(f){l.insert(f)})],b=Dt(m.concat(a,p)),w=function(h){return ie(Bt(h),b)};u=function(h,y,x,A){l=x,w(h?h+"{"+y.styles+"}":y.styles),A&&(g.inserted[y.name]=!0)}}var g={key:r,sheet:new _t({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return g.sheet.hydrate(c),g},Zt=!0;function Qt(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var tt=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Zt===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},er=function(t,r,n){tt(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function tr(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var rr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nr=/[A-Z]|^ms/g,ar=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rt=function(t){return t.charCodeAt(1)===45},nt=function(t){return t!=null&&typeof t!="boolean"},Oe=Ze(function(e){return rt(e)?e:e.replace(nr,"-$&").toLowerCase()}),at=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ar,function(n,a,i){return X={name:a,styles:i,next:X},a})}return rr[t]!==1&&!rt(t)&&typeof r=="number"&&r!==0?r+"px":r};function he(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return X={name:a.name,styles:a.styles,next:X},a.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)X={name:s.name,styles:s.styles,next:X},s=s.next;var c=i.styles+";";return c}return ir(e,t,r)}case"function":{if(e!==void 0){var u=X,m=r(e);return X=u,he(e,t,m)}break}}var l=r;if(t==null)return l;var p=t[l];return p!==void 0?p:l}function ir(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=he(e,t,r[a])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var c=s;t!=null&&t[c]!==void 0?n+=i+"{"+t[c]+"}":nt(c)&&(n+=Oe(i)+":"+at(i,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)nt(s[u])&&(n+=Oe(i)+":"+at(i,s[u])+";");else{var m=he(e,t,s);switch(i){case"animation":case"animationName":{n+=Oe(i)+":"+m+";";break}default:n+=i+"{"+m+"}"}}}return n}var it=/label:\s*([^\s;{]+)\s*(;|$)/g,X;function or(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";X=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=he(r,t,i);else{var s=i;a+=s[0]}for(var c=1;c<e.length;c++)if(a+=he(r,t,e[c]),n){var u=i;a+=u[c]}it.lastIndex=0;for(var m="",l;(l=it.exec(a))!==null;)m+="-"+l[1];var p=tr(a)+m;return{name:p,styles:a,next:X}}var sr=function(t){return t()},cr=Z.useInsertionEffect?Z.useInsertionEffect:!1,lr=cr||sr,ot=Z.createContext(typeof HTMLElement<"u"?Jt({key:"css"}):null);ot.Provider;var ur=function(t){return P.forwardRef(function(r,n){var a=P.useContext(ot);return t(r,a,n)})},dr=Z.createContext({}),fr=/^((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)-.*))$/,pr=Ze(function(e){return fr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),hr=pr,mr=function(t){return t!=="theme"},st=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?hr:mr},ct=function(t,r,n){var a;if(r){var i=r.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},yr=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return tt(r,n,a),lr(function(){return er(r,n,a)}),null},gr=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var c=ct(t,r,n),u=c||st(a),m=!u("as");return function(){var l=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),l[0]==null||l[0].raw===void 0)p.push.apply(p,l);else{var b=l[0];p.push(b[0]);for(var w=l.length,g=1;g<w;g++)p.push(l[g],b[g])}var f=ur(function(h,y,x){var A=m&&h.as||a,R="",C=[],T=h;if(h.theme==null){T={};for(var d in h)T[d]=h[d];T.theme=Z.useContext(dr)}typeof h.className=="string"?R=Qt(y.registered,C,h.className):h.className!=null&&(R=h.className+" ");var $=or(p.concat(C),y.registered,T);R+=y.key+"-"+$.name,s!==void 0&&(R+=" "+s);var I=m&&c===void 0?st(A):u,_={};for(var V in h)m&&V==="as"||I(V)&&(_[V]=h[V]);return _.className=R,x&&(_.ref=x),Z.createElement(Z.Fragment,null,Z.createElement(yr,{cache:y,serialized:$,isStringTag:typeof A=="string"}),Z.createElement(A,_))});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",{value:function(){return"."+s}}),f.withComponent=function(h,y){var x=e(h,Se({},r,y,{shouldForwardProp:ct(f,y,!0)}));return x.apply(void 0,p)},f}},vr=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],oe=gr.bind(null);vr.forEach(function(e){oe[e]=oe(e)});const br=oe.div`
|
|
22
|
+
<%s key={someKey} {...props} />`,M,U,se,U),te[U+M]=!0)}if(U=null,O!==void 0&&(r(O),U=""+O),s(b)&&(r(b.key),U=""+b.key),"key"in b){O={};for(var Me in b)Me!=="key"&&(O[Me]=b[Me])}else O=b;return U&&c(O,typeof o=="function"?o.displayName||o.name||"Unknown":o),m(o,U,J,re,a(),O,Fe,Be)}function p(o){typeof o=="object"&&o!==null&&o.$$typeof===w&&o._store&&(o._store.validated=1)}var v=P,w=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),A=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),_=Symbol.for("react.client.reference"),V=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,L=Array.isArray,W=console.createTask?console.createTask:function(){return null};v={"react-stack-bottom-frame":function(o){return o()}};var K,G={},Q=v["react-stack-bottom-frame"].bind(v,i)(),ee=W(n(i)),te={};le.Fragment=f,le.jsx=function(o,b,O,M,re){var J=1e4>V.recentlyCreatedOwnerStacks++;return l(o,b,O,!1,M,re,J?Error("react-stack-top-frame"):Q,J?W(n(o)):ee)},le.jsxs=function(o,b,O,M,re){var J=1e4>V.recentlyCreatedOwnerStacks++;return l(o,b,O,!0,M,re,J?Error("react-stack-top-frame"):Q,J?W(n(o)):ee)}}()),le}var ze;function Pt(){return ze||(ze=1,process.env.NODE_ENV==="production"?ye.exports=wt():ye.exports=xt()),ye.exports}var N=Pt();function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Se.apply(null,arguments)}function kt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Et(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var _t=function(){function e(r){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Et(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=kt(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e}(),B="-ms-",ge="-moz-",k="-webkit-",We="comm",Ae="rule",Ce="decl",St="@import",Ye="@keyframes",At="@layer",Ct=Math.abs,be=String.fromCharCode,Tt=Object.assign;function Rt(e,t){return F(e,0)^45?(((t<<2^F(e,0))<<2^F(e,1))<<2^F(e,2))<<2^F(e,3):0}function Ge(e){return e.trim()}function It(e,t){return(e=t.exec(e))?e[0]:e}function E(e,t,r){return e.replace(t,r)}function Te(e,t){return e.indexOf(t)}function F(e,t){return e.charCodeAt(t)|0}function ue(e,t,r){return e.slice(t,r)}function q(e){return e.length}function Re(e){return e.length}function ve(e,t){return t.push(e),e}function Ot(e,t){return e.map(t).join("")}var we=1,ne=1,qe=0,D=0,j=0,ae="";function xe(e,t,r,n,a,i,s){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:we,column:ne,length:s,return:""}}function de(e,t){return Tt(xe("",null,null,"",null,null,0),e,{length:-e.length},t)}function jt(){return j}function $t(){return j=D>0?F(ae,--D):0,ne--,j===10&&(ne=1,we--),j}function z(){return j=D<qe?F(ae,D++):0,ne++,j===10&&(ne=1,we++),j}function H(){return F(ae,D)}function Pe(){return D}function fe(e,t){return ue(ae,e,t)}function pe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function He(e){return we=ne=1,qe=q(ae=e),D=0,[]}function Xe(e){return ae="",e}function ke(e){return Ge(fe(D-1,Ie(e===91?e+2:e===40?e+1:e)))}function Lt(e){for(;(j=H())&&j<33;)z();return pe(e)>2||pe(j)>3?"":" "}function Nt(e,t){for(;--t&&z()&&!(j<48||j>102||j>57&&j<65||j>70&&j<97););return fe(e,Pe()+(t<6&&H()==32&&z()==32))}function Ie(e){for(;z();)switch(j){case e:return D;case 34:case 39:e!==34&&e!==39&&Ie(j);break;case 40:e===41&&Ie(e);break;case 92:z();break}return D}function Vt(e,t){for(;z()&&e+j!==57;)if(e+j===84&&H()===47)break;return"/*"+fe(t,D-1)+"*"+be(e===47?e:z())}function Ft(e){for(;!pe(H());)z();return fe(e,D)}function Bt(e){return Xe(Ee("",null,null,null,[""],e=He(e),0,[0],e))}function Ee(e,t,r,n,a,i,s,c,u){for(var m=0,l=0,p=s,v=0,w=0,g=0,f=1,h=1,y=1,x=0,A="",R=a,C=i,T=n,d=A;h;)switch(g=x,x=z()){case 40:if(g!=108&&F(d,p-1)==58){Te(d+=E(ke(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:d+=ke(x);break;case 9:case 10:case 13:case 32:d+=Lt(g);break;case 92:d+=Nt(Pe()-1,7);continue;case 47:switch(H()){case 42:case 47:ve(Mt(Vt(z(),Pe()),t,r),u);break;default:d+="/"}break;case 123*f:c[m++]=q(d)*y;case 125*f:case 59:case 0:switch(x){case 0:case 125:h=0;case 59+l:y==-1&&(d=E(d,/\f/g,"")),w>0&&q(d)-p&&ve(w>32?Je(d+";",n,r,p-1):Je(E(d," ","")+";",n,r,p-2),u);break;case 59:d+=";";default:if(ve(T=Ke(d,t,r,m,l,a,c,A,R=[],C=[],p),i),x===123)if(l===0)Ee(d,t,T,T,R,i,p,c,C);else switch(v===99&&F(d,3)===110?100:v){case 100:case 108:case 109:case 115:Ee(e,T,T,n&&ve(Ke(e,T,T,0,0,a,c,A,a,R=[],p),C),a,C,p,c,n?R:C);break;default:Ee(d,T,T,T,[""],C,0,c,C)}}m=l=w=0,f=y=1,A=d="",p=s;break;case 58:p=1+q(d),w=g;default:if(f<1){if(x==123)--f;else if(x==125&&f++==0&&$t()==125)continue}switch(d+=be(x),x*f){case 38:y=l>0?1:(d+="\f",-1);break;case 44:c[m++]=(q(d)-1)*y,y=1;break;case 64:H()===45&&(d+=ke(z())),v=H(),l=p=q(A=d+=Ft(Pe())),x++;break;case 45:g===45&&q(d)==2&&(f=0)}}return i}function Ke(e,t,r,n,a,i,s,c,u,m,l){for(var p=a-1,v=a===0?i:[""],w=Re(v),g=0,f=0,h=0;g<n;++g)for(var y=0,x=ue(e,p+1,p=Ct(f=s[g])),A=e;y<w;++y)(A=Ge(f>0?v[y]+" "+x:E(x,/&\f/g,v[y])))&&(u[h++]=A);return xe(e,t,r,a===0?Ae:c,u,m,l)}function Mt(e,t,r){return xe(e,t,r,We,be(jt()),ue(e,2,-2),0)}function Je(e,t,r,n){return xe(e,t,r,Ce,ue(e,0,n),ue(e,n+1,-1),n)}function ie(e,t){for(var r="",n=Re(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Ut(e,t,r,n){switch(e.type){case At:if(e.children.length)break;case St:case Ce:return e.return=e.return||e.value;case We:return"";case Ye:return e.return=e.value+"{"+ie(e.children,n)+"}";case Ae:e.value=e.props.join(",")}return q(r=ie(e.children,n))?e.return=e.value+"{"+r+"}":""}function Dt(e){var t=Re(e);return function(r,n,a,i){for(var s="",c=0;c<t;c++)s+=e[c](r,n,a,i)||"";return s}}function zt(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ze(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Wt=function(t,r,n){for(var a=0,i=0;a=i,i=H(),a===38&&i===12&&(r[n]=1),!pe(i);)z();return fe(t,D)},Yt=function(t,r){var n=-1,a=44;do switch(pe(a)){case 0:a===38&&H()===12&&(r[n]=1),t[n]+=Wt(D-1,r,n);break;case 2:t[n]+=ke(a);break;case 4:if(a===44){t[++n]=H()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=be(a)}while(a=z());return t},Gt=function(t,r){return Xe(Yt(He(t),r))},Qe=new WeakMap,qt=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Qe.get(n))&&!a){Qe.set(t,!0);for(var i=[],s=Gt(r,i),c=n.props,u=0,m=0;u<s.length;u++)for(var l=0;l<c.length;l++,m++)t.props[m]=i[u]?s[u].replace(/&\f/g,c[l]):c[l]+" "+s[u]}}},Ht=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function et(e,t){switch(Rt(e,t)){case 5103:return k+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return k+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return k+e+ge+e+B+e+e;case 6828:case 4268:return k+e+B+e+e;case 6165:return k+e+B+"flex-"+e+e;case 5187:return k+e+E(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+B+"flex-$1$2")+e;case 5443:return k+e+B+"flex-item-"+E(e,/flex-|-self/,"")+e;case 4675:return k+e+B+"flex-line-pack"+E(e,/align-content|flex-|-self/,"")+e;case 5548:return k+e+B+E(e,"shrink","negative")+e;case 5292:return k+e+B+E(e,"basis","preferred-size")+e;case 6060:return k+"box-"+E(e,"-grow","")+k+e+B+E(e,"grow","positive")+e;case 4554:return k+E(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+B+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,k+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(q(e)-1-t>6)switch(F(e,t+1)){case 109:if(F(e,t+4)!==45)break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+ge+(F(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Te(e,"stretch")?et(E(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(F(e,t+1)!==115)break;case 6444:switch(F(e,q(e)-3-(~Te(e,"!important")&&10))){case 107:return E(e,":",":"+k)+e;case 101:return E(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+k+(F(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+B+"$2box$3")+e}break;case 5936:switch(F(e,t+11)){case 114:return k+e+B+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+B+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+B+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return k+e+B+e+e}return e}var Xt=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Ce:t.return=et(t.value,t.length);break;case Ye:return ie([de(t,{value:E(t.value,"@","@"+k)})],a);case Ae:if(t.length)return Ot(t.props,function(i){switch(It(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ie([de(t,{props:[E(i,/:(read-\w+)/,":"+ge+"$1")]})],a);case"::placeholder":return ie([de(t,{props:[E(i,/:(plac\w+)/,":"+k+"input-$1")]}),de(t,{props:[E(i,/:(plac\w+)/,":"+ge+"$1")]}),de(t,{props:[E(i,/:(plac\w+)/,B+"input-$1")]})],a)}return""})}},Kt=[Xt],Jt=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){var h=f.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var a=t.stylisPlugins||Kt,i={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(f){for(var h=f.getAttribute("data-emotion").split(" "),y=1;y<h.length;y++)i[h[y]]=!0;c.push(f)});var u,m=[qt,Ht];{var l,p=[Ut,zt(function(f){l.insert(f)})],v=Dt(m.concat(a,p)),w=function(h){return ie(Bt(h),v)};u=function(h,y,x,A){l=x,w(h?h+"{"+y.styles+"}":y.styles),A&&(g.inserted[y.name]=!0)}}var g={key:r,sheet:new _t({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return g.sheet.hydrate(c),g},Zt=!0;function Qt(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var tt=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Zt===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},er=function(t,r,n){tt(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function tr(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var rr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nr=/[A-Z]|^ms/g,ar=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rt=function(t){return t.charCodeAt(1)===45},nt=function(t){return t!=null&&typeof t!="boolean"},Oe=Ze(function(e){return rt(e)?e:e.replace(nr,"-$&").toLowerCase()}),at=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ar,function(n,a,i){return X={name:a,styles:i,next:X},a})}return rr[t]!==1&&!rt(t)&&typeof r=="number"&&r!==0?r+"px":r};function he(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return X={name:a.name,styles:a.styles,next:X},a.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)X={name:s.name,styles:s.styles,next:X},s=s.next;var c=i.styles+";";return c}return ir(e,t,r)}case"function":{if(e!==void 0){var u=X,m=r(e);return X=u,he(e,t,m)}break}}var l=r;if(t==null)return l;var p=t[l];return p!==void 0?p:l}function ir(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=he(e,t,r[a])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var c=s;t!=null&&t[c]!==void 0?n+=i+"{"+t[c]+"}":nt(c)&&(n+=Oe(i)+":"+at(i,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)nt(s[u])&&(n+=Oe(i)+":"+at(i,s[u])+";");else{var m=he(e,t,s);switch(i){case"animation":case"animationName":{n+=Oe(i)+":"+m+";";break}default:n+=i+"{"+m+"}"}}}return n}var it=/label:\s*([^\s;{]+)\s*(;|$)/g,X;function or(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";X=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=he(r,t,i);else{var s=i;a+=s[0]}for(var c=1;c<e.length;c++)if(a+=he(r,t,e[c]),n){var u=i;a+=u[c]}it.lastIndex=0;for(var m="",l;(l=it.exec(a))!==null;)m+="-"+l[1];var p=tr(a)+m;return{name:p,styles:a,next:X}}var sr=function(t){return t()},cr=Z.useInsertionEffect?Z.useInsertionEffect:!1,lr=cr||sr,ot=Z.createContext(typeof HTMLElement<"u"?Jt({key:"css"}):null);ot.Provider;var ur=function(t){return P.forwardRef(function(r,n){var a=P.useContext(ot);return t(r,a,n)})},dr=Z.createContext({}),fr=/^((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)-.*))$/,pr=Ze(function(e){return fr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),hr=pr,mr=function(t){return t!=="theme"},st=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?hr:mr},ct=function(t,r,n){var a;if(r){var i=r.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},yr=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return tt(r,n,a),lr(function(){return er(r,n,a)}),null},gr=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var c=ct(t,r,n),u=c||st(a),m=!u("as");return function(){var l=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),l[0]==null||l[0].raw===void 0)p.push.apply(p,l);else{var v=l[0];p.push(v[0]);for(var w=l.length,g=1;g<w;g++)p.push(l[g],v[g])}var f=ur(function(h,y,x){var A=m&&h.as||a,R="",C=[],T=h;if(h.theme==null){T={};for(var d in h)T[d]=h[d];T.theme=Z.useContext(dr)}typeof h.className=="string"?R=Qt(y.registered,C,h.className):h.className!=null&&(R=h.className+" ");var $=or(p.concat(C),y.registered,T);R+=y.key+"-"+$.name,s!==void 0&&(R+=" "+s);var I=m&&c===void 0?st(A):u,_={};for(var V in h)m&&V==="as"||I(V)&&(_[V]=h[V]);return _.className=R,x&&(_.ref=x),Z.createElement(Z.Fragment,null,Z.createElement(yr,{cache:y,serialized:$,isStringTag:typeof A=="string"}),Z.createElement(A,_))});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",{value:function(){return"."+s}}),f.withComponent=function(h,y){var x=e(h,Se({},r,y,{shouldForwardProp:ct(f,y,!0)}));return x.apply(void 0,p)},f}},br=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],oe=gr.bind(null);br.forEach(function(e){oe[e]=oe(e)});const vr=oe.div`
|
|
23
23
|
display: flex;
|
|
24
24
|
align-items: center;
|
|
25
25
|
justify-content: center;
|
|
@@ -47,26 +47,18 @@ React keys must be passed directly to JSX without using spread:
|
|
|
47
47
|
background-color: rgba(255, 165, 0, 0.1);
|
|
48
48
|
border: 1px solid orange;
|
|
49
49
|
`;default:return""}}}
|
|
50
|
-
`,je=({type:e,children:t,className:r,icon:n,action:a})=>N.jsxs(
|
|
50
|
+
`,je=({type:e,children:t,className:r,icon:n,action:a})=>N.jsxs(vr,{type:e,className:r,children:[n&&N.jsx("span",{children:n}),N.jsx("span",{children:t}),a&&N.jsx("span",{children:a})]}),$e=oe.div`
|
|
51
51
|
width: ${({width:e})=>e||"100%"};
|
|
52
52
|
height: ${({height:e})=>e||"100%"};
|
|
53
|
-
border-radius: 0px !important; /* Force remove rounded corners */
|
|
54
|
-
box-shadow: none !important;
|
|
53
|
+
border-radius: 0px !important; /* Force remove rounded corners on container */
|
|
54
|
+
box-shadow: none !important; /* Remove default border/halo */
|
|
55
|
+
border: none !important;
|
|
56
|
+
background: transparent !important;
|
|
55
57
|
position: relative;
|
|
56
58
|
z-index: 1002;
|
|
57
59
|
|
|
58
60
|
/* Hide specific elements inside the player */
|
|
59
61
|
${({$hiddenClasses:e})=>(e==null?void 0:e.length)&&e.map(t=>`.${t} { display: none !important; }`).join("")}
|
|
60
|
-
|
|
61
|
-
/* Remove rounded corners from all child elements */
|
|
62
|
-
* {
|
|
63
|
-
border-radius: 0px !important;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* Remove rounded corners from video element */
|
|
67
|
-
video {
|
|
68
|
-
border-radius: 0px !important;
|
|
69
|
-
}
|
|
70
62
|
`,lt=oe.div`
|
|
71
63
|
position: fixed;
|
|
72
64
|
top: 0;
|
|
@@ -80,15 +72,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
80
72
|
z-index: 1000;
|
|
81
73
|
pointer-events: auto;
|
|
82
74
|
`,ut=oe.div`
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
75
|
+
position: relative;
|
|
76
|
+
width: min(360px, 100%);
|
|
77
|
+
max-width: 360px;
|
|
78
|
+
aspect-ratio: 9 / 16;
|
|
79
|
+
height: auto;
|
|
80
|
+
z-index: 1001;
|
|
89
81
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
`,wr=(e,t)=>`https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`,dt=(e,t)=>`https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`,xr=(e,t)=>`https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}`,Pr=e=>`https://host.vpplayer.tech/player/${e}/vpplayer.js`,Le=(e,t)=>`vp-player-${e||"default"}-${t||""}`,Ne=new Map,ft=(e,t)=>{const[r,n]=P.useState(!1),[a,i]=P.useState(null);return P.useEffect(()=>{let s=null,c,u=0;const m=3;let l;try{l=t||Pr(e||"latest")}catch(w){const g=w instanceof Error?w.message:String(w);i(`Failed to resolve script URL: ${g}`),n(!1);return}if(Ne.get(l)){n(!0),i(null);return}if(document.querySelector(`script[src="${l}"]`)){Ne.set(l,!0),n(!0),i(null);return}const b=()=>{s=document.createElement("script"),s.src=l,s.async=!0,c=window.setTimeout(()=>{n(!1),i(`Loading script timed out: ${l}`)},1e4),s.onload=()=>{clearTimeout(c),Ne.set(l,!0),n(!0),i(null)},s.onerror=()=>{clearTimeout(c),u++,u<m?setTimeout(b,1e3*u):(n(!1),i(`Failed to load VP Player script after ${m} attempts: ${l}`))},document.body.appendChild(s)};return b(),()=>{clearTimeout(c),s&&document.body.contains(s)&&document.body.removeChild(s)}},[e,t]),{isLoaded:r,error:a}},kr={},me=new Map,Er=3e4,Ve=5,pt=({projectId:e,videoId:t,playlistId:r,videoUrl:n,apiKey:a})=>{const[i,s]=P.useState(null),[c,u]=P.useState(null),[m,l]=P.useState(!1),[p,b]=P.useState(null),w=a||(typeof kr<"u"?"1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E":void 0);return P.useEffect(()=>{const g=t?`video:${t}`:r?`playlist:${r}`:null;if(!e||n||!t&&!r){s(n||null),u(null),l(!1),b(null);return}if(!w){l(!1),b("No API key provided");return}if(g&&me.has(g)){const R=me.get(g);s(R.url),u(R.playlist),l(!1),b(null);return}let f=!0;const h=new AbortController,y=h.signal,A=setTimeout(async()=>{var C,T,d,$;if(!f)return;l(!0),b(null);let R=0;for(;R<Ve&&f;)try{const I=t&&!r?wr(e,t):dt(e,r),_=setTimeout(()=>h.abort(),Er),V=await fetch(I,{method:"GET",headers:{"api-key":w,Accept:"application/json","Cache-Control":"no-cache"},signal:y});if(clearTimeout(_),!V.ok)throw new Error(`Fetch failed with status ${V.status}`);const Y=await V.json();if(!f)return;if(t&&!r){const L=(T=(C=Y.result)==null?void 0:C.items)==null?void 0:T.find(W=>W.mediaId===t);if(!(L!=null&&L.playbackUrl))throw new Error("Invalid video data");s(L.playbackUrl),u(null),g&&me.set(g,{url:L.playbackUrl,playlist:null})}else{if(!Array.isArray(Y.result))throw new Error("Invalid playlist format");const L=xr(e,r),W=await fetch(L,{method:"GET",headers:{"api-key":w,Accept:"application/json","Cache-Control":"no-cache"},signal:y});if(W.ok){const K=await W.json();let G=[...Y.result];if((d=K.result)!=null&&d.playlistBackupState&&(($=K.result)!=null&&$.playlistBackupId)){const Q=dt(e,K.result.playlistBackupId),ee=await fetch(Q,{method:"GET",headers:{"api-key":w,Accept:"application/json","Cache-Control":"no-cache"},signal:y});if(ee.ok){const te=await ee.json();if(Array.isArray(te.result)){const o=te.result.map(v=>({...v,isBackupPlaylist:!0}));G=[...G,...o]}}}u(G),s(null),g&&me.set(g,{url:null,playlist:G})}else u(Y.result),s(null),g&&me.set(g,{url:null,playlist:Y.result})}break}catch(I){if(y.aborted){f&&b("Request timed out");break}if(R++,R>=Ve){const _=I instanceof Error?I.message:String(I);f&&b(`Failed after ${Ve} attempts: ${_}`)}else await new Promise(_=>setTimeout(_,2e3))}f&&l(!1)},100);return()=>{f=!1,clearTimeout(A),h.abort()}},[w,e,t,r,n]),{fetchedPlaybackUrl:i,fetchedPlaylist:c,isLoading:m,error:p}},_r={projectId:"vp-player-projectId",video:{file:"",playlist:{state:!0,playlistVideoIndex:0,videos:[]}},config:{autoplay:!0,muted:!0,loop:!1,size:{width:"100%",height:"30vh"},controls:{settingsButton:!0,chromecastButton:!1,nextButton:!0,fullscreenButton:!0,airplayButton:!1,bigPlayButton:!1,autopausePlayButton:!0,pictureInPictureButton:!1,relatedButton:!1,volumeButton:!0,shareButton:!0}}},ht=({videoUrl:e,fetchedPlaybackUrl:t,fetchedPlaylist:r,projectId:n,config:a={},isVerticalPlayer:i})=>{var l,p,b,w,g,f,h,y,x,A,R,C,T;const s={..._r,...a},c={...s.config,...a.config};if(e)return{...s,video:{...s.video,file:e,playlist:void 0},config:c};if(t)return{...s,video:{...s.video,file:t,playlist:void 0},config:c};if(r&&r.length>0){const d=((p=(l=a==null?void 0:a.video)==null?void 0:l.playlist)==null?void 0:p.playlistVideoIndex)??((b=a==null?void 0:a.config)==null?void 0:b.playlistVideoIndex)??0;return i?{...s,projectId:n||"vp-player-projectId",video:{...s.video,file:(w=r[0])==null?void 0:w.hlsUrl,title:(g=r[0])==null?void 0:g.title,playlist:{state:!0,playlistId:"",playlistVideoIndex:Number(d),videos:r.slice(1).map((I,_)=>({videoId:String(_+1),title:I.title,file:I.hlsUrl,thumbnailUrl:I.thumbnailUrl,duration:I.duration}))}},config:c}:{...s,projectId:n||"vp-player-projectId",video:{...s.video,file:((f=r[Number(d)])==null?void 0:f.hlsUrl)||((h=r[0])==null?void 0:h.hlsUrl)||"",title:((y=r[Number(d)])==null?void 0:y.title)||((x=r[0])==null?void 0:x.title),thumbnail:((A=r[Number(d)])==null?void 0:A.thumbnailUrl)||((R=r[0])==null?void 0:R.thumbnailUrl),playlist:{state:!0,playlistVideoIndex:Number(d),videos:r.map((I,_)=>({videoId:String(_),title:I.title,file:I.hlsUrl,thumbnailUrl:I.thumbnailUrl,duration:I.duration}))}},config:c}}const u=((C=a==null?void 0:a.video)==null?void 0:C.playlist)||s.video.playlist,m=(T=a==null?void 0:a.video)==null?void 0:T.file;if(m)return{...s,video:{...s.video,file:m,playlist:void 0},config:c};if(u!=null&&u.videos&&u.videos.length>0){const d=u.videos[Number(u.playlistVideoIndex)||0];return{...s,video:{...s.video,file:(d==null?void 0:d.file)||"",playlist:{...u,state:u.state??!0,playlistVideoIndex:Number(u.playlistVideoIndex||0),videos:u.videos}},config:{...s.config,...a==null?void 0:a.config}}}throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.")},mt=e=>{if(!e)return;const t=/https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/,r=e.match(t);return r?r[2]:void 0},yt=({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:s,config:c={},apiKey:u,isReels:m=!1})=>{const l=P.useRef(null),p=P.useRef(null),{isLoaded:b,error:w}=ft(r,s),g=t||mt(s),[f,h]=P.useState(null),{fetchedPlaybackUrl:y,fetchedPlaylist:x,isLoading:A,error:R}=pt({projectId:a,videoId:g,playlistId:i,videoUrl:n,apiKey:u}),C=Le(e,g),T=P.useMemo(()=>{const d=c.config||{},$=m&&!d.size?{sizeType:"RESPONSIVE",aspectRatio:"9:16"}:d.size||{sizeType:"FIXED",width:"100%"};return{...c,config:{...d,size:$}}},[c,m]);return P.useEffect(()=>{if(w){h(w);return}if(!b||A&&!n)return;let d=!0;const I=setTimeout(async()=>{try{const _=s==null?void 0:s.includes("vertical-player");if(document.querySelectorAll('[id*="player"]').forEach(G=>{var ee,te;const Q=G.id;if(Q!==C)try{const o=_?(ee=window.vpVerticalPlayer)==null?void 0:ee.call(window,Q):(te=window.vpPlayer)==null?void 0:te.call(window,Q);o!=null&&o.destroy&&o.destroy()}catch(o){console.warn(`Failed to destroy existing player ${Q}:`,o)}}),await new Promise(G=>setTimeout(G,100)),!d||!l.current)return;if(!document.getElementById(C)){h("DOM element not found after cleanup.");return}if(!window.vpPlayer&&!window.vpVerticalPlayer){h("VP Player script not loaded.");return}const L=_?window.vpVerticalPlayer:window.vpPlayer;if(!L){h(`VP ${_?"Vertical ":""}Player script not loaded.`);return}const W=ht({videoUrl:n,fetchedPlaybackUrl:y??void 0,fetchedPlaylist:x??void 0,projectId:a,config:T,isVerticalPlayer:_}),K=L(C);if(!K){h(`Failed to create VP ${_?"Vertical ":""}Player instance.`);return}d&&l.current&&(K.setup(W),p.current=K,h(null))}catch(_){if(d){const V=_ instanceof Error?_.message:String(_);h(V),console.error("VP Player initialization error:",_)}}},150);return()=>{d=!1,clearTimeout(I)}},[b,A,n,y,x,a,T,C,w,s]),P.useEffect(()=>()=>{if(p.current){try{p.current.destroy&&p.current.destroy()}catch($){console.warn(`Failed to destroy player ${C}:`,$)}p.current=null}const d=document.getElementById(C);d&&(d.innerHTML="")},[C]),{playerRef:l,playerInstanceRef:p,isScriptLoaded:b,isLoading:A,error:R||f||w}},gt=({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:s,config:c={},apiKey:u,isReels:m=!1,hiddenClasses:l=[],onClose:p,className:b})=>{var I,_,V,Y;const{playerRef:w,playerInstanceRef:g,isScriptLoaded:f,isLoading:h,error:y}=yt({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:s,config:c,apiKey:u,isReels:m}),[x,A]=P.useState(!0),R=()=>m&&A(!0),C=()=>{var L,W;A(!1),(W=(L=g.current)==null?void 0:L.play)==null||W.call(L),p==null||p()},T=(_=(I=c==null?void 0:c.config)==null?void 0:I.size)!=null&&_.width?typeof c.config.size.width=="number"?`${c.config.size.width}px`:c.config.size.width:void 0,d=(Y=(V=c==null?void 0:c.config)==null?void 0:V.size)!=null&&Y.height?typeof c.config.size.height=="number"?`${c.config.size.height}px`:c.config.size.height:void 0,$=Le(e,t);return y?N.jsxs(je,{type:"error",children:["An error occurred: ",y]}):h||!f?N.jsx(je,{type:"loading",children:"Loading..."}):N.jsxs(N.Fragment,{children:[m&&!x?N.jsx("div",{onClick:R}):null,!m&&N.jsx("div",{children:N.jsx($e,{id:$,ref:w,width:T||"100%",height:d||"auto",$hiddenClasses:l,className:b})},$),m&&x&&N.jsx(lt,{onClick:C,className:b,children:N.jsx(ut,{className:b,onClick:L=>L.stopPropagation(),children:N.jsx("div",{children:N.jsx($e,{id:$,ref:w,width:"100%",height:"auto",$hiddenClasses:l,className:b})},$)})})]})},vt=P.createContext(void 0),Sr=({children:e})=>{const[t,r]=P.useState(!1),[n,a]=P.useState(null),[i,s]=P.useState(null),c=P.useCallback(l=>{try{const p=Le(l.playerId,l.videoId);a({...l,playerId:p}),r(!0),s(null)}catch{s("Failed to show player.")}},[]),u=P.useCallback(()=>{r(!1),a(null),s(null)},[]),m=P.useMemo(()=>({showPlayer:c,hidePlayer:u,isPlayerVisible:t,playerParams:n}),[c,u,t,n]);return N.jsxs(vt.Provider,{value:m,children:[e,i&&N.jsx(je,{type:"error",children:i}),t&&(n==null?void 0:n.playerId)&&N.jsx(gt,{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:u,hiddenClasses:n.hiddenClasses||[],apiKey:n.apiKey,className:n.className})]})},Ar=()=>{const e=P.useContext(vt);if(!e)throw new Error("useVPPlayer must be used within a VPPlayerProvider");return e},Cr={projectId:"vp-player-projectId",video:{file:"",playlist:{state:!0,playlistVideoIndex:0,videos:[]}},config:{autoplay:!0,pauseOtherVideos:!0,focusOnAutostart:!1,muted:!0,loop:!1,size:{width:"100%"},controls:{settingsButton:!0,chromecastButton:!1,nextButton:!1,fullscreenButton:!0,airplayButton:!1,bigPlayButton:!1,autopausePlayButton:!0,pictureInPictureButton:!1,relatedButton:!1,volumeButton:!0,shareButton:!0}}},Tr={config:{autostartOnLoad:{state:!0,onMobile:!0,onData:!0},muted:!0}},Rr={config:{autoplay:!0,muted:!0}},_e={video:{advertising:!0,ads:{skipAd:{state:!0,skipFrom:5}}},config:{adAnnouncement:{state:!0,timeBeforeAd:5},adsRequireInteraction:!1}},Ir=(e,t,r="time",n=0)=>{var a;return{..._e,video:{..._e.video,ads:{...(a=_e.video)==null?void 0:a.ads,adBreaks:[{adTagUrl:t,breakType:e,breakTimingType:r,breakTimingValue:n}]}}}},Or="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",jr="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4",$r="https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4",Lr="https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600",Nr="https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=",Vr="https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=";S.AD_TAG_LINEAR_URL=Nr,S.AD_TAG_SKIPPABLE_LINEAR_URL=Vr,S.BIG_BUCK_BUNNY_URL=Or,S.ELEPHANTS_DREAM_URL=jr,S.Overlay=lt,S.PEXELS_THUMBNAIL_URL=Lr,S.PEXELS_VERTICAL_VIDEO_URL=$r,S.PlayerContainer=$e,S.PlayerWrapper=ut,S.VPPlayer=gt,S.VPPlayerProvider=Sr,S.baseConfig=Tr,S.baseConfigWithAds=_e,S.baseConfigWithAutoplay=Rr,S.buildVPPlayerConfig=ht,S.defaultVPPlayerConfig=Cr,S.extractVideoId=mt,S.getAdConfig=Ir,S.useVPPlayer=Ar,S.useVPPlayerLogic=yt,S.useVPPlayerScript=ft,S.useVideoData=pt,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|
|
82
|
+
@media (max-width: 420px) {
|
|
83
|
+
width: 100%;
|
|
84
|
+
max-width: 100%;
|
|
85
|
+
}
|
|
86
|
+
`,wr=(e,t)=>`https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`,dt=(e,t)=>`https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`,xr=(e,t)=>`https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}`,Pr=e=>`https://host.vpplayer.tech/player/${e}/vpplayer.js`,Le=(e,t)=>`vp-player-${e||"default"}-${t||""}`,Ne=new Map,ft=(e,t)=>{const[r,n]=P.useState(!1),[a,i]=P.useState(null);return P.useEffect(()=>{let s=null,c,u=0;const m=3;let l;try{l=t||Pr(e||"latest")}catch(w){const g=w instanceof Error?w.message:String(w);i(`Failed to resolve script URL: ${g}`),n(!1);return}if(Ne.get(l)){n(!0),i(null);return}if(document.querySelector(`script[src="${l}"]`)){Ne.set(l,!0),n(!0),i(null);return}const v=()=>{s=document.createElement("script"),s.src=l,s.async=!0,c=window.setTimeout(()=>{n(!1),i(`Loading script timed out: ${l}`)},1e4),s.onload=()=>{clearTimeout(c),Ne.set(l,!0),n(!0),i(null)},s.onerror=()=>{clearTimeout(c),u++,u<m?setTimeout(v,1e3*u):(n(!1),i(`Failed to load VP Player script after ${m} attempts: ${l}`))},document.body.appendChild(s)};return v(),()=>{clearTimeout(c),s&&document.body.contains(s)&&document.body.removeChild(s)}},[e,t]),{isLoaded:r,error:a}},kr={},me=new Map,Er=3e4,Ve=5,pt=({projectId:e,videoId:t,playlistId:r,videoUrl:n,apiKey:a})=>{const[i,s]=P.useState(null),[c,u]=P.useState(null),[m,l]=P.useState(!1),[p,v]=P.useState(null),w=a||(typeof kr<"u"?"1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E":void 0);return P.useEffect(()=>{const g=t?`video:${t}`:r?`playlist:${r}`:null;if(!e||n||!t&&!r){s(n||null),u(null),l(!1),v(null);return}if(!w){l(!1),v("No API key provided");return}if(g&&me.has(g)){const R=me.get(g);s(R.url),u(R.playlist),l(!1),v(null);return}let f=!0;const h=new AbortController,y=h.signal,A=setTimeout(async()=>{var C,T,d,$;if(!f)return;l(!0),v(null);let R=0;for(;R<Ve&&f;)try{const I=t&&!r?wr(e,t):dt(e,r),_=setTimeout(()=>h.abort(),Er),V=await fetch(I,{method:"GET",headers:{"api-key":w,Accept:"application/json","Cache-Control":"no-cache"},signal:y});if(clearTimeout(_),!V.ok)throw new Error(`Fetch failed with status ${V.status}`);const Y=await V.json();if(!f)return;if(t&&!r){const L=(T=(C=Y.result)==null?void 0:C.items)==null?void 0:T.find(W=>W.mediaId===t);if(!(L!=null&&L.playbackUrl))throw new Error("Invalid video data");s(L.playbackUrl),u(null),g&&me.set(g,{url:L.playbackUrl,playlist:null})}else{if(!Array.isArray(Y.result))throw new Error("Invalid playlist format");const L=xr(e,r),W=await fetch(L,{method:"GET",headers:{"api-key":w,Accept:"application/json","Cache-Control":"no-cache"},signal:y});if(W.ok){const K=await W.json();let G=[...Y.result];if((d=K.result)!=null&&d.playlistBackupState&&(($=K.result)!=null&&$.playlistBackupId)){const Q=dt(e,K.result.playlistBackupId),ee=await fetch(Q,{method:"GET",headers:{"api-key":w,Accept:"application/json","Cache-Control":"no-cache"},signal:y});if(ee.ok){const te=await ee.json();if(Array.isArray(te.result)){const o=te.result.map(b=>({...b,isBackupPlaylist:!0}));G=[...G,...o]}}}u(G),s(null),g&&me.set(g,{url:null,playlist:G})}else u(Y.result),s(null),g&&me.set(g,{url:null,playlist:Y.result})}break}catch(I){if(y.aborted){f&&v("Request timed out");break}if(R++,R>=Ve){const _=I instanceof Error?I.message:String(I);f&&v(`Failed after ${Ve} attempts: ${_}`)}else await new Promise(_=>setTimeout(_,2e3))}f&&l(!1)},100);return()=>{f=!1,clearTimeout(A),h.abort()}},[w,e,t,r,n]),{fetchedPlaybackUrl:i,fetchedPlaylist:c,isLoading:m,error:p}},_r={projectId:"vp-player-projectId",video:{file:"",playlist:{state:!0,playlistVideoIndex:0,videos:[]}},config:{autoplay:!0,muted:!0,loop:!1,size:{width:"100%",height:"30vh"},controls:{settingsButton:!0,chromecastButton:!1,nextButton:!0,fullscreenButton:!0,airplayButton:!1,bigPlayButton:!1,autopausePlayButton:!0,pictureInPictureButton:!1,relatedButton:!1,volumeButton:!0,shareButton:!0}}},ht=({videoUrl:e,fetchedPlaybackUrl:t,fetchedPlaylist:r,projectId:n,config:a={},isVerticalPlayer:i})=>{var l,p,v,w,g,f,h,y,x,A,R,C,T;const s={..._r,...a},c={...s.config,...a.config};if(e)return{...s,video:{...s.video,file:e,playlist:void 0},config:c};if(t)return{...s,video:{...s.video,file:t,playlist:void 0},config:c};if(r&&r.length>0){const d=((p=(l=a==null?void 0:a.video)==null?void 0:l.playlist)==null?void 0:p.playlistVideoIndex)??((v=a==null?void 0:a.config)==null?void 0:v.playlistVideoIndex)??0;return i?{...s,projectId:n||"vp-player-projectId",video:{...s.video,file:(w=r[0])==null?void 0:w.hlsUrl,title:(g=r[0])==null?void 0:g.title,playlist:{state:!0,playlistId:"",playlistVideoIndex:Number(d),videos:r.slice(1).map((I,_)=>({videoId:String(_+1),title:I.title,file:I.hlsUrl,thumbnailUrl:I.thumbnailUrl,duration:I.duration}))}},config:c}:{...s,projectId:n||"vp-player-projectId",video:{...s.video,file:((f=r[Number(d)])==null?void 0:f.hlsUrl)||((h=r[0])==null?void 0:h.hlsUrl)||"",title:((y=r[Number(d)])==null?void 0:y.title)||((x=r[0])==null?void 0:x.title),thumbnail:((A=r[Number(d)])==null?void 0:A.thumbnailUrl)||((R=r[0])==null?void 0:R.thumbnailUrl),playlist:{state:!0,playlistVideoIndex:Number(d),videos:r.map((I,_)=>({videoId:String(_),title:I.title,file:I.hlsUrl,thumbnailUrl:I.thumbnailUrl,duration:I.duration}))}},config:c}}const u=((C=a==null?void 0:a.video)==null?void 0:C.playlist)||s.video.playlist,m=(T=a==null?void 0:a.video)==null?void 0:T.file;if(m)return{...s,video:{...s.video,file:m,playlist:void 0},config:c};if(u!=null&&u.videos&&u.videos.length>0){const d=u.videos[Number(u.playlistVideoIndex)||0];return{...s,video:{...s.video,file:(d==null?void 0:d.file)||"",playlist:{...u,state:u.state??!0,playlistVideoIndex:Number(u.playlistVideoIndex||0),videos:u.videos}},config:{...s.config,...a==null?void 0:a.config}}}throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.")},mt=e=>{if(!e)return;const t=/https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/,r=e.match(t);return r?r[2]:void 0},yt=({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:s,config:c={},apiKey:u,isReels:m=!1})=>{const l=P.useRef(null),p=P.useRef(null),{isLoaded:v,error:w}=ft(r,s),g=t||mt(s),[f,h]=P.useState(null),{fetchedPlaybackUrl:y,fetchedPlaylist:x,isLoading:A,error:R}=pt({projectId:a,videoId:g,playlistId:i,videoUrl:n,apiKey:u}),C=Le(e,g),T=P.useMemo(()=>{const d=c.config||{},$=m&&!d.size?{sizeType:"RESPONSIVE",aspectRatio:"9:16"}:d.size||{sizeType:"FIXED",width:"100%"};return{...c,config:{...d,size:$}}},[c,m]);return P.useEffect(()=>{if(w){h(w);return}if(!v||A&&!n)return;let d=!0;const I=setTimeout(async()=>{try{const _=s==null?void 0:s.includes("vertical-player");if(document.querySelectorAll('[id*="player"]').forEach(G=>{var ee,te;const Q=G.id;if(Q!==C)try{const o=_?(ee=window.vpVerticalPlayer)==null?void 0:ee.call(window,Q):(te=window.vpPlayer)==null?void 0:te.call(window,Q);o!=null&&o.destroy&&o.destroy()}catch(o){console.warn(`Failed to destroy existing player ${Q}:`,o)}}),await new Promise(G=>setTimeout(G,100)),!d||!l.current)return;if(!document.getElementById(C)){h("DOM element not found after cleanup.");return}if(!window.vpPlayer&&!window.vpVerticalPlayer){h("VP Player script not loaded.");return}const L=_?window.vpVerticalPlayer:window.vpPlayer;if(!L){h(`VP ${_?"Vertical ":""}Player script not loaded.`);return}const W=ht({videoUrl:n,fetchedPlaybackUrl:y??void 0,fetchedPlaylist:x??void 0,projectId:a,config:T,isVerticalPlayer:_}),K=L(C);if(!K){h(`Failed to create VP ${_?"Vertical ":""}Player instance.`);return}d&&l.current&&(K.setup(W),p.current=K,h(null))}catch(_){if(d){const V=_ instanceof Error?_.message:String(_);h(V),console.error("VP Player initialization error:",_)}}},150);return()=>{d=!1,clearTimeout(I)}},[v,A,n,y,x,a,T,C,w,s]),P.useEffect(()=>()=>{if(p.current){try{p.current.destroy&&p.current.destroy()}catch($){console.warn(`Failed to destroy player ${C}:`,$)}p.current=null}const d=document.getElementById(C);d&&(d.innerHTML="")},[C]),{playerRef:l,playerInstanceRef:p,isScriptLoaded:v,isLoading:A,error:R||f||w}},gt=({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:s,config:c={},apiKey:u,isReels:m=!1,hiddenClasses:l=[],onClose:p,className:v})=>{var I,_,V,Y;const{playerRef:w,playerInstanceRef:g,isScriptLoaded:f,isLoading:h,error:y}=yt({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:s,config:c,apiKey:u,isReels:m}),[x,A]=P.useState(!0),R=()=>m&&A(!0),C=()=>{var L,W;A(!1),(W=(L=g.current)==null?void 0:L.play)==null||W.call(L),p==null||p()},T=(_=(I=c==null?void 0:c.config)==null?void 0:I.size)!=null&&_.width?typeof c.config.size.width=="number"?`${c.config.size.width}px`:c.config.size.width:void 0,d=(Y=(V=c==null?void 0:c.config)==null?void 0:V.size)!=null&&Y.height?typeof c.config.size.height=="number"?`${c.config.size.height}px`:c.config.size.height:void 0,$=Le(e,t);return y?N.jsxs(je,{type:"error",children:["An error occurred: ",y]}):h||!f?N.jsx(je,{type:"loading",children:"Loading..."}):N.jsxs(N.Fragment,{children:[m&&!x?N.jsx("div",{onClick:R}):null,!m&&N.jsx("div",{children:N.jsx($e,{id:$,ref:w,width:T||"100%",height:d||"auto",$hiddenClasses:l,className:v})},$),m&&x&&N.jsx(lt,{onClick:C,className:v,children:N.jsx(ut,{className:v,onClick:L=>L.stopPropagation(),children:N.jsx("div",{children:N.jsx($e,{id:$,ref:w,width:"100%",height:"auto",$hiddenClasses:l,className:v})},$)})})]})},bt=P.createContext(void 0),Sr=({children:e})=>{const[t,r]=P.useState(!1),[n,a]=P.useState(null),[i,s]=P.useState(null),c=P.useCallback(l=>{try{const p=Le(l.playerId,l.videoId);a({...l,playerId:p}),r(!0),s(null)}catch{s("Failed to show player.")}},[]),u=P.useCallback(()=>{r(!1),a(null),s(null)},[]),m=P.useMemo(()=>({showPlayer:c,hidePlayer:u,isPlayerVisible:t,playerParams:n}),[c,u,t,n]);return N.jsxs(bt.Provider,{value:m,children:[e,i&&N.jsx(je,{type:"error",children:i}),t&&(n==null?void 0:n.playerId)&&N.jsx(gt,{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:u,hiddenClasses:n.hiddenClasses||[],apiKey:n.apiKey,className:n.className})]})},Ar=()=>{const e=P.useContext(bt);if(!e)throw new Error("useVPPlayer must be used within a VPPlayerProvider");return e},Cr={projectId:"vp-player-projectId",video:{file:"",playlist:{state:!0,playlistVideoIndex:0,videos:[]}},config:{autoplay:!0,pauseOtherVideos:!0,focusOnAutostart:!1,muted:!0,loop:!1,size:{width:"100%"},controls:{settingsButton:!0,chromecastButton:!1,nextButton:!1,fullscreenButton:!0,airplayButton:!1,bigPlayButton:!1,autopausePlayButton:!0,pictureInPictureButton:!1,relatedButton:!1,volumeButton:!0,shareButton:!0}}},Tr={config:{autostartOnLoad:{state:!0,onMobile:!0,onData:!0},muted:!0}},Rr={config:{autoplay:!0,muted:!0}},_e={video:{advertising:!0,ads:{skipAd:{state:!0,skipFrom:5}}},config:{adAnnouncement:{state:!0,timeBeforeAd:5},adsRequireInteraction:!1}},Ir=(e,t,r="time",n=0)=>{var a;return{..._e,video:{..._e.video,ads:{...(a=_e.video)==null?void 0:a.ads,adBreaks:[{adTagUrl:t,breakType:e,breakTimingType:r,breakTimingValue:n}]}}}},Or="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",jr="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4",$r="https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4",Lr="https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600",Nr="https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=",Vr="https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=";S.AD_TAG_LINEAR_URL=Nr,S.AD_TAG_SKIPPABLE_LINEAR_URL=Vr,S.BIG_BUCK_BUNNY_URL=Or,S.ELEPHANTS_DREAM_URL=jr,S.Overlay=lt,S.PEXELS_THUMBNAIL_URL=Lr,S.PEXELS_VERTICAL_VIDEO_URL=$r,S.PlayerContainer=$e,S.PlayerWrapper=ut,S.VPPlayer=gt,S.VPPlayerProvider=Sr,S.baseConfig=Tr,S.baseConfigWithAds=_e,S.baseConfigWithAutoplay=Rr,S.buildVPPlayerConfig=ht,S.defaultVPPlayerConfig=Cr,S.extractVideoId=mt,S.getAdConfig=Ir,S.useVPPlayer=Ar,S.useVPPlayerLogic=yt,S.useVPPlayerScript=ft,S.useVideoData=pt,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
|