@react-scrollytelling/video 0.1.1 → 0.2.1
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/dist/index.cjs.js +7 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +272 -621
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/Video.d.ts +1 -1
- package/dist/src/components/Video.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -1,719 +1,370 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useRafThrottle as
|
|
3
|
-
var
|
|
1
|
+
import Y, { useRef as G, useEffect as ne, useState as oe, useCallback as I, useImperativeHandle as ae } from "react";
|
|
2
|
+
import { useRafThrottle as se } from "@react-scrollytelling/core";
|
|
3
|
+
var $ = { exports: {} }, P = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
|
-
* react-jsx-runtime.production.
|
|
6
|
+
* react-jsx-runtime.production.js
|
|
7
7
|
*
|
|
8
|
-
* Copyright (c)
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
9
|
*
|
|
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
|
-
return
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
function
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return
|
|
13
|
+
var z;
|
|
14
|
+
function ie() {
|
|
15
|
+
if (z)
|
|
16
|
+
return P;
|
|
17
|
+
z = 1;
|
|
18
|
+
var i = Symbol.for("react.transitional.element"), c = Symbol.for("react.fragment");
|
|
19
|
+
function l(f, n, s) {
|
|
20
|
+
var d = null;
|
|
21
|
+
if (s !== void 0 && (d = "" + s), n.key !== void 0 && (d = "" + n.key), "key" in n) {
|
|
22
|
+
s = {};
|
|
23
|
+
for (var m in n)
|
|
24
|
+
m !== "key" && (s[m] = n[m]);
|
|
25
|
+
} else
|
|
26
|
+
s = n;
|
|
27
|
+
return n = s.ref, {
|
|
28
|
+
$$typeof: i,
|
|
29
|
+
type: f,
|
|
30
|
+
key: d,
|
|
31
|
+
ref: n !== void 0 ? n : null,
|
|
32
|
+
props: s
|
|
33
|
+
};
|
|
28
34
|
}
|
|
29
|
-
return
|
|
35
|
+
return P.Fragment = c, P.jsx = l, P.jsxs = l, P;
|
|
30
36
|
}
|
|
31
|
-
var
|
|
37
|
+
var O = {};
|
|
32
38
|
/**
|
|
33
39
|
* @license React
|
|
34
40
|
* react-jsx-runtime.development.js
|
|
35
41
|
*
|
|
36
|
-
* Copyright (c)
|
|
42
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
37
43
|
*
|
|
38
44
|
* This source code is licensed under the MIT license found in the
|
|
39
45
|
* LICENSE file in the root directory of this source tree.
|
|
40
46
|
*/
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
function I(e) {
|
|
46
|
-
if (e === null || typeof e != "object")
|
|
47
|
-
return null;
|
|
48
|
-
var r = M && e[M] || e[K];
|
|
49
|
-
return typeof r == "function" ? r : null;
|
|
50
|
-
}
|
|
51
|
-
var P = S.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
-
function d(e) {
|
|
53
|
-
{
|
|
54
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
55
|
-
t[n - 1] = arguments[n];
|
|
56
|
-
De("error", e, t);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function De(e, r, t) {
|
|
60
|
-
{
|
|
61
|
-
var n = P.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
62
|
-
i !== "" && (r += "%s", t = t.concat([i]));
|
|
63
|
-
var u = t.map(function(o) {
|
|
64
|
-
return String(o);
|
|
65
|
-
});
|
|
66
|
-
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
var Fe = !1, Ae = !1, Ie = !1, $e = !1, We = !1, oe;
|
|
70
|
-
oe = Symbol.for("react.module.reference");
|
|
71
|
-
function Ye(e) {
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === b || e === T || We || e === m || e === w || e === c || $e || e === k || Fe || Ae || Ie || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === R || e.$$typeof === O || e.$$typeof === h || e.$$typeof === s || // This needs to include all possible module reference object
|
|
73
|
-
// types supported by any Flight configuration anywhere since
|
|
74
|
-
// we don't know which Flight build this will end up being used
|
|
75
|
-
// with.
|
|
76
|
-
e.$$typeof === oe || e.getModuleId !== void 0));
|
|
77
|
-
}
|
|
78
|
-
function Ve(e, r, t) {
|
|
79
|
-
var n = e.displayName;
|
|
80
|
-
if (n)
|
|
81
|
-
return n;
|
|
82
|
-
var i = r.displayName || r.name || "";
|
|
83
|
-
return i !== "" ? t + "(" + i + ")" : t;
|
|
84
|
-
}
|
|
85
|
-
function ie(e) {
|
|
86
|
-
return e.displayName || "Context";
|
|
87
|
-
}
|
|
88
|
-
function _(e) {
|
|
47
|
+
var q;
|
|
48
|
+
function ce() {
|
|
49
|
+
return q || (q = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
|
+
function i(e) {
|
|
89
51
|
if (e == null)
|
|
90
52
|
return null;
|
|
91
|
-
if (typeof e
|
|
92
|
-
return e.displayName || e.name || null;
|
|
53
|
+
if (typeof e == "function")
|
|
54
|
+
return e.$$typeof === ee ? null : e.displayName || e.name || null;
|
|
93
55
|
if (typeof e == "string")
|
|
94
56
|
return e;
|
|
95
57
|
switch (e) {
|
|
96
|
-
case b:
|
|
97
|
-
return "Fragment";
|
|
98
|
-
case C:
|
|
99
|
-
return "Portal";
|
|
100
58
|
case T:
|
|
59
|
+
return "Fragment";
|
|
60
|
+
case A:
|
|
101
61
|
return "Profiler";
|
|
102
|
-
case
|
|
62
|
+
case k:
|
|
103
63
|
return "StrictMode";
|
|
104
|
-
case
|
|
64
|
+
case B:
|
|
105
65
|
return "Suspense";
|
|
106
|
-
case
|
|
66
|
+
case Z:
|
|
107
67
|
return "SuspenseList";
|
|
68
|
+
case K:
|
|
69
|
+
return "Activity";
|
|
108
70
|
}
|
|
109
71
|
if (typeof e == "object")
|
|
110
|
-
switch (
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return
|
|
117
|
-
case
|
|
118
|
-
return
|
|
119
|
-
case
|
|
120
|
-
var
|
|
121
|
-
return
|
|
122
|
-
case
|
|
123
|
-
|
|
72
|
+
switch (typeof e.tag == "number" && console.error(
|
|
73
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
74
|
+
), e.$$typeof) {
|
|
75
|
+
case w:
|
|
76
|
+
return "Portal";
|
|
77
|
+
case X:
|
|
78
|
+
return (e.displayName || "Context") + ".Provider";
|
|
79
|
+
case J:
|
|
80
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
81
|
+
case H:
|
|
82
|
+
var r = e.render;
|
|
83
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
84
|
+
case Q:
|
|
85
|
+
return r = e.displayName || null, r !== null ? r : i(e.type) || "Memo";
|
|
86
|
+
case F:
|
|
87
|
+
r = e._payload, e = e._init;
|
|
124
88
|
try {
|
|
125
|
-
return
|
|
126
|
-
} catch (
|
|
127
|
-
return null;
|
|
89
|
+
return i(e(r));
|
|
90
|
+
} catch (t) {
|
|
128
91
|
}
|
|
129
|
-
}
|
|
130
92
|
}
|
|
131
93
|
return null;
|
|
132
94
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
pe.__reactDisabledLog = !0;
|
|
137
|
-
function Le() {
|
|
138
|
-
{
|
|
139
|
-
if ($ === 0) {
|
|
140
|
-
ue = console.log, se = console.info, le = console.warn, fe = console.error, ce = console.group, de = console.groupCollapsed, ve = console.groupEnd;
|
|
141
|
-
var e = {
|
|
142
|
-
configurable: !0,
|
|
143
|
-
enumerable: !0,
|
|
144
|
-
value: pe,
|
|
145
|
-
writable: !0
|
|
146
|
-
};
|
|
147
|
-
Object.defineProperties(console, {
|
|
148
|
-
info: e,
|
|
149
|
-
log: e,
|
|
150
|
-
warn: e,
|
|
151
|
-
error: e,
|
|
152
|
-
group: e,
|
|
153
|
-
groupCollapsed: e,
|
|
154
|
-
groupEnd: e
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
$++;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
function Me() {
|
|
161
|
-
{
|
|
162
|
-
if ($--, $ === 0) {
|
|
163
|
-
var e = {
|
|
164
|
-
configurable: !0,
|
|
165
|
-
enumerable: !0,
|
|
166
|
-
writable: !0
|
|
167
|
-
};
|
|
168
|
-
Object.defineProperties(console, {
|
|
169
|
-
log: j({}, e, {
|
|
170
|
-
value: ue
|
|
171
|
-
}),
|
|
172
|
-
info: j({}, e, {
|
|
173
|
-
value: se
|
|
174
|
-
}),
|
|
175
|
-
warn: j({}, e, {
|
|
176
|
-
value: le
|
|
177
|
-
}),
|
|
178
|
-
error: j({}, e, {
|
|
179
|
-
value: fe
|
|
180
|
-
}),
|
|
181
|
-
group: j({}, e, {
|
|
182
|
-
value: ce
|
|
183
|
-
}),
|
|
184
|
-
groupCollapsed: j({}, e, {
|
|
185
|
-
value: de
|
|
186
|
-
}),
|
|
187
|
-
groupEnd: j({}, e, {
|
|
188
|
-
value: ve
|
|
189
|
-
})
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
$ < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
var G = P.ReactCurrentDispatcher, z;
|
|
196
|
-
function U(e, r, t) {
|
|
197
|
-
{
|
|
198
|
-
if (z === void 0)
|
|
199
|
-
try {
|
|
200
|
-
throw Error();
|
|
201
|
-
} catch (i) {
|
|
202
|
-
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
-
z = n && n[1] || "";
|
|
204
|
-
}
|
|
205
|
-
return `
|
|
206
|
-
` + z + e;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
var H = !1, N;
|
|
210
|
-
{
|
|
211
|
-
var Ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
-
N = new Ue();
|
|
95
|
+
function c(e) {
|
|
96
|
+
return "" + e;
|
|
213
97
|
}
|
|
214
|
-
function
|
|
215
|
-
if (!e || H)
|
|
216
|
-
return "";
|
|
217
|
-
{
|
|
218
|
-
var t = N.get(e);
|
|
219
|
-
if (t !== void 0)
|
|
220
|
-
return t;
|
|
221
|
-
}
|
|
222
|
-
var n;
|
|
223
|
-
H = !0;
|
|
224
|
-
var i = Error.prepareStackTrace;
|
|
225
|
-
Error.prepareStackTrace = void 0;
|
|
226
|
-
var u;
|
|
227
|
-
u = G.current, G.current = null, Le();
|
|
98
|
+
function l(e) {
|
|
228
99
|
try {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
if (Object.defineProperty(o.prototype, "props", {
|
|
234
|
-
set: function() {
|
|
235
|
-
throw Error();
|
|
236
|
-
}
|
|
237
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
|
-
try {
|
|
239
|
-
Reflect.construct(o, []);
|
|
240
|
-
} catch (p) {
|
|
241
|
-
n = p;
|
|
242
|
-
}
|
|
243
|
-
Reflect.construct(e, [], o);
|
|
244
|
-
} else {
|
|
245
|
-
try {
|
|
246
|
-
o.call();
|
|
247
|
-
} catch (p) {
|
|
248
|
-
n = p;
|
|
249
|
-
}
|
|
250
|
-
e.call(o.prototype);
|
|
251
|
-
}
|
|
252
|
-
} else {
|
|
253
|
-
try {
|
|
254
|
-
throw Error();
|
|
255
|
-
} catch (p) {
|
|
256
|
-
n = p;
|
|
257
|
-
}
|
|
258
|
-
e();
|
|
259
|
-
}
|
|
260
|
-
} catch (p) {
|
|
261
|
-
if (p && n && typeof p.stack == "string") {
|
|
262
|
-
for (var a = p.stack.split(`
|
|
263
|
-
`), v = n.stack.split(`
|
|
264
|
-
`), l = a.length - 1, f = v.length - 1; l >= 1 && f >= 0 && a[l] !== v[f]; )
|
|
265
|
-
f--;
|
|
266
|
-
for (; l >= 1 && f >= 0; l--, f--)
|
|
267
|
-
if (a[l] !== v[f]) {
|
|
268
|
-
if (l !== 1 || f !== 1)
|
|
269
|
-
do
|
|
270
|
-
if (l--, f--, f < 0 || a[l] !== v[f]) {
|
|
271
|
-
var y = `
|
|
272
|
-
` + a[l].replace(" at new ", " at ");
|
|
273
|
-
return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, y), y;
|
|
274
|
-
}
|
|
275
|
-
while (l >= 1 && f >= 0);
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
} finally {
|
|
280
|
-
H = !1, G.current = u, Me(), Error.prepareStackTrace = i;
|
|
281
|
-
}
|
|
282
|
-
var F = e ? e.displayName || e.name : "", x = F ? U(F) : "";
|
|
283
|
-
return typeof e == "function" && N.set(e, x), x;
|
|
284
|
-
}
|
|
285
|
-
function Ne(e, r, t) {
|
|
286
|
-
return ye(e, !1);
|
|
287
|
-
}
|
|
288
|
-
function qe(e) {
|
|
289
|
-
var r = e.prototype;
|
|
290
|
-
return !!(r && r.isReactComponent);
|
|
291
|
-
}
|
|
292
|
-
function q(e, r, t) {
|
|
293
|
-
if (e == null)
|
|
294
|
-
return "";
|
|
295
|
-
if (typeof e == "function")
|
|
296
|
-
return ye(e, qe(e));
|
|
297
|
-
if (typeof e == "string")
|
|
298
|
-
return U(e);
|
|
299
|
-
switch (e) {
|
|
300
|
-
case w:
|
|
301
|
-
return U("Suspense");
|
|
302
|
-
case c:
|
|
303
|
-
return U("SuspenseList");
|
|
304
|
-
}
|
|
305
|
-
if (typeof e == "object")
|
|
306
|
-
switch (e.$$typeof) {
|
|
307
|
-
case s:
|
|
308
|
-
return Ne(e.render);
|
|
309
|
-
case R:
|
|
310
|
-
return q(e.type, r, t);
|
|
311
|
-
case E: {
|
|
312
|
-
var n = e, i = n._payload, u = n._init;
|
|
313
|
-
try {
|
|
314
|
-
return q(u(i), r, t);
|
|
315
|
-
} catch (o) {
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
return "";
|
|
320
|
-
}
|
|
321
|
-
var W = Object.prototype.hasOwnProperty, ge = {}, he = P.ReactDebugCurrentFrame;
|
|
322
|
-
function B(e) {
|
|
323
|
-
if (e) {
|
|
324
|
-
var r = e._owner, t = q(e.type, e._source, r ? r.type : null);
|
|
325
|
-
he.setExtraStackFrame(t);
|
|
326
|
-
} else
|
|
327
|
-
he.setExtraStackFrame(null);
|
|
328
|
-
}
|
|
329
|
-
function Be(e, r, t, n, i) {
|
|
330
|
-
{
|
|
331
|
-
var u = Function.call.bind(W);
|
|
332
|
-
for (var o in e)
|
|
333
|
-
if (u(e, o)) {
|
|
334
|
-
var a = void 0;
|
|
335
|
-
try {
|
|
336
|
-
if (typeof e[o] != "function") {
|
|
337
|
-
var v = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
-
throw v.name = "Invariant Violation", v;
|
|
339
|
-
}
|
|
340
|
-
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
-
} catch (l) {
|
|
342
|
-
a = l;
|
|
343
|
-
}
|
|
344
|
-
a && !(a instanceof Error) && (B(i), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), B(null)), a instanceof Error && !(a.message in ge) && (ge[a.message] = !0, B(i), d("Failed %s type: %s", t, a.message), B(null));
|
|
345
|
-
}
|
|
100
|
+
c(e);
|
|
101
|
+
var r = !1;
|
|
102
|
+
} catch (R) {
|
|
103
|
+
r = !0;
|
|
346
104
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
return t;
|
|
105
|
+
if (r) {
|
|
106
|
+
r = console;
|
|
107
|
+
var t = r.error, o = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
108
|
+
return t.call(
|
|
109
|
+
r,
|
|
110
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
|
+
o
|
|
112
|
+
), c(e);
|
|
356
113
|
}
|
|
357
114
|
}
|
|
358
|
-
function
|
|
115
|
+
function f(e) {
|
|
116
|
+
if (e === T)
|
|
117
|
+
return "<>";
|
|
118
|
+
if (typeof e == "object" && e !== null && e.$$typeof === F)
|
|
119
|
+
return "<...>";
|
|
359
120
|
try {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
121
|
+
var r = i(e);
|
|
122
|
+
return r ? "<" + r + ">" : "<...>";
|
|
123
|
+
} catch (t) {
|
|
124
|
+
return "<...>";
|
|
363
125
|
}
|
|
364
126
|
}
|
|
365
|
-
function
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
function be(e) {
|
|
369
|
-
if (Ge(e))
|
|
370
|
-
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), Re(e);
|
|
127
|
+
function n() {
|
|
128
|
+
var e = g.A;
|
|
129
|
+
return e === null ? null : e.getOwner();
|
|
371
130
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
ref: !0,
|
|
375
|
-
__self: !0,
|
|
376
|
-
__source: !0
|
|
377
|
-
}, me, Ee, Z;
|
|
378
|
-
Z = {};
|
|
379
|
-
function He(e) {
|
|
380
|
-
if (W.call(e, "ref")) {
|
|
381
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
382
|
-
if (r && r.isReactWarning)
|
|
383
|
-
return !1;
|
|
384
|
-
}
|
|
385
|
-
return e.ref !== void 0;
|
|
131
|
+
function s() {
|
|
132
|
+
return Error("react-stack-top-frame");
|
|
386
133
|
}
|
|
387
|
-
function
|
|
388
|
-
if (
|
|
134
|
+
function d(e) {
|
|
135
|
+
if (D.call(e, "key")) {
|
|
389
136
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
390
137
|
if (r && r.isReactWarning)
|
|
391
138
|
return !1;
|
|
392
139
|
}
|
|
393
140
|
return e.key !== void 0;
|
|
394
141
|
}
|
|
395
|
-
function
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
function Qe(e, r) {
|
|
402
|
-
{
|
|
403
|
-
var t = function() {
|
|
404
|
-
me || (me = !0, d("%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://reactjs.org/link/special-props)", r));
|
|
405
|
-
};
|
|
406
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
407
|
-
get: t,
|
|
408
|
-
configurable: !0
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
function er(e, r) {
|
|
413
|
-
{
|
|
414
|
-
var t = function() {
|
|
415
|
-
Ee || (Ee = !0, d("%s: `ref` 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://reactjs.org/link/special-props)", r));
|
|
416
|
-
};
|
|
417
|
-
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
418
|
-
get: t,
|
|
419
|
-
configurable: !0
|
|
420
|
-
});
|
|
142
|
+
function m(e, r) {
|
|
143
|
+
function t() {
|
|
144
|
+
L || (L = !0, console.error(
|
|
145
|
+
"%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)",
|
|
146
|
+
r
|
|
147
|
+
));
|
|
421
148
|
}
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
149
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
150
|
+
get: t,
|
|
151
|
+
configurable: !0
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
function E() {
|
|
155
|
+
var e = i(this.type);
|
|
156
|
+
return M[e] || (M[e] = !0, console.error(
|
|
157
|
+
"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."
|
|
158
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
159
|
+
}
|
|
160
|
+
function S(e, r, t, o, R, u, y, N) {
|
|
161
|
+
return t = u.ref, e = {
|
|
162
|
+
$$typeof: j,
|
|
428
163
|
type: e,
|
|
429
164
|
key: r,
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
165
|
+
props: u,
|
|
166
|
+
_owner: R
|
|
167
|
+
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
168
|
+
enumerable: !1,
|
|
169
|
+
get: E
|
|
170
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
436
171
|
configurable: !1,
|
|
437
172
|
enumerable: !1,
|
|
438
173
|
writable: !0,
|
|
439
|
-
value:
|
|
440
|
-
}), Object.defineProperty(
|
|
174
|
+
value: 0
|
|
175
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
441
176
|
configurable: !1,
|
|
442
177
|
enumerable: !1,
|
|
443
|
-
writable: !
|
|
444
|
-
value:
|
|
445
|
-
}), Object.defineProperty(
|
|
178
|
+
writable: !0,
|
|
179
|
+
value: null
|
|
180
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
446
181
|
configurable: !1,
|
|
447
182
|
enumerable: !1,
|
|
448
|
-
writable: !
|
|
449
|
-
value:
|
|
450
|
-
}), Object.
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
}
|
|
470
|
-
var Q = P.ReactCurrentOwner, _e = P.ReactDebugCurrentFrame;
|
|
471
|
-
function D(e) {
|
|
472
|
-
if (e) {
|
|
473
|
-
var r = e._owner, t = q(e.type, e._source, r ? r.type : null);
|
|
474
|
-
_e.setExtraStackFrame(t);
|
|
475
|
-
} else
|
|
476
|
-
_e.setExtraStackFrame(null);
|
|
477
|
-
}
|
|
478
|
-
var ee;
|
|
479
|
-
ee = !1;
|
|
480
|
-
function re(e) {
|
|
481
|
-
return typeof e == "object" && e !== null && e.$$typeof === g;
|
|
482
|
-
}
|
|
483
|
-
function Te() {
|
|
484
|
-
{
|
|
485
|
-
if (Q.current) {
|
|
486
|
-
var e = _(Q.current.type);
|
|
487
|
-
if (e)
|
|
488
|
-
return `
|
|
489
|
-
|
|
490
|
-
Check the render method of \`` + e + "`.";
|
|
491
|
-
}
|
|
492
|
-
return "";
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
function nr(e) {
|
|
496
|
-
return "";
|
|
497
|
-
}
|
|
498
|
-
var Oe = {};
|
|
499
|
-
function ar(e) {
|
|
500
|
-
{
|
|
501
|
-
var r = Te();
|
|
502
|
-
if (!r) {
|
|
503
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
504
|
-
t && (r = `
|
|
505
|
-
|
|
506
|
-
Check the top-level render call using <` + t + ">.");
|
|
507
|
-
}
|
|
508
|
-
return r;
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
function Pe(e, r) {
|
|
512
|
-
{
|
|
513
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
514
|
-
return;
|
|
515
|
-
e._store.validated = !0;
|
|
516
|
-
var t = ar(r);
|
|
517
|
-
if (Oe[t])
|
|
518
|
-
return;
|
|
519
|
-
Oe[t] = !0;
|
|
520
|
-
var n = "";
|
|
521
|
-
e && e._owner && e._owner !== Q.current && (n = " It was passed a child from " + _(e._owner.type) + "."), D(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), D(null);
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
function Se(e, r) {
|
|
525
|
-
{
|
|
526
|
-
if (typeof e != "object")
|
|
527
|
-
return;
|
|
528
|
-
if (X(e))
|
|
529
|
-
for (var t = 0; t < e.length; t++) {
|
|
530
|
-
var n = e[t];
|
|
531
|
-
re(n) && Pe(n, r);
|
|
532
|
-
}
|
|
533
|
-
else if (re(e))
|
|
534
|
-
e._store && (e._store.validated = !0);
|
|
535
|
-
else if (e) {
|
|
536
|
-
var i = I(e);
|
|
537
|
-
if (typeof i == "function" && i !== e.entries)
|
|
538
|
-
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
539
|
-
re(o.value) && Pe(o.value, r);
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
function or(e) {
|
|
544
|
-
{
|
|
545
|
-
var r = e.type;
|
|
546
|
-
if (r == null || typeof r == "string")
|
|
547
|
-
return;
|
|
548
|
-
var t;
|
|
549
|
-
if (typeof r == "function")
|
|
550
|
-
t = r.propTypes;
|
|
551
|
-
else if (typeof r == "object" && (r.$$typeof === s || // Note: Memo only checks outer props here.
|
|
552
|
-
// Inner props are checked in the reconciler.
|
|
553
|
-
r.$$typeof === R))
|
|
554
|
-
t = r.propTypes;
|
|
183
|
+
writable: !0,
|
|
184
|
+
value: y
|
|
185
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
186
|
+
configurable: !1,
|
|
187
|
+
enumerable: !1,
|
|
188
|
+
writable: !0,
|
|
189
|
+
value: N
|
|
190
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
191
|
+
}
|
|
192
|
+
function p(e, r, t, o, R, u, y, N) {
|
|
193
|
+
var a = r.children;
|
|
194
|
+
if (a !== void 0)
|
|
195
|
+
if (o)
|
|
196
|
+
if (re(a)) {
|
|
197
|
+
for (o = 0; o < a.length; o++)
|
|
198
|
+
h(a[o]);
|
|
199
|
+
Object.freeze && Object.freeze(a);
|
|
200
|
+
} else
|
|
201
|
+
console.error(
|
|
202
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
203
|
+
);
|
|
555
204
|
else
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
}
|
|
565
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
function ir(e) {
|
|
569
|
-
{
|
|
570
|
-
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
571
|
-
var n = r[t];
|
|
572
|
-
if (n !== "children" && n !== "key") {
|
|
573
|
-
D(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
|
|
574
|
-
break;
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
e.ref !== null && (D(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
var we = {};
|
|
581
|
-
function Ce(e, r, t, n, i, u) {
|
|
582
|
-
{
|
|
583
|
-
var o = Ye(e);
|
|
584
|
-
if (!o) {
|
|
585
|
-
var a = "";
|
|
586
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
587
|
-
var v = nr();
|
|
588
|
-
v ? a += v : a += Te();
|
|
589
|
-
var l;
|
|
590
|
-
e === null ? l = "null" : X(e) ? l = "array" : e !== void 0 && e.$$typeof === g ? (l = "<" + (_(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
|
|
591
|
-
}
|
|
592
|
-
var f = tr(e, r, t, i, u);
|
|
593
|
-
if (f == null)
|
|
594
|
-
return f;
|
|
595
|
-
if (o) {
|
|
596
|
-
var y = r.children;
|
|
597
|
-
if (y !== void 0)
|
|
598
|
-
if (n)
|
|
599
|
-
if (X(y)) {
|
|
600
|
-
for (var F = 0; F < y.length; F++)
|
|
601
|
-
Se(y[F], e);
|
|
602
|
-
Object.freeze && Object.freeze(y);
|
|
603
|
-
} else
|
|
604
|
-
d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
605
|
-
else
|
|
606
|
-
Se(y, e);
|
|
607
|
-
}
|
|
608
|
-
if (W.call(r, "key")) {
|
|
609
|
-
var x = _(e), p = Object.keys(r).filter(function(dr) {
|
|
610
|
-
return dr !== "key";
|
|
611
|
-
}), te = p.length > 0 ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
|
-
if (!we[x + te]) {
|
|
613
|
-
var cr = p.length > 0 ? "{" + p.join(": ..., ") + ": ...}" : "{}";
|
|
614
|
-
d(`A props object containing a "key" prop is being spread into JSX:
|
|
205
|
+
h(a);
|
|
206
|
+
if (D.call(r, "key")) {
|
|
207
|
+
a = i(e);
|
|
208
|
+
var _ = Object.keys(r).filter(function(te) {
|
|
209
|
+
return te !== "key";
|
|
210
|
+
});
|
|
211
|
+
o = 0 < _.length ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}", U[a + o] || (_ = 0 < _.length ? "{" + _.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
212
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
615
213
|
let props = %s;
|
|
616
214
|
<%s {...props} />
|
|
617
215
|
React keys must be passed directly to JSX without using spread:
|
|
618
216
|
let props = %s;
|
|
619
|
-
<%s key={someKey} {...props} />`,
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
217
|
+
<%s key={someKey} {...props} />`,
|
|
218
|
+
o,
|
|
219
|
+
a,
|
|
220
|
+
_,
|
|
221
|
+
a
|
|
222
|
+
), U[a + o] = !0);
|
|
623
223
|
}
|
|
224
|
+
if (a = null, t !== void 0 && (l(t), a = "" + t), d(r) && (l(r.key), a = "" + r.key), "key" in r) {
|
|
225
|
+
t = {};
|
|
226
|
+
for (var C in r)
|
|
227
|
+
C !== "key" && (t[C] = r[C]);
|
|
228
|
+
} else
|
|
229
|
+
t = r;
|
|
230
|
+
return a && m(
|
|
231
|
+
t,
|
|
232
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
233
|
+
), S(
|
|
234
|
+
e,
|
|
235
|
+
a,
|
|
236
|
+
u,
|
|
237
|
+
R,
|
|
238
|
+
n(),
|
|
239
|
+
t,
|
|
240
|
+
y,
|
|
241
|
+
N
|
|
242
|
+
);
|
|
624
243
|
}
|
|
625
|
-
function
|
|
626
|
-
|
|
627
|
-
}
|
|
628
|
-
function sr(e, r, t) {
|
|
629
|
-
return Ce(e, r, t, !1);
|
|
244
|
+
function h(e) {
|
|
245
|
+
typeof e == "object" && e !== null && e.$$typeof === j && e._store && (e._store.validated = 1);
|
|
630
246
|
}
|
|
631
|
-
var
|
|
632
|
-
|
|
633
|
-
|
|
247
|
+
var v = Y, j = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), X = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), Z = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), K = Symbol.for("react.activity"), ee = Symbol.for("react.client.reference"), g = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, re = Array.isArray, x = console.createTask ? console.createTask : function() {
|
|
248
|
+
return null;
|
|
249
|
+
};
|
|
250
|
+
v = {
|
|
251
|
+
react_stack_bottom_frame: function(e) {
|
|
252
|
+
return e();
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
var L, M = {}, W = v.react_stack_bottom_frame.bind(
|
|
256
|
+
v,
|
|
257
|
+
s
|
|
258
|
+
)(), V = x(f(s)), U = {};
|
|
259
|
+
O.Fragment = T, O.jsx = function(e, r, t, o, R) {
|
|
260
|
+
var u = 1e4 > g.recentlyCreatedOwnerStacks++;
|
|
261
|
+
return p(
|
|
262
|
+
e,
|
|
263
|
+
r,
|
|
264
|
+
t,
|
|
265
|
+
!1,
|
|
266
|
+
o,
|
|
267
|
+
R,
|
|
268
|
+
u ? Error("react-stack-top-frame") : W,
|
|
269
|
+
u ? x(f(e)) : V
|
|
270
|
+
);
|
|
271
|
+
}, O.jsxs = function(e, r, t, o, R) {
|
|
272
|
+
var u = 1e4 > g.recentlyCreatedOwnerStacks++;
|
|
273
|
+
return p(
|
|
274
|
+
e,
|
|
275
|
+
r,
|
|
276
|
+
t,
|
|
277
|
+
!0,
|
|
278
|
+
o,
|
|
279
|
+
R,
|
|
280
|
+
u ? Error("react-stack-top-frame") : W,
|
|
281
|
+
u ? x(f(e)) : V
|
|
282
|
+
);
|
|
283
|
+
};
|
|
284
|
+
}()), O;
|
|
634
285
|
}
|
|
635
|
-
process.env.NODE_ENV === "production" ?
|
|
636
|
-
var
|
|
637
|
-
const
|
|
638
|
-
src:
|
|
639
|
-
srcWebm:
|
|
640
|
-
width:
|
|
641
|
-
height:
|
|
642
|
-
thumbnail:
|
|
643
|
-
ratio:
|
|
644
|
-
className:
|
|
645
|
-
loadingOverlay:
|
|
286
|
+
process.env.NODE_ENV === "production" ? $.exports = ie() : $.exports = ce();
|
|
287
|
+
var b = $.exports;
|
|
288
|
+
const de = ({
|
|
289
|
+
src: i,
|
|
290
|
+
srcWebm: c,
|
|
291
|
+
width: l,
|
|
292
|
+
height: f,
|
|
293
|
+
thumbnail: n,
|
|
294
|
+
ratio: s = 0,
|
|
295
|
+
className: d,
|
|
296
|
+
loadingOverlay: m
|
|
646
297
|
}) => {
|
|
647
|
-
const
|
|
648
|
-
return
|
|
649
|
-
|
|
650
|
-
}, [
|
|
651
|
-
|
|
298
|
+
const E = G(null);
|
|
299
|
+
return ne(() => {
|
|
300
|
+
E.current && E.current.setRatio(s);
|
|
301
|
+
}, [s]), /* @__PURE__ */ b.jsx(
|
|
302
|
+
ue,
|
|
652
303
|
{
|
|
653
|
-
ref:
|
|
654
|
-
width:
|
|
655
|
-
height:
|
|
656
|
-
src:
|
|
657
|
-
srcWebm:
|
|
658
|
-
className:
|
|
659
|
-
thumbnail:
|
|
660
|
-
loadingOverlay:
|
|
304
|
+
ref: E,
|
|
305
|
+
width: l,
|
|
306
|
+
height: f,
|
|
307
|
+
src: i,
|
|
308
|
+
srcWebm: c,
|
|
309
|
+
className: d,
|
|
310
|
+
thumbnail: n,
|
|
311
|
+
loadingOverlay: m
|
|
661
312
|
}
|
|
662
313
|
);
|
|
663
|
-
},
|
|
664
|
-
|
|
665
|
-
({ src:
|
|
666
|
-
const
|
|
667
|
-
const
|
|
668
|
-
if (!
|
|
314
|
+
}, ue = Y.memo(
|
|
315
|
+
Y.forwardRef(
|
|
316
|
+
({ src: i, srcWebm: c, width: l, height: f, thumbnail: n, className: s, loadingOverlay: d }, m) => {
|
|
317
|
+
const E = G(null), [S, p] = oe(!0), h = I((T) => {
|
|
318
|
+
const k = E.current;
|
|
319
|
+
if (!k)
|
|
669
320
|
return;
|
|
670
|
-
const
|
|
671
|
-
isNaN(
|
|
672
|
-
|
|
321
|
+
const A = k.duration;
|
|
322
|
+
isNaN(A) || requestAnimationFrame(() => {
|
|
323
|
+
k.currentTime = Math.round(T * A * 100) / 100;
|
|
673
324
|
});
|
|
674
|
-
}, []),
|
|
675
|
-
|
|
676
|
-
|
|
325
|
+
}, []), v = se(h);
|
|
326
|
+
ae(
|
|
327
|
+
m,
|
|
677
328
|
() => ({
|
|
678
|
-
setRatio:
|
|
329
|
+
setRatio: v
|
|
679
330
|
}),
|
|
680
|
-
[
|
|
331
|
+
[v]
|
|
681
332
|
);
|
|
682
|
-
const
|
|
683
|
-
|
|
684
|
-
}, []),
|
|
685
|
-
|
|
333
|
+
const j = I(() => {
|
|
334
|
+
p(!0);
|
|
335
|
+
}, []), w = I(() => {
|
|
336
|
+
p(!1);
|
|
686
337
|
}, []);
|
|
687
|
-
return /* @__PURE__ */
|
|
688
|
-
/* @__PURE__ */
|
|
338
|
+
return /* @__PURE__ */ b.jsxs("div", { style: { position: "relative", width: "100%", height: "100%" }, children: [
|
|
339
|
+
/* @__PURE__ */ b.jsxs(
|
|
689
340
|
"video",
|
|
690
341
|
{
|
|
691
|
-
ref:
|
|
692
|
-
width:
|
|
693
|
-
height:
|
|
694
|
-
className:
|
|
342
|
+
ref: E,
|
|
343
|
+
width: l,
|
|
344
|
+
height: f,
|
|
345
|
+
className: s,
|
|
695
346
|
muted: !0,
|
|
696
347
|
disablePictureInPicture: !0,
|
|
697
348
|
disableRemotePlayback: !0,
|
|
698
349
|
playsInline: !0,
|
|
699
350
|
controls: !1,
|
|
700
351
|
preload: "auto",
|
|
701
|
-
onWaiting:
|
|
702
|
-
onCanPlay:
|
|
703
|
-
poster:
|
|
352
|
+
onWaiting: j,
|
|
353
|
+
onCanPlay: w,
|
|
354
|
+
poster: n,
|
|
704
355
|
children: [
|
|
705
|
-
|
|
706
|
-
/* @__PURE__ */
|
|
356
|
+
c && /* @__PURE__ */ b.jsx("source", { src: n ? c : `${c}#t=0.1`, type: "video/webm" }),
|
|
357
|
+
/* @__PURE__ */ b.jsx("source", { src: n ? i : `${i}#t=0.1`, type: "video/mp4" })
|
|
707
358
|
]
|
|
708
359
|
}
|
|
709
360
|
),
|
|
710
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ b.jsx("div", { style: { position: "absolute", inset: 0 }, children: S && d })
|
|
711
362
|
] });
|
|
712
363
|
}
|
|
713
364
|
)
|
|
714
365
|
);
|
|
715
366
|
export {
|
|
716
|
-
|
|
717
|
-
|
|
367
|
+
de as Video,
|
|
368
|
+
ue as VideoWithImperativeHandle
|
|
718
369
|
};
|
|
719
370
|
//# sourceMappingURL=index.es.js.map
|