@devix-technologies/react-gjirafa-vp-player 1.0.31-beta.20 → 1.0.31-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import * as le from "react";
|
|
2
|
+
import $r, { forwardRef as br, useContext as jr, useState as Fe, useEffect as $e, useRef as pe, useId as Mr, useMemo as Ue, useImperativeHandle as Ir } from "react";
|
|
3
|
+
var Te = { exports: {} }, we = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -10,10 +10,10 @@ var Ce = { exports: {} }, we = {};
|
|
|
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
|
-
|
|
13
|
+
var ir;
|
|
14
|
+
function Fr() {
|
|
15
|
+
if (ir) return we;
|
|
16
|
+
ir = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
18
18
|
function t(n, a, s) {
|
|
19
19
|
var u = null;
|
|
@@ -42,24 +42,24 @@ var ke = {};
|
|
|
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 or;
|
|
46
|
+
function Vr() {
|
|
47
|
+
return or || (or = 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")
|
|
51
|
-
return o.$$typeof ===
|
|
51
|
+
return o.$$typeof === Q ? null : o.displayName || o.name || null;
|
|
52
52
|
if (typeof o == "string") return o;
|
|
53
53
|
switch (o) {
|
|
54
|
-
case
|
|
54
|
+
case P:
|
|
55
55
|
return "Fragment";
|
|
56
56
|
case C:
|
|
57
57
|
return "Profiler";
|
|
58
|
-
case
|
|
58
|
+
case S:
|
|
59
59
|
return "StrictMode";
|
|
60
60
|
case F:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case E:
|
|
63
63
|
return "SuspenseList";
|
|
64
64
|
case q:
|
|
65
65
|
return "Activity";
|
|
@@ -70,19 +70,19 @@ function Nr() {
|
|
|
70
70
|
), o.$$typeof) {
|
|
71
71
|
case x:
|
|
72
72
|
return "Portal";
|
|
73
|
-
case
|
|
73
|
+
case N:
|
|
74
74
|
return o.displayName || "Context";
|
|
75
75
|
case V:
|
|
76
76
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
77
|
case z:
|
|
78
|
-
var
|
|
79
|
-
return o = o.displayName, o || (o =
|
|
78
|
+
var g = o.render;
|
|
79
|
+
return o = o.displayName, o || (o = g.displayName || g.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
80
80
|
case te:
|
|
81
|
-
return
|
|
81
|
+
return g = o.displayName || null, g !== null ? g : e(o.type) || "Memo";
|
|
82
82
|
case ce:
|
|
83
|
-
|
|
83
|
+
g = o._payload, o = o._init;
|
|
84
84
|
try {
|
|
85
|
-
return e(o(
|
|
85
|
+
return e(o(g));
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -94,50 +94,50 @@ function Nr() {
|
|
|
94
94
|
function t(o) {
|
|
95
95
|
try {
|
|
96
96
|
r(o);
|
|
97
|
-
var
|
|
97
|
+
var g = !1;
|
|
98
98
|
} catch {
|
|
99
|
-
|
|
99
|
+
g = !0;
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
var O =
|
|
101
|
+
if (g) {
|
|
102
|
+
g = console;
|
|
103
|
+
var O = g.error, M = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
104
|
return O.call(
|
|
105
|
-
|
|
105
|
+
g,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
-
|
|
107
|
+
M
|
|
108
108
|
), r(o);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
function n(o) {
|
|
112
|
-
if (o ===
|
|
112
|
+
if (o === P) return "<>";
|
|
113
113
|
if (typeof o == "object" && o !== null && o.$$typeof === ce)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
|
-
var
|
|
117
|
-
return
|
|
116
|
+
var g = e(o);
|
|
117
|
+
return g ? "<" + g + ">" : "<...>";
|
|
118
118
|
} catch {
|
|
119
119
|
return "<...>";
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
function a() {
|
|
123
|
-
var o =
|
|
123
|
+
var o = J.A;
|
|
124
124
|
return o === null ? null : o.getOwner();
|
|
125
125
|
}
|
|
126
126
|
function s() {
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
129
|
function u(o) {
|
|
130
|
-
if (
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
130
|
+
if (fe.call(o, "key")) {
|
|
131
|
+
var g = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
132
|
+
if (g && g.isReactWarning) return !1;
|
|
133
133
|
}
|
|
134
134
|
return o.key !== void 0;
|
|
135
135
|
}
|
|
136
|
-
function p(o,
|
|
136
|
+
function p(o, g) {
|
|
137
137
|
function O() {
|
|
138
138
|
ne || (ne = !0, console.error(
|
|
139
139
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
140
|
-
|
|
140
|
+
g
|
|
141
141
|
));
|
|
142
142
|
}
|
|
143
143
|
O.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
@@ -147,19 +147,19 @@ function Nr() {
|
|
|
147
147
|
}
|
|
148
148
|
function w() {
|
|
149
149
|
var o = e(this.type);
|
|
150
|
-
return
|
|
150
|
+
return Z[o] || (Z[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 v(o,
|
|
155
|
-
var
|
|
154
|
+
function v(o, g, O, M, i, l) {
|
|
155
|
+
var k = O.ref;
|
|
156
156
|
return o = {
|
|
157
157
|
$$typeof: j,
|
|
158
158
|
type: o,
|
|
159
|
-
key:
|
|
159
|
+
key: g,
|
|
160
160
|
props: O,
|
|
161
|
-
_owner:
|
|
162
|
-
}, (
|
|
161
|
+
_owner: M
|
|
162
|
+
}, (k !== void 0 ? k : null) !== null ? Object.defineProperty(o, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
164
164
|
get: w
|
|
165
165
|
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
@@ -184,48 +184,48 @@ function Nr() {
|
|
|
184
184
|
value: l
|
|
185
185
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
var
|
|
189
|
-
if (
|
|
190
|
-
if (
|
|
191
|
-
if (
|
|
192
|
-
for (
|
|
193
|
-
b(
|
|
194
|
-
Object.freeze && Object.freeze(
|
|
187
|
+
function h(o, g, O, M, i, l) {
|
|
188
|
+
var k = g.children;
|
|
189
|
+
if (k !== void 0)
|
|
190
|
+
if (M)
|
|
191
|
+
if (G(k)) {
|
|
192
|
+
for (M = 0; M < k.length; M++)
|
|
193
|
+
b(k[M]);
|
|
194
|
+
Object.freeze && Object.freeze(k);
|
|
195
195
|
} else
|
|
196
196
|
console.error(
|
|
197
197
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
198
|
);
|
|
199
|
-
else b(
|
|
200
|
-
if (
|
|
201
|
-
|
|
202
|
-
var
|
|
203
|
-
return
|
|
199
|
+
else b(k);
|
|
200
|
+
if (fe.call(g, "key")) {
|
|
201
|
+
k = e(o);
|
|
202
|
+
var H = Object.keys(g).filter(function(R) {
|
|
203
|
+
return R !== "key";
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
M = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", ee[k + M] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
206
|
`A props object containing a "key" prop is being spread into JSX:
|
|
207
207
|
let props = %s;
|
|
208
208
|
<%s {...props} />
|
|
209
209
|
React keys must be passed directly to JSX without using spread:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s key={someKey} {...props} />`,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
),
|
|
212
|
+
M,
|
|
213
|
+
k,
|
|
214
|
+
H,
|
|
215
|
+
k
|
|
216
|
+
), ee[k + M] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (
|
|
218
|
+
if (k = null, O !== void 0 && (t(O), k = "" + O), u(g) && (t(g.key), k = "" + g.key), "key" in g) {
|
|
219
219
|
O = {};
|
|
220
|
-
for (var
|
|
221
|
-
|
|
222
|
-
} else O =
|
|
223
|
-
return
|
|
220
|
+
for (var me in g)
|
|
221
|
+
me !== "key" && (O[me] = g[me]);
|
|
222
|
+
} else O = g;
|
|
223
|
+
return k && p(
|
|
224
224
|
O,
|
|
225
225
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
226
226
|
), v(
|
|
227
227
|
o,
|
|
228
|
-
|
|
228
|
+
k,
|
|
229
229
|
O,
|
|
230
230
|
a(),
|
|
231
231
|
i,
|
|
@@ -233,12 +233,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
235
|
function b(o) {
|
|
236
|
-
|
|
236
|
+
I(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === ce && (o._payload.status === "fulfilled" ? I(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function I(o) {
|
|
239
239
|
return typeof o == "object" && o !== null && o.$$typeof === j;
|
|
240
240
|
}
|
|
241
|
-
var $ =
|
|
241
|
+
var $ = $r, j = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), N = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), te = Symbol.for("react.memo"), ce = Symbol.for("react.lazy"), q = Symbol.for("react.activity"), Q = Symbol.for("react.client.reference"), J = $.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, fe = Object.prototype.hasOwnProperty, G = Array.isArray, d = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
244
|
$ = {
|
|
@@ -246,59 +246,59 @@ React keys must be passed directly to JSX without using spread:
|
|
|
246
246
|
return o();
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
var ne,
|
|
249
|
+
var ne, Z = {}, ue = $.react_stack_bottom_frame.bind(
|
|
250
250
|
$,
|
|
251
251
|
s
|
|
252
|
-
)(), ae = d(n(s)),
|
|
253
|
-
ke.Fragment =
|
|
254
|
-
var
|
|
255
|
-
return
|
|
252
|
+
)(), ae = d(n(s)), ee = {};
|
|
253
|
+
ke.Fragment = P, ke.jsx = function(o, g, O) {
|
|
254
|
+
var M = 1e4 > J.recentlyCreatedOwnerStacks++;
|
|
255
|
+
return h(
|
|
256
256
|
o,
|
|
257
|
-
|
|
257
|
+
g,
|
|
258
258
|
O,
|
|
259
259
|
!1,
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
M ? Error("react-stack-top-frame") : ue,
|
|
261
|
+
M ? d(n(o)) : ae
|
|
262
262
|
);
|
|
263
|
-
}, ke.jsxs = function(o,
|
|
264
|
-
var
|
|
265
|
-
return
|
|
263
|
+
}, ke.jsxs = function(o, g, O) {
|
|
264
|
+
var M = 1e4 > J.recentlyCreatedOwnerStacks++;
|
|
265
|
+
return h(
|
|
266
266
|
o,
|
|
267
|
-
|
|
267
|
+
g,
|
|
268
268
|
O,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
M ? Error("react-stack-top-frame") : ue,
|
|
271
|
+
M ? d(n(o)) : ae
|
|
272
272
|
);
|
|
273
273
|
};
|
|
274
274
|
})()), ke;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
276
|
+
var sr;
|
|
277
277
|
function Lr() {
|
|
278
|
-
return
|
|
278
|
+
return sr || (sr = 1, process.env.NODE_ENV === "production" ? Te.exports = Fr() : Te.exports = Vr()), Te.exports;
|
|
279
279
|
}
|
|
280
280
|
var D = Lr();
|
|
281
|
-
function
|
|
282
|
-
return
|
|
281
|
+
function We() {
|
|
282
|
+
return We = Object.assign ? Object.assign.bind() : function(e) {
|
|
283
283
|
for (var r = 1; r < arguments.length; r++) {
|
|
284
284
|
var t = arguments[r];
|
|
285
285
|
for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
286
286
|
}
|
|
287
287
|
return e;
|
|
288
|
-
},
|
|
288
|
+
}, We.apply(null, arguments);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Nr(e) {
|
|
291
291
|
if (e.sheet)
|
|
292
292
|
return e.sheet;
|
|
293
293
|
for (var r = 0; r < document.styleSheets.length; r++)
|
|
294
294
|
if (document.styleSheets[r].ownerNode === e)
|
|
295
295
|
return document.styleSheets[r];
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function zr(e) {
|
|
298
298
|
var r = document.createElement("style");
|
|
299
299
|
return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
|
|
300
300
|
}
|
|
301
|
-
var
|
|
301
|
+
var Ur = /* @__PURE__ */ (function() {
|
|
302
302
|
function e(t) {
|
|
303
303
|
var n = this;
|
|
304
304
|
this._insertTag = function(a) {
|
|
@@ -310,10 +310,10 @@ var Dr = /* @__PURE__ */ (function() {
|
|
|
310
310
|
return r.hydrate = function(n) {
|
|
311
311
|
n.forEach(this._insertTag);
|
|
312
312
|
}, r.insert = function(n) {
|
|
313
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
313
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(zr(this));
|
|
314
314
|
var a = this.tags[this.tags.length - 1];
|
|
315
315
|
if (this.isSpeedy) {
|
|
316
|
-
var s =
|
|
316
|
+
var s = Nr(a);
|
|
317
317
|
try {
|
|
318
318
|
s.insertRule(n, s.cssRules.length);
|
|
319
319
|
} catch {
|
|
@@ -327,66 +327,66 @@ var Dr = /* @__PURE__ */ (function() {
|
|
|
327
327
|
return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
|
|
328
328
|
}), this.tags = [], this.ctr = 0;
|
|
329
329
|
}, e;
|
|
330
|
-
})(), Y = "-ms-",
|
|
331
|
-
function
|
|
330
|
+
})(), Y = "-ms-", Ve = "-moz-", _ = "-webkit-", xr = "comm", He = "rule", Ge = "decl", Dr = "@import", wr = "@keyframes", Wr = "@layer", Yr = Math.abs, Le = String.fromCharCode, qr = Object.assign;
|
|
331
|
+
function Hr(e, r) {
|
|
332
332
|
return W(e, 0) ^ 45 ? (((r << 2 ^ W(e, 0)) << 2 ^ W(e, 1)) << 2 ^ W(e, 2)) << 2 ^ W(e, 3) : 0;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function kr(e) {
|
|
335
335
|
return e.trim();
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Gr(e, r) {
|
|
338
338
|
return (e = r.exec(e)) ? e[0] : e;
|
|
339
339
|
}
|
|
340
340
|
function T(e, r, t) {
|
|
341
341
|
return e.replace(r, t);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Ye(e, r) {
|
|
344
344
|
return e.indexOf(r);
|
|
345
345
|
}
|
|
346
346
|
function W(e, r) {
|
|
347
347
|
return e.charCodeAt(r) | 0;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function Se(e, r, t) {
|
|
350
350
|
return e.slice(r, t);
|
|
351
351
|
}
|
|
352
352
|
function ie(e) {
|
|
353
353
|
return e.length;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Be(e) {
|
|
356
356
|
return e.length;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function Ae(e, r) {
|
|
359
359
|
return r.push(e), e;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Br(e, r) {
|
|
362
362
|
return e.map(r).join("");
|
|
363
363
|
}
|
|
364
|
-
var
|
|
365
|
-
function
|
|
366
|
-
return { value: e, root: r, parent: t, type: n, props: a, children: s, line:
|
|
364
|
+
var Ne = 1, ve = 1, Pr = 0, X = 0, L = 0, xe = "";
|
|
365
|
+
function ze(e, r, t, n, a, s, u) {
|
|
366
|
+
return { value: e, root: r, parent: t, type: n, props: a, children: s, line: Ne, column: ve, length: u, return: "" };
|
|
367
367
|
}
|
|
368
368
|
function Pe(e, r) {
|
|
369
|
-
return
|
|
369
|
+
return qr(ze("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return
|
|
371
|
+
function Xr() {
|
|
372
|
+
return L;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
return
|
|
374
|
+
function Jr() {
|
|
375
|
+
return L = X > 0 ? W(xe, --X) : 0, ve--, L === 10 && (ve = 1, Ne--), L;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
return
|
|
377
|
+
function K() {
|
|
378
|
+
return L = X < Pr ? W(xe, X++) : 0, ve++, L === 10 && (ve = 1, Ne++), L;
|
|
379
379
|
}
|
|
380
380
|
function se() {
|
|
381
|
-
return W(xe,
|
|
381
|
+
return W(xe, X);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
return
|
|
383
|
+
function je() {
|
|
384
|
+
return X;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
386
|
+
function _e(e, r) {
|
|
387
|
+
return Se(xe, e, r);
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Ee(e) {
|
|
390
390
|
switch (e) {
|
|
391
391
|
// \0 \t \n \r \s whitespace token
|
|
392
392
|
case 0:
|
|
@@ -424,101 +424,101 @@ function Re(e) {
|
|
|
424
424
|
}
|
|
425
425
|
return 0;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
427
|
+
function Sr(e) {
|
|
428
|
+
return Ne = ve = 1, Pr = ie(xe = e), X = 0, [];
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function Er(e) {
|
|
431
431
|
return xe = "", e;
|
|
432
432
|
}
|
|
433
433
|
function Me(e) {
|
|
434
|
-
return
|
|
434
|
+
return kr(_e(X - 1, qe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
435
435
|
}
|
|
436
|
-
function
|
|
437
|
-
for (; (
|
|
438
|
-
|
|
439
|
-
return
|
|
436
|
+
function Zr(e) {
|
|
437
|
+
for (; (L = se()) && L < 33; )
|
|
438
|
+
K();
|
|
439
|
+
return Ee(e) > 2 || Ee(L) > 3 ? "" : " ";
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
for (; --r &&
|
|
441
|
+
function Kr(e, r) {
|
|
442
|
+
for (; --r && K() && !(L < 48 || L > 102 || L > 57 && L < 65 || L > 70 && L < 97); )
|
|
443
443
|
;
|
|
444
|
-
return
|
|
444
|
+
return _e(e, je() + (r < 6 && se() == 32 && K() == 32));
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
for (;
|
|
448
|
-
switch (
|
|
446
|
+
function qe(e) {
|
|
447
|
+
for (; K(); )
|
|
448
|
+
switch (L) {
|
|
449
449
|
// ] ) " '
|
|
450
450
|
case e:
|
|
451
|
-
return
|
|
451
|
+
return X;
|
|
452
452
|
// " '
|
|
453
453
|
case 34:
|
|
454
454
|
case 39:
|
|
455
|
-
e !== 34 && e !== 39 &&
|
|
455
|
+
e !== 34 && e !== 39 && qe(L);
|
|
456
456
|
break;
|
|
457
457
|
// (
|
|
458
458
|
case 40:
|
|
459
|
-
e === 41 &&
|
|
459
|
+
e === 41 && qe(e);
|
|
460
460
|
break;
|
|
461
461
|
// \
|
|
462
462
|
case 92:
|
|
463
|
-
|
|
463
|
+
K();
|
|
464
464
|
break;
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return X;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
for (;
|
|
470
|
-
if (e +
|
|
468
|
+
function Qr(e, r) {
|
|
469
|
+
for (; K() && e + L !== 57; )
|
|
470
|
+
if (e + L === 84 && se() === 47)
|
|
471
471
|
break;
|
|
472
|
-
return "/*" +
|
|
472
|
+
return "/*" + _e(r, X - 1) + "*" + Le(e === 47 ? e : K());
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
for (; !
|
|
476
|
-
|
|
477
|
-
return
|
|
474
|
+
function et(e) {
|
|
475
|
+
for (; !Ee(se()); )
|
|
476
|
+
K();
|
|
477
|
+
return _e(e, X);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
479
|
+
function rt(e) {
|
|
480
|
+
return Er(Ie("", null, null, null, [""], e = Sr(e), 0, [0], e));
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
for (var v = 0,
|
|
484
|
-
switch (j = C, C =
|
|
482
|
+
function Ie(e, r, t, n, a, s, u, p, w) {
|
|
483
|
+
for (var v = 0, h = 0, b = u, I = 0, $ = 0, j = 0, x = 1, P = 1, S = 1, C = 0, V = "", N = a, z = s, F = n, E = V; P; )
|
|
484
|
+
switch (j = C, C = K()) {
|
|
485
485
|
// (
|
|
486
486
|
case 40:
|
|
487
|
-
if (j != 108 && W(
|
|
488
|
-
|
|
487
|
+
if (j != 108 && W(E, b - 1) == 58) {
|
|
488
|
+
Ye(E += T(Me(C), "&", "&\f"), "&\f") != -1 && (S = -1);
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
491
|
// " ' [
|
|
492
492
|
case 34:
|
|
493
493
|
case 39:
|
|
494
494
|
case 91:
|
|
495
|
-
|
|
495
|
+
E += Me(C);
|
|
496
496
|
break;
|
|
497
497
|
// \t \n \r \s
|
|
498
498
|
case 9:
|
|
499
499
|
case 10:
|
|
500
500
|
case 13:
|
|
501
501
|
case 32:
|
|
502
|
-
|
|
502
|
+
E += Zr(j);
|
|
503
503
|
break;
|
|
504
504
|
// \
|
|
505
505
|
case 92:
|
|
506
|
-
|
|
506
|
+
E += Kr(je() - 1, 7);
|
|
507
507
|
continue;
|
|
508
508
|
// /
|
|
509
509
|
case 47:
|
|
510
510
|
switch (se()) {
|
|
511
511
|
case 42:
|
|
512
512
|
case 47:
|
|
513
|
-
|
|
513
|
+
Ae(tt(Qr(K(), je()), r, t), w);
|
|
514
514
|
break;
|
|
515
515
|
default:
|
|
516
|
-
|
|
516
|
+
E += "/";
|
|
517
517
|
}
|
|
518
518
|
break;
|
|
519
519
|
// {
|
|
520
520
|
case 123 * x:
|
|
521
|
-
p[v++] = ie(
|
|
521
|
+
p[v++] = ie(E) * S;
|
|
522
522
|
// } ; \0
|
|
523
523
|
case 125 * x:
|
|
524
524
|
case 59:
|
|
@@ -527,126 +527,126 @@ function Fe(e, r, t, n, a, s, u, p, w) {
|
|
|
527
527
|
// \0 }
|
|
528
528
|
case 0:
|
|
529
529
|
case 125:
|
|
530
|
-
|
|
530
|
+
P = 0;
|
|
531
531
|
// ;
|
|
532
|
-
case 59 +
|
|
533
|
-
|
|
532
|
+
case 59 + h:
|
|
533
|
+
S == -1 && (E = T(E, /\f/g, "")), $ > 0 && ie(E) - b && Ae($ > 32 ? lr(E + ";", n, t, b - 1) : lr(T(E, " ", "") + ";", n, t, b - 2), w);
|
|
534
534
|
break;
|
|
535
535
|
// @ ;
|
|
536
536
|
case 59:
|
|
537
|
-
|
|
537
|
+
E += ";";
|
|
538
538
|
// { rule/at-rule
|
|
539
539
|
default:
|
|
540
|
-
if (
|
|
541
|
-
if (
|
|
542
|
-
|
|
540
|
+
if (Ae(F = cr(E, r, t, v, h, a, p, V, N = [], z = [], b), s), C === 123)
|
|
541
|
+
if (h === 0)
|
|
542
|
+
Ie(E, r, F, F, N, s, b, p, z);
|
|
543
543
|
else
|
|
544
|
-
switch (
|
|
544
|
+
switch (I === 99 && W(E, 3) === 110 ? 100 : I) {
|
|
545
545
|
// d l m s
|
|
546
546
|
case 100:
|
|
547
547
|
case 108:
|
|
548
548
|
case 109:
|
|
549
549
|
case 115:
|
|
550
|
-
|
|
550
|
+
Ie(e, F, F, n && Ae(cr(e, F, F, 0, 0, a, p, V, a, N = [], b), z), a, z, b, p, n ? N : z);
|
|
551
551
|
break;
|
|
552
552
|
default:
|
|
553
|
-
|
|
553
|
+
Ie(E, F, F, F, [""], z, 0, p, z);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
v =
|
|
556
|
+
v = h = $ = 0, x = S = 1, V = E = "", b = u;
|
|
557
557
|
break;
|
|
558
558
|
// :
|
|
559
559
|
case 58:
|
|
560
|
-
b = 1 + ie(
|
|
560
|
+
b = 1 + ie(E), $ = j;
|
|
561
561
|
default:
|
|
562
562
|
if (x < 1) {
|
|
563
563
|
if (C == 123)
|
|
564
564
|
--x;
|
|
565
|
-
else if (C == 125 && x++ == 0 &&
|
|
565
|
+
else if (C == 125 && x++ == 0 && Jr() == 125)
|
|
566
566
|
continue;
|
|
567
567
|
}
|
|
568
|
-
switch (
|
|
568
|
+
switch (E += Le(C), C * x) {
|
|
569
569
|
// &
|
|
570
570
|
case 38:
|
|
571
|
-
|
|
571
|
+
S = h > 0 ? 1 : (E += "\f", -1);
|
|
572
572
|
break;
|
|
573
573
|
// ,
|
|
574
574
|
case 44:
|
|
575
|
-
p[v++] = (ie(
|
|
575
|
+
p[v++] = (ie(E) - 1) * S, S = 1;
|
|
576
576
|
break;
|
|
577
577
|
// @
|
|
578
578
|
case 64:
|
|
579
|
-
se() === 45 && (
|
|
579
|
+
se() === 45 && (E += Me(K())), I = se(), h = b = ie(V = E += et(je())), C++;
|
|
580
580
|
break;
|
|
581
581
|
// -
|
|
582
582
|
case 45:
|
|
583
|
-
j === 45 && ie(
|
|
583
|
+
j === 45 && ie(E) == 2 && (x = 0);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
return s;
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
for (var b = a - 1,
|
|
590
|
-
for (var
|
|
591
|
-
(V =
|
|
592
|
-
return
|
|
588
|
+
function cr(e, r, t, n, a, s, u, p, w, v, h) {
|
|
589
|
+
for (var b = a - 1, I = a === 0 ? s : [""], $ = Be(I), j = 0, x = 0, P = 0; j < n; ++j)
|
|
590
|
+
for (var S = 0, C = Se(e, b + 1, b = Yr(x = u[j])), V = e; S < $; ++S)
|
|
591
|
+
(V = kr(x > 0 ? I[S] + " " + C : T(C, /&\f/g, I[S]))) && (w[P++] = V);
|
|
592
|
+
return ze(e, r, t, a === 0 ? He : p, w, v, h);
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
return
|
|
594
|
+
function tt(e, r, t) {
|
|
595
|
+
return ze(e, r, t, xr, Le(Xr()), Se(e, 2, -2), 0);
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
return
|
|
597
|
+
function lr(e, r, t, n) {
|
|
598
|
+
return ze(e, r, t, Ge, Se(e, 0, n), Se(e, n + 1, -1), n);
|
|
599
599
|
}
|
|
600
600
|
function ye(e, r) {
|
|
601
|
-
for (var t = "", n =
|
|
601
|
+
for (var t = "", n = Be(e), a = 0; a < n; a++)
|
|
602
602
|
t += r(e[a], a, e, r) || "";
|
|
603
603
|
return t;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function nt(e, r, t, n) {
|
|
606
606
|
switch (e.type) {
|
|
607
|
-
case Yr:
|
|
608
|
-
if (e.children.length) break;
|
|
609
607
|
case Wr:
|
|
610
|
-
|
|
608
|
+
if (e.children.length) break;
|
|
609
|
+
case Dr:
|
|
610
|
+
case Ge:
|
|
611
611
|
return e.return = e.return || e.value;
|
|
612
|
-
case
|
|
612
|
+
case xr:
|
|
613
613
|
return "";
|
|
614
|
-
case
|
|
614
|
+
case wr:
|
|
615
615
|
return e.return = e.value + "{" + ye(e.children, n) + "}";
|
|
616
|
-
case
|
|
616
|
+
case He:
|
|
617
617
|
e.value = e.props.join(",");
|
|
618
618
|
}
|
|
619
619
|
return ie(t = ye(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
var r =
|
|
621
|
+
function at(e) {
|
|
622
|
+
var r = Be(e);
|
|
623
623
|
return function(t, n, a, s) {
|
|
624
624
|
for (var u = "", p = 0; p < r; p++)
|
|
625
625
|
u += e[p](t, n, a, s) || "";
|
|
626
626
|
return u;
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function it(e) {
|
|
630
630
|
return function(r) {
|
|
631
631
|
r.root || (r = r.return) && e(r);
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function Rr(e) {
|
|
635
635
|
var r = /* @__PURE__ */ Object.create(null);
|
|
636
636
|
return function(t) {
|
|
637
637
|
return r[t] === void 0 && (r[t] = e(t)), r[t];
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
|
-
var
|
|
641
|
-
for (var a = 0, s = 0; a = s, s = se(), a === 38 && s === 12 && (t[n] = 1), !
|
|
642
|
-
|
|
643
|
-
return
|
|
644
|
-
},
|
|
640
|
+
var ot = function(r, t, n) {
|
|
641
|
+
for (var a = 0, s = 0; a = s, s = se(), a === 38 && s === 12 && (t[n] = 1), !Ee(s); )
|
|
642
|
+
K();
|
|
643
|
+
return _e(r, X);
|
|
644
|
+
}, st = function(r, t) {
|
|
645
645
|
var n = -1, a = 44;
|
|
646
646
|
do
|
|
647
|
-
switch (
|
|
647
|
+
switch (Ee(a)) {
|
|
648
648
|
case 0:
|
|
649
|
-
a === 38 && se() === 12 && (t[n] = 1), r[n] +=
|
|
649
|
+
a === 38 && se() === 12 && (t[n] = 1), r[n] += ot(X - 1, t, n);
|
|
650
650
|
break;
|
|
651
651
|
case 2:
|
|
652
652
|
r[n] += Me(a);
|
|
@@ -660,24 +660,24 @@ var st = function(r, t, n) {
|
|
|
660
660
|
default:
|
|
661
661
|
r[n] += Le(a);
|
|
662
662
|
}
|
|
663
|
-
while (a =
|
|
663
|
+
while (a = K());
|
|
664
664
|
return r;
|
|
665
|
-
},
|
|
666
|
-
return
|
|
667
|
-
},
|
|
665
|
+
}, ct = function(r, t) {
|
|
666
|
+
return Er(st(Sr(r), t));
|
|
667
|
+
}, ur = /* @__PURE__ */ new WeakMap(), lt = function(r) {
|
|
668
668
|
if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
|
|
669
669
|
// negative .length indicates that this rule has been already prefixed
|
|
670
670
|
r.length < 1)) {
|
|
671
671
|
for (var t = r.value, n = r.parent, a = r.column === n.column && r.line === n.line; n.type !== "rule"; )
|
|
672
672
|
if (n = n.parent, !n) return;
|
|
673
|
-
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !
|
|
674
|
-
|
|
675
|
-
for (var s = [], u =
|
|
676
|
-
for (var
|
|
677
|
-
r.props[v] = s[w] ? u[w].replace(/&\f/g, p[
|
|
673
|
+
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !ur.get(n)) && !a) {
|
|
674
|
+
ur.set(r, !0);
|
|
675
|
+
for (var s = [], u = ct(t, s), p = n.props, w = 0, v = 0; w < u.length; w++)
|
|
676
|
+
for (var h = 0; h < p.length; h++, v++)
|
|
677
|
+
r.props[v] = s[w] ? u[w].replace(/&\f/g, p[h]) : p[h] + " " + u[w];
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
},
|
|
680
|
+
}, ut = function(r) {
|
|
681
681
|
if (r.type === "decl") {
|
|
682
682
|
var t = r.value;
|
|
683
683
|
// charcode for l
|
|
@@ -685,8 +685,8 @@ var st = function(r, t, n) {
|
|
|
685
685
|
t.charCodeAt(2) === 98 && (r.return = "", r.value = "");
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
|
-
function
|
|
689
|
-
switch (
|
|
688
|
+
function _r(e, r) {
|
|
689
|
+
switch (Hr(e, r)) {
|
|
690
690
|
// color-adjust
|
|
691
691
|
case 5103:
|
|
692
692
|
return _ + "print-" + e + e;
|
|
@@ -726,7 +726,7 @@ function Tr(e, r) {
|
|
|
726
726
|
case 4810:
|
|
727
727
|
case 6968:
|
|
728
728
|
case 2756:
|
|
729
|
-
return _ + e +
|
|
729
|
+
return _ + e + Ve + e + Y + e + e;
|
|
730
730
|
// flex, flex-direction
|
|
731
731
|
case 6828:
|
|
732
732
|
case 4268:
|
|
@@ -790,10 +790,10 @@ function Tr(e, r) {
|
|
|
790
790
|
if (W(e, r + 4) !== 45) break;
|
|
791
791
|
// (f)ill-available, (f)it-content
|
|
792
792
|
case 102:
|
|
793
|
-
return T(e, /(.+:)(.+)-([^]+)/, "$1" + _ + "$2-$3$1" +
|
|
793
|
+
return T(e, /(.+:)(.+)-([^]+)/, "$1" + _ + "$2-$3$1" + Ve + (W(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
794
794
|
// (s)tretch
|
|
795
795
|
case 115:
|
|
796
|
-
return ~
|
|
796
|
+
return ~Ye(e, "stretch") ? _r(T(e, "stretch", "fill-available"), r) + e : e;
|
|
797
797
|
}
|
|
798
798
|
break;
|
|
799
799
|
// position: sticky
|
|
@@ -801,7 +801,7 @@ function Tr(e, r) {
|
|
|
801
801
|
if (W(e, r + 1) !== 115) break;
|
|
802
802
|
// display: (flex|inline-flex)
|
|
803
803
|
case 6444:
|
|
804
|
-
switch (W(e, ie(e) - 3 - (~
|
|
804
|
+
switch (W(e, ie(e) - 3 - (~Ye(e, "!important") && 10))) {
|
|
805
805
|
// stic(k)y
|
|
806
806
|
case 107:
|
|
807
807
|
return T(e, ":", ":" + _) + e;
|
|
@@ -827,30 +827,30 @@ function Tr(e, r) {
|
|
|
827
827
|
}
|
|
828
828
|
return e;
|
|
829
829
|
}
|
|
830
|
-
var
|
|
830
|
+
var ft = function(r, t, n, a) {
|
|
831
831
|
if (r.length > -1 && !r.return) switch (r.type) {
|
|
832
|
-
case
|
|
833
|
-
r.return =
|
|
832
|
+
case Ge:
|
|
833
|
+
r.return = _r(r.value, r.length);
|
|
834
834
|
break;
|
|
835
|
-
case
|
|
835
|
+
case wr:
|
|
836
836
|
return ye([Pe(r, {
|
|
837
837
|
value: T(r.value, "@", "@" + _)
|
|
838
838
|
})], a);
|
|
839
|
-
case
|
|
840
|
-
if (r.length) return
|
|
841
|
-
switch (
|
|
839
|
+
case He:
|
|
840
|
+
if (r.length) return Br(r.props, function(s) {
|
|
841
|
+
switch (Gr(s, /(::plac\w+|:read-\w+)/)) {
|
|
842
842
|
// :read-(only|write)
|
|
843
843
|
case ":read-only":
|
|
844
844
|
case ":read-write":
|
|
845
845
|
return ye([Pe(r, {
|
|
846
|
-
props: [T(s, /:(read-\w+)/, ":" +
|
|
846
|
+
props: [T(s, /:(read-\w+)/, ":" + Ve + "$1")]
|
|
847
847
|
})], a);
|
|
848
848
|
// :placeholder
|
|
849
849
|
case "::placeholder":
|
|
850
850
|
return ye([Pe(r, {
|
|
851
851
|
props: [T(s, /:(plac\w+)/, ":" + _ + "input-$1")]
|
|
852
852
|
}), Pe(r, {
|
|
853
|
-
props: [T(s, /:(plac\w+)/, ":" +
|
|
853
|
+
props: [T(s, /:(plac\w+)/, ":" + Ve + "$1")]
|
|
854
854
|
}), Pe(r, {
|
|
855
855
|
props: [T(s, /:(plac\w+)/, Y + "input-$1")]
|
|
856
856
|
})], a);
|
|
@@ -858,40 +858,40 @@ var dt = function(r, t, n, a) {
|
|
|
858
858
|
return "";
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
},
|
|
861
|
+
}, dt = [ft], pt = function(r) {
|
|
862
862
|
var t = r.key;
|
|
863
863
|
if (t === "css") {
|
|
864
864
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
865
865
|
Array.prototype.forEach.call(n, function(x) {
|
|
866
|
-
var
|
|
867
|
-
|
|
866
|
+
var P = x.getAttribute("data-emotion");
|
|
867
|
+
P.indexOf(" ") !== -1 && (document.head.appendChild(x), x.setAttribute("data-s", ""));
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
|
-
var a = r.stylisPlugins ||
|
|
870
|
+
var a = r.stylisPlugins || dt, s = {}, u, p = [];
|
|
871
871
|
u = r.container || document.head, Array.prototype.forEach.call(
|
|
872
872
|
// this means we will ignore elements which don't have a space in them which
|
|
873
873
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
874
874
|
document.querySelectorAll('style[data-emotion^="' + t + ' "]'),
|
|
875
875
|
function(x) {
|
|
876
|
-
for (var
|
|
877
|
-
s[
|
|
876
|
+
for (var P = x.getAttribute("data-emotion").split(" "), S = 1; S < P.length; S++)
|
|
877
|
+
s[P[S]] = !0;
|
|
878
878
|
p.push(x);
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
|
-
var w, v = [
|
|
881
|
+
var w, v = [lt, ut];
|
|
882
882
|
{
|
|
883
|
-
var
|
|
884
|
-
|
|
885
|
-
})],
|
|
886
|
-
return ye(
|
|
883
|
+
var h, b = [nt, it(function(x) {
|
|
884
|
+
h.insert(x);
|
|
885
|
+
})], I = at(v.concat(a, b)), $ = function(P) {
|
|
886
|
+
return ye(rt(P), I);
|
|
887
887
|
};
|
|
888
|
-
w = function(
|
|
889
|
-
|
|
888
|
+
w = function(P, S, C, V) {
|
|
889
|
+
h = C, $(P ? P + "{" + S.styles + "}" : S.styles), V && (j.inserted[S.name] = !0);
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
892
|
var j = {
|
|
893
893
|
key: t,
|
|
894
|
-
sheet: new
|
|
894
|
+
sheet: new Ur({
|
|
895
895
|
key: t,
|
|
896
896
|
container: u,
|
|
897
897
|
nonce: r.nonce,
|
|
@@ -905,14 +905,14 @@ var dt = function(r, t, n, a) {
|
|
|
905
905
|
insert: w
|
|
906
906
|
};
|
|
907
907
|
return j.sheet.hydrate(p), j;
|
|
908
|
-
},
|
|
909
|
-
function
|
|
908
|
+
}, ht = !0;
|
|
909
|
+
function mt(e, r, t) {
|
|
910
910
|
var n = "";
|
|
911
911
|
return t.split(" ").forEach(function(a) {
|
|
912
912
|
e[a] !== void 0 ? r.push(e[a] + ";") : a && (n += a + " ");
|
|
913
913
|
}), n;
|
|
914
914
|
}
|
|
915
|
-
var
|
|
915
|
+
var Tr = function(r, t, n) {
|
|
916
916
|
var a = r.key + "-" + t.name;
|
|
917
917
|
// we only need to add the styles to the registered cache if the
|
|
918
918
|
// class name could be used further down
|
|
@@ -923,9 +923,9 @@ var Ar = function(r, t, n) {
|
|
|
923
923
|
// in node since emotion-server relies on whether a style is in
|
|
924
924
|
// the registered cache to know whether a style is global or not
|
|
925
925
|
// also, note that this check will be dead code eliminated in the browser
|
|
926
|
-
|
|
927
|
-
},
|
|
928
|
-
|
|
926
|
+
ht === !1) && r.registered[a] === void 0 && (r.registered[a] = t.styles);
|
|
927
|
+
}, gt = function(r, t, n) {
|
|
928
|
+
Tr(r, t, n);
|
|
929
929
|
var a = r.key + "-" + t.name;
|
|
930
930
|
if (r.inserted[t.name] === void 0) {
|
|
931
931
|
var s = t;
|
|
@@ -934,7 +934,7 @@ var Ar = function(r, t, n) {
|
|
|
934
934
|
while (s !== void 0);
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
|
-
function
|
|
937
|
+
function yt(e) {
|
|
938
938
|
for (var r = 0, t, n = 0, a = e.length; a >= 4; ++n, a -= 4)
|
|
939
939
|
t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */
|
|
940
940
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
|
|
@@ -953,7 +953,7 @@ function vt(e) {
|
|
|
953
953
|
return r ^= r >>> 13, r = /* Math.imul(h, m): */
|
|
954
954
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
|
|
955
955
|
}
|
|
956
|
-
var
|
|
956
|
+
var vt = {
|
|
957
957
|
animationIterationCount: 1,
|
|
958
958
|
aspectRatio: 1,
|
|
959
959
|
borderImageOutset: 1,
|
|
@@ -1002,18 +1002,18 @@ var bt = {
|
|
|
1002
1002
|
strokeMiterlimit: 1,
|
|
1003
1003
|
strokeOpacity: 1,
|
|
1004
1004
|
strokeWidth: 1
|
|
1005
|
-
},
|
|
1005
|
+
}, bt = /[A-Z]|^ms/g, xt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Ar = function(r) {
|
|
1006
1006
|
return r.charCodeAt(1) === 45;
|
|
1007
|
-
},
|
|
1007
|
+
}, fr = function(r) {
|
|
1008
1008
|
return r != null && typeof r != "boolean";
|
|
1009
|
-
},
|
|
1010
|
-
return
|
|
1011
|
-
}),
|
|
1009
|
+
}, De = /* @__PURE__ */ Rr(function(e) {
|
|
1010
|
+
return Ar(e) ? e : e.replace(bt, "-$&").toLowerCase();
|
|
1011
|
+
}), dr = function(r, t) {
|
|
1012
1012
|
switch (r) {
|
|
1013
1013
|
case "animation":
|
|
1014
1014
|
case "animationName":
|
|
1015
1015
|
if (typeof t == "string")
|
|
1016
|
-
return t.replace(
|
|
1016
|
+
return t.replace(xt, function(n, a, s) {
|
|
1017
1017
|
return oe = {
|
|
1018
1018
|
name: a,
|
|
1019
1019
|
styles: s,
|
|
@@ -1021,9 +1021,9 @@ var bt = {
|
|
|
1021
1021
|
}, a;
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
return
|
|
1024
|
+
return vt[r] !== 1 && !Ar(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
1025
1025
|
};
|
|
1026
|
-
function
|
|
1026
|
+
function Re(e, r, t) {
|
|
1027
1027
|
if (t == null)
|
|
1028
1028
|
return "";
|
|
1029
1029
|
var n = t;
|
|
@@ -1053,42 +1053,42 @@ function _e(e, r, t) {
|
|
|
1053
1053
|
var p = s.styles + ";";
|
|
1054
1054
|
return p;
|
|
1055
1055
|
}
|
|
1056
|
-
return
|
|
1056
|
+
return wt(e, r, t);
|
|
1057
1057
|
}
|
|
1058
1058
|
case "function": {
|
|
1059
1059
|
if (e !== void 0) {
|
|
1060
1060
|
var w = oe, v = t(e);
|
|
1061
|
-
return oe = w,
|
|
1061
|
+
return oe = w, Re(e, r, v);
|
|
1062
1062
|
}
|
|
1063
1063
|
break;
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
var
|
|
1066
|
+
var h = t;
|
|
1067
1067
|
if (r == null)
|
|
1068
|
-
return
|
|
1069
|
-
var b = r[
|
|
1070
|
-
return b !== void 0 ? b :
|
|
1068
|
+
return h;
|
|
1069
|
+
var b = r[h];
|
|
1070
|
+
return b !== void 0 ? b : h;
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function wt(e, r, t) {
|
|
1073
1073
|
var n = "";
|
|
1074
1074
|
if (Array.isArray(t))
|
|
1075
1075
|
for (var a = 0; a < t.length; a++)
|
|
1076
|
-
n +=
|
|
1076
|
+
n += Re(e, r, t[a]) + ";";
|
|
1077
1077
|
else
|
|
1078
1078
|
for (var s in t) {
|
|
1079
1079
|
var u = t[s];
|
|
1080
1080
|
if (typeof u != "object") {
|
|
1081
1081
|
var p = u;
|
|
1082
|
-
r != null && r[p] !== void 0 ? n += s + "{" + r[p] + "}" :
|
|
1082
|
+
r != null && r[p] !== void 0 ? n += s + "{" + r[p] + "}" : fr(p) && (n += De(s) + ":" + dr(s, p) + ";");
|
|
1083
1083
|
} else if (Array.isArray(u) && typeof u[0] == "string" && (r == null || r[u[0]] === void 0))
|
|
1084
1084
|
for (var w = 0; w < u.length; w++)
|
|
1085
|
-
|
|
1085
|
+
fr(u[w]) && (n += De(s) + ":" + dr(s, u[w]) + ";");
|
|
1086
1086
|
else {
|
|
1087
|
-
var v =
|
|
1087
|
+
var v = Re(e, r, u);
|
|
1088
1088
|
switch (s) {
|
|
1089
1089
|
case "animation":
|
|
1090
1090
|
case "animationName": {
|
|
1091
|
-
n +=
|
|
1091
|
+
n += De(s) + ":" + v + ";";
|
|
1092
1092
|
break;
|
|
1093
1093
|
}
|
|
1094
1094
|
default:
|
|
@@ -1098,66 +1098,66 @@ function kt(e, r, t) {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
return n;
|
|
1100
1100
|
}
|
|
1101
|
-
var
|
|
1102
|
-
function
|
|
1101
|
+
var pr = /label:\s*([^\s;{]+)\s*(;|$)/g, oe;
|
|
1102
|
+
function kt(e, r, t) {
|
|
1103
1103
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1104
1104
|
return e[0];
|
|
1105
1105
|
var n = !0, a = "";
|
|
1106
1106
|
oe = void 0;
|
|
1107
1107
|
var s = e[0];
|
|
1108
1108
|
if (s == null || s.raw === void 0)
|
|
1109
|
-
n = !1, a +=
|
|
1109
|
+
n = !1, a += Re(t, r, s);
|
|
1110
1110
|
else {
|
|
1111
1111
|
var u = s;
|
|
1112
1112
|
a += u[0];
|
|
1113
1113
|
}
|
|
1114
1114
|
for (var p = 1; p < e.length; p++)
|
|
1115
|
-
if (a +=
|
|
1115
|
+
if (a += Re(t, r, e[p]), n) {
|
|
1116
1116
|
var w = s;
|
|
1117
1117
|
a += w[p];
|
|
1118
1118
|
}
|
|
1119
|
-
|
|
1120
|
-
for (var v = "",
|
|
1121
|
-
v += "-" +
|
|
1122
|
-
var b =
|
|
1119
|
+
pr.lastIndex = 0;
|
|
1120
|
+
for (var v = "", h; (h = pr.exec(a)) !== null; )
|
|
1121
|
+
v += "-" + h[1];
|
|
1122
|
+
var b = yt(a) + v;
|
|
1123
1123
|
return {
|
|
1124
1124
|
name: b,
|
|
1125
1125
|
styles: a,
|
|
1126
1126
|
next: oe
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
|
-
var
|
|
1129
|
+
var Pt = function(r) {
|
|
1130
1130
|
return r();
|
|
1131
|
-
},
|
|
1131
|
+
}, St = le.useInsertionEffect ? le.useInsertionEffect : !1, Et = St || Pt, Cr = /* @__PURE__ */ le.createContext(
|
|
1132
1132
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1133
1133
|
// because this module is primarily intended for the browser and node
|
|
1134
1134
|
// but it's also required in react native and similar environments sometimes
|
|
1135
1135
|
// and we could have a special build just for that
|
|
1136
1136
|
// but this is much easier and the native packages
|
|
1137
1137
|
// might use a different theme context in the future anyway
|
|
1138
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1138
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ pt({
|
|
1139
1139
|
key: "css"
|
|
1140
1140
|
}) : null
|
|
1141
1141
|
);
|
|
1142
|
-
|
|
1143
|
-
var
|
|
1144
|
-
return /* @__PURE__ */
|
|
1145
|
-
var a =
|
|
1142
|
+
Cr.Provider;
|
|
1143
|
+
var Rt = function(r) {
|
|
1144
|
+
return /* @__PURE__ */ br(function(t, n) {
|
|
1145
|
+
var a = jr(Cr);
|
|
1146
1146
|
return r(t, a, n);
|
|
1147
1147
|
});
|
|
1148
|
-
},
|
|
1148
|
+
}, _t = /* @__PURE__ */ le.createContext({}), Tt = /^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/, At = /* @__PURE__ */ Rr(
|
|
1149
1149
|
function(e) {
|
|
1150
|
-
return
|
|
1150
|
+
return Tt.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
1151
1151
|
}
|
|
1152
1152
|
/* Z+1 */
|
|
1153
|
-
),
|
|
1153
|
+
), Ct = At, Ot = function(r) {
|
|
1154
1154
|
return r !== "theme";
|
|
1155
|
-
},
|
|
1155
|
+
}, hr = function(r) {
|
|
1156
1156
|
return typeof r == "string" && // 96 is one less than the char code
|
|
1157
1157
|
// for "a" so this is checking that
|
|
1158
1158
|
// it's a lowercase character
|
|
1159
|
-
r.charCodeAt(0) > 96 ?
|
|
1160
|
-
},
|
|
1159
|
+
r.charCodeAt(0) > 96 ? Ct : Ot;
|
|
1160
|
+
}, mr = function(r, t, n) {
|
|
1161
1161
|
var a;
|
|
1162
1162
|
if (t) {
|
|
1163
1163
|
var s = t.shouldForwardProp;
|
|
@@ -1166,52 +1166,52 @@ var _t = function(r) {
|
|
|
1166
1166
|
} : s;
|
|
1167
1167
|
}
|
|
1168
1168
|
return typeof a != "function" && n && (a = r.__emotion_forwardProp), a;
|
|
1169
|
-
},
|
|
1169
|
+
}, $t = function(r) {
|
|
1170
1170
|
var t = r.cache, n = r.serialized, a = r.isStringTag;
|
|
1171
|
-
return
|
|
1172
|
-
return
|
|
1171
|
+
return Tr(t, n, a), Et(function() {
|
|
1172
|
+
return gt(t, n, a);
|
|
1173
1173
|
}), null;
|
|
1174
|
-
},
|
|
1174
|
+
}, jt = function e(r, t) {
|
|
1175
1175
|
var n = r.__emotion_real === r, a = n && r.__emotion_base || r, s, u;
|
|
1176
1176
|
t !== void 0 && (s = t.label, u = t.target);
|
|
1177
|
-
var p =
|
|
1177
|
+
var p = mr(r, t, n), w = p || hr(a), v = !w("as");
|
|
1178
1178
|
return function() {
|
|
1179
|
-
var
|
|
1180
|
-
if (s !== void 0 && b.push("label:" + s + ";"),
|
|
1181
|
-
b.push.apply(b,
|
|
1179
|
+
var h = arguments, b = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
|
|
1180
|
+
if (s !== void 0 && b.push("label:" + s + ";"), h[0] == null || h[0].raw === void 0)
|
|
1181
|
+
b.push.apply(b, h);
|
|
1182
1182
|
else {
|
|
1183
|
-
var
|
|
1184
|
-
b.push(
|
|
1185
|
-
for (var $ =
|
|
1186
|
-
b.push(
|
|
1183
|
+
var I = h[0];
|
|
1184
|
+
b.push(I[0]);
|
|
1185
|
+
for (var $ = h.length, j = 1; j < $; j++)
|
|
1186
|
+
b.push(h[j], I[j]);
|
|
1187
1187
|
}
|
|
1188
|
-
var x =
|
|
1189
|
-
var V = v &&
|
|
1190
|
-
if (
|
|
1188
|
+
var x = Rt(function(P, S, C) {
|
|
1189
|
+
var V = v && P.as || a, N = "", z = [], F = P;
|
|
1190
|
+
if (P.theme == null) {
|
|
1191
1191
|
F = {};
|
|
1192
|
-
for (var
|
|
1193
|
-
F[
|
|
1194
|
-
F.theme =
|
|
1192
|
+
for (var E in P)
|
|
1193
|
+
F[E] = P[E];
|
|
1194
|
+
F.theme = le.useContext(_t);
|
|
1195
1195
|
}
|
|
1196
|
-
typeof
|
|
1197
|
-
var te =
|
|
1198
|
-
|
|
1199
|
-
var ce = v && p === void 0 ?
|
|
1200
|
-
for (var
|
|
1201
|
-
v &&
|
|
1202
|
-
return q.className =
|
|
1203
|
-
cache:
|
|
1196
|
+
typeof P.className == "string" ? N = mt(S.registered, z, P.className) : P.className != null && (N = P.className + " ");
|
|
1197
|
+
var te = kt(b.concat(z), S.registered, F);
|
|
1198
|
+
N += S.key + "-" + te.name, u !== void 0 && (N += " " + u);
|
|
1199
|
+
var ce = v && p === void 0 ? hr(V) : w, q = {};
|
|
1200
|
+
for (var Q in P)
|
|
1201
|
+
v && Q === "as" || ce(Q) && (q[Q] = P[Q]);
|
|
1202
|
+
return q.className = N, C && (q.ref = C), /* @__PURE__ */ le.createElement(le.Fragment, null, /* @__PURE__ */ le.createElement($t, {
|
|
1203
|
+
cache: S,
|
|
1204
1204
|
serialized: te,
|
|
1205
1205
|
isStringTag: typeof V == "string"
|
|
1206
|
-
}), /* @__PURE__ */
|
|
1206
|
+
}), /* @__PURE__ */ le.createElement(V, q));
|
|
1207
1207
|
});
|
|
1208
1208
|
return x.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", x.defaultProps = r.defaultProps, x.__emotion_real = x, x.__emotion_base = a, x.__emotion_styles = b, x.__emotion_forwardProp = p, Object.defineProperty(x, "toString", {
|
|
1209
1209
|
value: function() {
|
|
1210
1210
|
return "." + u;
|
|
1211
1211
|
}
|
|
1212
|
-
}), x.withComponent = function(
|
|
1213
|
-
var C = e(
|
|
1214
|
-
shouldForwardProp:
|
|
1212
|
+
}), x.withComponent = function(P, S) {
|
|
1213
|
+
var C = e(P, We({}, t, S, {
|
|
1214
|
+
shouldForwardProp: mr(x, S, !0)
|
|
1215
1215
|
}));
|
|
1216
1216
|
return C.apply(void 0, b);
|
|
1217
1217
|
}, x;
|
|
@@ -1352,11 +1352,11 @@ var _t = function(r) {
|
|
|
1352
1352
|
"svg",
|
|
1353
1353
|
"text",
|
|
1354
1354
|
"tspan"
|
|
1355
|
-
], be =
|
|
1355
|
+
], be = jt.bind(null);
|
|
1356
1356
|
Mt.forEach(function(e) {
|
|
1357
1357
|
be[e] = be(e);
|
|
1358
1358
|
});
|
|
1359
|
-
const
|
|
1359
|
+
const It = be.div`
|
|
1360
1360
|
display: flex;
|
|
1361
1361
|
align-items: center;
|
|
1362
1362
|
justify-content: center;
|
|
@@ -1397,11 +1397,11 @@ const Ft = be.div`
|
|
|
1397
1397
|
return "";
|
|
1398
1398
|
}
|
|
1399
1399
|
}}
|
|
1400
|
-
`,
|
|
1400
|
+
`, gr = ({ type: e, children: r, className: t, icon: n, action: a }) => /* @__PURE__ */ D.jsxs(It, { type: e, className: t, children: [
|
|
1401
1401
|
n && /* @__PURE__ */ D.jsx("span", { children: n }),
|
|
1402
1402
|
/* @__PURE__ */ D.jsx("span", { children: r }),
|
|
1403
1403
|
a && /* @__PURE__ */ D.jsx("span", { children: a })
|
|
1404
|
-
] }),
|
|
1404
|
+
] }), yr = be.div`
|
|
1405
1405
|
width: ${({ width: e }) => e || "100%"};
|
|
1406
1406
|
height: ${({ height: e }) => e || "100%"};
|
|
1407
1407
|
border-radius: 0px !important;
|
|
@@ -1417,7 +1417,7 @@ const Ft = be.div`
|
|
|
1417
1417
|
}
|
|
1418
1418
|
|
|
1419
1419
|
${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((r) => `.${r} { display: none !important; }`).join("")}
|
|
1420
|
-
`,
|
|
1420
|
+
`, Ft = be.div`
|
|
1421
1421
|
position: fixed;
|
|
1422
1422
|
top: 0;
|
|
1423
1423
|
left: 0;
|
|
@@ -1429,7 +1429,7 @@ const Ft = be.div`
|
|
|
1429
1429
|
align-items: center;
|
|
1430
1430
|
z-index: 1000;
|
|
1431
1431
|
pointer-events: auto;
|
|
1432
|
-
`,
|
|
1432
|
+
`, Vt = be.div`
|
|
1433
1433
|
position: relative;
|
|
1434
1434
|
height: 80vh;
|
|
1435
1435
|
width: auto;
|
|
@@ -1437,34 +1437,34 @@ const Ft = be.div`
|
|
|
1437
1437
|
max-width: 90vw;
|
|
1438
1438
|
max-height: 90vh;
|
|
1439
1439
|
z-index: 1001;
|
|
1440
|
-
`,
|
|
1440
|
+
`, he = "https://host.vpplayer.tech", Lt = (e) => `${he}/player/${e}/vpplayer.js`, Zt = (e) => `${he}/player/${e}.js`, Nt = (e, r) => `${he}/player/${e}/${r}.js`, zt = (e) => `${he}/vertical-player/${e}.js`, Ut = (e, r) => `${he}/vertical-player/${e}/${r}.js`, Dt = (e, r) => `${he}/player/${e}/${r}.json`, Wt = (e, r) => `${he}/vertical-player/${e}/${r}.json`, Yt = (e, r) => e ? `vp-player-${e}` : r ? `vp-player-default-${r}` : "vp-player-default", qt = (e, r) => {
|
|
1441
1441
|
const t = new URL(e);
|
|
1442
1442
|
return t.searchParams.set("divId", r), t.toString();
|
|
1443
|
-
},
|
|
1444
|
-
const [t, n] =
|
|
1445
|
-
return
|
|
1443
|
+
}, Ce = /* @__PURE__ */ new Map(), Ht = (e, r) => {
|
|
1444
|
+
const [t, n] = Fe(!1), [a, s] = Fe(null);
|
|
1445
|
+
return $e(() => {
|
|
1446
1446
|
let u;
|
|
1447
1447
|
try {
|
|
1448
1448
|
u = r || Lt(e || "latest");
|
|
1449
1449
|
} catch (v) {
|
|
1450
|
-
const
|
|
1451
|
-
s(`Failed to resolve script URL: ${
|
|
1450
|
+
const h = v instanceof Error ? v.message : String(v);
|
|
1451
|
+
s(`Failed to resolve script URL: ${h}`);
|
|
1452
1452
|
return;
|
|
1453
1453
|
}
|
|
1454
|
-
if (
|
|
1454
|
+
if (!Ce.has(u))
|
|
1455
1455
|
if (document.querySelector(
|
|
1456
1456
|
`script[src="${u}"]`
|
|
1457
1457
|
))
|
|
1458
|
-
|
|
1458
|
+
Ce.set(u, Promise.resolve());
|
|
1459
1459
|
else {
|
|
1460
|
-
const
|
|
1460
|
+
const h = new Promise((b, I) => {
|
|
1461
1461
|
const $ = document.createElement("script");
|
|
1462
|
-
$.src = u, $.async = !0, $.onload = () => b(), $.onerror = () =>
|
|
1462
|
+
$.src = u, $.async = !0, $.onload = () => b(), $.onerror = () => I(new Error(`Failed to load script: ${u}`)), document.body.appendChild($);
|
|
1463
1463
|
});
|
|
1464
|
-
|
|
1464
|
+
Ce.set(u, h);
|
|
1465
1465
|
}
|
|
1466
1466
|
let p = !0;
|
|
1467
|
-
const w =
|
|
1467
|
+
const w = Ce.get(u);
|
|
1468
1468
|
return w && w.then(() => {
|
|
1469
1469
|
p && (n(!0), s(null));
|
|
1470
1470
|
}).catch((v) => {
|
|
@@ -1474,10 +1474,10 @@ const Ft = be.div`
|
|
|
1474
1474
|
};
|
|
1475
1475
|
}, [e, r]), { isLoaded: t, error: a };
|
|
1476
1476
|
};
|
|
1477
|
-
function
|
|
1477
|
+
function Oe(e) {
|
|
1478
1478
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1480
|
+
function vr(e, r) {
|
|
1481
1481
|
const t = r.playlist;
|
|
1482
1482
|
if (!(t != null && t.videos) || !Array.isArray(t.videos))
|
|
1483
1483
|
return;
|
|
@@ -1493,17 +1493,17 @@ function br(e, r) {
|
|
|
1493
1493
|
const u = s;
|
|
1494
1494
|
return u.videoId ?? u.mediaId;
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1497
|
-
if (!
|
|
1496
|
+
function Or(e, r) {
|
|
1497
|
+
if (!Oe(e) || !Oe(r))
|
|
1498
1498
|
return r;
|
|
1499
1499
|
const t = { ...e };
|
|
1500
1500
|
for (const n of Object.keys(r)) {
|
|
1501
1501
|
const a = r[n], s = t[n];
|
|
1502
|
-
|
|
1502
|
+
Oe(a) && Oe(s) ? t[n] = Or(s, a) : a !== void 0 && (t[n] = a);
|
|
1503
1503
|
}
|
|
1504
1504
|
return t;
|
|
1505
1505
|
}
|
|
1506
|
-
async function
|
|
1506
|
+
async function Gt(e, r, t) {
|
|
1507
1507
|
if (!e)
|
|
1508
1508
|
return console.warn(
|
|
1509
1509
|
"VP Player: No scriptId provided, cannot fetch config. Using user config directly."
|
|
@@ -1511,7 +1511,7 @@ async function Bt(e, r, t) {
|
|
|
1511
1511
|
r || console.warn(
|
|
1512
1512
|
"VP Player: No videoId provided, attempting to fetch config with scriptId only..."
|
|
1513
1513
|
);
|
|
1514
|
-
const n = t ?
|
|
1514
|
+
const n = t ? Wt(e, r || "") : Dt(e, r || "");
|
|
1515
1515
|
try {
|
|
1516
1516
|
const a = await fetch(n);
|
|
1517
1517
|
return a.ok ? await a.json() : null;
|
|
@@ -1519,7 +1519,7 @@ async function Bt(e, r, t) {
|
|
|
1519
1519
|
return null;
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
|
-
const
|
|
1522
|
+
const Bt = ({
|
|
1523
1523
|
scriptId: e,
|
|
1524
1524
|
videoId: r,
|
|
1525
1525
|
scriptUrl: t,
|
|
@@ -1530,167 +1530,163 @@ const Xt = ({
|
|
|
1530
1530
|
isReels: p = !1,
|
|
1531
1531
|
onReady: w,
|
|
1532
1532
|
onPlay: v,
|
|
1533
|
-
onPause:
|
|
1533
|
+
onPause: h,
|
|
1534
1534
|
onResume: b,
|
|
1535
|
-
onComplete:
|
|
1535
|
+
onComplete: I,
|
|
1536
1536
|
onError: $,
|
|
1537
1537
|
onVideoStarted: j,
|
|
1538
1538
|
onTimeUpdate: x,
|
|
1539
|
-
onQuartile25:
|
|
1540
|
-
onQuartile50:
|
|
1539
|
+
onQuartile25: P,
|
|
1540
|
+
onQuartile50: S,
|
|
1541
1541
|
onQuartile75: C,
|
|
1542
1542
|
onNext: V,
|
|
1543
|
-
onPrevious:
|
|
1543
|
+
onPrevious: N,
|
|
1544
1544
|
onProgress10s: z,
|
|
1545
1545
|
onProgress20s: F,
|
|
1546
|
-
onPlaylistItem:
|
|
1546
|
+
onPlaylistItem: E,
|
|
1547
1547
|
onVideoSwitch: te
|
|
1548
1548
|
}) => {
|
|
1549
|
-
const ce =
|
|
1550
|
-
() =>
|
|
1551
|
-
[s,
|
|
1552
|
-
), d =
|
|
1549
|
+
const ce = pe(null), q = pe(null), [Q, J] = Fe(null), fe = Mr().replace(/:/g, ""), G = Ue(
|
|
1550
|
+
() => Yt(s || `auto-${fe}`, r),
|
|
1551
|
+
[s, fe, r]
|
|
1552
|
+
), d = pe({
|
|
1553
1553
|
onReady: w,
|
|
1554
1554
|
onPlay: v,
|
|
1555
|
-
onPause:
|
|
1555
|
+
onPause: h,
|
|
1556
1556
|
onResume: b,
|
|
1557
|
-
onComplete:
|
|
1557
|
+
onComplete: I,
|
|
1558
1558
|
onError: $,
|
|
1559
1559
|
onVideoStarted: j,
|
|
1560
1560
|
onTimeUpdate: x,
|
|
1561
|
-
onQuartile25:
|
|
1562
|
-
onQuartile50:
|
|
1561
|
+
onQuartile25: P,
|
|
1562
|
+
onQuartile50: S,
|
|
1563
1563
|
onQuartile75: C,
|
|
1564
1564
|
onNext: V,
|
|
1565
|
-
onPrevious:
|
|
1565
|
+
onPrevious: N,
|
|
1566
1566
|
onProgress10s: z,
|
|
1567
1567
|
onProgress20s: F,
|
|
1568
|
-
onPlaylistItem:
|
|
1568
|
+
onPlaylistItem: E,
|
|
1569
1569
|
onVideoSwitch: te
|
|
1570
1570
|
});
|
|
1571
|
-
|
|
1571
|
+
$e(() => {
|
|
1572
1572
|
d.current = {
|
|
1573
1573
|
onReady: w,
|
|
1574
1574
|
onPlay: v,
|
|
1575
|
-
onPause:
|
|
1575
|
+
onPause: h,
|
|
1576
1576
|
onResume: b,
|
|
1577
|
-
onComplete:
|
|
1577
|
+
onComplete: I,
|
|
1578
1578
|
onError: $,
|
|
1579
1579
|
onVideoStarted: j,
|
|
1580
1580
|
onTimeUpdate: x,
|
|
1581
|
-
onQuartile25:
|
|
1582
|
-
onQuartile50:
|
|
1581
|
+
onQuartile25: P,
|
|
1582
|
+
onQuartile50: S,
|
|
1583
1583
|
onQuartile75: C,
|
|
1584
1584
|
onNext: V,
|
|
1585
|
-
onPrevious:
|
|
1585
|
+
onPrevious: N,
|
|
1586
1586
|
onProgress10s: z,
|
|
1587
1587
|
onProgress20s: F,
|
|
1588
|
-
onPlaylistItem:
|
|
1588
|
+
onPlaylistItem: E,
|
|
1589
1589
|
onVideoSwitch: te
|
|
1590
1590
|
};
|
|
1591
1591
|
}, [
|
|
1592
1592
|
w,
|
|
1593
1593
|
v,
|
|
1594
|
-
|
|
1594
|
+
h,
|
|
1595
1595
|
b,
|
|
1596
|
-
|
|
1596
|
+
I,
|
|
1597
1597
|
$,
|
|
1598
1598
|
j,
|
|
1599
1599
|
x,
|
|
1600
|
-
k,
|
|
1601
1600
|
P,
|
|
1601
|
+
S,
|
|
1602
1602
|
C,
|
|
1603
1603
|
V,
|
|
1604
|
-
|
|
1604
|
+
N,
|
|
1605
1605
|
z,
|
|
1606
1606
|
F,
|
|
1607
|
-
|
|
1607
|
+
E,
|
|
1608
1608
|
te
|
|
1609
1609
|
]);
|
|
1610
|
-
const ne =
|
|
1611
|
-
|
|
1610
|
+
const ne = pe(!1), Z = pe(!1), ue = pe(void 0), ae = pe(a);
|
|
1611
|
+
$e(() => {
|
|
1612
1612
|
ae.current = a;
|
|
1613
1613
|
});
|
|
1614
|
-
const
|
|
1615
|
-
|
|
1616
|
-
le.current = r;
|
|
1617
|
-
});
|
|
1618
|
-
const o = !!a, h = De(() => u || p ? !0 : t ? t.includes("vertical-player") || t.includes("vpverticalplayer") : !1, [u, p, t]), O = De(() => {
|
|
1619
|
-
let l;
|
|
1614
|
+
const ee = !!a, o = Ue(() => u || p ? !0 : t ? t.includes("vertical-player") || t.includes("vpverticalplayer") : !1, [u, p, t]), g = Ue(() => {
|
|
1615
|
+
let i;
|
|
1620
1616
|
if (t)
|
|
1621
|
-
|
|
1622
|
-
else if (e && r && !
|
|
1623
|
-
|
|
1617
|
+
i = t;
|
|
1618
|
+
else if (e && r && !ee)
|
|
1619
|
+
i = o ? Ut(e, r) : Nt(e, r);
|
|
1624
1620
|
else if (e)
|
|
1625
|
-
|
|
1621
|
+
i = o ? zt(e) : `https://host.vpplayer.tech/player/${e}.js`;
|
|
1626
1622
|
else
|
|
1627
1623
|
return null;
|
|
1628
|
-
return
|
|
1624
|
+
return qt(i, G);
|
|
1629
1625
|
}, [
|
|
1630
1626
|
t,
|
|
1631
1627
|
e,
|
|
1632
1628
|
r,
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
]), { isLoaded:
|
|
1629
|
+
o,
|
|
1630
|
+
G,
|
|
1631
|
+
ee
|
|
1632
|
+
]), { isLoaded: O, error: M } = Ht(
|
|
1637
1633
|
null,
|
|
1638
|
-
|
|
1634
|
+
g || void 0
|
|
1639
1635
|
);
|
|
1640
|
-
return
|
|
1641
|
-
if (!
|
|
1642
|
-
|
|
1636
|
+
return $e(() => {
|
|
1637
|
+
if (!g) {
|
|
1638
|
+
J(
|
|
1643
1639
|
"VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId + config) to initialize the player."
|
|
1644
1640
|
);
|
|
1645
1641
|
return;
|
|
1646
1642
|
}
|
|
1647
|
-
if (
|
|
1648
|
-
|
|
1643
|
+
if (M) {
|
|
1644
|
+
J(M);
|
|
1649
1645
|
return;
|
|
1650
1646
|
}
|
|
1651
|
-
if (!
|
|
1652
|
-
let
|
|
1647
|
+
if (!O) return;
|
|
1648
|
+
let i = !0;
|
|
1653
1649
|
return (async () => {
|
|
1654
|
-
var
|
|
1650
|
+
var k;
|
|
1655
1651
|
try {
|
|
1656
|
-
const
|
|
1657
|
-
if (!
|
|
1658
|
-
|
|
1659
|
-
`VP Player: Script loaded but global function not found. Expected ${
|
|
1652
|
+
const H = o ? window.vpVerticalPlayer : window.vpPlayer;
|
|
1653
|
+
if (!H) {
|
|
1654
|
+
J(
|
|
1655
|
+
`VP Player: Script loaded but global function not found. Expected ${o ? "vpVerticalPlayer" : "vpPlayer"}.`
|
|
1660
1656
|
);
|
|
1661
1657
|
return;
|
|
1662
1658
|
}
|
|
1663
|
-
if (await new Promise((A) => setTimeout(A, 0)), !document.getElementById(
|
|
1659
|
+
if (await new Promise((A) => setTimeout(A, 0)), !document.getElementById(G)) {
|
|
1664
1660
|
console.error(
|
|
1665
|
-
`VP Player: Container element with ID '${
|
|
1661
|
+
`VP Player: Container element with ID '${G}' not found in DOM.`
|
|
1666
1662
|
);
|
|
1667
1663
|
return;
|
|
1668
1664
|
}
|
|
1669
|
-
const R =
|
|
1665
|
+
const R = H(G);
|
|
1670
1666
|
if (!R) {
|
|
1671
|
-
|
|
1667
|
+
J("VP Player: Failed to get player instance.");
|
|
1672
1668
|
return;
|
|
1673
1669
|
}
|
|
1674
|
-
if (
|
|
1675
|
-
if (q.current = R,
|
|
1670
|
+
if (i) {
|
|
1671
|
+
if (q.current = R, J(null), ee && ae.current) {
|
|
1676
1672
|
let A;
|
|
1677
|
-
const f = await
|
|
1673
|
+
const f = await Gt(
|
|
1678
1674
|
e,
|
|
1679
|
-
|
|
1680
|
-
|
|
1675
|
+
r,
|
|
1676
|
+
o
|
|
1681
1677
|
);
|
|
1682
|
-
f ? A =
|
|
1678
|
+
f ? A = Or(f, ae.current) : A = ae.current, n && !A.projectId && (A.projectId = n);
|
|
1683
1679
|
try {
|
|
1684
1680
|
await R.setup(A);
|
|
1685
1681
|
} catch (c) {
|
|
1686
|
-
const
|
|
1687
|
-
if (
|
|
1682
|
+
const m = c instanceof Error ? c.message : String(c);
|
|
1683
|
+
if (m.includes("already initialized")) {
|
|
1688
1684
|
console.warn(
|
|
1689
1685
|
"VP Player: Player already initialized, attempting to destroy and retry."
|
|
1690
1686
|
);
|
|
1691
1687
|
try {
|
|
1692
|
-
if ((
|
|
1693
|
-
const y =
|
|
1688
|
+
if ((k = R.destroy) == null || k.call(R), await new Promise((y) => setTimeout(y, 50)), i && document.getElementById(G)) {
|
|
1689
|
+
const y = H(G);
|
|
1694
1690
|
y && (await y.setup(A), q.current = y);
|
|
1695
1691
|
}
|
|
1696
1692
|
} catch (y) {
|
|
@@ -1700,7 +1696,7 @@ const Xt = ({
|
|
|
1700
1696
|
);
|
|
1701
1697
|
}
|
|
1702
1698
|
} else {
|
|
1703
|
-
console.error("VP Player: Setup error", c),
|
|
1699
|
+
console.error("VP Player: Setup error", c), J(`Player setup failed: ${m}`);
|
|
1704
1700
|
return;
|
|
1705
1701
|
}
|
|
1706
1702
|
}
|
|
@@ -1708,25 +1704,25 @@ const Xt = ({
|
|
|
1708
1704
|
if (R.on) {
|
|
1709
1705
|
const A = R.on.bind(R);
|
|
1710
1706
|
A("vp-event", (f) => {
|
|
1711
|
-
var y, U,
|
|
1712
|
-
const c = f,
|
|
1713
|
-
if (
|
|
1714
|
-
if (
|
|
1707
|
+
var y, U, B, re, Xe, Je, Ze, Ke, Qe, er, rr, tr, nr;
|
|
1708
|
+
const c = f, m = c == null ? void 0 : c.eventName;
|
|
1709
|
+
if (o) {
|
|
1710
|
+
if (m === "play" && !Z.current) {
|
|
1715
1711
|
const ge = R.videoObject;
|
|
1716
1712
|
(U = (y = d.current).onPlay) == null || U.call(y, ge);
|
|
1717
1713
|
}
|
|
1718
|
-
if (
|
|
1719
|
-
const
|
|
1720
|
-
!
|
|
1714
|
+
if (m === "vp-state-paused") {
|
|
1715
|
+
const de = ((B = R.isEnded) == null ? void 0 : B.call(R)) ?? !1, ge = (c == null ? void 0 : c.interaction) ?? !0;
|
|
1716
|
+
!de && ge && (Z.current = !0, (Xe = (re = d.current).onPause) == null || Xe.call(re));
|
|
1721
1717
|
}
|
|
1722
|
-
if (
|
|
1723
|
-
|
|
1724
|
-
const
|
|
1725
|
-
(
|
|
1726
|
-
const ge =
|
|
1727
|
-
ge === "next" ? (
|
|
1718
|
+
if (m === "vp-state-playing" && (((c == null ? void 0 : c.interaction) ?? Z.current) && Z.current && ((Ze = (Je = d.current).onResume) == null || Ze.call(Je)), Z.current = !1), m === "vp-video-switch") {
|
|
1719
|
+
Z.current = !1;
|
|
1720
|
+
const de = c;
|
|
1721
|
+
(Qe = (Ke = d.current).onVideoSwitch) == null || Qe.call(Ke, de);
|
|
1722
|
+
const ge = de.direction, ar = de.currentTime ?? 0;
|
|
1723
|
+
ge === "next" ? (rr = (er = d.current).onNext) == null || rr.call(er, ar) : ge === "prev" && ((nr = (tr = d.current).onPrevious) == null || nr.call(tr, ar));
|
|
1728
1724
|
}
|
|
1729
|
-
|
|
1725
|
+
m === "vp-video-completed" && (Z.current = !1);
|
|
1730
1726
|
}
|
|
1731
1727
|
}), A("analytics-25%-completed", () => {
|
|
1732
1728
|
var f, c;
|
|
@@ -1737,35 +1733,35 @@ const Xt = ({
|
|
|
1737
1733
|
}), A("analytics-75%-completed", () => {
|
|
1738
1734
|
var f, c;
|
|
1739
1735
|
(c = (f = d.current).onQuartile75) == null || c.call(f);
|
|
1740
|
-
}),
|
|
1736
|
+
}), o || A("pause", () => {
|
|
1741
1737
|
var f, c;
|
|
1742
1738
|
(c = (f = d.current).onPause) == null || c.call(f);
|
|
1743
1739
|
}), A("error", (f) => {
|
|
1744
|
-
var
|
|
1740
|
+
var m, y;
|
|
1745
1741
|
const c = typeof f == "string" ? f : (f == null ? void 0 : f.message) || "Unknown error";
|
|
1746
|
-
(y = (
|
|
1747
|
-
}),
|
|
1748
|
-
var
|
|
1742
|
+
(y = (m = d.current).onError) == null || y.call(m, c);
|
|
1743
|
+
}), o ? (A("vp-first-frame", () => {
|
|
1744
|
+
var m, y;
|
|
1749
1745
|
const c = R.videoObject;
|
|
1750
|
-
(y = (
|
|
1746
|
+
(y = (m = d.current).onReady) == null || y.call(m, c);
|
|
1751
1747
|
}), A("vp-video-started", (f) => {
|
|
1752
|
-
var c,
|
|
1753
|
-
(
|
|
1748
|
+
var c, m;
|
|
1749
|
+
(m = (c = d.current).onVideoStarted) == null || m.call(c, f);
|
|
1754
1750
|
}), A("vp-twenty-view", () => {
|
|
1755
|
-
var c,
|
|
1751
|
+
var c, m, y;
|
|
1756
1752
|
const f = ((c = R.getPosition) == null ? void 0 : c.call(R)) ?? 20;
|
|
1757
|
-
(y = (
|
|
1753
|
+
(y = (m = d.current).onProgress20s) == null || y.call(m, Math.floor(f));
|
|
1758
1754
|
}), A("vp-video-state", () => {
|
|
1759
|
-
var c,
|
|
1755
|
+
var c, m, y;
|
|
1760
1756
|
const f = ((c = R.getPosition) == null ? void 0 : c.call(R)) ?? 0;
|
|
1761
|
-
(y = (
|
|
1762
|
-
|
|
1757
|
+
(y = (m = d.current).onProgress10s) == null || y.call(
|
|
1758
|
+
m,
|
|
1763
1759
|
Math.floor(f)
|
|
1764
1760
|
);
|
|
1765
1761
|
}), A("vp-time", (f) => {
|
|
1766
|
-
var
|
|
1762
|
+
var m, y, U;
|
|
1767
1763
|
let c = 0;
|
|
1768
|
-
typeof f == "number" ? c = f : f && typeof f == "object" && "position" in f ? c = f.position : c = ((
|
|
1764
|
+
typeof f == "number" ? c = f : f && typeof f == "object" && "position" in f ? c = f.position : c = ((m = R.getPosition) == null ? void 0 : m.call(R)) ?? 0, (U = (y = d.current).onTimeUpdate) == null || U.call(y, c);
|
|
1769
1765
|
}), A("vp-video-completed", () => {
|
|
1770
1766
|
var f, c;
|
|
1771
1767
|
(c = (f = d.current).onComplete) == null || c.call(f);
|
|
@@ -1773,61 +1769,61 @@ const Xt = ({
|
|
|
1773
1769
|
var f, c;
|
|
1774
1770
|
(c = (f = d.current).onReady) == null || c.call(f);
|
|
1775
1771
|
}), A("play", (f) => {
|
|
1776
|
-
var
|
|
1772
|
+
var m, y, U, B;
|
|
1777
1773
|
const c = f;
|
|
1778
|
-
c != null && c.resume || c != null && c.afterPause ? (y = (
|
|
1774
|
+
c != null && c.resume || c != null && c.afterPause ? (y = (m = d.current).onResume) == null || y.call(m) : (B = (U = d.current).onPlay) == null || B.call(U);
|
|
1779
1775
|
}), A("complete", () => {
|
|
1780
1776
|
var f, c;
|
|
1781
1777
|
(c = (f = d.current).onComplete) == null || c.call(f), ne.current = !1;
|
|
1782
1778
|
}), A("video-started", (f) => {
|
|
1783
|
-
var
|
|
1784
|
-
const c = f ?? {},
|
|
1779
|
+
var B, re;
|
|
1780
|
+
const c = f ?? {}, m = c.videoId || ue.current, y = vr(m, R), U = {
|
|
1785
1781
|
...c,
|
|
1786
|
-
videoId:
|
|
1782
|
+
videoId: m,
|
|
1787
1783
|
nextVideoId: y
|
|
1788
1784
|
};
|
|
1789
|
-
(re = (
|
|
1785
|
+
(re = (B = d.current).onVideoStarted) == null || re.call(B, U);
|
|
1790
1786
|
}), A("video-state", () => {
|
|
1791
|
-
var c,
|
|
1787
|
+
var c, m, y;
|
|
1792
1788
|
const f = ((c = R.getPosition) == null ? void 0 : c.call(R)) ?? 0;
|
|
1793
|
-
(y = (
|
|
1794
|
-
|
|
1789
|
+
(y = (m = d.current).onProgress10s) == null || y.call(
|
|
1790
|
+
m,
|
|
1795
1791
|
Math.floor(f)
|
|
1796
1792
|
);
|
|
1797
1793
|
}), A("time", (f) => {
|
|
1798
|
-
var
|
|
1794
|
+
var m, y, U, B, re;
|
|
1799
1795
|
let c = 0;
|
|
1800
|
-
typeof f == "number" ? c = f : f && typeof f == "object" && "position" in f ? c = f.position : c = ((
|
|
1796
|
+
typeof f == "number" ? c = f : f && typeof f == "object" && "position" in f ? c = f.position : c = ((m = R.getPosition) == null ? void 0 : m.call(R)) ?? 0, (U = (y = d.current).onTimeUpdate) == null || U.call(y, c), !ne.current && c >= 20 && (ne.current = !0, (re = (B = d.current).onProgress20s) == null || re.call(B, Math.floor(c)));
|
|
1801
1797
|
}), A("playlistItem", (f) => {
|
|
1802
|
-
var
|
|
1798
|
+
var B, re;
|
|
1803
1799
|
ne.current = !1;
|
|
1804
1800
|
const c = f;
|
|
1805
|
-
|
|
1806
|
-
const
|
|
1807
|
-
videoId:
|
|
1801
|
+
ue.current = c == null ? void 0 : c.id;
|
|
1802
|
+
const m = c == null ? void 0 : c.id, y = vr(m, R), U = {
|
|
1803
|
+
videoId: m,
|
|
1808
1804
|
nextVideoId: y
|
|
1809
1805
|
};
|
|
1810
|
-
(re = (
|
|
1806
|
+
(re = (B = d.current).onPlaylistItem) == null || re.call(B, U);
|
|
1811
1807
|
}), A("nextClick", (f) => {
|
|
1812
1808
|
var y, U;
|
|
1813
|
-
const c = f,
|
|
1814
|
-
(U = (y = d.current).onNext) == null || U.call(y,
|
|
1809
|
+
const c = f, m = (c == null ? void 0 : c.currentTime) ?? 0;
|
|
1810
|
+
(U = (y = d.current).onNext) == null || U.call(y, m);
|
|
1815
1811
|
}), A("vp-video-switch", (f) => {
|
|
1816
|
-
var
|
|
1812
|
+
var m, y;
|
|
1817
1813
|
const c = f ?? {};
|
|
1818
|
-
(y = (
|
|
1814
|
+
(y = (m = d.current).onVideoSwitch) == null || y.call(m, c);
|
|
1819
1815
|
}));
|
|
1820
1816
|
}
|
|
1821
1817
|
}
|
|
1822
|
-
} catch (
|
|
1823
|
-
if (
|
|
1824
|
-
const
|
|
1825
|
-
|
|
1818
|
+
} catch (H) {
|
|
1819
|
+
if (i) {
|
|
1820
|
+
const me = H instanceof Error ? H.message : String(H);
|
|
1821
|
+
J(me), console.error("VP Player initialization error:", H);
|
|
1826
1822
|
}
|
|
1827
1823
|
}
|
|
1828
1824
|
})(), () => {
|
|
1829
|
-
var
|
|
1830
|
-
if (
|
|
1825
|
+
var k;
|
|
1826
|
+
if (i = !1, (k = q.current) != null && k.destroy) {
|
|
1831
1827
|
try {
|
|
1832
1828
|
q.current.destroy();
|
|
1833
1829
|
} catch {
|
|
@@ -1836,23 +1832,24 @@ const Xt = ({
|
|
|
1836
1832
|
}
|
|
1837
1833
|
};
|
|
1838
1834
|
}, [
|
|
1839
|
-
I,
|
|
1840
|
-
H,
|
|
1841
|
-
i,
|
|
1842
1835
|
O,
|
|
1843
|
-
|
|
1836
|
+
G,
|
|
1837
|
+
M,
|
|
1838
|
+
g,
|
|
1844
1839
|
o,
|
|
1840
|
+
ee,
|
|
1845
1841
|
e,
|
|
1846
|
-
n
|
|
1842
|
+
n,
|
|
1843
|
+
r
|
|
1847
1844
|
]), {
|
|
1848
1845
|
playerRef: ce,
|
|
1849
1846
|
playerInstanceRef: q,
|
|
1850
|
-
isScriptLoaded:
|
|
1851
|
-
isLoading: !
|
|
1852
|
-
error:
|
|
1853
|
-
generatedPlayerId:
|
|
1847
|
+
isScriptLoaded: O,
|
|
1848
|
+
isLoading: !O && !Q,
|
|
1849
|
+
error: Q,
|
|
1850
|
+
generatedPlayerId: G
|
|
1854
1851
|
};
|
|
1855
|
-
},
|
|
1852
|
+
}, Xt = br(
|
|
1856
1853
|
({
|
|
1857
1854
|
scriptId: e,
|
|
1858
1855
|
videoId: r,
|
|
@@ -1864,34 +1861,34 @@ const Xt = ({
|
|
|
1864
1861
|
isReels: p = !1,
|
|
1865
1862
|
thumbnailUrl: w,
|
|
1866
1863
|
onClose: v,
|
|
1867
|
-
className:
|
|
1864
|
+
className: h,
|
|
1868
1865
|
hiddenClasses: b = [],
|
|
1869
|
-
onReady:
|
|
1866
|
+
onReady: I,
|
|
1870
1867
|
onPlay: $,
|
|
1871
1868
|
onPause: j,
|
|
1872
1869
|
onResume: x,
|
|
1873
|
-
onComplete:
|
|
1874
|
-
onError:
|
|
1870
|
+
onComplete: P,
|
|
1871
|
+
onError: S,
|
|
1875
1872
|
onVideoStarted: C,
|
|
1876
1873
|
onTimeUpdate: V,
|
|
1877
|
-
onQuartile25:
|
|
1874
|
+
onQuartile25: N,
|
|
1878
1875
|
onQuartile50: z,
|
|
1879
1876
|
onQuartile75: F,
|
|
1880
|
-
onNext:
|
|
1877
|
+
onNext: E,
|
|
1881
1878
|
onPrevious: te,
|
|
1882
1879
|
onProgress10s: ce,
|
|
1883
1880
|
onProgress20s: q,
|
|
1884
|
-
onPlaylistItem:
|
|
1885
|
-
onVideoSwitch:
|
|
1886
|
-
},
|
|
1881
|
+
onPlaylistItem: Q,
|
|
1882
|
+
onVideoSwitch: J
|
|
1883
|
+
}, fe) => {
|
|
1887
1884
|
const {
|
|
1888
|
-
playerRef:
|
|
1885
|
+
playerRef: G,
|
|
1889
1886
|
playerInstanceRef: d,
|
|
1890
1887
|
isScriptLoaded: ne,
|
|
1891
|
-
isLoading:
|
|
1892
|
-
error:
|
|
1888
|
+
isLoading: Z,
|
|
1889
|
+
error: ue,
|
|
1893
1890
|
generatedPlayerId: ae
|
|
1894
|
-
} =
|
|
1891
|
+
} = Bt({
|
|
1895
1892
|
scriptId: e,
|
|
1896
1893
|
videoId: r,
|
|
1897
1894
|
scriptUrl: t,
|
|
@@ -1900,26 +1897,26 @@ const Xt = ({
|
|
|
1900
1897
|
playerId: s,
|
|
1901
1898
|
isVertical: u,
|
|
1902
1899
|
isReels: p,
|
|
1903
|
-
onReady:
|
|
1900
|
+
onReady: I,
|
|
1904
1901
|
onPlay: $,
|
|
1905
1902
|
onPause: j,
|
|
1906
1903
|
onResume: x,
|
|
1907
|
-
onComplete:
|
|
1908
|
-
onError:
|
|
1904
|
+
onComplete: P,
|
|
1905
|
+
onError: S,
|
|
1909
1906
|
onVideoStarted: C,
|
|
1910
1907
|
onTimeUpdate: V,
|
|
1911
|
-
onQuartile25:
|
|
1908
|
+
onQuartile25: N,
|
|
1912
1909
|
onQuartile50: z,
|
|
1913
1910
|
onQuartile75: F,
|
|
1914
|
-
onNext:
|
|
1911
|
+
onNext: E,
|
|
1915
1912
|
onPrevious: te,
|
|
1916
1913
|
onProgress10s: ce,
|
|
1917
1914
|
onProgress20s: q,
|
|
1918
|
-
onPlaylistItem:
|
|
1919
|
-
onVideoSwitch:
|
|
1915
|
+
onPlaylistItem: Q,
|
|
1916
|
+
onVideoSwitch: J
|
|
1920
1917
|
});
|
|
1921
|
-
|
|
1922
|
-
|
|
1918
|
+
Ir(
|
|
1919
|
+
fe,
|
|
1923
1920
|
() => ({
|
|
1924
1921
|
play: () => {
|
|
1925
1922
|
var i, l;
|
|
@@ -1930,8 +1927,8 @@ const Xt = ({
|
|
|
1930
1927
|
return (l = (i = d.current) == null ? void 0 : i.pause) == null ? void 0 : l.call(i);
|
|
1931
1928
|
},
|
|
1932
1929
|
seek: (i) => {
|
|
1933
|
-
var l,
|
|
1934
|
-
return (
|
|
1930
|
+
var l, k;
|
|
1931
|
+
return (k = (l = d.current) == null ? void 0 : l.seek) == null ? void 0 : k.call(l, i);
|
|
1935
1932
|
},
|
|
1936
1933
|
forward: () => {
|
|
1937
1934
|
var i, l;
|
|
@@ -1962,12 +1959,12 @@ const Xt = ({
|
|
|
1962
1959
|
return (l = (i = d.current) == null ? void 0 : i.toggleMute) == null ? void 0 : l.call(i);
|
|
1963
1960
|
},
|
|
1964
1961
|
enterFullScreen: () => {
|
|
1965
|
-
var i, l,
|
|
1966
|
-
return (
|
|
1962
|
+
var i, l, k;
|
|
1963
|
+
return (k = ((i = d.current) == null ? void 0 : i.enterFullScreen) ?? ((l = d.current) == null ? void 0 : l.enterFullscreen)) == null ? void 0 : k();
|
|
1967
1964
|
},
|
|
1968
1965
|
exitFullScreen: () => {
|
|
1969
|
-
var i, l,
|
|
1970
|
-
return (
|
|
1966
|
+
var i, l, k;
|
|
1967
|
+
return (k = ((i = d.current) == null ? void 0 : i.exitFullScreen) ?? ((l = d.current) == null ? void 0 : l.exitFullscreen)) == null ? void 0 : k();
|
|
1971
1968
|
},
|
|
1972
1969
|
getPosition: () => {
|
|
1973
1970
|
var i, l;
|
|
@@ -1982,8 +1979,8 @@ const Xt = ({
|
|
|
1982
1979
|
return ((l = (i = d.current) == null ? void 0 : i.getVolume) == null ? void 0 : l.call(i)) ?? null;
|
|
1983
1980
|
},
|
|
1984
1981
|
setVolume: (i) => {
|
|
1985
|
-
var l,
|
|
1986
|
-
return (
|
|
1982
|
+
var l, k;
|
|
1983
|
+
return (k = (l = d.current) == null ? void 0 : l.setVolume) == null ? void 0 : k.call(l, i);
|
|
1987
1984
|
},
|
|
1988
1985
|
isMuted: () => {
|
|
1989
1986
|
var i, l;
|
|
@@ -2007,21 +2004,25 @@ const Xt = ({
|
|
|
2007
2004
|
removeVideoLock: () => {
|
|
2008
2005
|
var i, l;
|
|
2009
2006
|
return (l = (i = d.current) == null ? void 0 : i.removeVideoLock) == null ? void 0 : l.call(i);
|
|
2007
|
+
},
|
|
2008
|
+
setVideoLocking: (i) => {
|
|
2009
|
+
var l, k;
|
|
2010
|
+
return (k = (l = d.current) == null ? void 0 : l.setVideoLocking) == null ? void 0 : k.call(l, i);
|
|
2010
2011
|
}
|
|
2011
2012
|
}),
|
|
2012
2013
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2013
2014
|
[]
|
|
2014
2015
|
);
|
|
2015
|
-
const [
|
|
2016
|
+
const [ee, o] = Fe(!0), g = () => p && o(!0), O = () => {
|
|
2016
2017
|
var i, l;
|
|
2017
|
-
!p || !
|
|
2018
|
+
!p || !ee || (o(!1), (l = (i = d.current) == null ? void 0 : i.pause) == null || l.call(i), v == null || v());
|
|
2018
2019
|
};
|
|
2019
|
-
if (
|
|
2020
|
-
return /* @__PURE__ */ D.jsxs(
|
|
2020
|
+
if (ue)
|
|
2021
|
+
return /* @__PURE__ */ D.jsxs(gr, { type: "error", children: [
|
|
2021
2022
|
"An error occurred: ",
|
|
2022
|
-
|
|
2023
|
+
ue
|
|
2023
2024
|
] });
|
|
2024
|
-
const
|
|
2025
|
+
const M = () => /* @__PURE__ */ D.jsx(
|
|
2025
2026
|
"div",
|
|
2026
2027
|
{
|
|
2027
2028
|
style: {
|
|
@@ -2036,14 +2037,14 @@ const Xt = ({
|
|
|
2036
2037
|
background: "rgba(0,0,0,0.8)",
|
|
2037
2038
|
zIndex: 10
|
|
2038
2039
|
},
|
|
2039
|
-
children: /* @__PURE__ */ D.jsx(
|
|
2040
|
+
children: /* @__PURE__ */ D.jsx(gr, { type: "loading", children: "Loading..." })
|
|
2040
2041
|
}
|
|
2041
2042
|
);
|
|
2042
2043
|
return p ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
|
|
2043
|
-
!
|
|
2044
|
+
!ee && /* @__PURE__ */ D.jsx(
|
|
2044
2045
|
"div",
|
|
2045
2046
|
{
|
|
2046
|
-
onClick:
|
|
2047
|
+
onClick: g,
|
|
2047
2048
|
style: {
|
|
2048
2049
|
cursor: "pointer",
|
|
2049
2050
|
width: "100%",
|
|
@@ -2054,10 +2055,10 @@ const Xt = ({
|
|
|
2054
2055
|
}
|
|
2055
2056
|
}
|
|
2056
2057
|
),
|
|
2057
|
-
|
|
2058
|
-
|
|
2058
|
+
ee && /* @__PURE__ */ D.jsx(Ft, { onClick: O, className: h, children: /* @__PURE__ */ D.jsx(
|
|
2059
|
+
Vt,
|
|
2059
2060
|
{
|
|
2060
|
-
className:
|
|
2061
|
+
className: h,
|
|
2061
2062
|
onClick: (i) => i.stopPropagation(),
|
|
2062
2063
|
children: /* @__PURE__ */ D.jsxs(
|
|
2063
2064
|
"div",
|
|
@@ -2069,17 +2070,17 @@ const Xt = ({
|
|
|
2069
2070
|
},
|
|
2070
2071
|
children: [
|
|
2071
2072
|
/* @__PURE__ */ D.jsx(
|
|
2072
|
-
|
|
2073
|
+
yr,
|
|
2073
2074
|
{
|
|
2074
2075
|
id: ae,
|
|
2075
|
-
ref:
|
|
2076
|
+
ref: G,
|
|
2076
2077
|
width: "100%",
|
|
2077
2078
|
height: "100%",
|
|
2078
2079
|
$hiddenClasses: b,
|
|
2079
|
-
className:
|
|
2080
|
+
className: h
|
|
2080
2081
|
}
|
|
2081
2082
|
),
|
|
2082
|
-
(
|
|
2083
|
+
(Z || !ne) && /* @__PURE__ */ D.jsx(M, {})
|
|
2083
2084
|
]
|
|
2084
2085
|
}
|
|
2085
2086
|
)
|
|
@@ -2087,33 +2088,33 @@ const Xt = ({
|
|
|
2087
2088
|
) })
|
|
2088
2089
|
] }) : /* @__PURE__ */ D.jsxs("div", { style: { position: "relative", width: "100%", height: "100%" }, children: [
|
|
2089
2090
|
/* @__PURE__ */ D.jsx(
|
|
2090
|
-
|
|
2091
|
+
yr,
|
|
2091
2092
|
{
|
|
2092
2093
|
id: ae,
|
|
2093
|
-
ref:
|
|
2094
|
+
ref: G,
|
|
2094
2095
|
width: "100%",
|
|
2095
2096
|
height: "100%",
|
|
2096
2097
|
$hiddenClasses: b,
|
|
2097
|
-
className:
|
|
2098
|
+
className: h
|
|
2098
2099
|
}
|
|
2099
2100
|
),
|
|
2100
|
-
(
|
|
2101
|
+
(Z || !ne) && /* @__PURE__ */ D.jsx(M, {})
|
|
2101
2102
|
] });
|
|
2102
2103
|
}
|
|
2103
2104
|
);
|
|
2104
|
-
|
|
2105
|
+
Xt.displayName = "VPPlayer";
|
|
2105
2106
|
export {
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2107
|
+
Ft as Overlay,
|
|
2108
|
+
yr as PlayerContainer,
|
|
2109
|
+
Vt as PlayerWrapper,
|
|
2110
|
+
Xt as VPPlayer,
|
|
2111
|
+
he as VP_PLAYER_BASE_URL,
|
|
2112
|
+
qt as appendDivIdToUrl,
|
|
2113
|
+
Yt as generatePlayerId,
|
|
2114
|
+
Nt as getFullyManagedPlayerScriptUrl,
|
|
2115
|
+
Zt as getManagedPlayerScriptUrl,
|
|
2115
2116
|
Lt as getPlayerScriptUrl,
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2117
|
+
zt as getVerticalPlayerScriptUrl,
|
|
2118
|
+
Bt as useVPPlayerLogic,
|
|
2119
|
+
Ht as useVPPlayerScript
|
|
2119
2120
|
};
|