@acrool/react-picker 0.1.0-alpha.6 → 0.1.0-alpha.7
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 +603 -597
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as kn from "react";
|
|
2
|
+
import Ln, { createContext as kt, useContext as K, useLayoutEffect as na, useEffect as ct, useRef as st, useInsertionEffect as Js, useCallback as it, useMemo as Mt, forwardRef as Me, Fragment as Qs, createElement as ia, useId as On, Component as sa, Children as ra, isValidElement as oa, useState as _t } from "react";
|
|
3
3
|
import aa from "react-dom";
|
|
4
4
|
var at = /* @__PURE__ */ ((t) => (t.bottom = "bottom", t.top = "top", t))(at || {}), Jt = /* @__PURE__ */ ((t) => (t.left = "left", t.right = "right", t))(Jt || {});
|
|
5
5
|
const fe = [
|
|
@@ -55,7 +55,7 @@ const gt = {
|
|
|
55
55
|
info: ua,
|
|
56
56
|
warning: fa,
|
|
57
57
|
danger: ha
|
|
58
|
-
},
|
|
58
|
+
}, jn = kt({
|
|
59
59
|
hide: () => gt.warning("No hide method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
60
60
|
show: () => gt.warning("No show method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
61
61
|
toggle: () => gt.warning("No toggle method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
@@ -66,8 +66,8 @@ const gt = {
|
|
|
66
66
|
onChange: () => gt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?"),
|
|
67
67
|
vertical: at.bottom,
|
|
68
68
|
setVertical: () => gt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?")
|
|
69
|
-
}),
|
|
70
|
-
var
|
|
69
|
+
}), fh = jn.Consumer, da = () => K(jn);
|
|
70
|
+
var gn = { exports: {} }, Xt = {};
|
|
71
71
|
/**
|
|
72
72
|
* @license React
|
|
73
73
|
* react-jsx-runtime.production.min.js
|
|
@@ -77,12 +77,12 @@ var yn = { exports: {} }, Xt = {};
|
|
|
77
77
|
* This source code is licensed under the MIT license found in the
|
|
78
78
|
* LICENSE file in the root directory of this source tree.
|
|
79
79
|
*/
|
|
80
|
-
var
|
|
80
|
+
var Di;
|
|
81
81
|
function pa() {
|
|
82
|
-
if (
|
|
82
|
+
if (Di)
|
|
83
83
|
return Xt;
|
|
84
|
-
|
|
85
|
-
var t =
|
|
84
|
+
Di = 1;
|
|
85
|
+
var t = Ln, 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 };
|
|
86
86
|
function r(a, l, c) {
|
|
87
87
|
var u, f = {}, d = null, p = null;
|
|
88
88
|
c !== void 0 && (d = "" + c), l.key !== void 0 && (d = "" + l.key), l.ref !== void 0 && (p = l.ref);
|
|
@@ -105,10 +105,10 @@ var qt = {};
|
|
|
105
105
|
* This source code is licensed under the MIT license found in the
|
|
106
106
|
* LICENSE file in the root directory of this source tree.
|
|
107
107
|
*/
|
|
108
|
-
var
|
|
108
|
+
var Mi;
|
|
109
109
|
function ma() {
|
|
110
|
-
return
|
|
111
|
-
var t =
|
|
110
|
+
return Mi || (Mi = 1, process.env.NODE_ENV !== "production" && function() {
|
|
111
|
+
var t = Ln, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), r = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.iterator, x = "@@iterator";
|
|
112
112
|
function T(h) {
|
|
113
113
|
if (h === null || typeof h != "object")
|
|
114
114
|
return null;
|
|
@@ -125,29 +125,29 @@ function ma() {
|
|
|
125
125
|
}
|
|
126
126
|
function v(h, g, b) {
|
|
127
127
|
{
|
|
128
|
-
var C = P.ReactDebugCurrentFrame,
|
|
129
|
-
|
|
128
|
+
var C = P.ReactDebugCurrentFrame, k = C.getStackAddendum();
|
|
129
|
+
k !== "" && (g += "%s", b = b.concat([k]));
|
|
130
130
|
var O = b.map(function(E) {
|
|
131
131
|
return String(E);
|
|
132
132
|
});
|
|
133
133
|
O.unshift("Warning: " + g), Function.prototype.apply.call(console[h], console, O);
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
var w = !1, A = !1, j = !1, q = !1, R = !1,
|
|
137
|
-
|
|
138
|
-
function
|
|
136
|
+
var w = !1, A = !1, j = !1, q = !1, R = !1, W;
|
|
137
|
+
W = Symbol.for("react.module.reference");
|
|
138
|
+
function H(h) {
|
|
139
139
|
return !!(typeof h == "string" || typeof h == "function" || h === i || h === o || R || h === s || h === c || h === u || q || h === p || w || A || j || typeof h == "object" && h !== null && (h.$$typeof === d || h.$$typeof === f || h.$$typeof === r || h.$$typeof === a || h.$$typeof === l || // This needs to include all possible module reference object
|
|
140
140
|
// types supported by any Flight configuration anywhere since
|
|
141
141
|
// we don't know which Flight build this will end up being used
|
|
142
142
|
// with.
|
|
143
|
-
h.$$typeof ===
|
|
143
|
+
h.$$typeof === W || h.getModuleId !== void 0));
|
|
144
144
|
}
|
|
145
145
|
function rt(h, g, b) {
|
|
146
146
|
var C = h.displayName;
|
|
147
147
|
if (C)
|
|
148
148
|
return C;
|
|
149
|
-
var
|
|
150
|
-
return
|
|
149
|
+
var k = g.displayName || g.name || "";
|
|
150
|
+
return k !== "" ? b + "(" + k + ")" : b;
|
|
151
151
|
}
|
|
152
152
|
function wt(h) {
|
|
153
153
|
return h.displayName || "Context";
|
|
@@ -187,7 +187,7 @@ function ma() {
|
|
|
187
187
|
var C = h.displayName || null;
|
|
188
188
|
return C !== null ? C : Z(h.type) || "Memo";
|
|
189
189
|
case d: {
|
|
190
|
-
var
|
|
190
|
+
var k = h, O = k._payload, E = k._init;
|
|
191
191
|
try {
|
|
192
192
|
return Z(E(O));
|
|
193
193
|
} catch {
|
|
@@ -197,18 +197,18 @@ function ma() {
|
|
|
197
197
|
}
|
|
198
198
|
return null;
|
|
199
199
|
}
|
|
200
|
-
var M = Object.assign,
|
|
201
|
-
function
|
|
200
|
+
var M = Object.assign, D = 0, U, Lt, Ot, fi, hi, di, pi;
|
|
201
|
+
function mi() {
|
|
202
202
|
}
|
|
203
|
-
|
|
203
|
+
mi.__reactDisabledLog = !0;
|
|
204
204
|
function Eo() {
|
|
205
205
|
{
|
|
206
|
-
if (
|
|
207
|
-
|
|
206
|
+
if (D === 0) {
|
|
207
|
+
U = console.log, Lt = console.info, Ot = console.warn, fi = console.error, hi = console.group, di = console.groupCollapsed, pi = console.groupEnd;
|
|
208
208
|
var h = {
|
|
209
209
|
configurable: !0,
|
|
210
210
|
enumerable: !0,
|
|
211
|
-
value:
|
|
211
|
+
value: mi,
|
|
212
212
|
writable: !0
|
|
213
213
|
};
|
|
214
214
|
Object.defineProperties(console, {
|
|
@@ -221,12 +221,12 @@ function ma() {
|
|
|
221
221
|
groupEnd: h
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
|
-
|
|
224
|
+
D++;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
function Do() {
|
|
228
228
|
{
|
|
229
|
-
if (
|
|
229
|
+
if (D--, D === 0) {
|
|
230
230
|
var h = {
|
|
231
231
|
configurable: !0,
|
|
232
232
|
enumerable: !0,
|
|
@@ -234,7 +234,7 @@ function ma() {
|
|
|
234
234
|
};
|
|
235
235
|
Object.defineProperties(console, {
|
|
236
236
|
log: M({}, h, {
|
|
237
|
-
value:
|
|
237
|
+
value: U
|
|
238
238
|
}),
|
|
239
239
|
info: M({}, h, {
|
|
240
240
|
value: Lt
|
|
@@ -243,20 +243,20 @@ function ma() {
|
|
|
243
243
|
value: Ot
|
|
244
244
|
}),
|
|
245
245
|
error: M({}, h, {
|
|
246
|
-
value:
|
|
246
|
+
value: fi
|
|
247
247
|
}),
|
|
248
248
|
group: M({}, h, {
|
|
249
|
-
value:
|
|
249
|
+
value: hi
|
|
250
250
|
}),
|
|
251
251
|
groupCollapsed: M({}, h, {
|
|
252
|
-
value:
|
|
252
|
+
value: di
|
|
253
253
|
}),
|
|
254
254
|
groupEnd: M({}, h, {
|
|
255
|
-
value:
|
|
255
|
+
value: pi
|
|
256
256
|
})
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
|
-
|
|
259
|
+
D < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
var ze = P.ReactCurrentDispatcher, Ye;
|
|
@@ -265,8 +265,8 @@ function ma() {
|
|
|
265
265
|
if (Ye === void 0)
|
|
266
266
|
try {
|
|
267
267
|
throw Error();
|
|
268
|
-
} catch (
|
|
269
|
-
var C =
|
|
268
|
+
} catch (k) {
|
|
269
|
+
var C = k.stack.trim().match(/\n( *(at )?)/);
|
|
270
270
|
Ye = C && C[1] || "";
|
|
271
271
|
}
|
|
272
272
|
return `
|
|
@@ -278,7 +278,7 @@ function ma() {
|
|
|
278
278
|
var Mo = typeof WeakMap == "function" ? WeakMap : Map;
|
|
279
279
|
Pe = new Mo();
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function gi(h, g) {
|
|
282
282
|
if (!h || Xe)
|
|
283
283
|
return "";
|
|
284
284
|
{
|
|
@@ -288,7 +288,7 @@ function ma() {
|
|
|
288
288
|
}
|
|
289
289
|
var C;
|
|
290
290
|
Xe = !0;
|
|
291
|
-
var
|
|
291
|
+
var k = Error.prepareStackTrace;
|
|
292
292
|
Error.prepareStackTrace = void 0;
|
|
293
293
|
var O;
|
|
294
294
|
O = ze.current, ze.current = null, Eo();
|
|
@@ -328,29 +328,29 @@ function ma() {
|
|
|
328
328
|
if (J && C && typeof J.stack == "string") {
|
|
329
329
|
for (var V = J.stack.split(`
|
|
330
330
|
`), X = C.stack.split(`
|
|
331
|
-
`),
|
|
331
|
+
`), B = V.length - 1, N = X.length - 1; B >= 1 && N >= 0 && V[B] !== X[N]; )
|
|
332
332
|
N--;
|
|
333
|
-
for (;
|
|
334
|
-
if (V[
|
|
335
|
-
if (
|
|
333
|
+
for (; B >= 1 && N >= 0; B--, N--)
|
|
334
|
+
if (V[B] !== X[N]) {
|
|
335
|
+
if (B !== 1 || N !== 1)
|
|
336
336
|
do
|
|
337
|
-
if (
|
|
337
|
+
if (B--, N--, N < 0 || V[B] !== X[N]) {
|
|
338
338
|
var tt = `
|
|
339
|
-
` + V[
|
|
339
|
+
` + V[B].replace(" at new ", " at ");
|
|
340
340
|
return h.displayName && tt.includes("<anonymous>") && (tt = tt.replace("<anonymous>", h.displayName)), typeof h == "function" && Pe.set(h, tt), tt;
|
|
341
341
|
}
|
|
342
|
-
while (
|
|
342
|
+
while (B >= 1 && N >= 0);
|
|
343
343
|
break;
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
} finally {
|
|
347
|
-
Xe = !1, ze.current = O, Do(), Error.prepareStackTrace =
|
|
347
|
+
Xe = !1, ze.current = O, Do(), Error.prepareStackTrace = k;
|
|
348
348
|
}
|
|
349
349
|
var Ft = h ? h.displayName || h.name : "", St = Ft ? ve(Ft) : "";
|
|
350
350
|
return typeof h == "function" && Pe.set(h, St), St;
|
|
351
351
|
}
|
|
352
352
|
function ko(h, g, b) {
|
|
353
|
-
return
|
|
353
|
+
return gi(h, !1);
|
|
354
354
|
}
|
|
355
355
|
function Lo(h) {
|
|
356
356
|
var g = h.prototype;
|
|
@@ -360,7 +360,7 @@ function ma() {
|
|
|
360
360
|
if (h == null)
|
|
361
361
|
return "";
|
|
362
362
|
if (typeof h == "function")
|
|
363
|
-
return
|
|
363
|
+
return gi(h, Lo(h));
|
|
364
364
|
if (typeof h == "string")
|
|
365
365
|
return ve(h);
|
|
366
366
|
switch (h) {
|
|
@@ -376,24 +376,24 @@ function ma() {
|
|
|
376
376
|
case f:
|
|
377
377
|
return xe(h.type, g, b);
|
|
378
378
|
case d: {
|
|
379
|
-
var C = h,
|
|
379
|
+
var C = h, k = C._payload, O = C._init;
|
|
380
380
|
try {
|
|
381
|
-
return xe(O(
|
|
381
|
+
return xe(O(k), g, b);
|
|
382
382
|
} catch {
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
return "";
|
|
387
387
|
}
|
|
388
|
-
var zt = Object.prototype.hasOwnProperty,
|
|
388
|
+
var zt = Object.prototype.hasOwnProperty, yi = {}, vi = P.ReactDebugCurrentFrame;
|
|
389
389
|
function Te(h) {
|
|
390
390
|
if (h) {
|
|
391
391
|
var g = h._owner, b = xe(h.type, h._source, g ? g.type : null);
|
|
392
|
-
|
|
392
|
+
vi.setExtraStackFrame(b);
|
|
393
393
|
} else
|
|
394
|
-
|
|
394
|
+
vi.setExtraStackFrame(null);
|
|
395
395
|
}
|
|
396
|
-
function Oo(h, g, b, C,
|
|
396
|
+
function Oo(h, g, b, C, k) {
|
|
397
397
|
{
|
|
398
398
|
var O = Function.call.bind(zt);
|
|
399
399
|
for (var E in h)
|
|
@@ -405,10 +405,10 @@ function ma() {
|
|
|
405
405
|
throw X.name = "Invariant Violation", X;
|
|
406
406
|
}
|
|
407
407
|
V = h[E](g, E, C, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
408
|
-
} catch (
|
|
409
|
-
V =
|
|
408
|
+
} catch (B) {
|
|
409
|
+
V = B;
|
|
410
410
|
}
|
|
411
|
-
V && !(V instanceof Error) && (Te(
|
|
411
|
+
V && !(V instanceof Error) && (Te(k), y("%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).", C || "React class", b, E, typeof V), Te(null)), V instanceof Error && !(V.message in yi) && (yi[V.message] = !0, Te(k), y("Failed %s type: %s", b, V.message), Te(null));
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
}
|
|
@@ -424,24 +424,24 @@ function ma() {
|
|
|
424
424
|
}
|
|
425
425
|
function _o(h) {
|
|
426
426
|
try {
|
|
427
|
-
return
|
|
427
|
+
return Pi(h), !1;
|
|
428
428
|
} catch {
|
|
429
429
|
return !0;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Pi(h) {
|
|
433
433
|
return "" + h;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function xi(h) {
|
|
436
436
|
if (_o(h))
|
|
437
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Fo(h)),
|
|
437
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Fo(h)), Pi(h);
|
|
438
438
|
}
|
|
439
439
|
var Yt = P.ReactCurrentOwner, Bo = {
|
|
440
440
|
key: !0,
|
|
441
441
|
ref: !0,
|
|
442
442
|
__self: !0,
|
|
443
443
|
__source: !0
|
|
444
|
-
},
|
|
444
|
+
}, Ti, bi, Ze;
|
|
445
445
|
Ze = {};
|
|
446
446
|
function Io(h) {
|
|
447
447
|
if (zt.call(h, "ref")) {
|
|
@@ -468,7 +468,7 @@ function ma() {
|
|
|
468
468
|
function Wo(h, g) {
|
|
469
469
|
{
|
|
470
470
|
var b = function() {
|
|
471
|
-
|
|
471
|
+
Ti || (Ti = !0, y("%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)", g));
|
|
472
472
|
};
|
|
473
473
|
b.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
474
474
|
get: b,
|
|
@@ -479,7 +479,7 @@ function ma() {
|
|
|
479
479
|
function $o(h, g) {
|
|
480
480
|
{
|
|
481
481
|
var b = function() {
|
|
482
|
-
|
|
482
|
+
bi || (bi = !0, y("%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)", g));
|
|
483
483
|
};
|
|
484
484
|
b.isReactWarning = !0, Object.defineProperty(h, "ref", {
|
|
485
485
|
get: b,
|
|
@@ -487,7 +487,7 @@ function ma() {
|
|
|
487
487
|
});
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
var Ko = function(h, g, b, C,
|
|
490
|
+
var Ko = function(h, g, b, C, k, O, E) {
|
|
491
491
|
var V = {
|
|
492
492
|
// This tag allows us to uniquely identify this as a React Element
|
|
493
493
|
$$typeof: e,
|
|
@@ -513,41 +513,41 @@ function ma() {
|
|
|
513
513
|
configurable: !1,
|
|
514
514
|
enumerable: !1,
|
|
515
515
|
writable: !1,
|
|
516
|
-
value:
|
|
516
|
+
value: k
|
|
517
517
|
}), Object.freeze && (Object.freeze(V.props), Object.freeze(V)), V;
|
|
518
518
|
};
|
|
519
|
-
function Go(h, g, b, C,
|
|
519
|
+
function Go(h, g, b, C, k) {
|
|
520
520
|
{
|
|
521
521
|
var O, E = {}, V = null, X = null;
|
|
522
|
-
b !== void 0 && (
|
|
522
|
+
b !== void 0 && (xi(b), V = "" + b), No(g) && (xi(g.key), V = "" + g.key), Io(g) && (X = g.ref, Uo(g, k));
|
|
523
523
|
for (O in g)
|
|
524
524
|
zt.call(g, O) && !Bo.hasOwnProperty(O) && (E[O] = g[O]);
|
|
525
525
|
if (h && h.defaultProps) {
|
|
526
|
-
var
|
|
527
|
-
for (O in
|
|
528
|
-
E[O] === void 0 && (E[O] =
|
|
526
|
+
var B = h.defaultProps;
|
|
527
|
+
for (O in B)
|
|
528
|
+
E[O] === void 0 && (E[O] = B[O]);
|
|
529
529
|
}
|
|
530
530
|
if (V || X) {
|
|
531
531
|
var N = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
|
|
532
532
|
V && Wo(E, N), X && $o(E, N);
|
|
533
533
|
}
|
|
534
|
-
return Ko(h, V, X,
|
|
534
|
+
return Ko(h, V, X, k, C, Yt.current, E);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
var Je = P.ReactCurrentOwner,
|
|
537
|
+
var Je = P.ReactCurrentOwner, wi = P.ReactDebugCurrentFrame;
|
|
538
538
|
function jt(h) {
|
|
539
539
|
if (h) {
|
|
540
540
|
var g = h._owner, b = xe(h.type, h._source, g ? g.type : null);
|
|
541
|
-
|
|
541
|
+
wi.setExtraStackFrame(b);
|
|
542
542
|
} else
|
|
543
|
-
|
|
543
|
+
wi.setExtraStackFrame(null);
|
|
544
544
|
}
|
|
545
545
|
var Qe;
|
|
546
546
|
Qe = !1;
|
|
547
547
|
function tn(h) {
|
|
548
548
|
return typeof h == "object" && h !== null && h.$$typeof === e;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Si() {
|
|
551
551
|
{
|
|
552
552
|
if (Je.current) {
|
|
553
553
|
var h = Z(Je.current.type);
|
|
@@ -570,10 +570,10 @@ Check your code at ` + g + ":" + b + ".";
|
|
|
570
570
|
return "";
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
var
|
|
573
|
+
var Ci = {};
|
|
574
574
|
function zo(h) {
|
|
575
575
|
{
|
|
576
|
-
var g =
|
|
576
|
+
var g = Si();
|
|
577
577
|
if (!g) {
|
|
578
578
|
var b = typeof h == "string" ? h : h.displayName || h.name;
|
|
579
579
|
b && (g = `
|
|
@@ -583,35 +583,35 @@ Check the top-level render call using <` + b + ">.");
|
|
|
583
583
|
return g;
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function Ai(h, g) {
|
|
587
587
|
{
|
|
588
588
|
if (!h._store || h._store.validated || h.key != null)
|
|
589
589
|
return;
|
|
590
590
|
h._store.validated = !0;
|
|
591
591
|
var b = zo(g);
|
|
592
|
-
if (
|
|
592
|
+
if (Ci[b])
|
|
593
593
|
return;
|
|
594
|
-
|
|
594
|
+
Ci[b] = !0;
|
|
595
595
|
var C = "";
|
|
596
596
|
h && h._owner && h._owner !== Je.current && (C = " It was passed a child from " + Z(h._owner.type) + "."), jt(h), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, C), jt(null);
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function Ri(h, g) {
|
|
600
600
|
{
|
|
601
601
|
if (typeof h != "object")
|
|
602
602
|
return;
|
|
603
603
|
if (qe(h))
|
|
604
604
|
for (var b = 0; b < h.length; b++) {
|
|
605
605
|
var C = h[b];
|
|
606
|
-
tn(C) &&
|
|
606
|
+
tn(C) && Ai(C, g);
|
|
607
607
|
}
|
|
608
608
|
else if (tn(h))
|
|
609
609
|
h._store && (h._store.validated = !0);
|
|
610
610
|
else if (h) {
|
|
611
|
-
var
|
|
612
|
-
if (typeof
|
|
613
|
-
for (var O =
|
|
614
|
-
tn(E.value) &&
|
|
611
|
+
var k = T(h);
|
|
612
|
+
if (typeof k == "function" && k !== h.entries)
|
|
613
|
+
for (var O = k.call(h), E; !(E = O.next()).done; )
|
|
614
|
+
tn(E.value) && Ai(E.value, g);
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
}
|
|
@@ -634,8 +634,8 @@ Check the top-level render call using <` + b + ">.");
|
|
|
634
634
|
Oo(b, h.props, "prop", C, h);
|
|
635
635
|
} else if (g.PropTypes !== void 0 && !Qe) {
|
|
636
636
|
Qe = !0;
|
|
637
|
-
var
|
|
638
|
-
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
637
|
+
var k = Z(g);
|
|
638
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
|
|
639
639
|
}
|
|
640
640
|
typeof g.getDefaultProps == "function" && !g.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
641
641
|
}
|
|
@@ -652,19 +652,19 @@ Check the top-level render call using <` + b + ">.");
|
|
|
652
652
|
h.ref !== null && (jt(h), y("Invalid attribute `ref` supplied to `React.Fragment`."), jt(null));
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
|
-
var
|
|
656
|
-
function
|
|
655
|
+
var Vi = {};
|
|
656
|
+
function Ei(h, g, b, C, k, O) {
|
|
657
657
|
{
|
|
658
|
-
var E =
|
|
658
|
+
var E = H(h);
|
|
659
659
|
if (!E) {
|
|
660
660
|
var V = "";
|
|
661
661
|
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (V += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
662
|
-
var X = Ho(
|
|
663
|
-
X ? V += X : V +=
|
|
664
|
-
var
|
|
665
|
-
h === null ?
|
|
662
|
+
var X = Ho(k);
|
|
663
|
+
X ? V += X : V += Si();
|
|
664
|
+
var B;
|
|
665
|
+
h === null ? B = "null" : qe(h) ? B = "array" : h !== void 0 && h.$$typeof === e ? (B = "<" + (Z(h.type) || "Unknown") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : B = typeof h, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", B, V);
|
|
666
666
|
}
|
|
667
|
-
var N = Go(h, g, b,
|
|
667
|
+
var N = Go(h, g, b, k, O);
|
|
668
668
|
if (N == null)
|
|
669
669
|
return N;
|
|
670
670
|
if (E) {
|
|
@@ -673,45 +673,45 @@ Check the top-level render call using <` + b + ">.");
|
|
|
673
673
|
if (C)
|
|
674
674
|
if (qe(tt)) {
|
|
675
675
|
for (var Ft = 0; Ft < tt.length; Ft++)
|
|
676
|
-
|
|
676
|
+
Ri(tt[Ft], h);
|
|
677
677
|
Object.freeze && Object.freeze(tt);
|
|
678
678
|
} else
|
|
679
679
|
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
680
680
|
else
|
|
681
|
-
|
|
681
|
+
Ri(tt, h);
|
|
682
682
|
}
|
|
683
683
|
if (zt.call(g, "key")) {
|
|
684
684
|
var St = Z(h), J = Object.keys(g).filter(function(ea) {
|
|
685
685
|
return ea !== "key";
|
|
686
686
|
}), en = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
687
|
-
if (!
|
|
687
|
+
if (!Vi[St + en]) {
|
|
688
688
|
var ta = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
|
|
689
689
|
y(`A props object containing a "key" prop is being spread into JSX:
|
|
690
690
|
let props = %s;
|
|
691
691
|
<%s {...props} />
|
|
692
692
|
React keys must be passed directly to JSX without using spread:
|
|
693
693
|
let props = %s;
|
|
694
|
-
<%s key={someKey} {...props} />`, en, St, ta, St),
|
|
694
|
+
<%s key={someKey} {...props} />`, en, St, ta, St), Vi[St + en] = !0;
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
return h === i ? Xo(N) : Yo(N), N;
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
function qo(h, g, b) {
|
|
701
|
-
return
|
|
701
|
+
return Ei(h, g, b, !0);
|
|
702
702
|
}
|
|
703
703
|
function Zo(h, g, b) {
|
|
704
|
-
return
|
|
704
|
+
return Ei(h, g, b, !1);
|
|
705
705
|
}
|
|
706
706
|
var Jo = Zo, Qo = qo;
|
|
707
707
|
qt.Fragment = i, qt.jsx = Jo, qt.jsxs = Qo;
|
|
708
708
|
}()), qt;
|
|
709
709
|
}
|
|
710
|
-
process.env.NODE_ENV === "production" ?
|
|
711
|
-
var
|
|
712
|
-
class tr extends
|
|
710
|
+
process.env.NODE_ENV === "production" ? gn.exports = pa() : gn.exports = ma();
|
|
711
|
+
var _ = gn.exports, ga = Object.defineProperty, ya = (t, e, n) => e in t ? ga(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, yn = (t, e, n) => (ya(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
712
|
+
class tr extends Ln.Component {
|
|
713
713
|
constructor(e) {
|
|
714
|
-
super(e),
|
|
714
|
+
super(e), yn(this, "_el"), yn(this, "renderPortal", () => aa.createPortal(
|
|
715
715
|
this.props.children,
|
|
716
716
|
this._el
|
|
717
717
|
));
|
|
@@ -733,14 +733,14 @@ class tr extends On.Component {
|
|
|
733
733
|
return this.renderPortal();
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
|
-
|
|
736
|
+
yn(tr, "defaultProps", {
|
|
737
737
|
containerSelector: () => document.body
|
|
738
738
|
});
|
|
739
|
-
const
|
|
739
|
+
const Fn = kt({
|
|
740
740
|
transformPagePoint: (t) => t,
|
|
741
741
|
isStatic: !1,
|
|
742
742
|
reducedMotion: "never"
|
|
743
|
-
}), Be = kt({}), Ie = kt(null),
|
|
743
|
+
}), Be = kt({}), Ie = kt(null), _n = typeof window < "u", er = _n ? na : ct, nr = kt({ strict: !1 }), Ne = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), va = "framerAppearId", ir = "data-" + Ne(va), Pa = {
|
|
744
744
|
skipAnimations: !1,
|
|
745
745
|
useManualTiming: !1
|
|
746
746
|
};
|
|
@@ -816,14 +816,14 @@ function sr(t, e) {
|
|
|
816
816
|
r[be[y]].cancel(P);
|
|
817
817
|
}, state: s, steps: r };
|
|
818
818
|
}
|
|
819
|
-
const { schedule:
|
|
819
|
+
const { schedule: Bn, cancel: hh } = sr(queueMicrotask, !1);
|
|
820
820
|
function Bt(t) {
|
|
821
821
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
822
822
|
}
|
|
823
823
|
const rr = kt({});
|
|
824
|
-
let
|
|
824
|
+
let ki = !1;
|
|
825
825
|
function ba(t, e, n, i, s) {
|
|
826
|
-
const { visualElement: o } =
|
|
826
|
+
const { visualElement: o } = K(Be), r = K(nr), a = K(Ie), l = K(Fn).reducedMotion, c = st();
|
|
827
827
|
i = i || r.renderer, !c.current && i && (c.current = i(t, {
|
|
828
828
|
visualState: e,
|
|
829
829
|
parent: o,
|
|
@@ -832,15 +832,15 @@ function ba(t, e, n, i, s) {
|
|
|
832
832
|
blockInitialAnimation: a ? a.initial === !1 : !1,
|
|
833
833
|
reducedMotionConfig: l
|
|
834
834
|
}));
|
|
835
|
-
const u = c.current, f =
|
|
835
|
+
const u = c.current, f = K(rr);
|
|
836
836
|
u && !u.projection && s && (u.type === "html" || u.type === "svg") && Sa(c.current, n, s, f), Js(() => {
|
|
837
837
|
u && u.update(n, a);
|
|
838
838
|
});
|
|
839
839
|
const d = st(!!(n[ir] && !window.HandoffComplete));
|
|
840
840
|
return er(() => {
|
|
841
|
-
u && (u.updateFeatures(),
|
|
841
|
+
u && (u.updateFeatures(), Bn.render(u.render), d.current && u.animationState && u.animationState.animateChanges());
|
|
842
842
|
}), ct(() => {
|
|
843
|
-
u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1,
|
|
843
|
+
u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, ki || (ki = !0, queueMicrotask(wa))));
|
|
844
844
|
}), u;
|
|
845
845
|
}
|
|
846
846
|
function wa() {
|
|
@@ -889,7 +889,7 @@ function oe(t) {
|
|
|
889
889
|
function ae(t) {
|
|
890
890
|
return t !== null && typeof t == "object" && typeof t.start == "function";
|
|
891
891
|
}
|
|
892
|
-
const
|
|
892
|
+
const In = [
|
|
893
893
|
"animate",
|
|
894
894
|
"whileInView",
|
|
895
895
|
"whileFocus",
|
|
@@ -897,9 +897,9 @@ const Nn = [
|
|
|
897
897
|
"whileTap",
|
|
898
898
|
"whileDrag",
|
|
899
899
|
"exit"
|
|
900
|
-
],
|
|
900
|
+
], Nn = ["initial", ...In];
|
|
901
901
|
function Ue(t) {
|
|
902
|
-
return ae(t.animate) ||
|
|
902
|
+
return ae(t.animate) || Nn.some((e) => oe(t[e]));
|
|
903
903
|
}
|
|
904
904
|
function ar(t) {
|
|
905
905
|
return !!(Ue(t) || t.variants);
|
|
@@ -915,13 +915,13 @@ function Aa(t, e) {
|
|
|
915
915
|
return t.inherit !== !1 ? e : {};
|
|
916
916
|
}
|
|
917
917
|
function Ra(t) {
|
|
918
|
-
const { initial: e, animate: n } = Aa(t,
|
|
919
|
-
return Mt(() => ({ initial: e, animate: n }), [
|
|
918
|
+
const { initial: e, animate: n } = Aa(t, K(Be));
|
|
919
|
+
return Mt(() => ({ initial: e, animate: n }), [Li(e), Li(n)]);
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function Li(t) {
|
|
922
922
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
923
923
|
}
|
|
924
|
-
const
|
|
924
|
+
const Oi = {
|
|
925
925
|
animation: [
|
|
926
926
|
"animate",
|
|
927
927
|
"variants",
|
|
@@ -941,9 +941,9 @@ const ji = {
|
|
|
941
941
|
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
942
942
|
layout: ["layout", "layoutId"]
|
|
943
943
|
}, $t = {};
|
|
944
|
-
for (const t in
|
|
944
|
+
for (const t in Oi)
|
|
945
945
|
$t[t] = {
|
|
946
|
-
isEnabled: (e) =>
|
|
946
|
+
isEnabled: (e) => Oi[t].some((n) => !!e[n])
|
|
947
947
|
};
|
|
948
948
|
function Va(t) {
|
|
949
949
|
for (const e in t)
|
|
@@ -952,8 +952,8 @@ function Va(t) {
|
|
|
952
952
|
...t[e]
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
|
-
const
|
|
956
|
-
let Gt =
|
|
955
|
+
const Un = kt({}), Ea = Symbol.for("motionComponentSymbol"), G = (t) => t;
|
|
956
|
+
let Gt = G, pt = G;
|
|
957
957
|
process.env.NODE_ENV !== "production" && (Gt = (t, e) => {
|
|
958
958
|
!t && typeof console < "u" && console.warn(e);
|
|
959
959
|
}, pt = (t, e) => {
|
|
@@ -965,26 +965,26 @@ function Da({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
|
|
|
965
965
|
function o(a, l) {
|
|
966
966
|
let c;
|
|
967
967
|
const u = {
|
|
968
|
-
|
|
968
|
+
...K(Fn),
|
|
969
969
|
...a,
|
|
970
970
|
layoutId: Ma(a)
|
|
971
971
|
}, { isStatic: f } = u, d = Ra(a), p = i(a, f);
|
|
972
|
-
if (!f &&
|
|
972
|
+
if (!f && _n) {
|
|
973
973
|
ka(u, t);
|
|
974
974
|
const m = La(u);
|
|
975
975
|
c = m.MeasureLayout, d.visualElement = ba(s, p, u, e, m.ProjectionNode);
|
|
976
976
|
}
|
|
977
|
-
return
|
|
977
|
+
return _.jsxs(Be.Provider, { value: d, children: [c && d.visualElement ? _.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(s, a, Ca(p, d.visualElement, l), p, f, d.visualElement)] });
|
|
978
978
|
}
|
|
979
979
|
const r = Me(o);
|
|
980
980
|
return r[Ea] = s, r;
|
|
981
981
|
}
|
|
982
982
|
function Ma({ layoutId: t }) {
|
|
983
|
-
const e =
|
|
983
|
+
const e = K(Un).id;
|
|
984
984
|
return e && t !== void 0 ? e + "-" + t : t;
|
|
985
985
|
}
|
|
986
986
|
function ka(t, e) {
|
|
987
|
-
const n =
|
|
987
|
+
const n = K(nr).strict;
|
|
988
988
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
|
989
989
|
const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
990
990
|
t.ignoreStrict ? Gt(!1, i) : pt(!1, i);
|
|
@@ -1043,7 +1043,7 @@ const ja = [
|
|
|
1043
1043
|
"use",
|
|
1044
1044
|
"view"
|
|
1045
1045
|
];
|
|
1046
|
-
function
|
|
1046
|
+
function Wn(t) {
|
|
1047
1047
|
return (
|
|
1048
1048
|
/**
|
|
1049
1049
|
* If it's not a string, it's a custom React component. Currently we only support
|
|
@@ -1089,7 +1089,7 @@ const pe = [
|
|
|
1089
1089
|
function lr(t, { layout: e, layoutId: n }) {
|
|
1090
1090
|
return Tt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!ke[t] || t === "opacity");
|
|
1091
1091
|
}
|
|
1092
|
-
const
|
|
1092
|
+
const Y = (t) => !!(t && t.getVelocity), _a = {
|
|
1093
1093
|
x: "translateX",
|
|
1094
1094
|
y: "translateY",
|
|
1095
1095
|
z: "translateZ",
|
|
@@ -1106,7 +1106,7 @@ function Ia(t, e, n) {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
return i = i.trim(), n ? i = n(t, e ? "" : i) : e && (i = "none"), i;
|
|
1108
1108
|
}
|
|
1109
|
-
const cr = (t) => (e) => typeof e == "string" && e.startsWith(t), ur = cr("--"), Na = cr("var(--"),
|
|
1109
|
+
const cr = (t) => (e) => typeof e == "string" && e.startsWith(t), ur = cr("--"), Na = cr("var(--"), $n = (t) => Na(t) ? Ua.test(t.split("/*")[0].trim()) : !1, Ua = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Wa = (t, e) => e && typeof t == "number" ? e.transform(t) : t, Pt = (t, e, n) => n > e ? e : n < t ? t : n, Ht = {
|
|
1110
1110
|
test: (t) => typeof t == "number",
|
|
1111
1111
|
parse: parseFloat,
|
|
1112
1112
|
transform: (t) => t
|
|
@@ -1116,7 +1116,7 @@ const cr = (t) => (e) => typeof e == "string" && e.startsWith(t), ur = cr("--"),
|
|
|
1116
1116
|
}, we = {
|
|
1117
1117
|
...Ht,
|
|
1118
1118
|
default: 1
|
|
1119
|
-
}, ne = (t) => Math.round(t * 1e5) / 1e5,
|
|
1119
|
+
}, ne = (t) => Math.round(t * 1e5) / 1e5, Kn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, $a = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Ka = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
|
|
1120
1120
|
function me(t) {
|
|
1121
1121
|
return typeof t == "string";
|
|
1122
1122
|
}
|
|
@@ -1127,11 +1127,11 @@ const ge = (t) => ({
|
|
|
1127
1127
|
test: (e) => me(e) && e.endsWith(t) && e.split(" ").length === 1,
|
|
1128
1128
|
parse: parseFloat,
|
|
1129
1129
|
transform: (e) => `${e}${t}`
|
|
1130
|
-
}), yt = ge("deg"), ot = ge("%"), S = ge("px"), Ha = ge("vh"), za = ge("vw"),
|
|
1130
|
+
}), yt = ge("deg"), ot = ge("%"), S = ge("px"), Ha = ge("vh"), za = ge("vw"), ji = {
|
|
1131
1131
|
...ot,
|
|
1132
1132
|
parse: (t) => ot.parse(t) / 100,
|
|
1133
1133
|
transform: (t) => ot.transform(t * 100)
|
|
1134
|
-
},
|
|
1134
|
+
}, Fi = {
|
|
1135
1135
|
...Ht,
|
|
1136
1136
|
transform: Math.round
|
|
1137
1137
|
}, fr = {
|
|
@@ -1190,19 +1190,19 @@ const ge = (t) => ({
|
|
|
1190
1190
|
perspective: S,
|
|
1191
1191
|
transformPerspective: S,
|
|
1192
1192
|
opacity: ee,
|
|
1193
|
-
originX:
|
|
1194
|
-
originY:
|
|
1193
|
+
originX: ji,
|
|
1194
|
+
originY: ji,
|
|
1195
1195
|
originZ: S,
|
|
1196
1196
|
// Misc
|
|
1197
|
-
zIndex:
|
|
1197
|
+
zIndex: Fi,
|
|
1198
1198
|
backgroundPositionX: S,
|
|
1199
1199
|
backgroundPositionY: S,
|
|
1200
1200
|
// SVG
|
|
1201
1201
|
fillOpacity: ee,
|
|
1202
1202
|
strokeOpacity: ee,
|
|
1203
|
-
numOctaves:
|
|
1203
|
+
numOctaves: Fi
|
|
1204
1204
|
};
|
|
1205
|
-
function
|
|
1205
|
+
function Gn(t, e, n) {
|
|
1206
1206
|
const { style: i, vars: s, transform: o, transformOrigin: r } = t;
|
|
1207
1207
|
let a = !1, l = !1, c = !0;
|
|
1208
1208
|
for (const u in e) {
|
|
@@ -1224,7 +1224,7 @@ function Hn(t, e, n) {
|
|
|
1224
1224
|
i.transformOrigin = `${u} ${f} ${d}`;
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
|
-
const
|
|
1227
|
+
const Hn = () => ({
|
|
1228
1228
|
style: {},
|
|
1229
1229
|
transform: {},
|
|
1230
1230
|
transformOrigin: {},
|
|
@@ -1232,12 +1232,12 @@ const zn = () => ({
|
|
|
1232
1232
|
});
|
|
1233
1233
|
function hr(t, e, n) {
|
|
1234
1234
|
for (const i in e)
|
|
1235
|
-
!
|
|
1235
|
+
!Y(e[i]) && !lr(i, n) && (t[i] = e[i]);
|
|
1236
1236
|
}
|
|
1237
1237
|
function Ya({ transformTemplate: t }, e) {
|
|
1238
1238
|
return Mt(() => {
|
|
1239
|
-
const n =
|
|
1240
|
-
return
|
|
1239
|
+
const n = Hn();
|
|
1240
|
+
return Gn(n, e, t), Object.assign({}, n.vars, n.style);
|
|
1241
1241
|
}, [e]);
|
|
1242
1242
|
}
|
|
1243
1243
|
function Xa(t, e) {
|
|
@@ -1298,11 +1298,11 @@ function Qa(t, e, n) {
|
|
|
1298
1298
|
t.draggable && s.startsWith("onDrag")) && (i[s] = t[s]);
|
|
1299
1299
|
return i;
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function _i(t, e, n) {
|
|
1302
1302
|
return typeof t == "string" ? t : S.transform(e + n * t);
|
|
1303
1303
|
}
|
|
1304
1304
|
function tl(t, e, n) {
|
|
1305
|
-
const i =
|
|
1305
|
+
const i = _i(e, t.x, t.width), s = _i(n, t.y, t.height);
|
|
1306
1306
|
return `${i} ${s}`;
|
|
1307
1307
|
}
|
|
1308
1308
|
const el = {
|
|
@@ -1319,7 +1319,7 @@ function il(t, e, n = 1, i = 0, s = !0) {
|
|
|
1319
1319
|
const r = S.transform(e), a = S.transform(n);
|
|
1320
1320
|
t[o.array] = `${r} ${a}`;
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function zn(t, {
|
|
1323
1323
|
attrX: e,
|
|
1324
1324
|
attrY: n,
|
|
1325
1325
|
attrScale: i,
|
|
@@ -1331,7 +1331,7 @@ function Yn(t, {
|
|
|
1331
1331
|
// This is object creation, which we try to avoid per-frame.
|
|
1332
1332
|
...c
|
|
1333
1333
|
}, u, f) {
|
|
1334
|
-
if (
|
|
1334
|
+
if (Gn(t, c, f), u) {
|
|
1335
1335
|
t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
|
|
1336
1336
|
return;
|
|
1337
1337
|
}
|
|
@@ -1340,13 +1340,13 @@ function Yn(t, {
|
|
|
1340
1340
|
d.transform && (m && (p.transform = d.transform), delete d.transform), m && (s !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = tl(m, s !== void 0 ? s : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), r !== void 0 && il(d, r, a, l, !1);
|
|
1341
1341
|
}
|
|
1342
1342
|
const pr = () => ({
|
|
1343
|
-
...
|
|
1343
|
+
...Hn(),
|
|
1344
1344
|
attrs: {}
|
|
1345
|
-
}),
|
|
1345
|
+
}), Yn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
|
1346
1346
|
function sl(t, e, n, i) {
|
|
1347
1347
|
const s = Mt(() => {
|
|
1348
1348
|
const o = pr();
|
|
1349
|
-
return
|
|
1349
|
+
return zn(o, e, Yn(i), t.transformTemplate), {
|
|
1350
1350
|
...o.attrs,
|
|
1351
1351
|
style: { ...o.style }
|
|
1352
1352
|
};
|
|
@@ -1359,7 +1359,7 @@ function sl(t, e, n, i) {
|
|
|
1359
1359
|
}
|
|
1360
1360
|
function rl(t = !1) {
|
|
1361
1361
|
return (n, i, s, { latestValues: o }, r) => {
|
|
1362
|
-
const l = (
|
|
1362
|
+
const l = (Wn(n) ? sl : qa)(i, o, r, n), c = Qa(i, typeof n == "string", t), u = n !== Qs ? { ...c, ...l, ref: s } : {}, { children: f } = i, d = Mt(() => Y(f) ? f.get() : f, [f]);
|
|
1363
1363
|
return ia(n, {
|
|
1364
1364
|
...u,
|
|
1365
1365
|
children: d
|
|
@@ -1401,46 +1401,46 @@ function yr(t, e, n, i) {
|
|
|
1401
1401
|
for (const s in e.attrs)
|
|
1402
1402
|
t.setAttribute(gr.has(s) ? s : Ne(s), e.attrs[s]);
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function Xn(t, e, n) {
|
|
1405
1405
|
var i;
|
|
1406
1406
|
const { style: s } = t, o = {};
|
|
1407
1407
|
for (const r in s)
|
|
1408
|
-
(
|
|
1408
|
+
(Y(s[r]) || e.style && Y(e.style[r]) || lr(r, t) || ((i = n == null ? void 0 : n.getValue(r)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[r] = s[r]);
|
|
1409
1409
|
return n && s && typeof s.willChange == "string" && (n.applyWillChange = !1), o;
|
|
1410
1410
|
}
|
|
1411
1411
|
function vr(t, e, n) {
|
|
1412
|
-
const i =
|
|
1412
|
+
const i = Xn(t, e, n);
|
|
1413
1413
|
for (const s in t)
|
|
1414
|
-
if (
|
|
1414
|
+
if (Y(t[s]) || Y(e[s])) {
|
|
1415
1415
|
const o = pe.indexOf(s) !== -1 ? "attr" + s.charAt(0).toUpperCase() + s.substring(1) : s;
|
|
1416
1416
|
i[o] = t[s];
|
|
1417
1417
|
}
|
|
1418
1418
|
return i;
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1420
|
+
function Bi(t) {
|
|
1421
1421
|
const e = [{}, {}];
|
|
1422
1422
|
return t == null || t.values.forEach((n, i) => {
|
|
1423
1423
|
e[0][i] = n.get(), e[1][i] = n.getVelocity();
|
|
1424
1424
|
}), e;
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1426
|
+
function qn(t, e, n, i) {
|
|
1427
1427
|
if (typeof e == "function") {
|
|
1428
|
-
const [s, o] =
|
|
1428
|
+
const [s, o] = Bi(i);
|
|
1429
1429
|
e = e(n !== void 0 ? n : t.custom, s, o);
|
|
1430
1430
|
}
|
|
1431
1431
|
if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
|
|
1432
|
-
const [s, o] =
|
|
1432
|
+
const [s, o] = Bi(i);
|
|
1433
1433
|
e = e(n !== void 0 ? n : t.custom, s, o);
|
|
1434
1434
|
}
|
|
1435
1435
|
return e;
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1437
|
+
function Zn(t) {
|
|
1438
1438
|
const e = st(null);
|
|
1439
1439
|
return e.current === null && (e.current = t()), e.current;
|
|
1440
1440
|
}
|
|
1441
|
-
const
|
|
1441
|
+
const vn = (t) => Array.isArray(t), ol = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), al = (t) => vn(t) ? t[t.length - 1] || 0 : t;
|
|
1442
1442
|
function Re(t) {
|
|
1443
|
-
const e =
|
|
1443
|
+
const e = Y(t) ? t.get() : t;
|
|
1444
1444
|
return ol(e) ? e.toValue() : e;
|
|
1445
1445
|
}
|
|
1446
1446
|
const Pr = /* @__PURE__ */ new Set([
|
|
@@ -1473,17 +1473,17 @@ function ll({ applyWillChange: t = !1, scrapeMotionValuesFromProps: e, createRen
|
|
|
1473
1473
|
return i && (l.mount = (c) => i(s, c, l)), l;
|
|
1474
1474
|
}
|
|
1475
1475
|
const Tr = (t) => (e, n) => {
|
|
1476
|
-
const i =
|
|
1477
|
-
return n ? o() :
|
|
1476
|
+
const i = K(Be), s = K(Ie), o = () => ll(t, e, i, s, n);
|
|
1477
|
+
return n ? o() : Zn(o);
|
|
1478
1478
|
};
|
|
1479
1479
|
function cl(t, e) {
|
|
1480
1480
|
const n = xr(e);
|
|
1481
1481
|
n && We(t, n);
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function Ii(t, e, n) {
|
|
1484
1484
|
const i = Array.isArray(e) ? e : [e];
|
|
1485
1485
|
for (let s = 0; s < i.length; s++) {
|
|
1486
|
-
const o =
|
|
1486
|
+
const o = qn(t, i[s]);
|
|
1487
1487
|
if (o) {
|
|
1488
1488
|
const { transitionEnd: r, transition: a, ...l } = o;
|
|
1489
1489
|
n(l, r);
|
|
@@ -1501,7 +1501,7 @@ function ul(t, e, n, i, s) {
|
|
|
1501
1501
|
let m = n ? n.initial === !1 : !1;
|
|
1502
1502
|
m = m || u === !1;
|
|
1503
1503
|
const x = m ? f : u;
|
|
1504
|
-
return x && typeof x != "boolean" && !ae(x) &&
|
|
1504
|
+
return x && typeof x != "boolean" && !ae(x) && Ii(t, x, (T, P) => {
|
|
1505
1505
|
for (const y in T) {
|
|
1506
1506
|
let v = T[y];
|
|
1507
1507
|
if (Array.isArray(v)) {
|
|
@@ -1512,17 +1512,17 @@ function ul(t, e, n, i, s) {
|
|
|
1512
1512
|
}
|
|
1513
1513
|
for (const y in P)
|
|
1514
1514
|
r[y] = P[y];
|
|
1515
|
-
}), l && (f && u !== !1 && !ae(f) &&
|
|
1515
|
+
}), l && (f && u !== !1 && !ae(f) && Ii(t, f, (T) => {
|
|
1516
1516
|
for (const P in T)
|
|
1517
1517
|
cl(a, P);
|
|
1518
1518
|
}), a.length && (r.willChange = a.join(","))), r;
|
|
1519
1519
|
}
|
|
1520
|
-
const { schedule:
|
|
1520
|
+
const { schedule: L, cancel: mt, state: $, steps: nn } = sr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : G, !0), fl = {
|
|
1521
1521
|
useVisualState: Tr({
|
|
1522
1522
|
scrapeMotionValuesFromProps: vr,
|
|
1523
1523
|
createRenderState: pr,
|
|
1524
1524
|
onMount: (t, e, { renderState: n, latestValues: i }) => {
|
|
1525
|
-
|
|
1525
|
+
L.read(() => {
|
|
1526
1526
|
try {
|
|
1527
1527
|
n.dimensions = typeof e.getBBox == "function" ? e.getBBox() : e.getBoundingClientRect();
|
|
1528
1528
|
} catch {
|
|
@@ -1533,21 +1533,21 @@ const { schedule: k, cancel: mt, state: W, steps: nn } = sr(typeof requestAnimat
|
|
|
1533
1533
|
height: 0
|
|
1534
1534
|
};
|
|
1535
1535
|
}
|
|
1536
|
-
}),
|
|
1537
|
-
|
|
1536
|
+
}), L.render(() => {
|
|
1537
|
+
zn(n, i, Yn(e.tagName), t.transformTemplate), yr(e, n);
|
|
1538
1538
|
});
|
|
1539
1539
|
}
|
|
1540
1540
|
})
|
|
1541
1541
|
}, hl = {
|
|
1542
1542
|
useVisualState: Tr({
|
|
1543
1543
|
applyWillChange: !0,
|
|
1544
|
-
scrapeMotionValuesFromProps:
|
|
1545
|
-
createRenderState:
|
|
1544
|
+
scrapeMotionValuesFromProps: Xn,
|
|
1545
|
+
createRenderState: Hn
|
|
1546
1546
|
})
|
|
1547
1547
|
};
|
|
1548
1548
|
function dl(t, { forwardMotionProps: e = !1 }, n, i) {
|
|
1549
1549
|
return {
|
|
1550
|
-
|
|
1550
|
+
...Wn(t) ? fl : hl,
|
|
1551
1551
|
preloadedFeatures: n,
|
|
1552
1552
|
useRender: rl(e),
|
|
1553
1553
|
createVisualElement: i,
|
|
@@ -1580,15 +1580,15 @@ function wr(t) {
|
|
|
1580
1580
|
return e === null ? (e = t, n) : !1;
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
|
-
const
|
|
1583
|
+
const Ni = wr("dragHorizontal"), Ui = wr("dragVertical");
|
|
1584
1584
|
function Sr(t) {
|
|
1585
1585
|
let e = !1;
|
|
1586
1586
|
if (t === "y")
|
|
1587
|
-
e = Wi();
|
|
1588
|
-
else if (t === "x")
|
|
1589
1587
|
e = Ui();
|
|
1588
|
+
else if (t === "x")
|
|
1589
|
+
e = Ni();
|
|
1590
1590
|
else {
|
|
1591
|
-
const n =
|
|
1591
|
+
const n = Ni(), i = Ui();
|
|
1592
1592
|
n && i ? e = () => {
|
|
1593
1593
|
n(), i();
|
|
1594
1594
|
} : (n && n(), i && i());
|
|
@@ -1606,14 +1606,14 @@ class bt {
|
|
|
1606
1606
|
update() {
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function Wi(t, e) {
|
|
1610
1610
|
const n = e ? "pointerenter" : "pointerleave", i = e ? "onHoverStart" : "onHoverEnd", s = (o, r) => {
|
|
1611
1611
|
if (o.pointerType === "touch" || Cr())
|
|
1612
1612
|
return;
|
|
1613
1613
|
const a = t.getProps();
|
|
1614
1614
|
t.animationState && a.whileHover && t.animationState.setActive("whileHover", e);
|
|
1615
1615
|
const l = a[i];
|
|
1616
|
-
l &&
|
|
1616
|
+
l && L.postRender(() => l(o, r));
|
|
1617
1617
|
};
|
|
1618
1618
|
return ut(t.current, n, s, {
|
|
1619
1619
|
passive: !t.getProps()[i]
|
|
@@ -1621,7 +1621,7 @@ function $i(t, e) {
|
|
|
1621
1621
|
}
|
|
1622
1622
|
class gl extends bt {
|
|
1623
1623
|
mount() {
|
|
1624
|
-
this.unmount = ft(
|
|
1624
|
+
this.unmount = ft(Wi(this.node, !0), Wi(this.node, !1));
|
|
1625
1625
|
}
|
|
1626
1626
|
unmount() {
|
|
1627
1627
|
}
|
|
@@ -1657,7 +1657,7 @@ function sn(t, e) {
|
|
|
1657
1657
|
}
|
|
1658
1658
|
class vl extends bt {
|
|
1659
1659
|
constructor() {
|
|
1660
|
-
super(...arguments), this.removeStartListeners =
|
|
1660
|
+
super(...arguments), this.removeStartListeners = G, this.removeEndListeners = G, this.removeAccessibleListeners = G, this.startPointerPress = (e, n) => {
|
|
1661
1661
|
if (this.isPressing)
|
|
1662
1662
|
return;
|
|
1663
1663
|
this.removeEndListeners();
|
|
@@ -1665,7 +1665,7 @@ class vl extends bt {
|
|
|
1665
1665
|
if (!this.checkPressEnd())
|
|
1666
1666
|
return;
|
|
1667
1667
|
const { onTap: c, onTapCancel: u, globalTapTarget: f } = this.node.getProps(), d = !f && !Ar(this.node.current, a.target) ? u : c;
|
|
1668
|
-
d &&
|
|
1668
|
+
d && L.update(() => d(a, l));
|
|
1669
1669
|
}, {
|
|
1670
1670
|
passive: !(i.onTap || i.onPointerUp)
|
|
1671
1671
|
}), r = ut(window, "pointercancel", (a, l) => this.cancelPress(a, l), {
|
|
@@ -1679,7 +1679,7 @@ class vl extends bt {
|
|
|
1679
1679
|
const r = (a) => {
|
|
1680
1680
|
a.key !== "Enter" || !this.checkPressEnd() || sn("up", (l, c) => {
|
|
1681
1681
|
const { onTap: u } = this.node.getProps();
|
|
1682
|
-
u &&
|
|
1682
|
+
u && L.postRender(() => u(l, c));
|
|
1683
1683
|
});
|
|
1684
1684
|
};
|
|
1685
1685
|
this.removeEndListeners(), this.removeEndListeners = lt(this.node.current, "keyup", r), sn("down", (a, l) => {
|
|
@@ -1694,7 +1694,7 @@ class vl extends bt {
|
|
|
1694
1694
|
startPress(e, n) {
|
|
1695
1695
|
this.isPressing = !0;
|
|
1696
1696
|
const { onTapStart: i, whileTap: s } = this.node.getProps();
|
|
1697
|
-
s && this.node.animationState && this.node.animationState.setActive("whileTap", !0), i &&
|
|
1697
|
+
s && this.node.animationState && this.node.animationState.setActive("whileTap", !0), i && L.postRender(() => i(e, n));
|
|
1698
1698
|
}
|
|
1699
1699
|
checkPressEnd() {
|
|
1700
1700
|
return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Cr();
|
|
@@ -1703,7 +1703,7 @@ class vl extends bt {
|
|
|
1703
1703
|
if (!this.checkPressEnd())
|
|
1704
1704
|
return;
|
|
1705
1705
|
const { onTapCancel: i } = this.node.getProps();
|
|
1706
|
-
i &&
|
|
1706
|
+
i && L.postRender(() => i(e, n));
|
|
1707
1707
|
}
|
|
1708
1708
|
mount() {
|
|
1709
1709
|
const e = this.node.getProps(), n = ut(e.globalTapTarget ? window : this.node.current, "pointerdown", this.startPointerPress, {
|
|
@@ -1715,8 +1715,8 @@ class vl extends bt {
|
|
|
1715
1715
|
this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
1718
|
-
const
|
|
1719
|
-
const e =
|
|
1718
|
+
const Pn = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), Pl = (t) => {
|
|
1719
|
+
const e = Pn.get(t.target);
|
|
1720
1720
|
e && e(t);
|
|
1721
1721
|
}, xl = (t) => {
|
|
1722
1722
|
t.forEach(Pl);
|
|
@@ -1729,8 +1729,8 @@ function Tl({ root: t, ...e }) {
|
|
|
1729
1729
|
}
|
|
1730
1730
|
function bl(t, e, n) {
|
|
1731
1731
|
const i = Tl(e);
|
|
1732
|
-
return
|
|
1733
|
-
|
|
1732
|
+
return Pn.set(t, n), i.observe(t), () => {
|
|
1733
|
+
Pn.delete(t), i.unobserve(t);
|
|
1734
1734
|
};
|
|
1735
1735
|
}
|
|
1736
1736
|
const wl = {
|
|
@@ -1799,7 +1799,7 @@ function Rr(t, e) {
|
|
|
1799
1799
|
}
|
|
1800
1800
|
function Ge(t, e, n) {
|
|
1801
1801
|
const i = t.getProps();
|
|
1802
|
-
return
|
|
1802
|
+
return qn(i, e, n !== void 0 ? n : i.custom, t);
|
|
1803
1803
|
}
|
|
1804
1804
|
const ht = (t) => t * 1e3, dt = (t) => t / 1e3, Rl = {
|
|
1805
1805
|
type: "spring",
|
|
@@ -1822,7 +1822,7 @@ const ht = (t) => t * 1e3, dt = (t) => t / 1e3, Rl = {
|
|
|
1822
1822
|
function kl({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
|
1823
1823
|
return !!Object.keys(u).length;
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function Jn(t, e) {
|
|
1826
1826
|
return t[e] || t.default || t;
|
|
1827
1827
|
}
|
|
1828
1828
|
const Ll = (t) => t !== null;
|
|
@@ -1835,7 +1835,7 @@ function Ol() {
|
|
|
1835
1835
|
Ve = void 0;
|
|
1836
1836
|
}
|
|
1837
1837
|
const vt = {
|
|
1838
|
-
now: () => (Ve === void 0 && vt.set(
|
|
1838
|
+
now: () => (Ve === void 0 && vt.set($.isProcessing || Pa.useManualTiming ? $.timestamp : performance.now()), Ve),
|
|
1839
1839
|
set: (t) => {
|
|
1840
1840
|
Ve = t, queueMicrotask(Ol);
|
|
1841
1841
|
}
|
|
@@ -1865,7 +1865,7 @@ function Dr(t, e, n = 1) {
|
|
|
1865
1865
|
const r = o.trim();
|
|
1866
1866
|
return Er(r) ? parseFloat(r) : r;
|
|
1867
1867
|
}
|
|
1868
|
-
return
|
|
1868
|
+
return $n(s) ? Dr(s, e, n + 1) : s;
|
|
1869
1869
|
}
|
|
1870
1870
|
const Il = /* @__PURE__ */ new Set([
|
|
1871
1871
|
"width",
|
|
@@ -1878,15 +1878,15 @@ const Il = /* @__PURE__ */ new Set([
|
|
|
1878
1878
|
"y",
|
|
1879
1879
|
"translateX",
|
|
1880
1880
|
"translateY"
|
|
1881
|
-
]),
|
|
1881
|
+
]), $i = (t) => t === Ht || t === S, Ki = (t, e) => parseFloat(t.split(", ")[e]), Gi = (t, e) => (n, { transform: i }) => {
|
|
1882
1882
|
if (i === "none" || !i)
|
|
1883
1883
|
return 0;
|
|
1884
1884
|
const s = i.match(/^matrix3d\((.+)\)$/u);
|
|
1885
1885
|
if (s)
|
|
1886
|
-
return
|
|
1886
|
+
return Ki(s[1], e);
|
|
1887
1887
|
{
|
|
1888
1888
|
const o = i.match(/^matrix\((.+)\)$/u);
|
|
1889
|
-
return o ?
|
|
1889
|
+
return o ? Ki(o[1], t) : 0;
|
|
1890
1890
|
}
|
|
1891
1891
|
}, Nl = /* @__PURE__ */ new Set(["x", "y", "z"]), Ul = pe.filter((t) => !Nl.has(t));
|
|
1892
1892
|
function Wl(t) {
|
|
@@ -1905,18 +1905,18 @@ const Kt = {
|
|
|
1905
1905
|
bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
|
|
1906
1906
|
right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
|
|
1907
1907
|
// Transform
|
|
1908
|
-
x:
|
|
1909
|
-
y:
|
|
1908
|
+
x: Gi(4, 13),
|
|
1909
|
+
y: Gi(5, 14)
|
|
1910
1910
|
};
|
|
1911
1911
|
Kt.translateX = Kt.x;
|
|
1912
1912
|
Kt.translateY = Kt.y;
|
|
1913
1913
|
const Mr = (t) => (e) => e.test(t), $l = {
|
|
1914
1914
|
test: (t) => t === "auto",
|
|
1915
1915
|
parse: (t) => t
|
|
1916
|
-
}, kr = [Ht, S, ot, yt, za, Ha, $l],
|
|
1917
|
-
let
|
|
1916
|
+
}, kr = [Ht, S, ot, yt, za, Ha, $l], Hi = (t) => kr.find(Mr(t)), Dt = /* @__PURE__ */ new Set();
|
|
1917
|
+
let xn = !1, Tn = !1;
|
|
1918
1918
|
function Lr() {
|
|
1919
|
-
if (
|
|
1919
|
+
if (Tn) {
|
|
1920
1920
|
const t = Array.from(Dt).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
|
|
1921
1921
|
e.forEach((i) => {
|
|
1922
1922
|
const s = Wl(i);
|
|
@@ -1932,22 +1932,22 @@ function Lr() {
|
|
|
1932
1932
|
i.suspendedScrollY !== void 0 && window.scrollTo(0, i.suspendedScrollY);
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
1935
|
-
|
|
1935
|
+
Tn = !1, xn = !1, Dt.forEach((t) => t.complete()), Dt.clear();
|
|
1936
1936
|
}
|
|
1937
1937
|
function Or() {
|
|
1938
1938
|
Dt.forEach((t) => {
|
|
1939
|
-
t.readKeyframes(), t.needsMeasurement && (
|
|
1939
|
+
t.readKeyframes(), t.needsMeasurement && (Tn = !0);
|
|
1940
1940
|
});
|
|
1941
1941
|
}
|
|
1942
1942
|
function Kl() {
|
|
1943
1943
|
Or(), Lr();
|
|
1944
1944
|
}
|
|
1945
|
-
class
|
|
1945
|
+
class Qn {
|
|
1946
1946
|
constructor(e, n, i, s, o, r = !1) {
|
|
1947
1947
|
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;
|
|
1948
1948
|
}
|
|
1949
1949
|
scheduleResolve() {
|
|
1950
|
-
this.isScheduled = !0, this.isAsync ? (Dt.add(this),
|
|
1950
|
+
this.isScheduled = !0, this.isAsync ? (Dt.add(this), xn || (xn = !0, L.read(Or), L.resolveKeyframes(Lr))) : (this.readKeyframes(), this.complete());
|
|
1951
1951
|
}
|
|
1952
1952
|
readKeyframes() {
|
|
1953
1953
|
const { unresolvedKeyframes: e, name: n, element: i, motionValue: s } = this;
|
|
@@ -1983,10 +1983,10 @@ class ti {
|
|
|
1983
1983
|
this.isComplete || this.scheduleResolve();
|
|
1984
1984
|
}
|
|
1985
1985
|
}
|
|
1986
|
-
const
|
|
1986
|
+
const ti = (t, e) => (n) => !!(me(n) && Ka.test(n) && n.startsWith(t) || e && !Ga(n) && Object.prototype.hasOwnProperty.call(n, e)), jr = (t, e, n) => (i) => {
|
|
1987
1987
|
if (!me(i))
|
|
1988
1988
|
return i;
|
|
1989
|
-
const [s, o, r, a] = i.match(
|
|
1989
|
+
const [s, o, r, a] = i.match(Kn);
|
|
1990
1990
|
return {
|
|
1991
1991
|
[t]: parseFloat(s),
|
|
1992
1992
|
[e]: parseFloat(o),
|
|
@@ -1997,7 +1997,7 @@ const ei = (t, e) => (n) => !!(me(n) && Ka.test(n) && n.startsWith(t) || e && !G
|
|
|
1997
1997
|
...Ht,
|
|
1998
1998
|
transform: (t) => Math.round(Gl(t))
|
|
1999
1999
|
}, Et = {
|
|
2000
|
-
test:
|
|
2000
|
+
test: ti("rgb", "red"),
|
|
2001
2001
|
parse: jr("red", "green", "blue"),
|
|
2002
2002
|
transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + on.transform(t) + ", " + on.transform(e) + ", " + on.transform(n) + ", " + ne(ee.transform(i)) + ")"
|
|
2003
2003
|
};
|
|
@@ -2010,24 +2010,24 @@ function Hl(t) {
|
|
|
2010
2010
|
alpha: s ? parseInt(s, 16) / 255 : 1
|
|
2011
2011
|
};
|
|
2012
2012
|
}
|
|
2013
|
-
const
|
|
2014
|
-
test:
|
|
2013
|
+
const bn = {
|
|
2014
|
+
test: ti("#"),
|
|
2015
2015
|
parse: Hl,
|
|
2016
2016
|
transform: Et.transform
|
|
2017
2017
|
}, It = {
|
|
2018
|
-
test:
|
|
2018
|
+
test: ti("hsl", "hue"),
|
|
2019
2019
|
parse: jr("hue", "saturation", "lightness"),
|
|
2020
2020
|
transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + ot.transform(ne(e)) + ", " + ot.transform(ne(n)) + ", " + ne(ee.transform(i)) + ")"
|
|
2021
|
-
},
|
|
2022
|
-
test: (t) => Et.test(t) ||
|
|
2023
|
-
parse: (t) => Et.test(t) ? Et.parse(t) : It.test(t) ? It.parse(t) :
|
|
2021
|
+
}, z = {
|
|
2022
|
+
test: (t) => Et.test(t) || bn.test(t) || It.test(t),
|
|
2023
|
+
parse: (t) => Et.test(t) ? Et.parse(t) : It.test(t) ? It.parse(t) : bn.parse(t),
|
|
2024
2024
|
transform: (t) => me(t) ? t : t.hasOwnProperty("red") ? Et.transform(t) : It.transform(t)
|
|
2025
2025
|
};
|
|
2026
2026
|
function zl(t) {
|
|
2027
2027
|
var e, n;
|
|
2028
|
-
return isNaN(t) && me(t) && (((e = t.match(
|
|
2028
|
+
return isNaN(t) && me(t) && (((e = t.match(Kn)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match($a)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
2029
2029
|
}
|
|
2030
|
-
const Fr = "number", _r = "color", Yl = "var", Xl = "var(",
|
|
2030
|
+
const Fr = "number", _r = "color", Yl = "var", Xl = "var(", zi = "${}", ql = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
2031
2031
|
function le(t) {
|
|
2032
2032
|
const e = t.toString(), n = [], i = {
|
|
2033
2033
|
color: [],
|
|
@@ -2035,7 +2035,7 @@ function le(t) {
|
|
|
2035
2035
|
var: []
|
|
2036
2036
|
}, s = [];
|
|
2037
2037
|
let o = 0;
|
|
2038
|
-
const a = e.replace(ql, (l) => (
|
|
2038
|
+
const a = e.replace(ql, (l) => (z.test(l) ? (i.color.push(o), s.push(_r), n.push(z.parse(l))) : l.startsWith(Xl) ? (i.var.push(o), s.push(Yl), n.push(l)) : (i.number.push(o), s.push(Fr), n.push(parseFloat(l))), ++o, zi)).split(zi);
|
|
2039
2039
|
return { values: n, split: a, indexes: i, types: s };
|
|
2040
2040
|
}
|
|
2041
2041
|
function Br(t) {
|
|
@@ -2048,7 +2048,7 @@ function Ir(t) {
|
|
|
2048
2048
|
for (let r = 0; r < i; r++)
|
|
2049
2049
|
if (o += e[r], s[r] !== void 0) {
|
|
2050
2050
|
const a = n[r];
|
|
2051
|
-
a === Fr ? o += ne(s[r]) : a === _r ? o +=
|
|
2051
|
+
a === Fr ? o += ne(s[r]) : a === _r ? o += z.transform(s[r]) : o += s[r];
|
|
2052
2052
|
}
|
|
2053
2053
|
return o;
|
|
2054
2054
|
};
|
|
@@ -2068,14 +2068,14 @@ function tc(t) {
|
|
|
2068
2068
|
const [e, n] = t.slice(0, -1).split("(");
|
|
2069
2069
|
if (e === "drop-shadow")
|
|
2070
2070
|
return t;
|
|
2071
|
-
const [i] = n.match(
|
|
2071
|
+
const [i] = n.match(Kn) || [];
|
|
2072
2072
|
if (!i)
|
|
2073
2073
|
return t;
|
|
2074
2074
|
const s = n.replace(i, "");
|
|
2075
2075
|
let o = Ql.has(e) ? 1 : 0;
|
|
2076
2076
|
return i !== n && (o *= 100), e + "(" + o + s + ")";
|
|
2077
2077
|
}
|
|
2078
|
-
const ec = /\b([a-z-]*)\(.*?\)/gu,
|
|
2078
|
+
const ec = /\b([a-z-]*)\(.*?\)/gu, wn = {
|
|
2079
2079
|
...xt,
|
|
2080
2080
|
getAnimatableNone: (t) => {
|
|
2081
2081
|
const e = t.match(ec);
|
|
@@ -2084,23 +2084,23 @@ const ec = /\b([a-z-]*)\(.*?\)/gu, Sn = {
|
|
|
2084
2084
|
}, nc = {
|
|
2085
2085
|
...fr,
|
|
2086
2086
|
// Color props
|
|
2087
|
-
color:
|
|
2088
|
-
backgroundColor:
|
|
2089
|
-
outlineColor:
|
|
2090
|
-
fill:
|
|
2091
|
-
stroke:
|
|
2087
|
+
color: z,
|
|
2088
|
+
backgroundColor: z,
|
|
2089
|
+
outlineColor: z,
|
|
2090
|
+
fill: z,
|
|
2091
|
+
stroke: z,
|
|
2092
2092
|
// Border props
|
|
2093
|
-
borderColor:
|
|
2094
|
-
borderTopColor:
|
|
2095
|
-
borderRightColor:
|
|
2096
|
-
borderBottomColor:
|
|
2097
|
-
borderLeftColor:
|
|
2098
|
-
filter:
|
|
2099
|
-
WebkitFilter:
|
|
2100
|
-
},
|
|
2093
|
+
borderColor: z,
|
|
2094
|
+
borderTopColor: z,
|
|
2095
|
+
borderRightColor: z,
|
|
2096
|
+
borderBottomColor: z,
|
|
2097
|
+
borderLeftColor: z,
|
|
2098
|
+
filter: wn,
|
|
2099
|
+
WebkitFilter: wn
|
|
2100
|
+
}, ei = (t) => nc[t];
|
|
2101
2101
|
function Nr(t, e) {
|
|
2102
|
-
let n =
|
|
2103
|
-
return n !==
|
|
2102
|
+
let n = ei(t);
|
|
2103
|
+
return n !== wn && (n = xt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
2104
2104
|
}
|
|
2105
2105
|
const ic = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
2106
2106
|
function sc(t, e, n) {
|
|
@@ -2113,7 +2113,7 @@ function sc(t, e, n) {
|
|
|
2113
2113
|
for (const o of e)
|
|
2114
2114
|
t[o] = Nr(n, s);
|
|
2115
2115
|
}
|
|
2116
|
-
class Ur extends
|
|
2116
|
+
class Ur extends Qn {
|
|
2117
2117
|
constructor(e, n, i, s) {
|
|
2118
2118
|
super(e, n, i, s, s == null ? void 0 : s.owner, !0);
|
|
2119
2119
|
}
|
|
@@ -2124,16 +2124,16 @@ class Ur extends ti {
|
|
|
2124
2124
|
super.readKeyframes();
|
|
2125
2125
|
for (let l = 0; l < e.length; l++) {
|
|
2126
2126
|
let c = e[l];
|
|
2127
|
-
if (typeof c == "string" && (c = c.trim(),
|
|
2127
|
+
if (typeof c == "string" && (c = c.trim(), $n(c))) {
|
|
2128
2128
|
const u = Dr(c, n.current);
|
|
2129
2129
|
u !== void 0 && (e[l] = u), l === e.length - 1 && (this.finalKeyframe = c);
|
|
2130
2130
|
}
|
|
2131
2131
|
}
|
|
2132
2132
|
if (this.resolveNoneKeyframes(), !Il.has(i) || e.length !== 2)
|
|
2133
2133
|
return;
|
|
2134
|
-
const [s, o] = e, r =
|
|
2134
|
+
const [s, o] = e, r = Hi(s), a = Hi(o);
|
|
2135
2135
|
if (r !== a)
|
|
2136
|
-
if (
|
|
2136
|
+
if ($i(r) && $i(a))
|
|
2137
2137
|
for (let l = 0; l < e.length; l++) {
|
|
2138
2138
|
const c = e[l];
|
|
2139
2139
|
typeof c == "string" && (e[l] = parseFloat(c));
|
|
@@ -2172,7 +2172,7 @@ function Wr(t) {
|
|
|
2172
2172
|
let e;
|
|
2173
2173
|
return () => (e === void 0 && (e = t()), e);
|
|
2174
2174
|
}
|
|
2175
|
-
const
|
|
2175
|
+
const Yi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
2176
2176
|
(xt.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
2177
2177
|
!t.startsWith("url("));
|
|
2178
2178
|
function rc(t) {
|
|
@@ -2189,7 +2189,7 @@ function oc(t, e, n, i) {
|
|
|
2189
2189
|
return !1;
|
|
2190
2190
|
if (e === "display" || e === "visibility")
|
|
2191
2191
|
return !0;
|
|
2192
|
-
const o = t[t.length - 1], r =
|
|
2192
|
+
const o = t[t.length - 1], r = Yi(s, e), a = Yi(o, e);
|
|
2193
2193
|
return Gt(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 : rc(t) || n === "spring" && i;
|
|
2194
2194
|
}
|
|
2195
2195
|
class $r {
|
|
@@ -2258,16 +2258,16 @@ function Gr(t, e, n) {
|
|
|
2258
2258
|
const i = Math.max(e - ac, 0);
|
|
2259
2259
|
return Kr(n - t(i), e - i);
|
|
2260
2260
|
}
|
|
2261
|
-
const an = 1e-3, lc = 0.01,
|
|
2261
|
+
const an = 1e-3, lc = 0.01, Xi = 10, cc = 0.05, uc = 1;
|
|
2262
2262
|
function fc({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1 }) {
|
|
2263
2263
|
let s, o;
|
|
2264
|
-
Gt(t <= ht(
|
|
2264
|
+
Gt(t <= ht(Xi), "Spring duration must be 10 seconds or less");
|
|
2265
2265
|
let r = 1 - e;
|
|
2266
|
-
r = Pt(cc, uc, r), t = Pt(lc,
|
|
2267
|
-
const u = c * r, f = u * t, d = u - n, p =
|
|
2266
|
+
r = Pt(cc, uc, r), t = Pt(lc, Xi, dt(t)), r < 1 ? (s = (c) => {
|
|
2267
|
+
const u = c * r, f = u * t, d = u - n, p = Sn(c, r), m = Math.exp(-f);
|
|
2268
2268
|
return an - d / p * m;
|
|
2269
2269
|
}, o = (c) => {
|
|
2270
|
-
const f = c * r * t, d = f * n + n, p = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-f), x =
|
|
2270
|
+
const f = c * r * t, d = f * n + n, p = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-f), x = Sn(Math.pow(c, 2), r);
|
|
2271
2271
|
return (-s(c) + an > 0 ? -1 : 1) * ((d - p) * m) / x;
|
|
2272
2272
|
}) : (s = (c) => {
|
|
2273
2273
|
const u = Math.exp(-c * t), f = (c - n) * t + 1;
|
|
@@ -2299,11 +2299,11 @@ function dc(t, e, n) {
|
|
|
2299
2299
|
i = i - t(i) / e(i);
|
|
2300
2300
|
return i;
|
|
2301
2301
|
}
|
|
2302
|
-
function
|
|
2302
|
+
function Sn(t, e) {
|
|
2303
2303
|
return t * Math.sqrt(1 - e * e);
|
|
2304
2304
|
}
|
|
2305
2305
|
const pc = ["duration", "bounce"], mc = ["stiffness", "damping", "mass"];
|
|
2306
|
-
function
|
|
2306
|
+
function qi(t, e) {
|
|
2307
2307
|
return e.some((n) => t[n] !== void 0);
|
|
2308
2308
|
}
|
|
2309
2309
|
function gc(t) {
|
|
@@ -2315,7 +2315,7 @@ function gc(t) {
|
|
|
2315
2315
|
isResolvedFromDuration: !1,
|
|
2316
2316
|
...t
|
|
2317
2317
|
};
|
|
2318
|
-
if (!
|
|
2318
|
+
if (!qi(t, mc) && qi(t, pc)) {
|
|
2319
2319
|
const n = fc(t);
|
|
2320
2320
|
e = {
|
|
2321
2321
|
...e,
|
|
@@ -2333,7 +2333,7 @@ function Hr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
|
|
|
2333
2333
|
n || (n = P ? 0.01 : 2), e || (e = P ? 5e-3 : 0.5);
|
|
2334
2334
|
let y;
|
|
2335
2335
|
if (m < 1) {
|
|
2336
|
-
const v =
|
|
2336
|
+
const v = Sn(T, m);
|
|
2337
2337
|
y = (w) => {
|
|
2338
2338
|
const A = Math.exp(-m * T * w);
|
|
2339
2339
|
return o - A * ((p + m * T * x) / v * Math.sin(v * w) + x * Math.cos(v * w));
|
|
@@ -2363,7 +2363,7 @@ function Hr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
|
|
|
2363
2363
|
}
|
|
2364
2364
|
};
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2366
|
+
function Zi({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
|
|
2367
2367
|
const f = t[0], d = {
|
|
2368
2368
|
done: !1,
|
|
2369
2369
|
value: f
|
|
@@ -2372,8 +2372,8 @@ function Ji({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
2372
2372
|
const T = f + x, P = r === void 0 ? T : r(T);
|
|
2373
2373
|
P !== T && (x = P - f);
|
|
2374
2374
|
const y = (R) => -x * Math.exp(-R / i), v = (R) => P + y(R), w = (R) => {
|
|
2375
|
-
const
|
|
2376
|
-
d.done = Math.abs(
|
|
2375
|
+
const W = y(R), H = v(R);
|
|
2376
|
+
d.done = Math.abs(W) <= c, d.value = d.done ? P : H;
|
|
2377
2377
|
};
|
|
2378
2378
|
let A, j;
|
|
2379
2379
|
const q = (R) => {
|
|
@@ -2390,8 +2390,8 @@ function Ji({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
2390
2390
|
return q(0), {
|
|
2391
2391
|
calculatedDuration: null,
|
|
2392
2392
|
next: (R) => {
|
|
2393
|
-
let
|
|
2394
|
-
return !j && A === void 0 && (
|
|
2393
|
+
let W = !1;
|
|
2394
|
+
return !j && A === void 0 && (W = !0, w(R), q(R)), A !== void 0 && R >= A ? j.next(R - A) : (!W && w(R), d);
|
|
2395
2395
|
}
|
|
2396
2396
|
};
|
|
2397
2397
|
}
|
|
@@ -2405,29 +2405,29 @@ function Pc(t, e, n, i, s) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
function ye(t, e, n, i) {
|
|
2407
2407
|
if (t === e && n === i)
|
|
2408
|
-
return
|
|
2408
|
+
return G;
|
|
2409
2409
|
const s = (o) => Pc(o, 0, 1, t, n);
|
|
2410
2410
|
return (o) => o === 0 || o === 1 ? o : zr(s(o), e, i);
|
|
2411
2411
|
}
|
|
2412
|
-
const xc = ye(0.42, 0, 1, 1), Tc = ye(0, 0, 0.58, 1), Yr = ye(0.42, 0, 0.58, 1), bc = (t) => Array.isArray(t) && typeof t[0] != "number", Xr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, qr = (t) => (e) => 1 - t(1 - e),
|
|
2413
|
-
linear:
|
|
2412
|
+
const xc = ye(0.42, 0, 1, 1), Tc = ye(0, 0, 0.58, 1), Yr = ye(0.42, 0, 0.58, 1), bc = (t) => Array.isArray(t) && typeof t[0] != "number", Xr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, qr = (t) => (e) => 1 - t(1 - e), ni = (t) => 1 - Math.sin(Math.acos(t)), Zr = qr(ni), wc = Xr(ni), Jr = ye(0.33, 1.53, 0.69, 0.99), ii = qr(Jr), Sc = Xr(ii), Cc = (t) => (t *= 2) < 1 ? 0.5 * ii(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Ji = {
|
|
2413
|
+
linear: G,
|
|
2414
2414
|
easeIn: xc,
|
|
2415
2415
|
easeInOut: Yr,
|
|
2416
2416
|
easeOut: Tc,
|
|
2417
|
-
circIn:
|
|
2417
|
+
circIn: ni,
|
|
2418
2418
|
circInOut: wc,
|
|
2419
2419
|
circOut: Zr,
|
|
2420
|
-
backIn:
|
|
2420
|
+
backIn: ii,
|
|
2421
2421
|
backInOut: Sc,
|
|
2422
2422
|
backOut: Jr,
|
|
2423
2423
|
anticipate: Cc
|
|
2424
|
-
},
|
|
2424
|
+
}, Qi = (t) => {
|
|
2425
2425
|
if (Array.isArray(t)) {
|
|
2426
2426
|
pt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
|
2427
2427
|
const [e, n, i, s] = t;
|
|
2428
2428
|
return ye(e, n, i, s);
|
|
2429
2429
|
} else if (typeof t == "string")
|
|
2430
|
-
return pt(
|
|
2430
|
+
return pt(Ji[t] !== void 0, `Invalid easing type '${t}'`), Ji[t];
|
|
2431
2431
|
return t;
|
|
2432
2432
|
}, ce = (t, e, n) => {
|
|
2433
2433
|
const i = e - t;
|
|
@@ -2458,32 +2458,32 @@ function Oe(t, e) {
|
|
|
2458
2458
|
const cn = (t, e, n) => {
|
|
2459
2459
|
const i = t * t, s = n * (e * e - i) + i;
|
|
2460
2460
|
return s < 0 ? 0 : Math.sqrt(s);
|
|
2461
|
-
}, Rc = [
|
|
2462
|
-
function
|
|
2461
|
+
}, Rc = [bn, Et, It], Vc = (t) => Rc.find((e) => e.test(t));
|
|
2462
|
+
function ts(t) {
|
|
2463
2463
|
const e = Vc(t);
|
|
2464
2464
|
if (Gt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
2465
2465
|
return !1;
|
|
2466
2466
|
let n = e.parse(t);
|
|
2467
2467
|
return e === It && (n = Ac(n)), n;
|
|
2468
2468
|
}
|
|
2469
|
-
const
|
|
2470
|
-
const n =
|
|
2469
|
+
const es = (t, e) => {
|
|
2470
|
+
const n = ts(t), i = ts(e);
|
|
2471
2471
|
if (!n || !i)
|
|
2472
2472
|
return Oe(t, e);
|
|
2473
2473
|
const s = { ...n };
|
|
2474
2474
|
return (o) => (s.red = cn(n.red, i.red, o), s.green = cn(n.green, i.green, o), s.blue = cn(n.blue, i.blue, o), s.alpha = F(n.alpha, i.alpha, o), Et.transform(s));
|
|
2475
|
-
},
|
|
2475
|
+
}, Cn = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
2476
2476
|
function Ec(t, e) {
|
|
2477
|
-
return
|
|
2477
|
+
return Cn.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
2478
2478
|
}
|
|
2479
2479
|
function Dc(t, e) {
|
|
2480
2480
|
return (n) => F(t, e, n);
|
|
2481
2481
|
}
|
|
2482
|
-
function
|
|
2483
|
-
return typeof t == "number" ? Dc : typeof t == "string" ?
|
|
2482
|
+
function si(t) {
|
|
2483
|
+
return typeof t == "number" ? Dc : typeof t == "string" ? $n(t) ? Oe : z.test(t) ? es : Lc : Array.isArray(t) ? Qr : typeof t == "object" ? z.test(t) ? es : Mc : Oe;
|
|
2484
2484
|
}
|
|
2485
2485
|
function Qr(t, e) {
|
|
2486
|
-
const n = [...t], i = n.length, s = t.map((o, r) =>
|
|
2486
|
+
const n = [...t], i = n.length, s = t.map((o, r) => si(o)(o, e[r]));
|
|
2487
2487
|
return (o) => {
|
|
2488
2488
|
for (let r = 0; r < i; r++)
|
|
2489
2489
|
n[r] = s[r](o);
|
|
@@ -2493,7 +2493,7 @@ function Qr(t, e) {
|
|
|
2493
2493
|
function Mc(t, e) {
|
|
2494
2494
|
const n = { ...t, ...e }, i = {};
|
|
2495
2495
|
for (const s in n)
|
|
2496
|
-
t[s] !== void 0 && e[s] !== void 0 && (i[s] =
|
|
2496
|
+
t[s] !== void 0 && e[s] !== void 0 && (i[s] = si(t[s])(t[s], e[s]));
|
|
2497
2497
|
return (s) => {
|
|
2498
2498
|
for (const o in i)
|
|
2499
2499
|
n[o] = i[o](s);
|
|
@@ -2511,17 +2511,17 @@ function kc(t, e) {
|
|
|
2511
2511
|
}
|
|
2512
2512
|
const Lc = (t, e) => {
|
|
2513
2513
|
const n = xt.createTransformer(e), i = le(t), s = le(e);
|
|
2514
|
-
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 ?
|
|
2514
|
+
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 ? Cn.has(t) && !s.values.length || Cn.has(e) && !i.values.length ? Ec(t, e) : ft(Qr(kc(i, s), s.values), n) : (Gt(!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.`), Oe(t, e));
|
|
2515
2515
|
};
|
|
2516
2516
|
function to(t, e, n) {
|
|
2517
|
-
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? F(t, e, n) :
|
|
2517
|
+
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? F(t, e, n) : si(t)(t, e);
|
|
2518
2518
|
}
|
|
2519
2519
|
function Oc(t, e, n) {
|
|
2520
2520
|
const i = [], s = n || to, o = t.length - 1;
|
|
2521
2521
|
for (let r = 0; r < o; r++) {
|
|
2522
2522
|
let a = s(t[r], t[r + 1]);
|
|
2523
2523
|
if (e) {
|
|
2524
|
-
const l = Array.isArray(e) ? e[r] ||
|
|
2524
|
+
const l = Array.isArray(e) ? e[r] || G : e;
|
|
2525
2525
|
a = ft(l, a);
|
|
2526
2526
|
}
|
|
2527
2527
|
i.push(a);
|
|
@@ -2563,7 +2563,7 @@ function Ic(t, e) {
|
|
|
2563
2563
|
return t.map(() => e || Yr).splice(0, t.length - 1);
|
|
2564
2564
|
}
|
|
2565
2565
|
function je({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
|
|
2566
|
-
const s = bc(i) ? i.map(
|
|
2566
|
+
const s = bc(i) ? i.map(Qi) : Qi(i), o = {
|
|
2567
2567
|
done: !1,
|
|
2568
2568
|
value: e[0]
|
|
2569
2569
|
}, r = Bc(
|
|
@@ -2579,35 +2579,35 @@ function je({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }
|
|
|
2579
2579
|
next: (l) => (o.value = a(l), o.done = l >= t, o)
|
|
2580
2580
|
};
|
|
2581
2581
|
}
|
|
2582
|
-
const
|
|
2582
|
+
const ns = 2e4;
|
|
2583
2583
|
function Nc(t) {
|
|
2584
2584
|
let e = 0;
|
|
2585
2585
|
const n = 50;
|
|
2586
2586
|
let i = t.next(e);
|
|
2587
|
-
for (; !i.done && e <
|
|
2587
|
+
for (; !i.done && e < ns; )
|
|
2588
2588
|
e += n, i = t.next(e);
|
|
2589
|
-
return e >=
|
|
2589
|
+
return e >= ns ? 1 / 0 : e;
|
|
2590
2590
|
}
|
|
2591
2591
|
const Uc = (t) => {
|
|
2592
2592
|
const e = ({ timestamp: n }) => t(n);
|
|
2593
2593
|
return {
|
|
2594
|
-
start: () =>
|
|
2594
|
+
start: () => L.update(e, !0),
|
|
2595
2595
|
stop: () => mt(e),
|
|
2596
2596
|
/**
|
|
2597
2597
|
* If we're processing this frame we can use the
|
|
2598
2598
|
* framelocked timestamp to keep things in sync.
|
|
2599
2599
|
*/
|
|
2600
|
-
now: () =>
|
|
2600
|
+
now: () => $.isProcessing ? $.timestamp : vt.now()
|
|
2601
2601
|
};
|
|
2602
2602
|
}, Wc = {
|
|
2603
|
-
decay:
|
|
2604
|
-
inertia:
|
|
2603
|
+
decay: Zi,
|
|
2604
|
+
inertia: Zi,
|
|
2605
2605
|
tween: je,
|
|
2606
2606
|
keyframes: je,
|
|
2607
2607
|
spring: Hr
|
|
2608
2608
|
}, $c = (t) => t / 100;
|
|
2609
|
-
class
|
|
2610
|
-
constructor({ KeyframeResolver: e =
|
|
2609
|
+
class ri extends $r {
|
|
2610
|
+
constructor({ KeyframeResolver: e = Qn, ...n }) {
|
|
2611
2611
|
super(n), this.holdTime = null, this.startTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.state = "idle", this.stop = () => {
|
|
2612
2612
|
if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
|
|
2613
2613
|
return;
|
|
@@ -2658,8 +2658,8 @@ class oi extends $r {
|
|
|
2658
2658
|
let v = this.currentTime, w = o;
|
|
2659
2659
|
if (p) {
|
|
2660
2660
|
const R = Math.min(this.currentTime, u) / f;
|
|
2661
|
-
let
|
|
2662
|
-
!
|
|
2661
|
+
let W = Math.floor(R), H = R % 1;
|
|
2662
|
+
!H && R >= 1 && (H = 1), H === 1 && W--, W = Math.min(W, p + 1), !!(W % 2) && (m === "reverse" ? (H = 1 - H, x && (H -= x / f)) : m === "mirror" && (w = r)), v = Pt(0, 1, H) * f;
|
|
2663
2663
|
}
|
|
2664
2664
|
const A = y ? { done: !1, value: l[0] } : w.next(v);
|
|
2665
2665
|
a && (A.value = a(A.value));
|
|
@@ -2728,9 +2728,9 @@ class oi extends $r {
|
|
|
2728
2728
|
}
|
|
2729
2729
|
const eo = (t) => Array.isArray(t) && typeof t[0] == "number";
|
|
2730
2730
|
function no(t) {
|
|
2731
|
-
return !!(!t || typeof t == "string" && t in
|
|
2731
|
+
return !!(!t || typeof t == "string" && t in oi || eo(t) || Array.isArray(t) && t.every(no));
|
|
2732
2732
|
}
|
|
2733
|
-
const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`,
|
|
2733
|
+
const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, oi = {
|
|
2734
2734
|
linear: "linear",
|
|
2735
2735
|
ease: "ease",
|
|
2736
2736
|
easeIn: "ease-in",
|
|
@@ -2742,11 +2742,11 @@ const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, ai = {
|
|
|
2742
2742
|
backOut: Qt([0.33, 1.53, 0.69, 0.99])
|
|
2743
2743
|
};
|
|
2744
2744
|
function Kc(t) {
|
|
2745
|
-
return io(t) ||
|
|
2745
|
+
return io(t) || oi.easeOut;
|
|
2746
2746
|
}
|
|
2747
2747
|
function io(t) {
|
|
2748
2748
|
if (t)
|
|
2749
|
-
return eo(t) ? Qt(t) : Array.isArray(t) ? t.map(Kc) :
|
|
2749
|
+
return eo(t) ? Qt(t) : Array.isArray(t) ? t.map(Kc) : oi[t];
|
|
2750
2750
|
}
|
|
2751
2751
|
function Gc(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a, times: l } = {}) {
|
|
2752
2752
|
const c = { [e]: n };
|
|
@@ -2766,7 +2766,7 @@ function Yc(t) {
|
|
|
2766
2766
|
return t.type === "spring" || !no(t.ease);
|
|
2767
2767
|
}
|
|
2768
2768
|
function Xc(t, e) {
|
|
2769
|
-
const n = new
|
|
2769
|
+
const n = new ri({
|
|
2770
2770
|
...e,
|
|
2771
2771
|
keyframes: t,
|
|
2772
2772
|
repeat: 0,
|
|
@@ -2785,7 +2785,7 @@ function Xc(t, e) {
|
|
|
2785
2785
|
ease: "linear"
|
|
2786
2786
|
};
|
|
2787
2787
|
}
|
|
2788
|
-
class
|
|
2788
|
+
class is extends $r {
|
|
2789
2789
|
constructor(e) {
|
|
2790
2790
|
super(e);
|
|
2791
2791
|
const { name: n, motionValue: i, keyframes: s } = this.options;
|
|
@@ -2865,11 +2865,11 @@ class ss extends $r {
|
|
|
2865
2865
|
else {
|
|
2866
2866
|
const { resolved: n } = this;
|
|
2867
2867
|
if (!n)
|
|
2868
|
-
return
|
|
2868
|
+
return G;
|
|
2869
2869
|
const { animation: i } = n;
|
|
2870
2870
|
i.timeline = e, i.onfinish = null;
|
|
2871
2871
|
}
|
|
2872
|
-
return
|
|
2872
|
+
return G;
|
|
2873
2873
|
}
|
|
2874
2874
|
play() {
|
|
2875
2875
|
if (this.isStopped)
|
|
@@ -2898,7 +2898,7 @@ class ss extends $r {
|
|
|
2898
2898
|
if (n.playState === "idle" || n.playState === "finished")
|
|
2899
2899
|
return;
|
|
2900
2900
|
if (this.time) {
|
|
2901
|
-
const { motionValue: c, onUpdate: u, onComplete: f, ...d } = this.options, p = new
|
|
2901
|
+
const { motionValue: c, onUpdate: u, onComplete: f, ...d } = this.options, p = new ri({
|
|
2902
2902
|
...d,
|
|
2903
2903
|
keyframes: i,
|
|
2904
2904
|
duration: s,
|
|
@@ -2935,7 +2935,7 @@ function qc(t, e) {
|
|
|
2935
2935
|
const { currentTime: s } = e, r = (s === null ? 0 : s.value) / 100;
|
|
2936
2936
|
n !== r && t(r), n = r;
|
|
2937
2937
|
};
|
|
2938
|
-
return
|
|
2938
|
+
return L.update(i, !0), () => mt(i);
|
|
2939
2939
|
}
|
|
2940
2940
|
const Zc = Wr(() => window.ScrollTimeline !== void 0);
|
|
2941
2941
|
class Jc {
|
|
@@ -3004,8 +3004,8 @@ class Jc {
|
|
|
3004
3004
|
this.runAll("complete");
|
|
3005
3005
|
}
|
|
3006
3006
|
}
|
|
3007
|
-
const
|
|
3008
|
-
const l =
|
|
3007
|
+
const ai = (t, e, n, i = {}, s, o, r) => (a) => {
|
|
3008
|
+
const l = Jn(i, t) || {}, c = l.delay || i.delay || 0;
|
|
3009
3009
|
let { elapsed: u = 0 } = i;
|
|
3010
3010
|
u = u - ht(c);
|
|
3011
3011
|
let f = {
|
|
@@ -3033,13 +3033,13 @@ const li = (t, e, n, i = {}, s, o, r) => (a) => {
|
|
|
3033
3033
|
if ((f.type === !1 || f.duration === 0 && !f.repeatDelay) && (f.duration = 0, f.delay === 0 && (d = !0)), d && !o && e.get() !== void 0) {
|
|
3034
3034
|
const p = He(f.keyframes, l);
|
|
3035
3035
|
if (p !== void 0)
|
|
3036
|
-
return
|
|
3036
|
+
return L.update(() => {
|
|
3037
3037
|
f.onUpdate(p), f.onComplete();
|
|
3038
3038
|
}), new Jc([]);
|
|
3039
3039
|
}
|
|
3040
|
-
return !o &&
|
|
3040
|
+
return !o && is.supports(f) ? new is(f) : new ri(f);
|
|
3041
3041
|
};
|
|
3042
|
-
class
|
|
3042
|
+
class li {
|
|
3043
3043
|
constructor() {
|
|
3044
3044
|
this.subscriptions = [];
|
|
3045
3045
|
}
|
|
@@ -3064,11 +3064,11 @@ class ci {
|
|
|
3064
3064
|
this.subscriptions.length = 0;
|
|
3065
3065
|
}
|
|
3066
3066
|
}
|
|
3067
|
-
const
|
|
3068
|
-
function
|
|
3069
|
-
t ||
|
|
3067
|
+
const ss = /* @__PURE__ */ new Set();
|
|
3068
|
+
function ci(t, e, n) {
|
|
3069
|
+
t || ss.has(e) || (console.warn(e), n && console.warn(n), ss.add(e));
|
|
3070
3070
|
}
|
|
3071
|
-
const
|
|
3071
|
+
const rs = 30, Qc = (t) => !isNaN(parseFloat(t));
|
|
3072
3072
|
class so {
|
|
3073
3073
|
/**
|
|
3074
3074
|
* @param init - The initiating value
|
|
@@ -3131,13 +3131,13 @@ class so {
|
|
|
3131
3131
|
* @deprecated
|
|
3132
3132
|
*/
|
|
3133
3133
|
onChange(e) {
|
|
3134
|
-
return process.env.NODE_ENV !== "production" &&
|
|
3134
|
+
return process.env.NODE_ENV !== "production" && ci(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", e);
|
|
3135
3135
|
}
|
|
3136
3136
|
on(e, n) {
|
|
3137
|
-
this.events[e] || (this.events[e] = new
|
|
3137
|
+
this.events[e] || (this.events[e] = new li());
|
|
3138
3138
|
const i = this.events[e].add(n);
|
|
3139
3139
|
return e === "change" ? () => {
|
|
3140
|
-
i(),
|
|
3140
|
+
i(), L.read(() => {
|
|
3141
3141
|
this.events.change.getSize() || this.stop();
|
|
3142
3142
|
});
|
|
3143
3143
|
} : i;
|
|
@@ -3207,9 +3207,9 @@ class so {
|
|
|
3207
3207
|
*/
|
|
3208
3208
|
getVelocity() {
|
|
3209
3209
|
const e = vt.now();
|
|
3210
|
-
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt >
|
|
3210
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > rs)
|
|
3211
3211
|
return 0;
|
|
3212
|
-
const n = Math.min(this.updatedAt - this.prevUpdatedAt,
|
|
3212
|
+
const n = Math.min(this.updatedAt - this.prevUpdatedAt, rs);
|
|
3213
3213
|
return Kr(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
|
|
3214
3214
|
}
|
|
3215
3215
|
/**
|
|
@@ -3305,9 +3305,9 @@ class nu extends so {
|
|
|
3305
3305
|
}
|
|
3306
3306
|
}
|
|
3307
3307
|
function iu(t) {
|
|
3308
|
-
return !!(
|
|
3308
|
+
return !!(Y(t) && t.add);
|
|
3309
3309
|
}
|
|
3310
|
-
function
|
|
3310
|
+
function An(t, e) {
|
|
3311
3311
|
var n;
|
|
3312
3312
|
if (!t.applyWillChange)
|
|
3313
3313
|
return;
|
|
@@ -3331,27 +3331,27 @@ function oo(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
|
|
|
3331
3331
|
const m = {
|
|
3332
3332
|
delay: n,
|
|
3333
3333
|
elapsed: 0,
|
|
3334
|
-
...
|
|
3334
|
+
...Jn(r || {}, f)
|
|
3335
3335
|
};
|
|
3336
3336
|
let x = !1;
|
|
3337
3337
|
if (window.HandoffAppearAnimations) {
|
|
3338
3338
|
const P = ro(t);
|
|
3339
3339
|
if (P) {
|
|
3340
|
-
const y = window.HandoffAppearAnimations(P, f, d,
|
|
3340
|
+
const y = window.HandoffAppearAnimations(P, f, d, L);
|
|
3341
3341
|
y !== null && (m.elapsed = y, x = !0);
|
|
3342
3342
|
}
|
|
3343
3343
|
}
|
|
3344
|
-
d.start(
|
|
3344
|
+
d.start(ai(f, d, p, t.shouldReduceMotion && Tt.has(f) ? { type: !1 } : m, t, x, An(t, f)));
|
|
3345
3345
|
const T = d.animation;
|
|
3346
3346
|
T && c.push(T);
|
|
3347
3347
|
}
|
|
3348
3348
|
return a && Promise.all(c).then(() => {
|
|
3349
|
-
|
|
3349
|
+
L.update(() => {
|
|
3350
3350
|
a && eu(t, a);
|
|
3351
3351
|
});
|
|
3352
3352
|
}), c;
|
|
3353
3353
|
}
|
|
3354
|
-
function
|
|
3354
|
+
function Rn(t, e, n = {}) {
|
|
3355
3355
|
var i;
|
|
3356
3356
|
const s = Ge(t, e, n.type === "exit" ? (i = t.presenceContext) === null || i === void 0 ? void 0 : i.custom : void 0);
|
|
3357
3357
|
let { transition: o = t.getDefaultTransition() || {} } = s || {};
|
|
@@ -3369,7 +3369,7 @@ function Vn(t, e, n = {}) {
|
|
|
3369
3369
|
function ru(t, e, n = 0, i = 0, s = 1, o) {
|
|
3370
3370
|
const r = [], a = (t.variantChildren.size - 1) * i, l = s === 1 ? (c = 0) => c * i : (c = 0) => a - c * i;
|
|
3371
3371
|
return Array.from(t.variantChildren).sort(ou).forEach((c, u) => {
|
|
3372
|
-
c.notify("AnimationStart", e), r.push(
|
|
3372
|
+
c.notify("AnimationStart", e), r.push(Rn(c, e, {
|
|
3373
3373
|
...o,
|
|
3374
3374
|
delay: n + l(u)
|
|
3375
3375
|
}).then(() => c.notify("AnimationComplete", e)));
|
|
@@ -3382,10 +3382,10 @@ function au(t, e, n = {}) {
|
|
|
3382
3382
|
t.notify("AnimationStart", e);
|
|
3383
3383
|
let i;
|
|
3384
3384
|
if (Array.isArray(e)) {
|
|
3385
|
-
const s = e.map((o) =>
|
|
3385
|
+
const s = e.map((o) => Rn(t, o, n));
|
|
3386
3386
|
i = Promise.all(s);
|
|
3387
3387
|
} else if (typeof e == "string")
|
|
3388
|
-
i =
|
|
3388
|
+
i = Rn(t, e, n);
|
|
3389
3389
|
else {
|
|
3390
3390
|
const s = typeof e == "function" ? Ge(t, e, n.custom) : e;
|
|
3391
3391
|
i = Promise.all(oo(t, s, n));
|
|
@@ -3394,12 +3394,12 @@ function au(t, e, n = {}) {
|
|
|
3394
3394
|
t.notify("AnimationComplete", e);
|
|
3395
3395
|
});
|
|
3396
3396
|
}
|
|
3397
|
-
const lu = [...
|
|
3397
|
+
const lu = [...In].reverse(), cu = In.length;
|
|
3398
3398
|
function uu(t) {
|
|
3399
3399
|
return (e) => Promise.all(e.map(({ animation: n, options: i }) => au(t, n, i)));
|
|
3400
3400
|
}
|
|
3401
3401
|
function fu(t) {
|
|
3402
|
-
let e = uu(t), n =
|
|
3402
|
+
let e = uu(t), n = os(), i = !0;
|
|
3403
3403
|
const s = (l) => (c, u) => {
|
|
3404
3404
|
var f;
|
|
3405
3405
|
const d = Ge(t, u, l === "exit" ? (f = t.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
|
|
@@ -3426,27 +3426,27 @@ function fu(t) {
|
|
|
3426
3426
|
continue;
|
|
3427
3427
|
let R = hu(y.prevProp, v) || // If we're making this variant active, we want to always make it active
|
|
3428
3428
|
P === l && y.isActive && !j && w || // If we removed a higher-priority variant (i is in reverse order)
|
|
3429
|
-
T > m && w,
|
|
3430
|
-
const
|
|
3431
|
-
let rt =
|
|
3429
|
+
T > m && w, W = !1;
|
|
3430
|
+
const H = Array.isArray(v) ? v : [v];
|
|
3431
|
+
let rt = H.reduce(s(P), {});
|
|
3432
3432
|
A === !1 && (rt = {});
|
|
3433
3433
|
const { prevResolvedValues: wt = {} } = y, Z = {
|
|
3434
3434
|
...wt,
|
|
3435
3435
|
...rt
|
|
3436
|
-
}, M = (
|
|
3437
|
-
R = !0, d.has(
|
|
3438
|
-
const
|
|
3439
|
-
|
|
3436
|
+
}, M = (D) => {
|
|
3437
|
+
R = !0, d.has(D) && (W = !0, d.delete(D)), y.needsAnimating[D] = !0;
|
|
3438
|
+
const U = t.getValue(D);
|
|
3439
|
+
U && (U.liveStyle = !1);
|
|
3440
3440
|
};
|
|
3441
|
-
for (const
|
|
3442
|
-
const
|
|
3443
|
-
if (p.hasOwnProperty(
|
|
3441
|
+
for (const D in Z) {
|
|
3442
|
+
const U = rt[D], Lt = wt[D];
|
|
3443
|
+
if (p.hasOwnProperty(D))
|
|
3444
3444
|
continue;
|
|
3445
3445
|
let Ot = !1;
|
|
3446
|
-
|
|
3446
|
+
vn(U) && vn(Lt) ? Ot = !Rr(U, Lt) : Ot = U !== Lt, Ot ? U != null ? M(D) : d.add(D) : U !== void 0 && d.has(D) ? M(D) : y.protectedKeys[D] = !0;
|
|
3447
3447
|
}
|
|
3448
|
-
y.prevProp = v, y.prevResolvedValues = rt, y.isActive && (p = { ...p, ...rt }), i && t.blockInitialAnimation && (R = !1), R && (!j ||
|
|
3449
|
-
animation:
|
|
3448
|
+
y.prevProp = v, y.prevResolvedValues = rt, y.isActive && (p = { ...p, ...rt }), i && t.blockInitialAnimation && (R = !1), R && (!j || W) && f.push(...H.map((D) => ({
|
|
3449
|
+
animation: D,
|
|
3450
3450
|
options: { type: P }
|
|
3451
3451
|
})));
|
|
3452
3452
|
}
|
|
@@ -3479,7 +3479,7 @@ function fu(t) {
|
|
|
3479
3479
|
setAnimateFunction: o,
|
|
3480
3480
|
getState: () => n,
|
|
3481
3481
|
reset: () => {
|
|
3482
|
-
n =
|
|
3482
|
+
n = os(), i = !0;
|
|
3483
3483
|
}
|
|
3484
3484
|
};
|
|
3485
3485
|
}
|
|
@@ -3494,7 +3494,7 @@ function Ct(t = !1) {
|
|
|
3494
3494
|
prevResolvedValues: {}
|
|
3495
3495
|
};
|
|
3496
3496
|
}
|
|
3497
|
-
function
|
|
3497
|
+
function os() {
|
|
3498
3498
|
return {
|
|
3499
3499
|
animate: Ct(!0),
|
|
3500
3500
|
whileInView: Ct(),
|
|
@@ -3561,9 +3561,9 @@ const gu = {
|
|
|
3561
3561
|
exit: {
|
|
3562
3562
|
Feature: mu
|
|
3563
3563
|
}
|
|
3564
|
-
},
|
|
3564
|
+
}, as = (t, e) => Math.abs(t - e);
|
|
3565
3565
|
function yu(t, e) {
|
|
3566
|
-
const n =
|
|
3566
|
+
const n = as(t.x, e.x), i = as(t.y, e.y);
|
|
3567
3567
|
return Math.sqrt(n ** 2 + i ** 2);
|
|
3568
3568
|
}
|
|
3569
3569
|
class ao {
|
|
@@ -3574,12 +3574,12 @@ class ao {
|
|
|
3574
3574
|
const f = fn(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, p = yu(f.offset, { x: 0, y: 0 }) >= 3;
|
|
3575
3575
|
if (!d && !p)
|
|
3576
3576
|
return;
|
|
3577
|
-
const { point: m } = f, { timestamp: x } =
|
|
3577
|
+
const { point: m } = f, { timestamp: x } = $;
|
|
3578
3578
|
this.history.push({ ...m, timestamp: x });
|
|
3579
3579
|
const { onStart: T, onMove: P } = this.handlers;
|
|
3580
3580
|
d || (T && T(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), P && P(this.lastMoveEvent, f);
|
|
3581
3581
|
}, this.handlePointerMove = (f, d) => {
|
|
3582
|
-
this.lastMoveEvent = f, this.lastMoveEventInfo = un(d, this.transformPagePoint),
|
|
3582
|
+
this.lastMoveEvent = f, this.lastMoveEventInfo = un(d, this.transformPagePoint), L.update(this.updatePoint, !0);
|
|
3583
3583
|
}, this.handlePointerUp = (f, d) => {
|
|
3584
3584
|
this.end();
|
|
3585
3585
|
const { onEnd: p, onSessionEnd: m, resumeAnimation: x } = this.handlers;
|
|
@@ -3590,7 +3590,7 @@ class ao {
|
|
|
3590
3590
|
}, !br(e))
|
|
3591
3591
|
return;
|
|
3592
3592
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.contextWindow = s || window;
|
|
3593
|
-
const r = Ke(e), a = un(r, this.transformPagePoint), { point: l } = a, { timestamp: c } =
|
|
3593
|
+
const r = Ke(e), a = un(r, this.transformPagePoint), { point: l } = a, { timestamp: c } = $;
|
|
3594
3594
|
this.history = [{ ...l, timestamp: c }];
|
|
3595
3595
|
const { onSessionStart: u } = n;
|
|
3596
3596
|
u && u(e, fn(a, this.history)), this.removeListeners = ft(ut(this.contextWindow, "pointermove", this.handlePointerMove), ut(this.contextWindow, "pointerup", this.handlePointerUp), ut(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
@@ -3605,14 +3605,14 @@ class ao {
|
|
|
3605
3605
|
function un(t, e) {
|
|
3606
3606
|
return e ? { point: e(t.point) } : t;
|
|
3607
3607
|
}
|
|
3608
|
-
function
|
|
3608
|
+
function ls(t, e) {
|
|
3609
3609
|
return { x: t.x - e.x, y: t.y - e.y };
|
|
3610
3610
|
}
|
|
3611
3611
|
function fn({ point: t }, e) {
|
|
3612
3612
|
return {
|
|
3613
3613
|
point: t,
|
|
3614
|
-
delta:
|
|
3615
|
-
offset:
|
|
3614
|
+
delta: ls(t, lo(e)),
|
|
3615
|
+
offset: ls(t, vu(e)),
|
|
3616
3616
|
velocity: Pu(e, 0.1)
|
|
3617
3617
|
};
|
|
3618
3618
|
}
|
|
@@ -3647,28 +3647,28 @@ function Q(t) {
|
|
|
3647
3647
|
function Su(t, e, n) {
|
|
3648
3648
|
return Math.abs(t - e) <= n;
|
|
3649
3649
|
}
|
|
3650
|
-
function
|
|
3650
|
+
function cs(t, e, n, i = 0.5) {
|
|
3651
3651
|
t.origin = i, t.originPoint = F(e.min, e.max, t.origin), t.scale = Q(n) / Q(e), t.translate = F(n.min, n.max, t.origin) - t.originPoint, (t.scale >= xu && t.scale <= Tu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= bu && t.translate <= wu || isNaN(t.translate)) && (t.translate = 0);
|
|
3652
3652
|
}
|
|
3653
3653
|
function ie(t, e, n, i) {
|
|
3654
|
-
|
|
3654
|
+
cs(t.x, e.x, n.x, i ? i.originX : void 0), cs(t.y, e.y, n.y, i ? i.originY : void 0);
|
|
3655
3655
|
}
|
|
3656
|
-
function
|
|
3656
|
+
function us(t, e, n) {
|
|
3657
3657
|
t.min = n.min + e.min, t.max = t.min + Q(e);
|
|
3658
3658
|
}
|
|
3659
3659
|
function Cu(t, e, n) {
|
|
3660
|
-
|
|
3660
|
+
us(t.x, e.x, n.x), us(t.y, e.y, n.y);
|
|
3661
3661
|
}
|
|
3662
|
-
function
|
|
3662
|
+
function fs(t, e, n) {
|
|
3663
3663
|
t.min = e.min - n.min, t.max = t.min + Q(e);
|
|
3664
3664
|
}
|
|
3665
3665
|
function se(t, e, n) {
|
|
3666
|
-
|
|
3666
|
+
fs(t.x, e.x, n.x), fs(t.y, e.y, n.y);
|
|
3667
3667
|
}
|
|
3668
3668
|
function Au(t, { min: e, max: n }, i) {
|
|
3669
3669
|
return e !== void 0 && t < e ? t = i ? F(e, t, i.min) : Math.max(t, e) : n !== void 0 && t > n && (t = i ? F(n, t, i.max) : Math.min(t, n)), t;
|
|
3670
3670
|
}
|
|
3671
|
-
function
|
|
3671
|
+
function hs(t, e, n) {
|
|
3672
3672
|
return {
|
|
3673
3673
|
min: e !== void 0 ? t.min + e : void 0,
|
|
3674
3674
|
max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
|
|
@@ -3676,18 +3676,18 @@ function ds(t, e, n) {
|
|
|
3676
3676
|
}
|
|
3677
3677
|
function Ru(t, { top: e, left: n, bottom: i, right: s }) {
|
|
3678
3678
|
return {
|
|
3679
|
-
x:
|
|
3680
|
-
y:
|
|
3679
|
+
x: hs(t.x, n, s),
|
|
3680
|
+
y: hs(t.y, e, i)
|
|
3681
3681
|
};
|
|
3682
3682
|
}
|
|
3683
|
-
function
|
|
3683
|
+
function ds(t, e) {
|
|
3684
3684
|
let n = e.min - t.min, i = e.max - t.max;
|
|
3685
3685
|
return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
|
|
3686
3686
|
}
|
|
3687
3687
|
function Vu(t, e) {
|
|
3688
3688
|
return {
|
|
3689
|
-
x:
|
|
3690
|
-
y:
|
|
3689
|
+
x: ds(t.x, e.x),
|
|
3690
|
+
y: ds(t.y, e.y)
|
|
3691
3691
|
};
|
|
3692
3692
|
}
|
|
3693
3693
|
function Eu(t, e) {
|
|
@@ -3699,33 +3699,33 @@ function Du(t, e) {
|
|
|
3699
3699
|
const n = {};
|
|
3700
3700
|
return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
|
|
3701
3701
|
}
|
|
3702
|
-
const
|
|
3703
|
-
function Mu(t =
|
|
3704
|
-
return t === !1 ? t = 0 : t === !0 && (t =
|
|
3705
|
-
x:
|
|
3706
|
-
y:
|
|
3702
|
+
const Vn = 0.35;
|
|
3703
|
+
function Mu(t = Vn) {
|
|
3704
|
+
return t === !1 ? t = 0 : t === !0 && (t = Vn), {
|
|
3705
|
+
x: ps(t, "left", "right"),
|
|
3706
|
+
y: ps(t, "top", "bottom")
|
|
3707
3707
|
};
|
|
3708
3708
|
}
|
|
3709
|
-
function
|
|
3709
|
+
function ps(t, e, n) {
|
|
3710
3710
|
return {
|
|
3711
|
-
min:
|
|
3712
|
-
max:
|
|
3711
|
+
min: ms(t, e),
|
|
3712
|
+
max: ms(t, n)
|
|
3713
3713
|
};
|
|
3714
3714
|
}
|
|
3715
|
-
function
|
|
3715
|
+
function ms(t, e) {
|
|
3716
3716
|
return typeof t == "number" ? t : t[e] || 0;
|
|
3717
3717
|
}
|
|
3718
|
-
const
|
|
3718
|
+
const gs = () => ({
|
|
3719
3719
|
translate: 0,
|
|
3720
3720
|
scale: 1,
|
|
3721
3721
|
origin: 0,
|
|
3722
3722
|
originPoint: 0
|
|
3723
3723
|
}), Nt = () => ({
|
|
3724
|
+
x: gs(),
|
|
3725
|
+
y: gs()
|
|
3726
|
+
}), ys = () => ({ min: 0, max: 0 }), I = () => ({
|
|
3724
3727
|
x: ys(),
|
|
3725
3728
|
y: ys()
|
|
3726
|
-
}), vs = () => ({ min: 0, max: 0 }), B = () => ({
|
|
3727
|
-
x: vs(),
|
|
3728
|
-
y: vs()
|
|
3729
3729
|
});
|
|
3730
3730
|
function nt(t) {
|
|
3731
3731
|
return [t("x"), t("y")];
|
|
@@ -3753,32 +3753,32 @@ function Lu(t, e) {
|
|
|
3753
3753
|
function hn(t) {
|
|
3754
3754
|
return t === void 0 || t === 1;
|
|
3755
3755
|
}
|
|
3756
|
-
function
|
|
3756
|
+
function En({ scale: t, scaleX: e, scaleY: n }) {
|
|
3757
3757
|
return !hn(t) || !hn(e) || !hn(n);
|
|
3758
3758
|
}
|
|
3759
3759
|
function At(t) {
|
|
3760
|
-
return
|
|
3760
|
+
return En(t) || ho(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
|
|
3761
3761
|
}
|
|
3762
3762
|
function ho(t) {
|
|
3763
|
-
return
|
|
3763
|
+
return vs(t.x) || vs(t.y);
|
|
3764
3764
|
}
|
|
3765
|
-
function
|
|
3765
|
+
function vs(t) {
|
|
3766
3766
|
return t && t !== "0%";
|
|
3767
3767
|
}
|
|
3768
3768
|
function _e(t, e, n) {
|
|
3769
3769
|
const i = t - n, s = e * i;
|
|
3770
3770
|
return n + s;
|
|
3771
3771
|
}
|
|
3772
|
-
function
|
|
3772
|
+
function Ps(t, e, n, i, s) {
|
|
3773
3773
|
return s !== void 0 && (t = _e(t, s, i)), _e(t, n, i) + e;
|
|
3774
3774
|
}
|
|
3775
|
-
function
|
|
3776
|
-
t.min =
|
|
3775
|
+
function Dn(t, e = 0, n = 1, i, s) {
|
|
3776
|
+
t.min = Ps(t.min, e, n, i, s), t.max = Ps(t.max, e, n, i, s);
|
|
3777
3777
|
}
|
|
3778
3778
|
function po(t, { x: e, y: n }) {
|
|
3779
|
-
|
|
3779
|
+
Dn(t.x, e.translate, e.scale, e.originPoint), Dn(t.y, n.translate, n.scale, n.originPoint);
|
|
3780
3780
|
}
|
|
3781
|
-
const
|
|
3781
|
+
const xs = 0.999999999999, Ts = 1.0000000000001;
|
|
3782
3782
|
function Ou(t, e, n, i = !1) {
|
|
3783
3783
|
const s = n.length;
|
|
3784
3784
|
if (!s)
|
|
@@ -3793,17 +3793,17 @@ function Ou(t, e, n, i = !1) {
|
|
|
3793
3793
|
y: -o.scroll.offset.y
|
|
3794
3794
|
}), r && (e.x *= r.x.scale, e.y *= r.y.scale, po(t, r)), i && At(o.latestValues) && Wt(t, o.latestValues));
|
|
3795
3795
|
}
|
|
3796
|
-
e.x <
|
|
3796
|
+
e.x < Ts && e.x > xs && (e.x = 1), e.y < Ts && e.y > xs && (e.y = 1);
|
|
3797
3797
|
}
|
|
3798
3798
|
function Ut(t, e) {
|
|
3799
3799
|
t.min = t.min + e, t.max = t.max + e;
|
|
3800
3800
|
}
|
|
3801
|
-
function
|
|
3801
|
+
function bs(t, e, n, i, s = 0.5) {
|
|
3802
3802
|
const o = F(t.min, t.max, s);
|
|
3803
|
-
|
|
3803
|
+
Dn(t, e, n, o, i);
|
|
3804
3804
|
}
|
|
3805
3805
|
function Wt(t, e) {
|
|
3806
|
-
|
|
3806
|
+
bs(t.x, e.x, e.scaleX, e.scale, e.originX), bs(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
3807
3807
|
}
|
|
3808
3808
|
function mo(t, e) {
|
|
3809
3809
|
return fo(Lu(t.getBoundingClientRect(), e));
|
|
@@ -3815,7 +3815,7 @@ function ju(t, e, n) {
|
|
|
3815
3815
|
const go = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Fu = /* @__PURE__ */ new WeakMap();
|
|
3816
3816
|
class _u {
|
|
3817
3817
|
constructor(e) {
|
|
3818
|
-
this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic =
|
|
3818
|
+
this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = I(), this.visualElement = e;
|
|
3819
3819
|
}
|
|
3820
3820
|
start(e, { snapToCursor: n = !1 } = {}) {
|
|
3821
3821
|
const { presenceContext: i } = this.visualElement;
|
|
@@ -3839,7 +3839,7 @@ class _u {
|
|
|
3839
3839
|
}
|
|
3840
3840
|
}
|
|
3841
3841
|
this.originPoint[P] = y;
|
|
3842
|
-
}), x &&
|
|
3842
|
+
}), x && L.postRender(() => x(u, f)), (d = this.removeWillChange) === null || d === void 0 || d.call(this), this.removeWillChange = An(this.visualElement, "transform");
|
|
3843
3843
|
const { animationState: T } = this.visualElement;
|
|
3844
3844
|
T && T.setActive("whileDrag", !0);
|
|
3845
3845
|
}, r = (u, f) => {
|
|
@@ -3877,7 +3877,7 @@ class _u {
|
|
|
3877
3877
|
const { velocity: o } = n;
|
|
3878
3878
|
this.startAnimation(o);
|
|
3879
3879
|
const { onDragEnd: r } = this.getProps();
|
|
3880
|
-
r &&
|
|
3880
|
+
r && L.postRender(() => r(e, n));
|
|
3881
3881
|
}
|
|
3882
3882
|
cancel() {
|
|
3883
3883
|
this.isDragging = !1;
|
|
@@ -3941,7 +3941,7 @@ class _u {
|
|
|
3941
3941
|
}
|
|
3942
3942
|
startAxisValueAnimation(e, n) {
|
|
3943
3943
|
const i = this.getAxisMotionValue(e);
|
|
3944
|
-
return i.start(
|
|
3944
|
+
return i.start(ai(e, i, 0, n, this.visualElement, !1, An(this.visualElement, e)));
|
|
3945
3945
|
}
|
|
3946
3946
|
stopAnimation() {
|
|
3947
3947
|
nt((e) => this.getAxisMotionValue(e).stop());
|
|
@@ -4017,7 +4017,7 @@ class _u {
|
|
|
4017
4017
|
const { dragConstraints: l } = this.getProps();
|
|
4018
4018
|
Bt(l) && l.current && (this.constraints = this.resolveRefConstraints());
|
|
4019
4019
|
}, { projection: s } = this.visualElement, o = s.addEventListener("measure", i);
|
|
4020
|
-
s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()),
|
|
4020
|
+
s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), L.read(i);
|
|
4021
4021
|
const r = lt(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
|
|
4022
4022
|
this.isDragging && c && (nt((u) => {
|
|
4023
4023
|
const f = this.getAxisMotionValue(u);
|
|
@@ -4029,7 +4029,7 @@ class _u {
|
|
|
4029
4029
|
};
|
|
4030
4030
|
}
|
|
4031
4031
|
getProps() {
|
|
4032
|
-
const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: i = !1, dragPropagation: s = !1, dragConstraints: o = !1, dragElastic: r =
|
|
4032
|
+
const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: i = !1, dragPropagation: s = !1, dragConstraints: o = !1, dragElastic: r = Vn, dragMomentum: a = !0 } = e;
|
|
4033
4033
|
return {
|
|
4034
4034
|
...e,
|
|
4035
4035
|
drag: n,
|
|
@@ -4050,22 +4050,22 @@ function Bu(t, e = 10) {
|
|
|
4050
4050
|
}
|
|
4051
4051
|
class Iu extends bt {
|
|
4052
4052
|
constructor(e) {
|
|
4053
|
-
super(e), this.removeGroupControls =
|
|
4053
|
+
super(e), this.removeGroupControls = G, this.removeListeners = G, this.controls = new _u(e);
|
|
4054
4054
|
}
|
|
4055
4055
|
mount() {
|
|
4056
4056
|
const { dragControls: e } = this.node.getProps();
|
|
4057
|
-
e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() ||
|
|
4057
|
+
e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || G;
|
|
4058
4058
|
}
|
|
4059
4059
|
unmount() {
|
|
4060
4060
|
this.removeGroupControls(), this.removeListeners();
|
|
4061
4061
|
}
|
|
4062
4062
|
}
|
|
4063
|
-
const
|
|
4064
|
-
t &&
|
|
4063
|
+
const ws = (t) => (e, n) => {
|
|
4064
|
+
t && L.postRender(() => t(e, n));
|
|
4065
4065
|
};
|
|
4066
4066
|
class Nu extends bt {
|
|
4067
4067
|
constructor() {
|
|
4068
|
-
super(...arguments), this.removePointerDownListener =
|
|
4068
|
+
super(...arguments), this.removePointerDownListener = G;
|
|
4069
4069
|
}
|
|
4070
4070
|
onPointerDown(e) {
|
|
4071
4071
|
this.session = new ao(e, this.createPanHandlers(), {
|
|
@@ -4076,11 +4076,11 @@ class Nu extends bt {
|
|
|
4076
4076
|
createPanHandlers() {
|
|
4077
4077
|
const { onPanSessionStart: e, onPanStart: n, onPan: i, onPanEnd: s } = this.node.getProps();
|
|
4078
4078
|
return {
|
|
4079
|
-
onSessionStart:
|
|
4080
|
-
onStart:
|
|
4079
|
+
onSessionStart: ws(e),
|
|
4080
|
+
onStart: ws(n),
|
|
4081
4081
|
onMove: i,
|
|
4082
4082
|
onEnd: (o, r) => {
|
|
4083
|
-
delete this.session, s &&
|
|
4083
|
+
delete this.session, s && L.postRender(() => s(o, r));
|
|
4084
4084
|
}
|
|
4085
4085
|
};
|
|
4086
4086
|
}
|
|
@@ -4095,10 +4095,10 @@ class Nu extends bt {
|
|
|
4095
4095
|
}
|
|
4096
4096
|
}
|
|
4097
4097
|
function Uu() {
|
|
4098
|
-
const t =
|
|
4098
|
+
const t = K(Ie);
|
|
4099
4099
|
if (t === null)
|
|
4100
4100
|
return [!0, null];
|
|
4101
|
-
const { isPresent: e, onExitComplete: n, register: i } = t, s =
|
|
4101
|
+
const { isPresent: e, onExitComplete: n, register: i } = t, s = On();
|
|
4102
4102
|
ct(() => i(s), []);
|
|
4103
4103
|
const o = it(() => n && n(s), [s, n]);
|
|
4104
4104
|
return !e && n ? [!1, o] : [!0];
|
|
@@ -4115,7 +4115,7 @@ const Ee = {
|
|
|
4115
4115
|
*/
|
|
4116
4116
|
hasEverUpdated: !1
|
|
4117
4117
|
};
|
|
4118
|
-
function
|
|
4118
|
+
function Ss(t, e) {
|
|
4119
4119
|
return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
|
|
4120
4120
|
}
|
|
4121
4121
|
const Zt = {
|
|
@@ -4127,7 +4127,7 @@ const Zt = {
|
|
|
4127
4127
|
t = parseFloat(t);
|
|
4128
4128
|
else
|
|
4129
4129
|
return t;
|
|
4130
|
-
const n =
|
|
4130
|
+
const n = Ss(t, e.target.x), i = Ss(t, e.target.y);
|
|
4131
4131
|
return `${n}% ${i}%`;
|
|
4132
4132
|
}
|
|
4133
4133
|
}, Wu = {
|
|
@@ -4158,14 +4158,14 @@ class $u extends sa {
|
|
|
4158
4158
|
}
|
|
4159
4159
|
getSnapshotBeforeUpdate(e) {
|
|
4160
4160
|
const { layoutDependency: n, visualElement: i, drag: s, isPresent: o } = this.props, r = i.projection;
|
|
4161
|
-
return r && (r.isPresent = o, s || e.layoutDependency !== n || n === void 0 ? r.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? r.promote() : r.relegate() ||
|
|
4161
|
+
return r && (r.isPresent = o, s || e.layoutDependency !== n || n === void 0 ? r.willUpdate() : this.safeToRemove(), e.isPresent !== o && (o ? r.promote() : r.relegate() || L.postRender(() => {
|
|
4162
4162
|
const a = r.getStack();
|
|
4163
4163
|
(!a || !a.members.length) && this.safeToRemove();
|
|
4164
4164
|
}))), null;
|
|
4165
4165
|
}
|
|
4166
4166
|
componentDidUpdate() {
|
|
4167
4167
|
const { projection: e } = this.props.visualElement;
|
|
4168
|
-
e && (e.root.didUpdate(),
|
|
4168
|
+
e && (e.root.didUpdate(), Bn.postRender(() => {
|
|
4169
4169
|
!e.currentAnimation && e.isLead() && this.safeToRemove();
|
|
4170
4170
|
}));
|
|
4171
4171
|
}
|
|
@@ -4182,8 +4182,8 @@ class $u extends sa {
|
|
|
4182
4182
|
}
|
|
4183
4183
|
}
|
|
4184
4184
|
function yo(t) {
|
|
4185
|
-
const [e, n] = Uu(), i =
|
|
4186
|
-
return
|
|
4185
|
+
const [e, n] = Uu(), i = K(Un);
|
|
4186
|
+
return _.jsx($u, { ...t, layoutGroup: i, switchLayoutGroup: K(rr), isPresent: e, safeToRemove: n });
|
|
4187
4187
|
}
|
|
4188
4188
|
const Ku = {
|
|
4189
4189
|
borderRadius: {
|
|
@@ -4200,7 +4200,7 @@ const Ku = {
|
|
|
4200
4200
|
borderBottomLeftRadius: Zt,
|
|
4201
4201
|
borderBottomRightRadius: Zt,
|
|
4202
4202
|
boxShadow: Wu
|
|
4203
|
-
}, vo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Gu = vo.length,
|
|
4203
|
+
}, vo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Gu = vo.length, Cs = (t) => typeof t == "string" ? parseFloat(t) : t, As = (t) => typeof t == "number" || S.test(t);
|
|
4204
4204
|
function Hu(t, e, n, i, s, o) {
|
|
4205
4205
|
s ? (t.opacity = F(
|
|
4206
4206
|
0,
|
|
@@ -4210,67 +4210,67 @@ function Hu(t, e, n, i, s, o) {
|
|
|
4210
4210
|
), t.opacityExit = F(e.opacity !== void 0 ? e.opacity : 1, 0, Yu(i))) : o && (t.opacity = F(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
|
|
4211
4211
|
for (let r = 0; r < Gu; r++) {
|
|
4212
4212
|
const a = `border${vo[r]}Radius`;
|
|
4213
|
-
let l =
|
|
4213
|
+
let l = Rs(e, a), c = Rs(n, a);
|
|
4214
4214
|
if (l === void 0 && c === void 0)
|
|
4215
4215
|
continue;
|
|
4216
|
-
l || (l = 0), c || (c = 0), l === 0 || c === 0 ||
|
|
4216
|
+
l || (l = 0), c || (c = 0), l === 0 || c === 0 || As(l) === As(c) ? (t[a] = Math.max(F(Cs(l), Cs(c), i), 0), (ot.test(c) || ot.test(l)) && (t[a] += "%")) : t[a] = c;
|
|
4217
4217
|
}
|
|
4218
4218
|
(e.rotate || n.rotate) && (t.rotate = F(e.rotate || 0, n.rotate || 0, i));
|
|
4219
4219
|
}
|
|
4220
|
-
function
|
|
4220
|
+
function Rs(t, e) {
|
|
4221
4221
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
|
4222
4222
|
}
|
|
4223
|
-
const zu = Po(0, 0.5, Zr), Yu = Po(0.5, 0.95,
|
|
4223
|
+
const zu = Po(0, 0.5, Zr), Yu = Po(0.5, 0.95, G);
|
|
4224
4224
|
function Po(t, e, n) {
|
|
4225
4225
|
return (i) => i < t ? 0 : i > e ? 1 : n(ce(t, e, i));
|
|
4226
4226
|
}
|
|
4227
|
-
function
|
|
4227
|
+
function Vs(t, e) {
|
|
4228
4228
|
t.min = e.min, t.max = e.max;
|
|
4229
4229
|
}
|
|
4230
4230
|
function et(t, e) {
|
|
4231
|
-
|
|
4231
|
+
Vs(t.x, e.x), Vs(t.y, e.y);
|
|
4232
4232
|
}
|
|
4233
|
-
function
|
|
4233
|
+
function Es(t, e) {
|
|
4234
4234
|
t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
|
|
4235
4235
|
}
|
|
4236
|
-
function
|
|
4236
|
+
function Ds(t, e, n, i, s) {
|
|
4237
4237
|
return t -= e, t = _e(t, 1 / n, i), s !== void 0 && (t = _e(t, 1 / s, i)), t;
|
|
4238
4238
|
}
|
|
4239
4239
|
function Xu(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
|
|
4240
4240
|
if (ot.test(e) && (e = parseFloat(e), e = F(r.min, r.max, e / 100) - r.min), typeof e != "number")
|
|
4241
4241
|
return;
|
|
4242
4242
|
let a = F(o.min, o.max, i);
|
|
4243
|
-
t === o && (a -= e), t.min =
|
|
4243
|
+
t === o && (a -= e), t.min = Ds(t.min, e, n, a, s), t.max = Ds(t.max, e, n, a, s);
|
|
4244
4244
|
}
|
|
4245
|
-
function
|
|
4245
|
+
function Ms(t, e, [n, i, s], o, r) {
|
|
4246
4246
|
Xu(t, e[n], e[i], e[s], e.scale, o, r);
|
|
4247
4247
|
}
|
|
4248
4248
|
const qu = ["x", "scaleX", "originX"], Zu = ["y", "scaleY", "originY"];
|
|
4249
|
-
function
|
|
4250
|
-
|
|
4249
|
+
function ks(t, e, n, i) {
|
|
4250
|
+
Ms(t.x, e, qu, n ? n.x : void 0, i ? i.x : void 0), Ms(t.y, e, Zu, n ? n.y : void 0, i ? i.y : void 0);
|
|
4251
4251
|
}
|
|
4252
|
-
function
|
|
4252
|
+
function Ls(t) {
|
|
4253
4253
|
return t.translate === 0 && t.scale === 1;
|
|
4254
4254
|
}
|
|
4255
4255
|
function xo(t) {
|
|
4256
|
-
return
|
|
4256
|
+
return Ls(t.x) && Ls(t.y);
|
|
4257
4257
|
}
|
|
4258
|
-
function
|
|
4258
|
+
function Os(t, e) {
|
|
4259
4259
|
return t.min === e.min && t.max === e.max;
|
|
4260
4260
|
}
|
|
4261
4261
|
function Ju(t, e) {
|
|
4262
|
-
return
|
|
4262
|
+
return Os(t.x, e.x) && Os(t.y, e.y);
|
|
4263
4263
|
}
|
|
4264
|
-
function
|
|
4264
|
+
function js(t, e) {
|
|
4265
4265
|
return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
|
|
4266
4266
|
}
|
|
4267
4267
|
function To(t, e) {
|
|
4268
|
-
return
|
|
4268
|
+
return js(t.x, e.x) && js(t.y, e.y);
|
|
4269
4269
|
}
|
|
4270
|
-
function
|
|
4270
|
+
function Fs(t) {
|
|
4271
4271
|
return Q(t.x) / Q(t.y);
|
|
4272
4272
|
}
|
|
4273
|
-
function
|
|
4273
|
+
function _s(t, e) {
|
|
4274
4274
|
return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
|
|
4275
4275
|
}
|
|
4276
4276
|
class Qu {
|
|
@@ -4357,21 +4357,21 @@ function sf(t, e) {
|
|
|
4357
4357
|
const o = s - n;
|
|
4358
4358
|
o >= e && (mt(i), t(o - e));
|
|
4359
4359
|
};
|
|
4360
|
-
return
|
|
4360
|
+
return L.read(i, !0), () => mt(i);
|
|
4361
4361
|
}
|
|
4362
4362
|
function rf(t) {
|
|
4363
4363
|
return t instanceof SVGElement && t.tagName !== "svg";
|
|
4364
4364
|
}
|
|
4365
4365
|
function of(t, e, n) {
|
|
4366
|
-
const i =
|
|
4367
|
-
return i.start(
|
|
4366
|
+
const i = Y(t) ? t : ue(t);
|
|
4367
|
+
return i.start(ai("", i, e, n)), i.animation;
|
|
4368
4368
|
}
|
|
4369
4369
|
const Rt = {
|
|
4370
4370
|
type: "projectionFrame",
|
|
4371
4371
|
totalNodes: 0,
|
|
4372
4372
|
resolvedTargetDeltas: 0,
|
|
4373
4373
|
recalculatedProjection: 0
|
|
4374
|
-
}, te = typeof window < "u" && window.MotionDebug !== void 0, dn = ["", "X", "Y", "Z"], af = { visibility: "hidden" },
|
|
4374
|
+
}, te = typeof window < "u" && window.MotionDebug !== void 0, dn = ["", "X", "Y", "Z"], af = { visibility: "hidden" }, Bs = 1e3;
|
|
4375
4375
|
let lf = 0;
|
|
4376
4376
|
function pn(t, e, n, i) {
|
|
4377
4377
|
const { latestValues: s } = e;
|
|
@@ -4396,7 +4396,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4396
4396
|
this.root === this && (this.nodes = new nf());
|
|
4397
4397
|
}
|
|
4398
4398
|
addEventListener(r, a) {
|
|
4399
|
-
return this.eventHandlers.has(r) || this.eventHandlers.set(r, new
|
|
4399
|
+
return this.eventHandlers.has(r) || this.eventHandlers.set(r, new li()), this.eventHandlers.get(r).add(a);
|
|
4400
4400
|
}
|
|
4401
4401
|
notifyListeners(r, ...a) {
|
|
4402
4402
|
const l = this.eventHandlers.get(r);
|
|
@@ -4417,7 +4417,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4417
4417
|
let f;
|
|
4418
4418
|
const d = () => this.root.updateBlockedByResize = !1;
|
|
4419
4419
|
t(r, () => {
|
|
4420
|
-
this.root.updateBlockedByResize = !0, f && f(), f = sf(d, 250), Ee.hasAnimatedSinceResize && (Ee.hasAnimatedSinceResize = !1, this.nodes.forEach(
|
|
4420
|
+
this.root.updateBlockedByResize = !0, f && f(), f = sf(d, 250), Ee.hasAnimatedSinceResize && (Ee.hasAnimatedSinceResize = !1, this.nodes.forEach(Ns));
|
|
4421
4421
|
});
|
|
4422
4422
|
}
|
|
4423
4423
|
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeTargetChanged: p, layout: m }) => {
|
|
@@ -4429,13 +4429,13 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4429
4429
|
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || v || d && (y || !this.currentAnimation)) {
|
|
4430
4430
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, v);
|
|
4431
4431
|
const w = {
|
|
4432
|
-
...
|
|
4432
|
+
...Jn(x, "layout"),
|
|
4433
4433
|
onPlay: T,
|
|
4434
4434
|
onComplete: P
|
|
4435
4435
|
};
|
|
4436
4436
|
(u.shouldReduceMotion || this.options.layoutRoot) && (w.delay = 0, w.type = !1), this.startAnimation(w);
|
|
4437
4437
|
} else
|
|
4438
|
-
d ||
|
|
4438
|
+
d || Ns(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
4439
4439
|
this.targetLayout = m;
|
|
4440
4440
|
});
|
|
4441
4441
|
}
|
|
@@ -4485,24 +4485,24 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4485
4485
|
}
|
|
4486
4486
|
update() {
|
|
4487
4487
|
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
4488
|
-
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(
|
|
4488
|
+
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Is);
|
|
4489
4489
|
return;
|
|
4490
4490
|
}
|
|
4491
4491
|
this.isUpdating || this.nodes.forEach(pf), this.isUpdating = !1, this.nodes.forEach(mf), this.nodes.forEach(cf), this.nodes.forEach(uf), this.clearAllSnapshots();
|
|
4492
4492
|
const a = vt.now();
|
|
4493
|
-
|
|
4493
|
+
$.delta = Pt(0, 1e3 / 60, a - $.timestamp), $.timestamp = a, $.isProcessing = !0, nn.update.process($), nn.preRender.process($), nn.render.process($), $.isProcessing = !1;
|
|
4494
4494
|
}
|
|
4495
4495
|
didUpdate() {
|
|
4496
|
-
this.updateScheduled || (this.updateScheduled = !0,
|
|
4496
|
+
this.updateScheduled || (this.updateScheduled = !0, Bn.read(this.scheduleUpdate));
|
|
4497
4497
|
}
|
|
4498
4498
|
clearAllSnapshots() {
|
|
4499
4499
|
this.nodes.forEach(df), this.sharedNodes.forEach(Pf);
|
|
4500
4500
|
}
|
|
4501
4501
|
scheduleUpdateProjection() {
|
|
4502
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0,
|
|
4502
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, L.preRender(this.updateProjection, !1, !0));
|
|
4503
4503
|
}
|
|
4504
4504
|
scheduleCheckAfterUnmount() {
|
|
4505
|
-
|
|
4505
|
+
L.postRender(() => {
|
|
4506
4506
|
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
4507
4507
|
});
|
|
4508
4508
|
}
|
|
@@ -4519,7 +4519,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4519
4519
|
for (let l = 0; l < this.path.length; l++)
|
|
4520
4520
|
this.path[l].updateScroll();
|
|
4521
4521
|
const r = this.layout;
|
|
4522
|
-
this.layout = this.measure(!1), this.layoutCorrected =
|
|
4522
|
+
this.layout = this.measure(!1), this.layoutCorrected = I(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
4523
4523
|
const { visualElement: a } = this.options;
|
|
4524
4524
|
a && a.notify("LayoutMeasure", this.layout.layoutBox, r ? r.layoutBox : void 0);
|
|
4525
4525
|
}
|
|
@@ -4557,7 +4557,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4557
4557
|
var r;
|
|
4558
4558
|
const { visualElement: a } = this.options;
|
|
4559
4559
|
if (!a)
|
|
4560
|
-
return
|
|
4560
|
+
return I();
|
|
4561
4561
|
const l = a.measureViewportBox();
|
|
4562
4562
|
if (!(((r = this.scroll) === null || r === void 0 ? void 0 : r.wasRoot) || this.path.some(Sf))) {
|
|
4563
4563
|
const { scroll: u } = this.root;
|
|
@@ -4567,7 +4567,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4567
4567
|
}
|
|
4568
4568
|
removeElementScroll(r) {
|
|
4569
4569
|
var a;
|
|
4570
|
-
const l =
|
|
4570
|
+
const l = I();
|
|
4571
4571
|
if (et(l, r), !((a = this.scroll) === null || a === void 0) && a.wasRoot)
|
|
4572
4572
|
return l;
|
|
4573
4573
|
for (let c = 0; c < this.path.length; c++) {
|
|
@@ -4577,7 +4577,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4577
4577
|
return l;
|
|
4578
4578
|
}
|
|
4579
4579
|
applyTransform(r, a = !1) {
|
|
4580
|
-
const l =
|
|
4580
|
+
const l = I();
|
|
4581
4581
|
et(l, r);
|
|
4582
4582
|
for (let c = 0; c < this.path.length; c++) {
|
|
4583
4583
|
const u = this.path[c];
|
|
@@ -4589,17 +4589,17 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4589
4589
|
return At(this.latestValues) && Wt(l, this.latestValues), l;
|
|
4590
4590
|
}
|
|
4591
4591
|
removeTransform(r) {
|
|
4592
|
-
const a =
|
|
4592
|
+
const a = I();
|
|
4593
4593
|
et(a, r);
|
|
4594
4594
|
for (let l = 0; l < this.path.length; l++) {
|
|
4595
4595
|
const c = this.path[l];
|
|
4596
4596
|
if (!c.instance || !At(c.latestValues))
|
|
4597
4597
|
continue;
|
|
4598
|
-
|
|
4599
|
-
const u =
|
|
4600
|
-
et(u, f),
|
|
4598
|
+
En(c.latestValues) && c.updateSnapshot();
|
|
4599
|
+
const u = I(), f = c.measurePageBox();
|
|
4600
|
+
et(u, f), ks(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
|
|
4601
4601
|
}
|
|
4602
|
-
return At(this.latestValues) &&
|
|
4602
|
+
return At(this.latestValues) && ks(a, this.latestValues), a;
|
|
4603
4603
|
}
|
|
4604
4604
|
setTargetDelta(r) {
|
|
4605
4605
|
this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -4615,7 +4615,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4615
4615
|
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
4616
4616
|
}
|
|
4617
4617
|
forceRelativeParentToResolveTarget() {
|
|
4618
|
-
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !==
|
|
4618
|
+
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== $.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
4619
4619
|
}
|
|
4620
4620
|
resolveTargetDelta(r = !1) {
|
|
4621
4621
|
var a;
|
|
@@ -4626,22 +4626,22 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4626
4626
|
return;
|
|
4627
4627
|
const { layout: f, layoutId: d } = this.options;
|
|
4628
4628
|
if (!(!this.layout || !(f || d))) {
|
|
4629
|
-
if (this.resolvedRelativeTargetAt =
|
|
4629
|
+
if (this.resolvedRelativeTargetAt = $.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
4630
4630
|
const p = this.getClosestProjectingParent();
|
|
4631
|
-
p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
4631
|
+
p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = I(), this.relativeTargetOrigin = I(), se(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), et(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4632
4632
|
}
|
|
4633
4633
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
4634
|
-
if (this.target || (this.target =
|
|
4634
|
+
if (this.target || (this.target = I(), this.targetWithTransforms = I()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Cu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : et(this.target, this.layout.layoutBox), po(this.target, this.targetDelta)) : et(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
4635
4635
|
this.attemptToResolveRelativeTarget = !1;
|
|
4636
4636
|
const p = this.getClosestProjectingParent();
|
|
4637
|
-
p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
4637
|
+
p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = I(), this.relativeTargetOrigin = I(), se(this.relativeTargetOrigin, this.target, p.target), et(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4638
4638
|
}
|
|
4639
4639
|
te && Rt.resolvedTargetDeltas++;
|
|
4640
4640
|
}
|
|
4641
4641
|
}
|
|
4642
4642
|
}
|
|
4643
4643
|
getClosestProjectingParent() {
|
|
4644
|
-
if (!(!this.parent ||
|
|
4644
|
+
if (!(!this.parent || En(this.parent.latestValues) || ho(this.parent.latestValues)))
|
|
4645
4645
|
return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
4646
4646
|
}
|
|
4647
4647
|
isProjecting() {
|
|
@@ -4651,20 +4651,20 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4651
4651
|
var r;
|
|
4652
4652
|
const a = this.getLead(), l = !!this.resumingFrom || this !== a;
|
|
4653
4653
|
let c = !0;
|
|
4654
|
-
if ((this.isProjectionDirty || !((r = this.parent) === null || r === void 0) && r.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt ===
|
|
4654
|
+
if ((this.isProjectionDirty || !((r = this.parent) === null || r === void 0) && r.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === $.timestamp && (c = !1), c)
|
|
4655
4655
|
return;
|
|
4656
4656
|
const { layout: u, layoutId: f } = this.options;
|
|
4657
4657
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || f))
|
|
4658
4658
|
return;
|
|
4659
4659
|
et(this.layoutCorrected, this.layout.layoutBox);
|
|
4660
4660
|
const d = this.treeScale.x, p = this.treeScale.y;
|
|
4661
|
-
Ou(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms =
|
|
4661
|
+
Ou(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = I());
|
|
4662
4662
|
const { target: m } = a;
|
|
4663
4663
|
if (!m) {
|
|
4664
4664
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
4665
4665
|
return;
|
|
4666
4666
|
}
|
|
4667
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (
|
|
4667
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Es(this.prevProjectionDelta.x, this.projectionDelta.x), Es(this.prevProjectionDelta.y, this.projectionDelta.y)), ie(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !_s(this.projectionDelta.x, this.prevProjectionDelta.x) || !_s(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), te && Rt.recalculatedProjection++;
|
|
4668
4668
|
}
|
|
4669
4669
|
hide() {
|
|
4670
4670
|
this.isVisible = !1;
|
|
@@ -4686,17 +4686,17 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4686
4686
|
setAnimationOrigin(r, a = !1) {
|
|
4687
4687
|
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = Nt();
|
|
4688
4688
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
4689
|
-
const d =
|
|
4689
|
+
const d = I(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, x = p !== m, T = this.getStack(), P = !T || T.members.length <= 1, y = !!(x && !P && this.options.crossfade === !0 && !this.path.some(Tf));
|
|
4690
4690
|
this.animationProgress = 0;
|
|
4691
4691
|
let v;
|
|
4692
4692
|
this.mixTargetDelta = (w) => {
|
|
4693
4693
|
const A = w / 1e3;
|
|
4694
|
-
|
|
4694
|
+
Us(f.x, r.x, A), Us(f.y, r.y, A), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (se(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), xf(this.relativeTarget, this.relativeTargetOrigin, d, A), v && Ju(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = I()), et(v, this.relativeTarget)), x && (this.animationValues = u, Hu(u, c, this.latestValues, A, y, P)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
|
|
4695
4695
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4696
4696
|
}
|
|
4697
4697
|
startAnimation(r) {
|
|
4698
|
-
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (mt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation =
|
|
4699
|
-
Ee.hasAnimatedSinceResize = !0, this.currentAnimation = of(0,
|
|
4698
|
+
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (mt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = L.update(() => {
|
|
4699
|
+
Ee.hasAnimatedSinceResize = !0, this.currentAnimation = of(0, Bs, {
|
|
4700
4700
|
...r,
|
|
4701
4701
|
onUpdate: (a) => {
|
|
4702
4702
|
this.mixTargetDelta(a), r.onUpdate && r.onUpdate(a);
|
|
@@ -4713,14 +4713,14 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4713
4713
|
r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
|
4714
4714
|
}
|
|
4715
4715
|
finishAnimation() {
|
|
4716
|
-
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(
|
|
4716
|
+
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Bs), this.currentAnimation.stop()), this.completeAnimation();
|
|
4717
4717
|
}
|
|
4718
4718
|
applyTransformsToTarget() {
|
|
4719
4719
|
const r = this.getLead();
|
|
4720
4720
|
let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = r;
|
|
4721
4721
|
if (!(!a || !l || !c)) {
|
|
4722
4722
|
if (this !== r && this.layout && c && So(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
|
|
4723
|
-
l = this.target ||
|
|
4723
|
+
l = this.target || I();
|
|
4724
4724
|
const f = Q(this.layout.layoutBox.x);
|
|
4725
4725
|
l.x.min = r.target.x.min, l.x.max = l.x.min + f;
|
|
4726
4726
|
const d = Q(this.layout.layoutBox.y);
|
|
@@ -4822,7 +4822,7 @@ function wo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
4822
4822
|
this.root.nodes.forEach((r) => {
|
|
4823
4823
|
var a;
|
|
4824
4824
|
return (a = r.currentAnimation) === null || a === void 0 ? void 0 : a.stop();
|
|
4825
|
-
}), this.root.nodes.forEach(
|
|
4825
|
+
}), this.root.nodes.forEach(Is), this.root.sharedNodes.clear();
|
|
4826
4826
|
}
|
|
4827
4827
|
};
|
|
4828
4828
|
}
|
|
@@ -4852,9 +4852,9 @@ function uf(t) {
|
|
|
4852
4852
|
if (f && !f.resumeFrom) {
|
|
4853
4853
|
const { snapshot: d, layout: p } = f;
|
|
4854
4854
|
if (d && p) {
|
|
4855
|
-
const m =
|
|
4855
|
+
const m = I();
|
|
4856
4856
|
se(m, n.layoutBox, d.layoutBox);
|
|
4857
|
-
const x =
|
|
4857
|
+
const x = I();
|
|
4858
4858
|
se(x, i, p.layoutBox), To(m, x) || (u = !0), f.options.layoutRoot && (t.relativeTarget = x, t.relativeTargetOrigin = m, t.relativeParent = f);
|
|
4859
4859
|
}
|
|
4860
4860
|
}
|
|
@@ -4882,7 +4882,7 @@ function hf(t) {
|
|
|
4882
4882
|
function df(t) {
|
|
4883
4883
|
t.clearSnapshot();
|
|
4884
4884
|
}
|
|
4885
|
-
function
|
|
4885
|
+
function Is(t) {
|
|
4886
4886
|
t.clearMeasurements();
|
|
4887
4887
|
}
|
|
4888
4888
|
function pf(t) {
|
|
@@ -4892,7 +4892,7 @@ function mf(t) {
|
|
|
4892
4892
|
const { visualElement: e } = t.options;
|
|
4893
4893
|
e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
|
|
4894
4894
|
}
|
|
4895
|
-
function
|
|
4895
|
+
function Ns(t) {
|
|
4896
4896
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
|
|
4897
4897
|
}
|
|
4898
4898
|
function gf(t) {
|
|
@@ -4907,14 +4907,14 @@ function vf(t) {
|
|
|
4907
4907
|
function Pf(t) {
|
|
4908
4908
|
t.removeLeadSnapshot();
|
|
4909
4909
|
}
|
|
4910
|
-
function
|
|
4910
|
+
function Us(t, e, n) {
|
|
4911
4911
|
t.translate = F(e.translate, 0, n), t.scale = F(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
|
|
4912
4912
|
}
|
|
4913
|
-
function
|
|
4913
|
+
function Ws(t, e, n, i) {
|
|
4914
4914
|
t.min = F(e.min, n.min, i), t.max = F(e.max, n.max, i);
|
|
4915
4915
|
}
|
|
4916
4916
|
function xf(t, e, n, i) {
|
|
4917
|
-
|
|
4917
|
+
Ws(t.x, e.x, n.x, i), Ws(t.y, e.y, n.y, i);
|
|
4918
4918
|
}
|
|
4919
4919
|
function Tf(t) {
|
|
4920
4920
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
@@ -4922,15 +4922,15 @@ function Tf(t) {
|
|
|
4922
4922
|
const bf = {
|
|
4923
4923
|
duration: 0.45,
|
|
4924
4924
|
ease: [0.4, 0, 0.1, 1]
|
|
4925
|
-
},
|
|
4926
|
-
function
|
|
4927
|
-
t.min =
|
|
4925
|
+
}, $s = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ks = $s("applewebkit/") && !$s("chrome/") ? Math.round : G;
|
|
4926
|
+
function Gs(t) {
|
|
4927
|
+
t.min = Ks(t.min), t.max = Ks(t.max);
|
|
4928
4928
|
}
|
|
4929
4929
|
function wf(t) {
|
|
4930
|
-
|
|
4930
|
+
Gs(t.x), Gs(t.y);
|
|
4931
4931
|
}
|
|
4932
4932
|
function So(t, e, n) {
|
|
4933
|
-
return t === "position" || t === "preserve-aspect" && !Su(
|
|
4933
|
+
return t === "position" || t === "preserve-aspect" && !Su(Fs(e), Fs(n), 0.2);
|
|
4934
4934
|
}
|
|
4935
4935
|
function Sf(t) {
|
|
4936
4936
|
var e;
|
|
@@ -4970,21 +4970,21 @@ const Cf = wo({
|
|
|
4970
4970
|
ProjectionNode: Co,
|
|
4971
4971
|
MeasureLayout: yo
|
|
4972
4972
|
}
|
|
4973
|
-
},
|
|
4973
|
+
}, Mn = { current: null }, Ao = { current: !1 };
|
|
4974
4974
|
function Rf() {
|
|
4975
|
-
if (Ao.current = !0, !!
|
|
4975
|
+
if (Ao.current = !0, !!_n)
|
|
4976
4976
|
if (window.matchMedia) {
|
|
4977
|
-
const t = window.matchMedia("(prefers-reduced-motion)"), e = () =>
|
|
4977
|
+
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Mn.current = t.matches;
|
|
4978
4978
|
t.addListener(e), e();
|
|
4979
4979
|
} else
|
|
4980
|
-
|
|
4980
|
+
Mn.current = !1;
|
|
4981
4981
|
}
|
|
4982
4982
|
function Vf(t, e, n) {
|
|
4983
4983
|
for (const i in e) {
|
|
4984
4984
|
const s = e[i], o = n[i];
|
|
4985
|
-
if (
|
|
4986
|
-
t.addValue(i, s), process.env.NODE_ENV === "development" &&
|
|
4987
|
-
else if (
|
|
4985
|
+
if (Y(s))
|
|
4986
|
+
t.addValue(i, s), process.env.NODE_ENV === "development" && ci(s.version === "11.3.19", `Attempting to mix Framer Motion versions ${s.version} with 11.3.19 may not work as expected.`);
|
|
4987
|
+
else if (Y(o))
|
|
4988
4988
|
t.addValue(i, ue(s, { owner: t }));
|
|
4989
4989
|
else if (o !== s)
|
|
4990
4990
|
if (t.hasValue(i)) {
|
|
@@ -4999,7 +4999,7 @@ function Vf(t, e, n) {
|
|
|
4999
4999
|
e[i] === void 0 && t.removeValue(i);
|
|
5000
5000
|
return e;
|
|
5001
5001
|
}
|
|
5002
|
-
const
|
|
5002
|
+
const Hs = /* @__PURE__ */ new WeakMap(), Ef = [...kr, z, xt], Df = (t) => Ef.find(Mr(t)), zs = [
|
|
5003
5003
|
"AnimationStart",
|
|
5004
5004
|
"AnimationComplete",
|
|
5005
5005
|
"Update",
|
|
@@ -5007,7 +5007,7 @@ const zs = /* @__PURE__ */ new WeakMap(), Ef = [...kr, H, xt], Df = (t) => Ef.fi
|
|
|
5007
5007
|
"LayoutMeasure",
|
|
5008
5008
|
"LayoutAnimationStart",
|
|
5009
5009
|
"LayoutAnimationComplete"
|
|
5010
|
-
], Mf =
|
|
5010
|
+
], Mf = Nn.length;
|
|
5011
5011
|
class kf {
|
|
5012
5012
|
/**
|
|
5013
5013
|
* This method takes React props and returns found MotionValues. For example, HTML
|
|
@@ -5020,24 +5020,24 @@ class kf {
|
|
|
5020
5020
|
return {};
|
|
5021
5021
|
}
|
|
5022
5022
|
constructor({ parent: e, props: n, presenceContext: i, reducedMotionConfig: s, blockInitialAnimation: o, visualState: r }, a = {}) {
|
|
5023
|
-
this.applyWillChange = !1, this.resolveKeyframes = (d, p, m, x) => new this.KeyframeResolver(d, p, m, x, this), this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver =
|
|
5023
|
+
this.applyWillChange = !1, this.resolveKeyframes = (d, p, m, x) => new this.KeyframeResolver(d, p, m, x, this), this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = Qn, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
5024
5024
|
this.isRenderScheduled = !1, this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
5025
5025
|
}, this.isRenderScheduled = !1, this.scheduleRender = () => {
|
|
5026
|
-
this.isRenderScheduled || (this.isRenderScheduled = !0,
|
|
5026
|
+
this.isRenderScheduled || (this.isRenderScheduled = !0, L.render(this.render, !1, !0));
|
|
5027
5027
|
};
|
|
5028
5028
|
const { latestValues: l, renderState: c } = r;
|
|
5029
5029
|
this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = Ue(n), this.isVariantNode = ar(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
5030
5030
|
const { willChange: u, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
5031
5031
|
for (const d in f) {
|
|
5032
5032
|
const p = f[d];
|
|
5033
|
-
l[d] !== void 0 &&
|
|
5033
|
+
l[d] !== void 0 && Y(p) && p.set(l[d], !1);
|
|
5034
5034
|
}
|
|
5035
5035
|
}
|
|
5036
5036
|
mount(e) {
|
|
5037
|
-
this.current = e,
|
|
5037
|
+
this.current = e, Hs.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), Ao.current || Rf(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Mn.current, process.env.NODE_ENV !== "production" && ci(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
5038
5038
|
}
|
|
5039
5039
|
unmount() {
|
|
5040
|
-
|
|
5040
|
+
Hs.delete(this.current), this.projection && this.projection.unmount(), mt(this.notifyUpdate), mt(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
5041
5041
|
for (const e in this.events)
|
|
5042
5042
|
this.events[e].clear();
|
|
5043
5043
|
for (const e in this.features) {
|
|
@@ -5048,7 +5048,7 @@ class kf {
|
|
|
5048
5048
|
}
|
|
5049
5049
|
bindToMotionValue(e, n) {
|
|
5050
5050
|
const i = Tt.has(e), s = n.on("change", (r) => {
|
|
5051
|
-
this.latestValues[e] = r, this.props.onUpdate &&
|
|
5051
|
+
this.latestValues[e] = r, this.props.onUpdate && L.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0);
|
|
5052
5052
|
}), o = n.on("renderRequest", this.scheduleRender);
|
|
5053
5053
|
this.valueSubscriptions.set(e, () => {
|
|
5054
5054
|
s(), o(), n.owner && n.stop();
|
|
@@ -5079,7 +5079,7 @@ class kf {
|
|
|
5079
5079
|
* removed with a re-render to work.
|
|
5080
5080
|
*/
|
|
5081
5081
|
measureViewportBox() {
|
|
5082
|
-
return this.current ? this.measureInstanceViewportBox(this.current, this.props) :
|
|
5082
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : I();
|
|
5083
5083
|
}
|
|
5084
5084
|
getStaticValue(e) {
|
|
5085
5085
|
return this.latestValues[e];
|
|
@@ -5093,8 +5093,8 @@ class kf {
|
|
|
5093
5093
|
*/
|
|
5094
5094
|
update(e, n) {
|
|
5095
5095
|
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
|
|
5096
|
-
for (let i = 0; i <
|
|
5097
|
-
const s =
|
|
5096
|
+
for (let i = 0; i < zs.length; i++) {
|
|
5097
|
+
const s = zs[i];
|
|
5098
5098
|
this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
|
|
5099
5099
|
const o = "on" + s, r = e[o];
|
|
5100
5100
|
r && (this.propEventSubscriptions[s] = this.on(s, r));
|
|
@@ -5131,7 +5131,7 @@ class kf {
|
|
|
5131
5131
|
}
|
|
5132
5132
|
const n = {};
|
|
5133
5133
|
for (let i = 0; i < Mf; i++) {
|
|
5134
|
-
const s =
|
|
5134
|
+
const s = Nn[i], o = this.props[s];
|
|
5135
5135
|
(oe(o) || o === !1) && (n[s] = o);
|
|
5136
5136
|
}
|
|
5137
5137
|
return n;
|
|
@@ -5179,7 +5179,7 @@ class kf {
|
|
|
5179
5179
|
readValue(e, n) {
|
|
5180
5180
|
var i;
|
|
5181
5181
|
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);
|
|
5182
|
-
return s != null && (typeof s == "string" && (Er(s) || Vr(s)) ? s = parseFloat(s) : !Df(s) && xt.test(n) && (s = Nr(e, n)), this.setBaseTarget(e,
|
|
5182
|
+
return s != null && (typeof s == "string" && (Er(s) || Vr(s)) ? s = parseFloat(s) : !Df(s) && xt.test(n) && (s = Nr(e, n)), this.setBaseTarget(e, Y(s) ? s.get() : s)), Y(s) ? s.get() : s;
|
|
5183
5183
|
}
|
|
5184
5184
|
/**
|
|
5185
5185
|
* Set the base target to later animate back to. This is currently
|
|
@@ -5197,16 +5197,16 @@ class kf {
|
|
|
5197
5197
|
const { initial: i } = this.props;
|
|
5198
5198
|
let s;
|
|
5199
5199
|
if (typeof i == "string" || typeof i == "object") {
|
|
5200
|
-
const r =
|
|
5200
|
+
const r = qn(this.props, i, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom);
|
|
5201
5201
|
r && (s = r[e]);
|
|
5202
5202
|
}
|
|
5203
5203
|
if (i && s !== void 0)
|
|
5204
5204
|
return s;
|
|
5205
5205
|
const o = this.getBaseTargetFromProps(this.props, e);
|
|
5206
|
-
return o !== void 0 && !
|
|
5206
|
+
return o !== void 0 && !Y(o) ? o : this.initialValues[e] !== void 0 && s === void 0 ? void 0 : this.baseTarget[e];
|
|
5207
5207
|
}
|
|
5208
5208
|
on(e, n) {
|
|
5209
|
-
return this.events[e] || (this.events[e] = new
|
|
5209
|
+
return this.events[e] || (this.events[e] = new li()), this.events[e].add(n);
|
|
5210
5210
|
}
|
|
5211
5211
|
notify(e, ...n) {
|
|
5212
5212
|
this.events[e] && this.events[e].notify(...n);
|
|
@@ -5235,7 +5235,7 @@ class Of extends Ro {
|
|
|
5235
5235
|
}
|
|
5236
5236
|
readValueFromInstance(e, n) {
|
|
5237
5237
|
if (Tt.has(n)) {
|
|
5238
|
-
const i =
|
|
5238
|
+
const i = ei(n);
|
|
5239
5239
|
return i && i.default || 0;
|
|
5240
5240
|
} else {
|
|
5241
5241
|
const i = Lf(e), s = (ur(n) ? i.getPropertyValue(n) : i[n]) || 0;
|
|
@@ -5246,29 +5246,29 @@ class Of extends Ro {
|
|
|
5246
5246
|
return mo(e, n);
|
|
5247
5247
|
}
|
|
5248
5248
|
build(e, n, i) {
|
|
5249
|
-
|
|
5249
|
+
Gn(e, n, i.transformTemplate);
|
|
5250
5250
|
}
|
|
5251
5251
|
scrapeMotionValuesFromProps(e, n, i) {
|
|
5252
|
-
return
|
|
5252
|
+
return Xn(e, n, i);
|
|
5253
5253
|
}
|
|
5254
5254
|
handleChildMotionValue() {
|
|
5255
5255
|
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
|
|
5256
5256
|
const { children: e } = this.props;
|
|
5257
|
-
|
|
5257
|
+
Y(e) && (this.childSubscription = e.on("change", (n) => {
|
|
5258
5258
|
this.current && (this.current.textContent = `${n}`);
|
|
5259
5259
|
}));
|
|
5260
5260
|
}
|
|
5261
5261
|
}
|
|
5262
5262
|
class jf extends Ro {
|
|
5263
5263
|
constructor() {
|
|
5264
|
-
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox =
|
|
5264
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = I;
|
|
5265
5265
|
}
|
|
5266
5266
|
getBaseTargetFromProps(e, n) {
|
|
5267
5267
|
return e[n];
|
|
5268
5268
|
}
|
|
5269
5269
|
readValueFromInstance(e, n) {
|
|
5270
5270
|
if (Tt.has(n)) {
|
|
5271
|
-
const i =
|
|
5271
|
+
const i = ei(n);
|
|
5272
5272
|
return i && i.default || 0;
|
|
5273
5273
|
}
|
|
5274
5274
|
return n = gr.has(n) ? n : Ne(n), e.getAttribute(n);
|
|
@@ -5277,16 +5277,16 @@ class jf extends Ro {
|
|
|
5277
5277
|
return vr(e, n, i);
|
|
5278
5278
|
}
|
|
5279
5279
|
build(e, n, i) {
|
|
5280
|
-
|
|
5280
|
+
zn(e, n, this.isSVGTag, i.transformTemplate);
|
|
5281
5281
|
}
|
|
5282
5282
|
renderInstance(e, n, i, s) {
|
|
5283
5283
|
yr(e, n, i, s);
|
|
5284
5284
|
}
|
|
5285
5285
|
mount(e) {
|
|
5286
|
-
this.isSVGTag =
|
|
5286
|
+
this.isSVGTag = Yn(e.tagName), super.mount(e);
|
|
5287
5287
|
}
|
|
5288
5288
|
}
|
|
5289
|
-
const Ff = (t, e) =>
|
|
5289
|
+
const Ff = (t, e) => Wn(t) ? new jf(e) : new Of(e, {
|
|
5290
5290
|
allowProjection: t !== Qs
|
|
5291
5291
|
}), _f = {
|
|
5292
5292
|
layout: {
|
|
@@ -5299,7 +5299,7 @@ const Ff = (t, e) => $n(t) ? new jf(e) : new Of(e, {
|
|
|
5299
5299
|
...Af,
|
|
5300
5300
|
..._f
|
|
5301
5301
|
}, If = /* @__PURE__ */ Oa((t, e) => dl(t, e, Bf, Ff));
|
|
5302
|
-
class Nf extends
|
|
5302
|
+
class Nf extends kn.Component {
|
|
5303
5303
|
getSnapshotBeforeUpdate(e) {
|
|
5304
5304
|
const n = this.props.childRef.current;
|
|
5305
5305
|
if (n && e.isPresent && !this.props.isPresent) {
|
|
@@ -5318,12 +5318,12 @@ class Nf extends Ln.Component {
|
|
|
5318
5318
|
}
|
|
5319
5319
|
}
|
|
5320
5320
|
function Uf({ children: t, isPresent: e }) {
|
|
5321
|
-
const n =
|
|
5321
|
+
const n = On(), i = st(null), s = st({
|
|
5322
5322
|
width: 0,
|
|
5323
5323
|
height: 0,
|
|
5324
5324
|
top: 0,
|
|
5325
5325
|
left: 0
|
|
5326
|
-
}), { nonce: o } =
|
|
5326
|
+
}), { nonce: o } = K(Fn);
|
|
5327
5327
|
return Js(() => {
|
|
5328
5328
|
const { width: r, height: a, top: l, left: c } = s.current;
|
|
5329
5329
|
if (e || !i.current || !r || !a)
|
|
@@ -5341,10 +5341,10 @@ function Uf({ children: t, isPresent: e }) {
|
|
|
5341
5341
|
`), () => {
|
|
5342
5342
|
document.head.removeChild(u);
|
|
5343
5343
|
};
|
|
5344
|
-
}, [e]),
|
|
5344
|
+
}, [e]), _.jsx(Nf, { isPresent: e, childRef: i, sizeRef: s, children: kn.cloneElement(t, { ref: i }) });
|
|
5345
5345
|
}
|
|
5346
5346
|
const Wf = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: s, presenceAffectsLayout: o, mode: r }) => {
|
|
5347
|
-
const a =
|
|
5347
|
+
const a = Zn($f), l = On(), c = Mt(
|
|
5348
5348
|
() => ({
|
|
5349
5349
|
id: l,
|
|
5350
5350
|
initial: e,
|
|
@@ -5368,15 +5368,15 @@ const Wf = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom:
|
|
|
5368
5368
|
);
|
|
5369
5369
|
return Mt(() => {
|
|
5370
5370
|
a.forEach((u, f) => a.set(f, !1));
|
|
5371
|
-
}, [n]),
|
|
5371
|
+
}, [n]), kn.useEffect(() => {
|
|
5372
5372
|
!n && !a.size && i && i();
|
|
5373
|
-
}, [n]), r === "popLayout" && (t =
|
|
5373
|
+
}, [n]), r === "popLayout" && (t = _.jsx(Uf, { isPresent: n, children: t })), _.jsx(Ie.Provider, { value: c, children: t });
|
|
5374
5374
|
};
|
|
5375
5375
|
function $f() {
|
|
5376
5376
|
return /* @__PURE__ */ new Map();
|
|
5377
5377
|
}
|
|
5378
5378
|
const Ce = (t) => t.key || "";
|
|
5379
|
-
function
|
|
5379
|
+
function Ys(t) {
|
|
5380
5380
|
const e = [];
|
|
5381
5381
|
return ra.forEach(t, (n) => {
|
|
5382
5382
|
oa(n) && e.push(n);
|
|
@@ -5384,7 +5384,7 @@ function Xs(t) {
|
|
|
5384
5384
|
}
|
|
5385
5385
|
const Kf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExitComplete: s, presenceAffectsLayout: o = !0, mode: r = "sync" }) => {
|
|
5386
5386
|
pt(!e, "Replace exitBeforeEnter with mode='wait'");
|
|
5387
|
-
const a = Mt(() =>
|
|
5387
|
+
const a = Mt(() => Ys(t), [t]), l = a.map(Ce), c = st(!0), u = st(a), f = Zn(() => /* @__PURE__ */ new Map()), [d, p] = _t(a), [m, x] = _t(a);
|
|
5388
5388
|
er(() => {
|
|
5389
5389
|
c.current = !1, u.current = a;
|
|
5390
5390
|
for (let y = 0; y < m.length; y++) {
|
|
@@ -5399,12 +5399,12 @@ const Kf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
|
|
|
5399
5399
|
const w = m[v], A = Ce(w);
|
|
5400
5400
|
l.includes(A) || (y.splice(v, 0, w), T.push(w));
|
|
5401
5401
|
}
|
|
5402
|
-
r === "wait" && T.length && (y = T), x(
|
|
5402
|
+
r === "wait" && T.length && (y = T), x(Ys(y)), p(a);
|
|
5403
5403
|
return;
|
|
5404
5404
|
}
|
|
5405
5405
|
process.env.NODE_ENV !== "production" && r === "wait" && m.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.`);
|
|
5406
|
-
const { forceRender: P } =
|
|
5407
|
-
return
|
|
5406
|
+
const { forceRender: P } = K(Un);
|
|
5407
|
+
return _.jsx(_.Fragment, { children: m.map((y) => {
|
|
5408
5408
|
const v = Ce(y), w = a === m || l.includes(v), A = () => {
|
|
5409
5409
|
if (f.has(v))
|
|
5410
5410
|
f.set(v, !0);
|
|
@@ -5415,29 +5415,29 @@ const Kf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
|
|
|
5415
5415
|
q || (j = !1);
|
|
5416
5416
|
}), j && (P == null || P(), x(u.current), s && s());
|
|
5417
5417
|
};
|
|
5418
|
-
return
|
|
5418
|
+
return _.jsx(Wf, { isPresent: w, initial: !c.current || i ? void 0 : !1, custom: w ? void 0 : n, presenceAffectsLayout: o, mode: r, onExitComplete: w ? void 0 : A, children: y }, v);
|
|
5419
5419
|
}) });
|
|
5420
5420
|
};
|
|
5421
5421
|
function De(t) {
|
|
5422
5422
|
var e = new Error(t);
|
|
5423
5423
|
return e.source = "ulid", e;
|
|
5424
5424
|
}
|
|
5425
|
-
var
|
|
5425
|
+
var ui = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", re = ui.length, Xs = Math.pow(2, 48) - 1, Gf = 10, Hf = 16;
|
|
5426
5426
|
function zf(t) {
|
|
5427
5427
|
var e = Math.floor(t() * re);
|
|
5428
|
-
return e === re && (e = re - 1),
|
|
5428
|
+
return e === re && (e = re - 1), ui.charAt(e);
|
|
5429
5429
|
}
|
|
5430
5430
|
function Yf(t, e) {
|
|
5431
5431
|
if (isNaN(t))
|
|
5432
5432
|
throw new Error(t + " must be a number");
|
|
5433
|
-
if (t >
|
|
5434
|
-
throw De("cannot encode time greater than " +
|
|
5433
|
+
if (t > Xs)
|
|
5434
|
+
throw De("cannot encode time greater than " + Xs);
|
|
5435
5435
|
if (t < 0)
|
|
5436
5436
|
throw De("time must be positive");
|
|
5437
5437
|
if (Number.isInteger(t) === !1)
|
|
5438
5438
|
throw De("time must be an integer");
|
|
5439
5439
|
for (var n = void 0, i = ""; e > 0; e--)
|
|
5440
|
-
n = t % re, i =
|
|
5440
|
+
n = t % re, i = ui.charAt(n) + i, t = (t - n) / re;
|
|
5441
5441
|
return i;
|
|
5442
5442
|
}
|
|
5443
5443
|
function Xf(t, e) {
|
|
@@ -5478,7 +5478,7 @@ function Zf(t) {
|
|
|
5478
5478
|
};
|
|
5479
5479
|
}
|
|
5480
5480
|
var Jf = Zf(), Vt = /* @__PURE__ */ ((t) => (t.Escape = "Escape", t.Enter = "Enter", t.Space = "Space", t.Tab = "Tab", t.ShiftAndTab = "Shift+Tab", t.ArrowUp = "ArrowUp", t.ArrowDown = "ArrowDown", t.ArrowLeft = "ArrowLeft", t.ArrowRight = "ArrowRight", t))(Vt || {});
|
|
5481
|
-
const
|
|
5481
|
+
const qs = ({
|
|
5482
5482
|
onMousedown: t
|
|
5483
5483
|
}) => (ct(() => (document.addEventListener("mousedown", t), () => {
|
|
5484
5484
|
document.removeEventListener("mousedown", t);
|
|
@@ -5486,19 +5486,18 @@ const Zs = ({
|
|
|
5486
5486
|
onPickerHide: t
|
|
5487
5487
|
}) => (ct(() => () => {
|
|
5488
5488
|
t();
|
|
5489
|
-
}, []), null), th = "acrool-react-
|
|
5490
|
-
root: th,
|
|
5489
|
+
}, []), null), th = "acrool-react-picker__main-el", eh = "acrool-react-picker__picker-el", Zs = {
|
|
5491
5490
|
"main-el": "acrool-react-picker__main-el",
|
|
5492
|
-
mainEl:
|
|
5491
|
+
mainEl: th,
|
|
5493
5492
|
"picker-el": "acrool-react-picker__picker-el",
|
|
5494
|
-
pickerEl:
|
|
5493
|
+
pickerEl: eh
|
|
5495
5494
|
}, Vo = (t, e) => (n) => {
|
|
5496
5495
|
e.current = n, t && (typeof t == "function" ? t(n) : t && (t.current = n));
|
|
5497
|
-
},
|
|
5496
|
+
}, nh = "acrool-react-picker__motion-animation-wrapper", ih = {
|
|
5498
5497
|
"motion-animation-wrapper": "acrool-react-picker__motion-animation-wrapper",
|
|
5499
|
-
motionAnimationWrapper:
|
|
5498
|
+
motionAnimationWrapper: nh
|
|
5500
5499
|
}, Ae = /* @__PURE__ */ new WeakMap();
|
|
5501
|
-
function
|
|
5500
|
+
function sh(t) {
|
|
5502
5501
|
if (Ae.has(t))
|
|
5503
5502
|
return Ae.get(t);
|
|
5504
5503
|
let e = t.parentElement;
|
|
@@ -5510,7 +5509,7 @@ function rh(t) {
|
|
|
5510
5509
|
}
|
|
5511
5510
|
return Ae.set(t, window), window;
|
|
5512
5511
|
}
|
|
5513
|
-
const
|
|
5512
|
+
const rh = (t, e, n) => {
|
|
5514
5513
|
var w;
|
|
5515
5514
|
const i = (w = t.current) == null ? void 0 : w.firstChild, s = e.current;
|
|
5516
5515
|
if (!i || !s)
|
|
@@ -5520,7 +5519,7 @@ const oh = (t, e, n) => {
|
|
|
5520
5519
|
const T = o.width, P = r.left + T < l, y = r.right - T > 0;
|
|
5521
5520
|
let v = Jt.left;
|
|
5522
5521
|
!P && y ? v = Jt.right : !P && !y && (v = Jt.left), n(m), s.style.top = m === at.bottom ? `${r.bottom + c}px` : `${r.top + c - x}px`, s.style.left = v === Jt.left ? `${r.left + u}px` : `${r.right + u - T}px`, s.style.minWidth = `${r.width}px`, s.style.height = `${x}px`, s.style.transformOrigin = m === at.bottom ? "top" : "bottom", s.style.flexDirection = m === at.bottom ? "column" : "column-reverse";
|
|
5523
|
-
},
|
|
5522
|
+
}, oh = {
|
|
5524
5523
|
variants: {
|
|
5525
5524
|
initial: { position: "absolute", zIndex: 999, opacity: 0, transition: { type: "spring" } },
|
|
5526
5525
|
show: { opacity: 1, transition: { type: "just" } },
|
|
@@ -5535,42 +5534,43 @@ const oh = (t, e, n) => {
|
|
|
5535
5534
|
duration: 0.05
|
|
5536
5535
|
}
|
|
5537
5536
|
}
|
|
5538
|
-
},
|
|
5537
|
+
}, ah = ({
|
|
5539
5538
|
children: t,
|
|
5540
5539
|
isDebug: e = !1,
|
|
5541
5540
|
anchorRef: n,
|
|
5542
5541
|
onKeyDown: i
|
|
5543
5542
|
}, s) => {
|
|
5544
5543
|
const o = st(null), r = da(), a = it(() => {
|
|
5545
|
-
|
|
5544
|
+
rh(n, o, r.setVertical);
|
|
5546
5545
|
}, [r.setVertical]);
|
|
5547
5546
|
return ct(() => {
|
|
5548
5547
|
if (n.current && o.current) {
|
|
5549
|
-
const l =
|
|
5548
|
+
const l = sh(n.current);
|
|
5550
5549
|
return l && (l.addEventListener("scroll", a), window.addEventListener("resize", a)), window.requestAnimationFrame(() => {
|
|
5551
5550
|
o.current && (o.current.style.display = "flex", a());
|
|
5552
5551
|
}), () => {
|
|
5553
5552
|
l && (l.removeEventListener("scroll", a), window.removeEventListener("resize", a));
|
|
5554
5553
|
};
|
|
5555
5554
|
}
|
|
5556
|
-
}, [r.isVisible]), /* @__PURE__ */
|
|
5555
|
+
}, [r.isVisible]), /* @__PURE__ */ _.jsx(
|
|
5557
5556
|
If.div,
|
|
5558
5557
|
{
|
|
5559
5558
|
ref: Vo(s, o),
|
|
5560
5559
|
transition: { type: "spring", duration: 0.2 },
|
|
5561
5560
|
style: { display: "none" },
|
|
5562
|
-
className:
|
|
5561
|
+
className: ih.motionAnimationWrapper,
|
|
5563
5562
|
"data-debug": e ? "" : void 0,
|
|
5564
|
-
variants:
|
|
5563
|
+
variants: oh.variants,
|
|
5565
5564
|
initial: "initial",
|
|
5566
5565
|
animate: "show",
|
|
5567
5566
|
exit: "exit",
|
|
5568
5567
|
tabIndex: 0,
|
|
5568
|
+
onKeyDown: i,
|
|
5569
5569
|
children: t
|
|
5570
5570
|
}
|
|
5571
5571
|
);
|
|
5572
|
-
},
|
|
5573
|
-
function
|
|
5572
|
+
}, lh = Me(ah);
|
|
5573
|
+
function ph(t, e, n) {
|
|
5574
5574
|
const i = Me(t);
|
|
5575
5575
|
return Me((o, r) => {
|
|
5576
5576
|
const [a, l] = _t(!1), [c, u] = _t(!1), [f, d] = _t(at.bottom), [p, m] = _t(), x = st(null), T = st(null), P = st(null), y = st(p), v = (n == null ? void 0 : n.isEnableClickOutSiteHidden) !== !1, w = (n == null ? void 0 : n.isEnableHideSave) !== !1;
|
|
@@ -5596,26 +5596,30 @@ function mh(t, e, n) {
|
|
|
5596
5596
|
R(M);
|
|
5597
5597
|
break;
|
|
5598
5598
|
}
|
|
5599
|
-
}, [a]), j = it((M) => (
|
|
5600
|
-
|
|
5599
|
+
}, [a]), j = it((M) => (D) => {
|
|
5600
|
+
var U;
|
|
5601
|
+
M && (D.stopPropagation(), D.preventDefault(), (U = T.current) == null || U.focus(), l(!1));
|
|
5601
5602
|
}, []), q = it((M) => {
|
|
5602
|
-
|
|
5603
|
+
var D;
|
|
5604
|
+
(D = T.current) == null || D.focus(), l(!1), u(!1);
|
|
5603
5605
|
}, []), R = it((M) => {
|
|
5604
5606
|
M.preventDefault(), l(!0);
|
|
5605
|
-
}, []),
|
|
5607
|
+
}, []), W = it(() => {
|
|
5606
5608
|
requestAnimationFrame(() => {
|
|
5607
|
-
|
|
5609
|
+
var M;
|
|
5610
|
+
(M = T.current) == null || M.focus(), l(!1);
|
|
5608
5611
|
});
|
|
5609
|
-
}, []),
|
|
5612
|
+
}, []), H = it(() => {
|
|
5610
5613
|
l((M) => (M && requestAnimationFrame(() => {
|
|
5611
|
-
|
|
5614
|
+
var D;
|
|
5615
|
+
(D = T.current) == null || D.focus();
|
|
5612
5616
|
}), !M));
|
|
5613
5617
|
}, []), rt = it((M) => {
|
|
5614
5618
|
!x.current && P.current && !P.current.contains(M.target) && u(!1);
|
|
5615
5619
|
}, []), wt = it((M) => {
|
|
5616
|
-
var
|
|
5617
|
-
const
|
|
5618
|
-
|
|
5620
|
+
var U;
|
|
5621
|
+
const D = (U = x.current) == null ? void 0 : U.firstChild;
|
|
5622
|
+
D && !D.contains(M.target) && P.current && !P.current.contains(M.target) && (l(!1), u(!1));
|
|
5619
5623
|
}, []), Z = it(() => {
|
|
5620
5624
|
if (typeof (o == null ? void 0 : o.onChange) > "u") {
|
|
5621
5625
|
gt.warning("@acrool/react-picker", "createPicker component props onChange is undefined, is no call");
|
|
@@ -5623,13 +5627,13 @@ function mh(t, e, n) {
|
|
|
5623
5627
|
}
|
|
5624
5628
|
typeof y.current < "u" && w && JSON.stringify(p) !== JSON.stringify(y.current) && o.onChange(y.current);
|
|
5625
5629
|
}, [p, o.onChange, w]);
|
|
5626
|
-
return /* @__PURE__ */
|
|
5627
|
-
|
|
5630
|
+
return /* @__PURE__ */ _.jsx(
|
|
5631
|
+
jn.Provider,
|
|
5628
5632
|
{
|
|
5629
5633
|
value: {
|
|
5630
|
-
hide:
|
|
5634
|
+
hide: W,
|
|
5631
5635
|
show: () => l(!0),
|
|
5632
|
-
toggle:
|
|
5636
|
+
toggle: H,
|
|
5633
5637
|
isVisible: a,
|
|
5634
5638
|
inputFocus: () => u(!0),
|
|
5635
5639
|
inputBlur: () => u(!1),
|
|
@@ -5639,41 +5643,43 @@ function mh(t, e, n) {
|
|
|
5639
5643
|
vertical: f,
|
|
5640
5644
|
setVertical: d
|
|
5641
5645
|
},
|
|
5642
|
-
children: /* @__PURE__ */
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5646
|
+
children: /* @__PURE__ */ _.jsxs(_.Fragment, { children: [
|
|
5647
|
+
/* @__PURE__ */ _.jsx(
|
|
5648
|
+
"div",
|
|
5649
|
+
{
|
|
5650
|
+
ref: P,
|
|
5651
|
+
className: Zs.mainEl,
|
|
5652
|
+
onKeyDown: A,
|
|
5653
|
+
children: /* @__PURE__ */ _.jsx(
|
|
5649
5654
|
i,
|
|
5650
5655
|
{
|
|
5651
5656
|
...o,
|
|
5652
5657
|
ref: Vo(r, T)
|
|
5653
5658
|
}
|
|
5654
|
-
)
|
|
5655
|
-
|
|
5656
|
-
|
|
5659
|
+
)
|
|
5660
|
+
}
|
|
5661
|
+
),
|
|
5662
|
+
/* @__PURE__ */ _.jsx(Kf, { children: a && /* @__PURE__ */ _.jsx(
|
|
5663
|
+
tr,
|
|
5664
|
+
{
|
|
5665
|
+
id: `acrool-react-picker-${Jf().toLowerCase()}`,
|
|
5666
|
+
className: Zs.pickerEl,
|
|
5667
|
+
children: /* @__PURE__ */ _.jsx(
|
|
5668
|
+
lh,
|
|
5657
5669
|
{
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
ref: x,
|
|
5664
|
-
anchorRef: P,
|
|
5665
|
-
isDebug: n == null ? void 0 : n.isDebug,
|
|
5666
|
-
children: /* @__PURE__ */ I.jsx(e, { ...o })
|
|
5667
|
-
}
|
|
5668
|
-
)
|
|
5670
|
+
ref: x,
|
|
5671
|
+
anchorRef: P,
|
|
5672
|
+
isDebug: n == null ? void 0 : n.isDebug,
|
|
5673
|
+
onKeyDown: A,
|
|
5674
|
+
children: /* @__PURE__ */ _.jsx(e, { ...o })
|
|
5669
5675
|
}
|
|
5670
|
-
)
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
}
|
|
5676
|
-
)
|
|
5676
|
+
)
|
|
5677
|
+
}
|
|
5678
|
+
) }),
|
|
5679
|
+
a && /* @__PURE__ */ _.jsx(Qf, { onPickerHide: Z }),
|
|
5680
|
+
v && a && /* @__PURE__ */ _.jsx(qs, { onMousedown: wt }),
|
|
5681
|
+
c && /* @__PURE__ */ _.jsx(qs, { onMousedown: rt })
|
|
5682
|
+
] })
|
|
5677
5683
|
}
|
|
5678
5684
|
);
|
|
5679
5685
|
});
|
|
@@ -5681,8 +5687,8 @@ function mh(t, e, n) {
|
|
|
5681
5687
|
export {
|
|
5682
5688
|
Jt as EHorizontal,
|
|
5683
5689
|
at as EVertical,
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5690
|
+
fh as PickerProviderConsumer,
|
|
5691
|
+
jn as PickerProviderContext,
|
|
5692
|
+
ph as createPicker,
|
|
5687
5693
|
da as usePicker
|
|
5688
5694
|
};
|