@acrool/react-picker 0.0.2-alpha.0 → 0.0.2-alpha.2
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/acrool-react-picker.es.js +401 -395
- package/dist/compose/createPicker.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as An from "react";
|
|
2
|
-
import $s, { createContext as
|
|
3
|
-
var
|
|
2
|
+
import $s, { createContext as Vt, useContext as U, useLayoutEffect as Ho, useEffect as Et, useRef as it, useInsertionEffect as Ks, useCallback as pt, useMemo as Rt, forwardRef as Gs, Fragment as zs, createElement as Yo, useId as Cn, Component as Xo, Children as qo, isValidElement as Zo, useState as Jt } from "react";
|
|
3
|
+
var jt = /* @__PURE__ */ ((t) => (t.Escape = "Escape", t.Enter = "Enter", t.Tab = "Tab", t.ArrowUp = "ArrowUp", t.ArrowDown = "ArrowDown", t))(jt || {});
|
|
4
4
|
const le = [
|
|
5
5
|
"color: #fff",
|
|
6
6
|
"display: inline-block",
|
|
@@ -48,23 +48,23 @@ function na(t, ...e) {
|
|
|
48
48
|
]).join(";");
|
|
49
49
|
ce(t, n, ...e);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const bt = {
|
|
52
52
|
primary: Jo,
|
|
53
53
|
success: Qo,
|
|
54
54
|
info: ta,
|
|
55
55
|
warning: ea,
|
|
56
56
|
danger: na
|
|
57
|
-
}, Rn =
|
|
58
|
-
hide: () =>
|
|
59
|
-
show: () =>
|
|
60
|
-
toggle: () =>
|
|
57
|
+
}, Rn = Vt({
|
|
58
|
+
hide: () => bt.warning("No hide method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
59
|
+
show: () => bt.warning("No show method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
60
|
+
toggle: () => bt.warning("No toggle method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
61
61
|
isVisible: !1,
|
|
62
|
-
inputFocus: () =>
|
|
63
|
-
inputBlur: () =>
|
|
62
|
+
inputFocus: () => bt.warning("No focus method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
63
|
+
inputBlur: () => bt.warning("No blur method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
64
64
|
isInputFocus: !1,
|
|
65
|
-
onChange: () =>
|
|
65
|
+
onChange: () => bt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?")
|
|
66
66
|
}), Uh = Rn.Consumer, Wh = () => U(Rn);
|
|
67
|
-
var cn = { exports: {} },
|
|
67
|
+
var cn = { exports: {} }, Ht = {};
|
|
68
68
|
/**
|
|
69
69
|
* @license React
|
|
70
70
|
* react-jsx-runtime.production.min.js
|
|
@@ -77,7 +77,7 @@ var cn = { exports: {} }, zt = {};
|
|
|
77
77
|
var Ti;
|
|
78
78
|
function ia() {
|
|
79
79
|
if (Ti)
|
|
80
|
-
return
|
|
80
|
+
return Ht;
|
|
81
81
|
Ti = 1;
|
|
82
82
|
var t = $s, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
83
83
|
function r(a, l, u) {
|
|
@@ -90,9 +90,9 @@ function ia() {
|
|
|
90
90
|
h[c] === void 0 && (h[c] = l[c]);
|
|
91
91
|
return { $$typeof: e, type: a, key: d, ref: p, props: h, _owner: s.current };
|
|
92
92
|
}
|
|
93
|
-
return
|
|
93
|
+
return Ht.Fragment = n, Ht.jsx = r, Ht.jsxs = r, Ht;
|
|
94
94
|
}
|
|
95
|
-
var
|
|
95
|
+
var Yt = {};
|
|
96
96
|
/**
|
|
97
97
|
* @license React
|
|
98
98
|
* react-jsx-runtime.development.js
|
|
@@ -109,25 +109,25 @@ function sa() {
|
|
|
109
109
|
function b(f) {
|
|
110
110
|
if (f === null || typeof f != "object")
|
|
111
111
|
return null;
|
|
112
|
-
var
|
|
113
|
-
return typeof
|
|
112
|
+
var m = y && f[y] || f[P];
|
|
113
|
+
return typeof m == "function" ? m : null;
|
|
114
114
|
}
|
|
115
115
|
var x = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
116
|
-
function
|
|
116
|
+
function v(f) {
|
|
117
117
|
{
|
|
118
|
-
for (var
|
|
118
|
+
for (var m = arguments.length, T = new Array(m > 1 ? m - 1 : 0), A = 1; A < m; A++)
|
|
119
119
|
T[A - 1] = arguments[A];
|
|
120
|
-
|
|
120
|
+
g("error", f, T);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function g(f, m, T) {
|
|
124
124
|
{
|
|
125
125
|
var A = x.ReactDebugCurrentFrame, D = A.getStackAddendum();
|
|
126
|
-
D !== "" && (
|
|
126
|
+
D !== "" && (m += "%s", T = T.concat([D]));
|
|
127
127
|
var k = T.map(function(E) {
|
|
128
128
|
return String(E);
|
|
129
129
|
});
|
|
130
|
-
k.unshift("Warning: " +
|
|
130
|
+
k.unshift("Warning: " + m), Function.prototype.apply.call(console[f], console, k);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
var S = !1, C = !1, L = !1, q = !1, V = !1, G;
|
|
@@ -139,20 +139,20 @@ function sa() {
|
|
|
139
139
|
// with.
|
|
140
140
|
f.$$typeof === G || f.getModuleId !== void 0));
|
|
141
141
|
}
|
|
142
|
-
function ft(f,
|
|
142
|
+
function ft(f, m, T) {
|
|
143
143
|
var A = f.displayName;
|
|
144
144
|
if (A)
|
|
145
145
|
return A;
|
|
146
|
-
var D =
|
|
146
|
+
var D = m.displayName || m.name || "";
|
|
147
147
|
return D !== "" ? T + "(" + D + ")" : T;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Kt(f) {
|
|
150
150
|
return f.displayName || "Context";
|
|
151
151
|
}
|
|
152
152
|
function Z(f) {
|
|
153
153
|
if (f == null)
|
|
154
154
|
return null;
|
|
155
|
-
if (typeof f.tag == "number" &&
|
|
155
|
+
if (typeof f.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof f == "function")
|
|
156
156
|
return f.displayName || f.name || null;
|
|
157
157
|
if (typeof f == "string")
|
|
158
158
|
return f;
|
|
@@ -173,11 +173,11 @@ function sa() {
|
|
|
173
173
|
if (typeof f == "object")
|
|
174
174
|
switch (f.$$typeof) {
|
|
175
175
|
case a:
|
|
176
|
-
var
|
|
177
|
-
return
|
|
176
|
+
var m = f;
|
|
177
|
+
return Kt(m) + ".Consumer";
|
|
178
178
|
case r:
|
|
179
179
|
var T = f;
|
|
180
|
-
return
|
|
180
|
+
return Kt(T._context) + ".Provider";
|
|
181
181
|
case l:
|
|
182
182
|
return ft(f, f.render, "ForwardRef");
|
|
183
183
|
case h:
|
|
@@ -194,14 +194,14 @@ function sa() {
|
|
|
194
194
|
}
|
|
195
195
|
return null;
|
|
196
196
|
}
|
|
197
|
-
var nt = Object.assign, F = 0, J,
|
|
197
|
+
var nt = Object.assign, F = 0, J, Dt, Mt, ni, ii, si, ri;
|
|
198
198
|
function oi() {
|
|
199
199
|
}
|
|
200
200
|
oi.__reactDisabledLog = !0;
|
|
201
201
|
function xo() {
|
|
202
202
|
{
|
|
203
203
|
if (F === 0) {
|
|
204
|
-
J = console.log,
|
|
204
|
+
J = console.log, Dt = console.info, Mt = console.warn, ni = console.error, ii = console.group, si = console.groupCollapsed, ri = console.groupEnd;
|
|
205
205
|
var f = {
|
|
206
206
|
configurable: !0,
|
|
207
207
|
enumerable: !0,
|
|
@@ -234,10 +234,10 @@ function sa() {
|
|
|
234
234
|
value: J
|
|
235
235
|
}),
|
|
236
236
|
info: nt({}, f, {
|
|
237
|
-
value:
|
|
237
|
+
value: Dt
|
|
238
238
|
}),
|
|
239
239
|
warn: nt({}, f, {
|
|
240
|
-
value:
|
|
240
|
+
value: Mt
|
|
241
241
|
}),
|
|
242
242
|
error: nt({}, f, {
|
|
243
243
|
value: ni
|
|
@@ -253,11 +253,11 @@ function sa() {
|
|
|
253
253
|
})
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
|
-
F < 0 &&
|
|
256
|
+
F < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
var Ue = x.ReactCurrentDispatcher, We;
|
|
260
|
-
function me(f,
|
|
260
|
+
function me(f, m, T) {
|
|
261
261
|
{
|
|
262
262
|
if (We === void 0)
|
|
263
263
|
try {
|
|
@@ -275,7 +275,7 @@ function sa() {
|
|
|
275
275
|
var bo = typeof WeakMap == "function" ? WeakMap : Map;
|
|
276
276
|
ge = new bo();
|
|
277
277
|
}
|
|
278
|
-
function ai(f,
|
|
278
|
+
function ai(f, m) {
|
|
279
279
|
if (!f || $e)
|
|
280
280
|
return "";
|
|
281
281
|
{
|
|
@@ -290,7 +290,7 @@ function sa() {
|
|
|
290
290
|
var k;
|
|
291
291
|
k = Ue.current, Ue.current = null, xo();
|
|
292
292
|
try {
|
|
293
|
-
if (
|
|
293
|
+
if (m) {
|
|
294
294
|
var E = function() {
|
|
295
295
|
throw Error();
|
|
296
296
|
};
|
|
@@ -343,17 +343,17 @@ function sa() {
|
|
|
343
343
|
} finally {
|
|
344
344
|
$e = !1, Ue.current = k, To(), Error.prepareStackTrace = D;
|
|
345
345
|
}
|
|
346
|
-
var
|
|
347
|
-
return typeof f == "function" && ge.set(f,
|
|
346
|
+
var Lt = f ? f.displayName || f.name : "", xt = Lt ? me(Lt) : "";
|
|
347
|
+
return typeof f == "function" && ge.set(f, xt), xt;
|
|
348
348
|
}
|
|
349
|
-
function wo(f,
|
|
349
|
+
function wo(f, m, T) {
|
|
350
350
|
return ai(f, !1);
|
|
351
351
|
}
|
|
352
352
|
function So(f) {
|
|
353
|
-
var
|
|
354
|
-
return !!(
|
|
353
|
+
var m = f.prototype;
|
|
354
|
+
return !!(m && m.isReactComponent);
|
|
355
355
|
}
|
|
356
|
-
function ye(f,
|
|
356
|
+
function ye(f, m, T) {
|
|
357
357
|
if (f == null)
|
|
358
358
|
return "";
|
|
359
359
|
if (typeof f == "function")
|
|
@@ -371,28 +371,28 @@ function sa() {
|
|
|
371
371
|
case l:
|
|
372
372
|
return wo(f.render);
|
|
373
373
|
case h:
|
|
374
|
-
return ye(f.type,
|
|
374
|
+
return ye(f.type, m, T);
|
|
375
375
|
case d: {
|
|
376
376
|
var A = f, D = A._payload, k = A._init;
|
|
377
377
|
try {
|
|
378
|
-
return ye(k(D),
|
|
378
|
+
return ye(k(D), m, T);
|
|
379
379
|
} catch {
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
return "";
|
|
384
384
|
}
|
|
385
|
-
var
|
|
385
|
+
var Gt = Object.prototype.hasOwnProperty, li = {}, ui = x.ReactDebugCurrentFrame;
|
|
386
386
|
function ve(f) {
|
|
387
387
|
if (f) {
|
|
388
|
-
var
|
|
388
|
+
var m = f._owner, T = ye(f.type, f._source, m ? m.type : null);
|
|
389
389
|
ui.setExtraStackFrame(T);
|
|
390
390
|
} else
|
|
391
391
|
ui.setExtraStackFrame(null);
|
|
392
392
|
}
|
|
393
|
-
function Ao(f,
|
|
393
|
+
function Ao(f, m, T, A, D) {
|
|
394
394
|
{
|
|
395
|
-
var k = Function.call.bind(
|
|
395
|
+
var k = Function.call.bind(Gt);
|
|
396
396
|
for (var E in f)
|
|
397
397
|
if (k(f, E)) {
|
|
398
398
|
var R = void 0;
|
|
@@ -401,11 +401,11 @@ function sa() {
|
|
|
401
401
|
var z = Error((A || "React class") + ": " + T + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof f[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
402
402
|
throw z.name = "Invariant Violation", z;
|
|
403
403
|
}
|
|
404
|
-
R = f[E](
|
|
404
|
+
R = f[E](m, E, A, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
405
405
|
} catch (_) {
|
|
406
406
|
R = _;
|
|
407
407
|
}
|
|
408
|
-
R && !(R instanceof Error) && (ve(D),
|
|
408
|
+
R && !(R instanceof Error) && (ve(D), v("%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).", A || "React class", T, E, typeof R), ve(null)), R instanceof Error && !(R.message in li) && (li[R.message] = !0, ve(D), v("Failed %s type: %s", T, R.message), ve(null));
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
}
|
|
@@ -415,7 +415,7 @@ function sa() {
|
|
|
415
415
|
}
|
|
416
416
|
function Ro(f) {
|
|
417
417
|
{
|
|
418
|
-
var
|
|
418
|
+
var m = typeof Symbol == "function" && Symbol.toStringTag, T = m && f[Symbol.toStringTag] || f.constructor.name || "Object";
|
|
419
419
|
return T;
|
|
420
420
|
}
|
|
421
421
|
}
|
|
@@ -431,9 +431,9 @@ function sa() {
|
|
|
431
431
|
}
|
|
432
432
|
function hi(f) {
|
|
433
433
|
if (Vo(f))
|
|
434
|
-
return
|
|
434
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ro(f)), ci(f);
|
|
435
435
|
}
|
|
436
|
-
var
|
|
436
|
+
var zt = x.ReactCurrentOwner, Eo = {
|
|
437
437
|
key: !0,
|
|
438
438
|
ref: !0,
|
|
439
439
|
__self: !0,
|
|
@@ -441,31 +441,31 @@ function sa() {
|
|
|
441
441
|
}, fi, di, Ge;
|
|
442
442
|
Ge = {};
|
|
443
443
|
function Do(f) {
|
|
444
|
-
if (
|
|
445
|
-
var
|
|
446
|
-
if (
|
|
444
|
+
if (Gt.call(f, "ref")) {
|
|
445
|
+
var m = Object.getOwnPropertyDescriptor(f, "ref").get;
|
|
446
|
+
if (m && m.isReactWarning)
|
|
447
447
|
return !1;
|
|
448
448
|
}
|
|
449
449
|
return f.ref !== void 0;
|
|
450
450
|
}
|
|
451
451
|
function Mo(f) {
|
|
452
|
-
if (
|
|
453
|
-
var
|
|
454
|
-
if (
|
|
452
|
+
if (Gt.call(f, "key")) {
|
|
453
|
+
var m = Object.getOwnPropertyDescriptor(f, "key").get;
|
|
454
|
+
if (m && m.isReactWarning)
|
|
455
455
|
return !1;
|
|
456
456
|
}
|
|
457
457
|
return f.key !== void 0;
|
|
458
458
|
}
|
|
459
|
-
function ko(f,
|
|
460
|
-
if (typeof f.ref == "string" &&
|
|
461
|
-
var T = Z(
|
|
462
|
-
Ge[T] || (
|
|
459
|
+
function ko(f, m) {
|
|
460
|
+
if (typeof f.ref == "string" && zt.current && m && zt.current.stateNode !== m) {
|
|
461
|
+
var T = Z(zt.current.type);
|
|
462
|
+
Ge[T] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(zt.current.type), f.ref), Ge[T] = !0);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
function Lo(f,
|
|
465
|
+
function Lo(f, m) {
|
|
466
466
|
{
|
|
467
467
|
var T = function() {
|
|
468
|
-
fi || (fi = !0,
|
|
468
|
+
fi || (fi = !0, v("%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)", m));
|
|
469
469
|
};
|
|
470
470
|
T.isReactWarning = !0, Object.defineProperty(f, "key", {
|
|
471
471
|
get: T,
|
|
@@ -473,10 +473,10 @@ function sa() {
|
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
function jo(f,
|
|
476
|
+
function jo(f, m) {
|
|
477
477
|
{
|
|
478
478
|
var T = function() {
|
|
479
|
-
di || (di = !0,
|
|
479
|
+
di || (di = !0, v("%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)", m));
|
|
480
480
|
};
|
|
481
481
|
T.isReactWarning = !0, Object.defineProperty(f, "ref", {
|
|
482
482
|
get: T,
|
|
@@ -484,13 +484,13 @@ function sa() {
|
|
|
484
484
|
});
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
var Oo = function(f,
|
|
487
|
+
var Oo = function(f, m, T, A, D, k, E) {
|
|
488
488
|
var R = {
|
|
489
489
|
// This tag allows us to uniquely identify this as a React Element
|
|
490
490
|
$$typeof: e,
|
|
491
491
|
// Built-in properties that belong on the element
|
|
492
492
|
type: f,
|
|
493
|
-
key:
|
|
493
|
+
key: m,
|
|
494
494
|
ref: T,
|
|
495
495
|
props: E,
|
|
496
496
|
// Record the component responsible for creating this element.
|
|
@@ -513,12 +513,12 @@ function sa() {
|
|
|
513
513
|
value: D
|
|
514
514
|
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
515
515
|
};
|
|
516
|
-
function Fo(f,
|
|
516
|
+
function Fo(f, m, T, A, D) {
|
|
517
517
|
{
|
|
518
518
|
var k, E = {}, R = null, z = null;
|
|
519
|
-
T !== void 0 && (hi(T), R = "" + T), Mo(
|
|
520
|
-
for (k in
|
|
521
|
-
|
|
519
|
+
T !== void 0 && (hi(T), R = "" + T), Mo(m) && (hi(m.key), R = "" + m.key), Do(m) && (z = m.ref, ko(m, D));
|
|
520
|
+
for (k in m)
|
|
521
|
+
Gt.call(m, k) && !Eo.hasOwnProperty(k) && (E[k] = m[k]);
|
|
522
522
|
if (f && f.defaultProps) {
|
|
523
523
|
var _ = f.defaultProps;
|
|
524
524
|
for (k in _)
|
|
@@ -528,13 +528,13 @@ function sa() {
|
|
|
528
528
|
var I = typeof f == "function" ? f.displayName || f.name || "Unknown" : f;
|
|
529
529
|
R && Lo(E, I), z && jo(E, I);
|
|
530
530
|
}
|
|
531
|
-
return Oo(f, R, z, D, A,
|
|
531
|
+
return Oo(f, R, z, D, A, zt.current, E);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
var ze = x.ReactCurrentOwner, pi = x.ReactDebugCurrentFrame;
|
|
535
|
-
function
|
|
535
|
+
function kt(f) {
|
|
536
536
|
if (f) {
|
|
537
|
-
var
|
|
537
|
+
var m = f._owner, T = ye(f.type, f._source, m ? m.type : null);
|
|
538
538
|
pi.setExtraStackFrame(T);
|
|
539
539
|
} else
|
|
540
540
|
pi.setExtraStackFrame(null);
|
|
@@ -559,10 +559,10 @@ Check the render method of \`` + f + "`.";
|
|
|
559
559
|
function _o(f) {
|
|
560
560
|
{
|
|
561
561
|
if (f !== void 0) {
|
|
562
|
-
var
|
|
562
|
+
var m = f.fileName.replace(/^.*[\\\/]/, ""), T = f.lineNumber;
|
|
563
563
|
return `
|
|
564
564
|
|
|
565
|
-
Check your code at ` +
|
|
565
|
+
Check your code at ` + m + ":" + T + ".";
|
|
566
566
|
}
|
|
567
567
|
return "";
|
|
568
568
|
}
|
|
@@ -570,37 +570,37 @@ Check your code at ` + g + ":" + T + ".";
|
|
|
570
570
|
var gi = {};
|
|
571
571
|
function Bo(f) {
|
|
572
572
|
{
|
|
573
|
-
var
|
|
574
|
-
if (!
|
|
573
|
+
var m = mi();
|
|
574
|
+
if (!m) {
|
|
575
575
|
var T = typeof f == "string" ? f : f.displayName || f.name;
|
|
576
|
-
T && (
|
|
576
|
+
T && (m = `
|
|
577
577
|
|
|
578
578
|
Check the top-level render call using <` + T + ">.");
|
|
579
579
|
}
|
|
580
|
-
return
|
|
580
|
+
return m;
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
|
-
function yi(f,
|
|
583
|
+
function yi(f, m) {
|
|
584
584
|
{
|
|
585
585
|
if (!f._store || f._store.validated || f.key != null)
|
|
586
586
|
return;
|
|
587
587
|
f._store.validated = !0;
|
|
588
|
-
var T = Bo(
|
|
588
|
+
var T = Bo(m);
|
|
589
589
|
if (gi[T])
|
|
590
590
|
return;
|
|
591
591
|
gi[T] = !0;
|
|
592
592
|
var A = "";
|
|
593
|
-
f && f._owner && f._owner !== ze.current && (A = " It was passed a child from " + Z(f._owner.type) + "."),
|
|
593
|
+
f && f._owner && f._owner !== ze.current && (A = " It was passed a child from " + Z(f._owner.type) + "."), kt(f), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', T, A), kt(null);
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
function vi(f,
|
|
596
|
+
function vi(f, m) {
|
|
597
597
|
{
|
|
598
598
|
if (typeof f != "object")
|
|
599
599
|
return;
|
|
600
600
|
if (Ke(f))
|
|
601
601
|
for (var T = 0; T < f.length; T++) {
|
|
602
602
|
var A = f[T];
|
|
603
|
-
Ye(A) && yi(A,
|
|
603
|
+
Ye(A) && yi(A, m);
|
|
604
604
|
}
|
|
605
605
|
else if (Ye(f))
|
|
606
606
|
f._store && (f._store.validated = !0);
|
|
@@ -608,49 +608,49 @@ Check the top-level render call using <` + T + ">.");
|
|
|
608
608
|
var D = b(f);
|
|
609
609
|
if (typeof D == "function" && D !== f.entries)
|
|
610
610
|
for (var k = D.call(f), E; !(E = k.next()).done; )
|
|
611
|
-
Ye(E.value) && yi(E.value,
|
|
611
|
+
Ye(E.value) && yi(E.value, m);
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
function Io(f) {
|
|
616
616
|
{
|
|
617
|
-
var
|
|
618
|
-
if (
|
|
617
|
+
var m = f.type;
|
|
618
|
+
if (m == null || typeof m == "string")
|
|
619
619
|
return;
|
|
620
620
|
var T;
|
|
621
|
-
if (typeof
|
|
622
|
-
T =
|
|
623
|
-
else if (typeof
|
|
621
|
+
if (typeof m == "function")
|
|
622
|
+
T = m.propTypes;
|
|
623
|
+
else if (typeof m == "object" && (m.$$typeof === l || // Note: Memo only checks outer props here.
|
|
624
624
|
// Inner props are checked in the reconciler.
|
|
625
|
-
|
|
626
|
-
T =
|
|
625
|
+
m.$$typeof === h))
|
|
626
|
+
T = m.propTypes;
|
|
627
627
|
else
|
|
628
628
|
return;
|
|
629
629
|
if (T) {
|
|
630
|
-
var A = Z(
|
|
630
|
+
var A = Z(m);
|
|
631
631
|
Ao(T, f.props, "prop", A, f);
|
|
632
|
-
} else if (
|
|
632
|
+
} else if (m.PropTypes !== void 0 && !He) {
|
|
633
633
|
He = !0;
|
|
634
|
-
var D = Z(
|
|
635
|
-
|
|
634
|
+
var D = Z(m);
|
|
635
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
|
|
636
636
|
}
|
|
637
|
-
typeof
|
|
637
|
+
typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
function No(f) {
|
|
641
641
|
{
|
|
642
|
-
for (var
|
|
643
|
-
var A =
|
|
642
|
+
for (var m = Object.keys(f.props), T = 0; T < m.length; T++) {
|
|
643
|
+
var A = m[T];
|
|
644
644
|
if (A !== "children" && A !== "key") {
|
|
645
|
-
|
|
645
|
+
kt(f), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), kt(null);
|
|
646
646
|
break;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
f.ref !== null && (
|
|
649
|
+
f.ref !== null && (kt(f), v("Invalid attribute `ref` supplied to `React.Fragment`."), kt(null));
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
var Pi = {};
|
|
653
|
-
function xi(f,
|
|
653
|
+
function xi(f, m, T, A, D, k) {
|
|
654
654
|
{
|
|
655
655
|
var E = H(f);
|
|
656
656
|
if (!E) {
|
|
@@ -659,58 +659,58 @@ Check the top-level render call using <` + T + ">.");
|
|
|
659
659
|
var z = _o(D);
|
|
660
660
|
z ? R += z : R += mi();
|
|
661
661
|
var _;
|
|
662
|
-
f === null ? _ = "null" : Ke(f) ? _ = "array" : f !== void 0 && f.$$typeof === e ? (_ = "<" + (Z(f.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof f,
|
|
662
|
+
f === null ? _ = "null" : Ke(f) ? _ = "array" : f !== void 0 && f.$$typeof === e ? (_ = "<" + (Z(f.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof f, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, R);
|
|
663
663
|
}
|
|
664
|
-
var I = Fo(f,
|
|
664
|
+
var I = Fo(f, m, T, D, k);
|
|
665
665
|
if (I == null)
|
|
666
666
|
return I;
|
|
667
667
|
if (E) {
|
|
668
|
-
var Q =
|
|
668
|
+
var Q = m.children;
|
|
669
669
|
if (Q !== void 0)
|
|
670
670
|
if (A)
|
|
671
671
|
if (Ke(Q)) {
|
|
672
|
-
for (var
|
|
673
|
-
vi(Q[
|
|
672
|
+
for (var Lt = 0; Lt < Q.length; Lt++)
|
|
673
|
+
vi(Q[Lt], f);
|
|
674
674
|
Object.freeze && Object.freeze(Q);
|
|
675
675
|
} else
|
|
676
|
-
|
|
676
|
+
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
677
677
|
else
|
|
678
678
|
vi(Q, f);
|
|
679
679
|
}
|
|
680
|
-
if (
|
|
681
|
-
var
|
|
680
|
+
if (Gt.call(m, "key")) {
|
|
681
|
+
var xt = Z(f), Y = Object.keys(m).filter(function(zo) {
|
|
682
682
|
return zo !== "key";
|
|
683
683
|
}), Xe = Y.length > 0 ? "{key: someKey, " + Y.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
684
|
-
if (!Pi[
|
|
684
|
+
if (!Pi[xt + Xe]) {
|
|
685
685
|
var Go = Y.length > 0 ? "{" + Y.join(": ..., ") + ": ...}" : "{}";
|
|
686
|
-
|
|
686
|
+
v(`A props object containing a "key" prop is being spread into JSX:
|
|
687
687
|
let props = %s;
|
|
688
688
|
<%s {...props} />
|
|
689
689
|
React keys must be passed directly to JSX without using spread:
|
|
690
690
|
let props = %s;
|
|
691
|
-
<%s key={someKey} {...props} />`, Xe,
|
|
691
|
+
<%s key={someKey} {...props} />`, Xe, xt, Go, xt), Pi[xt + Xe] = !0;
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
return f === i ? No(I) : Io(I), I;
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
|
-
function Uo(f,
|
|
698
|
-
return xi(f,
|
|
697
|
+
function Uo(f, m, T) {
|
|
698
|
+
return xi(f, m, T, !0);
|
|
699
699
|
}
|
|
700
|
-
function Wo(f,
|
|
701
|
-
return xi(f,
|
|
700
|
+
function Wo(f, m, T) {
|
|
701
|
+
return xi(f, m, T, !1);
|
|
702
702
|
}
|
|
703
703
|
var $o = Wo, Ko = Uo;
|
|
704
|
-
|
|
705
|
-
}()),
|
|
704
|
+
Yt.Fragment = i, Yt.jsx = $o, Yt.jsxs = Ko;
|
|
705
|
+
}()), Yt;
|
|
706
706
|
}
|
|
707
707
|
process.env.NODE_ENV === "production" ? cn.exports = ia() : cn.exports = sa();
|
|
708
708
|
var O = cn.exports;
|
|
709
|
-
const Vn =
|
|
709
|
+
const Vn = Vt({
|
|
710
710
|
transformPagePoint: (t) => t,
|
|
711
711
|
isStatic: !1,
|
|
712
712
|
reducedMotion: "never"
|
|
713
|
-
}), ke =
|
|
713
|
+
}), ke = Vt({}), Le = Vt(null), En = typeof window < "u", Hs = En ? Ho : Et, Ys = Vt({ strict: !1 }), je = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), ra = "framerAppearId", Xs = "data-" + je(ra), oa = {
|
|
714
714
|
skipAnimations: !1,
|
|
715
715
|
useManualTiming: !1
|
|
716
716
|
};
|
|
@@ -772,25 +772,25 @@ function qs(t, e) {
|
|
|
772
772
|
delta: 0,
|
|
773
773
|
timestamp: 0,
|
|
774
774
|
isProcessing: !1
|
|
775
|
-
}, o = () => n = !0, r = Pe.reduce((x,
|
|
775
|
+
}, o = () => n = !0, r = Pe.reduce((x, v) => (x[v] = aa(o), x), {}), { read: a, resolveKeyframes: l, update: u, preRender: c, render: h, postRender: d } = r, p = () => {
|
|
776
776
|
const x = performance.now();
|
|
777
777
|
n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(x - s.timestamp, la), 1), s.timestamp = x, s.isProcessing = !0, a.process(s), l.process(s), u.process(s), c.process(s), h.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
|
|
778
778
|
}, y = () => {
|
|
779
779
|
n = !0, i = !0, s.isProcessing || t(p);
|
|
780
780
|
};
|
|
781
|
-
return { schedule: Pe.reduce((x,
|
|
782
|
-
const
|
|
783
|
-
return x[
|
|
781
|
+
return { schedule: Pe.reduce((x, v) => {
|
|
782
|
+
const g = r[v];
|
|
783
|
+
return x[v] = (S, C = !1, L = !1) => (n || y(), g.schedule(S, C, L)), x;
|
|
784
784
|
}, {}), cancel: (x) => {
|
|
785
|
-
for (let
|
|
786
|
-
r[Pe[
|
|
785
|
+
for (let v = 0; v < Pe.length; v++)
|
|
786
|
+
r[Pe[v]].cancel(x);
|
|
787
787
|
}, state: s, steps: r };
|
|
788
788
|
}
|
|
789
789
|
const { schedule: Dn, cancel: $h } = qs(queueMicrotask, !1);
|
|
790
|
-
function
|
|
790
|
+
function Ot(t) {
|
|
791
791
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
792
792
|
}
|
|
793
|
-
const Zs =
|
|
793
|
+
const Zs = Vt({});
|
|
794
794
|
let wi = !1;
|
|
795
795
|
function ua(t, e, n, i, s) {
|
|
796
796
|
const { visualElement: o } = U(ke), r = U(Ys), a = U(Le), l = U(Vn).reducedMotion, u = it();
|
|
@@ -809,7 +809,7 @@ function ua(t, e, n, i, s) {
|
|
|
809
809
|
const d = it(!!(n[Xs] && !window.HandoffComplete));
|
|
810
810
|
return Hs(() => {
|
|
811
811
|
c && (c.updateFeatures(), Dn.render(c.render), d.current && c.animationState && c.animationState.animateChanges());
|
|
812
|
-
}),
|
|
812
|
+
}), Et(() => {
|
|
813
813
|
c && (!d.current && c.animationState && c.animationState.animateChanges(), d.current && (d.current = !1, wi || (wi = !0, queueMicrotask(ca))));
|
|
814
814
|
}), c;
|
|
815
815
|
}
|
|
@@ -821,7 +821,7 @@ function ha(t, e, n, i) {
|
|
|
821
821
|
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Js(t.parent)), t.projection.setOptions({
|
|
822
822
|
layoutId: s,
|
|
823
823
|
layout: o,
|
|
824
|
-
alwaysMeasureLayout: !!r || a &&
|
|
824
|
+
alwaysMeasureLayout: !!r || a && Ot(a),
|
|
825
825
|
visualElement: t,
|
|
826
826
|
/**
|
|
827
827
|
* TODO: Update options in an effect. This could be tricky as it'll be too late
|
|
@@ -841,9 +841,9 @@ function Js(t) {
|
|
|
841
841
|
return t.options.allowProjection !== !1 ? t.projection : Js(t.parent);
|
|
842
842
|
}
|
|
843
843
|
function fa(t, e, n) {
|
|
844
|
-
return
|
|
844
|
+
return pt(
|
|
845
845
|
(i) => {
|
|
846
|
-
i && t.mount && t.mount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) :
|
|
846
|
+
i && t.mount && t.mount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : Ot(n) && (n.current = i));
|
|
847
847
|
},
|
|
848
848
|
/**
|
|
849
849
|
* Only pass a new ref callback to React if we've received a visual element
|
|
@@ -886,7 +886,7 @@ function da(t, e) {
|
|
|
886
886
|
}
|
|
887
887
|
function pa(t) {
|
|
888
888
|
const { initial: e, animate: n } = da(t, U(ke));
|
|
889
|
-
return
|
|
889
|
+
return Rt(() => ({ initial: e, animate: n }), [Si(e), Si(n)]);
|
|
890
890
|
}
|
|
891
891
|
function Si(t) {
|
|
892
892
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
@@ -910,21 +910,21 @@ const Ai = {
|
|
|
910
910
|
pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
|
|
911
911
|
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
912
912
|
layout: ["layout", "layoutId"]
|
|
913
|
-
},
|
|
913
|
+
}, Nt = {};
|
|
914
914
|
for (const t in Ai)
|
|
915
|
-
|
|
915
|
+
Nt[t] = {
|
|
916
916
|
isEnabled: (e) => Ai[t].some((n) => !!e[n])
|
|
917
917
|
};
|
|
918
918
|
function ma(t) {
|
|
919
919
|
for (const e in t)
|
|
920
|
-
|
|
921
|
-
...
|
|
920
|
+
Nt[e] = {
|
|
921
|
+
...Nt[e],
|
|
922
922
|
...t[e]
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
|
-
const Ln =
|
|
926
|
-
let
|
|
927
|
-
process.env.NODE_ENV !== "production" && (
|
|
925
|
+
const Ln = Vt({}), ga = Symbol.for("motionComponentSymbol"), W = (t) => t;
|
|
926
|
+
let Wt = W, ct = W;
|
|
927
|
+
process.env.NODE_ENV !== "production" && (Wt = (t, e) => {
|
|
928
928
|
!t && typeof console < "u" && console.warn(e);
|
|
929
929
|
}, ct = (t, e) => {
|
|
930
930
|
if (!t)
|
|
@@ -957,11 +957,11 @@ function Pa(t, e) {
|
|
|
957
957
|
const n = U(Ys).strict;
|
|
958
958
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
|
959
959
|
const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
960
|
-
t.ignoreStrict ?
|
|
960
|
+
t.ignoreStrict ? Wt(!1, i) : ct(!1, i);
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
963
|
function xa(t) {
|
|
964
|
-
const { drag: e, layout: n } =
|
|
964
|
+
const { drag: e, layout: n } = Nt;
|
|
965
965
|
if (!e && !n)
|
|
966
966
|
return {};
|
|
967
967
|
const i = { ...e, ...n };
|
|
@@ -1055,9 +1055,9 @@ const he = [
|
|
|
1055
1055
|
"skew",
|
|
1056
1056
|
"skewX",
|
|
1057
1057
|
"skewY"
|
|
1058
|
-
],
|
|
1058
|
+
], vt = new Set(he);
|
|
1059
1059
|
function tr(t, { layout: e, layoutId: n }) {
|
|
1060
|
-
return
|
|
1060
|
+
return vt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!Ce[t] || t === "opacity");
|
|
1061
1061
|
}
|
|
1062
1062
|
const K = (t) => !!(t && t.getVelocity), Sa = {
|
|
1063
1063
|
x: "translateX",
|
|
@@ -1076,15 +1076,15 @@ function Ca(t, e, n) {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
return i = i.trim(), n ? i = n(t, e ? "" : i) : e && (i = "none"), i;
|
|
1078
1078
|
}
|
|
1079
|
-
const er = (t) => (e) => typeof e == "string" && e.startsWith(t), nr = er("--"), Ra = er("var(--"), On = (t) => Ra(t) ? Va.test(t.split("/*")[0].trim()) : !1, Va = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Ea = (t, e) => e && typeof t == "number" ? e.transform(t) : t,
|
|
1079
|
+
const er = (t) => (e) => typeof e == "string" && e.startsWith(t), nr = er("--"), Ra = er("var(--"), On = (t) => Ra(t) ? Va.test(t.split("/*")[0].trim()) : !1, Va = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Ea = (t, e) => e && typeof t == "number" ? e.transform(t) : t, gt = (t, e, n) => n > e ? e : n < t ? t : n, $t = {
|
|
1080
1080
|
test: (t) => typeof t == "number",
|
|
1081
1081
|
parse: parseFloat,
|
|
1082
1082
|
transform: (t) => t
|
|
1083
1083
|
}, Qt = {
|
|
1084
|
-
|
|
1085
|
-
transform: (t) =>
|
|
1084
|
+
...$t,
|
|
1085
|
+
transform: (t) => gt(0, 1, t)
|
|
1086
1086
|
}, xe = {
|
|
1087
|
-
|
|
1087
|
+
...$t,
|
|
1088
1088
|
default: 1
|
|
1089
1089
|
}, te = (t) => Math.round(t * 1e5) / 1e5, Fn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, Da = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Ma = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
|
|
1090
1090
|
function fe(t) {
|
|
@@ -1102,7 +1102,7 @@ const de = (t) => ({
|
|
|
1102
1102
|
parse: (t) => st.parse(t) / 100,
|
|
1103
1103
|
transform: (t) => st.transform(t * 100)
|
|
1104
1104
|
}, Ri = {
|
|
1105
|
-
|
|
1105
|
+
...$t,
|
|
1106
1106
|
transform: Math.round
|
|
1107
1107
|
}, ir = {
|
|
1108
1108
|
// Border props
|
|
@@ -1182,7 +1182,7 @@ function _n(t, e, n) {
|
|
|
1182
1182
|
continue;
|
|
1183
1183
|
}
|
|
1184
1184
|
const d = ir[c], p = Ea(h, d);
|
|
1185
|
-
if (
|
|
1185
|
+
if (vt.has(c)) {
|
|
1186
1186
|
if (a = !0, o[c] = p, !u)
|
|
1187
1187
|
continue;
|
|
1188
1188
|
h !== (d.default || 0) && (u = !1);
|
|
@@ -1205,7 +1205,7 @@ function sr(t, e, n) {
|
|
|
1205
1205
|
!K(e[i]) && !tr(i, n) && (t[i] = e[i]);
|
|
1206
1206
|
}
|
|
1207
1207
|
function Oa({ transformTemplate: t }, e) {
|
|
1208
|
-
return
|
|
1208
|
+
return Rt(() => {
|
|
1209
1209
|
const n = Bn();
|
|
1210
1210
|
return _n(n, e, t), Object.assign({}, n.vars, n.style);
|
|
1211
1211
|
}, [e]);
|
|
@@ -1314,7 +1314,7 @@ const or = () => ({
|
|
|
1314
1314
|
attrs: {}
|
|
1315
1315
|
}), Nn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
|
1316
1316
|
function Ga(t, e, n, i) {
|
|
1317
|
-
const s =
|
|
1317
|
+
const s = Rt(() => {
|
|
1318
1318
|
const o = or();
|
|
1319
1319
|
return In(o, e, Nn(i), t.transformTemplate), {
|
|
1320
1320
|
...o.attrs,
|
|
@@ -1329,7 +1329,7 @@ function Ga(t, e, n, i) {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
function za(t = !1) {
|
|
1331
1331
|
return (n, i, s, { latestValues: o }, r) => {
|
|
1332
|
-
const l = (jn(n) ? Ga : _a)(i, o, r, n), u = Na(i, typeof n == "string", t), c = n !== zs ? { ...u, ...l, ref: s } : {}, { children: h } = i, d =
|
|
1332
|
+
const l = (jn(n) ? Ga : _a)(i, o, r, n), u = Na(i, typeof n == "string", t), c = n !== zs ? { ...u, ...l, ref: s } : {}, { children: h } = i, d = Rt(() => K(h) ? h.get() : h, [h]);
|
|
1333
1333
|
return Yo(n, {
|
|
1334
1334
|
...c,
|
|
1335
1335
|
children: d
|
|
@@ -1423,7 +1423,7 @@ const hr = /* @__PURE__ */ new Set([
|
|
|
1423
1423
|
// "background-color"
|
|
1424
1424
|
]);
|
|
1425
1425
|
function fr(t) {
|
|
1426
|
-
if (
|
|
1426
|
+
if (vt.has(t))
|
|
1427
1427
|
return "transform";
|
|
1428
1428
|
if (hr.has(t))
|
|
1429
1429
|
return je(t);
|
|
@@ -1472,16 +1472,16 @@ function Za(t, e, n, i, s) {
|
|
|
1472
1472
|
y = y || c === !1;
|
|
1473
1473
|
const P = y ? h : c;
|
|
1474
1474
|
return P && typeof P != "boolean" && !se(P) && Di(t, P, (b, x) => {
|
|
1475
|
-
for (const
|
|
1476
|
-
let
|
|
1477
|
-
if (Array.isArray(
|
|
1478
|
-
const S = y ?
|
|
1479
|
-
|
|
1475
|
+
for (const v in b) {
|
|
1476
|
+
let g = b[v];
|
|
1477
|
+
if (Array.isArray(g)) {
|
|
1478
|
+
const S = y ? g.length - 1 : 0;
|
|
1479
|
+
g = g[S];
|
|
1480
1480
|
}
|
|
1481
|
-
|
|
1481
|
+
g !== null && (r[v] = g);
|
|
1482
1482
|
}
|
|
1483
|
-
for (const
|
|
1484
|
-
r[
|
|
1483
|
+
for (const v in x)
|
|
1484
|
+
r[v] = x[v];
|
|
1485
1485
|
}), l && (h && c !== !1 && !se(h) && Di(t, h, (b) => {
|
|
1486
1486
|
for (const x in b)
|
|
1487
1487
|
qa(a, x);
|
|
@@ -1569,7 +1569,7 @@ function yr() {
|
|
|
1569
1569
|
const t = gr(!0);
|
|
1570
1570
|
return t ? (t(), !1) : !0;
|
|
1571
1571
|
}
|
|
1572
|
-
class
|
|
1572
|
+
class Pt {
|
|
1573
1573
|
constructor(e) {
|
|
1574
1574
|
this.isMounted = !1, this.node = e;
|
|
1575
1575
|
}
|
|
@@ -1589,14 +1589,14 @@ function Li(t, e) {
|
|
|
1589
1589
|
passive: !t.getProps()[i]
|
|
1590
1590
|
});
|
|
1591
1591
|
}
|
|
1592
|
-
class il extends
|
|
1592
|
+
class il extends Pt {
|
|
1593
1593
|
mount() {
|
|
1594
1594
|
this.unmount = at(Li(this.node, !0), Li(this.node, !1));
|
|
1595
1595
|
}
|
|
1596
1596
|
unmount() {
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
|
-
class sl extends
|
|
1599
|
+
class sl extends Pt {
|
|
1600
1600
|
constructor() {
|
|
1601
1601
|
super(...arguments), this.isActive = !1;
|
|
1602
1602
|
}
|
|
@@ -1625,7 +1625,7 @@ function Ze(t, e) {
|
|
|
1625
1625
|
const n = new PointerEvent("pointer" + t);
|
|
1626
1626
|
e(n, Be(n));
|
|
1627
1627
|
}
|
|
1628
|
-
class rl extends
|
|
1628
|
+
class rl extends Pt {
|
|
1629
1629
|
constructor() {
|
|
1630
1630
|
super(...arguments), this.removeStartListeners = W, this.removeEndListeners = W, this.removeAccessibleListeners = W, this.startPointerPress = (e, n) => {
|
|
1631
1631
|
if (this.isPressing)
|
|
@@ -1707,7 +1707,7 @@ const cl = {
|
|
|
1707
1707
|
some: 0,
|
|
1708
1708
|
all: 1
|
|
1709
1709
|
};
|
|
1710
|
-
class hl extends
|
|
1710
|
+
class hl extends Pt {
|
|
1711
1711
|
constructor() {
|
|
1712
1712
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
1713
1713
|
}
|
|
@@ -1788,7 +1788,7 @@ const lt = (t) => t * 1e3, ut = (t) => t / 1e3, pl = {
|
|
|
1788
1788
|
type: "keyframes",
|
|
1789
1789
|
ease: [0.25, 0.1, 0.35, 1],
|
|
1790
1790
|
duration: 0.3
|
|
1791
|
-
}, vl = (t, { keyframes: e }) => e.length > 2 ? gl :
|
|
1791
|
+
}, vl = (t, { keyframes: e }) => e.length > 2 ? gl : vt.has(t) ? t.startsWith("scale") ? ml(e[1]) : pl : yl;
|
|
1792
1792
|
function Pl({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: u, ...c }) {
|
|
1793
1793
|
return !!Object.keys(c).length;
|
|
1794
1794
|
}
|
|
@@ -1804,8 +1804,8 @@ let Se;
|
|
|
1804
1804
|
function Tl() {
|
|
1805
1805
|
Se = void 0;
|
|
1806
1806
|
}
|
|
1807
|
-
const
|
|
1808
|
-
now: () => (Se === void 0 &&
|
|
1807
|
+
const mt = {
|
|
1808
|
+
now: () => (Se === void 0 && mt.set(N.isProcessing || oa.useManualTiming ? N.timestamp : performance.now()), Se),
|
|
1809
1809
|
set: (t) => {
|
|
1810
1810
|
Se = t, queueMicrotask(Tl);
|
|
1811
1811
|
}
|
|
@@ -1848,7 +1848,7 @@ const Cl = /* @__PURE__ */ new Set([
|
|
|
1848
1848
|
"y",
|
|
1849
1849
|
"translateX",
|
|
1850
1850
|
"translateY"
|
|
1851
|
-
]), ji = (t) => t ===
|
|
1851
|
+
]), ji = (t) => t === $t || t === w, Oi = (t, e) => parseFloat(t.split(", ")[e]), Fi = (t, e) => (n, { transform: i }) => {
|
|
1852
1852
|
if (i === "none" || !i)
|
|
1853
1853
|
return 0;
|
|
1854
1854
|
const s = i.match(/^matrix3d\((.+)\)$/u);
|
|
@@ -1866,7 +1866,7 @@ function El(t) {
|
|
|
1866
1866
|
i !== void 0 && (e.push([n, i.get()]), i.set(n.startsWith("scale") ? 1 : 0));
|
|
1867
1867
|
}), e;
|
|
1868
1868
|
}
|
|
1869
|
-
const
|
|
1869
|
+
const Ut = {
|
|
1870
1870
|
// Dimensions
|
|
1871
1871
|
width: ({ x: t }, { paddingLeft: e = "0", paddingRight: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
|
|
1872
1872
|
height: ({ y: t }, { paddingTop: e = "0", paddingBottom: n = "0" }) => t.max - t.min - parseFloat(e) - parseFloat(n),
|
|
@@ -1878,16 +1878,16 @@ const Nt = {
|
|
|
1878
1878
|
x: Fi(4, 13),
|
|
1879
1879
|
y: Fi(5, 14)
|
|
1880
1880
|
};
|
|
1881
|
-
|
|
1882
|
-
|
|
1881
|
+
Ut.translateX = Ut.x;
|
|
1882
|
+
Ut.translateY = Ut.y;
|
|
1883
1883
|
const wr = (t) => (e) => e.test(t), Dl = {
|
|
1884
1884
|
test: (t) => t === "auto",
|
|
1885
1885
|
parse: (t) => t
|
|
1886
|
-
}, Sr = [
|
|
1886
|
+
}, Sr = [$t, w, st, dt, ja, La, Dl], _i = (t) => Sr.find(wr(t)), Ct = /* @__PURE__ */ new Set();
|
|
1887
1887
|
let dn = !1, pn = !1;
|
|
1888
1888
|
function Ar() {
|
|
1889
1889
|
if (pn) {
|
|
1890
|
-
const t = Array.from(
|
|
1890
|
+
const t = Array.from(Ct).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
|
|
1891
1891
|
e.forEach((i) => {
|
|
1892
1892
|
const s = El(i);
|
|
1893
1893
|
s.length && (n.set(i, s), i.render());
|
|
@@ -1902,10 +1902,10 @@ function Ar() {
|
|
|
1902
1902
|
i.suspendedScrollY !== void 0 && window.scrollTo(0, i.suspendedScrollY);
|
|
1903
1903
|
});
|
|
1904
1904
|
}
|
|
1905
|
-
pn = !1, dn = !1,
|
|
1905
|
+
pn = !1, dn = !1, Ct.forEach((t) => t.complete()), Ct.clear();
|
|
1906
1906
|
}
|
|
1907
1907
|
function Cr() {
|
|
1908
|
-
|
|
1908
|
+
Ct.forEach((t) => {
|
|
1909
1909
|
t.readKeyframes(), t.needsMeasurement && (pn = !0);
|
|
1910
1910
|
});
|
|
1911
1911
|
}
|
|
@@ -1917,7 +1917,7 @@ class Gn {
|
|
|
1917
1917
|
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = i, this.motionValue = s, this.element = o, this.isAsync = r;
|
|
1918
1918
|
}
|
|
1919
1919
|
scheduleResolve() {
|
|
1920
|
-
this.isScheduled = !0, this.isAsync ? (
|
|
1920
|
+
this.isScheduled = !0, this.isAsync ? (Ct.add(this), dn || (dn = !0, M.read(Cr), M.resolveKeyframes(Ar))) : (this.readKeyframes(), this.complete());
|
|
1921
1921
|
}
|
|
1922
1922
|
readKeyframes() {
|
|
1923
1923
|
const { unresolvedKeyframes: e, name: n, element: i, motionValue: s } = this;
|
|
@@ -1944,10 +1944,10 @@ class Gn {
|
|
|
1944
1944
|
measureEndState() {
|
|
1945
1945
|
}
|
|
1946
1946
|
complete() {
|
|
1947
|
-
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe),
|
|
1947
|
+
this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe), Ct.delete(this);
|
|
1948
1948
|
}
|
|
1949
1949
|
cancel() {
|
|
1950
|
-
this.isComplete || (this.isScheduled = !1,
|
|
1950
|
+
this.isComplete || (this.isScheduled = !1, Ct.delete(this));
|
|
1951
1951
|
}
|
|
1952
1952
|
resume() {
|
|
1953
1953
|
this.isComplete || this.scheduleResolve();
|
|
@@ -1963,10 +1963,10 @@ const zn = (t, e) => (n) => !!(fe(n) && Ma.test(n) && n.startsWith(t) || e && !k
|
|
|
1963
1963
|
[n]: parseFloat(r),
|
|
1964
1964
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
1965
1965
|
};
|
|
1966
|
-
}, kl = (t) =>
|
|
1967
|
-
|
|
1966
|
+
}, kl = (t) => gt(0, 255, t), Qe = {
|
|
1967
|
+
...$t,
|
|
1968
1968
|
transform: (t) => Math.round(kl(t))
|
|
1969
|
-
},
|
|
1969
|
+
}, At = {
|
|
1970
1970
|
test: zn("rgb", "red"),
|
|
1971
1971
|
parse: Rr("red", "green", "blue"),
|
|
1972
1972
|
transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + Qe.transform(t) + ", " + Qe.transform(e) + ", " + Qe.transform(n) + ", " + te(Qt.transform(i)) + ")"
|
|
@@ -1983,15 +1983,15 @@ function Ll(t) {
|
|
|
1983
1983
|
const mn = {
|
|
1984
1984
|
test: zn("#"),
|
|
1985
1985
|
parse: Ll,
|
|
1986
|
-
transform:
|
|
1987
|
-
},
|
|
1986
|
+
transform: At.transform
|
|
1987
|
+
}, Ft = {
|
|
1988
1988
|
test: zn("hsl", "hue"),
|
|
1989
1989
|
parse: Rr("hue", "saturation", "lightness"),
|
|
1990
1990
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + st.transform(te(e)) + ", " + st.transform(te(n)) + ", " + te(Qt.transform(i)) + ")"
|
|
1991
1991
|
}, $ = {
|
|
1992
|
-
test: (t) =>
|
|
1993
|
-
parse: (t) =>
|
|
1994
|
-
transform: (t) => fe(t) ? t : t.hasOwnProperty("red") ?
|
|
1992
|
+
test: (t) => At.test(t) || mn.test(t) || Ft.test(t),
|
|
1993
|
+
parse: (t) => At.test(t) ? At.parse(t) : Ft.test(t) ? Ft.parse(t) : mn.parse(t),
|
|
1994
|
+
transform: (t) => fe(t) ? t : t.hasOwnProperty("red") ? At.transform(t) : Ft.transform(t)
|
|
1995
1995
|
};
|
|
1996
1996
|
function jl(t) {
|
|
1997
1997
|
var e, n;
|
|
@@ -2028,7 +2028,7 @@ function Il(t) {
|
|
|
2028
2028
|
const e = Dr(t);
|
|
2029
2029
|
return Mr(t)(e.map(Bl));
|
|
2030
2030
|
}
|
|
2031
|
-
const
|
|
2031
|
+
const yt = {
|
|
2032
2032
|
test: jl,
|
|
2033
2033
|
parse: Dr,
|
|
2034
2034
|
createTransformer: Mr,
|
|
@@ -2046,7 +2046,7 @@ function Ul(t) {
|
|
|
2046
2046
|
return i !== n && (o *= 100), e + "(" + o + s + ")";
|
|
2047
2047
|
}
|
|
2048
2048
|
const Wl = /\b([a-z-]*)\(.*?\)/gu, gn = {
|
|
2049
|
-
...
|
|
2049
|
+
...yt,
|
|
2050
2050
|
getAnimatableNone: (t) => {
|
|
2051
2051
|
const e = t.match(Wl);
|
|
2052
2052
|
return e ? e.map(Ul).join(" ") : t;
|
|
@@ -2070,7 +2070,7 @@ const Wl = /\b([a-z-]*)\(.*?\)/gu, gn = {
|
|
|
2070
2070
|
}, Hn = (t) => $l[t];
|
|
2071
2071
|
function kr(t, e) {
|
|
2072
2072
|
let n = Hn(t);
|
|
2073
|
-
return n !== gn && (n =
|
|
2073
|
+
return n !== gn && (n = yt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
2074
2074
|
}
|
|
2075
2075
|
const Kl = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
2076
2076
|
function Gl(t, e, n) {
|
|
@@ -2121,7 +2121,7 @@ class Lr extends Gn {
|
|
|
2121
2121
|
const { element: e, unresolvedKeyframes: n, name: i } = this;
|
|
2122
2122
|
if (!e.current)
|
|
2123
2123
|
return;
|
|
2124
|
-
i === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin =
|
|
2124
|
+
i === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Ut[i](e.measureViewportBox(), window.getComputedStyle(e.current)), n[0] = this.measuredOrigin;
|
|
2125
2125
|
const s = n[n.length - 1];
|
|
2126
2126
|
s !== void 0 && e.getValue(i, s).jump(s, !1);
|
|
2127
2127
|
}
|
|
@@ -2133,7 +2133,7 @@ class Lr extends Gn {
|
|
|
2133
2133
|
const o = n.getValue(i);
|
|
2134
2134
|
o && o.jump(this.measuredOrigin, !1);
|
|
2135
2135
|
const r = s.length - 1, a = s[r];
|
|
2136
|
-
s[r] =
|
|
2136
|
+
s[r] = Ut[i](n.measureViewportBox(), window.getComputedStyle(n.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), !((e = this.removedTransforms) === null || e === void 0) && e.length && this.removedTransforms.forEach(([l, u]) => {
|
|
2137
2137
|
n.getValue(l).set(u);
|
|
2138
2138
|
}), this.resolveNoneKeyframes();
|
|
2139
2139
|
}
|
|
@@ -2143,7 +2143,7 @@ function jr(t) {
|
|
|
2143
2143
|
return () => (e === void 0 && (e = t()), e);
|
|
2144
2144
|
}
|
|
2145
2145
|
const Ii = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
2146
|
-
(
|
|
2146
|
+
(yt.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
2147
2147
|
!t.startsWith("url("));
|
|
2148
2148
|
function zl(t) {
|
|
2149
2149
|
const e = t[0];
|
|
@@ -2160,7 +2160,7 @@ function Hl(t, e, n, i) {
|
|
|
2160
2160
|
if (e === "display" || e === "visibility")
|
|
2161
2161
|
return !0;
|
|
2162
2162
|
const o = t[t.length - 1], r = Ii(s, e), a = Ii(o, e);
|
|
2163
|
-
return
|
|
2163
|
+
return Wt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`), !r || !a ? !1 : zl(t) || n === "spring" && i;
|
|
2164
2164
|
}
|
|
2165
2165
|
class Or {
|
|
2166
2166
|
constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: s = 0, repeatDelay: o = 0, repeatType: r = "loop", ...a }) {
|
|
@@ -2231,9 +2231,9 @@ function _r(t, e, n) {
|
|
|
2231
2231
|
const tn = 1e-3, Xl = 0.01, Ni = 10, ql = 0.05, Zl = 1;
|
|
2232
2232
|
function Jl({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1 }) {
|
|
2233
2233
|
let s, o;
|
|
2234
|
-
|
|
2234
|
+
Wt(t <= lt(Ni), "Spring duration must be 10 seconds or less");
|
|
2235
2235
|
let r = 1 - e;
|
|
2236
|
-
r =
|
|
2236
|
+
r = gt(ql, Zl, r), t = gt(Xl, Ni, ut(t)), r < 1 ? (s = (u) => {
|
|
2237
2237
|
const c = u * r, h = c * t, d = c - n, p = yn(u, r), y = Math.exp(-h);
|
|
2238
2238
|
return tn - d / p * y;
|
|
2239
2239
|
}, o = (u) => {
|
|
@@ -2301,31 +2301,31 @@ function Br({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
|
|
|
2301
2301
|
velocity: -ut(i.velocity || 0)
|
|
2302
2302
|
}), p = h || 0, y = l / (2 * Math.sqrt(a * u)), P = o - s, b = ut(Math.sqrt(a / u)), x = Math.abs(P) < 5;
|
|
2303
2303
|
n || (n = x ? 0.01 : 2), e || (e = x ? 5e-3 : 0.5);
|
|
2304
|
-
let
|
|
2304
|
+
let v;
|
|
2305
2305
|
if (y < 1) {
|
|
2306
|
-
const
|
|
2307
|
-
|
|
2306
|
+
const g = yn(b, y);
|
|
2307
|
+
v = (S) => {
|
|
2308
2308
|
const C = Math.exp(-y * b * S);
|
|
2309
|
-
return o - C * ((p + y * b * P) /
|
|
2309
|
+
return o - C * ((p + y * b * P) / g * Math.sin(g * S) + P * Math.cos(g * S));
|
|
2310
2310
|
};
|
|
2311
2311
|
} else if (y === 1)
|
|
2312
|
-
|
|
2312
|
+
v = (g) => o - Math.exp(-b * g) * (P + (p + b * P) * g);
|
|
2313
2313
|
else {
|
|
2314
|
-
const
|
|
2315
|
-
|
|
2316
|
-
const C = Math.exp(-y * b * S), L = Math.min(
|
|
2317
|
-
return o - C * ((p + y * b * P) * Math.sinh(L) +
|
|
2314
|
+
const g = b * Math.sqrt(y * y - 1);
|
|
2315
|
+
v = (S) => {
|
|
2316
|
+
const C = Math.exp(-y * b * S), L = Math.min(g * S, 300);
|
|
2317
|
+
return o - C * ((p + y * b * P) * Math.sinh(L) + g * P * Math.cosh(L)) / g;
|
|
2318
2318
|
};
|
|
2319
2319
|
}
|
|
2320
2320
|
return {
|
|
2321
2321
|
calculatedDuration: d && c || null,
|
|
2322
|
-
next: (
|
|
2323
|
-
const S =
|
|
2322
|
+
next: (g) => {
|
|
2323
|
+
const S = v(g);
|
|
2324
2324
|
if (d)
|
|
2325
|
-
r.done =
|
|
2325
|
+
r.done = g >= c;
|
|
2326
2326
|
else {
|
|
2327
2327
|
let C = p;
|
|
2328
|
-
|
|
2328
|
+
g !== 0 && (y < 1 ? C = _r(v, g, S) : C = 0);
|
|
2329
2329
|
const L = Math.abs(C) <= n, q = Math.abs(o - S) <= e;
|
|
2330
2330
|
r.done = L && q;
|
|
2331
2331
|
}
|
|
@@ -2341,15 +2341,15 @@ function Wi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
2341
2341
|
let P = n * e;
|
|
2342
2342
|
const b = h + P, x = r === void 0 ? b : r(b);
|
|
2343
2343
|
x !== b && (P = x - h);
|
|
2344
|
-
const
|
|
2345
|
-
const G =
|
|
2344
|
+
const v = (V) => -P * Math.exp(-V / i), g = (V) => x + v(V), S = (V) => {
|
|
2345
|
+
const G = v(V), H = g(V);
|
|
2346
2346
|
d.done = Math.abs(G) <= u, d.value = d.done ? x : H;
|
|
2347
2347
|
};
|
|
2348
2348
|
let C, L;
|
|
2349
2349
|
const q = (V) => {
|
|
2350
2350
|
p(d.value) && (C = V, L = Br({
|
|
2351
2351
|
keyframes: [d.value, y(d.value)],
|
|
2352
|
-
velocity: _r(
|
|
2352
|
+
velocity: _r(g, V, d.value),
|
|
2353
2353
|
// TODO: This should be passing * 1000
|
|
2354
2354
|
damping: s,
|
|
2355
2355
|
stiffness: o,
|
|
@@ -2428,20 +2428,20 @@ function Ve(t, e) {
|
|
|
2428
2428
|
const nn = (t, e, n) => {
|
|
2429
2429
|
const i = t * t, s = n * (e * e - i) + i;
|
|
2430
2430
|
return s < 0 ? 0 : Math.sqrt(s);
|
|
2431
|
-
}, pu = [mn,
|
|
2431
|
+
}, pu = [mn, At, Ft], mu = (t) => pu.find((e) => e.test(t));
|
|
2432
2432
|
function Gi(t) {
|
|
2433
2433
|
const e = mu(t);
|
|
2434
|
-
if (
|
|
2434
|
+
if (Wt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
2435
2435
|
return !1;
|
|
2436
2436
|
let n = e.parse(t);
|
|
2437
|
-
return e ===
|
|
2437
|
+
return e === Ft && (n = du(n)), n;
|
|
2438
2438
|
}
|
|
2439
2439
|
const zi = (t, e) => {
|
|
2440
2440
|
const n = Gi(t), i = Gi(e);
|
|
2441
2441
|
if (!n || !i)
|
|
2442
2442
|
return Ve(t, e);
|
|
2443
2443
|
const s = { ...n };
|
|
2444
|
-
return (o) => (s.red = nn(n.red, i.red, o), s.green = nn(n.green, i.green, o), s.blue = nn(n.blue, i.blue, o), s.alpha = j(n.alpha, i.alpha, o),
|
|
2444
|
+
return (o) => (s.red = nn(n.red, i.red, o), s.green = nn(n.green, i.green, o), s.blue = nn(n.blue, i.blue, o), s.alpha = j(n.alpha, i.alpha, o), At.transform(s));
|
|
2445
2445
|
}, vn = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
2446
2446
|
function gu(t, e) {
|
|
2447
2447
|
return vn.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
@@ -2480,8 +2480,8 @@ function Pu(t, e) {
|
|
|
2480
2480
|
return i;
|
|
2481
2481
|
}
|
|
2482
2482
|
const xu = (t, e) => {
|
|
2483
|
-
const n =
|
|
2484
|
-
return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? vn.has(t) && !s.values.length || vn.has(e) && !i.values.length ? gu(t, e) : at(Gr(Pu(i, s), s.values), n) : (
|
|
2483
|
+
const n = yt.createTransformer(e), i = re(t), s = re(e);
|
|
2484
|
+
return i.indexes.var.length === s.indexes.var.length && i.indexes.color.length === s.indexes.color.length && i.indexes.number.length >= s.indexes.number.length ? vn.has(t) && !s.values.length || vn.has(e) && !i.values.length ? gu(t, e) : at(Gr(Pu(i, s), s.values), n) : (Wt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Ve(t, e));
|
|
2485
2485
|
};
|
|
2486
2486
|
function zr(t, e, n) {
|
|
2487
2487
|
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? j(t, e, n) : qn(t)(t, e);
|
|
@@ -2513,7 +2513,7 @@ function bu(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
|
|
|
2513
2513
|
const h = oe(t[c], t[c + 1], u);
|
|
2514
2514
|
return r[c](h);
|
|
2515
2515
|
};
|
|
2516
|
-
return n ? (u) => l(
|
|
2516
|
+
return n ? (u) => l(gt(t[0], t[o - 1], u)) : l;
|
|
2517
2517
|
}
|
|
2518
2518
|
function wu(t, e) {
|
|
2519
2519
|
const n = t[t.length - 1];
|
|
@@ -2567,7 +2567,7 @@ const Vu = (t) => {
|
|
|
2567
2567
|
* If we're processing this frame we can use the
|
|
2568
2568
|
* framelocked timestamp to keep things in sync.
|
|
2569
2569
|
*/
|
|
2570
|
-
now: () => N.isProcessing ? N.timestamp :
|
|
2570
|
+
now: () => N.isProcessing ? N.timestamp : mt.now()
|
|
2571
2571
|
};
|
|
2572
2572
|
}, Eu = {
|
|
2573
2573
|
decay: Wi,
|
|
@@ -2623,18 +2623,18 @@ class Zn extends Or {
|
|
|
2623
2623
|
return o.next(0);
|
|
2624
2624
|
const { delay: d, repeat: p, repeatType: y, repeatDelay: P, onUpdate: b } = this.options;
|
|
2625
2625
|
this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - c / this.speed, this.startTime)), n ? this.currentTime = e : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(e - this.startTime) * this.speed;
|
|
2626
|
-
const x = this.currentTime - d * (this.speed >= 0 ? 1 : -1),
|
|
2626
|
+
const x = this.currentTime - d * (this.speed >= 0 ? 1 : -1), v = this.speed >= 0 ? x < 0 : x > c;
|
|
2627
2627
|
this.currentTime = Math.max(x, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = c);
|
|
2628
|
-
let
|
|
2628
|
+
let g = this.currentTime, S = o;
|
|
2629
2629
|
if (p) {
|
|
2630
2630
|
const V = Math.min(this.currentTime, c) / h;
|
|
2631
2631
|
let G = Math.floor(V), H = V % 1;
|
|
2632
|
-
!H && V >= 1 && (H = 1), H === 1 && G--, G = Math.min(G, p + 1), !!(G % 2) && (y === "reverse" ? (H = 1 - H, P && (H -= P / h)) : y === "mirror" && (S = r)),
|
|
2632
|
+
!H && V >= 1 && (H = 1), H === 1 && G--, G = Math.min(G, p + 1), !!(G % 2) && (y === "reverse" ? (H = 1 - H, P && (H -= P / h)) : y === "mirror" && (S = r)), g = gt(0, 1, H) * h;
|
|
2633
2633
|
}
|
|
2634
|
-
const C =
|
|
2634
|
+
const C = v ? { done: !1, value: l[0] } : S.next(g);
|
|
2635
2635
|
a && (C.value = a(C.value));
|
|
2636
2636
|
let { done: L } = C;
|
|
2637
|
-
!
|
|
2637
|
+
!v && u !== null && (L = this.speed >= 0 ? this.currentTime >= c : this.currentTime <= 0);
|
|
2638
2638
|
const q = this.holdTime === null && (this.state === "finished" || this.state === "running" && L);
|
|
2639
2639
|
return q && s !== void 0 && (C.value = Ne(l, this.options, s)), b && b(C.value), q && this.finish(), C;
|
|
2640
2640
|
}
|
|
@@ -2771,7 +2771,7 @@ class Yi extends Or {
|
|
|
2771
2771
|
e = P.keyframes, e.length === 1 && (e[1] = e[0]), s = P.duration, o = P.times, r = P.ease, a = "keyframes";
|
|
2772
2772
|
}
|
|
2773
2773
|
const c = ku(l.owner.current, u, e, { ...this.options, duration: s, times: o, ease: r });
|
|
2774
|
-
return c.startTime =
|
|
2774
|
+
return c.startTime = mt.now(), this.pendingTimeline ? (c.timeline = this.pendingTimeline, this.pendingTimeline = void 0) : c.onfinish = () => {
|
|
2775
2775
|
const { onComplete: h } = this.options;
|
|
2776
2776
|
l.set(Ne(e, this.options, n)), h && h(), this.cancel(), this.resolveFinishedPromise();
|
|
2777
2777
|
}, {
|
|
@@ -3050,12 +3050,12 @@ class qr {
|
|
|
3050
3050
|
*/
|
|
3051
3051
|
constructor(e, n = {}) {
|
|
3052
3052
|
this.version = "11.3.19", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i, s = !0) => {
|
|
3053
|
-
const o =
|
|
3053
|
+
const o = mt.now();
|
|
3054
3054
|
this.updatedAt !== o && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), s && this.events.renderRequest && this.events.renderRequest.notify(this.current);
|
|
3055
3055
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
|
|
3056
3056
|
}
|
|
3057
3057
|
setCurrent(e) {
|
|
3058
|
-
this.current = e, this.updatedAt =
|
|
3058
|
+
this.current = e, this.updatedAt = mt.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = Nu(this.current));
|
|
3059
3059
|
}
|
|
3060
3060
|
setPrevFrameValue(e = this.current) {
|
|
3061
3061
|
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -3176,7 +3176,7 @@ class qr {
|
|
|
3176
3176
|
* @public
|
|
3177
3177
|
*/
|
|
3178
3178
|
getVelocity() {
|
|
3179
|
-
const e =
|
|
3179
|
+
const e = mt.now();
|
|
3180
3180
|
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > qi)
|
|
3181
3181
|
return 0;
|
|
3182
3182
|
const n = Math.min(this.updatedAt - this.prevUpdatedAt, qi);
|
|
@@ -3307,11 +3307,11 @@ function Jr(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
|
|
|
3307
3307
|
if (window.HandoffAppearAnimations) {
|
|
3308
3308
|
const x = Zr(t);
|
|
3309
3309
|
if (x) {
|
|
3310
|
-
const
|
|
3311
|
-
|
|
3310
|
+
const v = window.HandoffAppearAnimations(x, h, d, M);
|
|
3311
|
+
v !== null && (y.elapsed = v, P = !0);
|
|
3312
3312
|
}
|
|
3313
3313
|
}
|
|
3314
|
-
d.start(Qn(h, d, p, t.shouldReduceMotion &&
|
|
3314
|
+
d.start(Qn(h, d, p, t.shouldReduceMotion && vt.has(h) ? { type: !1 } : y, t, P, Pn(t, h)));
|
|
3315
3315
|
const b = d.animation;
|
|
3316
3316
|
b && u.push(b);
|
|
3317
3317
|
}
|
|
@@ -3386,36 +3386,36 @@ function Ju(t) {
|
|
|
3386
3386
|
const u = t.getProps(), c = t.getVariantContext(!0) || {}, h = [], d = /* @__PURE__ */ new Set();
|
|
3387
3387
|
let p = {}, y = 1 / 0;
|
|
3388
3388
|
for (let b = 0; b < qu; b++) {
|
|
3389
|
-
const x = Xu[b],
|
|
3389
|
+
const x = Xu[b], v = n[x], g = u[x] !== void 0 ? u[x] : c[x], S = ie(g), C = x === l ? v.isActive : null;
|
|
3390
3390
|
C === !1 && (y = b);
|
|
3391
|
-
let L =
|
|
3392
|
-
if (L && i && t.manuallyAnimateOnMount && (L = !1),
|
|
3393
|
-
!
|
|
3394
|
-
!
|
|
3395
|
-
se(
|
|
3391
|
+
let L = g === c[x] && g !== u[x] && S;
|
|
3392
|
+
if (L && i && t.manuallyAnimateOnMount && (L = !1), v.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
|
|
3393
|
+
!v.isActive && C === null || // If we didn't and don't have any defined prop for this animation type
|
|
3394
|
+
!g && !v.prevProp || // Or if the prop doesn't define an animation
|
|
3395
|
+
se(g) || typeof g == "boolean")
|
|
3396
3396
|
continue;
|
|
3397
|
-
let V = Qu(
|
|
3398
|
-
x === l &&
|
|
3397
|
+
let V = Qu(v.prevProp, g) || // If we're making this variant active, we want to always make it active
|
|
3398
|
+
x === l && v.isActive && !L && S || // If we removed a higher-priority variant (i is in reverse order)
|
|
3399
3399
|
b > y && S, G = !1;
|
|
3400
|
-
const H = Array.isArray(
|
|
3400
|
+
const H = Array.isArray(g) ? g : [g];
|
|
3401
3401
|
let ft = H.reduce(s(x), {});
|
|
3402
3402
|
C === !1 && (ft = {});
|
|
3403
|
-
const { prevResolvedValues:
|
|
3404
|
-
|
|
3403
|
+
const { prevResolvedValues: Kt = {} } = v, Z = {
|
|
3404
|
+
...Kt,
|
|
3405
3405
|
...ft
|
|
3406
3406
|
}, nt = (F) => {
|
|
3407
|
-
V = !0, d.has(F) && (G = !0, d.delete(F)),
|
|
3407
|
+
V = !0, d.has(F) && (G = !0, d.delete(F)), v.needsAnimating[F] = !0;
|
|
3408
3408
|
const J = t.getValue(F);
|
|
3409
3409
|
J && (J.liveStyle = !1);
|
|
3410
3410
|
};
|
|
3411
3411
|
for (const F in Z) {
|
|
3412
|
-
const J = ft[F],
|
|
3412
|
+
const J = ft[F], Dt = Kt[F];
|
|
3413
3413
|
if (p.hasOwnProperty(F))
|
|
3414
3414
|
continue;
|
|
3415
|
-
let
|
|
3416
|
-
hn(J) && hn(
|
|
3415
|
+
let Mt = !1;
|
|
3416
|
+
hn(J) && hn(Dt) ? Mt = !Pr(J, Dt) : Mt = J !== Dt, Mt ? J != null ? nt(F) : d.add(F) : J !== void 0 && d.has(F) ? nt(F) : v.protectedKeys[F] = !0;
|
|
3417
3417
|
}
|
|
3418
|
-
|
|
3418
|
+
v.prevProp = g, v.prevResolvedValues = ft, v.isActive && (p = { ...p, ...ft }), i && t.blockInitialAnimation && (V = !1), V && (!L || G) && h.push(...H.map((F) => ({
|
|
3419
3419
|
animation: F,
|
|
3420
3420
|
options: { type: x }
|
|
3421
3421
|
})));
|
|
@@ -3423,8 +3423,8 @@ function Ju(t) {
|
|
|
3423
3423
|
if (d.size) {
|
|
3424
3424
|
const b = {};
|
|
3425
3425
|
d.forEach((x) => {
|
|
3426
|
-
const
|
|
3427
|
-
|
|
3426
|
+
const v = t.getBaseTarget(x), g = t.getValue(x);
|
|
3427
|
+
g && (g.liveStyle = !0), b[x] = v ?? null;
|
|
3428
3428
|
}), h.push({ animation: b });
|
|
3429
3429
|
}
|
|
3430
3430
|
let P = !!h.length;
|
|
@@ -3456,7 +3456,7 @@ function Ju(t) {
|
|
|
3456
3456
|
function Qu(t, e) {
|
|
3457
3457
|
return typeof e == "string" ? e !== t : Array.isArray(e) ? !Pr(e, t) : !1;
|
|
3458
3458
|
}
|
|
3459
|
-
function
|
|
3459
|
+
function Tt(t = !1) {
|
|
3460
3460
|
return {
|
|
3461
3461
|
isActive: t,
|
|
3462
3462
|
protectedKeys: {},
|
|
@@ -3466,16 +3466,16 @@ function xt(t = !1) {
|
|
|
3466
3466
|
}
|
|
3467
3467
|
function Zi() {
|
|
3468
3468
|
return {
|
|
3469
|
-
animate:
|
|
3470
|
-
whileInView:
|
|
3471
|
-
whileHover:
|
|
3472
|
-
whileTap:
|
|
3473
|
-
whileDrag:
|
|
3474
|
-
whileFocus:
|
|
3475
|
-
exit:
|
|
3469
|
+
animate: Tt(!0),
|
|
3470
|
+
whileInView: Tt(),
|
|
3471
|
+
whileHover: Tt(),
|
|
3472
|
+
whileTap: Tt(),
|
|
3473
|
+
whileDrag: Tt(),
|
|
3474
|
+
whileFocus: Tt(),
|
|
3475
|
+
exit: Tt()
|
|
3476
3476
|
};
|
|
3477
3477
|
}
|
|
3478
|
-
class tc extends
|
|
3478
|
+
class tc extends Pt {
|
|
3479
3479
|
/**
|
|
3480
3480
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
3481
3481
|
* to the underlying animation library. We only want to load that if we load this,
|
|
@@ -3504,7 +3504,7 @@ class tc extends vt {
|
|
|
3504
3504
|
}
|
|
3505
3505
|
}
|
|
3506
3506
|
let ec = 0;
|
|
3507
|
-
class nc extends
|
|
3507
|
+
class nc extends Pt {
|
|
3508
3508
|
constructor() {
|
|
3509
3509
|
super(...arguments), this.id = ec++;
|
|
3510
3510
|
}
|
|
@@ -3663,7 +3663,7 @@ function mc(t, e) {
|
|
|
3663
3663
|
function gc(t, e) {
|
|
3664
3664
|
let n = 0.5;
|
|
3665
3665
|
const i = X(t), s = X(e);
|
|
3666
|
-
return s > i ? n = oe(e.min, e.max - i, t.min) : i > s && (n = oe(t.min, t.max - s, e.min)),
|
|
3666
|
+
return s > i ? n = oe(e.min, e.max - i, t.min) : i > s && (n = oe(t.min, t.max - s, e.min)), gt(0, 1, n);
|
|
3667
3667
|
}
|
|
3668
3668
|
function yc(t, e) {
|
|
3669
3669
|
const n = {};
|
|
@@ -3690,7 +3690,7 @@ const as = () => ({
|
|
|
3690
3690
|
scale: 1,
|
|
3691
3691
|
origin: 0,
|
|
3692
3692
|
originPoint: 0
|
|
3693
|
-
}),
|
|
3693
|
+
}), _t = () => ({
|
|
3694
3694
|
x: as(),
|
|
3695
3695
|
y: as()
|
|
3696
3696
|
}), ls = () => ({ min: 0, max: 0 }), B = () => ({
|
|
@@ -3726,7 +3726,7 @@ function on(t) {
|
|
|
3726
3726
|
function bn({ scale: t, scaleX: e, scaleY: n }) {
|
|
3727
3727
|
return !on(t) || !on(e) || !on(n);
|
|
3728
3728
|
}
|
|
3729
|
-
function
|
|
3729
|
+
function wt(t) {
|
|
3730
3730
|
return bn(t) || so(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
|
|
3731
3731
|
}
|
|
3732
3732
|
function so(t) {
|
|
@@ -3758,21 +3758,21 @@ function Tc(t, e, n, i = !1) {
|
|
|
3758
3758
|
for (let a = 0; a < s; a++) {
|
|
3759
3759
|
o = n[a], r = o.projectionDelta;
|
|
3760
3760
|
const { visualElement: l } = o.options;
|
|
3761
|
-
l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root &&
|
|
3761
|
+
l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && It(t, {
|
|
3762
3762
|
x: -o.scroll.offset.x,
|
|
3763
3763
|
y: -o.scroll.offset.y
|
|
3764
|
-
}), r && (e.x *= r.x.scale, e.y *= r.y.scale, ro(t, r)), i &&
|
|
3764
|
+
}), r && (e.x *= r.x.scale, e.y *= r.y.scale, ro(t, r)), i && wt(o.latestValues) && It(t, o.latestValues));
|
|
3765
3765
|
}
|
|
3766
3766
|
e.x < fs && e.x > hs && (e.x = 1), e.y < fs && e.y > hs && (e.y = 1);
|
|
3767
3767
|
}
|
|
3768
|
-
function
|
|
3768
|
+
function Bt(t, e) {
|
|
3769
3769
|
t.min = t.min + e, t.max = t.max + e;
|
|
3770
3770
|
}
|
|
3771
3771
|
function ds(t, e, n, i, s = 0.5) {
|
|
3772
3772
|
const o = j(t.min, t.max, s);
|
|
3773
3773
|
wn(t, e, n, o, i);
|
|
3774
3774
|
}
|
|
3775
|
-
function
|
|
3775
|
+
function It(t, e) {
|
|
3776
3776
|
ds(t.x, e.x, e.scaleX, e.scale, e.originX), ds(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
3777
3777
|
}
|
|
3778
3778
|
function oo(t, e) {
|
|
@@ -3780,7 +3780,7 @@ function oo(t, e) {
|
|
|
3780
3780
|
}
|
|
3781
3781
|
function bc(t, e, n) {
|
|
3782
3782
|
const i = oo(t, n), { scroll: s } = e;
|
|
3783
|
-
return s && (
|
|
3783
|
+
return s && (Bt(i.x, s.offset.x), Bt(i.y, s.offset.y)), i;
|
|
3784
3784
|
}
|
|
3785
3785
|
const ao = ({ current: t }) => t ? t.ownerDocument.defaultView : null, wc = /* @__PURE__ */ new WeakMap();
|
|
3786
3786
|
class Sc {
|
|
@@ -3800,15 +3800,15 @@ class Sc {
|
|
|
3800
3800
|
if (p && !y && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = gr(p), !this.openGlobalLock))
|
|
3801
3801
|
return;
|
|
3802
3802
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), et((x) => {
|
|
3803
|
-
let
|
|
3804
|
-
if (st.test(
|
|
3805
|
-
const { projection:
|
|
3806
|
-
if (
|
|
3807
|
-
const S =
|
|
3808
|
-
S && (
|
|
3803
|
+
let v = this.getAxisMotionValue(x).get() || 0;
|
|
3804
|
+
if (st.test(v)) {
|
|
3805
|
+
const { projection: g } = this.visualElement;
|
|
3806
|
+
if (g && g.layout) {
|
|
3807
|
+
const S = g.layout.layoutBox[x];
|
|
3808
|
+
S && (v = X(S) * (parseFloat(v) / 100));
|
|
3809
3809
|
}
|
|
3810
3810
|
}
|
|
3811
|
-
this.originPoint[x] =
|
|
3811
|
+
this.originPoint[x] = v;
|
|
3812
3812
|
}), P && M.postRender(() => P(c, h)), (d = this.removeWillChange) === null || d === void 0 || d.call(this), this.removeWillChange = Pn(this.visualElement, "transform");
|
|
3813
3813
|
const { animationState: b } = this.visualElement;
|
|
3814
3814
|
b && b.setActive("whileDrag", !0);
|
|
@@ -3867,13 +3867,13 @@ class Sc {
|
|
|
3867
3867
|
resolveConstraints() {
|
|
3868
3868
|
var e;
|
|
3869
3869
|
const { dragConstraints: n, dragElastic: i } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, o = this.constraints;
|
|
3870
|
-
n &&
|
|
3870
|
+
n && Ot(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = pc(s.layoutBox, n) : this.constraints = !1, this.elastic = vc(i), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && et((r) => {
|
|
3871
3871
|
this.constraints !== !1 && this.getAxisMotionValue(r) && (this.constraints[r] = yc(s.layoutBox[r], this.constraints[r]));
|
|
3872
3872
|
});
|
|
3873
3873
|
}
|
|
3874
3874
|
resolveRefConstraints() {
|
|
3875
3875
|
const { dragConstraints: e, onMeasureDragConstraints: n } = this.getProps();
|
|
3876
|
-
if (!e || !
|
|
3876
|
+
if (!e || !Ot(e))
|
|
3877
3877
|
return !1;
|
|
3878
3878
|
const i = e.current;
|
|
3879
3879
|
ct(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
|
|
@@ -3957,7 +3957,7 @@ class Sc {
|
|
|
3957
3957
|
if (!this.visualElement.current)
|
|
3958
3958
|
return;
|
|
3959
3959
|
const { drag: e, dragConstraints: n } = this.getProps(), { projection: i } = this.visualElement;
|
|
3960
|
-
if (!
|
|
3960
|
+
if (!Ot(n) || !i || !this.constraints)
|
|
3961
3961
|
return;
|
|
3962
3962
|
this.stopAnimation();
|
|
3963
3963
|
const s = { x: 0, y: 0 };
|
|
@@ -3985,7 +3985,7 @@ class Sc {
|
|
|
3985
3985
|
u && c && this.start(l);
|
|
3986
3986
|
}), i = () => {
|
|
3987
3987
|
const { dragConstraints: l } = this.getProps();
|
|
3988
|
-
|
|
3988
|
+
Ot(l) && l.current && (this.constraints = this.resolveRefConstraints());
|
|
3989
3989
|
}, { projection: s } = this.visualElement, o = s.addEventListener("measure", i);
|
|
3990
3990
|
s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), M.read(i);
|
|
3991
3991
|
const r = rt(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: u }) => {
|
|
@@ -4018,7 +4018,7 @@ function Ac(t, e = 10) {
|
|
|
4018
4018
|
let n = null;
|
|
4019
4019
|
return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
|
|
4020
4020
|
}
|
|
4021
|
-
class Cc extends
|
|
4021
|
+
class Cc extends Pt {
|
|
4022
4022
|
constructor(e) {
|
|
4023
4023
|
super(e), this.removeGroupControls = W, this.removeListeners = W, this.controls = new Sc(e);
|
|
4024
4024
|
}
|
|
@@ -4033,7 +4033,7 @@ class Cc extends vt {
|
|
|
4033
4033
|
const ps = (t) => (e, n) => {
|
|
4034
4034
|
t && M.postRender(() => t(e, n));
|
|
4035
4035
|
};
|
|
4036
|
-
class Rc extends
|
|
4036
|
+
class Rc extends Pt {
|
|
4037
4037
|
constructor() {
|
|
4038
4038
|
super(...arguments), this.removePointerDownListener = W;
|
|
4039
4039
|
}
|
|
@@ -4069,8 +4069,8 @@ function Vc() {
|
|
|
4069
4069
|
if (t === null)
|
|
4070
4070
|
return [!0, null];
|
|
4071
4071
|
const { isPresent: e, onExitComplete: n, register: i } = t, s = Cn();
|
|
4072
|
-
|
|
4073
|
-
const o =
|
|
4072
|
+
Et(() => i(s), []);
|
|
4073
|
+
const o = pt(() => n && n(s), [s, n]);
|
|
4074
4074
|
return !e && n ? [!1, o] : [!0];
|
|
4075
4075
|
}
|
|
4076
4076
|
const Ae = {
|
|
@@ -4088,7 +4088,7 @@ const Ae = {
|
|
|
4088
4088
|
function ms(t, e) {
|
|
4089
4089
|
return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
|
|
4090
4090
|
}
|
|
4091
|
-
const
|
|
4091
|
+
const Xt = {
|
|
4092
4092
|
correct: (t, e) => {
|
|
4093
4093
|
if (!e.target)
|
|
4094
4094
|
return t;
|
|
@@ -4102,10 +4102,10 @@ const Yt = {
|
|
|
4102
4102
|
}
|
|
4103
4103
|
}, Ec = {
|
|
4104
4104
|
correct: (t, { treeScale: e, projectionDelta: n }) => {
|
|
4105
|
-
const i = t, s =
|
|
4105
|
+
const i = t, s = yt.parse(t);
|
|
4106
4106
|
if (s.length > 5)
|
|
4107
4107
|
return i;
|
|
4108
|
-
const o =
|
|
4108
|
+
const o = yt.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
|
|
4109
4109
|
s[0 + r] /= a, s[1 + r] /= l;
|
|
4110
4110
|
const u = j(a, l, 0.5);
|
|
4111
4111
|
return typeof s[2 + r] == "number" && (s[2 + r] /= u), typeof s[3 + r] == "number" && (s[3 + r] /= u), o(s);
|
|
@@ -4157,7 +4157,7 @@ function lo(t) {
|
|
|
4157
4157
|
}
|
|
4158
4158
|
const Mc = {
|
|
4159
4159
|
borderRadius: {
|
|
4160
|
-
...
|
|
4160
|
+
...Xt,
|
|
4161
4161
|
applyTo: [
|
|
4162
4162
|
"borderTopLeftRadius",
|
|
4163
4163
|
"borderTopRightRadius",
|
|
@@ -4165,10 +4165,10 @@ const Mc = {
|
|
|
4165
4165
|
"borderBottomRightRadius"
|
|
4166
4166
|
]
|
|
4167
4167
|
},
|
|
4168
|
-
borderTopLeftRadius:
|
|
4169
|
-
borderTopRightRadius:
|
|
4170
|
-
borderBottomLeftRadius:
|
|
4171
|
-
borderBottomRightRadius:
|
|
4168
|
+
borderTopLeftRadius: Xt,
|
|
4169
|
+
borderTopRightRadius: Xt,
|
|
4170
|
+
borderBottomLeftRadius: Xt,
|
|
4171
|
+
borderBottomRightRadius: Xt,
|
|
4172
4172
|
boxShadow: Ec
|
|
4173
4173
|
}, uo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], kc = uo.length, gs = (t) => typeof t == "string" ? parseFloat(t) : t, ys = (t) => typeof t == "number" || w.test(t);
|
|
4174
4174
|
function Lc(t, e, n, i, s, o) {
|
|
@@ -4323,7 +4323,7 @@ class $c {
|
|
|
4323
4323
|
}
|
|
4324
4324
|
}
|
|
4325
4325
|
function Kc(t, e) {
|
|
4326
|
-
const n =
|
|
4326
|
+
const n = mt.now(), i = ({ timestamp: s }) => {
|
|
4327
4327
|
const o = s - n;
|
|
4328
4328
|
o >= e && (ht(i), t(o - e));
|
|
4329
4329
|
};
|
|
@@ -4336,7 +4336,7 @@ function zc(t, e, n) {
|
|
|
4336
4336
|
const i = K(t) ? t : ae(t);
|
|
4337
4337
|
return i.start(Qn("", i, e, n)), i.animation;
|
|
4338
4338
|
}
|
|
4339
|
-
const
|
|
4339
|
+
const St = {
|
|
4340
4340
|
type: "projectionFrame",
|
|
4341
4341
|
totalNodes: 0,
|
|
4342
4342
|
resolvedTargetDeltas: 0,
|
|
@@ -4359,7 +4359,7 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4359
4359
|
this.id = Yc++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
4360
4360
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
4361
4361
|
}, this.updateProjection = () => {
|
|
4362
|
-
this.projectionUpdateScheduled = !1, Zt && (
|
|
4362
|
+
this.projectionUpdateScheduled = !1, Zt && (St.totalNodes = St.resolvedTargetDeltas = St.recalculatedProjection = 0), this.nodes.forEach(Zc), this.nodes.forEach(nh), this.nodes.forEach(ih), this.nodes.forEach(Jc), Zt && window.MotionDebug.record(St);
|
|
4363
4363
|
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = r, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
|
|
4364
4364
|
for (let l = 0; l < this.path.length; l++)
|
|
4365
4365
|
this.path[l].shouldResetTransform = !0;
|
|
@@ -4395,9 +4395,9 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4395
4395
|
this.target = void 0, this.relativeTarget = void 0;
|
|
4396
4396
|
return;
|
|
4397
4397
|
}
|
|
4398
|
-
const P = this.options.transition || c.getDefaultTransition() || lh, { onLayoutAnimationStart: b, onLayoutAnimationComplete: x } = c.getProps(),
|
|
4399
|
-
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance ||
|
|
4400
|
-
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(h,
|
|
4398
|
+
const P = this.options.transition || c.getDefaultTransition() || lh, { onLayoutAnimationStart: b, onLayoutAnimationComplete: x } = c.getProps(), v = !this.targetLayout || !fo(this.targetLayout, y) || p, g = !d && p;
|
|
4399
|
+
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || g || d && (v || !this.currentAnimation)) {
|
|
4400
|
+
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(h, g);
|
|
4401
4401
|
const S = {
|
|
4402
4402
|
...Kn(P, "layout"),
|
|
4403
4403
|
onPlay: b,
|
|
@@ -4459,8 +4459,8 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4459
4459
|
return;
|
|
4460
4460
|
}
|
|
4461
4461
|
this.isUpdating || this.nodes.forEach(th), this.isUpdating = !1, this.nodes.forEach(eh), this.nodes.forEach(Xc), this.nodes.forEach(qc), this.clearAllSnapshots();
|
|
4462
|
-
const a =
|
|
4463
|
-
N.delta =
|
|
4462
|
+
const a = mt.now();
|
|
4463
|
+
N.delta = gt(0, 1e3 / 60, a - N.timestamp), N.timestamp = a, N.isProcessing = !0, qe.update.process(N), qe.preRender.process(N), qe.render.process(N), N.isProcessing = !1;
|
|
4464
4464
|
}
|
|
4465
4465
|
didUpdate() {
|
|
4466
4466
|
this.updateScheduled || (this.updateScheduled = !0, Dn.read(this.scheduleUpdate));
|
|
@@ -4510,7 +4510,7 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4510
4510
|
if (!s)
|
|
4511
4511
|
return;
|
|
4512
4512
|
const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !ho(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
|
|
4513
|
-
r && (a ||
|
|
4513
|
+
r && (a || wt(this.latestValues) || c) && (s(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
|
|
4514
4514
|
}
|
|
4515
4515
|
measure(r = !0) {
|
|
4516
4516
|
const a = this.measurePageBox();
|
|
@@ -4531,7 +4531,7 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4531
4531
|
const l = a.measureViewportBox();
|
|
4532
4532
|
if (!(((r = this.scroll) === null || r === void 0 ? void 0 : r.wasRoot) || this.path.some(ch))) {
|
|
4533
4533
|
const { scroll: c } = this.root;
|
|
4534
|
-
c && (
|
|
4534
|
+
c && (Bt(l.x, c.offset.x), Bt(l.y, c.offset.y));
|
|
4535
4535
|
}
|
|
4536
4536
|
return l;
|
|
4537
4537
|
}
|
|
@@ -4542,7 +4542,7 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4542
4542
|
return l;
|
|
4543
4543
|
for (let u = 0; u < this.path.length; u++) {
|
|
4544
4544
|
const c = this.path[u], { scroll: h, options: d } = c;
|
|
4545
|
-
c !== this.root && h && d.layoutScroll && (h.wasRoot && tt(l, r),
|
|
4545
|
+
c !== this.root && h && d.layoutScroll && (h.wasRoot && tt(l, r), Bt(l.x, h.offset.x), Bt(l.y, h.offset.y));
|
|
4546
4546
|
}
|
|
4547
4547
|
return l;
|
|
4548
4548
|
}
|
|
@@ -4551,25 +4551,25 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4551
4551
|
tt(l, r);
|
|
4552
4552
|
for (let u = 0; u < this.path.length; u++) {
|
|
4553
4553
|
const c = this.path[u];
|
|
4554
|
-
!a && c.options.layoutScroll && c.scroll && c !== c.root &&
|
|
4554
|
+
!a && c.options.layoutScroll && c.scroll && c !== c.root && It(l, {
|
|
4555
4555
|
x: -c.scroll.offset.x,
|
|
4556
4556
|
y: -c.scroll.offset.y
|
|
4557
|
-
}),
|
|
4557
|
+
}), wt(c.latestValues) && It(l, c.latestValues);
|
|
4558
4558
|
}
|
|
4559
|
-
return
|
|
4559
|
+
return wt(this.latestValues) && It(l, this.latestValues), l;
|
|
4560
4560
|
}
|
|
4561
4561
|
removeTransform(r) {
|
|
4562
4562
|
const a = B();
|
|
4563
4563
|
tt(a, r);
|
|
4564
4564
|
for (let l = 0; l < this.path.length; l++) {
|
|
4565
4565
|
const u = this.path[l];
|
|
4566
|
-
if (!u.instance || !
|
|
4566
|
+
if (!u.instance || !wt(u.latestValues))
|
|
4567
4567
|
continue;
|
|
4568
4568
|
bn(u.latestValues) && u.updateSnapshot();
|
|
4569
4569
|
const c = B(), h = u.measurePageBox();
|
|
4570
4570
|
tt(c, h), ws(a, u.latestValues, u.snapshot ? u.snapshot.layoutBox : void 0, c);
|
|
4571
4571
|
}
|
|
4572
|
-
return
|
|
4572
|
+
return wt(this.latestValues) && ws(a, this.latestValues), a;
|
|
4573
4573
|
}
|
|
4574
4574
|
setTargetDelta(r) {
|
|
4575
4575
|
this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -4606,7 +4606,7 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4606
4606
|
const p = this.getClosestProjectingParent();
|
|
4607
4607
|
p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), ne(this.relativeTargetOrigin, this.target, p.target), tt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4608
4608
|
}
|
|
4609
|
-
Zt &&
|
|
4609
|
+
Zt && St.resolvedTargetDeltas++;
|
|
4610
4610
|
}
|
|
4611
4611
|
}
|
|
4612
4612
|
}
|
|
@@ -4634,7 +4634,7 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4634
4634
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
4635
4635
|
return;
|
|
4636
4636
|
}
|
|
4637
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (xs(this.prevProjectionDelta.x, this.projectionDelta.x), xs(this.prevProjectionDelta.y, this.projectionDelta.y)), ee(this.projectionDelta, this.layoutCorrected, y, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !Vs(this.projectionDelta.x, this.prevProjectionDelta.x) || !Vs(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", y)), Zt &&
|
|
4637
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (xs(this.prevProjectionDelta.x, this.projectionDelta.x), xs(this.prevProjectionDelta.y, this.projectionDelta.y)), ee(this.projectionDelta, this.layoutCorrected, y, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !Vs(this.projectionDelta.x, this.prevProjectionDelta.x) || !Vs(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", y)), Zt && St.recalculatedProjection++;
|
|
4638
4638
|
}
|
|
4639
4639
|
hide() {
|
|
4640
4640
|
this.isVisible = !1;
|
|
@@ -4651,17 +4651,17 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4651
4651
|
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
4652
4652
|
}
|
|
4653
4653
|
createProjectionDeltas() {
|
|
4654
|
-
this.prevProjectionDelta =
|
|
4654
|
+
this.prevProjectionDelta = _t(), this.projectionDelta = _t(), this.projectionDeltaWithTransform = _t();
|
|
4655
4655
|
}
|
|
4656
4656
|
setAnimationOrigin(r, a = !1) {
|
|
4657
|
-
const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, h =
|
|
4657
|
+
const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, h = _t();
|
|
4658
4658
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
4659
|
-
const d = B(), p = l ? l.source : void 0, y = this.layout ? this.layout.source : void 0, P = p !== y, b = this.getStack(), x = !b || b.members.length <= 1,
|
|
4659
|
+
const d = B(), p = l ? l.source : void 0, y = this.layout ? this.layout.source : void 0, P = p !== y, b = this.getStack(), x = !b || b.members.length <= 1, v = !!(P && !x && this.options.crossfade === !0 && !this.path.some(ah));
|
|
4660
4660
|
this.animationProgress = 0;
|
|
4661
|
-
let
|
|
4661
|
+
let g;
|
|
4662
4662
|
this.mixTargetDelta = (S) => {
|
|
4663
4663
|
const C = S / 1e3;
|
|
4664
|
-
ks(h.x, r.x, C), ks(h.y, r.y, C), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ne(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), oh(this.relativeTarget, this.relativeTargetOrigin, d, C),
|
|
4664
|
+
ks(h.x, r.x, C), ks(h.y, r.y, C), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ne(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), oh(this.relativeTarget, this.relativeTargetOrigin, d, C), g && Ic(this.relativeTarget, g) && (this.isProjectionDirty = !1), g || (g = B()), tt(g, this.relativeTarget)), P && (this.animationValues = c, Lc(c, u, this.latestValues, C, v, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
|
|
4665
4665
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4666
4666
|
}
|
|
4667
4667
|
startAnimation(r) {
|
|
@@ -4696,7 +4696,7 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4696
4696
|
const d = X(this.layout.layoutBox.y);
|
|
4697
4697
|
l.y.min = r.target.y.min, l.y.max = l.y.min + d;
|
|
4698
4698
|
}
|
|
4699
|
-
tt(a, l),
|
|
4699
|
+
tt(a, l), It(a, c), ee(this.projectionDeltaWithTransform, this.layoutCorrected, a, c);
|
|
4700
4700
|
}
|
|
4701
4701
|
}
|
|
4702
4702
|
registerSharedNode(r, a) {
|
|
@@ -4765,7 +4765,7 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4765
4765
|
const h = this.getLead();
|
|
4766
4766
|
if (!this.projectionDelta || !this.layout || !h.target) {
|
|
4767
4767
|
const P = {};
|
|
4768
|
-
return this.options.layoutId && (P.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, P.pointerEvents = we(r == null ? void 0 : r.pointerEvents) || ""), this.hasProjected && !
|
|
4768
|
+
return this.options.layoutId && (P.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, P.pointerEvents = we(r == null ? void 0 : r.pointerEvents) || ""), this.hasProjected && !wt(this.latestValues) && (P.transform = c ? c({}, "") : "none", this.hasProjected = !1), P;
|
|
4769
4769
|
}
|
|
4770
4770
|
const d = h.animationValues || h.latestValues;
|
|
4771
4771
|
this.applyTransformsToTarget(), u.transform = Uc(this.projectionDeltaWithTransform, this.treeScale, d), c && (u.transform = c(d, u.transform));
|
|
@@ -4774,13 +4774,13 @@ function mo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4774
4774
|
for (const P in Ce) {
|
|
4775
4775
|
if (d[P] === void 0)
|
|
4776
4776
|
continue;
|
|
4777
|
-
const { correct: b, applyTo: x } = Ce[P],
|
|
4777
|
+
const { correct: b, applyTo: x } = Ce[P], v = u.transform === "none" ? d[P] : b(d[P], h);
|
|
4778
4778
|
if (x) {
|
|
4779
|
-
const
|
|
4780
|
-
for (let S = 0; S <
|
|
4781
|
-
u[x[S]] =
|
|
4779
|
+
const g = x.length;
|
|
4780
|
+
for (let S = 0; S < g; S++)
|
|
4781
|
+
u[x[S]] = v;
|
|
4782
4782
|
} else
|
|
4783
|
-
u[P] =
|
|
4783
|
+
u[P] = v;
|
|
4784
4784
|
}
|
|
4785
4785
|
return this.options.layoutId && (u.pointerEvents = h === this ? we(r == null ? void 0 : r.pointerEvents) || "" : "none"), u;
|
|
4786
4786
|
}
|
|
@@ -4811,9 +4811,9 @@ function qc(t) {
|
|
|
4811
4811
|
const d = r ? n.measuredBox[h] : n.layoutBox[h], p = X(i[h]);
|
|
4812
4812
|
d.max = d.min + p, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[h].max = t.relativeTarget[h].min + p);
|
|
4813
4813
|
});
|
|
4814
|
-
const a =
|
|
4814
|
+
const a = _t();
|
|
4815
4815
|
ee(a, i, n.layoutBox);
|
|
4816
|
-
const l =
|
|
4816
|
+
const l = _t();
|
|
4817
4817
|
r ? ee(l, t.applyTransform(s, !0), n.measuredBox) : ee(l, i, n.layoutBox);
|
|
4818
4818
|
const u = !ho(a);
|
|
4819
4819
|
let c = !1;
|
|
@@ -4844,7 +4844,7 @@ function qc(t) {
|
|
|
4844
4844
|
t.options.transition = void 0;
|
|
4845
4845
|
}
|
|
4846
4846
|
function Zc(t) {
|
|
4847
|
-
Zt &&
|
|
4847
|
+
Zt && St.totalNodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
|
|
4848
4848
|
}
|
|
4849
4849
|
function Jc(t) {
|
|
4850
4850
|
t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
|
|
@@ -4969,7 +4969,7 @@ function ph(t, e, n) {
|
|
|
4969
4969
|
e[i] === void 0 && t.removeValue(i);
|
|
4970
4970
|
return e;
|
|
4971
4971
|
}
|
|
4972
|
-
const _s = /* @__PURE__ */ new WeakMap(), mh = [...Sr, $,
|
|
4972
|
+
const _s = /* @__PURE__ */ new WeakMap(), mh = [...Sr, $, yt], gh = (t) => mh.find(wr(t)), Bs = [
|
|
4973
4973
|
"AnimationStart",
|
|
4974
4974
|
"AnimationComplete",
|
|
4975
4975
|
"Update",
|
|
@@ -5017,7 +5017,7 @@ class vh {
|
|
|
5017
5017
|
this.current = null;
|
|
5018
5018
|
}
|
|
5019
5019
|
bindToMotionValue(e, n) {
|
|
5020
|
-
const i =
|
|
5020
|
+
const i = vt.has(e), s = n.on("change", (r) => {
|
|
5021
5021
|
this.latestValues[e] = r, this.props.onUpdate && M.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0);
|
|
5022
5022
|
}), o = n.on("renderRequest", this.scheduleRender);
|
|
5023
5023
|
this.valueSubscriptions.set(e, () => {
|
|
@@ -5029,8 +5029,8 @@ class vh {
|
|
|
5029
5029
|
}
|
|
5030
5030
|
updateFeatures() {
|
|
5031
5031
|
let e = "animation";
|
|
5032
|
-
for (e in
|
|
5033
|
-
const n =
|
|
5032
|
+
for (e in Nt) {
|
|
5033
|
+
const n = Nt[e];
|
|
5034
5034
|
if (!n)
|
|
5035
5035
|
continue;
|
|
5036
5036
|
const { isEnabled: i, Feature: s } = n;
|
|
@@ -5149,7 +5149,7 @@ class vh {
|
|
|
5149
5149
|
readValue(e, n) {
|
|
5150
5150
|
var i;
|
|
5151
5151
|
let s = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (i = this.getBaseTargetFromProps(this.props, e)) !== null && i !== void 0 ? i : this.readValueFromInstance(this.current, e, this.options);
|
|
5152
|
-
return s != null && (typeof s == "string" && (Tr(s) || xr(s)) ? s = parseFloat(s) : !gh(s) &&
|
|
5152
|
+
return s != null && (typeof s == "string" && (Tr(s) || xr(s)) ? s = parseFloat(s) : !gh(s) && yt.test(n) && (s = kr(e, n)), this.setBaseTarget(e, K(s) ? s.get() : s)), K(s) ? s.get() : s;
|
|
5153
5153
|
}
|
|
5154
5154
|
/**
|
|
5155
5155
|
* Set the base target to later animate back to. This is currently
|
|
@@ -5204,7 +5204,7 @@ class xh extends Po {
|
|
|
5204
5204
|
super(...arguments), this.type = "html", this.applyWillChange = !0, this.renderInstance = ar;
|
|
5205
5205
|
}
|
|
5206
5206
|
readValueFromInstance(e, n) {
|
|
5207
|
-
if (
|
|
5207
|
+
if (vt.has(n)) {
|
|
5208
5208
|
const i = Hn(n);
|
|
5209
5209
|
return i && i.default || 0;
|
|
5210
5210
|
} else {
|
|
@@ -5237,7 +5237,7 @@ class Th extends Po {
|
|
|
5237
5237
|
return e[n];
|
|
5238
5238
|
}
|
|
5239
5239
|
readValueFromInstance(e, n) {
|
|
5240
|
-
if (
|
|
5240
|
+
if (vt.has(n)) {
|
|
5241
5241
|
const i = Hn(n);
|
|
5242
5242
|
return i && i.default || 0;
|
|
5243
5243
|
}
|
|
@@ -5314,7 +5314,7 @@ function Rh({ children: t, isPresent: e }) {
|
|
|
5314
5314
|
}, [e]), O.jsx(Ch, { isPresent: e, childRef: i, sizeRef: s, children: An.cloneElement(t, { ref: i }) });
|
|
5315
5315
|
}
|
|
5316
5316
|
const Vh = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: s, presenceAffectsLayout: o, mode: r }) => {
|
|
5317
|
-
const a = $n(Eh), l = Cn(), u =
|
|
5317
|
+
const a = $n(Eh), l = Cn(), u = Rt(
|
|
5318
5318
|
() => ({
|
|
5319
5319
|
id: l,
|
|
5320
5320
|
initial: e,
|
|
@@ -5336,7 +5336,7 @@ const Vh = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom:
|
|
|
5336
5336
|
*/
|
|
5337
5337
|
o ? [Math.random()] : [n]
|
|
5338
5338
|
);
|
|
5339
|
-
return
|
|
5339
|
+
return Rt(() => {
|
|
5340
5340
|
a.forEach((c, h) => a.set(h, !1));
|
|
5341
5341
|
}, [n]), An.useEffect(() => {
|
|
5342
5342
|
!n && !a.size && i && i();
|
|
@@ -5354,30 +5354,30 @@ function Is(t) {
|
|
|
5354
5354
|
}
|
|
5355
5355
|
const Dh = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExitComplete: s, presenceAffectsLayout: o = !0, mode: r = "sync" }) => {
|
|
5356
5356
|
ct(!e, "Replace exitBeforeEnter with mode='wait'");
|
|
5357
|
-
const a =
|
|
5357
|
+
const a = Rt(() => Is(t), [t]), l = a.map(be), u = it(!0), c = it(a), h = $n(() => /* @__PURE__ */ new Map()), [d, p] = Jt(a), [y, P] = Jt(a);
|
|
5358
5358
|
Hs(() => {
|
|
5359
5359
|
u.current = !1, c.current = a;
|
|
5360
|
-
for (let
|
|
5361
|
-
const
|
|
5362
|
-
l.includes(
|
|
5360
|
+
for (let v = 0; v < y.length; v++) {
|
|
5361
|
+
const g = be(y[v]);
|
|
5362
|
+
l.includes(g) ? h.delete(g) : h.get(g) !== !0 && h.set(g, !1);
|
|
5363
5363
|
}
|
|
5364
5364
|
}, [y, l.length, l.join("-")]);
|
|
5365
5365
|
const b = [];
|
|
5366
5366
|
if (a !== d) {
|
|
5367
|
-
let
|
|
5368
|
-
for (let
|
|
5369
|
-
const S = y[
|
|
5370
|
-
l.includes(C) || (
|
|
5367
|
+
let v = [...a];
|
|
5368
|
+
for (let g = 0; g < y.length; g++) {
|
|
5369
|
+
const S = y[g], C = be(S);
|
|
5370
|
+
l.includes(C) || (v.splice(g, 0, S), b.push(S));
|
|
5371
5371
|
}
|
|
5372
|
-
r === "wait" && b.length && (
|
|
5372
|
+
r === "wait" && b.length && (v = b), P(Is(v)), p(a);
|
|
5373
5373
|
return;
|
|
5374
5374
|
}
|
|
5375
5375
|
process.env.NODE_ENV !== "production" && r === "wait" && y.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
5376
5376
|
const { forceRender: x } = U(Ln);
|
|
5377
|
-
return O.jsx(O.Fragment, { children: y.map((
|
|
5378
|
-
const
|
|
5379
|
-
if (h.has(
|
|
5380
|
-
h.set(
|
|
5377
|
+
return O.jsx(O.Fragment, { children: y.map((v) => {
|
|
5378
|
+
const g = be(v), S = a === y || l.includes(g), C = () => {
|
|
5379
|
+
if (h.has(g))
|
|
5380
|
+
h.set(g, !0);
|
|
5381
5381
|
else
|
|
5382
5382
|
return;
|
|
5383
5383
|
let L = !0;
|
|
@@ -5385,12 +5385,28 @@ const Dh = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
|
|
|
5385
5385
|
q || (L = !1);
|
|
5386
5386
|
}), L && (x == null || x(), P(c.current), s && s());
|
|
5387
5387
|
};
|
|
5388
|
-
return O.jsx(Vh, { isPresent: S, initial: !u.current || i ? void 0 : !1, custom: S ? void 0 : n, presenceAffectsLayout: o, mode: r, onExitComplete: S ? void 0 : C, children:
|
|
5388
|
+
return O.jsx(Vh, { isPresent: S, initial: !u.current || i ? void 0 : !1, custom: S ? void 0 : n, presenceAffectsLayout: o, mode: r, onExitComplete: S ? void 0 : C, children: v }, g);
|
|
5389
5389
|
}) });
|
|
5390
|
-
},
|
|
5390
|
+
}, Ns = ({
|
|
5391
|
+
onKeydown: t
|
|
5392
|
+
}) => (Et(() => (document.addEventListener("keydown", t), () => {
|
|
5393
|
+
document.removeEventListener("keydown", t);
|
|
5394
|
+
}), []), null), Us = ({
|
|
5395
|
+
onMousedown: t
|
|
5396
|
+
}) => (Et(() => (document.addEventListener("mousedown", t), () => {
|
|
5397
|
+
document.removeEventListener("mousedown", t);
|
|
5398
|
+
}), []), null), Mh = ({
|
|
5399
|
+
onPickerHide: t
|
|
5400
|
+
}) => (Et(() => () => {
|
|
5401
|
+
t();
|
|
5402
|
+
}, []), null), kh = "acrool-react-picker__root", Lh = "acrool-react-picker__main-el", Ws = {
|
|
5403
|
+
root: kh,
|
|
5404
|
+
"main-el": "acrool-react-picker__main-el",
|
|
5405
|
+
mainEl: Lh
|
|
5406
|
+
}, jh = "acrool-react-picker__motion-animation-wrapper", Oh = {
|
|
5391
5407
|
"motion-animation-wrapper": "acrool-react-picker__motion-animation-wrapper",
|
|
5392
|
-
motionAnimationWrapper:
|
|
5393
|
-
},
|
|
5408
|
+
motionAnimationWrapper: jh
|
|
5409
|
+
}, Fh = {
|
|
5394
5410
|
variants: {
|
|
5395
5411
|
initial: { position: "absolute", zIndex: 999, opacity: 0, transition: { type: "spring" } },
|
|
5396
5412
|
show: { opacity: 1, transition: { type: "just" } },
|
|
@@ -5399,13 +5415,13 @@ const Dh = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
|
|
|
5399
5415
|
transition: {
|
|
5400
5416
|
duration: 0.1
|
|
5401
5417
|
}
|
|
5402
|
-
},
|
|
5418
|
+
}, _h = ({
|
|
5403
5419
|
position: t,
|
|
5404
5420
|
children: e
|
|
5405
5421
|
}, n) => {
|
|
5406
5422
|
const i = {
|
|
5407
|
-
bottom: t.vertical === "top" ? "calc(100%
|
|
5408
|
-
top: t.vertical === "bottom" ? "calc(100%
|
|
5423
|
+
bottom: t.vertical === "top" ? "calc(100% + 2px)" : void 0,
|
|
5424
|
+
top: t.vertical === "bottom" ? "calc(100% + 2px)" : void 0
|
|
5409
5425
|
// left: position.horizontal === 'right' ? 'calc(100% - 1px)': undefined,
|
|
5410
5426
|
// right: position.horizontal === 'left' ? 'calc(100% - 1px)': undefined,
|
|
5411
5427
|
};
|
|
@@ -5415,31 +5431,15 @@ const Dh = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
|
|
|
5415
5431
|
ref: n,
|
|
5416
5432
|
transition: { type: "spring", duration: 0.2 },
|
|
5417
5433
|
style: i,
|
|
5418
|
-
className:
|
|
5419
|
-
variants:
|
|
5434
|
+
className: Oh.motionAnimationWrapper,
|
|
5435
|
+
variants: Fh.variants,
|
|
5420
5436
|
initial: "initial",
|
|
5421
5437
|
animate: "show",
|
|
5422
5438
|
exit: "exit",
|
|
5423
5439
|
children: e
|
|
5424
5440
|
}
|
|
5425
5441
|
);
|
|
5426
|
-
},
|
|
5427
|
-
onKeydown: t
|
|
5428
|
-
}) => (Vt(() => (document.addEventListener("keydown", t), () => {
|
|
5429
|
-
document.removeEventListener("keydown", t);
|
|
5430
|
-
}), []), null), Us = ({
|
|
5431
|
-
onMousedown: t
|
|
5432
|
-
}) => (Vt(() => (document.addEventListener("mousedown", t), () => {
|
|
5433
|
-
document.removeEventListener("mousedown", t);
|
|
5434
|
-
}), []), null), Fh = ({
|
|
5435
|
-
onPickerHide: t
|
|
5436
|
-
}) => (Vt(() => () => {
|
|
5437
|
-
t();
|
|
5438
|
-
}, []), null), _h = "acrool-react-picker__root", Bh = "acrool-react-picker__main-el", Ws = {
|
|
5439
|
-
root: _h,
|
|
5440
|
-
"main-el": "acrool-react-picker__main-el",
|
|
5441
|
-
mainEl: Bh
|
|
5442
|
-
}, Ih = (t) => {
|
|
5442
|
+
}, Bh = Gs(_h), Ih = (t) => {
|
|
5443
5443
|
if (!t)
|
|
5444
5444
|
return {
|
|
5445
5445
|
vertical: "bottom",
|
|
@@ -5454,27 +5454,33 @@ const Dh = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
|
|
|
5454
5454
|
function Gh(t, e) {
|
|
5455
5455
|
return (i) => {
|
|
5456
5456
|
const [s, o] = Jt(!1), [r, a] = Jt(!1), [l, u] = Jt(), c = it(null), h = it(null), d = it(l);
|
|
5457
|
-
|
|
5457
|
+
Et(() => {
|
|
5458
5458
|
d.current = l;
|
|
5459
5459
|
}, [l]);
|
|
5460
|
-
const p =
|
|
5461
|
-
[
|
|
5462
|
-
}, []), y =
|
|
5463
|
-
([
|
|
5464
|
-
}, []), P =
|
|
5465
|
-
!c.current && h.current && !h.current.contains(
|
|
5466
|
-
}, []), b =
|
|
5467
|
-
c.current && !c.current.contains(
|
|
5468
|
-
}, []), x =
|
|
5460
|
+
const p = pt((g) => {
|
|
5461
|
+
[jt.Tab].includes(g.key) && (o(!1), a(!1));
|
|
5462
|
+
}, []), y = pt((g) => {
|
|
5463
|
+
([jt.ArrowUp, jt.ArrowDown, jt.Enter].includes(g.key) || g.code === "Space") && o(!0);
|
|
5464
|
+
}, []), P = pt((g) => {
|
|
5465
|
+
!c.current && h.current && !h.current.contains(g.target) && a(!1);
|
|
5466
|
+
}, []), b = pt((g) => {
|
|
5467
|
+
c.current && !c.current.contains(g.target) && h.current && !h.current.contains(g.target) && (o(!1), a(!1));
|
|
5468
|
+
}, []), x = pt(() => {
|
|
5469
|
+
if (typeof i.onChange > "u") {
|
|
5470
|
+
bt.warning("@acrool/react-picker: createPicker component props onChange is undefined, is no call");
|
|
5471
|
+
return;
|
|
5472
|
+
}
|
|
5469
5473
|
d.current && JSON.stringify(l) !== JSON.stringify(d.current) && i.onChange(d.current);
|
|
5470
|
-
}, [l, i.onChange])
|
|
5474
|
+
}, [l, i.onChange]), v = pt((g) => {
|
|
5475
|
+
[jt.Escape].includes(g.key) && s && (g.stopPropagation(), o(!1));
|
|
5476
|
+
}, [s]);
|
|
5471
5477
|
return /* @__PURE__ */ O.jsx(
|
|
5472
5478
|
Rn.Provider,
|
|
5473
5479
|
{
|
|
5474
5480
|
value: {
|
|
5475
5481
|
hide: () => requestAnimationFrame(() => o(!1)),
|
|
5476
5482
|
show: () => o(!0),
|
|
5477
|
-
toggle: () => o((
|
|
5483
|
+
toggle: () => o((g) => !g),
|
|
5478
5484
|
isVisible: s,
|
|
5479
5485
|
inputFocus: () => a(!0),
|
|
5480
5486
|
inputBlur: () => a(!1),
|
|
@@ -5483,16 +5489,16 @@ function Gh(t, e) {
|
|
|
5483
5489
|
onChange: u
|
|
5484
5490
|
},
|
|
5485
5491
|
children: /* @__PURE__ */ O.jsxs("div", { className: Ws.root, children: [
|
|
5486
|
-
/* @__PURE__ */ O.jsx("div", { ref: h, className: Ws.mainEl, children: /* @__PURE__ */ O.jsx(t, { ...i }) }),
|
|
5492
|
+
/* @__PURE__ */ O.jsx("div", { ref: h, className: Ws.mainEl, onKeyDown: v, children: /* @__PURE__ */ O.jsx(t, { ...i }) }),
|
|
5487
5493
|
/* @__PURE__ */ O.jsx(Dh, { children: s && /* @__PURE__ */ O.jsx(
|
|
5488
|
-
|
|
5494
|
+
Bh,
|
|
5489
5495
|
{
|
|
5490
5496
|
ref: c,
|
|
5491
5497
|
position: Ih(h.current),
|
|
5492
5498
|
children: /* @__PURE__ */ O.jsx(e, { ...i })
|
|
5493
5499
|
}
|
|
5494
5500
|
) }),
|
|
5495
|
-
s && /* @__PURE__ */ O.jsx(
|
|
5501
|
+
s && /* @__PURE__ */ O.jsx(Mh, { onPickerHide: x }),
|
|
5496
5502
|
s && /* @__PURE__ */ O.jsx(Us, { onMousedown: b }),
|
|
5497
5503
|
r && /* @__PURE__ */ O.jsx(Us, { onMousedown: P }),
|
|
5498
5504
|
r && /* @__PURE__ */ O.jsx(Ns, { onKeydown: y }),
|
|
@@ -5503,7 +5509,7 @@ function Gh(t, e) {
|
|
|
5503
5509
|
};
|
|
5504
5510
|
}
|
|
5505
5511
|
export {
|
|
5506
|
-
|
|
5512
|
+
jt as EKeyboardKey,
|
|
5507
5513
|
Uh as PickerProviderConsumer,
|
|
5508
5514
|
Rn as PickerProviderContext,
|
|
5509
5515
|
Gh as createPicker,
|