@devtron-labs/devtron-fe-common-lib 1.9.9 → 1.10.0-beta-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/dist/{@code-editor-CHoIAnAq.js → @code-editor-DRt5IoO7.js} +8236 -7496
  2. package/dist/{@common-rjsf-BALKWZzq.js → @common-rjsf-JkVClwt2.js} +20 -20
  3. package/dist/{@framer-motion--UCnj55s.js → @framer-motion-DMD7dX-G.js} +972 -893
  4. package/dist/{@react-dates-B3_Y9Kyv.js → @react-dates-DxmDHBUI.js} +1 -1
  5. package/dist/{@react-select-DMzK6fkF.js → @react-select-BR4eLpVa.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-Ck5oyLp9.js → @react-virtualized-sticky-tree-Ca-pl6uN.js} +1 -1
  7. package/dist/{@vendor-DXbFZ041.js → @vendor-DZHtXPTX.js} +14866 -14544
  8. package/dist/Common/API/CoreAPI.d.ts +17 -0
  9. package/dist/Common/API/constants.d.ts +70 -0
  10. package/dist/Common/API/index.d.ts +3 -0
  11. package/dist/Common/API/types.d.ts +23 -0
  12. package/dist/Common/API/utils.d.ts +12 -0
  13. package/dist/Common/ClipboardButton/ClipboardButton.d.ts +1 -1
  14. package/dist/Common/ClipboardButton/types.d.ts +11 -0
  15. package/dist/Common/CodeMirror/utils.d.ts +1 -0
  16. package/dist/Common/Constants.d.ts +6 -0
  17. package/dist/Common/DevtronCopyright.d.ts +2 -0
  18. package/dist/Common/Helper.d.ts +1 -0
  19. package/dist/Common/Types.d.ts +11 -0
  20. package/dist/Common/index.d.ts +2 -1
  21. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -0
  22. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +9 -0
  23. package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
  24. package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
  25. package/dist/Pages/ResourceBrowser/types.d.ts +41 -1
  26. package/dist/Shared/Analytics/analytics.d.ts +2 -0
  27. package/dist/Shared/Analytics/index.d.ts +2 -0
  28. package/dist/Shared/Analytics/types.d.ts +3 -0
  29. package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
  30. package/dist/Shared/Components/CICDHistory/service.d.ts +1 -1
  31. package/dist/Shared/Components/CountrySelect/CountrySelect.component.d.ts +3 -0
  32. package/dist/Shared/Components/CountrySelect/index.d.ts +1 -0
  33. package/dist/Shared/Components/CountrySelect/types.d.ts +7 -0
  34. package/dist/Shared/Components/CountrySelect/utils.d.ts +4 -0
  35. package/dist/Shared/Components/CustomInput/CustomInput.d.ts +1 -1
  36. package/dist/Shared/Components/CustomInput/types.d.ts +5 -1
  37. package/dist/Shared/Components/DevtronLicenseCard/DevtronLicenseCard.d.ts +3 -0
  38. package/dist/Shared/Components/DevtronLicenseCard/InstallationFingerprintInfo.d.ts +3 -0
  39. package/dist/Shared/Components/DevtronLicenseCard/index.d.ts +4 -0
  40. package/dist/Shared/Components/DevtronLicenseCard/types.d.ts +26 -0
  41. package/dist/Shared/Components/DevtronLicenseCard/utils.d.ts +6 -0
  42. package/dist/Shared/Components/FlagImage/FlagImage.component.d.ts +3 -0
  43. package/dist/Shared/Components/FlagImage/index.d.ts +1 -0
  44. package/dist/Shared/Components/FlagImage/types.d.ts +5 -0
  45. package/dist/Shared/Components/FormFieldWrapper/FormFieldWrapper.d.ts +1 -1
  46. package/dist/Shared/Components/FormFieldWrapper/index.d.ts +1 -0
  47. package/dist/Shared/Components/FormFieldWrapper/types.d.ts +4 -0
  48. package/dist/Shared/Components/Header/constants.d.ts +1 -0
  49. package/dist/Shared/Components/Header/types.d.ts +0 -1
  50. package/dist/Shared/Components/Header/utils.d.ts +3 -0
  51. package/dist/Shared/Components/Icon/Icon.d.ts +24 -0
  52. package/dist/Shared/Components/LoginBanner/LoginBanner.d.ts +2 -0
  53. package/dist/Shared/Components/LoginBanner/constants.d.ts +4 -0
  54. package/dist/Shared/Components/LoginBanner/index.d.ts +1 -0
  55. package/dist/Shared/Components/LoginBanner/types.d.ts +7 -0
  56. package/dist/Shared/Components/PhoneInput/PhoneInput.component.d.ts +3 -0
  57. package/dist/Shared/Components/PhoneInput/index.d.ts +1 -0
  58. package/dist/Shared/Components/PhoneInput/types.d.ts +11 -0
  59. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  60. package/dist/Shared/Components/Textarea/Textarea.component.d.ts +1 -1
  61. package/dist/Shared/Components/index.d.ts +6 -0
  62. package/dist/Shared/Helpers.d.ts +1 -0
  63. package/dist/Shared/Providers/ThemeProvider/utils.d.ts +1 -0
  64. package/dist/Shared/Providers/types.d.ts +8 -2
  65. package/dist/Shared/Services/types.d.ts +1 -0
  66. package/dist/Shared/constants.d.ts +4 -0
  67. package/dist/Shared/index.d.ts +1 -0
  68. package/dist/Shared/types.d.ts +64 -0
  69. package/dist/assets/@code-editor.css +1 -1
  70. package/dist/assets/ic-73strings.ed7da294.svg +5 -0
  71. package/dist/assets/ic-amazon-eks.13404569.svg +5 -0
  72. package/dist/assets/ic-apica.5a540546.svg +15 -0
  73. package/dist/assets/ic-app-group.068791a2.svg +19 -0
  74. package/dist/assets/ic-arrow-right.96f4142a.svg +19 -0
  75. package/dist/assets/ic-ather.39aed36c.svg +11 -0
  76. package/dist/assets/{ic-azure.49ec3dad.svg → ic-azure.a01ce3b4.svg} +16 -0
  77. package/dist/assets/ic-bharatpe.fc52fe6d.svg +15 -0
  78. package/dist/assets/ic-book-open.e839bbda.svg +3 -0
  79. package/dist/assets/ic-browser.f77a9d59.svg +19 -0
  80. package/dist/assets/ic-card-stack.0de57a3a.svg +19 -0
  81. package/dist/assets/{ic-arrow-right.06ad55f3.svg → ic-caret-left.3df25a7c.svg} +1 -1
  82. package/dist/assets/ic-chat-circle-dots.b5afd171.svg +3 -0
  83. package/dist/assets/{ic-copy.416d85f3.svg → ic-check.a0f5ee85.svg} +1 -1
  84. package/dist/assets/ic-close-large.fb6095e0.svg +3 -0
  85. package/dist/assets/ic-cluster.71ba9e26.svg +3 -0
  86. package/dist/assets/ic-code.3af36d5c.svg +19 -0
  87. package/dist/assets/ic-cookr.d1510986.svg +26 -0
  88. package/dist/assets/ic-copy.c4b628de.svg +19 -0
  89. package/dist/assets/{ic-crown.868ff2a9.svg → ic-crown.24ca27fc.svg} +16 -0
  90. package/dist/assets/ic-cube.be637e97.svg +19 -0
  91. package/dist/assets/ic-delhivery.7b49a398.svg +15 -0
  92. package/dist/assets/ic-devtron-header-logo.265be507.svg +4 -0
  93. package/dist/assets/ic-devtron.aca6cbaa.svg +3 -0
  94. package/dist/assets/{ic-dockerhub.19023887.svg → ic-dockerhub.03bd09a9.svg} +16 -0
  95. package/dist/assets/{ic-ecr.022619e3.svg → ic-ecr.302d6ccb.svg} +16 -0
  96. package/dist/assets/{ic-gear.51261b97.svg → ic-gear.7116a8bf.svg} +16 -0
  97. package/dist/assets/{ic-google-artifact-registry.536fe6c7.svg → ic-google-artifact-registry.2a167c8b.svg} +16 -0
  98. package/dist/assets/{ic-google-container-registry.20eeef45.svg → ic-google-container-registry.320c53ee.svg} +16 -0
  99. package/dist/assets/{ic-google.adce3079.svg → ic-google.475640a4.svg} +16 -0
  100. package/dist/assets/ic-grid-view.13207b99.svg +19 -0
  101. package/dist/assets/ic-helm.20583d75.svg +19 -0
  102. package/dist/assets/ic-k8s-job.c4f9ccc7.svg +19 -0
  103. package/dist/assets/{ic-ldap.1742ec39.svg → ic-ldap.0c5633d9.svg} +16 -0
  104. package/dist/assets/ic-livspace.fc75c45f.svg +13 -0
  105. package/dist/assets/ic-logout.f0a8b488.svg +19 -0
  106. package/dist/assets/{ic-medium-paintbucket.38ef52c1.svg → ic-medium-paintbucket.45544bb9.svg} +16 -0
  107. package/dist/assets/ic-microsoft.7c7bcaeb.svg +22 -0
  108. package/dist/assets/{ic-monitoring.6e5acb4a.svg → ic-monitoring.30910a3c.svg} +16 -0
  109. package/dist/assets/ic-new.1907a03f.svg +19 -0
  110. package/dist/assets/ic-oidc.5e06656d.svg +20 -0
  111. package/dist/assets/{ic-open-box.e672fe67.svg → ic-open-box.b15fcbbd.svg} +16 -0
  112. package/dist/assets/{ic-openshift.afcfadec.svg → ic-openshift.3886b54f.svg} +16 -0
  113. package/dist/assets/ic-pencil.a3e8275c.svg +3 -0
  114. package/dist/assets/{ic-quay.19eb5574.svg → ic-quay.d622b34f.svg} +16 -0
  115. package/dist/assets/ic-quote.68f093fe.svg +3 -0
  116. package/dist/assets/ic-shield-check.c26854d2.svg +19 -0
  117. package/dist/assets/ic-sliders-vertical.1c27a9e1.svg +3 -0
  118. package/dist/assets/ic-spinny.3884a5fb.svg +14 -0
  119. package/dist/assets/ic-stack.fbd3aea5.svg +19 -0
  120. package/dist/assets/ic-tata1mg.75b97a64.svg +13 -0
  121. package/dist/assets/ic-timer.ae5f10fa.svg +19 -0
  122. package/dist/assets/ic-travclan.29b9f4c3.svg +13 -0
  123. package/dist/assets/{ic-user-key.523f6939.svg → ic-user-key.5dc44524.svg} +16 -0
  124. package/dist/assets/licenseCardBG.9753c392.svg +259 -0
  125. package/dist/assets/login-screen-ui.a33a6496.webp +0 -0
  126. package/dist/index.d.ts +1 -3
  127. package/dist/index.js +803 -775
  128. package/package.json +2 -1
  129. package/dist/Common/Api.d.ts +0 -15
  130. package/dist/assets/ic-app-group.892e71ff.svg +0 -3
  131. package/dist/assets/ic-browser.b8afdf0d.svg +0 -3
  132. package/dist/assets/ic-card-stack.efd37c91.svg +0 -3
  133. package/dist/assets/ic-code.29c36e44.svg +0 -3
  134. package/dist/assets/ic-cube.643b8b57.svg +0 -3
  135. package/dist/assets/ic-grid-view.a1ff2479.svg +0 -3
  136. package/dist/assets/ic-helm.49cb43a3.svg +0 -3
  137. package/dist/assets/ic-k8s-job.d3310821.svg +0 -3
  138. package/dist/assets/ic-logout.e7e6bef0.svg +0 -3
  139. package/dist/assets/ic-microsoft.4767e309.svg +0 -6
  140. package/dist/assets/ic-new.2c179139.svg +0 -3
  141. package/dist/assets/ic-oidc.27839a0d.svg +0 -4
  142. package/dist/assets/ic-shield-check.5c033f06.svg +0 -3
  143. package/dist/assets/ic-stack.8b3b1bdd.svg +0 -3
