@devix-technologies/react-gjirafa-vp-player 1.0.31-beta.13 → 1.0.31-beta.15
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 ie from "react";
|
|
2
|
+
import gr, { forwardRef as nr, useContext as yr, useState as Ae, useEffect as Ne, useRef as he, useId as vr, useMemo as Me, useImperativeHandle as br } from "react";
|
|
3
|
+
var Pe = { exports: {} }, me = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -10,14 +10,14 @@ var ke = { exports: {} }, ge = {};
|
|
|
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 Ye;
|
|
14
|
+
function xr() {
|
|
15
|
+
if (Ye) return me;
|
|
16
|
+
Ye = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
18
18
|
function t(n, a, s) {
|
|
19
|
-
var
|
|
20
|
-
if (s !== void 0 && (
|
|
19
|
+
var f = null;
|
|
20
|
+
if (s !== void 0 && (f = "" + s), a.key !== void 0 && (f = "" + a.key), "key" in a) {
|
|
21
21
|
s = {};
|
|
22
22
|
for (var d in a)
|
|
23
23
|
d !== "key" && (s[d] = a[d]);
|
|
@@ -25,14 +25,14 @@ function kr() {
|
|
|
25
25
|
return a = s.ref, {
|
|
26
26
|
$$typeof: e,
|
|
27
27
|
type: n,
|
|
28
|
-
key:
|
|
28
|
+
key: f,
|
|
29
29
|
ref: a !== void 0 ? a : null,
|
|
30
30
|
props: s
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return me.Fragment = r, me.jsx = t, me.jsxs = t, me;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var ge = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -42,47 +42,47 @@ var ye = {};
|
|
|
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 qe;
|
|
46
|
+
function wr() {
|
|
47
|
+
return qe || (qe = 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
51
|
return o.$$typeof === X ? null : o.displayName || o.name || null;
|
|
52
52
|
if (typeof o == "string") return o;
|
|
53
53
|
switch (o) {
|
|
54
|
-
case
|
|
54
|
+
case w:
|
|
55
55
|
return "Fragment";
|
|
56
56
|
case A:
|
|
57
57
|
return "Profiler";
|
|
58
|
-
case
|
|
58
|
+
case S:
|
|
59
59
|
return "StrictMode";
|
|
60
|
-
case
|
|
60
|
+
case j:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case E:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case D:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
67
|
if (typeof o == "object")
|
|
68
68
|
switch (typeof o.tag == "number" && console.error(
|
|
69
69
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
70
|
), o.$$typeof) {
|
|
71
|
-
case
|
|
71
|
+
case x:
|
|
72
72
|
return "Portal";
|
|
73
73
|
case V:
|
|
74
74
|
return o.displayName || "Context";
|
|
75
|
-
case
|
|
75
|
+
case M:
|
|
76
76
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
|
-
case
|
|
78
|
-
var
|
|
79
|
-
return o = o.displayName, o || (o =
|
|
77
|
+
case I:
|
|
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 H:
|
|
81
|
-
return
|
|
82
|
-
case
|
|
83
|
-
|
|
81
|
+
return g = o.displayName || null, g !== null ? g : e(o.type) || "Memo";
|
|
82
|
+
case Z:
|
|
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 Sr() {
|
|
|
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 i =
|
|
101
|
+
if (g) {
|
|
102
|
+
g = console;
|
|
103
|
+
var i = g.error, c = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
104
|
return i.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
|
c
|
|
108
108
|
), r(o);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
function n(o) {
|
|
112
|
-
if (o ===
|
|
113
|
-
if (typeof o == "object" && o !== null && o.$$typeof ===
|
|
112
|
+
if (o === w) return "<>";
|
|
113
|
+
if (typeof o == "object" && o !== null && o.$$typeof === Z)
|
|
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 = U.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
|
-
function
|
|
129
|
+
function f(o) {
|
|
130
130
|
if (p.call(o, "key")) {
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
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 d(o,
|
|
136
|
+
function d(o, g) {
|
|
137
137
|
function i() {
|
|
138
|
-
|
|
138
|
+
K || (K = !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
|
i.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
@@ -145,23 +145,23 @@ function Sr() {
|
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function P() {
|
|
149
149
|
var o = e(this.type);
|
|
150
|
-
return
|
|
150
|
+
return W[o] || (W[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
|
|
155
|
-
var
|
|
154
|
+
function v(o, g, i, c, N, R) {
|
|
155
|
+
var h = i.ref;
|
|
156
156
|
return o = {
|
|
157
157
|
$$typeof: O,
|
|
158
158
|
type: o,
|
|
159
|
-
key:
|
|
159
|
+
key: g,
|
|
160
160
|
props: i,
|
|
161
161
|
_owner: c
|
|
162
|
-
}, (
|
|
162
|
+
}, (h !== void 0 ? h : null) !== null ? Object.defineProperty(o, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
164
|
-
get:
|
|
164
|
+
get: P
|
|
165
165
|
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
166
166
|
configurable: !1,
|
|
167
167
|
enumerable: !1,
|
|
@@ -176,33 +176,33 @@ function Sr() {
|
|
|
176
176
|
configurable: !1,
|
|
177
177
|
enumerable: !1,
|
|
178
178
|
writable: !0,
|
|
179
|
-
value:
|
|
179
|
+
value: N
|
|
180
180
|
}), Object.defineProperty(o, "_debugTask", {
|
|
181
181
|
configurable: !1,
|
|
182
182
|
enumerable: !1,
|
|
183
183
|
writable: !0,
|
|
184
|
-
value:
|
|
184
|
+
value: R
|
|
185
185
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
186
186
|
}
|
|
187
|
-
function m(o,
|
|
188
|
-
var
|
|
189
|
-
if (
|
|
187
|
+
function m(o, g, i, c, N, R) {
|
|
188
|
+
var h = g.children;
|
|
189
|
+
if (h !== void 0)
|
|
190
190
|
if (c)
|
|
191
|
-
if (
|
|
192
|
-
for (c = 0; c <
|
|
193
|
-
|
|
194
|
-
Object.freeze && Object.freeze(
|
|
191
|
+
if (ae(h)) {
|
|
192
|
+
for (c = 0; c < h.length; c++)
|
|
193
|
+
b(h[c]);
|
|
194
|
+
Object.freeze && Object.freeze(h);
|
|
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
|
|
200
|
-
if (p.call(
|
|
201
|
-
|
|
202
|
-
var
|
|
203
|
-
return
|
|
199
|
+
else b(h);
|
|
200
|
+
if (p.call(g, "key")) {
|
|
201
|
+
h = e(o);
|
|
202
|
+
var u = Object.keys(g).filter(function(y) {
|
|
203
|
+
return y !== "key";
|
|
204
204
|
});
|
|
205
|
-
c = 0 <
|
|
205
|
+
c = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", oe[h + c] || (u = 0 < u.length ? "{" + u.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} />
|
|
@@ -210,35 +210,35 @@ React keys must be passed directly to JSX without using spread:
|
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s key={someKey} {...props} />`,
|
|
212
212
|
c,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
), oe[
|
|
213
|
+
h,
|
|
214
|
+
u,
|
|
215
|
+
h
|
|
216
|
+
), oe[h + c] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (
|
|
218
|
+
if (h = null, i !== void 0 && (t(i), h = "" + i), f(g) && (t(g.key), h = "" + g.key), "key" in g) {
|
|
219
219
|
i = {};
|
|
220
|
-
for (var
|
|
221
|
-
|
|
222
|
-
} else i =
|
|
223
|
-
return
|
|
220
|
+
for (var l in g)
|
|
221
|
+
l !== "key" && (i[l] = g[l]);
|
|
222
|
+
} else i = g;
|
|
223
|
+
return h && d(
|
|
224
224
|
i,
|
|
225
225
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
226
|
-
),
|
|
226
|
+
), v(
|
|
227
227
|
o,
|
|
228
|
-
|
|
228
|
+
h,
|
|
229
229
|
i,
|
|
230
230
|
a(),
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
N,
|
|
232
|
+
R
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
|
|
235
|
+
function b(o) {
|
|
236
|
+
$(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === Z && (o._payload.status === "fulfilled" ? $(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 $(o) {
|
|
239
239
|
return typeof o == "object" && o !== null && o.$$typeof === O;
|
|
240
240
|
}
|
|
241
|
-
var C =
|
|
241
|
+
var C = gr, O = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), V = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), U = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, p = Object.prototype.hasOwnProperty, ae = Array.isArray, B = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
244
|
C = {
|
|
@@ -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
|
|
249
|
+
var K, W = {}, Q = C.react_stack_bottom_frame.bind(
|
|
250
250
|
C,
|
|
251
251
|
s
|
|
252
|
-
)(),
|
|
253
|
-
|
|
254
|
-
var c = 1e4 >
|
|
252
|
+
)(), ee = B(n(s)), oe = {};
|
|
253
|
+
ge.Fragment = w, ge.jsx = function(o, g, i) {
|
|
254
|
+
var c = 1e4 > U.recentlyCreatedOwnerStacks++;
|
|
255
255
|
return m(
|
|
256
256
|
o,
|
|
257
|
-
|
|
257
|
+
g,
|
|
258
258
|
i,
|
|
259
259
|
!1,
|
|
260
|
-
c ? Error("react-stack-top-frame") :
|
|
261
|
-
c ?
|
|
260
|
+
c ? Error("react-stack-top-frame") : Q,
|
|
261
|
+
c ? B(n(o)) : ee
|
|
262
262
|
);
|
|
263
|
-
},
|
|
264
|
-
var c = 1e4 >
|
|
263
|
+
}, ge.jsxs = function(o, g, i) {
|
|
264
|
+
var c = 1e4 > U.recentlyCreatedOwnerStacks++;
|
|
265
265
|
return m(
|
|
266
266
|
o,
|
|
267
|
-
|
|
267
|
+
g,
|
|
268
268
|
i,
|
|
269
269
|
!0,
|
|
270
|
-
c ? Error("react-stack-top-frame") :
|
|
271
|
-
c ?
|
|
270
|
+
c ? Error("react-stack-top-frame") : Q,
|
|
271
|
+
c ? B(n(o)) : ee
|
|
272
272
|
);
|
|
273
273
|
};
|
|
274
|
-
})()),
|
|
274
|
+
})()), ge;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
277
|
-
function
|
|
278
|
-
return
|
|
276
|
+
var He;
|
|
277
|
+
function Pr() {
|
|
278
|
+
return He || (He = 1, process.env.NODE_ENV === "production" ? Pe.exports = xr() : Pe.exports = wr()), Pe.exports;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
281
|
-
function
|
|
282
|
-
return
|
|
280
|
+
var L = Pr();
|
|
281
|
+
function Le() {
|
|
282
|
+
return Le = 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
|
+
}, Le.apply(null, arguments);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function kr(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 Sr(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 Er = /* @__PURE__ */ (function() {
|
|
302
302
|
function e(t) {
|
|
303
303
|
var n = this;
|
|
304
304
|
this._insertTag = function(a) {
|
|
@@ -310,10 +310,10 @@ var Tr = /* @__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(Sr(this));
|
|
314
314
|
var a = this.tags[this.tags.length - 1];
|
|
315
315
|
if (this.isSpeedy) {
|
|
316
|
-
var s =
|
|
316
|
+
var s = kr(a);
|
|
317
317
|
try {
|
|
318
318
|
s.insertRule(n, s.cssRules.length);
|
|
319
319
|
} catch {
|
|
@@ -327,14 +327,14 @@ var Tr = /* @__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
|
|
332
|
-
return
|
|
330
|
+
})(), Y = "-ms-", Ce = "-moz-", _ = "-webkit-", ar = "comm", ze = "rule", De = "decl", Rr = "@import", ir = "@keyframes", _r = "@layer", Tr = Math.abs, Oe = String.fromCharCode, Ar = Object.assign;
|
|
331
|
+
function Cr(e, r) {
|
|
332
|
+
return z(e, 0) ^ 45 ? (((r << 2 ^ z(e, 0)) << 2 ^ z(e, 1)) << 2 ^ z(e, 2)) << 2 ^ z(e, 3) : 0;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function or(e) {
|
|
335
335
|
return e.trim();
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Or(e, r) {
|
|
338
338
|
return (e = r.exec(e)) ? e[0] : e;
|
|
339
339
|
}
|
|
340
340
|
function T(e, r, t) {
|
|
@@ -343,50 +343,50 @@ function T(e, r, t) {
|
|
|
343
343
|
function Ve(e, r) {
|
|
344
344
|
return e.indexOf(r);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function z(e, r) {
|
|
347
347
|
return e.charCodeAt(r) | 0;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function ve(e, r, t) {
|
|
350
350
|
return e.slice(r, t);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function re(e) {
|
|
353
353
|
return e.length;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Ue(e) {
|
|
356
356
|
return e.length;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function ke(e, r) {
|
|
359
359
|
return r.push(e), e;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function $r(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 $e = 1, ue = 1, sr = 0, q = 0, F = 0, de = "";
|
|
365
|
+
function je(e, r, t, n, a, s, f) {
|
|
366
|
+
return { value: e, root: r, parent: t, type: n, props: a, children: s, line: $e, column: ue, length: f, return: "" };
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
return
|
|
368
|
+
function ye(e, r) {
|
|
369
|
+
return Ar(je("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return
|
|
371
|
+
function jr() {
|
|
372
|
+
return F;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
return
|
|
374
|
+
function Mr() {
|
|
375
|
+
return F = q > 0 ? z(de, --q) : 0, ue--, F === 10 && (ue = 1, $e--), F;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
return
|
|
377
|
+
function G() {
|
|
378
|
+
return F = q < sr ? z(de, q++) : 0, ue++, F === 10 && (ue = 1, $e++), F;
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
return
|
|
380
|
+
function ne() {
|
|
381
|
+
return z(de, q);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function Re() {
|
|
384
384
|
return q;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
386
|
+
function we(e, r) {
|
|
387
|
+
return ve(de, e, r);
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function be(e) {
|
|
390
390
|
switch (e) {
|
|
391
391
|
// \0 \t \n \r \s whitespace token
|
|
392
392
|
case 0:
|
|
@@ -424,260 +424,260 @@ function xe(e) {
|
|
|
424
424
|
}
|
|
425
425
|
return 0;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
427
|
+
function cr(e) {
|
|
428
|
+
return $e = ue = 1, sr = re(de = e), q = 0, [];
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
return
|
|
430
|
+
function lr(e) {
|
|
431
|
+
return de = "", e;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
return
|
|
433
|
+
function _e(e) {
|
|
434
|
+
return or(we(q - 1, Ie(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
435
435
|
}
|
|
436
|
-
function
|
|
437
|
-
for (; (
|
|
438
|
-
|
|
439
|
-
return
|
|
436
|
+
function Fr(e) {
|
|
437
|
+
for (; (F = ne()) && F < 33; )
|
|
438
|
+
G();
|
|
439
|
+
return be(e) > 2 || be(F) > 3 ? "" : " ";
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
for (; --r &&
|
|
441
|
+
function Nr(e, r) {
|
|
442
|
+
for (; --r && G() && !(F < 48 || F > 102 || F > 57 && F < 65 || F > 70 && F < 97); )
|
|
443
443
|
;
|
|
444
|
-
return
|
|
444
|
+
return we(e, Re() + (r < 6 && ne() == 32 && G() == 32));
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
for (;
|
|
448
|
-
switch (
|
|
446
|
+
function Ie(e) {
|
|
447
|
+
for (; G(); )
|
|
448
|
+
switch (F) {
|
|
449
449
|
// ] ) " '
|
|
450
450
|
case e:
|
|
451
451
|
return q;
|
|
452
452
|
// " '
|
|
453
453
|
case 34:
|
|
454
454
|
case 39:
|
|
455
|
-
e !== 34 && e !== 39 &&
|
|
455
|
+
e !== 34 && e !== 39 && Ie(F);
|
|
456
456
|
break;
|
|
457
457
|
// (
|
|
458
458
|
case 40:
|
|
459
|
-
e === 41 &&
|
|
459
|
+
e === 41 && Ie(e);
|
|
460
460
|
break;
|
|
461
461
|
// \
|
|
462
462
|
case 92:
|
|
463
|
-
|
|
463
|
+
G();
|
|
464
464
|
break;
|
|
465
465
|
}
|
|
466
466
|
return q;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
for (;
|
|
470
|
-
if (e +
|
|
468
|
+
function Lr(e, r) {
|
|
469
|
+
for (; G() && e + F !== 57; )
|
|
470
|
+
if (e + F === 84 && ne() === 47)
|
|
471
471
|
break;
|
|
472
|
-
return "/*" +
|
|
472
|
+
return "/*" + we(r, q - 1) + "*" + Oe(e === 47 ? e : G());
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
for (; !
|
|
476
|
-
|
|
477
|
-
return
|
|
474
|
+
function Vr(e) {
|
|
475
|
+
for (; !be(ne()); )
|
|
476
|
+
G();
|
|
477
|
+
return we(e, q);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
479
|
+
function Ir(e) {
|
|
480
|
+
return lr(Te("", null, null, null, [""], e = cr(e), 0, [0], e));
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
for (var
|
|
484
|
-
switch (O = A, A =
|
|
482
|
+
function Te(e, r, t, n, a, s, f, d, P) {
|
|
483
|
+
for (var v = 0, m = 0, b = f, $ = 0, C = 0, O = 0, x = 1, w = 1, S = 1, A = 0, M = "", V = a, I = s, j = n, E = M; w; )
|
|
484
|
+
switch (O = A, A = G()) {
|
|
485
485
|
// (
|
|
486
486
|
case 40:
|
|
487
|
-
if (O != 108 &&
|
|
488
|
-
Ve(
|
|
487
|
+
if (O != 108 && z(E, b - 1) == 58) {
|
|
488
|
+
Ve(E += T(_e(A), "&", "&\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 += _e(A);
|
|
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 += Fr(O);
|
|
503
503
|
break;
|
|
504
504
|
// \
|
|
505
505
|
case 92:
|
|
506
|
-
|
|
506
|
+
E += Nr(Re() - 1, 7);
|
|
507
507
|
continue;
|
|
508
508
|
// /
|
|
509
509
|
case 47:
|
|
510
|
-
switch (
|
|
510
|
+
switch (ne()) {
|
|
511
511
|
case 42:
|
|
512
512
|
case 47:
|
|
513
|
-
|
|
513
|
+
ke(zr(Lr(G(), Re()), r, t), P);
|
|
514
514
|
break;
|
|
515
515
|
default:
|
|
516
|
-
|
|
516
|
+
E += "/";
|
|
517
517
|
}
|
|
518
518
|
break;
|
|
519
519
|
// {
|
|
520
|
-
case 123 *
|
|
521
|
-
d[
|
|
520
|
+
case 123 * x:
|
|
521
|
+
d[v++] = re(E) * S;
|
|
522
522
|
// } ; \0
|
|
523
|
-
case 125 *
|
|
523
|
+
case 125 * x:
|
|
524
524
|
case 59:
|
|
525
525
|
case 0:
|
|
526
526
|
switch (A) {
|
|
527
527
|
// \0 }
|
|
528
528
|
case 0:
|
|
529
529
|
case 125:
|
|
530
|
-
|
|
530
|
+
w = 0;
|
|
531
531
|
// ;
|
|
532
532
|
case 59 + m:
|
|
533
|
-
|
|
533
|
+
S == -1 && (E = T(E, /\f/g, "")), C > 0 && re(E) - b && ke(C > 32 ? Be(E + ";", n, t, b - 1) : Be(T(E, " ", "") + ";", n, t, b - 2), P);
|
|
534
534
|
break;
|
|
535
535
|
// @ ;
|
|
536
536
|
case 59:
|
|
537
|
-
|
|
537
|
+
E += ";";
|
|
538
538
|
// { rule/at-rule
|
|
539
539
|
default:
|
|
540
|
-
if (
|
|
540
|
+
if (ke(j = Ge(E, r, t, v, m, a, d, M, V = [], I = [], b), s), A === 123)
|
|
541
541
|
if (m === 0)
|
|
542
|
-
|
|
542
|
+
Te(E, r, j, j, V, s, b, d, I);
|
|
543
543
|
else
|
|
544
|
-
switch (
|
|
544
|
+
switch ($ === 99 && z(E, 3) === 110 ? 100 : $) {
|
|
545
545
|
// d l m s
|
|
546
546
|
case 100:
|
|
547
547
|
case 108:
|
|
548
548
|
case 109:
|
|
549
549
|
case 115:
|
|
550
|
-
|
|
550
|
+
Te(e, j, j, n && ke(Ge(e, j, j, 0, 0, a, d, M, a, V = [], b), I), a, I, b, d, n ? V : I);
|
|
551
551
|
break;
|
|
552
552
|
default:
|
|
553
|
-
|
|
553
|
+
Te(E, j, j, j, [""], I, 0, d, I);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
|
|
556
|
+
v = m = C = 0, x = S = 1, M = E = "", b = f;
|
|
557
557
|
break;
|
|
558
558
|
// :
|
|
559
559
|
case 58:
|
|
560
|
-
|
|
560
|
+
b = 1 + re(E), C = O;
|
|
561
561
|
default:
|
|
562
|
-
if (
|
|
562
|
+
if (x < 1) {
|
|
563
563
|
if (A == 123)
|
|
564
|
-
--
|
|
565
|
-
else if (A == 125 &&
|
|
564
|
+
--x;
|
|
565
|
+
else if (A == 125 && x++ == 0 && Mr() == 125)
|
|
566
566
|
continue;
|
|
567
567
|
}
|
|
568
|
-
switch (
|
|
568
|
+
switch (E += Oe(A), A * x) {
|
|
569
569
|
// &
|
|
570
570
|
case 38:
|
|
571
|
-
|
|
571
|
+
S = m > 0 ? 1 : (E += "\f", -1);
|
|
572
572
|
break;
|
|
573
573
|
// ,
|
|
574
574
|
case 44:
|
|
575
|
-
d[
|
|
575
|
+
d[v++] = (re(E) - 1) * S, S = 1;
|
|
576
576
|
break;
|
|
577
577
|
// @
|
|
578
578
|
case 64:
|
|
579
|
-
|
|
579
|
+
ne() === 45 && (E += _e(G())), $ = ne(), m = b = re(M = E += Vr(Re())), A++;
|
|
580
580
|
break;
|
|
581
581
|
// -
|
|
582
582
|
case 45:
|
|
583
|
-
O === 45 &&
|
|
583
|
+
O === 45 && re(E) == 2 && (x = 0);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
return s;
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
for (var
|
|
590
|
-
for (var
|
|
591
|
-
(
|
|
592
|
-
return
|
|
588
|
+
function Ge(e, r, t, n, a, s, f, d, P, v, m) {
|
|
589
|
+
for (var b = a - 1, $ = a === 0 ? s : [""], C = Ue($), O = 0, x = 0, w = 0; O < n; ++O)
|
|
590
|
+
for (var S = 0, A = ve(e, b + 1, b = Tr(x = f[O])), M = e; S < C; ++S)
|
|
591
|
+
(M = or(x > 0 ? $[S] + " " + A : T(A, /&\f/g, $[S]))) && (P[w++] = M);
|
|
592
|
+
return je(e, r, t, a === 0 ? ze : d, P, v, m);
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
return
|
|
594
|
+
function zr(e, r, t) {
|
|
595
|
+
return je(e, r, t, ar, Oe(jr()), ve(e, 2, -2), 0);
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
return
|
|
597
|
+
function Be(e, r, t, n) {
|
|
598
|
+
return je(e, r, t, De, ve(e, 0, n), ve(e, n + 1, -1), n);
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
for (var t = "", n =
|
|
600
|
+
function le(e, r) {
|
|
601
|
+
for (var t = "", n = Ue(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 Dr(e, r, t, n) {
|
|
606
606
|
switch (e.type) {
|
|
607
|
-
case
|
|
607
|
+
case _r:
|
|
608
608
|
if (e.children.length) break;
|
|
609
|
-
case
|
|
610
|
-
case
|
|
609
|
+
case Rr:
|
|
610
|
+
case De:
|
|
611
611
|
return e.return = e.return || e.value;
|
|
612
|
-
case
|
|
612
|
+
case ar:
|
|
613
613
|
return "";
|
|
614
|
-
case
|
|
615
|
-
return e.return = e.value + "{" +
|
|
616
|
-
case
|
|
614
|
+
case ir:
|
|
615
|
+
return e.return = e.value + "{" + le(e.children, n) + "}";
|
|
616
|
+
case ze:
|
|
617
617
|
e.value = e.props.join(",");
|
|
618
618
|
}
|
|
619
|
-
return
|
|
619
|
+
return re(t = le(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
var r =
|
|
621
|
+
function Ur(e) {
|
|
622
|
+
var r = Ue(e);
|
|
623
623
|
return function(t, n, a, s) {
|
|
624
|
-
for (var
|
|
625
|
-
|
|
626
|
-
return
|
|
624
|
+
for (var f = "", d = 0; d < r; d++)
|
|
625
|
+
f += e[d](t, n, a, s) || "";
|
|
626
|
+
return f;
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Wr(e) {
|
|
630
630
|
return function(r) {
|
|
631
631
|
r.root || (r = r.return) && e(r);
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function ur(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 =
|
|
642
|
-
|
|
643
|
-
return
|
|
644
|
-
},
|
|
640
|
+
var Yr = function(r, t, n) {
|
|
641
|
+
for (var a = 0, s = 0; a = s, s = ne(), a === 38 && s === 12 && (t[n] = 1), !be(s); )
|
|
642
|
+
G();
|
|
643
|
+
return we(r, q);
|
|
644
|
+
}, qr = function(r, t) {
|
|
645
645
|
var n = -1, a = 44;
|
|
646
646
|
do
|
|
647
|
-
switch (
|
|
647
|
+
switch (be(a)) {
|
|
648
648
|
case 0:
|
|
649
|
-
a === 38 &&
|
|
649
|
+
a === 38 && ne() === 12 && (t[n] = 1), r[n] += Yr(q - 1, t, n);
|
|
650
650
|
break;
|
|
651
651
|
case 2:
|
|
652
|
-
r[n] +=
|
|
652
|
+
r[n] += _e(a);
|
|
653
653
|
break;
|
|
654
654
|
case 4:
|
|
655
655
|
if (a === 44) {
|
|
656
|
-
r[++n] =
|
|
656
|
+
r[++n] = ne() === 58 ? "&\f" : "", t[n] = r[n].length;
|
|
657
657
|
break;
|
|
658
658
|
}
|
|
659
659
|
// fallthrough
|
|
660
660
|
default:
|
|
661
|
-
r[n] +=
|
|
661
|
+
r[n] += Oe(a);
|
|
662
662
|
}
|
|
663
|
-
while (a =
|
|
663
|
+
while (a = G());
|
|
664
664
|
return r;
|
|
665
|
-
},
|
|
666
|
-
return
|
|
667
|
-
},
|
|
665
|
+
}, Hr = function(r, t) {
|
|
666
|
+
return lr(qr(cr(r), t));
|
|
667
|
+
}, Xe = /* @__PURE__ */ new WeakMap(), Gr = 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 = [],
|
|
676
|
-
for (var m = 0; m < d.length; m++,
|
|
677
|
-
r.props[
|
|
673
|
+
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !Xe.get(n)) && !a) {
|
|
674
|
+
Xe.set(r, !0);
|
|
675
|
+
for (var s = [], f = Hr(t, s), d = n.props, P = 0, v = 0; P < f.length; P++)
|
|
676
|
+
for (var m = 0; m < d.length; m++, v++)
|
|
677
|
+
r.props[v] = s[P] ? f[P].replace(/&\f/g, d[m]) : d[m] + " " + f[P];
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
},
|
|
680
|
+
}, Br = function(r) {
|
|
681
681
|
if (r.type === "decl") {
|
|
682
682
|
var t = r.value;
|
|
683
683
|
// charcode for l
|
|
@@ -685,8 +685,8 @@ var Gr = function(r, t, n) {
|
|
|
685
685
|
t.charCodeAt(2) === 98 && (r.return = "", r.value = "");
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
|
-
function
|
|
689
|
-
switch (
|
|
688
|
+
function fr(e, r) {
|
|
689
|
+
switch (Cr(e, r)) {
|
|
690
690
|
// color-adjust
|
|
691
691
|
case 5103:
|
|
692
692
|
return _ + "print-" + e + e;
|
|
@@ -726,7 +726,7 @@ function pr(e, r) {
|
|
|
726
726
|
case 4810:
|
|
727
727
|
case 6968:
|
|
728
728
|
case 2756:
|
|
729
|
-
return _ + e +
|
|
729
|
+
return _ + e + Ce + e + Y + e + e;
|
|
730
730
|
// flex, flex-direction
|
|
731
731
|
case 6828:
|
|
732
732
|
case 4268:
|
|
@@ -784,35 +784,35 @@ function pr(e, r) {
|
|
|
784
784
|
case 5789:
|
|
785
785
|
case 5021:
|
|
786
786
|
case 4765:
|
|
787
|
-
if (
|
|
787
|
+
if (re(e) - 1 - r > 6) switch (z(e, r + 1)) {
|
|
788
788
|
// (m)ax-content, (m)in-content
|
|
789
789
|
case 109:
|
|
790
|
-
if (
|
|
790
|
+
if (z(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" + Ce + (z(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
794
794
|
// (s)tretch
|
|
795
795
|
case 115:
|
|
796
|
-
return ~Ve(e, "stretch") ?
|
|
796
|
+
return ~Ve(e, "stretch") ? fr(T(e, "stretch", "fill-available"), r) + e : e;
|
|
797
797
|
}
|
|
798
798
|
break;
|
|
799
799
|
// position: sticky
|
|
800
800
|
case 4949:
|
|
801
|
-
if (
|
|
801
|
+
if (z(e, r + 1) !== 115) break;
|
|
802
802
|
// display: (flex|inline-flex)
|
|
803
803
|
case 6444:
|
|
804
|
-
switch (
|
|
804
|
+
switch (z(e, re(e) - 3 - (~Ve(e, "!important") && 10))) {
|
|
805
805
|
// stic(k)y
|
|
806
806
|
case 107:
|
|
807
807
|
return T(e, ":", ":" + _) + e;
|
|
808
808
|
// (inline-)?fl(e)x
|
|
809
809
|
case 101:
|
|
810
|
-
return T(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + _ + (
|
|
810
|
+
return T(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + _ + (z(e, 14) === 45 ? "inline-" : "") + "box$3$1" + _ + "$2$3$1" + Y + "$2box$3") + e;
|
|
811
811
|
}
|
|
812
812
|
break;
|
|
813
813
|
// writing-mode
|
|
814
814
|
case 5936:
|
|
815
|
-
switch (
|
|
815
|
+
switch (z(e, r + 11)) {
|
|
816
816
|
// vertical-l(r)
|
|
817
817
|
case 114:
|
|
818
818
|
return _ + e + Y + T(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
@@ -827,73 +827,73 @@ function pr(e, r) {
|
|
|
827
827
|
}
|
|
828
828
|
return e;
|
|
829
829
|
}
|
|
830
|
-
var
|
|
830
|
+
var Xr = function(r, t, n, a) {
|
|
831
831
|
if (r.length > -1 && !r.return) switch (r.type) {
|
|
832
|
-
case
|
|
833
|
-
r.return =
|
|
832
|
+
case De:
|
|
833
|
+
r.return = fr(r.value, r.length);
|
|
834
834
|
break;
|
|
835
|
-
case
|
|
836
|
-
return
|
|
835
|
+
case ir:
|
|
836
|
+
return le([ye(r, {
|
|
837
837
|
value: T(r.value, "@", "@" + _)
|
|
838
838
|
})], a);
|
|
839
|
-
case
|
|
840
|
-
if (r.length) return
|
|
841
|
-
switch (
|
|
839
|
+
case ze:
|
|
840
|
+
if (r.length) return $r(r.props, function(s) {
|
|
841
|
+
switch (Or(s, /(::plac\w+|:read-\w+)/)) {
|
|
842
842
|
// :read-(only|write)
|
|
843
843
|
case ":read-only":
|
|
844
844
|
case ":read-write":
|
|
845
|
-
return
|
|
846
|
-
props: [T(s, /:(read-\w+)/, ":" +
|
|
845
|
+
return le([ye(r, {
|
|
846
|
+
props: [T(s, /:(read-\w+)/, ":" + Ce + "$1")]
|
|
847
847
|
})], a);
|
|
848
848
|
// :placeholder
|
|
849
849
|
case "::placeholder":
|
|
850
|
-
return
|
|
850
|
+
return le([ye(r, {
|
|
851
851
|
props: [T(s, /:(plac\w+)/, ":" + _ + "input-$1")]
|
|
852
|
-
}),
|
|
853
|
-
props: [T(s, /:(plac\w+)/, ":" +
|
|
854
|
-
}),
|
|
852
|
+
}), ye(r, {
|
|
853
|
+
props: [T(s, /:(plac\w+)/, ":" + Ce + "$1")]
|
|
854
|
+
}), ye(r, {
|
|
855
855
|
props: [T(s, /:(plac\w+)/, Y + "input-$1")]
|
|
856
856
|
})], a);
|
|
857
857
|
}
|
|
858
858
|
return "";
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
},
|
|
861
|
+
}, Jr = [Xr], Zr = 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
|
-
Array.prototype.forEach.call(n, function(
|
|
866
|
-
var
|
|
867
|
-
|
|
865
|
+
Array.prototype.forEach.call(n, function(x) {
|
|
866
|
+
var w = x.getAttribute("data-emotion");
|
|
867
|
+
w.indexOf(" ") !== -1 && (document.head.appendChild(x), x.setAttribute("data-s", ""));
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
|
-
var a = r.stylisPlugins ||
|
|
871
|
-
|
|
870
|
+
var a = r.stylisPlugins || Jr, s = {}, f, d = [];
|
|
871
|
+
f = 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
|
-
function(
|
|
876
|
-
for (var
|
|
877
|
-
s[
|
|
878
|
-
d.push(
|
|
875
|
+
function(x) {
|
|
876
|
+
for (var w = x.getAttribute("data-emotion").split(" "), S = 1; S < w.length; S++)
|
|
877
|
+
s[w[S]] = !0;
|
|
878
|
+
d.push(x);
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
|
-
var
|
|
881
|
+
var P, v = [Gr, Br];
|
|
882
882
|
{
|
|
883
|
-
var m,
|
|
884
|
-
m.insert(
|
|
885
|
-
})],
|
|
886
|
-
return
|
|
883
|
+
var m, b = [Dr, Wr(function(x) {
|
|
884
|
+
m.insert(x);
|
|
885
|
+
})], $ = Ur(v.concat(a, b)), C = function(w) {
|
|
886
|
+
return le(Ir(w), $);
|
|
887
887
|
};
|
|
888
|
-
|
|
889
|
-
m = A, C(
|
|
888
|
+
P = function(w, S, A, M) {
|
|
889
|
+
m = A, C(w ? w + "{" + S.styles + "}" : S.styles), M && (O.inserted[S.name] = !0);
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
892
|
var O = {
|
|
893
893
|
key: t,
|
|
894
|
-
sheet: new
|
|
894
|
+
sheet: new Er({
|
|
895
895
|
key: t,
|
|
896
|
-
container:
|
|
896
|
+
container: f,
|
|
897
897
|
nonce: r.nonce,
|
|
898
898
|
speedy: r.speedy,
|
|
899
899
|
prepend: r.prepend,
|
|
@@ -902,17 +902,17 @@ var Kr = function(r, t, n, a) {
|
|
|
902
902
|
nonce: r.nonce,
|
|
903
903
|
inserted: s,
|
|
904
904
|
registered: {},
|
|
905
|
-
insert:
|
|
905
|
+
insert: P
|
|
906
906
|
};
|
|
907
907
|
return O.sheet.hydrate(d), O;
|
|
908
|
-
},
|
|
909
|
-
function
|
|
908
|
+
}, Kr = !0;
|
|
909
|
+
function Qr(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 dr = 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 hr = 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
|
+
Kr === !1) && r.registered[a] === void 0 && (r.registered[a] = t.styles);
|
|
927
|
+
}, et = function(r, t, n) {
|
|
928
|
+
dr(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 hr = function(r, t, n) {
|
|
|
934
934
|
while (s !== void 0);
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
|
-
function
|
|
937
|
+
function rt(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 at(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 tt = {
|
|
957
957
|
animationIterationCount: 1,
|
|
958
958
|
aspectRatio: 1,
|
|
959
959
|
borderImageOutset: 1,
|
|
@@ -1002,28 +1002,28 @@ var it = {
|
|
|
1002
1002
|
strokeMiterlimit: 1,
|
|
1003
1003
|
strokeOpacity: 1,
|
|
1004
1004
|
strokeWidth: 1
|
|
1005
|
-
},
|
|
1005
|
+
}, nt = /[A-Z]|^ms/g, at = /_EMO_([^_]+?)_([^]*?)_EMO_/g, pr = function(r) {
|
|
1006
1006
|
return r.charCodeAt(1) === 45;
|
|
1007
|
-
},
|
|
1007
|
+
}, Je = function(r) {
|
|
1008
1008
|
return r != null && typeof r != "boolean";
|
|
1009
|
-
},
|
|
1010
|
-
return
|
|
1011
|
-
}),
|
|
1009
|
+
}, Fe = /* @__PURE__ */ ur(function(e) {
|
|
1010
|
+
return pr(e) ? e : e.replace(nt, "-$&").toLowerCase();
|
|
1011
|
+
}), Ze = 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(
|
|
1017
|
-
return
|
|
1016
|
+
return t.replace(at, function(n, a, s) {
|
|
1017
|
+
return te = {
|
|
1018
1018
|
name: a,
|
|
1019
1019
|
styles: s,
|
|
1020
|
-
next:
|
|
1020
|
+
next: te
|
|
1021
1021
|
}, a;
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
return
|
|
1024
|
+
return tt[r] !== 1 && !pr(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
1025
1025
|
};
|
|
1026
|
-
function
|
|
1026
|
+
function xe(e, r, t) {
|
|
1027
1027
|
if (t == null)
|
|
1028
1028
|
return "";
|
|
1029
1029
|
var n = t;
|
|
@@ -1035,30 +1035,30 @@ function we(e, r, t) {
|
|
|
1035
1035
|
case "object": {
|
|
1036
1036
|
var a = t;
|
|
1037
1037
|
if (a.anim === 1)
|
|
1038
|
-
return
|
|
1038
|
+
return te = {
|
|
1039
1039
|
name: a.name,
|
|
1040
1040
|
styles: a.styles,
|
|
1041
|
-
next:
|
|
1041
|
+
next: te
|
|
1042
1042
|
}, a.name;
|
|
1043
1043
|
var s = t;
|
|
1044
1044
|
if (s.styles !== void 0) {
|
|
1045
|
-
var
|
|
1046
|
-
if (
|
|
1047
|
-
for (;
|
|
1048
|
-
|
|
1049
|
-
name:
|
|
1050
|
-
styles:
|
|
1051
|
-
next:
|
|
1052
|
-
},
|
|
1045
|
+
var f = s.next;
|
|
1046
|
+
if (f !== void 0)
|
|
1047
|
+
for (; f !== void 0; )
|
|
1048
|
+
te = {
|
|
1049
|
+
name: f.name,
|
|
1050
|
+
styles: f.styles,
|
|
1051
|
+
next: te
|
|
1052
|
+
}, f = f.next;
|
|
1053
1053
|
var d = s.styles + ";";
|
|
1054
1054
|
return d;
|
|
1055
1055
|
}
|
|
1056
|
-
return
|
|
1056
|
+
return it(e, r, t);
|
|
1057
1057
|
}
|
|
1058
1058
|
case "function": {
|
|
1059
1059
|
if (e !== void 0) {
|
|
1060
|
-
var
|
|
1061
|
-
return
|
|
1060
|
+
var P = te, v = t(e);
|
|
1061
|
+
return te = P, xe(e, r, v);
|
|
1062
1062
|
}
|
|
1063
1063
|
break;
|
|
1064
1064
|
}
|
|
@@ -1066,157 +1066,157 @@ function we(e, r, t) {
|
|
|
1066
1066
|
var m = t;
|
|
1067
1067
|
if (r == null)
|
|
1068
1068
|
return m;
|
|
1069
|
-
var
|
|
1070
|
-
return
|
|
1069
|
+
var b = r[m];
|
|
1070
|
+
return b !== void 0 ? b : m;
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function it(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 += xe(e, r, t[a]) + ";";
|
|
1077
1077
|
else
|
|
1078
1078
|
for (var s in t) {
|
|
1079
|
-
var
|
|
1080
|
-
if (typeof
|
|
1081
|
-
var d =
|
|
1082
|
-
r != null && r[d] !== void 0 ? n += s + "{" + r[d] + "}" :
|
|
1083
|
-
} else if (Array.isArray(
|
|
1084
|
-
for (var
|
|
1085
|
-
|
|
1079
|
+
var f = t[s];
|
|
1080
|
+
if (typeof f != "object") {
|
|
1081
|
+
var d = f;
|
|
1082
|
+
r != null && r[d] !== void 0 ? n += s + "{" + r[d] + "}" : Je(d) && (n += Fe(s) + ":" + Ze(s, d) + ";");
|
|
1083
|
+
} else if (Array.isArray(f) && typeof f[0] == "string" && (r == null || r[f[0]] === void 0))
|
|
1084
|
+
for (var P = 0; P < f.length; P++)
|
|
1085
|
+
Je(f[P]) && (n += Fe(s) + ":" + Ze(s, f[P]) + ";");
|
|
1086
1086
|
else {
|
|
1087
|
-
var
|
|
1087
|
+
var v = xe(e, r, f);
|
|
1088
1088
|
switch (s) {
|
|
1089
1089
|
case "animation":
|
|
1090
1090
|
case "animationName": {
|
|
1091
|
-
n +=
|
|
1091
|
+
n += Fe(s) + ":" + v + ";";
|
|
1092
1092
|
break;
|
|
1093
1093
|
}
|
|
1094
1094
|
default:
|
|
1095
|
-
n += s + "{" +
|
|
1095
|
+
n += s + "{" + v + "}";
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
1099
|
return n;
|
|
1100
1100
|
}
|
|
1101
|
-
var
|
|
1102
|
-
function
|
|
1101
|
+
var Ke = /label:\s*([^\s;{]+)\s*(;|$)/g, te;
|
|
1102
|
+
function ot(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
|
+
te = 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 += xe(t, r, s);
|
|
1110
1110
|
else {
|
|
1111
|
-
var
|
|
1112
|
-
a +=
|
|
1111
|
+
var f = s;
|
|
1112
|
+
a += f[0];
|
|
1113
1113
|
}
|
|
1114
1114
|
for (var d = 1; d < e.length; d++)
|
|
1115
|
-
if (a +=
|
|
1116
|
-
var
|
|
1117
|
-
a +=
|
|
1115
|
+
if (a += xe(t, r, e[d]), n) {
|
|
1116
|
+
var P = s;
|
|
1117
|
+
a += P[d];
|
|
1118
1118
|
}
|
|
1119
|
-
|
|
1120
|
-
for (var
|
|
1121
|
-
|
|
1122
|
-
var
|
|
1119
|
+
Ke.lastIndex = 0;
|
|
1120
|
+
for (var v = "", m; (m = Ke.exec(a)) !== null; )
|
|
1121
|
+
v += "-" + m[1];
|
|
1122
|
+
var b = rt(a) + v;
|
|
1123
1123
|
return {
|
|
1124
|
-
name:
|
|
1124
|
+
name: b,
|
|
1125
1125
|
styles: a,
|
|
1126
|
-
next:
|
|
1126
|
+
next: te
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
|
-
var
|
|
1129
|
+
var st = function(r) {
|
|
1130
1130
|
return r();
|
|
1131
|
-
},
|
|
1131
|
+
}, ct = ie.useInsertionEffect ? ie.useInsertionEffect : !1, lt = ct || st, hr = /* @__PURE__ */ ie.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__ */ Zr({
|
|
1139
1139
|
key: "css"
|
|
1140
1140
|
}) : null
|
|
1141
1141
|
);
|
|
1142
|
-
|
|
1143
|
-
var
|
|
1144
|
-
return /* @__PURE__ */
|
|
1145
|
-
var a =
|
|
1142
|
+
hr.Provider;
|
|
1143
|
+
var ut = function(r) {
|
|
1144
|
+
return /* @__PURE__ */ nr(function(t, n) {
|
|
1145
|
+
var a = yr(hr);
|
|
1146
1146
|
return r(t, a, n);
|
|
1147
1147
|
});
|
|
1148
|
-
},
|
|
1148
|
+
}, ft = /* @__PURE__ */ ie.createContext({}), dt = /^((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)-.*))$/, pt = /* @__PURE__ */ ur(
|
|
1149
1149
|
function(e) {
|
|
1150
|
-
return
|
|
1150
|
+
return dt.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
1151
1151
|
}
|
|
1152
1152
|
/* Z+1 */
|
|
1153
|
-
),
|
|
1153
|
+
), ht = pt, mt = function(r) {
|
|
1154
1154
|
return r !== "theme";
|
|
1155
|
-
},
|
|
1155
|
+
}, Qe = 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 ? ht : mt;
|
|
1160
|
+
}, er = function(r, t, n) {
|
|
1161
1161
|
var a;
|
|
1162
1162
|
if (t) {
|
|
1163
1163
|
var s = t.shouldForwardProp;
|
|
1164
|
-
a = r.__emotion_forwardProp && s ? function(
|
|
1165
|
-
return r.__emotion_forwardProp(
|
|
1164
|
+
a = r.__emotion_forwardProp && s ? function(f) {
|
|
1165
|
+
return r.__emotion_forwardProp(f) && s(f);
|
|
1166
1166
|
} : s;
|
|
1167
1167
|
}
|
|
1168
1168
|
return typeof a != "function" && n && (a = r.__emotion_forwardProp), a;
|
|
1169
|
-
},
|
|
1169
|
+
}, gt = function(r) {
|
|
1170
1170
|
var t = r.cache, n = r.serialized, a = r.isStringTag;
|
|
1171
|
-
return
|
|
1172
|
-
return
|
|
1171
|
+
return dr(t, n, a), lt(function() {
|
|
1172
|
+
return et(t, n, a);
|
|
1173
1173
|
}), null;
|
|
1174
|
-
},
|
|
1175
|
-
var n = r.__emotion_real === r, a = n && r.__emotion_base || r, s,
|
|
1176
|
-
t !== void 0 && (s = t.label,
|
|
1177
|
-
var d =
|
|
1174
|
+
}, yt = function e(r, t) {
|
|
1175
|
+
var n = r.__emotion_real === r, a = n && r.__emotion_base || r, s, f;
|
|
1176
|
+
t !== void 0 && (s = t.label, f = t.target);
|
|
1177
|
+
var d = er(r, t, n), P = d || Qe(a), v = !P("as");
|
|
1178
1178
|
return function() {
|
|
1179
|
-
var m = arguments,
|
|
1180
|
-
if (s !== void 0 &&
|
|
1181
|
-
|
|
1179
|
+
var m = arguments, b = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
|
|
1180
|
+
if (s !== void 0 && b.push("label:" + s + ";"), m[0] == null || m[0].raw === void 0)
|
|
1181
|
+
b.push.apply(b, m);
|
|
1182
1182
|
else {
|
|
1183
|
-
var
|
|
1184
|
-
|
|
1183
|
+
var $ = m[0];
|
|
1184
|
+
b.push($[0]);
|
|
1185
1185
|
for (var C = m.length, O = 1; O < C; O++)
|
|
1186
|
-
|
|
1186
|
+
b.push(m[O], $[O]);
|
|
1187
1187
|
}
|
|
1188
|
-
var
|
|
1189
|
-
var
|
|
1190
|
-
if (
|
|
1191
|
-
|
|
1192
|
-
for (var
|
|
1193
|
-
|
|
1194
|
-
|
|
1188
|
+
var x = ut(function(w, S, A) {
|
|
1189
|
+
var M = v && w.as || a, V = "", I = [], j = w;
|
|
1190
|
+
if (w.theme == null) {
|
|
1191
|
+
j = {};
|
|
1192
|
+
for (var E in w)
|
|
1193
|
+
j[E] = w[E];
|
|
1194
|
+
j.theme = ie.useContext(ft);
|
|
1195
1195
|
}
|
|
1196
|
-
typeof
|
|
1197
|
-
var H =
|
|
1198
|
-
V +=
|
|
1199
|
-
var
|
|
1200
|
-
for (var X in
|
|
1201
|
-
|
|
1202
|
-
return
|
|
1203
|
-
cache:
|
|
1196
|
+
typeof w.className == "string" ? V = Qr(S.registered, I, w.className) : w.className != null && (V = w.className + " ");
|
|
1197
|
+
var H = ot(b.concat(I), S.registered, j);
|
|
1198
|
+
V += S.key + "-" + H.name, f !== void 0 && (V += " " + f);
|
|
1199
|
+
var Z = v && d === void 0 ? Qe(M) : P, D = {};
|
|
1200
|
+
for (var X in w)
|
|
1201
|
+
v && X === "as" || Z(X) && (D[X] = w[X]);
|
|
1202
|
+
return D.className = V, A && (D.ref = A), /* @__PURE__ */ ie.createElement(ie.Fragment, null, /* @__PURE__ */ ie.createElement(gt, {
|
|
1203
|
+
cache: S,
|
|
1204
1204
|
serialized: H,
|
|
1205
|
-
isStringTag: typeof
|
|
1206
|
-
}), /* @__PURE__ */
|
|
1205
|
+
isStringTag: typeof M == "string"
|
|
1206
|
+
}), /* @__PURE__ */ ie.createElement(M, D));
|
|
1207
1207
|
});
|
|
1208
|
-
return
|
|
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 = d, Object.defineProperty(x, "toString", {
|
|
1209
1209
|
value: function() {
|
|
1210
|
-
return "." +
|
|
1210
|
+
return "." + f;
|
|
1211
1211
|
}
|
|
1212
|
-
}),
|
|
1213
|
-
var A = e(
|
|
1214
|
-
shouldForwardProp:
|
|
1212
|
+
}), x.withComponent = function(w, S) {
|
|
1213
|
+
var A = e(w, Le({}, t, S, {
|
|
1214
|
+
shouldForwardProp: er(x, S, !0)
|
|
1215
1215
|
}));
|
|
1216
|
-
return A.apply(void 0,
|
|
1217
|
-
},
|
|
1216
|
+
return A.apply(void 0, b);
|
|
1217
|
+
}, x;
|
|
1218
1218
|
};
|
|
1219
|
-
},
|
|
1219
|
+
}, vt = [
|
|
1220
1220
|
"a",
|
|
1221
1221
|
"abbr",
|
|
1222
1222
|
"address",
|
|
@@ -1352,11 +1352,11 @@ var pt = function(r) {
|
|
|
1352
1352
|
"svg",
|
|
1353
1353
|
"text",
|
|
1354
1354
|
"tspan"
|
|
1355
|
-
],
|
|
1356
|
-
|
|
1357
|
-
|
|
1355
|
+
], fe = yt.bind(null);
|
|
1356
|
+
vt.forEach(function(e) {
|
|
1357
|
+
fe[e] = fe(e);
|
|
1358
1358
|
});
|
|
1359
|
-
const
|
|
1359
|
+
const bt = fe.div`
|
|
1360
1360
|
display: flex;
|
|
1361
1361
|
align-items: center;
|
|
1362
1362
|
justify-content: center;
|
|
@@ -1397,23 +1397,27 @@ const Pt = he.div`
|
|
|
1397
1397
|
return "";
|
|
1398
1398
|
}
|
|
1399
1399
|
}}
|
|
1400
|
-
`,
|
|
1401
|
-
n && /* @__PURE__ */
|
|
1402
|
-
/* @__PURE__ */
|
|
1403
|
-
a && /* @__PURE__ */
|
|
1404
|
-
] }),
|
|
1400
|
+
`, rr = ({ type: e, children: r, className: t, icon: n, action: a }) => /* @__PURE__ */ L.jsxs(bt, { type: e, className: t, children: [
|
|
1401
|
+
n && /* @__PURE__ */ L.jsx("span", { children: n }),
|
|
1402
|
+
/* @__PURE__ */ L.jsx("span", { children: r }),
|
|
1403
|
+
a && /* @__PURE__ */ L.jsx("span", { children: a })
|
|
1404
|
+
] }), tr = fe.div`
|
|
1405
1405
|
width: ${({ width: e }) => e || "100%"};
|
|
1406
1406
|
height: ${({ height: e }) => e || "100%"};
|
|
1407
|
-
border-radius: 0px !important;
|
|
1408
|
-
box-shadow: none !important;
|
|
1407
|
+
border-radius: 0px !important;
|
|
1408
|
+
box-shadow: none !important;
|
|
1409
1409
|
border: none !important;
|
|
1410
1410
|
background: transparent !important;
|
|
1411
1411
|
position: relative;
|
|
1412
1412
|
z-index: 1002;
|
|
1413
1413
|
|
|
1414
|
-
|
|
1414
|
+
.vrt-video-placeholder {
|
|
1415
|
+
background-size: contain !important;
|
|
1416
|
+
background-repeat: no-repeat !important;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1415
1419
|
${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((r) => `.${r} { display: none !important; }`).join("")}
|
|
1416
|
-
`,
|
|
1420
|
+
`, xt = fe.div`
|
|
1417
1421
|
position: fixed;
|
|
1418
1422
|
top: 0;
|
|
1419
1423
|
left: 0;
|
|
@@ -1425,7 +1429,7 @@ const Pt = he.div`
|
|
|
1425
1429
|
align-items: center;
|
|
1426
1430
|
z-index: 1000;
|
|
1427
1431
|
pointer-events: auto;
|
|
1428
|
-
`,
|
|
1432
|
+
`, wt = fe.div`
|
|
1429
1433
|
position: relative;
|
|
1430
1434
|
height: 80vh;
|
|
1431
1435
|
width: auto;
|
|
@@ -1433,57 +1437,57 @@ const Pt = he.div`
|
|
|
1433
1437
|
max-width: 90vw;
|
|
1434
1438
|
max-height: 90vh;
|
|
1435
1439
|
z-index: 1001;
|
|
1436
|
-
`,
|
|
1440
|
+
`, ce = "https://host.vpplayer.tech", Pt = (e) => `${ce}/player/${e}/vpplayer.js`, Nt = (e) => `${ce}/player/${e}.js`, kt = (e, r) => `${ce}/player/${e}/${r}.js`, St = (e) => `${ce}/vertical-player/${e}.js`, Et = (e, r) => `${ce}/vertical-player/${e}/${r}.js`, Rt = (e, r) => `${ce}/player/${e}/${r}.json`, _t = (e, r) => `${ce}/vertical-player/${e}/${r}.json`, Tt = (e, r) => e ? `vp-player-${e}` : r ? `vp-player-default-${r}` : "vp-player-default", At = (e, r) => {
|
|
1437
1441
|
const t = new URL(e);
|
|
1438
1442
|
return t.searchParams.set("divId", r), t.toString();
|
|
1439
|
-
},
|
|
1440
|
-
const [t, n] =
|
|
1441
|
-
return
|
|
1442
|
-
let
|
|
1443
|
+
}, Se = /* @__PURE__ */ new Map(), Ct = (e, r) => {
|
|
1444
|
+
const [t, n] = Ae(!1), [a, s] = Ae(null);
|
|
1445
|
+
return Ne(() => {
|
|
1446
|
+
let f;
|
|
1443
1447
|
try {
|
|
1444
|
-
|
|
1445
|
-
} catch (
|
|
1446
|
-
const m =
|
|
1448
|
+
f = r || Pt(e || "latest");
|
|
1449
|
+
} catch (v) {
|
|
1450
|
+
const m = v instanceof Error ? v.message : String(v);
|
|
1447
1451
|
s(`Failed to resolve script URL: ${m}`);
|
|
1448
1452
|
return;
|
|
1449
1453
|
}
|
|
1450
|
-
if (!
|
|
1454
|
+
if (!Se.has(f))
|
|
1451
1455
|
if (document.querySelector(
|
|
1452
|
-
`script[src="${
|
|
1456
|
+
`script[src="${f}"]`
|
|
1453
1457
|
))
|
|
1454
|
-
|
|
1458
|
+
Se.set(f, Promise.resolve());
|
|
1455
1459
|
else {
|
|
1456
|
-
const m = new Promise((
|
|
1460
|
+
const m = new Promise((b, $) => {
|
|
1457
1461
|
const C = document.createElement("script");
|
|
1458
|
-
C.src =
|
|
1462
|
+
C.src = f, C.async = !0, C.onload = () => b(), C.onerror = () => $(new Error(`Failed to load script: ${f}`)), document.body.appendChild(C);
|
|
1459
1463
|
});
|
|
1460
|
-
|
|
1464
|
+
Se.set(f, m);
|
|
1461
1465
|
}
|
|
1462
1466
|
let d = !0;
|
|
1463
|
-
const
|
|
1464
|
-
return
|
|
1467
|
+
const P = Se.get(f);
|
|
1468
|
+
return P && P.then(() => {
|
|
1465
1469
|
d && (n(!0), s(null));
|
|
1466
|
-
}).catch((
|
|
1467
|
-
d && (n(!1), s(
|
|
1470
|
+
}).catch((v) => {
|
|
1471
|
+
d && (n(!1), s(v instanceof Error ? v.message : String(v)));
|
|
1468
1472
|
}), () => {
|
|
1469
1473
|
d = !1;
|
|
1470
1474
|
};
|
|
1471
1475
|
}, [e, r]), { isLoaded: t, error: a };
|
|
1472
1476
|
};
|
|
1473
|
-
function
|
|
1477
|
+
function Ee(e) {
|
|
1474
1478
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
1475
1479
|
}
|
|
1476
|
-
function
|
|
1477
|
-
if (!
|
|
1480
|
+
function mr(e, r) {
|
|
1481
|
+
if (!Ee(e) || !Ee(r))
|
|
1478
1482
|
return r;
|
|
1479
1483
|
const t = { ...e };
|
|
1480
1484
|
for (const n of Object.keys(r)) {
|
|
1481
1485
|
const a = r[n], s = t[n];
|
|
1482
|
-
|
|
1486
|
+
Ee(a) && Ee(s) ? t[n] = mr(s, a) : a !== void 0 && (t[n] = a);
|
|
1483
1487
|
}
|
|
1484
1488
|
return t;
|
|
1485
1489
|
}
|
|
1486
|
-
async function
|
|
1490
|
+
async function Ot(e, r, t) {
|
|
1487
1491
|
if (!e)
|
|
1488
1492
|
return console.warn(
|
|
1489
1493
|
"VP Player: No scriptId provided, cannot fetch config. Using user config directly."
|
|
@@ -1491,7 +1495,7 @@ async function Mt(e, r, t) {
|
|
|
1491
1495
|
r || console.warn(
|
|
1492
1496
|
"VP Player: No videoId provided, attempting to fetch config with scriptId only..."
|
|
1493
1497
|
);
|
|
1494
|
-
const n = t ?
|
|
1498
|
+
const n = t ? _t(e, r || "") : Rt(e, r || "");
|
|
1495
1499
|
try {
|
|
1496
1500
|
const a = await fetch(n);
|
|
1497
1501
|
return a.ok ? await a.json() : null;
|
|
@@ -1499,242 +1503,249 @@ async function Mt(e, r, t) {
|
|
|
1499
1503
|
return null;
|
|
1500
1504
|
}
|
|
1501
1505
|
}
|
|
1502
|
-
const
|
|
1506
|
+
const $t = ({
|
|
1503
1507
|
scriptId: e,
|
|
1504
1508
|
videoId: r,
|
|
1505
1509
|
scriptUrl: t,
|
|
1506
1510
|
projectId: n,
|
|
1507
1511
|
config: a,
|
|
1508
1512
|
playerId: s,
|
|
1509
|
-
isVertical:
|
|
1513
|
+
isVertical: f = !1,
|
|
1510
1514
|
isReels: d = !1,
|
|
1511
|
-
onReady:
|
|
1512
|
-
onPlay:
|
|
1515
|
+
onReady: P,
|
|
1516
|
+
onPlay: v,
|
|
1513
1517
|
onPause: m,
|
|
1514
|
-
onResume:
|
|
1515
|
-
onComplete:
|
|
1518
|
+
onResume: b,
|
|
1519
|
+
onComplete: $,
|
|
1516
1520
|
onError: C,
|
|
1517
1521
|
onVideoStarted: O,
|
|
1518
|
-
onTimeUpdate:
|
|
1519
|
-
onQuartile25:
|
|
1520
|
-
onQuartile50:
|
|
1522
|
+
onTimeUpdate: x,
|
|
1523
|
+
onQuartile25: w,
|
|
1524
|
+
onQuartile50: S,
|
|
1521
1525
|
onQuartile75: A,
|
|
1522
|
-
onNext:
|
|
1526
|
+
onNext: M,
|
|
1523
1527
|
onPrevious: V,
|
|
1524
|
-
onProgress10s:
|
|
1525
|
-
onProgress20s:
|
|
1528
|
+
onProgress10s: I,
|
|
1529
|
+
onProgress20s: j
|
|
1526
1530
|
}) => {
|
|
1527
|
-
const
|
|
1528
|
-
() =>
|
|
1531
|
+
const E = he(null), H = he(null), [Z, D] = Ae(null), X = vr().replace(/:/g, ""), U = Me(
|
|
1532
|
+
() => Tt(s || `auto-${X}`, r),
|
|
1529
1533
|
[s, X, r]
|
|
1530
|
-
), p =
|
|
1531
|
-
onReady:
|
|
1532
|
-
onPlay:
|
|
1534
|
+
), p = he({
|
|
1535
|
+
onReady: P,
|
|
1536
|
+
onPlay: v,
|
|
1533
1537
|
onPause: m,
|
|
1534
|
-
onResume:
|
|
1535
|
-
onComplete:
|
|
1538
|
+
onResume: b,
|
|
1539
|
+
onComplete: $,
|
|
1536
1540
|
onError: C,
|
|
1537
1541
|
onVideoStarted: O,
|
|
1538
|
-
onTimeUpdate:
|
|
1539
|
-
onQuartile25:
|
|
1540
|
-
onQuartile50:
|
|
1542
|
+
onTimeUpdate: x,
|
|
1543
|
+
onQuartile25: w,
|
|
1544
|
+
onQuartile50: S,
|
|
1541
1545
|
onQuartile75: A,
|
|
1542
|
-
onNext:
|
|
1546
|
+
onNext: M,
|
|
1543
1547
|
onPrevious: V,
|
|
1544
|
-
onProgress10s:
|
|
1545
|
-
onProgress20s:
|
|
1548
|
+
onProgress10s: I,
|
|
1549
|
+
onProgress20s: j
|
|
1546
1550
|
});
|
|
1547
|
-
|
|
1551
|
+
Ne(() => {
|
|
1548
1552
|
p.current = {
|
|
1549
|
-
onReady:
|
|
1550
|
-
onPlay:
|
|
1553
|
+
onReady: P,
|
|
1554
|
+
onPlay: v,
|
|
1551
1555
|
onPause: m,
|
|
1552
|
-
onResume:
|
|
1553
|
-
onComplete:
|
|
1556
|
+
onResume: b,
|
|
1557
|
+
onComplete: $,
|
|
1554
1558
|
onError: C,
|
|
1555
1559
|
onVideoStarted: O,
|
|
1556
|
-
onTimeUpdate:
|
|
1557
|
-
onQuartile25:
|
|
1558
|
-
onQuartile50:
|
|
1560
|
+
onTimeUpdate: x,
|
|
1561
|
+
onQuartile25: w,
|
|
1562
|
+
onQuartile50: S,
|
|
1559
1563
|
onQuartile75: A,
|
|
1560
|
-
onNext:
|
|
1564
|
+
onNext: M,
|
|
1561
1565
|
onPrevious: V,
|
|
1562
|
-
onProgress10s:
|
|
1563
|
-
onProgress20s:
|
|
1566
|
+
onProgress10s: I,
|
|
1567
|
+
onProgress20s: j
|
|
1564
1568
|
};
|
|
1565
1569
|
});
|
|
1566
|
-
const
|
|
1567
|
-
let
|
|
1570
|
+
const ae = he(!1), B = he(!1), K = !!a, W = Me(() => f || d ? !0 : t ? t.includes("vertical-player") || t.includes("vpverticalplayer") : !1, [f, d, t]), Q = Me(() => {
|
|
1571
|
+
let o;
|
|
1568
1572
|
if (t)
|
|
1569
|
-
|
|
1570
|
-
else if (e && r && !
|
|
1571
|
-
|
|
1573
|
+
o = t;
|
|
1574
|
+
else if (e && r && !K)
|
|
1575
|
+
o = W ? Et(e, r) : kt(e, r);
|
|
1572
1576
|
else if (e)
|
|
1573
|
-
|
|
1577
|
+
o = W ? St(e) : `https://host.vpplayer.tech/player/${e}.js`;
|
|
1574
1578
|
else
|
|
1575
1579
|
return null;
|
|
1576
|
-
return
|
|
1580
|
+
return At(o, U);
|
|
1577
1581
|
}, [
|
|
1578
1582
|
t,
|
|
1579
1583
|
e,
|
|
1580
1584
|
r,
|
|
1581
|
-
L,
|
|
1582
1585
|
W,
|
|
1583
|
-
|
|
1584
|
-
|
|
1586
|
+
U,
|
|
1587
|
+
K
|
|
1588
|
+
]), { isLoaded: ee, error: oe } = Ct(
|
|
1585
1589
|
null,
|
|
1586
|
-
|
|
1590
|
+
Q || void 0
|
|
1587
1591
|
);
|
|
1588
|
-
return
|
|
1589
|
-
if (!
|
|
1590
|
-
|
|
1592
|
+
return Ne(() => {
|
|
1593
|
+
if (!Q) {
|
|
1594
|
+
D(
|
|
1591
1595
|
"VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId + config) to initialize the player."
|
|
1592
1596
|
);
|
|
1593
1597
|
return;
|
|
1594
1598
|
}
|
|
1595
|
-
if (
|
|
1596
|
-
|
|
1599
|
+
if (oe) {
|
|
1600
|
+
D(oe);
|
|
1597
1601
|
return;
|
|
1598
1602
|
}
|
|
1599
|
-
if (!
|
|
1600
|
-
let
|
|
1603
|
+
if (!ee) return;
|
|
1604
|
+
let o = !0;
|
|
1601
1605
|
return (async () => {
|
|
1602
|
-
var
|
|
1606
|
+
var i;
|
|
1603
1607
|
try {
|
|
1604
|
-
const
|
|
1605
|
-
if (
|
|
1606
|
-
|
|
1607
|
-
`VP Player: Script loaded but global function not found. Expected ${
|
|
1608
|
+
const c = W ? window.vpVerticalPlayer : window.vpPlayer;
|
|
1609
|
+
if (!c) {
|
|
1610
|
+
D(
|
|
1611
|
+
`VP Player: Script loaded but global function not found. Expected ${W ? "vpVerticalPlayer" : "vpPlayer"}.`
|
|
1608
1612
|
);
|
|
1609
1613
|
return;
|
|
1610
1614
|
}
|
|
1611
|
-
if (await new Promise((
|
|
1615
|
+
if (await new Promise((h) => setTimeout(h, 0)), !document.getElementById(U)) {
|
|
1612
1616
|
console.error(
|
|
1613
|
-
`VP Player: Container element with ID '${
|
|
1617
|
+
`VP Player: Container element with ID '${U}' not found in DOM.`
|
|
1614
1618
|
);
|
|
1615
1619
|
return;
|
|
1616
1620
|
}
|
|
1617
|
-
const
|
|
1618
|
-
if (!
|
|
1619
|
-
|
|
1621
|
+
const R = c(U);
|
|
1622
|
+
if (!R) {
|
|
1623
|
+
D("VP Player: Failed to get player instance.");
|
|
1620
1624
|
return;
|
|
1621
1625
|
}
|
|
1622
|
-
if (
|
|
1623
|
-
if (H.current =
|
|
1624
|
-
let
|
|
1625
|
-
const
|
|
1626
|
+
if (o) {
|
|
1627
|
+
if (H.current = R, D(null), K && a) {
|
|
1628
|
+
let h;
|
|
1629
|
+
const u = await Ot(
|
|
1626
1630
|
e,
|
|
1627
1631
|
r,
|
|
1628
|
-
|
|
1632
|
+
W
|
|
1629
1633
|
);
|
|
1630
|
-
|
|
1634
|
+
u ? h = mr(u, a) : h = a, n && !h.projectId && (h.projectId = n);
|
|
1631
1635
|
try {
|
|
1632
|
-
|
|
1636
|
+
R.setup(h);
|
|
1633
1637
|
} catch (l) {
|
|
1634
|
-
const
|
|
1635
|
-
if (
|
|
1638
|
+
const y = l instanceof Error ? l.message : String(l);
|
|
1639
|
+
if (y.includes("already initialized")) {
|
|
1636
1640
|
console.warn(
|
|
1637
1641
|
"VP Player: Player already initialized, attempting to destroy and retry."
|
|
1638
1642
|
);
|
|
1639
1643
|
try {
|
|
1640
|
-
if ((
|
|
1641
|
-
const
|
|
1642
|
-
|
|
1644
|
+
if ((i = R.destroy) == null || i.call(R), await new Promise((k) => setTimeout(k, 50)), o && document.getElementById(U)) {
|
|
1645
|
+
const k = c(U);
|
|
1646
|
+
k && (k.setup(h), H.current = k);
|
|
1643
1647
|
}
|
|
1644
|
-
} catch (
|
|
1648
|
+
} catch (k) {
|
|
1645
1649
|
console.error(
|
|
1646
1650
|
"VP Player: Failed to recover from initialization error",
|
|
1647
|
-
|
|
1651
|
+
k
|
|
1648
1652
|
);
|
|
1649
1653
|
}
|
|
1650
1654
|
} else {
|
|
1651
|
-
console.error("VP Player: Setup error", l),
|
|
1655
|
+
console.error("VP Player: Setup error", l), D(`Player setup failed: ${y}`);
|
|
1652
1656
|
return;
|
|
1653
1657
|
}
|
|
1654
1658
|
}
|
|
1655
1659
|
}
|
|
1656
|
-
if (
|
|
1657
|
-
const
|
|
1658
|
-
|
|
1659
|
-
var
|
|
1660
|
-
const l =
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
(
|
|
1678
|
-
}),
|
|
1679
|
-
var
|
|
1680
|
-
const l =
|
|
1681
|
-
(
|
|
1682
|
-
}),
|
|
1683
|
-
var
|
|
1684
|
-
const l =
|
|
1685
|
-
(
|
|
1686
|
-
}),
|
|
1687
|
-
var l,
|
|
1688
|
-
(
|
|
1689
|
-
}),
|
|
1690
|
-
var l,
|
|
1691
|
-
const
|
|
1692
|
-
(
|
|
1693
|
-
}),
|
|
1694
|
-
var
|
|
1660
|
+
if (R.on) {
|
|
1661
|
+
const h = R.on.bind(R);
|
|
1662
|
+
h("vp-event", (u) => {
|
|
1663
|
+
var k, J, se, pe, We;
|
|
1664
|
+
const l = u, y = l == null ? void 0 : l.eventName;
|
|
1665
|
+
W && (y === "vp-state-paused" && ((((k = R.isEnded) == null ? void 0 : k.call(R)) ?? !1) || (B.current = !0, (se = (J = p.current).onPause) == null || se.call(J))), y === "vp-state-playing" && (B.current && ((We = (pe = p.current).onResume) == null || We.call(pe)), B.current = !1), y === "vp-video-switch" && (B.current = !1), y === "vp-video-completed" && (B.current = !1));
|
|
1666
|
+
}), h("analytics-25%-completed", () => {
|
|
1667
|
+
var u, l;
|
|
1668
|
+
(l = (u = p.current).onQuartile25) == null || l.call(u);
|
|
1669
|
+
}), h("analytics-50%-completed", () => {
|
|
1670
|
+
var u, l;
|
|
1671
|
+
(l = (u = p.current).onQuartile50) == null || l.call(u);
|
|
1672
|
+
}), h("analytics-75%-completed", () => {
|
|
1673
|
+
var u, l;
|
|
1674
|
+
(l = (u = p.current).onQuartile75) == null || l.call(u);
|
|
1675
|
+
}), W || h("pause", () => {
|
|
1676
|
+
var u, l;
|
|
1677
|
+
(l = (u = p.current).onPause) == null || l.call(u);
|
|
1678
|
+
}), h("error", (u) => {
|
|
1679
|
+
var y, k;
|
|
1680
|
+
const l = typeof u == "string" ? u : (u == null ? void 0 : u.message) || "Unknown error";
|
|
1681
|
+
(k = (y = p.current).onError) == null || k.call(y, l);
|
|
1682
|
+
}), W ? (h("play", () => {
|
|
1683
|
+
var y, k;
|
|
1684
|
+
const l = R.videoObject;
|
|
1685
|
+
(k = (y = p.current).onPlay) == null || k.call(y, l);
|
|
1686
|
+
}), h("vp-first-frame", () => {
|
|
1687
|
+
var y, k;
|
|
1688
|
+
const l = R.videoObject;
|
|
1689
|
+
(k = (y = p.current).onReady) == null || k.call(y, l);
|
|
1690
|
+
}), h("vp-video-started", (u) => {
|
|
1691
|
+
var l, y;
|
|
1692
|
+
(y = (l = p.current).onVideoStarted) == null || y.call(l, u);
|
|
1693
|
+
}), h("vp-twenty-view", () => {
|
|
1694
|
+
var l, y, k;
|
|
1695
|
+
const u = ((l = R.getPosition) == null ? void 0 : l.call(R)) ?? 20;
|
|
1696
|
+
(k = (y = p.current).onProgress20s) == null || k.call(y, Math.floor(u));
|
|
1697
|
+
}), h("vp-video-state", () => {
|
|
1698
|
+
var l, y, k;
|
|
1699
|
+
const u = ((l = R.getPosition) == null ? void 0 : l.call(R)) ?? 0;
|
|
1700
|
+
(k = (y = p.current).onProgress10s) == null || k.call(y, Math.floor(u));
|
|
1701
|
+
}), h("vp-time", (u) => {
|
|
1702
|
+
var y, k, J;
|
|
1695
1703
|
let l = 0;
|
|
1696
|
-
typeof
|
|
1697
|
-
}),
|
|
1704
|
+
typeof u == "number" ? l = u : u && typeof u == "object" && "position" in u ? l = u.position : l = ((y = R.getPosition) == null ? void 0 : y.call(R)) ?? 0, (J = (k = p.current).onTimeUpdate) == null || J.call(k, l);
|
|
1705
|
+
}), h("vp-video-switch", () => {
|
|
1698
1706
|
queueMicrotask(() => {
|
|
1699
|
-
var
|
|
1700
|
-
const l =
|
|
1701
|
-
l === "next" ? (
|
|
1707
|
+
var y, k, J, se;
|
|
1708
|
+
const l = R._switchDirection;
|
|
1709
|
+
l === "next" ? (k = (y = p.current).onNext) == null || k.call(y) : l === "previous" && ((se = (J = p.current).onPrevious) == null || se.call(J));
|
|
1702
1710
|
});
|
|
1703
|
-
})
|
|
1704
|
-
var
|
|
1705
|
-
(l = (
|
|
1706
|
-
})
|
|
1707
|
-
var
|
|
1708
|
-
(l = (
|
|
1709
|
-
}),
|
|
1710
|
-
var
|
|
1711
|
-
(l = (
|
|
1712
|
-
}),
|
|
1713
|
-
var
|
|
1714
|
-
(
|
|
1715
|
-
}),
|
|
1716
|
-
var l,
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1711
|
+
}), h("vp-video-completed", () => {
|
|
1712
|
+
var u, l;
|
|
1713
|
+
(l = (u = p.current).onComplete) == null || l.call(u);
|
|
1714
|
+
})) : (h("ready", () => {
|
|
1715
|
+
var u, l;
|
|
1716
|
+
(l = (u = p.current).onReady) == null || l.call(u);
|
|
1717
|
+
}), h("play", () => {
|
|
1718
|
+
var u, l;
|
|
1719
|
+
(l = (u = p.current).onPlay) == null || l.call(u);
|
|
1720
|
+
}), h("complete", () => {
|
|
1721
|
+
var u, l;
|
|
1722
|
+
(l = (u = p.current).onComplete) == null || l.call(u), ae.current = !1;
|
|
1723
|
+
}), h("video-started", (u) => {
|
|
1724
|
+
var l, y;
|
|
1725
|
+
(y = (l = p.current).onVideoStarted) == null || y.call(l, u);
|
|
1726
|
+
}), h("video-state", () => {
|
|
1727
|
+
var l, y, k;
|
|
1728
|
+
const u = ((l = R.getPosition) == null ? void 0 : l.call(R)) ?? 0;
|
|
1729
|
+
(k = (y = p.current).onProgress10s) == null || k.call(y, Math.floor(u));
|
|
1730
|
+
}), h("time", (u) => {
|
|
1731
|
+
var y, k, J, se, pe;
|
|
1721
1732
|
let l = 0;
|
|
1722
|
-
typeof
|
|
1723
|
-
}),
|
|
1724
|
-
var
|
|
1725
|
-
(l = (
|
|
1733
|
+
typeof u == "number" ? l = u : u && typeof u == "object" && "position" in u ? l = u.position : l = ((y = R.getPosition) == null ? void 0 : y.call(R)) ?? 0, (J = (k = p.current).onTimeUpdate) == null || J.call(k, l), !ae.current && l >= 20 && (ae.current = !0, (pe = (se = p.current).onProgress20s) == null || pe.call(se, Math.floor(l)));
|
|
1734
|
+
}), h("playlistItem", () => {
|
|
1735
|
+
var u, l;
|
|
1736
|
+
(l = (u = p.current).onNext) == null || l.call(u), ae.current = !1;
|
|
1726
1737
|
}));
|
|
1727
1738
|
}
|
|
1728
1739
|
}
|
|
1729
|
-
} catch (
|
|
1730
|
-
if (
|
|
1731
|
-
const
|
|
1732
|
-
|
|
1740
|
+
} catch (c) {
|
|
1741
|
+
if (o) {
|
|
1742
|
+
const N = c instanceof Error ? c.message : String(c);
|
|
1743
|
+
D(N), console.error("VP Player initialization error:", c);
|
|
1733
1744
|
}
|
|
1734
1745
|
}
|
|
1735
1746
|
})(), () => {
|
|
1736
|
-
var
|
|
1737
|
-
if (
|
|
1747
|
+
var i;
|
|
1748
|
+
if (o = !1, (i = H.current) != null && i.destroy) {
|
|
1738
1749
|
try {
|
|
1739
1750
|
H.current.destroy();
|
|
1740
1751
|
} catch {
|
|
@@ -1743,25 +1754,25 @@ const Ft = ({
|
|
|
1743
1754
|
}
|
|
1744
1755
|
};
|
|
1745
1756
|
}, [
|
|
1757
|
+
ee,
|
|
1758
|
+
U,
|
|
1746
1759
|
oe,
|
|
1760
|
+
Q,
|
|
1747
1761
|
W,
|
|
1748
|
-
|
|
1749
|
-
ie,
|
|
1750
|
-
L,
|
|
1751
|
-
re,
|
|
1762
|
+
K,
|
|
1752
1763
|
a,
|
|
1753
1764
|
e,
|
|
1754
1765
|
r,
|
|
1755
1766
|
n
|
|
1756
1767
|
]), {
|
|
1757
|
-
playerRef:
|
|
1768
|
+
playerRef: E,
|
|
1758
1769
|
playerInstanceRef: H,
|
|
1759
|
-
isScriptLoaded:
|
|
1760
|
-
isLoading: !
|
|
1761
|
-
error:
|
|
1762
|
-
generatedPlayerId:
|
|
1770
|
+
isScriptLoaded: ee,
|
|
1771
|
+
isLoading: !ee && !Z,
|
|
1772
|
+
error: Z,
|
|
1773
|
+
generatedPlayerId: U
|
|
1763
1774
|
};
|
|
1764
|
-
},
|
|
1775
|
+
}, jt = nr(
|
|
1765
1776
|
({
|
|
1766
1777
|
scriptId: e,
|
|
1767
1778
|
videoId: r,
|
|
@@ -1769,61 +1780,61 @@ const Ft = ({
|
|
|
1769
1780
|
projectId: n,
|
|
1770
1781
|
config: a,
|
|
1771
1782
|
playerId: s,
|
|
1772
|
-
isVertical:
|
|
1783
|
+
isVertical: f = !1,
|
|
1773
1784
|
isReels: d = !1,
|
|
1774
|
-
thumbnailUrl:
|
|
1775
|
-
onClose:
|
|
1785
|
+
thumbnailUrl: P,
|
|
1786
|
+
onClose: v,
|
|
1776
1787
|
className: m,
|
|
1777
|
-
hiddenClasses:
|
|
1778
|
-
onReady:
|
|
1788
|
+
hiddenClasses: b = [],
|
|
1789
|
+
onReady: $,
|
|
1779
1790
|
onPlay: C,
|
|
1780
1791
|
onPause: O,
|
|
1781
|
-
onResume:
|
|
1782
|
-
onComplete:
|
|
1783
|
-
onError:
|
|
1792
|
+
onResume: x,
|
|
1793
|
+
onComplete: w,
|
|
1794
|
+
onError: S,
|
|
1784
1795
|
onVideoStarted: A,
|
|
1785
|
-
onTimeUpdate:
|
|
1796
|
+
onTimeUpdate: M,
|
|
1786
1797
|
onQuartile25: V,
|
|
1787
|
-
onQuartile50:
|
|
1788
|
-
onQuartile75:
|
|
1789
|
-
onNext:
|
|
1798
|
+
onQuartile50: I,
|
|
1799
|
+
onQuartile75: j,
|
|
1800
|
+
onNext: E,
|
|
1790
1801
|
onPrevious: H,
|
|
1791
|
-
onProgress10s:
|
|
1792
|
-
onProgress20s:
|
|
1802
|
+
onProgress10s: Z,
|
|
1803
|
+
onProgress20s: D
|
|
1793
1804
|
}, X) => {
|
|
1794
1805
|
const {
|
|
1795
|
-
playerRef:
|
|
1806
|
+
playerRef: U,
|
|
1796
1807
|
playerInstanceRef: p,
|
|
1797
|
-
isScriptLoaded:
|
|
1798
|
-
isLoading:
|
|
1799
|
-
error:
|
|
1800
|
-
generatedPlayerId:
|
|
1801
|
-
} =
|
|
1808
|
+
isScriptLoaded: ae,
|
|
1809
|
+
isLoading: B,
|
|
1810
|
+
error: K,
|
|
1811
|
+
generatedPlayerId: W
|
|
1812
|
+
} = $t({
|
|
1802
1813
|
scriptId: e,
|
|
1803
1814
|
videoId: r,
|
|
1804
1815
|
scriptUrl: t,
|
|
1805
1816
|
projectId: n,
|
|
1806
1817
|
config: a,
|
|
1807
1818
|
playerId: s,
|
|
1808
|
-
isVertical:
|
|
1819
|
+
isVertical: f,
|
|
1809
1820
|
isReels: d,
|
|
1810
|
-
onReady:
|
|
1821
|
+
onReady: $,
|
|
1811
1822
|
onPlay: C,
|
|
1812
1823
|
onPause: O,
|
|
1813
|
-
onResume:
|
|
1814
|
-
onComplete:
|
|
1815
|
-
onError:
|
|
1824
|
+
onResume: x,
|
|
1825
|
+
onComplete: w,
|
|
1826
|
+
onError: S,
|
|
1816
1827
|
onVideoStarted: A,
|
|
1817
|
-
onTimeUpdate:
|
|
1828
|
+
onTimeUpdate: M,
|
|
1818
1829
|
onQuartile25: V,
|
|
1819
|
-
onQuartile50:
|
|
1820
|
-
onQuartile75:
|
|
1821
|
-
onNext:
|
|
1830
|
+
onQuartile50: I,
|
|
1831
|
+
onQuartile75: j,
|
|
1832
|
+
onNext: E,
|
|
1822
1833
|
onPrevious: H,
|
|
1823
|
-
onProgress10s:
|
|
1824
|
-
onProgress20s:
|
|
1834
|
+
onProgress10s: Z,
|
|
1835
|
+
onProgress20s: D
|
|
1825
1836
|
});
|
|
1826
|
-
|
|
1837
|
+
br(
|
|
1827
1838
|
X,
|
|
1828
1839
|
() => ({
|
|
1829
1840
|
play: () => {
|
|
@@ -1835,8 +1846,8 @@ const Ft = ({
|
|
|
1835
1846
|
return (c = (i = p.current) == null ? void 0 : i.pause) == null ? void 0 : c.call(i);
|
|
1836
1847
|
},
|
|
1837
1848
|
seek: (i) => {
|
|
1838
|
-
var c,
|
|
1839
|
-
return (
|
|
1849
|
+
var c, N;
|
|
1850
|
+
return (N = (c = p.current) == null ? void 0 : c.seek) == null ? void 0 : N.call(c, i);
|
|
1840
1851
|
},
|
|
1841
1852
|
forward: () => {
|
|
1842
1853
|
var i, c;
|
|
@@ -1867,12 +1878,12 @@ const Ft = ({
|
|
|
1867
1878
|
return (c = (i = p.current) == null ? void 0 : i.toggleMute) == null ? void 0 : c.call(i);
|
|
1868
1879
|
},
|
|
1869
1880
|
enterFullScreen: () => {
|
|
1870
|
-
var i, c,
|
|
1871
|
-
return (
|
|
1881
|
+
var i, c, N;
|
|
1882
|
+
return (N = ((i = p.current) == null ? void 0 : i.enterFullScreen) ?? ((c = p.current) == null ? void 0 : c.enterFullscreen)) == null ? void 0 : N();
|
|
1872
1883
|
},
|
|
1873
1884
|
exitFullScreen: () => {
|
|
1874
|
-
var i, c,
|
|
1875
|
-
return (
|
|
1885
|
+
var i, c, N;
|
|
1886
|
+
return (N = ((i = p.current) == null ? void 0 : i.exitFullScreen) ?? ((c = p.current) == null ? void 0 : c.exitFullscreen)) == null ? void 0 : N();
|
|
1876
1887
|
},
|
|
1877
1888
|
getPosition: () => {
|
|
1878
1889
|
var i, c;
|
|
@@ -1887,8 +1898,8 @@ const Ft = ({
|
|
|
1887
1898
|
return ((c = (i = p.current) == null ? void 0 : i.getVolume) == null ? void 0 : c.call(i)) ?? null;
|
|
1888
1899
|
},
|
|
1889
1900
|
setVolume: (i) => {
|
|
1890
|
-
var c,
|
|
1891
|
-
return (
|
|
1901
|
+
var c, N;
|
|
1902
|
+
return (N = (c = p.current) == null ? void 0 : c.setVolume) == null ? void 0 : N.call(c, i);
|
|
1892
1903
|
},
|
|
1893
1904
|
isMuted: () => {
|
|
1894
1905
|
var i, c;
|
|
@@ -1910,16 +1921,16 @@ const Ft = ({
|
|
|
1910
1921
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1911
1922
|
[]
|
|
1912
1923
|
);
|
|
1913
|
-
const [
|
|
1924
|
+
const [Q, ee] = Ae(!0), oe = () => d && ee(!0), o = () => {
|
|
1914
1925
|
var i, c;
|
|
1915
|
-
!d || !
|
|
1926
|
+
!d || !Q || (ee(!1), (c = (i = p.current) == null ? void 0 : i.pause) == null || c.call(i), v == null || v());
|
|
1916
1927
|
};
|
|
1917
|
-
if (
|
|
1918
|
-
return /* @__PURE__ */
|
|
1928
|
+
if (K)
|
|
1929
|
+
return /* @__PURE__ */ L.jsxs(rr, { type: "error", children: [
|
|
1919
1930
|
"An error occurred: ",
|
|
1920
|
-
|
|
1931
|
+
K
|
|
1921
1932
|
] });
|
|
1922
|
-
const
|
|
1933
|
+
const g = () => /* @__PURE__ */ L.jsx(
|
|
1923
1934
|
"div",
|
|
1924
1935
|
{
|
|
1925
1936
|
style: {
|
|
@@ -1934,11 +1945,11 @@ const Ft = ({
|
|
|
1934
1945
|
background: "rgba(0,0,0,0.8)",
|
|
1935
1946
|
zIndex: 10
|
|
1936
1947
|
},
|
|
1937
|
-
children: /* @__PURE__ */
|
|
1948
|
+
children: /* @__PURE__ */ L.jsx(rr, { type: "loading", children: "Loading..." })
|
|
1938
1949
|
}
|
|
1939
1950
|
);
|
|
1940
|
-
return d ? /* @__PURE__ */
|
|
1941
|
-
!
|
|
1951
|
+
return d ? /* @__PURE__ */ L.jsxs(L.Fragment, { children: [
|
|
1952
|
+
!Q && /* @__PURE__ */ L.jsx(
|
|
1942
1953
|
"div",
|
|
1943
1954
|
{
|
|
1944
1955
|
onClick: oe,
|
|
@@ -1946,18 +1957,18 @@ const Ft = ({
|
|
|
1946
1957
|
cursor: "pointer",
|
|
1947
1958
|
width: "100%",
|
|
1948
1959
|
height: "100%",
|
|
1949
|
-
backgroundImage:
|
|
1960
|
+
backgroundImage: P ? `url(${P})` : void 0,
|
|
1950
1961
|
backgroundSize: "cover",
|
|
1951
1962
|
backgroundPosition: "center"
|
|
1952
1963
|
}
|
|
1953
1964
|
}
|
|
1954
1965
|
),
|
|
1955
|
-
|
|
1956
|
-
|
|
1966
|
+
Q && /* @__PURE__ */ L.jsx(xt, { onClick: o, className: m, children: /* @__PURE__ */ L.jsx(
|
|
1967
|
+
wt,
|
|
1957
1968
|
{
|
|
1958
1969
|
className: m,
|
|
1959
1970
|
onClick: (i) => i.stopPropagation(),
|
|
1960
|
-
children: /* @__PURE__ */
|
|
1971
|
+
children: /* @__PURE__ */ L.jsxs(
|
|
1961
1972
|
"div",
|
|
1962
1973
|
{
|
|
1963
1974
|
style: {
|
|
@@ -1966,52 +1977,52 @@ const Ft = ({
|
|
|
1966
1977
|
height: "100%"
|
|
1967
1978
|
},
|
|
1968
1979
|
children: [
|
|
1969
|
-
/* @__PURE__ */
|
|
1970
|
-
|
|
1980
|
+
/* @__PURE__ */ L.jsx(
|
|
1981
|
+
tr,
|
|
1971
1982
|
{
|
|
1972
|
-
id:
|
|
1973
|
-
ref:
|
|
1983
|
+
id: W,
|
|
1984
|
+
ref: U,
|
|
1974
1985
|
width: "100%",
|
|
1975
1986
|
height: "100%",
|
|
1976
|
-
$hiddenClasses:
|
|
1987
|
+
$hiddenClasses: b,
|
|
1977
1988
|
className: m
|
|
1978
1989
|
}
|
|
1979
1990
|
),
|
|
1980
|
-
(
|
|
1991
|
+
(B || !ae) && /* @__PURE__ */ L.jsx(g, {})
|
|
1981
1992
|
]
|
|
1982
1993
|
}
|
|
1983
1994
|
)
|
|
1984
1995
|
}
|
|
1985
1996
|
) })
|
|
1986
|
-
] }) : /* @__PURE__ */
|
|
1987
|
-
/* @__PURE__ */
|
|
1988
|
-
|
|
1997
|
+
] }) : /* @__PURE__ */ L.jsxs("div", { style: { position: "relative", width: "100%", height: "100%" }, children: [
|
|
1998
|
+
/* @__PURE__ */ L.jsx(
|
|
1999
|
+
tr,
|
|
1989
2000
|
{
|
|
1990
|
-
id:
|
|
1991
|
-
ref:
|
|
2001
|
+
id: W,
|
|
2002
|
+
ref: U,
|
|
1992
2003
|
width: "100%",
|
|
1993
2004
|
height: "100%",
|
|
1994
|
-
$hiddenClasses:
|
|
2005
|
+
$hiddenClasses: b,
|
|
1995
2006
|
className: m
|
|
1996
2007
|
}
|
|
1997
2008
|
),
|
|
1998
|
-
(
|
|
2009
|
+
(B || !ae) && /* @__PURE__ */ L.jsx(g, {})
|
|
1999
2010
|
] });
|
|
2000
2011
|
}
|
|
2001
2012
|
);
|
|
2002
|
-
|
|
2013
|
+
jt.displayName = "VPPlayer";
|
|
2003
2014
|
export {
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2015
|
+
xt as Overlay,
|
|
2016
|
+
tr as PlayerContainer,
|
|
2017
|
+
wt as PlayerWrapper,
|
|
2018
|
+
jt as VPPlayer,
|
|
2019
|
+
ce as VP_PLAYER_BASE_URL,
|
|
2020
|
+
At as appendDivIdToUrl,
|
|
2021
|
+
Tt as generatePlayerId,
|
|
2022
|
+
kt as getFullyManagedPlayerScriptUrl,
|
|
2023
|
+
Nt as getManagedPlayerScriptUrl,
|
|
2024
|
+
Pt as getPlayerScriptUrl,
|
|
2025
|
+
St as getVerticalPlayerScriptUrl,
|
|
2026
|
+
$t as useVPPlayerLogic,
|
|
2027
|
+
Ct as useVPPlayerScript
|
|
2017
2028
|
};
|