@devix-technologies/react-gjirafa-vp-player 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as G from "react";
|
|
2
|
-
import
|
|
3
|
-
var
|
|
2
|
+
import yt, { forwardRef as gt, useContext as tt, useState as D, useEffect as se, useRef as Ve, useMemo as rt, createContext as vt, useCallback as ze } from "react";
|
|
3
|
+
var fe = { exports: {} }, ae = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -10,12 +10,12 @@ var de = { exports: {} }, ae = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
var e = Symbol.for("react.transitional.element"),
|
|
18
|
-
function
|
|
13
|
+
var De;
|
|
14
|
+
function bt() {
|
|
15
|
+
if (De) return ae;
|
|
16
|
+
De = 1;
|
|
17
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
18
|
+
function r(n, a, i) {
|
|
19
19
|
var c = null;
|
|
20
20
|
if (i !== void 0 && (c = "" + i), a.key !== void 0 && (c = "" + a.key), "key" in a) {
|
|
21
21
|
i = {};
|
|
@@ -30,7 +30,7 @@ function br() {
|
|
|
30
30
|
props: i
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return ae.Fragment =
|
|
33
|
+
return ae.Fragment = t, ae.jsx = r, ae.jsxs = r, ae;
|
|
34
34
|
}
|
|
35
35
|
var ie = {};
|
|
36
36
|
/**
|
|
@@ -42,9 +42,9 @@ var ie = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
45
|
+
var Ue;
|
|
46
|
+
function xt() {
|
|
47
|
+
return Ue || (Ue = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
48
|
function e(o) {
|
|
49
49
|
if (o == null) return null;
|
|
50
50
|
if (typeof o == "function")
|
|
@@ -53,15 +53,15 @@ function vr() {
|
|
|
53
53
|
switch (o) {
|
|
54
54
|
case p:
|
|
55
55
|
return "Fragment";
|
|
56
|
-
case
|
|
56
|
+
case v:
|
|
57
57
|
return "Profiler";
|
|
58
58
|
case y:
|
|
59
59
|
return "StrictMode";
|
|
60
60
|
case E:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case S:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case B:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
67
|
if (typeof o == "object")
|
|
@@ -70,16 +70,16 @@ function vr() {
|
|
|
70
70
|
), o.$$typeof) {
|
|
71
71
|
case x:
|
|
72
72
|
return "Portal";
|
|
73
|
-
case
|
|
73
|
+
case _:
|
|
74
74
|
return (o.displayName || "Context") + ".Provider";
|
|
75
|
-
case
|
|
75
|
+
case b:
|
|
76
76
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
|
-
case
|
|
77
|
+
case A:
|
|
78
78
|
var g = o.render;
|
|
79
79
|
return o = o.displayName, o || (o = g.displayName || g.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
80
|
-
case
|
|
80
|
+
case f:
|
|
81
81
|
return g = o.displayName || null, g !== null ? g : e(o.type) || "Memo";
|
|
82
|
-
case
|
|
82
|
+
case C:
|
|
83
83
|
g = o._payload, o = o._init;
|
|
84
84
|
try {
|
|
85
85
|
return e(o(g));
|
|
@@ -88,29 +88,29 @@ function vr() {
|
|
|
88
88
|
}
|
|
89
89
|
return null;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function t(o) {
|
|
92
92
|
return "" + o;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function r(o) {
|
|
95
95
|
try {
|
|
96
|
-
|
|
96
|
+
t(o);
|
|
97
97
|
var g = !1;
|
|
98
98
|
} catch {
|
|
99
99
|
g = !0;
|
|
100
100
|
}
|
|
101
101
|
if (g) {
|
|
102
102
|
g = console;
|
|
103
|
-
var R = g.error,
|
|
103
|
+
var R = g.error, $ = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
104
|
return R.call(
|
|
105
105
|
g,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
-
|
|
108
|
-
),
|
|
107
|
+
$
|
|
108
|
+
), t(o);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
function n(o) {
|
|
112
112
|
if (o === p) return "<>";
|
|
113
|
-
if (typeof o == "object" && o !== null && o.$$typeof ===
|
|
113
|
+
if (typeof o == "object" && o !== null && o.$$typeof === C)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
116
|
var g = e(o);
|
|
@@ -120,7 +120,7 @@ function vr() {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
function a() {
|
|
123
|
-
var o =
|
|
123
|
+
var o = L.A;
|
|
124
124
|
return o === null ? null : o.getOwner();
|
|
125
125
|
}
|
|
126
126
|
function i() {
|
|
@@ -145,13 +145,13 @@ function vr() {
|
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function d() {
|
|
149
149
|
var o = e(this.type);
|
|
150
150
|
return K[o] || (K[o] = !0, console.error(
|
|
151
151
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
152
152
|
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
153
153
|
}
|
|
154
|
-
function h(o, g, R,
|
|
154
|
+
function h(o, g, R, $, J, U, ke, Pe) {
|
|
155
155
|
return R = U.ref, o = {
|
|
156
156
|
$$typeof: w,
|
|
157
157
|
type: o,
|
|
@@ -160,7 +160,7 @@ function vr() {
|
|
|
160
160
|
_owner: J
|
|
161
161
|
}, (R !== void 0 ? R : null) !== null ? Object.defineProperty(o, "ref", {
|
|
162
162
|
enumerable: !1,
|
|
163
|
-
get:
|
|
163
|
+
get: d
|
|
164
164
|
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
165
165
|
configurable: !1,
|
|
166
166
|
enumerable: !1,
|
|
@@ -183,13 +183,13 @@ function vr() {
|
|
|
183
183
|
value: Pe
|
|
184
184
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
185
185
|
}
|
|
186
|
-
function l(o, g, R,
|
|
186
|
+
function l(o, g, R, $, J, U, ke, Pe) {
|
|
187
187
|
var F = g.children;
|
|
188
188
|
if (F !== void 0)
|
|
189
|
-
if (
|
|
190
|
-
if (
|
|
191
|
-
for (
|
|
192
|
-
u(F[
|
|
189
|
+
if ($)
|
|
190
|
+
if (z(F)) {
|
|
191
|
+
for ($ = 0; $ < F.length; $++)
|
|
192
|
+
u(F[$]);
|
|
193
193
|
Object.freeze && Object.freeze(F);
|
|
194
194
|
} else
|
|
195
195
|
console.error(
|
|
@@ -198,23 +198,23 @@ function vr() {
|
|
|
198
198
|
else u(F);
|
|
199
199
|
if (H.call(g, "key")) {
|
|
200
200
|
F = e(o);
|
|
201
|
-
var Z = Object.keys(g).filter(function(
|
|
202
|
-
return
|
|
201
|
+
var Z = Object.keys(g).filter(function(mt) {
|
|
202
|
+
return mt !== "key";
|
|
203
203
|
});
|
|
204
|
-
|
|
204
|
+
$ = 0 < Z.length ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}", Me[F + $] || (Z = 0 < Z.length ? "{" + Z.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
|
+
$,
|
|
212
212
|
F,
|
|
213
213
|
Z,
|
|
214
214
|
F
|
|
215
|
-
),
|
|
215
|
+
), Me[F + $] = !0);
|
|
216
216
|
}
|
|
217
|
-
if (F = null, R !== void 0 && (
|
|
217
|
+
if (F = null, R !== void 0 && (r(R), F = "" + R), c(g) && (r(g.key), F = "" + g.key), "key" in g) {
|
|
218
218
|
R = {};
|
|
219
219
|
for (var Ee in g)
|
|
220
220
|
Ee !== "key" && (R[Ee] = g[Ee]);
|
|
@@ -236,7 +236,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
236
236
|
function u(o) {
|
|
237
237
|
typeof o == "object" && o !== null && o.$$typeof === w && o._store && (o._store.validated = 1);
|
|
238
238
|
}
|
|
239
|
-
var m =
|
|
239
|
+
var m = yt, w = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), A = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), I = Symbol.for("react.client.reference"), L = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, H = Object.prototype.hasOwnProperty, z = Array.isArray, X = console.createTask ? console.createTask : function() {
|
|
240
240
|
return null;
|
|
241
241
|
};
|
|
242
242
|
m = {
|
|
@@ -244,78 +244,78 @@ React keys must be passed directly to JSX without using spread:
|
|
|
244
244
|
return o();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
|
-
var ne, K = {},
|
|
247
|
+
var ne, K = {}, Le = m["react-stack-bottom-frame"].bind(
|
|
248
248
|
m,
|
|
249
249
|
i
|
|
250
|
-
)(),
|
|
251
|
-
ie.Fragment = p, ie.jsx = function(o, g, R,
|
|
252
|
-
var U = 1e4 >
|
|
250
|
+
)(), Be = X(n(i)), Me = {};
|
|
251
|
+
ie.Fragment = p, ie.jsx = function(o, g, R, $, J) {
|
|
252
|
+
var U = 1e4 > L.recentlyCreatedOwnerStacks++;
|
|
253
253
|
return l(
|
|
254
254
|
o,
|
|
255
255
|
g,
|
|
256
256
|
R,
|
|
257
257
|
!1,
|
|
258
|
-
|
|
258
|
+
$,
|
|
259
259
|
J,
|
|
260
|
-
U ? Error("react-stack-top-frame") :
|
|
261
|
-
U ? X(n(o)) :
|
|
260
|
+
U ? Error("react-stack-top-frame") : Le,
|
|
261
|
+
U ? X(n(o)) : Be
|
|
262
262
|
);
|
|
263
|
-
}, ie.jsxs = function(o, g, R,
|
|
264
|
-
var U = 1e4 >
|
|
263
|
+
}, ie.jsxs = function(o, g, R, $, J) {
|
|
264
|
+
var U = 1e4 > L.recentlyCreatedOwnerStacks++;
|
|
265
265
|
return l(
|
|
266
266
|
o,
|
|
267
267
|
g,
|
|
268
268
|
R,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
270
|
+
$,
|
|
271
271
|
J,
|
|
272
|
-
U ? Error("react-stack-top-frame") :
|
|
273
|
-
U ? X(n(o)) :
|
|
272
|
+
U ? Error("react-stack-top-frame") : Le,
|
|
273
|
+
U ? X(n(o)) : Be
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
276
|
}()), ie;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
280
|
-
return
|
|
278
|
+
var We;
|
|
279
|
+
function wt() {
|
|
280
|
+
return We || (We = 1, process.env.NODE_ENV === "production" ? fe.exports = bt() : fe.exports = xt()), fe.exports;
|
|
281
281
|
}
|
|
282
|
-
var O =
|
|
283
|
-
function
|
|
284
|
-
return
|
|
285
|
-
for (var
|
|
286
|
-
var
|
|
287
|
-
for (var n in
|
|
282
|
+
var O = wt();
|
|
283
|
+
function Ae() {
|
|
284
|
+
return Ae = Object.assign ? Object.assign.bind() : function(e) {
|
|
285
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
286
|
+
var r = arguments[t];
|
|
287
|
+
for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
288
288
|
}
|
|
289
289
|
return e;
|
|
290
|
-
},
|
|
290
|
+
}, Ae.apply(null, arguments);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function kt(e) {
|
|
293
293
|
if (e.sheet)
|
|
294
294
|
return e.sheet;
|
|
295
|
-
for (var
|
|
296
|
-
if (document.styleSheets[
|
|
297
|
-
return document.styleSheets[
|
|
295
|
+
for (var t = 0; t < document.styleSheets.length; t++)
|
|
296
|
+
if (document.styleSheets[t].ownerNode === e)
|
|
297
|
+
return document.styleSheets[t];
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
var
|
|
301
|
-
return
|
|
299
|
+
function Pt(e) {
|
|
300
|
+
var t = document.createElement("style");
|
|
301
|
+
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;
|
|
302
302
|
}
|
|
303
|
-
var
|
|
304
|
-
function e(
|
|
303
|
+
var Et = /* @__PURE__ */ function() {
|
|
304
|
+
function e(r) {
|
|
305
305
|
var n = this;
|
|
306
306
|
this._insertTag = function(a) {
|
|
307
307
|
var i;
|
|
308
308
|
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);
|
|
309
|
-
}, this.isSpeedy =
|
|
309
|
+
}, 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;
|
|
310
310
|
}
|
|
311
|
-
var
|
|
312
|
-
return
|
|
311
|
+
var t = e.prototype;
|
|
312
|
+
return t.hydrate = function(n) {
|
|
313
313
|
n.forEach(this._insertTag);
|
|
314
|
-
},
|
|
315
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
314
|
+
}, t.insert = function(n) {
|
|
315
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Pt(this));
|
|
316
316
|
var a = this.tags[this.tags.length - 1];
|
|
317
317
|
if (this.isSpeedy) {
|
|
318
|
-
var i =
|
|
318
|
+
var i = kt(a);
|
|
319
319
|
try {
|
|
320
320
|
i.insertRule(n, i.cssRules.length);
|
|
321
321
|
} catch {
|
|
@@ -323,70 +323,70 @@ var Pr = /* @__PURE__ */ function() {
|
|
|
323
323
|
} else
|
|
324
324
|
a.appendChild(document.createTextNode(n));
|
|
325
325
|
this.ctr++;
|
|
326
|
-
},
|
|
326
|
+
}, t.flush = function() {
|
|
327
327
|
this.tags.forEach(function(n) {
|
|
328
328
|
var a;
|
|
329
329
|
return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
|
|
330
330
|
}), this.tags = [], this.ctr = 0;
|
|
331
331
|
}, e;
|
|
332
|
-
}(), N = "-ms-",
|
|
333
|
-
function
|
|
334
|
-
return
|
|
332
|
+
}(), N = "-ms-", ve = "-moz-", k = "-webkit-", nt = "comm", je = "rule", $e = "decl", _t = "@import", at = "@keyframes", St = "@layer", Rt = Math.abs, be = String.fromCharCode, Tt = Object.assign;
|
|
333
|
+
function At(e, t) {
|
|
334
|
+
return j(e, 0) ^ 45 ? (((t << 2 ^ j(e, 0)) << 2 ^ j(e, 1)) << 2 ^ j(e, 2)) << 2 ^ j(e, 3) : 0;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function it(e) {
|
|
337
337
|
return e.trim();
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
return (e =
|
|
339
|
+
function Ct(e, t) {
|
|
340
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
341
341
|
}
|
|
342
|
-
function P(e,
|
|
343
|
-
return e.replace(
|
|
342
|
+
function P(e, t, r) {
|
|
343
|
+
return e.replace(t, r);
|
|
344
344
|
}
|
|
345
|
-
function Ce(e,
|
|
346
|
-
return e.indexOf(
|
|
345
|
+
function Ce(e, t) {
|
|
346
|
+
return e.indexOf(t);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
return e.charCodeAt(
|
|
348
|
+
function j(e, t) {
|
|
349
|
+
return e.charCodeAt(t) | 0;
|
|
350
350
|
}
|
|
351
|
-
function ce(e,
|
|
352
|
-
return e.slice(
|
|
351
|
+
function ce(e, t, r) {
|
|
352
|
+
return e.slice(t, r);
|
|
353
353
|
}
|
|
354
354
|
function W(e) {
|
|
355
355
|
return e.length;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Fe(e) {
|
|
358
358
|
return e.length;
|
|
359
359
|
}
|
|
360
|
-
function pe(e,
|
|
361
|
-
return
|
|
360
|
+
function pe(e, t) {
|
|
361
|
+
return t.push(e), e;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
return e.map(
|
|
363
|
+
function Ot(e, t) {
|
|
364
|
+
return e.map(t).join("");
|
|
365
365
|
}
|
|
366
|
-
var xe = 1, ee = 1,
|
|
367
|
-
function we(e,
|
|
368
|
-
return { value: e, root:
|
|
366
|
+
var xe = 1, ee = 1, ot = 0, M = 0, T = 0, re = "";
|
|
367
|
+
function we(e, t, r, n, a, i, c) {
|
|
368
|
+
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: xe, column: ee, length: c, return: "" };
|
|
369
369
|
}
|
|
370
|
-
function oe(e,
|
|
371
|
-
return
|
|
370
|
+
function oe(e, t) {
|
|
371
|
+
return Tt(we("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
return
|
|
373
|
+
function It() {
|
|
374
|
+
return T;
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
return
|
|
376
|
+
function jt() {
|
|
377
|
+
return T = M > 0 ? j(re, --M) : 0, ee--, T === 10 && (ee = 1, xe--), T;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
379
|
+
function V() {
|
|
380
|
+
return T = M < ot ? j(re, M++) : 0, ee++, T === 10 && (ee = 1, xe++), T;
|
|
381
381
|
}
|
|
382
382
|
function q() {
|
|
383
|
-
return
|
|
383
|
+
return j(re, M);
|
|
384
384
|
}
|
|
385
385
|
function me() {
|
|
386
|
-
return
|
|
386
|
+
return M;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
return ce(
|
|
388
|
+
function de(e, t) {
|
|
389
|
+
return ce(re, e, t);
|
|
390
390
|
}
|
|
391
391
|
function le(e) {
|
|
392
392
|
switch (e) {
|
|
@@ -426,269 +426,269 @@ function le(e) {
|
|
|
426
426
|
}
|
|
427
427
|
return 0;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
return xe = ee = 1,
|
|
429
|
+
function st(e) {
|
|
430
|
+
return xe = ee = 1, ot = W(re = e), M = 0, [];
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
return
|
|
432
|
+
function ct(e) {
|
|
433
|
+
return re = "", e;
|
|
434
434
|
}
|
|
435
435
|
function ye(e) {
|
|
436
|
-
return
|
|
436
|
+
return it(de(M - 1, Oe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
437
437
|
}
|
|
438
|
-
function $
|
|
439
|
-
for (; (
|
|
440
|
-
|
|
441
|
-
return le(e) > 2 || le(
|
|
438
|
+
function $t(e) {
|
|
439
|
+
for (; (T = q()) && T < 33; )
|
|
440
|
+
V();
|
|
441
|
+
return le(e) > 2 || le(T) > 3 ? "" : " ";
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
for (; --
|
|
443
|
+
function Ft(e, t) {
|
|
444
|
+
for (; --t && V() && !(T < 48 || T > 102 || T > 57 && T < 65 || T > 70 && T < 97); )
|
|
445
445
|
;
|
|
446
|
-
return
|
|
446
|
+
return de(e, me() + (t < 6 && q() == 32 && V() == 32));
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
for (;
|
|
450
|
-
switch (
|
|
448
|
+
function Oe(e) {
|
|
449
|
+
for (; V(); )
|
|
450
|
+
switch (T) {
|
|
451
451
|
// ] ) " '
|
|
452
452
|
case e:
|
|
453
|
-
return
|
|
453
|
+
return M;
|
|
454
454
|
// " '
|
|
455
455
|
case 34:
|
|
456
456
|
case 39:
|
|
457
|
-
e !== 34 && e !== 39 &&
|
|
457
|
+
e !== 34 && e !== 39 && Oe(T);
|
|
458
458
|
break;
|
|
459
459
|
// (
|
|
460
460
|
case 40:
|
|
461
|
-
e === 41 &&
|
|
461
|
+
e === 41 && Oe(e);
|
|
462
462
|
break;
|
|
463
463
|
// \
|
|
464
464
|
case 92:
|
|
465
|
-
|
|
465
|
+
V();
|
|
466
466
|
break;
|
|
467
467
|
}
|
|
468
|
-
return
|
|
468
|
+
return M;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
471
|
-
for (;
|
|
472
|
-
if (e +
|
|
470
|
+
function Nt(e, t) {
|
|
471
|
+
for (; V() && e + T !== 57; )
|
|
472
|
+
if (e + T === 84 && q() === 47)
|
|
473
473
|
break;
|
|
474
|
-
return "/*" +
|
|
474
|
+
return "/*" + de(t, M - 1) + "*" + be(e === 47 ? e : V());
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Lt(e) {
|
|
477
477
|
for (; !le(q()); )
|
|
478
|
-
|
|
479
|
-
return
|
|
478
|
+
V();
|
|
479
|
+
return de(e, M);
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
return
|
|
481
|
+
function Bt(e) {
|
|
482
|
+
return ct(ge("", null, null, null, [""], e = st(e), 0, [0], e));
|
|
483
483
|
}
|
|
484
|
-
function ge(e,
|
|
485
|
-
for (var h = 0, l = 0, u = c, m = 0, w = 0, x = 0, p = 1, y = 1,
|
|
486
|
-
switch (x =
|
|
484
|
+
function ge(e, t, r, n, a, i, c, s, d) {
|
|
485
|
+
for (var h = 0, l = 0, u = c, m = 0, w = 0, x = 0, p = 1, y = 1, v = 1, b = 0, _ = "", A = a, E = i, S = n, f = _; y; )
|
|
486
|
+
switch (x = b, b = V()) {
|
|
487
487
|
// (
|
|
488
488
|
case 40:
|
|
489
|
-
if (x != 108 &&
|
|
490
|
-
Ce(
|
|
489
|
+
if (x != 108 && j(f, u - 1) == 58) {
|
|
490
|
+
Ce(f += P(ye(b), "&", "&\f"), "&\f") != -1 && (v = -1);
|
|
491
491
|
break;
|
|
492
492
|
}
|
|
493
493
|
// " ' [
|
|
494
494
|
case 34:
|
|
495
495
|
case 39:
|
|
496
496
|
case 91:
|
|
497
|
-
|
|
497
|
+
f += ye(b);
|
|
498
498
|
break;
|
|
499
499
|
// \t \n \r \s
|
|
500
500
|
case 9:
|
|
501
501
|
case 10:
|
|
502
502
|
case 13:
|
|
503
503
|
case 32:
|
|
504
|
-
|
|
504
|
+
f += $t(x);
|
|
505
505
|
break;
|
|
506
506
|
// \
|
|
507
507
|
case 92:
|
|
508
|
-
|
|
508
|
+
f += Ft(me() - 1, 7);
|
|
509
509
|
continue;
|
|
510
510
|
// /
|
|
511
511
|
case 47:
|
|
512
512
|
switch (q()) {
|
|
513
513
|
case 42:
|
|
514
514
|
case 47:
|
|
515
|
-
pe(
|
|
515
|
+
pe(Mt(Nt(V(), me()), t, r), d);
|
|
516
516
|
break;
|
|
517
517
|
default:
|
|
518
|
-
|
|
518
|
+
f += "/";
|
|
519
519
|
}
|
|
520
520
|
break;
|
|
521
521
|
// {
|
|
522
522
|
case 123 * p:
|
|
523
|
-
s[h++] = W(
|
|
523
|
+
s[h++] = W(f) * v;
|
|
524
524
|
// } ; \0
|
|
525
525
|
case 125 * p:
|
|
526
526
|
case 59:
|
|
527
527
|
case 0:
|
|
528
|
-
switch (
|
|
528
|
+
switch (b) {
|
|
529
529
|
// \0 }
|
|
530
530
|
case 0:
|
|
531
531
|
case 125:
|
|
532
532
|
y = 0;
|
|
533
533
|
// ;
|
|
534
534
|
case 59 + l:
|
|
535
|
-
|
|
535
|
+
v == -1 && (f = P(f, /\f/g, "")), w > 0 && W(f) - u && pe(w > 32 ? qe(f + ";", n, r, u - 1) : qe(P(f, " ", "") + ";", n, r, u - 2), d);
|
|
536
536
|
break;
|
|
537
537
|
// @ ;
|
|
538
538
|
case 59:
|
|
539
|
-
|
|
539
|
+
f += ";";
|
|
540
540
|
// { rule/at-rule
|
|
541
541
|
default:
|
|
542
|
-
if (pe(
|
|
542
|
+
if (pe(S = Ye(f, t, r, h, l, a, s, _, A = [], E = [], u), i), b === 123)
|
|
543
543
|
if (l === 0)
|
|
544
|
-
ge(
|
|
544
|
+
ge(f, t, S, S, A, i, u, s, E);
|
|
545
545
|
else
|
|
546
|
-
switch (m === 99 &&
|
|
546
|
+
switch (m === 99 && j(f, 3) === 110 ? 100 : m) {
|
|
547
547
|
// d l m s
|
|
548
548
|
case 100:
|
|
549
549
|
case 108:
|
|
550
550
|
case 109:
|
|
551
551
|
case 115:
|
|
552
|
-
ge(e,
|
|
552
|
+
ge(e, S, S, n && pe(Ye(e, S, S, 0, 0, a, s, _, a, A = [], u), E), a, E, u, s, n ? A : E);
|
|
553
553
|
break;
|
|
554
554
|
default:
|
|
555
|
-
ge(
|
|
555
|
+
ge(f, S, S, S, [""], E, 0, s, E);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
h = l = w = 0, p =
|
|
558
|
+
h = l = w = 0, p = v = 1, _ = f = "", u = c;
|
|
559
559
|
break;
|
|
560
560
|
// :
|
|
561
561
|
case 58:
|
|
562
|
-
u = 1 + W(
|
|
562
|
+
u = 1 + W(f), w = x;
|
|
563
563
|
default:
|
|
564
564
|
if (p < 1) {
|
|
565
|
-
if (
|
|
565
|
+
if (b == 123)
|
|
566
566
|
--p;
|
|
567
|
-
else if (
|
|
567
|
+
else if (b == 125 && p++ == 0 && jt() == 125)
|
|
568
568
|
continue;
|
|
569
569
|
}
|
|
570
|
-
switch (
|
|
570
|
+
switch (f += be(b), b * p) {
|
|
571
571
|
// &
|
|
572
572
|
case 38:
|
|
573
|
-
|
|
573
|
+
v = l > 0 ? 1 : (f += "\f", -1);
|
|
574
574
|
break;
|
|
575
575
|
// ,
|
|
576
576
|
case 44:
|
|
577
|
-
s[h++] = (W(
|
|
577
|
+
s[h++] = (W(f) - 1) * v, v = 1;
|
|
578
578
|
break;
|
|
579
579
|
// @
|
|
580
580
|
case 64:
|
|
581
|
-
q() === 45 && (
|
|
581
|
+
q() === 45 && (f += ye(V())), m = q(), l = u = W(_ = f += Lt(me())), b++;
|
|
582
582
|
break;
|
|
583
583
|
// -
|
|
584
584
|
case 45:
|
|
585
|
-
x === 45 && W(
|
|
585
|
+
x === 45 && W(f) == 2 && (p = 0);
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
return i;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
for (var u = a - 1, m = a === 0 ? i : [""], w =
|
|
592
|
-
for (var
|
|
593
|
-
(
|
|
594
|
-
return we(e,
|
|
590
|
+
function Ye(e, t, r, n, a, i, c, s, d, h, l) {
|
|
591
|
+
for (var u = a - 1, m = a === 0 ? i : [""], w = Fe(m), x = 0, p = 0, y = 0; x < n; ++x)
|
|
592
|
+
for (var v = 0, b = ce(e, u + 1, u = Rt(p = c[x])), _ = e; v < w; ++v)
|
|
593
|
+
(_ = it(p > 0 ? m[v] + " " + b : P(b, /&\f/g, m[v]))) && (d[y++] = _);
|
|
594
|
+
return we(e, t, r, a === 0 ? je : s, d, h, l);
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return we(e,
|
|
596
|
+
function Mt(e, t, r) {
|
|
597
|
+
return we(e, t, r, nt, be(It()), ce(e, 2, -2), 0);
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
return we(e,
|
|
599
|
+
function qe(e, t, r, n) {
|
|
600
|
+
return we(e, t, r, $e, ce(e, 0, n), ce(e, n + 1, -1), n);
|
|
601
601
|
}
|
|
602
|
-
function Q(e,
|
|
603
|
-
for (var
|
|
604
|
-
|
|
605
|
-
return
|
|
602
|
+
function Q(e, t) {
|
|
603
|
+
for (var r = "", n = Fe(e), a = 0; a < n; a++)
|
|
604
|
+
r += t(e[a], a, e, t) || "";
|
|
605
|
+
return r;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Vt(e, t, r, n) {
|
|
608
608
|
switch (e.type) {
|
|
609
|
-
case
|
|
609
|
+
case St:
|
|
610
610
|
if (e.children.length) break;
|
|
611
|
-
case
|
|
611
|
+
case _t:
|
|
612
612
|
case $e:
|
|
613
613
|
return e.return = e.return || e.value;
|
|
614
|
-
case
|
|
614
|
+
case nt:
|
|
615
615
|
return "";
|
|
616
|
-
case
|
|
616
|
+
case at:
|
|
617
617
|
return e.return = e.value + "{" + Q(e.children, n) + "}";
|
|
618
|
-
case
|
|
618
|
+
case je:
|
|
619
619
|
e.value = e.props.join(",");
|
|
620
620
|
}
|
|
621
|
-
return W(
|
|
621
|
+
return W(r = Q(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
var
|
|
625
|
-
return function(
|
|
626
|
-
for (var c = "", s = 0; s <
|
|
627
|
-
c += e[s](
|
|
623
|
+
function zt(e) {
|
|
624
|
+
var t = Fe(e);
|
|
625
|
+
return function(r, n, a, i) {
|
|
626
|
+
for (var c = "", s = 0; s < t; s++)
|
|
627
|
+
c += e[s](r, n, a, i) || "";
|
|
628
628
|
return c;
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
return function(
|
|
633
|
-
|
|
631
|
+
function Dt(e) {
|
|
632
|
+
return function(t) {
|
|
633
|
+
t.root || (t = t.return) && e(t);
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
var
|
|
638
|
-
return function(
|
|
639
|
-
return r
|
|
636
|
+
function lt(e) {
|
|
637
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
638
|
+
return function(r) {
|
|
639
|
+
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
for (var a = 0, i = 0; a = i, i = q(), a === 38 && i === 12 && (
|
|
644
|
-
|
|
645
|
-
return
|
|
646
|
-
},
|
|
642
|
+
var Ut = function(t, r, n) {
|
|
643
|
+
for (var a = 0, i = 0; a = i, i = q(), a === 38 && i === 12 && (r[n] = 1), !le(i); )
|
|
644
|
+
V();
|
|
645
|
+
return de(t, M);
|
|
646
|
+
}, Wt = function(t, r) {
|
|
647
647
|
var n = -1, a = 44;
|
|
648
648
|
do
|
|
649
649
|
switch (le(a)) {
|
|
650
650
|
case 0:
|
|
651
|
-
a === 38 && q() === 12 && (
|
|
651
|
+
a === 38 && q() === 12 && (r[n] = 1), t[n] += Ut(M - 1, r, n);
|
|
652
652
|
break;
|
|
653
653
|
case 2:
|
|
654
|
-
|
|
654
|
+
t[n] += ye(a);
|
|
655
655
|
break;
|
|
656
656
|
case 4:
|
|
657
657
|
if (a === 44) {
|
|
658
|
-
|
|
658
|
+
t[++n] = q() === 58 ? "&\f" : "", r[n] = t[n].length;
|
|
659
659
|
break;
|
|
660
660
|
}
|
|
661
661
|
// fallthrough
|
|
662
662
|
default:
|
|
663
|
-
|
|
663
|
+
t[n] += be(a);
|
|
664
664
|
}
|
|
665
|
-
while (a =
|
|
666
|
-
return
|
|
667
|
-
},
|
|
668
|
-
return
|
|
669
|
-
},
|
|
670
|
-
if (!(
|
|
665
|
+
while (a = V());
|
|
666
|
+
return t;
|
|
667
|
+
}, Yt = function(t, r) {
|
|
668
|
+
return ct(Wt(st(t), r));
|
|
669
|
+
}, He = /* @__PURE__ */ new WeakMap(), qt = function(t) {
|
|
670
|
+
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
671
671
|
// negative .length indicates that this rule has been already prefixed
|
|
672
|
-
|
|
673
|
-
for (var
|
|
672
|
+
t.length < 1)) {
|
|
673
|
+
for (var r = t.value, n = t.parent, a = t.column === n.column && t.line === n.line; n.type !== "rule"; )
|
|
674
674
|
if (n = n.parent, !n) return;
|
|
675
|
-
if (!(
|
|
676
|
-
|
|
677
|
-
for (var i = [], c =
|
|
675
|
+
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !He.get(n)) && !a) {
|
|
676
|
+
He.set(t, !0);
|
|
677
|
+
for (var i = [], c = Yt(r, i), s = n.props, d = 0, h = 0; d < c.length; d++)
|
|
678
678
|
for (var l = 0; l < s.length; l++, h++)
|
|
679
|
-
|
|
679
|
+
t.props[h] = i[d] ? c[d].replace(/&\f/g, s[l]) : s[l] + " " + c[d];
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
|
-
},
|
|
683
|
-
if (
|
|
684
|
-
var
|
|
682
|
+
}, Ht = function(t) {
|
|
683
|
+
if (t.type === "decl") {
|
|
684
|
+
var r = t.value;
|
|
685
685
|
// charcode for l
|
|
686
|
-
|
|
687
|
-
|
|
686
|
+
r.charCodeAt(0) === 108 && // charcode for b
|
|
687
|
+
r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
|
|
688
688
|
}
|
|
689
689
|
};
|
|
690
|
-
function
|
|
691
|
-
switch (
|
|
690
|
+
function ut(e, t) {
|
|
691
|
+
switch (At(e, t)) {
|
|
692
692
|
// color-adjust
|
|
693
693
|
case 5103:
|
|
694
694
|
return k + "print-" + e + e;
|
|
@@ -728,7 +728,7 @@ function lr(e, r) {
|
|
|
728
728
|
case 4810:
|
|
729
729
|
case 6968:
|
|
730
730
|
case 2756:
|
|
731
|
-
return k + e +
|
|
731
|
+
return k + e + ve + e + N + e + e;
|
|
732
732
|
// flex, flex-direction
|
|
733
733
|
case 6828:
|
|
734
734
|
case 4268:
|
|
@@ -786,35 +786,35 @@ function lr(e, r) {
|
|
|
786
786
|
case 5789:
|
|
787
787
|
case 5021:
|
|
788
788
|
case 4765:
|
|
789
|
-
if (W(e) - 1 -
|
|
789
|
+
if (W(e) - 1 - t > 6) switch (j(e, t + 1)) {
|
|
790
790
|
// (m)ax-content, (m)in-content
|
|
791
791
|
case 109:
|
|
792
|
-
if (
|
|
792
|
+
if (j(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" +
|
|
795
|
+
return P(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + ve + (j(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
796
796
|
// (s)tretch
|
|
797
797
|
case 115:
|
|
798
|
-
return ~Ce(e, "stretch") ?
|
|
798
|
+
return ~Ce(e, "stretch") ? ut(P(e, "stretch", "fill-available"), t) + e : e;
|
|
799
799
|
}
|
|
800
800
|
break;
|
|
801
801
|
// position: sticky
|
|
802
802
|
case 4949:
|
|
803
|
-
if (
|
|
803
|
+
if (j(e, t + 1) !== 115) break;
|
|
804
804
|
// display: (flex|inline-flex)
|
|
805
805
|
case 6444:
|
|
806
|
-
switch (
|
|
806
|
+
switch (j(e, W(e) - 3 - (~Ce(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 + (j(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + N + "$2box$3") + e;
|
|
813
813
|
}
|
|
814
814
|
break;
|
|
815
815
|
// writing-mode
|
|
816
816
|
case 5936:
|
|
817
|
-
switch (
|
|
817
|
+
switch (j(e, t + 11)) {
|
|
818
818
|
// vertical-l(r)
|
|
819
819
|
case 114:
|
|
820
820
|
return k + e + N + P(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
@@ -829,93 +829,93 @@ function lr(e, r) {
|
|
|
829
829
|
}
|
|
830
830
|
return e;
|
|
831
831
|
}
|
|
832
|
-
var
|
|
833
|
-
if (
|
|
832
|
+
var Gt = function(t, r, n, a) {
|
|
833
|
+
if (t.length > -1 && !t.return) switch (t.type) {
|
|
834
834
|
case $e:
|
|
835
|
-
|
|
835
|
+
t.return = ut(t.value, t.length);
|
|
836
836
|
break;
|
|
837
|
-
case
|
|
838
|
-
return Q([oe(
|
|
839
|
-
value: P(
|
|
837
|
+
case at:
|
|
838
|
+
return Q([oe(t, {
|
|
839
|
+
value: P(t.value, "@", "@" + k)
|
|
840
840
|
})], a);
|
|
841
|
-
case
|
|
842
|
-
if (
|
|
843
|
-
switch (
|
|
841
|
+
case je:
|
|
842
|
+
if (t.length) return Ot(t.props, function(i) {
|
|
843
|
+
switch (Ct(i, /(::plac\w+|:read-\w+)/)) {
|
|
844
844
|
// :read-(only|write)
|
|
845
845
|
case ":read-only":
|
|
846
846
|
case ":read-write":
|
|
847
|
-
return Q([oe(
|
|
848
|
-
props: [P(i, /:(read-\w+)/, ":" +
|
|
847
|
+
return Q([oe(t, {
|
|
848
|
+
props: [P(i, /:(read-\w+)/, ":" + ve + "$1")]
|
|
849
849
|
})], a);
|
|
850
850
|
// :placeholder
|
|
851
851
|
case "::placeholder":
|
|
852
|
-
return Q([oe(
|
|
852
|
+
return Q([oe(t, {
|
|
853
853
|
props: [P(i, /:(plac\w+)/, ":" + k + "input-$1")]
|
|
854
|
-
}), oe(
|
|
855
|
-
props: [P(i, /:(plac\w+)/, ":" +
|
|
856
|
-
}), oe(
|
|
854
|
+
}), oe(t, {
|
|
855
|
+
props: [P(i, /:(plac\w+)/, ":" + ve + "$1")]
|
|
856
|
+
}), oe(t, {
|
|
857
857
|
props: [P(i, /:(plac\w+)/, N + "input-$1")]
|
|
858
858
|
})], a);
|
|
859
859
|
}
|
|
860
860
|
return "";
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
|
-
},
|
|
864
|
-
var
|
|
865
|
-
if (
|
|
863
|
+
}, Xt = [Gt], Kt = function(t) {
|
|
864
|
+
var r = t.key;
|
|
865
|
+
if (r === "css") {
|
|
866
866
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
867
867
|
Array.prototype.forEach.call(n, function(p) {
|
|
868
868
|
var y = p.getAttribute("data-emotion");
|
|
869
869
|
y.indexOf(" ") !== -1 && (document.head.appendChild(p), p.setAttribute("data-s", ""));
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
|
-
var a =
|
|
873
|
-
c =
|
|
872
|
+
var a = t.stylisPlugins || Xt, i = {}, c, s = [];
|
|
873
|
+
c = t.container || document.head, Array.prototype.forEach.call(
|
|
874
874
|
// this means we will ignore elements which don't have a space in them which
|
|
875
875
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
876
|
-
document.querySelectorAll('style[data-emotion^="' +
|
|
876
|
+
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
877
877
|
function(p) {
|
|
878
|
-
for (var y = p.getAttribute("data-emotion").split(" "),
|
|
879
|
-
i[y[
|
|
878
|
+
for (var y = p.getAttribute("data-emotion").split(" "), v = 1; v < y.length; v++)
|
|
879
|
+
i[y[v]] = !0;
|
|
880
880
|
s.push(p);
|
|
881
881
|
}
|
|
882
882
|
);
|
|
883
|
-
var
|
|
883
|
+
var d, h = [qt, Ht];
|
|
884
884
|
{
|
|
885
|
-
var l, u = [
|
|
885
|
+
var l, u = [Vt, Dt(function(p) {
|
|
886
886
|
l.insert(p);
|
|
887
|
-
})], m =
|
|
888
|
-
return Q(
|
|
887
|
+
})], m = zt(h.concat(a, u)), w = function(y) {
|
|
888
|
+
return Q(Bt(y), m);
|
|
889
889
|
};
|
|
890
|
-
|
|
891
|
-
l =
|
|
890
|
+
d = function(y, v, b, _) {
|
|
891
|
+
l = b, w(y ? y + "{" + v.styles + "}" : v.styles), _ && (x.inserted[v.name] = !0);
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
var x = {
|
|
895
|
-
key:
|
|
896
|
-
sheet: new
|
|
897
|
-
key:
|
|
895
|
+
key: r,
|
|
896
|
+
sheet: new Et({
|
|
897
|
+
key: r,
|
|
898
898
|
container: c,
|
|
899
|
-
nonce:
|
|
900
|
-
speedy:
|
|
901
|
-
prepend:
|
|
902
|
-
insertionPoint:
|
|
899
|
+
nonce: t.nonce,
|
|
900
|
+
speedy: t.speedy,
|
|
901
|
+
prepend: t.prepend,
|
|
902
|
+
insertionPoint: t.insertionPoint
|
|
903
903
|
}),
|
|
904
|
-
nonce:
|
|
904
|
+
nonce: t.nonce,
|
|
905
905
|
inserted: i,
|
|
906
906
|
registered: {},
|
|
907
|
-
insert:
|
|
907
|
+
insert: d
|
|
908
908
|
};
|
|
909
909
|
return x.sheet.hydrate(s), x;
|
|
910
|
-
},
|
|
911
|
-
function
|
|
910
|
+
}, Jt = !0;
|
|
911
|
+
function Zt(e, t, r) {
|
|
912
912
|
var n = "";
|
|
913
|
-
return
|
|
914
|
-
e[a] !== void 0 ?
|
|
913
|
+
return r.split(" ").forEach(function(a) {
|
|
914
|
+
e[a] !== void 0 ? t.push(e[a] + ";") : a && (n += a + " ");
|
|
915
915
|
}), n;
|
|
916
916
|
}
|
|
917
|
-
var
|
|
918
|
-
var a =
|
|
917
|
+
var dt = function(t, r, n) {
|
|
918
|
+
var a = t.key + "-" + r.name;
|
|
919
919
|
// we only need to add the styles to the registered cache if the
|
|
920
920
|
// class name could be used further down
|
|
921
921
|
// the tree but if it's a string tag, we know it won't
|
|
@@ -925,37 +925,37 @@ var ur = function(r, t, n) {
|
|
|
925
925
|
// in node since emotion-server relies on whether a style is in
|
|
926
926
|
// the registered cache to know whether a style is global or not
|
|
927
927
|
// also, note that this check will be dead code eliminated in the browser
|
|
928
|
-
|
|
929
|
-
},
|
|
930
|
-
|
|
931
|
-
var a =
|
|
932
|
-
if (
|
|
933
|
-
var i =
|
|
928
|
+
Jt === !1) && t.registered[a] === void 0 && (t.registered[a] = r.styles);
|
|
929
|
+
}, Qt = function(t, r, n) {
|
|
930
|
+
dt(t, r, n);
|
|
931
|
+
var a = t.key + "-" + r.name;
|
|
932
|
+
if (t.inserted[r.name] === void 0) {
|
|
933
|
+
var i = r;
|
|
934
934
|
do
|
|
935
|
-
|
|
935
|
+
t.insert(r === i ? "." + a : "", i, t.sheet, !0), i = i.next;
|
|
936
936
|
while (i !== void 0);
|
|
937
937
|
}
|
|
938
938
|
};
|
|
939
|
-
function
|
|
940
|
-
for (var
|
|
941
|
-
|
|
942
|
-
(
|
|
943
|
-
|
|
944
|
-
(
|
|
945
|
-
(
|
|
939
|
+
function er(e) {
|
|
940
|
+
for (var t = 0, r, n = 0, a = e.length; a >= 4; ++n, a -= 4)
|
|
941
|
+
r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
|
|
942
|
+
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
|
943
|
+
r >>> 24, t = /* Math.imul(k, m): */
|
|
944
|
+
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
945
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
946
946
|
switch (a) {
|
|
947
947
|
case 3:
|
|
948
|
-
|
|
948
|
+
t ^= (e.charCodeAt(n + 2) & 255) << 16;
|
|
949
949
|
case 2:
|
|
950
|
-
|
|
950
|
+
t ^= (e.charCodeAt(n + 1) & 255) << 8;
|
|
951
951
|
case 1:
|
|
952
|
-
|
|
953
|
-
(
|
|
952
|
+
t ^= e.charCodeAt(n) & 255, t = /* Math.imul(h, m): */
|
|
953
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
954
954
|
}
|
|
955
|
-
return
|
|
956
|
-
(
|
|
955
|
+
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
956
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
957
957
|
}
|
|
958
|
-
var
|
|
958
|
+
var tr = {
|
|
959
959
|
animationIterationCount: 1,
|
|
960
960
|
aspectRatio: 1,
|
|
961
961
|
borderImageOutset: 1,
|
|
@@ -1004,18 +1004,18 @@ var et = {
|
|
|
1004
1004
|
strokeMiterlimit: 1,
|
|
1005
1005
|
strokeOpacity: 1,
|
|
1006
1006
|
strokeWidth: 1
|
|
1007
|
-
},
|
|
1008
|
-
return
|
|
1009
|
-
},
|
|
1010
|
-
return
|
|
1011
|
-
},
|
|
1012
|
-
return
|
|
1013
|
-
}),
|
|
1014
|
-
switch (
|
|
1007
|
+
}, rr = /[A-Z]|^ms/g, nr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ft = function(t) {
|
|
1008
|
+
return t.charCodeAt(1) === 45;
|
|
1009
|
+
}, Ge = function(t) {
|
|
1010
|
+
return t != null && typeof t != "boolean";
|
|
1011
|
+
}, _e = /* @__PURE__ */ lt(function(e) {
|
|
1012
|
+
return ft(e) ? e : e.replace(rr, "-$&").toLowerCase();
|
|
1013
|
+
}), Xe = function(t, r) {
|
|
1014
|
+
switch (t) {
|
|
1015
1015
|
case "animation":
|
|
1016
1016
|
case "animationName":
|
|
1017
|
-
if (typeof
|
|
1018
|
-
return
|
|
1017
|
+
if (typeof r == "string")
|
|
1018
|
+
return r.replace(nr, function(n, a, i) {
|
|
1019
1019
|
return Y = {
|
|
1020
1020
|
name: a,
|
|
1021
1021
|
styles: i,
|
|
@@ -1023,26 +1023,26 @@ var et = {
|
|
|
1023
1023
|
}, a;
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
|
-
return
|
|
1026
|
+
return tr[t] !== 1 && !ft(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
1027
1027
|
};
|
|
1028
|
-
function ue(e,
|
|
1029
|
-
if (
|
|
1028
|
+
function ue(e, t, r) {
|
|
1029
|
+
if (r == null)
|
|
1030
1030
|
return "";
|
|
1031
|
-
var n =
|
|
1031
|
+
var n = r;
|
|
1032
1032
|
if (n.__emotion_styles !== void 0)
|
|
1033
1033
|
return n;
|
|
1034
|
-
switch (typeof
|
|
1034
|
+
switch (typeof r) {
|
|
1035
1035
|
case "boolean":
|
|
1036
1036
|
return "";
|
|
1037
1037
|
case "object": {
|
|
1038
|
-
var a =
|
|
1038
|
+
var a = r;
|
|
1039
1039
|
if (a.anim === 1)
|
|
1040
1040
|
return Y = {
|
|
1041
1041
|
name: a.name,
|
|
1042
1042
|
styles: a.styles,
|
|
1043
1043
|
next: Y
|
|
1044
1044
|
}, a.name;
|
|
1045
|
-
var i =
|
|
1045
|
+
var i = r;
|
|
1046
1046
|
if (i.styles !== void 0) {
|
|
1047
1047
|
var c = i.next;
|
|
1048
1048
|
if (c !== void 0)
|
|
@@ -1055,42 +1055,42 @@ function ue(e, r, t) {
|
|
|
1055
1055
|
var s = i.styles + ";";
|
|
1056
1056
|
return s;
|
|
1057
1057
|
}
|
|
1058
|
-
return
|
|
1058
|
+
return ar(e, t, r);
|
|
1059
1059
|
}
|
|
1060
1060
|
case "function": {
|
|
1061
1061
|
if (e !== void 0) {
|
|
1062
|
-
var
|
|
1063
|
-
return Y =
|
|
1062
|
+
var d = Y, h = r(e);
|
|
1063
|
+
return Y = d, ue(e, t, h);
|
|
1064
1064
|
}
|
|
1065
1065
|
break;
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
|
-
var l =
|
|
1069
|
-
if (
|
|
1068
|
+
var l = r;
|
|
1069
|
+
if (t == null)
|
|
1070
1070
|
return l;
|
|
1071
|
-
var u =
|
|
1071
|
+
var u = t[l];
|
|
1072
1072
|
return u !== void 0 ? u : l;
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function ar(e, t, r) {
|
|
1075
1075
|
var n = "";
|
|
1076
|
-
if (Array.isArray(
|
|
1077
|
-
for (var a = 0; a <
|
|
1078
|
-
n += ue(e,
|
|
1076
|
+
if (Array.isArray(r))
|
|
1077
|
+
for (var a = 0; a < r.length; a++)
|
|
1078
|
+
n += ue(e, t, r[a]) + ";";
|
|
1079
1079
|
else
|
|
1080
|
-
for (var i in
|
|
1081
|
-
var c =
|
|
1080
|
+
for (var i in r) {
|
|
1081
|
+
var c = r[i];
|
|
1082
1082
|
if (typeof c != "object") {
|
|
1083
1083
|
var s = c;
|
|
1084
|
-
|
|
1085
|
-
} else if (Array.isArray(c) && typeof c[0] == "string" && (
|
|
1086
|
-
for (var
|
|
1087
|
-
|
|
1084
|
+
t != null && t[s] !== void 0 ? n += i + "{" + t[s] + "}" : Ge(s) && (n += _e(i) + ":" + Xe(i, s) + ";");
|
|
1085
|
+
} else if (Array.isArray(c) && typeof c[0] == "string" && (t == null || t[c[0]] === void 0))
|
|
1086
|
+
for (var d = 0; d < c.length; d++)
|
|
1087
|
+
Ge(c[d]) && (n += _e(i) + ":" + Xe(i, c[d]) + ";");
|
|
1088
1088
|
else {
|
|
1089
|
-
var h = ue(e,
|
|
1089
|
+
var h = ue(e, t, c);
|
|
1090
1090
|
switch (i) {
|
|
1091
1091
|
case "animation":
|
|
1092
1092
|
case "animationName": {
|
|
1093
|
-
n +=
|
|
1093
|
+
n += _e(i) + ":" + h + ";";
|
|
1094
1094
|
break;
|
|
1095
1095
|
}
|
|
1096
1096
|
default:
|
|
@@ -1100,85 +1100,85 @@ function nt(e, r, t) {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
return n;
|
|
1102
1102
|
}
|
|
1103
|
-
var
|
|
1104
|
-
function
|
|
1103
|
+
var Ke = /label:\s*([^\s;{]+)\s*(;|$)/g, Y;
|
|
1104
|
+
function ir(e, t, r) {
|
|
1105
1105
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1106
1106
|
return e[0];
|
|
1107
1107
|
var n = !0, a = "";
|
|
1108
1108
|
Y = void 0;
|
|
1109
1109
|
var i = e[0];
|
|
1110
1110
|
if (i == null || i.raw === void 0)
|
|
1111
|
-
n = !1, a += ue(
|
|
1111
|
+
n = !1, a += ue(r, t, i);
|
|
1112
1112
|
else {
|
|
1113
1113
|
var c = i;
|
|
1114
1114
|
a += c[0];
|
|
1115
1115
|
}
|
|
1116
1116
|
for (var s = 1; s < e.length; s++)
|
|
1117
|
-
if (a += ue(
|
|
1118
|
-
var
|
|
1119
|
-
a +=
|
|
1117
|
+
if (a += ue(r, t, e[s]), n) {
|
|
1118
|
+
var d = i;
|
|
1119
|
+
a += d[s];
|
|
1120
1120
|
}
|
|
1121
|
-
|
|
1122
|
-
for (var h = "", l; (l =
|
|
1121
|
+
Ke.lastIndex = 0;
|
|
1122
|
+
for (var h = "", l; (l = Ke.exec(a)) !== null; )
|
|
1123
1123
|
h += "-" + l[1];
|
|
1124
|
-
var u =
|
|
1124
|
+
var u = er(a) + h;
|
|
1125
1125
|
return {
|
|
1126
1126
|
name: u,
|
|
1127
1127
|
styles: a,
|
|
1128
1128
|
next: Y
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
|
-
var
|
|
1132
|
-
return
|
|
1133
|
-
},
|
|
1131
|
+
var or = function(t) {
|
|
1132
|
+
return t();
|
|
1133
|
+
}, sr = G.useInsertionEffect ? G.useInsertionEffect : !1, cr = sr || or, pt = /* @__PURE__ */ G.createContext(
|
|
1134
1134
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1135
1135
|
// because this module is primarily intended for the browser and node
|
|
1136
1136
|
// but it's also required in react native and similar environments sometimes
|
|
1137
1137
|
// and we could have a special build just for that
|
|
1138
1138
|
// but this is much easier and the native packages
|
|
1139
1139
|
// might use a different theme context in the future anyway
|
|
1140
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1140
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ Kt({
|
|
1141
1141
|
key: "css"
|
|
1142
1142
|
}) : null
|
|
1143
1143
|
);
|
|
1144
|
-
|
|
1145
|
-
var
|
|
1146
|
-
return /* @__PURE__ */
|
|
1147
|
-
var a =
|
|
1148
|
-
return r
|
|
1144
|
+
pt.Provider;
|
|
1145
|
+
var lr = function(t) {
|
|
1146
|
+
return /* @__PURE__ */ gt(function(r, n) {
|
|
1147
|
+
var a = tt(pt);
|
|
1148
|
+
return t(r, a, n);
|
|
1149
1149
|
});
|
|
1150
|
-
},
|
|
1150
|
+
}, ur = /* @__PURE__ */ G.createContext({}), dr = /^((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)-.*))$/, fr = /* @__PURE__ */ lt(
|
|
1151
1151
|
function(e) {
|
|
1152
|
-
return
|
|
1152
|
+
return dr.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
1153
1153
|
}
|
|
1154
1154
|
/* Z+1 */
|
|
1155
|
-
),
|
|
1156
|
-
return
|
|
1157
|
-
},
|
|
1158
|
-
return typeof
|
|
1155
|
+
), pr = fr, hr = function(t) {
|
|
1156
|
+
return t !== "theme";
|
|
1157
|
+
}, Je = function(t) {
|
|
1158
|
+
return typeof t == "string" && // 96 is one less than the char code
|
|
1159
1159
|
// for "a" so this is checking that
|
|
1160
1160
|
// it's a lowercase character
|
|
1161
|
-
|
|
1162
|
-
},
|
|
1161
|
+
t.charCodeAt(0) > 96 ? pr : hr;
|
|
1162
|
+
}, Ze = function(t, r, n) {
|
|
1163
1163
|
var a;
|
|
1164
|
-
if (
|
|
1165
|
-
var i =
|
|
1166
|
-
a =
|
|
1167
|
-
return
|
|
1164
|
+
if (r) {
|
|
1165
|
+
var i = r.shouldForwardProp;
|
|
1166
|
+
a = t.__emotion_forwardProp && i ? function(c) {
|
|
1167
|
+
return t.__emotion_forwardProp(c) && i(c);
|
|
1168
1168
|
} : i;
|
|
1169
1169
|
}
|
|
1170
|
-
return typeof a != "function" && n && (a =
|
|
1171
|
-
},
|
|
1172
|
-
var
|
|
1173
|
-
return
|
|
1174
|
-
return
|
|
1170
|
+
return typeof a != "function" && n && (a = t.__emotion_forwardProp), a;
|
|
1171
|
+
}, mr = function(t) {
|
|
1172
|
+
var r = t.cache, n = t.serialized, a = t.isStringTag;
|
|
1173
|
+
return dt(r, n, a), cr(function() {
|
|
1174
|
+
return Qt(r, n, a);
|
|
1175
1175
|
}), null;
|
|
1176
|
-
},
|
|
1177
|
-
var n =
|
|
1178
|
-
|
|
1179
|
-
var s =
|
|
1176
|
+
}, yr = function e(t, r) {
|
|
1177
|
+
var n = t.__emotion_real === t, a = n && t.__emotion_base || t, i, c;
|
|
1178
|
+
r !== void 0 && (i = r.label, c = r.target);
|
|
1179
|
+
var s = Ze(t, r, n), d = s || Je(a), h = !d("as");
|
|
1180
1180
|
return function() {
|
|
1181
|
-
var l = arguments, u = n &&
|
|
1181
|
+
var l = arguments, u = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
1182
1182
|
if (i !== void 0 && u.push("label:" + i + ";"), l[0] == null || l[0].raw === void 0)
|
|
1183
1183
|
u.push.apply(u, l);
|
|
1184
1184
|
else {
|
|
@@ -1187,38 +1187,38 @@ var ct = function(r) {
|
|
|
1187
1187
|
for (var w = l.length, x = 1; x < w; x++)
|
|
1188
1188
|
u.push(l[x], m[x]);
|
|
1189
1189
|
}
|
|
1190
|
-
var p =
|
|
1191
|
-
var
|
|
1190
|
+
var p = lr(function(y, v, b) {
|
|
1191
|
+
var _ = h && y.as || a, A = "", E = [], S = y;
|
|
1192
1192
|
if (y.theme == null) {
|
|
1193
|
-
|
|
1194
|
-
for (var
|
|
1195
|
-
|
|
1196
|
-
|
|
1193
|
+
S = {};
|
|
1194
|
+
for (var f in y)
|
|
1195
|
+
S[f] = y[f];
|
|
1196
|
+
S.theme = G.useContext(ur);
|
|
1197
1197
|
}
|
|
1198
|
-
typeof y.className == "string" ?
|
|
1199
|
-
var
|
|
1200
|
-
|
|
1201
|
-
var
|
|
1202
|
-
for (var
|
|
1203
|
-
h &&
|
|
1204
|
-
return I.className =
|
|
1205
|
-
cache:
|
|
1206
|
-
serialized:
|
|
1207
|
-
isStringTag: typeof
|
|
1208
|
-
}), /* @__PURE__ */ G.createElement(
|
|
1198
|
+
typeof y.className == "string" ? A = Zt(v.registered, E, y.className) : y.className != null && (A = y.className + " ");
|
|
1199
|
+
var C = ir(u.concat(E), v.registered, S);
|
|
1200
|
+
A += v.key + "-" + C.name, c !== void 0 && (A += " " + c);
|
|
1201
|
+
var B = h && s === void 0 ? Je(_) : d, I = {};
|
|
1202
|
+
for (var L in y)
|
|
1203
|
+
h && L === "as" || B(L) && (I[L] = y[L]);
|
|
1204
|
+
return I.className = A, b && (I.ref = b), /* @__PURE__ */ G.createElement(G.Fragment, null, /* @__PURE__ */ G.createElement(mr, {
|
|
1205
|
+
cache: v,
|
|
1206
|
+
serialized: C,
|
|
1207
|
+
isStringTag: typeof _ == "string"
|
|
1208
|
+
}), /* @__PURE__ */ G.createElement(_, I));
|
|
1209
1209
|
});
|
|
1210
|
-
return p.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps =
|
|
1210
|
+
return p.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = a, p.__emotion_styles = u, p.__emotion_forwardProp = s, Object.defineProperty(p, "toString", {
|
|
1211
1211
|
value: function() {
|
|
1212
1212
|
return "." + c;
|
|
1213
1213
|
}
|
|
1214
|
-
}), p.withComponent = function(y,
|
|
1215
|
-
var
|
|
1216
|
-
shouldForwardProp:
|
|
1214
|
+
}), p.withComponent = function(y, v) {
|
|
1215
|
+
var b = e(y, Ae({}, r, v, {
|
|
1216
|
+
shouldForwardProp: Ze(p, v, !0)
|
|
1217
1217
|
}));
|
|
1218
|
-
return
|
|
1218
|
+
return b.apply(void 0, u);
|
|
1219
1219
|
}, p;
|
|
1220
1220
|
};
|
|
1221
|
-
},
|
|
1221
|
+
}, gr = [
|
|
1222
1222
|
"a",
|
|
1223
1223
|
"abbr",
|
|
1224
1224
|
"address",
|
|
@@ -1354,11 +1354,11 @@ var ct = function(r) {
|
|
|
1354
1354
|
"svg",
|
|
1355
1355
|
"text",
|
|
1356
1356
|
"tspan"
|
|
1357
|
-
],
|
|
1358
|
-
|
|
1359
|
-
|
|
1357
|
+
], te = yr.bind(null);
|
|
1358
|
+
gr.forEach(function(e) {
|
|
1359
|
+
te[e] = te(e);
|
|
1360
1360
|
});
|
|
1361
|
-
const
|
|
1361
|
+
const vr = te.div`
|
|
1362
1362
|
display: flex;
|
|
1363
1363
|
align-items: center;
|
|
1364
1364
|
justify-content: center;
|
|
@@ -1399,7 +1399,7 @@ const gt = re.div`
|
|
|
1399
1399
|
return "";
|
|
1400
1400
|
}
|
|
1401
1401
|
}}
|
|
1402
|
-
`,
|
|
1402
|
+
`, Ie = ({ type: e, children: t, className: r, icon: n, action: a }) => O.jsxs(vr, { type: e, className: r, children: [n && O.jsx("span", { children: n }), O.jsx("span", { children: t }), a && O.jsx("span", { children: a })] }), Qe = te.div`
|
|
1403
1403
|
width: ${({ width: e }) => e || "100%"};
|
|
1404
1404
|
height: ${({ height: e }) => e || "100%"};
|
|
1405
1405
|
border-radius: 8px;
|
|
@@ -1408,8 +1408,8 @@ const gt = re.div`
|
|
|
1408
1408
|
z-index: 1002;
|
|
1409
1409
|
|
|
1410
1410
|
/* Hide specific elements inside the player */
|
|
1411
|
-
${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((
|
|
1412
|
-
`,
|
|
1411
|
+
${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((t) => `.${t} { display: none !important; }`).join("")}
|
|
1412
|
+
`, br = te.div`
|
|
1413
1413
|
position: fixed;
|
|
1414
1414
|
top: 0;
|
|
1415
1415
|
left: 0;
|
|
@@ -1421,7 +1421,7 @@ const gt = re.div`
|
|
|
1421
1421
|
align-items: center;
|
|
1422
1422
|
z-index: 1000;
|
|
1423
1423
|
pointer-events: auto;
|
|
1424
|
-
`,
|
|
1424
|
+
`, xr = te.div`
|
|
1425
1425
|
position: relative;
|
|
1426
1426
|
width: 100%; /* Default for mobile */
|
|
1427
1427
|
max-width: 100%;
|
|
@@ -1433,46 +1433,46 @@ const gt = re.div`
|
|
|
1433
1433
|
@media (min-width: 768px) {
|
|
1434
1434
|
width: min(70vw, 960px); /* Responsive width for desktop, capped at 960px */
|
|
1435
1435
|
}
|
|
1436
|
-
`,
|
|
1437
|
-
const [
|
|
1436
|
+
`, wr = (e, t) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`, kr = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`, Pr = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, Ne = (e, t) => `vp-player-${e || "default"}-${t || ""}`, Se = /* @__PURE__ */ new Map(), Er = (e, t) => {
|
|
1437
|
+
const [r, n] = D(!1), [a, i] = D(null);
|
|
1438
1438
|
return se(() => {
|
|
1439
|
-
let c = null, s,
|
|
1439
|
+
let c = null, s, d = 0;
|
|
1440
1440
|
const h = 3;
|
|
1441
1441
|
let l;
|
|
1442
1442
|
try {
|
|
1443
|
-
l =
|
|
1443
|
+
l = t || Pr(e || "latest");
|
|
1444
1444
|
} catch (w) {
|
|
1445
1445
|
const x = w instanceof Error ? w.message : String(w);
|
|
1446
1446
|
i(`Failed to resolve script URL: ${x}`), n(!1);
|
|
1447
1447
|
return;
|
|
1448
1448
|
}
|
|
1449
|
-
if (
|
|
1449
|
+
if (Se.get(l)) {
|
|
1450
1450
|
n(!0), i(null);
|
|
1451
1451
|
return;
|
|
1452
1452
|
}
|
|
1453
1453
|
if (document.querySelector(`script[src="${l}"]`)) {
|
|
1454
|
-
|
|
1454
|
+
Se.set(l, !0), n(!0), i(null);
|
|
1455
1455
|
return;
|
|
1456
1456
|
}
|
|
1457
1457
|
const m = () => {
|
|
1458
1458
|
c = document.createElement("script"), c.src = l, c.async = !0, s = window.setTimeout(() => {
|
|
1459
1459
|
n(!1), i(`Loading script timed out: ${l}`);
|
|
1460
1460
|
}, 1e4), c.onload = () => {
|
|
1461
|
-
clearTimeout(s),
|
|
1461
|
+
clearTimeout(s), Se.set(l, !0), n(!0), i(null);
|
|
1462
1462
|
}, c.onerror = () => {
|
|
1463
|
-
clearTimeout(s),
|
|
1463
|
+
clearTimeout(s), d++, d < h ? setTimeout(m, 1e3 * d) : (n(!1), i(`Failed to load VP Player script after ${h} attempts: ${l}`));
|
|
1464
1464
|
}, document.body.appendChild(c);
|
|
1465
1465
|
};
|
|
1466
1466
|
return m(), () => {
|
|
1467
1467
|
clearTimeout(s), c && document.body.contains(c) && document.body.removeChild(c);
|
|
1468
1468
|
};
|
|
1469
|
-
}, [e,
|
|
1470
|
-
},
|
|
1471
|
-
const [i, c] = D(null), [s,
|
|
1469
|
+
}, [e, t]), { isLoaded: r, error: a };
|
|
1470
|
+
}, et = {}, he = /* @__PURE__ */ new Map(), _r = 7e3, Re = 3, Sr = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
|
|
1471
|
+
const [i, c] = D(null), [s, d] = D(null), [h, l] = D(!1), [u, m] = D(null), w = a || (typeof et < "u" ? et.VITE_VP_API_KEY : void 0);
|
|
1472
1472
|
return se(() => {
|
|
1473
|
-
const x =
|
|
1474
|
-
if (!e || n || !
|
|
1475
|
-
c(n || null),
|
|
1473
|
+
const x = t ? `video:${t}` : r ? `playlist:${r}` : null;
|
|
1474
|
+
if (!e || n || !t && !r) {
|
|
1475
|
+
c(n || null), d(null), l(!1), m(null);
|
|
1476
1476
|
return;
|
|
1477
1477
|
}
|
|
1478
1478
|
if (!w) {
|
|
@@ -1480,34 +1480,34 @@ const gt = re.div`
|
|
|
1480
1480
|
return;
|
|
1481
1481
|
}
|
|
1482
1482
|
if (x && he.has(x)) {
|
|
1483
|
-
const
|
|
1484
|
-
c(
|
|
1483
|
+
const b = he.get(x);
|
|
1484
|
+
c(b.url), d(b.playlist), l(!1), m(null);
|
|
1485
1485
|
return;
|
|
1486
1486
|
}
|
|
1487
1487
|
const p = new AbortController(), y = p.signal;
|
|
1488
1488
|
return (async () => {
|
|
1489
|
-
var
|
|
1489
|
+
var _, A;
|
|
1490
1490
|
l(!0), m(null);
|
|
1491
|
-
let
|
|
1492
|
-
for (;
|
|
1491
|
+
let b = 0;
|
|
1492
|
+
for (; b < Re; )
|
|
1493
1493
|
try {
|
|
1494
|
-
const E =
|
|
1494
|
+
const E = t && !r ? wr(e, t) : kr(e, r), S = setTimeout(() => p.abort(), _r), f = await fetch(E, {
|
|
1495
1495
|
method: "GET",
|
|
1496
1496
|
headers: { "api-key": w, Accept: "application/json" },
|
|
1497
1497
|
signal: y
|
|
1498
1498
|
});
|
|
1499
|
-
if (clearTimeout(
|
|
1500
|
-
throw new Error(`Fetch failed with status ${
|
|
1501
|
-
const
|
|
1502
|
-
if (
|
|
1503
|
-
const
|
|
1504
|
-
if (!(
|
|
1499
|
+
if (clearTimeout(S), !f.ok)
|
|
1500
|
+
throw new Error(`Fetch failed with status ${f.status}`);
|
|
1501
|
+
const C = await f.json();
|
|
1502
|
+
if (t && !r) {
|
|
1503
|
+
const B = (A = (_ = C.result) == null ? void 0 : _.items) == null ? void 0 : A.find((I) => I.mediaId === t);
|
|
1504
|
+
if (!(B != null && B.playbackUrl))
|
|
1505
1505
|
throw new Error("Invalid video data");
|
|
1506
|
-
c(
|
|
1506
|
+
c(B.playbackUrl), d(null), x && he.set(x, { url: B.playbackUrl, playlist: null });
|
|
1507
1507
|
} else {
|
|
1508
|
-
if (!Array.isArray(
|
|
1508
|
+
if (!Array.isArray(C.result))
|
|
1509
1509
|
throw new Error("Invalid playlist format");
|
|
1510
|
-
|
|
1510
|
+
d(C.result), c(null), x && he.set(x, { url: null, playlist: C.result });
|
|
1511
1511
|
}
|
|
1512
1512
|
break;
|
|
1513
1513
|
} catch (E) {
|
|
@@ -1515,17 +1515,17 @@ const gt = re.div`
|
|
|
1515
1515
|
m("Request timed out");
|
|
1516
1516
|
break;
|
|
1517
1517
|
}
|
|
1518
|
-
if (
|
|
1519
|
-
const
|
|
1520
|
-
m(`Failed after ${Re} attempts: ${
|
|
1518
|
+
if (b++, b >= Re) {
|
|
1519
|
+
const S = E instanceof Error ? E.message : String(E);
|
|
1520
|
+
m(`Failed after ${Re} attempts: ${S}`);
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
l(!1);
|
|
1524
1524
|
})(), () => {
|
|
1525
1525
|
p.abort();
|
|
1526
1526
|
};
|
|
1527
|
-
}, [w, e,
|
|
1528
|
-
},
|
|
1527
|
+
}, [w, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: s, isLoading: h, error: u };
|
|
1528
|
+
}, Rr = {
|
|
1529
1529
|
projectId: "vp-player-projectId",
|
|
1530
1530
|
video: {
|
|
1531
1531
|
file: "",
|
|
@@ -1577,9 +1577,9 @@ const gt = re.div`
|
|
|
1577
1577
|
// Enabled by default
|
|
1578
1578
|
}
|
|
1579
1579
|
}
|
|
1580
|
-
},
|
|
1580
|
+
}, Tr = ({ videoUrl: e, fetchedPlaybackUrl: t, fetchedPlaylist: r, projectId: n, config: a = {} }) => {
|
|
1581
1581
|
var h, l, u;
|
|
1582
|
-
const i = { ...
|
|
1582
|
+
const i = { ...Rr, ...a }, c = { ...i.config, ...a.config };
|
|
1583
1583
|
if (e)
|
|
1584
1584
|
return {
|
|
1585
1585
|
...i,
|
|
@@ -1590,27 +1590,27 @@ const gt = re.div`
|
|
|
1590
1590
|
},
|
|
1591
1591
|
config: c
|
|
1592
1592
|
};
|
|
1593
|
-
if (
|
|
1593
|
+
if (t)
|
|
1594
1594
|
return {
|
|
1595
1595
|
...i,
|
|
1596
1596
|
video: {
|
|
1597
1597
|
...i.video,
|
|
1598
|
-
file:
|
|
1598
|
+
file: t,
|
|
1599
1599
|
playlist: void 0
|
|
1600
1600
|
},
|
|
1601
1601
|
config: c
|
|
1602
1602
|
};
|
|
1603
|
-
if (
|
|
1603
|
+
if (r && r.length > 0)
|
|
1604
1604
|
return {
|
|
1605
1605
|
...i,
|
|
1606
1606
|
projectId: n || "vp-player-projectId",
|
|
1607
1607
|
video: {
|
|
1608
1608
|
...i.video,
|
|
1609
|
-
file: ((h =
|
|
1609
|
+
file: ((h = r[0]) == null ? void 0 : h.hlsUrl) || "",
|
|
1610
1610
|
playlist: {
|
|
1611
1611
|
state: !0,
|
|
1612
1612
|
playlistVideoIndex: 0,
|
|
1613
|
-
videos:
|
|
1613
|
+
videos: r.map((m, w) => ({
|
|
1614
1614
|
videoId: String(w),
|
|
1615
1615
|
title: m.title,
|
|
1616
1616
|
file: m.hlsUrl,
|
|
@@ -1621,13 +1621,13 @@ const gt = re.div`
|
|
|
1621
1621
|
},
|
|
1622
1622
|
config: c
|
|
1623
1623
|
};
|
|
1624
|
-
const s = ((l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) || i.video.playlist,
|
|
1625
|
-
if (
|
|
1624
|
+
const s = ((l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) || i.video.playlist, d = (u = a == null ? void 0 : a.video) == null ? void 0 : u.file;
|
|
1625
|
+
if (d)
|
|
1626
1626
|
return {
|
|
1627
1627
|
...i,
|
|
1628
1628
|
video: {
|
|
1629
1629
|
...i.video,
|
|
1630
|
-
file:
|
|
1630
|
+
file: d,
|
|
1631
1631
|
playlist: void 0
|
|
1632
1632
|
// No playlist, just one video
|
|
1633
1633
|
},
|
|
@@ -1654,27 +1654,27 @@ const gt = re.div`
|
|
|
1654
1654
|
};
|
|
1655
1655
|
}
|
|
1656
1656
|
throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.");
|
|
1657
|
-
},
|
|
1657
|
+
}, Ar = (e) => {
|
|
1658
1658
|
if (!e)
|
|
1659
1659
|
return;
|
|
1660
|
-
const
|
|
1661
|
-
return
|
|
1662
|
-
},
|
|
1663
|
-
const l = Ve(null), u = Ve(null), { isLoaded: m, error: w } =
|
|
1660
|
+
const t = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, r = e.match(t);
|
|
1661
|
+
return r ? r[2] : void 0;
|
|
1662
|
+
}, Cr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: c, config: s = {}, apiKey: d, isReels: h = !1 }) => {
|
|
1663
|
+
const l = Ve(null), u = Ve(null), { isLoaded: m, error: w } = Er(r, c), x = t || Ar(c), [p, y] = D(null), { fetchedPlaybackUrl: v, fetchedPlaylist: b, isLoading: _, error: A } = Sr({
|
|
1664
1664
|
projectId: a,
|
|
1665
1665
|
videoId: x,
|
|
1666
1666
|
playlistId: i,
|
|
1667
1667
|
videoUrl: n,
|
|
1668
|
-
apiKey:
|
|
1669
|
-
}), E =
|
|
1670
|
-
var
|
|
1668
|
+
apiKey: d
|
|
1669
|
+
}), E = Ne(e, x), S = rt(() => {
|
|
1670
|
+
var f;
|
|
1671
1671
|
return {
|
|
1672
1672
|
...s,
|
|
1673
1673
|
config: {
|
|
1674
1674
|
...s.config,
|
|
1675
1675
|
autostartOnLoad: { state: h, onMobile: !0, onData: !0 },
|
|
1676
1676
|
muted: !1,
|
|
1677
|
-
size: h ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : ((
|
|
1677
|
+
size: h ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : ((f = s.config) == null ? void 0 : f.size) || { sizeType: "FIXED", width: "100%" },
|
|
1678
1678
|
controls: {
|
|
1679
1679
|
settingsButton: !0,
|
|
1680
1680
|
chromecastButton: !1,
|
|
@@ -1721,10 +1721,10 @@ const gt = re.div`
|
|
|
1721
1721
|
return;
|
|
1722
1722
|
}
|
|
1723
1723
|
}, [w]), se(() => {
|
|
1724
|
-
if (!m || !l.current ||
|
|
1724
|
+
if (!m || !l.current || _ && !n)
|
|
1725
1725
|
return;
|
|
1726
|
-
let
|
|
1727
|
-
const
|
|
1726
|
+
let f = !0;
|
|
1727
|
+
const B = setTimeout(async () => {
|
|
1728
1728
|
try {
|
|
1729
1729
|
if (window.vpPlayer && document.querySelectorAll('[id*="player"]').forEach((X) => {
|
|
1730
1730
|
const ne = X.id;
|
|
@@ -1734,7 +1734,7 @@ const gt = re.div`
|
|
|
1734
1734
|
} catch (K) {
|
|
1735
1735
|
console.warn(`Failed to destroy existing player ${ne}:`, K);
|
|
1736
1736
|
}
|
|
1737
|
-
}), await new Promise((
|
|
1737
|
+
}), await new Promise((z) => setTimeout(z, 100)), !f || !l.current)
|
|
1738
1738
|
return;
|
|
1739
1739
|
if (!document.getElementById(E)) {
|
|
1740
1740
|
y("DOM element not found after cleanup.");
|
|
@@ -1744,97 +1744,190 @@ const gt = re.div`
|
|
|
1744
1744
|
y("VP Player script not loaded.");
|
|
1745
1745
|
return;
|
|
1746
1746
|
}
|
|
1747
|
-
const
|
|
1747
|
+
const L = Tr({
|
|
1748
1748
|
videoUrl: n,
|
|
1749
|
-
fetchedPlaybackUrl:
|
|
1750
|
-
fetchedPlaylist:
|
|
1749
|
+
fetchedPlaybackUrl: v,
|
|
1750
|
+
fetchedPlaylist: b,
|
|
1751
1751
|
projectId: a,
|
|
1752
|
-
config:
|
|
1752
|
+
config: S
|
|
1753
1753
|
}), H = window.vpPlayer(E);
|
|
1754
1754
|
if (!H) {
|
|
1755
1755
|
y("Failed to create VP Player instance.");
|
|
1756
1756
|
return;
|
|
1757
1757
|
}
|
|
1758
|
-
|
|
1758
|
+
f && l.current && (H.setup(L), u.current = H, y(null));
|
|
1759
1759
|
} catch (I) {
|
|
1760
|
-
if (
|
|
1761
|
-
const
|
|
1762
|
-
y(
|
|
1760
|
+
if (f) {
|
|
1761
|
+
const L = I instanceof Error ? I.message : String(I);
|
|
1762
|
+
y(L), console.error("VP Player initialization error:", I);
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
1765
|
}, 150);
|
|
1766
1766
|
return () => {
|
|
1767
|
-
|
|
1767
|
+
f = !1, clearTimeout(B);
|
|
1768
1768
|
};
|
|
1769
1769
|
}, [
|
|
1770
1770
|
m,
|
|
1771
|
-
|
|
1771
|
+
_,
|
|
1772
1772
|
n,
|
|
1773
|
-
b,
|
|
1774
1773
|
v,
|
|
1774
|
+
b,
|
|
1775
1775
|
a,
|
|
1776
|
-
|
|
1776
|
+
S,
|
|
1777
1777
|
E
|
|
1778
1778
|
]), se(() => () => {
|
|
1779
1779
|
if (u.current) {
|
|
1780
1780
|
try {
|
|
1781
1781
|
u.current.destroy && u.current.destroy();
|
|
1782
|
-
} catch (
|
|
1783
|
-
console.warn(`Failed to destroy player ${E}:`,
|
|
1782
|
+
} catch (C) {
|
|
1783
|
+
console.warn(`Failed to destroy player ${E}:`, C);
|
|
1784
1784
|
}
|
|
1785
1785
|
u.current = null;
|
|
1786
1786
|
}
|
|
1787
|
-
const
|
|
1788
|
-
|
|
1787
|
+
const f = document.getElementById(E);
|
|
1788
|
+
f && (f.innerHTML = "");
|
|
1789
1789
|
}, [E]), {
|
|
1790
1790
|
playerRef: l,
|
|
1791
1791
|
playerInstanceRef: u,
|
|
1792
1792
|
isScriptLoaded: m,
|
|
1793
|
-
isLoading:
|
|
1794
|
-
error:
|
|
1793
|
+
isLoading: _,
|
|
1794
|
+
error: A || p || w
|
|
1795
1795
|
};
|
|
1796
|
-
},
|
|
1797
|
-
var
|
|
1798
|
-
const { playerRef: w, playerInstanceRef: x, isScriptLoaded: p, isLoading: y, error:
|
|
1796
|
+
}, Or = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: c, config: s = {}, apiKey: d, isReels: h = !1, hiddenClasses: l = [], onClose: u, className: m }) => {
|
|
1797
|
+
var B, I, L, H;
|
|
1798
|
+
const { playerRef: w, playerInstanceRef: x, isScriptLoaded: p, isLoading: y, error: v } = Cr({
|
|
1799
1799
|
playerId: e,
|
|
1800
|
-
videoId:
|
|
1801
|
-
version:
|
|
1800
|
+
videoId: t,
|
|
1801
|
+
version: r,
|
|
1802
1802
|
videoUrl: n,
|
|
1803
1803
|
projectId: a,
|
|
1804
1804
|
playlistId: i,
|
|
1805
1805
|
scriptUrl: c,
|
|
1806
1806
|
config: s,
|
|
1807
|
-
apiKey:
|
|
1807
|
+
apiKey: d,
|
|
1808
1808
|
isReels: h
|
|
1809
|
-
}), [
|
|
1810
|
-
var
|
|
1811
|
-
|
|
1812
|
-
},
|
|
1813
|
-
return
|
|
1814
|
-
},
|
|
1815
|
-
const [
|
|
1809
|
+
}), [b, _] = D(!0), A = () => h && _(!0), E = () => {
|
|
1810
|
+
var z, X;
|
|
1811
|
+
_(!1), (X = (z = x.current) == null ? void 0 : z.play) == null || X.call(z), u == null || u();
|
|
1812
|
+
}, S = (I = (B = s == null ? void 0 : s.config) == null ? void 0 : B.size) != null && I.width ? typeof s.config.size.width == "number" ? `${s.config.size.width}px` : s.config.size.width : void 0, f = (H = (L = s == null ? void 0 : s.config) == null ? void 0 : L.size) != null && H.height ? typeof s.config.size.height == "number" ? `${s.config.size.height}px` : s.config.size.height : void 0, C = Ne(e, t);
|
|
1813
|
+
return v ? O.jsxs(Ie, { type: "error", children: ["An error occurred: ", v] }) : y || !p ? O.jsx(Ie, { type: "loading", children: "Loading..." }) : O.jsxs(O.Fragment, { children: [h && !b ? O.jsx("div", { onClick: A }) : null, !h && O.jsx("div", { children: O.jsx(Qe, { id: C, ref: w, width: S || "100%", height: f || "auto", $hiddenClasses: l, className: m }) }, C), h && b && O.jsx(br, { onClick: E, className: m, children: O.jsx(xr, { className: m, onClick: (z) => z.stopPropagation(), children: O.jsx("div", { children: O.jsx(Qe, { id: C, ref: w, width: "100%", height: "auto", $hiddenClasses: l, className: m }) }, C) }) })] });
|
|
1814
|
+
}, ht = vt(void 0), jr = ({ children: e }) => {
|
|
1815
|
+
const [t, r] = D(!1), [n, a] = D(null), [i, c] = D(null), s = ze((l) => {
|
|
1816
1816
|
try {
|
|
1817
|
-
const u =
|
|
1818
|
-
a({ ...l, playerId: u }),
|
|
1817
|
+
const u = Ne(l.playerId, l.videoId);
|
|
1818
|
+
a({ ...l, playerId: u }), r(!0), c(null);
|
|
1819
1819
|
} catch {
|
|
1820
1820
|
c("Failed to show player.");
|
|
1821
1821
|
}
|
|
1822
|
-
}, []),
|
|
1823
|
-
|
|
1824
|
-
}, []), h =
|
|
1822
|
+
}, []), d = ze(() => {
|
|
1823
|
+
r(!1), a(null), c(null);
|
|
1824
|
+
}, []), h = rt(() => ({
|
|
1825
1825
|
showPlayer: s,
|
|
1826
|
-
hidePlayer:
|
|
1827
|
-
isPlayerVisible:
|
|
1826
|
+
hidePlayer: d,
|
|
1827
|
+
isPlayerVisible: t,
|
|
1828
1828
|
playerParams: n
|
|
1829
|
-
}), [s,
|
|
1830
|
-
return O.jsxs(
|
|
1831
|
-
}, $
|
|
1832
|
-
const e =
|
|
1829
|
+
}), [s, d, t, n]);
|
|
1830
|
+
return O.jsxs(ht.Provider, { value: h, children: [e, i && O.jsx(Ie, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && O.jsx(Or, { playerId: n.playerId, videoId: n.videoId, projectId: n.projectId, videoUrl: n.videoUrl, version: n.version, playlistId: n.playlistId, scriptUrl: n.scriptUrl, config: n.config, isReels: n.isReels, thumbnailUrl: n.thumbnailUrl, onClose: d, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
|
|
1831
|
+
}, $r = () => {
|
|
1832
|
+
const e = tt(ht);
|
|
1833
1833
|
if (!e)
|
|
1834
1834
|
throw new Error("useVPPlayer must be used within a VPPlayerProvider");
|
|
1835
1835
|
return e;
|
|
1836
|
-
}
|
|
1836
|
+
}, Fr = {
|
|
1837
|
+
projectId: "vp-player-projectId",
|
|
1838
|
+
video: {
|
|
1839
|
+
file: "",
|
|
1840
|
+
playlist: {
|
|
1841
|
+
state: !0,
|
|
1842
|
+
playlistVideoIndex: 0,
|
|
1843
|
+
videos: []
|
|
1844
|
+
}
|
|
1845
|
+
},
|
|
1846
|
+
config: {
|
|
1847
|
+
autoplay: !0,
|
|
1848
|
+
pauseOtherVideos: !0,
|
|
1849
|
+
focusOnAutostart: !1,
|
|
1850
|
+
muted: !0,
|
|
1851
|
+
loop: !1,
|
|
1852
|
+
size: {
|
|
1853
|
+
width: "100%"
|
|
1854
|
+
},
|
|
1855
|
+
controls: {
|
|
1856
|
+
settingsButton: !0,
|
|
1857
|
+
chromecastButton: !1,
|
|
1858
|
+
nextButton: !1,
|
|
1859
|
+
fullscreenButton: !0,
|
|
1860
|
+
airplayButton: !1,
|
|
1861
|
+
bigPlayButton: !1,
|
|
1862
|
+
autopausePlayButton: !0,
|
|
1863
|
+
pictureInPictureButton: !1,
|
|
1864
|
+
relatedButton: !1,
|
|
1865
|
+
volumeButton: !0,
|
|
1866
|
+
shareButton: !0
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
}, Nr = {
|
|
1870
|
+
config: {
|
|
1871
|
+
autostartOnLoad: { state: !0, onMobile: !0, onData: !0 },
|
|
1872
|
+
muted: !0
|
|
1873
|
+
}
|
|
1874
|
+
}, Lr = {
|
|
1875
|
+
config: {
|
|
1876
|
+
autoplay: !0,
|
|
1877
|
+
muted: !0
|
|
1878
|
+
}
|
|
1879
|
+
}, Te = {
|
|
1880
|
+
video: {
|
|
1881
|
+
advertising: !0,
|
|
1882
|
+
ads: {
|
|
1883
|
+
skipAd: { state: !0, skipFrom: 5 }
|
|
1884
|
+
}
|
|
1885
|
+
},
|
|
1886
|
+
config: {
|
|
1887
|
+
adAnnouncement: { state: !0, timeBeforeAd: 5 },
|
|
1888
|
+
adsRequireInteraction: !1
|
|
1889
|
+
}
|
|
1890
|
+
}, Br = (e, t, r = "time", n = 0) => {
|
|
1891
|
+
var a;
|
|
1892
|
+
return {
|
|
1893
|
+
...Te,
|
|
1894
|
+
video: {
|
|
1895
|
+
...Te.video,
|
|
1896
|
+
ads: {
|
|
1897
|
+
...(a = Te.video) == null ? void 0 : a.ads,
|
|
1898
|
+
adBreaks: [
|
|
1899
|
+
{
|
|
1900
|
+
adTagUrl: t,
|
|
1901
|
+
breakType: e,
|
|
1902
|
+
breakTimingType: r,
|
|
1903
|
+
breakTimingValue: n
|
|
1904
|
+
}
|
|
1905
|
+
]
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
};
|
|
1909
|
+
}, Mr = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", Vr = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4", zr = "https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4", Dr = "https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600", Ur = "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=", Wr = "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=";
|
|
1837
1910
|
export {
|
|
1838
|
-
|
|
1839
|
-
|
|
1911
|
+
Ur as AD_TAG_LINEAR_URL,
|
|
1912
|
+
Wr as AD_TAG_SKIPPABLE_LINEAR_URL,
|
|
1913
|
+
Mr as BIG_BUCK_BUNNY_URL,
|
|
1914
|
+
Vr as ELEPHANTS_DREAM_URL,
|
|
1915
|
+
br as Overlay,
|
|
1916
|
+
Dr as PEXELS_THUMBNAIL_URL,
|
|
1917
|
+
zr as PEXELS_VERTICAL_VIDEO_URL,
|
|
1918
|
+
Qe as PlayerContainer,
|
|
1919
|
+
xr as PlayerWrapper,
|
|
1920
|
+
Or as VPPlayer,
|
|
1921
|
+
jr as VPPlayerProvider,
|
|
1922
|
+
Nr as baseConfig,
|
|
1923
|
+
Te as baseConfigWithAds,
|
|
1924
|
+
Lr as baseConfigWithAutoplay,
|
|
1925
|
+
Tr as buildVPPlayerConfig,
|
|
1926
|
+
Fr as defaultVPPlayerConfig,
|
|
1927
|
+
Ar as extractVideoId,
|
|
1928
|
+
Br as getAdConfig,
|
|
1929
|
+
$r as useVPPlayer,
|
|
1930
|
+
Cr as useVPPlayerLogic,
|
|
1931
|
+
Er as useVPPlayerScript,
|
|
1932
|
+
Sr as useVideoData
|
|
1840
1933
|
};
|