motioncss-ui 0.1.4 → 0.1.6
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 +286 -15
- package/dist/motioncss-ui.css +1 -0
- package/dist/motioncss-ui.js +648 -473
- package/dist/motioncss-ui.umd.cjs +27 -23
- package/package.json +2 -2
package/dist/motioncss-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import Ne, { useRef as O, useState as oe, useEffect as z, useCallback as Rr, createContext as Be, useContext as qe } from "react";
|
|
2
|
+
var ae = { exports: {} }, Z = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -10,20 +10,20 @@ var ne = { exports: {} }, z = {};
|
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
12
|
var Ye;
|
|
13
|
-
function
|
|
14
|
-
if (Ye) return
|
|
13
|
+
function xr() {
|
|
14
|
+
if (Ye) return Z;
|
|
15
15
|
Ye = 1;
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
f !== void 0 && (
|
|
20
|
-
for (
|
|
21
|
-
if (p && p.defaultProps) for (
|
|
22
|
-
return { $$typeof: n, type: p, key:
|
|
16
|
+
var l = Ne, n = Symbol.for("react.element"), s = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, v = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function u(p, a, f) {
|
|
18
|
+
var i, h = {}, y = null, E = null;
|
|
19
|
+
f !== void 0 && (y = "" + f), a.key !== void 0 && (y = "" + a.key), a.ref !== void 0 && (E = a.ref);
|
|
20
|
+
for (i in a) o.call(a, i) && !c.hasOwnProperty(i) && (h[i] = a[i]);
|
|
21
|
+
if (p && p.defaultProps) for (i in a = p.defaultProps, a) h[i] === void 0 && (h[i] = a[i]);
|
|
22
|
+
return { $$typeof: n, type: p, key: y, ref: E, props: h, _owner: v.current };
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return Z.Fragment = s, Z.jsx = u, Z.jsxs = u, Z;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var Q = {};
|
|
27
27
|
/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-jsx-runtime.development.js
|
|
@@ -33,91 +33,91 @@ var H = {};
|
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
return
|
|
39
|
-
var
|
|
40
|
-
function
|
|
36
|
+
var We;
|
|
37
|
+
function _r() {
|
|
38
|
+
return We || (We = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
39
|
+
var l = Ne, n = Symbol.for("react.element"), s = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), p = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), i = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), R = Symbol.iterator, _ = "@@iterator";
|
|
40
|
+
function k(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var r =
|
|
43
|
+
var r = R && e[R] || e[_];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
46
|
+
var P = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function w(e) {
|
|
48
48
|
{
|
|
49
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0),
|
|
50
|
-
t[
|
|
51
|
-
|
|
49
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), d = 1; d < r; d++)
|
|
50
|
+
t[d - 1] = arguments[d];
|
|
51
|
+
F("error", e, t);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function F(e, r, t) {
|
|
55
55
|
{
|
|
56
|
-
var
|
|
56
|
+
var d = P.ReactDebugCurrentFrame, b = d.getStackAddendum();
|
|
57
57
|
b !== "" && (r += "%s", t = t.concat([b]));
|
|
58
|
-
var
|
|
59
|
-
return String(
|
|
58
|
+
var x = t.map(function(g) {
|
|
59
|
+
return String(g);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
x.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, x);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
|
|
64
|
+
var M = !1, Y = !1, I = !1, D = !1, W = !1, q;
|
|
65
|
+
q = Symbol.for("react.module.reference");
|
|
66
66
|
function V(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === c || W || e === v || e === f || e === i || D || e === E || M || Y || I || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === h || e.$$typeof === u || e.$$typeof === p || e.$$typeof === a || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
|
-
e.$$typeof ===
|
|
71
|
+
e.$$typeof === q || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
73
|
+
function G(e, r, t) {
|
|
74
|
+
var d = e.displayName;
|
|
75
|
+
if (d)
|
|
76
|
+
return d;
|
|
77
77
|
var b = r.displayName || r.name || "";
|
|
78
78
|
return b !== "" ? t + "(" + b + ")" : t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function ye(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function L(e) {
|
|
84
84
|
if (e == null)
|
|
85
85
|
return null;
|
|
86
|
-
if (typeof e.tag == "number" &&
|
|
86
|
+
if (typeof e.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
87
|
return e.displayName || e.name || null;
|
|
88
88
|
if (typeof e == "string")
|
|
89
89
|
return e;
|
|
90
90
|
switch (e) {
|
|
91
91
|
case o:
|
|
92
92
|
return "Fragment";
|
|
93
|
-
case
|
|
93
|
+
case s:
|
|
94
94
|
return "Portal";
|
|
95
|
-
case
|
|
95
|
+
case c:
|
|
96
96
|
return "Profiler";
|
|
97
|
-
case
|
|
97
|
+
case v:
|
|
98
98
|
return "StrictMode";
|
|
99
99
|
case f:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case i:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
106
|
case p:
|
|
107
107
|
var r = e;
|
|
108
|
-
return
|
|
109
|
-
case
|
|
108
|
+
return ye(r) + ".Consumer";
|
|
109
|
+
case u:
|
|
110
110
|
var t = e;
|
|
111
|
-
return
|
|
111
|
+
return ye(t._context) + ".Provider";
|
|
112
112
|
case a:
|
|
113
|
-
return
|
|
114
|
-
case
|
|
115
|
-
var
|
|
116
|
-
return
|
|
117
|
-
case
|
|
118
|
-
var b = e,
|
|
113
|
+
return G(e, e.render, "ForwardRef");
|
|
114
|
+
case h:
|
|
115
|
+
var d = e.displayName || null;
|
|
116
|
+
return d !== null ? d : L(e.type) || "Memo";
|
|
117
|
+
case y: {
|
|
118
|
+
var b = e, x = b._payload, g = b._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return L(g(x));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,14 +125,14 @@ function gr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
128
|
+
var N = Object.assign, K = 0, he, me, ge, be, Ee, Re, xe;
|
|
129
129
|
function _e() {
|
|
130
130
|
}
|
|
131
131
|
_e.__reactDisabledLog = !0;
|
|
132
|
-
function
|
|
132
|
+
function ze() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
he = console.log,
|
|
134
|
+
if (K === 0) {
|
|
135
|
+
he = console.log, me = console.info, ge = console.warn, be = console.error, Ee = console.group, Re = console.groupCollapsed, xe = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
@@ -149,250 +149,250 @@ function gr() {
|
|
|
149
149
|
groupEnd: e
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
K++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Ge() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (K--, K === 0) {
|
|
158
158
|
var e = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
161
161
|
writable: !0
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
164
|
+
log: N({}, e, {
|
|
165
165
|
value: he
|
|
166
166
|
}),
|
|
167
|
-
info:
|
|
168
|
-
value: ye
|
|
169
|
-
}),
|
|
170
|
-
warn: B({}, e, {
|
|
167
|
+
info: N({}, e, {
|
|
171
168
|
value: me
|
|
172
169
|
}),
|
|
173
|
-
|
|
170
|
+
warn: N({}, e, {
|
|
174
171
|
value: ge
|
|
175
172
|
}),
|
|
176
|
-
|
|
173
|
+
error: N({}, e, {
|
|
177
174
|
value: be
|
|
178
175
|
}),
|
|
179
|
-
|
|
176
|
+
group: N({}, e, {
|
|
177
|
+
value: Ee
|
|
178
|
+
}),
|
|
179
|
+
groupCollapsed: N({}, e, {
|
|
180
180
|
value: Re
|
|
181
181
|
}),
|
|
182
|
-
groupEnd:
|
|
183
|
-
value:
|
|
182
|
+
groupEnd: N({}, e, {
|
|
183
|
+
value: xe
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
K < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var
|
|
191
|
-
function
|
|
190
|
+
var ie = P.ReactCurrentDispatcher, se;
|
|
191
|
+
function ee(e, r, t) {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
193
|
+
if (se === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
196
|
} catch (b) {
|
|
197
|
-
var
|
|
198
|
-
|
|
197
|
+
var d = b.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
se = d && d[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
|
-
` +
|
|
201
|
+
` + se + e;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var ce = !1, re;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
|
|
206
|
+
var Ke = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
re = new Ke();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
if (!e ||
|
|
209
|
+
function we(e, r) {
|
|
210
|
+
if (!e || ce)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var t =
|
|
213
|
+
var t = re.get(e);
|
|
214
214
|
if (t !== void 0)
|
|
215
215
|
return t;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
218
|
-
|
|
217
|
+
var d;
|
|
218
|
+
ce = !0;
|
|
219
219
|
var b = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
|
-
var
|
|
222
|
-
|
|
221
|
+
var x;
|
|
222
|
+
x = ie.current, ie.current = null, ze();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
|
-
var
|
|
225
|
+
var g = function() {
|
|
226
226
|
throw Error();
|
|
227
227
|
};
|
|
228
|
-
if (Object.defineProperty(
|
|
228
|
+
if (Object.defineProperty(g.prototype, "props", {
|
|
229
229
|
set: function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
}
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
|
-
Reflect.construct(
|
|
235
|
-
} catch (
|
|
236
|
-
|
|
234
|
+
Reflect.construct(g, []);
|
|
235
|
+
} catch (C) {
|
|
236
|
+
d = C;
|
|
237
237
|
}
|
|
238
|
-
Reflect.construct(e, [],
|
|
238
|
+
Reflect.construct(e, [], g);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
|
-
|
|
242
|
-
} catch (
|
|
243
|
-
|
|
241
|
+
g.call();
|
|
242
|
+
} catch (C) {
|
|
243
|
+
d = C;
|
|
244
244
|
}
|
|
245
|
-
e.call(
|
|
245
|
+
e.call(g.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
|
|
250
|
+
} catch (C) {
|
|
251
|
+
d = C;
|
|
252
252
|
}
|
|
253
253
|
e();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var
|
|
258
|
-
`),
|
|
259
|
-
`),
|
|
255
|
+
} catch (C) {
|
|
256
|
+
if (C && d && typeof C.stack == "string") {
|
|
257
|
+
for (var m = C.stack.split(`
|
|
258
|
+
`), j = d.stack.split(`
|
|
259
|
+
`), $ = m.length - 1, S = j.length - 1; $ >= 1 && S >= 0 && m[$] !== j[S]; )
|
|
260
260
|
S--;
|
|
261
|
-
for (;
|
|
262
|
-
if (
|
|
263
|
-
if (
|
|
261
|
+
for (; $ >= 1 && S >= 0; $--, S--)
|
|
262
|
+
if (m[$] !== j[S]) {
|
|
263
|
+
if ($ !== 1 || S !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (
|
|
266
|
-
var
|
|
267
|
-
` +
|
|
268
|
-
return e.displayName &&
|
|
265
|
+
if ($--, S--, S < 0 || m[$] !== j[S]) {
|
|
266
|
+
var A = `
|
|
267
|
+
` + m[$].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && A.includes("<anonymous>") && (A = A.replace("<anonymous>", e.displayName)), typeof e == "function" && re.set(e, A), A;
|
|
269
269
|
}
|
|
270
|
-
while (
|
|
270
|
+
while ($ >= 1 && S >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
ce = !1, ie.current = x, Ge(), Error.prepareStackTrace = b;
|
|
276
276
|
}
|
|
277
|
-
var X = e ? e.displayName || e.name : "",
|
|
278
|
-
return typeof e == "function" &&
|
|
277
|
+
var X = e ? e.displayName || e.name : "", B = X ? ee(X) : "";
|
|
278
|
+
return typeof e == "function" && re.set(e, B), B;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function He(e, r, t) {
|
|
281
|
+
return we(e, !1);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function Ze(e) {
|
|
284
284
|
var r = e.prototype;
|
|
285
285
|
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function te(e, r, t) {
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return
|
|
291
|
+
return we(e, Ze(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
|
-
return
|
|
293
|
+
return ee(e);
|
|
294
294
|
switch (e) {
|
|
295
295
|
case f:
|
|
296
|
-
return
|
|
297
|
-
case
|
|
298
|
-
return
|
|
296
|
+
return ee("Suspense");
|
|
297
|
+
case i:
|
|
298
|
+
return ee("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
302
|
case a:
|
|
303
|
-
return
|
|
304
|
-
case
|
|
305
|
-
return
|
|
306
|
-
case
|
|
307
|
-
var
|
|
303
|
+
return He(e.render);
|
|
304
|
+
case h:
|
|
305
|
+
return te(e.type, r, t);
|
|
306
|
+
case y: {
|
|
307
|
+
var d = e, b = d._payload, x = d._init;
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return te(x(b), r, t);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
316
|
+
var H = Object.prototype.hasOwnProperty, $e = {}, Se = P.ReactDebugCurrentFrame;
|
|
317
|
+
function ne(e) {
|
|
318
318
|
if (e) {
|
|
319
|
-
var r = e._owner, t =
|
|
320
|
-
|
|
319
|
+
var r = e._owner, t = te(e.type, e._source, r ? r.type : null);
|
|
320
|
+
Se.setExtraStackFrame(t);
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
Se.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Qe(e, r, t, d, b) {
|
|
325
325
|
{
|
|
326
|
-
var
|
|
327
|
-
for (var
|
|
328
|
-
if (
|
|
329
|
-
var
|
|
326
|
+
var x = Function.call.bind(H);
|
|
327
|
+
for (var g in e)
|
|
328
|
+
if (x(e, g)) {
|
|
329
|
+
var m = void 0;
|
|
330
330
|
try {
|
|
331
|
-
if (typeof e[
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
331
|
+
if (typeof e[g] != "function") {
|
|
332
|
+
var j = Error((d || "React class") + ": " + t + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw j.name = "Invariant Violation", j;
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
} catch (
|
|
337
|
-
|
|
335
|
+
m = e[g](r, g, d, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
+
} catch ($) {
|
|
337
|
+
m = $;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
m && !(m instanceof Error) && (ne(b), w("%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).", d || "React class", t, g, typeof m), ne(null)), m instanceof Error && !(m.message in $e) && ($e[m.message] = !0, ne(b), w("Failed %s type: %s", t, m.message), ne(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
345
|
-
return
|
|
343
|
+
var er = Array.isArray;
|
|
344
|
+
function le(e) {
|
|
345
|
+
return er(e);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function rr(e) {
|
|
348
348
|
{
|
|
349
349
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
350
|
return t;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function tr(e) {
|
|
354
354
|
try {
|
|
355
|
-
return
|
|
355
|
+
return Pe(e), !1;
|
|
356
356
|
} catch {
|
|
357
357
|
return !0;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Pe(e) {
|
|
361
361
|
return "" + e;
|
|
362
362
|
}
|
|
363
363
|
function Te(e) {
|
|
364
|
-
if (
|
|
365
|
-
return
|
|
364
|
+
if (tr(e))
|
|
365
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rr(e)), Pe(e);
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var je = P.ReactCurrentOwner, nr = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
},
|
|
373
|
-
function
|
|
374
|
-
if (
|
|
372
|
+
}, Ce, Oe;
|
|
373
|
+
function ar(e) {
|
|
374
|
+
if (H.call(e, "ref")) {
|
|
375
375
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
376
|
if (r && r.isReactWarning)
|
|
377
377
|
return !1;
|
|
378
378
|
}
|
|
379
379
|
return e.ref !== void 0;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
381
|
+
function or(e) {
|
|
382
|
+
if (H.call(e, "key")) {
|
|
383
383
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
384
|
if (r && r.isReactWarning)
|
|
385
385
|
return !1;
|
|
386
386
|
}
|
|
387
387
|
return e.key !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
390
|
-
typeof e.ref == "string" &&
|
|
389
|
+
function ir(e, r) {
|
|
390
|
+
typeof e.ref == "string" && je.current;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function sr(e, r) {
|
|
393
393
|
{
|
|
394
394
|
var t = function() {
|
|
395
|
-
|
|
395
|
+
Ce || (Ce = !0, w("%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));
|
|
396
396
|
};
|
|
397
397
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
398
|
get: t,
|
|
@@ -400,10 +400,10 @@ function gr() {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function cr(e, r) {
|
|
404
404
|
{
|
|
405
405
|
var t = function() {
|
|
406
|
-
|
|
406
|
+
Oe || (Oe = !0, w("%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));
|
|
407
407
|
};
|
|
408
408
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
409
|
get: t,
|
|
@@ -411,70 +411,70 @@ function gr() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var
|
|
415
|
-
var
|
|
414
|
+
var lr = function(e, r, t, d, b, x, g) {
|
|
415
|
+
var m = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
417
|
$$typeof: n,
|
|
418
418
|
// Built-in properties that belong on the element
|
|
419
419
|
type: e,
|
|
420
420
|
key: r,
|
|
421
421
|
ref: t,
|
|
422
|
-
props:
|
|
422
|
+
props: g,
|
|
423
423
|
// Record the component responsible for creating this element.
|
|
424
|
-
_owner:
|
|
424
|
+
_owner: x
|
|
425
425
|
};
|
|
426
|
-
return
|
|
426
|
+
return m._store = {}, Object.defineProperty(m._store, "validated", {
|
|
427
427
|
configurable: !1,
|
|
428
428
|
enumerable: !1,
|
|
429
429
|
writable: !0,
|
|
430
430
|
value: !1
|
|
431
|
-
}), Object.defineProperty(
|
|
431
|
+
}), Object.defineProperty(m, "_self", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !1,
|
|
435
|
-
value:
|
|
436
|
-
}), Object.defineProperty(
|
|
435
|
+
value: d
|
|
436
|
+
}), Object.defineProperty(m, "_source", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
440
|
value: b
|
|
441
|
-
}), Object.freeze && (Object.freeze(
|
|
441
|
+
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
442
442
|
};
|
|
443
|
-
function
|
|
443
|
+
function ur(e, r, t, d, b) {
|
|
444
444
|
{
|
|
445
|
-
var
|
|
446
|
-
t !== void 0 && (Te(t),
|
|
447
|
-
for (
|
|
448
|
-
|
|
445
|
+
var x, g = {}, m = null, j = null;
|
|
446
|
+
t !== void 0 && (Te(t), m = "" + t), or(r) && (Te(r.key), m = "" + r.key), ar(r) && (j = r.ref, ir(r, b));
|
|
447
|
+
for (x in r)
|
|
448
|
+
H.call(r, x) && !nr.hasOwnProperty(x) && (g[x] = r[x]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
|
-
var
|
|
451
|
-
for (
|
|
452
|
-
|
|
450
|
+
var $ = e.defaultProps;
|
|
451
|
+
for (x in $)
|
|
452
|
+
g[x] === void 0 && (g[x] = $[x]);
|
|
453
453
|
}
|
|
454
|
-
if (
|
|
454
|
+
if (m || j) {
|
|
455
455
|
var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
|
|
456
|
+
m && sr(g, S), j && cr(g, S);
|
|
457
457
|
}
|
|
458
|
-
return
|
|
458
|
+
return lr(e, m, j, b, d, je.current, g);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
462
|
-
function
|
|
461
|
+
var ue = P.ReactCurrentOwner, ke = P.ReactDebugCurrentFrame;
|
|
462
|
+
function U(e) {
|
|
463
463
|
if (e) {
|
|
464
|
-
var r = e._owner, t =
|
|
465
|
-
|
|
464
|
+
var r = e._owner, t = te(e.type, e._source, r ? r.type : null);
|
|
465
|
+
ke.setExtraStackFrame(t);
|
|
466
466
|
} else
|
|
467
|
-
|
|
467
|
+
ke.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
function
|
|
469
|
+
var fe;
|
|
470
|
+
fe = !1;
|
|
471
|
+
function de(e) {
|
|
472
472
|
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Fe() {
|
|
475
475
|
{
|
|
476
|
-
if (
|
|
477
|
-
var e =
|
|
476
|
+
if (ue.current) {
|
|
477
|
+
var e = L(ue.current.type);
|
|
478
478
|
if (e)
|
|
479
479
|
return `
|
|
480
480
|
|
|
@@ -483,13 +483,13 @@ Check the render method of \`` + e + "`.";
|
|
|
483
483
|
return "";
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function fr(e) {
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
|
-
var
|
|
490
|
-
function
|
|
489
|
+
var Me = {};
|
|
490
|
+
function dr(e) {
|
|
491
491
|
{
|
|
492
|
-
var r =
|
|
492
|
+
var r = Fe();
|
|
493
493
|
if (!r) {
|
|
494
494
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
495
|
t && (r = `
|
|
@@ -499,39 +499,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
499
499
|
return r;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Ae(e, r) {
|
|
503
503
|
{
|
|
504
504
|
if (!e._store || e._store.validated || e.key != null)
|
|
505
505
|
return;
|
|
506
506
|
e._store.validated = !0;
|
|
507
|
-
var t =
|
|
508
|
-
if (
|
|
507
|
+
var t = dr(r);
|
|
508
|
+
if (Me[t])
|
|
509
509
|
return;
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
e && e._owner && e._owner !==
|
|
510
|
+
Me[t] = !0;
|
|
511
|
+
var d = "";
|
|
512
|
+
e && e._owner && e._owner !== ue.current && (d = " It was passed a child from " + L(e._owner.type) + "."), U(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, d), U(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Ie(e, r) {
|
|
516
516
|
{
|
|
517
517
|
if (typeof e != "object")
|
|
518
518
|
return;
|
|
519
|
-
if (
|
|
519
|
+
if (le(e))
|
|
520
520
|
for (var t = 0; t < e.length; t++) {
|
|
521
|
-
var
|
|
522
|
-
|
|
521
|
+
var d = e[t];
|
|
522
|
+
de(d) && Ae(d, r);
|
|
523
523
|
}
|
|
524
|
-
else if (
|
|
524
|
+
else if (de(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
|
-
var b =
|
|
527
|
+
var b = k(e);
|
|
528
528
|
if (typeof b == "function" && b !== e.entries)
|
|
529
|
-
for (var
|
|
530
|
-
|
|
529
|
+
for (var x = b.call(e), g; !(g = x.next()).done; )
|
|
530
|
+
de(g.value) && Ae(g.value, r);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function vr(e) {
|
|
535
535
|
{
|
|
536
536
|
var r = e.type;
|
|
537
537
|
if (r == null || typeof r == "string")
|
|
@@ -541,174 +541,174 @@ Check the top-level render call using <` + t + ">.");
|
|
|
541
541
|
t = r.propTypes;
|
|
542
542
|
else if (typeof r == "object" && (r.$$typeof === a || // Note: Memo only checks outer props here.
|
|
543
543
|
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof ===
|
|
544
|
+
r.$$typeof === h))
|
|
545
545
|
t = r.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (t) {
|
|
549
|
-
var
|
|
550
|
-
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !
|
|
552
|
-
|
|
553
|
-
var b =
|
|
554
|
-
|
|
549
|
+
var d = L(r);
|
|
550
|
+
Qe(t, e.props, "prop", d, e);
|
|
551
|
+
} else if (r.PropTypes !== void 0 && !fe) {
|
|
552
|
+
fe = !0;
|
|
553
|
+
var b = L(r);
|
|
554
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
|
|
555
555
|
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
556
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function pr(e) {
|
|
560
560
|
{
|
|
561
561
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
|
-
var
|
|
563
|
-
if (
|
|
564
|
-
|
|
562
|
+
var d = r[t];
|
|
563
|
+
if (d !== "children" && d !== "key") {
|
|
564
|
+
U(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), U(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
e.ref !== null && (
|
|
568
|
+
e.ref !== null && (U(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
var
|
|
572
|
-
function
|
|
571
|
+
var De = {};
|
|
572
|
+
function Le(e, r, t, d, b, x) {
|
|
573
573
|
{
|
|
574
|
-
var
|
|
575
|
-
if (!
|
|
576
|
-
var
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
578
|
-
var
|
|
579
|
-
|
|
580
|
-
var
|
|
581
|
-
e === null ?
|
|
574
|
+
var g = V(e);
|
|
575
|
+
if (!g) {
|
|
576
|
+
var m = "";
|
|
577
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
+
var j = fr();
|
|
579
|
+
j ? m += j : m += Fe();
|
|
580
|
+
var $;
|
|
581
|
+
e === null ? $ = "null" : le(e) ? $ = "array" : e !== void 0 && e.$$typeof === n ? ($ = "<" + (L(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, m);
|
|
582
582
|
}
|
|
583
|
-
var S =
|
|
583
|
+
var S = ur(e, r, t, b, x);
|
|
584
584
|
if (S == null)
|
|
585
585
|
return S;
|
|
586
|
-
if (
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
if (
|
|
590
|
-
if (
|
|
591
|
-
for (var X = 0; X <
|
|
592
|
-
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
586
|
+
if (g) {
|
|
587
|
+
var A = r.children;
|
|
588
|
+
if (A !== void 0)
|
|
589
|
+
if (d)
|
|
590
|
+
if (le(A)) {
|
|
591
|
+
for (var X = 0; X < A.length; X++)
|
|
592
|
+
Ie(A[X], e);
|
|
593
|
+
Object.freeze && Object.freeze(A);
|
|
594
594
|
} else
|
|
595
|
-
|
|
595
|
+
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
596
|
else
|
|
597
|
-
|
|
597
|
+
Ie(A, e);
|
|
598
598
|
}
|
|
599
|
-
if (
|
|
600
|
-
var
|
|
601
|
-
return
|
|
602
|
-
}),
|
|
603
|
-
if (!
|
|
604
|
-
var
|
|
605
|
-
|
|
599
|
+
if (H.call(r, "key")) {
|
|
600
|
+
var B = L(e), C = Object.keys(r).filter(function(Er) {
|
|
601
|
+
return Er !== "key";
|
|
602
|
+
}), ve = C.length > 0 ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!De[B + ve]) {
|
|
604
|
+
var br = C.length > 0 ? "{" + C.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
+
w(`A props object containing a "key" prop is being spread into JSX:
|
|
606
606
|
let props = %s;
|
|
607
607
|
<%s {...props} />
|
|
608
608
|
React keys must be passed directly to JSX without using spread:
|
|
609
609
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`,
|
|
610
|
+
<%s key={someKey} {...props} />`, ve, B, br, B), De[B + ve] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return e === o ?
|
|
613
|
+
return e === o ? pr(S) : vr(S), S;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
return
|
|
616
|
+
function yr(e, r, t) {
|
|
617
|
+
return Le(e, r, t, !0);
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
return
|
|
619
|
+
function hr(e, r, t) {
|
|
620
|
+
return Le(e, r, t, !1);
|
|
621
621
|
}
|
|
622
|
-
var
|
|
623
|
-
|
|
624
|
-
})()),
|
|
622
|
+
var mr = hr, gr = yr;
|
|
623
|
+
Q.Fragment = o, Q.jsx = mr, Q.jsxs = gr;
|
|
624
|
+
})()), Q;
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
function
|
|
628
|
-
return
|
|
626
|
+
var Ve;
|
|
627
|
+
function wr() {
|
|
628
|
+
return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? ae.exports = xr() : ae.exports = _r()), ae.exports;
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
function
|
|
632
|
-
children:
|
|
630
|
+
var T = wr();
|
|
631
|
+
function Or({
|
|
632
|
+
children: l,
|
|
633
633
|
strength: n = 0.3,
|
|
634
|
-
speed:
|
|
634
|
+
speed: s = 0.25,
|
|
635
635
|
scale: o = 1,
|
|
636
|
-
className:
|
|
636
|
+
className: v = ""
|
|
637
637
|
}) {
|
|
638
|
-
const
|
|
639
|
-
const f =
|
|
638
|
+
const c = O(null), u = (a) => {
|
|
639
|
+
const f = c.current;
|
|
640
640
|
if (!f) return;
|
|
641
|
-
const
|
|
641
|
+
const i = f.getBoundingClientRect(), h = a.clientX - (i.left + i.width / 2), y = a.clientY - (i.top + i.height / 2);
|
|
642
642
|
f.style.transform = `
|
|
643
|
-
translate(${
|
|
643
|
+
translate(${h * n}px, ${y * n}px)
|
|
644
644
|
scale(${o})
|
|
645
645
|
`;
|
|
646
646
|
}, p = () => {
|
|
647
|
-
const a =
|
|
647
|
+
const a = c.current;
|
|
648
648
|
a && (a.style.transform = "translate(0, 0) scale(1)");
|
|
649
649
|
};
|
|
650
|
-
return /* @__PURE__ */
|
|
650
|
+
return /* @__PURE__ */ T.jsx(
|
|
651
651
|
"div",
|
|
652
652
|
{
|
|
653
|
-
ref:
|
|
654
|
-
className:
|
|
655
|
-
onMouseMove:
|
|
653
|
+
ref: c,
|
|
654
|
+
className: v,
|
|
655
|
+
onMouseMove: u,
|
|
656
656
|
onMouseLeave: p,
|
|
657
657
|
style: {
|
|
658
658
|
display: "inline-block",
|
|
659
|
-
transition: `transform ${
|
|
659
|
+
transition: `transform ${s}s ease-out`,
|
|
660
660
|
willChange: "transform"
|
|
661
661
|
},
|
|
662
|
-
children:
|
|
662
|
+
children: l
|
|
663
663
|
}
|
|
664
664
|
);
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
const [
|
|
668
|
-
return
|
|
666
|
+
function pe() {
|
|
667
|
+
const [l, n] = oe(!1);
|
|
668
|
+
return z(() => {
|
|
669
669
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
670
|
-
const
|
|
671
|
-
n(
|
|
672
|
-
const o = (
|
|
673
|
-
return
|
|
674
|
-
}, []),
|
|
670
|
+
const s = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
671
|
+
n(s.matches);
|
|
672
|
+
const o = (v) => n(v.matches);
|
|
673
|
+
return s.addEventListener("change", o), () => s.removeEventListener("change", o);
|
|
674
|
+
}, []), l;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
children:
|
|
676
|
+
function kr({
|
|
677
|
+
children: l,
|
|
678
678
|
tilt: n = 15,
|
|
679
|
-
scale:
|
|
679
|
+
scale: s = 1.03,
|
|
680
680
|
glare: o = !0,
|
|
681
|
-
perspective:
|
|
682
|
-
className:
|
|
683
|
-
style:
|
|
681
|
+
perspective: v = 1e3,
|
|
682
|
+
className: c = "",
|
|
683
|
+
style: u
|
|
684
684
|
}) {
|
|
685
|
-
const p =
|
|
686
|
-
const
|
|
687
|
-
if (!
|
|
688
|
-
const
|
|
689
|
-
|
|
690
|
-
const
|
|
691
|
-
|
|
692
|
-
},
|
|
693
|
-
const
|
|
694
|
-
|
|
685
|
+
const p = O(null), a = O(null), f = pe(), i = (y) => {
|
|
686
|
+
const E = p.current;
|
|
687
|
+
if (!E || f) return;
|
|
688
|
+
const R = E.getBoundingClientRect(), _ = (y.clientX - R.left) / R.width, k = (y.clientY - R.top) / R.height, P = (_ - 0.5) * 2 * n, w = (0.5 - k) * 2 * n;
|
|
689
|
+
E.style.transition = "transform 0.08s linear", E.style.transform = `perspective(${v}px) rotateX(${w}deg) rotateY(${P}deg) scale(${s})`;
|
|
690
|
+
const F = a.current;
|
|
691
|
+
F && (F.style.opacity = "1", F.style.background = `radial-gradient(circle at ${_ * 100}% ${k * 100}%, rgba(255,255,255,0.35), transparent 55%)`);
|
|
692
|
+
}, h = () => {
|
|
693
|
+
const y = p.current;
|
|
694
|
+
y && (y.style.transition = "transform 0.4s ease-out", y.style.transform = `perspective(${v}px) rotateX(0deg) rotateY(0deg) scale(1)`, a.current && (a.current.style.opacity = "0"));
|
|
695
695
|
};
|
|
696
|
-
return /* @__PURE__ */
|
|
696
|
+
return /* @__PURE__ */ T.jsxs(
|
|
697
697
|
"div",
|
|
698
698
|
{
|
|
699
699
|
ref: p,
|
|
700
|
-
className:
|
|
701
|
-
onMouseMove:
|
|
702
|
-
onMouseLeave:
|
|
700
|
+
className: c,
|
|
701
|
+
onMouseMove: i,
|
|
702
|
+
onMouseLeave: h,
|
|
703
703
|
style: {
|
|
704
704
|
position: "relative",
|
|
705
705
|
transformStyle: "preserve-3d",
|
|
706
706
|
willChange: "transform",
|
|
707
|
-
...
|
|
707
|
+
...u
|
|
708
708
|
},
|
|
709
709
|
children: [
|
|
710
|
-
|
|
711
|
-
o && /* @__PURE__ */
|
|
710
|
+
l,
|
|
711
|
+
o && /* @__PURE__ */ T.jsx(
|
|
712
712
|
"div",
|
|
713
713
|
{
|
|
714
714
|
ref: a,
|
|
@@ -727,54 +727,54 @@ function wr({
|
|
|
727
727
|
}
|
|
728
728
|
);
|
|
729
729
|
}
|
|
730
|
-
const
|
|
730
|
+
const $r = {
|
|
731
731
|
radial: { opacity: 1, blurScale: 1, gradient: "radial" },
|
|
732
732
|
glow: { opacity: 0.9, blurScale: 1.5, gradient: "radial" },
|
|
733
733
|
soft: { opacity: 0.7, blurScale: 2, gradient: "radial" },
|
|
734
734
|
sharp: { opacity: 1, blurScale: 0.3, gradient: "radial" },
|
|
735
735
|
neon: { opacity: 1, blurScale: 1.2, gradient: "radial" }
|
|
736
736
|
};
|
|
737
|
-
function
|
|
738
|
-
children:
|
|
737
|
+
function Fr({
|
|
738
|
+
children: l,
|
|
739
739
|
size: n = 320,
|
|
740
|
-
intensity:
|
|
740
|
+
intensity: s = 0.85,
|
|
741
741
|
color: o = "#ffffff",
|
|
742
|
-
blur:
|
|
743
|
-
mode:
|
|
744
|
-
enabled:
|
|
742
|
+
blur: v = 60,
|
|
743
|
+
mode: c = "radial",
|
|
744
|
+
enabled: u = !0,
|
|
745
745
|
className: p = "",
|
|
746
746
|
style: a
|
|
747
747
|
}) {
|
|
748
|
-
const f =
|
|
749
|
-
(
|
|
748
|
+
const f = O(null), i = O(null), h = O(!1), y = $r[c], E = Rr(
|
|
749
|
+
(R, _) => (n / 2 * y.blurScale, v * y.blurScale, c === "neon" ? `radial-gradient(${n * y.blurScale}px circle at ${R}px ${_}px,
|
|
750
750
|
${o}33 0%,
|
|
751
751
|
${o}22 25%,
|
|
752
752
|
${o}11 50%,
|
|
753
|
-
transparent 75%)` :
|
|
753
|
+
transparent 75%)` : c === "sharp" ? `radial-gradient(${n * 0.4}px circle at ${R}px ${_}px,
|
|
754
754
|
${o}dd 0%,
|
|
755
755
|
${o}99 30%,
|
|
756
|
-
transparent 100%)` : `radial-gradient(${n *
|
|
757
|
-
${o}${Math.round(
|
|
758
|
-
${o}${Math.round(
|
|
756
|
+
transparent 100%)` : `radial-gradient(${n * y.blurScale}px circle at ${R}px ${_}px,
|
|
757
|
+
${o}${Math.round(s * 255).toString(16).padStart(2, "0")} 0%,
|
|
758
|
+
${o}${Math.round(s * 0.5 * 255).toString(16).padStart(2, "0")} 40%,
|
|
759
759
|
transparent 100%)`),
|
|
760
|
-
[n,
|
|
760
|
+
[n, s, o, v, c, y]
|
|
761
761
|
);
|
|
762
|
-
return
|
|
763
|
-
if (!
|
|
764
|
-
const
|
|
765
|
-
if (!
|
|
766
|
-
const
|
|
767
|
-
const
|
|
768
|
-
|
|
769
|
-
},
|
|
770
|
-
|
|
771
|
-
},
|
|
772
|
-
|
|
762
|
+
return z(() => {
|
|
763
|
+
if (!u) return;
|
|
764
|
+
const R = f.current, _ = i.current;
|
|
765
|
+
if (!R || !_) return;
|
|
766
|
+
const k = (F) => {
|
|
767
|
+
const M = R.getBoundingClientRect(), Y = F.clientX - M.left, I = F.clientY - M.top;
|
|
768
|
+
_.style.background = E(Y, I), _.style.opacity = String(y.opacity);
|
|
769
|
+
}, P = () => {
|
|
770
|
+
h.current = !0, _.style.transition = "opacity 300ms ease", _.style.opacity = String(y.opacity);
|
|
771
|
+
}, w = () => {
|
|
772
|
+
h.current = !1, _.style.transition = "opacity 600ms ease", _.style.opacity = "0";
|
|
773
773
|
};
|
|
774
|
-
return
|
|
775
|
-
|
|
774
|
+
return R.addEventListener("mousemove", k), R.addEventListener("mouseenter", P), R.addEventListener("mouseleave", w), () => {
|
|
775
|
+
R.removeEventListener("mousemove", k), R.removeEventListener("mouseenter", P), R.removeEventListener("mouseleave", w);
|
|
776
776
|
};
|
|
777
|
-
}, [
|
|
777
|
+
}, [u, E, y]), /* @__PURE__ */ T.jsxs(
|
|
778
778
|
"div",
|
|
779
779
|
{
|
|
780
780
|
ref: f,
|
|
@@ -785,11 +785,11 @@ function Sr({
|
|
|
785
785
|
...a
|
|
786
786
|
},
|
|
787
787
|
children: [
|
|
788
|
-
|
|
789
|
-
/* @__PURE__ */
|
|
788
|
+
l,
|
|
789
|
+
/* @__PURE__ */ T.jsx(
|
|
790
790
|
"div",
|
|
791
791
|
{
|
|
792
|
-
ref:
|
|
792
|
+
ref: i,
|
|
793
793
|
"aria-hidden": "true",
|
|
794
794
|
style: {
|
|
795
795
|
position: "absolute",
|
|
@@ -797,8 +797,8 @@ function Sr({
|
|
|
797
797
|
pointerEvents: "none",
|
|
798
798
|
opacity: 0,
|
|
799
799
|
zIndex: 10,
|
|
800
|
-
filter:
|
|
801
|
-
mixBlendMode:
|
|
800
|
+
filter: v > 0 ? `blur(${v * 0.15}px)` : void 0,
|
|
801
|
+
mixBlendMode: c === "neon" ? "screen" : "normal"
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
)
|
|
@@ -806,40 +806,40 @@ function Sr({
|
|
|
806
806
|
}
|
|
807
807
|
);
|
|
808
808
|
}
|
|
809
|
-
function
|
|
810
|
-
threshold:
|
|
809
|
+
function Ue({
|
|
810
|
+
threshold: l = 0.2,
|
|
811
811
|
rootMargin: n = "0px",
|
|
812
|
-
once:
|
|
812
|
+
once: s = !0
|
|
813
813
|
} = {}) {
|
|
814
|
-
const o =
|
|
815
|
-
return
|
|
816
|
-
const
|
|
817
|
-
if (!
|
|
814
|
+
const o = O(null), [v, c] = oe(!1);
|
|
815
|
+
return z(() => {
|
|
816
|
+
const u = o.current;
|
|
817
|
+
if (!u) return;
|
|
818
818
|
if (typeof IntersectionObserver > "u") {
|
|
819
|
-
|
|
819
|
+
c(!0);
|
|
820
820
|
return;
|
|
821
821
|
}
|
|
822
822
|
const p = new IntersectionObserver(
|
|
823
823
|
([a]) => {
|
|
824
|
-
a.isIntersecting ? (
|
|
824
|
+
a.isIntersecting ? (c(!0), s && p.disconnect()) : s || c(!1);
|
|
825
825
|
},
|
|
826
|
-
{ threshold:
|
|
826
|
+
{ threshold: l, rootMargin: n }
|
|
827
827
|
);
|
|
828
|
-
return p.observe(
|
|
829
|
-
}, [
|
|
828
|
+
return p.observe(u), () => p.disconnect();
|
|
829
|
+
}, [l, n, s]), { ref: o, inView: v };
|
|
830
830
|
}
|
|
831
|
-
function
|
|
832
|
-
children:
|
|
831
|
+
function Mr({
|
|
832
|
+
children: l,
|
|
833
833
|
stagger: n = 70,
|
|
834
|
-
duration:
|
|
834
|
+
duration: s = 700,
|
|
835
835
|
delay: o = 0,
|
|
836
|
-
once:
|
|
837
|
-
as:
|
|
838
|
-
className:
|
|
836
|
+
once: v = !0,
|
|
837
|
+
as: c = "div",
|
|
838
|
+
className: u = "",
|
|
839
839
|
style: p
|
|
840
840
|
}) {
|
|
841
|
-
const { ref: a, inView: f } =
|
|
842
|
-
return /* @__PURE__ */
|
|
841
|
+
const { ref: a, inView: f } = Ue({ once: v }), i = pe(), h = c, y = l.split(/\s+/).filter(Boolean), E = f || i;
|
|
842
|
+
return /* @__PURE__ */ T.jsx(h, { ref: a, className: u, style: p, "aria-label": l, children: y.map((R, _) => /* @__PURE__ */ T.jsx(
|
|
843
843
|
"span",
|
|
844
844
|
{
|
|
845
845
|
"aria-hidden": "true",
|
|
@@ -850,24 +850,24 @@ function Tr({
|
|
|
850
850
|
paddingBottom: "0.15em",
|
|
851
851
|
marginRight: "0.25em"
|
|
852
852
|
},
|
|
853
|
-
children: /* @__PURE__ */
|
|
853
|
+
children: /* @__PURE__ */ T.jsx(
|
|
854
854
|
"span",
|
|
855
855
|
{
|
|
856
856
|
style: {
|
|
857
857
|
display: "inline-block",
|
|
858
|
-
transform:
|
|
859
|
-
opacity:
|
|
860
|
-
transition:
|
|
858
|
+
transform: E ? "translateY(0)" : "translateY(110%)",
|
|
859
|
+
opacity: E ? 1 : 0,
|
|
860
|
+
transition: i ? "none" : `transform ${s}ms cubic-bezier(0.22, 1, 0.36, 1) ${o + _ * n}ms, opacity ${s}ms ease ${o + _ * n}ms`
|
|
861
861
|
},
|
|
862
|
-
children:
|
|
862
|
+
children: R
|
|
863
863
|
}
|
|
864
864
|
)
|
|
865
865
|
},
|
|
866
|
-
|
|
866
|
+
_
|
|
867
867
|
)) });
|
|
868
868
|
}
|
|
869
|
-
function
|
|
870
|
-
switch (
|
|
869
|
+
function Sr(l, n) {
|
|
870
|
+
switch (l) {
|
|
871
871
|
case "fade-up":
|
|
872
872
|
return `translateY(${n}px)`;
|
|
873
873
|
case "fade-down":
|
|
@@ -882,98 +882,98 @@ function Er(m, n) {
|
|
|
882
882
|
return "none";
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
|
-
function
|
|
886
|
-
children:
|
|
885
|
+
function Ar({
|
|
886
|
+
children: l,
|
|
887
887
|
animation: n = "fade-up",
|
|
888
|
-
duration:
|
|
888
|
+
duration: s = 700,
|
|
889
889
|
delay: o = 0,
|
|
890
|
-
distance:
|
|
891
|
-
threshold:
|
|
892
|
-
once:
|
|
890
|
+
distance: v = 32,
|
|
891
|
+
threshold: c = 0.2,
|
|
892
|
+
once: u = !0,
|
|
893
893
|
className: p = "",
|
|
894
894
|
style: a
|
|
895
895
|
}) {
|
|
896
|
-
const { ref: f, inView:
|
|
897
|
-
return /* @__PURE__ */
|
|
896
|
+
const { ref: f, inView: i } = Ue({ threshold: c, once: u }), h = pe(), y = i || h;
|
|
897
|
+
return /* @__PURE__ */ T.jsx(
|
|
898
898
|
"div",
|
|
899
899
|
{
|
|
900
900
|
ref: f,
|
|
901
901
|
className: p,
|
|
902
902
|
style: {
|
|
903
|
-
opacity:
|
|
904
|
-
transform:
|
|
905
|
-
transition:
|
|
903
|
+
opacity: y ? 1 : 0,
|
|
904
|
+
transform: y ? "none" : Sr(n, v),
|
|
905
|
+
transition: h ? "none" : `opacity ${s}ms ease ${o}ms, transform ${s}ms cubic-bezier(0.22, 1, 0.36, 1) ${o}ms`,
|
|
906
906
|
willChange: "opacity, transform",
|
|
907
907
|
...a
|
|
908
908
|
},
|
|
909
|
-
children:
|
|
909
|
+
children: l
|
|
910
910
|
}
|
|
911
911
|
);
|
|
912
912
|
}
|
|
913
|
-
function
|
|
914
|
-
children:
|
|
913
|
+
function Ir({
|
|
914
|
+
children: l,
|
|
915
915
|
colors: n = ["#6366f1", "#ec4899", "#f59e0b", "#06b6d4"],
|
|
916
|
-
angle:
|
|
916
|
+
angle: s = 120,
|
|
917
917
|
duration: o = 12,
|
|
918
|
-
className:
|
|
919
|
-
style:
|
|
918
|
+
className: v = "",
|
|
919
|
+
style: c
|
|
920
920
|
}) {
|
|
921
|
-
const
|
|
922
|
-
return /* @__PURE__ */
|
|
921
|
+
const u = [...n, n[0]].join(", ");
|
|
922
|
+
return /* @__PURE__ */ T.jsx(
|
|
923
923
|
"div",
|
|
924
924
|
{
|
|
925
|
-
className: `mcss-gradient-flow ${
|
|
925
|
+
className: `mcss-gradient-flow ${v}`.trim(),
|
|
926
926
|
style: {
|
|
927
|
-
backgroundImage: `linear-gradient(${
|
|
927
|
+
backgroundImage: `linear-gradient(${s}deg, ${u})`,
|
|
928
928
|
animationDuration: `${o}s`,
|
|
929
|
-
...
|
|
929
|
+
...c
|
|
930
930
|
},
|
|
931
|
-
children:
|
|
931
|
+
children: l
|
|
932
932
|
}
|
|
933
933
|
);
|
|
934
934
|
}
|
|
935
|
-
function
|
|
936
|
-
const
|
|
937
|
-
if (
|
|
938
|
-
const
|
|
939
|
-
|
|
935
|
+
function Pr(l, n, s, o) {
|
|
936
|
+
const v = [], c = s;
|
|
937
|
+
if (l === "left" || l === "right") {
|
|
938
|
+
const u = l === "left", p = u ? n * 100 : 100 - n * 100, a = u ? p - 100 : p + 100;
|
|
939
|
+
v.push(`${a}% 0%`), v.push(`${a}% 100%`);
|
|
940
940
|
for (let f = o; f >= 0; f--) {
|
|
941
|
-
const
|
|
942
|
-
|
|
941
|
+
const i = f / o, h = i * 100, y = Math.sin(i * Math.PI) * c, E = p + (u ? y : -y);
|
|
942
|
+
v.push(`${E}% ${h}%`);
|
|
943
943
|
}
|
|
944
944
|
} else {
|
|
945
|
-
const
|
|
946
|
-
|
|
945
|
+
const u = l === "top", p = u ? n * 100 : 100 - n * 100, a = u ? p - 100 : p + 100;
|
|
946
|
+
v.push(`0% ${a}%`), v.push(`100% ${a}%`);
|
|
947
947
|
for (let f = o; f >= 0; f--) {
|
|
948
|
-
const
|
|
949
|
-
|
|
948
|
+
const i = f / o, h = i * 100, y = Math.sin(i * Math.PI) * c, E = p + (u ? y : -y);
|
|
949
|
+
v.push(`${h}% ${E}%`);
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
|
-
return `polygon(${
|
|
952
|
+
return `polygon(${v.join(", ")})`;
|
|
953
953
|
}
|
|
954
|
-
function
|
|
955
|
-
origin:
|
|
954
|
+
function Dr({
|
|
955
|
+
origin: l = "left",
|
|
956
956
|
duration: n = 900,
|
|
957
|
-
color:
|
|
957
|
+
color: s = "#111111",
|
|
958
958
|
curve: o = 8,
|
|
959
|
-
resolution:
|
|
960
|
-
blur:
|
|
961
|
-
onComplete:
|
|
959
|
+
resolution: v = 20,
|
|
960
|
+
blur: c = 0,
|
|
961
|
+
onComplete: u,
|
|
962
962
|
style: p
|
|
963
963
|
}) {
|
|
964
|
-
const a =
|
|
965
|
-
return
|
|
966
|
-
const
|
|
967
|
-
if (!
|
|
968
|
-
const
|
|
969
|
-
|
|
970
|
-
const
|
|
971
|
-
|
|
964
|
+
const a = O(null), f = O(null), i = O(null);
|
|
965
|
+
return z(() => {
|
|
966
|
+
const h = a.current;
|
|
967
|
+
if (!h) return;
|
|
968
|
+
const y = (E) => {
|
|
969
|
+
i.current || (i.current = E);
|
|
970
|
+
const R = E - i.current, _ = Math.min(R / n, 1) * 2;
|
|
971
|
+
h.style.clipPath = Pr(l, _, o, v), _ < 2 ? f.current = requestAnimationFrame(y) : (h.style.clipPath = "polygon(200% 0%, 200% 100%, 100% 100%, 100% 0%)", u == null || u());
|
|
972
972
|
};
|
|
973
|
-
return f.current = requestAnimationFrame(
|
|
973
|
+
return f.current = requestAnimationFrame(y), () => {
|
|
974
974
|
f.current && cancelAnimationFrame(f.current);
|
|
975
975
|
};
|
|
976
|
-
}, [
|
|
976
|
+
}, [l, n, o, v, u]), /* @__PURE__ */ T.jsx(
|
|
977
977
|
"div",
|
|
978
978
|
{
|
|
979
979
|
ref: a,
|
|
@@ -983,59 +983,59 @@ function jr({
|
|
|
983
983
|
inset: 0,
|
|
984
984
|
zIndex: 9999,
|
|
985
985
|
pointerEvents: "none",
|
|
986
|
-
background:
|
|
987
|
-
backdropFilter:
|
|
988
|
-
WebkitBackdropFilter:
|
|
986
|
+
background: s,
|
|
987
|
+
backdropFilter: c > 0 ? `blur(${c}px)` : void 0,
|
|
988
|
+
WebkitBackdropFilter: c > 0 ? `blur(${c}px)` : void 0,
|
|
989
989
|
...p
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
);
|
|
993
993
|
}
|
|
994
|
-
function
|
|
995
|
-
children:
|
|
994
|
+
function Lr({
|
|
995
|
+
children: l,
|
|
996
996
|
origin: n = "left",
|
|
997
|
-
duration:
|
|
997
|
+
duration: s = 900,
|
|
998
998
|
color: o = "#111111",
|
|
999
|
-
curve:
|
|
1000
|
-
blur:
|
|
1001
|
-
className:
|
|
999
|
+
curve: v = 8,
|
|
1000
|
+
blur: c = 0,
|
|
1001
|
+
className: u = "",
|
|
1002
1002
|
style: p
|
|
1003
1003
|
}) {
|
|
1004
|
-
const a =
|
|
1005
|
-
return
|
|
1006
|
-
const
|
|
1007
|
-
if (!
|
|
1008
|
-
const
|
|
1009
|
-
|
|
1010
|
-
const
|
|
1004
|
+
const a = O(null), f = O(null), i = O(null), [h, y] = oe(!1);
|
|
1005
|
+
return z(() => {
|
|
1006
|
+
const E = a.current;
|
|
1007
|
+
if (!E) return;
|
|
1008
|
+
const R = (_) => {
|
|
1009
|
+
i.current || (i.current = _);
|
|
1010
|
+
const k = Math.min((_ - i.current) / s, 1), P = [], w = v, F = 20;
|
|
1011
1011
|
if (n === "left" || n === "right") {
|
|
1012
|
-
const
|
|
1013
|
-
for (let D = 0; D <=
|
|
1014
|
-
const W = D /
|
|
1015
|
-
|
|
1012
|
+
const M = n === "left", Y = M ? k * 100 : 100 - k * 100, I = M ? 150 : -50;
|
|
1013
|
+
for (let D = 0; D <= F; D++) {
|
|
1014
|
+
const W = D / F, q = W * 100, V = Math.sin(W * Math.PI) * w, G = Y + (M ? V : -V);
|
|
1015
|
+
P.push(`${G}% ${q}%`);
|
|
1016
1016
|
}
|
|
1017
|
-
|
|
1017
|
+
P.push(`${I}% 100%`), P.push(`${I}% 0%`);
|
|
1018
1018
|
} else {
|
|
1019
|
-
const
|
|
1020
|
-
for (let D = 0; D <=
|
|
1021
|
-
const W = D /
|
|
1022
|
-
|
|
1019
|
+
const M = n === "top", Y = M ? k * 100 : 100 - k * 100, I = M ? 150 : -50;
|
|
1020
|
+
for (let D = 0; D <= F; D++) {
|
|
1021
|
+
const W = D / F, q = W * 100, V = Math.sin(W * Math.PI) * w, G = Y + (M ? V : -V);
|
|
1022
|
+
P.push(`${q}% ${G}%`);
|
|
1023
1023
|
}
|
|
1024
|
-
|
|
1024
|
+
P.push(`100% ${I}%`), P.push(`0% ${I}%`);
|
|
1025
1025
|
}
|
|
1026
|
-
|
|
1026
|
+
E.style.clipPath = `polygon(${P.join(", ")})`, k < 1 ? f.current = requestAnimationFrame(R) : (E.style.clipPath = "none", E.style.display = "none", y(!0));
|
|
1027
1027
|
};
|
|
1028
|
-
return f.current = requestAnimationFrame(
|
|
1028
|
+
return f.current = requestAnimationFrame(R), () => {
|
|
1029
1029
|
f.current && cancelAnimationFrame(f.current);
|
|
1030
1030
|
};
|
|
1031
|
-
}, [n,
|
|
1031
|
+
}, [n, s, o, v]), /* @__PURE__ */ T.jsxs(
|
|
1032
1032
|
"div",
|
|
1033
1033
|
{
|
|
1034
|
-
className: `motioncss-wave-reveal ${
|
|
1034
|
+
className: `motioncss-wave-reveal ${u}`,
|
|
1035
1035
|
style: { position: "relative", overflow: "hidden", ...p },
|
|
1036
1036
|
children: [
|
|
1037
|
-
|
|
1038
|
-
!
|
|
1037
|
+
l,
|
|
1038
|
+
!h && /* @__PURE__ */ T.jsx(
|
|
1039
1039
|
"div",
|
|
1040
1040
|
{
|
|
1041
1041
|
ref: a,
|
|
@@ -1044,8 +1044,8 @@ function Cr({
|
|
|
1044
1044
|
position: "absolute",
|
|
1045
1045
|
inset: 0,
|
|
1046
1046
|
background: o,
|
|
1047
|
-
backdropFilter:
|
|
1048
|
-
WebkitBackdropFilter:
|
|
1047
|
+
backdropFilter: c > 0 ? `blur(${c}px)` : void 0,
|
|
1048
|
+
WebkitBackdropFilter: c > 0 ? `blur(${c}px)` : void 0,
|
|
1049
1049
|
zIndex: 10,
|
|
1050
1050
|
pointerEvents: "none"
|
|
1051
1051
|
}
|
|
@@ -1055,13 +1055,188 @@ function Cr({
|
|
|
1055
1055
|
}
|
|
1056
1056
|
);
|
|
1057
1057
|
}
|
|
1058
|
+
const Xe = Be(null);
|
|
1059
|
+
function Tr() {
|
|
1060
|
+
const l = qe(Xe);
|
|
1061
|
+
if (!l)
|
|
1062
|
+
throw new Error(
|
|
1063
|
+
"useScrollytelling must be used inside <Scrollytelling>"
|
|
1064
|
+
);
|
|
1065
|
+
return l;
|
|
1066
|
+
}
|
|
1067
|
+
function Yr({
|
|
1068
|
+
children: l,
|
|
1069
|
+
height: n = "400vh",
|
|
1070
|
+
className: s = "",
|
|
1071
|
+
style: o
|
|
1072
|
+
}) {
|
|
1073
|
+
const v = O(null), [c, u] = oe(0);
|
|
1074
|
+
return z(() => {
|
|
1075
|
+
let p = 0;
|
|
1076
|
+
const a = () => {
|
|
1077
|
+
p || (p = requestAnimationFrame(() => {
|
|
1078
|
+
p = 0;
|
|
1079
|
+
const f = v.current;
|
|
1080
|
+
if (!f) return;
|
|
1081
|
+
const i = f.getBoundingClientRect(), h = i.height - window.innerHeight;
|
|
1082
|
+
if (h <= 0) {
|
|
1083
|
+
u(0);
|
|
1084
|
+
return;
|
|
1085
|
+
}
|
|
1086
|
+
const y = -i.top / h, E = Math.min(
|
|
1087
|
+
1,
|
|
1088
|
+
Math.max(0, y)
|
|
1089
|
+
);
|
|
1090
|
+
u(E);
|
|
1091
|
+
}));
|
|
1092
|
+
};
|
|
1093
|
+
return a(), window.addEventListener("scroll", a, {
|
|
1094
|
+
passive: !0
|
|
1095
|
+
}), window.addEventListener("resize", a), () => {
|
|
1096
|
+
window.removeEventListener("scroll", a), window.removeEventListener("resize", a), p && cancelAnimationFrame(p);
|
|
1097
|
+
};
|
|
1098
|
+
}, []), /* @__PURE__ */ T.jsx(Xe.Provider, { value: { progress: c }, children: /* @__PURE__ */ T.jsx(
|
|
1099
|
+
"section",
|
|
1100
|
+
{
|
|
1101
|
+
ref: v,
|
|
1102
|
+
className: `motioncss-scrollytelling ${s}`,
|
|
1103
|
+
style: {
|
|
1104
|
+
height: n,
|
|
1105
|
+
position: "relative",
|
|
1106
|
+
...o
|
|
1107
|
+
},
|
|
1108
|
+
children: /* @__PURE__ */ T.jsx(
|
|
1109
|
+
"div",
|
|
1110
|
+
{
|
|
1111
|
+
className: "motioncss-scrollytelling__stage",
|
|
1112
|
+
style: {
|
|
1113
|
+
position: "sticky",
|
|
1114
|
+
top: 0,
|
|
1115
|
+
width: "100%",
|
|
1116
|
+
height: "100vh",
|
|
1117
|
+
overflow: "hidden"
|
|
1118
|
+
},
|
|
1119
|
+
children: l
|
|
1120
|
+
}
|
|
1121
|
+
)
|
|
1122
|
+
}
|
|
1123
|
+
) });
|
|
1124
|
+
}
|
|
1125
|
+
const Je = Be(null);
|
|
1126
|
+
function jr() {
|
|
1127
|
+
const l = qe(Je);
|
|
1128
|
+
if (!l)
|
|
1129
|
+
throw new Error(
|
|
1130
|
+
"useSceneProgress must be used inside <Scene>"
|
|
1131
|
+
);
|
|
1132
|
+
return l;
|
|
1133
|
+
}
|
|
1134
|
+
function Wr({
|
|
1135
|
+
children: l,
|
|
1136
|
+
start: n,
|
|
1137
|
+
end: s,
|
|
1138
|
+
fadeOutRange: o = 0.05,
|
|
1139
|
+
className: v = "",
|
|
1140
|
+
style: c
|
|
1141
|
+
}) {
|
|
1142
|
+
const { progress: u } = Tr(), p = Math.max(s - n, 1e-4), a = (u - n) / p, f = Math.min(
|
|
1143
|
+
1,
|
|
1144
|
+
Math.max(0, a)
|
|
1145
|
+
);
|
|
1146
|
+
let i = 1;
|
|
1147
|
+
if (o > 0 && u > s) {
|
|
1148
|
+
const h = u - s;
|
|
1149
|
+
i = 1 - Math.min(1, h / o);
|
|
1150
|
+
} else o === 0 && u > s && (i = 0);
|
|
1151
|
+
return /* @__PURE__ */ T.jsx(
|
|
1152
|
+
Je.Provider,
|
|
1153
|
+
{
|
|
1154
|
+
value: {
|
|
1155
|
+
progress: f
|
|
1156
|
+
},
|
|
1157
|
+
children: /* @__PURE__ */ T.jsx(
|
|
1158
|
+
"div",
|
|
1159
|
+
{
|
|
1160
|
+
className: `motioncss-scene ${v}`,
|
|
1161
|
+
style: {
|
|
1162
|
+
position: "absolute",
|
|
1163
|
+
inset: 0,
|
|
1164
|
+
opacity: i,
|
|
1165
|
+
pointerEvents: f > 0 && f < 1 ? "auto" : "none",
|
|
1166
|
+
...c
|
|
1167
|
+
},
|
|
1168
|
+
children: l
|
|
1169
|
+
}
|
|
1170
|
+
)
|
|
1171
|
+
}
|
|
1172
|
+
);
|
|
1173
|
+
}
|
|
1174
|
+
function J(l = 0, n = 0, s) {
|
|
1175
|
+
return l + (n - l) * s;
|
|
1176
|
+
}
|
|
1177
|
+
function Vr({
|
|
1178
|
+
children: l,
|
|
1179
|
+
from: n = {},
|
|
1180
|
+
to: s = {},
|
|
1181
|
+
className: o = "",
|
|
1182
|
+
style: v
|
|
1183
|
+
}) {
|
|
1184
|
+
const { progress: c } = jr(), u = J(
|
|
1185
|
+
n.opacity ?? 1,
|
|
1186
|
+
s.opacity ?? 1,
|
|
1187
|
+
c
|
|
1188
|
+
), p = J(
|
|
1189
|
+
n.scale ?? 1,
|
|
1190
|
+
s.scale ?? 1,
|
|
1191
|
+
c
|
|
1192
|
+
), a = J(
|
|
1193
|
+
n.x ?? 0,
|
|
1194
|
+
s.x ?? 0,
|
|
1195
|
+
c
|
|
1196
|
+
), f = J(
|
|
1197
|
+
n.y ?? 0,
|
|
1198
|
+
s.y ?? 0,
|
|
1199
|
+
c
|
|
1200
|
+
), i = J(
|
|
1201
|
+
n.rotate ?? 0,
|
|
1202
|
+
s.rotate ?? 0,
|
|
1203
|
+
c
|
|
1204
|
+
), h = J(
|
|
1205
|
+
n.blur ?? 0,
|
|
1206
|
+
s.blur ?? 0,
|
|
1207
|
+
c
|
|
1208
|
+
);
|
|
1209
|
+
return /* @__PURE__ */ T.jsx(
|
|
1210
|
+
"div",
|
|
1211
|
+
{
|
|
1212
|
+
className: `motioncss-scroll-layer ${o}`,
|
|
1213
|
+
style: {
|
|
1214
|
+
opacity: u,
|
|
1215
|
+
transform: `
|
|
1216
|
+
translate3d(${a}px, ${f}px, 0)
|
|
1217
|
+
scale(${p})
|
|
1218
|
+
rotate(${i}deg)
|
|
1219
|
+
`,
|
|
1220
|
+
filter: h > 0 ? `blur(${h}px)` : "none",
|
|
1221
|
+
willChange: "transform, opacity, filter",
|
|
1222
|
+
...v
|
|
1223
|
+
},
|
|
1224
|
+
children: l
|
|
1225
|
+
}
|
|
1226
|
+
);
|
|
1227
|
+
}
|
|
1058
1228
|
export {
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1229
|
+
Dr as EdgeWave,
|
|
1230
|
+
Ir as GradientFlow,
|
|
1231
|
+
Or as Magnetic,
|
|
1232
|
+
Mr as RevealText,
|
|
1233
|
+
Wr as Scene,
|
|
1234
|
+
Vr as ScrollLayer,
|
|
1235
|
+
Ar as ScrollReveal,
|
|
1236
|
+
Yr as Scrollytelling,
|
|
1237
|
+
Fr as Spotlight,
|
|
1238
|
+
kr as TiltCard,
|
|
1239
|
+
Lr as WaveReveal,
|
|
1240
|
+
jr as useSceneProgress,
|
|
1241
|
+
Tr as useScrollytelling
|
|
1067
1242
|
};
|