@@ -1,7 +1,7 @@
1
- import { av as ct, aw as m, ax as I, ay as Yr, az as we, aA as T, aB as at, aC as zt, aD as ae, aE as Xe, aF as J, aG as kr, aH as Qn, aI as Xr, aJ as ti, aK as ei, aL as ri, aM as ni, aN as ii, aO as Wr, aP as ai, aQ as oi, aR as si, aS as ui, aT as li, aU as fi, aV as ci, aW as yt, aX as k, aY as pe, aZ as Zr, a_ as vi, a$ as di, b0 as W, b1 as $, b2 as pi, b3 as he, b4 as Dt, b5 as hi, b6 as mi, b7 as $r, b8 as Mt, b9 as O, ba as me, bb as gi, bc as oe, bd as yi } from "./@vendor-DXbFZ041.js";
2
- import * as K from "react";
3
- import Ee, { createContext as Pt, useContext as F, useLayoutEffect as bi, useEffect as G, useState as qr, useRef as q, useCallback as ge, useMemo as It, forwardRef as Pi, createElement as Vi, cloneElement as Ti, Children as Si, isValidElement as xi } from "react";
4
- var We = "production", Le = typeof process > "u" || process.env === void 0 ? We : process.env.NODE_ENV || We, Q = function(t) {
1
+ import { az as ct, aA as m, aB as M, aC as Xr, aD as Ee, aE as T, aF as at, aG as Kt, aH as oe, aI as We, aJ as J, aK as Wr, aL as ei, aM as Zr, aN as ri, aO as ni, aP as ii, aQ as ai, aR as oi, aS as $r, aT as si, aU as ui, aV as li, aW as fi, aX as ci, aY as vi, aZ as di, a_ as Pt, a$ as k, b0 as he, b1 as qr, b2 as pi, b3 as hi, b4 as W, b5 as Z, b6 as mi, b7 as me, b8 as Mt, b9 as gi, ba as yi, bb as Jr, bc as It, bd as O, be as ge, bf as bi, bg as se, bh as Pi, bi as Vi } from "./@vendor-DZHtXPTX.js";
2
+ import * as G from "react";
3
+ import Le, { createContext as Vt, useContext as F, useLayoutEffect as Ti, useEffect as H, useState as Re, useRef as q, useCallback as ye, useMemo as Ot, forwardRef as Si, createElement as xi, cloneElement as Ci, Children as Ai, isValidElement as wi } from "react";
4
+ var Ze = "production", De = typeof process > "u" || process.env === void 0 ? Ze : process.env.NODE_ENV || Ze, Q = function(t) {
5
5
  return {
6
6
  isEnabled: function(e) {
7
7
  return t.some(function(r) {
@@ -9,7 +9,7 @@ var We = "production", Le = typeof process > "u" || process.env === void 0 ? We
9
9
  });
10
10
  }
11
11
  };
12
- }, Ot = {
12
+ }, Ft = {
13
13
  measureLayout: Q(["layout", "layoutId", "drag"]),
14
14
  animation: Q([
15
15
  "animate",
@@ -38,54 +38,54 @@ var We = "production", Le = typeof process > "u" || process.env === void 0 ? We
38
38
  "onViewportLeave"
39
39
  ])
40
40
  };
41
- function Ci(t) {
41
+ function Ei(t) {
42
42
  for (var e in t)
43
- t[e] !== null && (e === "projectionNodeConstructor" ? Ot.projectionNodeConstructor = t[e] : Ot[e].Component = t[e]);
43
+ t[e] !== null && (e === "projectionNodeConstructor" ? Ft.projectionNodeConstructor = t[e] : Ft[e].Component = t[e]);
44
44
  }
45
- var Jr = Pt({ strict: !1 }), Qr = Object.keys(Ot), Ai = Qr.length;
46
- function wi(t, e, r) {
47
- var n = [], i = F(Jr);
45
+ var Qr = Vt({ strict: !1 }), tn = Object.keys(Ft), Li = tn.length;
46
+ function Ri(t, e, r) {
47
+ var n = [], i = F(Qr);
48
48
  if (!e)
49
49
  return null;
50
- Le !== "production" && r && i.strict && ct(!1, "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");
51
- for (var s = 0; s < Ai; s++) {
52
- var o = Qr[s], a = Ot[o], u = a.isEnabled, l = a.Component;
53
- u(t) && l && n.push(K.createElement(l, m({ key: o }, t, { visualElement: e })));
50
+ De !== "production" && r && i.strict && ct(!1, "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");
51
+ for (var s = 0; s < Li; s++) {
52
+ var o = tn[s], a = Ft[o], u = a.isEnabled, l = a.Component;
53
+ u(t) && l && n.push(G.createElement(l, m({ key: o }, t, { visualElement: e })));
54
54
  }
55
55
  return n;
56
56
  }
57
- var Re = Pt({
57
+ var te = Vt({
58
58
  transformPagePoint: function(t) {
59
59
  return t;
60
60
  },
61
61
  isStatic: !1,
62
62
  reducedMotion: "never"
63
- }), te = Pt({});
64
- function Ei() {
65
- return F(te).visualElement;
63
+ }), ee = Vt({});
64
+ function Di() {
65
+ return F(ee).visualElement;
66
66
  }
67
- var Bt = Pt(null), Vt = typeof document < "u", Wt = Vt ? bi : G, ye = { current: null }, tn = !1;
68
- function Li() {
69
- if (tn = !0, !!Vt)
67
+ var _t = Vt(null), Tt = typeof document < "u", jt = Tt ? Ti : H, be = { current: null }, en = !1;
68
+ function Mi() {
69
+ if (en = !0, !!Tt)
70
70
  if (window.matchMedia) {
71
71
  var t = window.matchMedia("(prefers-reduced-motion)"), e = function() {
72
- return ye.current = t.matches;
72
+ return be.current = t.matches;
73
73
  };
74
74
  t.addListener(e), e();
75
75
  } else
76
- ye.current = !1;
76
+ be.current = !1;
77
77
  }
78
- function Ri() {
79
- !tn && Li();
80
- var t = I(qr(ye.current), 1), e = t[0];
78
+ function Ii() {
79
+ !en && Mi();
80
+ var t = M(Re(be.current), 1), e = t[0];
81
81
  return e;
82
82
  }
83
- function Di() {
84
- var t = Ri(), e = F(Re).reducedMotion;
83
+ function Oi() {
84
+ var t = Ii(), e = F(te).reducedMotion;
85
85
  return e === "never" ? !1 : e === "always" ? !0 : t;
86
86
  }
87
- function Mi(t, e, r, n) {
88
- var i = F(Jr), s = Ei(), o = F(Bt), a = Di(), u = q(void 0);
87
+ function Fi(t, e, r, n) {
88
+ var i = F(Qr), s = Di(), o = F(_t), a = Oi(), u = q(void 0);
89
89
  n || (n = i.renderer), !u.current && n && (u.current = n(t, {
90
90
  visualState: e,
91
91
  parent: s,
@@ -95,25 +95,25 @@ function Mi(t, e, r, n) {
95
95
  shouldReduceMotion: a
96
96
  }));
97
97
  var l = u.current;
98
- return Wt(function() {
98
+ return jt(function() {
99
99
  l?.syncRender();
100
- }), G(function() {
100
+ }), H(function() {
101
101
  var f;
102
102
  (f = l?.animationState) === null || f === void 0 || f.animateChanges();
103
- }), Wt(function() {
103
+ }), jt(function() {
104
104
  return function() {
105
105
  return l?.notifyUnmount();
106
106
  };
107
107
  }, []), l;
108
108
  }
109
- function ht(t) {
109
+ function gt(t) {
110
110
  return typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
111
111
  }
112
- function Ii(t, e, r) {
113
- return ge(
112
+ function ji(t, e, r) {
113
+ return ye(
114
114
  function(n) {
115
115
  var i;
116
- n && ((i = t.mount) === null || i === void 0 || i.call(t, n)), e && (n ? e.mount(n) : e.unmount()), r && (typeof r == "function" ? r(n) : ht(r) && (r.current = n));
116
+ n && ((i = t.mount) === null || i === void 0 || i.call(t, n)), e && (n ? e.mount(n) : e.unmount()), r && (typeof r == "function" ? r(n) : gt(r) && (r.current = n));
117
117
  },
118
118
  /**
119
119
  * Only pass a new ref callback to React if we've received a visual element
@@ -123,41 +123,41 @@ function Ii(t, e, r) {
123
123
  [e]
124
124
  );
125
125
  }
126
- function en(t) {
126
+ function rn(t) {
127
127
  return Array.isArray(t);
128
128
  }
129
129
  function X(t) {
130
- return typeof t == "string" || en(t);
130
+ return typeof t == "string" || rn(t);
131
131
  }
132
- function Oi(t) {
132
+ function Bi(t) {
133
133
  var e = {};
134
134
  return t.forEachValue(function(r, n) {
135
135
  return e[n] = r.get();
136
136
  }), e;
137
137
  }
138
- function Fi(t) {
138
+ function Ui(t) {
139
139
  var e = {};
140
140
  return t.forEachValue(function(r, n) {
141
141
  return e[n] = r.getVelocity();
142
142
  }), e;
143
143
  }
144
- function rn(t, e, r, n, i) {
144
+ function nn(t, e, r, n, i) {
145
145
  var s;
146
146
  return n === void 0 && (n = {}), i === void 0 && (i = {}), typeof e == "function" && (e = e(r ?? t.custom, n, i)), typeof e == "string" && (e = (s = t.variants) === null || s === void 0 ? void 0 : s[e]), typeof e == "function" && (e = e(r ?? t.custom, n, i)), e;
147
147
  }
148
- function ee(t, e, r) {
148
+ function re(t, e, r) {
149
149
  var n = t.getProps();
150
- return rn(n, e, r ?? n.custom, Oi(t), Fi(t));
150
+ return nn(n, e, r ?? n.custom, Bi(t), Ui(t));
151
151
  }
152
- function re(t) {
152
+ function ne(t) {
153
153
  var e;
154
154
  return typeof ((e = t.animate) === null || e === void 0 ? void 0 : e.start) == "function" || X(t.initial) || X(t.animate) || X(t.whileHover) || X(t.whileDrag) || X(t.whileTap) || X(t.whileFocus) || X(t.exit);
155
155
  }
156
- function nn(t) {
157
- return !!(re(t) || t.variants);
156
+ function an(t) {
157
+ return !!(ne(t) || t.variants);
158
158
  }
159
- function ji(t, e) {
160
- if (re(t)) {
159
+ function _i(t, e) {
160
+ if (ne(t)) {
161
161
  var r = t.initial, n = t.animate;
162
162
  return {
163
163
  initial: r === !1 || X(r) ? r : void 0,
@@ -166,20 +166,20 @@ function ji(t, e) {
166
166
  }
167
167
  return t.inherit !== !1 ? e : {};
168
168
  }
169
- function Bi(t) {
170
- var e = ji(t, F(te)), r = e.initial, n = e.animate;
171
- return It(function() {
169
+ function Ni(t) {
170
+ var e = _i(t, F(ee)), r = e.initial, n = e.animate;
171
+ return Ot(function() {
172
172
  return { initial: r, animate: n };
173
- }, [Ze(r), Ze(n)]);
173
+ }, [$e(r), $e(n)]);
174
174
  }
175
- function Ze(t) {
175
+ function $e(t) {
176
176
  return Array.isArray(t) ? t.join(" ") : t;
177
177
  }
178
- function _t(t) {
178
+ function dt(t) {
179
179
  var e = q(null);
180
180
  return e.current === null && (e.current = t()), e.current;
181
181
  }
182
- var At = {
182
+ var wt = {
183
183
  /**
184
184
  * Global flag as to whether the tree has animated since the last time
185
185
  * we resized the window
@@ -190,20 +190,20 @@ var At = {
190
190
  * update will be given a `data-projection-id` attribute.
191
191
  */
192
192
  hasEverUpdated: !1
193
- }, _i = 1;
194
- function Ui() {
195
- return _t(function() {
196
- if (At.hasEverUpdated)
197
- return _i++;
193
+ }, Hi = 1;
194
+ function zi() {
195
+ return dt(function() {
196
+ if (wt.hasEverUpdated)
197
+ return Hi++;
198
198
  });
199
199
  }
200
- var De = Pt({}), an = Pt({});
201
- function Ni(t, e, r, n) {
202
- var i, s = e.layoutId, o = e.layout, a = e.drag, u = e.dragConstraints, l = e.layoutScroll, f = F(an);
200
+ var Me = Vt({}), on = Vt({});
201
+ function Ki(t, e, r, n) {
202
+ var i, s = e.layoutId, o = e.layout, a = e.drag, u = e.dragConstraints, l = e.layoutScroll, f = F(on);
203
203
  !n || !r || r?.projection || (r.projection = new n(t, r.getLatestValues(), (i = r.parent) === null || i === void 0 ? void 0 : i.projection), r.projection.setOptions({
204
204
  layoutId: s,
205
205
  layout: o,
206
- alwaysMeasureLayout: !!a || u && ht(u),
206
+ alwaysMeasureLayout: !!a || u && gt(u),
207
207
  visualElement: r,
208
208
  scheduleRender: function() {
209
209
  return r.scheduleRender();
@@ -220,10 +220,10 @@ function Ni(t, e, r, n) {
220
220
  layoutScroll: l
221
221
  }));
222
222
  }
223
- var Hi = (
223
+ var Gi = (
224
224
  /** @class */
225
225
  function(t) {
226
- Yr(e, t);
226
+ Xr(e, t);
227
227
  function e() {
228
228
  return t !== null && t.apply(this, arguments) || this;
229
229
  }
@@ -236,31 +236,31 @@ var Hi = (
236
236
  }, e.prototype.render = function() {
237
237
  return this.props.children;
238
238
  }, e;
239
- }(Ee.Component)
239
+ }(Le.Component)
240
240
  );
241
- function zi(t) {
241
+ function Yi(t) {
242
242
  var e = t.preloadedFeatures, r = t.createVisualElement, n = t.projectionNodeConstructor, i = t.useRender, s = t.useVisualState, o = t.Component;
243
- e && Ci(e);
243
+ e && Ei(e);
244
244
  function a(u, l) {
245
- var f = Ki(u);
245
+ var f = ki(u);
246
246
  u = m(m({}, u), { layoutId: f });
247
- var v = F(Re), c = null, d = Bi(u), p = v.isStatic ? void 0 : Ui(), h = s(u, v.isStatic);
248
- return !v.isStatic && Vt && (d.visualElement = Mi(o, h, m(m({}, v), u), r), Ni(p, u, d.visualElement, n || Ot.projectionNodeConstructor), c = wi(u, d.visualElement, e)), K.createElement(
249
- Hi,
247
+ var v = F(te), c = null, d = Ni(u), p = v.isStatic ? void 0 : zi(), h = s(u, v.isStatic);
248
+ return !v.isStatic && Tt && (d.visualElement = Fi(o, h, m(m({}, v), u), r), Ki(p, u, d.visualElement, n || Ft.projectionNodeConstructor), c = Ri(u, d.visualElement, e)), G.createElement(
249
+ Gi,
250
250
  { visualElement: d.visualElement, props: m(m({}, v), u) },
251
251
  c,
252
- K.createElement(te.Provider, { value: d }, i(o, u, p, Ii(h, d.visualElement, l), h, v.isStatic, d.visualElement))
252
+ G.createElement(ee.Provider, { value: d }, i(o, u, p, ji(h, d.visualElement, l), h, v.isStatic, d.visualElement))
253
253
  );
254
254
  }
255
- return Pi(a);
255
+ return Si(a);
256
256
  }
257
- function Ki(t) {
258
- var e, r = t.layoutId, n = (e = F(De)) === null || e === void 0 ? void 0 : e.id;
257
+ function ki(t) {
258
+ var e, r = t.layoutId, n = (e = F(Me)) === null || e === void 0 ? void 0 : e.id;
259
259
  return n && r !== void 0 ? n + "-" + r : r;
260
260
  }
261
- function Gi(t) {
261
+ function Xi(t) {
262
262
  function e(n, i) {
263
- return i === void 0 && (i = {}), zi(t(n, i));
263
+ return i === void 0 && (i = {}), Yi(t(n, i));
264
264
  }
265
265
  if (typeof Proxy > "u")
266
266
  return e;
@@ -276,7 +276,7 @@ function Gi(t) {
276
276
  }
277
277
  });
278
278
  }
279
- var Yi = [
279
+ var Wi = [
280
280
  "animate",
281
281
  "circle",
282
282
  "defs",
@@ -303,7 +303,7 @@ var Yi = [
303
303
  "use",
304
304
  "view"
305
305
  ];
306
- function Me(t) {
306
+ function Ie(t) {
307
307
  return (
308
308
  /**
309
309
  * If it's not a string, it's a custom React component. Currently we only support
@@ -316,7 +316,7 @@ function Me(t) {
316
316
  /**
317
317
  * If it's in our list of lowercase SVG tags, it's an SVG component
318
318
  */
319
- !!(Yi.indexOf(t) > -1 || /**
319
+ !!(Wi.indexOf(t) > -1 || /**
320
320
  * If it contains a capital letter, it's an SVG component
321
321
  */
322
322
  /[A-Z]/.test(t))
@@ -324,57 +324,57 @@ function Me(t) {
324
324
  );
325
325
  }
326
326
  var Zt = {};
327
- function ki(t) {
327
+ function Zi(t) {
328
328
  Object.assign(Zt, t);
329
329
  }
330
- var be = ["", "X", "Y", "Z"], Xi = ["translate", "scale", "rotate", "skew"], Ft = ["transformPerspective", "x", "y", "z"];
331
- Xi.forEach(function(t) {
332
- return be.forEach(function(e) {
333
- return Ft.push(t + e);
330
+ var Pe = ["", "X", "Y", "Z"], $i = ["translate", "scale", "rotate", "skew"], Bt = ["transformPerspective", "x", "y", "z"];
331
+ $i.forEach(function(t) {
332
+ return Pe.forEach(function(e) {
333
+ return Bt.push(t + e);
334
334
  });
335
335
  });
336
- function Wi(t, e) {
337
- return Ft.indexOf(t) - Ft.indexOf(e);
336
+ function qi(t, e) {
337
+ return Bt.indexOf(t) - Bt.indexOf(e);
338
338
  }
339
- var Zi = new Set(Ft);
340
- function Ut(t) {
341
- return Zi.has(t);
339
+ var Ji = new Set(Bt);
340
+ function Nt(t) {
341
+ return Ji.has(t);
342
342
  }
343
- var $i = /* @__PURE__ */ new Set(["originX", "originY", "originZ"]);
344
- function on(t) {
345
- return $i.has(t);
343
+ var Qi = /* @__PURE__ */ new Set(["originX", "originY", "originZ"]);
344
+ function sn(t) {
345
+ return Qi.has(t);
346
346
  }
347
- function sn(t, e) {
347
+ function un(t, e) {
348
348
  var r = e.layout, n = e.layoutId;
349
- return Ut(t) || on(t) || (r || n !== void 0) && (!!Zt[t] || t === "opacity");
349
+ return Nt(t) || sn(t) || (r || n !== void 0) && (!!Zt[t] || t === "opacity");
350
350
  }
351
351
  var tt = function(t) {
352
352
  return !!(t !== null && typeof t == "object" && t.getVelocity);
353
- }, qi = {
353
+ }, ta = {
354
354
  x: "translateX",
355
355
  y: "translateY",
356
356
  z: "translateZ",
357
357
  transformPerspective: "perspective"
358
358
  };
359
- function Ji(t, e, r, n) {
359
+ function ea(t, e, r, n) {
360
360
  var i = t.transform, s = t.transformKeys, o = e.enableHardwareAcceleration, a = o === void 0 ? !0 : o, u = e.allowTransformNone, l = u === void 0 ? !0 : u, f = "";
361
- s.sort(Wi);
361
+ s.sort(qi);
362
362
  for (var v = !1, c = s.length, d = 0; d < c; d++) {
363
363
  var p = s[d];
364
- f += "".concat(qi[p] || p, "(").concat(i[p], ") "), p === "z" && (v = !0);
364
+ f += "".concat(ta[p] || p, "(").concat(i[p], ") "), p === "z" && (v = !0);
365
365
  }
366
366
  return !v && a ? f += "translateZ(0)" : f = f.trim(), n ? f = n(i, r ? "" : f) : l && r && (f = "none"), f;
367
367
  }
368
- function Qi(t) {
368
+ function ra(t) {
369
369
  var e = t.originX, r = e === void 0 ? "50%" : e, n = t.originY, i = n === void 0 ? "50%" : n, s = t.originZ, o = s === void 0 ? 0 : s;
370
370
  return "".concat(r, " ").concat(i, " ").concat(o);
371
371
  }
372
- function un(t) {
372
+ function ln(t) {
373
373
  return t.startsWith("--");
374
374
  }
375
- var ta = function(t, e) {
375
+ var na = function(t, e) {
376
376
  return e && typeof t == "number" ? e.transform(t) : t;
377
- }, $e = m(m({}, we), { transform: Math.round }), ln = {
377
+ }, qe = m(m({}, Ee), { transform: Math.round }), fn = {
378
378
  // Border props
379
379
  borderWidth: T,
380
380
  borderTopWidth: T,
@@ -413,10 +413,10 @@ var ta = function(t, e) {
413
413
  rotateX: at,
414
414
  rotateY: at,
415
415
  rotateZ: at,
416
- scale: zt,
417
- scaleX: zt,
418
- scaleY: zt,
419
- scaleZ: zt,
416
+ scale: Kt,
417
+ scaleX: Kt,
418
+ scaleY: Kt,
419
+ scaleZ: Kt,
420
420
  skew: at,
421
421
  skewX: at,
422
422
  skewY: at,
@@ -429,37 +429,37 @@ var ta = function(t, e) {
429
429
  z: T,
430
430
  perspective: T,
431
431
  transformPerspective: T,
432
- opacity: ae,
433
- originX: Xe,
434
- originY: Xe,
432
+ opacity: oe,
433
+ originX: We,
434
+ originY: We,
435
435
  originZ: T,
436
436
  // Misc
437
- zIndex: $e,
437
+ zIndex: qe,
438
438
  // SVG
439
- fillOpacity: ae,
440
- strokeOpacity: ae,
441
- numOctaves: $e
439
+ fillOpacity: oe,
440
+ strokeOpacity: oe,
441
+ numOctaves: qe
442
442
  };
443
- function Ie(t, e, r, n) {
443
+ function Oe(t, e, r, n) {
444
444
  var i, s = t.style, o = t.vars, a = t.transform, u = t.transformKeys, l = t.transformOrigin;
445
445
  u.length = 0;
446
446
  var f = !1, v = !1, c = !0;
447
447
  for (var d in e) {
448
448
  var p = e[d];
449
- if (un(d)) {
449
+ if (ln(d)) {
450
450
  o[d] = p;
451
451
  continue;
452
452
  }
453
- var h = ln[d], g = ta(p, h);
454
- if (Ut(d)) {
453
+ var h = fn[d], g = na(p, h);
454
+ if (Nt(d)) {
455
455
  if (f = !0, a[d] = g, u.push(d), !c)
456
456
  continue;
457
457
  p !== ((i = h.default) !== null && i !== void 0 ? i : 0) && (c = !1);
458
- } else on(d) ? (l[d] = g, v = !0) : s[d] = g;
458
+ } else sn(d) ? (l[d] = g, v = !0) : s[d] = g;
459
459
  }
460
- f ? s.transform = Ji(t, r, c, n) : n ? s.transform = n({}, "") : !e.transform && s.transform && (s.transform = "none"), v && (s.transformOrigin = Qi(l));
460
+ f ? s.transform = ea(t, r, c, n) : n ? s.transform = n({}, "") : !e.transform && s.transform && (s.transform = "none"), v && (s.transformOrigin = ra(l));
461
461
  }
462
- var Oe = function() {
462
+ var Fe = function() {
463
463
  return {
464
464
  style: {},
465
465
  transform: {},
@@ -468,28 +468,28 @@ var Oe = function() {
468
468
  vars: {}
469
469
  };
470
470
  };
471
- function fn(t, e, r) {
471
+ function cn(t, e, r) {
472
472
  for (var n in e)
473
- !tt(e[n]) && !sn(n, r) && (t[n] = e[n]);
473
+ !tt(e[n]) && !un(n, r) && (t[n] = e[n]);
474
474
  }
475
- function ea(t, e, r) {
475
+ function ia(t, e, r) {
476
476
  var n = t.transformTemplate;
477
- return It(function() {
478
- var i = Oe();
479
- Ie(i, e, { enableHardwareAcceleration: !r }, n);
477
+ return Ot(function() {
478
+ var i = Fe();
479
+ Oe(i, e, { enableHardwareAcceleration: !r }, n);
480
480
  var s = i.vars, o = i.style;
481
481
  return m(m({}, s), o);
482
482
  }, [e]);
483
483
  }
484
- function ra(t, e, r) {
484
+ function aa(t, e, r) {
485
485
  var n = t.style || {}, i = {};
486
- return fn(i, n, t), Object.assign(i, ea(t, e, r)), t.transformValues && (i = t.transformValues(i)), i;
486
+ return cn(i, n, t), Object.assign(i, ia(t, e, r)), t.transformValues && (i = t.transformValues(i)), i;
487
487
  }
488
- function na(t, e, r) {
489
- var n = {}, i = ra(t, e, r);
488
+ function oa(t, e, r) {
489
+ var n = {}, i = aa(t, e, r);
490
490
  return t.drag && t.dragListener !== !1 && (n.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.touchAction = t.drag === !0 ? "none" : "pan-".concat(t.drag === "x" ? "y" : "x")), n.style = i, n;
491
491
  }
492
- var ia = /* @__PURE__ */ new Set([
492
+ var sa = /* @__PURE__ */ new Set([
493
493
  "initial",
494
494
  "animate",
495
495
  "exit",
@@ -548,83 +548,83 @@ var ia = /* @__PURE__ */ new Set([
548
548
  "layoutScroll"
549
549
  ]);
550
550
  function $t(t) {
551
- return ia.has(t);
551
+ return sa.has(t);
552
552
  }
553
- var cn = function(t) {
553
+ var vn = function(t) {
554
554
  return !$t(t);
555
555
  };
556
- function aa(t) {
557
- t && (cn = function(e) {
556
+ function ua(t) {
557
+ t && (vn = function(e) {
558
558
  return e.startsWith("on") ? !$t(e) : t(e);
559
559
  });
560
560
  }
561
561
  try {
562
- aa(require("@emotion/is-prop-valid").default);
562
+ ua(require("@emotion/is-prop-valid").default);
563
563
  } catch {
564
564
  }
565
- function oa(t, e, r) {
565
+ function la(t, e, r) {
566
566
  var n = {};
567
567
  for (var i in t)
568
- (cn(i) || r === !0 && $t(i) || !e && !$t(i) || // If trying to use native HTML drag events, forward drag listeners
568
+ (vn(i) || r === !0 && $t(i) || !e && !$t(i) || // If trying to use native HTML drag events, forward drag listeners
569
569
  t.draggable && i.startsWith("onDrag")) && (n[i] = t[i]);
570
570
  return n;
571
571
  }
572
- function qe(t, e, r) {
572
+ function Je(t, e, r) {
573
573
  return typeof t == "string" ? t : T.transform(e + r * t);
574
574
  }
575
- function sa(t, e, r) {
576
- var n = qe(e, t.x, t.width), i = qe(r, t.y, t.height);
575
+ function fa(t, e, r) {
576
+ var n = Je(e, t.x, t.width), i = Je(r, t.y, t.height);
577
577
  return "".concat(n, " ").concat(i);
578
578
  }
579
- var ua = {
579
+ var ca = {
580
580
  offset: "strokeDashoffset",
581
581
  array: "strokeDasharray"
582
582
  };
583
- function la(t, e, r, n, i) {
583
+ function va(t, e, r, n, i) {
584
584
  r === void 0 && (r = 1), n === void 0 && (n = 0), t.pathLength = 1;
585
- var s = ua;
585
+ var s = ca;
586
586
  t[s.offset] = T.transform(-n);
587
587
  var o = T.transform(e), a = T.transform(r);
588
588
  t[s.array] = "".concat(o, " ").concat(a);
589
589
  }
590
- function Fe(t, e, r, n) {
590
+ function je(t, e, r, n) {
591
591
  var i = e.attrX, s = e.attrY, o = e.originX, a = e.originY, u = e.pathLength, l = e.pathSpacing, f = l === void 0 ? 1 : l, v = e.pathOffset, c = v === void 0 ? 0 : v, d = J(e, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
592
- Ie(t, d, r, n), t.attrs = t.style, t.style = {};
592
+ Oe(t, d, r, n), t.attrs = t.style, t.style = {};
593
593
  var p = t.attrs, h = t.style, g = t.dimensions;
594
- p.transform && (g && (h.transform = p.transform), delete p.transform), g && (o !== void 0 || a !== void 0 || h.transform) && (h.transformOrigin = sa(g, o !== void 0 ? o : 0.5, a !== void 0 ? a : 0.5)), i !== void 0 && (p.x = i), s !== void 0 && (p.y = s), u !== void 0 && la(p, u, f, c);
594
+ p.transform && (g && (h.transform = p.transform), delete p.transform), g && (o !== void 0 || a !== void 0 || h.transform) && (h.transformOrigin = fa(g, o !== void 0 ? o : 0.5, a !== void 0 ? a : 0.5)), i !== void 0 && (p.x = i), s !== void 0 && (p.y = s), u !== void 0 && va(p, u, f, c);
595
595
  }
596
- var vn = function() {
597
- return m(m({}, Oe()), { attrs: {} });
596
+ var dn = function() {
597
+ return m(m({}, Fe()), { attrs: {} });
598
598
  };
599
- function fa(t, e) {
600
- var r = It(function() {
601
- var i = vn();
602
- return Fe(i, e, { enableHardwareAcceleration: !1 }, t.transformTemplate), m(m({}, i.attrs), { style: m({}, i.style) });
599
+ function da(t, e) {
600
+ var r = Ot(function() {
601
+ var i = dn();
602
+ return je(i, e, { enableHardwareAcceleration: !1 }, t.transformTemplate), m(m({}, i.attrs), { style: m({}, i.style) });
603
603
  }, [e]);
604
604
  if (t.style) {
605
605
  var n = {};
606
- fn(n, t.style, t), r.style = m(m({}, n), r.style);
606
+ cn(n, t.style, t), r.style = m(m({}, n), r.style);
607
607
  }
608
608
  return r;
609
609
  }
610
- function ca(t) {
610
+ function pa(t) {
611
611
  t === void 0 && (t = !1);
612
612
  var e = function(r, n, i, s, o, a) {
613
- var u = o.latestValues, l = Me(r) ? fa : na, f = l(n, u, a), v = oa(n, typeof r == "string", t), c = m(m(m({}, v), f), { ref: s });
614
- return i && (c["data-projection-id"] = i), Vi(r, c);
613
+ var u = o.latestValues, l = Ie(r) ? da : oa, f = l(n, u, a), v = la(n, typeof r == "string", t), c = m(m(m({}, v), f), { ref: s });
614
+ return i && (c["data-projection-id"] = i), xi(r, c);
615
615
  };
616
616
  return e;
617
617
  }
618
- var va = /([a-z])([A-Z])/g, da = "$1-$2", dn = function(t) {
619
- return t.replace(va, da).toLowerCase();
618
+ var ha = /([a-z])([A-Z])/g, ma = "$1-$2", pn = function(t) {
619
+ return t.replace(ha, ma).toLowerCase();
620
620
  };
621
- function pn(t, e, r, n) {
621
+ function hn(t, e, r, n) {
622
622
  var i = e.style, s = e.vars;
623
623
  Object.assign(t.style, i, n && n.getProjectionStyles(r));
624
624
  for (var o in s)
625
625
  t.style.setProperty(o, s[o]);
626
626
  }
627
- var hn = /* @__PURE__ */ new Set([
627
+ var mn = /* @__PURE__ */ new Set([
628
628
  "baseFrequency",
629
629
  "diffuseConstant",
630
630
  "kernelMatrix",
@@ -646,19 +646,19 @@ var hn = /* @__PURE__ */ new Set([
646
646
  "gradientTransform",
647
647
  "pathLength"
648
648
  ]);
649
- function mn(t, e, r, n) {
650
- pn(t, e, void 0, n);
649
+ function gn(t, e, r, n) {
650
+ hn(t, e, void 0, n);
651
651
  for (var i in e.attrs)
652
- t.setAttribute(hn.has(i) ? i : dn(i), e.attrs[i]);
652
+ t.setAttribute(mn.has(i) ? i : pn(i), e.attrs[i]);
653
653
  }
654
- function je(t) {
654
+ function Be(t) {
655
655
  var e = t.style, r = {};
656
656
  for (var n in e)
657
- (tt(e[n]) || sn(n, t)) && (r[n] = e[n]);
657
+ (tt(e[n]) || un(n, t)) && (r[n] = e[n]);
658
658
  return r;
659
659
  }
660
- function gn(t) {
661
- var e = je(t);
660
+ function yn(t) {
661
+ var e = Be(t);
662
662
  for (var r in t)
663
663
  if (tt(t[r])) {
664
664
  var n = r === "x" || r === "y" ? "attr" + r.toUpperCase() : r;
@@ -666,48 +666,48 @@ function gn(t) {
666
666
  }
667
667
  return e;
668
668
  }
669
- function Be(t) {
669
+ function Ue(t) {
670
670
  return typeof t == "object" && typeof t.start == "function";
671
671
  }
672
- var jt = function(t) {
672
+ var Ut = function(t) {
673
673
  return Array.isArray(t);
674
- }, pa = function(t) {
674
+ }, ga = function(t) {
675
675
  return !!(t && typeof t == "object" && t.mix && t.toValue);
676
- }, yn = function(t) {
677
- return jt(t) ? t[t.length - 1] || 0 : t;
676
+ }, bn = function(t) {
677
+ return Ut(t) ? t[t.length - 1] || 0 : t;
678
678
  };
679
- function Xt(t) {
679
+ function Wt(t) {
680
680
  var e = tt(t) ? t.get() : t;
681
- return pa(e) ? e.toValue() : e;
681
+ return ga(e) ? e.toValue() : e;
682
682
  }
683
- function Je(t, e, r, n) {
683
+ function Qe(t, e, r, n) {
684
684
  var i = t.scrapeMotionValuesFromProps, s = t.createRenderState, o = t.onMount, a = {
685
- latestValues: ha(e, r, n, i),
685
+ latestValues: ya(e, r, n, i),
686
686
  renderState: s()
687
687
  };
688
688
  return o && (a.mount = function(u) {
689
689
  return o(e, u, a);
690
690
  }), a;
691
691
  }
692
- var bn = function(t) {
692
+ var Pn = function(t) {
693
693
  return function(e, r) {
694
- var n = F(te), i = F(Bt);
695
- return r ? Je(t, e, n, i) : _t(function() {
696
- return Je(t, e, n, i);
694
+ var n = F(ee), i = F(_t);
695
+ return r ? Qe(t, e, n, i) : dt(function() {
696
+ return Qe(t, e, n, i);
697
697
  });
698
698
  };
699
699
  };
700
- function ha(t, e, r, n) {
700
+ function ya(t, e, r, n) {
701
701
  var i = {}, s = r?.initial === !1, o = n(t);
702
702
  for (var a in o)
703
- i[a] = Xt(o[a]);
704
- var u = t.initial, l = t.animate, f = re(t), v = nn(t);
703
+ i[a] = Wt(o[a]);
704
+ var u = t.initial, l = t.animate, f = ne(t), v = an(t);
705
705
  e && v && !f && t.inherit !== !1 && (u ?? (u = e.initial), l ?? (l = e.animate));
706
706
  var c = s || u === !1, d = c ? l : u;
707
- if (d && typeof d != "boolean" && !Be(d)) {
707
+ if (d && typeof d != "boolean" && !Ue(d)) {
708
708
  var p = Array.isArray(d) ? d : [d];
709
709
  p.forEach(function(h) {
710
- var g = rn(t, h);
710
+ var g = nn(t, h);
711
711
  if (g) {
712
712
  var b = g.transitionEnd;
713
713
  g.transition;
@@ -727,10 +727,10 @@ function ha(t, e, r, n) {
727
727
  }
728
728
  return i;
729
729
  }
730
- var ma = {
731
- useVisualState: bn({
732
- scrapeMotionValuesFromProps: gn,
733
- createRenderState: vn,
730
+ var ba = {
731
+ useVisualState: Pn({
732
+ scrapeMotionValuesFromProps: yn,
733
+ createRenderState: dn,
734
734
  onMount: function(t, e, r) {
735
735
  var n = r.renderState, i = r.latestValues;
736
736
  try {
@@ -743,36 +743,36 @@ var ma = {
743
743
  height: 0
744
744
  };
745
745
  }
746
- Fe(n, i, { enableHardwareAcceleration: !1 }, t.transformTemplate), mn(e, n);
746
+ je(n, i, { enableHardwareAcceleration: !1 }, t.transformTemplate), gn(e, n);
747
747
  }
748
748
  })
749
- }, ga = {
750
- useVisualState: bn({
751
- scrapeMotionValuesFromProps: je,
752
- createRenderState: Oe
749
+ }, Pa = {
750
+ useVisualState: Pn({
751
+ scrapeMotionValuesFromProps: Be,
752
+ createRenderState: Fe
753
753
  })
754
754
  };
755
- function ya(t, e, r, n, i) {
756
- var s = e.forwardMotionProps, o = s === void 0 ? !1 : s, a = Me(t) ? ma : ga;
757
- return m(m({}, a), { preloadedFeatures: r, useRender: ca(o), createVisualElement: n, projectionNodeConstructor: i, Component: t });
755
+ function Va(t, e, r, n, i) {
756
+ var s = e.forwardMotionProps, o = s === void 0 ? !1 : s, a = Ie(t) ? ba : Pa;
757
+ return m(m({}, a), { preloadedFeatures: r, useRender: pa(o), createVisualElement: n, projectionNodeConstructor: i, Component: t });
758
758
  }
759
759
  var L;
760
760
  (function(t) {
761
761
  t.Animate = "animate", t.Hover = "whileHover", t.Tap = "whileTap", t.Drag = "whileDrag", t.Focus = "whileFocus", t.InView = "whileInView", t.Exit = "exit";
762
762
  })(L || (L = {}));
763
- function ne(t, e, r, n) {
763
+ function ie(t, e, r, n) {
764
764
  return n === void 0 && (n = { passive: !0 }), t.addEventListener(e, r, n), function() {
765
765
  return t.removeEventListener(e, r);
766
766
  };
767
767
  }
768
- function Pe(t, e, r, n) {
769
- G(function() {
768
+ function Ve(t, e, r, n) {
769
+ H(function() {
770
770
  var i = t.current;
771
771
  if (r && i)
772
- return ne(i, e, r, n);
772
+ return ie(i, e, r, n);
773
773
  }, [t, e, r, n]);
774
774
  }
775
- function ba(t) {
775
+ function Ta(t) {
776
776
  var e = t.whileFocus, r = t.visualElement, n = function() {
777
777
  var s;
778
778
  (s = r.animationState) === null || s === void 0 || s.setActive(L.Focus, !0);
@@ -780,31 +780,31 @@ function ba(t) {
780
780
  var s;
781
781
  (s = r.animationState) === null || s === void 0 || s.setActive(L.Focus, !1);
782
782
  };
783
- Pe(r, "focus", e ? n : void 0), Pe(r, "blur", e ? i : void 0);
783
+ Ve(r, "focus", e ? n : void 0), Ve(r, "blur", e ? i : void 0);
784
784
  }
785
- function Pn(t) {
785
+ function Vn(t) {
786
786
  return typeof PointerEvent < "u" && t instanceof PointerEvent ? t.pointerType === "mouse" : t instanceof MouseEvent;
787
787
  }
788
- function Vn(t) {
788
+ function Tn(t) {
789
789
  var e = !!t.touches;
790
790
  return e;
791
791
  }
792
- function Pa(t) {
792
+ function Sa(t) {
793
793
  return function(e) {
794
794
  var r = e instanceof MouseEvent, n = !r || r && e.button === 0;
795
795
  n && t(e);
796
796
  };
797
797
  }
798
- var Va = { pageX: 0, pageY: 0 };
799
- function Ta(t, e) {
798
+ var xa = { pageX: 0, pageY: 0 };
799
+ function Ca(t, e) {
800
800
  e === void 0 && (e = "page");
801
- var r = t.touches[0] || t.changedTouches[0], n = r || Va;
801
+ var r = t.touches[0] || t.changedTouches[0], n = r || xa;
802
802
  return {
803
803
  x: n[e + "X"],
804
804
  y: n[e + "Y"]
805
805
  };
806
806
  }
807
- function Sa(t, e) {
807
+ function Aa(t, e) {
808
808
  return e === void 0 && (e = "page"), {
809
809
  x: t[e + "X"],
810
810
  y: t[e + "Y"]
@@ -812,22 +812,22 @@ function Sa(t, e) {
812
812
  }
813
813
  function _e(t, e) {
814
814
  return e === void 0 && (e = "page"), {
815
- point: Vn(t) ? Ta(t, e) : Sa(t, e)
815
+ point: Tn(t) ? Ca(t, e) : Aa(t, e)
816
816
  };
817
817
  }
818
- var Tn = function(t, e) {
818
+ var Sn = function(t, e) {
819
819
  e === void 0 && (e = !1);
820
820
  var r = function(n) {
821
821
  return t(n, _e(n));
822
822
  };
823
- return e ? Pa(r) : r;
824
- }, xa = function() {
825
- return Vt && window.onpointerdown === null;
826
- }, Ca = function() {
827
- return Vt && window.ontouchstart === null;
828
- }, Aa = function() {
829
- return Vt && window.onmousedown === null;
830
- }, wa = {
823
+ return e ? Sa(r) : r;
824
+ }, wa = function() {
825
+ return Tt && window.onpointerdown === null;
826
+ }, Ea = function() {
827
+ return Tt && window.ontouchstart === null;
828
+ }, La = function() {
829
+ return Tt && window.onmousedown === null;
830
+ }, Ra = {
831
831
  pointerdown: "mousedown",
832
832
  pointermove: "mousemove",
833
833
  pointerup: "mouseup",
@@ -836,22 +836,22 @@ var Tn = function(t, e) {
836
836
  pointerout: "mouseout",
837
837
  pointerenter: "mouseenter",
838
838
  pointerleave: "mouseleave"
839
- }, Ea = {
839
+ }, Da = {
840
840
  pointerdown: "touchstart",
841
841
  pointermove: "touchmove",
842
842
  pointerup: "touchend",
843
843
  pointercancel: "touchcancel"
844
844
  };
845
- function Sn(t) {
846
- return xa() ? t : Ca() ? Ea[t] : Aa() ? wa[t] : t;
845
+ function xn(t) {
846
+ return wa() ? t : Ea() ? Da[t] : La() ? Ra[t] : t;
847
847
  }
848
- function gt(t, e, r, n) {
849
- return ne(t, Sn(e), Tn(r, e === "pointerdown"), n);
848
+ function bt(t, e, r, n) {
849
+ return ie(t, xn(e), Sn(r, e === "pointerdown"), n);
850
850
  }
851
851
  function qt(t, e, r, n) {
852
- return Pe(t, Sn(e), r && Tn(r, e === "pointerdown"), n);
852
+ return Ve(t, xn(e), r && Sn(r, e === "pointerdown"), n);
853
853
  }
854
- function xn(t) {
854
+ function Cn(t) {
855
855
  var e = null;
856
856
  return function() {
857
857
  var r = function() {
@@ -860,46 +860,46 @@ function xn(t) {
860
860
  return e === null ? (e = t, r) : !1;
861
861
  };
862
862
  }
863
- var Qe = xn("dragHorizontal"), tr = xn("dragVertical");
864
- function Cn(t) {
863
+ var tr = Cn("dragHorizontal"), er = Cn("dragVertical");
864
+ function An(t) {
865
865
  var e = !1;
866
866
  if (t === "y")
867
- e = tr();
867
+ e = er();
868
868
  else if (t === "x")
869
- e = Qe();
869
+ e = tr();
870
870
  else {
871
- var r = Qe(), n = tr();
871
+ var r = tr(), n = er();
872
872
  r && n ? e = function() {
873
873
  r(), n();
874
874
  } : (r && r(), n && n());
875
875
  }
876
876
  return e;
877
877
  }
878
- function An() {
879
- var t = Cn(!0);
878
+ function wn() {
879
+ var t = An(!0);
880
880
  return t ? (t(), !1) : !0;
881
881
  }
882
- function er(t, e, r) {
882
+ function rr(t, e, r) {
883
883
  return function(n, i) {
884
884
  var s;
885
- !Pn(n) || An() || ((s = t.animationState) === null || s === void 0 || s.setActive(L.Hover, e), r?.(n, i));
885
+ !Vn(n) || wn() || ((s = t.animationState) === null || s === void 0 || s.setActive(L.Hover, e), r?.(n, i));
886
886
  };
887
887
  }
888
- function La(t) {
888
+ function Ma(t) {
889
889
  var e = t.onHoverStart, r = t.onHoverEnd, n = t.whileHover, i = t.visualElement;
890
- qt(i, "pointerenter", e || n ? er(i, !0, e) : void 0, { passive: !e }), qt(i, "pointerleave", r || n ? er(i, !1, r) : void 0, { passive: !r });
890
+ qt(i, "pointerenter", e || n ? rr(i, !0, e) : void 0, { passive: !e }), qt(i, "pointerleave", r || n ? rr(i, !1, r) : void 0, { passive: !r });
891
891
  }
892
- var wn = function(t, e) {
893
- return e ? t === e ? !0 : wn(t, e.parentElement) : !1;
892
+ var En = function(t, e) {
893
+ return e ? t === e ? !0 : En(t, e.parentElement) : !1;
894
894
  };
895
- function Ue(t) {
896
- return G(function() {
895
+ function Ne(t) {
896
+ return H(function() {
897
897
  return function() {
898
898
  return t();
899
899
  };
900
900
  }, []);
901
901
  }
902
- function Ra(t) {
902
+ function Ia(t) {
903
903
  var e = t.onTap, r = t.onTapStart, n = t.onTapCancel, i = t.whileTap, s = t.visualElement, o = e || r || n || i, a = q(!1), u = q(null), l = {
904
904
  passive: !(r || e || n || p)
905
905
  };
@@ -909,63 +909,63 @@ function Ra(t) {
909
909
  }
910
910
  function v() {
911
911
  var h;
912
- return f(), a.current = !1, (h = s.animationState) === null || h === void 0 || h.setActive(L.Tap, !1), !An();
912
+ return f(), a.current = !1, (h = s.animationState) === null || h === void 0 || h.setActive(L.Tap, !1), !wn();
913
913
  }
914
914
  function c(h, g) {
915
- v() && (wn(s.getInstance(), h.target) ? e?.(h, g) : n?.(h, g));
915
+ v() && (En(s.getInstance(), h.target) ? e?.(h, g) : n?.(h, g));
916
916
  }
917
917
  function d(h, g) {
918
918
  v() && n?.(h, g);
919
919
  }
920
920
  function p(h, g) {
921
921
  var b;
922
- f(), !a.current && (a.current = !0, u.current = kr(gt(window, "pointerup", c, l), gt(window, "pointercancel", d, l)), (b = s.animationState) === null || b === void 0 || b.setActive(L.Tap, !0), r?.(h, g));
922
+ f(), !a.current && (a.current = !0, u.current = Wr(bt(window, "pointerup", c, l), bt(window, "pointercancel", d, l)), (b = s.animationState) === null || b === void 0 || b.setActive(L.Tap, !0), r?.(h, g));
923
923
  }
924
- qt(s, "pointerdown", o ? p : void 0, l), Ue(f);
924
+ qt(s, "pointerdown", o ? p : void 0, l), Ne(f);
925
925
  }
926
- var rr = /* @__PURE__ */ new Set();
927
- function En(t, e, r) {
928
- t || rr.has(e) || (console.warn(e), rr.add(e));
926
+ var nr = /* @__PURE__ */ new Set();
927
+ function Ln(t, e, r) {
928
+ t || nr.has(e) || (console.warn(e), nr.add(e));
929
929
  }
930
- var Ve = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), Da = function(t) {
930
+ var Te = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Oa = function(t) {
931
931
  var e;
932
- (e = Ve.get(t.target)) === null || e === void 0 || e(t);
933
- }, Ma = function(t) {
934
- t.forEach(Da);
932
+ (e = Te.get(t.target)) === null || e === void 0 || e(t);
933
+ }, Fa = function(t) {
934
+ t.forEach(Oa);
935
935
  };
936
- function Ia(t) {
936
+ function ja(t) {
937
937
  var e = t.root, r = J(t, ["root"]), n = e || document;
938
- se.has(n) || se.set(n, {});
939
- var i = se.get(n), s = JSON.stringify(r);
940
- return i[s] || (i[s] = new IntersectionObserver(Ma, m({ root: e }, r))), i[s];
941
- }
942
- function Oa(t, e, r) {
943
- var n = Ia(e);
944
- return Ve.set(t, r), n.observe(t), function() {
945
- Ve.delete(t), n.unobserve(t);
938
+ ue.has(n) || ue.set(n, {});
939
+ var i = ue.get(n), s = JSON.stringify(r);
940
+ return i[s] || (i[s] = new IntersectionObserver(Fa, m({ root: e }, r))), i[s];
941
+ }
942
+ function Ba(t, e, r) {
943
+ var n = ja(e);
944
+ return Te.set(t, r), n.observe(t), function() {
945
+ Te.delete(t), n.unobserve(t);
946
946
  };
947
947
  }
948
- function Fa(t) {
948
+ function Ua(t) {
949
949
  var e = t.visualElement, r = t.whileInView, n = t.onViewportEnter, i = t.onViewportLeave, s = t.viewport, o = s === void 0 ? {} : s, a = q({
950
950
  hasEnteredView: !1,
951
951
  isInView: !1
952
952
  }), u = !!(r || n || i);
953
953
  o.once && a.current.hasEnteredView && (u = !1);
954
- var l = typeof IntersectionObserver > "u" ? _a : Ba;
954
+ var l = typeof IntersectionObserver > "u" ? Ha : Na;
955
955
  l(u, a.current, e, o);
956
956
  }
957
- var ja = {
957
+ var _a = {
958
958
  some: 0,
959
959
  all: 1
960
960
  };
961
- function Ba(t, e, r, n) {
961
+ function Na(t, e, r, n) {
962
962
  var i = n.root, s = n.margin, o = n.amount, a = o === void 0 ? "some" : o, u = n.once;
963
- G(function() {
963
+ H(function() {
964
964
  if (t) {
965
965
  var l = {
966
966
  root: i?.current,
967
967
  rootMargin: s,
968
- threshold: typeof a == "number" ? a : ja[a]
968
+ threshold: typeof a == "number" ? a : _a[a]
969
969
  }, f = function(v) {
970
970
  var c, d = v.isIntersecting;
971
971
  if (e.isInView !== d && (e.isInView = d, !(u && !d && e.hasEnteredView))) {
@@ -974,14 +974,14 @@ function Ba(t, e, r, n) {
974
974
  h?.(v);
975
975
  }
976
976
  };
977
- return Oa(r.getInstance(), l, f);
977
+ return Ba(r.getInstance(), l, f);
978
978
  }
979
979
  }, [t, i, s, a]);
980
980
  }
981
- function _a(t, e, r, n) {
981
+ function Ha(t, e, r, n) {
982
982
  var i = n.fallback, s = i === void 0 ? !0 : i;
983
- G(function() {
984
- !t || !s || (Le !== "production" && En(!1, "IntersectionObserver not available on this device. whileInView animations will trigger on mount."), requestAnimationFrame(function() {
983
+ H(function() {
984
+ !t || !s || (De !== "production" && Ln(!1, "IntersectionObserver not available on this device. whileInView animations will trigger on mount."), requestAnimationFrame(function() {
985
985
  var o;
986
986
  e.hasEnteredView = !0;
987
987
  var a = r.getProps().onViewportEnter;
@@ -993,22 +993,22 @@ var ut = function(t) {
993
993
  return function(e) {
994
994
  return t(e), null;
995
995
  };
996
- }, Ua = {
997
- inView: ut(Fa),
998
- tap: ut(Ra),
999
- focus: ut(ba),
1000
- hover: ut(La)
1001
- }, Na = 0, Ha = function() {
1002
- return Na++;
1003
- }, Ln = function() {
1004
- return _t(Ha);
996
+ }, za = {
997
+ inView: ut(Ua),
998
+ tap: ut(Ia),
999
+ focus: ut(Ta),
1000
+ hover: ut(Ma)
1001
+ }, Ka = 0, Ga = function() {
1002
+ return Ka++;
1003
+ }, Rn = function() {
1004
+ return dt(Ga);
1005
1005
  };
1006
- function Rn() {
1007
- var t = F(Bt);
1006
+ function Dn() {
1007
+ var t = F(_t);
1008
1008
  if (t === null)
1009
1009
  return [!0, null];
1010
- var e = t.isPresent, r = t.onExitComplete, n = t.register, i = Ln();
1011
- G(function() {
1010
+ var e = t.isPresent, r = t.onExitComplete, n = t.register, i = Rn();
1011
+ H(function() {
1012
1012
  return n(i);
1013
1013
  }, []);
1014
1014
  var s = function() {
@@ -1016,7 +1016,7 @@ function Rn() {
1016
1016
  };
1017
1017
  return !e && r ? [!1, s] : [!0];
1018
1018
  }
1019
- function Dn(t, e) {
1019
+ function Mn(t, e) {
1020
1020
  if (!Array.isArray(e))
1021
1021
  return !1;
1022
1022
  var r = e.length;
@@ -1029,34 +1029,34 @@ function Dn(t, e) {
1029
1029
  }
1030
1030
  var Jt = function(t) {
1031
1031
  return t * 1e3;
1032
- }, nr = {
1033
- linear: Xr,
1034
- easeIn: ti,
1035
- easeInOut: ei,
1036
- easeOut: ri,
1037
- circIn: ni,
1038
- circInOut: ii,
1039
- circOut: Wr,
1040
- backIn: ai,
1041
- backInOut: oi,
1042
- backOut: si,
1043
- anticipate: ui,
1044
- bounceIn: li,
1045
- bounceInOut: fi,
1046
- bounceOut: ci
1047
- }, ir = function(t) {
1032
+ }, ir = {
1033
+ linear: Zr,
1034
+ easeIn: ri,
1035
+ easeInOut: ni,
1036
+ easeOut: ii,
1037
+ circIn: ai,
1038
+ circInOut: oi,
1039
+ circOut: $r,
1040
+ backIn: si,
1041
+ backInOut: ui,
1042
+ backOut: li,
1043
+ anticipate: fi,
1044
+ bounceIn: ci,
1045
+ bounceInOut: vi,
1046
+ bounceOut: di
1047
+ }, ar = function(t) {
1048
1048
  if (Array.isArray(t)) {
1049
1049
  ct(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
1050
- var e = I(t, 4), r = e[0], n = e[1], i = e[2], s = e[3];
1051
- return Qn(r, n, i, s);
1050
+ var e = M(t, 4), r = e[0], n = e[1], i = e[2], s = e[3];
1051
+ return ei(r, n, i, s);
1052
1052
  } else if (typeof t == "string")
1053
- return ct(nr[t] !== void 0, "Invalid easing type '".concat(t, "'")), nr[t];
1053
+ return ct(ir[t] !== void 0, "Invalid easing type '".concat(t, "'")), ir[t];
1054
1054
  return t;
1055
- }, za = function(t) {
1055
+ }, Ya = function(t) {
1056
1056
  return Array.isArray(t) && typeof t[0] != "number";
1057
- }, ar = function(t, e) {
1057
+ }, or = function(t, e) {
1058
1058
  return t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
1059
- yt.test(e) && // And it contains numbers and/or colors
1059
+ Pt.test(e) && // And it contains numbers and/or colors
1060
1060
  !e.startsWith("url("));
1061
1061
  }, lt = function() {
1062
1062
  return {
@@ -1065,26 +1065,26 @@ var Jt = function(t) {
1065
1065
  damping: 25,
1066
1066
  restSpeed: 10
1067
1067
  };
1068
- }, Kt = function(t) {
1068
+ }, Gt = function(t) {
1069
1069
  return {
1070
1070
  type: "spring",
1071
1071
  stiffness: 550,
1072
1072
  damping: t === 0 ? 2 * Math.sqrt(550) : 30,
1073
1073
  restSpeed: 10
1074
1074
  };
1075
- }, ue = function() {
1075
+ }, le = function() {
1076
1076
  return {
1077
1077
  type: "keyframes",
1078
1078
  ease: "linear",
1079
1079
  duration: 0.3
1080
1080
  };
1081
- }, Ka = function(t) {
1081
+ }, ka = function(t) {
1082
1082
  return {
1083
1083
  type: "keyframes",
1084
1084
  duration: 0.8,
1085
1085
  values: t
1086
1086
  };
1087
- }, or = {
1087
+ }, sr = {
1088
1088
  x: lt,
1089
1089
  y: lt,
1090
1090
  z: lt,
@@ -1092,17 +1092,17 @@ var Jt = function(t) {
1092
1092
  rotateX: lt,
1093
1093
  rotateY: lt,
1094
1094
  rotateZ: lt,
1095
- scaleX: Kt,
1096
- scaleY: Kt,
1097
- scale: Kt,
1098
- opacity: ue,
1099
- backgroundColor: ue,
1100
- color: ue,
1101
- default: Kt
1102
- }, Ga = function(t, e) {
1095
+ scaleX: Gt,
1096
+ scaleY: Gt,
1097
+ scale: Gt,
1098
+ opacity: le,
1099
+ backgroundColor: le,
1100
+ color: le,
1101
+ default: Gt
1102
+ }, Xa = function(t, e) {
1103
1103
  var r;
1104
- return jt(e) ? r = Ka : r = or[t] || or.default, m({ to: e }, r(e));
1105
- }, Ya = m(m({}, ln), {
1104
+ return Ut(e) ? r = ka : r = sr[t] || sr.default, m({ to: e }, r(e));
1105
+ }, Wa = m(m({}, fn), {
1106
1106
  // Color props
1107
1107
  color: k,
1108
1108
  backgroundColor: k,
@@ -1115,41 +1115,41 @@ var Jt = function(t) {
1115
1115
  borderRightColor: k,
1116
1116
  borderBottomColor: k,
1117
1117
  borderLeftColor: k,
1118
- filter: pe,
1119
- WebkitFilter: pe
1120
- }), Ne = function(t) {
1121
- return Ya[t];
1118
+ filter: he,
1119
+ WebkitFilter: he
1120
+ }), He = function(t) {
1121
+ return Wa[t];
1122
1122
  };
1123
- function He(t, e) {
1124
- var r, n = Ne(t);
1125
- return n !== pe && (n = yt), (r = n.getAnimatableNone) === null || r === void 0 ? void 0 : r.call(n, e);
1123
+ function ze(t, e) {
1124
+ var r, n = He(t);
1125
+ return n !== he && (n = Pt), (r = n.getAnimatableNone) === null || r === void 0 ? void 0 : r.call(n, e);
1126
1126
  }
1127
- function ka(t) {
1127
+ function Za(t) {
1128
1128
  t.when, t.delay, t.delayChildren, t.staggerChildren, t.staggerDirection, t.repeat, t.repeatType, t.repeatDelay, t.from;
1129
1129
  var e = J(t, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection", "repeat", "repeatType", "repeatDelay", "from"]);
1130
1130
  return !!Object.keys(e).length;
1131
1131
  }
1132
- var sr = !1;
1133
- function Xa(t) {
1132
+ var ur = !1;
1133
+ function $a(t) {
1134
1134
  var e = t.ease, r = t.times, n = t.yoyo, i = t.flip, s = t.loop, o = J(t, ["ease", "times", "yoyo", "flip", "loop"]), a = m({}, o);
1135
- return r && (a.offset = r), o.duration && (a.duration = Jt(o.duration)), o.repeatDelay && (a.repeatDelay = Jt(o.repeatDelay)), e && (a.ease = za(e) ? e.map(ir) : ir(e)), o.type === "tween" && (a.type = "keyframes"), (n || s || i) && (Zr(!sr, "yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."), sr = !0, n ? a.repeatType = "reverse" : s ? a.repeatType = "loop" : i && (a.repeatType = "mirror"), a.repeat = s || n || i || o.repeat), o.type !== "spring" && (a.type = "keyframes"), a;
1135
+ return r && (a.offset = r), o.duration && (a.duration = Jt(o.duration)), o.repeatDelay && (a.repeatDelay = Jt(o.repeatDelay)), e && (a.ease = Ya(e) ? e.map(ar) : ar(e)), o.type === "tween" && (a.type = "keyframes"), (n || s || i) && (qr(!ur, "yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."), ur = !0, n ? a.repeatType = "reverse" : s ? a.repeatType = "loop" : i && (a.repeatType = "mirror"), a.repeat = s || n || i || o.repeat), o.type !== "spring" && (a.type = "keyframes"), a;
1136
1136
  }
1137
- function Wa(t, e) {
1138
- var r, n, i = ze(t, e) || {};
1137
+ function qa(t, e) {
1138
+ var r, n, i = Ke(t, e) || {};
1139
1139
  return (n = (r = i.delay) !== null && r !== void 0 ? r : t.delay) !== null && n !== void 0 ? n : 0;
1140
1140
  }
1141
- function Za(t) {
1142
- return Array.isArray(t.to) && t.to[0] === null && (t.to = W([], I(t.to), !1), t.to[0] = t.from), t;
1141
+ function Ja(t) {
1142
+ return Array.isArray(t.to) && t.to[0] === null && (t.to = W([], M(t.to), !1), t.to[0] = t.from), t;
1143
1143
  }
1144
- function $a(t, e, r) {
1144
+ function Qa(t, e, r) {
1145
1145
  var n;
1146
- return Array.isArray(e.to) && ((n = t.duration) !== null && n !== void 0 || (t.duration = 0.8)), Za(e), ka(t) || (t = m(m({}, t), Ga(r, e.to))), m(m({}, e), Xa(t));
1146
+ return Array.isArray(e.to) && ((n = t.duration) !== null && n !== void 0 || (t.duration = 0.8)), Ja(e), Za(t) || (t = m(m({}, t), Xa(r, e.to))), m(m({}, e), $a(t));
1147
1147
  }
1148
- function qa(t, e, r, n, i) {
1149
- var s, o = ze(n, t), a = (s = o.from) !== null && s !== void 0 ? s : e.get(), u = ar(t, r);
1150
- a === "none" && u && typeof r == "string" ? a = He(t, r) : ur(a) && typeof r == "string" ? a = lr(r) : !Array.isArray(r) && ur(r) && typeof a == "string" && (r = lr(a));
1151
- var l = ar(t, a);
1152
- Zr(l === u, "You are trying to animate ".concat(t, ' from "').concat(a, '" to "').concat(r, '". ').concat(a, " is not an animatable value - to enable this animation set ").concat(a, " to a value animatable to ").concat(r, " via the `style` property."));
1148
+ function to(t, e, r, n, i) {
1149
+ var s, o = Ke(n, t), a = (s = o.from) !== null && s !== void 0 ? s : e.get(), u = or(t, r);
1150
+ a === "none" && u && typeof r == "string" ? a = ze(t, r) : lr(a) && typeof r == "string" ? a = fr(r) : !Array.isArray(r) && lr(r) && typeof a == "string" && (r = fr(a));
1151
+ var l = or(t, a);
1152
+ qr(l === u, "You are trying to animate ".concat(t, ' from "').concat(a, '" to "').concat(r, '". ').concat(a, " is not an animatable value - to enable this animation set ").concat(a, " to a value animatable to ").concat(r, " via the `style` property."));
1153
1153
  function f() {
1154
1154
  var c = {
1155
1155
  from: a,
@@ -1160,7 +1160,7 @@ function qa(t, e, r, n, i) {
1160
1160
  return e.set(d);
1161
1161
  }
1162
1162
  };
1163
- return o.type === "inertia" || o.type === "decay" ? vi(m(m({}, c), o)) : di(m(m({}, $a(o, c, t)), { onUpdate: function(d) {
1163
+ return o.type === "inertia" || o.type === "decay" ? pi(m(m({}, c), o)) : hi(m(m({}, Qa(o, c, t)), { onUpdate: function(d) {
1164
1164
  var p;
1165
1165
  c.onUpdate(d), (p = o.onUpdate) === null || p === void 0 || p.call(o, d);
1166
1166
  }, onComplete: function() {
@@ -1169,24 +1169,24 @@ function qa(t, e, r, n, i) {
1169
1169
  } }));
1170
1170
  }
1171
1171
  function v() {
1172
- var c, d, p = yn(r);
1172
+ var c, d, p = bn(r);
1173
1173
  return e.set(p), i(), (c = o?.onUpdate) === null || c === void 0 || c.call(o, p), (d = o?.onComplete) === null || d === void 0 || d.call(o), { stop: function() {
1174
1174
  } };
1175
1175
  }
1176
1176
  return !l || !u || o.type === !1 ? v : f;
1177
1177
  }
1178
- function ur(t) {
1178
+ function lr(t) {
1179
1179
  return t === 0 || typeof t == "string" && parseFloat(t) === 0 && t.indexOf(" ") === -1;
1180
1180
  }
1181
- function lr(t) {
1182
- return typeof t == "number" ? 0 : He("", t);
1181
+ function fr(t) {
1182
+ return typeof t == "number" ? 0 : ze("", t);
1183
1183
  }
1184
- function ze(t, e) {
1184
+ function Ke(t, e) {
1185
1185
  return t[e] || t.default || t;
1186
1186
  }
1187
- function Ke(t, e, r, n) {
1187
+ function Ge(t, e, r, n) {
1188
1188
  return n === void 0 && (n = {}), e.start(function(i) {
1189
- var s, o, a = qa(t, e, r, n, i), u = Wa(n, t), l = function() {
1189
+ var s, o, a = to(t, e, r, n, i), u = qa(n, t), l = function() {
1190
1190
  return o = a();
1191
1191
  };
1192
1192
  return u ? s = window.setTimeout(l, Jt(u)) : l(), function() {
@@ -1194,19 +1194,19 @@ function Ke(t, e, r, n) {
1194
1194
  };
1195
1195
  });
1196
1196
  }
1197
- var Ja = function(t) {
1197
+ var eo = function(t) {
1198
1198
  return /^\-?\d*\.?\d+$/.test(t);
1199
- }, Qa = function(t) {
1199
+ }, ro = function(t) {
1200
1200
  return /^0[^.\s]+$/.test(t);
1201
1201
  };
1202
- function Ge(t, e) {
1202
+ function Ye(t, e) {
1203
1203
  t.indexOf(e) === -1 && t.push(e);
1204
1204
  }
1205
- function Ye(t, e) {
1205
+ function ke(t, e) {
1206
1206
  var r = t.indexOf(e);
1207
1207
  r > -1 && t.splice(r, 1);
1208
1208
  }
1209
- var wt = (
1209
+ var Et = (
1210
1210
  /** @class */
1211
1211
  function() {
1212
1212
  function t() {
@@ -1214,8 +1214,8 @@ var wt = (
1214
1214
  }
1215
1215
  return t.prototype.add = function(e) {
1216
1216
  var r = this;
1217
- return Ge(this.subscriptions, e), function() {
1218
- return Ye(r.subscriptions, e);
1217
+ return Ye(this.subscriptions, e), function() {
1218
+ return ke(r.subscriptions, e);
1219
1219
  };
1220
1220
  }, t.prototype.notify = function(e, r, n) {
1221
1221
  var i = this.subscriptions.length;
@@ -1233,23 +1233,23 @@ var wt = (
1233
1233
  this.subscriptions.length = 0;
1234
1234
  }, t;
1235
1235
  }()
1236
- ), to = function(t) {
1236
+ ), no = function(t) {
1237
1237
  return !isNaN(parseFloat(t));
1238
- }, eo = (
1238
+ }, io = (
1239
1239
  /** @class */
1240
1240
  function() {
1241
1241
  function t(e) {
1242
1242
  var r = this;
1243
- this.version = "6.5.1", this.timeDelta = 0, this.lastUpdated = 0, this.updateSubscribers = new wt(), this.velocityUpdateSubscribers = new wt(), this.renderSubscribers = new wt(), this.canTrackVelocity = !1, this.updateAndNotify = function(n, i) {
1243
+ this.version = "6.5.1", this.timeDelta = 0, this.lastUpdated = 0, this.updateSubscribers = new Et(), this.velocityUpdateSubscribers = new Et(), this.renderSubscribers = new Et(), this.canTrackVelocity = !1, this.updateAndNotify = function(n, i) {
1244
1244
  i === void 0 && (i = !0), r.prev = r.current, r.current = n;
1245
- var s = he(), o = s.delta, a = s.timestamp;
1246
- r.lastUpdated !== a && (r.timeDelta = o, r.lastUpdated = a, $.postRender(r.scheduleVelocityCheck)), r.prev !== r.current && r.updateSubscribers.notify(r.current), r.velocityUpdateSubscribers.getSize() && r.velocityUpdateSubscribers.notify(r.getVelocity()), i && r.renderSubscribers.notify(r.current);
1245
+ var s = me(), o = s.delta, a = s.timestamp;
1246
+ r.lastUpdated !== a && (r.timeDelta = o, r.lastUpdated = a, Z.postRender(r.scheduleVelocityCheck)), r.prev !== r.current && r.updateSubscribers.notify(r.current), r.velocityUpdateSubscribers.getSize() && r.velocityUpdateSubscribers.notify(r.getVelocity()), i && r.renderSubscribers.notify(r.current);
1247
1247
  }, this.scheduleVelocityCheck = function() {
1248
- return $.postRender(r.velocityCheck);
1248
+ return Z.postRender(r.velocityCheck);
1249
1249
  }, this.velocityCheck = function(n) {
1250
1250
  var i = n.timestamp;
1251
1251
  i !== r.lastUpdated && (r.prev = r.current, r.velocityUpdateSubscribers.notify(r.getVelocity()));
1252
- }, this.hasAnimated = !1, this.prev = this.current = e, this.canTrackVelocity = to(this.current);
1252
+ }, this.hasAnimated = !1, this.prev = this.current = e, this.canTrackVelocity = no(this.current);
1253
1253
  }
1254
1254
  return t.prototype.onChange = function(e) {
1255
1255
  return this.updateSubscribers.add(e);
@@ -1268,7 +1268,7 @@ var wt = (
1268
1268
  }, t.prototype.getVelocity = function() {
1269
1269
  return this.canTrackVelocity ? (
1270
1270
  // These casts could be avoided if parseFloat would be typed better
1271
- pi(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)
1271
+ mi(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)
1272
1272
  ) : 0;
1273
1273
  }, t.prototype.start = function(e) {
1274
1274
  var r = this;
@@ -1288,138 +1288,138 @@ var wt = (
1288
1288
  }, t;
1289
1289
  }()
1290
1290
  );
1291
- function bt(t) {
1292
- return new eo(t);
1291
+ function vt(t) {
1292
+ return new io(t);
1293
1293
  }
1294
- var Mn = function(t) {
1294
+ var In = function(t) {
1295
1295
  return function(e) {
1296
1296
  return e.test(t);
1297
1297
  };
1298
- }, ro = {
1298
+ }, ao = {
1299
1299
  test: function(t) {
1300
1300
  return t === "auto";
1301
1301
  },
1302
1302
  parse: function(t) {
1303
1303
  return t;
1304
1304
  }
1305
- }, In = [we, T, Dt, at, hi, mi, ro], xt = function(t) {
1306
- return In.find(Mn(t));
1307
- }, no = W(W([], I(In), !1), [k, yt], !1), io = function(t) {
1308
- return no.find(Mn(t));
1305
+ }, On = [Ee, T, Mt, at, gi, yi, ao], Ct = function(t) {
1306
+ return On.find(In(t));
1307
+ }, oo = W(W([], M(On), !1), [k, Pt], !1), so = function(t) {
1308
+ return oo.find(In(t));
1309
1309
  };
1310
- function ao(t, e, r) {
1311
- t.hasValue(e) ? t.getValue(e).set(r) : t.addValue(e, bt(r));
1310
+ function uo(t, e, r) {
1311
+ t.hasValue(e) ? t.getValue(e).set(r) : t.addValue(e, vt(r));
1312
1312
  }
1313
- function oo(t, e) {
1314
- var r = ee(t, e), n = r ? t.makeTargetAnimatable(r, !1) : {}, i = n.transitionEnd, s = i === void 0 ? {} : i;
1313
+ function lo(t, e) {
1314
+ var r = re(t, e), n = r ? t.makeTargetAnimatable(r, !1) : {}, i = n.transitionEnd, s = i === void 0 ? {} : i;
1315
1315
  n.transition;
1316
1316
  var o = J(n, ["transitionEnd", "transition"]);
1317
1317
  o = m(m({}, o), s);
1318
1318
  for (var a in o) {
1319
- var u = yn(o[a]);
1320
- ao(t, a, u);
1319
+ var u = bn(o[a]);
1320
+ uo(t, a, u);
1321
1321
  }
1322
1322
  }
1323
- function so(t, e, r) {
1323
+ function fo(t, e, r) {
1324
1324
  var n, i, s, o, a = Object.keys(e).filter(function(d) {
1325
1325
  return !t.hasValue(d);
1326
1326
  }), u = a.length;
1327
1327
  if (u)
1328
1328
  for (var l = 0; l < u; l++) {
1329
1329
  var f = a[l], v = e[f], c = null;
1330
- Array.isArray(v) && (c = v[0]), c === null && (c = (i = (n = r[f]) !== null && n !== void 0 ? n : t.readValue(f)) !== null && i !== void 0 ? i : e[f]), c != null && (typeof c == "string" && (Ja(c) || Qa(c)) ? c = parseFloat(c) : !io(c) && yt.test(v) && (c = He(f, v)), t.addValue(f, bt(c)), (s = (o = r)[f]) !== null && s !== void 0 || (o[f] = c), t.setBaseTarget(f, c));
1330
+ Array.isArray(v) && (c = v[0]), c === null && (c = (i = (n = r[f]) !== null && n !== void 0 ? n : t.readValue(f)) !== null && i !== void 0 ? i : e[f]), c != null && (typeof c == "string" && (eo(c) || ro(c)) ? c = parseFloat(c) : !so(c) && Pt.test(v) && (c = ze(f, v)), t.addValue(f, vt(c)), (s = (o = r)[f]) !== null && s !== void 0 || (o[f] = c), t.setBaseTarget(f, c));
1331
1331
  }
1332
1332
  }
1333
- function uo(t, e) {
1333
+ function co(t, e) {
1334
1334
  if (e) {
1335
1335
  var r = e[t] || e.default || e;
1336
1336
  return r.from;
1337
1337
  }
1338
1338
  }
1339
- function lo(t, e, r) {
1339
+ function vo(t, e, r) {
1340
1340
  var n, i, s = {};
1341
1341
  for (var o in t)
1342
- s[o] = (n = uo(o, e)) !== null && n !== void 0 ? n : (i = r.getValue(o)) === null || i === void 0 ? void 0 : i.get();
1342
+ s[o] = (n = co(o, e)) !== null && n !== void 0 ? n : (i = r.getValue(o)) === null || i === void 0 ? void 0 : i.get();
1343
1343
  return s;
1344
1344
  }
1345
- function fo(t, e, r) {
1345
+ function po(t, e, r) {
1346
1346
  r === void 0 && (r = {}), t.notifyAnimationStart(e);
1347
1347
  var n;
1348
1348
  if (Array.isArray(e)) {
1349
1349
  var i = e.map(function(o) {
1350
- return Te(t, o, r);
1350
+ return Se(t, o, r);
1351
1351
  });
1352
1352
  n = Promise.all(i);
1353
1353
  } else if (typeof e == "string")
1354
- n = Te(t, e, r);
1354
+ n = Se(t, e, r);
1355
1355
  else {
1356
- var s = typeof e == "function" ? ee(t, e, r.custom) : e;
1357
- n = On(t, s, r);
1356
+ var s = typeof e == "function" ? re(t, e, r.custom) : e;
1357
+ n = Fn(t, s, r);
1358
1358
  }
1359
1359
  return n.then(function() {
1360
1360
  return t.notifyAnimationComplete(e);
1361
1361
  });
1362
1362
  }
1363
- function Te(t, e, r) {
1363
+ function Se(t, e, r) {
1364
1364
  var n;
1365
1365
  r === void 0 && (r = {});
1366
- var i = ee(t, e, r.custom), s = (i || {}).transition, o = s === void 0 ? t.getDefaultTransition() || {} : s;
1366
+ var i = re(t, e, r.custom), s = (i || {}).transition, o = s === void 0 ? t.getDefaultTransition() || {} : s;
1367
1367
  r.transitionOverride && (o = r.transitionOverride);
1368
1368
  var a = i ? function() {
1369
- return On(t, i, r);
1369
+ return Fn(t, i, r);
1370
1370
  } : function() {
1371
1371
  return Promise.resolve();
1372
1372
  }, u = !((n = t.variantChildren) === null || n === void 0) && n.size ? function(d) {
1373
1373
  d === void 0 && (d = 0);
1374
1374
  var p = o.delayChildren, h = p === void 0 ? 0 : p, g = o.staggerChildren, b = o.staggerDirection;
1375
- return co(t, e, h + d, g, b, r);
1375
+ return ho(t, e, h + d, g, b, r);
1376
1376
  } : function() {
1377
1377
  return Promise.resolve();
1378
1378
  }, l = o.when;
1379
1379
  if (l) {
1380
- var f = I(l === "beforeChildren" ? [a, u] : [u, a], 2), v = f[0], c = f[1];
1380
+ var f = M(l === "beforeChildren" ? [a, u] : [u, a], 2), v = f[0], c = f[1];
1381
1381
  return v().then(c);
1382
1382
  } else
1383
1383
  return Promise.all([a(), u(r.delay)]);
1384
1384
  }
1385
- function On(t, e, r) {
1385
+ function Fn(t, e, r) {
1386
1386
  var n, i = r === void 0 ? {} : r, s = i.delay, o = s === void 0 ? 0 : s, a = i.transitionOverride, u = i.type, l = t.makeTargetAnimatable(e), f = l.transition, v = f === void 0 ? t.getDefaultTransition() : f, c = l.transitionEnd, d = J(l, ["transition", "transitionEnd"]);
1387
1387
  a && (v = a);
1388
1388
  var p = [], h = u && ((n = t.animationState) === null || n === void 0 ? void 0 : n.getState()[u]);
1389
1389
  for (var g in d) {
1390
1390
  var b = t.getValue(g), P = d[g];
1391
- if (!(!b || P === void 0 || h && po(h, g))) {
1391
+ if (!(!b || P === void 0 || h && go(h, g))) {
1392
1392
  var S = m({ delay: o }, v);
1393
- t.shouldReduceMotion && Ut(g) && (S = m(m({}, S), { type: !1, delay: 0 }));
1394
- var C = Ke(g, b, P, S);
1393
+ t.shouldReduceMotion && Nt(g) && (S = m(m({}, S), { type: !1, delay: 0 }));
1394
+ var C = Ge(g, b, P, S);
1395
1395
  p.push(C);
1396
1396
  }
1397
1397
  }
1398
1398
  return Promise.all(p).then(function() {
1399
- c && oo(t, c);
1399
+ c && lo(t, c);
1400
1400
  });
1401
1401
  }
1402
- function co(t, e, r, n, i, s) {
1402
+ function ho(t, e, r, n, i, s) {
1403
1403
  r === void 0 && (r = 0), n === void 0 && (n = 0), i === void 0 && (i = 1);
1404
1404
  var o = [], a = (t.variantChildren.size - 1) * n, u = i === 1 ? function(l) {
1405
1405
  return l === void 0 && (l = 0), l * n;
1406
1406
  } : function(l) {
1407
1407
  return l === void 0 && (l = 0), a - l * n;
1408
1408
  };
1409
- return Array.from(t.variantChildren).sort(vo).forEach(function(l, f) {
1410
- o.push(Te(l, e, m(m({}, s), { delay: r + u(f) })).then(function() {
1409
+ return Array.from(t.variantChildren).sort(mo).forEach(function(l, f) {
1410
+ o.push(Se(l, e, m(m({}, s), { delay: r + u(f) })).then(function() {
1411
1411
  return l.notifyAnimationComplete(e);
1412
1412
  }));
1413
1413
  }), Promise.all(o);
1414
1414
  }
1415
- function vo(t, e) {
1415
+ function mo(t, e) {
1416
1416
  return t.sortNodePosition(e);
1417
1417
  }
1418
- function po(t, e) {
1418
+ function go(t, e) {
1419
1419
  var r = t.protectedKeys, n = t.needsAnimating, i = r.hasOwnProperty(e) && n[e] !== !0;
1420
1420
  return n[e] = !1, i;
1421
1421
  }
1422
- var ke = [
1422
+ var Xe = [
1423
1423
  L.Animate,
1424
1424
  L.InView,
1425
1425
  L.Focus,
@@ -1427,18 +1427,18 @@ var ke = [
1427
1427
  L.Tap,
1428
1428
  L.Drag,
1429
1429
  L.Exit
1430
- ], ho = W([], I(ke), !1).reverse(), mo = ke.length;
1431
- function go(t) {
1430
+ ], yo = W([], M(Xe), !1).reverse(), bo = Xe.length;
1431
+ function Po(t) {
1432
1432
  return function(e) {
1433
1433
  return Promise.all(e.map(function(r) {
1434
1434
  var n = r.animation, i = r.options;
1435
- return fo(t, n, i);
1435
+ return po(t, n, i);
1436
1436
  }));
1437
1437
  };
1438
1438
  }
1439
- function yo(t) {
1440
- var e = go(t), r = Po(), n = {}, i = !0, s = function(f, v) {
1441
- var c = ee(t, v);
1439
+ function Vo(t) {
1440
+ var e = Po(t), r = So(), n = {}, i = !0, s = function(f, v) {
1441
+ var c = re(t, v);
1442
1442
  if (c) {
1443
1443
  c.transition;
1444
1444
  var d = c.transitionEnd, p = J(c, ["transition", "transitionEnd"]);
@@ -1454,32 +1454,32 @@ function yo(t) {
1454
1454
  }
1455
1455
  function u(f, v) {
1456
1456
  for (var c, d = t.getProps(), p = t.getVariantContext(!0) || {}, h = [], g = /* @__PURE__ */ new Set(), b = {}, P = 1 / 0, S = function(R) {
1457
- var x = ho[R], w = r[x], D = (c = d[x]) !== null && c !== void 0 ? c : p[x], H = X(D), B = x === v ? w.isActive : null;
1457
+ var x = yo[R], w = r[x], D = (c = d[x]) !== null && c !== void 0 ? c : p[x], z = X(D), B = x === v ? w.isActive : null;
1458
1458
  B === !1 && (P = R);
1459
- var N = D === p[x] && D !== d[x] && H;
1459
+ var N = D === p[x] && D !== d[x] && z;
1460
1460
  if (N && i && t.manuallyAnimateOnMount && (N = !1), w.protectedKeys = m({}, b), // If it isn't active and hasn't *just* been set as inactive
1461
1461
  !w.isActive && B === null || // If we didn't and don't have any defined prop for this animation type
1462
1462
  !D && !w.prevProp || // Or if the prop doesn't define an animation
1463
- Be(D) || typeof D == "boolean")
1463
+ Ue(D) || typeof D == "boolean")
1464
1464
  return "continue";
1465
- var rt = bo(w.prevProp, D), nt = rt || // If we're making this variant active, we want to always make it active
1466
- x === v && w.isActive && !N && H || // If we removed a higher-priority variant (i is in reverse order)
1467
- R > P && H, it = Array.isArray(D) ? D : [D], z = it.reduce(s, {});
1468
- B === !1 && (z = {});
1469
- var Tt = w.prevResolvedValues, vt = Tt === void 0 ? {} : Tt, Nt = m(m({}, vt), z), dt = function(V) {
1465
+ var rt = To(w.prevProp, D), nt = rt || // If we're making this variant active, we want to always make it active
1466
+ x === v && w.isActive && !N && z || // If we removed a higher-priority variant (i is in reverse order)
1467
+ R > P && z, it = Array.isArray(D) ? D : [D], K = it.reduce(s, {});
1468
+ B === !1 && (K = {});
1469
+ var St = w.prevResolvedValues, pt = St === void 0 ? {} : St, Ht = m(m({}, pt), K), ht = function(V) {
1470
1470
  nt = !0, g.delete(V), w.needsAnimating[V] = !0;
1471
1471
  };
1472
- for (var U in Nt) {
1473
- var E = z[U], y = vt[U];
1474
- b.hasOwnProperty(U) || (E !== y ? jt(E) && jt(y) ? !Dn(E, y) || rt ? dt(U) : w.protectedKeys[U] = !0 : E !== void 0 ? dt(U) : g.add(U) : E !== void 0 && g.has(U) ? dt(U) : w.protectedKeys[U] = !0);
1472
+ for (var _ in Ht) {
1473
+ var E = K[_], y = pt[_];
1474
+ b.hasOwnProperty(_) || (E !== y ? Ut(E) && Ut(y) ? !Mn(E, y) || rt ? ht(_) : w.protectedKeys[_] = !0 : E !== void 0 ? ht(_) : g.add(_) : E !== void 0 && g.has(_) ? ht(_) : w.protectedKeys[_] = !0);
1475
1475
  }
1476
- w.prevProp = D, w.prevResolvedValues = z, w.isActive && (b = m(m({}, b), z)), i && t.blockInitialAnimation && (nt = !1), nt && !N && h.push.apply(h, W([], I(it.map(function(V) {
1476
+ w.prevProp = D, w.prevResolvedValues = K, w.isActive && (b = m(m({}, b), K)), i && t.blockInitialAnimation && (nt = !1), nt && !N && h.push.apply(h, W([], M(it.map(function(V) {
1477
1477
  return {
1478
1478
  animation: V,
1479
1479
  options: m({ type: x }, f)
1480
1480
  };
1481
1481
  })), !1));
1482
- }, C = 0; C < mo; C++)
1482
+ }, C = 0; C < bo; C++)
1483
1483
  S(C);
1484
1484
  if (n = m({}, b), g.size) {
1485
1485
  var A = {};
@@ -1488,8 +1488,8 @@ function yo(t) {
1488
1488
  x !== void 0 && (A[R] = x);
1489
1489
  }), h.push({ animation: A });
1490
1490
  }
1491
- var M = !!h.length;
1492
- return i && d.initial === !1 && !t.manuallyAnimateOnMount && (M = !1), i = !1, M ? e(h) : Promise.resolve();
1491
+ var I = !!h.length;
1492
+ return i && d.initial === !1 && !t.manuallyAnimateOnMount && (I = !1), i = !1, I ? e(h) : Promise.resolve();
1493
1493
  }
1494
1494
  function l(f, v, c) {
1495
1495
  var d;
@@ -1514,8 +1514,8 @@ function yo(t) {
1514
1514
  }
1515
1515
  };
1516
1516
  }
1517
- function bo(t, e) {
1518
- return typeof e == "string" ? e !== t : en(e) ? !Dn(e, t) : !1;
1517
+ function To(t, e) {
1518
+ return typeof e == "string" ? e !== t : rn(e) ? !Mn(e, t) : !1;
1519
1519
  }
1520
1520
  function ft(t) {
1521
1521
  return t === void 0 && (t = !1), {
@@ -1525,91 +1525,91 @@ function ft(t) {
1525
1525
  prevResolvedValues: {}
1526
1526
  };
1527
1527
  }
1528
- function Po() {
1528
+ function So() {
1529
1529
  var t;
1530
1530
  return t = {}, t[L.Animate] = ft(!0), t[L.InView] = ft(), t[L.Hover] = ft(), t[L.Tap] = ft(), t[L.Drag] = ft(), t[L.Focus] = ft(), t[L.Exit] = ft(), t;
1531
1531
  }
1532
- var Vo = {
1532
+ var xo = {
1533
1533
  animation: ut(function(t) {
1534
1534
  var e = t.visualElement, r = t.animate;
1535
- e.animationState || (e.animationState = yo(e)), Be(r) && G(function() {
1535
+ e.animationState || (e.animationState = Vo(e)), Ue(r) && H(function() {
1536
1536
  return r.subscribe(e);
1537
1537
  }, [r]);
1538
1538
  }),
1539
1539
  exit: ut(function(t) {
1540
- var e = t.custom, r = t.visualElement, n = I(Rn(), 2), i = n[0], s = n[1], o = F(Bt);
1541
- G(function() {
1540
+ var e = t.custom, r = t.visualElement, n = M(Dn(), 2), i = n[0], s = n[1], o = F(_t);
1541
+ H(function() {
1542
1542
  var a, u;
1543
1543
  r.isPresent = i;
1544
1544
  var l = (a = r.animationState) === null || a === void 0 ? void 0 : a.setActive(L.Exit, !i, { custom: (u = o?.custom) !== null && u !== void 0 ? u : e });
1545
1545
  !i && l?.then(s);
1546
1546
  }, [i]);
1547
1547
  })
1548
- }, Fn = (
1548
+ }, jn = (
1549
1549
  /** @class */
1550
1550
  function() {
1551
1551
  function t(e, r, n) {
1552
1552
  var i = this, s = n === void 0 ? {} : n, o = s.transformPagePoint;
1553
1553
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = function() {
1554
1554
  if (i.lastMoveEvent && i.lastMoveEventInfo) {
1555
- var c = fe(i.lastMoveEventInfo, i.history), d = i.startEvent !== null, p = $r(c.offset, { x: 0, y: 0 }) >= 3;
1555
+ var c = ce(i.lastMoveEventInfo, i.history), d = i.startEvent !== null, p = Jr(c.offset, { x: 0, y: 0 }) >= 3;
1556
1556
  if (!(!d && !p)) {
1557
- var h = c.point, g = he().timestamp;
1557
+ var h = c.point, g = me().timestamp;
1558
1558
  i.history.push(m(m({}, h), { timestamp: g }));
1559
1559
  var b = i.handlers, P = b.onStart, S = b.onMove;
1560
1560
  d || (P && P(i.lastMoveEvent, c), i.startEvent = i.lastMoveEvent), S && S(i.lastMoveEvent, c);
1561
1561
  }
1562
1562
  }
1563
1563
  }, this.handlePointerMove = function(c, d) {
1564
- if (i.lastMoveEvent = c, i.lastMoveEventInfo = le(d, i.transformPagePoint), Pn(c) && c.buttons === 0) {
1564
+ if (i.lastMoveEvent = c, i.lastMoveEventInfo = fe(d, i.transformPagePoint), Vn(c) && c.buttons === 0) {
1565
1565
  i.handlePointerUp(c, d);
1566
1566
  return;
1567
1567
  }
1568
- $.update(i.updatePoint, !0);
1568
+ Z.update(i.updatePoint, !0);
1569
1569
  }, this.handlePointerUp = function(c, d) {
1570
1570
  i.end();
1571
- var p = i.handlers, h = p.onEnd, g = p.onSessionEnd, b = fe(le(d, i.transformPagePoint), i.history);
1571
+ var p = i.handlers, h = p.onEnd, g = p.onSessionEnd, b = ce(fe(d, i.transformPagePoint), i.history);
1572
1572
  i.startEvent && h && h(c, b), g && g(c, b);
1573
- }, !(Vn(e) && e.touches.length > 1)) {
1573
+ }, !(Tn(e) && e.touches.length > 1)) {
1574
1574
  this.handlers = r, this.transformPagePoint = o;
1575
- var a = _e(e), u = le(a, this.transformPagePoint), l = u.point, f = he().timestamp;
1575
+ var a = _e(e), u = fe(a, this.transformPagePoint), l = u.point, f = me().timestamp;
1576
1576
  this.history = [m(m({}, l), { timestamp: f })];
1577
1577
  var v = r.onSessionStart;
1578
- v && v(e, fe(u, this.history)), this.removeListeners = kr(gt(window, "pointermove", this.handlePointerMove), gt(window, "pointerup", this.handlePointerUp), gt(window, "pointercancel", this.handlePointerUp));
1578
+ v && v(e, ce(u, this.history)), this.removeListeners = Wr(bt(window, "pointermove", this.handlePointerMove), bt(window, "pointerup", this.handlePointerUp), bt(window, "pointercancel", this.handlePointerUp));
1579
1579
  }
1580
1580
  }
1581
1581
  return t.prototype.updateHandlers = function(e) {
1582
1582
  this.handlers = e;
1583
1583
  }, t.prototype.end = function() {
1584
- this.removeListeners && this.removeListeners(), Mt.update(this.updatePoint);
1584
+ this.removeListeners && this.removeListeners(), It.update(this.updatePoint);
1585
1585
  }, t;
1586
1586
  }()
1587
1587
  );
1588
- function le(t, e) {
1588
+ function fe(t, e) {
1589
1589
  return e ? { point: e(t.point) } : t;
1590
1590
  }
1591
- function fr(t, e) {
1591
+ function cr(t, e) {
1592
1592
  return { x: t.x - e.x, y: t.y - e.y };
1593
1593
  }
1594
- function fe(t, e) {
1594
+ function ce(t, e) {
1595
1595
  var r = t.point;
1596
1596
  return {
1597
1597
  point: r,
1598
- delta: fr(r, jn(e)),
1599
- offset: fr(r, To(e)),
1600
- velocity: So(e, 0.1)
1598
+ delta: cr(r, Bn(e)),
1599
+ offset: cr(r, Co(e)),
1600
+ velocity: Ao(e, 0.1)
1601
1601
  };
1602
1602
  }
1603
- function To(t) {
1603
+ function Co(t) {
1604
1604
  return t[0];
1605
1605
  }
1606
- function jn(t) {
1606
+ function Bn(t) {
1607
1607
  return t[t.length - 1];
1608
1608
  }
1609
- function So(t, e) {
1609
+ function Ao(t, e) {
1610
1610
  if (t.length < 2)
1611
1611
  return { x: 0, y: 0 };
1612
- for (var r = t.length - 1, n = null, i = jn(t); r >= 0 && (n = t[r], !(i.timestamp - n.timestamp > Jt(e))); )
1612
+ for (var r = t.length - 1, n = null, i = Bn(t); r >= 0 && (n = t[r], !(i.timestamp - n.timestamp > Jt(e))); )
1613
1613
  r--;
1614
1614
  if (!n)
1615
1615
  return { x: 0, y: 0 };
@@ -1625,114 +1625,114 @@ function So(t, e) {
1625
1625
  function et(t) {
1626
1626
  return t.max - t.min;
1627
1627
  }
1628
- function cr(t, e, r) {
1629
- return e === void 0 && (e = 0), r === void 0 && (r = 0.01), $r(t, e) < r;
1628
+ function vr(t, e, r) {
1629
+ return e === void 0 && (e = 0), r === void 0 && (r = 0.01), Jr(t, e) < r;
1630
1630
  }
1631
- function vr(t, e, r, n) {
1632
- n === void 0 && (n = 0.5), t.origin = n, t.originPoint = O(e.min, e.max, t.origin), t.scale = et(r) / et(e), (cr(t.scale, 1, 1e-4) || isNaN(t.scale)) && (t.scale = 1), t.translate = O(r.min, r.max, t.origin) - t.originPoint, (cr(t.translate) || isNaN(t.translate)) && (t.translate = 0);
1631
+ function dr(t, e, r, n) {
1632
+ n === void 0 && (n = 0.5), t.origin = n, t.originPoint = O(e.min, e.max, t.origin), t.scale = et(r) / et(e), (vr(t.scale, 1, 1e-4) || isNaN(t.scale)) && (t.scale = 1), t.translate = O(r.min, r.max, t.origin) - t.originPoint, (vr(t.translate) || isNaN(t.translate)) && (t.translate = 0);
1633
1633
  }
1634
- function Et(t, e, r, n) {
1635
- vr(t.x, e.x, r.x, n?.originX), vr(t.y, e.y, r.y, n?.originY);
1634
+ function Lt(t, e, r, n) {
1635
+ dr(t.x, e.x, r.x, n?.originX), dr(t.y, e.y, r.y, n?.originY);
1636
1636
  }
1637
- function dr(t, e, r) {
1637
+ function pr(t, e, r) {
1638
1638
  t.min = r.min + e.min, t.max = t.min + et(e);
1639
1639
  }
1640
- function xo(t, e, r) {
1641
- dr(t.x, e.x, r.x), dr(t.y, e.y, r.y);
1640
+ function wo(t, e, r) {
1641
+ pr(t.x, e.x, r.x), pr(t.y, e.y, r.y);
1642
1642
  }
1643
- function pr(t, e, r) {
1643
+ function hr(t, e, r) {
1644
1644
  t.min = e.min - r.min, t.max = t.min + et(e);
1645
1645
  }
1646
- function Lt(t, e, r) {
1647
- pr(t.x, e.x, r.x), pr(t.y, e.y, r.y);
1646
+ function Rt(t, e, r) {
1647
+ hr(t.x, e.x, r.x), hr(t.y, e.y, r.y);
1648
1648
  }
1649
- function Co(t, e, r) {
1649
+ function Eo(t, e, r) {
1650
1650
  var n = e.min, i = e.max;
1651
1651
  return n !== void 0 && t < n ? t = r ? O(n, t, r.min) : Math.max(t, n) : i !== void 0 && t > i && (t = r ? O(i, t, r.max) : Math.min(t, i)), t;
1652
1652
  }
1653
- function hr(t, e, r) {
1653
+ function mr(t, e, r) {
1654
1654
  return {
1655
1655
  min: e !== void 0 ? t.min + e : void 0,
1656
1656
  max: r !== void 0 ? t.max + r - (t.max - t.min) : void 0
1657
1657
  };
1658
1658
  }
1659
- function Ao(t, e) {
1659
+ function Lo(t, e) {
1660
1660
  var r = e.top, n = e.left, i = e.bottom, s = e.right;
1661
1661
  return {
1662
- x: hr(t.x, n, s),
1663
- y: hr(t.y, r, i)
1662
+ x: mr(t.x, n, s),
1663
+ y: mr(t.y, r, i)
1664
1664
  };
1665
1665
  }
1666
- function mr(t, e) {
1666
+ function gr(t, e) {
1667
1667
  var r, n = e.min - t.min, i = e.max - t.max;
1668
- return e.max - e.min < t.max - t.min && (r = I([i, n], 2), n = r[0], i = r[1]), { min: n, max: i };
1668
+ return e.max - e.min < t.max - t.min && (r = M([i, n], 2), n = r[0], i = r[1]), { min: n, max: i };
1669
1669
  }
1670
- function wo(t, e) {
1670
+ function Ro(t, e) {
1671
1671
  return {
1672
- x: mr(t.x, e.x),
1673
- y: mr(t.y, e.y)
1672
+ x: gr(t.x, e.x),
1673
+ y: gr(t.y, e.y)
1674
1674
  };
1675
1675
  }
1676
- function Eo(t, e) {
1676
+ function Do(t, e) {
1677
1677
  var r = 0.5, n = et(t), i = et(e);
1678
- return i > n ? r = me(e.min, e.max - n, t.min) : n > i && (r = me(t.min, t.max - i, e.min)), gi(0, 1, r);
1678
+ return i > n ? r = ge(e.min, e.max - n, t.min) : n > i && (r = ge(t.min, t.max - i, e.min)), bi(0, 1, r);
1679
1679
  }
1680
- function Lo(t, e) {
1680
+ function Mo(t, e) {
1681
1681
  var r = {};
1682
1682
  return e.min !== void 0 && (r.min = e.min - t.min), e.max !== void 0 && (r.max = e.max - t.min), r;
1683
1683
  }
1684
- var Se = 0.35;
1685
- function Ro(t) {
1686
- return t === void 0 && (t = Se), t === !1 ? t = 0 : t === !0 && (t = Se), {
1687
- x: gr(t, "left", "right"),
1688
- y: gr(t, "top", "bottom")
1684
+ var xe = 0.35;
1685
+ function Io(t) {
1686
+ return t === void 0 && (t = xe), t === !1 ? t = 0 : t === !0 && (t = xe), {
1687
+ x: yr(t, "left", "right"),
1688
+ y: yr(t, "top", "bottom")
1689
1689
  };
1690
1690
  }
1691
- function gr(t, e, r) {
1691
+ function yr(t, e, r) {
1692
1692
  return {
1693
- min: yr(t, e),
1694
- max: yr(t, r)
1693
+ min: br(t, e),
1694
+ max: br(t, r)
1695
1695
  };
1696
1696
  }
1697
- function yr(t, e) {
1697
+ function br(t, e) {
1698
1698
  var r;
1699
1699
  return typeof t == "number" ? t : (r = t[e]) !== null && r !== void 0 ? r : 0;
1700
1700
  }
1701
- var br = function() {
1701
+ var Pr = function() {
1702
1702
  return {
1703
1703
  translate: 0,
1704
1704
  scale: 1,
1705
1705
  origin: 0,
1706
1706
  originPoint: 0
1707
1707
  };
1708
- }, Rt = function() {
1708
+ }, Dt = function() {
1709
1709
  return {
1710
- x: br(),
1711
- y: br()
1710
+ x: Pr(),
1711
+ y: Pr()
1712
1712
  };
1713
- }, Pr = function() {
1713
+ }, Vr = function() {
1714
1714
  return { min: 0, max: 0 };
1715
1715
  }, j = function() {
1716
1716
  return {
1717
- x: Pr(),
1718
- y: Pr()
1717
+ x: Vr(),
1718
+ y: Vr()
1719
1719
  };
1720
1720
  };
1721
- function Z(t) {
1721
+ function $(t) {
1722
1722
  return [t("x"), t("y")];
1723
1723
  }
1724
- function Bn(t) {
1724
+ function Un(t) {
1725
1725
  var e = t.top, r = t.left, n = t.right, i = t.bottom;
1726
1726
  return {
1727
1727
  x: { min: r, max: n },
1728
1728
  y: { min: e, max: i }
1729
1729
  };
1730
1730
  }
1731
- function Do(t) {
1731
+ function Oo(t) {
1732
1732
  var e = t.x, r = t.y;
1733
1733
  return { top: r.min, right: e.max, bottom: r.max, left: e.min };
1734
1734
  }
1735
- function Mo(t, e) {
1735
+ function Fo(t, e) {
1736
1736
  if (!e)
1737
1737
  return t;
1738
1738
  var r = e({ x: t.left, y: t.top }), n = e({ x: t.right, y: t.bottom });
@@ -1743,62 +1743,62 @@ function Mo(t, e) {
1743
1743
  right: n.x
1744
1744
  };
1745
1745
  }
1746
- function ce(t) {
1746
+ function ve(t) {
1747
1747
  return t === void 0 || t === 1;
1748
1748
  }
1749
1749
  function _n(t) {
1750
1750
  var e = t.scale, r = t.scaleX, n = t.scaleY;
1751
- return !ce(e) || !ce(r) || !ce(n);
1751
+ return !ve(e) || !ve(r) || !ve(n);
1752
1752
  }
1753
1753
  function ot(t) {
1754
- return _n(t) || Vr(t.x) || Vr(t.y) || t.z || t.rotate || t.rotateX || t.rotateY;
1754
+ return _n(t) || Tr(t.x) || Tr(t.y) || t.z || t.rotate || t.rotateX || t.rotateY;
1755
1755
  }
1756
- function Vr(t) {
1756
+ function Tr(t) {
1757
1757
  return t && t !== "0%";
1758
1758
  }
1759
1759
  function Qt(t, e, r) {
1760
1760
  var n = t - r, i = e * n;
1761
1761
  return r + i;
1762
1762
  }
1763
- function Tr(t, e, r, n, i) {
1763
+ function Sr(t, e, r, n, i) {
1764
1764
  return i !== void 0 && (t = Qt(t, i, n)), Qt(t, r, n) + e;
1765
1765
  }
1766
- function xe(t, e, r, n, i) {
1767
- e === void 0 && (e = 0), r === void 0 && (r = 1), t.min = Tr(t.min, e, r, n, i), t.max = Tr(t.max, e, r, n, i);
1766
+ function Ce(t, e, r, n, i) {
1767
+ e === void 0 && (e = 0), r === void 0 && (r = 1), t.min = Sr(t.min, e, r, n, i), t.max = Sr(t.max, e, r, n, i);
1768
1768
  }
1769
- function Un(t, e) {
1769
+ function Nn(t, e) {
1770
1770
  var r = e.x, n = e.y;
1771
- xe(t.x, r.translate, r.scale, r.originPoint), xe(t.y, n.translate, n.scale, n.originPoint);
1771
+ Ce(t.x, r.translate, r.scale, r.originPoint), Ce(t.y, n.translate, n.scale, n.originPoint);
1772
1772
  }
1773
- function Io(t, e, r, n) {
1773
+ function jo(t, e, r, n) {
1774
1774
  var i, s;
1775
1775
  n === void 0 && (n = !1);
1776
1776
  var o = r.length;
1777
1777
  if (o) {
1778
1778
  e.x = e.y = 1;
1779
1779
  for (var a, u, l = 0; l < o; l++)
1780
- a = r[l], u = a.projectionDelta, ((s = (i = a.instance) === null || i === void 0 ? void 0 : i.style) === null || s === void 0 ? void 0 : s.display) !== "contents" && (n && a.options.layoutScroll && a.scroll && a !== a.root && mt(t, { x: -a.scroll.x, y: -a.scroll.y }), u && (e.x *= u.x.scale, e.y *= u.y.scale, Un(t, u)), n && ot(a.latestValues) && mt(t, a.latestValues));
1780
+ a = r[l], u = a.projectionDelta, ((s = (i = a.instance) === null || i === void 0 ? void 0 : i.style) === null || s === void 0 ? void 0 : s.display) !== "contents" && (n && a.options.layoutScroll && a.scroll && a !== a.root && yt(t, { x: -a.scroll.x, y: -a.scroll.y }), u && (e.x *= u.x.scale, e.y *= u.y.scale, Nn(t, u)), n && ot(a.latestValues) && yt(t, a.latestValues));
1781
1781
  }
1782
1782
  }
1783
1783
  function st(t, e) {
1784
1784
  t.min = t.min + e, t.max = t.max + e;
1785
1785
  }
1786
- function Sr(t, e, r) {
1787
- var n = I(r, 3), i = n[0], s = n[1], o = n[2], a = e[o] !== void 0 ? e[o] : 0.5, u = O(t.min, t.max, a);
1788
- xe(t, e[i], e[s], u, e.scale);
1786
+ function xr(t, e, r) {
1787
+ var n = M(r, 3), i = n[0], s = n[1], o = n[2], a = e[o] !== void 0 ? e[o] : 0.5, u = O(t.min, t.max, a);
1788
+ Ce(t, e[i], e[s], u, e.scale);
1789
1789
  }
1790
- var Oo = ["x", "scaleX", "originX"], Fo = ["y", "scaleY", "originY"];
1791
- function mt(t, e) {
1792
- Sr(t.x, e, Oo), Sr(t.y, e, Fo);
1790
+ var Bo = ["x", "scaleX", "originX"], Uo = ["y", "scaleY", "originY"];
1791
+ function yt(t, e) {
1792
+ xr(t.x, e, Bo), xr(t.y, e, Uo);
1793
1793
  }
1794
- function Nn(t, e) {
1795
- return Bn(Mo(t.getBoundingClientRect(), e));
1794
+ function Hn(t, e) {
1795
+ return Un(Fo(t.getBoundingClientRect(), e));
1796
1796
  }
1797
- function jo(t, e, r) {
1798
- var n = Nn(t, r), i = e.scroll;
1797
+ function _o(t, e, r) {
1798
+ var n = Hn(t, r), i = e.scroll;
1799
1799
  return i && (st(n.x, i.x), st(n.y, i.y)), n;
1800
1800
  }
1801
- var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1801
+ var No = /* @__PURE__ */ new WeakMap(), Ho = (
1802
1802
  /** @class */
1803
1803
  function() {
1804
1804
  function t(e) {
@@ -1811,12 +1811,12 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1811
1811
  n.stopAnimation(), o && n.snapToCursor(_e(v, "page").point);
1812
1812
  }, u = function(v, c) {
1813
1813
  var d, p = n.getProps(), h = p.drag, g = p.dragPropagation, b = p.onDragStart;
1814
- h && !g && (n.openGlobalLock && n.openGlobalLock(), n.openGlobalLock = Cn(h), !n.openGlobalLock) || (n.isDragging = !0, n.currentDirection = null, n.resolveConstraints(), n.visualElement.projection && (n.visualElement.projection.isAnimationBlocked = !0, n.visualElement.projection.target = void 0), Z(function(P) {
1814
+ h && !g && (n.openGlobalLock && n.openGlobalLock(), n.openGlobalLock = An(h), !n.openGlobalLock) || (n.isDragging = !0, n.currentDirection = null, n.resolveConstraints(), n.visualElement.projection && (n.visualElement.projection.isAnimationBlocked = !0, n.visualElement.projection.target = void 0), $(function(P) {
1815
1815
  var S, C, A = n.getAxisMotionValue(P).get() || 0;
1816
- if (Dt.test(A)) {
1817
- var M = (C = (S = n.visualElement.projection) === null || S === void 0 ? void 0 : S.layout) === null || C === void 0 ? void 0 : C.actual[P];
1818
- if (M) {
1819
- var R = et(M);
1816
+ if (Mt.test(A)) {
1817
+ var I = (C = (S = n.visualElement.projection) === null || S === void 0 ? void 0 : S.layout) === null || C === void 0 ? void 0 : C.actual[P];
1818
+ if (I) {
1819
+ var R = et(I);
1820
1820
  A = R * (parseFloat(A) / 100);
1821
1821
  }
1822
1822
  }
@@ -1827,7 +1827,7 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1827
1827
  if (!(!p && !n.openGlobalLock)) {
1828
1828
  var P = c.offset;
1829
1829
  if (h && n.currentDirection === null) {
1830
- n.currentDirection = Uo(P), n.currentDirection !== null && g?.(n.currentDirection);
1830
+ n.currentDirection = zo(P), n.currentDirection !== null && g?.(n.currentDirection);
1831
1831
  return;
1832
1832
  }
1833
1833
  n.updateAxis("x", c.point, P), n.updateAxis("y", c.point, P), n.visualElement.syncRender(), b?.(v, c);
@@ -1835,7 +1835,7 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1835
1835
  }, f = function(v, c) {
1836
1836
  return n.stop(v, c);
1837
1837
  };
1838
- this.panSession = new Fn(e, {
1838
+ this.panSession = new jn(e, {
1839
1839
  onSessionStart: a,
1840
1840
  onStart: u,
1841
1841
  onMove: l,
@@ -1857,34 +1857,34 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1857
1857
  !n && this.openGlobalLock && (this.openGlobalLock(), this.openGlobalLock = null), (r = this.visualElement.animationState) === null || r === void 0 || r.setActive(L.Drag, !1);
1858
1858
  }, t.prototype.updateAxis = function(e, r, n) {
1859
1859
  var i = this.getProps().drag;
1860
- if (!(!n || !Gt(e, i, this.currentDirection))) {
1860
+ if (!(!n || !Yt(e, i, this.currentDirection))) {
1861
1861
  var s = this.getAxisMotionValue(e), o = this.originPoint[e] + n[e];
1862
- this.constraints && this.constraints[e] && (o = Co(o, this.constraints[e], this.elastic[e])), s.set(o);
1862
+ this.constraints && this.constraints[e] && (o = Eo(o, this.constraints[e], this.elastic[e])), s.set(o);
1863
1863
  }
1864
1864
  }, t.prototype.resolveConstraints = function() {
1865
1865
  var e = this, r = this.getProps(), n = r.dragConstraints, i = r.dragElastic, s = (this.visualElement.projection || {}).layout, o = this.constraints;
1866
- n && ht(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = Ao(s.actual, n) : this.constraints = !1, this.elastic = Ro(i), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && Z(function(a) {
1867
- e.getAxisMotionValue(a) && (e.constraints[a] = Lo(s.actual[a], e.constraints[a]));
1866
+ n && gt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = Lo(s.actual, n) : this.constraints = !1, this.elastic = Io(i), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && $(function(a) {
1867
+ e.getAxisMotionValue(a) && (e.constraints[a] = Mo(s.actual[a], e.constraints[a]));
1868
1868
  });
1869
1869
  }, t.prototype.resolveRefConstraints = function() {
1870
1870
  var e = this.getProps(), r = e.dragConstraints, n = e.onMeasureDragConstraints;
1871
- if (!r || !ht(r))
1871
+ if (!r || !gt(r))
1872
1872
  return !1;
1873
1873
  var i = r.current;
1874
1874
  ct(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
1875
1875
  var s = this.visualElement.projection;
1876
1876
  if (!s || !s.layout)
1877
1877
  return !1;
1878
- var o = jo(i, s.root, this.visualElement.getTransformPagePoint()), a = wo(s.layout.actual, o);
1878
+ var o = _o(i, s.root, this.visualElement.getTransformPagePoint()), a = Ro(s.layout.actual, o);
1879
1879
  if (n) {
1880
- var u = n(Do(a));
1881
- this.hasMutatedConstraints = !!u, u && (a = Bn(u));
1880
+ var u = n(Oo(a));
1881
+ this.hasMutatedConstraints = !!u, u && (a = Un(u));
1882
1882
  }
1883
1883
  return a;
1884
1884
  }, t.prototype.startAnimation = function(e) {
1885
- var r = this, n = this.getProps(), i = n.drag, s = n.dragMomentum, o = n.dragElastic, a = n.dragTransition, u = n.dragSnapToOrigin, l = n.onDragTransitionEnd, f = this.constraints || {}, v = Z(function(c) {
1885
+ var r = this, n = this.getProps(), i = n.drag, s = n.dragMomentum, o = n.dragElastic, a = n.dragTransition, u = n.dragSnapToOrigin, l = n.onDragTransitionEnd, f = this.constraints || {}, v = $(function(c) {
1886
1886
  var d;
1887
- if (Gt(c, i, r.currentDirection)) {
1887
+ if (Yt(c, i, r.currentDirection)) {
1888
1888
  var p = (d = f?.[c]) !== null && d !== void 0 ? d : {};
1889
1889
  u && (p = { min: 0, max: 0 });
1890
1890
  var h = o ? 200 : 1e6, g = o ? 40 : 1e7, b = m(m({ type: "inertia", velocity: s ? e[c] : 0, bounceStiffness: h, bounceDamping: g, timeConstant: 750, restDelta: 1, restSpeed: 10 }, a), p);
@@ -1894,10 +1894,10 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1894
1894
  return Promise.all(v).then(l);
1895
1895
  }, t.prototype.startAxisValueAnimation = function(e, r) {
1896
1896
  var n = this.getAxisMotionValue(e);
1897
- return Ke(e, n, 0, r);
1897
+ return Ge(e, n, 0, r);
1898
1898
  }, t.prototype.stopAnimation = function() {
1899
1899
  var e = this;
1900
- Z(function(r) {
1900
+ $(function(r) {
1901
1901
  return e.getAxisMotionValue(r).stop();
1902
1902
  });
1903
1903
  }, t.prototype.getAxisMotionValue = function(e) {
@@ -1905,9 +1905,9 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1905
1905
  return s || this.visualElement.getValue(e, (n = (r = this.visualElement.getProps().initial) === null || r === void 0 ? void 0 : r[e]) !== null && n !== void 0 ? n : 0);
1906
1906
  }, t.prototype.snapToCursor = function(e) {
1907
1907
  var r = this;
1908
- Z(function(n) {
1908
+ $(function(n) {
1909
1909
  var i = r.getProps().drag;
1910
- if (Gt(n, i, r.currentDirection)) {
1910
+ if (Yt(n, i, r.currentDirection)) {
1911
1911
  var s = r.visualElement.projection, o = r.getAxisMotionValue(n);
1912
1912
  if (s && s.layout) {
1913
1913
  var a = s.layout.actual[n], u = a.min, l = a.max;
@@ -1917,19 +1917,19 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1917
1917
  });
1918
1918
  }, t.prototype.scalePositionWithinConstraints = function() {
1919
1919
  var e = this, r, n = this.getProps(), i = n.drag, s = n.dragConstraints, o = this.visualElement.projection;
1920
- if (!(!ht(s) || !o || !this.constraints)) {
1920
+ if (!(!gt(s) || !o || !this.constraints)) {
1921
1921
  this.stopAnimation();
1922
1922
  var a = { x: 0, y: 0 };
1923
- Z(function(l) {
1923
+ $(function(l) {
1924
1924
  var f = e.getAxisMotionValue(l);
1925
1925
  if (f) {
1926
1926
  var v = f.get();
1927
- a[l] = Eo({ min: v, max: v }, e.constraints[l]);
1927
+ a[l] = Do({ min: v, max: v }, e.constraints[l]);
1928
1928
  }
1929
1929
  });
1930
1930
  var u = this.visualElement.getProps().transformTemplate;
1931
- this.visualElement.getInstance().style.transform = u ? u({}, "") : "none", (r = o.root) === null || r === void 0 || r.updateScroll(), o.updateLayout(), this.resolveConstraints(), Z(function(l) {
1932
- if (Gt(l, i, null)) {
1931
+ this.visualElement.getInstance().style.transform = u ? u({}, "") : "none", (r = o.root) === null || r === void 0 || r.updateScroll(), o.updateLayout(), this.resolveConstraints(), $(function(l) {
1932
+ if (Yt(l, i, null)) {
1933
1933
  var f = e.getAxisMotionValue(l), v = e.constraints[l], c = v.min, d = v.max;
1934
1934
  f.set(O(c, d, a[l]));
1935
1935
  }
@@ -1937,21 +1937,21 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1937
1937
  }
1938
1938
  }, t.prototype.addListeners = function() {
1939
1939
  var e = this, r;
1940
- Bo.set(this.visualElement, this);
1941
- var n = this.visualElement.getInstance(), i = gt(n, "pointerdown", function(l) {
1940
+ No.set(this.visualElement, this);
1941
+ var n = this.visualElement.getInstance(), i = bt(n, "pointerdown", function(l) {
1942
1942
  var f = e.getProps(), v = f.drag, c = f.dragListener, d = c === void 0 ? !0 : c;
1943
1943
  v && d && e.start(l);
1944
1944
  }), s = function() {
1945
1945
  var l = e.getProps().dragConstraints;
1946
- ht(l) && (e.constraints = e.resolveRefConstraints());
1946
+ gt(l) && (e.constraints = e.resolveRefConstraints());
1947
1947
  }, o = this.visualElement.projection, a = o.addEventListener("measure", s);
1948
1948
  o && !o.layout && ((r = o.root) === null || r === void 0 || r.updateScroll(), o.updateLayout()), s();
1949
- var u = ne(window, "resize", function() {
1949
+ var u = ie(window, "resize", function() {
1950
1950
  return e.scalePositionWithinConstraints();
1951
1951
  });
1952
1952
  return o.addEventListener("didUpdate", function(l) {
1953
1953
  var f = l.delta, v = l.hasLayoutChanged;
1954
- e.isDragging && v && (Z(function(c) {
1954
+ e.isDragging && v && ($(function(c) {
1955
1955
  var d = e.getAxisMotionValue(c);
1956
1956
  d && (e.originPoint[c] += f[c].translate, d.set(d.get() + f[c].translate));
1957
1957
  }), e.visualElement.syncRender());
@@ -1959,31 +1959,31 @@ var Bo = /* @__PURE__ */ new WeakMap(), _o = (
1959
1959
  u(), i(), a();
1960
1960
  };
1961
1961
  }, t.prototype.getProps = function() {
1962
- var e = this.visualElement.getProps(), r = e.drag, n = r === void 0 ? !1 : r, i = e.dragDirectionLock, s = i === void 0 ? !1 : i, o = e.dragPropagation, a = o === void 0 ? !1 : o, u = e.dragConstraints, l = u === void 0 ? !1 : u, f = e.dragElastic, v = f === void 0 ? Se : f, c = e.dragMomentum, d = c === void 0 ? !0 : c;
1962
+ var e = this.visualElement.getProps(), r = e.drag, n = r === void 0 ? !1 : r, i = e.dragDirectionLock, s = i === void 0 ? !1 : i, o = e.dragPropagation, a = o === void 0 ? !1 : o, u = e.dragConstraints, l = u === void 0 ? !1 : u, f = e.dragElastic, v = f === void 0 ? xe : f, c = e.dragMomentum, d = c === void 0 ? !0 : c;
1963
1963
  return m(m({}, e), { drag: n, dragDirectionLock: s, dragPropagation: a, dragConstraints: l, dragElastic: v, dragMomentum: d });
1964
1964
  }, t;
1965
1965
  }()
1966
1966
  );
1967
- function Gt(t, e, r) {
1967
+ function Yt(t, e, r) {
1968
1968
  return (e === !0 || e === t) && (r === null || r === t);
1969
1969
  }
1970
- function Uo(t, e) {
1970
+ function zo(t, e) {
1971
1971
  e === void 0 && (e = 10);
1972
1972
  var r = null;
1973
1973
  return Math.abs(t.y) > e ? r = "y" : Math.abs(t.x) > e && (r = "x"), r;
1974
1974
  }
1975
- function No(t) {
1976
- var e = t.dragControls, r = t.visualElement, n = _t(function() {
1977
- return new _o(r);
1975
+ function Ko(t) {
1976
+ var e = t.dragControls, r = t.visualElement, n = dt(function() {
1977
+ return new Ho(r);
1978
1978
  });
1979
- G(function() {
1979
+ H(function() {
1980
1980
  return e && e.subscribe(n);
1981
- }, [n, e]), G(function() {
1981
+ }, [n, e]), H(function() {
1982
1982
  return n.addListeners();
1983
1983
  }, [n]);
1984
1984
  }
1985
- function Ho(t) {
1986
- var e = t.onPan, r = t.onPanStart, n = t.onPanEnd, i = t.onPanSessionStart, s = t.visualElement, o = e || r || n || i, a = q(null), u = F(Re).transformPagePoint, l = {
1985
+ function Go(t) {
1986
+ var e = t.onPan, r = t.onPanStart, n = t.onPanEnd, i = t.onPanSessionStart, s = t.visualElement, o = e || r || n || i, a = q(null), u = F(te).transformPagePoint, l = {
1987
1987
  onSessionStart: i,
1988
1988
  onStart: r,
1989
1989
  onMove: e,
@@ -1991,22 +1991,22 @@ function Ho(t) {
1991
1991
  a.current = null, n && n(v, c);
1992
1992
  }
1993
1993
  };
1994
- G(function() {
1994
+ H(function() {
1995
1995
  a.current !== null && a.current.updateHandlers(l);
1996
1996
  });
1997
1997
  function f(v) {
1998
- a.current = new Fn(v, l, {
1998
+ a.current = new jn(v, l, {
1999
1999
  transformPagePoint: u
2000
2000
  });
2001
2001
  }
2002
- qt(s, "pointerdown", o && f), Ue(function() {
2002
+ qt(s, "pointerdown", o && f), Ne(function() {
2003
2003
  return a.current && a.current.end();
2004
2004
  });
2005
2005
  }
2006
- var zo = {
2007
- pan: ut(Ho),
2008
- drag: ut(No)
2009
- }, Yt = [
2006
+ var Yo = {
2007
+ pan: ut(Go),
2008
+ drag: ut(Ko)
2009
+ }, kt = [
2010
2010
  "LayoutMeasure",
2011
2011
  "BeforeLayoutMeasure",
2012
2012
  "LayoutUpdate",
@@ -2020,9 +2020,9 @@ var zo = {
2020
2020
  "SetAxisTarget",
2021
2021
  "Unmount"
2022
2022
  ];
2023
- function Ko() {
2024
- var t = Yt.map(function() {
2025
- return new wt();
2023
+ function ko() {
2024
+ var t = kt.map(function() {
2025
+ return new Et();
2026
2026
  }), e = {}, r = {
2027
2027
  clearAllListeners: function() {
2028
2028
  return t.forEach(function(n) {
@@ -2030,70 +2030,70 @@ function Ko() {
2030
2030
  });
2031
2031
  },
2032
2032
  updatePropListeners: function(n) {
2033
- Yt.forEach(function(i) {
2033
+ kt.forEach(function(i) {
2034
2034
  var s, o = "on" + i, a = n[o];
2035
2035
  (s = e[i]) === null || s === void 0 || s.call(e), a && (e[i] = r[o](a));
2036
2036
  });
2037
2037
  }
2038
2038
  };
2039
2039
  return t.forEach(function(n, i) {
2040
- r["on" + Yt[i]] = function(s) {
2040
+ r["on" + kt[i]] = function(s) {
2041
2041
  return n.add(s);
2042
- }, r["notify" + Yt[i]] = function() {
2042
+ }, r["notify" + kt[i]] = function() {
2043
2043
  for (var s = [], o = 0; o < arguments.length; o++)
2044
2044
  s[o] = arguments[o];
2045
- return n.notify.apply(n, W([], I(s), !1));
2045
+ return n.notify.apply(n, W([], M(s), !1));
2046
2046
  };
2047
2047
  }), r;
2048
2048
  }
2049
- function Go(t, e, r) {
2049
+ function Xo(t, e, r) {
2050
2050
  var n;
2051
2051
  for (var i in e) {
2052
2052
  var s = e[i], o = r[i];
2053
2053
  if (tt(s))
2054
- t.addValue(i, s), process.env.NODE_ENV === "development" && En(s.version === "6.5.1", "Attempting to mix Framer Motion versions ".concat(s.version, " with 6.5.1 may not work as expected."));
2054
+ t.addValue(i, s), process.env.NODE_ENV === "development" && Ln(s.version === "6.5.1", "Attempting to mix Framer Motion versions ".concat(s.version, " with 6.5.1 may not work as expected."));
2055
2055
  else if (tt(o))
2056
- t.addValue(i, bt(s));
2056
+ t.addValue(i, vt(s));
2057
2057
  else if (o !== s)
2058
2058
  if (t.hasValue(i)) {
2059
2059
  var a = t.getValue(i);
2060
2060
  !a.hasAnimated && a.set(s);
2061
2061
  } else
2062
- t.addValue(i, bt((n = t.getStaticValue(i)) !== null && n !== void 0 ? n : s));
2062
+ t.addValue(i, vt((n = t.getStaticValue(i)) !== null && n !== void 0 ? n : s));
2063
2063
  }
2064
2064
  for (var i in r)
2065
2065
  e[i] === void 0 && t.removeValue(i);
2066
2066
  return e;
2067
2067
  }
2068
- var Hn = function(t) {
2068
+ var zn = function(t) {
2069
2069
  var e = t.treeType, r = e === void 0 ? "" : e, n = t.build, i = t.getBaseTarget, s = t.makeTargetAnimatable, o = t.measureViewportBox, a = t.render, u = t.readValueFromInstance, l = t.removeValueFromRenderState, f = t.sortNodePosition, v = t.scrapeMotionValuesFromProps;
2070
2070
  return function(c, d) {
2071
2071
  var p = c.parent, h = c.props, g = c.presenceId, b = c.blockInitialAnimation, P = c.visualState, S = c.shouldReduceMotion;
2072
2072
  d === void 0 && (d = {});
2073
- var C = !1, A = P.latestValues, M = P.renderState, R, x = Ko(), w = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), H = {}, B = m({}, A), N;
2073
+ var C = !1, A = P.latestValues, I = P.renderState, R, x = ko(), w = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), z = {}, B = m({}, A), N;
2074
2074
  function rt() {
2075
- !R || !C || (nt(), a(R, M, h.style, E.projection));
2075
+ !R || !C || (nt(), a(R, I, h.style, E.projection));
2076
2076
  }
2077
2077
  function nt() {
2078
- n(E, M, A, d, h);
2078
+ n(E, I, A, d, h);
2079
2079
  }
2080
2080
  function it() {
2081
2081
  x.notifyUpdate(A);
2082
2082
  }
2083
- function z(y, V) {
2084
- var _ = V.onChange(function(Ht) {
2085
- A[y] = Ht, h.onUpdate && $.update(it, !1, !0);
2086
- }), St = V.onRenderRequest(E.scheduleRender);
2083
+ function K(y, V) {
2084
+ var U = V.onChange(function(zt) {
2085
+ A[y] = zt, h.onUpdate && Z.update(it, !1, !0);
2086
+ }), xt = V.onRenderRequest(E.scheduleRender);
2087
2087
  D.set(y, function() {
2088
- _(), St();
2088
+ U(), xt();
2089
2089
  });
2090
2090
  }
2091
- var Tt = v(h);
2092
- for (var vt in Tt) {
2093
- var Nt = Tt[vt];
2094
- A[vt] !== void 0 && tt(Nt) && Nt.set(A[vt], !1);
2091
+ var St = v(h);
2092
+ for (var pt in St) {
2093
+ var Ht = St[pt];
2094
+ A[pt] !== void 0 && tt(Ht) && Ht.set(A[pt], !1);
2095
2095
  }
2096
- var dt = re(h), U = nn(h), E = m(m({
2096
+ var ht = ne(h), _ = an(h), E = m(m({
2097
2097
  treeType: r,
2098
2098
  /**
2099
2099
  * This is a mirror of the internal instance prop, which keeps
@@ -2116,7 +2116,7 @@ var Hn = function(t) {
2116
2116
  * any children that are also part of the tree. This is essentially
2117
2117
  * a shadow tree to simplify logic around how to stagger over children.
2118
2118
  */
2119
- variantChildren: U ? /* @__PURE__ */ new Set() : void 0,
2119
+ variantChildren: _ ? /* @__PURE__ */ new Set() : void 0,
2120
2120
  /**
2121
2121
  * Whether this instance is visible. This can be changed imperatively
2122
2122
  * by the projection tree, is analogous to CSS's visibility in that
@@ -2147,8 +2147,8 @@ var Hn = function(t) {
2147
2147
  return !!R;
2148
2148
  },
2149
2149
  mount: function(y) {
2150
- C = !0, R = E.current = y, E.projection && E.projection.mount(y), U && p && !dt && (N = p?.addVariantChild(E)), w.forEach(function(V, _) {
2151
- return z(_, V);
2150
+ C = !0, R = E.current = y, E.projection && E.projection.mount(y), _ && p && !ht && (N = p?.addVariantChild(E)), w.forEach(function(V, U) {
2151
+ return K(U, V);
2152
2152
  }), p?.children.add(E), E.setProps(h);
2153
2153
  },
2154
2154
  /**
@@ -2156,7 +2156,7 @@ var Hn = function(t) {
2156
2156
  */
2157
2157
  unmount: function() {
2158
2158
  var y;
2159
- (y = E.projection) === null || y === void 0 || y.unmount(), Mt.update(it), Mt.render(rt), D.forEach(function(V) {
2159
+ (y = E.projection) === null || y === void 0 || y.unmount(), It.update(it), It.render(rt), D.forEach(function(V) {
2160
2160
  return V();
2161
2161
  }), N?.(), p?.children.delete(E), x.clearAllListeners(), R = void 0, C = !1;
2162
2162
  },
@@ -2164,10 +2164,10 @@ var Hn = function(t) {
2164
2164
  * Add a child visual element to our set of children.
2165
2165
  */
2166
2166
  addVariantChild: function(y) {
2167
- var V, _ = E.getClosestVariantNode();
2168
- if (_)
2169
- return (V = _.variantChildren) === null || V === void 0 || V.add(y), function() {
2170
- return _.variantChildren.delete(y);
2167
+ var V, U = E.getClosestVariantNode();
2168
+ if (U)
2169
+ return (V = U.variantChildren) === null || V === void 0 || V.add(y), function() {
2170
+ return U.variantChildren.delete(y);
2171
2171
  };
2172
2172
  },
2173
2173
  sortNodePosition: function(y) {
@@ -2178,7 +2178,7 @@ var Hn = function(t) {
2178
2178
  * this visual element.
2179
2179
  */
2180
2180
  getClosestVariantNode: function() {
2181
- return U ? E : p?.getClosestVariantNode();
2181
+ return _ ? E : p?.getClosestVariantNode();
2182
2182
  },
2183
2183
  /**
2184
2184
  * Expose the latest layoutId prop.
@@ -2239,14 +2239,14 @@ var Hn = function(t) {
2239
2239
  * Add a motion value and bind it to this visual element.
2240
2240
  */
2241
2241
  addValue: function(y, V) {
2242
- E.hasValue(y) && E.removeValue(y), w.set(y, V), A[y] = V.get(), z(y, V);
2242
+ E.hasValue(y) && E.removeValue(y), w.set(y, V), A[y] = V.get(), K(y, V);
2243
2243
  },
2244
2244
  /**
2245
2245
  * Remove a motion value and unbind any active subscriptions.
2246
2246
  */
2247
2247
  removeValue: function(y) {
2248
2248
  var V;
2249
- w.delete(y), (V = D.get(y)) === null || V === void 0 || V(), D.delete(y), delete A[y], l(y, M);
2249
+ w.delete(y), (V = D.get(y)) === null || V === void 0 || V(), D.delete(y), delete A[y], l(y, I);
2250
2250
  },
2251
2251
  /**
2252
2252
  * Check whether we have a motion value for this key
@@ -2259,8 +2259,8 @@ var Hn = function(t) {
2259
2259
  * value, we'll create one if none exists.
2260
2260
  */
2261
2261
  getValue: function(y, V) {
2262
- var _ = w.get(y);
2263
- return _ === void 0 && V !== void 0 && (_ = bt(V), E.addValue(y, _)), _;
2262
+ var U = w.get(y);
2263
+ return U === void 0 && V !== void 0 && (U = vt(V), E.addValue(y, U)), U;
2264
2264
  },
2265
2265
  /**
2266
2266
  * Iterate over our motion values.
@@ -2301,13 +2301,13 @@ var Hn = function(t) {
2301
2301
  * Build the renderer state based on the latest visual state.
2302
2302
  */
2303
2303
  build: function() {
2304
- return nt(), M;
2304
+ return nt(), I;
2305
2305
  },
2306
2306
  /**
2307
2307
  * Schedule a render on the next animation frame.
2308
2308
  */
2309
2309
  scheduleRender: function() {
2310
- $.render(rt, !1, !0);
2310
+ Z.render(rt, !1, !0);
2311
2311
  },
2312
2312
  /**
2313
2313
  * Synchronously fire render. It's prefered that we batch renders but
@@ -2321,7 +2321,7 @@ var Hn = function(t) {
2321
2321
  * added to our map, old ones removed, and listeners updated.
2322
2322
  */
2323
2323
  setProps: function(y) {
2324
- (y.transformTemplate || h.transformTemplate) && E.scheduleRender(), h = y, x.updatePropListeners(y), H = Go(E, v(h), H);
2324
+ (y.transformTemplate || h.transformTemplate) && E.scheduleRender(), h = y, x.updatePropListeners(y), z = Xo(E, v(h), z);
2325
2325
  },
2326
2326
  getProps: function() {
2327
2327
  return h;
@@ -2349,61 +2349,61 @@ var Hn = function(t) {
2349
2349
  getVariantContext: function(y) {
2350
2350
  if (y === void 0 && (y = !1), y)
2351
2351
  return p?.getVariantContext();
2352
- if (!dt) {
2352
+ if (!ht) {
2353
2353
  var V = p?.getVariantContext() || {};
2354
2354
  return h.initial !== void 0 && (V.initial = h.initial), V;
2355
2355
  }
2356
- for (var _ = {}, St = 0; St < Yo; St++) {
2357
- var Ht = zn[St], ie = h[Ht];
2358
- (X(ie) || ie === !1) && (_[Ht] = ie);
2356
+ for (var U = {}, xt = 0; xt < Wo; xt++) {
2357
+ var zt = Kn[xt], ae = h[zt];
2358
+ (X(ae) || ae === !1) && (U[zt] = ae);
2359
2359
  }
2360
- return _;
2360
+ return U;
2361
2361
  }
2362
2362
  });
2363
2363
  return E;
2364
2364
  };
2365
- }, zn = W(["initial"], I(ke), !1), Yo = zn.length;
2366
- function Ce(t) {
2365
+ }, Kn = W(["initial"], M(Xe), !1), Wo = Kn.length;
2366
+ function Ae(t) {
2367
2367
  return typeof t == "string" && t.startsWith("var(--");
2368
2368
  }
2369
- var Kn = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
2370
- function ko(t) {
2371
- var e = Kn.exec(t);
2369
+ var Gn = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
2370
+ function Zo(t) {
2371
+ var e = Gn.exec(t);
2372
2372
  if (!e)
2373
2373
  return [,];
2374
- var r = I(e, 3), n = r[1], i = r[2];
2374
+ var r = M(e, 3), n = r[1], i = r[2];
2375
2375
  return [n, i];
2376
2376
  }
2377
- var Xo = 4;
2378
- function Ae(t, e, r) {
2379
- r === void 0 && (r = 1), ct(r <= Xo, 'Max CSS variable fallback depth detected in property "'.concat(t, '". This may indicate a circular fallback dependency.'));
2380
- var n = I(ko(t), 2), i = n[0], s = n[1];
2377
+ var $o = 4;
2378
+ function we(t, e, r) {
2379
+ r === void 0 && (r = 1), ct(r <= $o, 'Max CSS variable fallback depth detected in property "'.concat(t, '". This may indicate a circular fallback dependency.'));
2380
+ var n = M(Zo(t), 2), i = n[0], s = n[1];
2381
2381
  if (i) {
2382
2382
  var o = window.getComputedStyle(e).getPropertyValue(i);
2383
- return o ? o.trim() : Ce(s) ? Ae(s, e, r + 1) : s;
2383
+ return o ? o.trim() : Ae(s) ? we(s, e, r + 1) : s;
2384
2384
  }
2385
2385
  }
2386
- function Wo(t, e, r) {
2386
+ function qo(t, e, r) {
2387
2387
  var n, i = J(e, []), s = t.getInstance();
2388
2388
  if (!(s instanceof Element))
2389
2389
  return { target: i, transitionEnd: r };
2390
2390
  r && (r = m({}, r)), t.forEachValue(function(l) {
2391
2391
  var f = l.get();
2392
- if (Ce(f)) {
2393
- var v = Ae(f, s);
2392
+ if (Ae(f)) {
2393
+ var v = we(f, s);
2394
2394
  v && l.set(v);
2395
2395
  }
2396
2396
  });
2397
2397
  for (var o in i) {
2398
2398
  var a = i[o];
2399
- if (Ce(a)) {
2400
- var u = Ae(a, s);
2399
+ if (Ae(a)) {
2400
+ var u = we(a, s);
2401
2401
  u && (i[o] = u, r && ((n = r[o]) !== null && n !== void 0 || (r[o] = a)));
2402
2402
  }
2403
2403
  }
2404
2404
  return { target: i, transitionEnd: r };
2405
2405
  }
2406
- var Zo = /* @__PURE__ */ new Set([
2406
+ var Jo = /* @__PURE__ */ new Set([
2407
2407
  "width",
2408
2408
  "height",
2409
2409
  "top",
@@ -2412,42 +2412,42 @@ var Zo = /* @__PURE__ */ new Set([
2412
2412
  "bottom",
2413
2413
  "x",
2414
2414
  "y"
2415
- ]), Gn = function(t) {
2416
- return Zo.has(t);
2417
- }, $o = function(t) {
2418
- return Object.keys(t).some(Gn);
2419
- }, Yn = function(t, e) {
2415
+ ]), Yn = function(t) {
2416
+ return Jo.has(t);
2417
+ }, Qo = function(t) {
2418
+ return Object.keys(t).some(Yn);
2419
+ }, kn = function(t, e) {
2420
2420
  t.set(e, !1), t.set(e);
2421
- }, kt = function(t) {
2422
- return t === we || t === T;
2423
- }, xr;
2421
+ }, Xt = function(t) {
2422
+ return t === Ee || t === T;
2423
+ }, Cr;
2424
2424
  (function(t) {
2425
2425
  t.width = "width", t.height = "height", t.left = "left", t.right = "right", t.top = "top", t.bottom = "bottom";
2426
- })(xr || (xr = {}));
2427
- var Cr = function(t, e) {
2426
+ })(Cr || (Cr = {}));
2427
+ var Ar = function(t, e) {
2428
2428
  return parseFloat(t.split(", ")[e]);
2429
- }, Ar = function(t, e) {
2429
+ }, wr = function(t, e) {
2430
2430
  return function(r, n) {
2431
2431
  var i = n.transform;
2432
2432
  if (i === "none" || !i)
2433
2433
  return 0;
2434
2434
  var s = i.match(/^matrix3d\((.+)\)$/);
2435
2435
  if (s)
2436
- return Cr(s[1], e);
2436
+ return Ar(s[1], e);
2437
2437
  var o = i.match(/^matrix\((.+)\)$/);
2438
- return o ? Cr(o[1], t) : 0;
2438
+ return o ? Ar(o[1], t) : 0;
2439
2439
  };
2440
- }, qo = /* @__PURE__ */ new Set(["x", "y", "z"]), Jo = Ft.filter(function(t) {
2441
- return !qo.has(t);
2440
+ }, ts = /* @__PURE__ */ new Set(["x", "y", "z"]), es = Bt.filter(function(t) {
2441
+ return !ts.has(t);
2442
2442
  });
2443
- function Qo(t) {
2443
+ function rs(t) {
2444
2444
  var e = [];
2445
- return Jo.forEach(function(r) {
2445
+ return es.forEach(function(r) {
2446
2446
  var n = t.getValue(r);
2447
2447
  n !== void 0 && (e.push([r, n.get()]), n.set(r.startsWith("scale") ? 1 : 0));
2448
2448
  }), e.length && t.syncRender(), e;
2449
2449
  }
2450
- var wr = {
2450
+ var Er = {
2451
2451
  // Dimensions
2452
2452
  width: function(t, e) {
2453
2453
  var r = t.x, n = e.paddingLeft, i = n === void 0 ? "0" : n, s = e.paddingRight, o = s === void 0 ? "0" : s;
@@ -2474,66 +2474,66 @@ var wr = {
2474
2474
  return parseFloat(n) + (r.max - r.min);
2475
2475
  },
2476
2476
  // Transform
2477
- x: Ar(4, 13),
2478
- y: Ar(5, 14)
2479
- }, ts = function(t, e, r) {
2477
+ x: wr(4, 13),
2478
+ y: wr(5, 14)
2479
+ }, ns = function(t, e, r) {
2480
2480
  var n = e.measureViewportBox(), i = e.getInstance(), s = getComputedStyle(i), o = s.display, a = {};
2481
2481
  o === "none" && e.setStaticValue("display", t.display || "block"), r.forEach(function(l) {
2482
- a[l] = wr[l](n, s);
2482
+ a[l] = Er[l](n, s);
2483
2483
  }), e.syncRender();
2484
2484
  var u = e.measureViewportBox();
2485
2485
  return r.forEach(function(l) {
2486
2486
  var f = e.getValue(l);
2487
- Yn(f, a[l]), t[l] = wr[l](u, s);
2487
+ kn(f, a[l]), t[l] = Er[l](u, s);
2488
2488
  }), t;
2489
- }, es = function(t, e, r, n) {
2489
+ }, is = function(t, e, r, n) {
2490
2490
  r === void 0 && (r = {}), n === void 0 && (n = {}), e = m({}, e), n = m({}, n);
2491
- var i = Object.keys(e).filter(Gn), s = [], o = !1, a = [];
2491
+ var i = Object.keys(e).filter(Yn), s = [], o = !1, a = [];
2492
2492
  if (i.forEach(function(f) {
2493
2493
  var v = t.getValue(f);
2494
2494
  if (t.hasValue(f)) {
2495
- var c = r[f], d = xt(c), p = e[f], h;
2496
- if (jt(p)) {
2495
+ var c = r[f], d = Ct(c), p = e[f], h;
2496
+ if (Ut(p)) {
2497
2497
  var g = p.length, b = p[0] === null ? 1 : 0;
2498
- c = p[b], d = xt(c);
2498
+ c = p[b], d = Ct(c);
2499
2499
  for (var P = b; P < g; P++)
2500
- h ? ct(xt(p[P]) === h, "All keyframes must be of the same type") : (h = xt(p[P]), ct(h === d || kt(d) && kt(h), "Keyframes must be of the same dimension as the current value"));
2500
+ h ? ct(Ct(p[P]) === h, "All keyframes must be of the same type") : (h = Ct(p[P]), ct(h === d || Xt(d) && Xt(h), "Keyframes must be of the same dimension as the current value"));
2501
2501
  } else
2502
- h = xt(p);
2502
+ h = Ct(p);
2503
2503
  if (d !== h)
2504
- if (kt(d) && kt(h)) {
2504
+ if (Xt(d) && Xt(h)) {
2505
2505
  var S = v.get();
2506
2506
  typeof S == "string" && v.set(parseFloat(S)), typeof p == "string" ? e[f] = parseFloat(p) : Array.isArray(p) && h === T && (e[f] = p.map(parseFloat));
2507
- } else d?.transform && h?.transform && (c === 0 || p === 0) ? c === 0 ? v.set(h.transform(c)) : e[f] = d.transform(p) : (o || (s = Qo(t), o = !0), a.push(f), n[f] = n[f] !== void 0 ? n[f] : e[f], Yn(v, p));
2507
+ } else d?.transform && h?.transform && (c === 0 || p === 0) ? c === 0 ? v.set(h.transform(c)) : e[f] = d.transform(p) : (o || (s = rs(t), o = !0), a.push(f), n[f] = n[f] !== void 0 ? n[f] : e[f], kn(v, p));
2508
2508
  }
2509
2509
  }), a.length) {
2510
- var u = a.indexOf("height") >= 0 ? window.pageYOffset : null, l = ts(e, t, a);
2510
+ var u = a.indexOf("height") >= 0 ? window.pageYOffset : null, l = ns(e, t, a);
2511
2511
  return s.length && s.forEach(function(f) {
2512
- var v = I(f, 2), c = v[0], d = v[1];
2512
+ var v = M(f, 2), c = v[0], d = v[1];
2513
2513
  t.getValue(c).set(d);
2514
2514
  }), t.syncRender(), u !== null && window.scrollTo({ top: u }), { target: l, transitionEnd: n };
2515
2515
  } else
2516
2516
  return { target: e, transitionEnd: n };
2517
2517
  };
2518
- function rs(t, e, r, n) {
2519
- return $o(e) ? es(t, e, r, n) : { target: e, transitionEnd: n };
2518
+ function as(t, e, r, n) {
2519
+ return Qo(e) ? is(t, e, r, n) : { target: e, transitionEnd: n };
2520
2520
  }
2521
- var ns = function(t, e, r, n) {
2522
- var i = Wo(t, e, n);
2523
- return e = i.target, n = i.transitionEnd, rs(t, e, r, n);
2521
+ var os = function(t, e, r, n) {
2522
+ var i = qo(t, e, n);
2523
+ return e = i.target, n = i.transitionEnd, as(t, e, r, n);
2524
2524
  };
2525
- function is(t) {
2525
+ function ss(t) {
2526
2526
  return window.getComputedStyle(t);
2527
2527
  }
2528
- var kn = {
2528
+ var Xn = {
2529
2529
  treeType: "dom",
2530
2530
  readValueFromInstance: function(t, e) {
2531
- if (Ut(e)) {
2532
- var r = Ne(e);
2531
+ if (Nt(e)) {
2532
+ var r = He(e);
2533
2533
  return r && r.default || 0;
2534
2534
  } else {
2535
- var n = is(t);
2536
- return (un(e) ? n.getPropertyValue(e) : n[e]) || 0;
2535
+ var n = ss(t);
2536
+ return (ln(e) ? n.getPropertyValue(e) : n[e]) || 0;
2537
2537
  }
2538
2538
  },
2539
2539
  sortNodePosition: function(t, e) {
@@ -2545,7 +2545,7 @@ var kn = {
2545
2545
  },
2546
2546
  measureViewportBox: function(t, e) {
2547
2547
  var r = e.transformPagePoint;
2548
- return Nn(t, r);
2548
+ return Hn(t, r);
2549
2549
  },
2550
2550
  /**
2551
2551
  * Reset the transform on the current Element. This is called as part
@@ -2572,33 +2572,33 @@ var kn = {
2572
2572
  makeTargetAnimatable: function(t, e, r, n) {
2573
2573
  var i = r.transformValues;
2574
2574
  n === void 0 && (n = !0);
2575
- var s = e.transition, o = e.transitionEnd, a = J(e, ["transition", "transitionEnd"]), u = lo(a, s || {}, t);
2575
+ var s = e.transition, o = e.transitionEnd, a = J(e, ["transition", "transitionEnd"]), u = vo(a, s || {}, t);
2576
2576
  if (i && (o && (o = i(o)), a && (a = i(a)), u && (u = i(u))), n) {
2577
- so(t, a, u);
2578
- var l = ns(t, a, u, o);
2577
+ fo(t, a, u);
2578
+ var l = os(t, a, u, o);
2579
2579
  o = l.transitionEnd, a = l.target;
2580
2580
  }
2581
2581
  return m({ transition: s, transitionEnd: o }, a);
2582
2582
  },
2583
- scrapeMotionValuesFromProps: je,
2583
+ scrapeMotionValuesFromProps: Be,
2584
2584
  build: function(t, e, r, n, i) {
2585
- t.isVisible !== void 0 && (e.style.visibility = t.isVisible ? "visible" : "hidden"), Ie(e, r, n, i.transformTemplate);
2585
+ t.isVisible !== void 0 && (e.style.visibility = t.isVisible ? "visible" : "hidden"), Oe(e, r, n, i.transformTemplate);
2586
2586
  },
2587
- render: pn
2588
- }, as = Hn(kn), os = Hn(m(m({}, kn), { getBaseTarget: function(t, e) {
2587
+ render: hn
2588
+ }, us = zn(Xn), ls = zn(m(m({}, Xn), { getBaseTarget: function(t, e) {
2589
2589
  return t[e];
2590
2590
  }, readValueFromInstance: function(t, e) {
2591
2591
  var r;
2592
- return Ut(e) ? ((r = Ne(e)) === null || r === void 0 ? void 0 : r.default) || 0 : (e = hn.has(e) ? e : dn(e), t.getAttribute(e));
2593
- }, scrapeMotionValuesFromProps: gn, build: function(t, e, r, n, i) {
2594
- Fe(e, r, n, i.transformTemplate);
2595
- }, render: mn })), ss = function(t, e) {
2596
- return Me(t) ? os(e, { enableHardwareAcceleration: !1 }) : as(e, { enableHardwareAcceleration: !0 });
2592
+ return Nt(e) ? ((r = He(e)) === null || r === void 0 ? void 0 : r.default) || 0 : (e = mn.has(e) ? e : pn(e), t.getAttribute(e));
2593
+ }, scrapeMotionValuesFromProps: yn, build: function(t, e, r, n, i) {
2594
+ je(e, r, n, i.transformTemplate);
2595
+ }, render: gn })), fs = function(t, e) {
2596
+ return Ie(t) ? ls(e, { enableHardwareAcceleration: !1 }) : us(e, { enableHardwareAcceleration: !0 });
2597
2597
  };
2598
- function Er(t, e) {
2598
+ function Lr(t, e) {
2599
2599
  return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
2600
2600
  }
2601
- var Ct = {
2601
+ var At = {
2602
2602
  correct: function(t, e) {
2603
2603
  if (!e.target)
2604
2604
  return t;
@@ -2607,49 +2607,49 @@ var Ct = {
2607
2607
  t = parseFloat(t);
2608
2608
  else
2609
2609
  return t;
2610
- var r = Er(t, e.target.x), n = Er(t, e.target.y);
2610
+ var r = Lr(t, e.target.x), n = Lr(t, e.target.y);
2611
2611
  return "".concat(r, "% ").concat(n, "%");
2612
2612
  }
2613
- }, Lr = "_$css", us = {
2613
+ }, Rr = "_$css", cs = {
2614
2614
  correct: function(t, e) {
2615
2615
  var r = e.treeScale, n = e.projectionDelta, i = t, s = t.includes("var("), o = [];
2616
- s && (t = t.replace(Kn, function(h) {
2617
- return o.push(h), Lr;
2616
+ s && (t = t.replace(Gn, function(h) {
2617
+ return o.push(h), Rr;
2618
2618
  }));
2619
- var a = yt.parse(t);
2619
+ var a = Pt.parse(t);
2620
2620
  if (a.length > 5)
2621
2621
  return i;
2622
- var u = yt.createTransformer(t), l = typeof a[0] != "number" ? 1 : 0, f = n.x.scale * r.x, v = n.y.scale * r.y;
2622
+ var u = Pt.createTransformer(t), l = typeof a[0] != "number" ? 1 : 0, f = n.x.scale * r.x, v = n.y.scale * r.y;
2623
2623
  a[0 + l] /= f, a[1 + l] /= v;
2624
2624
  var c = O(f, v, 0.5);
2625
2625
  typeof a[2 + l] == "number" && (a[2 + l] /= c), typeof a[3 + l] == "number" && (a[3 + l] /= c);
2626
2626
  var d = u(a);
2627
2627
  if (s) {
2628
2628
  var p = 0;
2629
- d = d.replace(Lr, function() {
2629
+ d = d.replace(Rr, function() {
2630
2630
  var h = o[p];
2631
2631
  return p++, h;
2632
2632
  });
2633
2633
  }
2634
2634
  return d;
2635
2635
  }
2636
- }, ls = (
2636
+ }, vs = (
2637
2637
  /** @class */
2638
2638
  function(t) {
2639
- Yr(e, t);
2639
+ Xr(e, t);
2640
2640
  function e() {
2641
2641
  return t !== null && t.apply(this, arguments) || this;
2642
2642
  }
2643
2643
  return e.prototype.componentDidMount = function() {
2644
2644
  var r = this, n = this.props, i = n.visualElement, s = n.layoutGroup, o = n.switchLayoutGroup, a = n.layoutId, u = i.projection;
2645
- ki(cs), u && (s?.group && s.group.add(u), o?.register && a && o.register(u), u.root.didUpdate(), u.addEventListener("animationComplete", function() {
2645
+ Zi(ps), u && (s?.group && s.group.add(u), o?.register && a && o.register(u), u.root.didUpdate(), u.addEventListener("animationComplete", function() {
2646
2646
  r.safeToRemove();
2647
2647
  }), u.setOptions(m(m({}, u.options), { onExitComplete: function() {
2648
2648
  return r.safeToRemove();
2649
- } }))), At.hasEverUpdated = !0;
2649
+ } }))), wt.hasEverUpdated = !0;
2650
2650
  }, e.prototype.getSnapshotBeforeUpdate = function(r) {
2651
2651
  var n = this, i = this.props, s = i.layoutDependency, o = i.visualElement, a = i.drag, u = i.isPresent, l = o.projection;
2652
- return l && (l.isPresent = u, a || r.layoutDependency !== s || s === void 0 ? l.willUpdate() : this.safeToRemove(), r.isPresent !== u && (u ? l.promote() : l.relegate() || $.postRender(function() {
2652
+ return l && (l.isPresent = u, a || r.layoutDependency !== s || s === void 0 ? l.willUpdate() : this.safeToRemove(), r.isPresent !== u && (u ? l.promote() : l.relegate() || Z.postRender(function() {
2653
2653
  var f;
2654
2654
  !((f = l.getStack()) === null || f === void 0) && f.members.length || n.safeToRemove();
2655
2655
  }))), null;
@@ -2665,31 +2665,31 @@ var Ct = {
2665
2665
  }, e.prototype.render = function() {
2666
2666
  return null;
2667
2667
  }, e;
2668
- }(Ee.Component)
2668
+ }(Le.Component)
2669
2669
  );
2670
- function fs(t) {
2671
- var e = I(Rn(), 2), r = e[0], n = e[1], i = F(De);
2672
- return Ee.createElement(ls, m({}, t, { layoutGroup: i, switchLayoutGroup: F(an), isPresent: r, safeToRemove: n }));
2670
+ function ds(t) {
2671
+ var e = M(Dn(), 2), r = e[0], n = e[1], i = F(Me);
2672
+ return Le.createElement(vs, m({}, t, { layoutGroup: i, switchLayoutGroup: F(on), isPresent: r, safeToRemove: n }));
2673
2673
  }
2674
- var cs = {
2675
- borderRadius: m(m({}, Ct), { applyTo: [
2674
+ var ps = {
2675
+ borderRadius: m(m({}, At), { applyTo: [
2676
2676
  "borderTopLeftRadius",
2677
2677
  "borderTopRightRadius",
2678
2678
  "borderBottomLeftRadius",
2679
2679
  "borderBottomRightRadius"
2680
2680
  ] }),
2681
- borderTopLeftRadius: Ct,
2682
- borderTopRightRadius: Ct,
2683
- borderBottomLeftRadius: Ct,
2684
- borderBottomRightRadius: Ct,
2685
- boxShadow: us
2686
- }, vs = {
2687
- measureLayout: fs
2681
+ borderTopLeftRadius: At,
2682
+ borderTopRightRadius: At,
2683
+ borderBottomLeftRadius: At,
2684
+ borderBottomRightRadius: At,
2685
+ boxShadow: cs
2686
+ }, hs = {
2687
+ measureLayout: ds
2688
2688
  };
2689
- function ds(t, e, r) {
2689
+ function ms(t, e, r) {
2690
2690
  r === void 0 && (r = {});
2691
- var n = tt(t) ? t : bt(t);
2692
- return Ke("", n, e, r), {
2691
+ var n = tt(t) ? t : vt(t);
2692
+ return Ge("", n, e, r), {
2693
2693
  stop: function() {
2694
2694
  return n.stop();
2695
2695
  },
@@ -2698,87 +2698,87 @@ function ds(t, e, r) {
2698
2698
  }
2699
2699
  };
2700
2700
  }
2701
- var Xn = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], ps = Xn.length, Rr = function(t) {
2701
+ var Wn = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], gs = Wn.length, Dr = function(t) {
2702
2702
  return typeof t == "string" ? parseFloat(t) : t;
2703
- }, Dr = function(t) {
2703
+ }, Mr = function(t) {
2704
2704
  return typeof t == "number" || T.test(t);
2705
2705
  };
2706
- function hs(t, e, r, n, i, s) {
2706
+ function ys(t, e, r, n, i, s) {
2707
2707
  var o, a, u, l;
2708
2708
  i ? (t.opacity = O(
2709
2709
  0,
2710
2710
  // (follow?.opacity as number) ?? 0,
2711
2711
  // TODO Reinstate this if only child
2712
2712
  (o = r.opacity) !== null && o !== void 0 ? o : 1,
2713
- ms(n)
2714
- ), t.opacityExit = O((a = e.opacity) !== null && a !== void 0 ? a : 1, 0, gs(n))) : s && (t.opacity = O((u = e.opacity) !== null && u !== void 0 ? u : 1, (l = r.opacity) !== null && l !== void 0 ? l : 1, n));
2715
- for (var f = 0; f < ps; f++) {
2716
- var v = "border".concat(Xn[f], "Radius"), c = Mr(e, v), d = Mr(r, v);
2713
+ bs(n)
2714
+ ), t.opacityExit = O((a = e.opacity) !== null && a !== void 0 ? a : 1, 0, Ps(n))) : s && (t.opacity = O((u = e.opacity) !== null && u !== void 0 ? u : 1, (l = r.opacity) !== null && l !== void 0 ? l : 1, n));
2715
+ for (var f = 0; f < gs; f++) {
2716
+ var v = "border".concat(Wn[f], "Radius"), c = Ir(e, v), d = Ir(r, v);
2717
2717
  if (!(c === void 0 && d === void 0)) {
2718
2718
  c || (c = 0), d || (d = 0);
2719
- var p = c === 0 || d === 0 || Dr(c) === Dr(d);
2720
- p ? (t[v] = Math.max(O(Rr(c), Rr(d), n), 0), (Dt.test(d) || Dt.test(c)) && (t[v] += "%")) : t[v] = d;
2719
+ var p = c === 0 || d === 0 || Mr(c) === Mr(d);
2720
+ p ? (t[v] = Math.max(O(Dr(c), Dr(d), n), 0), (Mt.test(d) || Mt.test(c)) && (t[v] += "%")) : t[v] = d;
2721
2721
  }
2722
2722
  }
2723
2723
  (e.rotate || r.rotate) && (t.rotate = O(e.rotate || 0, r.rotate || 0, n));
2724
2724
  }
2725
- function Mr(t, e) {
2725
+ function Ir(t, e) {
2726
2726
  var r;
2727
2727
  return (r = t[e]) !== null && r !== void 0 ? r : t.borderRadius;
2728
2728
  }
2729
- var ms = Wn(0, 0.5, Wr), gs = Wn(0.5, 0.95, Xr);
2730
- function Wn(t, e, r) {
2729
+ var bs = Zn(0, 0.5, $r), Ps = Zn(0.5, 0.95, Zr);
2730
+ function Zn(t, e, r) {
2731
2731
  return function(n) {
2732
- return n < t ? 0 : n > e ? 1 : r(me(t, e, n));
2732
+ return n < t ? 0 : n > e ? 1 : r(ge(t, e, n));
2733
2733
  };
2734
2734
  }
2735
- function Ir(t, e) {
2735
+ function Or(t, e) {
2736
2736
  t.min = e.min, t.max = e.max;
2737
2737
  }
2738
2738
  function Y(t, e) {
2739
- Ir(t.x, e.x), Ir(t.y, e.y);
2739
+ Or(t.x, e.x), Or(t.y, e.y);
2740
2740
  }
2741
- function Or(t, e, r, n, i) {
2741
+ function Fr(t, e, r, n, i) {
2742
2742
  return t -= e, t = Qt(t, 1 / r, n), i !== void 0 && (t = Qt(t, 1 / i, n)), t;
2743
2743
  }
2744
- function ys(t, e, r, n, i, s, o) {
2745
- if (e === void 0 && (e = 0), r === void 0 && (r = 1), n === void 0 && (n = 0.5), s === void 0 && (s = t), o === void 0 && (o = t), Dt.test(e)) {
2744
+ function Vs(t, e, r, n, i, s, o) {
2745
+ if (e === void 0 && (e = 0), r === void 0 && (r = 1), n === void 0 && (n = 0.5), s === void 0 && (s = t), o === void 0 && (o = t), Mt.test(e)) {
2746
2746
  e = parseFloat(e);
2747
2747
  var a = O(o.min, o.max, e / 100);
2748
2748
  e = a - o.min;
2749
2749
  }
2750
2750
  if (typeof e == "number") {
2751
2751
  var u = O(s.min, s.max, n);
2752
- t === s && (u -= e), t.min = Or(t.min, e, r, u, i), t.max = Or(t.max, e, r, u, i);
2752
+ t === s && (u -= e), t.min = Fr(t.min, e, r, u, i), t.max = Fr(t.max, e, r, u, i);
2753
2753
  }
2754
2754
  }
2755
- function Fr(t, e, r, n, i) {
2756
- var s = I(r, 3), o = s[0], a = s[1], u = s[2];
2757
- ys(t, e[o], e[a], e[u], e.scale, n, i);
2755
+ function jr(t, e, r, n, i) {
2756
+ var s = M(r, 3), o = s[0], a = s[1], u = s[2];
2757
+ Vs(t, e[o], e[a], e[u], e.scale, n, i);
2758
2758
  }
2759
- var bs = ["x", "scaleX", "originX"], Ps = ["y", "scaleY", "originY"];
2760
- function jr(t, e, r, n) {
2761
- Fr(t.x, e, bs, r?.x, n?.x), Fr(t.y, e, Ps, r?.y, n?.y);
2759
+ var Ts = ["x", "scaleX", "originX"], Ss = ["y", "scaleY", "originY"];
2760
+ function Br(t, e, r, n) {
2761
+ jr(t.x, e, Ts, r?.x, n?.x), jr(t.y, e, Ss, r?.y, n?.y);
2762
2762
  }
2763
- function Br(t) {
2763
+ function Ur(t) {
2764
2764
  return t.translate === 0 && t.scale === 1;
2765
2765
  }
2766
- function Zn(t) {
2767
- return Br(t.x) && Br(t.y);
2766
+ function $n(t) {
2767
+ return Ur(t.x) && Ur(t.y);
2768
2768
  }
2769
- function $n(t, e) {
2769
+ function qn(t, e) {
2770
2770
  return t.x.min === e.x.min && t.x.max === e.x.max && t.y.min === e.y.min && t.y.max === e.y.max;
2771
2771
  }
2772
- var Vs = (
2772
+ var xs = (
2773
2773
  /** @class */
2774
2774
  function() {
2775
2775
  function t() {
2776
2776
  this.members = [];
2777
2777
  }
2778
2778
  return t.prototype.add = function(e) {
2779
- Ge(this.members, e), e.scheduleRender();
2779
+ Ye(this.members, e), e.scheduleRender();
2780
2780
  }, t.prototype.remove = function(e) {
2781
- if (Ye(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
2781
+ if (ke(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
2782
2782
  var r = this.members[this.members.length - 1];
2783
2783
  r && this.promote(r);
2784
2784
  }
@@ -2816,7 +2816,7 @@ var Vs = (
2816
2816
  this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
2817
2817
  }, t;
2818
2818
  }()
2819
- ), Ts = "translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";
2819
+ ), Cs = "translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";
2820
2820
  function _r(t, e, r) {
2821
2821
  var n = t.x.translate / e.x, i = t.y.translate / e.y, s = "translate3d(".concat(n, "px, ").concat(i, "px, 0) ");
2822
2822
  if (s += "scale(".concat(1 / e.x, ", ").concat(1 / e.y, ") "), r) {
@@ -2824,26 +2824,26 @@ function _r(t, e, r) {
2824
2824
  o && (s += "rotate(".concat(o, "deg) ")), a && (s += "rotateX(".concat(a, "deg) ")), u && (s += "rotateY(".concat(u, "deg) "));
2825
2825
  }
2826
2826
  var l = t.x.scale * e.x, f = t.y.scale * e.y;
2827
- return s += "scale(".concat(l, ", ").concat(f, ")"), s === Ts ? "none" : s;
2827
+ return s += "scale(".concat(l, ", ").concat(f, ")"), s === Cs ? "none" : s;
2828
2828
  }
2829
- var Ss = function(t, e) {
2829
+ var As = function(t, e) {
2830
2830
  return t.depth - e.depth;
2831
- }, xs = (
2831
+ }, ws = (
2832
2832
  /** @class */
2833
2833
  function() {
2834
2834
  function t() {
2835
2835
  this.children = [], this.isDirty = !1;
2836
2836
  }
2837
2837
  return t.prototype.add = function(e) {
2838
- Ge(this.children, e), this.isDirty = !0;
2839
- }, t.prototype.remove = function(e) {
2840
2838
  Ye(this.children, e), this.isDirty = !0;
2839
+ }, t.prototype.remove = function(e) {
2840
+ ke(this.children, e), this.isDirty = !0;
2841
2841
  }, t.prototype.forEach = function(e) {
2842
- this.isDirty && this.children.sort(Ss), this.isDirty = !1, this.children.forEach(e);
2842
+ this.isDirty && this.children.sort(As), this.isDirty = !1, this.children.forEach(e);
2843
2843
  }, t;
2844
2844
  }()
2845
- ), Ur = 1e3;
2846
- function qn(t) {
2845
+ ), Nr = 1e3;
2846
+ function Jn(t) {
2847
2847
  var e = t.attachResizeListener, r = t.defaultParent, n = t.measureScroll, i = t.checkIsScrollRoot, s = t.resetTransform;
2848
2848
  return (
2849
2849
  /** @class */
@@ -2853,19 +2853,19 @@ function qn(t) {
2853
2853
  u === void 0 && (u = {}), l === void 0 && (l = r?.()), this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.potentialNodes = /* @__PURE__ */ new Map(), this.checkUpdateFailed = function() {
2854
2854
  f.isUpdating && (f.isUpdating = !1, f.clearAllSnapshots());
2855
2855
  }, this.updateProjection = function() {
2856
- f.nodes.forEach(Rs), f.nodes.forEach(Ds);
2857
- }, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.id = a, this.latestValues = u, this.root = l ? l.root || l : this, this.path = l ? W(W([], I(l.path), !1), [l], !1) : [], this.parent = l, this.depth = l ? l.depth + 1 : 0, a && this.root.registerPotentialNode(a, this);
2856
+ f.nodes.forEach(Is), f.nodes.forEach(Os);
2857
+ }, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.id = a, this.latestValues = u, this.root = l ? l.root || l : this, this.path = l ? W(W([], M(l.path), !1), [l], !1) : [], this.parent = l, this.depth = l ? l.depth + 1 : 0, a && this.root.registerPotentialNode(a, this);
2858
2858
  for (var v = 0; v < this.path.length; v++)
2859
2859
  this.path[v].shouldResetTransform = !0;
2860
- this.root === this && (this.nodes = new xs());
2860
+ this.root === this && (this.nodes = new ws());
2861
2861
  }
2862
2862
  return o.prototype.addEventListener = function(a, u) {
2863
- return this.eventHandlers.has(a) || this.eventHandlers.set(a, new wt()), this.eventHandlers.get(a).add(u);
2863
+ return this.eventHandlers.has(a) || this.eventHandlers.set(a, new Et()), this.eventHandlers.get(a).add(u);
2864
2864
  }, o.prototype.notifyListeners = function(a) {
2865
2865
  for (var u = [], l = 1; l < arguments.length; l++)
2866
2866
  u[l - 1] = arguments[l];
2867
2867
  var f = this.eventHandlers.get(a);
2868
- f?.notify.apply(f, W([], I(u), !1));
2868
+ f?.notify.apply(f, W([], M(u), !1));
2869
2869
  }, o.prototype.hasListeners = function(a) {
2870
2870
  return this.eventHandlers.has(a);
2871
2871
  }, o.prototype.registerPotentialNode = function(a, u) {
@@ -2880,28 +2880,28 @@ function qn(t) {
2880
2880
  return l.root.updateBlockedByResize = !1;
2881
2881
  };
2882
2882
  e(a, function() {
2883
- l.root.updateBlockedByResize = !0, clearTimeout(h), h = window.setTimeout(g, 250), At.hasAnimatedSinceResize && (At.hasAnimatedSinceResize = !1, l.nodes.forEach(Ls));
2883
+ l.root.updateBlockedByResize = !0, clearTimeout(h), h = window.setTimeout(g, 250), wt.hasAnimatedSinceResize && (wt.hasAnimatedSinceResize = !1, l.nodes.forEach(Ms));
2884
2884
  });
2885
2885
  }
2886
2886
  c && this.root.registerSharedNode(c, this), this.options.animate !== !1 && p && (c || d) && this.addEventListener("didUpdate", function(b) {
2887
- var P, S, C, A, M, R = b.delta, x = b.hasLayoutChanged, w = b.hasRelativeTargetChanged, D = b.layout;
2887
+ var P, S, C, A, I, R = b.delta, x = b.hasLayoutChanged, w = b.hasRelativeTargetChanged, D = b.layout;
2888
2888
  if (l.isTreeAnimationBlocked()) {
2889
2889
  l.target = void 0, l.relativeTarget = void 0;
2890
2890
  return;
2891
2891
  }
2892
- var H = (S = (P = l.options.transition) !== null && P !== void 0 ? P : p.getDefaultTransition()) !== null && S !== void 0 ? S : js, B = p.getProps(), N = B.onLayoutAnimationStart, rt = B.onLayoutAnimationComplete, nt = !l.targetLayout || !$n(l.targetLayout, D) || w, it = !x && w;
2892
+ var z = (S = (P = l.options.transition) !== null && P !== void 0 ? P : p.getDefaultTransition()) !== null && S !== void 0 ? S : _s, B = p.getProps(), N = B.onLayoutAnimationStart, rt = B.onLayoutAnimationComplete, nt = !l.targetLayout || !qn(l.targetLayout, D) || w, it = !x && w;
2893
2893
  if (!((C = l.resumeFrom) === null || C === void 0) && C.instance || it || x && (nt || !l.currentAnimation)) {
2894
2894
  l.resumeFrom && (l.resumingFrom = l.resumeFrom, l.resumingFrom.resumingFrom = void 0), l.setAnimationOrigin(R, it);
2895
- var z = m(m({}, ze(H, "layout")), { onPlay: N, onComplete: rt });
2896
- p.shouldReduceMotion && (z.delay = 0, z.type = !1), l.startAnimation(z);
2895
+ var K = m(m({}, Ke(z, "layout")), { onPlay: N, onComplete: rt });
2896
+ p.shouldReduceMotion && (K.delay = 0, K.type = !1), l.startAnimation(K);
2897
2897
  } else
2898
- !x && l.animationProgress === 0 && l.finishAnimation(), l.isLead() && ((M = (A = l.options).onExitComplete) === null || M === void 0 || M.call(A));
2898
+ !x && l.animationProgress === 0 && l.finishAnimation(), l.isLead() && ((I = (A = l.options).onExitComplete) === null || I === void 0 || I.call(A));
2899
2899
  l.targetLayout = D;
2900
2900
  });
2901
2901
  }
2902
2902
  }, o.prototype.unmount = function() {
2903
2903
  var a, u;
2904
- this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), (a = this.getStack()) === null || a === void 0 || a.remove(this), (u = this.parent) === null || u === void 0 || u.children.delete(this), this.instance = void 0, Mt.preRender(this.updateProjection);
2904
+ this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this), (a = this.getStack()) === null || a === void 0 || a.remove(this), (u = this.parent) === null || u === void 0 || u.children.delete(this), this.instance = void 0, It.preRender(this.updateProjection);
2905
2905
  }, o.prototype.blockUpdate = function() {
2906
2906
  this.updateManuallyBlocked = !0;
2907
2907
  }, o.prototype.unblockUpdate = function() {
@@ -2913,7 +2913,7 @@ function qn(t) {
2913
2913
  return this.isAnimationBlocked || ((a = this.parent) === null || a === void 0 ? void 0 : a.isTreeAnimationBlocked()) || !1;
2914
2914
  }, o.prototype.startUpdate = function() {
2915
2915
  var a;
2916
- this.isUpdateBlocked() || (this.isUpdating = !0, (a = this.nodes) === null || a === void 0 || a.forEach(Ms));
2916
+ this.isUpdateBlocked() || (this.isUpdating = !0, (a = this.nodes) === null || a === void 0 || a.forEach(Fs));
2917
2917
  }, o.prototype.willUpdate = function(a) {
2918
2918
  var u, l, f;
2919
2919
  if (a === void 0 && (a = !0), this.root.isUpdateBlocked()) {
@@ -2935,23 +2935,23 @@ function qn(t) {
2935
2935
  }, o.prototype.didUpdate = function() {
2936
2936
  var a = this.isUpdateBlocked();
2937
2937
  if (a) {
2938
- this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Nr);
2938
+ this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Hr);
2939
2939
  return;
2940
2940
  }
2941
- this.isUpdating && (this.isUpdating = !1, this.potentialNodes.size && (this.potentialNodes.forEach(Bs), this.potentialNodes.clear()), this.nodes.forEach(Es), this.nodes.forEach(Cs), this.nodes.forEach(As), this.clearAllSnapshots(), oe.update(), oe.preRender(), oe.render());
2941
+ this.isUpdating && (this.isUpdating = !1, this.potentialNodes.size && (this.potentialNodes.forEach(Ns), this.potentialNodes.clear()), this.nodes.forEach(Ds), this.nodes.forEach(Es), this.nodes.forEach(Ls), this.clearAllSnapshots(), se.update(), se.preRender(), se.render());
2942
2942
  }, o.prototype.clearAllSnapshots = function() {
2943
- this.nodes.forEach(ws), this.sharedNodes.forEach(Is);
2943
+ this.nodes.forEach(Rs), this.sharedNodes.forEach(js);
2944
2944
  }, o.prototype.scheduleUpdateProjection = function() {
2945
- $.preRender(this.updateProjection, !1, !0);
2945
+ Z.preRender(this.updateProjection, !1, !0);
2946
2946
  }, o.prototype.scheduleCheckAfterUnmount = function() {
2947
2947
  var a = this;
2948
- $.postRender(function() {
2948
+ Z.postRender(function() {
2949
2949
  a.isLayoutDirty ? a.root.didUpdate() : a.root.checkUpdateFailed();
2950
2950
  });
2951
2951
  }, o.prototype.updateSnapshot = function() {
2952
2952
  if (!(this.snapshot || !this.instance)) {
2953
2953
  var a = this.measure(), u = this.removeTransform(this.removeElementScroll(a));
2954
- Gr(u), this.snapshot = {
2954
+ Yr(u), this.snapshot = {
2955
2955
  measured: a,
2956
2956
  layout: u,
2957
2957
  latestValues: {}
@@ -2966,7 +2966,7 @@ function qn(t) {
2966
2966
  l.updateScroll();
2967
2967
  }
2968
2968
  var f = this.measure();
2969
- Gr(f);
2969
+ Yr(f);
2970
2970
  var v = this.layout;
2971
2971
  this.layout = {
2972
2972
  measured: f,
@@ -2978,7 +2978,7 @@ function qn(t) {
2978
2978
  }, o.prototype.resetTransform = function() {
2979
2979
  var a;
2980
2980
  if (s) {
2981
- var u = this.isLayoutDirty || this.shouldResetTransform, l = this.projectionDelta && !Zn(this.projectionDelta), f = (a = this.options.visualElement) === null || a === void 0 ? void 0 : a.getProps().transformTemplate, v = f?.(this.latestValues, ""), c = v !== this.prevTransformTemplateValue;
2981
+ var u = this.isLayoutDirty || this.shouldResetTransform, l = this.projectionDelta && !$n(this.projectionDelta), f = (a = this.options.visualElement) === null || a === void 0 ? void 0 : a.getProps().transformTemplate, v = f?.(this.latestValues, ""), c = v !== this.prevTransformTemplateValue;
2982
2982
  u && (l || ot(this.latestValues) || c) && (s(this.instance, v), this.shouldResetTransform = !1, this.scheduleRender());
2983
2983
  }
2984
2984
  }, o.prototype.measure = function() {
@@ -3008,12 +3008,12 @@ function qn(t) {
3008
3008
  Y(l, a);
3009
3009
  for (var f = 0; f < this.path.length; f++) {
3010
3010
  var v = this.path[f];
3011
- !u && v.options.layoutScroll && v.scroll && v !== v.root && mt(l, {
3011
+ !u && v.options.layoutScroll && v.scroll && v !== v.root && yt(l, {
3012
3012
  x: -v.scroll.x,
3013
3013
  y: -v.scroll.y
3014
- }), ot(v.latestValues) && mt(l, v.latestValues);
3014
+ }), ot(v.latestValues) && yt(l, v.latestValues);
3015
3015
  }
3016
- return ot(this.latestValues) && mt(l, this.latestValues), l;
3016
+ return ot(this.latestValues) && yt(l, this.latestValues), l;
3017
3017
  }, o.prototype.removeTransform = function(a) {
3018
3018
  var u, l = j();
3019
3019
  Y(l, a);
@@ -3022,10 +3022,10 @@ function qn(t) {
3022
3022
  if (v.instance && ot(v.latestValues)) {
3023
3023
  _n(v.latestValues) && v.updateSnapshot();
3024
3024
  var c = j(), d = v.measure();
3025
- Y(c, d), jr(l, v.latestValues, (u = v.snapshot) === null || u === void 0 ? void 0 : u.layout, c);
3025
+ Y(c, d), Br(l, v.latestValues, (u = v.snapshot) === null || u === void 0 ? void 0 : u.layout, c);
3026
3026
  }
3027
3027
  }
3028
- return ot(this.latestValues) && jr(l, this.latestValues), l;
3028
+ return ot(this.latestValues) && Br(l, this.latestValues), l;
3029
3029
  }, o.prototype.setTargetDelta = function(a) {
3030
3030
  this.targetDelta = a, this.root.scheduleUpdateProjection();
3031
3031
  }, o.prototype.setOptions = function(a) {
@@ -3035,7 +3035,7 @@ function qn(t) {
3035
3035
  this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
3036
3036
  }, o.prototype.resolveTargetDelta = function() {
3037
3037
  var a, u = this.options, l = u.layout, f = u.layoutId;
3038
- !this.layout || !(l || f) || (!this.targetDelta && !this.relativeTarget && (this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && this.relativeParent.layout && (this.relativeTarget = j(), this.relativeTargetOrigin = j(), Lt(this.relativeTargetOrigin, this.layout.actual, this.relativeParent.layout.actual), Y(this.relativeTarget, this.relativeTargetOrigin))), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = j(), this.targetWithTransforms = j()), this.relativeTarget && this.relativeTargetOrigin && (!((a = this.relativeParent) === null || a === void 0) && a.target) ? xo(this.target, this.relativeTarget, this.relativeParent.target) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.actual) : Y(this.target, this.layout.actual), Un(this.target, this.targetDelta)) : Y(this.target, this.layout.actual), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && !!this.relativeParent.resumingFrom == !!this.resumingFrom && !this.relativeParent.options.layoutScroll && this.relativeParent.target && (this.relativeTarget = j(), this.relativeTargetOrigin = j(), Lt(this.relativeTargetOrigin, this.target, this.relativeParent.target), Y(this.relativeTarget, this.relativeTargetOrigin)))));
3038
+ !this.layout || !(l || f) || (!this.targetDelta && !this.relativeTarget && (this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && this.relativeParent.layout && (this.relativeTarget = j(), this.relativeTargetOrigin = j(), Rt(this.relativeTargetOrigin, this.layout.actual, this.relativeParent.layout.actual), Y(this.relativeTarget, this.relativeTargetOrigin))), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = j(), this.targetWithTransforms = j()), this.relativeTarget && this.relativeTargetOrigin && (!((a = this.relativeParent) === null || a === void 0) && a.target) ? wo(this.target, this.relativeTarget, this.relativeParent.target) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.actual) : Y(this.target, this.layout.actual), Nn(this.target, this.targetDelta)) : Y(this.target, this.layout.actual), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.relativeParent = this.getClosestProjectingParent(), this.relativeParent && !!this.relativeParent.resumingFrom == !!this.resumingFrom && !this.relativeParent.options.layoutScroll && this.relativeParent.target && (this.relativeTarget = j(), this.relativeTargetOrigin = j(), Rt(this.relativeTargetOrigin, this.target, this.relativeParent.target), Y(this.relativeTarget, this.relativeTargetOrigin)))));
3039
3039
  }, o.prototype.getClosestProjectingParent = function() {
3040
3040
  if (!(!this.parent || ot(this.parent.latestValues)))
3041
3041
  return (this.parent.relativeTarget || this.parent.targetDelta) && this.parent.layout ? this.parent : this.parent.getClosestProjectingParent();
@@ -3043,12 +3043,12 @@ function qn(t) {
3043
3043
  var a, u = this.options, l = u.layout, f = u.layoutId;
3044
3044
  if (this.isTreeAnimating = !!(!((a = this.parent) === null || a === void 0) && a.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !(!this.layout || !(l || f))) {
3045
3045
  var v = this.getLead();
3046
- Y(this.layoutCorrected, this.layout.actual), Io(this.layoutCorrected, this.treeScale, this.path, !!this.resumingFrom || this !== v);
3046
+ Y(this.layoutCorrected, this.layout.actual), jo(this.layoutCorrected, this.treeScale, this.path, !!this.resumingFrom || this !== v);
3047
3047
  var c = v.target;
3048
3048
  if (c) {
3049
- this.projectionDelta || (this.projectionDelta = Rt(), this.projectionDeltaWithTransform = Rt());
3049
+ this.projectionDelta || (this.projectionDelta = Dt(), this.projectionDeltaWithTransform = Dt());
3050
3050
  var d = this.treeScale.x, p = this.treeScale.y, h = this.projectionTransform;
3051
- Et(this.projectionDelta, this.layoutCorrected, c, this.latestValues), this.projectionTransform = _r(this.projectionDelta, this.treeScale), (this.projectionTransform !== h || this.treeScale.x !== d || this.treeScale.y !== p) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", c));
3051
+ Lt(this.projectionDelta, this.layoutCorrected, c, this.latestValues), this.projectionTransform = _r(this.projectionDelta, this.treeScale), (this.projectionTransform !== h || this.treeScale.x !== d || this.treeScale.y !== p) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", c));
3052
3052
  }
3053
3053
  }
3054
3054
  }, o.prototype.hide = function() {
@@ -3061,17 +3061,17 @@ function qn(t) {
3061
3061
  }, o.prototype.setAnimationOrigin = function(a, u) {
3062
3062
  var l = this, f;
3063
3063
  u === void 0 && (u = !1);
3064
- var v = this.snapshot, c = v?.latestValues || {}, d = m({}, this.latestValues), p = Rt();
3064
+ var v = this.snapshot, c = v?.latestValues || {}, d = m({}, this.latestValues), p = Dt();
3065
3065
  this.relativeTarget = this.relativeTargetOrigin = void 0, this.attemptToResolveRelativeTarget = !u;
3066
- var h = j(), g = v?.isShared, b = (((f = this.getStack()) === null || f === void 0 ? void 0 : f.members.length) || 0) <= 1, P = !!(g && !b && this.options.crossfade === !0 && !this.path.some(Fs));
3066
+ var h = j(), g = v?.isShared, b = (((f = this.getStack()) === null || f === void 0 ? void 0 : f.members.length) || 0) <= 1, P = !!(g && !b && this.options.crossfade === !0 && !this.path.some(Us));
3067
3067
  this.animationProgress = 0, this.mixTargetDelta = function(S) {
3068
3068
  var C, A = S / 1e3;
3069
- Hr(p.x, a.x, A), Hr(p.y, a.y, A), l.setTargetDelta(p), l.relativeTarget && l.relativeTargetOrigin && l.layout && (!((C = l.relativeParent) === null || C === void 0) && C.layout) && (Lt(h, l.layout.actual, l.relativeParent.layout.actual), Os(l.relativeTarget, l.relativeTargetOrigin, h, A)), g && (l.animationValues = d, hs(d, c, l.latestValues, A, P, b)), l.root.scheduleUpdateProjection(), l.scheduleRender(), l.animationProgress = A;
3069
+ zr(p.x, a.x, A), zr(p.y, a.y, A), l.setTargetDelta(p), l.relativeTarget && l.relativeTargetOrigin && l.layout && (!((C = l.relativeParent) === null || C === void 0) && C.layout) && (Rt(h, l.layout.actual, l.relativeParent.layout.actual), Bs(l.relativeTarget, l.relativeTargetOrigin, h, A)), g && (l.animationValues = d, ys(d, c, l.latestValues, A, P, b)), l.root.scheduleUpdateProjection(), l.scheduleRender(), l.animationProgress = A;
3070
3070
  }, this.mixTargetDelta(0);
3071
3071
  }, o.prototype.startAnimation = function(a) {
3072
3072
  var u = this, l, f;
3073
- this.notifyListeners("animationStart"), (l = this.currentAnimation) === null || l === void 0 || l.stop(), this.resumingFrom && ((f = this.resumingFrom.currentAnimation) === null || f === void 0 || f.stop()), this.pendingAnimation && (Mt.update(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = $.update(function() {
3074
- At.hasAnimatedSinceResize = !0, u.currentAnimation = ds(0, Ur, m(m({}, a), { onUpdate: function(v) {
3073
+ this.notifyListeners("animationStart"), (l = this.currentAnimation) === null || l === void 0 || l.stop(), this.resumingFrom && ((f = this.resumingFrom.currentAnimation) === null || f === void 0 || f.stop()), this.pendingAnimation && (It.update(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = Z.update(function() {
3074
+ wt.hasAnimatedSinceResize = !0, u.currentAnimation = ms(0, Nr, m(m({}, a), { onUpdate: function(v) {
3075
3075
  var c;
3076
3076
  u.mixTargetDelta(v), (c = a.onUpdate) === null || c === void 0 || c.call(a, v);
3077
3077
  }, onComplete: function() {
@@ -3084,13 +3084,13 @@ function qn(t) {
3084
3084
  this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0), (a = this.getStack()) === null || a === void 0 || a.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
3085
3085
  }, o.prototype.finishAnimation = function() {
3086
3086
  var a;
3087
- this.currentAnimation && ((a = this.mixTargetDelta) === null || a === void 0 || a.call(this, Ur), this.currentAnimation.stop()), this.completeAnimation();
3087
+ this.currentAnimation && ((a = this.mixTargetDelta) === null || a === void 0 || a.call(this, Nr), this.currentAnimation.stop()), this.completeAnimation();
3088
3088
  }, o.prototype.applyTransformsToTarget = function() {
3089
3089
  var a = this.getLead(), u = a.targetWithTransforms, l = a.target, f = a.layout, v = a.latestValues;
3090
- !u || !l || !f || (Y(u, l), mt(u, v), Et(this.projectionDeltaWithTransform, this.layoutCorrected, u, v));
3090
+ !u || !l || !f || (Y(u, l), yt(u, v), Lt(this.projectionDeltaWithTransform, this.layoutCorrected, u, v));
3091
3091
  }, o.prototype.registerSharedNode = function(a, u) {
3092
3092
  var l, f, v;
3093
- this.sharedNodes.has(a) || this.sharedNodes.set(a, new Vs());
3093
+ this.sharedNodes.has(a) || this.sharedNodes.set(a, new xs());
3094
3094
  var c = this.sharedNodes.get(a);
3095
3095
  c.add(u), u.promote({
3096
3096
  transition: (l = u.options.initialPromotionConfig) === null || l === void 0 ? void 0 : l.transition,
@@ -3118,8 +3118,8 @@ function qn(t) {
3118
3118
  }, o.prototype.resetRotation = function() {
3119
3119
  var a = this.options.visualElement;
3120
3120
  if (a) {
3121
- for (var u = !1, l = {}, f = 0; f < be.length; f++) {
3122
- var v = be[f], c = "rotate" + v;
3121
+ for (var u = !1, l = {}, f = 0; f < Pe.length; f++) {
3122
+ var v = Pe[f], c = "rotate" + v;
3123
3123
  a.getStaticValue(c) && (u = !0, l[c] = a.getStaticValue(c), a.setStaticValue(c, 0));
3124
3124
  }
3125
3125
  if (u) {
@@ -3141,63 +3141,63 @@ function qn(t) {
3141
3141
  return { visibility: "hidden" };
3142
3142
  var h = (u = this.options.visualElement) === null || u === void 0 ? void 0 : u.getProps().transformTemplate;
3143
3143
  if (this.needsReset)
3144
- return this.needsReset = !1, p.opacity = "", p.pointerEvents = Xt(a.pointerEvents) || "", p.transform = h ? h(this.latestValues, "") : "none", p;
3144
+ return this.needsReset = !1, p.opacity = "", p.pointerEvents = Wt(a.pointerEvents) || "", p.transform = h ? h(this.latestValues, "") : "none", p;
3145
3145
  var g = this.getLead();
3146
3146
  if (!this.projectionDelta || !this.layout || !g.target) {
3147
3147
  var b = {};
3148
- return this.options.layoutId && (b.opacity = (l = this.latestValues.opacity) !== null && l !== void 0 ? l : 1, b.pointerEvents = Xt(a.pointerEvents) || ""), this.hasProjected && !ot(this.latestValues) && (b.transform = h ? h({}, "") : "none", this.hasProjected = !1), b;
3148
+ return this.options.layoutId && (b.opacity = (l = this.latestValues.opacity) !== null && l !== void 0 ? l : 1, b.pointerEvents = Wt(a.pointerEvents) || ""), this.hasProjected && !ot(this.latestValues) && (b.transform = h ? h({}, "") : "none", this.hasProjected = !1), b;
3149
3149
  }
3150
3150
  var P = g.animationValues || g.latestValues;
3151
3151
  this.applyTransformsToTarget(), p.transform = _r(this.projectionDeltaWithTransform, this.treeScale, P), h && (p.transform = h(P, p.transform));
3152
3152
  var S = this.projectionDelta, C = S.x, A = S.y;
3153
3153
  p.transformOrigin = "".concat(C.origin * 100, "% ").concat(A.origin * 100, "% 0"), g.animationValues ? p.opacity = g === this ? (v = (f = P.opacity) !== null && f !== void 0 ? f : this.latestValues.opacity) !== null && v !== void 0 ? v : 1 : this.preserveOpacity ? this.latestValues.opacity : P.opacityExit : p.opacity = g === this ? (c = P.opacity) !== null && c !== void 0 ? c : "" : (d = P.opacityExit) !== null && d !== void 0 ? d : 0;
3154
- for (var M in Zt)
3155
- if (P[M] !== void 0) {
3156
- var R = Zt[M], x = R.correct, w = R.applyTo, D = x(P[M], g);
3154
+ for (var I in Zt)
3155
+ if (P[I] !== void 0) {
3156
+ var R = Zt[I], x = R.correct, w = R.applyTo, D = x(P[I], g);
3157
3157
  if (w)
3158
- for (var H = w.length, B = 0; B < H; B++)
3158
+ for (var z = w.length, B = 0; B < z; B++)
3159
3159
  p[w[B]] = D;
3160
3160
  else
3161
- p[M] = D;
3161
+ p[I] = D;
3162
3162
  }
3163
- return this.options.layoutId && (p.pointerEvents = g === this ? Xt(a.pointerEvents) || "" : "none"), p;
3163
+ return this.options.layoutId && (p.pointerEvents = g === this ? Wt(a.pointerEvents) || "" : "none"), p;
3164
3164
  }, o.prototype.clearSnapshot = function() {
3165
3165
  this.resumeFrom = this.snapshot = void 0;
3166
3166
  }, o.prototype.resetTree = function() {
3167
3167
  this.root.nodes.forEach(function(a) {
3168
3168
  var u;
3169
3169
  return (u = a.currentAnimation) === null || u === void 0 ? void 0 : u.stop();
3170
- }), this.root.nodes.forEach(Nr), this.root.sharedNodes.clear();
3170
+ }), this.root.nodes.forEach(Hr), this.root.sharedNodes.clear();
3171
3171
  }, o;
3172
3172
  }()
3173
3173
  );
3174
3174
  }
3175
- function Cs(t) {
3175
+ function Es(t) {
3176
3176
  t.updateLayout();
3177
3177
  }
3178
- function As(t) {
3178
+ function Ls(t) {
3179
3179
  var e, r, n, i, s = (r = (e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) !== null && r !== void 0 ? r : t.snapshot;
3180
3180
  if (t.isLead() && t.layout && s && t.hasListeners("didUpdate")) {
3181
3181
  var o = t.layout, a = o.actual, u = o.measured;
3182
- t.options.animationType === "size" ? Z(function(P) {
3182
+ t.options.animationType === "size" ? $(function(P) {
3183
3183
  var S = s.isShared ? s.measured[P] : s.layout[P], C = et(S);
3184
3184
  S.min = a[P].min, S.max = S.min + C;
3185
- }) : t.options.animationType === "position" && Z(function(P) {
3185
+ }) : t.options.animationType === "position" && $(function(P) {
3186
3186
  var S = s.isShared ? s.measured[P] : s.layout[P], C = et(a[P]);
3187
3187
  S.max = S.min + C;
3188
3188
  });
3189
- var l = Rt();
3190
- Et(l, a, s.layout);
3191
- var f = Rt();
3192
- s.isShared ? Et(f, t.applyTransform(u, !0), s.measured) : Et(f, a, s.layout);
3193
- var v = !Zn(l), c = !1;
3189
+ var l = Dt();
3190
+ Lt(l, a, s.layout);
3191
+ var f = Dt();
3192
+ s.isShared ? Lt(f, t.applyTransform(u, !0), s.measured) : Lt(f, a, s.layout);
3193
+ var v = !$n(l), c = !1;
3194
3194
  if (!t.resumeFrom && (t.relativeParent = t.getClosestProjectingParent(), t.relativeParent && !t.relativeParent.resumeFrom)) {
3195
3195
  var d = t.relativeParent, p = d.snapshot, h = d.layout;
3196
3196
  if (p && h) {
3197
3197
  var g = j();
3198
- Lt(g, s.layout, p.layout);
3198
+ Rt(g, s.layout, p.layout);
3199
3199
  var b = j();
3200
- Lt(b, a, h.actual), $n(g, b) || (c = !0);
3200
+ Rt(b, a, h.actual), qn(g, b) || (c = !0);
3201
3201
  }
3202
3202
  }
3203
3203
  t.notifyListeners("didUpdate", {
@@ -3211,48 +3211,48 @@ function As(t) {
3211
3211
  } else t.isLead() && ((i = (n = t.options).onExitComplete) === null || i === void 0 || i.call(n));
3212
3212
  t.options.transition = void 0;
3213
3213
  }
3214
- function ws(t) {
3214
+ function Rs(t) {
3215
3215
  t.clearSnapshot();
3216
3216
  }
3217
- function Nr(t) {
3217
+ function Hr(t) {
3218
3218
  t.clearMeasurements();
3219
3219
  }
3220
- function Es(t) {
3220
+ function Ds(t) {
3221
3221
  var e = t.options.visualElement;
3222
3222
  e?.getProps().onBeforeLayoutMeasure && e.notifyBeforeLayoutMeasure(), t.resetTransform();
3223
3223
  }
3224
- function Ls(t) {
3224
+ function Ms(t) {
3225
3225
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0;
3226
3226
  }
3227
- function Rs(t) {
3227
+ function Is(t) {
3228
3228
  t.resolveTargetDelta();
3229
3229
  }
3230
- function Ds(t) {
3230
+ function Os(t) {
3231
3231
  t.calcProjection();
3232
3232
  }
3233
- function Ms(t) {
3233
+ function Fs(t) {
3234
3234
  t.resetRotation();
3235
3235
  }
3236
- function Is(t) {
3236
+ function js(t) {
3237
3237
  t.removeLeadSnapshot();
3238
3238
  }
3239
- function Hr(t, e, r) {
3239
+ function zr(t, e, r) {
3240
3240
  t.translate = O(e.translate, 0, r), t.scale = O(e.scale, 1, r), t.origin = e.origin, t.originPoint = e.originPoint;
3241
3241
  }
3242
- function zr(t, e, r, n) {
3242
+ function Kr(t, e, r, n) {
3243
3243
  t.min = O(e.min, r.min, n), t.max = O(e.max, r.max, n);
3244
3244
  }
3245
- function Os(t, e, r, n) {
3246
- zr(t.x, e.x, r.x, n), zr(t.y, e.y, r.y, n);
3245
+ function Bs(t, e, r, n) {
3246
+ Kr(t.x, e.x, r.x, n), Kr(t.y, e.y, r.y, n);
3247
3247
  }
3248
- function Fs(t) {
3248
+ function Us(t) {
3249
3249
  return t.animationValues && t.animationValues.opacityExit !== void 0;
3250
3250
  }
3251
- var js = {
3251
+ var _s = {
3252
3252
  duration: 0.45,
3253
3253
  ease: [0.4, 0, 0.1, 1]
3254
3254
  };
3255
- function Bs(t, e) {
3255
+ function Ns(t, e) {
3256
3256
  for (var r = t.root, n = t.path.length - 1; n >= 0; n--)
3257
3257
  if (t.path[n].instance) {
3258
3258
  r = t.path[n];
@@ -3261,15 +3261,15 @@ function Bs(t, e) {
3261
3261
  var i = r && r !== t.root ? r.instance : document, s = i.querySelector('[data-projection-id="'.concat(e, '"]'));
3262
3262
  s && t.mount(s, !0);
3263
3263
  }
3264
- function Kr(t) {
3264
+ function Gr(t) {
3265
3265
  t.min = Math.round(t.min), t.max = Math.round(t.max);
3266
3266
  }
3267
- function Gr(t) {
3268
- Kr(t.x), Kr(t.y);
3267
+ function Yr(t) {
3268
+ Gr(t.x), Gr(t.y);
3269
3269
  }
3270
- var _s = qn({
3270
+ var Hs = Jn({
3271
3271
  attachResizeListener: function(t, e) {
3272
- return ne(t, "resize", e);
3272
+ return ie(t, "resize", e);
3273
3273
  },
3274
3274
  measureScroll: function() {
3275
3275
  return {
@@ -3280,9 +3280,9 @@ var _s = qn({
3280
3280
  checkIsScrollRoot: function() {
3281
3281
  return !0;
3282
3282
  }
3283
- }), ve = {
3283
+ }), de = {
3284
3284
  current: void 0
3285
- }, Us = qn({
3285
+ }, zs = Jn({
3286
3286
  measureScroll: function(t) {
3287
3287
  return {
3288
3288
  x: t.scrollLeft,
@@ -3290,11 +3290,11 @@ var _s = qn({
3290
3290
  };
3291
3291
  },
3292
3292
  defaultParent: function() {
3293
- if (!ve.current) {
3294
- var t = new _s(0, {});
3295
- t.mount(window), t.setOptions({ layoutScroll: !0 }), ve.current = t;
3293
+ if (!de.current) {
3294
+ var t = new Hs(0, {});
3295
+ t.mount(window), t.setOptions({ layoutScroll: !0 }), de.current = t;
3296
3296
  }
3297
- return ve.current;
3297
+ return de.current;
3298
3298
  },
3299
3299
  resetTransform: function(t, e) {
3300
3300
  t.style.transform = e ?? "none";
@@ -3302,27 +3302,27 @@ var _s = qn({
3302
3302
  checkIsScrollRoot: function(t) {
3303
3303
  return window.getComputedStyle(t).position === "fixed";
3304
3304
  }
3305
- }), Ns = m(m(m(m({}, Vo), Ua), zo), vs), Xs = /* @__PURE__ */ Gi(function(t, e) {
3306
- return ya(t, e, Ns, ss, Us);
3305
+ }), Ks = m(m(m(m({}, xo), za), Yo), hs), eu = /* @__PURE__ */ Xi(function(t, e) {
3306
+ return Va(t, e, Ks, fs, zs);
3307
3307
  });
3308
- function Jn() {
3308
+ function Qn() {
3309
3309
  var t = q(!1);
3310
- return Wt(function() {
3310
+ return jt(function() {
3311
3311
  return t.current = !0, function() {
3312
3312
  t.current = !1;
3313
3313
  };
3314
3314
  }, []), t;
3315
3315
  }
3316
- function Hs() {
3317
- var t = Jn(), e = I(qr(0), 2), r = e[0], n = e[1], i = ge(function() {
3316
+ function Gs() {
3317
+ var t = Qn(), e = M(Re(0), 2), r = e[0], n = e[1], i = ye(function() {
3318
3318
  t.current && n(r + 1);
3319
- }, [r]), s = ge(function() {
3320
- return $.postRender(i);
3319
+ }, [r]), s = ye(function() {
3320
+ return Z.postRender(i);
3321
3321
  }, [i]);
3322
3322
  return [s, r];
3323
3323
  }
3324
- var de = function(t) {
3325
- var e = t.children, r = t.initial, n = t.isPresent, i = t.onExitComplete, s = t.custom, o = t.presenceAffectsLayout, a = _t(zs), u = Ln(), l = It(
3324
+ var pe = function(t) {
3325
+ var e = t.children, r = t.initial, n = t.isPresent, i = t.onExitComplete, s = t.custom, o = t.presenceAffectsLayout, a = dt(Ys), u = Rn(), l = Ot(
3326
3326
  function() {
3327
3327
  return {
3328
3328
  id: u,
@@ -3333,7 +3333,7 @@ var de = function(t) {
3333
3333
  var v, c;
3334
3334
  a.set(f, !0);
3335
3335
  try {
3336
- for (var d = yi(a.values()), p = d.next(); !p.done; p = d.next()) {
3336
+ for (var d = Pi(a.values()), p = d.next(); !p.done; p = d.next()) {
3337
3337
  var h = p.value;
3338
3338
  if (!h)
3339
3339
  return;
@@ -3363,54 +3363,54 @@ var de = function(t) {
3363
3363
  */
3364
3364
  o ? void 0 : [n]
3365
3365
  );
3366
- return It(function() {
3366
+ return Ot(function() {
3367
3367
  a.forEach(function(f, v) {
3368
3368
  return a.set(v, !1);
3369
3369
  });
3370
- }, [n]), K.useEffect(function() {
3370
+ }, [n]), G.useEffect(function() {
3371
3371
  !n && !a.size && i?.();
3372
- }, [n]), K.createElement(Bt.Provider, { value: l }, e);
3372
+ }, [n]), G.createElement(_t.Provider, { value: l }, e);
3373
3373
  };
3374
- function zs() {
3374
+ function Ys() {
3375
3375
  return /* @__PURE__ */ new Map();
3376
3376
  }
3377
- var pt = function(t) {
3377
+ var mt = function(t) {
3378
3378
  return t.key || "";
3379
3379
  };
3380
- function Ks(t, e) {
3380
+ function ks(t, e) {
3381
3381
  t.forEach(function(r) {
3382
- var n = pt(r);
3382
+ var n = mt(r);
3383
3383
  e.set(n, r);
3384
3384
  });
3385
3385
  }
3386
- function Gs(t) {
3386
+ function Xs(t) {
3387
3387
  var e = [];
3388
- return Si.forEach(t, function(r) {
3389
- xi(r) && e.push(r);
3388
+ return Ai.forEach(t, function(r) {
3389
+ wi(r) && e.push(r);
3390
3390
  }), e;
3391
3391
  }
3392
- var Ws = function(t) {
3393
- var e = t.children, r = t.custom, n = t.initial, i = n === void 0 ? !0 : n, s = t.onExitComplete, o = t.exitBeforeEnter, a = t.presenceAffectsLayout, u = a === void 0 ? !0 : a, l = I(Hs(), 1), f = l[0], v = F(De).forceRender;
3392
+ var ru = function(t) {
3393
+ var e = t.children, r = t.custom, n = t.initial, i = n === void 0 ? !0 : n, s = t.onExitComplete, o = t.exitBeforeEnter, a = t.presenceAffectsLayout, u = a === void 0 ? !0 : a, l = M(Gs(), 1), f = l[0], v = F(Me).forceRender;
3394
3394
  v && (f = v);
3395
- var c = Jn(), d = Gs(e), p = d, h = /* @__PURE__ */ new Set(), g = q(p), b = q(/* @__PURE__ */ new Map()).current, P = q(!0);
3396
- if (Wt(function() {
3397
- P.current = !1, Ks(d, b), g.current = p;
3398
- }), Ue(function() {
3395
+ var c = Qn(), d = Xs(e), p = d, h = /* @__PURE__ */ new Set(), g = q(p), b = q(/* @__PURE__ */ new Map()).current, P = q(!0);
3396
+ if (jt(function() {
3397
+ P.current = !1, ks(d, b), g.current = p;
3398
+ }), Ne(function() {
3399
3399
  P.current = !0, b.clear(), h.clear();
3400
3400
  }), P.current)
3401
- return K.createElement(K.Fragment, null, p.map(function(x) {
3402
- return K.createElement(de, { key: pt(x), isPresent: !0, initial: i ? void 0 : !1, presenceAffectsLayout: u }, x);
3401
+ return G.createElement(G.Fragment, null, p.map(function(x) {
3402
+ return G.createElement(pe, { key: mt(x), isPresent: !0, initial: i ? void 0 : !1, presenceAffectsLayout: u }, x);
3403
3403
  }));
3404
- p = W([], I(p), !1);
3405
- for (var S = g.current.map(pt), C = d.map(pt), A = S.length, M = 0; M < A; M++) {
3406
- var R = S[M];
3404
+ p = W([], M(p), !1);
3405
+ for (var S = g.current.map(mt), C = d.map(mt), A = S.length, I = 0; I < A; I++) {
3406
+ var R = S[I];
3407
3407
  C.indexOf(R) === -1 && h.add(R);
3408
3408
  }
3409
3409
  return o && h.size && (p = []), h.forEach(function(x) {
3410
3410
  if (C.indexOf(x) === -1) {
3411
3411
  var w = b.get(x);
3412
3412
  if (w) {
3413
- var D = S.indexOf(x), H = function() {
3413
+ var D = S.indexOf(x), z = function() {
3414
3414
  b.delete(x), h.delete(x);
3415
3415
  var B = g.current.findIndex(function(N) {
3416
3416
  return N.key === x;
@@ -3421,17 +3421,96 @@ var Ws = function(t) {
3421
3421
  f(), s && s();
3422
3422
  }
3423
3423
  };
3424
- p.splice(D, 0, K.createElement(de, { key: pt(w), isPresent: !1, onExitComplete: H, custom: r, presenceAffectsLayout: u }, w));
3424
+ p.splice(D, 0, G.createElement(pe, { key: mt(w), isPresent: !1, onExitComplete: z, custom: r, presenceAffectsLayout: u }, w));
3425
3425
  }
3426
3426
  }
3427
3427
  }), p = p.map(function(x) {
3428
3428
  var w = x.key;
3429
- return h.has(w) ? x : K.createElement(de, { key: pt(x), isPresent: !0, presenceAffectsLayout: u }, x);
3430
- }), Le !== "production" && o && p.length > 1 && console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."), K.createElement(K.Fragment, null, h.size ? p : p.map(function(x) {
3431
- return Ti(x);
3429
+ return h.has(w) ? x : G.createElement(pe, { key: mt(x), isPresent: !0, presenceAffectsLayout: u }, x);
3430
+ }), De !== "production" && o && p.length > 1 && console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."), G.createElement(G.Fragment, null, h.size ? p : p.map(function(x) {
3431
+ return Ci(x);
3432
3432
  }));
3433
3433
  };
3434
+ function Ws(t) {
3435
+ var e = dt(function() {
3436
+ return vt(t);
3437
+ }), r = F(te).isStatic;
3438
+ if (r) {
3439
+ var n = M(Re(t), 2), i = n[1];
3440
+ H(function() {
3441
+ return e.onChange(i);
3442
+ }, []);
3443
+ }
3444
+ return e;
3445
+ }
3446
+ var Zs = function(t) {
3447
+ return typeof t == "object" && t.mix;
3448
+ }, $s = function(t) {
3449
+ return Zs(t) ? t.mix : void 0;
3450
+ };
3451
+ function qs() {
3452
+ for (var t = [], e = 0; e < arguments.length; e++)
3453
+ t[e] = arguments[e];
3454
+ var r = !Array.isArray(t[0]), n = r ? 0 : -1, i = t[0 + n], s = t[1 + n], o = t[2 + n], a = t[3 + n], u = Vi(s, o, m({ mixer: $s(o[0]) }, a));
3455
+ return r ? u(i) : u;
3456
+ }
3457
+ function Js(t, e) {
3458
+ jt(function() {
3459
+ var r = t.map(function(n) {
3460
+ return n.onChange(e);
3461
+ });
3462
+ return function() {
3463
+ return r.forEach(function(n) {
3464
+ return n();
3465
+ });
3466
+ };
3467
+ });
3468
+ }
3469
+ function ti(t, e) {
3470
+ var r = Ws(e()), n = function() {
3471
+ return r.set(e());
3472
+ };
3473
+ return n(), Js(t, function() {
3474
+ return Z.update(n, !1, !0);
3475
+ }), r;
3476
+ }
3477
+ function nu(t, e, r, n) {
3478
+ var i = typeof e == "function" ? e : qs(e, r, n);
3479
+ return Array.isArray(t) ? kr(t, i) : kr([t], function(s) {
3480
+ var o = M(s, 1), a = o[0];
3481
+ return i(a);
3482
+ });
3483
+ }
3484
+ function kr(t, e) {
3485
+ var r = dt(function() {
3486
+ return [];
3487
+ });
3488
+ return ti(t, function() {
3489
+ r.length = 0;
3490
+ for (var n = t.length, i = 0; i < n; i++)
3491
+ r[i] = t[i].get();
3492
+ return e(r);
3493
+ });
3494
+ }
3495
+ function iu(t) {
3496
+ for (var e = [], r = 1; r < arguments.length; r++)
3497
+ e[r - 1] = arguments[r];
3498
+ var n = t.length;
3499
+ function i() {
3500
+ for (var s = "", o = 0; o < n; o++) {
3501
+ s += t[o];
3502
+ var a = e[o];
3503
+ a && (s += e[o].get());
3504
+ }
3505
+ return s;
3506
+ }
3507
+ return ti(e, i);
3508
+ }
3434
3509
  export {
3435
- Ws as A,
3436
- Xs as m
3510
+ ru as A,
3511
+ nu as a,
3512
+ iu as b,
3513
+ ms as c,
3514
+ eu as m,
3515
+ Ws as u
3437
3516
  };