motioncss-ui 0.1.3 → 0.1.4
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/motioncss-ui.js +580 -455
- package/dist/motioncss-ui.umd.cjs +23 -23
- package/package.json +4 -3
package/dist/motioncss-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import Ve, { useRef as k, useState as de, useEffect as Z, useCallback as yr } from "react";
|
|
2
|
+
var ne = { exports: {} }, z = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,21 +9,21 @@ var K = { exports: {} }, N = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
12
|
+
var Ye;
|
|
13
13
|
function mr() {
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
for (
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof:
|
|
14
|
+
if (Ye) return z;
|
|
15
|
+
Ye = 1;
|
|
16
|
+
var m = Ve, n = Symbol.for("react.element"), h = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, l = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function d(p, a, f) {
|
|
18
|
+
var s, g = {}, c = null, R = null;
|
|
19
|
+
f !== void 0 && (c = "" + f), a.key !== void 0 && (c = "" + a.key), a.ref !== void 0 && (R = a.ref);
|
|
20
|
+
for (s in a) o.call(a, s) && !u.hasOwnProperty(s) && (g[s] = a[s]);
|
|
21
|
+
if (p && p.defaultProps) for (s in a = p.defaultProps, a) g[s] === void 0 && (g[s] = a[s]);
|
|
22
|
+
return { $$typeof: n, type: p, key: c, ref: R, props: g, _owner: l.current };
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return z.Fragment = h, z.jsx = d, z.jsxs = d, z;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var H = {};
|
|
27
27
|
/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-jsx-runtime.development.js
|
|
@@ -33,91 +33,91 @@ var U = {};
|
|
|
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 Le;
|
|
37
|
+
function gr() {
|
|
38
|
+
return Le || (Le = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
39
|
+
var m = Ve, n = Symbol.for("react.element"), h = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), p = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), E = Symbol.iterator, x = "@@iterator";
|
|
40
|
+
function j(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var r =
|
|
43
|
+
var r = E && e[E] || e[x];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
46
|
+
var T = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function $(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), i = 1; i < r; i++)
|
|
50
|
+
t[i - 1] = arguments[i];
|
|
51
|
+
C("error", e, t);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function C(e, r, t) {
|
|
55
55
|
{
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
var
|
|
59
|
-
return String(
|
|
56
|
+
var i = T.ReactDebugCurrentFrame, b = i.getStackAddendum();
|
|
57
|
+
b !== "" && (r += "%s", t = t.concat([b]));
|
|
58
|
+
var _ = t.map(function(y) {
|
|
59
|
+
return String(y);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
_.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, _);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
function
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
64
|
+
var I = !1, L = !1, A = !1, D = !1, W = !1, U;
|
|
65
|
+
U = Symbol.for("react.module.reference");
|
|
66
|
+
function V(e) {
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === u || W || e === l || e === f || e === s || D || e === R || I || L || A || typeof e == "object" && e !== null && (e.$$typeof === c || e.$$typeof === g || e.$$typeof === d || 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 === U || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
77
|
-
var
|
|
78
|
-
return
|
|
73
|
+
function J(e, r, t) {
|
|
74
|
+
var i = e.displayName;
|
|
75
|
+
if (i)
|
|
76
|
+
return i;
|
|
77
|
+
var b = r.displayName || r.name || "";
|
|
78
|
+
return b !== "" ? t + "(" + b + ")" : t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function pe(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Y(e) {
|
|
84
84
|
if (e == null)
|
|
85
85
|
return null;
|
|
86
|
-
if (typeof e.tag == "number" &&
|
|
86
|
+
if (typeof e.tag == "number" && $("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
|
-
case
|
|
91
|
+
case o:
|
|
92
92
|
return "Fragment";
|
|
93
|
-
case
|
|
93
|
+
case h:
|
|
94
94
|
return "Portal";
|
|
95
|
-
case
|
|
95
|
+
case u:
|
|
96
96
|
return "Profiler";
|
|
97
|
-
case
|
|
97
|
+
case l:
|
|
98
98
|
return "StrictMode";
|
|
99
|
-
case S:
|
|
100
|
-
return "Suspense";
|
|
101
99
|
case f:
|
|
100
|
+
return "Suspense";
|
|
101
|
+
case s:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
106
|
+
case p:
|
|
107
107
|
var r = e;
|
|
108
|
-
return
|
|
109
|
-
case
|
|
108
|
+
return pe(r) + ".Consumer";
|
|
109
|
+
case d:
|
|
110
110
|
var t = e;
|
|
111
|
-
return
|
|
112
|
-
case
|
|
113
|
-
return
|
|
114
|
-
case
|
|
115
|
-
var
|
|
116
|
-
return
|
|
111
|
+
return pe(t._context) + ".Provider";
|
|
112
|
+
case a:
|
|
113
|
+
return J(e, e.render, "ForwardRef");
|
|
114
|
+
case g:
|
|
115
|
+
var i = e.displayName || null;
|
|
116
|
+
return i !== null ? i : Y(e.type) || "Memo";
|
|
117
117
|
case c: {
|
|
118
|
-
var
|
|
118
|
+
var b = e, _ = b._payload, y = b._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return Y(y(_));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,18 +125,18 @@ function hr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
129
|
-
function
|
|
128
|
+
var B = Object.assign, G = 0, he, ye, me, ge, be, Re, Ee;
|
|
129
|
+
function _e() {
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
function
|
|
131
|
+
_e.__reactDisabledLog = !0;
|
|
132
|
+
function Ne() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
|
|
134
|
+
if (G === 0) {
|
|
135
|
+
he = console.log, ye = console.info, me = console.warn, ge = console.error, be = console.group, Re = console.groupCollapsed, Ee = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
139
|
-
value:
|
|
139
|
+
value: _e,
|
|
140
140
|
writable: !0
|
|
141
141
|
};
|
|
142
142
|
Object.defineProperties(console, {
|
|
@@ -149,199 +149,199 @@ function hr() {
|
|
|
149
149
|
groupEnd: e
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
G++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Ue() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (G--, G === 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:
|
|
165
|
-
value:
|
|
164
|
+
log: B({}, e, {
|
|
165
|
+
value: he
|
|
166
166
|
}),
|
|
167
|
-
info:
|
|
168
|
-
value:
|
|
167
|
+
info: B({}, e, {
|
|
168
|
+
value: ye
|
|
169
169
|
}),
|
|
170
|
-
warn:
|
|
171
|
-
value:
|
|
170
|
+
warn: B({}, e, {
|
|
171
|
+
value: me
|
|
172
172
|
}),
|
|
173
|
-
error:
|
|
174
|
-
value:
|
|
173
|
+
error: B({}, e, {
|
|
174
|
+
value: ge
|
|
175
175
|
}),
|
|
176
|
-
group:
|
|
177
|
-
value:
|
|
176
|
+
group: B({}, e, {
|
|
177
|
+
value: be
|
|
178
178
|
}),
|
|
179
|
-
groupCollapsed:
|
|
180
|
-
value:
|
|
179
|
+
groupCollapsed: B({}, e, {
|
|
180
|
+
value: Re
|
|
181
181
|
}),
|
|
182
|
-
groupEnd:
|
|
183
|
-
value:
|
|
182
|
+
groupEnd: B({}, e, {
|
|
183
|
+
value: Ee
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
G < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var
|
|
191
|
-
function
|
|
190
|
+
var ae = T.ReactCurrentDispatcher, ie;
|
|
191
|
+
function Q(e, r, t) {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
193
|
+
if (ie === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
|
-
} catch (
|
|
197
|
-
var
|
|
198
|
-
|
|
196
|
+
} catch (b) {
|
|
197
|
+
var i = b.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
ie = i && i[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
|
-
` +
|
|
201
|
+
` + ie + e;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var oe = !1, ee;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
|
|
206
|
+
var qe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
ee = new qe();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
if (!e ||
|
|
209
|
+
function xe(e, r) {
|
|
210
|
+
if (!e || oe)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var t =
|
|
213
|
+
var t = ee.get(e);
|
|
214
214
|
if (t !== void 0)
|
|
215
215
|
return t;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
218
|
-
|
|
219
|
-
var
|
|
217
|
+
var i;
|
|
218
|
+
oe = !0;
|
|
219
|
+
var b = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
|
-
var
|
|
222
|
-
|
|
221
|
+
var _;
|
|
222
|
+
_ = ae.current, ae.current = null, Ne();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
|
-
var
|
|
225
|
+
var y = function() {
|
|
226
226
|
throw Error();
|
|
227
227
|
};
|
|
228
|
-
if (Object.defineProperty(
|
|
228
|
+
if (Object.defineProperty(y.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(y, []);
|
|
235
|
+
} catch (O) {
|
|
236
|
+
i = O;
|
|
237
237
|
}
|
|
238
|
-
Reflect.construct(e, [],
|
|
238
|
+
Reflect.construct(e, [], y);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
|
-
|
|
242
|
-
} catch (
|
|
243
|
-
|
|
241
|
+
y.call();
|
|
242
|
+
} catch (O) {
|
|
243
|
+
i = O;
|
|
244
244
|
}
|
|
245
|
-
e.call(
|
|
245
|
+
e.call(y.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
|
|
250
|
+
} catch (O) {
|
|
251
|
+
i = O;
|
|
252
252
|
}
|
|
253
253
|
e();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var
|
|
258
|
-
`),
|
|
259
|
-
`),
|
|
260
|
-
|
|
261
|
-
for (;
|
|
262
|
-
if (
|
|
263
|
-
if (
|
|
255
|
+
} catch (O) {
|
|
256
|
+
if (O && i && typeof O.stack == "string") {
|
|
257
|
+
for (var v = O.stack.split(`
|
|
258
|
+
`), P = i.stack.split(`
|
|
259
|
+
`), w = v.length - 1, S = P.length - 1; w >= 1 && S >= 0 && v[w] !== P[S]; )
|
|
260
|
+
S--;
|
|
261
|
+
for (; w >= 1 && S >= 0; w--, S--)
|
|
262
|
+
if (v[w] !== P[S]) {
|
|
263
|
+
if (w !== 1 || S !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (
|
|
266
|
-
var
|
|
267
|
-
` +
|
|
268
|
-
return e.displayName &&
|
|
265
|
+
if (w--, S--, S < 0 || v[w] !== P[S]) {
|
|
266
|
+
var M = `
|
|
267
|
+
` + v[w].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && M.includes("<anonymous>") && (M = M.replace("<anonymous>", e.displayName)), typeof e == "function" && ee.set(e, M), M;
|
|
269
269
|
}
|
|
270
|
-
while (
|
|
270
|
+
while (w >= 1 && S >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
oe = !1, ae.current = _, Ue(), Error.prepareStackTrace = b;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof e == "function" &&
|
|
277
|
+
var X = e ? e.displayName || e.name : "", N = X ? Q(X) : "";
|
|
278
|
+
return typeof e == "function" && ee.set(e, N), N;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function Xe(e, r, t) {
|
|
281
|
+
return xe(e, !1);
|
|
282
282
|
}
|
|
283
283
|
function Je(e) {
|
|
284
284
|
var r = e.prototype;
|
|
285
285
|
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function re(e, r, t) {
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return
|
|
291
|
+
return xe(e, Je(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
|
-
return
|
|
293
|
+
return Q(e);
|
|
294
294
|
switch (e) {
|
|
295
|
-
case S:
|
|
296
|
-
return X("Suspense");
|
|
297
295
|
case f:
|
|
298
|
-
return
|
|
296
|
+
return Q("Suspense");
|
|
297
|
+
case s:
|
|
298
|
+
return Q("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
|
-
case
|
|
303
|
-
return
|
|
304
|
-
case
|
|
305
|
-
return
|
|
302
|
+
case a:
|
|
303
|
+
return Xe(e.render);
|
|
304
|
+
case g:
|
|
305
|
+
return re(e.type, r, t);
|
|
306
306
|
case c: {
|
|
307
|
-
var
|
|
307
|
+
var i = e, b = i._payload, _ = i._init;
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return re(_(b), r, t);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
316
|
+
var K = Object.prototype.hasOwnProperty, $e = {}, we = T.ReactDebugCurrentFrame;
|
|
317
|
+
function te(e) {
|
|
318
318
|
if (e) {
|
|
319
|
-
var r = e._owner, t =
|
|
320
|
-
|
|
319
|
+
var r = e._owner, t = re(e.type, e._source, r ? r.type : null);
|
|
320
|
+
we.setExtraStackFrame(t);
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
we.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function Ge(e, r, t,
|
|
324
|
+
function Ge(e, r, t, i, b) {
|
|
325
325
|
{
|
|
326
|
-
var
|
|
327
|
-
for (var
|
|
328
|
-
if (
|
|
329
|
-
var
|
|
326
|
+
var _ = Function.call.bind(K);
|
|
327
|
+
for (var y in e)
|
|
328
|
+
if (_(e, y)) {
|
|
329
|
+
var v = void 0;
|
|
330
330
|
try {
|
|
331
|
-
if (typeof e[
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
331
|
+
if (typeof e[y] != "function") {
|
|
332
|
+
var P = Error((i || "React class") + ": " + t + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw P.name = "Invariant Violation", P;
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
} catch (
|
|
337
|
-
|
|
335
|
+
v = e[y](r, y, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
+
} catch (w) {
|
|
337
|
+
v = w;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
v && !(v instanceof Error) && (te(b), $("%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).", i || "React class", t, y, typeof v), te(null)), v instanceof Error && !(v.message in $e) && ($e[v.message] = !0, te(b), $("Failed %s type: %s", t, v.message), te(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
var Ke = Array.isArray;
|
|
344
|
-
function
|
|
344
|
+
function se(e) {
|
|
345
345
|
return Ke(e);
|
|
346
346
|
}
|
|
347
347
|
function ze(e) {
|
|
@@ -352,26 +352,26 @@ function hr() {
|
|
|
352
352
|
}
|
|
353
353
|
function He(e) {
|
|
354
354
|
try {
|
|
355
|
-
return
|
|
355
|
+
return Se(e), !1;
|
|
356
356
|
} catch {
|
|
357
357
|
return !0;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Se(e) {
|
|
361
361
|
return "" + e;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Te(e) {
|
|
364
364
|
if (He(e))
|
|
365
|
-
return
|
|
365
|
+
return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), Se(e);
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var Pe = T.ReactCurrentOwner, Ze = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
},
|
|
372
|
+
}, Oe, je;
|
|
373
373
|
function Qe(e) {
|
|
374
|
-
if (
|
|
374
|
+
if (K.call(e, "ref")) {
|
|
375
375
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
376
|
if (r && r.isReactWarning)
|
|
377
377
|
return !1;
|
|
@@ -379,7 +379,7 @@ function hr() {
|
|
|
379
379
|
return e.ref !== void 0;
|
|
380
380
|
}
|
|
381
381
|
function er(e) {
|
|
382
|
-
if (
|
|
382
|
+
if (K.call(e, "key")) {
|
|
383
383
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
384
|
if (r && r.isReactWarning)
|
|
385
385
|
return !1;
|
|
@@ -387,12 +387,12 @@ function hr() {
|
|
|
387
387
|
return e.key !== void 0;
|
|
388
388
|
}
|
|
389
389
|
function rr(e, r) {
|
|
390
|
-
typeof e.ref == "string" &&
|
|
390
|
+
typeof e.ref == "string" && Pe.current;
|
|
391
391
|
}
|
|
392
392
|
function tr(e, r) {
|
|
393
393
|
{
|
|
394
394
|
var t = function() {
|
|
395
|
-
|
|
395
|
+
Oe || (Oe = !0, $("%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,
|
|
@@ -403,7 +403,7 @@ function hr() {
|
|
|
403
403
|
function nr(e, r) {
|
|
404
404
|
{
|
|
405
405
|
var t = function() {
|
|
406
|
-
|
|
406
|
+
je || (je = !0, $("%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 hr() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var ar = function(e, r, t,
|
|
415
|
-
var
|
|
414
|
+
var ar = function(e, r, t, i, b, _, y) {
|
|
415
|
+
var v = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof:
|
|
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: y,
|
|
423
423
|
// Record the component responsible for creating this element.
|
|
424
|
-
_owner:
|
|
424
|
+
_owner: _
|
|
425
425
|
};
|
|
426
|
-
return
|
|
426
|
+
return v._store = {}, Object.defineProperty(v._store, "validated", {
|
|
427
427
|
configurable: !1,
|
|
428
428
|
enumerable: !1,
|
|
429
429
|
writable: !0,
|
|
430
430
|
value: !1
|
|
431
|
-
}), Object.defineProperty(
|
|
431
|
+
}), Object.defineProperty(v, "_self", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !1,
|
|
435
|
-
value:
|
|
436
|
-
}), Object.defineProperty(
|
|
435
|
+
value: i
|
|
436
|
+
}), Object.defineProperty(v, "_source", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
|
-
value:
|
|
441
|
-
}), Object.freeze && (Object.freeze(
|
|
440
|
+
value: b
|
|
441
|
+
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
|
|
442
442
|
};
|
|
443
|
-
function ir(e, r, t,
|
|
443
|
+
function ir(e, r, t, i, b) {
|
|
444
444
|
{
|
|
445
|
-
var
|
|
446
|
-
t !== void 0 && (
|
|
447
|
-
for (
|
|
448
|
-
|
|
445
|
+
var _, y = {}, v = null, P = null;
|
|
446
|
+
t !== void 0 && (Te(t), v = "" + t), er(r) && (Te(r.key), v = "" + r.key), Qe(r) && (P = r.ref, rr(r, b));
|
|
447
|
+
for (_ in r)
|
|
448
|
+
K.call(r, _) && !Ze.hasOwnProperty(_) && (y[_] = r[_]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
|
-
var
|
|
451
|
-
for (
|
|
452
|
-
|
|
450
|
+
var w = e.defaultProps;
|
|
451
|
+
for (_ in w)
|
|
452
|
+
y[_] === void 0 && (y[_] = w[_]);
|
|
453
453
|
}
|
|
454
|
-
if (
|
|
455
|
-
var
|
|
456
|
-
|
|
454
|
+
if (v || P) {
|
|
455
|
+
var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
+
v && tr(y, S), P && nr(y, S);
|
|
457
457
|
}
|
|
458
|
-
return ar(e,
|
|
458
|
+
return ar(e, v, P, b, i, Pe.current, y);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
462
|
-
function
|
|
461
|
+
var ce = T.ReactCurrentOwner, Ce = T.ReactDebugCurrentFrame;
|
|
462
|
+
function q(e) {
|
|
463
463
|
if (e) {
|
|
464
|
-
var r = e._owner, t =
|
|
465
|
-
|
|
464
|
+
var r = e._owner, t = re(e.type, e._source, r ? r.type : null);
|
|
465
|
+
Ce.setExtraStackFrame(t);
|
|
466
466
|
} else
|
|
467
|
-
|
|
467
|
+
Ce.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
function
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
469
|
+
var ue;
|
|
470
|
+
ue = !1;
|
|
471
|
+
function le(e) {
|
|
472
|
+
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function ke() {
|
|
475
475
|
{
|
|
476
|
-
if (
|
|
477
|
-
var e =
|
|
476
|
+
if (ce.current) {
|
|
477
|
+
var e = Y(ce.current.type);
|
|
478
478
|
if (e)
|
|
479
479
|
return `
|
|
480
480
|
|
|
@@ -486,10 +486,10 @@ Check the render method of \`` + e + "`.";
|
|
|
486
486
|
function or(e) {
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
|
-
var
|
|
489
|
+
var Fe = {};
|
|
490
490
|
function sr(e) {
|
|
491
491
|
{
|
|
492
|
-
var r =
|
|
492
|
+
var r = ke();
|
|
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 Ie(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
507
|
var t = sr(r);
|
|
508
|
-
if (
|
|
508
|
+
if (Fe[t])
|
|
509
509
|
return;
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
e && e._owner && e._owner !==
|
|
510
|
+
Fe[t] = !0;
|
|
511
|
+
var i = "";
|
|
512
|
+
e && e._owner && e._owner !== ce.current && (i = " It was passed a child from " + Y(e._owner.type) + "."), q(e), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, i), q(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Me(e, r) {
|
|
516
516
|
{
|
|
517
517
|
if (typeof e != "object")
|
|
518
518
|
return;
|
|
519
|
-
if (
|
|
519
|
+
if (se(e))
|
|
520
520
|
for (var t = 0; t < e.length; t++) {
|
|
521
|
-
var
|
|
522
|
-
|
|
521
|
+
var i = e[t];
|
|
522
|
+
le(i) && Ie(i, r);
|
|
523
523
|
}
|
|
524
|
-
else if (
|
|
524
|
+
else if (le(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
|
-
var
|
|
528
|
-
if (typeof
|
|
529
|
-
for (var
|
|
530
|
-
|
|
527
|
+
var b = j(e);
|
|
528
|
+
if (typeof b == "function" && b !== e.entries)
|
|
529
|
+
for (var _ = b.call(e), y; !(y = _.next()).done; )
|
|
530
|
+
le(y.value) && Ie(y.value, r);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function cr(e) {
|
|
535
535
|
{
|
|
536
536
|
var r = e.type;
|
|
537
537
|
if (r == null || typeof r == "string")
|
|
@@ -539,179 +539,179 @@ Check the top-level render call using <` + t + ">.");
|
|
|
539
539
|
var t;
|
|
540
540
|
if (typeof r == "function")
|
|
541
541
|
t = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
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 === g))
|
|
545
545
|
t = r.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (t) {
|
|
549
|
-
var
|
|
550
|
-
Ge(t, e.props, "prop",
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !
|
|
552
|
-
|
|
553
|
-
var
|
|
554
|
-
|
|
549
|
+
var i = Y(r);
|
|
550
|
+
Ge(t, e.props, "prop", i, e);
|
|
551
|
+
} else if (r.PropTypes !== void 0 && !ue) {
|
|
552
|
+
ue = !0;
|
|
553
|
+
var b = Y(r);
|
|
554
|
+
$("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 && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function ur(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 i = r[t];
|
|
563
|
+
if (i !== "children" && i !== "key") {
|
|
564
|
+
q(e), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), q(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
e.ref !== null && (
|
|
568
|
+
e.ref !== null && (q(e), $("Invalid attribute `ref` supplied to `React.Fragment`."), q(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
var
|
|
572
|
-
function
|
|
571
|
+
var Ae = {};
|
|
572
|
+
function De(e, r, t, i, b, _) {
|
|
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 y = V(e);
|
|
575
|
+
if (!y) {
|
|
576
|
+
var v = "";
|
|
577
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (v += " 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 P = or();
|
|
579
|
+
P ? v += P : v += ke();
|
|
580
|
+
var w;
|
|
581
|
+
e === null ? w = "null" : se(e) ? w = "array" : e !== void 0 && e.$$typeof === n ? (w = "<" + (Y(e.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : w = typeof e, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, v);
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
586
|
-
if (
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
if (
|
|
590
|
-
if (
|
|
591
|
-
for (var
|
|
592
|
-
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
583
|
+
var S = ir(e, r, t, b, _);
|
|
584
|
+
if (S == null)
|
|
585
|
+
return S;
|
|
586
|
+
if (y) {
|
|
587
|
+
var M = r.children;
|
|
588
|
+
if (M !== void 0)
|
|
589
|
+
if (i)
|
|
590
|
+
if (se(M)) {
|
|
591
|
+
for (var X = 0; X < M.length; X++)
|
|
592
|
+
Me(M[X], e);
|
|
593
|
+
Object.freeze && Object.freeze(M);
|
|
594
594
|
} else
|
|
595
|
-
|
|
595
|
+
$("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
|
+
Me(M, e);
|
|
598
598
|
}
|
|
599
|
-
if (
|
|
600
|
-
var
|
|
601
|
-
return
|
|
602
|
-
}),
|
|
603
|
-
if (!
|
|
604
|
-
var pr =
|
|
605
|
-
|
|
599
|
+
if (K.call(r, "key")) {
|
|
600
|
+
var N = Y(e), O = Object.keys(r).filter(function(hr) {
|
|
601
|
+
return hr !== "key";
|
|
602
|
+
}), fe = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!Ae[N + fe]) {
|
|
604
|
+
var pr = O.length > 0 ? "{" + O.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
+
$(`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} />`, fe, N, pr, N), Ae[N + fe] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return e ===
|
|
613
|
+
return e === o ? ur(S) : cr(S), S;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
function lr(e, r, t) {
|
|
617
|
-
return
|
|
617
|
+
return De(e, r, t, !0);
|
|
618
618
|
}
|
|
619
619
|
function fr(e, r, t) {
|
|
620
|
-
return
|
|
620
|
+
return De(e, r, t, !1);
|
|
621
621
|
}
|
|
622
622
|
var dr = fr, vr = lr;
|
|
623
|
-
|
|
624
|
-
})()),
|
|
623
|
+
H.Fragment = o, H.jsx = dr, H.jsxs = vr;
|
|
624
|
+
})()), H;
|
|
625
625
|
}
|
|
626
|
-
var
|
|
626
|
+
var We;
|
|
627
627
|
function br() {
|
|
628
|
-
return
|
|
628
|
+
return We || (We = 1, process.env.NODE_ENV === "production" ? ne.exports = mr() : ne.exports = gr()), ne.exports;
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
function
|
|
632
|
-
children:
|
|
633
|
-
strength:
|
|
634
|
-
speed:
|
|
635
|
-
scale:
|
|
636
|
-
className:
|
|
630
|
+
var F = br();
|
|
631
|
+
function $r({
|
|
632
|
+
children: m,
|
|
633
|
+
strength: n = 0.3,
|
|
634
|
+
speed: h = 0.25,
|
|
635
|
+
scale: o = 1,
|
|
636
|
+
className: l = ""
|
|
637
637
|
}) {
|
|
638
|
-
const
|
|
639
|
-
const
|
|
640
|
-
if (!
|
|
641
|
-
const
|
|
642
|
-
|
|
643
|
-
translate(${
|
|
644
|
-
scale(${
|
|
638
|
+
const u = k(null), d = (a) => {
|
|
639
|
+
const f = u.current;
|
|
640
|
+
if (!f) return;
|
|
641
|
+
const s = f.getBoundingClientRect(), g = a.clientX - (s.left + s.width / 2), c = a.clientY - (s.top + s.height / 2);
|
|
642
|
+
f.style.transform = `
|
|
643
|
+
translate(${g * n}px, ${c * n}px)
|
|
644
|
+
scale(${o})
|
|
645
645
|
`;
|
|
646
|
-
},
|
|
647
|
-
const
|
|
648
|
-
|
|
646
|
+
}, p = () => {
|
|
647
|
+
const a = u.current;
|
|
648
|
+
a && (a.style.transform = "translate(0, 0) scale(1)");
|
|
649
649
|
};
|
|
650
|
-
return /* @__PURE__ */
|
|
650
|
+
return /* @__PURE__ */ F.jsx(
|
|
651
651
|
"div",
|
|
652
652
|
{
|
|
653
|
-
ref:
|
|
654
|
-
className:
|
|
655
|
-
onMouseMove:
|
|
656
|
-
onMouseLeave:
|
|
653
|
+
ref: u,
|
|
654
|
+
className: l,
|
|
655
|
+
onMouseMove: d,
|
|
656
|
+
onMouseLeave: p,
|
|
657
657
|
style: {
|
|
658
658
|
display: "inline-block",
|
|
659
|
-
transition: `transform ${
|
|
659
|
+
transition: `transform ${h}s ease-out`,
|
|
660
660
|
willChange: "transform"
|
|
661
661
|
},
|
|
662
|
-
children:
|
|
662
|
+
children: m
|
|
663
663
|
}
|
|
664
664
|
);
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
const [
|
|
668
|
-
return
|
|
666
|
+
function ve() {
|
|
667
|
+
const [m, n] = de(!1);
|
|
668
|
+
return Z(() => {
|
|
669
669
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
670
|
-
const
|
|
671
|
-
|
|
672
|
-
const
|
|
673
|
-
return
|
|
674
|
-
}, []),
|
|
670
|
+
const h = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
671
|
+
n(h.matches);
|
|
672
|
+
const o = (l) => n(l.matches);
|
|
673
|
+
return h.addEventListener("change", o), () => h.removeEventListener("change", o);
|
|
674
|
+
}, []), m;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
children:
|
|
678
|
-
tilt:
|
|
679
|
-
scale:
|
|
680
|
-
glare:
|
|
681
|
-
perspective:
|
|
682
|
-
className:
|
|
683
|
-
style:
|
|
676
|
+
function wr({
|
|
677
|
+
children: m,
|
|
678
|
+
tilt: n = 15,
|
|
679
|
+
scale: h = 1.03,
|
|
680
|
+
glare: o = !0,
|
|
681
|
+
perspective: l = 1e3,
|
|
682
|
+
className: u = "",
|
|
683
|
+
style: d
|
|
684
684
|
}) {
|
|
685
|
-
const
|
|
686
|
-
const
|
|
687
|
-
if (!
|
|
688
|
-
const
|
|
689
|
-
|
|
690
|
-
const
|
|
691
|
-
|
|
692
|
-
},
|
|
693
|
-
const c =
|
|
694
|
-
c && (c.style.transition = "transform 0.4s ease-out", c.style.transform = `perspective(${
|
|
685
|
+
const p = k(null), a = k(null), f = ve(), s = (c) => {
|
|
686
|
+
const R = p.current;
|
|
687
|
+
if (!R || f) return;
|
|
688
|
+
const E = R.getBoundingClientRect(), x = (c.clientX - E.left) / E.width, j = (c.clientY - E.top) / E.height, T = (x - 0.5) * 2 * n, $ = (0.5 - j) * 2 * n;
|
|
689
|
+
R.style.transition = "transform 0.08s linear", R.style.transform = `perspective(${l}px) rotateX(${$}deg) rotateY(${T}deg) scale(${h})`;
|
|
690
|
+
const C = a.current;
|
|
691
|
+
C && (C.style.opacity = "1", C.style.background = `radial-gradient(circle at ${x * 100}% ${j * 100}%, rgba(255,255,255,0.35), transparent 55%)`);
|
|
692
|
+
}, g = () => {
|
|
693
|
+
const c = p.current;
|
|
694
|
+
c && (c.style.transition = "transform 0.4s ease-out", c.style.transform = `perspective(${l}px) rotateX(0deg) rotateY(0deg) scale(1)`, a.current && (a.current.style.opacity = "0"));
|
|
695
695
|
};
|
|
696
|
-
return /* @__PURE__ */
|
|
696
|
+
return /* @__PURE__ */ F.jsxs(
|
|
697
697
|
"div",
|
|
698
698
|
{
|
|
699
|
-
ref:
|
|
700
|
-
className:
|
|
701
|
-
onMouseMove:
|
|
702
|
-
onMouseLeave:
|
|
699
|
+
ref: p,
|
|
700
|
+
className: u,
|
|
701
|
+
onMouseMove: s,
|
|
702
|
+
onMouseLeave: g,
|
|
703
703
|
style: {
|
|
704
704
|
position: "relative",
|
|
705
705
|
transformStyle: "preserve-3d",
|
|
706
706
|
willChange: "transform",
|
|
707
|
-
...
|
|
707
|
+
...d
|
|
708
708
|
},
|
|
709
709
|
children: [
|
|
710
|
-
|
|
711
|
-
|
|
710
|
+
m,
|
|
711
|
+
o && /* @__PURE__ */ F.jsx(
|
|
712
712
|
"div",
|
|
713
713
|
{
|
|
714
|
-
ref:
|
|
714
|
+
ref: a,
|
|
715
715
|
"aria-hidden": "true",
|
|
716
716
|
style: {
|
|
717
717
|
position: "absolute",
|
|
@@ -735,61 +735,61 @@ const Rr = {
|
|
|
735
735
|
neon: { opacity: 1, blurScale: 1.2, gradient: "radial" }
|
|
736
736
|
};
|
|
737
737
|
function Sr({
|
|
738
|
-
children:
|
|
739
|
-
size:
|
|
740
|
-
intensity:
|
|
741
|
-
color:
|
|
742
|
-
blur:
|
|
743
|
-
mode:
|
|
744
|
-
enabled:
|
|
745
|
-
className:
|
|
746
|
-
style:
|
|
738
|
+
children: m,
|
|
739
|
+
size: n = 320,
|
|
740
|
+
intensity: h = 0.85,
|
|
741
|
+
color: o = "#ffffff",
|
|
742
|
+
blur: l = 60,
|
|
743
|
+
mode: u = "radial",
|
|
744
|
+
enabled: d = !0,
|
|
745
|
+
className: p = "",
|
|
746
|
+
style: a
|
|
747
747
|
}) {
|
|
748
|
-
const
|
|
749
|
-
(
|
|
750
|
-
${
|
|
751
|
-
${
|
|
752
|
-
${
|
|
753
|
-
transparent 75%)` :
|
|
754
|
-
${
|
|
755
|
-
${
|
|
756
|
-
transparent 100%)` : `radial-gradient(${
|
|
757
|
-
${
|
|
758
|
-
${
|
|
748
|
+
const f = k(null), s = k(null), g = k(!1), c = Rr[u], R = yr(
|
|
749
|
+
(E, x) => (n / 2 * c.blurScale, l * c.blurScale, u === "neon" ? `radial-gradient(${n * c.blurScale}px circle at ${E}px ${x}px,
|
|
750
|
+
${o}33 0%,
|
|
751
|
+
${o}22 25%,
|
|
752
|
+
${o}11 50%,
|
|
753
|
+
transparent 75%)` : u === "sharp" ? `radial-gradient(${n * 0.4}px circle at ${E}px ${x}px,
|
|
754
|
+
${o}dd 0%,
|
|
755
|
+
${o}99 30%,
|
|
756
|
+
transparent 100%)` : `radial-gradient(${n * c.blurScale}px circle at ${E}px ${x}px,
|
|
757
|
+
${o}${Math.round(h * 255).toString(16).padStart(2, "0")} 0%,
|
|
758
|
+
${o}${Math.round(h * 0.5 * 255).toString(16).padStart(2, "0")} 40%,
|
|
759
759
|
transparent 100%)`),
|
|
760
|
-
[
|
|
760
|
+
[n, h, o, l, u, c]
|
|
761
761
|
);
|
|
762
|
-
return
|
|
763
|
-
if (!
|
|
764
|
-
const
|
|
765
|
-
if (!
|
|
766
|
-
const
|
|
767
|
-
const
|
|
768
|
-
|
|
769
|
-
},
|
|
770
|
-
|
|
771
|
-
},
|
|
772
|
-
|
|
762
|
+
return Z(() => {
|
|
763
|
+
if (!d) return;
|
|
764
|
+
const E = f.current, x = s.current;
|
|
765
|
+
if (!E || !x) return;
|
|
766
|
+
const j = (C) => {
|
|
767
|
+
const I = E.getBoundingClientRect(), L = C.clientX - I.left, A = C.clientY - I.top;
|
|
768
|
+
x.style.background = R(L, A), x.style.opacity = String(c.opacity);
|
|
769
|
+
}, T = () => {
|
|
770
|
+
g.current = !0, x.style.transition = "opacity 300ms ease", x.style.opacity = String(c.opacity);
|
|
771
|
+
}, $ = () => {
|
|
772
|
+
g.current = !1, x.style.transition = "opacity 600ms ease", x.style.opacity = "0";
|
|
773
773
|
};
|
|
774
|
-
return
|
|
775
|
-
|
|
774
|
+
return E.addEventListener("mousemove", j), E.addEventListener("mouseenter", T), E.addEventListener("mouseleave", $), () => {
|
|
775
|
+
E.removeEventListener("mousemove", j), E.removeEventListener("mouseenter", T), E.removeEventListener("mouseleave", $);
|
|
776
776
|
};
|
|
777
|
-
}, [
|
|
777
|
+
}, [d, R, c]), /* @__PURE__ */ F.jsxs(
|
|
778
778
|
"div",
|
|
779
779
|
{
|
|
780
|
-
ref:
|
|
781
|
-
className: `motioncss-spotlight ${
|
|
780
|
+
ref: f,
|
|
781
|
+
className: `motioncss-spotlight ${p}`,
|
|
782
782
|
style: {
|
|
783
783
|
position: "relative",
|
|
784
784
|
overflow: "hidden",
|
|
785
|
-
...
|
|
785
|
+
...a
|
|
786
786
|
},
|
|
787
787
|
children: [
|
|
788
|
-
|
|
789
|
-
/* @__PURE__ */
|
|
788
|
+
m,
|
|
789
|
+
/* @__PURE__ */ F.jsx(
|
|
790
790
|
"div",
|
|
791
791
|
{
|
|
792
|
-
ref:
|
|
792
|
+
ref: s,
|
|
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: l > 0 ? `blur(${l * 0.15}px)` : void 0,
|
|
801
|
+
mixBlendMode: u === "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:
|
|
811
|
-
rootMargin:
|
|
812
|
-
once:
|
|
809
|
+
function Be({
|
|
810
|
+
threshold: m = 0.2,
|
|
811
|
+
rootMargin: n = "0px",
|
|
812
|
+
once: h = !0
|
|
813
813
|
} = {}) {
|
|
814
|
-
const
|
|
815
|
-
return
|
|
816
|
-
const
|
|
817
|
-
if (!
|
|
814
|
+
const o = k(null), [l, u] = de(!1);
|
|
815
|
+
return Z(() => {
|
|
816
|
+
const d = o.current;
|
|
817
|
+
if (!d) return;
|
|
818
818
|
if (typeof IntersectionObserver > "u") {
|
|
819
|
-
|
|
819
|
+
u(!0);
|
|
820
820
|
return;
|
|
821
821
|
}
|
|
822
|
-
const
|
|
823
|
-
([
|
|
824
|
-
|
|
822
|
+
const p = new IntersectionObserver(
|
|
823
|
+
([a]) => {
|
|
824
|
+
a.isIntersecting ? (u(!0), h && p.disconnect()) : h || u(!1);
|
|
825
825
|
},
|
|
826
|
-
{ threshold:
|
|
826
|
+
{ threshold: m, rootMargin: n }
|
|
827
827
|
);
|
|
828
|
-
return
|
|
829
|
-
}, [
|
|
828
|
+
return p.observe(d), () => p.disconnect();
|
|
829
|
+
}, [m, n, h]), { ref: o, inView: l };
|
|
830
830
|
}
|
|
831
831
|
function Tr({
|
|
832
|
-
children:
|
|
833
|
-
stagger:
|
|
834
|
-
duration:
|
|
835
|
-
delay:
|
|
836
|
-
once:
|
|
837
|
-
as:
|
|
838
|
-
className:
|
|
839
|
-
style:
|
|
832
|
+
children: m,
|
|
833
|
+
stagger: n = 70,
|
|
834
|
+
duration: h = 700,
|
|
835
|
+
delay: o = 0,
|
|
836
|
+
once: l = !0,
|
|
837
|
+
as: u = "div",
|
|
838
|
+
className: d = "",
|
|
839
|
+
style: p
|
|
840
840
|
}) {
|
|
841
|
-
const { ref:
|
|
842
|
-
return /* @__PURE__ */
|
|
841
|
+
const { ref: a, inView: f } = Be({ once: l }), s = ve(), g = u, c = m.split(/\s+/).filter(Boolean), R = f || s;
|
|
842
|
+
return /* @__PURE__ */ F.jsx(g, { ref: a, className: d, style: p, "aria-label": m, children: c.map((E, x) => /* @__PURE__ */ F.jsx(
|
|
843
843
|
"span",
|
|
844
844
|
{
|
|
845
845
|
"aria-hidden": "true",
|
|
@@ -850,93 +850,218 @@ function Tr({
|
|
|
850
850
|
paddingBottom: "0.15em",
|
|
851
851
|
marginRight: "0.25em"
|
|
852
852
|
},
|
|
853
|
-
children: /* @__PURE__ */
|
|
853
|
+
children: /* @__PURE__ */ F.jsx(
|
|
854
854
|
"span",
|
|
855
855
|
{
|
|
856
856
|
style: {
|
|
857
857
|
display: "inline-block",
|
|
858
|
-
transform:
|
|
859
|
-
opacity:
|
|
860
|
-
transition:
|
|
858
|
+
transform: R ? "translateY(0)" : "translateY(110%)",
|
|
859
|
+
opacity: R ? 1 : 0,
|
|
860
|
+
transition: s ? "none" : `transform ${h}ms cubic-bezier(0.22, 1, 0.36, 1) ${o + x * n}ms, opacity ${h}ms ease ${o + x * n}ms`
|
|
861
861
|
},
|
|
862
|
-
children:
|
|
862
|
+
children: E
|
|
863
863
|
}
|
|
864
864
|
)
|
|
865
865
|
},
|
|
866
|
-
|
|
866
|
+
x
|
|
867
867
|
)) });
|
|
868
868
|
}
|
|
869
|
-
function Er(
|
|
870
|
-
switch (
|
|
869
|
+
function Er(m, n) {
|
|
870
|
+
switch (m) {
|
|
871
871
|
case "fade-up":
|
|
872
|
-
return `translateY(${
|
|
872
|
+
return `translateY(${n}px)`;
|
|
873
873
|
case "fade-down":
|
|
874
|
-
return `translateY(${-
|
|
874
|
+
return `translateY(${-n}px)`;
|
|
875
875
|
case "fade-left":
|
|
876
|
-
return `translateX(${
|
|
876
|
+
return `translateX(${n}px)`;
|
|
877
877
|
case "fade-right":
|
|
878
|
-
return `translateX(${-
|
|
878
|
+
return `translateX(${-n}px)`;
|
|
879
879
|
case "zoom":
|
|
880
880
|
return "scale(0.92)";
|
|
881
881
|
default:
|
|
882
882
|
return "none";
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
|
-
function
|
|
886
|
-
children:
|
|
887
|
-
animation:
|
|
888
|
-
duration:
|
|
889
|
-
delay:
|
|
890
|
-
distance:
|
|
891
|
-
threshold:
|
|
892
|
-
once:
|
|
893
|
-
className:
|
|
894
|
-
style:
|
|
885
|
+
function Pr({
|
|
886
|
+
children: m,
|
|
887
|
+
animation: n = "fade-up",
|
|
888
|
+
duration: h = 700,
|
|
889
|
+
delay: o = 0,
|
|
890
|
+
distance: l = 32,
|
|
891
|
+
threshold: u = 0.2,
|
|
892
|
+
once: d = !0,
|
|
893
|
+
className: p = "",
|
|
894
|
+
style: a
|
|
895
895
|
}) {
|
|
896
|
-
const { ref:
|
|
897
|
-
return /* @__PURE__ */
|
|
896
|
+
const { ref: f, inView: s } = Be({ threshold: u, once: d }), g = ve(), c = s || g;
|
|
897
|
+
return /* @__PURE__ */ F.jsx(
|
|
898
898
|
"div",
|
|
899
899
|
{
|
|
900
|
-
ref:
|
|
901
|
-
className:
|
|
900
|
+
ref: f,
|
|
901
|
+
className: p,
|
|
902
902
|
style: {
|
|
903
903
|
opacity: c ? 1 : 0,
|
|
904
|
-
transform: c ? "none" : Er(
|
|
905
|
-
transition:
|
|
904
|
+
transform: c ? "none" : Er(n, l),
|
|
905
|
+
transition: g ? "none" : `opacity ${h}ms ease ${o}ms, transform ${h}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: m
|
|
910
910
|
}
|
|
911
911
|
);
|
|
912
912
|
}
|
|
913
|
-
function
|
|
914
|
-
children:
|
|
915
|
-
colors:
|
|
916
|
-
angle:
|
|
917
|
-
duration:
|
|
918
|
-
className:
|
|
913
|
+
function Or({
|
|
914
|
+
children: m,
|
|
915
|
+
colors: n = ["#6366f1", "#ec4899", "#f59e0b", "#06b6d4"],
|
|
916
|
+
angle: h = 120,
|
|
917
|
+
duration: o = 12,
|
|
918
|
+
className: l = "",
|
|
919
|
+
style: u
|
|
920
|
+
}) {
|
|
921
|
+
const d = [...n, n[0]].join(", ");
|
|
922
|
+
return /* @__PURE__ */ F.jsx(
|
|
923
|
+
"div",
|
|
924
|
+
{
|
|
925
|
+
className: `mcss-gradient-flow ${l}`.trim(),
|
|
926
|
+
style: {
|
|
927
|
+
backgroundImage: `linear-gradient(${h}deg, ${d})`,
|
|
928
|
+
animationDuration: `${o}s`,
|
|
929
|
+
...u
|
|
930
|
+
},
|
|
931
|
+
children: m
|
|
932
|
+
}
|
|
933
|
+
);
|
|
934
|
+
}
|
|
935
|
+
function _r(m, n, h, o) {
|
|
936
|
+
const l = [], u = h;
|
|
937
|
+
if (m === "left" || m === "right") {
|
|
938
|
+
const d = m === "left", p = d ? n * 100 : 100 - n * 100, a = d ? p - 100 : p + 100;
|
|
939
|
+
l.push(`${a}% 0%`), l.push(`${a}% 100%`);
|
|
940
|
+
for (let f = o; f >= 0; f--) {
|
|
941
|
+
const s = f / o, g = s * 100, c = Math.sin(s * Math.PI) * u, R = p + (d ? c : -c);
|
|
942
|
+
l.push(`${R}% ${g}%`);
|
|
943
|
+
}
|
|
944
|
+
} else {
|
|
945
|
+
const d = m === "top", p = d ? n * 100 : 100 - n * 100, a = d ? p - 100 : p + 100;
|
|
946
|
+
l.push(`0% ${a}%`), l.push(`100% ${a}%`);
|
|
947
|
+
for (let f = o; f >= 0; f--) {
|
|
948
|
+
const s = f / o, g = s * 100, c = Math.sin(s * Math.PI) * u, R = p + (d ? c : -c);
|
|
949
|
+
l.push(`${g}% ${R}%`);
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
return `polygon(${l.join(", ")})`;
|
|
953
|
+
}
|
|
954
|
+
function jr({
|
|
955
|
+
origin: m = "left",
|
|
956
|
+
duration: n = 900,
|
|
957
|
+
color: h = "#111111",
|
|
958
|
+
curve: o = 8,
|
|
959
|
+
resolution: l = 20,
|
|
960
|
+
blur: u = 0,
|
|
961
|
+
onComplete: d,
|
|
919
962
|
style: p
|
|
920
963
|
}) {
|
|
921
|
-
const
|
|
922
|
-
return
|
|
964
|
+
const a = k(null), f = k(null), s = k(null);
|
|
965
|
+
return Z(() => {
|
|
966
|
+
const g = a.current;
|
|
967
|
+
if (!g) return;
|
|
968
|
+
const c = (R) => {
|
|
969
|
+
s.current || (s.current = R);
|
|
970
|
+
const E = R - s.current, x = Math.min(E / n, 1) * 2;
|
|
971
|
+
g.style.clipPath = _r(m, x, o, l), x < 2 ? f.current = requestAnimationFrame(c) : (g.style.clipPath = "polygon(200% 0%, 200% 100%, 100% 100%, 100% 0%)", d == null || d());
|
|
972
|
+
};
|
|
973
|
+
return f.current = requestAnimationFrame(c), () => {
|
|
974
|
+
f.current && cancelAnimationFrame(f.current);
|
|
975
|
+
};
|
|
976
|
+
}, [m, n, o, l, d]), /* @__PURE__ */ F.jsx(
|
|
923
977
|
"div",
|
|
924
978
|
{
|
|
925
|
-
|
|
979
|
+
ref: a,
|
|
980
|
+
"aria-hidden": "true",
|
|
926
981
|
style: {
|
|
927
|
-
|
|
928
|
-
|
|
982
|
+
position: "fixed",
|
|
983
|
+
inset: 0,
|
|
984
|
+
zIndex: 9999,
|
|
985
|
+
pointerEvents: "none",
|
|
986
|
+
background: h,
|
|
987
|
+
backdropFilter: u > 0 ? `blur(${u}px)` : void 0,
|
|
988
|
+
WebkitBackdropFilter: u > 0 ? `blur(${u}px)` : void 0,
|
|
929
989
|
...p
|
|
930
|
-
}
|
|
931
|
-
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
);
|
|
993
|
+
}
|
|
994
|
+
function Cr({
|
|
995
|
+
children: m,
|
|
996
|
+
origin: n = "left",
|
|
997
|
+
duration: h = 900,
|
|
998
|
+
color: o = "#111111",
|
|
999
|
+
curve: l = 8,
|
|
1000
|
+
blur: u = 0,
|
|
1001
|
+
className: d = "",
|
|
1002
|
+
style: p
|
|
1003
|
+
}) {
|
|
1004
|
+
const a = k(null), f = k(null), s = k(null), [g, c] = de(!1);
|
|
1005
|
+
return Z(() => {
|
|
1006
|
+
const R = a.current;
|
|
1007
|
+
if (!R) return;
|
|
1008
|
+
const E = (x) => {
|
|
1009
|
+
s.current || (s.current = x);
|
|
1010
|
+
const j = Math.min((x - s.current) / h, 1), T = [], $ = l, C = 20;
|
|
1011
|
+
if (n === "left" || n === "right") {
|
|
1012
|
+
const I = n === "left", L = I ? j * 100 : 100 - j * 100, A = I ? 150 : -50;
|
|
1013
|
+
for (let D = 0; D <= C; D++) {
|
|
1014
|
+
const W = D / C, U = W * 100, V = Math.sin(W * Math.PI) * $, J = L + (I ? V : -V);
|
|
1015
|
+
T.push(`${J}% ${U}%`);
|
|
1016
|
+
}
|
|
1017
|
+
T.push(`${A}% 100%`), T.push(`${A}% 0%`);
|
|
1018
|
+
} else {
|
|
1019
|
+
const I = n === "top", L = I ? j * 100 : 100 - j * 100, A = I ? 150 : -50;
|
|
1020
|
+
for (let D = 0; D <= C; D++) {
|
|
1021
|
+
const W = D / C, U = W * 100, V = Math.sin(W * Math.PI) * $, J = L + (I ? V : -V);
|
|
1022
|
+
T.push(`${U}% ${J}%`);
|
|
1023
|
+
}
|
|
1024
|
+
T.push(`100% ${A}%`), T.push(`0% ${A}%`);
|
|
1025
|
+
}
|
|
1026
|
+
R.style.clipPath = `polygon(${T.join(", ")})`, j < 1 ? f.current = requestAnimationFrame(E) : (R.style.clipPath = "none", R.style.display = "none", c(!0));
|
|
1027
|
+
};
|
|
1028
|
+
return f.current = requestAnimationFrame(E), () => {
|
|
1029
|
+
f.current && cancelAnimationFrame(f.current);
|
|
1030
|
+
};
|
|
1031
|
+
}, [n, h, o, l]), /* @__PURE__ */ F.jsxs(
|
|
1032
|
+
"div",
|
|
1033
|
+
{
|
|
1034
|
+
className: `motioncss-wave-reveal ${d}`,
|
|
1035
|
+
style: { position: "relative", overflow: "hidden", ...p },
|
|
1036
|
+
children: [
|
|
1037
|
+
m,
|
|
1038
|
+
!g && /* @__PURE__ */ F.jsx(
|
|
1039
|
+
"div",
|
|
1040
|
+
{
|
|
1041
|
+
ref: a,
|
|
1042
|
+
"aria-hidden": "true",
|
|
1043
|
+
style: {
|
|
1044
|
+
position: "absolute",
|
|
1045
|
+
inset: 0,
|
|
1046
|
+
background: o,
|
|
1047
|
+
backdropFilter: u > 0 ? `blur(${u}px)` : void 0,
|
|
1048
|
+
WebkitBackdropFilter: u > 0 ? `blur(${u}px)` : void 0,
|
|
1049
|
+
zIndex: 10,
|
|
1050
|
+
pointerEvents: "none"
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
)
|
|
1054
|
+
]
|
|
932
1055
|
}
|
|
933
1056
|
);
|
|
934
1057
|
}
|
|
935
1058
|
export {
|
|
936
|
-
|
|
937
|
-
|
|
1059
|
+
jr as EdgeWave,
|
|
1060
|
+
Or as GradientFlow,
|
|
1061
|
+
$r as Magnetic,
|
|
938
1062
|
Tr as RevealText,
|
|
939
|
-
|
|
1063
|
+
Pr as ScrollReveal,
|
|
940
1064
|
Sr as Spotlight,
|
|
941
|
-
|
|
1065
|
+
wr as TiltCard,
|
|
1066
|
+
Cr as WaveReveal
|
|
942
1067
|
};
|