@devix-technologies/react-gjirafa-vp-player 1.0.17 → 1.0.19
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.
- package/README.md +271 -0
- package/dist/react-gjirafa-vp-player.es.js +854 -729
- package/dist/react-gjirafa-vp-player.umd.js +8 -8
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import * as oe from "react";
|
|
2
|
+
import bt, { forwardRef as xt, useContext as it, useState as te, useEffect as be, useRef as ue, useMemo as ot, createContext as wt, useCallback as Ye } 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 me = { exports: {} }, se = {};
|
|
|
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 qe;
|
|
14
|
+
function kt() {
|
|
15
|
+
if (qe) return me;
|
|
16
|
+
qe = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
18
18
|
function r(n, a, i) {
|
|
19
|
-
var
|
|
20
|
-
if (i !== void 0 && (
|
|
19
|
+
var o = null;
|
|
20
|
+
if (i !== void 0 && (o = "" + i), a.key !== void 0 && (o = "" + a.key), "key" in a) {
|
|
21
21
|
i = {};
|
|
22
22
|
for (var c in a)
|
|
23
23
|
c !== "key" && (i[c] = a[c]);
|
|
@@ -25,14 +25,14 @@ function bt() {
|
|
|
25
25
|
return a = i.ref, {
|
|
26
26
|
$$typeof: e,
|
|
27
27
|
type: n,
|
|
28
|
-
key:
|
|
28
|
+
key: o,
|
|
29
29
|
ref: a !== void 0 ? a : null,
|
|
30
30
|
props: i
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return me.Fragment = t, me.jsx = r, me.jsxs = r, me;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var ye = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -42,265 +42,265 @@ var ce = {};
|
|
|
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
|
|
48
|
-
function e(
|
|
49
|
-
if (
|
|
50
|
-
if (typeof
|
|
51
|
-
return
|
|
52
|
-
if (typeof
|
|
53
|
-
switch (
|
|
54
|
-
case
|
|
45
|
+
var Ge;
|
|
46
|
+
function Et() {
|
|
47
|
+
return Ge || (Ge = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
function e(s) {
|
|
49
|
+
if (s == null) return null;
|
|
50
|
+
if (typeof s == "function")
|
|
51
|
+
return s.$$typeof === B ? null : s.displayName || s.name || null;
|
|
52
|
+
if (typeof s == "string") return s;
|
|
53
|
+
switch (s) {
|
|
54
|
+
case d:
|
|
55
55
|
return "Fragment";
|
|
56
56
|
case y:
|
|
57
57
|
return "Profiler";
|
|
58
|
-
case
|
|
58
|
+
case m:
|
|
59
59
|
return "StrictMode";
|
|
60
|
-
case
|
|
60
|
+
case L:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case _:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case j:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
|
-
if (typeof
|
|
68
|
-
switch (typeof
|
|
67
|
+
if (typeof s == "object")
|
|
68
|
+
switch (typeof s.tag == "number" && console.error(
|
|
69
69
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
|
-
),
|
|
71
|
-
case
|
|
70
|
+
), s.$$typeof) {
|
|
71
|
+
case v:
|
|
72
72
|
return "Portal";
|
|
73
|
-
case _:
|
|
74
|
-
return (o.displayName || "Context") + ".Provider";
|
|
75
|
-
case w:
|
|
76
|
-
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
73
|
case A:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
74
|
+
return (s.displayName || "Context") + ".Provider";
|
|
75
|
+
case P:
|
|
76
|
+
return (s._context.displayName || "Context") + ".Consumer";
|
|
77
|
+
case S:
|
|
78
|
+
var b = s.render;
|
|
79
|
+
return s = s.displayName, s || (s = b.displayName || b.name || "", s = s !== "" ? "ForwardRef(" + s + ")" : "ForwardRef"), s;
|
|
80
|
+
case p:
|
|
81
|
+
return b = s.displayName || null, b !== null ? b : e(s.type) || "Memo";
|
|
82
|
+
case F:
|
|
83
|
+
b = s._payload, s = s._init;
|
|
84
84
|
try {
|
|
85
|
-
return e(
|
|
85
|
+
return e(s(b));
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
return null;
|
|
90
90
|
}
|
|
91
|
-
function t(
|
|
92
|
-
return "" +
|
|
91
|
+
function t(s) {
|
|
92
|
+
return "" + s;
|
|
93
93
|
}
|
|
94
|
-
function r(
|
|
94
|
+
function r(s) {
|
|
95
95
|
try {
|
|
96
|
-
t(
|
|
97
|
-
var
|
|
96
|
+
t(s);
|
|
97
|
+
var b = !1;
|
|
98
98
|
} catch {
|
|
99
|
-
|
|
99
|
+
b = !0;
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
var
|
|
104
|
-
return
|
|
105
|
-
|
|
101
|
+
if (b) {
|
|
102
|
+
b = console;
|
|
103
|
+
var C = b.error, w = typeof Symbol == "function" && Symbol.toStringTag && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
|
104
|
+
return C.call(
|
|
105
|
+
b,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
-
|
|
108
|
-
), t(
|
|
107
|
+
w
|
|
108
|
+
), t(s);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function n(
|
|
112
|
-
if (
|
|
113
|
-
if (typeof
|
|
111
|
+
function n(s) {
|
|
112
|
+
if (s === d) return "<>";
|
|
113
|
+
if (typeof s == "object" && s !== null && s.$$typeof === F)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
|
-
var
|
|
117
|
-
return
|
|
116
|
+
var b = e(s);
|
|
117
|
+
return b ? "<" + b + ">" : "<...>";
|
|
118
118
|
} catch {
|
|
119
119
|
return "<...>";
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
function a() {
|
|
123
|
-
var
|
|
124
|
-
return
|
|
123
|
+
var s = $.A;
|
|
124
|
+
return s === null ? null : s.getOwner();
|
|
125
125
|
}
|
|
126
126
|
function i() {
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
|
-
function s
|
|
130
|
-
if (
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
129
|
+
function o(s) {
|
|
130
|
+
if (X.call(s, "key")) {
|
|
131
|
+
var b = Object.getOwnPropertyDescriptor(s, "key").get;
|
|
132
|
+
if (b && b.isReactWarning) return !1;
|
|
133
133
|
}
|
|
134
|
-
return
|
|
134
|
+
return s.key !== void 0;
|
|
135
135
|
}
|
|
136
|
-
function c(
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
function c(s, b) {
|
|
137
|
+
function C() {
|
|
138
|
+
G || (G = !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
|
+
b
|
|
141
141
|
));
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
get:
|
|
143
|
+
C.isReactWarning = !0, Object.defineProperty(s, "key", {
|
|
144
|
+
get: C,
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
function u() {
|
|
149
|
-
var
|
|
150
|
-
return
|
|
149
|
+
var s = e(this.type);
|
|
150
|
+
return D[s] || (D[s] = !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
|
+
)), s = this.props.ref, s !== void 0 ? s : null;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
156
|
-
$$typeof:
|
|
157
|
-
type:
|
|
158
|
-
key:
|
|
159
|
-
props:
|
|
160
|
-
_owner:
|
|
161
|
-
}, (
|
|
154
|
+
function h(s, b, C, w, V, U, E, O) {
|
|
155
|
+
return C = U.ref, s = {
|
|
156
|
+
$$typeof: k,
|
|
157
|
+
type: s,
|
|
158
|
+
key: b,
|
|
159
|
+
props: U,
|
|
160
|
+
_owner: V
|
|
161
|
+
}, (C !== void 0 ? C : null) !== null ? Object.defineProperty(s, "ref", {
|
|
162
162
|
enumerable: !1,
|
|
163
163
|
get: u
|
|
164
|
-
}) : Object.defineProperty(
|
|
164
|
+
}) : Object.defineProperty(s, "ref", { enumerable: !1, value: null }), s._store = {}, Object.defineProperty(s._store, "validated", {
|
|
165
165
|
configurable: !1,
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
writable: !0,
|
|
168
168
|
value: 0
|
|
169
|
-
}), Object.defineProperty(
|
|
169
|
+
}), Object.defineProperty(s, "_debugInfo", {
|
|
170
170
|
configurable: !1,
|
|
171
171
|
enumerable: !1,
|
|
172
172
|
writable: !0,
|
|
173
173
|
value: null
|
|
174
|
-
}), Object.defineProperty(
|
|
174
|
+
}), Object.defineProperty(s, "_debugStack", {
|
|
175
175
|
configurable: !1,
|
|
176
176
|
enumerable: !1,
|
|
177
177
|
writable: !0,
|
|
178
|
-
value:
|
|
179
|
-
}), Object.defineProperty(
|
|
178
|
+
value: E
|
|
179
|
+
}), Object.defineProperty(s, "_debugTask", {
|
|
180
180
|
configurable: !1,
|
|
181
181
|
enumerable: !1,
|
|
182
182
|
writable: !0,
|
|
183
|
-
value:
|
|
184
|
-
}), Object.freeze && (Object.freeze(
|
|
183
|
+
value: O
|
|
184
|
+
}), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
|
|
185
185
|
}
|
|
186
|
-
function l(
|
|
187
|
-
var
|
|
188
|
-
if (
|
|
189
|
-
if (
|
|
190
|
-
if (
|
|
191
|
-
for (
|
|
192
|
-
|
|
193
|
-
Object.freeze && Object.freeze(
|
|
186
|
+
function l(s, b, C, w, V, U, E, O) {
|
|
187
|
+
var g = b.children;
|
|
188
|
+
if (g !== void 0)
|
|
189
|
+
if (w)
|
|
190
|
+
if (N(g)) {
|
|
191
|
+
for (w = 0; w < g.length; w++)
|
|
192
|
+
f(g[w]);
|
|
193
|
+
Object.freeze && Object.freeze(g);
|
|
194
194
|
} else
|
|
195
195
|
console.error(
|
|
196
196
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
197
|
);
|
|
198
|
-
else
|
|
199
|
-
if (
|
|
200
|
-
|
|
201
|
-
var
|
|
202
|
-
return
|
|
198
|
+
else f(g);
|
|
199
|
+
if (X.call(b, "key")) {
|
|
200
|
+
g = e(s);
|
|
201
|
+
var I = Object.keys(b).filter(function(ce) {
|
|
202
|
+
return ce !== "key";
|
|
203
203
|
});
|
|
204
|
-
|
|
204
|
+
w = 0 < I.length ? "{key: someKey, " + I.join(": ..., ") + ": ...}" : "{key: someKey}", se[g + w] || (I = 0 < I.length ? "{" + I.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
205
|
`A props object containing a "key" prop is being spread into JSX:
|
|
206
206
|
let props = %s;
|
|
207
207
|
<%s {...props} />
|
|
208
208
|
React keys must be passed directly to JSX without using spread:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s key={someKey} {...props} />`,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
),
|
|
211
|
+
w,
|
|
212
|
+
g,
|
|
213
|
+
I,
|
|
214
|
+
g
|
|
215
|
+
), se[g + w] = !0);
|
|
216
216
|
}
|
|
217
|
-
if (
|
|
218
|
-
|
|
219
|
-
for (var
|
|
220
|
-
|
|
221
|
-
} else
|
|
222
|
-
return
|
|
223
|
-
|
|
224
|
-
typeof
|
|
225
|
-
),
|
|
226
|
-
|
|
217
|
+
if (g = null, C !== void 0 && (r(C), g = "" + C), o(b) && (r(b.key), g = "" + b.key), "key" in b) {
|
|
218
|
+
C = {};
|
|
219
|
+
for (var Q in b)
|
|
220
|
+
Q !== "key" && (C[Q] = b[Q]);
|
|
221
|
+
} else C = b;
|
|
222
|
+
return g && c(
|
|
223
|
+
C,
|
|
224
|
+
typeof s == "function" ? s.displayName || s.name || "Unknown" : s
|
|
225
|
+
), h(
|
|
226
|
+
s,
|
|
227
|
+
g,
|
|
228
|
+
U,
|
|
227
229
|
V,
|
|
228
|
-
G,
|
|
229
|
-
te,
|
|
230
230
|
a(),
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
231
|
+
C,
|
|
232
|
+
E,
|
|
233
|
+
O
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
typeof
|
|
236
|
+
function f(s) {
|
|
237
|
+
typeof s == "object" && s !== null && s.$$typeof === k && s._store && (s._store.validated = 1);
|
|
238
238
|
}
|
|
239
|
-
var
|
|
239
|
+
var x = bt, k = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), P = Symbol.for("react.consumer"), A = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), j = Symbol.for("react.activity"), B = Symbol.for("react.client.reference"), $ = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, N = Array.isArray, Y = console.createTask ? console.createTask : function() {
|
|
240
240
|
return null;
|
|
241
241
|
};
|
|
242
|
-
|
|
243
|
-
"react-stack-bottom-frame": function(
|
|
244
|
-
return
|
|
242
|
+
x = {
|
|
243
|
+
"react-stack-bottom-frame": function(s) {
|
|
244
|
+
return s();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
|
-
var
|
|
248
|
-
|
|
247
|
+
var G, D = {}, re = x["react-stack-bottom-frame"].bind(
|
|
248
|
+
x,
|
|
249
249
|
i
|
|
250
|
-
)(),
|
|
251
|
-
|
|
252
|
-
var
|
|
250
|
+
)(), Z = Y(n(i)), se = {};
|
|
251
|
+
ye.Fragment = d, ye.jsx = function(s, b, C, w, V) {
|
|
252
|
+
var U = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
253
253
|
return l(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
s,
|
|
255
|
+
b,
|
|
256
|
+
C,
|
|
257
257
|
!1,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
258
|
+
w,
|
|
259
|
+
V,
|
|
260
|
+
U ? Error("react-stack-top-frame") : re,
|
|
261
|
+
U ? Y(n(s)) : Z
|
|
262
262
|
);
|
|
263
|
-
},
|
|
264
|
-
var
|
|
263
|
+
}, ye.jsxs = function(s, b, C, w, V) {
|
|
264
|
+
var U = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
265
265
|
return l(
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
266
|
+
s,
|
|
267
|
+
b,
|
|
268
|
+
C,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
270
|
+
w,
|
|
271
|
+
V,
|
|
272
|
+
U ? Error("react-stack-top-frame") : re,
|
|
273
|
+
U ? Y(n(s)) : Z
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
|
-
}()),
|
|
276
|
+
}()), ye;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
280
|
-
return
|
|
278
|
+
var He;
|
|
279
|
+
function Pt() {
|
|
280
|
+
return He || (He = 1, process.env.NODE_ENV === "production" ? Pe.exports = kt() : Pe.exports = Et()), Pe.exports;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
function
|
|
284
|
-
return
|
|
282
|
+
var z = Pt();
|
|
283
|
+
function Le() {
|
|
284
|
+
return Le = Object.assign ? Object.assign.bind() : function(e) {
|
|
285
285
|
for (var t = 1; t < arguments.length; t++) {
|
|
286
286
|
var r = arguments[t];
|
|
287
287
|
for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
288
288
|
}
|
|
289
289
|
return e;
|
|
290
|
-
},
|
|
290
|
+
}, Le.apply(null, arguments);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function _t(e) {
|
|
293
293
|
if (e.sheet)
|
|
294
294
|
return e.sheet;
|
|
295
295
|
for (var t = 0; t < document.styleSheets.length; t++)
|
|
296
296
|
if (document.styleSheets[t].ownerNode === e)
|
|
297
297
|
return document.styleSheets[t];
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function St(e) {
|
|
300
300
|
var t = document.createElement("style");
|
|
301
301
|
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
|
|
302
302
|
}
|
|
303
|
-
var
|
|
303
|
+
var Rt = /* @__PURE__ */ function() {
|
|
304
304
|
function e(r) {
|
|
305
305
|
var n = this;
|
|
306
306
|
this._insertTag = function(a) {
|
|
@@ -312,10 +312,10 @@ var Et = /* @__PURE__ */ function() {
|
|
|
312
312
|
return t.hydrate = function(n) {
|
|
313
313
|
n.forEach(this._insertTag);
|
|
314
314
|
}, t.insert = function(n) {
|
|
315
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
315
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(St(this));
|
|
316
316
|
var a = this.tags[this.tags.length - 1];
|
|
317
317
|
if (this.isSpeedy) {
|
|
318
|
-
var i =
|
|
318
|
+
var i = _t(a);
|
|
319
319
|
try {
|
|
320
320
|
i.insertRule(n, i.cssRules.length);
|
|
321
321
|
} catch {
|
|
@@ -329,66 +329,66 @@ var Et = /* @__PURE__ */ function() {
|
|
|
329
329
|
return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
|
|
330
330
|
}), this.tags = [], this.ctr = 0;
|
|
331
331
|
}, e;
|
|
332
|
-
}(),
|
|
333
|
-
function
|
|
334
|
-
return
|
|
332
|
+
}(), q = "-ms-", Ce = "-moz-", R = "-webkit-", st = "comm", Ue = "rule", Me = "decl", Tt = "@import", ct = "@keyframes", Ct = "@layer", At = Math.abs, Ae = String.fromCharCode, It = Object.assign;
|
|
333
|
+
function Ot(e, t) {
|
|
334
|
+
return W(e, 0) ^ 45 ? (((t << 2 ^ W(e, 0)) << 2 ^ W(e, 1)) << 2 ^ W(e, 2)) << 2 ^ W(e, 3) : 0;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function lt(e) {
|
|
337
337
|
return e.trim();
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function jt(e, t) {
|
|
340
340
|
return (e = t.exec(e)) ? e[0] : e;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function T(e, t, r) {
|
|
343
343
|
return e.replace(t, r);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Fe(e, t) {
|
|
346
346
|
return e.indexOf(t);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function W(e, t) {
|
|
349
349
|
return e.charCodeAt(t) | 0;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function xe(e, t, r) {
|
|
352
352
|
return e.slice(t, r);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function ne(e) {
|
|
355
355
|
return e.length;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function ze(e) {
|
|
358
358
|
return e.length;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function _e(e, t) {
|
|
361
361
|
return t.push(e), e;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function $t(e, t) {
|
|
364
364
|
return e.map(t).join("");
|
|
365
365
|
}
|
|
366
|
-
var
|
|
367
|
-
function
|
|
368
|
-
return { value: e, root: t, parent: r, type: n, props: a, children: i, line:
|
|
366
|
+
var Ie = 1, fe = 1, ut = 0, H = 0, M = 0, he = "";
|
|
367
|
+
function Oe(e, t, r, n, a, i, o) {
|
|
368
|
+
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Ie, column: fe, length: o, return: "" };
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
return
|
|
370
|
+
function ge(e, t) {
|
|
371
|
+
return It(Oe("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
return
|
|
375
|
-
}
|
|
376
|
-
function jt() {
|
|
377
|
-
return O = M > 0 ? L(oe, --M) : 0, ae--, O === 10 && (ae = 1, Pe--), O;
|
|
373
|
+
function Nt() {
|
|
374
|
+
return M;
|
|
378
375
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
376
|
+
function Vt() {
|
|
377
|
+
return M = H > 0 ? W(he, --H) : 0, fe--, M === 10 && (fe = 1, Ie--), M;
|
|
381
378
|
}
|
|
382
379
|
function K() {
|
|
383
|
-
return
|
|
380
|
+
return M = H < ut ? W(he, H++) : 0, fe++, M === 10 && (fe = 1, Ie++), M;
|
|
384
381
|
}
|
|
385
|
-
function
|
|
386
|
-
return
|
|
382
|
+
function ie() {
|
|
383
|
+
return W(he, H);
|
|
384
|
+
}
|
|
385
|
+
function Se() {
|
|
386
|
+
return H;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
return
|
|
388
|
+
function Ee(e, t) {
|
|
389
|
+
return xe(he, e, t);
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function we(e) {
|
|
392
392
|
switch (e) {
|
|
393
393
|
// \0 \t \n \r \s whitespace token
|
|
394
394
|
case 0:
|
|
@@ -426,260 +426,260 @@ function fe(e) {
|
|
|
426
426
|
}
|
|
427
427
|
return 0;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
return
|
|
429
|
+
function dt(e) {
|
|
430
|
+
return Ie = fe = 1, ut = ne(he = e), H = 0, [];
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
return
|
|
432
|
+
function ft(e) {
|
|
433
|
+
return he = "", e;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
return
|
|
435
|
+
function Re(e) {
|
|
436
|
+
return lt(Ee(H - 1, Be(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
437
437
|
}
|
|
438
|
-
function
|
|
439
|
-
for (; (
|
|
440
|
-
|
|
441
|
-
return
|
|
438
|
+
function Lt(e) {
|
|
439
|
+
for (; (M = ie()) && M < 33; )
|
|
440
|
+
K();
|
|
441
|
+
return we(e) > 2 || we(M) > 3 ? "" : " ";
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
for (; --t &&
|
|
443
|
+
function Ft(e, t) {
|
|
444
|
+
for (; --t && K() && !(M < 48 || M > 102 || M > 57 && M < 65 || M > 70 && M < 97); )
|
|
445
445
|
;
|
|
446
|
-
return
|
|
446
|
+
return Ee(e, Se() + (t < 6 && ie() == 32 && K() == 32));
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
for (;
|
|
450
|
-
switch (
|
|
448
|
+
function Be(e) {
|
|
449
|
+
for (; K(); )
|
|
450
|
+
switch (M) {
|
|
451
451
|
// ] ) " '
|
|
452
452
|
case e:
|
|
453
|
-
return
|
|
453
|
+
return H;
|
|
454
454
|
// " '
|
|
455
455
|
case 34:
|
|
456
456
|
case 39:
|
|
457
|
-
e !== 34 && e !== 39 &&
|
|
457
|
+
e !== 34 && e !== 39 && Be(M);
|
|
458
458
|
break;
|
|
459
459
|
// (
|
|
460
460
|
case 40:
|
|
461
|
-
e === 41 &&
|
|
461
|
+
e === 41 && Be(e);
|
|
462
462
|
break;
|
|
463
463
|
// \
|
|
464
464
|
case 92:
|
|
465
|
-
|
|
465
|
+
K();
|
|
466
466
|
break;
|
|
467
467
|
}
|
|
468
|
-
return
|
|
468
|
+
return H;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
471
|
-
for (;
|
|
472
|
-
if (e +
|
|
470
|
+
function Bt(e, t) {
|
|
471
|
+
for (; K() && e + M !== 57; )
|
|
472
|
+
if (e + M === 84 && ie() === 47)
|
|
473
473
|
break;
|
|
474
|
-
return "/*" +
|
|
474
|
+
return "/*" + Ee(t, H - 1) + "*" + Ae(e === 47 ? e : K());
|
|
475
475
|
}
|
|
476
|
-
function
|
|
477
|
-
for (; !
|
|
478
|
-
|
|
479
|
-
return
|
|
476
|
+
function Dt(e) {
|
|
477
|
+
for (; !we(ie()); )
|
|
478
|
+
K();
|
|
479
|
+
return Ee(e, H);
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
return
|
|
481
|
+
function Ut(e) {
|
|
482
|
+
return ft(Te("", null, null, null, [""], e = dt(e), 0, [0], e));
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
for (var
|
|
486
|
-
switch (
|
|
484
|
+
function Te(e, t, r, n, a, i, o, c, u) {
|
|
485
|
+
for (var h = 0, l = 0, f = o, x = 0, k = 0, v = 0, d = 1, m = 1, y = 1, P = 0, A = "", S = a, L = i, _ = n, p = A; m; )
|
|
486
|
+
switch (v = P, P = K()) {
|
|
487
487
|
// (
|
|
488
488
|
case 40:
|
|
489
|
-
if (
|
|
490
|
-
|
|
489
|
+
if (v != 108 && W(p, f - 1) == 58) {
|
|
490
|
+
Fe(p += T(Re(P), "&", "&\f"), "&\f") != -1 && (y = -1);
|
|
491
491
|
break;
|
|
492
492
|
}
|
|
493
493
|
// " ' [
|
|
494
494
|
case 34:
|
|
495
495
|
case 39:
|
|
496
496
|
case 91:
|
|
497
|
-
|
|
497
|
+
p += Re(P);
|
|
498
498
|
break;
|
|
499
499
|
// \t \n \r \s
|
|
500
500
|
case 9:
|
|
501
501
|
case 10:
|
|
502
502
|
case 13:
|
|
503
503
|
case 32:
|
|
504
|
-
|
|
504
|
+
p += Lt(v);
|
|
505
505
|
break;
|
|
506
506
|
// \
|
|
507
507
|
case 92:
|
|
508
|
-
|
|
508
|
+
p += Ft(Se() - 1, 7);
|
|
509
509
|
continue;
|
|
510
510
|
// /
|
|
511
511
|
case 47:
|
|
512
|
-
switch (
|
|
512
|
+
switch (ie()) {
|
|
513
513
|
case 42:
|
|
514
514
|
case 47:
|
|
515
|
-
|
|
515
|
+
_e(Mt(Bt(K(), Se()), t, r), u);
|
|
516
516
|
break;
|
|
517
517
|
default:
|
|
518
|
-
|
|
518
|
+
p += "/";
|
|
519
519
|
}
|
|
520
520
|
break;
|
|
521
521
|
// {
|
|
522
|
-
case 123 *
|
|
523
|
-
c[
|
|
522
|
+
case 123 * d:
|
|
523
|
+
c[h++] = ne(p) * y;
|
|
524
524
|
// } ; \0
|
|
525
|
-
case 125 *
|
|
525
|
+
case 125 * d:
|
|
526
526
|
case 59:
|
|
527
527
|
case 0:
|
|
528
|
-
switch (
|
|
528
|
+
switch (P) {
|
|
529
529
|
// \0 }
|
|
530
530
|
case 0:
|
|
531
531
|
case 125:
|
|
532
|
-
|
|
532
|
+
m = 0;
|
|
533
533
|
// ;
|
|
534
534
|
case 59 + l:
|
|
535
|
-
y == -1 && (
|
|
535
|
+
y == -1 && (p = T(p, /\f/g, "")), k > 0 && ne(p) - f && _e(k > 32 ? Je(p + ";", n, r, f - 1) : Je(T(p, " ", "") + ";", n, r, f - 2), u);
|
|
536
536
|
break;
|
|
537
537
|
// @ ;
|
|
538
538
|
case 59:
|
|
539
|
-
|
|
539
|
+
p += ";";
|
|
540
540
|
// { rule/at-rule
|
|
541
541
|
default:
|
|
542
|
-
if (
|
|
542
|
+
if (_e(_ = Xe(p, t, r, h, l, a, c, A, S = [], L = [], f), i), P === 123)
|
|
543
543
|
if (l === 0)
|
|
544
|
-
|
|
544
|
+
Te(p, t, _, _, S, i, f, c, L);
|
|
545
545
|
else
|
|
546
|
-
switch (
|
|
546
|
+
switch (x === 99 && W(p, 3) === 110 ? 100 : x) {
|
|
547
547
|
// d l m s
|
|
548
548
|
case 100:
|
|
549
549
|
case 108:
|
|
550
550
|
case 109:
|
|
551
551
|
case 115:
|
|
552
|
-
|
|
552
|
+
Te(e, _, _, n && _e(Xe(e, _, _, 0, 0, a, c, A, a, S = [], f), L), a, L, f, c, n ? S : L);
|
|
553
553
|
break;
|
|
554
554
|
default:
|
|
555
|
-
|
|
555
|
+
Te(p, _, _, _, [""], L, 0, c, L);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
|
|
558
|
+
h = l = k = 0, d = y = 1, A = p = "", f = o;
|
|
559
559
|
break;
|
|
560
560
|
// :
|
|
561
561
|
case 58:
|
|
562
|
-
|
|
562
|
+
f = 1 + ne(p), k = v;
|
|
563
563
|
default:
|
|
564
|
-
if (
|
|
565
|
-
if (
|
|
566
|
-
--
|
|
567
|
-
else if (
|
|
564
|
+
if (d < 1) {
|
|
565
|
+
if (P == 123)
|
|
566
|
+
--d;
|
|
567
|
+
else if (P == 125 && d++ == 0 && Vt() == 125)
|
|
568
568
|
continue;
|
|
569
569
|
}
|
|
570
|
-
switch (
|
|
570
|
+
switch (p += Ae(P), P * d) {
|
|
571
571
|
// &
|
|
572
572
|
case 38:
|
|
573
|
-
y = l > 0 ? 1 : (
|
|
573
|
+
y = l > 0 ? 1 : (p += "\f", -1);
|
|
574
574
|
break;
|
|
575
575
|
// ,
|
|
576
576
|
case 44:
|
|
577
|
-
c[
|
|
577
|
+
c[h++] = (ne(p) - 1) * y, y = 1;
|
|
578
578
|
break;
|
|
579
579
|
// @
|
|
580
580
|
case 64:
|
|
581
|
-
|
|
581
|
+
ie() === 45 && (p += Re(K())), x = ie(), l = f = ne(A = p += Dt(Se())), P++;
|
|
582
582
|
break;
|
|
583
583
|
// -
|
|
584
584
|
case 45:
|
|
585
|
-
|
|
585
|
+
v === 45 && ne(p) == 2 && (d = 0);
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
return i;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
for (var
|
|
592
|
-
for (var y = 0,
|
|
593
|
-
(
|
|
594
|
-
return
|
|
590
|
+
function Xe(e, t, r, n, a, i, o, c, u, h, l) {
|
|
591
|
+
for (var f = a - 1, x = a === 0 ? i : [""], k = ze(x), v = 0, d = 0, m = 0; v < n; ++v)
|
|
592
|
+
for (var y = 0, P = xe(e, f + 1, f = At(d = o[v])), A = e; y < k; ++y)
|
|
593
|
+
(A = lt(d > 0 ? x[y] + " " + P : T(P, /&\f/g, x[y]))) && (u[m++] = A);
|
|
594
|
+
return Oe(e, t, r, a === 0 ? Ue : c, u, h, l);
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return
|
|
596
|
+
function Mt(e, t, r) {
|
|
597
|
+
return Oe(e, t, r, st, Ae(Nt()), xe(e, 2, -2), 0);
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
return
|
|
599
|
+
function Je(e, t, r, n) {
|
|
600
|
+
return Oe(e, t, r, Me, xe(e, 0, n), xe(e, n + 1, -1), n);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
for (var r = "", n =
|
|
602
|
+
function de(e, t) {
|
|
603
|
+
for (var r = "", n = ze(e), a = 0; a < n; a++)
|
|
604
604
|
r += t(e[a], a, e, t) || "";
|
|
605
605
|
return r;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function zt(e, t, r, n) {
|
|
608
608
|
switch (e.type) {
|
|
609
|
-
case
|
|
609
|
+
case Ct:
|
|
610
610
|
if (e.children.length) break;
|
|
611
|
-
case
|
|
612
|
-
case
|
|
611
|
+
case Tt:
|
|
612
|
+
case Me:
|
|
613
613
|
return e.return = e.return || e.value;
|
|
614
|
-
case
|
|
614
|
+
case st:
|
|
615
615
|
return "";
|
|
616
|
-
case
|
|
617
|
-
return e.return = e.value + "{" +
|
|
618
|
-
case
|
|
616
|
+
case ct:
|
|
617
|
+
return e.return = e.value + "{" + de(e.children, n) + "}";
|
|
618
|
+
case Ue:
|
|
619
619
|
e.value = e.props.join(",");
|
|
620
620
|
}
|
|
621
|
-
return
|
|
621
|
+
return ne(r = de(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
var t =
|
|
623
|
+
function Wt(e) {
|
|
624
|
+
var t = ze(e);
|
|
625
625
|
return function(r, n, a, i) {
|
|
626
|
-
for (var
|
|
627
|
-
|
|
628
|
-
return
|
|
626
|
+
for (var o = "", c = 0; c < t; c++)
|
|
627
|
+
o += e[c](r, n, a, i) || "";
|
|
628
|
+
return o;
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Yt(e) {
|
|
632
632
|
return function(t) {
|
|
633
633
|
t.root || (t = t.return) && e(t);
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function pt(e) {
|
|
637
637
|
var t = /* @__PURE__ */ Object.create(null);
|
|
638
638
|
return function(r) {
|
|
639
639
|
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
for (var a = 0, i = 0; a = i, i =
|
|
644
|
-
|
|
645
|
-
return
|
|
646
|
-
},
|
|
642
|
+
var qt = function(t, r, n) {
|
|
643
|
+
for (var a = 0, i = 0; a = i, i = ie(), a === 38 && i === 12 && (r[n] = 1), !we(i); )
|
|
644
|
+
K();
|
|
645
|
+
return Ee(t, H);
|
|
646
|
+
}, Gt = function(t, r) {
|
|
647
647
|
var n = -1, a = 44;
|
|
648
648
|
do
|
|
649
|
-
switch (
|
|
649
|
+
switch (we(a)) {
|
|
650
650
|
case 0:
|
|
651
|
-
a === 38 &&
|
|
651
|
+
a === 38 && ie() === 12 && (r[n] = 1), t[n] += qt(H - 1, r, n);
|
|
652
652
|
break;
|
|
653
653
|
case 2:
|
|
654
|
-
t[n] +=
|
|
654
|
+
t[n] += Re(a);
|
|
655
655
|
break;
|
|
656
656
|
case 4:
|
|
657
657
|
if (a === 44) {
|
|
658
|
-
t[++n] =
|
|
658
|
+
t[++n] = ie() === 58 ? "&\f" : "", r[n] = t[n].length;
|
|
659
659
|
break;
|
|
660
660
|
}
|
|
661
661
|
// fallthrough
|
|
662
662
|
default:
|
|
663
|
-
t[n] +=
|
|
663
|
+
t[n] += Ae(a);
|
|
664
664
|
}
|
|
665
|
-
while (a =
|
|
665
|
+
while (a = K());
|
|
666
666
|
return t;
|
|
667
|
-
},
|
|
668
|
-
return
|
|
669
|
-
},
|
|
667
|
+
}, Ht = function(t, r) {
|
|
668
|
+
return ft(Gt(dt(t), r));
|
|
669
|
+
}, Ke = /* @__PURE__ */ new WeakMap(), Xt = function(t) {
|
|
670
670
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
671
671
|
// negative .length indicates that this rule has been already prefixed
|
|
672
672
|
t.length < 1)) {
|
|
673
673
|
for (var r = t.value, n = t.parent, a = t.column === n.column && t.line === n.line; n.type !== "rule"; )
|
|
674
674
|
if (n = n.parent, !n) return;
|
|
675
|
-
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !
|
|
676
|
-
|
|
677
|
-
for (var i = [],
|
|
678
|
-
for (var l = 0; l < c.length; l++,
|
|
679
|
-
t.props[
|
|
675
|
+
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Ke.get(n)) && !a) {
|
|
676
|
+
Ke.set(t, !0);
|
|
677
|
+
for (var i = [], o = Ht(r, i), c = n.props, u = 0, h = 0; u < o.length; u++)
|
|
678
|
+
for (var l = 0; l < c.length; l++, h++)
|
|
679
|
+
t.props[h] = i[u] ? o[u].replace(/&\f/g, c[l]) : c[l] + " " + o[u];
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
|
-
},
|
|
682
|
+
}, Jt = function(t) {
|
|
683
683
|
if (t.type === "decl") {
|
|
684
684
|
var r = t.value;
|
|
685
685
|
// charcode for l
|
|
@@ -687,11 +687,11 @@ var Dt = function(t, r, n) {
|
|
|
687
687
|
r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
|
|
688
688
|
}
|
|
689
689
|
};
|
|
690
|
-
function
|
|
691
|
-
switch (
|
|
690
|
+
function ht(e, t) {
|
|
691
|
+
switch (Ot(e, t)) {
|
|
692
692
|
// color-adjust
|
|
693
693
|
case 5103:
|
|
694
|
-
return
|
|
694
|
+
return R + "print-" + e + e;
|
|
695
695
|
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
696
696
|
case 5737:
|
|
697
697
|
case 4201:
|
|
@@ -721,58 +721,58 @@ function ut(e, t) {
|
|
|
721
721
|
case 5365:
|
|
722
722
|
case 5621:
|
|
723
723
|
case 3829:
|
|
724
|
-
return
|
|
724
|
+
return R + e + e;
|
|
725
725
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
726
726
|
case 5349:
|
|
727
727
|
case 4246:
|
|
728
728
|
case 4810:
|
|
729
729
|
case 6968:
|
|
730
730
|
case 2756:
|
|
731
|
-
return
|
|
731
|
+
return R + e + Ce + e + q + e + e;
|
|
732
732
|
// flex, flex-direction
|
|
733
733
|
case 6828:
|
|
734
734
|
case 4268:
|
|
735
|
-
return
|
|
735
|
+
return R + e + q + e + e;
|
|
736
736
|
// order
|
|
737
737
|
case 6165:
|
|
738
|
-
return
|
|
738
|
+
return R + e + q + "flex-" + e + e;
|
|
739
739
|
// align-items
|
|
740
740
|
case 5187:
|
|
741
|
-
return
|
|
741
|
+
return R + e + T(e, /(\w+).+(:[^]+)/, R + "box-$1$2" + q + "flex-$1$2") + e;
|
|
742
742
|
// align-self
|
|
743
743
|
case 5443:
|
|
744
|
-
return
|
|
744
|
+
return R + e + q + "flex-item-" + T(e, /flex-|-self/, "") + e;
|
|
745
745
|
// align-content
|
|
746
746
|
case 4675:
|
|
747
|
-
return
|
|
747
|
+
return R + e + q + "flex-line-pack" + T(e, /align-content|flex-|-self/, "") + e;
|
|
748
748
|
// flex-shrink
|
|
749
749
|
case 5548:
|
|
750
|
-
return
|
|
750
|
+
return R + e + q + T(e, "shrink", "negative") + e;
|
|
751
751
|
// flex-basis
|
|
752
752
|
case 5292:
|
|
753
|
-
return
|
|
753
|
+
return R + e + q + T(e, "basis", "preferred-size") + e;
|
|
754
754
|
// flex-grow
|
|
755
755
|
case 6060:
|
|
756
|
-
return
|
|
756
|
+
return R + "box-" + T(e, "-grow", "") + R + e + q + T(e, "grow", "positive") + e;
|
|
757
757
|
// transition
|
|
758
758
|
case 4554:
|
|
759
|
-
return
|
|
759
|
+
return R + T(e, /([^-])(transform)/g, "$1" + R + "$2") + e;
|
|
760
760
|
// cursor
|
|
761
761
|
case 6187:
|
|
762
|
-
return
|
|
762
|
+
return T(T(T(e, /(zoom-|grab)/, R + "$1"), /(image-set)/, R + "$1"), e, "") + e;
|
|
763
763
|
// background, background-image
|
|
764
764
|
case 5495:
|
|
765
765
|
case 3959:
|
|
766
|
-
return
|
|
766
|
+
return T(e, /(image-set\([^]*)/, R + "$1$`$1");
|
|
767
767
|
// justify-content
|
|
768
768
|
case 4968:
|
|
769
|
-
return
|
|
769
|
+
return T(T(e, /(.+:)(flex-)?(.*)/, R + "box-pack:$3" + q + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + R + e + e;
|
|
770
770
|
// (margin|padding)-inline-(start|end)
|
|
771
771
|
case 4095:
|
|
772
772
|
case 3583:
|
|
773
773
|
case 4068:
|
|
774
774
|
case 2532:
|
|
775
|
-
return
|
|
775
|
+
return T(e, /(.+)-inline(.+)/, R + "$1$2") + e;
|
|
776
776
|
// (min|max)?(width|height|inline-size|block-size)
|
|
777
777
|
case 8116:
|
|
778
778
|
case 7059:
|
|
@@ -786,116 +786,116 @@ function ut(e, t) {
|
|
|
786
786
|
case 5789:
|
|
787
787
|
case 5021:
|
|
788
788
|
case 4765:
|
|
789
|
-
if (
|
|
789
|
+
if (ne(e) - 1 - t > 6) switch (W(e, t + 1)) {
|
|
790
790
|
// (m)ax-content, (m)in-content
|
|
791
791
|
case 109:
|
|
792
|
-
if (
|
|
792
|
+
if (W(e, t + 4) !== 45) break;
|
|
793
793
|
// (f)ill-available, (f)it-content
|
|
794
794
|
case 102:
|
|
795
|
-
return
|
|
795
|
+
return T(e, /(.+:)(.+)-([^]+)/, "$1" + R + "$2-$3$1" + Ce + (W(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
796
796
|
// (s)tretch
|
|
797
797
|
case 115:
|
|
798
|
-
return ~
|
|
798
|
+
return ~Fe(e, "stretch") ? ht(T(e, "stretch", "fill-available"), t) + e : e;
|
|
799
799
|
}
|
|
800
800
|
break;
|
|
801
801
|
// position: sticky
|
|
802
802
|
case 4949:
|
|
803
|
-
if (
|
|
803
|
+
if (W(e, t + 1) !== 115) break;
|
|
804
804
|
// display: (flex|inline-flex)
|
|
805
805
|
case 6444:
|
|
806
|
-
switch (
|
|
806
|
+
switch (W(e, ne(e) - 3 - (~Fe(e, "!important") && 10))) {
|
|
807
807
|
// stic(k)y
|
|
808
808
|
case 107:
|
|
809
|
-
return
|
|
809
|
+
return T(e, ":", ":" + R) + e;
|
|
810
810
|
// (inline-)?fl(e)x
|
|
811
811
|
case 101:
|
|
812
|
-
return
|
|
812
|
+
return T(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + R + (W(e, 14) === 45 ? "inline-" : "") + "box$3$1" + R + "$2$3$1" + q + "$2box$3") + e;
|
|
813
813
|
}
|
|
814
814
|
break;
|
|
815
815
|
// writing-mode
|
|
816
816
|
case 5936:
|
|
817
|
-
switch (
|
|
817
|
+
switch (W(e, t + 11)) {
|
|
818
818
|
// vertical-l(r)
|
|
819
819
|
case 114:
|
|
820
|
-
return
|
|
820
|
+
return R + e + q + T(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
821
821
|
// vertical-r(l)
|
|
822
822
|
case 108:
|
|
823
|
-
return
|
|
823
|
+
return R + e + q + T(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
824
824
|
// horizontal(-)tb
|
|
825
825
|
case 45:
|
|
826
|
-
return
|
|
826
|
+
return R + e + q + T(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
827
827
|
}
|
|
828
|
-
return
|
|
828
|
+
return R + e + q + e + e;
|
|
829
829
|
}
|
|
830
830
|
return e;
|
|
831
831
|
}
|
|
832
|
-
var
|
|
832
|
+
var Kt = function(t, r, n, a) {
|
|
833
833
|
if (t.length > -1 && !t.return) switch (t.type) {
|
|
834
|
-
case
|
|
835
|
-
t.return =
|
|
834
|
+
case Me:
|
|
835
|
+
t.return = ht(t.value, t.length);
|
|
836
836
|
break;
|
|
837
|
-
case
|
|
838
|
-
return
|
|
839
|
-
value:
|
|
837
|
+
case ct:
|
|
838
|
+
return de([ge(t, {
|
|
839
|
+
value: T(t.value, "@", "@" + R)
|
|
840
840
|
})], a);
|
|
841
|
-
case
|
|
842
|
-
if (t.length) return
|
|
843
|
-
switch (
|
|
841
|
+
case Ue:
|
|
842
|
+
if (t.length) return $t(t.props, function(i) {
|
|
843
|
+
switch (jt(i, /(::plac\w+|:read-\w+)/)) {
|
|
844
844
|
// :read-(only|write)
|
|
845
845
|
case ":read-only":
|
|
846
846
|
case ":read-write":
|
|
847
|
-
return
|
|
848
|
-
props: [
|
|
847
|
+
return de([ge(t, {
|
|
848
|
+
props: [T(i, /:(read-\w+)/, ":" + Ce + "$1")]
|
|
849
849
|
})], a);
|
|
850
850
|
// :placeholder
|
|
851
851
|
case "::placeholder":
|
|
852
|
-
return
|
|
853
|
-
props: [
|
|
854
|
-
}),
|
|
855
|
-
props: [
|
|
856
|
-
}),
|
|
857
|
-
props: [
|
|
852
|
+
return de([ge(t, {
|
|
853
|
+
props: [T(i, /:(plac\w+)/, ":" + R + "input-$1")]
|
|
854
|
+
}), ge(t, {
|
|
855
|
+
props: [T(i, /:(plac\w+)/, ":" + Ce + "$1")]
|
|
856
|
+
}), ge(t, {
|
|
857
|
+
props: [T(i, /:(plac\w+)/, q + "input-$1")]
|
|
858
858
|
})], a);
|
|
859
859
|
}
|
|
860
860
|
return "";
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
|
-
},
|
|
863
|
+
}, Zt = [Kt], Qt = function(t) {
|
|
864
864
|
var r = t.key;
|
|
865
865
|
if (r === "css") {
|
|
866
866
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
867
|
-
Array.prototype.forEach.call(n, function(
|
|
868
|
-
var
|
|
869
|
-
|
|
867
|
+
Array.prototype.forEach.call(n, function(d) {
|
|
868
|
+
var m = d.getAttribute("data-emotion");
|
|
869
|
+
m.indexOf(" ") !== -1 && (document.head.appendChild(d), d.setAttribute("data-s", ""));
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
|
-
var a = t.stylisPlugins ||
|
|
873
|
-
|
|
872
|
+
var a = t.stylisPlugins || Zt, i = {}, o, c = [];
|
|
873
|
+
o = t.container || document.head, Array.prototype.forEach.call(
|
|
874
874
|
// this means we will ignore elements which don't have a space in them which
|
|
875
875
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
876
876
|
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
877
|
-
function(
|
|
878
|
-
for (var
|
|
879
|
-
i[
|
|
880
|
-
c.push(
|
|
877
|
+
function(d) {
|
|
878
|
+
for (var m = d.getAttribute("data-emotion").split(" "), y = 1; y < m.length; y++)
|
|
879
|
+
i[m[y]] = !0;
|
|
880
|
+
c.push(d);
|
|
881
881
|
}
|
|
882
882
|
);
|
|
883
|
-
var u,
|
|
883
|
+
var u, h = [Xt, Jt];
|
|
884
884
|
{
|
|
885
|
-
var l,
|
|
886
|
-
l.insert(
|
|
887
|
-
})],
|
|
888
|
-
return
|
|
885
|
+
var l, f = [zt, Yt(function(d) {
|
|
886
|
+
l.insert(d);
|
|
887
|
+
})], x = Wt(h.concat(a, f)), k = function(m) {
|
|
888
|
+
return de(Ut(m), x);
|
|
889
889
|
};
|
|
890
|
-
u = function(
|
|
891
|
-
l =
|
|
890
|
+
u = function(m, y, P, A) {
|
|
891
|
+
l = P, k(m ? m + "{" + y.styles + "}" : y.styles), A && (v.inserted[y.name] = !0);
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
|
-
var
|
|
894
|
+
var v = {
|
|
895
895
|
key: r,
|
|
896
|
-
sheet: new
|
|
896
|
+
sheet: new Rt({
|
|
897
897
|
key: r,
|
|
898
|
-
container:
|
|
898
|
+
container: o,
|
|
899
899
|
nonce: t.nonce,
|
|
900
900
|
speedy: t.speedy,
|
|
901
901
|
prepend: t.prepend,
|
|
@@ -906,15 +906,15 @@ var Ht = function(t, r, n, a) {
|
|
|
906
906
|
registered: {},
|
|
907
907
|
insert: u
|
|
908
908
|
};
|
|
909
|
-
return
|
|
910
|
-
},
|
|
911
|
-
function
|
|
909
|
+
return v.sheet.hydrate(c), v;
|
|
910
|
+
}, er = !0;
|
|
911
|
+
function tr(e, t, r) {
|
|
912
912
|
var n = "";
|
|
913
913
|
return r.split(" ").forEach(function(a) {
|
|
914
914
|
e[a] !== void 0 ? t.push(e[a] + ";") : a && (n += a + " ");
|
|
915
915
|
}), n;
|
|
916
916
|
}
|
|
917
|
-
var
|
|
917
|
+
var mt = function(t, r, n) {
|
|
918
918
|
var a = t.key + "-" + r.name;
|
|
919
919
|
// we only need to add the styles to the registered cache if the
|
|
920
920
|
// class name could be used further down
|
|
@@ -925,9 +925,9 @@ var dt = function(t, r, n) {
|
|
|
925
925
|
// in node since emotion-server relies on whether a style is in
|
|
926
926
|
// the registered cache to know whether a style is global or not
|
|
927
927
|
// also, note that this check will be dead code eliminated in the browser
|
|
928
|
-
|
|
929
|
-
},
|
|
930
|
-
|
|
928
|
+
er === !1) && t.registered[a] === void 0 && (t.registered[a] = r.styles);
|
|
929
|
+
}, rr = function(t, r, n) {
|
|
930
|
+
mt(t, r, n);
|
|
931
931
|
var a = t.key + "-" + r.name;
|
|
932
932
|
if (t.inserted[r.name] === void 0) {
|
|
933
933
|
var i = r;
|
|
@@ -936,7 +936,7 @@ var dt = function(t, r, n) {
|
|
|
936
936
|
while (i !== void 0);
|
|
937
937
|
}
|
|
938
938
|
};
|
|
939
|
-
function
|
|
939
|
+
function nr(e) {
|
|
940
940
|
for (var t = 0, r, n = 0, a = e.length; a >= 4; ++n, a -= 4)
|
|
941
941
|
r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
|
|
942
942
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
|
@@ -955,7 +955,7 @@ function er(e) {
|
|
|
955
955
|
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
956
956
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
957
957
|
}
|
|
958
|
-
var
|
|
958
|
+
var ar = {
|
|
959
959
|
animationIterationCount: 1,
|
|
960
960
|
aspectRatio: 1,
|
|
961
961
|
borderImageOutset: 1,
|
|
@@ -1004,28 +1004,28 @@ var tr = {
|
|
|
1004
1004
|
strokeMiterlimit: 1,
|
|
1005
1005
|
strokeOpacity: 1,
|
|
1006
1006
|
strokeWidth: 1
|
|
1007
|
-
},
|
|
1007
|
+
}, ir = /[A-Z]|^ms/g, or = /_EMO_([^_]+?)_([^]*?)_EMO_/g, yt = function(t) {
|
|
1008
1008
|
return t.charCodeAt(1) === 45;
|
|
1009
|
-
},
|
|
1009
|
+
}, Ze = function(t) {
|
|
1010
1010
|
return t != null && typeof t != "boolean";
|
|
1011
|
-
},
|
|
1012
|
-
return
|
|
1013
|
-
}),
|
|
1011
|
+
}, je = /* @__PURE__ */ pt(function(e) {
|
|
1012
|
+
return yt(e) ? e : e.replace(ir, "-$&").toLowerCase();
|
|
1013
|
+
}), Qe = function(t, r) {
|
|
1014
1014
|
switch (t) {
|
|
1015
1015
|
case "animation":
|
|
1016
1016
|
case "animationName":
|
|
1017
1017
|
if (typeof r == "string")
|
|
1018
|
-
return r.replace(
|
|
1019
|
-
return
|
|
1018
|
+
return r.replace(or, function(n, a, i) {
|
|
1019
|
+
return ae = {
|
|
1020
1020
|
name: a,
|
|
1021
1021
|
styles: i,
|
|
1022
|
-
next:
|
|
1022
|
+
next: ae
|
|
1023
1023
|
}, a;
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
|
-
return
|
|
1026
|
+
return ar[t] !== 1 && !yt(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
1027
1027
|
};
|
|
1028
|
-
function
|
|
1028
|
+
function ke(e, t, r) {
|
|
1029
1029
|
if (r == null)
|
|
1030
1030
|
return "";
|
|
1031
1031
|
var n = r;
|
|
@@ -1037,30 +1037,30 @@ function pe(e, t, r) {
|
|
|
1037
1037
|
case "object": {
|
|
1038
1038
|
var a = r;
|
|
1039
1039
|
if (a.anim === 1)
|
|
1040
|
-
return
|
|
1040
|
+
return ae = {
|
|
1041
1041
|
name: a.name,
|
|
1042
1042
|
styles: a.styles,
|
|
1043
|
-
next:
|
|
1043
|
+
next: ae
|
|
1044
1044
|
}, a.name;
|
|
1045
1045
|
var i = r;
|
|
1046
1046
|
if (i.styles !== void 0) {
|
|
1047
|
-
var
|
|
1048
|
-
if (
|
|
1049
|
-
for (;
|
|
1050
|
-
|
|
1051
|
-
name:
|
|
1052
|
-
styles:
|
|
1053
|
-
next:
|
|
1054
|
-
},
|
|
1047
|
+
var o = i.next;
|
|
1048
|
+
if (o !== void 0)
|
|
1049
|
+
for (; o !== void 0; )
|
|
1050
|
+
ae = {
|
|
1051
|
+
name: o.name,
|
|
1052
|
+
styles: o.styles,
|
|
1053
|
+
next: ae
|
|
1054
|
+
}, o = o.next;
|
|
1055
1055
|
var c = i.styles + ";";
|
|
1056
1056
|
return c;
|
|
1057
1057
|
}
|
|
1058
|
-
return
|
|
1058
|
+
return sr(e, t, r);
|
|
1059
1059
|
}
|
|
1060
1060
|
case "function": {
|
|
1061
1061
|
if (e !== void 0) {
|
|
1062
|
-
var u =
|
|
1063
|
-
return
|
|
1062
|
+
var u = ae, h = r(e);
|
|
1063
|
+
return ae = u, ke(e, t, h);
|
|
1064
1064
|
}
|
|
1065
1065
|
break;
|
|
1066
1066
|
}
|
|
@@ -1068,157 +1068,157 @@ function pe(e, t, r) {
|
|
|
1068
1068
|
var l = r;
|
|
1069
1069
|
if (t == null)
|
|
1070
1070
|
return l;
|
|
1071
|
-
var
|
|
1072
|
-
return
|
|
1071
|
+
var f = t[l];
|
|
1072
|
+
return f !== void 0 ? f : l;
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function sr(e, t, r) {
|
|
1075
1075
|
var n = "";
|
|
1076
1076
|
if (Array.isArray(r))
|
|
1077
1077
|
for (var a = 0; a < r.length; a++)
|
|
1078
|
-
n +=
|
|
1078
|
+
n += ke(e, t, r[a]) + ";";
|
|
1079
1079
|
else
|
|
1080
1080
|
for (var i in r) {
|
|
1081
|
-
var
|
|
1082
|
-
if (typeof
|
|
1083
|
-
var c =
|
|
1084
|
-
t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" :
|
|
1085
|
-
} else if (Array.isArray(
|
|
1086
|
-
for (var u = 0; u <
|
|
1087
|
-
|
|
1081
|
+
var o = r[i];
|
|
1082
|
+
if (typeof o != "object") {
|
|
1083
|
+
var c = o;
|
|
1084
|
+
t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : Ze(c) && (n += je(i) + ":" + Qe(i, c) + ";");
|
|
1085
|
+
} else if (Array.isArray(o) && typeof o[0] == "string" && (t == null || t[o[0]] === void 0))
|
|
1086
|
+
for (var u = 0; u < o.length; u++)
|
|
1087
|
+
Ze(o[u]) && (n += je(i) + ":" + Qe(i, o[u]) + ";");
|
|
1088
1088
|
else {
|
|
1089
|
-
var
|
|
1089
|
+
var h = ke(e, t, o);
|
|
1090
1090
|
switch (i) {
|
|
1091
1091
|
case "animation":
|
|
1092
1092
|
case "animationName": {
|
|
1093
|
-
n +=
|
|
1093
|
+
n += je(i) + ":" + h + ";";
|
|
1094
1094
|
break;
|
|
1095
1095
|
}
|
|
1096
1096
|
default:
|
|
1097
|
-
n += i + "{" +
|
|
1097
|
+
n += i + "{" + h + "}";
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
1101
|
return n;
|
|
1102
1102
|
}
|
|
1103
|
-
var
|
|
1104
|
-
function
|
|
1103
|
+
var et = /label:\s*([^\s;{]+)\s*(;|$)/g, ae;
|
|
1104
|
+
function cr(e, t, r) {
|
|
1105
1105
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1106
1106
|
return e[0];
|
|
1107
1107
|
var n = !0, a = "";
|
|
1108
|
-
|
|
1108
|
+
ae = void 0;
|
|
1109
1109
|
var i = e[0];
|
|
1110
1110
|
if (i == null || i.raw === void 0)
|
|
1111
|
-
n = !1, a +=
|
|
1111
|
+
n = !1, a += ke(r, t, i);
|
|
1112
1112
|
else {
|
|
1113
|
-
var
|
|
1114
|
-
a +=
|
|
1113
|
+
var o = i;
|
|
1114
|
+
a += o[0];
|
|
1115
1115
|
}
|
|
1116
1116
|
for (var c = 1; c < e.length; c++)
|
|
1117
|
-
if (a +=
|
|
1117
|
+
if (a += ke(r, t, e[c]), n) {
|
|
1118
1118
|
var u = i;
|
|
1119
1119
|
a += u[c];
|
|
1120
1120
|
}
|
|
1121
|
-
|
|
1122
|
-
for (var
|
|
1123
|
-
|
|
1124
|
-
var
|
|
1121
|
+
et.lastIndex = 0;
|
|
1122
|
+
for (var h = "", l; (l = et.exec(a)) !== null; )
|
|
1123
|
+
h += "-" + l[1];
|
|
1124
|
+
var f = nr(a) + h;
|
|
1125
1125
|
return {
|
|
1126
|
-
name:
|
|
1126
|
+
name: f,
|
|
1127
1127
|
styles: a,
|
|
1128
|
-
next:
|
|
1128
|
+
next: ae
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
|
-
var
|
|
1131
|
+
var lr = function(t) {
|
|
1132
1132
|
return t();
|
|
1133
|
-
},
|
|
1133
|
+
}, ur = oe.useInsertionEffect ? oe.useInsertionEffect : !1, dr = ur || lr, gt = /* @__PURE__ */ oe.createContext(
|
|
1134
1134
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1135
1135
|
// because this module is primarily intended for the browser and node
|
|
1136
1136
|
// but it's also required in react native and similar environments sometimes
|
|
1137
1137
|
// and we could have a special build just for that
|
|
1138
1138
|
// but this is much easier and the native packages
|
|
1139
1139
|
// might use a different theme context in the future anyway
|
|
1140
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1140
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ Qt({
|
|
1141
1141
|
key: "css"
|
|
1142
1142
|
}) : null
|
|
1143
1143
|
);
|
|
1144
|
-
|
|
1145
|
-
var
|
|
1146
|
-
return /* @__PURE__ */
|
|
1147
|
-
var a =
|
|
1144
|
+
gt.Provider;
|
|
1145
|
+
var fr = function(t) {
|
|
1146
|
+
return /* @__PURE__ */ xt(function(r, n) {
|
|
1147
|
+
var a = it(gt);
|
|
1148
1148
|
return t(r, a, n);
|
|
1149
1149
|
});
|
|
1150
|
-
},
|
|
1150
|
+
}, pr = /* @__PURE__ */ oe.createContext({}), hr = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, mr = /* @__PURE__ */ pt(
|
|
1151
1151
|
function(e) {
|
|
1152
|
-
return
|
|
1152
|
+
return hr.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
1153
1153
|
}
|
|
1154
1154
|
/* Z+1 */
|
|
1155
|
-
),
|
|
1155
|
+
), yr = mr, gr = function(t) {
|
|
1156
1156
|
return t !== "theme";
|
|
1157
|
-
},
|
|
1157
|
+
}, tt = function(t) {
|
|
1158
1158
|
return typeof t == "string" && // 96 is one less than the char code
|
|
1159
1159
|
// for "a" so this is checking that
|
|
1160
1160
|
// it's a lowercase character
|
|
1161
|
-
t.charCodeAt(0) > 96 ?
|
|
1162
|
-
},
|
|
1161
|
+
t.charCodeAt(0) > 96 ? yr : gr;
|
|
1162
|
+
}, rt = function(t, r, n) {
|
|
1163
1163
|
var a;
|
|
1164
1164
|
if (r) {
|
|
1165
1165
|
var i = r.shouldForwardProp;
|
|
1166
|
-
a = t.__emotion_forwardProp && i ? function(
|
|
1167
|
-
return t.__emotion_forwardProp(
|
|
1166
|
+
a = t.__emotion_forwardProp && i ? function(o) {
|
|
1167
|
+
return t.__emotion_forwardProp(o) && i(o);
|
|
1168
1168
|
} : i;
|
|
1169
1169
|
}
|
|
1170
1170
|
return typeof a != "function" && n && (a = t.__emotion_forwardProp), a;
|
|
1171
|
-
},
|
|
1171
|
+
}, vr = function(t) {
|
|
1172
1172
|
var r = t.cache, n = t.serialized, a = t.isStringTag;
|
|
1173
|
-
return
|
|
1174
|
-
return
|
|
1173
|
+
return mt(r, n, a), dr(function() {
|
|
1174
|
+
return rr(r, n, a);
|
|
1175
1175
|
}), null;
|
|
1176
|
-
},
|
|
1177
|
-
var n = t.__emotion_real === t, a = n && t.__emotion_base || t, i,
|
|
1178
|
-
r !== void 0 && (i = r.label,
|
|
1179
|
-
var c =
|
|
1176
|
+
}, br = function e(t, r) {
|
|
1177
|
+
var n = t.__emotion_real === t, a = n && t.__emotion_base || t, i, o;
|
|
1178
|
+
r !== void 0 && (i = r.label, o = r.target);
|
|
1179
|
+
var c = rt(t, r, n), u = c || tt(a), h = !u("as");
|
|
1180
1180
|
return function() {
|
|
1181
|
-
var l = arguments,
|
|
1182
|
-
if (i !== void 0 &&
|
|
1183
|
-
|
|
1181
|
+
var l = arguments, f = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
1182
|
+
if (i !== void 0 && f.push("label:" + i + ";"), l[0] == null || l[0].raw === void 0)
|
|
1183
|
+
f.push.apply(f, l);
|
|
1184
1184
|
else {
|
|
1185
|
-
var
|
|
1186
|
-
|
|
1187
|
-
for (var
|
|
1188
|
-
|
|
1185
|
+
var x = l[0];
|
|
1186
|
+
f.push(x[0]);
|
|
1187
|
+
for (var k = l.length, v = 1; v < k; v++)
|
|
1188
|
+
f.push(l[v], x[v]);
|
|
1189
1189
|
}
|
|
1190
|
-
var
|
|
1191
|
-
var
|
|
1192
|
-
if (
|
|
1193
|
-
|
|
1194
|
-
for (var
|
|
1195
|
-
|
|
1196
|
-
|
|
1190
|
+
var d = fr(function(m, y, P) {
|
|
1191
|
+
var A = h && m.as || a, S = "", L = [], _ = m;
|
|
1192
|
+
if (m.theme == null) {
|
|
1193
|
+
_ = {};
|
|
1194
|
+
for (var p in m)
|
|
1195
|
+
_[p] = m[p];
|
|
1196
|
+
_.theme = oe.useContext(pr);
|
|
1197
1197
|
}
|
|
1198
|
-
typeof
|
|
1199
|
-
var
|
|
1200
|
-
|
|
1201
|
-
var
|
|
1202
|
-
for (var $ in
|
|
1203
|
-
|
|
1204
|
-
return
|
|
1198
|
+
typeof m.className == "string" ? S = tr(y.registered, L, m.className) : m.className != null && (S = m.className + " ");
|
|
1199
|
+
var F = cr(f.concat(L), y.registered, _);
|
|
1200
|
+
S += y.key + "-" + F.name, o !== void 0 && (S += " " + o);
|
|
1201
|
+
var j = h && c === void 0 ? tt(A) : u, B = {};
|
|
1202
|
+
for (var $ in m)
|
|
1203
|
+
h && $ === "as" || j($) && (B[$] = m[$]);
|
|
1204
|
+
return B.className = S, P && (B.ref = P), /* @__PURE__ */ oe.createElement(oe.Fragment, null, /* @__PURE__ */ oe.createElement(vr, {
|
|
1205
1205
|
cache: y,
|
|
1206
|
-
serialized:
|
|
1207
|
-
isStringTag: typeof
|
|
1208
|
-
}), /* @__PURE__ */
|
|
1206
|
+
serialized: F,
|
|
1207
|
+
isStringTag: typeof A == "string"
|
|
1208
|
+
}), /* @__PURE__ */ oe.createElement(A, B));
|
|
1209
1209
|
});
|
|
1210
|
-
return
|
|
1210
|
+
return d.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", d.defaultProps = t.defaultProps, d.__emotion_real = d, d.__emotion_base = a, d.__emotion_styles = f, d.__emotion_forwardProp = c, Object.defineProperty(d, "toString", {
|
|
1211
1211
|
value: function() {
|
|
1212
|
-
return "." +
|
|
1212
|
+
return "." + o;
|
|
1213
1213
|
}
|
|
1214
|
-
}),
|
|
1215
|
-
var
|
|
1216
|
-
shouldForwardProp:
|
|
1214
|
+
}), d.withComponent = function(m, y) {
|
|
1215
|
+
var P = e(m, Le({}, r, y, {
|
|
1216
|
+
shouldForwardProp: rt(d, y, !0)
|
|
1217
1217
|
}));
|
|
1218
|
-
return
|
|
1219
|
-
},
|
|
1218
|
+
return P.apply(void 0, f);
|
|
1219
|
+
}, d;
|
|
1220
1220
|
};
|
|
1221
|
-
},
|
|
1221
|
+
}, xr = [
|
|
1222
1222
|
"a",
|
|
1223
1223
|
"abbr",
|
|
1224
1224
|
"address",
|
|
@@ -1354,11 +1354,11 @@ var lr = function(t) {
|
|
|
1354
1354
|
"svg",
|
|
1355
1355
|
"text",
|
|
1356
1356
|
"tspan"
|
|
1357
|
-
],
|
|
1358
|
-
|
|
1359
|
-
|
|
1357
|
+
], pe = br.bind(null);
|
|
1358
|
+
xr.forEach(function(e) {
|
|
1359
|
+
pe[e] = pe(e);
|
|
1360
1360
|
});
|
|
1361
|
-
const
|
|
1361
|
+
const wr = pe.div`
|
|
1362
1362
|
display: flex;
|
|
1363
1363
|
align-items: center;
|
|
1364
1364
|
justify-content: center;
|
|
@@ -1399,7 +1399,7 @@ const vr = ie.div`
|
|
|
1399
1399
|
return "";
|
|
1400
1400
|
}
|
|
1401
1401
|
}}
|
|
1402
|
-
`,
|
|
1402
|
+
`, De = ({ type: e, children: t, className: r, icon: n, action: a }) => z.jsxs(wr, { type: e, className: r, children: [n && z.jsx("span", { children: n }), z.jsx("span", { children: t }), a && z.jsx("span", { children: a })] }), nt = pe.div`
|
|
1403
1403
|
width: ${({ width: e }) => e || "100%"};
|
|
1404
1404
|
height: ${({ height: e }) => e || "100%"};
|
|
1405
1405
|
border-radius: 0px !important; /* Force remove rounded corners on container */
|
|
@@ -1411,7 +1411,7 @@ const vr = ie.div`
|
|
|
1411
1411
|
|
|
1412
1412
|
/* Hide specific elements inside the player */
|
|
1413
1413
|
${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((t) => `.${t} { display: none !important; }`).join("")}
|
|
1414
|
-
`,
|
|
1414
|
+
`, kr = pe.div`
|
|
1415
1415
|
position: fixed;
|
|
1416
1416
|
top: 0;
|
|
1417
1417
|
left: 0;
|
|
@@ -1423,7 +1423,7 @@ const vr = ie.div`
|
|
|
1423
1423
|
align-items: center;
|
|
1424
1424
|
z-index: 1000;
|
|
1425
1425
|
pointer-events: auto;
|
|
1426
|
-
`,
|
|
1426
|
+
`, Er = pe.div`
|
|
1427
1427
|
position: relative;
|
|
1428
1428
|
width: min(360px, 100%);
|
|
1429
1429
|
max-width: 360px;
|
|
@@ -1435,145 +1435,145 @@ const vr = ie.div`
|
|
|
1435
1435
|
width: 100%;
|
|
1436
1436
|
max-width: 100%;
|
|
1437
1437
|
}
|
|
1438
|
-
`,
|
|
1439
|
-
const [r, n] =
|
|
1440
|
-
return
|
|
1441
|
-
let
|
|
1442
|
-
const
|
|
1438
|
+
`, Pr = (e, t) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`, at = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`, _r = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}`, Sr = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, We = (e, t) => `vp-player-${e || "default"}-${t || ""}`, $e = /* @__PURE__ */ new Map(), Rr = (e, t) => {
|
|
1439
|
+
const [r, n] = te(!1), [a, i] = te(null);
|
|
1440
|
+
return be(() => {
|
|
1441
|
+
let o = null, c, u = 0;
|
|
1442
|
+
const h = 3;
|
|
1443
1443
|
let l;
|
|
1444
1444
|
try {
|
|
1445
|
-
l = t ||
|
|
1446
|
-
} catch (
|
|
1447
|
-
const
|
|
1448
|
-
i(`Failed to resolve script URL: ${
|
|
1445
|
+
l = t || Sr(e || "latest");
|
|
1446
|
+
} catch (k) {
|
|
1447
|
+
const v = k instanceof Error ? k.message : String(k);
|
|
1448
|
+
i(`Failed to resolve script URL: ${v}`), n(!1);
|
|
1449
1449
|
return;
|
|
1450
1450
|
}
|
|
1451
|
-
if (
|
|
1451
|
+
if ($e.get(l)) {
|
|
1452
1452
|
n(!0), i(null);
|
|
1453
1453
|
return;
|
|
1454
1454
|
}
|
|
1455
1455
|
if (document.querySelector(`script[src="${l}"]`)) {
|
|
1456
|
-
|
|
1456
|
+
$e.set(l, !0), n(!0), i(null);
|
|
1457
1457
|
return;
|
|
1458
1458
|
}
|
|
1459
|
-
const
|
|
1460
|
-
|
|
1459
|
+
const x = () => {
|
|
1460
|
+
o = document.createElement("script"), o.src = l, o.async = !0, c = window.setTimeout(() => {
|
|
1461
1461
|
n(!1), i(`Loading script timed out: ${l}`);
|
|
1462
|
-
}, 1e4),
|
|
1463
|
-
clearTimeout(c),
|
|
1464
|
-
},
|
|
1465
|
-
clearTimeout(c), u++, u <
|
|
1466
|
-
}, document.body.appendChild(
|
|
1462
|
+
}, 1e4), o.onload = () => {
|
|
1463
|
+
clearTimeout(c), $e.set(l, !0), n(!0), i(null);
|
|
1464
|
+
}, o.onerror = () => {
|
|
1465
|
+
clearTimeout(c), u++, u < h ? setTimeout(x, 1e3 * u) : (n(!1), i(`Failed to load VP Player script after ${h} attempts: ${l}`));
|
|
1466
|
+
}, document.body.appendChild(o);
|
|
1467
1467
|
};
|
|
1468
|
-
return
|
|
1469
|
-
clearTimeout(c),
|
|
1468
|
+
return x(), () => {
|
|
1469
|
+
clearTimeout(c), o && document.body.contains(o) && document.body.removeChild(o);
|
|
1470
1470
|
};
|
|
1471
1471
|
}, [e, t]), { isLoaded: r, error: a };
|
|
1472
|
-
},
|
|
1473
|
-
const [i,
|
|
1474
|
-
return
|
|
1475
|
-
const
|
|
1472
|
+
}, Tr = {}, ve = /* @__PURE__ */ new Map(), Cr = 3e4, Ne = 5, Ar = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
|
|
1473
|
+
const [i, o] = te(null), [c, u] = te(null), [h, l] = te(!1), [f, x] = te(null), k = a || (typeof Tr < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
|
|
1474
|
+
return be(() => {
|
|
1475
|
+
const v = t ? `video:${t}` : r ? `playlist:${r}` : null;
|
|
1476
1476
|
if (!e || n || !t && !r) {
|
|
1477
|
-
|
|
1477
|
+
o(n || null), u(null), l(!1), x(null);
|
|
1478
1478
|
return;
|
|
1479
1479
|
}
|
|
1480
|
-
if (!
|
|
1481
|
-
l(!1),
|
|
1480
|
+
if (!k) {
|
|
1481
|
+
l(!1), x("No API key provided");
|
|
1482
1482
|
return;
|
|
1483
1483
|
}
|
|
1484
|
-
if (
|
|
1485
|
-
const
|
|
1486
|
-
|
|
1484
|
+
if (v && ve.has(v)) {
|
|
1485
|
+
const S = ve.get(v);
|
|
1486
|
+
o(S.url), u(S.playlist), l(!1), x(null);
|
|
1487
1487
|
return;
|
|
1488
1488
|
}
|
|
1489
|
-
let
|
|
1490
|
-
const
|
|
1491
|
-
var
|
|
1492
|
-
if (!
|
|
1489
|
+
let d = !0;
|
|
1490
|
+
const m = new AbortController(), y = m.signal, A = setTimeout(async () => {
|
|
1491
|
+
var L, _, p, F;
|
|
1492
|
+
if (!d)
|
|
1493
1493
|
return;
|
|
1494
|
-
l(!0),
|
|
1495
|
-
let
|
|
1496
|
-
for (;
|
|
1494
|
+
l(!0), x(null);
|
|
1495
|
+
let S = 0;
|
|
1496
|
+
for (; S < Ne && d; )
|
|
1497
1497
|
try {
|
|
1498
|
-
const
|
|
1498
|
+
const j = t && !r ? Pr(e, t) : at(e, r), B = setTimeout(() => m.abort(), Cr), $ = await fetch(j, {
|
|
1499
1499
|
method: "GET",
|
|
1500
1500
|
headers: {
|
|
1501
|
-
"api-key":
|
|
1501
|
+
"api-key": k,
|
|
1502
1502
|
Accept: "application/json",
|
|
1503
1503
|
"Cache-Control": "no-cache"
|
|
1504
1504
|
// Prevent caching issues
|
|
1505
1505
|
},
|
|
1506
1506
|
signal: y
|
|
1507
1507
|
});
|
|
1508
|
-
if (clearTimeout(
|
|
1508
|
+
if (clearTimeout(B), !$.ok)
|
|
1509
1509
|
throw new Error(`Fetch failed with status ${$.status}`);
|
|
1510
|
-
const
|
|
1511
|
-
if (!
|
|
1510
|
+
const X = await $.json();
|
|
1511
|
+
if (!d)
|
|
1512
1512
|
return;
|
|
1513
1513
|
if (t && !r) {
|
|
1514
|
-
const
|
|
1515
|
-
if (!(
|
|
1514
|
+
const N = (_ = (L = X.result) == null ? void 0 : L.items) == null ? void 0 : _.find((Y) => Y.mediaId === t);
|
|
1515
|
+
if (!(N != null && N.playbackUrl))
|
|
1516
1516
|
throw new Error("Invalid video data");
|
|
1517
|
-
|
|
1517
|
+
o(N.playbackUrl), u(null), v && ve.set(v, { url: N.playbackUrl, playlist: null });
|
|
1518
1518
|
} else {
|
|
1519
|
-
if (!Array.isArray(
|
|
1519
|
+
if (!Array.isArray(X.result))
|
|
1520
1520
|
throw new Error("Invalid playlist format");
|
|
1521
|
-
const
|
|
1521
|
+
const N = _r(e, r), Y = await fetch(N, {
|
|
1522
1522
|
method: "GET",
|
|
1523
1523
|
headers: {
|
|
1524
|
-
"api-key":
|
|
1524
|
+
"api-key": k,
|
|
1525
1525
|
Accept: "application/json",
|
|
1526
1526
|
"Cache-Control": "no-cache"
|
|
1527
1527
|
},
|
|
1528
1528
|
signal: y
|
|
1529
1529
|
});
|
|
1530
|
-
if (
|
|
1531
|
-
const
|
|
1532
|
-
let
|
|
1533
|
-
if ((
|
|
1534
|
-
const
|
|
1530
|
+
if (Y.ok) {
|
|
1531
|
+
const G = await Y.json();
|
|
1532
|
+
let D = [...X.result];
|
|
1533
|
+
if ((p = G.result) != null && p.playlistBackupState && ((F = G.result) != null && F.playlistBackupId)) {
|
|
1534
|
+
const re = at(e, G.result.playlistBackupId), Z = await fetch(re, {
|
|
1535
1535
|
method: "GET",
|
|
1536
1536
|
headers: {
|
|
1537
|
-
"api-key":
|
|
1537
|
+
"api-key": k,
|
|
1538
1538
|
Accept: "application/json",
|
|
1539
1539
|
"Cache-Control": "no-cache"
|
|
1540
1540
|
},
|
|
1541
1541
|
signal: y
|
|
1542
1542
|
});
|
|
1543
|
-
if (
|
|
1544
|
-
const
|
|
1545
|
-
if (Array.isArray(
|
|
1546
|
-
const
|
|
1547
|
-
...
|
|
1543
|
+
if (Z.ok) {
|
|
1544
|
+
const se = await Z.json();
|
|
1545
|
+
if (Array.isArray(se.result)) {
|
|
1546
|
+
const s = se.result.map((b) => ({
|
|
1547
|
+
...b,
|
|
1548
1548
|
isBackupPlaylist: !0
|
|
1549
1549
|
}));
|
|
1550
|
-
|
|
1550
|
+
D = [...D, ...s];
|
|
1551
1551
|
}
|
|
1552
1552
|
}
|
|
1553
1553
|
}
|
|
1554
|
-
u(
|
|
1554
|
+
u(D), o(null), v && ve.set(v, { url: null, playlist: D });
|
|
1555
1555
|
} else
|
|
1556
|
-
u(
|
|
1556
|
+
u(X.result), o(null), v && ve.set(v, { url: null, playlist: X.result });
|
|
1557
1557
|
}
|
|
1558
1558
|
break;
|
|
1559
|
-
} catch (
|
|
1559
|
+
} catch (j) {
|
|
1560
1560
|
if (y.aborted) {
|
|
1561
|
-
|
|
1561
|
+
d && x("Request timed out");
|
|
1562
1562
|
break;
|
|
1563
1563
|
}
|
|
1564
|
-
if (
|
|
1565
|
-
const
|
|
1566
|
-
|
|
1564
|
+
if (S++, S >= Ne) {
|
|
1565
|
+
const B = j instanceof Error ? j.message : String(j);
|
|
1566
|
+
d && x(`Failed after ${Ne} attempts: ${B}`);
|
|
1567
1567
|
} else
|
|
1568
|
-
await new Promise((
|
|
1568
|
+
await new Promise((B) => setTimeout(B, 2e3));
|
|
1569
1569
|
}
|
|
1570
|
-
|
|
1570
|
+
d && l(!1);
|
|
1571
1571
|
}, 100);
|
|
1572
1572
|
return () => {
|
|
1573
|
-
|
|
1573
|
+
d = !1, clearTimeout(A), m.abort();
|
|
1574
1574
|
};
|
|
1575
|
-
}, [
|
|
1576
|
-
},
|
|
1575
|
+
}, [k, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: h, error: f };
|
|
1576
|
+
}, Ir = {
|
|
1577
1577
|
projectId: "vp-player-projectId",
|
|
1578
1578
|
video: {
|
|
1579
1579
|
file: "",
|
|
@@ -1626,7 +1626,7 @@ const vr = ie.div`
|
|
|
1626
1626
|
// Enabled by default
|
|
1627
1627
|
}
|
|
1628
1628
|
}
|
|
1629
|
-
},
|
|
1629
|
+
}, Or = ({
|
|
1630
1630
|
videoUrl: e,
|
|
1631
1631
|
fetchedPlaybackUrl: t,
|
|
1632
1632
|
// fetchedPlaylist,
|
|
@@ -1636,13 +1636,13 @@ const vr = ie.div`
|
|
|
1636
1636
|
isVerticalPlayer: i
|
|
1637
1637
|
// Distinguish between VP Player types
|
|
1638
1638
|
}) => {
|
|
1639
|
-
var l,
|
|
1640
|
-
const
|
|
1639
|
+
var l, f, x, k, v, d, m, y, P, A, S, L, _;
|
|
1640
|
+
const o = { ...Ir, ...a }, c = { ...o.config, ...a.config };
|
|
1641
1641
|
if (e)
|
|
1642
1642
|
return {
|
|
1643
|
-
...
|
|
1643
|
+
...o,
|
|
1644
1644
|
video: {
|
|
1645
|
-
...
|
|
1645
|
+
...o.video,
|
|
1646
1646
|
file: e,
|
|
1647
1647
|
playlist: void 0
|
|
1648
1648
|
},
|
|
@@ -1650,86 +1650,86 @@ const vr = ie.div`
|
|
|
1650
1650
|
};
|
|
1651
1651
|
if (t)
|
|
1652
1652
|
return {
|
|
1653
|
-
...
|
|
1653
|
+
...o,
|
|
1654
1654
|
video: {
|
|
1655
|
-
...
|
|
1655
|
+
...o.video,
|
|
1656
1656
|
file: t,
|
|
1657
1657
|
playlist: void 0
|
|
1658
1658
|
},
|
|
1659
1659
|
config: c
|
|
1660
1660
|
};
|
|
1661
1661
|
if (r && r.length > 0) {
|
|
1662
|
-
const
|
|
1662
|
+
const p = ((f = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : f.playlistVideoIndex) ?? ((x = a == null ? void 0 : a.config) == null ? void 0 : x.playlistVideoIndex) ?? 0;
|
|
1663
1663
|
return i ? {
|
|
1664
|
-
...
|
|
1664
|
+
...o,
|
|
1665
1665
|
projectId: n || "vp-player-projectId",
|
|
1666
1666
|
video: {
|
|
1667
|
-
...
|
|
1667
|
+
...o.video,
|
|
1668
1668
|
// Set first video file (index 0) to avoid VP Player duplication
|
|
1669
|
-
file: (
|
|
1670
|
-
title: (
|
|
1669
|
+
file: (k = r[0]) == null ? void 0 : k.hlsUrl,
|
|
1670
|
+
title: (v = r[0]) == null ? void 0 : v.title,
|
|
1671
1671
|
// thumbnail: fetchedPlaylist[0]?.thumbnailUrl,
|
|
1672
1672
|
playlist: {
|
|
1673
1673
|
state: !0,
|
|
1674
1674
|
playlistId: "",
|
|
1675
1675
|
// Will be set by API
|
|
1676
1676
|
// Use original playlistVideoIndex - VP Player will navigate to it
|
|
1677
|
-
playlistVideoIndex: Number(
|
|
1677
|
+
playlistVideoIndex: Number(p),
|
|
1678
1678
|
// Remove first video from playlist to avoid duplication (already in file)
|
|
1679
|
-
videos: r.slice(1).map((
|
|
1680
|
-
videoId: String(
|
|
1679
|
+
videos: r.slice(1).map((j, B) => ({
|
|
1680
|
+
videoId: String(B + 1),
|
|
1681
1681
|
// Keep original IDs
|
|
1682
|
-
title:
|
|
1683
|
-
file:
|
|
1684
|
-
thumbnailUrl:
|
|
1685
|
-
duration:
|
|
1682
|
+
title: j.title,
|
|
1683
|
+
file: j.hlsUrl,
|
|
1684
|
+
thumbnailUrl: j.thumbnailUrl,
|
|
1685
|
+
duration: j.duration
|
|
1686
1686
|
}))
|
|
1687
1687
|
}
|
|
1688
1688
|
},
|
|
1689
1689
|
config: c
|
|
1690
1690
|
} : {
|
|
1691
|
-
...
|
|
1691
|
+
...o,
|
|
1692
1692
|
projectId: n || "vp-player-projectId",
|
|
1693
1693
|
video: {
|
|
1694
|
-
...
|
|
1695
|
-
file: ((
|
|
1696
|
-
title: ((y = r[Number(
|
|
1697
|
-
thumbnail: ((
|
|
1694
|
+
...o.video,
|
|
1695
|
+
file: ((d = r[Number(p)]) == null ? void 0 : d.hlsUrl) || ((m = r[0]) == null ? void 0 : m.hlsUrl) || "",
|
|
1696
|
+
title: ((y = r[Number(p)]) == null ? void 0 : y.title) || ((P = r[0]) == null ? void 0 : P.title),
|
|
1697
|
+
thumbnail: ((A = r[Number(p)]) == null ? void 0 : A.thumbnailUrl) || ((S = r[0]) == null ? void 0 : S.thumbnailUrl),
|
|
1698
1698
|
playlist: {
|
|
1699
1699
|
state: !0,
|
|
1700
1700
|
// playlistVideoIndex: String(userPlaylistVideoIndex), this has been bug, fixed, now int
|
|
1701
|
-
playlistVideoIndex: Number(
|
|
1702
|
-
videos: r.map((
|
|
1703
|
-
videoId: String(
|
|
1704
|
-
title:
|
|
1705
|
-
file:
|
|
1706
|
-
thumbnailUrl:
|
|
1707
|
-
duration:
|
|
1701
|
+
playlistVideoIndex: Number(p),
|
|
1702
|
+
videos: r.map((j, B) => ({
|
|
1703
|
+
videoId: String(B),
|
|
1704
|
+
title: j.title,
|
|
1705
|
+
file: j.hlsUrl,
|
|
1706
|
+
thumbnailUrl: j.thumbnailUrl,
|
|
1707
|
+
duration: j.duration
|
|
1708
1708
|
}))
|
|
1709
1709
|
}
|
|
1710
1710
|
},
|
|
1711
1711
|
config: c
|
|
1712
1712
|
};
|
|
1713
1713
|
}
|
|
1714
|
-
const u = ((
|
|
1715
|
-
if (
|
|
1714
|
+
const u = ((L = a == null ? void 0 : a.video) == null ? void 0 : L.playlist) || o.video.playlist, h = (_ = a == null ? void 0 : a.video) == null ? void 0 : _.file;
|
|
1715
|
+
if (h)
|
|
1716
1716
|
return {
|
|
1717
|
-
...
|
|
1717
|
+
...o,
|
|
1718
1718
|
video: {
|
|
1719
|
-
...
|
|
1720
|
-
file:
|
|
1719
|
+
...o.video,
|
|
1720
|
+
file: h,
|
|
1721
1721
|
playlist: void 0
|
|
1722
1722
|
// No playlist, just one video
|
|
1723
1723
|
},
|
|
1724
1724
|
config: c
|
|
1725
1725
|
};
|
|
1726
1726
|
if (u != null && u.videos && u.videos.length > 0) {
|
|
1727
|
-
const
|
|
1727
|
+
const p = u.videos[Number(u.playlistVideoIndex) || 0];
|
|
1728
1728
|
return {
|
|
1729
|
-
...
|
|
1729
|
+
...o,
|
|
1730
1730
|
video: {
|
|
1731
|
-
...
|
|
1732
|
-
file: (
|
|
1731
|
+
...o.video,
|
|
1732
|
+
file: (p == null ? void 0 : p.file) || "",
|
|
1733
1733
|
playlist: {
|
|
1734
1734
|
...u,
|
|
1735
1735
|
state: u.state ?? !0,
|
|
@@ -1739,164 +1739,289 @@ const vr = ie.div`
|
|
|
1739
1739
|
}
|
|
1740
1740
|
},
|
|
1741
1741
|
config: {
|
|
1742
|
-
...
|
|
1742
|
+
...o.config,
|
|
1743
1743
|
...a == null ? void 0 : a.config
|
|
1744
1744
|
}
|
|
1745
1745
|
};
|
|
1746
1746
|
}
|
|
1747
1747
|
throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.");
|
|
1748
|
-
},
|
|
1748
|
+
}, jr = (e) => {
|
|
1749
1749
|
if (!e)
|
|
1750
1750
|
return;
|
|
1751
1751
|
const t = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, r = e.match(t);
|
|
1752
1752
|
return r ? r[2] : void 0;
|
|
1753
|
-
},
|
|
1754
|
-
const
|
|
1753
|
+
}, $r = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: o, config: c = {}, apiKey: u, isReels: h = !1, onPlaylistData: l, onVideoStarted: f }) => {
|
|
1754
|
+
const x = ue(null), k = ue(null), v = ue(!1), d = ue(""), m = ue([]), y = ue([]), { isLoaded: P, error: A } = Rr(r, o), S = t || jr(o), [L, _] = te(null), { fetchedPlaybackUrl: p, fetchedPlaylist: F, isLoading: j, error: B } = Ar({
|
|
1755
1755
|
projectId: a,
|
|
1756
|
-
videoId:
|
|
1756
|
+
videoId: S,
|
|
1757
1757
|
playlistId: i,
|
|
1758
1758
|
videoUrl: n,
|
|
1759
1759
|
apiKey: u
|
|
1760
|
-
}),
|
|
1761
|
-
|
|
1760
|
+
}), $ = We(e, S);
|
|
1761
|
+
be(() => {
|
|
1762
|
+
F && l && l(F);
|
|
1763
|
+
}, [F, l]);
|
|
1764
|
+
const X = ot(() => {
|
|
1765
|
+
const N = c.config || {}, Y = h && !N.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : N.size || { sizeType: "FIXED", width: "100%" };
|
|
1762
1766
|
return {
|
|
1763
1767
|
...c,
|
|
1764
1768
|
config: {
|
|
1765
|
-
...
|
|
1766
|
-
size:
|
|
1769
|
+
...N,
|
|
1770
|
+
size: Y
|
|
1767
1771
|
}
|
|
1768
1772
|
};
|
|
1769
|
-
}, [c,
|
|
1770
|
-
return
|
|
1771
|
-
if (
|
|
1772
|
-
|
|
1773
|
+
}, [c, h]);
|
|
1774
|
+
return be(() => {
|
|
1775
|
+
if (A) {
|
|
1776
|
+
_(A);
|
|
1773
1777
|
return;
|
|
1774
1778
|
}
|
|
1775
|
-
if (!
|
|
1779
|
+
if (!P || j && !n)
|
|
1776
1780
|
return;
|
|
1777
|
-
let
|
|
1778
|
-
const
|
|
1781
|
+
let N = !0;
|
|
1782
|
+
const G = setTimeout(async () => {
|
|
1779
1783
|
try {
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1784
|
+
m.current.forEach((V) => clearInterval(V)), m.current = [], y.current.forEach((V) => clearTimeout(V)), y.current = [];
|
|
1785
|
+
const D = (F == null ? void 0 : F.length) ?? 0, re = JSON.stringify({
|
|
1786
|
+
playerId: $,
|
|
1787
|
+
videoId: t || S,
|
|
1788
|
+
playlistId: i,
|
|
1789
|
+
videoUrl: n,
|
|
1790
|
+
fetchedPlaybackUrl: p,
|
|
1791
|
+
scriptUrl: o,
|
|
1792
|
+
isReels: h,
|
|
1793
|
+
projectId: a,
|
|
1794
|
+
playlistLength: D
|
|
1795
|
+
});
|
|
1796
|
+
if (v.current && k.current && d.current === re)
|
|
1797
|
+
return;
|
|
1798
|
+
d.current !== re && (v.current = !1, d.current = re);
|
|
1799
|
+
const Z = o == null ? void 0 : o.includes("vertical-player");
|
|
1800
|
+
if (document.querySelectorAll('[id*="player"]').forEach((V) => {
|
|
1801
|
+
var E, O;
|
|
1802
|
+
const U = V.id;
|
|
1803
|
+
if (U !== $)
|
|
1785
1804
|
try {
|
|
1786
|
-
const
|
|
1787
|
-
|
|
1788
|
-
} catch (
|
|
1789
|
-
console.warn(`Failed to destroy existing player ${
|
|
1805
|
+
const g = Z ? (E = window.vpVerticalPlayer) == null ? void 0 : E.call(window, U) : (O = window.vpPlayer) == null ? void 0 : O.call(window, U);
|
|
1806
|
+
g != null && g.destroy && g.destroy();
|
|
1807
|
+
} catch (g) {
|
|
1808
|
+
console.warn(`Failed to destroy existing player ${U}:`, g);
|
|
1790
1809
|
}
|
|
1791
|
-
}), await new Promise((
|
|
1810
|
+
}), await new Promise((V) => setTimeout(V, 100)), !N || !x.current)
|
|
1792
1811
|
return;
|
|
1793
|
-
if (!document.getElementById(
|
|
1794
|
-
|
|
1812
|
+
if (!document.getElementById($)) {
|
|
1813
|
+
_("DOM element not found after cleanup.");
|
|
1795
1814
|
return;
|
|
1796
1815
|
}
|
|
1797
1816
|
if (!window.vpPlayer && !window.vpVerticalPlayer) {
|
|
1798
|
-
|
|
1817
|
+
_("VP Player script not loaded.");
|
|
1799
1818
|
return;
|
|
1800
1819
|
}
|
|
1801
|
-
const
|
|
1802
|
-
if (!
|
|
1803
|
-
|
|
1820
|
+
const b = Z ? window.vpVerticalPlayer : window.vpPlayer;
|
|
1821
|
+
if (!b) {
|
|
1822
|
+
_(`VP ${Z ? "Vertical " : ""}Player script not loaded.`);
|
|
1804
1823
|
return;
|
|
1805
1824
|
}
|
|
1806
|
-
const
|
|
1825
|
+
const C = Or({
|
|
1807
1826
|
videoUrl: n,
|
|
1808
|
-
fetchedPlaybackUrl:
|
|
1809
|
-
fetchedPlaylist:
|
|
1827
|
+
fetchedPlaybackUrl: p ?? void 0,
|
|
1828
|
+
fetchedPlaylist: F ?? void 0,
|
|
1810
1829
|
projectId: a,
|
|
1811
|
-
config:
|
|
1812
|
-
isVerticalPlayer:
|
|
1830
|
+
config: X,
|
|
1831
|
+
isVerticalPlayer: Z
|
|
1813
1832
|
// Pass player type to config builder
|
|
1814
|
-
}),
|
|
1815
|
-
if (!
|
|
1816
|
-
|
|
1833
|
+
}), w = b($);
|
|
1834
|
+
if (!w) {
|
|
1835
|
+
_(`Failed to create VP ${Z ? "Vertical " : ""}Player instance.`);
|
|
1817
1836
|
return;
|
|
1818
1837
|
}
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1838
|
+
if (N && x.current && (w.setup(C), k.current = w, v.current = !0, _(null), f && w.on)) {
|
|
1839
|
+
const V = () => {
|
|
1840
|
+
var O;
|
|
1841
|
+
const E = {};
|
|
1842
|
+
if (F && F.length > 0) {
|
|
1843
|
+
const g = w.videoIndex ?? ((O = w.playlist) == null ? void 0 : O.playlistVideoIndex) ?? 0, I = F[g];
|
|
1844
|
+
I && (E.title = I.title, E.hlsUrl = I.hlsUrl, E.file = I.hlsUrl, E.thumbnailUrl = I.thumbnailUrl, E.duration = I.duration, E.videoIndex = g, E.playlistVideoIndex = g, E.isBackupPlaylist = I.isBackupPlaylist, E.mediaId = I.mediaId);
|
|
1845
|
+
} else C.video && (E.title = C.video.title, E.file = C.video.file, E.hlsUrl = C.video.file, E.thumbnailUrl = C.video.thumbnail, E.videoId = t || S, E.videoIndex = 0, E.playlistVideoIndex = 0, w.getDuration && (E.duration = w.getDuration()));
|
|
1846
|
+
return E;
|
|
1847
|
+
}, U = () => {
|
|
1848
|
+
try {
|
|
1849
|
+
setTimeout(() => {
|
|
1850
|
+
const E = V();
|
|
1851
|
+
f(E);
|
|
1852
|
+
}, 100);
|
|
1853
|
+
} catch (E) {
|
|
1854
|
+
console.warn("Error in video-started handler:", E);
|
|
1855
|
+
}
|
|
1856
|
+
};
|
|
1857
|
+
if (h) {
|
|
1858
|
+
let E = !1, O = -1;
|
|
1859
|
+
const g = () => {
|
|
1860
|
+
if (!E) {
|
|
1861
|
+
E = !0;
|
|
1862
|
+
try {
|
|
1863
|
+
w.on && (w.on("vp-video-started", U), w.on("video-started", U), w.on("play", U)), setTimeout(() => {
|
|
1864
|
+
const ee = V();
|
|
1865
|
+
(ee.title || ee.file) && (f(ee), O = w.videoIndex ?? 0);
|
|
1866
|
+
}, 500);
|
|
1867
|
+
} catch (ee) {
|
|
1868
|
+
console.error("Error setting up event listeners:", ee);
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
};
|
|
1872
|
+
let I = 0;
|
|
1873
|
+
const Q = 15, ce = setInterval(() => {
|
|
1874
|
+
try {
|
|
1875
|
+
const ee = w.videoIndex !== void 0 || w.playlist;
|
|
1876
|
+
if (!E)
|
|
1877
|
+
I++, (ee || I >= Q) && g();
|
|
1878
|
+
else {
|
|
1879
|
+
const le = w.videoIndex ?? 0;
|
|
1880
|
+
le !== O && O !== -1 && (O = le, U());
|
|
1881
|
+
}
|
|
1882
|
+
} catch {
|
|
1883
|
+
}
|
|
1884
|
+
}, 200);
|
|
1885
|
+
m.current.push(ce);
|
|
1886
|
+
try {
|
|
1887
|
+
w.on && w.on("vp-listen-ready", g);
|
|
1888
|
+
} catch {
|
|
1889
|
+
}
|
|
1890
|
+
} else {
|
|
1891
|
+
const E = async (O) => {
|
|
1892
|
+
var g, I;
|
|
1893
|
+
try {
|
|
1894
|
+
const Q = o == null ? void 0 : o.match(/player\/([^/.]+)/), ce = Q == null ? void 0 : Q[1];
|
|
1895
|
+
if (!ce || !O)
|
|
1896
|
+
return V();
|
|
1897
|
+
const ee = `https://host.vpplayer.tech/player/${ce}/${O}.json`, le = await fetch(ee);
|
|
1898
|
+
if (!le.ok)
|
|
1899
|
+
return console.warn("Failed to fetch full video config:", le.status), V();
|
|
1900
|
+
const J = await le.json();
|
|
1901
|
+
return !J || !J.video ? V() : {
|
|
1902
|
+
videoId: O,
|
|
1903
|
+
title: J.video.title,
|
|
1904
|
+
description: J.video.description,
|
|
1905
|
+
file: J.video.file,
|
|
1906
|
+
hlsUrl: J.video.file,
|
|
1907
|
+
thumbnailUrl: J.video.thumbnail,
|
|
1908
|
+
duration: J.video.duration,
|
|
1909
|
+
publishDate: J.video.publishDate,
|
|
1910
|
+
projectId: J.projectId,
|
|
1911
|
+
premium: ((g = J.video.videoLocking) == null ? void 0 : g.isEnabled) || !1,
|
|
1912
|
+
author: J.video.author,
|
|
1913
|
+
tags: J.video.tags || [],
|
|
1914
|
+
videoIndex: w.videoIndex ?? 0,
|
|
1915
|
+
playlistVideoIndex: ((I = w.playlist) == null ? void 0 : I.playlistVideoIndex) ?? 0
|
|
1916
|
+
};
|
|
1917
|
+
} catch (Q) {
|
|
1918
|
+
return console.warn("Error fetching full video data:", Q), V();
|
|
1919
|
+
}
|
|
1920
|
+
};
|
|
1921
|
+
w.on("ready", async (O) => {
|
|
1922
|
+
try {
|
|
1923
|
+
const g = (O == null ? void 0 : O.id) || t || S;
|
|
1924
|
+
if (g) {
|
|
1925
|
+
const I = await E(g);
|
|
1926
|
+
f(I);
|
|
1927
|
+
} else {
|
|
1928
|
+
const I = V();
|
|
1929
|
+
(I.title || I.file) && f(I);
|
|
1930
|
+
}
|
|
1931
|
+
} catch (g) {
|
|
1932
|
+
console.warn("Error in ready handler:", g);
|
|
1933
|
+
}
|
|
1934
|
+
}), w.on("playlistItem", async (O) => {
|
|
1935
|
+
try {
|
|
1936
|
+
const g = O == null ? void 0 : O.id;
|
|
1937
|
+
if (g) {
|
|
1938
|
+
const I = await E(g);
|
|
1939
|
+
f(I);
|
|
1940
|
+
}
|
|
1941
|
+
} catch (g) {
|
|
1942
|
+
console.warn("Error in playlistItem handler:", g);
|
|
1943
|
+
}
|
|
1944
|
+
});
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
} catch (D) {
|
|
1948
|
+
if (N) {
|
|
1949
|
+
const re = D instanceof Error ? D.message : String(D);
|
|
1950
|
+
_(re), console.error("VP Player initialization error:", D);
|
|
1824
1951
|
}
|
|
1825
1952
|
}
|
|
1826
1953
|
}, 150);
|
|
1827
1954
|
return () => {
|
|
1828
|
-
|
|
1955
|
+
N = !1, clearTimeout(G), m.current.forEach((D) => clearInterval(D)), m.current = [], y.current.forEach((D) => clearTimeout(D)), y.current = [], v.current = !1;
|
|
1829
1956
|
};
|
|
1830
1957
|
}, [
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
S,
|
|
1839
|
-
x,
|
|
1840
|
-
s
|
|
1841
|
-
]), xe(() => () => {
|
|
1842
|
-
if (p.current) {
|
|
1958
|
+
P,
|
|
1959
|
+
j,
|
|
1960
|
+
$,
|
|
1961
|
+
A,
|
|
1962
|
+
o
|
|
1963
|
+
]), be(() => () => {
|
|
1964
|
+
if (k.current) {
|
|
1843
1965
|
try {
|
|
1844
|
-
|
|
1845
|
-
} catch (
|
|
1846
|
-
console.warn(`Failed to destroy player ${
|
|
1966
|
+
k.current.destroy && k.current.destroy();
|
|
1967
|
+
} catch (Y) {
|
|
1968
|
+
console.warn(`Failed to destroy player ${$}:`, Y);
|
|
1847
1969
|
}
|
|
1848
|
-
|
|
1970
|
+
k.current = null;
|
|
1849
1971
|
}
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1972
|
+
v.current = !1;
|
|
1973
|
+
const N = document.getElementById($);
|
|
1974
|
+
N && (N.innerHTML = "");
|
|
1975
|
+
}, [$]), {
|
|
1976
|
+
playerRef: x,
|
|
1977
|
+
playerInstanceRef: k,
|
|
1978
|
+
isScriptLoaded: P,
|
|
1979
|
+
isLoading: j,
|
|
1980
|
+
error: B || L || A
|
|
1858
1981
|
};
|
|
1859
|
-
},
|
|
1860
|
-
var
|
|
1861
|
-
const { playerRef:
|
|
1982
|
+
}, Nr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: o, config: c = {}, apiKey: u, isReels: h = !1, hiddenClasses: l = [], onClose: f, className: x, onPlaylistData: k, onVideoStarted: v }) => {
|
|
1983
|
+
var $, X, N, Y;
|
|
1984
|
+
const { playerRef: d, playerInstanceRef: m, isScriptLoaded: y, isLoading: P, error: A } = $r({
|
|
1862
1985
|
playerId: e,
|
|
1863
1986
|
videoId: t,
|
|
1864
1987
|
version: r,
|
|
1865
1988
|
videoUrl: n,
|
|
1866
1989
|
projectId: a,
|
|
1867
1990
|
playlistId: i,
|
|
1868
|
-
scriptUrl:
|
|
1991
|
+
scriptUrl: o,
|
|
1869
1992
|
config: c,
|
|
1870
1993
|
apiKey: u,
|
|
1871
|
-
isReels:
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
},
|
|
1878
|
-
|
|
1994
|
+
isReels: h,
|
|
1995
|
+
onPlaylistData: k,
|
|
1996
|
+
onVideoStarted: v
|
|
1997
|
+
}), [S, L] = te(!0), _ = () => h && L(!0), p = () => {
|
|
1998
|
+
var G, D;
|
|
1999
|
+
L(!1), (D = (G = m.current) == null ? void 0 : G.play) == null || D.call(G), f == null || f();
|
|
2000
|
+
}, F = (X = ($ = c == null ? void 0 : c.config) == null ? void 0 : $.size) != null && X.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, j = (Y = (N = c == null ? void 0 : c.config) == null ? void 0 : N.size) != null && Y.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, B = We(e, t);
|
|
2001
|
+
return A ? z.jsxs(De, { type: "error", children: ["An error occurred: ", A] }) : P || !y ? z.jsx(De, { type: "loading", children: "Loading..." }) : z.jsxs(z.Fragment, { children: [h && !S ? z.jsx("div", { onClick: _ }) : null, !h && z.jsx("div", { children: z.jsx(nt, { id: B, ref: d, width: F || "100%", height: j || "auto", $hiddenClasses: l, className: x }) }, B), h && S && z.jsx(kr, { onClick: p, className: x, children: z.jsx(Er, { className: x, onClick: (G) => G.stopPropagation(), children: z.jsx("div", { children: z.jsx(nt, { id: B, ref: d, width: "100%", height: "auto", $hiddenClasses: l, className: x }) }, B) }) })] });
|
|
2002
|
+
}, vt = wt(void 0), Lr = ({ children: e }) => {
|
|
2003
|
+
const [t, r] = te(!1), [n, a] = te(null), [i, o] = te(null), c = Ye((l) => {
|
|
1879
2004
|
try {
|
|
1880
|
-
const
|
|
1881
|
-
a({ ...l, playerId:
|
|
2005
|
+
const f = We(l.playerId, l.videoId);
|
|
2006
|
+
a({ ...l, playerId: f }), r(!0), o(null);
|
|
1882
2007
|
} catch {
|
|
1883
|
-
|
|
2008
|
+
o("Failed to show player.");
|
|
1884
2009
|
}
|
|
1885
|
-
}, []), u =
|
|
1886
|
-
r(!1), a(null),
|
|
1887
|
-
}, []),
|
|
2010
|
+
}, []), u = Ye(() => {
|
|
2011
|
+
r(!1), a(null), o(null);
|
|
2012
|
+
}, []), h = ot(() => ({
|
|
1888
2013
|
showPlayer: c,
|
|
1889
2014
|
hidePlayer: u,
|
|
1890
2015
|
isPlayerVisible: t,
|
|
1891
2016
|
playerParams: n
|
|
1892
2017
|
}), [c, u, t, n]);
|
|
1893
|
-
return
|
|
1894
|
-
},
|
|
1895
|
-
const e =
|
|
2018
|
+
return z.jsxs(vt.Provider, { value: h, children: [e, i && z.jsx(De, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && z.jsx(Nr, { playerId: n.playerId, videoId: n.videoId, projectId: n.projectId, videoUrl: n.videoUrl, version: n.version, playlistId: n.playlistId, scriptUrl: n.scriptUrl, config: n.config, isReels: n.isReels, thumbnailUrl: n.thumbnailUrl, onClose: u, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
|
|
2019
|
+
}, Fr = () => {
|
|
2020
|
+
const e = it(vt);
|
|
1896
2021
|
if (!e)
|
|
1897
2022
|
throw new Error("useVPPlayer must be used within a VPPlayerProvider");
|
|
1898
2023
|
return e;
|
|
1899
|
-
},
|
|
2024
|
+
}, Br = {
|
|
1900
2025
|
projectId: "vp-player-projectId",
|
|
1901
2026
|
video: {
|
|
1902
2027
|
file: "",
|
|
@@ -1929,17 +2054,17 @@ const vr = ie.div`
|
|
|
1929
2054
|
shareButton: !0
|
|
1930
2055
|
}
|
|
1931
2056
|
}
|
|
1932
|
-
},
|
|
2057
|
+
}, Dr = {
|
|
1933
2058
|
config: {
|
|
1934
2059
|
autostartOnLoad: { state: !0, onMobile: !0, onData: !0 },
|
|
1935
2060
|
muted: !0
|
|
1936
2061
|
}
|
|
1937
|
-
},
|
|
2062
|
+
}, Ur = {
|
|
1938
2063
|
config: {
|
|
1939
2064
|
autoplay: !0,
|
|
1940
2065
|
muted: !0
|
|
1941
2066
|
}
|
|
1942
|
-
},
|
|
2067
|
+
}, Ve = {
|
|
1943
2068
|
video: {
|
|
1944
2069
|
advertising: !0,
|
|
1945
2070
|
ads: {
|
|
@@ -1950,14 +2075,14 @@ const vr = ie.div`
|
|
|
1950
2075
|
adAnnouncement: { state: !0, timeBeforeAd: 5 },
|
|
1951
2076
|
adsRequireInteraction: !1
|
|
1952
2077
|
}
|
|
1953
|
-
},
|
|
2078
|
+
}, Mr = (e, t, r = "time", n = 0) => {
|
|
1954
2079
|
var a;
|
|
1955
2080
|
return {
|
|
1956
|
-
...
|
|
2081
|
+
...Ve,
|
|
1957
2082
|
video: {
|
|
1958
|
-
...
|
|
2083
|
+
...Ve.video,
|
|
1959
2084
|
ads: {
|
|
1960
|
-
...(a =
|
|
2085
|
+
...(a = Ve.video) == null ? void 0 : a.ads,
|
|
1961
2086
|
adBreaks: [
|
|
1962
2087
|
{
|
|
1963
2088
|
adTagUrl: t,
|
|
@@ -1969,28 +2094,28 @@ const vr = ie.div`
|
|
|
1969
2094
|
}
|
|
1970
2095
|
}
|
|
1971
2096
|
};
|
|
1972
|
-
},
|
|
2097
|
+
}, zr = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", Wr = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4", Yr = "https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4", qr = "https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600", Gr = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=", Hr = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=";
|
|
1973
2098
|
export {
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
2099
|
+
Gr as AD_TAG_LINEAR_URL,
|
|
2100
|
+
Hr as AD_TAG_SKIPPABLE_LINEAR_URL,
|
|
2101
|
+
zr as BIG_BUCK_BUNNY_URL,
|
|
2102
|
+
Wr as ELEPHANTS_DREAM_URL,
|
|
2103
|
+
kr as Overlay,
|
|
2104
|
+
qr as PEXELS_THUMBNAIL_URL,
|
|
2105
|
+
Yr as PEXELS_VERTICAL_VIDEO_URL,
|
|
2106
|
+
nt as PlayerContainer,
|
|
2107
|
+
Er as PlayerWrapper,
|
|
2108
|
+
Nr as VPPlayer,
|
|
2109
|
+
Lr as VPPlayerProvider,
|
|
2110
|
+
Dr as baseConfig,
|
|
2111
|
+
Ve as baseConfigWithAds,
|
|
2112
|
+
Ur as baseConfigWithAutoplay,
|
|
2113
|
+
Or as buildVPPlayerConfig,
|
|
2114
|
+
Br as defaultVPPlayerConfig,
|
|
2115
|
+
jr as extractVideoId,
|
|
2116
|
+
Mr as getAdConfig,
|
|
2117
|
+
Fr as useVPPlayer,
|
|
2118
|
+
$r as useVPPlayerLogic,
|
|
2119
|
+
Rr as useVPPlayerScript,
|
|
2120
|
+
Ar as useVideoData
|
|
1996
2121
|
};
|