@acrool/react-picker 0.1.0-alpha.1 → 0.1.0-alpha.3

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.
@@ -1,6 +1,6 @@
1
- import * as Fn from "react";
2
- import On, { createContext as kt, useContext as $, useCallback as rt, useEffect as ot, useLayoutEffect as oa, useRef as it, useInsertionEffect as er, useMemo as Mt, forwardRef as ke, Fragment as nr, createElement as aa, useId as jn, Component as la, Children as ca, isValidElement as ua, useState as _t } from "react";
3
- import fa from "react-dom";
1
+ import * as On from "react";
2
+ import jn, { createContext as kt, useContext as $, useRef as J, useCallback as st, useEffect as ot, useLayoutEffect as ra, useInsertionEffect as tr, useMemo as Mt, forwardRef as ke, Fragment as er, createElement as oa, useId as _n, Component as aa, Children as la, isValidElement as ca, useState as _t } from "react";
3
+ import ua from "react-dom";
4
4
  var lt = /* @__PURE__ */ ((t) => (t.bottom = "bottom", t.top = "top", t))(lt || {}), Jt = /* @__PURE__ */ ((t) => (t.left = "left", t.right = "right", t))(Jt || {});
5
5
  const fe = [
6
6
  "color: #fff",
@@ -19,43 +19,43 @@ const fe = [
19
19
  function de(t, e, ...n) {
20
20
  console.log(`%c ${t}`, e, ...n);
21
21
  }
22
- function ha(t, ...e) {
22
+ function fa(t, ...e) {
23
23
  const n = fe.concat([
24
24
  `background-color: ${he.primary}`
25
25
  ]).join(";");
26
26
  de(t, n, ...e);
27
27
  }
28
- function da(t, ...e) {
28
+ function ha(t, ...e) {
29
29
  const n = fe.concat([
30
30
  `background-color: ${he.success}`
31
31
  ]).join(";");
32
32
  de(t, n, ...e);
33
33
  }
34
- function pa(t, ...e) {
34
+ function da(t, ...e) {
35
35
  const n = fe.concat([
36
36
  `background-color: ${he.info}`
37
37
  ]).join(";");
38
38
  de(t, n, ...e);
39
39
  }
40
- function ma(t, ...e) {
40
+ function pa(t, ...e) {
41
41
  const n = fe.concat([
42
42
  `background-color: ${he.warning}`
43
43
  ]).join(";");
44
44
  de(t, n, ...e);
45
45
  }
46
- function ga(t, ...e) {
46
+ function ma(t, ...e) {
47
47
  const n = fe.concat([
48
48
  `background-color: ${he.danger}`
49
49
  ]).join(";");
50
50
  de(t, n, ...e);
51
51
  }
52
52
  const yt = {
53
- primary: ha,
54
- success: da,
55
- info: pa,
56
- warning: ma,
57
- danger: ga
58
- }, _n = kt({
53
+ primary: fa,
54
+ success: ha,
55
+ info: da,
56
+ warning: pa,
57
+ danger: ma
58
+ }, Bn = kt({
59
59
  hide: () => yt.warning("No hide method detected, did you embed your app with Acrool/PickerPortal?"),
60
60
  show: () => yt.warning("No show method detected, did you embed your app with Acrool/PickerPortal?"),
61
61
  toggle: () => yt.warning("No toggle method detected, did you embed your app with Acrool/PickerPortal?"),
@@ -66,8 +66,8 @@ const yt = {
66
66
  onChange: () => yt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?"),
67
67
  vertical: lt.bottom,
68
68
  setVertical: () => yt.warning("No onChange method detected, did you embed your app with Acrool/PickerPortal?")
69
- }), vh = _n.Consumer, ya = () => $(_n);
70
- var vn = { exports: {} }, Xt = {};
69
+ }), vh = Bn.Consumer, ga = () => $(Bn);
70
+ var Pn = { exports: {} }, Xt = {};
71
71
  /**
72
72
  * @license React
73
73
  * react-jsx-runtime.production.min.js
@@ -78,11 +78,11 @@ var vn = { exports: {} }, Xt = {};
78
78
  * LICENSE file in the root directory of this source tree.
79
79
  */
80
80
  var Li;
81
- function va() {
81
+ function ya() {
82
82
  if (Li)
83
83
  return Xt;
84
84
  Li = 1;
85
- var t = On, 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 };
85
+ var t = jn, 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);
@@ -106,48 +106,48 @@ var qt = {};
106
106
  * LICENSE file in the root directory of this source tree.
107
107
  */
108
108
  var Fi;
109
- function Pa() {
109
+ function va() {
110
110
  return Fi || (Fi = 1, process.env.NODE_ENV !== "production" && function() {
111
- var t = On, 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, P = "@@iterator";
111
+ var t = jn, 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, P = "@@iterator";
112
112
  function b(h) {
113
113
  if (h === null || typeof h != "object")
114
114
  return null;
115
115
  var g = m && h[m] || h[P];
116
116
  return typeof g == "function" ? g : null;
117
117
  }
118
- var x = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
118
+ var T = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
119
119
  function y(h) {
120
120
  {
121
- for (var g = arguments.length, T = new Array(g > 1 ? g - 1 : 0), C = 1; C < g; C++)
122
- T[C - 1] = arguments[C];
123
- v("error", h, T);
121
+ for (var g = arguments.length, x = new Array(g > 1 ? g - 1 : 0), C = 1; C < g; C++)
122
+ x[C - 1] = arguments[C];
123
+ v("error", h, x);
124
124
  }
125
125
  }
126
- function v(h, g, T) {
126
+ function v(h, g, x) {
127
127
  {
128
- var C = x.ReactDebugCurrentFrame, D = C.getStackAddendum();
129
- D !== "" && (g += "%s", T = T.concat([D]));
130
- var k = T.map(function(V) {
128
+ var C = T.ReactDebugCurrentFrame, D = C.getStackAddendum();
129
+ D !== "" && (g += "%s", x = x.concat([D]));
130
+ var k = x.map(function(V) {
131
131
  return String(V);
132
132
  });
133
133
  k.unshift("Warning: " + g), Function.prototype.apply.call(console[h], console, k);
134
134
  }
135
135
  }
136
- var w = !1, A = !1, L = !1, q = !1, E = !1, U;
136
+ var w = !1, A = !1, F = !1, q = !1, E = !1, U;
137
137
  U = Symbol.for("react.module.reference");
138
138
  function G(h) {
139
- return !!(typeof h == "string" || typeof h == "function" || h === i || h === o || E || h === s || h === c || h === u || q || h === p || w || A || L || 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
139
+ return !!(typeof h == "string" || typeof h == "function" || h === i || h === o || E || h === s || h === c || h === u || q || h === p || w || A || F || 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
143
  h.$$typeof === U || h.getModuleId !== void 0));
144
144
  }
145
- function j(h, g, T) {
145
+ function N(h, g, x) {
146
146
  var C = h.displayName;
147
147
  if (C)
148
148
  return C;
149
149
  var D = g.displayName || g.name || "";
150
- return D !== "" ? T + "(" + D + ")" : T;
150
+ return D !== "" ? x + "(" + D + ")" : x;
151
151
  }
152
152
  function gt(h) {
153
153
  return h.displayName || "Context";
@@ -179,10 +179,10 @@ function Pa() {
179
179
  var g = h;
180
180
  return gt(g) + ".Consumer";
181
181
  case r:
182
- var T = h;
183
- return gt(T._context) + ".Provider";
182
+ var x = h;
183
+ return gt(x._context) + ".Provider";
184
184
  case l:
185
- return j(h, h.render, "ForwardRef");
185
+ return N(h, h.render, "ForwardRef");
186
186
  case f:
187
187
  var C = h.displayName || null;
188
188
  return C !== null ? C : Y(h.type) || "Memo";
@@ -197,14 +197,14 @@ function Pa() {
197
197
  }
198
198
  return null;
199
199
  }
200
- var st = Object.assign, _ = 0, Q, Lt, Ft, pi, mi, gi, yi;
200
+ var rt = Object.assign, j = 0, tt, Lt, Ft, pi, mi, gi, yi;
201
201
  function vi() {
202
202
  }
203
203
  vi.__reactDisabledLog = !0;
204
- function Lo() {
204
+ function ko() {
205
205
  {
206
- if (_ === 0) {
207
- Q = console.log, Lt = console.info, Ft = console.warn, pi = console.error, mi = console.group, gi = console.groupCollapsed, yi = console.groupEnd;
206
+ if (j === 0) {
207
+ tt = console.log, Lt = console.info, Ft = console.warn, pi = console.error, mi = console.group, gi = console.groupCollapsed, yi = console.groupEnd;
208
208
  var h = {
209
209
  configurable: !0,
210
210
  enumerable: !0,
@@ -221,46 +221,46 @@ function Pa() {
221
221
  groupEnd: h
222
222
  });
223
223
  }
224
- _++;
224
+ j++;
225
225
  }
226
226
  }
227
- function Fo() {
227
+ function Lo() {
228
228
  {
229
- if (_--, _ === 0) {
229
+ if (j--, j === 0) {
230
230
  var h = {
231
231
  configurable: !0,
232
232
  enumerable: !0,
233
233
  writable: !0
234
234
  };
235
235
  Object.defineProperties(console, {
236
- log: st({}, h, {
237
- value: Q
236
+ log: rt({}, h, {
237
+ value: tt
238
238
  }),
239
- info: st({}, h, {
239
+ info: rt({}, h, {
240
240
  value: Lt
241
241
  }),
242
- warn: st({}, h, {
242
+ warn: rt({}, h, {
243
243
  value: Ft
244
244
  }),
245
- error: st({}, h, {
245
+ error: rt({}, h, {
246
246
  value: pi
247
247
  }),
248
- group: st({}, h, {
248
+ group: rt({}, h, {
249
249
  value: mi
250
250
  }),
251
- groupCollapsed: st({}, h, {
251
+ groupCollapsed: rt({}, h, {
252
252
  value: gi
253
253
  }),
254
- groupEnd: st({}, h, {
254
+ groupEnd: rt({}, h, {
255
255
  value: yi
256
256
  })
257
257
  });
258
258
  }
259
- _ < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
259
+ j < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
260
260
  }
261
261
  }
262
- var Ye = x.ReactCurrentDispatcher, Xe;
263
- function ve(h, g, T) {
262
+ var Ye = T.ReactCurrentDispatcher, Xe;
263
+ function ve(h, g, x) {
264
264
  {
265
265
  if (Xe === void 0)
266
266
  try {
@@ -275,23 +275,23 @@ function Pa() {
275
275
  }
276
276
  var qe = !1, Pe;
277
277
  {
278
- var Oo = typeof WeakMap == "function" ? WeakMap : Map;
279
- Pe = new Oo();
278
+ var Fo = typeof WeakMap == "function" ? WeakMap : Map;
279
+ Pe = new Fo();
280
280
  }
281
281
  function Pi(h, g) {
282
282
  if (!h || qe)
283
283
  return "";
284
284
  {
285
- var T = Pe.get(h);
286
- if (T !== void 0)
287
- return T;
285
+ var x = Pe.get(h);
286
+ if (x !== void 0)
287
+ return x;
288
288
  }
289
289
  var C;
290
290
  qe = !0;
291
291
  var D = Error.prepareStackTrace;
292
292
  Error.prepareStackTrace = void 0;
293
293
  var k;
294
- k = Ye.current, Ye.current = null, Lo();
294
+ k = Ye.current, Ye.current = null, ko();
295
295
  try {
296
296
  if (g) {
297
297
  var V = function() {
@@ -328,39 +328,39 @@ function Pa() {
328
328
  if (Z && C && typeof Z.stack == "string") {
329
329
  for (var R = Z.stack.split(`
330
330
  `), X = C.stack.split(`
331
- `), B = R.length - 1, N = X.length - 1; B >= 1 && N >= 0 && R[B] !== X[N]; )
332
- N--;
333
- for (; B >= 1 && N >= 0; B--, N--)
334
- if (R[B] !== X[N]) {
335
- if (B !== 1 || N !== 1)
331
+ `), _ = R.length - 1, I = X.length - 1; _ >= 1 && I >= 0 && R[_] !== X[I]; )
332
+ I--;
333
+ for (; _ >= 1 && I >= 0; _--, I--)
334
+ if (R[_] !== X[I]) {
335
+ if (_ !== 1 || I !== 1)
336
336
  do
337
- if (B--, N--, N < 0 || R[B] !== X[N]) {
338
- var tt = `
339
- ` + R[B].replace(" at new ", " at ");
340
- return h.displayName && tt.includes("<anonymous>") && (tt = tt.replace("<anonymous>", h.displayName)), typeof h == "function" && Pe.set(h, tt), tt;
337
+ if (_--, I--, I < 0 || R[_] !== X[I]) {
338
+ var et = `
339
+ ` + R[_].replace(" at new ", " at ");
340
+ return h.displayName && et.includes("<anonymous>") && (et = et.replace("<anonymous>", h.displayName)), typeof h == "function" && Pe.set(h, et), et;
341
341
  }
342
- while (B >= 1 && N >= 0);
342
+ while (_ >= 1 && I >= 0);
343
343
  break;
344
344
  }
345
345
  }
346
346
  } finally {
347
- qe = !1, Ye.current = k, Fo(), Error.prepareStackTrace = D;
347
+ qe = !1, Ye.current = k, Lo(), Error.prepareStackTrace = D;
348
348
  }
349
349
  var jt = h ? h.displayName || h.name : "", St = jt ? ve(jt) : "";
350
350
  return typeof h == "function" && Pe.set(h, St), St;
351
351
  }
352
- function jo(h, g, T) {
352
+ function Oo(h, g, x) {
353
353
  return Pi(h, !1);
354
354
  }
355
- function _o(h) {
355
+ function jo(h) {
356
356
  var g = h.prototype;
357
357
  return !!(g && g.isReactComponent);
358
358
  }
359
- function xe(h, g, T) {
359
+ function Te(h, g, x) {
360
360
  if (h == null)
361
361
  return "";
362
362
  if (typeof h == "function")
363
- return Pi(h, _o(h));
363
+ return Pi(h, jo(h));
364
364
  if (typeof h == "string")
365
365
  return ve(h);
366
366
  switch (h) {
@@ -372,28 +372,28 @@ function Pa() {
372
372
  if (typeof h == "object")
373
373
  switch (h.$$typeof) {
374
374
  case l:
375
- return jo(h.render);
375
+ return Oo(h.render);
376
376
  case f:
377
- return xe(h.type, g, T);
377
+ return Te(h.type, g, x);
378
378
  case d: {
379
379
  var C = h, D = C._payload, k = C._init;
380
380
  try {
381
- return xe(k(D), g, T);
381
+ return Te(k(D), g, x);
382
382
  } catch {
383
383
  }
384
384
  }
385
385
  }
386
386
  return "";
387
387
  }
388
- var zt = Object.prototype.hasOwnProperty, xi = {}, Ti = x.ReactDebugCurrentFrame;
389
- function Te(h) {
388
+ var zt = Object.prototype.hasOwnProperty, Ti = {}, xi = T.ReactDebugCurrentFrame;
389
+ function xe(h) {
390
390
  if (h) {
391
- var g = h._owner, T = xe(h.type, h._source, g ? g.type : null);
392
- Ti.setExtraStackFrame(T);
391
+ var g = h._owner, x = Te(h.type, h._source, g ? g.type : null);
392
+ xi.setExtraStackFrame(x);
393
393
  } else
394
- Ti.setExtraStackFrame(null);
394
+ xi.setExtraStackFrame(null);
395
395
  }
396
- function Bo(h, g, T, C, D) {
396
+ function _o(h, g, x, C, D) {
397
397
  {
398
398
  var k = Function.call.bind(zt);
399
399
  for (var V in h)
@@ -401,28 +401,28 @@ function Pa() {
401
401
  var R = void 0;
402
402
  try {
403
403
  if (typeof h[V] != "function") {
404
- var X = Error((C || "React class") + ": " + T + " type `" + V + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[V] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
404
+ var X = Error((C || "React class") + ": " + x + " type `" + V + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[V] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
405
405
  throw X.name = "Invariant Violation", X;
406
406
  }
407
- R = h[V](g, V, C, T, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
408
- } catch (B) {
409
- R = B;
407
+ R = h[V](g, V, C, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
408
+ } catch (_) {
409
+ R = _;
410
410
  }
411
- R && !(R instanceof Error) && (Te(D), 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", T, V, typeof R), Te(null)), R instanceof Error && !(R.message in xi) && (xi[R.message] = !0, Te(D), y("Failed %s type: %s", T, R.message), Te(null));
411
+ R && !(R instanceof Error) && (xe(D), 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", x, V, typeof R), xe(null)), R instanceof Error && !(R.message in Ti) && (Ti[R.message] = !0, xe(D), y("Failed %s type: %s", x, R.message), xe(null));
412
412
  }
413
413
  }
414
414
  }
415
- var Io = Array.isArray;
415
+ var Bo = Array.isArray;
416
416
  function Ze(h) {
417
- return Io(h);
417
+ return Bo(h);
418
418
  }
419
- function No(h) {
419
+ function Io(h) {
420
420
  {
421
- var g = typeof Symbol == "function" && Symbol.toStringTag, T = g && h[Symbol.toStringTag] || h.constructor.name || "Object";
422
- return T;
421
+ var g = typeof Symbol == "function" && Symbol.toStringTag, x = g && h[Symbol.toStringTag] || h.constructor.name || "Object";
422
+ return x;
423
423
  }
424
424
  }
425
- function Uo(h) {
425
+ function No(h) {
426
426
  try {
427
427
  return bi(h), !1;
428
428
  } catch {
@@ -433,17 +433,17 @@ function Pa() {
433
433
  return "" + h;
434
434
  }
435
435
  function wi(h) {
436
- if (Uo(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.", No(h)), bi(h);
436
+ if (No(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.", Io(h)), bi(h);
438
438
  }
439
- var Yt = x.ReactCurrentOwner, Wo = {
439
+ var Yt = T.ReactCurrentOwner, Uo = {
440
440
  key: !0,
441
441
  ref: !0,
442
442
  __self: !0,
443
443
  __source: !0
444
444
  }, Si, Ci, Je;
445
445
  Je = {};
446
- function $o(h) {
446
+ function Wo(h) {
447
447
  if (zt.call(h, "ref")) {
448
448
  var g = Object.getOwnPropertyDescriptor(h, "ref").get;
449
449
  if (g && g.isReactWarning)
@@ -451,7 +451,7 @@ function Pa() {
451
451
  }
452
452
  return h.ref !== void 0;
453
453
  }
454
- function Ko(h) {
454
+ function $o(h) {
455
455
  if (zt.call(h, "key")) {
456
456
  var g = Object.getOwnPropertyDescriptor(h, "key").get;
457
457
  if (g && g.isReactWarning)
@@ -459,42 +459,42 @@ function Pa() {
459
459
  }
460
460
  return h.key !== void 0;
461
461
  }
462
- function Go(h, g) {
462
+ function Ko(h, g) {
463
463
  if (typeof h.ref == "string" && Yt.current && g && Yt.current.stateNode !== g) {
464
- var T = Y(Yt.current.type);
465
- Je[T] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Y(Yt.current.type), h.ref), Je[T] = !0);
464
+ var x = Y(Yt.current.type);
465
+ Je[x] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Y(Yt.current.type), h.ref), Je[x] = !0);
466
466
  }
467
467
  }
468
- function Ho(h, g) {
468
+ function Go(h, g) {
469
469
  {
470
- var T = function() {
470
+ var x = function() {
471
471
  Si || (Si = !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
- T.isReactWarning = !0, Object.defineProperty(h, "key", {
474
- get: T,
473
+ x.isReactWarning = !0, Object.defineProperty(h, "key", {
474
+ get: x,
475
475
  configurable: !0
476
476
  });
477
477
  }
478
478
  }
479
- function zo(h, g) {
479
+ function Ho(h, g) {
480
480
  {
481
- var T = function() {
481
+ var x = function() {
482
482
  Ci || (Ci = !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
- T.isReactWarning = !0, Object.defineProperty(h, "ref", {
485
- get: T,
484
+ x.isReactWarning = !0, Object.defineProperty(h, "ref", {
485
+ get: x,
486
486
  configurable: !0
487
487
  });
488
488
  }
489
489
  }
490
- var Yo = function(h, g, T, C, D, k, V) {
490
+ var zo = function(h, g, x, C, D, k, V) {
491
491
  var R = {
492
492
  // This tag allows us to uniquely identify this as a React Element
493
493
  $$typeof: e,
494
494
  // Built-in properties that belong on the element
495
495
  type: h,
496
496
  key: g,
497
- ref: T,
497
+ ref: x,
498
498
  props: V,
499
499
  // Record the component responsible for creating this element.
500
500
  _owner: k
@@ -516,29 +516,29 @@ function Pa() {
516
516
  value: D
517
517
  }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
518
518
  };
519
- function Xo(h, g, T, C, D) {
519
+ function Yo(h, g, x, C, D) {
520
520
  {
521
521
  var k, V = {}, R = null, X = null;
522
- T !== void 0 && (wi(T), R = "" + T), Ko(g) && (wi(g.key), R = "" + g.key), $o(g) && (X = g.ref, Go(g, D));
522
+ x !== void 0 && (wi(x), R = "" + x), $o(g) && (wi(g.key), R = "" + g.key), Wo(g) && (X = g.ref, Ko(g, D));
523
523
  for (k in g)
524
- zt.call(g, k) && !Wo.hasOwnProperty(k) && (V[k] = g[k]);
524
+ zt.call(g, k) && !Uo.hasOwnProperty(k) && (V[k] = g[k]);
525
525
  if (h && h.defaultProps) {
526
- var B = h.defaultProps;
527
- for (k in B)
528
- V[k] === void 0 && (V[k] = B[k]);
526
+ var _ = h.defaultProps;
527
+ for (k in _)
528
+ V[k] === void 0 && (V[k] = _[k]);
529
529
  }
530
530
  if (R || X) {
531
- var N = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
532
- R && Ho(V, N), X && zo(V, N);
531
+ var I = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
532
+ R && Go(V, I), X && Ho(V, I);
533
533
  }
534
- return Yo(h, R, X, D, C, Yt.current, V);
534
+ return zo(h, R, X, D, C, Yt.current, V);
535
535
  }
536
536
  }
537
- var Qe = x.ReactCurrentOwner, Ai = x.ReactDebugCurrentFrame;
537
+ var Qe = T.ReactCurrentOwner, Ai = T.ReactDebugCurrentFrame;
538
538
  function Ot(h) {
539
539
  if (h) {
540
- var g = h._owner, T = xe(h.type, h._source, g ? g.type : null);
541
- Ai.setExtraStackFrame(T);
540
+ var g = h._owner, x = Te(h.type, h._source, g ? g.type : null);
541
+ Ai.setExtraStackFrame(x);
542
542
  } else
543
543
  Ai.setExtraStackFrame(null);
544
544
  }
@@ -559,26 +559,26 @@ Check the render method of \`` + h + "`.";
559
559
  return "";
560
560
  }
561
561
  }
562
- function qo(h) {
562
+ function Xo(h) {
563
563
  {
564
564
  if (h !== void 0) {
565
- var g = h.fileName.replace(/^.*[\\\/]/, ""), T = h.lineNumber;
565
+ var g = h.fileName.replace(/^.*[\\\/]/, ""), x = h.lineNumber;
566
566
  return `
567
567
 
568
- Check your code at ` + g + ":" + T + ".";
568
+ Check your code at ` + g + ":" + x + ".";
569
569
  }
570
570
  return "";
571
571
  }
572
572
  }
573
573
  var Ri = {};
574
- function Zo(h) {
574
+ function qo(h) {
575
575
  {
576
576
  var g = Ei();
577
577
  if (!g) {
578
- var T = typeof h == "string" ? h : h.displayName || h.name;
579
- T && (g = `
578
+ var x = typeof h == "string" ? h : h.displayName || h.name;
579
+ x && (g = `
580
580
 
581
- Check the top-level render call using <` + T + ">.");
581
+ Check the top-level render call using <` + x + ">.");
582
582
  }
583
583
  return g;
584
584
  }
@@ -588,12 +588,12 @@ Check the top-level render call using <` + T + ">.");
588
588
  if (!h._store || h._store.validated || h.key != null)
589
589
  return;
590
590
  h._store.validated = !0;
591
- var T = Zo(g);
592
- if (Ri[T])
591
+ var x = qo(g);
592
+ if (Ri[x])
593
593
  return;
594
- Ri[T] = !0;
594
+ Ri[x] = !0;
595
595
  var C = "";
596
- h && h._owner && h._owner !== Qe.current && (C = " It was passed a child from " + Y(h._owner.type) + "."), Ot(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.', T, C), Ot(null);
596
+ h && h._owner && h._owner !== Qe.current && (C = " It was passed a child from " + Y(h._owner.type) + "."), Ot(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.', x, C), Ot(null);
597
597
  }
598
598
  }
599
599
  function Di(h, g) {
@@ -601,8 +601,8 @@ Check the top-level render call using <` + T + ">.");
601
601
  if (typeof h != "object")
602
602
  return;
603
603
  if (Ze(h))
604
- for (var T = 0; T < h.length; T++) {
605
- var C = h[T];
604
+ for (var x = 0; x < h.length; x++) {
605
+ var C = h[x];
606
606
  en(C) && Vi(C, g);
607
607
  }
608
608
  else if (en(h))
@@ -615,23 +615,23 @@ Check the top-level render call using <` + T + ">.");
615
615
  }
616
616
  }
617
617
  }
618
- function Jo(h) {
618
+ function Zo(h) {
619
619
  {
620
620
  var g = h.type;
621
621
  if (g == null || typeof g == "string")
622
622
  return;
623
- var T;
623
+ var x;
624
624
  if (typeof g == "function")
625
- T = g.propTypes;
625
+ x = g.propTypes;
626
626
  else if (typeof g == "object" && (g.$$typeof === l || // Note: Memo only checks outer props here.
627
627
  // Inner props are checked in the reconciler.
628
628
  g.$$typeof === f))
629
- T = g.propTypes;
629
+ x = g.propTypes;
630
630
  else
631
631
  return;
632
- if (T) {
632
+ if (x) {
633
633
  var C = Y(g);
634
- Bo(T, h.props, "prop", C, h);
634
+ _o(x, h.props, "prop", C, h);
635
635
  } else if (g.PropTypes !== void 0 && !tn) {
636
636
  tn = !0;
637
637
  var D = Y(g);
@@ -640,10 +640,10 @@ Check the top-level render call using <` + T + ">.");
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
  }
642
642
  }
643
- function Qo(h) {
643
+ function Jo(h) {
644
644
  {
645
- for (var g = Object.keys(h.props), T = 0; T < g.length; T++) {
646
- var C = g[T];
645
+ for (var g = Object.keys(h.props), x = 0; x < g.length; x++) {
646
+ var C = g[x];
647
647
  if (C !== "children" && C !== "key") {
648
648
  Ot(h), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", C), Ot(null);
649
649
  break;
@@ -653,102 +653,106 @@ Check the top-level render call using <` + T + ">.");
653
653
  }
654
654
  }
655
655
  var Mi = {};
656
- function ki(h, g, T, C, D, k) {
656
+ function ki(h, g, x, C, D, k) {
657
657
  {
658
658
  var V = G(h);
659
659
  if (!V) {
660
660
  var R = "";
661
661
  (h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (R += " 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 = qo(D);
662
+ var X = Xo(D);
663
663
  X ? R += X : R += Ei();
664
- var B;
665
- h === null ? B = "null" : Ze(h) ? B = "array" : h !== void 0 && h.$$typeof === e ? (B = "<" + (Y(h.type) || "Unknown") + " />", R = " 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, R);
664
+ var _;
665
+ h === null ? _ = "null" : Ze(h) ? _ = "array" : h !== void 0 && h.$$typeof === e ? (_ = "<" + (Y(h.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : _ = 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", _, R);
666
666
  }
667
- var N = Xo(h, g, T, D, k);
668
- if (N == null)
669
- return N;
667
+ var I = Yo(h, g, x, D, k);
668
+ if (I == null)
669
+ return I;
670
670
  if (V) {
671
- var tt = g.children;
672
- if (tt !== void 0)
671
+ var et = g.children;
672
+ if (et !== void 0)
673
673
  if (C)
674
- if (Ze(tt)) {
675
- for (var jt = 0; jt < tt.length; jt++)
676
- Di(tt[jt], h);
677
- Object.freeze && Object.freeze(tt);
674
+ if (Ze(et)) {
675
+ for (var jt = 0; jt < et.length; jt++)
676
+ Di(et[jt], h);
677
+ Object.freeze && Object.freeze(et);
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
- Di(tt, h);
681
+ Di(et, h);
682
682
  }
683
683
  if (zt.call(g, "key")) {
684
- var St = Y(h), Z = Object.keys(g).filter(function(ra) {
685
- return ra !== "key";
684
+ var St = Y(h), Z = Object.keys(g).filter(function(sa) {
685
+ return sa !== "key";
686
686
  }), nn = Z.length > 0 ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}";
687
687
  if (!Mi[St + nn]) {
688
- var sa = Z.length > 0 ? "{" + Z.join(": ..., ") + ": ...}" : "{}";
688
+ var ia = Z.length > 0 ? "{" + Z.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} />`, nn, St, sa, St), Mi[St + nn] = !0;
694
+ <%s key={someKey} {...props} />`, nn, St, ia, St), Mi[St + nn] = !0;
695
695
  }
696
696
  }
697
- return h === i ? Qo(N) : Jo(N), N;
697
+ return h === i ? Jo(I) : Zo(I), I;
698
698
  }
699
699
  }
700
- function ta(h, g, T) {
701
- return ki(h, g, T, !0);
700
+ function Qo(h, g, x) {
701
+ return ki(h, g, x, !0);
702
702
  }
703
- function ea(h, g, T) {
704
- return ki(h, g, T, !1);
703
+ function ta(h, g, x) {
704
+ return ki(h, g, x, !1);
705
705
  }
706
- var na = ea, ia = ta;
707
- qt.Fragment = i, qt.jsx = na, qt.jsxs = ia;
706
+ var ea = ta, na = Qo;
707
+ qt.Fragment = i, qt.jsx = ea, qt.jsxs = na;
708
708
  }()), qt;
709
709
  }
710
- process.env.NODE_ENV === "production" ? vn.exports = va() : vn.exports = Pa();
711
- var F = vn.exports, At = /* @__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))(At || {}), Ee = /* @__PURE__ */ ((t) => (t.Input = "INPUT", t.Textarea = "TEXTAREA", t.Select = "SELECT", t.Button = "BUTTON", t))(Ee || {});
712
- const ir = [
710
+ process.env.NODE_ENV === "production" ? Pn.exports = ya() : Pn.exports = va();
711
+ var L = Pn.exports, At = /* @__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))(At || {}), Ee = /* @__PURE__ */ ((t) => (t.Input = "INPUT", t.Textarea = "TEXTAREA", t.Select = "SELECT", t.Button = "BUTTON", t))(Ee || {});
712
+ const nr = [
713
713
  Ee.Input,
714
714
  Ee.Textarea,
715
715
  Ee.Select
716
- ], xa = (t) => (t == null ? void 0 : t.split("+").map((e) => e.trim().toLowerCase())) ?? [], Ta = (t) => ({
717
- formFieldTags: (t == null ? void 0 : t.formFieldTags) ?? ir,
718
- ignoreFormField: (t == null ? void 0 : t.ignoreFormField) ?? !0,
719
- preventDefault: (t == null ? void 0 : t.preventDefault) ?? !0,
720
- stopPropagation: (t == null ? void 0 : t.stopPropagation) ?? !0
721
- }), ba = (t, e, n) => (i) => {
716
+ ], Pa = (t) => (t == null ? void 0 : t.split("+").map((e) => e.trim().toLowerCase())) ?? [], Ta = (t) => ({
717
+ formFieldTags: (t == null ? void 0 : t.formFieldTags) ?? nr,
718
+ ignoreFormField: t == null ? void 0 : t.ignoreFormField,
719
+ preventDefault: t == null ? void 0 : t.preventDefault,
720
+ stopPropagation: t == null ? void 0 : t.stopPropagation
721
+ }), xa = (t, e, n) => (i) => {
722
722
  const s = Array.isArray(t) ? t : [t];
723
723
  for (const o of s) {
724
- const r = Ta(n), a = xa(o), l = i.key.toLowerCase(), c = i.code.toLowerCase(), u = document.activeElement;
724
+ const r = Ta(n), a = Pa(o), l = i.key.toLowerCase(), c = i.code.toLowerCase(), u = document.activeElement;
725
725
  if (i.repeat)
726
726
  continue;
727
727
  const f = a.includes("ctrl"), d = a.includes("cmd"), p = a.includes("shift"), m = f === i.ctrlKey, P = d === i.metaKey, b = p === i.shiftKey;
728
- if (!(!(a.includes(l) || a.includes(c)) || !m || !P || !b) && !(!r.ignoreFormField && u && ir.includes(u.tagName)) && (r.preventDefault && i.preventDefault(), r.stopPropagation && i.stopPropagation(), !!e)) {
728
+ if (!(!(a.includes(l) || a.includes(c)) || !m || !P || !b) && !(!r.ignoreFormField && u && nr.includes(u.tagName)) && (r.preventDefault && i.preventDefault(), r.stopPropagation && i.stopPropagation(), !!e)) {
729
729
  e(i);
730
730
  break;
731
731
  }
732
732
  }
733
- }, Oi = ({
733
+ }, sn = ({
734
734
  onKeyDown: t,
735
735
  hotKey: e,
736
- stopPropagation: n = !0,
737
- preventDefault: i = !0,
736
+ stopPropagation: n = !1,
737
+ preventDefault: i = !1,
738
738
  ignoreFormField: s = !1,
739
739
  formFieldTags: o
740
740
  }) => {
741
- const r = rt((a) => {
742
- t && ba(e, t, { stopPropagation: n, preventDefault: i, ignoreFormField: s, formFieldTags: o })(a);
743
- }, [e, t]);
744
- return ot(() => (document.addEventListener("keydown", r), () => {
745
- document.removeEventListener("keydown", r);
746
- }), [r]), null;
741
+ const r = J(!1), a = st((u) => {
742
+ !r.current && t && xa(e, t, { stopPropagation: n, preventDefault: i, ignoreFormField: s, formFieldTags: o })(u);
743
+ }, [e, t]), l = st(() => {
744
+ r.current = !0;
745
+ }, []), c = st(() => {
746
+ r.current = !1;
747
+ }, []);
748
+ return ot(() => (document.addEventListener("keydown", a), document.addEventListener("compositionstart", l), document.addEventListener("compositionend", c), () => {
749
+ document.removeEventListener("keydown", a), document.removeEventListener("compositionstart", l), document.removeEventListener("compositionend", c);
750
+ }), [a]), null;
747
751
  };
748
- var wa = Object.defineProperty, Sa = (t, e, n) => e in t ? wa(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Pn = (t, e, n) => (Sa(t, typeof e != "symbol" ? e + "" : e, n), n);
749
- class sr extends On.Component {
752
+ var ba = Object.defineProperty, wa = (t, e, n) => e in t ? ba(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Tn = (t, e, n) => (wa(t, typeof e != "symbol" ? e + "" : e, n), n);
753
+ class ir extends jn.Component {
750
754
  constructor(e) {
751
- super(e), Pn(this, "_el"), Pn(this, "renderPortal", () => fa.createPortal(
755
+ super(e), Tn(this, "_el"), Tn(this, "renderPortal", () => ua.createPortal(
752
756
  this.props.children,
753
757
  this._el
754
758
  ));
@@ -770,18 +774,18 @@ class sr extends On.Component {
770
774
  return this.renderPortal();
771
775
  }
772
776
  }
773
- Pn(sr, "defaultProps", {
777
+ Tn(ir, "defaultProps", {
774
778
  containerSelector: () => document.body
775
779
  });
776
- const Bn = kt({
780
+ const In = kt({
777
781
  transformPagePoint: (t) => t,
778
782
  isStatic: !1,
779
783
  reducedMotion: "never"
780
- }), Ie = kt({}), Ne = kt(null), In = typeof window < "u", rr = In ? oa : ot, or = kt({ strict: !1 }), Ue = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Ca = "framerAppearId", ar = "data-" + Ue(Ca), Aa = {
784
+ }), Ie = kt({}), Ne = kt(null), Nn = typeof window < "u", sr = Nn ? ra : ot, rr = kt({ strict: !1 }), Ue = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Sa = "framerAppearId", or = "data-" + Ue(Sa), Ca = {
781
785
  skipAnimations: !1,
782
786
  useManualTiming: !1
783
787
  };
784
- function Ea(t) {
788
+ function Aa(t) {
785
789
  let e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = !1, s = !1;
786
790
  const o = /* @__PURE__ */ new WeakSet();
787
791
  let r = {
@@ -832,35 +836,35 @@ const be = [
832
836
  // Write
833
837
  "postRender"
834
838
  // Compute
835
- ], Ra = 40;
836
- function lr(t, e) {
839
+ ], Ea = 40;
840
+ function ar(t, e) {
837
841
  let n = !1, i = !0;
838
842
  const s = {
839
843
  delta: 0,
840
844
  timestamp: 0,
841
845
  isProcessing: !1
842
- }, o = () => n = !0, r = be.reduce((x, y) => (x[y] = Ea(o), x), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = r, p = () => {
843
- const x = performance.now();
844
- n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(x - s.timestamp, Ra), 1), s.timestamp = x, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), f.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
846
+ }, o = () => n = !0, r = be.reduce((T, y) => (T[y] = Aa(o), T), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = r, p = () => {
847
+ const T = performance.now();
848
+ n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(T - s.timestamp, Ea), 1), s.timestamp = T, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), f.process(s), d.process(s), s.isProcessing = !1, n && e && (i = !1, t(p));
845
849
  }, m = () => {
846
850
  n = !0, i = !0, s.isProcessing || t(p);
847
851
  };
848
- return { schedule: be.reduce((x, y) => {
852
+ return { schedule: be.reduce((T, y) => {
849
853
  const v = r[y];
850
- return x[y] = (w, A = !1, L = !1) => (n || m(), v.schedule(w, A, L)), x;
851
- }, {}), cancel: (x) => {
854
+ return T[y] = (w, A = !1, F = !1) => (n || m(), v.schedule(w, A, F)), T;
855
+ }, {}), cancel: (T) => {
852
856
  for (let y = 0; y < be.length; y++)
853
- r[be[y]].cancel(x);
857
+ r[be[y]].cancel(T);
854
858
  }, state: s, steps: r };
855
859
  }
856
- const { schedule: Nn, cancel: Ph } = lr(queueMicrotask, !1);
860
+ const { schedule: Un, cancel: Ph } = ar(queueMicrotask, !1);
857
861
  function Bt(t) {
858
862
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
859
863
  }
860
- const cr = kt({});
861
- let ji = !1;
862
- function Va(t, e, n, i, s) {
863
- const { visualElement: o } = $(Ie), r = $(or), a = $(Ne), l = $(Bn).reducedMotion, c = it();
864
+ const lr = kt({});
865
+ let Oi = !1;
866
+ function Ra(t, e, n, i, s) {
867
+ const { visualElement: o } = $(Ie), r = $(rr), a = $(Ne), l = $(In).reducedMotion, c = J();
864
868
  i = i || r.renderer, !c.current && i && (c.current = i(t, {
865
869
  visualState: e,
866
870
  parent: o,
@@ -869,23 +873,23 @@ function Va(t, e, n, i, s) {
869
873
  blockInitialAnimation: a ? a.initial === !1 : !1,
870
874
  reducedMotionConfig: l
871
875
  }));
872
- const u = c.current, f = $(cr);
873
- u && !u.projection && s && (u.type === "html" || u.type === "svg") && Ma(c.current, n, s, f), er(() => {
876
+ const u = c.current, f = $(lr);
877
+ u && !u.projection && s && (u.type === "html" || u.type === "svg") && Da(c.current, n, s, f), tr(() => {
874
878
  u && u.update(n, a);
875
879
  });
876
- const d = it(!!(n[ar] && !window.HandoffComplete));
877
- return rr(() => {
878
- u && (u.updateFeatures(), Nn.render(u.render), d.current && u.animationState && u.animationState.animateChanges());
880
+ const d = J(!!(n[or] && !window.HandoffComplete));
881
+ return sr(() => {
882
+ u && (u.updateFeatures(), Un.render(u.render), d.current && u.animationState && u.animationState.animateChanges());
879
883
  }), ot(() => {
880
- u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, ji || (ji = !0, queueMicrotask(Da))));
884
+ u && (!d.current && u.animationState && u.animationState.animateChanges(), d.current && (d.current = !1, Oi || (Oi = !0, queueMicrotask(Va))));
881
885
  }), u;
882
886
  }
883
- function Da() {
887
+ function Va() {
884
888
  window.HandoffComplete = !0;
885
889
  }
886
- function Ma(t, e, n, i) {
890
+ function Da(t, e, n, i) {
887
891
  const { layoutId: s, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: c } = e;
888
- t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : ur(t.parent)), t.projection.setOptions({
892
+ t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : cr(t.parent)), t.projection.setOptions({
889
893
  layoutId: s,
890
894
  layout: o,
891
895
  alwaysMeasureLayout: !!r || a && Bt(a),
@@ -903,12 +907,12 @@ function Ma(t, e, n, i) {
903
907
  layoutRoot: c
904
908
  });
905
909
  }
906
- function ur(t) {
910
+ function cr(t) {
907
911
  if (t)
908
- return t.options.allowProjection !== !1 ? t.projection : ur(t.parent);
912
+ return t.options.allowProjection !== !1 ? t.projection : cr(t.parent);
909
913
  }
910
- function ka(t, e, n) {
911
- return rt(
914
+ function Ma(t, e, n) {
915
+ return st(
912
916
  (i) => {
913
917
  i && t.mount && t.mount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : Bt(n) && (n.current = i));
914
918
  },
@@ -926,7 +930,7 @@ function oe(t) {
926
930
  function ae(t) {
927
931
  return t !== null && typeof t == "object" && typeof t.start == "function";
928
932
  }
929
- const Un = [
933
+ const Wn = [
930
934
  "animate",
931
935
  "whileInView",
932
936
  "whileFocus",
@@ -934,14 +938,14 @@ const Un = [
934
938
  "whileTap",
935
939
  "whileDrag",
936
940
  "exit"
937
- ], Wn = ["initial", ...Un];
941
+ ], $n = ["initial", ...Wn];
938
942
  function We(t) {
939
- return ae(t.animate) || Wn.some((e) => oe(t[e]));
943
+ return ae(t.animate) || $n.some((e) => oe(t[e]));
940
944
  }
941
- function fr(t) {
945
+ function ur(t) {
942
946
  return !!(We(t) || t.variants);
943
947
  }
944
- function La(t, e) {
948
+ function ka(t, e) {
945
949
  if (We(t)) {
946
950
  const { initial: n, animate: i } = t;
947
951
  return {
@@ -951,14 +955,14 @@ function La(t, e) {
951
955
  }
952
956
  return t.inherit !== !1 ? e : {};
953
957
  }
954
- function Fa(t) {
955
- const { initial: e, animate: n } = La(t, $(Ie));
956
- return Mt(() => ({ initial: e, animate: n }), [_i(e), _i(n)]);
958
+ function La(t) {
959
+ const { initial: e, animate: n } = ka(t, $(Ie));
960
+ return Mt(() => ({ initial: e, animate: n }), [ji(e), ji(n)]);
957
961
  }
958
- function _i(t) {
962
+ function ji(t) {
959
963
  return Array.isArray(t) ? t.join(" ") : t;
960
964
  }
961
- const Bi = {
965
+ const _i = {
962
966
  animation: [
963
967
  "animate",
964
968
  "variants",
@@ -978,18 +982,18 @@ const Bi = {
978
982
  inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
979
983
  layout: ["layout", "layoutId"]
980
984
  }, $t = {};
981
- for (const t in Bi)
985
+ for (const t in _i)
982
986
  $t[t] = {
983
- isEnabled: (e) => Bi[t].some((n) => !!e[n])
987
+ isEnabled: (e) => _i[t].some((n) => !!e[n])
984
988
  };
985
- function Oa(t) {
989
+ function Fa(t) {
986
990
  for (const e in t)
987
991
  $t[e] = {
988
992
  ...$t[e],
989
993
  ...t[e]
990
994
  };
991
995
  }
992
- const $n = kt({}), ja = Symbol.for("motionComponentSymbol"), K = (t) => t;
996
+ const Kn = kt({}), Oa = Symbol.for("motionComponentSymbol"), K = (t) => t;
993
997
  let Gt = K, pt = K;
994
998
  process.env.NODE_ENV !== "production" && (Gt = (t, e) => {
995
999
  !t && typeof console < "u" && console.warn(e);
@@ -997,37 +1001,37 @@ process.env.NODE_ENV !== "production" && (Gt = (t, e) => {
997
1001
  if (!t)
998
1002
  throw new Error(e);
999
1003
  });
1000
- function _a({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: s }) {
1001
- t && Oa(t);
1004
+ function ja({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: s }) {
1005
+ t && Fa(t);
1002
1006
  function o(a, l) {
1003
1007
  let c;
1004
1008
  const u = {
1005
- ...$(Bn),
1009
+ ...$(In),
1006
1010
  ...a,
1007
- layoutId: Ba(a)
1008
- }, { isStatic: f } = u, d = Fa(a), p = i(a, f);
1009
- if (!f && In) {
1010
- Ia(u, t);
1011
- const m = Na(u);
1012
- c = m.MeasureLayout, d.visualElement = Va(s, p, u, e, m.ProjectionNode);
1011
+ layoutId: _a(a)
1012
+ }, { isStatic: f } = u, d = La(a), p = i(a, f);
1013
+ if (!f && Nn) {
1014
+ Ba(u, t);
1015
+ const m = Ia(u);
1016
+ c = m.MeasureLayout, d.visualElement = Ra(s, p, u, e, m.ProjectionNode);
1013
1017
  }
1014
- return F.jsxs(Ie.Provider, { value: d, children: [c && d.visualElement ? F.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(s, a, ka(p, d.visualElement, l), p, f, d.visualElement)] });
1018
+ return L.jsxs(Ie.Provider, { value: d, children: [c && d.visualElement ? L.jsx(c, { visualElement: d.visualElement, ...u }) : null, n(s, a, Ma(p, d.visualElement, l), p, f, d.visualElement)] });
1015
1019
  }
1016
1020
  const r = ke(o);
1017
- return r[ja] = s, r;
1021
+ return r[Oa] = s, r;
1018
1022
  }
1019
- function Ba({ layoutId: t }) {
1020
- const e = $($n).id;
1023
+ function _a({ layoutId: t }) {
1024
+ const e = $(Kn).id;
1021
1025
  return e && t !== void 0 ? e + "-" + t : t;
1022
1026
  }
1023
- function Ia(t, e) {
1024
- const n = $(or).strict;
1027
+ function Ba(t, e) {
1028
+ const n = $(rr).strict;
1025
1029
  if (process.env.NODE_ENV !== "production" && e && n) {
1026
1030
  const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
1027
1031
  t.ignoreStrict ? Gt(!1, i) : pt(!1, i);
1028
1032
  }
1029
1033
  }
1030
- function Na(t) {
1034
+ function Ia(t) {
1031
1035
  const { drag: e, layout: n } = $t;
1032
1036
  if (!e && !n)
1033
1037
  return {};
@@ -1037,9 +1041,9 @@ function Na(t) {
1037
1041
  ProjectionNode: i.ProjectionNode
1038
1042
  };
1039
1043
  }
1040
- function Ua(t) {
1044
+ function Na(t) {
1041
1045
  function e(i, s = {}) {
1042
- return _a(t(i, s));
1046
+ return ja(t(i, s));
1043
1047
  }
1044
1048
  if (typeof Proxy > "u")
1045
1049
  return e;
@@ -1053,7 +1057,7 @@ function Ua(t) {
1053
1057
  get: (i, s) => (n.has(s) || n.set(s, e(s)), n.get(s))
1054
1058
  });
1055
1059
  }
1056
- const Wa = [
1060
+ const Ua = [
1057
1061
  "animate",
1058
1062
  "circle",
1059
1063
  "defs",
@@ -1080,7 +1084,7 @@ const Wa = [
1080
1084
  "use",
1081
1085
  "view"
1082
1086
  ];
1083
- function Kn(t) {
1087
+ function Gn(t) {
1084
1088
  return (
1085
1089
  /**
1086
1090
  * If it's not a string, it's a custom React component. Currently we only support
@@ -1093,7 +1097,7 @@ function Kn(t) {
1093
1097
  /**
1094
1098
  * If it's in our list of lowercase SVG tags, it's an SVG component
1095
1099
  */
1096
- !!(Wa.indexOf(t) > -1 || /**
1100
+ !!(Ua.indexOf(t) > -1 || /**
1097
1101
  * If it contains a capital letter, it's an SVG component
1098
1102
  */
1099
1103
  /[A-Z]/u.test(t))
@@ -1101,7 +1105,7 @@ function Kn(t) {
1101
1105
  );
1102
1106
  }
1103
1107
  const Le = {};
1104
- function $a(t) {
1108
+ function Wa(t) {
1105
1109
  Object.assign(Le, t);
1106
1110
  }
1107
1111
  const pe = [
@@ -1123,38 +1127,55 @@ const pe = [
1123
1127
  "skewX",
1124
1128
  "skewY"
1125
1129
  ], bt = new Set(pe);
1126
- function hr(t, { layout: e, layoutId: n }) {
1130
+ function fr(t, { layout: e, layoutId: n }) {
1127
1131
  return bt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!Le[t] || t === "opacity");
1128
1132
  }
1129
- const z = (t) => !!(t && t.getVelocity), dr = (t, e) => e && typeof t == "number" ? e.transform(t) : t, xt = (t, e, n) => n > e ? e : n < t ? t : n, Ht = {
1133
+ const z = (t) => !!(t && t.getVelocity), $a = {
1134
+ x: "translateX",
1135
+ y: "translateY",
1136
+ z: "translateZ",
1137
+ transformPerspective: "perspective"
1138
+ }, Ka = pe.length;
1139
+ function Ga(t, e, n) {
1140
+ let i = "";
1141
+ for (let s = 0; s < Ka; s++) {
1142
+ const o = pe[s];
1143
+ if (t[o] !== void 0) {
1144
+ const r = $a[o] || o;
1145
+ i += `${r}(${t[o]}) `;
1146
+ }
1147
+ }
1148
+ return i = i.trim(), n ? i = n(t, e ? "" : i) : e && (i = "none"), i;
1149
+ }
1150
+ const hr = (t) => (e) => typeof e == "string" && e.startsWith(t), dr = hr("--"), Ha = hr("var(--"), Hn = (t) => Ha(t) ? za.test(t.split("/*")[0].trim()) : !1, za = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Ya = (t, e) => e && typeof t == "number" ? e.transform(t) : t, Tt = (t, e, n) => n > e ? e : n < t ? t : n, Ht = {
1130
1151
  test: (t) => typeof t == "number",
1131
1152
  parse: parseFloat,
1132
1153
  transform: (t) => t
1133
1154
  }, ee = {
1134
1155
  ...Ht,
1135
- transform: (t) => xt(0, 1, t)
1156
+ transform: (t) => Tt(0, 1, t)
1136
1157
  }, we = {
1137
1158
  ...Ht,
1138
1159
  default: 1
1139
- }, ne = (t) => Math.round(t * 1e5) / 1e5, Gn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, Ka = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, Ga = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
1160
+ }, ne = (t) => Math.round(t * 1e5) / 1e5, zn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu, Xa = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu, qa = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
1140
1161
  function me(t) {
1141
1162
  return typeof t == "string";
1142
1163
  }
1143
- function Ha(t) {
1164
+ function Za(t) {
1144
1165
  return t == null;
1145
1166
  }
1146
1167
  const ge = (t) => ({
1147
1168
  test: (e) => me(e) && e.endsWith(t) && e.split(" ").length === 1,
1148
1169
  parse: parseFloat,
1149
1170
  transform: (e) => `${e}${t}`
1150
- }), vt = ge("deg"), at = ge("%"), S = ge("px"), za = ge("vh"), Ya = ge("vw"), Ii = {
1171
+ }), vt = ge("deg"), at = ge("%"), S = ge("px"), Ja = ge("vh"), Qa = ge("vw"), Bi = {
1151
1172
  ...at,
1152
1173
  parse: (t) => at.parse(t) / 100,
1153
1174
  transform: (t) => at.transform(t * 100)
1154
- }, Ni = {
1175
+ }, Ii = {
1155
1176
  ...Ht,
1156
1177
  transform: Math.round
1157
- }, Hn = {
1178
+ }, pr = {
1158
1179
  // Border props
1159
1180
  borderWidth: S,
1160
1181
  borderTopWidth: S,
@@ -1210,62 +1231,38 @@ const ge = (t) => ({
1210
1231
  perspective: S,
1211
1232
  transformPerspective: S,
1212
1233
  opacity: ee,
1213
- originX: Ii,
1214
- originY: Ii,
1234
+ originX: Bi,
1235
+ originY: Bi,
1215
1236
  originZ: S,
1216
1237
  // Misc
1217
- zIndex: Ni,
1238
+ zIndex: Ii,
1218
1239
  backgroundPositionX: S,
1219
1240
  backgroundPositionY: S,
1220
1241
  // SVG
1221
1242
  fillOpacity: ee,
1222
1243
  strokeOpacity: ee,
1223
- numOctaves: Ni
1224
- }, Xa = {
1225
- x: "translateX",
1226
- y: "translateY",
1227
- z: "translateZ",
1228
- transformPerspective: "perspective"
1229
- }, qa = pe.length;
1230
- function Za(t, e, n) {
1231
- let i = "", s = !0;
1232
- for (let o = 0; o < qa; o++) {
1233
- const r = pe[o], a = t[r];
1234
- if (a === void 0)
1235
- continue;
1236
- let l = !0;
1237
- if (typeof a == "number" ? l = a === (r.startsWith("scale") ? 1 : 0) : l = parseFloat(a) === 0, !l || n) {
1238
- const c = dr(a, Hn[r]);
1239
- if (!l) {
1240
- s = !1;
1241
- const u = Xa[r] || r;
1242
- i += `${u}(${c}) `;
1243
- }
1244
- n && (e[r] = c);
1245
- }
1246
- }
1247
- return i = i.trim(), n ? i = n(e, s ? "" : i) : s && (i = "none"), i;
1248
- }
1249
- const pr = (t) => (e) => typeof e == "string" && e.startsWith(t), mr = pr("--"), Ja = pr("var(--"), zn = (t) => Ja(t) ? Qa.test(t.split("/*")[0].trim()) : !1, Qa = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
1244
+ numOctaves: Ii
1245
+ };
1250
1246
  function Yn(t, e, n) {
1251
- const { style: i, vars: s, transformOrigin: o } = t;
1252
- let r = !1, a = !1;
1253
- for (const l in e) {
1254
- const c = e[l];
1255
- if (bt.has(l)) {
1256
- r = !0;
1257
- continue;
1258
- } else if (mr(l)) {
1259
- s[l] = c;
1247
+ const { style: i, vars: s, transform: o, transformOrigin: r } = t;
1248
+ let a = !1, l = !1, c = !0;
1249
+ for (const u in e) {
1250
+ const f = e[u];
1251
+ if (dr(u)) {
1252
+ s[u] = f;
1260
1253
  continue;
1261
- } else {
1262
- const u = dr(c, Hn[l]);
1263
- l.startsWith("origin") ? (a = !0, o[l] = u) : i[l] = u;
1264
1254
  }
1255
+ const d = pr[u], p = Ya(f, d);
1256
+ if (bt.has(u)) {
1257
+ if (a = !0, o[u] = p, !c)
1258
+ continue;
1259
+ f !== (d.default || 0) && (c = !1);
1260
+ } else
1261
+ u.startsWith("origin") ? (l = !0, r[u] = p) : i[u] = p;
1265
1262
  }
1266
- if (e.transform || (r || n ? i.transform = Za(e, t.transform, n) : i.transform && (i.transform = "none")), a) {
1267
- const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
1268
- i.transformOrigin = `${l} ${c} ${u}`;
1263
+ if (e.transform || (a || n ? i.transform = Ga(t.transform, c, n) : i.transform && (i.transform = "none")), l) {
1264
+ const { originX: u = "50%", originY: f = "50%", originZ: d = 0 } = r;
1265
+ i.transformOrigin = `${u} ${f} ${d}`;
1269
1266
  }
1270
1267
  }
1271
1268
  const Xn = () => ({
@@ -1274,9 +1271,9 @@ const Xn = () => ({
1274
1271
  transformOrigin: {},
1275
1272
  vars: {}
1276
1273
  });
1277
- function gr(t, e, n) {
1274
+ function mr(t, e, n) {
1278
1275
  for (const i in e)
1279
- !z(e[i]) && !hr(i, n) && (t[i] = e[i]);
1276
+ !z(e[i]) && !fr(i, n) && (t[i] = e[i]);
1280
1277
  }
1281
1278
  function tl({ transformTemplate: t }, e) {
1282
1279
  return Mt(() => {
@@ -1286,7 +1283,7 @@ function tl({ transformTemplate: t }, e) {
1286
1283
  }
1287
1284
  function el(t, e) {
1288
1285
  const n = t.style || {}, i = {};
1289
- return gr(i, n, t), Object.assign(i, tl(t, e)), i;
1286
+ return mr(i, n, t), Object.assign(i, tl(t, e)), i;
1290
1287
  }
1291
1288
  function nl(t, e) {
1292
1289
  const n = {}, i = el(t, e);
@@ -1327,9 +1324,9 @@ const il = /* @__PURE__ */ new Set([
1327
1324
  function Fe(t) {
1328
1325
  return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || il.has(t);
1329
1326
  }
1330
- let yr = (t) => !Fe(t);
1327
+ let gr = (t) => !Fe(t);
1331
1328
  function sl(t) {
1332
- t && (yr = (e) => e.startsWith("on") ? !Fe(e) : t(e));
1329
+ t && (gr = (e) => e.startsWith("on") ? !Fe(e) : t(e));
1333
1330
  }
1334
1331
  try {
1335
1332
  sl(require("@emotion/is-prop-valid").default);
@@ -1338,15 +1335,15 @@ try {
1338
1335
  function rl(t, e, n) {
1339
1336
  const i = {};
1340
1337
  for (const s in t)
1341
- s === "values" && typeof t.values == "object" || (yr(s) || n === !0 && Fe(s) || !e && !Fe(s) || // If trying to use native HTML drag events, forward drag listeners
1338
+ s === "values" && typeof t.values == "object" || (gr(s) || n === !0 && Fe(s) || !e && !Fe(s) || // If trying to use native HTML drag events, forward drag listeners
1342
1339
  t.draggable && s.startsWith("onDrag")) && (i[s] = t[s]);
1343
1340
  return i;
1344
1341
  }
1345
- function Ui(t, e, n) {
1342
+ function Ni(t, e, n) {
1346
1343
  return typeof t == "string" ? t : S.transform(e + n * t);
1347
1344
  }
1348
1345
  function ol(t, e, n) {
1349
- const i = Ui(e, t.x, t.width), s = Ui(n, t.y, t.height);
1346
+ const i = Ni(e, t.x, t.width), s = Ni(n, t.y, t.height);
1350
1347
  return `${i} ${s}`;
1351
1348
  }
1352
1349
  const al = {
@@ -1383,13 +1380,13 @@ function qn(t, {
1383
1380
  const { attrs: d, style: p, dimensions: m } = t;
1384
1381
  d.transform && (m && (p.transform = d.transform), delete d.transform), m && (s !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = ol(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 && cl(d, r, a, l, !1);
1385
1382
  }
1386
- const vr = () => ({
1383
+ const yr = () => ({
1387
1384
  ...Xn(),
1388
1385
  attrs: {}
1389
1386
  }), Zn = (t) => typeof t == "string" && t.toLowerCase() === "svg";
1390
1387
  function ul(t, e, n, i) {
1391
1388
  const s = Mt(() => {
1392
- const o = vr();
1389
+ const o = yr();
1393
1390
  return qn(o, e, Zn(i), t.transformTemplate), {
1394
1391
  ...o.attrs,
1395
1392
  style: { ...o.style }
@@ -1397,25 +1394,25 @@ function ul(t, e, n, i) {
1397
1394
  }, [e]);
1398
1395
  if (t.style) {
1399
1396
  const o = {};
1400
- gr(o, t.style, t), s.style = { ...o, ...s.style };
1397
+ mr(o, t.style, t), s.style = { ...o, ...s.style };
1401
1398
  }
1402
1399
  return s;
1403
1400
  }
1404
1401
  function fl(t = !1) {
1405
1402
  return (n, i, s, { latestValues: o }, r) => {
1406
- const l = (Kn(n) ? ul : nl)(i, o, r, n), c = rl(i, typeof n == "string", t), u = n !== nr ? { ...c, ...l, ref: s } : {}, { children: f } = i, d = Mt(() => z(f) ? f.get() : f, [f]);
1407
- return aa(n, {
1403
+ const l = (Gn(n) ? ul : nl)(i, o, r, n), c = rl(i, typeof n == "string", t), u = n !== er ? { ...c, ...l, ref: s } : {}, { children: f } = i, d = Mt(() => z(f) ? f.get() : f, [f]);
1404
+ return oa(n, {
1408
1405
  ...u,
1409
1406
  children: d
1410
1407
  });
1411
1408
  };
1412
1409
  }
1413
- function Pr(t, { style: e, vars: n }, i, s) {
1410
+ function vr(t, { style: e, vars: n }, i, s) {
1414
1411
  Object.assign(t.style, e, s && s.getProjectionStyles(i));
1415
1412
  for (const o in n)
1416
1413
  t.style.setProperty(o, n[o]);
1417
1414
  }
1418
- const xr = /* @__PURE__ */ new Set([
1415
+ const Pr = /* @__PURE__ */ new Set([
1419
1416
  "baseFrequency",
1420
1417
  "diffuseConstant",
1421
1418
  "kernelMatrix",
@@ -1441,18 +1438,18 @@ const xr = /* @__PURE__ */ new Set([
1441
1438
  "lengthAdjust"
1442
1439
  ]);
1443
1440
  function Tr(t, e, n, i) {
1444
- Pr(t, e, void 0, i);
1441
+ vr(t, e, void 0, i);
1445
1442
  for (const s in e.attrs)
1446
- t.setAttribute(xr.has(s) ? s : Ue(s), e.attrs[s]);
1443
+ t.setAttribute(Pr.has(s) ? s : Ue(s), e.attrs[s]);
1447
1444
  }
1448
1445
  function Jn(t, e, n) {
1449
1446
  var i;
1450
1447
  const { style: s } = t, o = {};
1451
1448
  for (const r in s)
1452
- (z(s[r]) || e.style && z(e.style[r]) || hr(r, t) || ((i = n == null ? void 0 : n.getValue(r)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[r] = s[r]);
1449
+ (z(s[r]) || e.style && z(e.style[r]) || fr(r, t) || ((i = n == null ? void 0 : n.getValue(r)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[r] = s[r]);
1453
1450
  return n && s && typeof s.willChange == "string" && (n.applyWillChange = !1), o;
1454
1451
  }
1455
- function br(t, e, n) {
1452
+ function xr(t, e, n) {
1456
1453
  const i = Jn(t, e, n);
1457
1454
  for (const s in t)
1458
1455
  if (z(t[s]) || z(e[s])) {
@@ -1461,7 +1458,7 @@ function br(t, e, n) {
1461
1458
  }
1462
1459
  return i;
1463
1460
  }
1464
- function Wi(t) {
1461
+ function Ui(t) {
1465
1462
  const e = [{}, {}];
1466
1463
  return t == null || t.values.forEach((n, i) => {
1467
1464
  e[0][i] = n.get(), e[1][i] = n.getVelocity();
@@ -1469,17 +1466,17 @@ function Wi(t) {
1469
1466
  }
1470
1467
  function Qn(t, e, n, i) {
1471
1468
  if (typeof e == "function") {
1472
- const [s, o] = Wi(i);
1469
+ const [s, o] = Ui(i);
1473
1470
  e = e(n !== void 0 ? n : t.custom, s, o);
1474
1471
  }
1475
1472
  if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
1476
- const [s, o] = Wi(i);
1473
+ const [s, o] = Ui(i);
1477
1474
  e = e(n !== void 0 ? n : t.custom, s, o);
1478
1475
  }
1479
1476
  return e;
1480
1477
  }
1481
1478
  function ti(t) {
1482
- const e = it(null);
1479
+ const e = J(null);
1483
1480
  return e.current === null && (e.current = t()), e.current;
1484
1481
  }
1485
1482
  const xn = (t) => Array.isArray(t), hl = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), dl = (t) => xn(t) ? t[t.length - 1] || 0 : t;
@@ -1487,7 +1484,7 @@ function Re(t) {
1487
1484
  const e = z(t) ? t.get() : t;
1488
1485
  return hl(e) ? e.toValue() : e;
1489
1486
  }
1490
- const wr = /* @__PURE__ */ new Set([
1487
+ const br = /* @__PURE__ */ new Set([
1491
1488
  "opacity",
1492
1489
  "clipPath",
1493
1490
  "filter",
@@ -1496,10 +1493,10 @@ const wr = /* @__PURE__ */ new Set([
1496
1493
  // or until we implement support for linear() easing.
1497
1494
  // "background-color"
1498
1495
  ]);
1499
- function Sr(t) {
1496
+ function wr(t) {
1500
1497
  if (bt.has(t))
1501
1498
  return "transform";
1502
- if (wr.has(t))
1499
+ if (br.has(t))
1503
1500
  return Ue(t);
1504
1501
  }
1505
1502
  function $e(t, e) {
@@ -1516,15 +1513,15 @@ function pl({ applyWillChange: t = !1, scrapeMotionValuesFromProps: e, createRen
1516
1513
  };
1517
1514
  return i && (l.mount = (c) => i(s, c, l)), l;
1518
1515
  }
1519
- const Cr = (t) => (e, n) => {
1516
+ const Sr = (t) => (e, n) => {
1520
1517
  const i = $(Ie), s = $(Ne), o = () => pl(t, e, i, s, n);
1521
1518
  return n ? o() : ti(o);
1522
1519
  };
1523
1520
  function ml(t, e) {
1524
- const n = Sr(e);
1521
+ const n = wr(e);
1525
1522
  n && $e(t, n);
1526
1523
  }
1527
- function $i(t, e, n) {
1524
+ function Wi(t, e, n) {
1528
1525
  const i = Array.isArray(e) ? e : [e];
1529
1526
  for (let s = 0; s < i.length; s++) {
1530
1527
  const o = Qn(t, i[s]);
@@ -1540,12 +1537,12 @@ function gl(t, e, n, i, s) {
1540
1537
  for (const b in c)
1541
1538
  r[b] = Re(c[b]);
1542
1539
  let { initial: u, animate: f } = t;
1543
- const d = We(t), p = fr(t);
1540
+ const d = We(t), p = ur(t);
1544
1541
  e && p && !d && t.inherit !== !1 && (u === void 0 && (u = e.initial), f === void 0 && (f = e.animate));
1545
1542
  let m = n ? n.initial === !1 : !1;
1546
1543
  m = m || u === !1;
1547
1544
  const P = m ? f : u;
1548
- return P && typeof P != "boolean" && !ae(P) && $i(t, P, (b, x) => {
1545
+ return P && typeof P != "boolean" && !ae(P) && Wi(t, P, (b, T) => {
1549
1546
  for (const y in b) {
1550
1547
  let v = b[y];
1551
1548
  if (Array.isArray(v)) {
@@ -1554,17 +1551,17 @@ function gl(t, e, n, i, s) {
1554
1551
  }
1555
1552
  v !== null && (r[y] = v);
1556
1553
  }
1557
- for (const y in x)
1558
- r[y] = x[y];
1559
- }), l && (f && u !== !1 && !ae(f) && $i(t, f, (b) => {
1560
- for (const x in b)
1561
- ml(a, x);
1554
+ for (const y in T)
1555
+ r[y] = T[y];
1556
+ }), l && (f && u !== !1 && !ae(f) && Wi(t, f, (b) => {
1557
+ for (const T in b)
1558
+ ml(a, T);
1562
1559
  }), a.length && (r.willChange = a.join(","))), r;
1563
1560
  }
1564
- const { schedule: M, cancel: mt, state: W, steps: sn } = lr(typeof requestAnimationFrame < "u" ? requestAnimationFrame : K, !0), yl = {
1565
- useVisualState: Cr({
1566
- scrapeMotionValuesFromProps: br,
1567
- createRenderState: vr,
1561
+ const { schedule: M, cancel: mt, state: W, steps: rn } = ar(typeof requestAnimationFrame < "u" ? requestAnimationFrame : K, !0), yl = {
1562
+ useVisualState: Sr({
1563
+ scrapeMotionValuesFromProps: xr,
1564
+ createRenderState: yr,
1568
1565
  onMount: (t, e, { renderState: n, latestValues: i }) => {
1569
1566
  M.read(() => {
1570
1567
  try {
@@ -1583,7 +1580,7 @@ const { schedule: M, cancel: mt, state: W, steps: sn } = lr(typeof requestAnimat
1583
1580
  }
1584
1581
  })
1585
1582
  }, vl = {
1586
- useVisualState: Cr({
1583
+ useVisualState: Sr({
1587
1584
  applyWillChange: !0,
1588
1585
  scrapeMotionValuesFromProps: Jn,
1589
1586
  createRenderState: Xn
@@ -1591,7 +1588,7 @@ const { schedule: M, cancel: mt, state: W, steps: sn } = lr(typeof requestAnimat
1591
1588
  };
1592
1589
  function Pl(t, { forwardMotionProps: e = !1 }, n, i) {
1593
1590
  return {
1594
- ...Kn(t) ? yl : vl,
1591
+ ...Gn(t) ? yl : vl,
1595
1592
  preloadedFeatures: n,
1596
1593
  useRender: fl(e),
1597
1594
  createVisualElement: i,
@@ -1601,7 +1598,7 @@ function Pl(t, { forwardMotionProps: e = !1 }, n, i) {
1601
1598
  function ct(t, e, n, i = { passive: !0 }) {
1602
1599
  return t.addEventListener(e, n, i), () => t.removeEventListener(e, n);
1603
1600
  }
1604
- const Ar = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
1601
+ const Cr = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
1605
1602
  function Ge(t, e = "page") {
1606
1603
  return {
1607
1604
  point: {
@@ -1610,12 +1607,12 @@ function Ge(t, e = "page") {
1610
1607
  }
1611
1608
  };
1612
1609
  }
1613
- const xl = (t) => (e) => Ar(e) && t(e, Ge(e));
1610
+ const Tl = (t) => (e) => Cr(e) && t(e, Ge(e));
1614
1611
  function ut(t, e, n, i) {
1615
- return ct(t, e, xl(n), i);
1612
+ return ct(t, e, Tl(n), i);
1616
1613
  }
1617
- const Tl = (t, e) => (n) => e(t(n)), ft = (...t) => t.reduce(Tl);
1618
- function Er(t) {
1614
+ const xl = (t, e) => (n) => e(t(n)), ft = (...t) => t.reduce(xl);
1615
+ function Ar(t) {
1619
1616
  let e = null;
1620
1617
  return () => {
1621
1618
  const n = () => {
@@ -1624,23 +1621,23 @@ function Er(t) {
1624
1621
  return e === null ? (e = t, n) : !1;
1625
1622
  };
1626
1623
  }
1627
- const Ki = Er("dragHorizontal"), Gi = Er("dragVertical");
1628
- function Rr(t) {
1624
+ const $i = Ar("dragHorizontal"), Ki = Ar("dragVertical");
1625
+ function Er(t) {
1629
1626
  let e = !1;
1630
1627
  if (t === "y")
1631
- e = Gi();
1632
- else if (t === "x")
1633
1628
  e = Ki();
1629
+ else if (t === "x")
1630
+ e = $i();
1634
1631
  else {
1635
- const n = Ki(), i = Gi();
1632
+ const n = $i(), i = Ki();
1636
1633
  n && i ? e = () => {
1637
1634
  n(), i();
1638
1635
  } : (n && n(), i && i());
1639
1636
  }
1640
1637
  return e;
1641
1638
  }
1642
- function Vr() {
1643
- const t = Rr(!0);
1639
+ function Rr() {
1640
+ const t = Er(!0);
1644
1641
  return t ? (t(), !1) : !0;
1645
1642
  }
1646
1643
  class wt {
@@ -1650,9 +1647,9 @@ class wt {
1650
1647
  update() {
1651
1648
  }
1652
1649
  }
1653
- function Hi(t, e) {
1650
+ function Gi(t, e) {
1654
1651
  const n = e ? "pointerenter" : "pointerleave", i = e ? "onHoverStart" : "onHoverEnd", s = (o, r) => {
1655
- if (o.pointerType === "touch" || Vr())
1652
+ if (o.pointerType === "touch" || Rr())
1656
1653
  return;
1657
1654
  const a = t.getProps();
1658
1655
  t.animationState && a.whileHover && t.animationState.setActive("whileHover", e);
@@ -1665,7 +1662,7 @@ function Hi(t, e) {
1665
1662
  }
1666
1663
  class bl extends wt {
1667
1664
  mount() {
1668
- this.unmount = ft(Hi(this.node, !0), Hi(this.node, !1));
1665
+ this.unmount = ft(Gi(this.node, !0), Gi(this.node, !1));
1669
1666
  }
1670
1667
  unmount() {
1671
1668
  }
@@ -1692,8 +1689,8 @@ class wl extends wt {
1692
1689
  unmount() {
1693
1690
  }
1694
1691
  }
1695
- const Dr = (t, e) => e ? t === e ? !0 : Dr(t, e.parentElement) : !1;
1696
- function rn(t, e) {
1692
+ const Vr = (t, e) => e ? t === e ? !0 : Vr(t, e.parentElement) : !1;
1693
+ function on(t, e) {
1697
1694
  if (!e)
1698
1695
  return;
1699
1696
  const n = new PointerEvent("pointer" + t);
@@ -1708,7 +1705,7 @@ class Sl extends wt {
1708
1705
  const i = this.node.getProps(), o = ut(window, "pointerup", (a, l) => {
1709
1706
  if (!this.checkPressEnd())
1710
1707
  return;
1711
- const { onTap: c, onTapCancel: u, globalTapTarget: f } = this.node.getProps(), d = !f && !Dr(this.node.current, a.target) ? u : c;
1708
+ const { onTap: c, onTapCancel: u, globalTapTarget: f } = this.node.getProps(), d = !f && !Vr(this.node.current, a.target) ? u : c;
1712
1709
  d && M.update(() => d(a, l));
1713
1710
  }, {
1714
1711
  passive: !(i.onTap || i.onPointerUp)
@@ -1721,16 +1718,16 @@ class Sl extends wt {
1721
1718
  if (o.key !== "Enter" || this.isPressing)
1722
1719
  return;
1723
1720
  const r = (a) => {
1724
- a.key !== "Enter" || !this.checkPressEnd() || rn("up", (l, c) => {
1721
+ a.key !== "Enter" || !this.checkPressEnd() || on("up", (l, c) => {
1725
1722
  const { onTap: u } = this.node.getProps();
1726
1723
  u && M.postRender(() => u(l, c));
1727
1724
  });
1728
1725
  };
1729
- this.removeEndListeners(), this.removeEndListeners = ct(this.node.current, "keyup", r), rn("down", (a, l) => {
1726
+ this.removeEndListeners(), this.removeEndListeners = ct(this.node.current, "keyup", r), on("down", (a, l) => {
1730
1727
  this.startPress(a, l);
1731
1728
  });
1732
1729
  }, n = ct(this.node.current, "keydown", e), i = () => {
1733
- this.isPressing && rn("cancel", (o, r) => this.cancelPress(o, r));
1730
+ this.isPressing && on("cancel", (o, r) => this.cancelPress(o, r));
1734
1731
  }, s = ct(this.node.current, "blur", i);
1735
1732
  this.removeAccessibleListeners = ft(n, s);
1736
1733
  };
@@ -1741,7 +1738,7 @@ class Sl extends wt {
1741
1738
  s && this.node.animationState && this.node.animationState.setActive("whileTap", !0), i && M.postRender(() => i(e, n));
1742
1739
  }
1743
1740
  checkPressEnd() {
1744
- return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Vr();
1741
+ return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Rr();
1745
1742
  }
1746
1743
  cancelPress(e, n) {
1747
1744
  if (!this.checkPressEnd())
@@ -1759,22 +1756,22 @@ class Sl extends wt {
1759
1756
  this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
1760
1757
  }
1761
1758
  }
1762
- const Tn = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), Cl = (t) => {
1763
- const e = Tn.get(t.target);
1759
+ const bn = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), Cl = (t) => {
1760
+ const e = bn.get(t.target);
1764
1761
  e && e(t);
1765
1762
  }, Al = (t) => {
1766
1763
  t.forEach(Cl);
1767
1764
  };
1768
1765
  function El({ root: t, ...e }) {
1769
1766
  const n = t || document;
1770
- on.has(n) || on.set(n, {});
1771
- const i = on.get(n), s = JSON.stringify(e);
1767
+ an.has(n) || an.set(n, {});
1768
+ const i = an.get(n), s = JSON.stringify(e);
1772
1769
  return i[s] || (i[s] = new IntersectionObserver(Al, { root: t, ...e })), i[s];
1773
1770
  }
1774
1771
  function Rl(t, e, n) {
1775
1772
  const i = El(e);
1776
- return Tn.set(t, n), i.observe(t), () => {
1777
- Tn.delete(t), i.unobserve(t);
1773
+ return bn.set(t, n), i.observe(t), () => {
1774
+ bn.delete(t), i.unobserve(t);
1778
1775
  };
1779
1776
  }
1780
1777
  const Vl = {
@@ -1830,7 +1827,7 @@ const kl = {
1830
1827
  Feature: bl
1831
1828
  }
1832
1829
  };
1833
- function Mr(t, e) {
1830
+ function Dr(t, e) {
1834
1831
  if (!Array.isArray(e))
1835
1832
  return !1;
1836
1833
  const n = e.length;
@@ -1879,15 +1876,15 @@ function Nl() {
1879
1876
  Ve = void 0;
1880
1877
  }
1881
1878
  const Pt = {
1882
- now: () => (Ve === void 0 && Pt.set(W.isProcessing || Aa.useManualTiming ? W.timestamp : performance.now()), Ve),
1879
+ now: () => (Ve === void 0 && Pt.set(W.isProcessing || Ca.useManualTiming ? W.timestamp : performance.now()), Ve),
1883
1880
  set: (t) => {
1884
1881
  Ve = t, queueMicrotask(Nl);
1885
1882
  }
1886
- }, kr = (t) => /^0[^.\s]+$/u.test(t);
1883
+ }, Mr = (t) => /^0[^.\s]+$/u.test(t);
1887
1884
  function Ul(t) {
1888
- return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || kr(t) : !0;
1885
+ return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Mr(t) : !0;
1889
1886
  }
1890
- const Lr = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Wl = (
1887
+ const kr = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Wl = (
1891
1888
  // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
1892
1889
  /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
1893
1890
  );
@@ -1899,7 +1896,7 @@ function $l(t) {
1899
1896
  return [`--${n ?? i}`, s];
1900
1897
  }
1901
1898
  const Kl = 4;
1902
- function Fr(t, e, n = 1) {
1899
+ function Lr(t, e, n = 1) {
1903
1900
  pt(n <= Kl, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
1904
1901
  const [i, s] = $l(t);
1905
1902
  if (!i)
@@ -1907,9 +1904,9 @@ function Fr(t, e, n = 1) {
1907
1904
  const o = window.getComputedStyle(e).getPropertyValue(i);
1908
1905
  if (o) {
1909
1906
  const r = o.trim();
1910
- return Lr(r) ? parseFloat(r) : r;
1907
+ return kr(r) ? parseFloat(r) : r;
1911
1908
  }
1912
- return zn(s) ? Fr(s, e, n + 1) : s;
1909
+ return Hn(s) ? Lr(s, e, n + 1) : s;
1913
1910
  }
1914
1911
  const Gl = /* @__PURE__ */ new Set([
1915
1912
  "width",
@@ -1922,15 +1919,15 @@ const Gl = /* @__PURE__ */ new Set([
1922
1919
  "y",
1923
1920
  "translateX",
1924
1921
  "translateY"
1925
- ]), zi = (t) => t === Ht || t === S, Yi = (t, e) => parseFloat(t.split(", ")[e]), Xi = (t, e) => (n, { transform: i }) => {
1922
+ ]), Hi = (t) => t === Ht || t === S, zi = (t, e) => parseFloat(t.split(", ")[e]), Yi = (t, e) => (n, { transform: i }) => {
1926
1923
  if (i === "none" || !i)
1927
1924
  return 0;
1928
1925
  const s = i.match(/^matrix3d\((.+)\)$/u);
1929
1926
  if (s)
1930
- return Yi(s[1], e);
1927
+ return zi(s[1], e);
1931
1928
  {
1932
1929
  const o = i.match(/^matrix\((.+)\)$/u);
1933
- return o ? Yi(o[1], t) : 0;
1930
+ return o ? zi(o[1], t) : 0;
1934
1931
  }
1935
1932
  }, Hl = /* @__PURE__ */ new Set(["x", "y", "z"]), zl = pe.filter((t) => !Hl.has(t));
1936
1933
  function Yl(t) {
@@ -1949,18 +1946,18 @@ const Kt = {
1949
1946
  bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
1950
1947
  right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
1951
1948
  // Transform
1952
- x: Xi(4, 13),
1953
- y: Xi(5, 14)
1949
+ x: Yi(4, 13),
1950
+ y: Yi(5, 14)
1954
1951
  };
1955
1952
  Kt.translateX = Kt.x;
1956
1953
  Kt.translateY = Kt.y;
1957
- const Or = (t) => (e) => e.test(t), Xl = {
1954
+ const Fr = (t) => (e) => e.test(t), Xl = {
1958
1955
  test: (t) => t === "auto",
1959
1956
  parse: (t) => t
1960
- }, jr = [Ht, S, at, vt, Ya, za, Xl], qi = (t) => jr.find(Or(t)), Dt = /* @__PURE__ */ new Set();
1961
- let bn = !1, wn = !1;
1962
- function _r() {
1963
- if (wn) {
1957
+ }, Or = [Ht, S, at, vt, Qa, Ja, Xl], Xi = (t) => Or.find(Fr(t)), Dt = /* @__PURE__ */ new Set();
1958
+ let wn = !1, Sn = !1;
1959
+ function jr() {
1960
+ if (Sn) {
1964
1961
  const t = Array.from(Dt).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
1965
1962
  e.forEach((i) => {
1966
1963
  const s = Yl(i);
@@ -1976,22 +1973,22 @@ function _r() {
1976
1973
  i.suspendedScrollY !== void 0 && window.scrollTo(0, i.suspendedScrollY);
1977
1974
  });
1978
1975
  }
1979
- wn = !1, bn = !1, Dt.forEach((t) => t.complete()), Dt.clear();
1976
+ Sn = !1, wn = !1, Dt.forEach((t) => t.complete()), Dt.clear();
1980
1977
  }
1981
- function Br() {
1978
+ function _r() {
1982
1979
  Dt.forEach((t) => {
1983
- t.readKeyframes(), t.needsMeasurement && (wn = !0);
1980
+ t.readKeyframes(), t.needsMeasurement && (Sn = !0);
1984
1981
  });
1985
1982
  }
1986
1983
  function ql() {
1987
- Br(), _r();
1984
+ _r(), jr();
1988
1985
  }
1989
1986
  class ni {
1990
1987
  constructor(e, n, i, s, o, r = !1) {
1991
1988
  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;
1992
1989
  }
1993
1990
  scheduleResolve() {
1994
- this.isScheduled = !0, this.isAsync ? (Dt.add(this), bn || (bn = !0, M.read(Br), M.resolveKeyframes(_r))) : (this.readKeyframes(), this.complete());
1991
+ this.isScheduled = !0, this.isAsync ? (Dt.add(this), wn || (wn = !0, M.read(_r), M.resolveKeyframes(jr))) : (this.readKeyframes(), this.complete());
1995
1992
  }
1996
1993
  readKeyframes() {
1997
1994
  const { unresolvedKeyframes: e, name: n, element: i, motionValue: s } = this;
@@ -2027,23 +2024,23 @@ class ni {
2027
2024
  this.isComplete || this.scheduleResolve();
2028
2025
  }
2029
2026
  }
2030
- const ii = (t, e) => (n) => !!(me(n) && Ga.test(n) && n.startsWith(t) || e && !Ha(n) && Object.prototype.hasOwnProperty.call(n, e)), Ir = (t, e, n) => (i) => {
2027
+ const ii = (t, e) => (n) => !!(me(n) && qa.test(n) && n.startsWith(t) || e && !Za(n) && Object.prototype.hasOwnProperty.call(n, e)), Br = (t, e, n) => (i) => {
2031
2028
  if (!me(i))
2032
2029
  return i;
2033
- const [s, o, r, a] = i.match(Gn);
2030
+ const [s, o, r, a] = i.match(zn);
2034
2031
  return {
2035
2032
  [t]: parseFloat(s),
2036
2033
  [e]: parseFloat(o),
2037
2034
  [n]: parseFloat(r),
2038
2035
  alpha: a !== void 0 ? parseFloat(a) : 1
2039
2036
  };
2040
- }, Zl = (t) => xt(0, 255, t), an = {
2037
+ }, Zl = (t) => Tt(0, 255, t), ln = {
2041
2038
  ...Ht,
2042
2039
  transform: (t) => Math.round(Zl(t))
2043
2040
  }, Vt = {
2044
2041
  test: ii("rgb", "red"),
2045
- parse: Ir("red", "green", "blue"),
2046
- transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + an.transform(t) + ", " + an.transform(e) + ", " + an.transform(n) + ", " + ne(ee.transform(i)) + ")"
2042
+ parse: Br("red", "green", "blue"),
2043
+ transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + ln.transform(t) + ", " + ln.transform(e) + ", " + ln.transform(n) + ", " + ne(ee.transform(i)) + ")"
2047
2044
  };
2048
2045
  function Jl(t) {
2049
2046
  let e = "", n = "", i = "", s = "";
@@ -2054,24 +2051,24 @@ function Jl(t) {
2054
2051
  alpha: s ? parseInt(s, 16) / 255 : 1
2055
2052
  };
2056
2053
  }
2057
- const Sn = {
2054
+ const Cn = {
2058
2055
  test: ii("#"),
2059
2056
  parse: Jl,
2060
2057
  transform: Vt.transform
2061
2058
  }, It = {
2062
2059
  test: ii("hsl", "hue"),
2063
- parse: Ir("hue", "saturation", "lightness"),
2060
+ parse: Br("hue", "saturation", "lightness"),
2064
2061
  transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + at.transform(ne(e)) + ", " + at.transform(ne(n)) + ", " + ne(ee.transform(i)) + ")"
2065
2062
  }, H = {
2066
- test: (t) => Vt.test(t) || Sn.test(t) || It.test(t),
2067
- parse: (t) => Vt.test(t) ? Vt.parse(t) : It.test(t) ? It.parse(t) : Sn.parse(t),
2063
+ test: (t) => Vt.test(t) || Cn.test(t) || It.test(t),
2064
+ parse: (t) => Vt.test(t) ? Vt.parse(t) : It.test(t) ? It.parse(t) : Cn.parse(t),
2068
2065
  transform: (t) => me(t) ? t : t.hasOwnProperty("red") ? Vt.transform(t) : It.transform(t)
2069
2066
  };
2070
2067
  function Ql(t) {
2071
2068
  var e, n;
2072
- return isNaN(t) && me(t) && (((e = t.match(Gn)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(Ka)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
2069
+ return isNaN(t) && me(t) && (((e = t.match(zn)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(Xa)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
2073
2070
  }
2074
- const Nr = "number", Ur = "color", tc = "var", ec = "var(", Zi = "${}", nc = /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;
2071
+ const Ir = "number", Nr = "color", tc = "var", ec = "var(", qi = "${}", nc = /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;
2075
2072
  function le(t) {
2076
2073
  const e = t.toString(), n = [], i = {
2077
2074
  color: [],
@@ -2079,54 +2076,54 @@ function le(t) {
2079
2076
  var: []
2080
2077
  }, s = [];
2081
2078
  let o = 0;
2082
- const a = e.replace(nc, (l) => (H.test(l) ? (i.color.push(o), s.push(Ur), n.push(H.parse(l))) : l.startsWith(ec) ? (i.var.push(o), s.push(tc), n.push(l)) : (i.number.push(o), s.push(Nr), n.push(parseFloat(l))), ++o, Zi)).split(Zi);
2079
+ const a = e.replace(nc, (l) => (H.test(l) ? (i.color.push(o), s.push(Nr), n.push(H.parse(l))) : l.startsWith(ec) ? (i.var.push(o), s.push(tc), n.push(l)) : (i.number.push(o), s.push(Ir), n.push(parseFloat(l))), ++o, qi)).split(qi);
2083
2080
  return { values: n, split: a, indexes: i, types: s };
2084
2081
  }
2085
- function Wr(t) {
2082
+ function Ur(t) {
2086
2083
  return le(t).values;
2087
2084
  }
2088
- function $r(t) {
2085
+ function Wr(t) {
2089
2086
  const { split: e, types: n } = le(t), i = e.length;
2090
2087
  return (s) => {
2091
2088
  let o = "";
2092
2089
  for (let r = 0; r < i; r++)
2093
2090
  if (o += e[r], s[r] !== void 0) {
2094
2091
  const a = n[r];
2095
- a === Nr ? o += ne(s[r]) : a === Ur ? o += H.transform(s[r]) : o += s[r];
2092
+ a === Ir ? o += ne(s[r]) : a === Nr ? o += H.transform(s[r]) : o += s[r];
2096
2093
  }
2097
2094
  return o;
2098
2095
  };
2099
2096
  }
2100
2097
  const ic = (t) => typeof t == "number" ? 0 : t;
2101
2098
  function sc(t) {
2102
- const e = Wr(t);
2103
- return $r(t)(e.map(ic));
2099
+ const e = Ur(t);
2100
+ return Wr(t)(e.map(ic));
2104
2101
  }
2105
- const Tt = {
2102
+ const xt = {
2106
2103
  test: Ql,
2107
- parse: Wr,
2108
- createTransformer: $r,
2104
+ parse: Ur,
2105
+ createTransformer: Wr,
2109
2106
  getAnimatableNone: sc
2110
2107
  }, rc = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2111
2108
  function oc(t) {
2112
2109
  const [e, n] = t.slice(0, -1).split("(");
2113
2110
  if (e === "drop-shadow")
2114
2111
  return t;
2115
- const [i] = n.match(Gn) || [];
2112
+ const [i] = n.match(zn) || [];
2116
2113
  if (!i)
2117
2114
  return t;
2118
2115
  const s = n.replace(i, "");
2119
2116
  let o = rc.has(e) ? 1 : 0;
2120
2117
  return i !== n && (o *= 100), e + "(" + o + s + ")";
2121
2118
  }
2122
- const ac = /\b([a-z-]*)\(.*?\)/gu, Cn = {
2123
- ...Tt,
2119
+ const ac = /\b([a-z-]*)\(.*?\)/gu, An = {
2120
+ ...xt,
2124
2121
  getAnimatableNone: (t) => {
2125
2122
  const e = t.match(ac);
2126
2123
  return e ? e.map(oc).join(" ") : t;
2127
2124
  }
2128
2125
  }, lc = {
2129
- ...Hn,
2126
+ ...pr,
2130
2127
  // Color props
2131
2128
  color: H,
2132
2129
  backgroundColor: H,
@@ -2139,12 +2136,12 @@ const ac = /\b([a-z-]*)\(.*?\)/gu, Cn = {
2139
2136
  borderRightColor: H,
2140
2137
  borderBottomColor: H,
2141
2138
  borderLeftColor: H,
2142
- filter: Cn,
2143
- WebkitFilter: Cn
2139
+ filter: An,
2140
+ WebkitFilter: An
2144
2141
  }, si = (t) => lc[t];
2145
- function Kr(t, e) {
2142
+ function $r(t, e) {
2146
2143
  let n = si(t);
2147
- return n !== Cn && (n = Tt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2144
+ return n !== An && (n = xt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2148
2145
  }
2149
2146
  const cc = /* @__PURE__ */ new Set(["auto", "none", "0"]);
2150
2147
  function uc(t, e, n) {
@@ -2155,9 +2152,9 @@ function uc(t, e, n) {
2155
2152
  }
2156
2153
  if (s && n)
2157
2154
  for (const o of e)
2158
- t[o] = Kr(n, s);
2155
+ t[o] = $r(n, s);
2159
2156
  }
2160
- class Gr extends ni {
2157
+ class Kr extends ni {
2161
2158
  constructor(e, n, i, s) {
2162
2159
  super(e, n, i, s, s == null ? void 0 : s.owner, !0);
2163
2160
  }
@@ -2168,16 +2165,16 @@ class Gr extends ni {
2168
2165
  super.readKeyframes();
2169
2166
  for (let l = 0; l < e.length; l++) {
2170
2167
  let c = e[l];
2171
- if (typeof c == "string" && (c = c.trim(), zn(c))) {
2172
- const u = Fr(c, n.current);
2168
+ if (typeof c == "string" && (c = c.trim(), Hn(c))) {
2169
+ const u = Lr(c, n.current);
2173
2170
  u !== void 0 && (e[l] = u), l === e.length - 1 && (this.finalKeyframe = c);
2174
2171
  }
2175
2172
  }
2176
2173
  if (this.resolveNoneKeyframes(), !Gl.has(i) || e.length !== 2)
2177
2174
  return;
2178
- const [s, o] = e, r = qi(s), a = qi(o);
2175
+ const [s, o] = e, r = Xi(s), a = Xi(o);
2179
2176
  if (r !== a)
2180
- if (zi(r) && zi(a))
2177
+ if (Hi(r) && Hi(a))
2181
2178
  for (let l = 0; l < e.length; l++) {
2182
2179
  const c = e[l];
2183
2180
  typeof c == "string" && (e[l] = parseFloat(c));
@@ -2212,12 +2209,12 @@ class Gr extends ni {
2212
2209
  }), this.resolveNoneKeyframes();
2213
2210
  }
2214
2211
  }
2215
- function Hr(t) {
2212
+ function Gr(t) {
2216
2213
  let e;
2217
2214
  return () => (e === void 0 && (e = t()), e);
2218
2215
  }
2219
- const Ji = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
2220
- (Tt.test(t) || t === "0") && // And it contains numbers and/or colors
2216
+ const Zi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
2217
+ (xt.test(t) || t === "0") && // And it contains numbers and/or colors
2221
2218
  !t.startsWith("url("));
2222
2219
  function fc(t) {
2223
2220
  const e = t[0];
@@ -2233,10 +2230,10 @@ function hc(t, e, n, i) {
2233
2230
  return !1;
2234
2231
  if (e === "display" || e === "visibility")
2235
2232
  return !0;
2236
- const o = t[t.length - 1], r = Ji(s, e), a = Ji(o, e);
2233
+ const o = t[t.length - 1], r = Zi(s, e), a = Zi(o, e);
2237
2234
  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 : fc(t) || n === "spring" && i;
2238
2235
  }
2239
- class zr {
2236
+ class Hr {
2240
2237
  constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: s = 0, repeatDelay: o = 0, repeatType: r = "loop", ...a }) {
2241
2238
  this.isStopped = !1, this.hasAttemptedResolve = !1, this.options = {
2242
2239
  autoplay: e,
@@ -2294,28 +2291,28 @@ class zr {
2294
2291
  });
2295
2292
  }
2296
2293
  }
2297
- function Yr(t, e) {
2294
+ function zr(t, e) {
2298
2295
  return e ? t * (1e3 / e) : 0;
2299
2296
  }
2300
2297
  const dc = 5;
2301
- function Xr(t, e, n) {
2298
+ function Yr(t, e, n) {
2302
2299
  const i = Math.max(e - dc, 0);
2303
- return Yr(n - t(i), e - i);
2300
+ return zr(n - t(i), e - i);
2304
2301
  }
2305
- const ln = 1e-3, pc = 0.01, Qi = 10, mc = 0.05, gc = 1;
2302
+ const cn = 1e-3, pc = 0.01, Ji = 10, mc = 0.05, gc = 1;
2306
2303
  function yc({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1 }) {
2307
2304
  let s, o;
2308
- Gt(t <= ht(Qi), "Spring duration must be 10 seconds or less");
2305
+ Gt(t <= ht(Ji), "Spring duration must be 10 seconds or less");
2309
2306
  let r = 1 - e;
2310
- r = xt(mc, gc, r), t = xt(pc, Qi, dt(t)), r < 1 ? (s = (c) => {
2311
- const u = c * r, f = u * t, d = u - n, p = An(c, r), m = Math.exp(-f);
2312
- return ln - d / p * m;
2307
+ r = Tt(mc, gc, r), t = Tt(pc, Ji, dt(t)), r < 1 ? (s = (c) => {
2308
+ const u = c * r, f = u * t, d = u - n, p = En(c, r), m = Math.exp(-f);
2309
+ return cn - d / p * m;
2313
2310
  }, o = (c) => {
2314
- const f = c * r * t, d = f * n + n, p = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-f), P = An(Math.pow(c, 2), r);
2315
- return (-s(c) + ln > 0 ? -1 : 1) * ((d - p) * m) / P;
2311
+ const f = c * r * t, d = f * n + n, p = Math.pow(r, 2) * Math.pow(c, 2) * t, m = Math.exp(-f), P = En(Math.pow(c, 2), r);
2312
+ return (-s(c) + cn > 0 ? -1 : 1) * ((d - p) * m) / P;
2316
2313
  }) : (s = (c) => {
2317
2314
  const u = Math.exp(-c * t), f = (c - n) * t + 1;
2318
- return -ln + u * f;
2315
+ return -cn + u * f;
2319
2316
  }, o = (c) => {
2320
2317
  const u = Math.exp(-c * t), f = (n - c) * (t * t);
2321
2318
  return u * f;
@@ -2343,11 +2340,11 @@ function Pc(t, e, n) {
2343
2340
  i = i - t(i) / e(i);
2344
2341
  return i;
2345
2342
  }
2346
- function An(t, e) {
2343
+ function En(t, e) {
2347
2344
  return t * Math.sqrt(1 - e * e);
2348
2345
  }
2349
- const xc = ["duration", "bounce"], Tc = ["stiffness", "damping", "mass"];
2350
- function ts(t, e) {
2346
+ const Tc = ["duration", "bounce"], xc = ["stiffness", "damping", "mass"];
2347
+ function Qi(t, e) {
2351
2348
  return e.some((n) => t[n] !== void 0);
2352
2349
  }
2353
2350
  function bc(t) {
@@ -2359,7 +2356,7 @@ function bc(t) {
2359
2356
  isResolvedFromDuration: !1,
2360
2357
  ...t
2361
2358
  };
2362
- if (!ts(t, Tc) && ts(t, xc)) {
2359
+ if (!Qi(t, xc) && Qi(t, Tc)) {
2363
2360
  const n = yc(t);
2364
2361
  e = {
2365
2362
  ...e,
@@ -2369,15 +2366,15 @@ function bc(t) {
2369
2366
  }
2370
2367
  return e;
2371
2368
  }
2372
- function qr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2369
+ function Xr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2373
2370
  const s = t[0], o = t[t.length - 1], r = { done: !1, value: s }, { stiffness: a, damping: l, mass: c, duration: u, velocity: f, isResolvedFromDuration: d } = bc({
2374
2371
  ...i,
2375
2372
  velocity: -dt(i.velocity || 0)
2376
- }), p = f || 0, m = l / (2 * Math.sqrt(a * c)), P = o - s, b = dt(Math.sqrt(a / c)), x = Math.abs(P) < 5;
2377
- n || (n = x ? 0.01 : 2), e || (e = x ? 5e-3 : 0.5);
2373
+ }), p = f || 0, m = l / (2 * Math.sqrt(a * c)), P = o - s, b = dt(Math.sqrt(a / c)), T = Math.abs(P) < 5;
2374
+ n || (n = T ? 0.01 : 2), e || (e = T ? 5e-3 : 0.5);
2378
2375
  let y;
2379
2376
  if (m < 1) {
2380
- const v = An(b, m);
2377
+ const v = En(b, m);
2381
2378
  y = (w) => {
2382
2379
  const A = Math.exp(-m * b * w);
2383
2380
  return o - A * ((p + m * b * P) / v * Math.sin(v * w) + P * Math.cos(v * w));
@@ -2387,8 +2384,8 @@ function qr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2387
2384
  else {
2388
2385
  const v = b * Math.sqrt(m * m - 1);
2389
2386
  y = (w) => {
2390
- const A = Math.exp(-m * b * w), L = Math.min(v * w, 300);
2391
- return o - A * ((p + m * b * P) * Math.sinh(L) + v * P * Math.cosh(L)) / v;
2387
+ const A = Math.exp(-m * b * w), F = Math.min(v * w, 300);
2388
+ return o - A * ((p + m * b * P) * Math.sinh(F) + v * P * Math.cosh(F)) / v;
2392
2389
  };
2393
2390
  }
2394
2391
  return {
@@ -2399,31 +2396,31 @@ function qr({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2399
2396
  r.done = v >= u;
2400
2397
  else {
2401
2398
  let A = p;
2402
- v !== 0 && (m < 1 ? A = Xr(y, v, w) : A = 0);
2403
- const L = Math.abs(A) <= n, q = Math.abs(o - w) <= e;
2404
- r.done = L && q;
2399
+ v !== 0 && (m < 1 ? A = Yr(y, v, w) : A = 0);
2400
+ const F = Math.abs(A) <= n, q = Math.abs(o - w) <= e;
2401
+ r.done = F && q;
2405
2402
  }
2406
2403
  return r.value = r.done ? o : w, r;
2407
2404
  }
2408
2405
  };
2409
2406
  }
2410
- function es({ 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 }) {
2407
+ function ts({ 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 }) {
2411
2408
  const f = t[0], d = {
2412
2409
  done: !1,
2413
2410
  value: f
2414
2411
  }, p = (E) => a !== void 0 && E < a || l !== void 0 && E > l, m = (E) => a === void 0 ? l : l === void 0 || Math.abs(a - E) < Math.abs(l - E) ? a : l;
2415
2412
  let P = n * e;
2416
- const b = f + P, x = r === void 0 ? b : r(b);
2417
- x !== b && (P = x - f);
2418
- const y = (E) => -P * Math.exp(-E / i), v = (E) => x + y(E), w = (E) => {
2413
+ const b = f + P, T = r === void 0 ? b : r(b);
2414
+ T !== b && (P = T - f);
2415
+ const y = (E) => -P * Math.exp(-E / i), v = (E) => T + y(E), w = (E) => {
2419
2416
  const U = y(E), G = v(E);
2420
- d.done = Math.abs(U) <= c, d.value = d.done ? x : G;
2417
+ d.done = Math.abs(U) <= c, d.value = d.done ? T : G;
2421
2418
  };
2422
- let A, L;
2419
+ let A, F;
2423
2420
  const q = (E) => {
2424
- p(d.value) && (A = E, L = qr({
2421
+ p(d.value) && (A = E, F = Xr({
2425
2422
  keyframes: [d.value, m(d.value)],
2426
- velocity: Xr(v, E, d.value),
2423
+ velocity: Yr(v, E, d.value),
2427
2424
  // TODO: This should be passing * 1000
2428
2425
  damping: s,
2429
2426
  stiffness: o,
@@ -2435,15 +2432,15 @@ function es({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2435
2432
  calculatedDuration: null,
2436
2433
  next: (E) => {
2437
2434
  let U = !1;
2438
- return !L && A === void 0 && (U = !0, w(E), q(E)), A !== void 0 && E >= A ? L.next(E - A) : (!U && w(E), d);
2435
+ return !F && A === void 0 && (U = !0, w(E), q(E)), A !== void 0 && E >= A ? F.next(E - A) : (!U && w(E), d);
2439
2436
  }
2440
2437
  };
2441
2438
  }
2442
- const Zr = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, wc = 1e-7, Sc = 12;
2439
+ const qr = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, wc = 1e-7, Sc = 12;
2443
2440
  function Cc(t, e, n, i, s) {
2444
2441
  let o, r, a = 0;
2445
2442
  do
2446
- r = e + (n - e) / 2, o = Zr(r, i, s) - t, o > 0 ? n = r : e = r;
2443
+ r = e + (n - e) / 2, o = qr(r, i, s) - t, o > 0 ? n = r : e = r;
2447
2444
  while (Math.abs(o) > wc && ++a < Sc);
2448
2445
  return r;
2449
2446
  }
@@ -2451,33 +2448,33 @@ function ye(t, e, n, i) {
2451
2448
  if (t === e && n === i)
2452
2449
  return K;
2453
2450
  const s = (o) => Cc(o, 0, 1, t, n);
2454
- return (o) => o === 0 || o === 1 ? o : Zr(s(o), e, i);
2451
+ return (o) => o === 0 || o === 1 ? o : qr(s(o), e, i);
2455
2452
  }
2456
- const Ac = ye(0.42, 0, 1, 1), Ec = ye(0, 0, 0.58, 1), Jr = ye(0.42, 0, 0.58, 1), Rc = (t) => Array.isArray(t) && typeof t[0] != "number", Qr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, to = (t) => (e) => 1 - t(1 - e), ri = (t) => 1 - Math.sin(Math.acos(t)), eo = to(ri), Vc = Qr(ri), no = ye(0.33, 1.53, 0.69, 0.99), oi = to(no), Dc = Qr(oi), Mc = (t) => (t *= 2) < 1 ? 0.5 * oi(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), ns = {
2453
+ const Ac = ye(0.42, 0, 1, 1), Ec = ye(0, 0, 0.58, 1), Zr = ye(0.42, 0, 0.58, 1), Rc = (t) => Array.isArray(t) && typeof t[0] != "number", Jr = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Qr = (t) => (e) => 1 - t(1 - e), ri = (t) => 1 - Math.sin(Math.acos(t)), to = Qr(ri), Vc = Jr(ri), eo = ye(0.33, 1.53, 0.69, 0.99), oi = Qr(eo), Dc = Jr(oi), Mc = (t) => (t *= 2) < 1 ? 0.5 * oi(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), es = {
2457
2454
  linear: K,
2458
2455
  easeIn: Ac,
2459
- easeInOut: Jr,
2456
+ easeInOut: Zr,
2460
2457
  easeOut: Ec,
2461
2458
  circIn: ri,
2462
2459
  circInOut: Vc,
2463
- circOut: eo,
2460
+ circOut: to,
2464
2461
  backIn: oi,
2465
2462
  backInOut: Dc,
2466
- backOut: no,
2463
+ backOut: eo,
2467
2464
  anticipate: Mc
2468
- }, is = (t) => {
2465
+ }, ns = (t) => {
2469
2466
  if (Array.isArray(t)) {
2470
2467
  pt(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
2471
2468
  const [e, n, i, s] = t;
2472
2469
  return ye(e, n, i, s);
2473
2470
  } else if (typeof t == "string")
2474
- return pt(ns[t] !== void 0, `Invalid easing type '${t}'`), ns[t];
2471
+ return pt(es[t] !== void 0, `Invalid easing type '${t}'`), es[t];
2475
2472
  return t;
2476
2473
  }, ce = (t, e, n) => {
2477
2474
  const i = e - t;
2478
2475
  return i === 0 ? 1 : (n - t) / i;
2479
2476
  }, O = (t, e, n) => t + (e - t) * n;
2480
- function cn(t, e, n) {
2477
+ function un(t, e, n) {
2481
2478
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
2482
2479
  }
2483
2480
  function kc({ hue: t, saturation: e, lightness: n, alpha: i }) {
@@ -2487,7 +2484,7 @@ function kc({ hue: t, saturation: e, lightness: n, alpha: i }) {
2487
2484
  s = o = r = n;
2488
2485
  else {
2489
2486
  const a = n < 0.5 ? n * (1 + e) : n + e - n * e, l = 2 * n - a;
2490
- s = cn(l, a, t + 1 / 3), o = cn(l, a, t), r = cn(l, a, t - 1 / 3);
2487
+ s = un(l, a, t + 1 / 3), o = un(l, a, t), r = un(l, a, t - 1 / 3);
2491
2488
  }
2492
2489
  return {
2493
2490
  red: Math.round(s * 255),
@@ -2499,34 +2496,34 @@ function kc({ hue: t, saturation: e, lightness: n, alpha: i }) {
2499
2496
  function Oe(t, e) {
2500
2497
  return (n) => n > 0 ? e : t;
2501
2498
  }
2502
- const un = (t, e, n) => {
2499
+ const fn = (t, e, n) => {
2503
2500
  const i = t * t, s = n * (e * e - i) + i;
2504
2501
  return s < 0 ? 0 : Math.sqrt(s);
2505
- }, Lc = [Sn, Vt, It], Fc = (t) => Lc.find((e) => e.test(t));
2506
- function ss(t) {
2502
+ }, Lc = [Cn, Vt, It], Fc = (t) => Lc.find((e) => e.test(t));
2503
+ function is(t) {
2507
2504
  const e = Fc(t);
2508
2505
  if (Gt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
2509
2506
  return !1;
2510
2507
  let n = e.parse(t);
2511
2508
  return e === It && (n = kc(n)), n;
2512
2509
  }
2513
- const rs = (t, e) => {
2514
- const n = ss(t), i = ss(e);
2510
+ const ss = (t, e) => {
2511
+ const n = is(t), i = is(e);
2515
2512
  if (!n || !i)
2516
2513
  return Oe(t, e);
2517
2514
  const s = { ...n };
2518
- return (o) => (s.red = un(n.red, i.red, o), s.green = un(n.green, i.green, o), s.blue = un(n.blue, i.blue, o), s.alpha = O(n.alpha, i.alpha, o), Vt.transform(s));
2519
- }, En = /* @__PURE__ */ new Set(["none", "hidden"]);
2515
+ return (o) => (s.red = fn(n.red, i.red, o), s.green = fn(n.green, i.green, o), s.blue = fn(n.blue, i.blue, o), s.alpha = O(n.alpha, i.alpha, o), Vt.transform(s));
2516
+ }, Rn = /* @__PURE__ */ new Set(["none", "hidden"]);
2520
2517
  function Oc(t, e) {
2521
- return En.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
2518
+ return Rn.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
2522
2519
  }
2523
2520
  function jc(t, e) {
2524
2521
  return (n) => O(t, e, n);
2525
2522
  }
2526
2523
  function ai(t) {
2527
- return typeof t == "number" ? jc : typeof t == "string" ? zn(t) ? Oe : H.test(t) ? rs : Ic : Array.isArray(t) ? io : typeof t == "object" ? H.test(t) ? rs : _c : Oe;
2524
+ return typeof t == "number" ? jc : typeof t == "string" ? Hn(t) ? Oe : H.test(t) ? ss : Ic : Array.isArray(t) ? no : typeof t == "object" ? H.test(t) ? ss : _c : Oe;
2528
2525
  }
2529
- function io(t, e) {
2526
+ function no(t, e) {
2530
2527
  const n = [...t], i = n.length, s = t.map((o, r) => ai(o)(o, e[r]));
2531
2528
  return (o) => {
2532
2529
  for (let r = 0; r < i; r++)
@@ -2554,14 +2551,14 @@ function Bc(t, e) {
2554
2551
  return i;
2555
2552
  }
2556
2553
  const Ic = (t, e) => {
2557
- const n = Tt.createTransformer(e), i = le(t), s = le(e);
2558
- 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 ? En.has(t) && !s.values.length || En.has(e) && !i.values.length ? Oc(t, e) : ft(io(Bc(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));
2554
+ const n = xt.createTransformer(e), i = le(t), s = le(e);
2555
+ 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 ? Rn.has(t) && !s.values.length || Rn.has(e) && !i.values.length ? Oc(t, e) : ft(no(Bc(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));
2559
2556
  };
2560
- function so(t, e, n) {
2557
+ function io(t, e, n) {
2561
2558
  return typeof t == "number" && typeof e == "number" && typeof n == "number" ? O(t, e, n) : ai(t)(t, e);
2562
2559
  }
2563
2560
  function Nc(t, e, n) {
2564
- const i = [], s = n || so, o = t.length - 1;
2561
+ const i = [], s = n || io, o = t.length - 1;
2565
2562
  for (let r = 0; r < o; r++) {
2566
2563
  let a = s(t[r], t[r + 1]);
2567
2564
  if (e) {
@@ -2587,7 +2584,7 @@ function Uc(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
2587
2584
  const f = ce(t[u], t[u + 1], c);
2588
2585
  return r[u](f);
2589
2586
  };
2590
- return n ? (c) => l(xt(t[0], t[o - 1], c)) : l;
2587
+ return n ? (c) => l(Tt(t[0], t[o - 1], c)) : l;
2591
2588
  }
2592
2589
  function Wc(t, e) {
2593
2590
  const n = t[t.length - 1];
@@ -2604,10 +2601,10 @@ function Kc(t, e) {
2604
2601
  return t.map((n) => n * e);
2605
2602
  }
2606
2603
  function Gc(t, e) {
2607
- return t.map(() => e || Jr).splice(0, t.length - 1);
2604
+ return t.map(() => e || Zr).splice(0, t.length - 1);
2608
2605
  }
2609
2606
  function je({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
2610
- const s = Rc(i) ? i.map(is) : is(i), o = {
2607
+ const s = Rc(i) ? i.map(ns) : ns(i), o = {
2611
2608
  done: !1,
2612
2609
  value: e[0]
2613
2610
  }, r = Kc(
@@ -2623,14 +2620,14 @@ function je({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }
2623
2620
  next: (l) => (o.value = a(l), o.done = l >= t, o)
2624
2621
  };
2625
2622
  }
2626
- const os = 2e4;
2623
+ const rs = 2e4;
2627
2624
  function Hc(t) {
2628
2625
  let e = 0;
2629
2626
  const n = 50;
2630
2627
  let i = t.next(e);
2631
- for (; !i.done && e < os; )
2628
+ for (; !i.done && e < rs; )
2632
2629
  e += n, i = t.next(e);
2633
- return e >= os ? 1 / 0 : e;
2630
+ return e >= rs ? 1 / 0 : e;
2634
2631
  }
2635
2632
  const zc = (t) => {
2636
2633
  const e = ({ timestamp: n }) => t(n);
@@ -2644,13 +2641,13 @@ const zc = (t) => {
2644
2641
  now: () => W.isProcessing ? W.timestamp : Pt.now()
2645
2642
  };
2646
2643
  }, Yc = {
2647
- decay: es,
2648
- inertia: es,
2644
+ decay: ts,
2645
+ inertia: ts,
2649
2646
  tween: je,
2650
2647
  keyframes: je,
2651
- spring: qr
2648
+ spring: Xr
2652
2649
  }, Xc = (t) => t / 100;
2653
- class li extends zr {
2650
+ class li extends Hr {
2654
2651
  constructor({ KeyframeResolver: e = ni, ...n }) {
2655
2652
  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 = () => {
2656
2653
  if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
@@ -2665,7 +2662,7 @@ class li extends zr {
2665
2662
  initPlayback(e) {
2666
2663
  const { type: n = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: o, velocity: r = 0 } = this.options, a = Yc[n] || je;
2667
2664
  let l, c;
2668
- a !== je && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && pt(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = ft(Xc, so(e[0], e[1])), e = [0, 100]);
2665
+ a !== je && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && pt(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = ft(Xc, io(e[0], e[1])), e = [0, 100]);
2669
2666
  const u = a({ ...this.options, keyframes: e });
2670
2667
  o === "mirror" && (c = a({
2671
2668
  ...this.options,
@@ -2697,19 +2694,19 @@ class li extends zr {
2697
2694
  return o.next(0);
2698
2695
  const { delay: d, repeat: p, repeatType: m, repeatDelay: P, onUpdate: b } = this.options;
2699
2696
  this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - u / this.speed, this.startTime)), n ? this.currentTime = e : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(e - this.startTime) * this.speed;
2700
- const x = this.currentTime - d * (this.speed >= 0 ? 1 : -1), y = this.speed >= 0 ? x < 0 : x > u;
2701
- this.currentTime = Math.max(x, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = u);
2697
+ const T = this.currentTime - d * (this.speed >= 0 ? 1 : -1), y = this.speed >= 0 ? T < 0 : T > u;
2698
+ this.currentTime = Math.max(T, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = u);
2702
2699
  let v = this.currentTime, w = o;
2703
2700
  if (p) {
2704
2701
  const E = Math.min(this.currentTime, u) / f;
2705
2702
  let U = Math.floor(E), G = E % 1;
2706
- !G && E >= 1 && (G = 1), G === 1 && U--, U = Math.min(U, p + 1), !!(U % 2) && (m === "reverse" ? (G = 1 - G, P && (G -= P / f)) : m === "mirror" && (w = r)), v = xt(0, 1, G) * f;
2703
+ !G && E >= 1 && (G = 1), G === 1 && U--, U = Math.min(U, p + 1), !!(U % 2) && (m === "reverse" ? (G = 1 - G, P && (G -= P / f)) : m === "mirror" && (w = r)), v = Tt(0, 1, G) * f;
2707
2704
  }
2708
2705
  const A = y ? { done: !1, value: l[0] } : w.next(v);
2709
2706
  a && (A.value = a(A.value));
2710
- let { done: L } = A;
2711
- !y && c !== null && (L = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
2712
- const q = this.holdTime === null && (this.state === "finished" || this.state === "running" && L);
2707
+ let { done: F } = A;
2708
+ !y && c !== null && (F = this.speed >= 0 ? this.currentTime >= u : this.currentTime <= 0);
2709
+ const q = this.holdTime === null && (this.state === "finished" || this.state === "running" && F);
2713
2710
  return q && s !== void 0 && (A.value = ze(l, this.options, s)), b && b(A.value), q && this.finish(), A;
2714
2711
  }
2715
2712
  get duration() {
@@ -2770,9 +2767,9 @@ class li extends zr {
2770
2767
  return this.startTime = 0, this.tick(e, !0);
2771
2768
  }
2772
2769
  }
2773
- const ro = (t) => Array.isArray(t) && typeof t[0] == "number";
2774
- function oo(t) {
2775
- return !!(!t || typeof t == "string" && t in ci || ro(t) || Array.isArray(t) && t.every(oo));
2770
+ const so = (t) => Array.isArray(t) && typeof t[0] == "number";
2771
+ function ro(t) {
2772
+ return !!(!t || typeof t == "string" && t in ci || so(t) || Array.isArray(t) && t.every(ro));
2776
2773
  }
2777
2774
  const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, ci = {
2778
2775
  linear: "linear",
@@ -2786,16 +2783,16 @@ const Qt = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, ci = {
2786
2783
  backOut: Qt([0.33, 1.53, 0.69, 0.99])
2787
2784
  };
2788
2785
  function qc(t) {
2789
- return ao(t) || ci.easeOut;
2786
+ return oo(t) || ci.easeOut;
2790
2787
  }
2791
- function ao(t) {
2788
+ function oo(t) {
2792
2789
  if (t)
2793
- return ro(t) ? Qt(t) : Array.isArray(t) ? t.map(qc) : ci[t];
2790
+ return so(t) ? Qt(t) : Array.isArray(t) ? t.map(qc) : ci[t];
2794
2791
  }
2795
2792
  function Zc(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a, times: l } = {}) {
2796
2793
  const c = { [e]: n };
2797
2794
  l && (c.offset = l);
2798
- const u = ao(a);
2795
+ const u = oo(a);
2799
2796
  return Array.isArray(u) && (c.easing = u), t.animate(c, {
2800
2797
  delay: i,
2801
2798
  duration: s,
@@ -2805,9 +2802,9 @@ function Zc(t, e, n, { delay: i = 0, duration: s = 300, repeat: o = 0, repeatTyp
2805
2802
  direction: r === "reverse" ? "alternate" : "normal"
2806
2803
  });
2807
2804
  }
2808
- const Jc = Hr(() => Object.hasOwnProperty.call(Element.prototype, "animate")), _e = 10, Qc = 2e4;
2805
+ const Jc = Gr(() => Object.hasOwnProperty.call(Element.prototype, "animate")), _e = 10, Qc = 2e4;
2809
2806
  function tu(t) {
2810
- return t.type === "spring" || !oo(t.ease);
2807
+ return t.type === "spring" || !ro(t.ease);
2811
2808
  }
2812
2809
  function eu(t, e) {
2813
2810
  const n = new li({
@@ -2829,11 +2826,11 @@ function eu(t, e) {
2829
2826
  ease: "linear"
2830
2827
  };
2831
2828
  }
2832
- class as extends zr {
2829
+ class os extends Hr {
2833
2830
  constructor(e) {
2834
2831
  super(e);
2835
2832
  const { name: n, motionValue: i, keyframes: s } = this.options;
2836
- this.resolver = new Gr(s, (o, r) => this.onKeyframesResolved(o, r), n, i), this.resolver.scheduleResolve();
2833
+ this.resolver = new Kr(s, (o, r) => this.onKeyframesResolved(o, r), n, i), this.resolver.scheduleResolve();
2837
2834
  }
2838
2835
  initPlayback(e, n) {
2839
2836
  var i;
@@ -2966,7 +2963,7 @@ class as extends zr {
2966
2963
  }
2967
2964
  static supports(e) {
2968
2965
  const { motionValue: n, name: i, repeatDelay: s, repeatType: o, damping: r, type: a } = e;
2969
- return Jc() && i && wr.has(i) && n && n.owner && n.owner.current instanceof HTMLElement && /**
2966
+ return Jc() && i && br.has(i) && n && n.owner && n.owner.current instanceof HTMLElement && /**
2970
2967
  * If we're outputting values to onUpdate then we can't use WAAPI as there's
2971
2968
  * no way to read the value from WAAPI every frame.
2972
2969
  */
@@ -2981,7 +2978,7 @@ function nu(t, e) {
2981
2978
  };
2982
2979
  return M.update(i, !0), () => mt(i);
2983
2980
  }
2984
- const iu = Hr(() => window.ScrollTimeline !== void 0);
2981
+ const iu = Gr(() => window.ScrollTimeline !== void 0);
2985
2982
  class su {
2986
2983
  constructor(e) {
2987
2984
  this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
@@ -3081,7 +3078,7 @@ const ui = (t, e, n, i = {}, s, o, r) => (a) => {
3081
3078
  f.onUpdate(p), f.onComplete();
3082
3079
  }), new su([]);
3083
3080
  }
3084
- return !o && as.supports(f) ? new as(f) : new li(f);
3081
+ return !o && os.supports(f) ? new os(f) : new li(f);
3085
3082
  };
3086
3083
  class fi {
3087
3084
  constructor() {
@@ -3108,12 +3105,12 @@ class fi {
3108
3105
  this.subscriptions.length = 0;
3109
3106
  }
3110
3107
  }
3111
- const ls = /* @__PURE__ */ new Set();
3108
+ const as = /* @__PURE__ */ new Set();
3112
3109
  function hi(t, e, n) {
3113
- t || ls.has(e) || (console.warn(e), n && console.warn(n), ls.add(e));
3110
+ t || as.has(e) || (console.warn(e), n && console.warn(n), as.add(e));
3114
3111
  }
3115
- const cs = 30, ru = (t) => !isNaN(parseFloat(t));
3116
- class lo {
3112
+ const ls = 30, ru = (t) => !isNaN(parseFloat(t));
3113
+ class ao {
3117
3114
  /**
3118
3115
  * @param init - The initiating value
3119
3116
  * @param config - Optional configuration options
@@ -3123,7 +3120,7 @@ class lo {
3123
3120
  * @internal
3124
3121
  */
3125
3122
  constructor(e, n = {}) {
3126
- this.version = "11.3.21", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i, s = !0) => {
3123
+ this.version = "11.3.19", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i, s = !0) => {
3127
3124
  const o = Pt.now();
3128
3125
  this.updatedAt !== o && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), s && this.events.renderRequest && this.events.renderRequest.notify(this.current);
3129
3126
  }, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
@@ -3251,10 +3248,10 @@ class lo {
3251
3248
  */
3252
3249
  getVelocity() {
3253
3250
  const e = Pt.now();
3254
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > cs)
3251
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > ls)
3255
3252
  return 0;
3256
- const n = Math.min(this.updatedAt - this.prevUpdatedAt, cs);
3257
- return Yr(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
3253
+ const n = Math.min(this.updatedAt - this.prevUpdatedAt, ls);
3254
+ return zr(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
3258
3255
  }
3259
3256
  /**
3260
3257
  * Registers a new animation to control this `MotionValue`. Only one
@@ -3308,7 +3305,7 @@ class lo {
3308
3305
  }
3309
3306
  }
3310
3307
  function ue(t, e) {
3311
- return new lo(t, e);
3308
+ return new ao(t, e);
3312
3309
  }
3313
3310
  function ou(t, e, n) {
3314
3311
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, ue(n));
@@ -3322,15 +3319,15 @@ function au(t, e) {
3322
3319
  ou(t, r, a);
3323
3320
  }
3324
3321
  }
3325
- function co(t) {
3326
- return t.getProps()[ar];
3322
+ function lo(t) {
3323
+ return t.getProps()[or];
3327
3324
  }
3328
- class lu extends lo {
3325
+ class lu extends ao {
3329
3326
  constructor() {
3330
3327
  super(...arguments), this.output = [], this.counts = /* @__PURE__ */ new Map();
3331
3328
  }
3332
3329
  add(e) {
3333
- const n = Sr(e);
3330
+ const n = wr(e);
3334
3331
  if (!n)
3335
3332
  return;
3336
3333
  const i = this.counts.get(n) || 0;
@@ -3351,7 +3348,7 @@ class lu extends lo {
3351
3348
  function cu(t) {
3352
3349
  return !!(z(t) && t.add);
3353
3350
  }
3354
- function Rn(t, e) {
3351
+ function Vn(t, e) {
3355
3352
  var n;
3356
3353
  if (!t.applyWillChange)
3357
3354
  return;
@@ -3363,7 +3360,7 @@ function uu({ protectedKeys: t, needsAnimating: e }, n) {
3363
3360
  const i = t.hasOwnProperty(n) && e[n] !== !0;
3364
3361
  return e[n] = !1, i;
3365
3362
  }
3366
- function uo(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3363
+ function co(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3367
3364
  var o;
3368
3365
  let { transition: r = t.getDefaultTransition(), transitionEnd: a, ...l } = e;
3369
3366
  i && (r = i);
@@ -3379,13 +3376,13 @@ function uo(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3379
3376
  };
3380
3377
  let P = !1;
3381
3378
  if (window.HandoffAppearAnimations) {
3382
- const x = co(t);
3383
- if (x) {
3384
- const y = window.HandoffAppearAnimations(x, f, d, M);
3379
+ const T = lo(t);
3380
+ if (T) {
3381
+ const y = window.HandoffAppearAnimations(T, f, d, M);
3385
3382
  y !== null && (m.elapsed = y, P = !0);
3386
3383
  }
3387
3384
  }
3388
- d.start(ui(f, d, p, t.shouldReduceMotion && bt.has(f) ? { type: !1 } : m, t, P, Rn(t, f)));
3385
+ d.start(ui(f, d, p, t.shouldReduceMotion && bt.has(f) ? { type: !1 } : m, t, P, Vn(t, f)));
3389
3386
  const b = d.animation;
3390
3387
  b && c.push(b);
3391
3388
  }
@@ -3395,12 +3392,12 @@ function uo(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
3395
3392
  });
3396
3393
  }), c;
3397
3394
  }
3398
- function Vn(t, e, n = {}) {
3395
+ function Dn(t, e, n = {}) {
3399
3396
  var i;
3400
3397
  const s = He(t, e, n.type === "exit" ? (i = t.presenceContext) === null || i === void 0 ? void 0 : i.custom : void 0);
3401
3398
  let { transition: o = t.getDefaultTransition() || {} } = s || {};
3402
3399
  n.transitionOverride && (o = n.transitionOverride);
3403
- const r = s ? () => Promise.all(uo(t, s, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
3400
+ const r = s ? () => Promise.all(co(t, s, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
3404
3401
  const { delayChildren: u = 0, staggerChildren: f, staggerDirection: d } = o;
3405
3402
  return fu(t, e, u + c, f, d, n);
3406
3403
  } : () => Promise.resolve(), { when: l } = o;
@@ -3413,7 +3410,7 @@ function Vn(t, e, n = {}) {
3413
3410
  function fu(t, e, n = 0, i = 0, s = 1, o) {
3414
3411
  const r = [], a = (t.variantChildren.size - 1) * i, l = s === 1 ? (c = 0) => c * i : (c = 0) => a - c * i;
3415
3412
  return Array.from(t.variantChildren).sort(hu).forEach((c, u) => {
3416
- c.notify("AnimationStart", e), r.push(Vn(c, e, {
3413
+ c.notify("AnimationStart", e), r.push(Dn(c, e, {
3417
3414
  ...o,
3418
3415
  delay: n + l(u)
3419
3416
  }).then(() => c.notify("AnimationComplete", e)));
@@ -3426,24 +3423,24 @@ function du(t, e, n = {}) {
3426
3423
  t.notify("AnimationStart", e);
3427
3424
  let i;
3428
3425
  if (Array.isArray(e)) {
3429
- const s = e.map((o) => Vn(t, o, n));
3426
+ const s = e.map((o) => Dn(t, o, n));
3430
3427
  i = Promise.all(s);
3431
3428
  } else if (typeof e == "string")
3432
- i = Vn(t, e, n);
3429
+ i = Dn(t, e, n);
3433
3430
  else {
3434
3431
  const s = typeof e == "function" ? He(t, e, n.custom) : e;
3435
- i = Promise.all(uo(t, s, n));
3432
+ i = Promise.all(co(t, s, n));
3436
3433
  }
3437
3434
  return i.then(() => {
3438
3435
  t.notify("AnimationComplete", e);
3439
3436
  });
3440
3437
  }
3441
- const pu = [...Un].reverse(), mu = Un.length;
3438
+ const pu = [...Wn].reverse(), mu = Wn.length;
3442
3439
  function gu(t) {
3443
3440
  return (e) => Promise.all(e.map(({ animation: n, options: i }) => du(t, n, i)));
3444
3441
  }
3445
3442
  function yu(t) {
3446
- let e = gu(t), n = us(), i = !0;
3443
+ let e = gu(t), n = cs(), i = !0;
3447
3444
  const s = (l) => (c, u) => {
3448
3445
  var f;
3449
3446
  const d = He(t, u, l === "exit" ? (f = t.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
@@ -3460,45 +3457,45 @@ function yu(t) {
3460
3457
  const c = t.getProps(), u = t.getVariantContext(!0) || {}, f = [], d = /* @__PURE__ */ new Set();
3461
3458
  let p = {}, m = 1 / 0;
3462
3459
  for (let b = 0; b < mu; b++) {
3463
- const x = pu[b], y = n[x], v = c[x] !== void 0 ? c[x] : u[x], w = oe(v), A = x === l ? y.isActive : null;
3460
+ const T = pu[b], y = n[T], v = c[T] !== void 0 ? c[T] : u[T], w = oe(v), A = T === l ? y.isActive : null;
3464
3461
  A === !1 && (m = b);
3465
- let L = v === u[x] && v !== c[x] && w;
3466
- if (L && i && t.manuallyAnimateOnMount && (L = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
3462
+ let F = v === u[T] && v !== c[T] && w;
3463
+ if (F && i && t.manuallyAnimateOnMount && (F = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
3467
3464
  !y.isActive && A === null || // If we didn't and don't have any defined prop for this animation type
3468
3465
  !v && !y.prevProp || // Or if the prop doesn't define an animation
3469
3466
  ae(v) || typeof v == "boolean")
3470
3467
  continue;
3471
3468
  let E = vu(y.prevProp, v) || // If we're making this variant active, we want to always make it active
3472
- x === l && y.isActive && !L && w || // If we removed a higher-priority variant (i is in reverse order)
3469
+ T === l && y.isActive && !F && w || // If we removed a higher-priority variant (i is in reverse order)
3473
3470
  b > m && w, U = !1;
3474
3471
  const G = Array.isArray(v) ? v : [v];
3475
- let j = G.reduce(s(x), {});
3476
- A === !1 && (j = {});
3472
+ let N = G.reduce(s(T), {});
3473
+ A === !1 && (N = {});
3477
3474
  const { prevResolvedValues: gt = {} } = y, Y = {
3478
3475
  ...gt,
3479
- ...j
3480
- }, st = (_) => {
3481
- E = !0, d.has(_) && (U = !0, d.delete(_)), y.needsAnimating[_] = !0;
3482
- const Q = t.getValue(_);
3483
- Q && (Q.liveStyle = !1);
3476
+ ...N
3477
+ }, rt = (j) => {
3478
+ E = !0, d.has(j) && (U = !0, d.delete(j)), y.needsAnimating[j] = !0;
3479
+ const tt = t.getValue(j);
3480
+ tt && (tt.liveStyle = !1);
3484
3481
  };
3485
- for (const _ in Y) {
3486
- const Q = j[_], Lt = gt[_];
3487
- if (p.hasOwnProperty(_))
3482
+ for (const j in Y) {
3483
+ const tt = N[j], Lt = gt[j];
3484
+ if (p.hasOwnProperty(j))
3488
3485
  continue;
3489
3486
  let Ft = !1;
3490
- xn(Q) && xn(Lt) ? Ft = !Mr(Q, Lt) : Ft = Q !== Lt, Ft ? Q != null ? st(_) : d.add(_) : Q !== void 0 && d.has(_) ? st(_) : y.protectedKeys[_] = !0;
3487
+ xn(tt) && xn(Lt) ? Ft = !Dr(tt, Lt) : Ft = tt !== Lt, Ft ? tt != null ? rt(j) : d.add(j) : tt !== void 0 && d.has(j) ? rt(j) : y.protectedKeys[j] = !0;
3491
3488
  }
3492
- y.prevProp = v, y.prevResolvedValues = j, y.isActive && (p = { ...p, ...j }), i && t.blockInitialAnimation && (E = !1), E && (!L || U) && f.push(...G.map((_) => ({
3493
- animation: _,
3494
- options: { type: x }
3489
+ y.prevProp = v, y.prevResolvedValues = N, y.isActive && (p = { ...p, ...N }), i && t.blockInitialAnimation && (E = !1), E && (!F || U) && f.push(...G.map((j) => ({
3490
+ animation: j,
3491
+ options: { type: T }
3495
3492
  })));
3496
3493
  }
3497
3494
  if (d.size) {
3498
3495
  const b = {};
3499
- d.forEach((x) => {
3500
- const y = t.getBaseTarget(x), v = t.getValue(x);
3501
- v && (v.liveStyle = !0), b[x] = y ?? null;
3496
+ d.forEach((T) => {
3497
+ const y = t.getBaseTarget(T), v = t.getValue(T);
3498
+ v && (v.liveStyle = !0), b[T] = y ?? null;
3502
3499
  }), f.push({ animation: b });
3503
3500
  }
3504
3501
  let P = !!f.length;
@@ -3523,12 +3520,12 @@ function yu(t) {
3523
3520
  setAnimateFunction: o,
3524
3521
  getState: () => n,
3525
3522
  reset: () => {
3526
- n = us(), i = !0;
3523
+ n = cs(), i = !0;
3527
3524
  }
3528
3525
  };
3529
3526
  }
3530
3527
  function vu(t, e) {
3531
- return typeof e == "string" ? e !== t : Array.isArray(e) ? !Mr(e, t) : !1;
3528
+ return typeof e == "string" ? e !== t : Array.isArray(e) ? !Dr(e, t) : !1;
3532
3529
  }
3533
3530
  function Ct(t = !1) {
3534
3531
  return {
@@ -3538,7 +3535,7 @@ function Ct(t = !1) {
3538
3535
  prevResolvedValues: {}
3539
3536
  };
3540
3537
  }
3541
- function us() {
3538
+ function cs() {
3542
3539
  return {
3543
3540
  animate: Ct(!0),
3544
3541
  whileInView: Ct(),
@@ -3577,10 +3574,10 @@ class Pu extends wt {
3577
3574
  this.node.animationState.reset(), (e = this.unmountControls) === null || e === void 0 || e.call(this);
3578
3575
  }
3579
3576
  }
3580
- let xu = 0;
3581
- class Tu extends wt {
3577
+ let Tu = 0;
3578
+ class xu extends wt {
3582
3579
  constructor() {
3583
- super(...arguments), this.id = xu++;
3580
+ super(...arguments), this.id = Tu++;
3584
3581
  }
3585
3582
  update() {
3586
3583
  if (!this.node.presenceContext)
@@ -3603,41 +3600,41 @@ const bu = {
3603
3600
  Feature: Pu
3604
3601
  },
3605
3602
  exit: {
3606
- Feature: Tu
3603
+ Feature: xu
3607
3604
  }
3608
- }, fs = (t, e) => Math.abs(t - e);
3605
+ }, us = (t, e) => Math.abs(t - e);
3609
3606
  function wu(t, e) {
3610
- const n = fs(t.x, e.x), i = fs(t.y, e.y);
3607
+ const n = us(t.x, e.x), i = us(t.y, e.y);
3611
3608
  return Math.sqrt(n ** 2 + i ** 2);
3612
3609
  }
3613
- class fo {
3610
+ class uo {
3614
3611
  constructor(e, n, { transformPagePoint: i, contextWindow: s, dragSnapToOrigin: o = !1 } = {}) {
3615
3612
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
3616
3613
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
3617
3614
  return;
3618
- const f = hn(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, p = wu(f.offset, { x: 0, y: 0 }) >= 3;
3615
+ const f = dn(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, p = wu(f.offset, { x: 0, y: 0 }) >= 3;
3619
3616
  if (!d && !p)
3620
3617
  return;
3621
3618
  const { point: m } = f, { timestamp: P } = W;
3622
3619
  this.history.push({ ...m, timestamp: P });
3623
- const { onStart: b, onMove: x } = this.handlers;
3624
- d || (b && b(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), x && x(this.lastMoveEvent, f);
3620
+ const { onStart: b, onMove: T } = this.handlers;
3621
+ d || (b && b(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), T && T(this.lastMoveEvent, f);
3625
3622
  }, this.handlePointerMove = (f, d) => {
3626
- this.lastMoveEvent = f, this.lastMoveEventInfo = fn(d, this.transformPagePoint), M.update(this.updatePoint, !0);
3623
+ this.lastMoveEvent = f, this.lastMoveEventInfo = hn(d, this.transformPagePoint), M.update(this.updatePoint, !0);
3627
3624
  }, this.handlePointerUp = (f, d) => {
3628
3625
  this.end();
3629
3626
  const { onEnd: p, onSessionEnd: m, resumeAnimation: P } = this.handlers;
3630
3627
  if (this.dragSnapToOrigin && P && P(), !(this.lastMoveEvent && this.lastMoveEventInfo))
3631
3628
  return;
3632
- const b = hn(f.type === "pointercancel" ? this.lastMoveEventInfo : fn(d, this.transformPagePoint), this.history);
3629
+ const b = dn(f.type === "pointercancel" ? this.lastMoveEventInfo : hn(d, this.transformPagePoint), this.history);
3633
3630
  this.startEvent && p && p(f, b), m && m(f, b);
3634
- }, !Ar(e))
3631
+ }, !Cr(e))
3635
3632
  return;
3636
3633
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.contextWindow = s || window;
3637
- const r = Ge(e), a = fn(r, this.transformPagePoint), { point: l } = a, { timestamp: c } = W;
3634
+ const r = Ge(e), a = hn(r, this.transformPagePoint), { point: l } = a, { timestamp: c } = W;
3638
3635
  this.history = [{ ...l, timestamp: c }];
3639
3636
  const { onSessionStart: u } = n;
3640
- u && u(e, hn(a, this.history)), this.removeListeners = ft(ut(this.contextWindow, "pointermove", this.handlePointerMove), ut(this.contextWindow, "pointerup", this.handlePointerUp), ut(this.contextWindow, "pointercancel", this.handlePointerUp));
3637
+ u && u(e, dn(a, this.history)), this.removeListeners = ft(ut(this.contextWindow, "pointermove", this.handlePointerMove), ut(this.contextWindow, "pointerup", this.handlePointerUp), ut(this.contextWindow, "pointercancel", this.handlePointerUp));
3641
3638
  }
3642
3639
  updateHandlers(e) {
3643
3640
  this.handlers = e;
@@ -3646,31 +3643,31 @@ class fo {
3646
3643
  this.removeListeners && this.removeListeners(), mt(this.updatePoint);
3647
3644
  }
3648
3645
  }
3649
- function fn(t, e) {
3646
+ function hn(t, e) {
3650
3647
  return e ? { point: e(t.point) } : t;
3651
3648
  }
3652
- function hs(t, e) {
3649
+ function fs(t, e) {
3653
3650
  return { x: t.x - e.x, y: t.y - e.y };
3654
3651
  }
3655
- function hn({ point: t }, e) {
3652
+ function dn({ point: t }, e) {
3656
3653
  return {
3657
3654
  point: t,
3658
- delta: hs(t, ho(e)),
3659
- offset: hs(t, Su(e)),
3655
+ delta: fs(t, fo(e)),
3656
+ offset: fs(t, Su(e)),
3660
3657
  velocity: Cu(e, 0.1)
3661
3658
  };
3662
3659
  }
3663
3660
  function Su(t) {
3664
3661
  return t[0];
3665
3662
  }
3666
- function ho(t) {
3663
+ function fo(t) {
3667
3664
  return t[t.length - 1];
3668
3665
  }
3669
3666
  function Cu(t, e) {
3670
3667
  if (t.length < 2)
3671
3668
  return { x: 0, y: 0 };
3672
3669
  let n = t.length - 1, i = null;
3673
- const s = ho(t);
3670
+ const s = fo(t);
3674
3671
  for (; n >= 0 && (i = t[n], !(s.timestamp - i.timestamp > ht(e))); )
3675
3672
  n--;
3676
3673
  if (!i)
@@ -3684,35 +3681,35 @@ function Cu(t, e) {
3684
3681
  };
3685
3682
  return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
3686
3683
  }
3687
- const po = 1e-4, Au = 1 - po, Eu = 1 + po, mo = 0.01, Ru = 0 - mo, Vu = 0 + mo;
3688
- function J(t) {
3684
+ const ho = 1e-4, Au = 1 - ho, Eu = 1 + ho, po = 0.01, Ru = 0 - po, Vu = 0 + po;
3685
+ function Q(t) {
3689
3686
  return t.max - t.min;
3690
3687
  }
3691
3688
  function Du(t, e, n) {
3692
3689
  return Math.abs(t - e) <= n;
3693
3690
  }
3694
- function ds(t, e, n, i = 0.5) {
3695
- t.origin = i, t.originPoint = O(e.min, e.max, t.origin), t.scale = J(n) / J(e), t.translate = O(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Au && t.scale <= Eu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Ru && t.translate <= Vu || isNaN(t.translate)) && (t.translate = 0);
3691
+ function hs(t, e, n, i = 0.5) {
3692
+ t.origin = i, t.originPoint = O(e.min, e.max, t.origin), t.scale = Q(n) / Q(e), t.translate = O(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Au && t.scale <= Eu || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Ru && t.translate <= Vu || isNaN(t.translate)) && (t.translate = 0);
3696
3693
  }
3697
3694
  function ie(t, e, n, i) {
3698
- ds(t.x, e.x, n.x, i ? i.originX : void 0), ds(t.y, e.y, n.y, i ? i.originY : void 0);
3695
+ hs(t.x, e.x, n.x, i ? i.originX : void 0), hs(t.y, e.y, n.y, i ? i.originY : void 0);
3699
3696
  }
3700
- function ps(t, e, n) {
3701
- t.min = n.min + e.min, t.max = t.min + J(e);
3697
+ function ds(t, e, n) {
3698
+ t.min = n.min + e.min, t.max = t.min + Q(e);
3702
3699
  }
3703
3700
  function Mu(t, e, n) {
3704
- ps(t.x, e.x, n.x), ps(t.y, e.y, n.y);
3701
+ ds(t.x, e.x, n.x), ds(t.y, e.y, n.y);
3705
3702
  }
3706
- function ms(t, e, n) {
3707
- t.min = e.min - n.min, t.max = t.min + J(e);
3703
+ function ps(t, e, n) {
3704
+ t.min = e.min - n.min, t.max = t.min + Q(e);
3708
3705
  }
3709
3706
  function se(t, e, n) {
3710
- ms(t.x, e.x, n.x), ms(t.y, e.y, n.y);
3707
+ ps(t.x, e.x, n.x), ps(t.y, e.y, n.y);
3711
3708
  }
3712
3709
  function ku(t, { min: e, max: n }, i) {
3713
3710
  return e !== void 0 && t < e ? t = i ? O(e, t, i.min) : Math.max(t, e) : n !== void 0 && t > n && (t = i ? O(n, t, i.max) : Math.min(t, n)), t;
3714
3711
  }
3715
- function gs(t, e, n) {
3712
+ function ms(t, e, n) {
3716
3713
  return {
3717
3714
  min: e !== void 0 ? t.min + e : void 0,
3718
3715
  max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
@@ -3720,61 +3717,61 @@ function gs(t, e, n) {
3720
3717
  }
3721
3718
  function Lu(t, { top: e, left: n, bottom: i, right: s }) {
3722
3719
  return {
3723
- x: gs(t.x, n, s),
3724
- y: gs(t.y, e, i)
3720
+ x: ms(t.x, n, s),
3721
+ y: ms(t.y, e, i)
3725
3722
  };
3726
3723
  }
3727
- function ys(t, e) {
3724
+ function gs(t, e) {
3728
3725
  let n = e.min - t.min, i = e.max - t.max;
3729
3726
  return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
3730
3727
  }
3731
3728
  function Fu(t, e) {
3732
3729
  return {
3733
- x: ys(t.x, e.x),
3734
- y: ys(t.y, e.y)
3730
+ x: gs(t.x, e.x),
3731
+ y: gs(t.y, e.y)
3735
3732
  };
3736
3733
  }
3737
3734
  function Ou(t, e) {
3738
3735
  let n = 0.5;
3739
- const i = J(t), s = J(e);
3740
- return s > i ? n = ce(e.min, e.max - i, t.min) : i > s && (n = ce(t.min, t.max - s, e.min)), xt(0, 1, n);
3736
+ const i = Q(t), s = Q(e);
3737
+ return s > i ? n = ce(e.min, e.max - i, t.min) : i > s && (n = ce(t.min, t.max - s, e.min)), Tt(0, 1, n);
3741
3738
  }
3742
3739
  function ju(t, e) {
3743
3740
  const n = {};
3744
3741
  return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
3745
3742
  }
3746
- const Dn = 0.35;
3747
- function _u(t = Dn) {
3748
- return t === !1 ? t = 0 : t === !0 && (t = Dn), {
3749
- x: vs(t, "left", "right"),
3750
- y: vs(t, "top", "bottom")
3743
+ const Mn = 0.35;
3744
+ function _u(t = Mn) {
3745
+ return t === !1 ? t = 0 : t === !0 && (t = Mn), {
3746
+ x: ys(t, "left", "right"),
3747
+ y: ys(t, "top", "bottom")
3751
3748
  };
3752
3749
  }
3753
- function vs(t, e, n) {
3750
+ function ys(t, e, n) {
3754
3751
  return {
3755
- min: Ps(t, e),
3756
- max: Ps(t, n)
3752
+ min: vs(t, e),
3753
+ max: vs(t, n)
3757
3754
  };
3758
3755
  }
3759
- function Ps(t, e) {
3756
+ function vs(t, e) {
3760
3757
  return typeof t == "number" ? t : t[e] || 0;
3761
3758
  }
3762
- const xs = () => ({
3759
+ const Ps = () => ({
3763
3760
  translate: 0,
3764
3761
  scale: 1,
3765
3762
  origin: 0,
3766
3763
  originPoint: 0
3767
3764
  }), Nt = () => ({
3768
- x: xs(),
3769
- y: xs()
3770
- }), Ts = () => ({ min: 0, max: 0 }), I = () => ({
3765
+ x: Ps(),
3766
+ y: Ps()
3767
+ }), Ts = () => ({ min: 0, max: 0 }), B = () => ({
3771
3768
  x: Ts(),
3772
3769
  y: Ts()
3773
3770
  });
3774
- function nt(t) {
3771
+ function it(t) {
3775
3772
  return [t("x"), t("y")];
3776
3773
  }
3777
- function go({ top: t, left: e, right: n, bottom: i }) {
3774
+ function mo({ top: t, left: e, right: n, bottom: i }) {
3778
3775
  return {
3779
3776
  x: { min: e, max: n },
3780
3777
  y: { min: t, max: i }
@@ -3794,35 +3791,35 @@ function Iu(t, e) {
3794
3791
  right: i.x
3795
3792
  };
3796
3793
  }
3797
- function dn(t) {
3794
+ function pn(t) {
3798
3795
  return t === void 0 || t === 1;
3799
3796
  }
3800
- function Mn({ scale: t, scaleX: e, scaleY: n }) {
3801
- return !dn(t) || !dn(e) || !dn(n);
3797
+ function kn({ scale: t, scaleX: e, scaleY: n }) {
3798
+ return !pn(t) || !pn(e) || !pn(n);
3802
3799
  }
3803
3800
  function Et(t) {
3804
- return Mn(t) || yo(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
3801
+ return kn(t) || go(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
3805
3802
  }
3806
- function yo(t) {
3807
- return bs(t.x) || bs(t.y);
3803
+ function go(t) {
3804
+ return xs(t.x) || xs(t.y);
3808
3805
  }
3809
- function bs(t) {
3806
+ function xs(t) {
3810
3807
  return t && t !== "0%";
3811
3808
  }
3812
3809
  function Be(t, e, n) {
3813
3810
  const i = t - n, s = e * i;
3814
3811
  return n + s;
3815
3812
  }
3816
- function ws(t, e, n, i, s) {
3813
+ function bs(t, e, n, i, s) {
3817
3814
  return s !== void 0 && (t = Be(t, s, i)), Be(t, n, i) + e;
3818
3815
  }
3819
- function kn(t, e = 0, n = 1, i, s) {
3820
- t.min = ws(t.min, e, n, i, s), t.max = ws(t.max, e, n, i, s);
3816
+ function Ln(t, e = 0, n = 1, i, s) {
3817
+ t.min = bs(t.min, e, n, i, s), t.max = bs(t.max, e, n, i, s);
3821
3818
  }
3822
- function vo(t, { x: e, y: n }) {
3823
- kn(t.x, e.translate, e.scale, e.originPoint), kn(t.y, n.translate, n.scale, n.originPoint);
3819
+ function yo(t, { x: e, y: n }) {
3820
+ Ln(t.x, e.translate, e.scale, e.originPoint), Ln(t.y, n.translate, n.scale, n.originPoint);
3824
3821
  }
3825
- const Ss = 0.999999999999, Cs = 1.0000000000001;
3822
+ const ws = 0.999999999999, Ss = 1.0000000000001;
3826
3823
  function Nu(t, e, n, i = !1) {
3827
3824
  const s = n.length;
3828
3825
  if (!s)
@@ -3835,31 +3832,31 @@ function Nu(t, e, n, i = !1) {
3835
3832
  l && l.props.style && l.props.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && Wt(t, {
3836
3833
  x: -o.scroll.offset.x,
3837
3834
  y: -o.scroll.offset.y
3838
- }), r && (e.x *= r.x.scale, e.y *= r.y.scale, vo(t, r)), i && Et(o.latestValues) && Wt(t, o.latestValues));
3835
+ }), r && (e.x *= r.x.scale, e.y *= r.y.scale, yo(t, r)), i && Et(o.latestValues) && Wt(t, o.latestValues));
3839
3836
  }
3840
- e.x < Cs && e.x > Ss && (e.x = 1), e.y < Cs && e.y > Ss && (e.y = 1);
3837
+ e.x < Ss && e.x > ws && (e.x = 1), e.y < Ss && e.y > ws && (e.y = 1);
3841
3838
  }
3842
3839
  function Ut(t, e) {
3843
3840
  t.min = t.min + e, t.max = t.max + e;
3844
3841
  }
3845
- function As(t, e, n, i, s = 0.5) {
3842
+ function Cs(t, e, n, i, s = 0.5) {
3846
3843
  const o = O(t.min, t.max, s);
3847
- kn(t, e, n, o, i);
3844
+ Ln(t, e, n, o, i);
3848
3845
  }
3849
3846
  function Wt(t, e) {
3850
- As(t.x, e.x, e.scaleX, e.scale, e.originX), As(t.y, e.y, e.scaleY, e.scale, e.originY);
3847
+ Cs(t.x, e.x, e.scaleX, e.scale, e.originX), Cs(t.y, e.y, e.scaleY, e.scale, e.originY);
3851
3848
  }
3852
- function Po(t, e) {
3853
- return go(Iu(t.getBoundingClientRect(), e));
3849
+ function vo(t, e) {
3850
+ return mo(Iu(t.getBoundingClientRect(), e));
3854
3851
  }
3855
3852
  function Uu(t, e, n) {
3856
- const i = Po(t, n), { scroll: s } = e;
3853
+ const i = vo(t, n), { scroll: s } = e;
3857
3854
  return s && (Ut(i.x, s.offset.x), Ut(i.y, s.offset.y)), i;
3858
3855
  }
3859
- const xo = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Wu = /* @__PURE__ */ new WeakMap();
3856
+ const Po = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Wu = /* @__PURE__ */ new WeakMap();
3860
3857
  class $u {
3861
3858
  constructor(e) {
3862
- 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;
3859
+ this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = B(), this.visualElement = e;
3863
3860
  }
3864
3861
  start(e, { snapToCursor: n = !1 } = {}) {
3865
3862
  const { presenceContext: i } = this.visualElement;
@@ -3871,19 +3868,19 @@ class $u {
3871
3868
  }, o = (u, f) => {
3872
3869
  var d;
3873
3870
  const { drag: p, dragPropagation: m, onDragStart: P } = this.getProps();
3874
- if (p && !m && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Rr(p), !this.openGlobalLock))
3871
+ if (p && !m && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Er(p), !this.openGlobalLock))
3875
3872
  return;
3876
- this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), nt((x) => {
3877
- let y = this.getAxisMotionValue(x).get() || 0;
3873
+ this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), it((T) => {
3874
+ let y = this.getAxisMotionValue(T).get() || 0;
3878
3875
  if (at.test(y)) {
3879
3876
  const { projection: v } = this.visualElement;
3880
3877
  if (v && v.layout) {
3881
- const w = v.layout.layoutBox[x];
3882
- w && (y = J(w) * (parseFloat(y) / 100));
3878
+ const w = v.layout.layoutBox[T];
3879
+ w && (y = Q(w) * (parseFloat(y) / 100));
3883
3880
  }
3884
3881
  }
3885
- this.originPoint[x] = y;
3886
- }), P && M.postRender(() => P(u, f)), (d = this.removeWillChange) === null || d === void 0 || d.call(this), this.removeWillChange = Rn(this.visualElement, "transform");
3882
+ this.originPoint[T] = y;
3883
+ }), P && M.postRender(() => P(u, f)), (d = this.removeWillChange) === null || d === void 0 || d.call(this), this.removeWillChange = Vn(this.visualElement, "transform");
3887
3884
  const { animationState: b } = this.visualElement;
3888
3885
  b && b.setActive("whileDrag", !0);
3889
3886
  }, r = (u, f) => {
@@ -3896,11 +3893,11 @@ class $u {
3896
3893
  return;
3897
3894
  }
3898
3895
  this.updateAxis("x", f.point, b), this.updateAxis("y", f.point, b), this.visualElement.render(), P && P(u, f);
3899
- }, a = (u, f) => this.stop(u, f), l = () => nt((u) => {
3896
+ }, a = (u, f) => this.stop(u, f), l = () => it((u) => {
3900
3897
  var f;
3901
3898
  return this.getAnimationState(u) === "paused" && ((f = this.getAxisMotionValue(u).animation) === null || f === void 0 ? void 0 : f.play());
3902
3899
  }), { dragSnapToOrigin: c } = this.getProps();
3903
- this.panSession = new fo(e, {
3900
+ this.panSession = new uo(e, {
3904
3901
  onSessionStart: s,
3905
3902
  onStart: o,
3906
3903
  onMove: r,
@@ -3909,7 +3906,7 @@ class $u {
3909
3906
  }, {
3910
3907
  transformPagePoint: this.visualElement.getTransformPagePoint(),
3911
3908
  dragSnapToOrigin: c,
3912
- contextWindow: xo(this.visualElement)
3909
+ contextWindow: Po(this.visualElement)
3913
3910
  });
3914
3911
  }
3915
3912
  stop(e, n) {
@@ -3941,7 +3938,7 @@ class $u {
3941
3938
  resolveConstraints() {
3942
3939
  var e;
3943
3940
  const { dragConstraints: n, dragElastic: i } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, o = this.constraints;
3944
- n && Bt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = Lu(s.layoutBox, n) : this.constraints = !1, this.elastic = _u(i), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && nt((r) => {
3941
+ n && Bt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = Lu(s.layoutBox, n) : this.constraints = !1, this.elastic = _u(i), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && it((r) => {
3945
3942
  this.constraints !== !1 && this.getAxisMotionValue(r) && (this.constraints[r] = ju(s.layoutBox[r], this.constraints[r]));
3946
3943
  });
3947
3944
  }
@@ -3958,12 +3955,12 @@ class $u {
3958
3955
  let r = Fu(s.layout.layoutBox, o);
3959
3956
  if (n) {
3960
3957
  const a = n(Bu(r));
3961
- this.hasMutatedConstraints = !!a, a && (r = go(a));
3958
+ this.hasMutatedConstraints = !!a, a && (r = mo(a));
3962
3959
  }
3963
3960
  return r;
3964
3961
  }
3965
3962
  startAnimation(e) {
3966
- const { drag: n, dragMomentum: i, dragElastic: s, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = nt((u) => {
3963
+ const { drag: n, dragMomentum: i, dragElastic: s, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = it((u) => {
3967
3964
  if (!Se(u, n, this.currentDirection))
3968
3965
  return;
3969
3966
  let f = l && l[u] || {};
@@ -3985,13 +3982,13 @@ class $u {
3985
3982
  }
3986
3983
  startAxisValueAnimation(e, n) {
3987
3984
  const i = this.getAxisMotionValue(e);
3988
- return i.start(ui(e, i, 0, n, this.visualElement, !1, Rn(this.visualElement, e)));
3985
+ return i.start(ui(e, i, 0, n, this.visualElement, !1, Vn(this.visualElement, e)));
3989
3986
  }
3990
3987
  stopAnimation() {
3991
- nt((e) => this.getAxisMotionValue(e).stop());
3988
+ it((e) => this.getAxisMotionValue(e).stop());
3992
3989
  }
3993
3990
  pauseAnimation() {
3994
- nt((e) => {
3991
+ it((e) => {
3995
3992
  var n;
3996
3993
  return (n = this.getAxisMotionValue(e).animation) === null || n === void 0 ? void 0 : n.pause();
3997
3994
  });
@@ -4011,7 +4008,7 @@ class $u {
4011
4008
  return s || this.visualElement.getValue(e, (i.initial ? i.initial[e] : void 0) || 0);
4012
4009
  }
4013
4010
  snapToCursor(e) {
4014
- nt((n) => {
4011
+ it((n) => {
4015
4012
  const { drag: i } = this.getProps();
4016
4013
  if (!Se(n, i, this.currentDirection))
4017
4014
  return;
@@ -4035,7 +4032,7 @@ class $u {
4035
4032
  return;
4036
4033
  this.stopAnimation();
4037
4034
  const s = { x: 0, y: 0 };
4038
- nt((r) => {
4035
+ it((r) => {
4039
4036
  const a = this.getAxisMotionValue(r);
4040
4037
  if (a && this.constraints !== !1) {
4041
4038
  const l = a.get();
@@ -4043,7 +4040,7 @@ class $u {
4043
4040
  }
4044
4041
  });
4045
4042
  const { transformTemplate: o } = this.visualElement.getProps();
4046
- this.visualElement.current.style.transform = o ? o({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), nt((r) => {
4043
+ this.visualElement.current.style.transform = o ? o({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), it((r) => {
4047
4044
  if (!Se(r, e, null))
4048
4045
  return;
4049
4046
  const a = this.getAxisMotionValue(r), { min: l, max: c } = this.constraints[r];
@@ -4063,7 +4060,7 @@ class $u {
4063
4060
  }, { projection: s } = this.visualElement, o = s.addEventListener("measure", i);
4064
4061
  s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), M.read(i);
4065
4062
  const r = ct(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
4066
- this.isDragging && c && (nt((u) => {
4063
+ this.isDragging && c && (it((u) => {
4067
4064
  const f = this.getAxisMotionValue(u);
4068
4065
  f && (this.originPoint[u] += l[u].translate, f.set(f.get() + l[u].translate));
4069
4066
  }), this.visualElement.render());
@@ -4073,7 +4070,7 @@ class $u {
4073
4070
  };
4074
4071
  }
4075
4072
  getProps() {
4076
- const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: i = !1, dragPropagation: s = !1, dragConstraints: o = !1, dragElastic: r = Dn, dragMomentum: a = !0 } = e;
4073
+ const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: i = !1, dragPropagation: s = !1, dragConstraints: o = !1, dragElastic: r = Mn, dragMomentum: a = !0 } = e;
4077
4074
  return {
4078
4075
  ...e,
4079
4076
  drag: n,
@@ -4104,7 +4101,7 @@ class Gu extends wt {
4104
4101
  this.removeGroupControls(), this.removeListeners();
4105
4102
  }
4106
4103
  }
4107
- const Es = (t) => (e, n) => {
4104
+ const As = (t) => (e, n) => {
4108
4105
  t && M.postRender(() => t(e, n));
4109
4106
  };
4110
4107
  class Hu extends wt {
@@ -4112,16 +4109,16 @@ class Hu extends wt {
4112
4109
  super(...arguments), this.removePointerDownListener = K;
4113
4110
  }
4114
4111
  onPointerDown(e) {
4115
- this.session = new fo(e, this.createPanHandlers(), {
4112
+ this.session = new uo(e, this.createPanHandlers(), {
4116
4113
  transformPagePoint: this.node.getTransformPagePoint(),
4117
- contextWindow: xo(this.node)
4114
+ contextWindow: Po(this.node)
4118
4115
  });
4119
4116
  }
4120
4117
  createPanHandlers() {
4121
4118
  const { onPanSessionStart: e, onPanStart: n, onPan: i, onPanEnd: s } = this.node.getProps();
4122
4119
  return {
4123
- onSessionStart: Es(e),
4124
- onStart: Es(n),
4120
+ onSessionStart: As(e),
4121
+ onStart: As(n),
4125
4122
  onMove: i,
4126
4123
  onEnd: (o, r) => {
4127
4124
  delete this.session, s && M.postRender(() => s(o, r));
@@ -4142,9 +4139,9 @@ function zu() {
4142
4139
  const t = $(Ne);
4143
4140
  if (t === null)
4144
4141
  return [!0, null];
4145
- const { isPresent: e, onExitComplete: n, register: i } = t, s = jn();
4142
+ const { isPresent: e, onExitComplete: n, register: i } = t, s = _n();
4146
4143
  ot(() => i(s), []);
4147
- const o = rt(() => n && n(s), [s, n]);
4144
+ const o = st(() => n && n(s), [s, n]);
4148
4145
  return !e && n ? [!1, o] : [!0];
4149
4146
  }
4150
4147
  const De = {
@@ -4159,7 +4156,7 @@ const De = {
4159
4156
  */
4160
4157
  hasEverUpdated: !1
4161
4158
  };
4162
- function Rs(t, e) {
4159
+ function Es(t, e) {
4163
4160
  return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
4164
4161
  }
4165
4162
  const Zt = {
@@ -4171,21 +4168,21 @@ const Zt = {
4171
4168
  t = parseFloat(t);
4172
4169
  else
4173
4170
  return t;
4174
- const n = Rs(t, e.target.x), i = Rs(t, e.target.y);
4171
+ const n = Es(t, e.target.x), i = Es(t, e.target.y);
4175
4172
  return `${n}% ${i}%`;
4176
4173
  }
4177
4174
  }, Yu = {
4178
4175
  correct: (t, { treeScale: e, projectionDelta: n }) => {
4179
- const i = t, s = Tt.parse(t);
4176
+ const i = t, s = xt.parse(t);
4180
4177
  if (s.length > 5)
4181
4178
  return i;
4182
- const o = Tt.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
4179
+ const o = xt.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = n.x.scale * e.x, l = n.y.scale * e.y;
4183
4180
  s[0 + r] /= a, s[1 + r] /= l;
4184
4181
  const c = O(a, l, 0.5);
4185
4182
  return typeof s[2 + r] == "number" && (s[2 + r] /= c), typeof s[3 + r] == "number" && (s[3 + r] /= c), o(s);
4186
4183
  }
4187
4184
  };
4188
- class Xu extends la {
4185
+ class Xu extends aa {
4189
4186
  /**
4190
4187
  * This only mounts projection nodes for components that
4191
4188
  * need measuring, we might want to do it for all components
@@ -4193,7 +4190,7 @@ class Xu extends la {
4193
4190
  */
4194
4191
  componentDidMount() {
4195
4192
  const { visualElement: e, layoutGroup: n, switchLayoutGroup: i, layoutId: s } = this.props, { projection: o } = e;
4196
- $a(qu), o && (n.group && n.group.add(o), i && i.register && s && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
4193
+ Wa(qu), o && (n.group && n.group.add(o), i && i.register && s && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
4197
4194
  this.safeToRemove();
4198
4195
  }), o.setOptions({
4199
4196
  ...o.options,
@@ -4209,7 +4206,7 @@ class Xu extends la {
4209
4206
  }
4210
4207
  componentDidUpdate() {
4211
4208
  const { projection: e } = this.props.visualElement;
4212
- e && (e.root.didUpdate(), Nn.postRender(() => {
4209
+ e && (e.root.didUpdate(), Un.postRender(() => {
4213
4210
  !e.currentAnimation && e.isLead() && this.safeToRemove();
4214
4211
  }));
4215
4212
  }
@@ -4226,8 +4223,8 @@ class Xu extends la {
4226
4223
  }
4227
4224
  }
4228
4225
  function To(t) {
4229
- const [e, n] = zu(), i = $($n);
4230
- return F.jsx(Xu, { ...t, layoutGroup: i, switchLayoutGroup: $(cr), isPresent: e, safeToRemove: n });
4226
+ const [e, n] = zu(), i = $(Kn);
4227
+ return L.jsx(Xu, { ...t, layoutGroup: i, switchLayoutGroup: $(lr), isPresent: e, safeToRemove: n });
4231
4228
  }
4232
4229
  const qu = {
4233
4230
  borderRadius: {
@@ -4244,7 +4241,7 @@ const qu = {
4244
4241
  borderBottomLeftRadius: Zt,
4245
4242
  borderBottomRightRadius: Zt,
4246
4243
  boxShadow: Yu
4247
- }, bo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Zu = bo.length, Vs = (t) => typeof t == "string" ? parseFloat(t) : t, Ds = (t) => typeof t == "number" || S.test(t);
4244
+ }, xo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Zu = xo.length, Rs = (t) => typeof t == "string" ? parseFloat(t) : t, Vs = (t) => typeof t == "number" || S.test(t);
4248
4245
  function Ju(t, e, n, i, s, o) {
4249
4246
  s ? (t.opacity = O(
4250
4247
  0,
@@ -4253,68 +4250,68 @@ function Ju(t, e, n, i, s, o) {
4253
4250
  Qu(i)
4254
4251
  ), t.opacityExit = O(e.opacity !== void 0 ? e.opacity : 1, 0, tf(i))) : o && (t.opacity = O(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
4255
4252
  for (let r = 0; r < Zu; r++) {
4256
- const a = `border${bo[r]}Radius`;
4257
- let l = Ms(e, a), c = Ms(n, a);
4253
+ const a = `border${xo[r]}Radius`;
4254
+ let l = Ds(e, a), c = Ds(n, a);
4258
4255
  if (l === void 0 && c === void 0)
4259
4256
  continue;
4260
- l || (l = 0), c || (c = 0), l === 0 || c === 0 || Ds(l) === Ds(c) ? (t[a] = Math.max(O(Vs(l), Vs(c), i), 0), (at.test(c) || at.test(l)) && (t[a] += "%")) : t[a] = c;
4257
+ l || (l = 0), c || (c = 0), l === 0 || c === 0 || Vs(l) === Vs(c) ? (t[a] = Math.max(O(Rs(l), Rs(c), i), 0), (at.test(c) || at.test(l)) && (t[a] += "%")) : t[a] = c;
4261
4258
  }
4262
4259
  (e.rotate || n.rotate) && (t.rotate = O(e.rotate || 0, n.rotate || 0, i));
4263
4260
  }
4264
- function Ms(t, e) {
4261
+ function Ds(t, e) {
4265
4262
  return t[e] !== void 0 ? t[e] : t.borderRadius;
4266
4263
  }
4267
- const Qu = wo(0, 0.5, eo), tf = wo(0.5, 0.95, K);
4268
- function wo(t, e, n) {
4264
+ const Qu = bo(0, 0.5, to), tf = bo(0.5, 0.95, K);
4265
+ function bo(t, e, n) {
4269
4266
  return (i) => i < t ? 0 : i > e ? 1 : n(ce(t, e, i));
4270
4267
  }
4271
- function ks(t, e) {
4268
+ function Ms(t, e) {
4272
4269
  t.min = e.min, t.max = e.max;
4273
4270
  }
4274
- function et(t, e) {
4275
- ks(t.x, e.x), ks(t.y, e.y);
4271
+ function nt(t, e) {
4272
+ Ms(t.x, e.x), Ms(t.y, e.y);
4276
4273
  }
4277
- function Ls(t, e) {
4274
+ function ks(t, e) {
4278
4275
  t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
4279
4276
  }
4280
- function Fs(t, e, n, i, s) {
4277
+ function Ls(t, e, n, i, s) {
4281
4278
  return t -= e, t = Be(t, 1 / n, i), s !== void 0 && (t = Be(t, 1 / s, i)), t;
4282
4279
  }
4283
4280
  function ef(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
4284
4281
  if (at.test(e) && (e = parseFloat(e), e = O(r.min, r.max, e / 100) - r.min), typeof e != "number")
4285
4282
  return;
4286
4283
  let a = O(o.min, o.max, i);
4287
- t === o && (a -= e), t.min = Fs(t.min, e, n, a, s), t.max = Fs(t.max, e, n, a, s);
4284
+ t === o && (a -= e), t.min = Ls(t.min, e, n, a, s), t.max = Ls(t.max, e, n, a, s);
4288
4285
  }
4289
- function Os(t, e, [n, i, s], o, r) {
4286
+ function Fs(t, e, [n, i, s], o, r) {
4290
4287
  ef(t, e[n], e[i], e[s], e.scale, o, r);
4291
4288
  }
4292
4289
  const nf = ["x", "scaleX", "originX"], sf = ["y", "scaleY", "originY"];
4293
- function js(t, e, n, i) {
4294
- Os(t.x, e, nf, n ? n.x : void 0, i ? i.x : void 0), Os(t.y, e, sf, n ? n.y : void 0, i ? i.y : void 0);
4290
+ function Os(t, e, n, i) {
4291
+ Fs(t.x, e, nf, n ? n.x : void 0, i ? i.x : void 0), Fs(t.y, e, sf, n ? n.y : void 0, i ? i.y : void 0);
4295
4292
  }
4296
- function _s(t) {
4293
+ function js(t) {
4297
4294
  return t.translate === 0 && t.scale === 1;
4298
4295
  }
4299
- function So(t) {
4300
- return _s(t.x) && _s(t.y);
4296
+ function wo(t) {
4297
+ return js(t.x) && js(t.y);
4301
4298
  }
4302
- function Bs(t, e) {
4299
+ function _s(t, e) {
4303
4300
  return t.min === e.min && t.max === e.max;
4304
4301
  }
4305
4302
  function rf(t, e) {
4306
- return Bs(t.x, e.x) && Bs(t.y, e.y);
4303
+ return _s(t.x, e.x) && _s(t.y, e.y);
4307
4304
  }
4308
- function Is(t, e) {
4305
+ function Bs(t, e) {
4309
4306
  return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
4310
4307
  }
4311
- function Co(t, e) {
4312
- return Is(t.x, e.x) && Is(t.y, e.y);
4308
+ function So(t, e) {
4309
+ return Bs(t.x, e.x) && Bs(t.y, e.y);
4313
4310
  }
4314
- function Ns(t) {
4315
- return J(t.x) / J(t.y);
4311
+ function Is(t) {
4312
+ return Q(t.x) / Q(t.y);
4316
4313
  }
4317
- function Us(t, e) {
4314
+ function Ns(t, e) {
4318
4315
  return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
4319
4316
  }
4320
4317
  class of {
@@ -4415,19 +4412,19 @@ const Rt = {
4415
4412
  totalNodes: 0,
4416
4413
  resolvedTargetDeltas: 0,
4417
4414
  recalculatedProjection: 0
4418
- }, te = typeof window < "u" && window.MotionDebug !== void 0, pn = ["", "X", "Y", "Z"], df = { visibility: "hidden" }, Ws = 1e3;
4415
+ }, te = typeof window < "u" && window.MotionDebug !== void 0, mn = ["", "X", "Y", "Z"], df = { visibility: "hidden" }, Us = 1e3;
4419
4416
  let pf = 0;
4420
- function mn(t, e, n, i) {
4417
+ function gn(t, e, n, i) {
4421
4418
  const { latestValues: s } = e;
4422
4419
  s[t] && (n[t] = s[t], e.setStaticValue(t, 0), i && (i[t] = 0));
4423
4420
  }
4424
- function Ao(t) {
4421
+ function Co(t) {
4425
4422
  if (t.hasCheckedOptimisedAppear = !0, t.root === t)
4426
4423
  return !1;
4427
4424
  const { visualElement: e } = t.options;
4428
- return e ? co(e) ? !0 : t.parent && !t.parent.hasCheckedOptimisedAppear ? Ao(t.parent) : !1 : !1;
4425
+ return e ? lo(e) ? !0 : t.parent && !t.parent.hasCheckedOptimisedAppear ? Co(t.parent) : !1 : !1;
4429
4426
  }
4430
- function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
4427
+ function Ao({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
4431
4428
  return class {
4432
4429
  constructor(r = {}, a = e == null ? void 0 : e()) {
4433
4430
  this.id = pf++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
@@ -4461,7 +4458,7 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4461
4458
  let f;
4462
4459
  const d = () => this.root.updateBlockedByResize = !1;
4463
4460
  t(r, () => {
4464
- this.root.updateBlockedByResize = !0, f && f(), f = uf(d, 250), De.hasAnimatedSinceResize && (De.hasAnimatedSinceResize = !1, this.nodes.forEach(Ks));
4461
+ this.root.updateBlockedByResize = !0, f && f(), f = uf(d, 250), De.hasAnimatedSinceResize && (De.hasAnimatedSinceResize = !1, this.nodes.forEach($s));
4465
4462
  });
4466
4463
  }
4467
4464
  l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeTargetChanged: p, layout: m }) => {
@@ -4469,17 +4466,17 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4469
4466
  this.target = void 0, this.relativeTarget = void 0;
4470
4467
  return;
4471
4468
  }
4472
- const P = this.options.transition || u.getDefaultTransition() || Rf, { onLayoutAnimationStart: b, onLayoutAnimationComplete: x } = u.getProps(), y = !this.targetLayout || !Co(this.targetLayout, m) || p, v = !d && p;
4469
+ const P = this.options.transition || u.getDefaultTransition() || Rf, { onLayoutAnimationStart: b, onLayoutAnimationComplete: T } = u.getProps(), y = !this.targetLayout || !So(this.targetLayout, m) || p, v = !d && p;
4473
4470
  if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || v || d && (y || !this.currentAnimation)) {
4474
4471
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, v);
4475
4472
  const w = {
4476
4473
  ...ei(P, "layout"),
4477
4474
  onPlay: b,
4478
- onComplete: x
4475
+ onComplete: T
4479
4476
  };
4480
4477
  (u.shouldReduceMotion || this.options.layoutRoot) && (w.delay = 0, w.type = !1), this.startAnimation(w);
4481
4478
  } else
4482
- d || Ks(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4479
+ d || $s(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
4483
4480
  this.targetLayout = m;
4484
4481
  });
4485
4482
  }
@@ -4514,7 +4511,7 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4514
4511
  this.options.onExitComplete && this.options.onExitComplete();
4515
4512
  return;
4516
4513
  }
4517
- if (window.HandoffCancelAllAnimations && Ao(this) && window.HandoffCancelAllAnimations(), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
4514
+ if (window.HandoffCancelAllAnimations && Co(this) && window.HandoffCancelAllAnimations(), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
4518
4515
  return;
4519
4516
  this.isLayoutDirty = !0;
4520
4517
  for (let u = 0; u < this.path.length; u++) {
@@ -4529,15 +4526,15 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4529
4526
  }
4530
4527
  update() {
4531
4528
  if (this.updateScheduled = !1, this.isUpdateBlocked()) {
4532
- this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach($s);
4529
+ this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Ws);
4533
4530
  return;
4534
4531
  }
4535
- this.isUpdating || this.nodes.forEach(xf), this.isUpdating = !1, this.nodes.forEach(Tf), this.nodes.forEach(mf), this.nodes.forEach(gf), this.clearAllSnapshots();
4532
+ this.isUpdating || this.nodes.forEach(Tf), this.isUpdating = !1, this.nodes.forEach(xf), this.nodes.forEach(mf), this.nodes.forEach(gf), this.clearAllSnapshots();
4536
4533
  const a = Pt.now();
4537
- W.delta = xt(0, 1e3 / 60, a - W.timestamp), W.timestamp = a, W.isProcessing = !0, sn.update.process(W), sn.preRender.process(W), sn.render.process(W), W.isProcessing = !1;
4534
+ W.delta = Tt(0, 1e3 / 60, a - W.timestamp), W.timestamp = a, W.isProcessing = !0, rn.update.process(W), rn.preRender.process(W), rn.render.process(W), W.isProcessing = !1;
4538
4535
  }
4539
4536
  didUpdate() {
4540
- this.updateScheduled || (this.updateScheduled = !0, Nn.read(this.scheduleUpdate));
4537
+ this.updateScheduled || (this.updateScheduled = !0, Un.read(this.scheduleUpdate));
4541
4538
  }
4542
4539
  clearAllSnapshots() {
4543
4540
  this.nodes.forEach(Pf), this.sharedNodes.forEach(Cf);
@@ -4563,7 +4560,7 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4563
4560
  for (let l = 0; l < this.path.length; l++)
4564
4561
  this.path[l].updateScroll();
4565
4562
  const r = this.layout;
4566
- this.layout = this.measure(!1), this.layoutCorrected = I(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
4563
+ this.layout = this.measure(!1), this.layoutCorrected = B(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
4567
4564
  const { visualElement: a } = this.options;
4568
4565
  a && a.notify("LayoutMeasure", this.layout.layoutBox, r ? r.layoutBox : void 0);
4569
4566
  }
@@ -4583,7 +4580,7 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4583
4580
  resetTransform() {
4584
4581
  if (!s)
4585
4582
  return;
4586
- const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !So(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
4583
+ const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !wo(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
4587
4584
  r && (a || Et(this.latestValues) || u) && (s(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
4588
4585
  }
4589
4586
  measure(r = !0) {
@@ -4601,7 +4598,7 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4601
4598
  var r;
4602
4599
  const { visualElement: a } = this.options;
4603
4600
  if (!a)
4604
- return I();
4601
+ return B();
4605
4602
  const l = a.measureViewportBox();
4606
4603
  if (!(((r = this.scroll) === null || r === void 0 ? void 0 : r.wasRoot) || this.path.some(Df))) {
4607
4604
  const { scroll: u } = this.root;
@@ -4611,18 +4608,18 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4611
4608
  }
4612
4609
  removeElementScroll(r) {
4613
4610
  var a;
4614
- const l = I();
4615
- if (et(l, r), !((a = this.scroll) === null || a === void 0) && a.wasRoot)
4611
+ const l = B();
4612
+ if (nt(l, r), !((a = this.scroll) === null || a === void 0) && a.wasRoot)
4616
4613
  return l;
4617
4614
  for (let c = 0; c < this.path.length; c++) {
4618
4615
  const u = this.path[c], { scroll: f, options: d } = u;
4619
- u !== this.root && f && d.layoutScroll && (f.wasRoot && et(l, r), Ut(l.x, f.offset.x), Ut(l.y, f.offset.y));
4616
+ u !== this.root && f && d.layoutScroll && (f.wasRoot && nt(l, r), Ut(l.x, f.offset.x), Ut(l.y, f.offset.y));
4620
4617
  }
4621
4618
  return l;
4622
4619
  }
4623
4620
  applyTransform(r, a = !1) {
4624
- const l = I();
4625
- et(l, r);
4621
+ const l = B();
4622
+ nt(l, r);
4626
4623
  for (let c = 0; c < this.path.length; c++) {
4627
4624
  const u = this.path[c];
4628
4625
  !a && u.options.layoutScroll && u.scroll && u !== u.root && Wt(l, {
@@ -4633,17 +4630,17 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4633
4630
  return Et(this.latestValues) && Wt(l, this.latestValues), l;
4634
4631
  }
4635
4632
  removeTransform(r) {
4636
- const a = I();
4637
- et(a, r);
4633
+ const a = B();
4634
+ nt(a, r);
4638
4635
  for (let l = 0; l < this.path.length; l++) {
4639
4636
  const c = this.path[l];
4640
4637
  if (!c.instance || !Et(c.latestValues))
4641
4638
  continue;
4642
- Mn(c.latestValues) && c.updateSnapshot();
4643
- const u = I(), f = c.measurePageBox();
4644
- et(u, f), js(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4639
+ kn(c.latestValues) && c.updateSnapshot();
4640
+ const u = B(), f = c.measurePageBox();
4641
+ nt(u, f), Os(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4645
4642
  }
4646
- return Et(this.latestValues) && js(a, this.latestValues), a;
4643
+ return Et(this.latestValues) && Os(a, this.latestValues), a;
4647
4644
  }
4648
4645
  setTargetDelta(r) {
4649
4646
  this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -4672,20 +4669,20 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4672
4669
  if (!(!this.layout || !(f || d))) {
4673
4670
  if (this.resolvedRelativeTargetAt = W.timestamp, !this.targetDelta && !this.relativeTarget) {
4674
4671
  const p = this.getClosestProjectingParent();
4675
- 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;
4672
+ p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), se(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), nt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4676
4673
  }
4677
4674
  if (!(!this.relativeTarget && !this.targetDelta)) {
4678
- if (this.target || (this.target = I(), this.targetWithTransforms = I()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Mu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : et(this.target, this.layout.layoutBox), vo(this.target, this.targetDelta)) : et(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4675
+ if (this.target || (this.target = B(), this.targetWithTransforms = B()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Mu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : nt(this.target, this.layout.layoutBox), yo(this.target, this.targetDelta)) : nt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4679
4676
  this.attemptToResolveRelativeTarget = !1;
4680
4677
  const p = this.getClosestProjectingParent();
4681
- 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;
4678
+ p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = B(), this.relativeTargetOrigin = B(), se(this.relativeTargetOrigin, this.target, p.target), nt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4682
4679
  }
4683
4680
  te && Rt.resolvedTargetDeltas++;
4684
4681
  }
4685
4682
  }
4686
4683
  }
4687
4684
  getClosestProjectingParent() {
4688
- if (!(!this.parent || Mn(this.parent.latestValues) || yo(this.parent.latestValues)))
4685
+ if (!(!this.parent || kn(this.parent.latestValues) || go(this.parent.latestValues)))
4689
4686
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
4690
4687
  }
4691
4688
  isProjecting() {
@@ -4700,15 +4697,15 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4700
4697
  const { layout: u, layoutId: f } = this.options;
4701
4698
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || f))
4702
4699
  return;
4703
- et(this.layoutCorrected, this.layout.layoutBox);
4700
+ nt(this.layoutCorrected, this.layout.layoutBox);
4704
4701
  const d = this.treeScale.x, p = this.treeScale.y;
4705
- Nu(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());
4702
+ Nu(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 = B());
4706
4703
  const { target: m } = a;
4707
4704
  if (!m) {
4708
4705
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
4709
4706
  return;
4710
4707
  }
4711
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ls(this.prevProjectionDelta.x, this.projectionDelta.x), Ls(this.prevProjectionDelta.y, this.projectionDelta.y)), ie(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !Us(this.projectionDelta.x, this.prevProjectionDelta.x) || !Us(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), te && Rt.recalculatedProjection++;
4708
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (ks(this.prevProjectionDelta.x, this.projectionDelta.x), ks(this.prevProjectionDelta.y, this.projectionDelta.y)), ie(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== d || this.treeScale.y !== p || !Ns(this.projectionDelta.x, this.prevProjectionDelta.x) || !Ns(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m)), te && Rt.recalculatedProjection++;
4712
4709
  }
4713
4710
  hide() {
4714
4711
  this.isVisible = !1;
@@ -4730,17 +4727,17 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4730
4727
  setAnimationOrigin(r, a = !1) {
4731
4728
  const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = Nt();
4732
4729
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4733
- const d = I(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, P = p !== m, b = this.getStack(), x = !b || b.members.length <= 1, y = !!(P && !x && this.options.crossfade === !0 && !this.path.some(Ef));
4730
+ const d = B(), p = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, P = p !== m, b = this.getStack(), T = !b || b.members.length <= 1, y = !!(P && !T && this.options.crossfade === !0 && !this.path.some(Ef));
4734
4731
  this.animationProgress = 0;
4735
4732
  let v;
4736
4733
  this.mixTargetDelta = (w) => {
4737
4734
  const A = w / 1e3;
4738
- Gs(f.x, r.x, A), Gs(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), Af(this.relativeTarget, this.relativeTargetOrigin, d, A), v && rf(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = I()), et(v, this.relativeTarget)), P && (this.animationValues = u, Ju(u, c, this.latestValues, A, y, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
4735
+ Ks(f.x, r.x, A), Ks(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), Af(this.relativeTarget, this.relativeTargetOrigin, d, A), v && rf(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = B()), nt(v, this.relativeTarget)), P && (this.animationValues = u, Ju(u, c, this.latestValues, A, y, T)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = A;
4739
4736
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4740
4737
  }
4741
4738
  startAnimation(r) {
4742
4739
  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 = M.update(() => {
4743
- De.hasAnimatedSinceResize = !0, this.currentAnimation = hf(0, Ws, {
4740
+ De.hasAnimatedSinceResize = !0, this.currentAnimation = hf(0, Us, {
4744
4741
  ...r,
4745
4742
  onUpdate: (a) => {
4746
4743
  this.mixTargetDelta(a), r.onUpdate && r.onUpdate(a);
@@ -4757,20 +4754,20 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4757
4754
  r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
4758
4755
  }
4759
4756
  finishAnimation() {
4760
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Ws), this.currentAnimation.stop()), this.completeAnimation();
4757
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Us), this.currentAnimation.stop()), this.completeAnimation();
4761
4758
  }
4762
4759
  applyTransformsToTarget() {
4763
4760
  const r = this.getLead();
4764
4761
  let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = r;
4765
4762
  if (!(!a || !l || !c)) {
4766
- if (this !== r && this.layout && c && Ro(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
4767
- l = this.target || I();
4768
- const f = J(this.layout.layoutBox.x);
4763
+ if (this !== r && this.layout && c && Eo(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
4764
+ l = this.target || B();
4765
+ const f = Q(this.layout.layoutBox.x);
4769
4766
  l.x.min = r.target.x.min, l.x.max = l.x.min + f;
4770
- const d = J(this.layout.layoutBox.y);
4767
+ const d = Q(this.layout.layoutBox.y);
4771
4768
  l.y.min = r.target.y.min, l.y.max = l.y.min + d;
4772
4769
  }
4773
- et(a, l), Wt(a, u), ie(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
4770
+ nt(a, l), Wt(a, u), ie(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
4774
4771
  }
4775
4772
  }
4776
4773
  registerSharedNode(r, a) {
@@ -4817,9 +4814,9 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4817
4814
  if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a)
4818
4815
  return;
4819
4816
  const c = {};
4820
- l.z && mn("z", r, c, this.animationValues);
4821
- for (let u = 0; u < pn.length; u++)
4822
- mn(`rotate${pn[u]}`, r, c, this.animationValues), mn(`skew${pn[u]}`, r, c, this.animationValues);
4817
+ l.z && gn("z", r, c, this.animationValues);
4818
+ for (let u = 0; u < mn.length; u++)
4819
+ gn(`rotate${mn[u]}`, r, c, this.animationValues), gn(`skew${mn[u]}`, r, c, this.animationValues);
4823
4820
  r.render();
4824
4821
  for (const u in c)
4825
4822
  r.setStaticValue(u, c[u]), this.animationValues && (this.animationValues[u] = c[u]);
@@ -4848,11 +4845,11 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4848
4845
  for (const P in Le) {
4849
4846
  if (d[P] === void 0)
4850
4847
  continue;
4851
- const { correct: b, applyTo: x } = Le[P], y = c.transform === "none" ? d[P] : b(d[P], f);
4852
- if (x) {
4853
- const v = x.length;
4848
+ const { correct: b, applyTo: T } = Le[P], y = c.transform === "none" ? d[P] : b(d[P], f);
4849
+ if (T) {
4850
+ const v = T.length;
4854
4851
  for (let w = 0; w < v; w++)
4855
- c[x[w]] = y;
4852
+ c[T[w]] = y;
4856
4853
  } else
4857
4854
  c[P] = y;
4858
4855
  }
@@ -4866,7 +4863,7 @@ function Eo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4866
4863
  this.root.nodes.forEach((r) => {
4867
4864
  var a;
4868
4865
  return (a = r.currentAnimation) === null || a === void 0 ? void 0 : a.stop();
4869
- }), this.root.nodes.forEach($s), this.root.sharedNodes.clear();
4866
+ }), this.root.nodes.forEach(Ws), this.root.sharedNodes.clear();
4870
4867
  }
4871
4868
  };
4872
4869
  }
@@ -4878,28 +4875,28 @@ function gf(t) {
4878
4875
  const n = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
4879
4876
  if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
4880
4877
  const { layoutBox: i, measuredBox: s } = t.layout, { animationType: o } = t.options, r = n.source !== t.layout.source;
4881
- o === "size" ? nt((f) => {
4882
- const d = r ? n.measuredBox[f] : n.layoutBox[f], p = J(d);
4878
+ o === "size" ? it((f) => {
4879
+ const d = r ? n.measuredBox[f] : n.layoutBox[f], p = Q(d);
4883
4880
  d.min = i[f].min, d.max = d.min + p;
4884
- }) : Ro(o, n.layoutBox, i) && nt((f) => {
4885
- const d = r ? n.measuredBox[f] : n.layoutBox[f], p = J(i[f]);
4881
+ }) : Eo(o, n.layoutBox, i) && it((f) => {
4882
+ const d = r ? n.measuredBox[f] : n.layoutBox[f], p = Q(i[f]);
4886
4883
  d.max = d.min + p, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[f].max = t.relativeTarget[f].min + p);
4887
4884
  });
4888
4885
  const a = Nt();
4889
4886
  ie(a, i, n.layoutBox);
4890
4887
  const l = Nt();
4891
4888
  r ? ie(l, t.applyTransform(s, !0), n.measuredBox) : ie(l, i, n.layoutBox);
4892
- const c = !So(a);
4889
+ const c = !wo(a);
4893
4890
  let u = !1;
4894
4891
  if (!t.resumeFrom) {
4895
4892
  const f = t.getClosestProjectingParent();
4896
4893
  if (f && !f.resumeFrom) {
4897
4894
  const { snapshot: d, layout: p } = f;
4898
4895
  if (d && p) {
4899
- const m = I();
4896
+ const m = B();
4900
4897
  se(m, n.layoutBox, d.layoutBox);
4901
- const P = I();
4902
- se(P, i, p.layoutBox), Co(m, P) || (u = !0), f.options.layoutRoot && (t.relativeTarget = P, t.relativeTargetOrigin = m, t.relativeParent = f);
4898
+ const P = B();
4899
+ se(P, i, p.layoutBox), So(m, P) || (u = !0), f.options.layoutRoot && (t.relativeTarget = P, t.relativeTargetOrigin = m, t.relativeParent = f);
4903
4900
  }
4904
4901
  }
4905
4902
  }
@@ -4926,17 +4923,17 @@ function vf(t) {
4926
4923
  function Pf(t) {
4927
4924
  t.clearSnapshot();
4928
4925
  }
4929
- function $s(t) {
4926
+ function Ws(t) {
4930
4927
  t.clearMeasurements();
4931
4928
  }
4932
- function xf(t) {
4929
+ function Tf(t) {
4933
4930
  t.isLayoutDirty = !1;
4934
4931
  }
4935
- function Tf(t) {
4932
+ function xf(t) {
4936
4933
  const { visualElement: e } = t.options;
4937
4934
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
4938
4935
  }
4939
- function Ks(t) {
4936
+ function $s(t) {
4940
4937
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
4941
4938
  }
4942
4939
  function bf(t) {
@@ -4951,14 +4948,14 @@ function Sf(t) {
4951
4948
  function Cf(t) {
4952
4949
  t.removeLeadSnapshot();
4953
4950
  }
4954
- function Gs(t, e, n) {
4951
+ function Ks(t, e, n) {
4955
4952
  t.translate = O(e.translate, 0, n), t.scale = O(e.scale, 1, n), t.origin = e.origin, t.originPoint = e.originPoint;
4956
4953
  }
4957
- function Hs(t, e, n, i) {
4954
+ function Gs(t, e, n, i) {
4958
4955
  t.min = O(e.min, n.min, i), t.max = O(e.max, n.max, i);
4959
4956
  }
4960
4957
  function Af(t, e, n, i) {
4961
- Hs(t.x, e.x, n.x, i), Hs(t.y, e.y, n.y, i);
4958
+ Gs(t.x, e.x, n.x, i), Gs(t.y, e.y, n.y, i);
4962
4959
  }
4963
4960
  function Ef(t) {
4964
4961
  return t.animationValues && t.animationValues.opacityExit !== void 0;
@@ -4966,40 +4963,40 @@ function Ef(t) {
4966
4963
  const Rf = {
4967
4964
  duration: 0.45,
4968
4965
  ease: [0.4, 0, 0.1, 1]
4969
- }, zs = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ys = zs("applewebkit/") && !zs("chrome/") ? Math.round : K;
4970
- function Xs(t) {
4971
- t.min = Ys(t.min), t.max = Ys(t.max);
4966
+ }, Hs = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), zs = Hs("applewebkit/") && !Hs("chrome/") ? Math.round : K;
4967
+ function Ys(t) {
4968
+ t.min = zs(t.min), t.max = zs(t.max);
4972
4969
  }
4973
4970
  function Vf(t) {
4974
- Xs(t.x), Xs(t.y);
4971
+ Ys(t.x), Ys(t.y);
4975
4972
  }
4976
- function Ro(t, e, n) {
4977
- return t === "position" || t === "preserve-aspect" && !Du(Ns(e), Ns(n), 0.2);
4973
+ function Eo(t, e, n) {
4974
+ return t === "position" || t === "preserve-aspect" && !Du(Is(e), Is(n), 0.2);
4978
4975
  }
4979
4976
  function Df(t) {
4980
4977
  var e;
4981
4978
  return t !== t.root && ((e = t.scroll) === null || e === void 0 ? void 0 : e.wasRoot);
4982
4979
  }
4983
- const Mf = Eo({
4980
+ const Mf = Ao({
4984
4981
  attachResizeListener: (t, e) => ct(t, "resize", e),
4985
4982
  measureScroll: () => ({
4986
4983
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
4987
4984
  y: document.documentElement.scrollTop || document.body.scrollTop
4988
4985
  }),
4989
4986
  checkIsScrollRoot: () => !0
4990
- }), gn = {
4987
+ }), yn = {
4991
4988
  current: void 0
4992
- }, Vo = Eo({
4989
+ }, Ro = Ao({
4993
4990
  measureScroll: (t) => ({
4994
4991
  x: t.scrollLeft,
4995
4992
  y: t.scrollTop
4996
4993
  }),
4997
4994
  defaultParent: () => {
4998
- if (!gn.current) {
4995
+ if (!yn.current) {
4999
4996
  const t = new Mf({});
5000
- t.mount(window), t.setOptions({ layoutScroll: !0 }), gn.current = t;
4997
+ t.mount(window), t.setOptions({ layoutScroll: !0 }), yn.current = t;
5001
4998
  }
5002
- return gn.current;
4999
+ return yn.current;
5003
5000
  },
5004
5001
  resetTransform: (t, e) => {
5005
5002
  t.style.transform = e !== void 0 ? e : "none";
@@ -5011,23 +5008,23 @@ const Mf = Eo({
5011
5008
  },
5012
5009
  drag: {
5013
5010
  Feature: Gu,
5014
- ProjectionNode: Vo,
5011
+ ProjectionNode: Ro,
5015
5012
  MeasureLayout: To
5016
5013
  }
5017
- }, Ln = { current: null }, Do = { current: !1 };
5014
+ }, Fn = { current: null }, Vo = { current: !1 };
5018
5015
  function Lf() {
5019
- if (Do.current = !0, !!In)
5016
+ if (Vo.current = !0, !!Nn)
5020
5017
  if (window.matchMedia) {
5021
- const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Ln.current = t.matches;
5018
+ const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Fn.current = t.matches;
5022
5019
  t.addListener(e), e();
5023
5020
  } else
5024
- Ln.current = !1;
5021
+ Fn.current = !1;
5025
5022
  }
5026
5023
  function Ff(t, e, n) {
5027
5024
  for (const i in e) {
5028
5025
  const s = e[i], o = n[i];
5029
5026
  if (z(s))
5030
- t.addValue(i, s), process.env.NODE_ENV === "development" && hi(s.version === "11.3.21", `Attempting to mix Framer Motion versions ${s.version} with 11.3.21 may not work as expected.`);
5027
+ t.addValue(i, s), process.env.NODE_ENV === "development" && hi(s.version === "11.3.19", `Attempting to mix Framer Motion versions ${s.version} with 11.3.19 may not work as expected.`);
5031
5028
  else if (z(o))
5032
5029
  t.addValue(i, ue(s, { owner: t }));
5033
5030
  else if (o !== s)
@@ -5043,7 +5040,7 @@ function Ff(t, e, n) {
5043
5040
  e[i] === void 0 && t.removeValue(i);
5044
5041
  return e;
5045
5042
  }
5046
- const qs = /* @__PURE__ */ new WeakMap(), Of = [...jr, H, Tt], jf = (t) => Of.find(Or(t)), Zs = [
5043
+ const Xs = /* @__PURE__ */ new WeakMap(), Of = [...Or, H, xt], jf = (t) => Of.find(Fr(t)), qs = [
5047
5044
  "AnimationStart",
5048
5045
  "AnimationComplete",
5049
5046
  "Update",
@@ -5051,7 +5048,7 @@ const qs = /* @__PURE__ */ new WeakMap(), Of = [...jr, H, Tt], jf = (t) => Of.fi
5051
5048
  "LayoutMeasure",
5052
5049
  "LayoutAnimationStart",
5053
5050
  "LayoutAnimationComplete"
5054
- ], _f = Wn.length;
5051
+ ], _f = $n.length;
5055
5052
  class Bf {
5056
5053
  /**
5057
5054
  * This method takes React props and returns found MotionValues. For example, HTML
@@ -5070,7 +5067,7 @@ class Bf {
5070
5067
  this.isRenderScheduled || (this.isRenderScheduled = !0, M.render(this.render, !1, !0));
5071
5068
  };
5072
5069
  const { latestValues: l, renderState: c } = r;
5073
- 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 = We(n), this.isVariantNode = fr(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
5070
+ 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 = We(n), this.isVariantNode = ur(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
5074
5071
  const { willChange: u, ...f } = this.scrapeMotionValuesFromProps(n, {}, this);
5075
5072
  for (const d in f) {
5076
5073
  const p = f[d];
@@ -5078,10 +5075,10 @@ class Bf {
5078
5075
  }
5079
5076
  }
5080
5077
  mount(e) {
5081
- this.current = e, qs.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)), Do.current || Lf(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Ln.current, process.env.NODE_ENV !== "production" && hi(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);
5078
+ this.current = e, Xs.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)), Vo.current || Lf(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Fn.current, process.env.NODE_ENV !== "production" && hi(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);
5082
5079
  }
5083
5080
  unmount() {
5084
- qs.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);
5081
+ Xs.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);
5085
5082
  for (const e in this.events)
5086
5083
  this.events[e].clear();
5087
5084
  for (const e in this.features) {
@@ -5123,7 +5120,7 @@ class Bf {
5123
5120
  * removed with a re-render to work.
5124
5121
  */
5125
5122
  measureViewportBox() {
5126
- return this.current ? this.measureInstanceViewportBox(this.current, this.props) : I();
5123
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : B();
5127
5124
  }
5128
5125
  getStaticValue(e) {
5129
5126
  return this.latestValues[e];
@@ -5137,8 +5134,8 @@ class Bf {
5137
5134
  */
5138
5135
  update(e, n) {
5139
5136
  (e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
5140
- for (let i = 0; i < Zs.length; i++) {
5141
- const s = Zs[i];
5137
+ for (let i = 0; i < qs.length; i++) {
5138
+ const s = qs[i];
5142
5139
  this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
5143
5140
  const o = "on" + s, r = e[o];
5144
5141
  r && (this.propEventSubscriptions[s] = this.on(s, r));
@@ -5175,7 +5172,7 @@ class Bf {
5175
5172
  }
5176
5173
  const n = {};
5177
5174
  for (let i = 0; i < _f; i++) {
5178
- const s = Wn[i], o = this.props[s];
5175
+ const s = $n[i], o = this.props[s];
5179
5176
  (oe(o) || o === !1) && (n[s] = o);
5180
5177
  }
5181
5178
  return n;
@@ -5223,7 +5220,7 @@ class Bf {
5223
5220
  readValue(e, n) {
5224
5221
  var i;
5225
5222
  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);
5226
- return s != null && (typeof s == "string" && (Lr(s) || kr(s)) ? s = parseFloat(s) : !jf(s) && Tt.test(n) && (s = Kr(e, n)), this.setBaseTarget(e, z(s) ? s.get() : s)), z(s) ? s.get() : s;
5223
+ return s != null && (typeof s == "string" && (kr(s) || Mr(s)) ? s = parseFloat(s) : !jf(s) && xt.test(n) && (s = $r(e, n)), this.setBaseTarget(e, z(s) ? s.get() : s)), z(s) ? s.get() : s;
5227
5224
  }
5228
5225
  /**
5229
5226
  * Set the base target to later animate back to. This is currently
@@ -5256,9 +5253,9 @@ class Bf {
5256
5253
  this.events[e] && this.events[e].notify(...n);
5257
5254
  }
5258
5255
  }
5259
- class Mo extends Bf {
5256
+ class Do extends Bf {
5260
5257
  constructor() {
5261
- super(...arguments), this.KeyframeResolver = Gr;
5258
+ super(...arguments), this.KeyframeResolver = Kr;
5262
5259
  }
5263
5260
  sortInstanceNodePosition(e, n) {
5264
5261
  return e.compareDocumentPosition(n) & 2 ? 1 : -1;
@@ -5273,21 +5270,21 @@ class Mo extends Bf {
5273
5270
  function If(t) {
5274
5271
  return window.getComputedStyle(t);
5275
5272
  }
5276
- class Nf extends Mo {
5273
+ class Nf extends Do {
5277
5274
  constructor() {
5278
- super(...arguments), this.type = "html", this.applyWillChange = !0, this.renderInstance = Pr;
5275
+ super(...arguments), this.type = "html", this.applyWillChange = !0, this.renderInstance = vr;
5279
5276
  }
5280
5277
  readValueFromInstance(e, n) {
5281
5278
  if (bt.has(n)) {
5282
5279
  const i = si(n);
5283
5280
  return i && i.default || 0;
5284
5281
  } else {
5285
- const i = If(e), s = (mr(n) ? i.getPropertyValue(n) : i[n]) || 0;
5282
+ const i = If(e), s = (dr(n) ? i.getPropertyValue(n) : i[n]) || 0;
5286
5283
  return typeof s == "string" ? s.trim() : s;
5287
5284
  }
5288
5285
  }
5289
5286
  measureInstanceViewportBox(e, { transformPagePoint: n }) {
5290
- return Po(e, n);
5287
+ return vo(e, n);
5291
5288
  }
5292
5289
  build(e, n, i) {
5293
5290
  Yn(e, n, i.transformTemplate);
@@ -5303,9 +5300,9 @@ class Nf extends Mo {
5303
5300
  }));
5304
5301
  }
5305
5302
  }
5306
- class Uf extends Mo {
5303
+ class Uf extends Do {
5307
5304
  constructor() {
5308
- super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = I;
5305
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = B;
5309
5306
  }
5310
5307
  getBaseTargetFromProps(e, n) {
5311
5308
  return e[n];
@@ -5315,10 +5312,10 @@ class Uf extends Mo {
5315
5312
  const i = si(n);
5316
5313
  return i && i.default || 0;
5317
5314
  }
5318
- return n = xr.has(n) ? n : Ue(n), e.getAttribute(n);
5315
+ return n = Pr.has(n) ? n : Ue(n), e.getAttribute(n);
5319
5316
  }
5320
5317
  scrapeMotionValuesFromProps(e, n, i) {
5321
- return br(e, n, i);
5318
+ return xr(e, n, i);
5322
5319
  }
5323
5320
  build(e, n, i) {
5324
5321
  qn(e, n, this.isSVGTag, i.transformTemplate);
@@ -5330,11 +5327,11 @@ class Uf extends Mo {
5330
5327
  this.isSVGTag = Zn(e.tagName), super.mount(e);
5331
5328
  }
5332
5329
  }
5333
- const Wf = (t, e) => Kn(t) ? new Uf(e) : new Nf(e, {
5334
- allowProjection: t !== nr
5330
+ const Wf = (t, e) => Gn(t) ? new Uf(e) : new Nf(e, {
5331
+ allowProjection: t !== er
5335
5332
  }), $f = {
5336
5333
  layout: {
5337
- ProjectionNode: Vo,
5334
+ ProjectionNode: Ro,
5338
5335
  MeasureLayout: To
5339
5336
  }
5340
5337
  }, Kf = {
@@ -5342,8 +5339,8 @@ const Wf = (t, e) => Kn(t) ? new Uf(e) : new Nf(e, {
5342
5339
  ...kl,
5343
5340
  ...kf,
5344
5341
  ...$f
5345
- }, Gf = /* @__PURE__ */ Ua((t, e) => Pl(t, e, Kf, Wf));
5346
- class Hf extends Fn.Component {
5342
+ }, Gf = /* @__PURE__ */ Na((t, e) => Pl(t, e, Kf, Wf));
5343
+ class Hf extends On.Component {
5347
5344
  getSnapshotBeforeUpdate(e) {
5348
5345
  const n = this.props.childRef.current;
5349
5346
  if (n && e.isPresent && !this.props.isPresent) {
@@ -5362,13 +5359,13 @@ class Hf extends Fn.Component {
5362
5359
  }
5363
5360
  }
5364
5361
  function zf({ children: t, isPresent: e }) {
5365
- const n = jn(), i = it(null), s = it({
5362
+ const n = _n(), i = J(null), s = J({
5366
5363
  width: 0,
5367
5364
  height: 0,
5368
5365
  top: 0,
5369
5366
  left: 0
5370
- }), { nonce: o } = $(Bn);
5371
- return er(() => {
5367
+ }), { nonce: o } = $(In);
5368
+ return tr(() => {
5372
5369
  const { width: r, height: a, top: l, left: c } = s.current;
5373
5370
  if (e || !i.current || !r || !a)
5374
5371
  return;
@@ -5385,10 +5382,10 @@ function zf({ children: t, isPresent: e }) {
5385
5382
  `), () => {
5386
5383
  document.head.removeChild(u);
5387
5384
  };
5388
- }, [e]), F.jsx(Hf, { isPresent: e, childRef: i, sizeRef: s, children: Fn.cloneElement(t, { ref: i }) });
5385
+ }, [e]), L.jsx(Hf, { isPresent: e, childRef: i, sizeRef: s, children: On.cloneElement(t, { ref: i }) });
5389
5386
  }
5390
5387
  const Yf = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: s, presenceAffectsLayout: o, mode: r }) => {
5391
- const a = ti(Xf), l = jn(), c = Mt(
5388
+ const a = ti(Xf), l = _n(), c = Mt(
5392
5389
  () => ({
5393
5390
  id: l,
5394
5391
  initial: e,
@@ -5412,24 +5409,24 @@ const Yf = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom:
5412
5409
  );
5413
5410
  return Mt(() => {
5414
5411
  a.forEach((u, f) => a.set(f, !1));
5415
- }, [n]), Fn.useEffect(() => {
5412
+ }, [n]), On.useEffect(() => {
5416
5413
  !n && !a.size && i && i();
5417
- }, [n]), r === "popLayout" && (t = F.jsx(zf, { isPresent: n, children: t })), F.jsx(Ne.Provider, { value: c, children: t });
5414
+ }, [n]), r === "popLayout" && (t = L.jsx(zf, { isPresent: n, children: t })), L.jsx(Ne.Provider, { value: c, children: t });
5418
5415
  };
5419
5416
  function Xf() {
5420
5417
  return /* @__PURE__ */ new Map();
5421
5418
  }
5422
5419
  const Ce = (t) => t.key || "";
5423
- function Js(t) {
5420
+ function Zs(t) {
5424
5421
  const e = [];
5425
- return ca.forEach(t, (n) => {
5426
- ua(n) && e.push(n);
5422
+ return la.forEach(t, (n) => {
5423
+ ca(n) && e.push(n);
5427
5424
  }), e;
5428
5425
  }
5429
5426
  const qf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExitComplete: s, presenceAffectsLayout: o = !0, mode: r = "sync" }) => {
5430
5427
  pt(!e, "Replace exitBeforeEnter with mode='wait'");
5431
- const a = Mt(() => Js(t), [t]), l = a.map(Ce), c = it(!0), u = it(a), f = ti(() => /* @__PURE__ */ new Map()), [d, p] = _t(a), [m, P] = _t(a);
5432
- rr(() => {
5428
+ const a = Mt(() => Zs(t), [t]), l = a.map(Ce), c = J(!0), u = J(a), f = ti(() => /* @__PURE__ */ new Map()), [d, p] = _t(a), [m, P] = _t(a);
5429
+ sr(() => {
5433
5430
  c.current = !1, u.current = a;
5434
5431
  for (let y = 0; y < m.length; y++) {
5435
5432
  const v = Ce(m[y]);
@@ -5443,30 +5440,30 @@ const qf = ({ children: t, exitBeforeEnter: e, custom: n, initial: i = !0, onExi
5443
5440
  const w = m[v], A = Ce(w);
5444
5441
  l.includes(A) || (y.splice(v, 0, w), b.push(w));
5445
5442
  }
5446
- r === "wait" && b.length && (y = b), P(Js(y)), p(a);
5443
+ r === "wait" && b.length && (y = b), P(Zs(y)), p(a);
5447
5444
  return;
5448
5445
  }
5449
5446
  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.`);
5450
- const { forceRender: x } = $($n);
5451
- return F.jsx(F.Fragment, { children: m.map((y) => {
5447
+ const { forceRender: T } = $(Kn);
5448
+ return L.jsx(L.Fragment, { children: m.map((y) => {
5452
5449
  const v = Ce(y), w = a === m || l.includes(v), A = () => {
5453
5450
  if (f.has(v))
5454
5451
  f.set(v, !0);
5455
5452
  else
5456
5453
  return;
5457
- let L = !0;
5454
+ let F = !0;
5458
5455
  f.forEach((q) => {
5459
- q || (L = !1);
5460
- }), L && (x == null || x(), P(u.current), s && s());
5456
+ q || (F = !1);
5457
+ }), F && (T == null || T(), P(u.current), s && s());
5461
5458
  };
5462
- return F.jsx(Yf, { 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);
5459
+ return L.jsx(Yf, { 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);
5463
5460
  }) });
5464
5461
  };
5465
5462
  function Me(t) {
5466
5463
  var e = new Error(t);
5467
5464
  return e.source = "ulid", e;
5468
5465
  }
5469
- var di = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", re = di.length, Qs = Math.pow(2, 48) - 1, Zf = 10, Jf = 16;
5466
+ var di = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", re = di.length, Js = Math.pow(2, 48) - 1, Zf = 10, Jf = 16;
5470
5467
  function Qf(t) {
5471
5468
  var e = Math.floor(t() * re);
5472
5469
  return e === re && (e = re - 1), di.charAt(e);
@@ -5474,8 +5471,8 @@ function Qf(t) {
5474
5471
  function th(t, e) {
5475
5472
  if (isNaN(t))
5476
5473
  throw new Error(t + " must be a number");
5477
- if (t > Qs)
5478
- throw Me("cannot encode time greater than " + Qs);
5474
+ if (t > Js)
5475
+ throw Me("cannot encode time greater than " + Js);
5479
5476
  if (t < 0)
5480
5477
  throw Me("time must be positive");
5481
5478
  if (Number.isInteger(t) === !1)
@@ -5522,7 +5519,7 @@ function ih(t) {
5522
5519
  };
5523
5520
  }
5524
5521
  var sh = ih();
5525
- const tr = ({
5522
+ const Qs = ({
5526
5523
  onMousedown: t
5527
5524
  }) => (ot(() => (document.addEventListener("mousedown", t), () => {
5528
5525
  document.removeEventListener("mousedown", t);
@@ -5530,13 +5527,13 @@ const tr = ({
5530
5527
  onPickerHide: t
5531
5528
  }) => (ot(() => () => {
5532
5529
  t();
5533
- }, []), null), oh = "acrool-react-picker__root", ah = "acrool-react-picker__main-el", lh = "acrool-react-picker__picker-el", yn = {
5530
+ }, []), null), oh = "acrool-react-picker__root", ah = "acrool-react-picker__main-el", lh = "acrool-react-picker__picker-el", vn = {
5534
5531
  root: oh,
5535
5532
  "main-el": "acrool-react-picker__main-el",
5536
5533
  mainEl: ah,
5537
5534
  "picker-el": "acrool-react-picker__picker-el",
5538
5535
  pickerEl: lh
5539
- }, ko = (t, e) => (n) => {
5536
+ }, Mo = (t, e) => (n) => {
5540
5537
  e.current = n, t && (typeof t == "function" ? t(n) : t && (t.current = n));
5541
5538
  }, ch = "acrool-react-picker__motion-animation-wrapper", uh = {
5542
5539
  "motion-animation-wrapper": "acrool-react-picker__motion-animation-wrapper",
@@ -5548,7 +5545,7 @@ function fh(t) {
5548
5545
  let e = t.parentElement;
5549
5546
  for (; e; ) {
5550
5547
  const { overflowY: n, position: i } = window.getComputedStyle(e);
5551
- if (i === "fixed" || (n === "auto" || n === "scroll") && e.scrollHeight > e.clientHeight)
5548
+ if ((n === "auto" || n === "scroll") && e.scrollHeight > e.clientHeight)
5552
5549
  return Ae.set(t, e), e;
5553
5550
  e = e.parentElement;
5554
5551
  }
@@ -5561,9 +5558,9 @@ const hh = (t, e, n) => {
5561
5558
  return;
5562
5559
  const o = s.getBoundingClientRect(), r = i.getBoundingClientRect(), a = window.innerHeight, l = window.innerWidth, c = window.pageYOffset || document.documentElement.scrollTop, u = window.pageXOffset || document.documentElement.scrollLeft, f = 8, d = r.top - f, p = a - r.bottom - f;
5563
5560
  let m = p >= d ? lt.bottom : lt.top, P = m === lt.bottom ? p : d;
5564
- const b = o.width, x = r.left + b < l, y = r.right - b > 0;
5561
+ const b = o.width, T = r.left + b < l, y = r.right - b > 0;
5565
5562
  let v = Jt.left;
5566
- !x && y ? v = Jt.right : !x && !y && (v = Jt.left), n(m), s.style.top = m === lt.bottom ? `${r.bottom + c}px` : `${r.top + c - P}px`, s.style.left = v === Jt.left ? `${r.left + u}px` : `${r.right + u - b}px`, s.style.minWidth = `${r.width}px`, s.style.height = `${P}px`, s.style.transformOrigin = m === lt.bottom ? "top" : "bottom", s.style.flexDirection = m === lt.bottom ? "column" : "column-reverse";
5563
+ !T && y ? v = Jt.right : !T && !y && (v = Jt.left), n(m), s.style.top = m === lt.bottom ? `${r.bottom + c}px` : `${r.top + c - P}px`, s.style.left = v === Jt.left ? `${r.left + u}px` : `${r.right + u - b}px`, s.style.minWidth = `${r.width}px`, s.style.height = `${P}px`, s.style.transformOrigin = m === lt.bottom ? "top" : "bottom", s.style.flexDirection = m === lt.bottom ? "column" : "column-reverse";
5567
5564
  }, dh = {
5568
5565
  variants: {
5569
5566
  initial: { position: "absolute", zIndex: 999, opacity: 0, transition: { type: "spring" } },
@@ -5581,27 +5578,29 @@ const hh = (t, e, n) => {
5581
5578
  }
5582
5579
  }, ph = ({
5583
5580
  children: t,
5584
- anchorRef: e
5585
- }, n) => {
5586
- const i = it(null), s = ya(), o = rt(() => {
5587
- hh(e, i, s.setVertical);
5588
- }, [s.setVertical]);
5581
+ isDebug: e = !1,
5582
+ anchorRef: n
5583
+ }, i) => {
5584
+ const s = J(null), o = ga(), r = st(() => {
5585
+ hh(n, s, o.setVertical);
5586
+ }, [o.setVertical]);
5589
5587
  return ot(() => {
5590
- if (e.current && i.current) {
5591
- const r = fh(e.current);
5592
- return r && (r.addEventListener("scroll", o), window.addEventListener("resize", o)), window.requestAnimationFrame(() => {
5593
- i.current && (i.current.style.display = "flex", o());
5588
+ if (n.current && s.current) {
5589
+ const a = fh(n.current);
5590
+ return a && (a.addEventListener("scroll", r), window.addEventListener("resize", r)), window.requestAnimationFrame(() => {
5591
+ s.current && (s.current.style.display = "flex", r());
5594
5592
  }), () => {
5595
- r && (r.removeEventListener("scroll", o), window.removeEventListener("resize", o));
5593
+ a && (a.removeEventListener("scroll", r), window.removeEventListener("resize", r));
5596
5594
  };
5597
5595
  }
5598
- }, [s.isVisible]), /* @__PURE__ */ F.jsx(F.Fragment, { children: /* @__PURE__ */ F.jsx(
5596
+ }, [o.isVisible]), /* @__PURE__ */ L.jsx(L.Fragment, { children: /* @__PURE__ */ L.jsx(
5599
5597
  Gf.div,
5600
5598
  {
5601
- ref: ko(n, i),
5599
+ ref: Mo(i, s),
5602
5600
  transition: { type: "spring", duration: 0.2 },
5603
5601
  style: { display: "none" },
5604
5602
  className: uh.motionAnimationWrapper,
5603
+ "data-debug": e ? "" : void 0,
5605
5604
  variants: dh.variants,
5606
5605
  initial: "initial",
5607
5606
  animate: "show",
@@ -5610,10 +5609,10 @@ const hh = (t, e, n) => {
5610
5609
  }
5611
5610
  ) });
5612
5611
  }, mh = ke(ph);
5613
- function Th(t, e, n) {
5612
+ function xh(t, e, n) {
5614
5613
  const i = ke(t);
5615
5614
  return ke((o, r) => {
5616
- const [a, l] = _t(!1), [c, u] = _t(!1), [f, d] = _t(lt.bottom), [p, m] = _t(), P = it(null), b = it(null), x = it(null), y = it(p), v = (n == null ? void 0 : n.isEnableClickOutSiteHidden) !== !1, w = (n == null ? void 0 : n.isEnableHideSave) !== !1;
5615
+ const [a, l] = _t(!1), [c, u] = _t(!1), [f, d] = _t(lt.bottom), [p, m] = _t(), P = J(null), b = J(null), T = J(null), y = J(p), v = (n == null ? void 0 : n.isEnableClickOutSiteHidden) !== !1, w = (n == null ? void 0 : n.isEnableHideSave) !== !1;
5617
5616
  ot(() => {
5618
5617
  m(o.value);
5619
5618
  }, [JSON.stringify(o.value)]), ot(() => {
@@ -5621,32 +5620,32 @@ function Th(t, e, n) {
5621
5620
  }, [p]), ot(() => {
5622
5621
  a && m(o.value);
5623
5622
  }, [a, o.value]);
5624
- const A = rt((j) => {
5625
- l(!1), b.current.focus(), u(!1);
5626
- }, []), L = rt((j) => {
5623
+ const A = st(() => {
5624
+ b.current.focus(), l(!1);
5625
+ }, []), F = st((N) => {
5626
+ l(!1), u(!1);
5627
+ }, []), q = st((N) => {
5627
5628
  l(!0);
5628
- }, []), q = rt((j) => {
5629
- !P.current && x.current && !x.current.contains(j.target) && u(!1);
5630
- }, []), E = rt((j) => {
5629
+ }, []), E = st((N) => {
5630
+ !P.current && T.current && !T.current.contains(N.target) && u(!1);
5631
+ }, []), U = st((N) => {
5631
5632
  var Y;
5632
5633
  const gt = (Y = P.current) == null ? void 0 : Y.firstChild;
5633
- gt && !gt.contains(j.target) && x.current && !x.current.contains(j.target) && (l(!1), u(!1));
5634
- }, []), U = rt(() => {
5634
+ gt && !gt.contains(N.target) && T.current && !T.current.contains(N.target) && (l(!1), u(!1));
5635
+ }, []), G = st(() => {
5635
5636
  if (typeof (o == null ? void 0 : o.onChange) > "u") {
5636
5637
  yt.warning("@acrool/react-picker", "createPicker component props onChange is undefined, is no call");
5637
5638
  return;
5638
5639
  }
5639
5640
  typeof y.current < "u" && w && JSON.stringify(p) !== JSON.stringify(y.current) && o.onChange(y.current);
5640
- }, [p, o.onChange, w]), G = rt((j) => {
5641
- [At.Escape].includes(j.key) && a && (j.stopPropagation(), l(!1));
5642
- }, [a]);
5643
- return /* @__PURE__ */ F.jsx(
5644
- _n.Provider,
5641
+ }, [p, o.onChange, w]);
5642
+ return /* @__PURE__ */ L.jsx(
5643
+ Bn.Provider,
5645
5644
  {
5646
5645
  value: {
5647
5646
  hide: () => requestAnimationFrame(() => l(!1)),
5648
5647
  show: () => l(!0),
5649
- toggle: () => l((j) => !j),
5648
+ toggle: () => l((N) => !N),
5650
5649
  isVisible: a,
5651
5650
  inputFocus: () => u(!0),
5652
5651
  inputBlur: () => u(!1),
@@ -5656,52 +5655,63 @@ function Th(t, e, n) {
5656
5655
  vertical: f,
5657
5656
  setVertical: d
5658
5657
  },
5659
- children: /* @__PURE__ */ F.jsxs("div", { className: yn.root, onKeyDown: G, children: [
5660
- /* @__PURE__ */ F.jsx("div", { ref: x, className: yn.mainEl, children: /* @__PURE__ */ F.jsx(
5658
+ children: /* @__PURE__ */ L.jsxs("div", { className: vn.root, children: [
5659
+ /* @__PURE__ */ L.jsx("div", { ref: T, className: vn.mainEl, children: /* @__PURE__ */ L.jsx(
5661
5660
  i,
5662
5661
  {
5663
5662
  ...o,
5664
- ref: ko(r, b)
5663
+ ref: Mo(r, b)
5665
5664
  }
5666
5665
  ) }),
5667
- /* @__PURE__ */ F.jsx(qf, { children: a && /* @__PURE__ */ F.jsx(
5668
- sr,
5666
+ /* @__PURE__ */ L.jsx(qf, { children: a && /* @__PURE__ */ L.jsx(
5667
+ ir,
5669
5668
  {
5670
5669
  id: `acrool-react-picker-${sh().toLowerCase()}`,
5671
- className: yn.pickerEl,
5672
- children: /* @__PURE__ */ F.jsx(
5670
+ className: vn.pickerEl,
5671
+ children: /* @__PURE__ */ L.jsx(
5673
5672
  mh,
5674
5673
  {
5675
5674
  ref: P,
5676
- anchorRef: x,
5677
- children: /* @__PURE__ */ F.jsx(e, { ...o })
5675
+ anchorRef: T,
5676
+ isDebug: n == null ? void 0 : n.isDebug,
5677
+ children: /* @__PURE__ */ L.jsx(e, { ...o })
5678
5678
  }
5679
5679
  )
5680
5680
  }
5681
5681
  ) }),
5682
- a && /* @__PURE__ */ F.jsx(rh, { onPickerHide: U }),
5683
- v && a && /* @__PURE__ */ F.jsx(tr, { onMousedown: E }),
5684
- c && /* @__PURE__ */ F.jsx(tr, { onMousedown: q }),
5685
- c && /* @__PURE__ */ F.jsx(
5686
- Oi,
5682
+ a && /* @__PURE__ */ L.jsx(rh, { onPickerHide: G }),
5683
+ v && a && /* @__PURE__ */ L.jsx(Qs, { onMousedown: U }),
5684
+ c && /* @__PURE__ */ L.jsx(Qs, { onMousedown: E }),
5685
+ c && /* @__PURE__ */ L.jsx(
5686
+ sn,
5687
5687
  {
5688
5688
  hotKey: [
5689
5689
  At.ArrowUp,
5690
5690
  At.ArrowDown,
5691
5691
  At.Space
5692
5692
  ],
5693
- onKeyDown: L
5693
+ onKeyDown: q,
5694
+ stopPropagation: !0,
5695
+ preventDefault: !0
5694
5696
  }
5695
5697
  ),
5696
- c && /* @__PURE__ */ F.jsx(
5697
- Oi,
5698
+ c && /* @__PURE__ */ L.jsx(
5699
+ sn,
5698
5700
  {
5699
5701
  hotKey: [
5700
5702
  At.Tab,
5701
5703
  At.ShiftAndTab
5702
5704
  ],
5703
- onKeyDown: A,
5704
- preventDefault: !1
5705
+ onKeyDown: F
5706
+ }
5707
+ ),
5708
+ c && /* @__PURE__ */ L.jsx(
5709
+ sn,
5710
+ {
5711
+ hotKey: [
5712
+ At.Escape
5713
+ ],
5714
+ onKeyDown: A
5705
5715
  }
5706
5716
  )
5707
5717
  ] })
@@ -5713,7 +5723,7 @@ export {
5713
5723
  Jt as EHorizontal,
5714
5724
  lt as EVertical,
5715
5725
  vh as PickerProviderConsumer,
5716
- _n as PickerProviderContext,
5717
- Th as createPicker,
5718
- ya as usePicker
5726
+ Bn as PickerProviderContext,
5727
+ xh as createPicker,
5728
+ ga as usePicker
5719
5729
  };