@ukpc-lib/react 0.1.10 → 0.1.11

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 (46) hide show
  1. package/dist/components/index.cjs +6 -6
  2. package/dist/components/index.js +1077 -976
  3. package/dist/{interceptor.const-3d8c3adc.js → react-svg.esm-8385cab5.js} +639 -638
  4. package/dist/{interceptor.const-abe41a95.cjs → react-svg.esm-a6f3a530.cjs} +3 -3
  5. package/dist/share/index.cjs +1 -1
  6. package/dist/share/index.js +1 -1
  7. package/dist/src/components/GlobalMenu/helpers/index.d.ts +0 -0
  8. package/package.json +1 -1
  9. package/web-components-bundle/global-menu/index.cjs +11 -11
  10. package/web-components-bundle/global-menu/index.js +7136 -7034
  11. package/web-components-bundle/global-topbar/index.cjs +1 -1
  12. package/web-components-bundle/global-topbar/index.js +1 -1
  13. package/web-components-bundle/{index-6ba7e1d4.js → index-4b7988de.js} +3 -3
  14. package/web-components-bundle/{index-447756c6.cjs → index-9fa798a7.cjs} +1 -1
  15. package/dist/components/GlobalMenu/helpers/index.d.ts +0 -3
  16. /package/dist/{interceptor.css → react-svg.css} +0 -0
  17. /package/dist/{components → src/components}/GlobalMenu/components/Dropdown.d.ts +0 -0
  18. /package/dist/{components → src/components}/GlobalMenu/components/MenuItem.d.ts +0 -0
  19. /package/dist/{components → src/components}/GlobalMenu/icons/IconCollapsed.d.ts +0 -0
  20. /package/dist/{components → src/components}/GlobalMenu/icons/IconDown.d.ts +0 -0
  21. /package/dist/{components → src/components}/GlobalMenu/icons/IconExpand.d.ts +0 -0
  22. /package/dist/{components → src/components}/GlobalMenu/icons/IconLogout.d.ts +0 -0
  23. /package/dist/{components → src/components}/GlobalMenu/index.d.ts +0 -0
  24. /package/dist/{components → src/components}/GlobalMenu/models/MenuItemDto.d.ts +0 -0
  25. /package/dist/{components → src/components}/GlobalMenu/models/index.d.ts +0 -0
  26. /package/dist/{components → src/components}/LanguageSwitcher/index.d.ts +0 -0
  27. /package/dist/{components → src/components}/LogoutConfirmModal/index.d.ts +0 -0
  28. /package/dist/{components → src/components}/ShadownDom/index.d.ts +0 -0
  29. /package/dist/{components → src/components}/Toast/ToastConfig.d.ts +0 -0
  30. /package/dist/{components → src/components}/Toast/icons/ErrorIcon.d.ts +0 -0
  31. /package/dist/{components → src/components}/Toast/icons/SuccessIcon.d.ts +0 -0
  32. /package/dist/{components → src/components}/Toast/icons/WarningIcon.d.ts +0 -0
  33. /package/dist/{components → src/components}/Toast/index.d.ts +0 -0
  34. /package/dist/{components → src/components}/Topbar/icons/MessageIcon.d.ts +0 -0
  35. /package/dist/{components → src/components}/Topbar/icons/NotificationIcon.d.ts +0 -0
  36. /package/dist/{components → src/components}/Topbar/index.d.ts +0 -0
  37. /package/dist/{components → src/components}/index.d.ts +0 -0
  38. /package/dist/{share → src/share}/AuthProvider/index.d.ts +0 -0
  39. /package/dist/{share → src/share}/hooks/index.d.ts +0 -0
  40. /package/dist/{share → src/share}/hooks/useGetPermission.d.ts +0 -0
  41. /package/dist/{share → src/share}/index.d.ts +0 -0
  42. /package/dist/{share → src/share}/interceptor/index.d.ts +0 -0
  43. /package/dist/{share → src/share}/interceptor/interceptor.const.d.ts +0 -0
  44. /package/dist/{share → src/share}/permissions/HasPermission.d.ts +0 -0
  45. /package/dist/{share → src/share}/permissions/PermissionRoute.d.ts +0 -0
  46. /package/dist/{share → src/share}/permissions/index.d.ts +0 -0
@@ -1,14 +1,14 @@
1
- import { jsxs as B, Fragment as Fi, jsx as w } from "react/jsx-runtime";
1
+ import { jsxs as R, Fragment as Ii, jsx as w } from "react/jsx-runtime";
2
2
  import * as D from "react";
3
- import zi, { useState as K, useRef as Et, useEffect as Xt, createContext as Dt, useLayoutEffect as Wi, useContext as W, useInsertionEffect as kr, useCallback as Cr, useMemo as be, forwardRef as Vr, createElement as _i, useId as Er } from "react";
4
- import { C as Mr, g as Or, R as Dr, Q as Lr, p as Rr, l as Br } from "../interceptor.const-3d8c3adc.js";
5
- import { a as lh, b as ch } from "../interceptor.const-3d8c3adc.js";
6
- import { Link as Nr, useLocation as jr } from "react-router-dom";
7
- import { createPortal as Ir } from "react-dom";
8
- import Fr from "axios";
3
+ import Fi, { useState as K, useRef as Et, useEffect as Xt, createContext as Dt, useLayoutEffect as zi, useContext as _, useInsertionEffect as kr, useCallback as Cr, useMemo as be, forwardRef as Vr, createElement as Wi, useId as Er } from "react";
4
+ import { C as Mr, g as Or, Q as Dr, R as Lr, p as Rr, l as jr } from "../react-svg.esm-8385cab5.js";
5
+ import { a as Ah, b as kh } from "../react-svg.esm-8385cab5.js";
6
+ import Br from "axios";
7
+ import { Link as Nr, useLocation as Ir } from "react-router-dom";
8
+ import { createPortal as Fr } from "react-dom";
9
9
  const zr = `.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#ffffff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px}.confirm-btn{background:#e01b00!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}
10
10
  `;
11
- function Ui({
11
+ function _i({
12
12
  isOpen: t,
13
13
  onClose: e,
14
14
  onConfirm: n
@@ -19,12 +19,12 @@ function Ui({
19
19
  var o;
20
20
  ((o = s.target) == null ? void 0 : o.id) === "modal-wrapper" && e();
21
21
  }
22
- return /* @__PURE__ */ B(Fi, { children: [
22
+ return /* @__PURE__ */ R(Ii, { children: [
23
23
  /* @__PURE__ */ w("style", { type: "text/css", children: zr }),
24
- /* @__PURE__ */ w("div", { onClick: i, className: "modal-overlay", id: "modal-wrapper", children: /* @__PURE__ */ B("div", { className: "modal-container", children: [
24
+ /* @__PURE__ */ w("div", { onClick: i, className: "modal-overlay", id: "modal-wrapper", children: /* @__PURE__ */ R("div", { className: "modal-container", children: [
25
25
  /* @__PURE__ */ w("h3", { className: "modal-title", children: "Log out" }),
26
26
  /* @__PURE__ */ w("p", { className: "text-sm", children: "Are you sure want to log out?" }),
27
- /* @__PURE__ */ B("div", { className: "modal-footer", children: [
27
+ /* @__PURE__ */ R("div", { className: "modal-footer", children: [
28
28
  /* @__PURE__ */ w("button", { className: "modal-button", onClick: e, children: "Cancel" }),
29
29
  /* @__PURE__ */ w(
30
30
  "button",
@@ -39,7 +39,7 @@ function Ui({
39
39
  ] });
40
40
  }
41
41
  function Wr({ primaryColor: t = "#009d4f" }) {
42
- return /* @__PURE__ */ B(
42
+ return /* @__PURE__ */ R(
43
43
  "svg",
44
44
  {
45
45
  xmlns: "http://www.w3.org/2000/svg",
@@ -96,7 +96,7 @@ function Wr({ primaryColor: t = "#009d4f" }) {
96
96
  function _r({
97
97
  primaryColor: t = "#009d4f"
98
98
  }) {
99
- return /* @__PURE__ */ B(
99
+ return /* @__PURE__ */ R(
100
100
  "svg",
101
101
  {
102
102
  width: "24",
@@ -134,15 +134,15 @@ function _r({
134
134
  }
135
135
  const Ur = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAArCAYAAAADgWq5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA3XSURBVHgBtVl7jFxVGf/dO3feMzuzO/tuu92y2xIoCEgCgUQogSIKhBIgaAxpFdREITxMVCrYNqB/+A8QCYQYbIuJUTChGqBQDCkaMUCgW0qtpe12t933drezs/N+XX/fuefOzK6l0KInPb2POfec3/m+3/c6a+ALNNu247xczL6Ofbm+j+suLck+pK972XcYhrEbX6AZOItGoGt4uZ99jQtu+tAnmP7kIPLz8yiwS/NHmxDr6kJTdzfaVq5qnGIb+/azAX9GgDXQTQJUQB3Y+SqOvL1bgXVB6nELv2OvcqllX74Uq2+8SV2buBE40n+QwHfgfwlYq34r+7rU+Bj2vvgH/Ou1VxXIxeAaW7Xht6ph1NGzCfAr7/meC3wb+xYCH8IXBaylurWQnu/d++IfMUCwRS1Nuz7mFN813lfVUrYh3xi1lWXIlXd/F1eww5H2rQQ9gLMFTCAP8PJEamIcO+77AebHx+u/6Y8FrItNJDqVL2Awm8WJQhFejwedfj9WhIJosjz8wKCkUdupu6koOX7n08+60haKPHnGgAlEuLp5bGAPdm78yUKO6tU4cQ3w/uQc3pqYwkypQOAGTNNU3SJoi+N6wmFclWjmBnxqvEja1rMJcF8kghseeRT9V62Rl5s595bPDZggxE29fPD11/DWLx9f/FsNqFwrvP5l6DjenZmBKN40TM5qqrEeAUzJGnz28Rpgv6atFRdGQmrXjjG6QrDV/Q0/+zlWf/1GebWB82//TMAE0svLnpnDh+N/umfDaY1KfnlrdBw7R8ZguyQxPJSsoW493JDHY7JbaiGhSNCycEt3J3oDgZp2qi5HOMgbjuCOp59B+8pV4rsvWWyIpwJ8ND0x0fvKQ/dDPIJh1yWgWVsbW6xU8au9+8jXAqUJWJRo2OdDiGqPBv1ojcUQIRVOptOYnEsjky+iUrXREw3jm91dihQ26VPRs0NvoKmrk6DJ6c6uAQK+pBGftQis8LZ3z/ZtIGjFQRJS78zQ05q1u/0nk5ghWOFoazCAloCFGIF2xKPobmtHW1sCifZWeP1e5DM5jJPjHxwaxsGpJE5WykhYlprZI1IWr0FOGASd4tpv/OIx3PHrZy4mJuHzZhejuYgKDxza9Tqkm4ah5Ck8NUzpjhG5z/L7QQIWsGGfFzGvGJeeUMZY5G0oxGgXRYBSjsSi6GpvwZoL+7GqM4GhbM5hkOEIw6SkDcN5ISIZ2fOh6mz36ziwEDCb7CK+94UXHFAKsHMVQzK1lIWfakq+T4p0+RwhWP5Tm1CcVAbFb7w+xwA9XnVvkS4RbuCS5Z18tvT8LmgO0+s5axrY5Ri8gH3gVICvPvLmG0hPTjjSNVyp6kk5Uhii7Mm01W9i1X6S1yLR7apj78ozKEPjDqoVlIsFLmIjJNKm6wpEI2iOBMhzT10wohmzDtSloGAZ2bNngZRNTYcNwt0ju3Y5vK19jIZJG7ssZiuL93kMTSmC5X3Acnq1lEM2lUQ2OYsTY2PI8BoOeOEXgVfLiPqtmmBqVGt4NrWG3932vCvlNY1GtyYzOYmpfR9pKsgWRa91ryBvXZ8pb1PFspo0YJpqxIlCCf6qiRx3eWwkidBkCj2JGfT3LsU+Gtp83sbyZcsRpTtDbhYtytWJUVfrkwqRbE0rJ4xilBIu0MtQO7fwzQ6XEldPfVQHa7vc1cZlurs26+9eOngIQ/MpeMmVeCiAXNWLXBkEVuDVwniqiH2Tafzz4Cj2T6QwkytifHYOyfQ8ZuYLeHN4FEUKxZWuY6v63k039NqDf/+bPK5TEiYdJOnunT16xLFu6TqKyVURTEvZwwlVBsaFUsqdAZlKBWYuj85QBJmq5A8mYpEw5uYraPUauHBZBxf18LuqChSlSgnnLO1AjnTxaA+huCl5BqUt63q0x6gq92lj+shhnEdaiCezND+QPHrUIbzgMZ3Q61ib7QQPdevwWh6DtPIygXpMD4p0Cx0RA+cnOlUaWShXkZsvYwkN7LLz+5AtVbF0SbcKzyGfhfTMNFYtaVXaMVzfRrCOlzE0TL0Z3owO7HEdw8UCuFfuMlOTNWnWrFWnhY5DdpnsXFfEYxjN5NSGKpw0ncsy8kVRplkcn06izQ+E6IujzQlcviqH9/49zIhmoY9AffQyYZ8fZsmjMghnaqNuIRLWbceQhculTMYFHK8Bzk1POzvUiY3zrVnLqZRJmI6UpfU3t+AfKt00tTHaODw2gQIHlctlTCaLGDqZwfzvX6Ira0IgEMTw1BRGR4awsiOOsBVg2uFXvK2vZzgobVN5oaqjYOXedOuthWZTATJr8V1RQyeCqMm1LvCepihDcRDJYlEBrkqgEP5yBQ8DhD8eRlu8CSuW96ClOYYSc2SDGjs6PonxZAqdTdRWuGlBpm+gIXuzDQfTwvSlIXBo92S7oExDewudLi7yxVEm5ndfcAF5yOSFq3jok6Ufm8sjze+C8WYsWXUuWnpXoBgM4/3jE9gzPO4EFY4zqqiF4gU+uOaLtZfQHsttIuEhuQl3dEB8sZs1aUY4FDCqTvJj63xN5wwtrCSaKc2xXAEpZmIrOoSfQILG1kOpfuXSS9Ddswz+YBA9zIGPkUIf7NuvpNfmDao5lJUYjo93c2xXy66bbersdPEOCWDJO+FjHpo1Jl1y1KkgXkIrwmiwP7Fjr6STlpcuK48CxTybztDQPEimUojxuv+99zB9bNihVjGNALUS9AfgJTWWB6M1Cdq60qsVBg0kWQxYkKiir43qVY5bAxLVeAxolaDm0G19dbO2CsdWCCBPQ5tIZZArVVQSP8nodGB4BIPDx5FlsLDI11lyt1wu4bJ4u/LpCpBZpwOABlpAGZ68be1b6QJOWpLRc1fJ2Ipz4nAduespFrkzxx8bdSMQAyMnyzpnzpdKBJpFdzSIJYkE+np70HtOL6KRIGZnZnF8cgpLQzG0+ILaMzR4h0XN1bNE1kRfn5KuVNSul/jzkssuX/9hLTXXEm2wW1tPXPOZXPBktqAqCFXq2I5WsswpjlWqSsm5cgXTLE5l+OiJWRW66d/wTr6E/oAP7bBrLs02Tln+qLW6LrpInnbLfy7gHd5weH3b6gswvf/jU+7VjXYizP0nTuCVw4MYnJsjjx2LrlYNRQ01iEAHZ1MYTqbhHRxVJdOKzg60NUUUzY4UWH14vehg4r+UX3QxexNe1845XAWyd1x4ESIdisNvNwLeLfw4785vxKc3PaIJUFUewlXcXKmM96nSd1h0jpKfZeYQMkqqZhnnkZhN0JJrlLgrcVs2k41YOICVXe0Is3SS9LNKflveELyMdCelCGDfT6Es529Ly0VE1by6Mudd//XXu3TYVgPMhyRV81Tr6gs2hds7kZUwDcegxjNZvM0INnBihiCrzBuY7DA5N0XkBGXy2SlHbFUuqQcxWOYYzQTbxoJTPLz4a8u0MG34lR8uku9hJvUVApT8Q3zJKLndzA2vLuYQ4PswtdJ/3doaHVx9u01OW5KX/vBexeNksYSXh4bxG6aRH88lafisJKhan1e6l1mZl++YC9CtSTBQZRQX9jMpipGf3bEQ2mlsQapdNpOn1McrTJhsllN8V2IlIqqrUAiSYko499LtZVjMvh+N4XgojC996y7BJW53y38BFinzIlLGSGe3A5RuyCYYARkMhuBjkJCTHK+EXk7u8zIXIPAycwKTwKFDu0+iGe+EGuliFWmTIdwMqdouwM3IKLGFErWTzeeoMQMZFqVObmyq0N659qvou/Y6gfZU49lEo4Shy+mB23+6EfGubiVBOQTxM2cQNYqqg4xuIuEgAYdo8WFGsRC7FQjBE4ygxKQmbfiQZSQrBOPwNLczKMUQZj0X4qYdz2io2k96kXm1SFlaLp9XjqEl0Yqbb7vN5e7mBRixqLknPwcPHIh/f/16ZHOyc+a8THIU6bmJEvnX6KttisuSKpjSKfG8QRLxMMF5+E42E6CGAtyccF/AWtz8PKNhS2sCkzRk0ZyYhJfjm1ta8Ojjj2FpT88pT37MxYD1gAfPPe88/GjjwwRoOZWAlPOUkgD1UbqKEuwRhvQwzx18lg9NLOETTHoSXDTKbC7EMCzGJxV2RdduUl3LfPIs3kjCdSaTJqU8yFPad939HQErQ799qvNiC6do4kJE0jevu3VTUyyOTQ9vRIVG4UpHpCxNXJiU8/KuSj6KNIsMvR66Lj8NVDyBAJPNCUjRiKWlLG7RrRWzrFyWdC/Fgw//GBddrE6mtnzaqbyB0zT3fHhsdBQP3XsfxkZGlBsSFSr1GI6f9pLT8l7O0WQTeXIxSm2UuMkcjSrRkqBXKCkteSW1FP/LoNPBpCZL6XposE8+ywNAZow42/PhBtBSpL7M3rv9+efx2+eeo0S99VTQcNSq/CoBi5pzLJcsbkKkn+W9ABa35UjYUvmBeIeeZT24+rpr8bWbbkIoHB6CQ4Pdp8PzmYA16F44R1nrJ5jT/m7rVvz19TecPJaqFsDlakXxWYCJNCt89mgDbWluVvx0D7mjTU248qqrsO7225BgksS2Q4NNfhaWzwW4AbicDTzB3jtJ4HsHBvDmzp0YPHQYhVKRbi6oKFIgOKGFBAhpQb4Pkt8r+s7B5VdcgWvWrhWJyk+SH2w2zuDPX2cEuAH4Gl42sK933w0ePowZhu9JHpWmyM8y3ZvwOMoz4r7+foLtc4cmNdAnjf/33+lOA14k7/4VdDkW/iV0Dk6RMARH9QOfR/Wf1v4D3Fe7Fu3OpbsAAAAASUVORK5CYII=", Hr = `@import"https://fonts.cdnfonts.com/css/tt-firs-neue-trl?styles=143111,143113,143105,143108,143110,143101,143099,143103,143097,143115";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:TT Firs Neue Trl,sans-serif;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
136
136
  `;
137
- function Hi({ children: t, styles: e = [], ...n }) {
138
- return /* @__PURE__ */ B(Mr.div, { ...n, children: [
137
+ function Ui({ children: t, styles: e = [], ...n }) {
138
+ return /* @__PURE__ */ R(Mr.div, { ...n, children: [
139
139
  [Hr, ...e].map((i, s) => /* @__PURE__ */ w("style", { type: "text/css", children: i }, s)),
140
140
  t
141
141
  ] });
142
142
  }
143
143
  const Gr = `.avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.5rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar{position:fixed;display:flex;z-index:30;background:black;top:0;width:100%;padding-left:2.5rem;height:64px}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}.logo-container{padding:16px 0;height:100%}.navbar-container img{height:100%}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem}.userAvatar{width:2.5rem;height:2.5rem;cursor:pointer;-o-object-fit:cover;object-fit:cover;border-radius:9999px}.relative{position:relative}.cursor-pointer{cursor:pointer}
144
144
  `;
145
- function nh({
145
+ function bh({
146
146
  logo: t,
147
147
  user: e,
148
148
  baseUrl: n,
@@ -157,16 +157,16 @@ function nh({
157
157
  }, [l, c] = K(!1), u = () => {
158
158
  window.location.href = `${n}/authentication/logout?callbackUrl=${window.location.href}`;
159
159
  };
160
- return /* @__PURE__ */ B(Hi, { styles: [Gr], style: { zIndex: 1202 }, children: [
160
+ return /* @__PURE__ */ R(Ui, { styles: [Gr], style: { zIndex: 1202 }, children: [
161
161
  /* @__PURE__ */ w(
162
162
  "nav",
163
163
  {
164
164
  className: `navbar ${s}`,
165
165
  style: o ? a : i,
166
- children: /* @__PURE__ */ B("div", { className: "navbar-container", children: [
166
+ children: /* @__PURE__ */ R("div", { className: "navbar-container", children: [
167
167
  /* @__PURE__ */ w("div", { className: "logo-container", children: /* @__PURE__ */ w("img", { src: r, alt: "logo-header" }) }),
168
- /* @__PURE__ */ B("div", { className: "right-side-container", children: [
169
- /* @__PURE__ */ B("div", { className: "userContainer", children: [
168
+ /* @__PURE__ */ R("div", { className: "right-side-container", children: [
169
+ /* @__PURE__ */ R("div", { className: "userContainer", children: [
170
170
  /* @__PURE__ */ w(
171
171
  "p",
172
172
  {
@@ -190,7 +190,7 @@ function nh({
190
190
  }
191
191
  ),
192
192
  /* @__PURE__ */ w(
193
- Ui,
193
+ _i,
194
194
  {
195
195
  isOpen: l,
196
196
  onClose: () => c(!1),
@@ -216,7 +216,7 @@ function Yr({
216
216
  return document.addEventListener("click", f, !0), () => {
217
217
  document.removeEventListener("click", f, !0);
218
218
  };
219
- }, [o]), /* @__PURE__ */ w(Fi, { children: /* @__PURE__ */ B("div", { style: { position: "relative" }, children: [
219
+ }, [o]), /* @__PURE__ */ w(Ii, { children: /* @__PURE__ */ R("div", { style: { position: "relative" }, children: [
220
220
  /* @__PURE__ */ w(
221
221
  "img",
222
222
  {
@@ -233,7 +233,7 @@ function Yr({
233
233
  style: { display: i ? "block" : "none" },
234
234
  className: "avartarDropdownMenu",
235
235
  ref: r,
236
- children: /* @__PURE__ */ B("ul", { children: [
236
+ children: /* @__PURE__ */ R("ul", { children: [
237
237
  /* @__PURE__ */ w(
238
238
  "li",
239
239
  {
@@ -263,19 +263,19 @@ function Yr({
263
263
  var Xr = typeof global == "object" && global && global.Object === Object && global;
264
264
  const qr = Xr;
265
265
  var Kr = typeof self == "object" && self && self.Object === Object && self, $r = qr || Kr || Function("return this")();
266
- const Gi = $r;
267
- var Qr = Gi.Symbol;
266
+ const Hi = $r;
267
+ var Qr = Hi.Symbol;
268
268
  const ce = Qr;
269
- var Yi = Object.prototype, Zr = Yi.hasOwnProperty, Jr = Yi.toString, Nt = ce ? ce.toStringTag : void 0;
269
+ var Gi = Object.prototype, Zr = Gi.hasOwnProperty, Jr = Gi.toString, Bt = ce ? ce.toStringTag : void 0;
270
270
  function to(t) {
271
- var e = Zr.call(t, Nt), n = t[Nt];
271
+ var e = Zr.call(t, Bt), n = t[Bt];
272
272
  try {
273
- t[Nt] = void 0;
273
+ t[Bt] = void 0;
274
274
  var i = !0;
275
275
  } catch {
276
276
  }
277
277
  var s = Jr.call(t);
278
- return i && (e ? t[Nt] = n : delete t[Nt]), s;
278
+ return i && (e ? t[Bt] = n : delete t[Bt]), s;
279
279
  }
280
280
  var eo = Object.prototype, no = eo.toString;
281
281
  function io(t) {
@@ -323,7 +323,7 @@ function Mn(t) {
323
323
  return n || vo.test(t) ? yo(t.slice(2), n ? 2 : 8) : mo.test(t) ? En : +t;
324
324
  }
325
325
  var bo = function() {
326
- return Gi.Date.now();
326
+ return Hi.Date.now();
327
327
  };
328
328
  const Ve = bo;
329
329
  var xo = "Expected a function", wo = Math.max, So = Math.min;
@@ -333,49 +333,49 @@ function oe(t, e, n) {
333
333
  throw new TypeError(xo);
334
334
  e = Mn(e) || 0, ue(n) && (u = !!n.leading, h = "maxWait" in n, o = h ? wo(Mn(n.maxWait) || 0, e) : o, d = "trailing" in n ? !!n.trailing : d);
335
335
  function f(T) {
336
- var k = i, A = s;
337
- return i = s = void 0, c = T, r = t.apply(A, k), r;
336
+ var k = i, S = s;
337
+ return i = s = void 0, c = T, r = t.apply(S, k), r;
338
338
  }
339
339
  function p(T) {
340
- return c = T, a = setTimeout(y, e), u ? f(T) : r;
340
+ return c = T, a = setTimeout(b, e), u ? f(T) : r;
341
341
  }
342
342
  function m(T) {
343
- var k = T - l, A = T - c, C = e - k;
344
- return h ? So(C, o - A) : C;
343
+ var k = T - l, S = T - c, C = e - k;
344
+ return h ? So(C, o - S) : C;
345
345
  }
346
346
  function v(T) {
347
- var k = T - l, A = T - c;
348
- return l === void 0 || k >= e || k < 0 || h && A >= o;
347
+ var k = T - l, S = T - c;
348
+ return l === void 0 || k >= e || k < 0 || h && S >= o;
349
349
  }
350
- function y() {
350
+ function b() {
351
351
  var T = Ve();
352
352
  if (v(T))
353
- return b(T);
354
- a = setTimeout(y, m(T));
353
+ return y(T);
354
+ a = setTimeout(b, m(T));
355
355
  }
356
- function b(T) {
356
+ function y(T) {
357
357
  return a = void 0, d && i ? f(T) : (i = s = void 0, r);
358
358
  }
359
359
  function g() {
360
360
  a !== void 0 && clearTimeout(a), c = 0, i = l = s = a = void 0;
361
361
  }
362
362
  function x() {
363
- return a === void 0 ? r : b(Ve());
363
+ return a === void 0 ? r : y(Ve());
364
364
  }
365
- function S() {
365
+ function P() {
366
366
  var T = Ve(), k = v(T);
367
367
  if (i = arguments, s = this, l = T, k) {
368
368
  if (a === void 0)
369
369
  return p(l);
370
370
  if (h)
371
- return clearTimeout(a), a = setTimeout(y, e), f(l);
371
+ return clearTimeout(a), a = setTimeout(b, e), f(l);
372
372
  }
373
- return a === void 0 && (a = setTimeout(y, e)), r;
373
+ return a === void 0 && (a = setTimeout(b, e)), r;
374
374
  }
375
- return S.cancel = g, S.flush = x, S;
375
+ return P.cancel = g, P.flush = x, P;
376
376
  }
377
377
  var To = "Expected a function";
378
- function Ao(t, e, n) {
378
+ function Po(t, e, n) {
379
379
  var i = !0, s = !0;
380
380
  if (typeof t != "function")
381
381
  throw new TypeError(To);
@@ -385,19 +385,19 @@ function Ao(t, e, n) {
385
385
  trailing: s
386
386
  });
387
387
  }
388
- var Po = !!(typeof window < "u" && window.document && window.document.createElement), ko = Po;
389
- const Xi = /* @__PURE__ */ Or(ko);
390
- var At = function() {
391
- return At = Object.assign || function(e) {
388
+ var Ao = !!(typeof window < "u" && window.document && window.document.createElement), ko = Ao;
389
+ const Yi = /* @__PURE__ */ Or(ko);
390
+ var Pt = function() {
391
+ return Pt = Object.assign || function(e) {
392
392
  for (var n, i = 1, s = arguments.length; i < s; i++) {
393
393
  n = arguments[i];
394
394
  for (var o in n)
395
395
  Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
396
396
  }
397
397
  return e;
398
- }, At.apply(this, arguments);
398
+ }, Pt.apply(this, arguments);
399
399
  }, Tt = null, On = null;
400
- Xi && window.addEventListener("resize", function() {
400
+ Yi && window.addEventListener("resize", function() {
401
401
  On !== window.devicePixelRatio && (On = window.devicePixelRatio, Tt = null);
402
402
  });
403
403
  function Dn() {
@@ -411,13 +411,13 @@ function Dn() {
411
411
  }
412
412
  return Tt;
413
413
  }
414
- function qi(t) {
414
+ function Xi(t) {
415
415
  return !t || !t.ownerDocument || !t.ownerDocument.defaultView ? window : t.ownerDocument.defaultView;
416
416
  }
417
- function Ki(t) {
417
+ function qi(t) {
418
418
  return !t || !t.ownerDocument ? document : t.ownerDocument;
419
419
  }
420
- var $i = function(t) {
420
+ var Ki = function(t) {
421
421
  var e = {}, n = Array.prototype.reduce.call(t, function(i, s) {
422
422
  var o = s.name.match(/data-simplebar-(.+)/);
423
423
  if (o) {
@@ -442,27 +442,27 @@ var $i = function(t) {
442
442
  }, e);
443
443
  return n;
444
444
  };
445
- function Qi(t, e) {
445
+ function $i(t, e) {
446
446
  var n;
447
447
  t && (n = t.classList).add.apply(n, e.split(" "));
448
448
  }
449
- function Zi(t, e) {
449
+ function Qi(t, e) {
450
450
  t && e.split(" ").forEach(function(n) {
451
451
  t.classList.remove(n);
452
452
  });
453
453
  }
454
- function Ji(t) {
454
+ function Zi(t) {
455
455
  return ".".concat(t.split(" ").join("."));
456
456
  }
457
457
  var Co = /* @__PURE__ */ Object.freeze({
458
458
  __proto__: null,
459
- getElementWindow: qi,
460
- getElementDocument: Ki,
461
- getOptions: $i,
462
- addClasses: Qi,
463
- removeClasses: Zi,
464
- classNamesToQuery: Ji
465
- }), st = qi, Ee = Ki, Vo = $i, rt = Qi, ot = Zi, z = Ji, te = (
459
+ getElementWindow: Xi,
460
+ getElementDocument: qi,
461
+ getOptions: Ki,
462
+ addClasses: $i,
463
+ removeClasses: Qi,
464
+ classNamesToQuery: Zi
465
+ }), st = Xi, Ee = qi, Vo = Ki, rt = $i, ot = Qi, W = Zi, te = (
466
466
  /** @class */
467
467
  function() {
468
468
  function t(e, n) {
@@ -499,12 +499,12 @@ var Co = /* @__PURE__ */ Object.freeze({
499
499
  }, this.drag = function(s) {
500
500
  var o, r, a, l, c, u, h, d, f, p, m;
501
501
  if (!(!i.draggedAxis || !i.contentWrapperEl)) {
502
- var v, y = i.axis[i.draggedAxis].track, b = (r = (o = y.rect) === null || o === void 0 ? void 0 : o[i.axis[i.draggedAxis].sizeAttr]) !== null && r !== void 0 ? r : 0, g = i.axis[i.draggedAxis].scrollbar, x = (l = (a = i.contentWrapperEl) === null || a === void 0 ? void 0 : a[i.axis[i.draggedAxis].scrollSizeAttr]) !== null && l !== void 0 ? l : 0, S = parseInt((u = (c = i.elStyles) === null || c === void 0 ? void 0 : c[i.axis[i.draggedAxis].sizeAttr]) !== null && u !== void 0 ? u : "0px", 10);
502
+ var v, b = i.axis[i.draggedAxis].track, y = (r = (o = b.rect) === null || o === void 0 ? void 0 : o[i.axis[i.draggedAxis].sizeAttr]) !== null && r !== void 0 ? r : 0, g = i.axis[i.draggedAxis].scrollbar, x = (l = (a = i.contentWrapperEl) === null || a === void 0 ? void 0 : a[i.axis[i.draggedAxis].scrollSizeAttr]) !== null && l !== void 0 ? l : 0, P = parseInt((u = (c = i.elStyles) === null || c === void 0 ? void 0 : c[i.axis[i.draggedAxis].sizeAttr]) !== null && u !== void 0 ? u : "0px", 10);
503
503
  s.preventDefault(), s.stopPropagation(), i.draggedAxis === "y" ? v = s.pageY : v = s.pageX;
504
- var T = v - ((d = (h = y.rect) === null || h === void 0 ? void 0 : h[i.axis[i.draggedAxis].offsetAttr]) !== null && d !== void 0 ? d : 0) - i.axis[i.draggedAxis].dragOffset;
505
- T = i.draggedAxis === "x" && i.isRtl ? ((p = (f = y.rect) === null || f === void 0 ? void 0 : f[i.axis[i.draggedAxis].sizeAttr]) !== null && p !== void 0 ? p : 0) - g.size - T : T;
506
- var k = T / (b - g.size), A = k * (x - S);
507
- i.draggedAxis === "x" && i.isRtl && (A = !((m = t.getRtlHelpers()) === null || m === void 0) && m.isScrollingToNegative ? -A : A), i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr] = A;
504
+ var T = v - ((d = (h = b.rect) === null || h === void 0 ? void 0 : h[i.axis[i.draggedAxis].offsetAttr]) !== null && d !== void 0 ? d : 0) - i.axis[i.draggedAxis].dragOffset;
505
+ T = i.draggedAxis === "x" && i.isRtl ? ((p = (f = b.rect) === null || f === void 0 ? void 0 : f[i.axis[i.draggedAxis].sizeAttr]) !== null && p !== void 0 ? p : 0) - g.size - T : T;
506
+ var k = T / (y - g.size), S = k * (x - P);
507
+ i.draggedAxis === "x" && i.isRtl && (S = !((m = t.getRtlHelpers()) === null || m === void 0) && m.isScrollingToNegative ? -S : S), i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr] = S;
508
508
  }
509
509
  }, this.onEndDrag = function(s) {
510
510
  var o = Ee(i.el), r = st(i.el);
@@ -513,7 +513,7 @@ var Co = /* @__PURE__ */ Object.freeze({
513
513
  });
514
514
  }, this.preventClick = function(s) {
515
515
  s.preventDefault(), s.stopPropagation();
516
- }, this.el = e, this.options = At(At({}, t.defaultOptions), n), this.classNames = At(At({}, t.defaultOptions.classNames), n.classNames), this.axis = {
516
+ }, this.el = e, this.options = Pt(Pt({}, t.defaultOptions), n), this.classNames = Pt(Pt({}, t.defaultOptions.classNames), n.classNames), this.axis = {
517
517
  x: {
518
518
  scrollOffsetAttr: "scrollLeft",
519
519
  sizeAttr: "width",
@@ -542,7 +542,7 @@ var Co = /* @__PURE__ */ Object.freeze({
542
542
  }
543
543
  }, typeof this.el != "object" || !this.el.nodeName)
544
544
  throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));
545
- this.onMouseMove = Ao(this._onMouseMove, 64), this.onWindowResize = oe(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = oe(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = oe(this._onMouseEntered, this.stopScrollDelay), this.init();
545
+ this.onMouseMove = Po(this._onMouseMove, 64), this.onWindowResize = oe(this._onWindowResize, 64, { leading: !0 }), this.onStopScrolling = oe(this._onStopScrolling, this.stopScrollDelay), this.onMouseEntered = oe(this._onMouseEntered, this.stopScrollDelay), this.init();
546
546
  }
547
547
  return t.getRtlHelpers = function() {
548
548
  if (t.rtlHelpers)
@@ -575,10 +575,10 @@ var Co = /* @__PURE__ */ Object.freeze({
575
575
  left: n.left + (s.pageXOffset || i.documentElement.scrollLeft)
576
576
  };
577
577
  }, t.prototype.init = function() {
578
- Xi && (this.initDOM(), this.rtlHelpers = t.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
578
+ Yi && (this.initDOM(), this.rtlHelpers = t.getRtlHelpers(), this.scrollbarWidth = this.getScrollbarWidth(), this.recalculate(), this.initListeners());
579
579
  }, t.prototype.initDOM = function() {
580
580
  var e, n;
581
- this.wrapperEl = this.el.querySelector(z(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(z(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(z(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(z(this.classNames.offset)), this.maskEl = this.el.querySelector(z(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, z(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(z(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(z(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, "".concat(z(this.classNames.track)).concat(z(this.classNames.horizontal))), this.axis.y.track.el = this.findChild(this.el, "".concat(z(this.classNames.track)).concat(z(this.classNames.vertical))), this.axis.x.scrollbar.el = ((e = this.axis.x.track.el) === null || e === void 0 ? void 0 : e.querySelector(z(this.classNames.scrollbar))) || null, this.axis.y.scrollbar.el = ((n = this.axis.y.track.el) === null || n === void 0 ? void 0 : n.querySelector(z(this.classNames.scrollbar))) || null, this.options.autoHide || (rt(this.axis.x.scrollbar.el, this.classNames.visible), rt(this.axis.y.scrollbar.el, this.classNames.visible));
581
+ this.wrapperEl = this.el.querySelector(W(this.classNames.wrapper)), this.contentWrapperEl = this.options.scrollableNode || this.el.querySelector(W(this.classNames.contentWrapper)), this.contentEl = this.options.contentNode || this.el.querySelector(W(this.classNames.contentEl)), this.offsetEl = this.el.querySelector(W(this.classNames.offset)), this.maskEl = this.el.querySelector(W(this.classNames.mask)), this.placeholderEl = this.findChild(this.wrapperEl, W(this.classNames.placeholder)), this.heightAutoObserverWrapperEl = this.el.querySelector(W(this.classNames.heightAutoObserverWrapperEl)), this.heightAutoObserverEl = this.el.querySelector(W(this.classNames.heightAutoObserverEl)), this.axis.x.track.el = this.findChild(this.el, "".concat(W(this.classNames.track)).concat(W(this.classNames.horizontal))), this.axis.y.track.el = this.findChild(this.el, "".concat(W(this.classNames.track)).concat(W(this.classNames.vertical))), this.axis.x.scrollbar.el = ((e = this.axis.x.track.el) === null || e === void 0 ? void 0 : e.querySelector(W(this.classNames.scrollbar))) || null, this.axis.y.scrollbar.el = ((n = this.axis.y.track.el) === null || n === void 0 ? void 0 : n.querySelector(W(this.classNames.scrollbar))) || null, this.options.autoHide || (rt(this.axis.x.scrollbar.el, this.classNames.visible), rt(this.axis.y.scrollbar.el, this.classNames.visible));
582
582
  }, t.prototype.initListeners = function() {
583
583
  var e = this, n, i = st(this.el);
584
584
  if (this.el.addEventListener("mouseenter", this.onMouseEnter), this.el.addEventListener("pointerdown", this.onPointerEvent, !0), this.el.addEventListener("mousemove", this.onMouseMove), this.el.addEventListener("mouseleave", this.onMouseLeave), (n = this.contentWrapperEl) === null || n === void 0 || n.addEventListener("scroll", this.onScroll), i.addEventListener("resize", this.onWindowResize), !!this.contentEl) {
@@ -660,10 +660,10 @@ var Co = /* @__PURE__ */ Object.freeze({
660
660
  e.preventDefault();
661
661
  var c = st(this.el);
662
662
  this.axis[n].scrollbar.rect = l.scrollbar.el.getBoundingClientRect();
663
- var u = this.axis[n].scrollbar, h = (o = (s = u.rect) === null || s === void 0 ? void 0 : s[this.axis[n].offsetAttr]) !== null && o !== void 0 ? o : 0, d = parseInt((a = (r = this.elStyles) === null || r === void 0 ? void 0 : r[this.axis[n].sizeAttr]) !== null && a !== void 0 ? a : "0px", 10), f = this.contentWrapperEl[this.axis[n].scrollOffsetAttr], p = n === "y" ? this.mouseY - h : this.mouseX - h, m = p < 0 ? -1 : 1, v = m === -1 ? f - d : f + d, y = 40, b = function() {
664
- i.contentWrapperEl && (m === -1 ? f > v && (f -= y, i.contentWrapperEl[i.axis[n].scrollOffsetAttr] = f, c.requestAnimationFrame(b)) : f < v && (f += y, i.contentWrapperEl[i.axis[n].scrollOffsetAttr] = f, c.requestAnimationFrame(b)));
663
+ var u = this.axis[n].scrollbar, h = (o = (s = u.rect) === null || s === void 0 ? void 0 : s[this.axis[n].offsetAttr]) !== null && o !== void 0 ? o : 0, d = parseInt((a = (r = this.elStyles) === null || r === void 0 ? void 0 : r[this.axis[n].sizeAttr]) !== null && a !== void 0 ? a : "0px", 10), f = this.contentWrapperEl[this.axis[n].scrollOffsetAttr], p = n === "y" ? this.mouseY - h : this.mouseX - h, m = p < 0 ? -1 : 1, v = m === -1 ? f - d : f + d, b = 40, y = function() {
664
+ i.contentWrapperEl && (m === -1 ? f > v && (f -= b, i.contentWrapperEl[i.axis[n].scrollOffsetAttr] = f, c.requestAnimationFrame(y)) : f < v && (f += b, i.contentWrapperEl[i.axis[n].scrollOffsetAttr] = f, c.requestAnimationFrame(y)));
665
665
  };
666
- b();
666
+ y();
667
667
  }
668
668
  }, t.prototype.getContentElement = function() {
669
669
  return this.contentEl;
@@ -712,15 +712,15 @@ var Co = /* @__PURE__ */ Object.freeze({
712
712
  autoHide: !0
713
713
  }, t.getOptions = Vo, t.helpers = Co, t;
714
714
  }()
715
- ), U = function() {
716
- return U = Object.assign || function(e) {
715
+ ), H = function() {
716
+ return H = Object.assign || function(e) {
717
717
  for (var n, i = 1, s = arguments.length; i < s; i++) {
718
718
  n = arguments[i];
719
719
  for (var o in n)
720
720
  Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
721
721
  }
722
722
  return e;
723
- }, U.apply(this, arguments);
723
+ }, H.apply(this, arguments);
724
724
  };
725
725
  function Eo(t, e) {
726
726
  var n = {};
@@ -731,15 +731,15 @@ function Eo(t, e) {
731
731
  e.indexOf(i[s]) < 0 && Object.prototype.propertyIsEnumerable.call(t, i[s]) && (n[i[s]] = t[i[s]]);
732
732
  return n;
733
733
  }
734
- var ts = D.forwardRef(function(t, e) {
734
+ var Ji = D.forwardRef(function(t, e) {
735
735
  var n = t.children, i = t.scrollableNodeProps, s = i === void 0 ? {} : i, o = Eo(t, ["children", "scrollableNodeProps"]), r = D.useRef(), a = D.useRef(), l = D.useRef(), c = {}, u = {};
736
736
  Object.keys(o).forEach(function(f) {
737
737
  Object.prototype.hasOwnProperty.call(te.defaultOptions, f) ? c[f] = o[f] : u[f] = o[f];
738
738
  });
739
- var h = U(U({}, te.defaultOptions.classNames), c.classNames), d = U(U({}, s), { className: "".concat(h.contentWrapper).concat(s.className ? " ".concat(s.className) : ""), tabIndex: 0, role: "region", "aria-label": c.ariaLabel || te.defaultOptions.ariaLabel });
739
+ var h = H(H({}, te.defaultOptions.classNames), c.classNames), d = H(H({}, s), { className: "".concat(h.contentWrapper).concat(s.className ? " ".concat(s.className) : ""), tabIndex: 0, role: "region", "aria-label": c.ariaLabel || te.defaultOptions.ariaLabel });
740
740
  return D.useEffect(function() {
741
741
  var f;
742
- return a.current = d.ref ? d.ref.current : a.current, r.current && (f = new te(r.current, U(U(U({}, c), a.current && {
742
+ return a.current = d.ref ? d.ref.current : a.current, r.current && (f = new te(r.current, H(H(H({}, c), a.current && {
743
743
  scrollableNode: a.current
744
744
  }), l.current && {
745
745
  contentNode: l.current
@@ -748,7 +748,7 @@ var ts = D.forwardRef(function(t, e) {
748
748
  };
749
749
  }, []), D.createElement(
750
750
  "div",
751
- U({ "data-simplebar": "init", ref: r }, u),
751
+ H({ "data-simplebar": "init", ref: r }, u),
752
752
  D.createElement(
753
753
  "div",
754
754
  { className: h.wrapper },
@@ -762,7 +762,7 @@ var ts = D.forwardRef(function(t, e) {
762
762
  { className: h.mask },
763
763
  D.createElement("div", { className: h.offset }, typeof n == "function" ? n({
764
764
  scrollableNodeRef: a,
765
- scrollableNodeProps: U(U({}, d), { ref: a }),
765
+ scrollableNodeProps: H(H({}, d), { ref: a }),
766
766
  contentNodeRef: l,
767
767
  contentNodeProps: {
768
768
  className: h.contentEl,
@@ -770,7 +770,7 @@ var ts = D.forwardRef(function(t, e) {
770
770
  }
771
771
  }) : D.createElement(
772
772
  "div",
773
- U({}, d),
773
+ H({}, d),
774
774
  D.createElement("div", { className: h.contentEl }, n)
775
775
  ))
776
776
  ),
@@ -788,14 +788,27 @@ var ts = D.forwardRef(function(t, e) {
788
788
  )
789
789
  );
790
790
  });
791
- ts.displayName = "SimpleBar";
792
- const es = Dt({
791
+ Ji.displayName = "SimpleBar";
792
+ const Mo = `[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
793
+ `, xh = (t) => /* @__PURE__ */ w(
794
+ Dr,
795
+ {
796
+ autoClose: 3e3,
797
+ hideProgressBar: !0,
798
+ closeButton: !1,
799
+ position: "bottom-left",
800
+ newestOnTop: !0,
801
+ pauseOnFocusLoss: !1,
802
+ style: { fontFamily: "inherit" },
803
+ ...t
804
+ }
805
+ ), ts = Dt({
793
806
  transformPagePoint: (t) => t,
794
807
  isStatic: !1,
795
808
  reducedMotion: "never"
796
- }), xe = Dt({}), en = Dt(null), we = typeof document < "u", Mo = we ? Wi : Xt, ns = Dt({ strict: !1 }), nn = (t) => t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), Oo = "framerAppearId", is = "data-" + nn(Oo);
797
- function Do(t, e, n, i) {
798
- const { visualElement: s } = W(xe), o = W(ns), r = W(en), a = W(es).reducedMotion, l = Et();
809
+ }), xe = Dt({}), en = Dt(null), we = typeof document < "u", Oo = we ? zi : Xt, es = Dt({ strict: !1 }), nn = (t) => t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), Do = "framerAppearId", ns = "data-" + nn(Do);
810
+ function Lo(t, e, n, i) {
811
+ const { visualElement: s } = _(xe), o = _(es), r = _(en), a = _(ts).reducedMotion, l = Et();
799
812
  i = i || o.renderer, !l.current && i && (l.current = i(t, {
800
813
  visualState: e,
801
814
  parent: s,
@@ -808,20 +821,20 @@ function Do(t, e, n, i) {
808
821
  kr(() => {
809
822
  c && c.update(n, r);
810
823
  });
811
- const u = Et(!!(n[is] && !window.HandoffComplete));
812
- return Mo(() => {
824
+ const u = Et(!!(n[ns] && !window.HandoffComplete));
825
+ return Oo(() => {
813
826
  c && (c.render(), u.current && c.animationState && c.animationState.animateChanges());
814
827
  }), Xt(() => {
815
828
  c && (c.updateFeatures(), !u.current && c.animationState && c.animationState.animateChanges(), u.current && (u.current = !1, window.HandoffComplete = !0));
816
829
  }), c;
817
830
  }
818
- function Pt(t) {
831
+ function At(t) {
819
832
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
820
833
  }
821
- function Lo(t, e, n) {
834
+ function Ro(t, e, n) {
822
835
  return Cr(
823
836
  (i) => {
824
- i && t.mount && t.mount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : Pt(n) && (n.current = i));
837
+ i && t.mount && t.mount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : At(n) && (n.current = i));
825
838
  },
826
839
  /**
827
840
  * Only pass a new ref callback to React if we've received a visual element
@@ -849,10 +862,10 @@ const sn = [
849
862
  function Te(t) {
850
863
  return Se(t.animate) || rn.some((e) => Ht(t[e]));
851
864
  }
852
- function ss(t) {
865
+ function is(t) {
853
866
  return !!(Te(t) || t.variants);
854
867
  }
855
- function Ro(t, e) {
868
+ function jo(t, e) {
856
869
  if (Te(t)) {
857
870
  const { initial: n, animate: i } = t;
858
871
  return {
@@ -863,7 +876,7 @@ function Ro(t, e) {
863
876
  return t.inherit !== !1 ? e : {};
864
877
  }
865
878
  function Bo(t) {
866
- const { initial: e, animate: n } = Ro(t, W(xe));
879
+ const { initial: e, animate: n } = jo(t, _(xe));
867
880
  return be(() => ({ initial: e, animate: n }), [Ln(e), Ln(n)]);
868
881
  }
869
882
  function Ln(t) {
@@ -900,19 +913,19 @@ function No(t) {
900
913
  ...t[e]
901
914
  };
902
915
  }
903
- const rs = Dt({}), os = Dt({}), jo = Symbol.for("motionComponentSymbol");
904
- function Io({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: s }) {
916
+ const ss = Dt({}), rs = Dt({}), Io = Symbol.for("motionComponentSymbol");
917
+ function Fo({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: s }) {
905
918
  t && No(t);
906
919
  function o(a, l) {
907
920
  let c;
908
921
  const u = {
909
- ...W(es),
922
+ ..._(ts),
910
923
  ...a,
911
- layoutId: Fo(a)
924
+ layoutId: zo(a)
912
925
  }, { isStatic: h } = u, d = Bo(a), f = i(a, h);
913
926
  if (!h && we) {
914
- d.visualElement = Do(s, f, u, e);
915
- const p = W(os), m = W(ns).strict;
927
+ d.visualElement = Lo(s, f, u, e);
928
+ const p = _(rs), m = _(es).strict;
916
929
  d.visualElement && (c = d.visualElement.loadFeatures(
917
930
  // Note: Pass the full new combined props to correctly re-render dynamic feature components.
918
931
  u,
@@ -925,19 +938,19 @@ function Io({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVis
925
938
  xe.Provider,
926
939
  { value: d },
927
940
  c && d.visualElement ? D.createElement(c, { visualElement: d.visualElement, ...u }) : null,
928
- n(s, a, Lo(f, d.visualElement, l), f, h, d.visualElement)
941
+ n(s, a, Ro(f, d.visualElement, l), f, h, d.visualElement)
929
942
  );
930
943
  }
931
944
  const r = Vr(o);
932
- return r[jo] = s, r;
945
+ return r[Io] = s, r;
933
946
  }
934
- function Fo({ layoutId: t }) {
935
- const e = W(rs).id;
947
+ function zo({ layoutId: t }) {
948
+ const e = _(ss).id;
936
949
  return e && t !== void 0 ? e + "-" + t : t;
937
950
  }
938
- function zo(t) {
951
+ function Wo(t) {
939
952
  function e(i, s = {}) {
940
- return Io(t(i, s));
953
+ return Fo(t(i, s));
941
954
  }
942
955
  if (typeof Proxy > "u")
943
956
  return e;
@@ -951,7 +964,7 @@ function zo(t) {
951
964
  get: (i, s) => (n.has(s) || n.set(s, e(s)), n.get(s))
952
965
  });
953
966
  }
954
- const Wo = [
967
+ const _o = [
955
968
  "animate",
956
969
  "circle",
957
970
  "defs",
@@ -991,7 +1004,7 @@ function on(t) {
991
1004
  /**
992
1005
  * If it's in our list of lowercase SVG tags, it's an SVG component
993
1006
  */
994
- !!(Wo.indexOf(t) > -1 || /**
1007
+ !!(_o.indexOf(t) > -1 || /**
995
1008
  * If it contains a capital letter, it's an SVG component
996
1009
  */
997
1010
  /[A-Z]/.test(t))
@@ -999,7 +1012,7 @@ function on(t) {
999
1012
  );
1000
1013
  }
1001
1014
  const he = {};
1002
- function _o(t) {
1015
+ function Uo(t) {
1003
1016
  Object.assign(he, t);
1004
1017
  }
1005
1018
  const qt = [
@@ -1021,27 +1034,27 @@ const qt = [
1021
1034
  "skewX",
1022
1035
  "skewY"
1023
1036
  ], bt = new Set(qt);
1024
- function as(t, { layout: e, layoutId: n }) {
1037
+ function os(t, { layout: e, layoutId: n }) {
1025
1038
  return bt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!he[t] || t === "opacity");
1026
1039
  }
1027
- const _ = (t) => !!(t && t.getVelocity), Uo = {
1040
+ const U = (t) => !!(t && t.getVelocity), Ho = {
1028
1041
  x: "translateX",
1029
1042
  y: "translateY",
1030
1043
  z: "translateZ",
1031
1044
  transformPerspective: "perspective"
1032
- }, Ho = qt.length;
1033
- function Go(t, { enableHardwareAcceleration: e = !0, allowTransformNone: n = !0 }, i, s) {
1045
+ }, Go = qt.length;
1046
+ function Yo(t, { enableHardwareAcceleration: e = !0, allowTransformNone: n = !0 }, i, s) {
1034
1047
  let o = "";
1035
- for (let r = 0; r < Ho; r++) {
1048
+ for (let r = 0; r < Go; r++) {
1036
1049
  const a = qt[r];
1037
1050
  if (t[a] !== void 0) {
1038
- const l = Uo[a] || a;
1051
+ const l = Ho[a] || a;
1039
1052
  o += `${l}(${t[a]}) `;
1040
1053
  }
1041
1054
  }
1042
1055
  return e && !t.z && (o += "translateZ(0)"), o = o.trim(), s ? o = s(t, i ? "" : o) : n && i && (o = "none"), o;
1043
1056
  }
1044
- const ls = (t) => (e) => typeof e == "string" && e.startsWith(t), cs = ls("--"), _e = ls("var(--"), Yo = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, Xo = (t, e) => e && typeof t == "number" ? e.transform(t) : t, ht = (t, e, n) => Math.min(Math.max(n, t), e), xt = {
1057
+ const as = (t) => (e) => typeof e == "string" && e.startsWith(t), ls = as("--"), _e = as("var(--"), Xo = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, qo = (t, e) => e && typeof t == "number" ? e.transform(t) : t, ht = (t, e, n) => Math.min(Math.max(n, t), e), xt = {
1045
1058
  test: (t) => typeof t == "number",
1046
1059
  parse: parseFloat,
1047
1060
  transform: (t) => t
@@ -1051,7 +1064,7 @@ const ls = (t) => (e) => typeof e == "string" && e.startsWith(t), cs = ls("--"),
1051
1064
  }, ee = {
1052
1065
  ...xt,
1053
1066
  default: 1
1054
- }, Wt = (t) => Math.round(t * 1e5) / 1e5, Ae = /(-)?([\d]*\.?[\d])+/g, us = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, qo = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
1067
+ }, Wt = (t) => Math.round(t * 1e5) / 1e5, Pe = /(-)?([\d]*\.?[\d])+/g, cs = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, Ko = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
1055
1068
  function Kt(t) {
1056
1069
  return typeof t == "string";
1057
1070
  }
@@ -1059,47 +1072,47 @@ const $t = (t) => ({
1059
1072
  test: (e) => Kt(e) && e.endsWith(t) && e.split(" ").length === 1,
1060
1073
  parse: parseFloat,
1061
1074
  transform: (e) => `${e}${t}`
1062
- }), at = $t("deg"), Q = $t("%"), P = $t("px"), Ko = $t("vh"), $o = $t("vw"), Bn = {
1075
+ }), at = $t("deg"), Q = $t("%"), A = $t("px"), $o = $t("vh"), Qo = $t("vw"), jn = {
1063
1076
  ...Q,
1064
1077
  parse: (t) => Q.parse(t) / 100,
1065
1078
  transform: (t) => Q.transform(t * 100)
1066
- }, Nn = {
1079
+ }, Bn = {
1067
1080
  ...xt,
1068
1081
  transform: Math.round
1069
- }, hs = {
1082
+ }, us = {
1070
1083
  // Border props
1071
- borderWidth: P,
1072
- borderTopWidth: P,
1073
- borderRightWidth: P,
1074
- borderBottomWidth: P,
1075
- borderLeftWidth: P,
1076
- borderRadius: P,
1077
- radius: P,
1078
- borderTopLeftRadius: P,
1079
- borderTopRightRadius: P,
1080
- borderBottomRightRadius: P,
1081
- borderBottomLeftRadius: P,
1084
+ borderWidth: A,
1085
+ borderTopWidth: A,
1086
+ borderRightWidth: A,
1087
+ borderBottomWidth: A,
1088
+ borderLeftWidth: A,
1089
+ borderRadius: A,
1090
+ radius: A,
1091
+ borderTopLeftRadius: A,
1092
+ borderTopRightRadius: A,
1093
+ borderBottomRightRadius: A,
1094
+ borderBottomLeftRadius: A,
1082
1095
  // Positioning props
1083
- width: P,
1084
- maxWidth: P,
1085
- height: P,
1086
- maxHeight: P,
1087
- size: P,
1088
- top: P,
1089
- right: P,
1090
- bottom: P,
1091
- left: P,
1096
+ width: A,
1097
+ maxWidth: A,
1098
+ height: A,
1099
+ maxHeight: A,
1100
+ size: A,
1101
+ top: A,
1102
+ right: A,
1103
+ bottom: A,
1104
+ left: A,
1092
1105
  // Spacing props
1093
- padding: P,
1094
- paddingTop: P,
1095
- paddingRight: P,
1096
- paddingBottom: P,
1097
- paddingLeft: P,
1098
- margin: P,
1099
- marginTop: P,
1100
- marginRight: P,
1101
- marginBottom: P,
1102
- marginLeft: P,
1106
+ padding: A,
1107
+ paddingTop: A,
1108
+ paddingRight: A,
1109
+ paddingBottom: A,
1110
+ paddingLeft: A,
1111
+ margin: A,
1112
+ marginTop: A,
1113
+ marginRight: A,
1114
+ marginBottom: A,
1115
+ marginLeft: A,
1103
1116
  // Transform props
1104
1117
  rotate: at,
1105
1118
  rotateX: at,
@@ -1112,36 +1125,36 @@ const $t = (t) => ({
1112
1125
  skew: at,
1113
1126
  skewX: at,
1114
1127
  skewY: at,
1115
- distance: P,
1116
- translateX: P,
1117
- translateY: P,
1118
- translateZ: P,
1119
- x: P,
1120
- y: P,
1121
- z: P,
1122
- perspective: P,
1123
- transformPerspective: P,
1128
+ distance: A,
1129
+ translateX: A,
1130
+ translateY: A,
1131
+ translateZ: A,
1132
+ x: A,
1133
+ y: A,
1134
+ z: A,
1135
+ perspective: A,
1136
+ transformPerspective: A,
1124
1137
  opacity: zt,
1125
- originX: Bn,
1126
- originY: Bn,
1127
- originZ: P,
1138
+ originX: jn,
1139
+ originY: jn,
1140
+ originZ: A,
1128
1141
  // Misc
1129
- zIndex: Nn,
1142
+ zIndex: Bn,
1130
1143
  // SVG
1131
1144
  fillOpacity: zt,
1132
1145
  strokeOpacity: zt,
1133
- numOctaves: Nn
1146
+ numOctaves: Bn
1134
1147
  };
1135
1148
  function an(t, e, n, i) {
1136
1149
  const { style: s, vars: o, transform: r, transformOrigin: a } = t;
1137
1150
  let l = !1, c = !1, u = !0;
1138
1151
  for (const h in e) {
1139
1152
  const d = e[h];
1140
- if (cs(h)) {
1153
+ if (ls(h)) {
1141
1154
  o[h] = d;
1142
1155
  continue;
1143
1156
  }
1144
- const f = hs[h], p = Xo(d, f);
1157
+ const f = us[h], p = qo(d, f);
1145
1158
  if (bt.has(h)) {
1146
1159
  if (l = !0, r[h] = p, !u)
1147
1160
  continue;
@@ -1149,7 +1162,7 @@ function an(t, e, n, i) {
1149
1162
  } else
1150
1163
  h.startsWith("origin") ? (c = !0, a[h] = p) : s[h] = p;
1151
1164
  }
1152
- if (e.transform || (l || i ? s.transform = Go(t.transform, n, u, i) : s.transform && (s.transform = "none")), c) {
1165
+ if (e.transform || (l || i ? s.transform = Yo(t.transform, n, u, i) : s.transform && (s.transform = "none")), c) {
1153
1166
  const { originX: h = "50%", originY: d = "50%", originZ: f = 0 } = a;
1154
1167
  s.transformOrigin = `${h} ${d} ${f}`;
1155
1168
  }
@@ -1160,25 +1173,25 @@ const ln = () => ({
1160
1173
  transformOrigin: {},
1161
1174
  vars: {}
1162
1175
  });
1163
- function ds(t, e, n) {
1176
+ function hs(t, e, n) {
1164
1177
  for (const i in e)
1165
- !_(e[i]) && !as(i, n) && (t[i] = e[i]);
1178
+ !U(e[i]) && !os(i, n) && (t[i] = e[i]);
1166
1179
  }
1167
- function Qo({ transformTemplate: t }, e, n) {
1180
+ function Zo({ transformTemplate: t }, e, n) {
1168
1181
  return be(() => {
1169
1182
  const i = ln();
1170
1183
  return an(i, e, { enableHardwareAcceleration: !n }, t), Object.assign({}, i.vars, i.style);
1171
1184
  }, [e]);
1172
1185
  }
1173
- function Zo(t, e, n) {
1186
+ function Jo(t, e, n) {
1174
1187
  const i = t.style || {}, s = {};
1175
- return ds(s, i, t), Object.assign(s, Qo(t, e, n)), t.transformValues ? t.transformValues(s) : s;
1188
+ return hs(s, i, t), Object.assign(s, Zo(t, e, n)), t.transformValues ? t.transformValues(s) : s;
1176
1189
  }
1177
- function Jo(t, e, n) {
1178
- const i = {}, s = Zo(t, e, n);
1190
+ function ta(t, e, n) {
1191
+ const i = {}, s = Jo(t, e, n);
1179
1192
  return t.drag && t.dragListener !== !1 && (i.draggable = !1, s.userSelect = s.WebkitUserSelect = s.WebkitTouchCallout = "none", s.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (i.tabIndex = 0), i.style = s, i;
1180
1193
  }
1181
- const ta = /* @__PURE__ */ new Set([
1194
+ const ea = /* @__PURE__ */ new Set([
1182
1195
  "animate",
1183
1196
  "exit",
1184
1197
  "variants",
@@ -1212,42 +1225,42 @@ const ta = /* @__PURE__ */ new Set([
1212
1225
  "viewport"
1213
1226
  ]);
1214
1227
  function de(t) {
1215
- return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || ta.has(t);
1228
+ return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || ea.has(t);
1216
1229
  }
1217
- let fs = (t) => !de(t);
1218
- function ea(t) {
1219
- t && (fs = (e) => e.startsWith("on") ? !de(e) : t(e));
1230
+ let ds = (t) => !de(t);
1231
+ function na(t) {
1232
+ t && (ds = (e) => e.startsWith("on") ? !de(e) : t(e));
1220
1233
  }
1221
1234
  try {
1222
- ea(require("@emotion/is-prop-valid").default);
1235
+ na(require("@emotion/is-prop-valid").default);
1223
1236
  } catch {
1224
1237
  }
1225
- function na(t, e, n) {
1238
+ function ia(t, e, n) {
1226
1239
  const i = {};
1227
1240
  for (const s in t)
1228
- s === "values" && typeof t.values == "object" || (fs(s) || n === !0 && de(s) || !e && !de(s) || // If trying to use native HTML drag events, forward drag listeners
1241
+ s === "values" && typeof t.values == "object" || (ds(s) || n === !0 && de(s) || !e && !de(s) || // If trying to use native HTML drag events, forward drag listeners
1229
1242
  t.draggable && s.startsWith("onDrag")) && (i[s] = t[s]);
1230
1243
  return i;
1231
1244
  }
1232
- function jn(t, e, n) {
1233
- return typeof t == "string" ? t : P.transform(e + n * t);
1245
+ function Nn(t, e, n) {
1246
+ return typeof t == "string" ? t : A.transform(e + n * t);
1234
1247
  }
1235
- function ia(t, e, n) {
1236
- const i = jn(e, t.x, t.width), s = jn(n, t.y, t.height);
1248
+ function sa(t, e, n) {
1249
+ const i = Nn(e, t.x, t.width), s = Nn(n, t.y, t.height);
1237
1250
  return `${i} ${s}`;
1238
1251
  }
1239
- const sa = {
1252
+ const ra = {
1240
1253
  offset: "stroke-dashoffset",
1241
1254
  array: "stroke-dasharray"
1242
- }, ra = {
1255
+ }, oa = {
1243
1256
  offset: "strokeDashoffset",
1244
1257
  array: "strokeDasharray"
1245
1258
  };
1246
- function oa(t, e, n = 1, i = 0, s = !0) {
1259
+ function aa(t, e, n = 1, i = 0, s = !0) {
1247
1260
  t.pathLength = 1;
1248
- const o = s ? sa : ra;
1249
- t[o.offset] = P.transform(-i);
1250
- const r = P.transform(e), a = P.transform(n);
1261
+ const o = s ? ra : oa;
1262
+ t[o.offset] = A.transform(-i);
1263
+ const r = A.transform(e), a = A.transform(n);
1251
1264
  t[o.array] = `${r} ${a}`;
1252
1265
  }
1253
1266
  function cn(t, {
@@ -1268,15 +1281,15 @@ function cn(t, {
1268
1281
  }
1269
1282
  t.attrs = t.style, t.style = {};
1270
1283
  const { attrs: f, style: p, dimensions: m } = t;
1271
- f.transform && (m && (p.transform = f.transform), delete f.transform), m && (s !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = ia(m, s !== void 0 ? s : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (f.x = e), n !== void 0 && (f.y = n), i !== void 0 && (f.scale = i), r !== void 0 && oa(f, r, a, l, !1);
1284
+ f.transform && (m && (p.transform = f.transform), delete f.transform), m && (s !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = sa(m, s !== void 0 ? s : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (f.x = e), n !== void 0 && (f.y = n), i !== void 0 && (f.scale = i), r !== void 0 && aa(f, r, a, l, !1);
1272
1285
  }
1273
- const ps = () => ({
1286
+ const fs = () => ({
1274
1287
  ...ln(),
1275
1288
  attrs: {}
1276
1289
  }), un = (t) => typeof t == "string" && t.toLowerCase() === "svg";
1277
- function aa(t, e, n, i) {
1290
+ function la(t, e, n, i) {
1278
1291
  const s = be(() => {
1279
- const o = ps();
1292
+ const o = fs();
1280
1293
  return cn(o, e, { enableHardwareAcceleration: !1 }, un(i), t.transformTemplate), {
1281
1294
  ...o.attrs,
1282
1295
  style: { ...o.style }
@@ -1284,29 +1297,29 @@ function aa(t, e, n, i) {
1284
1297
  }, [e]);
1285
1298
  if (t.style) {
1286
1299
  const o = {};
1287
- ds(o, t.style, t), s.style = { ...o, ...s.style };
1300
+ hs(o, t.style, t), s.style = { ...o, ...s.style };
1288
1301
  }
1289
1302
  return s;
1290
1303
  }
1291
- function la(t = !1) {
1304
+ function ca(t = !1) {
1292
1305
  return (n, i, s, { latestValues: o }, r) => {
1293
- const l = (on(n) ? aa : Jo)(i, o, r, n), u = {
1294
- ...na(i, typeof n == "string", t),
1306
+ const l = (on(n) ? la : ta)(i, o, r, n), u = {
1307
+ ...ia(i, typeof n == "string", t),
1295
1308
  ...l,
1296
1309
  ref: s
1297
- }, { children: h } = i, d = be(() => _(h) ? h.get() : h, [h]);
1298
- return _i(n, {
1310
+ }, { children: h } = i, d = be(() => U(h) ? h.get() : h, [h]);
1311
+ return Wi(n, {
1299
1312
  ...u,
1300
1313
  children: d
1301
1314
  });
1302
1315
  };
1303
1316
  }
1304
- function ms(t, { style: e, vars: n }, i, s) {
1317
+ function ps(t, { style: e, vars: n }, i, s) {
1305
1318
  Object.assign(t.style, e, s && s.getProjectionStyles(i));
1306
1319
  for (const o in n)
1307
1320
  t.style.setProperty(o, n[o]);
1308
1321
  }
1309
- const gs = /* @__PURE__ */ new Set([
1322
+ const ms = /* @__PURE__ */ new Set([
1310
1323
  "baseFrequency",
1311
1324
  "diffuseConstant",
1312
1325
  "kernelMatrix",
@@ -1331,21 +1344,21 @@ const gs = /* @__PURE__ */ new Set([
1331
1344
  "textLength",
1332
1345
  "lengthAdjust"
1333
1346
  ]);
1334
- function vs(t, e, n, i) {
1335
- ms(t, e, void 0, i);
1347
+ function gs(t, e, n, i) {
1348
+ ps(t, e, void 0, i);
1336
1349
  for (const s in e.attrs)
1337
- t.setAttribute(gs.has(s) ? s : nn(s), e.attrs[s]);
1350
+ t.setAttribute(ms.has(s) ? s : nn(s), e.attrs[s]);
1338
1351
  }
1339
1352
  function hn(t, e) {
1340
1353
  const { style: n } = t, i = {};
1341
1354
  for (const s in n)
1342
- (_(n[s]) || e.style && _(e.style[s]) || as(s, t)) && (i[s] = n[s]);
1355
+ (U(n[s]) || e.style && U(e.style[s]) || os(s, t)) && (i[s] = n[s]);
1343
1356
  return i;
1344
1357
  }
1345
- function ys(t, e) {
1358
+ function vs(t, e) {
1346
1359
  const n = hn(t, e);
1347
1360
  for (const i in t)
1348
- if (_(t[i]) || _(e[i])) {
1361
+ if (U(t[i]) || U(e[i])) {
1349
1362
  const s = qt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
1350
1363
  n[s] = t[i];
1351
1364
  }
@@ -1354,32 +1367,32 @@ function ys(t, e) {
1354
1367
  function dn(t, e, n, i = {}, s = {}) {
1355
1368
  return typeof e == "function" && (e = e(n !== void 0 ? n : t.custom, i, s)), typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function" && (e = e(n !== void 0 ? n : t.custom, i, s)), e;
1356
1369
  }
1357
- function ca(t) {
1370
+ function ua(t) {
1358
1371
  const e = Et(null);
1359
1372
  return e.current === null && (e.current = t()), e.current;
1360
1373
  }
1361
- const fe = (t) => Array.isArray(t), ua = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), ha = (t) => fe(t) ? t[t.length - 1] || 0 : t;
1374
+ const fe = (t) => Array.isArray(t), ha = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), da = (t) => fe(t) ? t[t.length - 1] || 0 : t;
1362
1375
  function ae(t) {
1363
- const e = _(t) ? t.get() : t;
1364
- return ua(e) ? e.toValue() : e;
1376
+ const e = U(t) ? t.get() : t;
1377
+ return ha(e) ? e.toValue() : e;
1365
1378
  }
1366
- function da({ scrapeMotionValuesFromProps: t, createRenderState: e, onMount: n }, i, s, o) {
1379
+ function fa({ scrapeMotionValuesFromProps: t, createRenderState: e, onMount: n }, i, s, o) {
1367
1380
  const r = {
1368
- latestValues: fa(i, s, o, t),
1381
+ latestValues: pa(i, s, o, t),
1369
1382
  renderState: e()
1370
1383
  };
1371
1384
  return n && (r.mount = (a) => n(i, a, r)), r;
1372
1385
  }
1373
- const bs = (t) => (e, n) => {
1374
- const i = W(xe), s = W(en), o = () => da(t, e, i, s);
1375
- return n ? o() : ca(o);
1386
+ const ys = (t) => (e, n) => {
1387
+ const i = _(xe), s = _(en), o = () => fa(t, e, i, s);
1388
+ return n ? o() : ua(o);
1376
1389
  };
1377
- function fa(t, e, n, i) {
1390
+ function pa(t, e, n, i) {
1378
1391
  const s = {}, o = i(t, {});
1379
1392
  for (const d in o)
1380
1393
  s[d] = ae(o[d]);
1381
1394
  let { initial: r, animate: a } = t;
1382
- const l = Te(t), c = ss(t);
1395
+ const l = Te(t), c = is(t);
1383
1396
  e && c && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
1384
1397
  let u = n ? n.initial === !1 : !1;
1385
1398
  u = u || r === !1;
@@ -1388,17 +1401,17 @@ function fa(t, e, n, i) {
1388
1401
  const p = dn(t, f);
1389
1402
  if (!p)
1390
1403
  return;
1391
- const { transitionEnd: m, transition: v, ...y } = p;
1392
- for (const b in y) {
1393
- let g = y[b];
1404
+ const { transitionEnd: m, transition: v, ...b } = p;
1405
+ for (const y in b) {
1406
+ let g = b[y];
1394
1407
  if (Array.isArray(g)) {
1395
1408
  const x = u ? g.length - 1 : 0;
1396
1409
  g = g[x];
1397
1410
  }
1398
- g !== null && (s[b] = g);
1411
+ g !== null && (s[y] = g);
1399
1412
  }
1400
- for (const b in m)
1401
- s[b] = m[b];
1413
+ for (const y in m)
1414
+ s[y] = m[y];
1402
1415
  }), s;
1403
1416
  }
1404
1417
  const O = (t) => t;
@@ -1418,7 +1431,7 @@ class In {
1418
1431
  this.order.length = 0, this.scheduled.clear();
1419
1432
  }
1420
1433
  }
1421
- function pa(t) {
1434
+ function ma(t) {
1422
1435
  let e = new In(), n = new In(), i = 0, s = !1, o = !1;
1423
1436
  const r = /* @__PURE__ */ new WeakSet(), a = {
1424
1437
  /**
@@ -1459,16 +1472,16 @@ const ne = [
1459
1472
  "preRender",
1460
1473
  "render",
1461
1474
  "postRender"
1462
- ], ma = 40;
1463
- function ga(t, e) {
1475
+ ], ga = 40;
1476
+ function va(t, e) {
1464
1477
  let n = !1, i = !0;
1465
1478
  const s = {
1466
1479
  delta: 0,
1467
1480
  timestamp: 0,
1468
1481
  isProcessing: !1
1469
- }, o = ne.reduce((h, d) => (h[d] = pa(() => n = !0), h), {}), r = (h) => o[h].process(s), a = () => {
1482
+ }, o = ne.reduce((h, d) => (h[d] = ma(() => n = !0), h), {}), r = (h) => o[h].process(s), a = () => {
1470
1483
  const h = performance.now();
1471
- n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(h - s.timestamp, ma), 1), s.timestamp = h, s.isProcessing = !0, ne.forEach(r), s.isProcessing = !1, n && e && (i = !1, t(a));
1484
+ n = !1, s.delta = i ? 1e3 / 60 : Math.max(Math.min(h - s.timestamp, ga), 1), s.timestamp = h, s.isProcessing = !0, ne.forEach(r), s.isProcessing = !1, n && e && (i = !1, t(a));
1472
1485
  }, l = () => {
1473
1486
  n = !0, i = !0, s.isProcessing || t(a);
1474
1487
  };
@@ -1477,10 +1490,10 @@ function ga(t, e) {
1477
1490
  return h[d] = (p, m = !1, v = !1) => (n || l(), f.schedule(p, m, v)), h;
1478
1491
  }, {}), cancel: (h) => ne.forEach((d) => o[d].cancel(h)), state: s, steps: o };
1479
1492
  }
1480
- const { schedule: V, cancel: et, state: N, steps: Me } = ga(typeof requestAnimationFrame < "u" ? requestAnimationFrame : O, !0), va = {
1481
- useVisualState: bs({
1482
- scrapeMotionValuesFromProps: ys,
1483
- createRenderState: ps,
1493
+ const { schedule: V, cancel: et, state: B, steps: Me } = va(typeof requestAnimationFrame < "u" ? requestAnimationFrame : O, !0), ya = {
1494
+ useVisualState: ys({
1495
+ scrapeMotionValuesFromProps: vs,
1496
+ createRenderState: fs,
1484
1497
  onMount: (t, e, { renderState: n, latestValues: i }) => {
1485
1498
  V.read(() => {
1486
1499
  try {
@@ -1494,21 +1507,21 @@ const { schedule: V, cancel: et, state: N, steps: Me } = ga(typeof requestAnimat
1494
1507
  };
1495
1508
  }
1496
1509
  }), V.render(() => {
1497
- cn(n, i, { enableHardwareAcceleration: !1 }, un(e.tagName), t.transformTemplate), vs(e, n);
1510
+ cn(n, i, { enableHardwareAcceleration: !1 }, un(e.tagName), t.transformTemplate), gs(e, n);
1498
1511
  });
1499
1512
  }
1500
1513
  })
1501
- }, ya = {
1502
- useVisualState: bs({
1514
+ }, ba = {
1515
+ useVisualState: ys({
1503
1516
  scrapeMotionValuesFromProps: hn,
1504
1517
  createRenderState: ln
1505
1518
  })
1506
1519
  };
1507
- function ba(t, { forwardMotionProps: e = !1 }, n, i) {
1520
+ function xa(t, { forwardMotionProps: e = !1 }, n, i) {
1508
1521
  return {
1509
- ...on(t) ? va : ya,
1522
+ ...on(t) ? ya : ba,
1510
1523
  preloadedFeatures: n,
1511
- useRender: la(e),
1524
+ useRender: ca(e),
1512
1525
  createVisualElement: i,
1513
1526
  Component: t
1514
1527
  };
@@ -1516,8 +1529,8 @@ function ba(t, { forwardMotionProps: e = !1 }, n, i) {
1516
1529
  function Z(t, e, n, i = { passive: !0 }) {
1517
1530
  return t.addEventListener(e, n, i), () => t.removeEventListener(e, n);
1518
1531
  }
1519
- const xs = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
1520
- function Pe(t, e = "page") {
1532
+ const bs = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1;
1533
+ function Ae(t, e = "page") {
1521
1534
  return {
1522
1535
  point: {
1523
1536
  x: t[e + "X"],
@@ -1525,12 +1538,12 @@ function Pe(t, e = "page") {
1525
1538
  }
1526
1539
  };
1527
1540
  }
1528
- const xa = (t) => (e) => xs(e) && t(e, Pe(e));
1541
+ const wa = (t) => (e) => bs(e) && t(e, Ae(e));
1529
1542
  function J(t, e, n, i) {
1530
- return Z(t, e, xa(n), i);
1543
+ return Z(t, e, wa(n), i);
1531
1544
  }
1532
- const wa = (t, e) => (n) => e(t(n)), ct = (...t) => t.reduce(wa);
1533
- function ws(t) {
1545
+ const Sa = (t, e) => (n) => e(t(n)), ct = (...t) => t.reduce(Sa);
1546
+ function xs(t) {
1534
1547
  let e = null;
1535
1548
  return () => {
1536
1549
  const n = () => {
@@ -1539,8 +1552,8 @@ function ws(t) {
1539
1552
  return e === null ? (e = t, n) : !1;
1540
1553
  };
1541
1554
  }
1542
- const Fn = ws("dragHorizontal"), zn = ws("dragVertical");
1543
- function Ss(t) {
1555
+ const Fn = xs("dragHorizontal"), zn = xs("dragVertical");
1556
+ function ws(t) {
1544
1557
  let e = !1;
1545
1558
  if (t === "y")
1546
1559
  e = zn();
@@ -1554,8 +1567,8 @@ function Ss(t) {
1554
1567
  }
1555
1568
  return e;
1556
1569
  }
1557
- function Ts() {
1558
- const t = Ss(!0);
1570
+ function Ss() {
1571
+ const t = ws(!0);
1559
1572
  return t ? (t(), !1) : !0;
1560
1573
  }
1561
1574
  class ft {
@@ -1567,7 +1580,7 @@ class ft {
1567
1580
  }
1568
1581
  function Wn(t, e) {
1569
1582
  const n = "pointer" + (e ? "enter" : "leave"), i = "onHover" + (e ? "Start" : "End"), s = (o, r) => {
1570
- if (o.pointerType === "touch" || Ts())
1583
+ if (o.pointerType === "touch" || Ss())
1571
1584
  return;
1572
1585
  const a = t.getProps();
1573
1586
  t.animationState && a.whileHover && t.animationState.setActive("whileHover", e), a[i] && V.update(() => a[i](o, r));
@@ -1576,14 +1589,14 @@ function Wn(t, e) {
1576
1589
  passive: !t.getProps()[i]
1577
1590
  });
1578
1591
  }
1579
- class Sa extends ft {
1592
+ class Ta extends ft {
1580
1593
  mount() {
1581
1594
  this.unmount = ct(Wn(this.node, !0), Wn(this.node, !1));
1582
1595
  }
1583
1596
  unmount() {
1584
1597
  }
1585
1598
  }
1586
- class Ta extends ft {
1599
+ class Pa extends ft {
1587
1600
  constructor() {
1588
1601
  super(...arguments), this.isActive = !1;
1589
1602
  }
@@ -1605,12 +1618,12 @@ class Ta extends ft {
1605
1618
  unmount() {
1606
1619
  }
1607
1620
  }
1608
- const As = (t, e) => e ? t === e ? !0 : As(t, e.parentElement) : !1;
1621
+ const Ts = (t, e) => e ? t === e ? !0 : Ts(t, e.parentElement) : !1;
1609
1622
  function Oe(t, e) {
1610
1623
  if (!e)
1611
1624
  return;
1612
1625
  const n = new PointerEvent("pointer" + t);
1613
- e(n, Pe(n));
1626
+ e(n, Ae(n));
1614
1627
  }
1615
1628
  class Aa extends ft {
1616
1629
  constructor() {
@@ -1623,7 +1636,7 @@ class Aa extends ft {
1623
1636
  return;
1624
1637
  const { onTap: c, onTapCancel: u, globalTapTarget: h } = this.node.getProps();
1625
1638
  V.update(() => {
1626
- !h && !As(this.node.current, a.target) ? u && u(a, l) : c && c(a, l);
1639
+ !h && !Ts(this.node.current, a.target) ? u && u(a, l) : c && c(a, l);
1627
1640
  });
1628
1641
  }, { passive: !(i.onTap || i.onPointerUp) }), r = J(window, "pointercancel", (a, l) => this.cancelPress(a, l), { passive: !(i.onTapCancel || i.onPointerCancel) });
1629
1642
  this.removeEndListeners = ct(o, r), this.startPress(e, n);
@@ -1652,7 +1665,7 @@ class Aa extends ft {
1652
1665
  s && this.node.animationState && this.node.animationState.setActive("whileTap", !0), i && V.update(() => i(e, n));
1653
1666
  }
1654
1667
  checkPressEnd() {
1655
- return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Ts();
1668
+ return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !Ss();
1656
1669
  }
1657
1670
  cancelPress(e, n) {
1658
1671
  if (!this.checkPressEnd())
@@ -1668,29 +1681,29 @@ class Aa extends ft {
1668
1681
  this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners();
1669
1682
  }
1670
1683
  }
1671
- const Ue = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Pa = (t) => {
1684
+ const Ue = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), ka = (t) => {
1672
1685
  const e = Ue.get(t.target);
1673
1686
  e && e(t);
1674
- }, ka = (t) => {
1675
- t.forEach(Pa);
1687
+ }, Ca = (t) => {
1688
+ t.forEach(ka);
1676
1689
  };
1677
- function Ca({ root: t, ...e }) {
1690
+ function Va({ root: t, ...e }) {
1678
1691
  const n = t || document;
1679
1692
  De.has(n) || De.set(n, {});
1680
1693
  const i = De.get(n), s = JSON.stringify(e);
1681
- return i[s] || (i[s] = new IntersectionObserver(ka, { root: t, ...e })), i[s];
1694
+ return i[s] || (i[s] = new IntersectionObserver(Ca, { root: t, ...e })), i[s];
1682
1695
  }
1683
- function Va(t, e, n) {
1684
- const i = Ca(e);
1696
+ function Ea(t, e, n) {
1697
+ const i = Va(e);
1685
1698
  return Ue.set(t, n), i.observe(t), () => {
1686
1699
  Ue.delete(t), i.unobserve(t);
1687
1700
  };
1688
1701
  }
1689
- const Ea = {
1702
+ const Ma = {
1690
1703
  some: 0,
1691
1704
  all: 1
1692
1705
  };
1693
- class Ma extends ft {
1706
+ class Oa extends ft {
1694
1707
  constructor() {
1695
1708
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
1696
1709
  }
@@ -1699,7 +1712,7 @@ class Ma extends ft {
1699
1712
  const { viewport: e = {} } = this.node.getProps(), { root: n, margin: i, amount: s = "some", once: o } = e, r = {
1700
1713
  root: n ? n.current : void 0,
1701
1714
  rootMargin: i,
1702
- threshold: typeof s == "number" ? s : Ea[s]
1715
+ threshold: typeof s == "number" ? s : Ma[s]
1703
1716
  }, a = (l) => {
1704
1717
  const { isIntersecting: c } = l;
1705
1718
  if (this.isInView === c || (this.isInView = c, o && !c && this.hasEnteredView))
@@ -1708,7 +1721,7 @@ class Ma extends ft {
1708
1721
  const { onViewportEnter: u, onViewportLeave: h } = this.node.getProps(), d = c ? u : h;
1709
1722
  d && d(l);
1710
1723
  };
1711
- return Va(this.node.current, r, a);
1724
+ return Ea(this.node.current, r, a);
1712
1725
  }
1713
1726
  mount() {
1714
1727
  this.startObserver();
@@ -1717,26 +1730,26 @@ class Ma extends ft {
1717
1730
  if (typeof IntersectionObserver > "u")
1718
1731
  return;
1719
1732
  const { props: e, prevProps: n } = this.node;
1720
- ["amount", "margin", "root"].some(Oa(e, n)) && this.startObserver();
1733
+ ["amount", "margin", "root"].some(Da(e, n)) && this.startObserver();
1721
1734
  }
1722
1735
  unmount() {
1723
1736
  }
1724
1737
  }
1725
- function Oa({ viewport: t = {} }, { viewport: e = {} } = {}) {
1738
+ function Da({ viewport: t = {} }, { viewport: e = {} } = {}) {
1726
1739
  return (n) => t[n] !== e[n];
1727
1740
  }
1728
- const Da = {
1741
+ const La = {
1729
1742
  inView: {
1730
- Feature: Ma
1743
+ Feature: Oa
1731
1744
  },
1732
1745
  tap: {
1733
1746
  Feature: Aa
1734
1747
  },
1735
1748
  focus: {
1736
- Feature: Ta
1749
+ Feature: Pa
1737
1750
  },
1738
1751
  hover: {
1739
- Feature: Sa
1752
+ Feature: Ta
1740
1753
  }
1741
1754
  };
1742
1755
  function Ps(t, e) {
@@ -1750,17 +1763,17 @@ function Ps(t, e) {
1750
1763
  return !1;
1751
1764
  return !0;
1752
1765
  }
1753
- function La(t) {
1766
+ function Ra(t) {
1754
1767
  const e = {};
1755
1768
  return t.values.forEach((n, i) => e[i] = n.get()), e;
1756
1769
  }
1757
- function Ra(t) {
1770
+ function ja(t) {
1758
1771
  const e = {};
1759
1772
  return t.values.forEach((n, i) => e[i] = n.getVelocity()), e;
1760
1773
  }
1761
1774
  function ke(t, e, n) {
1762
1775
  const i = t.getProps();
1763
- return dn(i, e, n !== void 0 ? n : i.custom, La(t), Ra(t));
1776
+ return dn(i, e, n !== void 0 ? n : i.custom, Ra(t), ja(t));
1764
1777
  }
1765
1778
  let Qt = O, $ = O;
1766
1779
  process.env.NODE_ENV !== "production" && (Qt = (t, e) => {
@@ -1771,11 +1784,11 @@ process.env.NODE_ENV !== "production" && (Qt = (t, e) => {
1771
1784
  });
1772
1785
  const ut = (t) => t * 1e3, tt = (t) => t / 1e3, Ba = {
1773
1786
  current: !1
1774
- }, ks = (t) => Array.isArray(t) && typeof t[0] == "number";
1775
- function Cs(t) {
1776
- return !!(!t || typeof t == "string" && Vs[t] || ks(t) || Array.isArray(t) && t.every(Cs));
1787
+ }, As = (t) => Array.isArray(t) && typeof t[0] == "number";
1788
+ function ks(t) {
1789
+ return !!(!t || typeof t == "string" && Cs[t] || As(t) || Array.isArray(t) && t.every(ks));
1777
1790
  }
1778
- const Ft = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, Vs = {
1791
+ const Ft = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, Cs = {
1779
1792
  linear: "linear",
1780
1793
  ease: "ease",
1781
1794
  easeIn: "ease-in",
@@ -1786,14 +1799,14 @@ const Ft = ([t, e, n, i]) => `cubic-bezier(${t}, ${e}, ${n}, ${i})`, Vs = {
1786
1799
  backIn: Ft([0.31, 0.01, 0.66, -0.59]),
1787
1800
  backOut: Ft([0.33, 1.53, 0.69, 0.99])
1788
1801
  };
1789
- function Es(t) {
1802
+ function Vs(t) {
1790
1803
  if (t)
1791
- return ks(t) ? Ft(t) : Array.isArray(t) ? t.map(Es) : Vs[t];
1804
+ return As(t) ? Ft(t) : Array.isArray(t) ? t.map(Vs) : Cs[t];
1792
1805
  }
1793
1806
  function Na(t, e, n, { delay: i = 0, duration: s, repeat: o = 0, repeatType: r = "loop", ease: a, times: l } = {}) {
1794
1807
  const c = { [e]: n };
1795
1808
  l && (c.offset = l);
1796
- const u = Es(a);
1809
+ const u = Vs(a);
1797
1810
  return Array.isArray(u) && (c.easing = u), t.animate(c, {
1798
1811
  delay: i,
1799
1812
  duration: s,
@@ -1803,36 +1816,36 @@ function Na(t, e, n, { delay: i = 0, duration: s, repeat: o = 0, repeatType: r =
1803
1816
  direction: r === "reverse" ? "alternate" : "normal"
1804
1817
  });
1805
1818
  }
1806
- function ja(t, { repeat: e, repeatType: n = "loop" }) {
1819
+ function Ia(t, { repeat: e, repeatType: n = "loop" }) {
1807
1820
  const i = e && n !== "loop" && e % 2 === 1 ? 0 : t.length - 1;
1808
1821
  return t[i];
1809
1822
  }
1810
- const Ms = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Ia = 1e-7, Fa = 12;
1811
- function za(t, e, n, i, s) {
1823
+ const Es = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Fa = 1e-7, za = 12;
1824
+ function Wa(t, e, n, i, s) {
1812
1825
  let o, r, a = 0;
1813
1826
  do
1814
- r = e + (n - e) / 2, o = Ms(r, i, s) - t, o > 0 ? n = r : e = r;
1815
- while (Math.abs(o) > Ia && ++a < Fa);
1827
+ r = e + (n - e) / 2, o = Es(r, i, s) - t, o > 0 ? n = r : e = r;
1828
+ while (Math.abs(o) > Fa && ++a < za);
1816
1829
  return r;
1817
1830
  }
1818
1831
  function Zt(t, e, n, i) {
1819
1832
  if (t === e && n === i)
1820
1833
  return O;
1821
- const s = (o) => za(o, 0, 1, t, n);
1822
- return (o) => o === 0 || o === 1 ? o : Ms(s(o), e, i);
1834
+ const s = (o) => Wa(o, 0, 1, t, n);
1835
+ return (o) => o === 0 || o === 1 ? o : Es(s(o), e, i);
1823
1836
  }
1824
- const Wa = Zt(0.42, 0, 1, 1), _a = Zt(0, 0, 0.58, 1), Os = Zt(0.42, 0, 0.58, 1), Ua = (t) => Array.isArray(t) && typeof t[0] != "number", Ds = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Ls = (t) => (e) => 1 - t(1 - e), fn = (t) => 1 - Math.sin(Math.acos(t)), Rs = Ls(fn), Ha = Ds(fn), Bs = Zt(0.33, 1.53, 0.69, 0.99), pn = Ls(Bs), Ga = Ds(pn), Ya = (t) => (t *= 2) < 1 ? 0.5 * pn(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), _n = {
1837
+ const _a = Zt(0.42, 0, 1, 1), Ua = Zt(0, 0, 0.58, 1), Ms = Zt(0.42, 0, 0.58, 1), Ha = (t) => Array.isArray(t) && typeof t[0] != "number", Os = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Ds = (t) => (e) => 1 - t(1 - e), fn = (t) => 1 - Math.sin(Math.acos(t)), Ls = Ds(fn), Ga = Os(fn), Rs = Zt(0.33, 1.53, 0.69, 0.99), pn = Ds(Rs), Ya = Os(pn), Xa = (t) => (t *= 2) < 1 ? 0.5 * pn(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), _n = {
1825
1838
  linear: O,
1826
- easeIn: Wa,
1827
- easeInOut: Os,
1828
- easeOut: _a,
1839
+ easeIn: _a,
1840
+ easeInOut: Ms,
1841
+ easeOut: Ua,
1829
1842
  circIn: fn,
1830
- circInOut: Ha,
1831
- circOut: Rs,
1843
+ circInOut: Ga,
1844
+ circOut: Ls,
1832
1845
  backIn: pn,
1833
- backInOut: Ga,
1834
- backOut: Bs,
1835
- anticipate: Ya
1846
+ backInOut: Ya,
1847
+ backOut: Rs,
1848
+ anticipate: Xa
1836
1849
  }, Un = (t) => {
1837
1850
  if (Array.isArray(t)) {
1838
1851
  $(t.length === 4, "Cubic bezier arrays must contain four numerical values.");
@@ -1841,25 +1854,25 @@ const Wa = Zt(0.42, 0, 1, 1), _a = Zt(0, 0, 0.58, 1), Os = Zt(0.42, 0, 0.58, 1),
1841
1854
  } else if (typeof t == "string")
1842
1855
  return $(_n[t] !== void 0, `Invalid easing type '${t}'`), _n[t];
1843
1856
  return t;
1844
- }, mn = (t, e) => (n) => !!(Kt(n) && qo.test(n) && n.startsWith(t) || e && Object.prototype.hasOwnProperty.call(n, e)), Ns = (t, e, n) => (i) => {
1857
+ }, mn = (t, e) => (n) => !!(Kt(n) && Ko.test(n) && n.startsWith(t) || e && Object.prototype.hasOwnProperty.call(n, e)), js = (t, e, n) => (i) => {
1845
1858
  if (!Kt(i))
1846
1859
  return i;
1847
- const [s, o, r, a] = i.match(Ae);
1860
+ const [s, o, r, a] = i.match(Pe);
1848
1861
  return {
1849
1862
  [t]: parseFloat(s),
1850
1863
  [e]: parseFloat(o),
1851
1864
  [n]: parseFloat(r),
1852
1865
  alpha: a !== void 0 ? parseFloat(a) : 1
1853
1866
  };
1854
- }, Xa = (t) => ht(0, 255, t), Le = {
1867
+ }, qa = (t) => ht(0, 255, t), Le = {
1855
1868
  ...xt,
1856
- transform: (t) => Math.round(Xa(t))
1869
+ transform: (t) => Math.round(qa(t))
1857
1870
  }, yt = {
1858
1871
  test: mn("rgb", "red"),
1859
- parse: Ns("red", "green", "blue"),
1872
+ parse: js("red", "green", "blue"),
1860
1873
  transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + Le.transform(t) + ", " + Le.transform(e) + ", " + Le.transform(n) + ", " + Wt(zt.transform(i)) + ")"
1861
1874
  };
1862
- function qa(t) {
1875
+ function Ka(t) {
1863
1876
  let e = "", n = "", i = "", s = "";
1864
1877
  return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), i = t.substring(5, 7), s = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), i = t.substring(3, 4), s = t.substring(4, 5), e += e, n += n, i += i, s += s), {
1865
1878
  red: parseInt(e, 16),
@@ -1870,11 +1883,11 @@ function qa(t) {
1870
1883
  }
1871
1884
  const He = {
1872
1885
  test: mn("#"),
1873
- parse: qa,
1886
+ parse: Ka,
1874
1887
  transform: yt.transform
1875
1888
  }, kt = {
1876
1889
  test: mn("hsl", "hue"),
1877
- parse: Ns("hue", "saturation", "lightness"),
1890
+ parse: js("hue", "saturation", "lightness"),
1878
1891
  transform: ({ hue: t, saturation: e, lightness: n, alpha: i = 1 }) => "hsla(" + Math.round(t) + ", " + Q.transform(Wt(e)) + ", " + Q.transform(Wt(n)) + ", " + Wt(zt.transform(i)) + ")"
1879
1892
  }, I = {
1880
1893
  test: (t) => yt.test(t) || He.test(t) || kt.test(t),
@@ -1884,7 +1897,7 @@ const He = {
1884
1897
  function Re(t, e, n) {
1885
1898
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
1886
1899
  }
1887
- function Ka({ hue: t, saturation: e, lightness: n, alpha: i }) {
1900
+ function $a({ hue: t, saturation: e, lightness: n, alpha: i }) {
1888
1901
  t /= 360, e /= 100, n /= 100;
1889
1902
  let s = 0, o = 0, r = 0;
1890
1903
  if (!e)
@@ -1900,41 +1913,41 @@ function Ka({ hue: t, saturation: e, lightness: n, alpha: i }) {
1900
1913
  alpha: i
1901
1914
  };
1902
1915
  }
1903
- const Be = (t, e, n) => {
1916
+ const je = (t, e, n) => {
1904
1917
  const i = t * t;
1905
1918
  return Math.sqrt(Math.max(0, n * (e * e - i) + i));
1906
- }, $a = [He, yt, kt], Qa = (t) => $a.find((e) => e.test(t));
1919
+ }, Qa = [He, yt, kt], Za = (t) => Qa.find((e) => e.test(t));
1907
1920
  function Hn(t) {
1908
- const e = Qa(t);
1921
+ const e = Za(t);
1909
1922
  $(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`);
1910
1923
  let n = e.parse(t);
1911
- return e === kt && (n = Ka(n)), n;
1924
+ return e === kt && (n = $a(n)), n;
1912
1925
  }
1913
- const js = (t, e) => {
1926
+ const Bs = (t, e) => {
1914
1927
  const n = Hn(t), i = Hn(e), s = { ...n };
1915
- return (o) => (s.red = Be(n.red, i.red, o), s.green = Be(n.green, i.green, o), s.blue = Be(n.blue, i.blue, o), s.alpha = M(n.alpha, i.alpha, o), yt.transform(s));
1928
+ return (o) => (s.red = je(n.red, i.red, o), s.green = je(n.green, i.green, o), s.blue = je(n.blue, i.blue, o), s.alpha = M(n.alpha, i.alpha, o), yt.transform(s));
1916
1929
  };
1917
- function Za(t) {
1930
+ function Ja(t) {
1918
1931
  var e, n;
1919
- return isNaN(t) && Kt(t) && (((e = t.match(Ae)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(us)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
1932
+ return isNaN(t) && Kt(t) && (((e = t.match(Pe)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(cs)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
1920
1933
  }
1921
- const Is = {
1922
- regex: Yo,
1934
+ const Ns = {
1935
+ regex: Xo,
1923
1936
  countKey: "Vars",
1924
1937
  token: "${v}",
1925
1938
  parse: O
1926
- }, Fs = {
1927
- regex: us,
1939
+ }, Is = {
1940
+ regex: cs,
1928
1941
  countKey: "Colors",
1929
1942
  token: "${c}",
1930
1943
  parse: I.parse
1931
- }, zs = {
1932
- regex: Ae,
1944
+ }, Fs = {
1945
+ regex: Pe,
1933
1946
  countKey: "Numbers",
1934
1947
  token: "${n}",
1935
1948
  parse: xt.parse
1936
1949
  };
1937
- function Ne(t, { regex: e, countKey: n, token: i, parse: s }) {
1950
+ function Be(t, { regex: e, countKey: n, token: i, parse: s }) {
1938
1951
  const o = t.tokenised.match(e);
1939
1952
  o && (t["num" + n] = o.length, t.tokenised = t.tokenised.replace(e, i), t.values.push(...o.map(s)));
1940
1953
  }
@@ -1947,62 +1960,62 @@ function pe(t) {
1947
1960
  numColors: 0,
1948
1961
  numNumbers: 0
1949
1962
  };
1950
- return n.value.includes("var(--") && Ne(n, Is), Ne(n, Fs), Ne(n, zs), n;
1963
+ return n.value.includes("var(--") && Be(n, Ns), Be(n, Is), Be(n, Fs), n;
1951
1964
  }
1952
- function Ws(t) {
1965
+ function zs(t) {
1953
1966
  return pe(t).values;
1954
1967
  }
1955
- function _s(t) {
1968
+ function Ws(t) {
1956
1969
  const { values: e, numColors: n, numVars: i, tokenised: s } = pe(t), o = e.length;
1957
1970
  return (r) => {
1958
1971
  let a = s;
1959
1972
  for (let l = 0; l < o; l++)
1960
- l < i ? a = a.replace(Is.token, r[l]) : l < i + n ? a = a.replace(Fs.token, I.transform(r[l])) : a = a.replace(zs.token, Wt(r[l]));
1973
+ l < i ? a = a.replace(Ns.token, r[l]) : l < i + n ? a = a.replace(Is.token, I.transform(r[l])) : a = a.replace(Fs.token, Wt(r[l]));
1961
1974
  return a;
1962
1975
  };
1963
1976
  }
1964
- const Ja = (t) => typeof t == "number" ? 0 : t;
1965
- function tl(t) {
1966
- const e = Ws(t);
1967
- return _s(t)(e.map(Ja));
1977
+ const tl = (t) => typeof t == "number" ? 0 : t;
1978
+ function el(t) {
1979
+ const e = zs(t);
1980
+ return Ws(t)(e.map(tl));
1968
1981
  }
1969
1982
  const dt = {
1970
- test: Za,
1971
- parse: Ws,
1972
- createTransformer: _s,
1973
- getAnimatableNone: tl
1974
- }, Us = (t, e) => (n) => `${n > 0 ? e : t}`;
1975
- function Hs(t, e) {
1976
- return typeof t == "number" ? (n) => M(t, e, n) : I.test(t) ? js(t, e) : t.startsWith("var(") ? Us(t, e) : Ys(t, e);
1977
- }
1978
- const Gs = (t, e) => {
1979
- const n = [...t], i = n.length, s = t.map((o, r) => Hs(o, e[r]));
1983
+ test: Ja,
1984
+ parse: zs,
1985
+ createTransformer: Ws,
1986
+ getAnimatableNone: el
1987
+ }, _s = (t, e) => (n) => `${n > 0 ? e : t}`;
1988
+ function Us(t, e) {
1989
+ return typeof t == "number" ? (n) => M(t, e, n) : I.test(t) ? Bs(t, e) : t.startsWith("var(") ? _s(t, e) : Gs(t, e);
1990
+ }
1991
+ const Hs = (t, e) => {
1992
+ const n = [...t], i = n.length, s = t.map((o, r) => Us(o, e[r]));
1980
1993
  return (o) => {
1981
1994
  for (let r = 0; r < i; r++)
1982
1995
  n[r] = s[r](o);
1983
1996
  return n;
1984
1997
  };
1985
- }, el = (t, e) => {
1998
+ }, nl = (t, e) => {
1986
1999
  const n = { ...t, ...e }, i = {};
1987
2000
  for (const s in n)
1988
- t[s] !== void 0 && e[s] !== void 0 && (i[s] = Hs(t[s], e[s]));
2001
+ t[s] !== void 0 && e[s] !== void 0 && (i[s] = Us(t[s], e[s]));
1989
2002
  return (s) => {
1990
2003
  for (const o in i)
1991
2004
  n[o] = i[o](s);
1992
2005
  return n;
1993
2006
  };
1994
- }, Ys = (t, e) => {
2007
+ }, Gs = (t, e) => {
1995
2008
  const n = dt.createTransformer(e), i = pe(t), s = pe(e);
1996
- return i.numVars === s.numVars && i.numColors === s.numColors && i.numNumbers >= s.numNumbers ? ct(Gs(i.values, s.values), n) : (Qt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Us(t, e));
2009
+ return i.numVars === s.numVars && i.numColors === s.numColors && i.numNumbers >= s.numNumbers ? ct(Hs(i.values, s.values), n) : (Qt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), _s(t, e));
1997
2010
  }, Yt = (t, e, n) => {
1998
2011
  const i = e - t;
1999
2012
  return i === 0 ? 1 : (n - t) / i;
2000
2013
  }, Gn = (t, e) => (n) => M(t, e, n);
2001
- function nl(t) {
2002
- return typeof t == "number" ? Gn : typeof t == "string" ? I.test(t) ? js : Ys : Array.isArray(t) ? Gs : typeof t == "object" ? el : Gn;
2014
+ function il(t) {
2015
+ return typeof t == "number" ? Gn : typeof t == "string" ? I.test(t) ? Bs : Gs : Array.isArray(t) ? Hs : typeof t == "object" ? nl : Gn;
2003
2016
  }
2004
- function il(t, e, n) {
2005
- const i = [], s = n || nl(t[0]), o = t.length - 1;
2017
+ function sl(t, e, n) {
2018
+ const i = [], s = n || il(t[0]), o = t.length - 1;
2006
2019
  for (let r = 0; r < o; r++) {
2007
2020
  let a = s(t[r], t[r + 1]);
2008
2021
  if (e) {
@@ -2013,12 +2026,12 @@ function il(t, e, n) {
2013
2026
  }
2014
2027
  return i;
2015
2028
  }
2016
- function Xs(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
2029
+ function Ys(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
2017
2030
  const o = t.length;
2018
2031
  if ($(o === e.length, "Both input and output ranges must be the same length"), o === 1)
2019
2032
  return () => e[0];
2020
2033
  t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
2021
- const r = il(e, i, s), a = r.length, l = (c) => {
2034
+ const r = sl(e, i, s), a = r.length, l = (c) => {
2022
2035
  let u = 0;
2023
2036
  if (a > 1)
2024
2037
  for (; u < t.length - 2 && !(c < t[u + 1]); u++)
@@ -2028,67 +2041,67 @@ function Xs(t, e, { clamp: n = !0, ease: i, mixer: s } = {}) {
2028
2041
  };
2029
2042
  return n ? (c) => l(ht(t[0], t[o - 1], c)) : l;
2030
2043
  }
2031
- function sl(t, e) {
2044
+ function rl(t, e) {
2032
2045
  const n = t[t.length - 1];
2033
2046
  for (let i = 1; i <= e; i++) {
2034
2047
  const s = Yt(0, e, i);
2035
2048
  t.push(M(n, 1, s));
2036
2049
  }
2037
2050
  }
2038
- function rl(t) {
2051
+ function ol(t) {
2039
2052
  const e = [0];
2040
- return sl(e, t.length - 1), e;
2053
+ return rl(e, t.length - 1), e;
2041
2054
  }
2042
- function ol(t, e) {
2055
+ function al(t, e) {
2043
2056
  return t.map((n) => n * e);
2044
2057
  }
2045
- function al(t, e) {
2046
- return t.map(() => e || Os).splice(0, t.length - 1);
2058
+ function ll(t, e) {
2059
+ return t.map(() => e || Ms).splice(0, t.length - 1);
2047
2060
  }
2048
2061
  function me({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
2049
- const s = Ua(i) ? i.map(Un) : Un(i), o = {
2062
+ const s = Ha(i) ? i.map(Un) : Un(i), o = {
2050
2063
  done: !1,
2051
2064
  value: e[0]
2052
- }, r = ol(
2065
+ }, r = al(
2053
2066
  // Only use the provided offsets if they're the correct length
2054
2067
  // TODO Maybe we should warn here if there's a length mismatch
2055
- n && n.length === e.length ? n : rl(e),
2068
+ n && n.length === e.length ? n : ol(e),
2056
2069
  t
2057
- ), a = Xs(r, e, {
2058
- ease: Array.isArray(s) ? s : al(e, s)
2070
+ ), a = Ys(r, e, {
2071
+ ease: Array.isArray(s) ? s : ll(e, s)
2059
2072
  });
2060
2073
  return {
2061
2074
  calculatedDuration: t,
2062
2075
  next: (l) => (o.value = a(l), o.done = l >= t, o)
2063
2076
  };
2064
2077
  }
2065
- function qs(t, e) {
2078
+ function Xs(t, e) {
2066
2079
  return e ? t * (1e3 / e) : 0;
2067
2080
  }
2068
- const ll = 5;
2069
- function Ks(t, e, n) {
2070
- const i = Math.max(e - ll, 0);
2071
- return qs(n - t(i), e - i);
2081
+ const cl = 5;
2082
+ function qs(t, e, n) {
2083
+ const i = Math.max(e - cl, 0);
2084
+ return Xs(n - t(i), e - i);
2072
2085
  }
2073
- const je = 1e-3, cl = 0.01, Yn = 10, ul = 0.05, hl = 1;
2074
- function dl({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1 }) {
2086
+ const Ne = 1e-3, ul = 0.01, Yn = 10, hl = 0.05, dl = 1;
2087
+ function fl({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1 }) {
2075
2088
  let s, o;
2076
2089
  Qt(t <= ut(Yn), "Spring duration must be 10 seconds or less");
2077
2090
  let r = 1 - e;
2078
- r = ht(ul, hl, r), t = ht(cl, Yn, tt(t)), r < 1 ? (s = (c) => {
2091
+ r = ht(hl, dl, r), t = ht(ul, Yn, tt(t)), r < 1 ? (s = (c) => {
2079
2092
  const u = c * r, h = u * t, d = u - n, f = Ge(c, r), p = Math.exp(-h);
2080
- return je - d / f * p;
2093
+ return Ne - d / f * p;
2081
2094
  }, o = (c) => {
2082
2095
  const h = c * r * t, d = h * n + n, f = Math.pow(r, 2) * Math.pow(c, 2) * t, p = Math.exp(-h), m = Ge(Math.pow(c, 2), r);
2083
- return (-s(c) + je > 0 ? -1 : 1) * ((d - f) * p) / m;
2096
+ return (-s(c) + Ne > 0 ? -1 : 1) * ((d - f) * p) / m;
2084
2097
  }) : (s = (c) => {
2085
2098
  const u = Math.exp(-c * t), h = (c - n) * t + 1;
2086
- return -je + u * h;
2099
+ return -Ne + u * h;
2087
2100
  }, o = (c) => {
2088
2101
  const u = Math.exp(-c * t), h = (n - c) * (t * t);
2089
2102
  return u * h;
2090
2103
  });
2091
- const a = 5 / t, l = pl(s, o, a);
2104
+ const a = 5 / t, l = ml(s, o, a);
2092
2105
  if (t = ut(t), isNaN(l))
2093
2106
  return {
2094
2107
  stiffness: 100,
@@ -2104,21 +2117,21 @@ function dl({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: i = 1
2104
2117
  };
2105
2118
  }
2106
2119
  }
2107
- const fl = 12;
2108
- function pl(t, e, n) {
2120
+ const pl = 12;
2121
+ function ml(t, e, n) {
2109
2122
  let i = n;
2110
- for (let s = 1; s < fl; s++)
2123
+ for (let s = 1; s < pl; s++)
2111
2124
  i = i - t(i) / e(i);
2112
2125
  return i;
2113
2126
  }
2114
2127
  function Ge(t, e) {
2115
2128
  return t * Math.sqrt(1 - e * e);
2116
2129
  }
2117
- const ml = ["duration", "bounce"], gl = ["stiffness", "damping", "mass"];
2130
+ const gl = ["duration", "bounce"], vl = ["stiffness", "damping", "mass"];
2118
2131
  function Xn(t, e) {
2119
2132
  return e.some((n) => t[n] !== void 0);
2120
2133
  }
2121
- function vl(t) {
2134
+ function yl(t) {
2122
2135
  let e = {
2123
2136
  velocity: 0,
2124
2137
  stiffness: 100,
@@ -2127,8 +2140,8 @@ function vl(t) {
2127
2140
  isResolvedFromDuration: !1,
2128
2141
  ...t
2129
2142
  };
2130
- if (!Xn(t, gl) && Xn(t, ml)) {
2131
- const n = dl(t);
2143
+ if (!Xn(t, vl) && Xn(t, gl)) {
2144
+ const n = fl(t);
2132
2145
  e = {
2133
2146
  ...e,
2134
2147
  ...n,
@@ -2137,38 +2150,38 @@ function vl(t) {
2137
2150
  }
2138
2151
  return e;
2139
2152
  }
2140
- function $s({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2141
- const s = t[0], o = t[t.length - 1], r = { done: !1, value: s }, { stiffness: a, damping: l, mass: c, duration: u, velocity: h, isResolvedFromDuration: d } = vl({
2153
+ function Ks({ keyframes: t, restDelta: e, restSpeed: n, ...i }) {
2154
+ const s = t[0], o = t[t.length - 1], r = { done: !1, value: s }, { stiffness: a, damping: l, mass: c, duration: u, velocity: h, isResolvedFromDuration: d } = yl({
2142
2155
  ...i,
2143
2156
  velocity: -tt(i.velocity || 0)
2144
- }), f = h || 0, p = l / (2 * Math.sqrt(a * c)), m = o - s, v = tt(Math.sqrt(a / c)), y = Math.abs(m) < 5;
2145
- n || (n = y ? 0.01 : 2), e || (e = y ? 5e-3 : 0.5);
2146
- let b;
2157
+ }), f = h || 0, p = l / (2 * Math.sqrt(a * c)), m = o - s, v = tt(Math.sqrt(a / c)), b = Math.abs(m) < 5;
2158
+ n || (n = b ? 0.01 : 2), e || (e = b ? 5e-3 : 0.5);
2159
+ let y;
2147
2160
  if (p < 1) {
2148
2161
  const g = Ge(v, p);
2149
- b = (x) => {
2150
- const S = Math.exp(-p * v * x);
2151
- return o - S * ((f + p * v * m) / g * Math.sin(g * x) + m * Math.cos(g * x));
2162
+ y = (x) => {
2163
+ const P = Math.exp(-p * v * x);
2164
+ return o - P * ((f + p * v * m) / g * Math.sin(g * x) + m * Math.cos(g * x));
2152
2165
  };
2153
2166
  } else if (p === 1)
2154
- b = (g) => o - Math.exp(-v * g) * (m + (f + v * m) * g);
2167
+ y = (g) => o - Math.exp(-v * g) * (m + (f + v * m) * g);
2155
2168
  else {
2156
2169
  const g = v * Math.sqrt(p * p - 1);
2157
- b = (x) => {
2158
- const S = Math.exp(-p * v * x), T = Math.min(g * x, 300);
2159
- return o - S * ((f + p * v * m) * Math.sinh(T) + g * m * Math.cosh(T)) / g;
2170
+ y = (x) => {
2171
+ const P = Math.exp(-p * v * x), T = Math.min(g * x, 300);
2172
+ return o - P * ((f + p * v * m) * Math.sinh(T) + g * m * Math.cosh(T)) / g;
2160
2173
  };
2161
2174
  }
2162
2175
  return {
2163
2176
  calculatedDuration: d && u || null,
2164
2177
  next: (g) => {
2165
- const x = b(g);
2178
+ const x = y(g);
2166
2179
  if (d)
2167
2180
  r.done = g >= u;
2168
2181
  else {
2169
- let S = f;
2170
- g !== 0 && (p < 1 ? S = Ks(b, g, x) : S = 0);
2171
- const T = Math.abs(S) <= n, k = Math.abs(o - x) <= e;
2182
+ let P = f;
2183
+ g !== 0 && (p < 1 ? P = qs(y, g, x) : P = 0);
2184
+ const T = Math.abs(P) <= n, k = Math.abs(o - x) <= e;
2172
2185
  r.done = T && k;
2173
2186
  }
2174
2187
  return r.value = r.done ? o : x, r;
@@ -2179,19 +2192,19 @@ function qn({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2179
2192
  const h = t[0], d = {
2180
2193
  done: !1,
2181
2194
  value: h
2182
- }, f = (A) => a !== void 0 && A < a || l !== void 0 && A > l, p = (A) => a === void 0 ? l : l === void 0 || Math.abs(a - A) < Math.abs(l - A) ? a : l;
2195
+ }, f = (S) => a !== void 0 && S < a || l !== void 0 && S > l, p = (S) => a === void 0 ? l : l === void 0 || Math.abs(a - S) < Math.abs(l - S) ? a : l;
2183
2196
  let m = n * e;
2184
- const v = h + m, y = r === void 0 ? v : r(v);
2185
- y !== v && (m = y - h);
2186
- const b = (A) => -m * Math.exp(-A / i), g = (A) => y + b(A), x = (A) => {
2187
- const C = b(A), q = g(A);
2188
- d.done = Math.abs(C) <= c, d.value = d.done ? y : q;
2197
+ const v = h + m, b = r === void 0 ? v : r(v);
2198
+ b !== v && (m = b - h);
2199
+ const y = (S) => -m * Math.exp(-S / i), g = (S) => b + y(S), x = (S) => {
2200
+ const C = y(S), F = g(S);
2201
+ d.done = Math.abs(C) <= c, d.value = d.done ? b : F;
2189
2202
  };
2190
- let S, T;
2191
- const k = (A) => {
2192
- f(d.value) && (S = A, T = $s({
2203
+ let P, T;
2204
+ const k = (S) => {
2205
+ f(d.value) && (P = S, T = Ks({
2193
2206
  keyframes: [d.value, p(d.value)],
2194
- velocity: Ks(g, A, d.value),
2207
+ velocity: qs(g, S, d.value),
2195
2208
  damping: s,
2196
2209
  stiffness: o,
2197
2210
  restDelta: c,
@@ -2200,13 +2213,13 @@ function qn({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
2200
2213
  };
2201
2214
  return k(0), {
2202
2215
  calculatedDuration: null,
2203
- next: (A) => {
2216
+ next: (S) => {
2204
2217
  let C = !1;
2205
- return !T && S === void 0 && (C = !0, x(A), k(A)), S !== void 0 && A > S ? T.next(A - S) : (!C && x(A), d);
2218
+ return !T && P === void 0 && (C = !0, x(S), k(S)), P !== void 0 && S > P ? T.next(S - P) : (!C && x(S), d);
2206
2219
  }
2207
2220
  };
2208
2221
  }
2209
- const yl = (t) => {
2222
+ const bl = (t) => {
2210
2223
  const e = ({ timestamp: n }) => t(n);
2211
2224
  return {
2212
2225
  start: () => V.update(e, !0),
@@ -2215,7 +2228,7 @@ const yl = (t) => {
2215
2228
  * If we're processing this frame we can use the
2216
2229
  * framelocked timestamp to keep things in sync.
2217
2230
  */
2218
- now: () => N.isProcessing ? N.timestamp : performance.now()
2231
+ now: () => B.isProcessing ? B.timestamp : performance.now()
2219
2232
  };
2220
2233
  }, Kn = 2e4;
2221
2234
  function $n(t) {
@@ -2226,70 +2239,70 @@ function $n(t) {
2226
2239
  e += n, i = t.next(e);
2227
2240
  return e >= Kn ? 1 / 0 : e;
2228
2241
  }
2229
- const bl = {
2242
+ const xl = {
2230
2243
  decay: qn,
2231
2244
  inertia: qn,
2232
2245
  tween: me,
2233
2246
  keyframes: me,
2234
- spring: $s
2247
+ spring: Ks
2235
2248
  };
2236
- function ge({ autoplay: t = !0, delay: e = 0, driver: n = yl, keyframes: i, type: s = "keyframes", repeat: o = 0, repeatDelay: r = 0, repeatType: a = "loop", onPlay: l, onStop: c, onComplete: u, onUpdate: h, ...d }) {
2249
+ function ge({ autoplay: t = !0, delay: e = 0, driver: n = bl, keyframes: i, type: s = "keyframes", repeat: o = 0, repeatDelay: r = 0, repeatType: a = "loop", onPlay: l, onStop: c, onComplete: u, onUpdate: h, ...d }) {
2237
2250
  let f = 1, p = !1, m, v;
2238
- const y = () => {
2251
+ const b = () => {
2239
2252
  v = new Promise((E) => {
2240
2253
  m = E;
2241
2254
  });
2242
2255
  };
2243
- y();
2244
- let b;
2245
- const g = bl[s] || me;
2256
+ b();
2257
+ let y;
2258
+ const g = xl[s] || me;
2246
2259
  let x;
2247
- g !== me && typeof i[0] != "number" && (process.env.NODE_ENV !== "production" && $(i.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`), x = Xs([0, 100], i, {
2260
+ g !== me && typeof i[0] != "number" && (process.env.NODE_ENV !== "production" && $(i.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`), x = Ys([0, 100], i, {
2248
2261
  clamp: !1
2249
2262
  }), i = [0, 100]);
2250
- const S = g({ ...d, keyframes: i });
2263
+ const P = g({ ...d, keyframes: i });
2251
2264
  let T;
2252
2265
  a === "mirror" && (T = g({
2253
2266
  ...d,
2254
2267
  keyframes: [...i].reverse(),
2255
2268
  velocity: -(d.velocity || 0)
2256
2269
  }));
2257
- let k = "idle", A = null, C = null, q = null;
2258
- S.calculatedDuration === null && o && (S.calculatedDuration = $n(S));
2259
- const { calculatedDuration: nt } = S;
2260
- let F = 1 / 0, G = 1 / 0;
2261
- nt !== null && (F = nt + r, G = F * (o + 1) - r);
2262
- let j = 0;
2270
+ let k = "idle", S = null, C = null, F = null;
2271
+ P.calculatedDuration === null && o && (P.calculatedDuration = $n(P));
2272
+ const { calculatedDuration: nt } = P;
2273
+ let z = 1 / 0, Y = 1 / 0;
2274
+ nt !== null && (z = nt + r, Y = z * (o + 1) - r);
2275
+ let N = 0;
2263
2276
  const wt = (E) => {
2264
2277
  if (C === null)
2265
2278
  return;
2266
- f > 0 && (C = Math.min(C, E)), f < 0 && (C = Math.min(E - G / f, C)), A !== null ? j = A : j = Math.round(E - C) * f;
2267
- const Rt = j - e * (f >= 0 ? 1 : -1), An = f >= 0 ? Rt < 0 : Rt > G;
2268
- j = Math.max(Rt, 0), k === "finished" && A === null && (j = G);
2269
- let Pn = j, kn = S;
2279
+ f > 0 && (C = Math.min(C, E)), f < 0 && (C = Math.min(E - Y / f, C)), S !== null ? N = S : N = Math.round(E - C) * f;
2280
+ const Rt = N - e * (f >= 0 ? 1 : -1), Pn = f >= 0 ? Rt < 0 : Rt > Y;
2281
+ N = Math.max(Rt, 0), k === "finished" && S === null && (N = Y);
2282
+ let An = N, kn = P;
2270
2283
  if (o) {
2271
- const Ce = Math.min(j, G) / F;
2284
+ const Ce = Math.min(N, Y) / z;
2272
2285
  let Jt = Math.floor(Ce), pt = Ce % 1;
2273
- !pt && Ce >= 1 && (pt = 1), pt === 1 && Jt--, Jt = Math.min(Jt, o + 1), !!(Jt % 2) && (a === "reverse" ? (pt = 1 - pt, r && (pt -= r / F)) : a === "mirror" && (kn = T)), Pn = ht(0, 1, pt) * F;
2286
+ !pt && Ce >= 1 && (pt = 1), pt === 1 && Jt--, Jt = Math.min(Jt, o + 1), !!(Jt % 2) && (a === "reverse" ? (pt = 1 - pt, r && (pt -= r / z)) : a === "mirror" && (kn = T)), An = ht(0, 1, pt) * z;
2274
2287
  }
2275
- const Bt = An ? { done: !1, value: i[0] } : kn.next(Pn);
2276
- x && (Bt.value = x(Bt.value));
2277
- let { done: Cn } = Bt;
2278
- !An && nt !== null && (Cn = f >= 0 ? j >= G : j <= 0);
2279
- const Pr = A === null && (k === "finished" || k === "running" && Cn);
2280
- return h && h(Bt.value), Pr && Lt(), Bt;
2281
- }, R = () => {
2282
- b && b.stop(), b = void 0;
2288
+ const jt = Pn ? { done: !1, value: i[0] } : kn.next(An);
2289
+ x && (jt.value = x(jt.value));
2290
+ let { done: Cn } = jt;
2291
+ !Pn && nt !== null && (Cn = f >= 0 ? N >= Y : N <= 0);
2292
+ const Ar = S === null && (k === "finished" || k === "running" && Cn);
2293
+ return h && h(jt.value), Ar && Lt(), jt;
2294
+ }, j = () => {
2295
+ y && y.stop(), y = void 0;
2283
2296
  }, it = () => {
2284
- k = "idle", R(), m(), y(), C = q = null;
2297
+ k = "idle", j(), m(), b(), C = F = null;
2285
2298
  }, Lt = () => {
2286
- k = "finished", u && u(), R(), m();
2299
+ k = "finished", u && u(), j(), m();
2287
2300
  }, St = () => {
2288
2301
  if (p)
2289
2302
  return;
2290
- b || (b = n(wt));
2291
- const E = b.now();
2292
- l && l(), A !== null ? C = E - A : (!C || k === "finished") && (C = E), k === "finished" && y(), q = C, A = null, k = "running", b.start();
2303
+ y || (y = n(wt));
2304
+ const E = y.now();
2305
+ l && l(), S !== null ? C = E - S : (!C || k === "finished") && (C = E), k === "finished" && b(), F = C, S = null, k = "running", y.start();
2293
2306
  };
2294
2307
  t && St();
2295
2308
  const Tn = {
@@ -2297,33 +2310,33 @@ function ge({ autoplay: t = !0, delay: e = 0, driver: n = yl, keyframes: i, type
2297
2310
  return v.then(E, Rt);
2298
2311
  },
2299
2312
  get time() {
2300
- return tt(j);
2313
+ return tt(N);
2301
2314
  },
2302
2315
  set time(E) {
2303
- E = ut(E), j = E, A !== null || !b || f === 0 ? A = E : C = b.now() - E / f;
2316
+ E = ut(E), N = E, S !== null || !y || f === 0 ? S = E : C = y.now() - E / f;
2304
2317
  },
2305
2318
  get duration() {
2306
- const E = S.calculatedDuration === null ? $n(S) : S.calculatedDuration;
2319
+ const E = P.calculatedDuration === null ? $n(P) : P.calculatedDuration;
2307
2320
  return tt(E);
2308
2321
  },
2309
2322
  get speed() {
2310
2323
  return f;
2311
2324
  },
2312
2325
  set speed(E) {
2313
- E === f || !b || (f = E, Tn.time = tt(j));
2326
+ E === f || !y || (f = E, Tn.time = tt(N));
2314
2327
  },
2315
2328
  get state() {
2316
2329
  return k;
2317
2330
  },
2318
2331
  play: St,
2319
2332
  pause: () => {
2320
- k = "paused", A = j;
2333
+ k = "paused", S = N;
2321
2334
  },
2322
2335
  stop: () => {
2323
2336
  p = !0, k !== "idle" && (k = "idle", c && c(), it());
2324
2337
  },
2325
2338
  cancel: () => {
2326
- q !== null && wt(q), it();
2339
+ F !== null && wt(F), it();
2327
2340
  },
2328
2341
  complete: () => {
2329
2342
  k = "finished";
@@ -2332,19 +2345,19 @@ function ge({ autoplay: t = !0, delay: e = 0, driver: n = yl, keyframes: i, type
2332
2345
  };
2333
2346
  return Tn;
2334
2347
  }
2335
- function xl(t) {
2348
+ function wl(t) {
2336
2349
  let e;
2337
2350
  return () => (e === void 0 && (e = t()), e);
2338
2351
  }
2339
- const wl = xl(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Sl = /* @__PURE__ */ new Set([
2352
+ const Sl = wl(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Tl = /* @__PURE__ */ new Set([
2340
2353
  "opacity",
2341
2354
  "clipPath",
2342
2355
  "filter",
2343
2356
  "transform",
2344
2357
  "backgroundColor"
2345
- ]), ie = 10, Tl = 2e4, Al = (t, e) => e.type === "spring" || t === "backgroundColor" || !Cs(e.ease);
2346
- function Pl(t, e, { onUpdate: n, onComplete: i, ...s }) {
2347
- if (!(wl() && Sl.has(e) && !s.repeatDelay && s.repeatType !== "mirror" && s.damping !== 0 && s.type !== "inertia"))
2358
+ ]), ie = 10, Pl = 2e4, Al = (t, e) => e.type === "spring" || t === "backgroundColor" || !ks(e.ease);
2359
+ function kl(t, e, { onUpdate: n, onComplete: i, ...s }) {
2360
+ if (!(Sl() && Tl.has(e) && !s.repeatDelay && s.repeatType !== "mirror" && s.damping !== 0 && s.type !== "inertia"))
2348
2361
  return !1;
2349
2362
  let r = !1, a, l, c = !1;
2350
2363
  const u = () => {
@@ -2361,11 +2374,11 @@ function Pl(t, e, { onUpdate: n, onComplete: i, ...s }) {
2361
2374
  delay: 0
2362
2375
  });
2363
2376
  let x = { done: !1, value: h[0] };
2364
- const S = [];
2377
+ const P = [];
2365
2378
  let T = 0;
2366
- for (; !x.done && T < Tl; )
2367
- x = g.sample(T), S.push(x.value), T += ie;
2368
- p = void 0, h = S, d = T - ie, f = "linear";
2379
+ for (; !x.done && T < Pl; )
2380
+ x = g.sample(T), P.push(x.value), T += ie;
2381
+ p = void 0, h = P, d = T - ie, f = "linear";
2369
2382
  }
2370
2383
  const m = Na(t.owner.current, e, h, {
2371
2384
  ...s,
@@ -2382,11 +2395,11 @@ function Pl(t, e, { onUpdate: n, onComplete: i, ...s }) {
2382
2395
  times: p
2383
2396
  }), v = () => {
2384
2397
  c = !1, m.cancel();
2385
- }, y = () => {
2398
+ }, b = () => {
2386
2399
  c = !0, V.update(v), a(), u();
2387
2400
  };
2388
2401
  return m.onfinish = () => {
2389
- c || (t.set(ja(h, s)), i && i(), y());
2402
+ c || (t.set(Ia(h, s)), i && i(), b());
2390
2403
  }, {
2391
2404
  then(g, x) {
2392
2405
  return l.then(g, x);
@@ -2424,15 +2437,15 @@ function Pl(t, e, { onUpdate: n, onComplete: i, ...s }) {
2424
2437
  });
2425
2438
  t.setWithVelocity(x.sample(g - ie).value, x.sample(g).value, ie);
2426
2439
  }
2427
- y();
2440
+ b();
2428
2441
  },
2429
2442
  complete: () => {
2430
2443
  c || m.finish();
2431
2444
  },
2432
- cancel: y
2445
+ cancel: b
2433
2446
  };
2434
2447
  }
2435
- function kl({ keyframes: t, delay: e, onUpdate: n, onComplete: i }) {
2448
+ function Cl({ keyframes: t, delay: e, onUpdate: n, onComplete: i }) {
2436
2449
  const s = () => (n && n(t[t.length - 1]), i && i(), {
2437
2450
  time: 0,
2438
2451
  speed: 1,
@@ -2451,45 +2464,45 @@ function kl({ keyframes: t, delay: e, onUpdate: n, onComplete: i }) {
2451
2464
  onComplete: s
2452
2465
  }) : s();
2453
2466
  }
2454
- const Cl = {
2467
+ const Vl = {
2455
2468
  type: "spring",
2456
2469
  stiffness: 500,
2457
2470
  damping: 25,
2458
2471
  restSpeed: 10
2459
- }, Vl = (t) => ({
2472
+ }, El = (t) => ({
2460
2473
  type: "spring",
2461
2474
  stiffness: 550,
2462
2475
  damping: t === 0 ? 2 * Math.sqrt(550) : 30,
2463
2476
  restSpeed: 10
2464
- }), El = {
2477
+ }), Ml = {
2465
2478
  type: "keyframes",
2466
2479
  duration: 0.8
2467
- }, Ml = {
2480
+ }, Ol = {
2468
2481
  type: "keyframes",
2469
2482
  ease: [0.25, 0.1, 0.35, 1],
2470
2483
  duration: 0.3
2471
- }, Ol = (t, { keyframes: e }) => e.length > 2 ? El : bt.has(t) ? t.startsWith("scale") ? Vl(e[1]) : Cl : Ml, Ye = (t, e) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
2484
+ }, Dl = (t, { keyframes: e }) => e.length > 2 ? Ml : bt.has(t) ? t.startsWith("scale") ? El(e[1]) : Vl : Ol, Ye = (t, e) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
2472
2485
  (dt.test(e) || e === "0") && // And it contains numbers and/or colors
2473
- !e.startsWith("url(")), Dl = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2474
- function Ll(t) {
2486
+ !e.startsWith("url(")), Ll = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2487
+ function Rl(t) {
2475
2488
  const [e, n] = t.slice(0, -1).split("(");
2476
2489
  if (e === "drop-shadow")
2477
2490
  return t;
2478
- const [i] = n.match(Ae) || [];
2491
+ const [i] = n.match(Pe) || [];
2479
2492
  if (!i)
2480
2493
  return t;
2481
2494
  const s = n.replace(i, "");
2482
- let o = Dl.has(e) ? 1 : 0;
2495
+ let o = Ll.has(e) ? 1 : 0;
2483
2496
  return i !== n && (o *= 100), e + "(" + o + s + ")";
2484
2497
  }
2485
- const Rl = /([a-z-]*)\(.*?\)/g, Xe = {
2498
+ const jl = /([a-z-]*)\(.*?\)/g, Xe = {
2486
2499
  ...dt,
2487
2500
  getAnimatableNone: (t) => {
2488
- const e = t.match(Rl);
2489
- return e ? e.map(Ll).join(" ") : t;
2501
+ const e = t.match(jl);
2502
+ return e ? e.map(Rl).join(" ") : t;
2490
2503
  }
2491
2504
  }, Bl = {
2492
- ...hs,
2505
+ ...us,
2493
2506
  // Color props
2494
2507
  color: I,
2495
2508
  backgroundColor: I,
@@ -2505,18 +2518,18 @@ const Rl = /([a-z-]*)\(.*?\)/g, Xe = {
2505
2518
  filter: Xe,
2506
2519
  WebkitFilter: Xe
2507
2520
  }, gn = (t) => Bl[t];
2508
- function Qs(t, e) {
2521
+ function $s(t, e) {
2509
2522
  let n = gn(t);
2510
2523
  return n !== Xe && (n = dt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
2511
2524
  }
2512
- const Zs = (t) => /^0[^.\s]+$/.test(t);
2525
+ const Qs = (t) => /^0[^.\s]+$/.test(t);
2513
2526
  function Nl(t) {
2514
2527
  if (typeof t == "number")
2515
2528
  return t === 0;
2516
2529
  if (t !== null)
2517
- return t === "none" || t === "0" || Zs(t);
2530
+ return t === "none" || t === "0" || Qs(t);
2518
2531
  }
2519
- function jl(t, e, n, i) {
2532
+ function Il(t, e, n, i) {
2520
2533
  const s = Ye(e, n);
2521
2534
  let o;
2522
2535
  Array.isArray(n) ? o = [...n] : o = [null, n];
@@ -2528,23 +2541,23 @@ function jl(t, e, n, i) {
2528
2541
  if (s && l.length && a)
2529
2542
  for (let c = 0; c < l.length; c++) {
2530
2543
  const u = l[c];
2531
- o[u] = Qs(e, a);
2544
+ o[u] = $s(e, a);
2532
2545
  }
2533
2546
  return o;
2534
2547
  }
2535
- function Il({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
2548
+ function Fl({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: s, repeat: o, repeatType: r, repeatDelay: a, from: l, elapsed: c, ...u }) {
2536
2549
  return !!Object.keys(u).length;
2537
2550
  }
2538
2551
  function vn(t, e) {
2539
2552
  return t[e] || t.default || t;
2540
2553
  }
2541
- const Fl = {
2554
+ const zl = {
2542
2555
  skipAnimations: !1
2543
2556
  }, yn = (t, e, n, i = {}) => (s) => {
2544
2557
  const o = vn(i, t) || {}, r = o.delay || i.delay || 0;
2545
2558
  let { elapsed: a = 0 } = i;
2546
2559
  a = a - ut(r);
2547
- const l = jl(e, t, n, o), c = l[0], u = l[l.length - 1], h = Ye(t, c), d = Ye(t, u);
2560
+ const l = Il(e, t, n, o), c = l[0], u = l[l.length - 1], h = Ye(t, c), d = Ye(t, u);
2548
2561
  Qt(h === d, `You are trying to animate ${t} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);
2549
2562
  let f = {
2550
2563
  keyframes: l,
@@ -2559,11 +2572,11 @@ const Fl = {
2559
2572
  s(), o.onComplete && o.onComplete();
2560
2573
  }
2561
2574
  };
2562
- if (Il(o) || (f = {
2575
+ if (Fl(o) || (f = {
2563
2576
  ...f,
2564
- ...Ol(t, f)
2565
- }), f.duration && (f.duration = ut(f.duration)), f.repeatDelay && (f.repeatDelay = ut(f.repeatDelay)), !h || !d || Ba.current || o.type === !1 || Fl.skipAnimations)
2566
- return kl(f);
2577
+ ...Dl(t, f)
2578
+ }), f.duration && (f.duration = ut(f.duration)), f.repeatDelay && (f.repeatDelay = ut(f.repeatDelay)), !h || !d || Ba.current || o.type === !1 || zl.skipAnimations)
2579
+ return Cl(f);
2567
2580
  if (
2568
2581
  /**
2569
2582
  * If this is a handoff animation, the optimised animation will be running via
@@ -2576,16 +2589,16 @@ const Fl = {
2576
2589
  */
2577
2590
  !e.owner.getProps().onUpdate
2578
2591
  ) {
2579
- const p = Pl(e, t, f);
2592
+ const p = kl(e, t, f);
2580
2593
  if (p)
2581
2594
  return p;
2582
2595
  }
2583
2596
  return ge(f);
2584
2597
  };
2585
2598
  function ve(t) {
2586
- return !!(_(t) && t.add);
2599
+ return !!(U(t) && t.add);
2587
2600
  }
2588
- const Js = (t) => /^\-?\d*\.?\d+$/.test(t);
2601
+ const Zs = (t) => /^\-?\d*\.?\d+$/.test(t);
2589
2602
  function bn(t, e) {
2590
2603
  t.indexOf(e) === -1 && t.push(e);
2591
2604
  }
@@ -2622,8 +2635,8 @@ const Qn = /* @__PURE__ */ new Set();
2622
2635
  function Sn(t, e, n) {
2623
2636
  t || Qn.has(e) || (console.warn(e), n && console.warn(n), Qn.add(e));
2624
2637
  }
2625
- const zl = (t) => !isNaN(parseFloat(t));
2626
- class Wl {
2638
+ const Wl = (t) => !isNaN(parseFloat(t));
2639
+ class _l {
2627
2640
  /**
2628
2641
  * @param init - The initiating value
2629
2642
  * @param config - Optional configuration options
@@ -2635,11 +2648,11 @@ class Wl {
2635
2648
  constructor(e, n = {}) {
2636
2649
  this.version = "10.18.0", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (i, s = !0) => {
2637
2650
  this.prev = this.current, this.current = i;
2638
- const { delta: o, timestamp: r } = N;
2651
+ const { delta: o, timestamp: r } = B;
2639
2652
  this.lastUpdated !== r && (this.timeDelta = o, this.lastUpdated = r, V.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), s && this.events.renderRequest && this.events.renderRequest.notify(this.current);
2640
2653
  }, this.scheduleVelocityCheck = () => V.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: i }) => {
2641
2654
  i !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));
2642
- }, this.hasAnimated = !1, this.prev = this.current = e, this.canTrackVelocity = zl(this.current), this.owner = n.owner;
2655
+ }, this.hasAnimated = !1, this.prev = this.current = e, this.canTrackVelocity = Wl(this.current), this.owner = n.owner;
2643
2656
  }
2644
2657
  /**
2645
2658
  * Adds a function that will be notified when the `MotionValue` is updated.
@@ -2759,7 +2772,7 @@ class Wl {
2759
2772
  getVelocity() {
2760
2773
  return this.canTrackVelocity ? (
2761
2774
  // These casts could be avoided if parseFloat would be typed better
2762
- qs(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)
2775
+ Xs(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)
2763
2776
  ) : 0;
2764
2777
  }
2765
2778
  /**
@@ -2814,41 +2827,41 @@ class Wl {
2814
2827
  }
2815
2828
  }
2816
2829
  function Mt(t, e) {
2817
- return new Wl(t, e);
2830
+ return new _l(t, e);
2818
2831
  }
2819
- const tr = (t) => (e) => e.test(t), _l = {
2832
+ const Js = (t) => (e) => e.test(t), Ul = {
2820
2833
  test: (t) => t === "auto",
2821
2834
  parse: (t) => t
2822
- }, er = [xt, P, Q, at, $o, Ko, _l], jt = (t) => er.find(tr(t)), Ul = [...er, I, dt], Hl = (t) => Ul.find(tr(t));
2823
- function Gl(t, e, n) {
2835
+ }, tr = [xt, A, Q, at, Qo, $o, Ul], Nt = (t) => tr.find(Js(t)), Hl = [...tr, I, dt], Gl = (t) => Hl.find(Js(t));
2836
+ function Yl(t, e, n) {
2824
2837
  t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, Mt(n));
2825
2838
  }
2826
- function Yl(t, e) {
2839
+ function Xl(t, e) {
2827
2840
  const n = ke(t, e);
2828
2841
  let { transitionEnd: i = {}, transition: s = {}, ...o } = n ? t.makeTargetAnimatable(n, !1) : {};
2829
2842
  o = { ...o, ...i };
2830
2843
  for (const r in o) {
2831
- const a = ha(o[r]);
2832
- Gl(t, r, a);
2844
+ const a = da(o[r]);
2845
+ Yl(t, r, a);
2833
2846
  }
2834
2847
  }
2835
- function Xl(t, e, n) {
2848
+ function ql(t, e, n) {
2836
2849
  var i, s;
2837
2850
  const o = Object.keys(e).filter((a) => !t.hasValue(a)), r = o.length;
2838
2851
  if (r)
2839
2852
  for (let a = 0; a < r; a++) {
2840
2853
  const l = o[a], c = e[l];
2841
2854
  let u = null;
2842
- Array.isArray(c) && (u = c[0]), u === null && (u = (s = (i = n[l]) !== null && i !== void 0 ? i : t.readValue(l)) !== null && s !== void 0 ? s : e[l]), u != null && (typeof u == "string" && (Js(u) || Zs(u)) ? u = parseFloat(u) : !Hl(u) && dt.test(c) && (u = Qs(l, c)), t.addValue(l, Mt(u, { owner: t })), n[l] === void 0 && (n[l] = u), u !== null && t.setBaseTarget(l, u));
2855
+ Array.isArray(c) && (u = c[0]), u === null && (u = (s = (i = n[l]) !== null && i !== void 0 ? i : t.readValue(l)) !== null && s !== void 0 ? s : e[l]), u != null && (typeof u == "string" && (Zs(u) || Qs(u)) ? u = parseFloat(u) : !Gl(u) && dt.test(c) && (u = $s(l, c)), t.addValue(l, Mt(u, { owner: t })), n[l] === void 0 && (n[l] = u), u !== null && t.setBaseTarget(l, u));
2843
2856
  }
2844
2857
  }
2845
- function ql(t, e) {
2858
+ function Kl(t, e) {
2846
2859
  return e ? (e[t] || e.default || e).from : void 0;
2847
2860
  }
2848
- function Kl(t, e, n) {
2861
+ function $l(t, e, n) {
2849
2862
  const i = {};
2850
2863
  for (const s in t) {
2851
- const o = ql(s, e);
2864
+ const o = Kl(s, e);
2852
2865
  if (o !== void 0)
2853
2866
  i[s] = o;
2854
2867
  else {
@@ -2858,11 +2871,11 @@ function Kl(t, e, n) {
2858
2871
  }
2859
2872
  return i;
2860
2873
  }
2861
- function $l({ protectedKeys: t, needsAnimating: e }, n) {
2874
+ function Ql({ protectedKeys: t, needsAnimating: e }, n) {
2862
2875
  const i = t.hasOwnProperty(n) && e[n] !== !0;
2863
2876
  return e[n] = !1, i;
2864
2877
  }
2865
- function Ql(t, e) {
2878
+ function Zl(t, e) {
2866
2879
  const n = t.get();
2867
2880
  if (Array.isArray(e)) {
2868
2881
  for (let i = 0; i < e.length; i++)
@@ -2871,14 +2884,14 @@ function Ql(t, e) {
2871
2884
  } else
2872
2885
  return n !== e;
2873
2886
  }
2874
- function nr(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
2887
+ function er(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
2875
2888
  let { transition: o = t.getDefaultTransition(), transitionEnd: r, ...a } = t.makeTargetAnimatable(e);
2876
2889
  const l = t.getValue("willChange");
2877
2890
  i && (o = i);
2878
2891
  const c = [], u = s && t.animationState && t.animationState.getState()[s];
2879
2892
  for (const h in a) {
2880
2893
  const d = t.getValue(h), f = a[h];
2881
- if (!d || f === void 0 || u && $l(u, h))
2894
+ if (!d || f === void 0 || u && Ql(u, h))
2882
2895
  continue;
2883
2896
  const p = {
2884
2897
  delay: n,
@@ -2886,13 +2899,13 @@ function nr(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
2886
2899
  ...vn(o || {}, h)
2887
2900
  };
2888
2901
  if (window.HandoffAppearAnimations) {
2889
- const y = t.getProps()[is];
2890
- if (y) {
2891
- const b = window.HandoffAppearAnimations(y, h, d, V);
2892
- b !== null && (p.elapsed = b, p.isHandoff = !0);
2902
+ const b = t.getProps()[ns];
2903
+ if (b) {
2904
+ const y = window.HandoffAppearAnimations(b, h, d, V);
2905
+ y !== null && (p.elapsed = y, p.isHandoff = !0);
2893
2906
  }
2894
2907
  }
2895
- let m = !p.isHandoff && !Ql(d, f);
2908
+ let m = !p.isHandoff && !Zl(d, f);
2896
2909
  if (p.type === "spring" && (d.getVelocity() || p.velocity) && (m = !1), d.animation && (m = !1), m)
2897
2910
  continue;
2898
2911
  d.start(yn(h, d, f, t.shouldReduceMotion && bt.has(h) ? { type: !1 } : p));
@@ -2900,16 +2913,16 @@ function nr(t, e, { delay: n = 0, transitionOverride: i, type: s } = {}) {
2900
2913
  ve(l) && (l.add(h), v.then(() => l.remove(h))), c.push(v);
2901
2914
  }
2902
2915
  return r && Promise.all(c).then(() => {
2903
- r && Yl(t, r);
2916
+ r && Xl(t, r);
2904
2917
  }), c;
2905
2918
  }
2906
2919
  function qe(t, e, n = {}) {
2907
2920
  const i = ke(t, e, n.custom);
2908
2921
  let { transition: s = t.getDefaultTransition() || {} } = i || {};
2909
2922
  n.transitionOverride && (s = n.transitionOverride);
2910
- const o = i ? () => Promise.all(nr(t, i, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
2923
+ const o = i ? () => Promise.all(er(t, i, n)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
2911
2924
  const { delayChildren: c = 0, staggerChildren: u, staggerDirection: h } = s;
2912
- return Zl(t, e, c + l, u, h, n);
2925
+ return Jl(t, e, c + l, u, h, n);
2913
2926
  } : () => Promise.resolve(), { when: a } = s;
2914
2927
  if (a) {
2915
2928
  const [l, c] = a === "beforeChildren" ? [o, r] : [r, o];
@@ -2917,19 +2930,19 @@ function qe(t, e, n = {}) {
2917
2930
  } else
2918
2931
  return Promise.all([o(), r(n.delay)]);
2919
2932
  }
2920
- function Zl(t, e, n = 0, i = 0, s = 1, o) {
2933
+ function Jl(t, e, n = 0, i = 0, s = 1, o) {
2921
2934
  const r = [], a = (t.variantChildren.size - 1) * i, l = s === 1 ? (c = 0) => c * i : (c = 0) => a - c * i;
2922
- return Array.from(t.variantChildren).sort(Jl).forEach((c, u) => {
2935
+ return Array.from(t.variantChildren).sort(tc).forEach((c, u) => {
2923
2936
  c.notify("AnimationStart", e), r.push(qe(c, e, {
2924
2937
  ...o,
2925
2938
  delay: n + l(u)
2926
2939
  }).then(() => c.notify("AnimationComplete", e)));
2927
2940
  }), Promise.all(r);
2928
2941
  }
2929
- function Jl(t, e) {
2942
+ function tc(t, e) {
2930
2943
  return t.sortNodePosition(e);
2931
2944
  }
2932
- function tc(t, e, n = {}) {
2945
+ function ec(t, e, n = {}) {
2933
2946
  t.notify("AnimationStart", e);
2934
2947
  let i;
2935
2948
  if (Array.isArray(e)) {
@@ -2939,17 +2952,17 @@ function tc(t, e, n = {}) {
2939
2952
  i = qe(t, e, n);
2940
2953
  else {
2941
2954
  const s = typeof e == "function" ? ke(t, e, n.custom) : e;
2942
- i = Promise.all(nr(t, s, n));
2955
+ i = Promise.all(er(t, s, n));
2943
2956
  }
2944
2957
  return i.then(() => t.notify("AnimationComplete", e));
2945
2958
  }
2946
- const ec = [...sn].reverse(), nc = sn.length;
2947
- function ic(t) {
2948
- return (e) => Promise.all(e.map(({ animation: n, options: i }) => tc(t, n, i)));
2949
- }
2959
+ const nc = [...sn].reverse(), ic = sn.length;
2950
2960
  function sc(t) {
2951
- let e = ic(t);
2952
- const n = oc();
2961
+ return (e) => Promise.all(e.map(({ animation: n, options: i }) => ec(t, n, i)));
2962
+ }
2963
+ function rc(t) {
2964
+ let e = sc(t);
2965
+ const n = ac();
2953
2966
  let i = !0;
2954
2967
  const s = (l, c) => {
2955
2968
  const u = ke(t, c);
@@ -2965,45 +2978,45 @@ function sc(t) {
2965
2978
  function r(l, c) {
2966
2979
  const u = t.getProps(), h = t.getVariantContext(!0) || {}, d = [], f = /* @__PURE__ */ new Set();
2967
2980
  let p = {}, m = 1 / 0;
2968
- for (let y = 0; y < nc; y++) {
2969
- const b = ec[y], g = n[b], x = u[b] !== void 0 ? u[b] : h[b], S = Ht(x), T = b === c ? g.isActive : null;
2970
- T === !1 && (m = y);
2971
- let k = x === h[b] && x !== u[b] && S;
2981
+ for (let b = 0; b < ic; b++) {
2982
+ const y = nc[b], g = n[y], x = u[y] !== void 0 ? u[y] : h[y], P = Ht(x), T = y === c ? g.isActive : null;
2983
+ T === !1 && (m = b);
2984
+ let k = x === h[y] && x !== u[y] && P;
2972
2985
  if (k && i && t.manuallyAnimateOnMount && (k = !1), g.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
2973
2986
  !g.isActive && T === null || // If we didn't and don't have any defined prop for this animation type
2974
2987
  !x && !g.prevProp || // Or if the prop doesn't define an animation
2975
2988
  Se(x) || typeof x == "boolean")
2976
2989
  continue;
2977
- let C = rc(g.prevProp, x) || // If we're making this variant active, we want to always make it active
2978
- b === c && g.isActive && !k && S || // If we removed a higher-priority variant (i is in reverse order)
2979
- y > m && S, q = !1;
2990
+ let C = oc(g.prevProp, x) || // If we're making this variant active, we want to always make it active
2991
+ y === c && g.isActive && !k && P || // If we removed a higher-priority variant (i is in reverse order)
2992
+ b > m && P, F = !1;
2980
2993
  const nt = Array.isArray(x) ? x : [x];
2981
- let F = nt.reduce(s, {});
2982
- T === !1 && (F = {});
2983
- const { prevResolvedValues: G = {} } = g, j = {
2984
- ...G,
2985
- ...F
2986
- }, wt = (R) => {
2987
- C = !0, f.has(R) && (q = !0, f.delete(R)), g.needsAnimating[R] = !0;
2994
+ let z = nt.reduce(s, {});
2995
+ T === !1 && (z = {});
2996
+ const { prevResolvedValues: Y = {} } = g, N = {
2997
+ ...Y,
2998
+ ...z
2999
+ }, wt = (j) => {
3000
+ C = !0, f.has(j) && (F = !0, f.delete(j)), g.needsAnimating[j] = !0;
2988
3001
  };
2989
- for (const R in j) {
2990
- const it = F[R], Lt = G[R];
2991
- if (p.hasOwnProperty(R))
3002
+ for (const j in N) {
3003
+ const it = z[j], Lt = Y[j];
3004
+ if (p.hasOwnProperty(j))
2992
3005
  continue;
2993
3006
  let St = !1;
2994
- fe(it) && fe(Lt) ? St = !Ps(it, Lt) : St = it !== Lt, St ? it !== void 0 ? wt(R) : f.add(R) : it !== void 0 && f.has(R) ? wt(R) : g.protectedKeys[R] = !0;
3007
+ fe(it) && fe(Lt) ? St = !Ps(it, Lt) : St = it !== Lt, St ? it !== void 0 ? wt(j) : f.add(j) : it !== void 0 && f.has(j) ? wt(j) : g.protectedKeys[j] = !0;
2995
3008
  }
2996
- g.prevProp = x, g.prevResolvedValues = F, g.isActive && (p = { ...p, ...F }), i && t.blockInitialAnimation && (C = !1), C && (!k || q) && d.push(...nt.map((R) => ({
2997
- animation: R,
2998
- options: { type: b, ...l }
3009
+ g.prevProp = x, g.prevResolvedValues = z, g.isActive && (p = { ...p, ...z }), i && t.blockInitialAnimation && (C = !1), C && (!k || F) && d.push(...nt.map((j) => ({
3010
+ animation: j,
3011
+ options: { type: y, ...l }
2999
3012
  })));
3000
3013
  }
3001
3014
  if (f.size) {
3002
- const y = {};
3003
- f.forEach((b) => {
3004
- const g = t.getBaseTarget(b);
3005
- g !== void 0 && (y[b] = g);
3006
- }), d.push({ animation: y });
3015
+ const b = {};
3016
+ f.forEach((y) => {
3017
+ const g = t.getBaseTarget(y);
3018
+ g !== void 0 && (b[y] = g);
3019
+ }), d.push({ animation: b });
3007
3020
  }
3008
3021
  let v = !!d.length;
3009
3022
  return i && (u.initial === !1 || u.initial === u.animate) && !t.manuallyAnimateOnMount && (v = !1), i = !1, v ? e(d) : Promise.resolve();
@@ -3028,7 +3041,7 @@ function sc(t) {
3028
3041
  getState: () => n
3029
3042
  };
3030
3043
  }
3031
- function rc(t, e) {
3044
+ function oc(t, e) {
3032
3045
  return typeof e == "string" ? e !== t : Array.isArray(e) ? !Ps(e, t) : !1;
3033
3046
  }
3034
3047
  function mt(t = !1) {
@@ -3039,7 +3052,7 @@ function mt(t = !1) {
3039
3052
  prevResolvedValues: {}
3040
3053
  };
3041
3054
  }
3042
- function oc() {
3055
+ function ac() {
3043
3056
  return {
3044
3057
  animate: mt(!0),
3045
3058
  whileInView: mt(),
@@ -3050,14 +3063,14 @@ function oc() {
3050
3063
  exit: mt()
3051
3064
  };
3052
3065
  }
3053
- class ac extends ft {
3066
+ class lc extends ft {
3054
3067
  /**
3055
3068
  * We dynamically generate the AnimationState manager as it contains a reference
3056
3069
  * to the underlying animation library. We only want to load that if we load this,
3057
3070
  * so people can optionally code split it out using the `m` component.
3058
3071
  */
3059
3072
  constructor(e) {
3060
- super(e), e.animationState || (e.animationState = sc(e));
3073
+ super(e), e.animationState || (e.animationState = rc(e));
3061
3074
  }
3062
3075
  updateAnimationControlsSubscription() {
3063
3076
  const { animate: e } = this.node.getProps();
@@ -3076,10 +3089,10 @@ class ac extends ft {
3076
3089
  unmount() {
3077
3090
  }
3078
3091
  }
3079
- let lc = 0;
3080
- class cc extends ft {
3092
+ let cc = 0;
3093
+ class uc extends ft {
3081
3094
  constructor() {
3082
- super(...arguments), this.id = lc++;
3095
+ super(...arguments), this.id = cc++;
3083
3096
  }
3084
3097
  update() {
3085
3098
  if (!this.node.presenceContext)
@@ -3097,30 +3110,30 @@ class cc extends ft {
3097
3110
  unmount() {
3098
3111
  }
3099
3112
  }
3100
- const uc = {
3113
+ const hc = {
3101
3114
  animation: {
3102
- Feature: ac
3115
+ Feature: lc
3103
3116
  },
3104
3117
  exit: {
3105
- Feature: cc
3118
+ Feature: uc
3106
3119
  }
3107
3120
  }, Zn = (t, e) => Math.abs(t - e);
3108
- function hc(t, e) {
3121
+ function dc(t, e) {
3109
3122
  const n = Zn(t.x, e.x), i = Zn(t.y, e.y);
3110
3123
  return Math.sqrt(n ** 2 + i ** 2);
3111
3124
  }
3112
- class ir {
3125
+ class nr {
3113
3126
  constructor(e, n, { transformPagePoint: i, contextWindow: s, dragSnapToOrigin: o = !1 } = {}) {
3114
3127
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
3115
3128
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
3116
3129
  return;
3117
- const h = Fe(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, f = hc(h.offset, { x: 0, y: 0 }) >= 3;
3130
+ const h = Fe(this.lastMoveEventInfo, this.history), d = this.startEvent !== null, f = dc(h.offset, { x: 0, y: 0 }) >= 3;
3118
3131
  if (!d && !f)
3119
3132
  return;
3120
- const { point: p } = h, { timestamp: m } = N;
3133
+ const { point: p } = h, { timestamp: m } = B;
3121
3134
  this.history.push({ ...p, timestamp: m });
3122
- const { onStart: v, onMove: y } = this.handlers;
3123
- d || (v && v(this.lastMoveEvent, h), this.startEvent = this.lastMoveEvent), y && y(this.lastMoveEvent, h);
3135
+ const { onStart: v, onMove: b } = this.handlers;
3136
+ d || (v && v(this.lastMoveEvent, h), this.startEvent = this.lastMoveEvent), b && b(this.lastMoveEvent, h);
3124
3137
  }, this.handlePointerMove = (h, d) => {
3125
3138
  this.lastMoveEvent = h, this.lastMoveEventInfo = Ie(d, this.transformPagePoint), V.update(this.updatePoint, !0);
3126
3139
  }, this.handlePointerUp = (h, d) => {
@@ -3130,10 +3143,10 @@ class ir {
3130
3143
  return;
3131
3144
  const v = Fe(h.type === "pointercancel" ? this.lastMoveEventInfo : Ie(d, this.transformPagePoint), this.history);
3132
3145
  this.startEvent && f && f(h, v), p && p(h, v);
3133
- }, !xs(e))
3146
+ }, !bs(e))
3134
3147
  return;
3135
3148
  this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = i, this.contextWindow = s || window;
3136
- const r = Pe(e), a = Ie(r, this.transformPagePoint), { point: l } = a, { timestamp: c } = N;
3149
+ const r = Ae(e), a = Ie(r, this.transformPagePoint), { point: l } = a, { timestamp: c } = B;
3137
3150
  this.history = [{ ...l, timestamp: c }];
3138
3151
  const { onSessionStart: u } = n;
3139
3152
  u && u(e, Fe(a, this.history)), this.removeListeners = ct(J(this.contextWindow, "pointermove", this.handlePointerMove), J(this.contextWindow, "pointerup", this.handlePointerUp), J(this.contextWindow, "pointercancel", this.handlePointerUp));
@@ -3154,22 +3167,22 @@ function Jn(t, e) {
3154
3167
  function Fe({ point: t }, e) {
3155
3168
  return {
3156
3169
  point: t,
3157
- delta: Jn(t, sr(e)),
3158
- offset: Jn(t, dc(e)),
3159
- velocity: fc(e, 0.1)
3170
+ delta: Jn(t, ir(e)),
3171
+ offset: Jn(t, fc(e)),
3172
+ velocity: pc(e, 0.1)
3160
3173
  };
3161
3174
  }
3162
- function dc(t) {
3175
+ function fc(t) {
3163
3176
  return t[0];
3164
3177
  }
3165
- function sr(t) {
3178
+ function ir(t) {
3166
3179
  return t[t.length - 1];
3167
3180
  }
3168
- function fc(t, e) {
3181
+ function pc(t, e) {
3169
3182
  if (t.length < 2)
3170
3183
  return { x: 0, y: 0 };
3171
3184
  let n = t.length - 1, i = null;
3172
- const s = sr(t);
3185
+ const s = ir(t);
3173
3186
  for (; n >= 0 && (i = t[n], !(s.timestamp - i.timestamp > ut(e))); )
3174
3187
  n--;
3175
3188
  if (!i)
@@ -3183,31 +3196,31 @@ function fc(t, e) {
3183
3196
  };
3184
3197
  return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
3185
3198
  }
3186
- function H(t) {
3199
+ function G(t) {
3187
3200
  return t.max - t.min;
3188
3201
  }
3189
3202
  function Ke(t, e = 0, n = 0.01) {
3190
3203
  return Math.abs(t - e) <= n;
3191
3204
  }
3192
3205
  function ti(t, e, n, i = 0.5) {
3193
- t.origin = i, t.originPoint = M(e.min, e.max, t.origin), t.scale = H(n) / H(e), (Ke(t.scale, 1, 1e-4) || isNaN(t.scale)) && (t.scale = 1), t.translate = M(n.min, n.max, t.origin) - t.originPoint, (Ke(t.translate) || isNaN(t.translate)) && (t.translate = 0);
3206
+ t.origin = i, t.originPoint = M(e.min, e.max, t.origin), t.scale = G(n) / G(e), (Ke(t.scale, 1, 1e-4) || isNaN(t.scale)) && (t.scale = 1), t.translate = M(n.min, n.max, t.origin) - t.originPoint, (Ke(t.translate) || isNaN(t.translate)) && (t.translate = 0);
3194
3207
  }
3195
3208
  function _t(t, e, n, i) {
3196
3209
  ti(t.x, e.x, n.x, i ? i.originX : void 0), ti(t.y, e.y, n.y, i ? i.originY : void 0);
3197
3210
  }
3198
3211
  function ei(t, e, n) {
3199
- t.min = n.min + e.min, t.max = t.min + H(e);
3212
+ t.min = n.min + e.min, t.max = t.min + G(e);
3200
3213
  }
3201
- function pc(t, e, n) {
3214
+ function mc(t, e, n) {
3202
3215
  ei(t.x, e.x, n.x), ei(t.y, e.y, n.y);
3203
3216
  }
3204
3217
  function ni(t, e, n) {
3205
- t.min = e.min - n.min, t.max = t.min + H(e);
3218
+ t.min = e.min - n.min, t.max = t.min + G(e);
3206
3219
  }
3207
3220
  function Ut(t, e, n) {
3208
3221
  ni(t.x, e.x, n.x), ni(t.y, e.y, n.y);
3209
3222
  }
3210
- function mc(t, { min: e, max: n }, i) {
3223
+ function gc(t, { min: e, max: n }, i) {
3211
3224
  return e !== void 0 && t < e ? t = i ? M(e, t, i.min) : Math.max(t, e) : n !== void 0 && t > n && (t = i ? M(n, t, i.max) : Math.min(t, n)), t;
3212
3225
  }
3213
3226
  function ii(t, e, n) {
@@ -3216,7 +3229,7 @@ function ii(t, e, n) {
3216
3229
  max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
3217
3230
  };
3218
3231
  }
3219
- function gc(t, { top: e, left: n, bottom: i, right: s }) {
3232
+ function vc(t, { top: e, left: n, bottom: i, right: s }) {
3220
3233
  return {
3221
3234
  x: ii(t.x, n, s),
3222
3235
  y: ii(t.y, e, i)
@@ -3226,23 +3239,23 @@ function si(t, e) {
3226
3239
  let n = e.min - t.min, i = e.max - t.max;
3227
3240
  return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
3228
3241
  }
3229
- function vc(t, e) {
3242
+ function yc(t, e) {
3230
3243
  return {
3231
3244
  x: si(t.x, e.x),
3232
3245
  y: si(t.y, e.y)
3233
3246
  };
3234
3247
  }
3235
- function yc(t, e) {
3248
+ function bc(t, e) {
3236
3249
  let n = 0.5;
3237
- const i = H(t), s = H(e);
3250
+ const i = G(t), s = G(e);
3238
3251
  return s > i ? n = Yt(e.min, e.max - i, t.min) : i > s && (n = Yt(t.min, t.max - s, e.min)), ht(0, 1, n);
3239
3252
  }
3240
- function bc(t, e) {
3253
+ function xc(t, e) {
3241
3254
  const n = {};
3242
3255
  return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
3243
3256
  }
3244
3257
  const $e = 0.35;
3245
- function xc(t = $e) {
3258
+ function wc(t = $e) {
3246
3259
  return t === !1 ? t = 0 : t === !0 && (t = $e), {
3247
3260
  x: ri(t, "left", "right"),
3248
3261
  y: ri(t, "top", "bottom")
@@ -3269,19 +3282,19 @@ const ai = () => ({
3269
3282
  x: li(),
3270
3283
  y: li()
3271
3284
  });
3272
- function X(t) {
3285
+ function q(t) {
3273
3286
  return [t("x"), t("y")];
3274
3287
  }
3275
- function rr({ top: t, left: e, right: n, bottom: i }) {
3288
+ function sr({ top: t, left: e, right: n, bottom: i }) {
3276
3289
  return {
3277
3290
  x: { min: e, max: n },
3278
3291
  y: { min: t, max: i }
3279
3292
  };
3280
3293
  }
3281
- function wc({ x: t, y: e }) {
3294
+ function Sc({ x: t, y: e }) {
3282
3295
  return { top: e.min, right: t.max, bottom: e.max, left: t.min };
3283
3296
  }
3284
- function Sc(t, e) {
3297
+ function Tc(t, e) {
3285
3298
  if (!e)
3286
3299
  return t;
3287
3300
  const n = e({ x: t.left, y: t.top }), i = e({ x: t.right, y: t.bottom });
@@ -3299,9 +3312,9 @@ function Qe({ scale: t, scaleX: e, scaleY: n }) {
3299
3312
  return !ze(t) || !ze(e) || !ze(n);
3300
3313
  }
3301
3314
  function gt(t) {
3302
- return Qe(t) || or(t) || t.z || t.rotate || t.rotateX || t.rotateY;
3315
+ return Qe(t) || rr(t) || t.z || t.rotate || t.rotateX || t.rotateY;
3303
3316
  }
3304
- function or(t) {
3317
+ function rr(t) {
3305
3318
  return ci(t.x) || ci(t.y);
3306
3319
  }
3307
3320
  function ci(t) {
@@ -3317,10 +3330,10 @@ function ui(t, e, n, i, s) {
3317
3330
  function Ze(t, e = 0, n = 1, i, s) {
3318
3331
  t.min = ui(t.min, e, n, i, s), t.max = ui(t.max, e, n, i, s);
3319
3332
  }
3320
- function ar(t, { x: e, y: n }) {
3333
+ function or(t, { x: e, y: n }) {
3321
3334
  Ze(t.x, e.translate, e.scale, e.originPoint), Ze(t.y, n.translate, n.scale, n.originPoint);
3322
3335
  }
3323
- function Tc(t, e, n, i = !1) {
3336
+ function Pc(t, e, n, i = !1) {
3324
3337
  const s = n.length;
3325
3338
  if (!s)
3326
3339
  return;
@@ -3332,7 +3345,7 @@ function Tc(t, e, n, i = !1) {
3332
3345
  l && l.style && l.style.display === "contents" || (i && o.options.layoutScroll && o.scroll && o !== o.root && Vt(t, {
3333
3346
  x: -o.scroll.offset.x,
3334
3347
  y: -o.scroll.offset.y
3335
- }), r && (e.x *= r.x.scale, e.y *= r.y.scale, ar(t, r)), i && gt(o.latestValues) && Vt(t, o.latestValues));
3348
+ }), r && (e.x *= r.x.scale, e.y *= r.y.scale, or(t, r)), i && gt(o.latestValues) && Vt(t, o.latestValues));
3336
3349
  }
3337
3350
  e.x = hi(e.x), e.y = hi(e.y);
3338
3351
  }
@@ -3346,19 +3359,19 @@ function di(t, e, [n, i, s]) {
3346
3359
  const o = e[s] !== void 0 ? e[s] : 0.5, r = M(t.min, t.max, o);
3347
3360
  Ze(t, e[n], e[i], r, e.scale);
3348
3361
  }
3349
- const Ac = ["x", "scaleX", "originX"], Pc = ["y", "scaleY", "originY"];
3362
+ const Ac = ["x", "scaleX", "originX"], kc = ["y", "scaleY", "originY"];
3350
3363
  function Vt(t, e) {
3351
- di(t.x, e, Ac), di(t.y, e, Pc);
3364
+ di(t.x, e, Ac), di(t.y, e, kc);
3352
3365
  }
3353
- function lr(t, e) {
3354
- return rr(Sc(t.getBoundingClientRect(), e));
3366
+ function ar(t, e) {
3367
+ return sr(Tc(t.getBoundingClientRect(), e));
3355
3368
  }
3356
- function kc(t, e, n) {
3357
- const i = lr(t, n), { scroll: s } = e;
3369
+ function Cc(t, e, n) {
3370
+ const i = ar(t, n), { scroll: s } = e;
3358
3371
  return s && (lt(i.x, s.offset.x), lt(i.y, s.offset.y)), i;
3359
3372
  }
3360
- const cr = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Cc = /* @__PURE__ */ new WeakMap();
3361
- class Vc {
3373
+ const lr = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Vc = /* @__PURE__ */ new WeakMap();
3374
+ class Ec {
3362
3375
  constructor(e) {
3363
3376
  this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = L(), this.visualElement = e;
3364
3377
  }
@@ -3368,21 +3381,21 @@ class Vc {
3368
3381
  return;
3369
3382
  const s = (u) => {
3370
3383
  const { dragSnapToOrigin: h } = this.getProps();
3371
- h ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Pe(u, "page").point);
3384
+ h ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Ae(u, "page").point);
3372
3385
  }, o = (u, h) => {
3373
3386
  const { drag: d, dragPropagation: f, onDragStart: p } = this.getProps();
3374
- if (d && !f && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = Ss(d), !this.openGlobalLock))
3387
+ if (d && !f && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = ws(d), !this.openGlobalLock))
3375
3388
  return;
3376
- this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), X((v) => {
3377
- let y = this.getAxisMotionValue(v).get() || 0;
3378
- if (Q.test(y)) {
3379
- const { projection: b } = this.visualElement;
3380
- if (b && b.layout) {
3381
- const g = b.layout.layoutBox[v];
3382
- g && (y = H(g) * (parseFloat(y) / 100));
3389
+ this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), q((v) => {
3390
+ let b = this.getAxisMotionValue(v).get() || 0;
3391
+ if (Q.test(b)) {
3392
+ const { projection: y } = this.visualElement;
3393
+ if (y && y.layout) {
3394
+ const g = y.layout.layoutBox[v];
3395
+ g && (b = G(g) * (parseFloat(b) / 100));
3383
3396
  }
3384
3397
  }
3385
- this.originPoint[v] = y;
3398
+ this.originPoint[v] = b;
3386
3399
  }), p && V.update(() => p(u, h), !1, !0);
3387
3400
  const { animationState: m } = this.visualElement;
3388
3401
  m && m.setActive("whileDrag", !0);
@@ -3392,15 +3405,15 @@ class Vc {
3392
3405
  return;
3393
3406
  const { offset: v } = h;
3394
3407
  if (f && this.currentDirection === null) {
3395
- this.currentDirection = Ec(v), this.currentDirection !== null && p && p(this.currentDirection);
3408
+ this.currentDirection = Mc(v), this.currentDirection !== null && p && p(this.currentDirection);
3396
3409
  return;
3397
3410
  }
3398
3411
  this.updateAxis("x", h.point, v), this.updateAxis("y", h.point, v), this.visualElement.render(), m && m(u, h);
3399
- }, a = (u, h) => this.stop(u, h), l = () => X((u) => {
3412
+ }, a = (u, h) => this.stop(u, h), l = () => q((u) => {
3400
3413
  var h;
3401
3414
  return this.getAnimationState(u) === "paused" && ((h = this.getAxisMotionValue(u).animation) === null || h === void 0 ? void 0 : h.play());
3402
3415
  }), { dragSnapToOrigin: c } = this.getProps();
3403
- this.panSession = new ir(e, {
3416
+ this.panSession = new nr(e, {
3404
3417
  onSessionStart: s,
3405
3418
  onStart: o,
3406
3419
  onMove: r,
@@ -3409,7 +3422,7 @@ class Vc {
3409
3422
  }, {
3410
3423
  transformPagePoint: this.visualElement.getTransformPagePoint(),
3411
3424
  dragSnapToOrigin: c,
3412
- contextWindow: cr(this.visualElement)
3425
+ contextWindow: lr(this.visualElement)
3413
3426
  });
3414
3427
  }
3415
3428
  stop(e, n) {
@@ -3434,34 +3447,34 @@ class Vc {
3434
3447
  return;
3435
3448
  const o = this.getAxisMotionValue(e);
3436
3449
  let r = this.originPoint[e] + i[e];
3437
- this.constraints && this.constraints[e] && (r = mc(r, this.constraints[e], this.elastic[e])), o.set(r);
3450
+ this.constraints && this.constraints[e] && (r = gc(r, this.constraints[e], this.elastic[e])), o.set(r);
3438
3451
  }
3439
3452
  resolveConstraints() {
3440
3453
  var e;
3441
3454
  const { dragConstraints: n, dragElastic: i } = this.getProps(), s = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, o = this.constraints;
3442
- n && Pt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = gc(s.layoutBox, n) : this.constraints = !1, this.elastic = xc(i), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && X((r) => {
3443
- this.getAxisMotionValue(r) && (this.constraints[r] = bc(s.layoutBox[r], this.constraints[r]));
3455
+ n && At(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && s ? this.constraints = vc(s.layoutBox, n) : this.constraints = !1, this.elastic = wc(i), o !== this.constraints && s && this.constraints && !this.hasMutatedConstraints && q((r) => {
3456
+ this.getAxisMotionValue(r) && (this.constraints[r] = xc(s.layoutBox[r], this.constraints[r]));
3444
3457
  });
3445
3458
  }
3446
3459
  resolveRefConstraints() {
3447
3460
  const { dragConstraints: e, onMeasureDragConstraints: n } = this.getProps();
3448
- if (!e || !Pt(e))
3461
+ if (!e || !At(e))
3449
3462
  return !1;
3450
3463
  const i = e.current;
3451
3464
  $(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
3452
3465
  const { projection: s } = this.visualElement;
3453
3466
  if (!s || !s.layout)
3454
3467
  return !1;
3455
- const o = kc(i, s.root, this.visualElement.getTransformPagePoint());
3456
- let r = vc(s.layout.layoutBox, o);
3468
+ const o = Cc(i, s.root, this.visualElement.getTransformPagePoint());
3469
+ let r = yc(s.layout.layoutBox, o);
3457
3470
  if (n) {
3458
- const a = n(wc(r));
3459
- this.hasMutatedConstraints = !!a, a && (r = rr(a));
3471
+ const a = n(Sc(r));
3472
+ this.hasMutatedConstraints = !!a, a && (r = sr(a));
3460
3473
  }
3461
3474
  return r;
3462
3475
  }
3463
3476
  startAnimation(e) {
3464
- const { drag: n, dragMomentum: i, dragElastic: s, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = X((u) => {
3477
+ const { drag: n, dragMomentum: i, dragElastic: s, dragTransition: o, dragSnapToOrigin: r, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = q((u) => {
3465
3478
  if (!se(u, n, this.currentDirection))
3466
3479
  return;
3467
3480
  let h = l && l[u] || {};
@@ -3486,10 +3499,10 @@ class Vc {
3486
3499
  return i.start(yn(e, i, 0, n));
3487
3500
  }
3488
3501
  stopAnimation() {
3489
- X((e) => this.getAxisMotionValue(e).stop());
3502
+ q((e) => this.getAxisMotionValue(e).stop());
3490
3503
  }
3491
3504
  pauseAnimation() {
3492
- X((e) => {
3505
+ q((e) => {
3493
3506
  var n;
3494
3507
  return (n = this.getAxisMotionValue(e).animation) === null || n === void 0 ? void 0 : n.pause();
3495
3508
  });
@@ -3509,7 +3522,7 @@ class Vc {
3509
3522
  return s || this.visualElement.getValue(e, (i.initial ? i.initial[e] : void 0) || 0);
3510
3523
  }
3511
3524
  snapToCursor(e) {
3512
- X((n) => {
3525
+ q((n) => {
3513
3526
  const { drag: i } = this.getProps();
3514
3527
  if (!se(n, i, this.currentDirection))
3515
3528
  return;
@@ -3529,19 +3542,19 @@ class Vc {
3529
3542
  if (!this.visualElement.current)
3530
3543
  return;
3531
3544
  const { drag: e, dragConstraints: n } = this.getProps(), { projection: i } = this.visualElement;
3532
- if (!Pt(n) || !i || !this.constraints)
3545
+ if (!At(n) || !i || !this.constraints)
3533
3546
  return;
3534
3547
  this.stopAnimation();
3535
3548
  const s = { x: 0, y: 0 };
3536
- X((r) => {
3549
+ q((r) => {
3537
3550
  const a = this.getAxisMotionValue(r);
3538
3551
  if (a) {
3539
3552
  const l = a.get();
3540
- s[r] = yc({ min: l, max: l }, this.constraints[r]);
3553
+ s[r] = bc({ min: l, max: l }, this.constraints[r]);
3541
3554
  }
3542
3555
  });
3543
3556
  const { transformTemplate: o } = this.visualElement.getProps();
3544
- this.visualElement.current.style.transform = o ? o({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), X((r) => {
3557
+ this.visualElement.current.style.transform = o ? o({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.resolveConstraints(), q((r) => {
3545
3558
  if (!se(r, e, null))
3546
3559
  return;
3547
3560
  const a = this.getAxisMotionValue(r), { min: l, max: c } = this.constraints[r];
@@ -3551,17 +3564,17 @@ class Vc {
3551
3564
  addListeners() {
3552
3565
  if (!this.visualElement.current)
3553
3566
  return;
3554
- Cc.set(this.visualElement, this);
3567
+ Vc.set(this.visualElement, this);
3555
3568
  const e = this.visualElement.current, n = J(e, "pointerdown", (l) => {
3556
3569
  const { drag: c, dragListener: u = !0 } = this.getProps();
3557
3570
  c && u && this.start(l);
3558
3571
  }), i = () => {
3559
3572
  const { dragConstraints: l } = this.getProps();
3560
- Pt(l) && (this.constraints = this.resolveRefConstraints());
3573
+ At(l) && (this.constraints = this.resolveRefConstraints());
3561
3574
  }, { projection: s } = this.visualElement, o = s.addEventListener("measure", i);
3562
3575
  s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), i();
3563
3576
  const r = Z(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
3564
- this.isDragging && c && (X((u) => {
3577
+ this.isDragging && c && (q((u) => {
3565
3578
  const h = this.getAxisMotionValue(u);
3566
3579
  h && (this.originPoint[u] += l[u].translate, h.set(h.get() + l[u].translate));
3567
3580
  }), this.visualElement.render());
@@ -3586,13 +3599,13 @@ class Vc {
3586
3599
  function se(t, e, n) {
3587
3600
  return (e === !0 || e === t) && (n === null || n === t);
3588
3601
  }
3589
- function Ec(t, e = 10) {
3602
+ function Mc(t, e = 10) {
3590
3603
  let n = null;
3591
3604
  return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
3592
3605
  }
3593
- class Mc extends ft {
3606
+ class Oc extends ft {
3594
3607
  constructor(e) {
3595
- super(e), this.removeGroupControls = O, this.removeListeners = O, this.controls = new Vc(e);
3608
+ super(e), this.removeGroupControls = O, this.removeListeners = O, this.controls = new Ec(e);
3596
3609
  }
3597
3610
  mount() {
3598
3611
  const { dragControls: e } = this.node.getProps();
@@ -3605,14 +3618,14 @@ class Mc extends ft {
3605
3618
  const fi = (t) => (e, n) => {
3606
3619
  t && V.update(() => t(e, n));
3607
3620
  };
3608
- class Oc extends ft {
3621
+ class Dc extends ft {
3609
3622
  constructor() {
3610
3623
  super(...arguments), this.removePointerDownListener = O;
3611
3624
  }
3612
3625
  onPointerDown(e) {
3613
- this.session = new ir(e, this.createPanHandlers(), {
3626
+ this.session = new nr(e, this.createPanHandlers(), {
3614
3627
  transformPagePoint: this.node.getTransformPagePoint(),
3615
- contextWindow: cr(this.node)
3628
+ contextWindow: lr(this.node)
3616
3629
  });
3617
3630
  }
3618
3631
  createPanHandlers() {
@@ -3636,8 +3649,8 @@ class Oc extends ft {
3636
3649
  this.removePointerDownListener(), this.session && this.session.end();
3637
3650
  }
3638
3651
  }
3639
- function Dc() {
3640
- const t = W(en);
3652
+ function Lc() {
3653
+ const t = _(en);
3641
3654
  if (t === null)
3642
3655
  return [!0, null];
3643
3656
  const { isPresent: e, onExitComplete: n, register: i } = t, s = Er();
@@ -3663,14 +3676,14 @@ const It = {
3663
3676
  if (!e.target)
3664
3677
  return t;
3665
3678
  if (typeof t == "string")
3666
- if (P.test(t))
3679
+ if (A.test(t))
3667
3680
  t = parseFloat(t);
3668
3681
  else
3669
3682
  return t;
3670
3683
  const n = pi(t, e.target.x), i = pi(t, e.target.y);
3671
3684
  return `${n}% ${i}%`;
3672
3685
  }
3673
- }, Lc = {
3686
+ }, Rc = {
3674
3687
  correct: (t, { treeScale: e, projectionDelta: n }) => {
3675
3688
  const i = t, s = dt.parse(t);
3676
3689
  if (s.length > 5)
@@ -3681,7 +3694,7 @@ const It = {
3681
3694
  return typeof s[2 + r] == "number" && (s[2 + r] /= c), typeof s[3 + r] == "number" && (s[3 + r] /= c), o(s);
3682
3695
  }
3683
3696
  };
3684
- class Rc extends zi.Component {
3697
+ class jc extends Fi.Component {
3685
3698
  /**
3686
3699
  * This only mounts projection nodes for components that
3687
3700
  * need measuring, we might want to do it for all components
@@ -3689,7 +3702,7 @@ class Rc extends zi.Component {
3689
3702
  */
3690
3703
  componentDidMount() {
3691
3704
  const { visualElement: e, layoutGroup: n, switchLayoutGroup: i, layoutId: s } = this.props, { projection: o } = e;
3692
- _o(Bc), o && (n.group && n.group.add(o), i && i.register && s && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
3705
+ Uo(Bc), o && (n.group && n.group.add(o), i && i.register && s && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
3693
3706
  this.safeToRemove();
3694
3707
  }), o.setOptions({
3695
3708
  ...o.options,
@@ -3721,9 +3734,9 @@ class Rc extends zi.Component {
3721
3734
  return null;
3722
3735
  }
3723
3736
  }
3724
- function ur(t) {
3725
- const [e, n] = Dc(), i = W(rs);
3726
- return zi.createElement(Rc, { ...t, layoutGroup: i, switchLayoutGroup: W(os), isPresent: e, safeToRemove: n });
3737
+ function cr(t) {
3738
+ const [e, n] = Lc(), i = _(ss);
3739
+ return Fi.createElement(jc, { ...t, layoutGroup: i, switchLayoutGroup: _(rs), isPresent: e, safeToRemove: n });
3727
3740
  }
3728
3741
  const Bc = {
3729
3742
  borderRadius: {
@@ -3739,17 +3752,17 @@ const Bc = {
3739
3752
  borderTopRightRadius: It,
3740
3753
  borderBottomLeftRadius: It,
3741
3754
  borderBottomRightRadius: It,
3742
- boxShadow: Lc
3743
- }, hr = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Nc = hr.length, mi = (t) => typeof t == "string" ? parseFloat(t) : t, gi = (t) => typeof t == "number" || P.test(t);
3744
- function jc(t, e, n, i, s, o) {
3755
+ boxShadow: Rc
3756
+ }, ur = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Nc = ur.length, mi = (t) => typeof t == "string" ? parseFloat(t) : t, gi = (t) => typeof t == "number" || A.test(t);
3757
+ function Ic(t, e, n, i, s, o) {
3745
3758
  s ? (t.opacity = M(
3746
3759
  0,
3747
3760
  // TODO Reinstate this if only child
3748
3761
  n.opacity !== void 0 ? n.opacity : 1,
3749
- Ic(i)
3750
- ), t.opacityExit = M(e.opacity !== void 0 ? e.opacity : 1, 0, Fc(i))) : o && (t.opacity = M(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
3762
+ Fc(i)
3763
+ ), t.opacityExit = M(e.opacity !== void 0 ? e.opacity : 1, 0, zc(i))) : o && (t.opacity = M(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
3751
3764
  for (let r = 0; r < Nc; r++) {
3752
- const a = `border${hr[r]}Radius`;
3765
+ const a = `border${ur[r]}Radius`;
3753
3766
  let l = vi(e, a), c = vi(n, a);
3754
3767
  if (l === void 0 && c === void 0)
3755
3768
  continue;
@@ -3760,48 +3773,48 @@ function jc(t, e, n, i, s, o) {
3760
3773
  function vi(t, e) {
3761
3774
  return t[e] !== void 0 ? t[e] : t.borderRadius;
3762
3775
  }
3763
- const Ic = dr(0, 0.5, Rs), Fc = dr(0.5, 0.95, O);
3764
- function dr(t, e, n) {
3776
+ const Fc = hr(0, 0.5, Ls), zc = hr(0.5, 0.95, O);
3777
+ function hr(t, e, n) {
3765
3778
  return (i) => i < t ? 0 : i > e ? 1 : n(Yt(t, e, i));
3766
3779
  }
3767
3780
  function yi(t, e) {
3768
3781
  t.min = e.min, t.max = e.max;
3769
3782
  }
3770
- function Y(t, e) {
3783
+ function X(t, e) {
3771
3784
  yi(t.x, e.x), yi(t.y, e.y);
3772
3785
  }
3773
3786
  function bi(t, e, n, i, s) {
3774
3787
  return t -= e, t = ye(t, 1 / n, i), s !== void 0 && (t = ye(t, 1 / s, i)), t;
3775
3788
  }
3776
- function zc(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
3789
+ function Wc(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
3777
3790
  if (Q.test(e) && (e = parseFloat(e), e = M(r.min, r.max, e / 100) - r.min), typeof e != "number")
3778
3791
  return;
3779
3792
  let a = M(o.min, o.max, i);
3780
3793
  t === o && (a -= e), t.min = bi(t.min, e, n, a, s), t.max = bi(t.max, e, n, a, s);
3781
3794
  }
3782
3795
  function xi(t, e, [n, i, s], o, r) {
3783
- zc(t, e[n], e[i], e[s], e.scale, o, r);
3796
+ Wc(t, e[n], e[i], e[s], e.scale, o, r);
3784
3797
  }
3785
- const Wc = ["x", "scaleX", "originX"], _c = ["y", "scaleY", "originY"];
3798
+ const _c = ["x", "scaleX", "originX"], Uc = ["y", "scaleY", "originY"];
3786
3799
  function wi(t, e, n, i) {
3787
- xi(t.x, e, Wc, n ? n.x : void 0, i ? i.x : void 0), xi(t.y, e, _c, n ? n.y : void 0, i ? i.y : void 0);
3800
+ xi(t.x, e, _c, n ? n.x : void 0, i ? i.x : void 0), xi(t.y, e, Uc, n ? n.y : void 0, i ? i.y : void 0);
3788
3801
  }
3789
3802
  function Si(t) {
3790
3803
  return t.translate === 0 && t.scale === 1;
3791
3804
  }
3792
- function fr(t) {
3805
+ function dr(t) {
3793
3806
  return Si(t.x) && Si(t.y);
3794
3807
  }
3795
- function Uc(t, e) {
3808
+ function Hc(t, e) {
3796
3809
  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;
3797
3810
  }
3798
- function pr(t, e) {
3811
+ function fr(t, e) {
3799
3812
  return Math.round(t.x.min) === Math.round(e.x.min) && Math.round(t.x.max) === Math.round(e.x.max) && Math.round(t.y.min) === Math.round(e.y.min) && Math.round(t.y.max) === Math.round(e.y.max);
3800
3813
  }
3801
3814
  function Ti(t) {
3802
- return H(t.x) / H(t.y);
3815
+ return G(t.x) / G(t.y);
3803
3816
  }
3804
- class Hc {
3817
+ class Gc {
3805
3818
  constructor() {
3806
3819
  this.members = [];
3807
3820
  }
@@ -3855,7 +3868,7 @@ class Hc {
3855
3868
  this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
3856
3869
  }
3857
3870
  }
3858
- function Ai(t, e, n) {
3871
+ function Pi(t, e, n) {
3859
3872
  let i = "";
3860
3873
  const s = t.x.translate / e.x, o = t.y.translate / e.y;
3861
3874
  if ((s || o) && (i = `translate3d(${s}px, ${o}px, 0) `), (e.x !== 1 || e.y !== 1) && (i += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
@@ -3865,8 +3878,8 @@ function Ai(t, e, n) {
3865
3878
  const r = t.x.scale * e.x, a = t.y.scale * e.y;
3866
3879
  return (r !== 1 || a !== 1) && (i += `scale(${r}, ${a})`), i || "none";
3867
3880
  }
3868
- const Gc = (t, e) => t.depth - e.depth;
3869
- class Yc {
3881
+ const Yc = (t, e) => t.depth - e.depth;
3882
+ class Xc {
3870
3883
  constructor() {
3871
3884
  this.children = [], this.isDirty = !1;
3872
3885
  }
@@ -3877,45 +3890,45 @@ class Yc {
3877
3890
  xn(this.children, e), this.isDirty = !0;
3878
3891
  }
3879
3892
  forEach(e) {
3880
- this.isDirty && this.children.sort(Gc), this.isDirty = !1, this.children.forEach(e);
3893
+ this.isDirty && this.children.sort(Yc), this.isDirty = !1, this.children.forEach(e);
3881
3894
  }
3882
3895
  }
3883
- function Xc(t, e) {
3896
+ function qc(t, e) {
3884
3897
  const n = performance.now(), i = ({ timestamp: s }) => {
3885
3898
  const o = s - n;
3886
3899
  o >= e && (et(i), t(o - e));
3887
3900
  };
3888
3901
  return V.read(i, !0), () => et(i);
3889
3902
  }
3890
- function qc(t) {
3903
+ function Kc(t) {
3891
3904
  window.MotionDebug && window.MotionDebug.record(t);
3892
3905
  }
3893
- function Kc(t) {
3906
+ function $c(t) {
3894
3907
  return t instanceof SVGElement && t.tagName !== "svg";
3895
3908
  }
3896
- function $c(t, e, n) {
3897
- const i = _(t) ? t : Mt(t);
3909
+ function Qc(t, e, n) {
3910
+ const i = U(t) ? t : Mt(t);
3898
3911
  return i.start(yn("", i, e, n)), i.animation;
3899
3912
  }
3900
- const Pi = ["", "X", "Y", "Z"], Qc = { visibility: "hidden" }, ki = 1e3;
3901
- let Zc = 0;
3913
+ const Ai = ["", "X", "Y", "Z"], Zc = { visibility: "hidden" }, ki = 1e3;
3914
+ let Jc = 0;
3902
3915
  const vt = {
3903
3916
  type: "projectionFrame",
3904
3917
  totalNodes: 0,
3905
3918
  resolvedTargetDeltas: 0,
3906
3919
  recalculatedProjection: 0
3907
3920
  };
3908
- function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
3921
+ function pr({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: s }) {
3909
3922
  return class {
3910
3923
  constructor(r = {}, a = e == null ? void 0 : e()) {
3911
- this.id = Zc++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3924
+ this.id = Jc++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3912
3925
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
3913
3926
  }, this.updateProjection = () => {
3914
- this.projectionUpdateScheduled = !1, vt.totalNodes = vt.resolvedTargetDeltas = vt.recalculatedProjection = 0, this.nodes.forEach(eu), this.nodes.forEach(ou), this.nodes.forEach(au), this.nodes.forEach(nu), qc(vt);
3927
+ this.projectionUpdateScheduled = !1, vt.totalNodes = vt.resolvedTargetDeltas = vt.recalculatedProjection = 0, this.nodes.forEach(nu), this.nodes.forEach(au), this.nodes.forEach(lu), this.nodes.forEach(iu), Kc(vt);
3915
3928
  }, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = r, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
3916
3929
  for (let l = 0; l < this.path.length; l++)
3917
3930
  this.path[l].shouldResetTransform = !0;
3918
- this.root === this && (this.nodes = new Yc());
3931
+ this.root === this && (this.nodes = new Xc());
3919
3932
  }
3920
3933
  addEventListener(r, a) {
3921
3934
  return this.eventHandlers.has(r) || this.eventHandlers.set(r, new wn()), this.eventHandlers.get(r).add(a);
@@ -3933,13 +3946,13 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3933
3946
  mount(r, a = this.root.hasTreeAnimated) {
3934
3947
  if (this.instance)
3935
3948
  return;
3936
- this.isSVG = Kc(r), this.instance = r;
3949
+ this.isSVG = $c(r), this.instance = r;
3937
3950
  const { layoutId: l, layout: c, visualElement: u } = this.options;
3938
3951
  if (u && !u.current && u.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (c || l) && (this.isLayoutDirty = !0), t) {
3939
3952
  let h;
3940
3953
  const d = () => this.root.updateBlockedByResize = !1;
3941
3954
  t(r, () => {
3942
- this.root.updateBlockedByResize = !0, h && h(), h = Xc(d, 250), le.hasAnimatedSinceResize && (le.hasAnimatedSinceResize = !1, this.nodes.forEach(Vi));
3955
+ this.root.updateBlockedByResize = !0, h && h(), h = qc(d, 250), le.hasAnimatedSinceResize && (le.hasAnimatedSinceResize = !1, this.nodes.forEach(Vi));
3943
3956
  });
3944
3957
  }
3945
3958
  l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: h, hasLayoutChanged: d, hasRelativeTargetChanged: f, layout: p }) => {
@@ -3947,13 +3960,13 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3947
3960
  this.target = void 0, this.relativeTarget = void 0;
3948
3961
  return;
3949
3962
  }
3950
- const m = this.options.transition || u.getDefaultTransition() || du, { onLayoutAnimationStart: v, onLayoutAnimationComplete: y } = u.getProps(), b = !this.targetLayout || !pr(this.targetLayout, p) || f, g = !d && f;
3951
- if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || g || d && (b || !this.currentAnimation)) {
3963
+ const m = this.options.transition || u.getDefaultTransition() || fu, { onLayoutAnimationStart: v, onLayoutAnimationComplete: b } = u.getProps(), y = !this.targetLayout || !fr(this.targetLayout, p) || f, g = !d && f;
3964
+ if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || g || d && (y || !this.currentAnimation)) {
3952
3965
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(h, g);
3953
3966
  const x = {
3954
3967
  ...vn(m, "layout"),
3955
3968
  onPlay: v,
3956
- onComplete: y
3969
+ onComplete: b
3957
3970
  };
3958
3971
  (u.shouldReduceMotion || this.options.layoutRoot) && (x.delay = 0, x.type = !1), this.startAnimation(x);
3959
3972
  } else
@@ -3981,7 +3994,7 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
3981
3994
  }
3982
3995
  // Note: currently only running on root node
3983
3996
  startUpdate() {
3984
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(lu), this.animationId++);
3997
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(cu), this.animationId++);
3985
3998
  }
3986
3999
  getTransformTemplate() {
3987
4000
  const { visualElement: r } = this.options;
@@ -4010,15 +4023,15 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4010
4023
  this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Ci);
4011
4024
  return;
4012
4025
  }
4013
- this.isUpdating || this.nodes.forEach(su), this.isUpdating = !1, this.nodes.forEach(ru), this.nodes.forEach(Jc), this.nodes.forEach(tu), this.clearAllSnapshots();
4026
+ this.isUpdating || this.nodes.forEach(ru), this.isUpdating = !1, this.nodes.forEach(ou), this.nodes.forEach(tu), this.nodes.forEach(eu), this.clearAllSnapshots();
4014
4027
  const a = performance.now();
4015
- N.delta = ht(0, 1e3 / 60, a - N.timestamp), N.timestamp = a, N.isProcessing = !0, Me.update.process(N), Me.preRender.process(N), Me.render.process(N), N.isProcessing = !1;
4028
+ B.delta = ht(0, 1e3 / 60, a - B.timestamp), B.timestamp = a, B.isProcessing = !0, Me.update.process(B), Me.preRender.process(B), Me.render.process(B), B.isProcessing = !1;
4016
4029
  }
4017
4030
  didUpdate() {
4018
4031
  this.updateScheduled || (this.updateScheduled = !0, queueMicrotask(() => this.update()));
4019
4032
  }
4020
4033
  clearAllSnapshots() {
4021
- this.nodes.forEach(iu), this.sharedNodes.forEach(cu);
4034
+ this.nodes.forEach(su), this.sharedNodes.forEach(uu);
4022
4035
  }
4023
4036
  scheduleUpdateProjection() {
4024
4037
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, V.preRender(this.updateProjection, !1, !0));
@@ -4057,13 +4070,13 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4057
4070
  resetTransform() {
4058
4071
  if (!s)
4059
4072
  return;
4060
- const r = this.isLayoutDirty || this.shouldResetTransform, a = this.projectionDelta && !fr(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
4073
+ const r = this.isLayoutDirty || this.shouldResetTransform, a = this.projectionDelta && !dr(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
4061
4074
  r && (a || gt(this.latestValues) || u) && (s(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
4062
4075
  }
4063
4076
  measure(r = !0) {
4064
4077
  const a = this.measurePageBox();
4065
4078
  let l = this.removeElementScroll(a);
4066
- return r && (l = this.removeTransform(l)), fu(l), {
4079
+ return r && (l = this.removeTransform(l)), pu(l), {
4067
4080
  animationId: this.root.animationId,
4068
4081
  measuredBox: a,
4069
4082
  layoutBox: l,
@@ -4080,12 +4093,12 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4080
4093
  }
4081
4094
  removeElementScroll(r) {
4082
4095
  const a = L();
4083
- Y(a, r);
4096
+ X(a, r);
4084
4097
  for (let l = 0; l < this.path.length; l++) {
4085
4098
  const c = this.path[l], { scroll: u, options: h } = c;
4086
4099
  if (c !== this.root && u && h.layoutScroll) {
4087
4100
  if (u.isRoot) {
4088
- Y(a, r);
4101
+ X(a, r);
4089
4102
  const { scroll: d } = this.root;
4090
4103
  d && (lt(a.x, -d.offset.x), lt(a.y, -d.offset.y));
4091
4104
  }
@@ -4096,7 +4109,7 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4096
4109
  }
4097
4110
  applyTransform(r, a = !1) {
4098
4111
  const l = L();
4099
- Y(l, r);
4112
+ X(l, r);
4100
4113
  for (let c = 0; c < this.path.length; c++) {
4101
4114
  const u = this.path[c];
4102
4115
  !a && u.options.layoutScroll && u.scroll && u !== u.root && Vt(l, {
@@ -4108,14 +4121,14 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4108
4121
  }
4109
4122
  removeTransform(r) {
4110
4123
  const a = L();
4111
- Y(a, r);
4124
+ X(a, r);
4112
4125
  for (let l = 0; l < this.path.length; l++) {
4113
4126
  const c = this.path[l];
4114
4127
  if (!c.instance || !gt(c.latestValues))
4115
4128
  continue;
4116
4129
  Qe(c.latestValues) && c.updateSnapshot();
4117
4130
  const u = L(), h = c.measurePageBox();
4118
- Y(u, h), wi(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4131
+ X(u, h), wi(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
4119
4132
  }
4120
4133
  return gt(this.latestValues) && wi(a, this.latestValues), a;
4121
4134
  }
@@ -4133,7 +4146,7 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4133
4146
  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;
4134
4147
  }
4135
4148
  forceRelativeParentToResolveTarget() {
4136
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== N.timestamp && this.relativeParent.resolveTargetDelta(!0);
4149
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== B.timestamp && this.relativeParent.resolveTargetDelta(!0);
4137
4150
  }
4138
4151
  resolveTargetDelta(r = !1) {
4139
4152
  var a;
@@ -4144,22 +4157,22 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4144
4157
  return;
4145
4158
  const { layout: h, layoutId: d } = this.options;
4146
4159
  if (!(!this.layout || !(h || d))) {
4147
- if (this.resolvedRelativeTargetAt = N.timestamp, !this.targetDelta && !this.relativeTarget) {
4160
+ if (this.resolvedRelativeTargetAt = B.timestamp, !this.targetDelta && !this.relativeTarget) {
4148
4161
  const f = this.getClosestProjectingParent();
4149
- f && f.layout && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = L(), this.relativeTargetOrigin = L(), Ut(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), Y(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4162
+ f && f.layout && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = L(), this.relativeTargetOrigin = L(), Ut(this.relativeTargetOrigin, this.layout.layoutBox, f.layout.layoutBox), X(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4150
4163
  }
4151
4164
  if (!(!this.relativeTarget && !this.targetDelta)) {
4152
- if (this.target || (this.target = L(), this.targetWithTransforms = L()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), pc(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : Y(this.target, this.layout.layoutBox), ar(this.target, this.targetDelta)) : Y(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4165
+ if (this.target || (this.target = L(), this.targetWithTransforms = L()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), mc(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : X(this.target, this.layout.layoutBox), or(this.target, this.targetDelta)) : X(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
4153
4166
  this.attemptToResolveRelativeTarget = !1;
4154
4167
  const f = this.getClosestProjectingParent();
4155
- f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = L(), this.relativeTargetOrigin = L(), Ut(this.relativeTargetOrigin, this.target, f.target), Y(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4168
+ f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? (this.relativeParent = f, this.forceRelativeParentToResolveTarget(), this.relativeTarget = L(), this.relativeTargetOrigin = L(), Ut(this.relativeTargetOrigin, this.target, f.target), X(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
4156
4169
  }
4157
4170
  vt.resolvedTargetDeltas++;
4158
4171
  }
4159
4172
  }
4160
4173
  }
4161
4174
  getClosestProjectingParent() {
4162
- if (!(!this.parent || Qe(this.parent.latestValues) || or(this.parent.latestValues)))
4175
+ if (!(!this.parent || Qe(this.parent.latestValues) || rr(this.parent.latestValues)))
4163
4176
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
4164
4177
  }
4165
4178
  isProjecting() {
@@ -4169,14 +4182,14 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4169
4182
  var r;
4170
4183
  const a = this.getLead(), l = !!this.resumingFrom || this !== a;
4171
4184
  let c = !0;
4172
- if ((this.isProjectionDirty || !((r = this.parent) === null || r === void 0) && r.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === N.timestamp && (c = !1), c)
4185
+ if ((this.isProjectionDirty || !((r = this.parent) === null || r === void 0) && r.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === B.timestamp && (c = !1), c)
4173
4186
  return;
4174
4187
  const { layout: u, layoutId: h } = this.options;
4175
4188
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || h))
4176
4189
  return;
4177
- Y(this.layoutCorrected, this.layout.layoutBox);
4190
+ X(this.layoutCorrected, this.layout.layoutBox);
4178
4191
  const d = this.treeScale.x, f = this.treeScale.y;
4179
- Tc(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox);
4192
+ Pc(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox);
4180
4193
  const { target: p } = a;
4181
4194
  if (!p) {
4182
4195
  this.projectionTransform && (this.projectionDelta = Ct(), this.projectionTransform = "none", this.scheduleRender());
@@ -4184,7 +4197,7 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4184
4197
  }
4185
4198
  this.projectionDelta || (this.projectionDelta = Ct(), this.projectionDeltaWithTransform = Ct());
4186
4199
  const m = this.projectionTransform;
4187
- _t(this.projectionDelta, this.layoutCorrected, p, this.latestValues), this.projectionTransform = Ai(this.projectionDelta, this.treeScale), (this.projectionTransform !== m || this.treeScale.x !== d || this.treeScale.y !== f) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p)), vt.recalculatedProjection++;
4200
+ _t(this.projectionDelta, this.layoutCorrected, p, this.latestValues), this.projectionTransform = Pi(this.projectionDelta, this.treeScale), (this.projectionTransform !== m || this.treeScale.x !== d || this.treeScale.y !== f) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p)), vt.recalculatedProjection++;
4188
4201
  }
4189
4202
  hide() {
4190
4203
  this.isVisible = !1;
@@ -4202,17 +4215,17 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4202
4215
  setAnimationOrigin(r, a = !1) {
4203
4216
  const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, h = Ct();
4204
4217
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
4205
- const d = L(), f = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = f !== p, v = this.getStack(), y = !v || v.members.length <= 1, b = !!(m && !y && this.options.crossfade === !0 && !this.path.some(hu));
4218
+ const d = L(), f = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, m = f !== p, v = this.getStack(), b = !v || v.members.length <= 1, y = !!(m && !b && this.options.crossfade === !0 && !this.path.some(du));
4206
4219
  this.animationProgress = 0;
4207
4220
  let g;
4208
4221
  this.mixTargetDelta = (x) => {
4209
- const S = x / 1e3;
4210
- Ei(h.x, r.x, S), Ei(h.y, r.y, S), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ut(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), uu(this.relativeTarget, this.relativeTargetOrigin, d, S), g && Uc(this.relativeTarget, g) && (this.isProjectionDirty = !1), g || (g = L()), Y(g, this.relativeTarget)), m && (this.animationValues = u, jc(u, c, this.latestValues, S, b, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = S;
4222
+ const P = x / 1e3;
4223
+ Ei(h.x, r.x, P), Ei(h.y, r.y, P), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ut(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), hu(this.relativeTarget, this.relativeTargetOrigin, d, P), g && Hc(this.relativeTarget, g) && (this.isProjectionDirty = !1), g || (g = L()), X(g, this.relativeTarget)), m && (this.animationValues = u, Ic(u, c, this.latestValues, P, y, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = P;
4211
4224
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
4212
4225
  }
4213
4226
  startAnimation(r) {
4214
4227
  this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (et(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = V.update(() => {
4215
- le.hasAnimatedSinceResize = !0, this.currentAnimation = $c(0, ki, {
4228
+ le.hasAnimatedSinceResize = !0, this.currentAnimation = Qc(0, ki, {
4216
4229
  ...r,
4217
4230
  onUpdate: (a) => {
4218
4231
  this.mixTargetDelta(a), r.onUpdate && r.onUpdate(a);
@@ -4235,18 +4248,18 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4235
4248
  const r = this.getLead();
4236
4249
  let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = r;
4237
4250
  if (!(!a || !l || !c)) {
4238
- if (this !== r && this.layout && c && gr(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
4251
+ if (this !== r && this.layout && c && mr(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
4239
4252
  l = this.target || L();
4240
- const h = H(this.layout.layoutBox.x);
4253
+ const h = G(this.layout.layoutBox.x);
4241
4254
  l.x.min = r.target.x.min, l.x.max = l.x.min + h;
4242
- const d = H(this.layout.layoutBox.y);
4255
+ const d = G(this.layout.layoutBox.y);
4243
4256
  l.y.min = r.target.y.min, l.y.max = l.y.min + d;
4244
4257
  }
4245
- Y(a, l), Vt(a, u), _t(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
4258
+ X(a, l), Vt(a, u), _t(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
4246
4259
  }
4247
4260
  }
4248
4261
  registerSharedNode(r, a) {
4249
- this.sharedNodes.has(r) || this.sharedNodes.set(r, new Hc()), this.sharedNodes.get(r).add(a);
4262
+ this.sharedNodes.has(r) || this.sharedNodes.set(r, new Gc()), this.sharedNodes.get(r).add(a);
4250
4263
  const c = a.options.initialPromotionConfig;
4251
4264
  a.promote({
4252
4265
  transition: c ? c.transition : void 0,
@@ -4289,8 +4302,8 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4289
4302
  if ((l.rotate || l.rotateX || l.rotateY || l.rotateZ) && (a = !0), !a)
4290
4303
  return;
4291
4304
  const c = {};
4292
- for (let u = 0; u < Pi.length; u++) {
4293
- const h = "rotate" + Pi[u];
4305
+ for (let u = 0; u < Ai.length; u++) {
4306
+ const h = "rotate" + Ai[u];
4294
4307
  l[h] && (c[h] = l[h], r.setStaticValue(h, 0));
4295
4308
  }
4296
4309
  r.render();
@@ -4303,7 +4316,7 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4303
4316
  if (!this.instance || this.isSVG)
4304
4317
  return;
4305
4318
  if (!this.isVisible)
4306
- return Qc;
4319
+ return Zc;
4307
4320
  const c = {
4308
4321
  visibility: ""
4309
4322
  }, u = this.getTransformTemplate();
@@ -4315,19 +4328,19 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4315
4328
  return this.options.layoutId && (m.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, m.pointerEvents = ae(r == null ? void 0 : r.pointerEvents) || ""), this.hasProjected && !gt(this.latestValues) && (m.transform = u ? u({}, "") : "none", this.hasProjected = !1), m;
4316
4329
  }
4317
4330
  const d = h.animationValues || h.latestValues;
4318
- this.applyTransformsToTarget(), c.transform = Ai(this.projectionDeltaWithTransform, this.treeScale, d), u && (c.transform = u(d, c.transform));
4331
+ this.applyTransformsToTarget(), c.transform = Pi(this.projectionDeltaWithTransform, this.treeScale, d), u && (c.transform = u(d, c.transform));
4319
4332
  const { x: f, y: p } = this.projectionDelta;
4320
4333
  c.transformOrigin = `${f.origin * 100}% ${p.origin * 100}% 0`, h.animationValues ? c.opacity = h === this ? (l = (a = d.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : d.opacityExit : c.opacity = h === this ? d.opacity !== void 0 ? d.opacity : "" : d.opacityExit !== void 0 ? d.opacityExit : 0;
4321
4334
  for (const m in he) {
4322
4335
  if (d[m] === void 0)
4323
4336
  continue;
4324
- const { correct: v, applyTo: y } = he[m], b = c.transform === "none" ? d[m] : v(d[m], h);
4325
- if (y) {
4326
- const g = y.length;
4337
+ const { correct: v, applyTo: b } = he[m], y = c.transform === "none" ? d[m] : v(d[m], h);
4338
+ if (b) {
4339
+ const g = b.length;
4327
4340
  for (let x = 0; x < g; x++)
4328
- c[y[x]] = b;
4341
+ c[b[x]] = y;
4329
4342
  } else
4330
- c[m] = b;
4343
+ c[m] = y;
4331
4344
  }
4332
4345
  return this.options.layoutId && (c.pointerEvents = h === this ? ae(r == null ? void 0 : r.pointerEvents) || "" : "none"), c;
4333
4346
  }
@@ -4343,26 +4356,26 @@ function mr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
4343
4356
  }
4344
4357
  };
4345
4358
  }
4346
- function Jc(t) {
4359
+ function tu(t) {
4347
4360
  t.updateLayout();
4348
4361
  }
4349
- function tu(t) {
4362
+ function eu(t) {
4350
4363
  var e;
4351
4364
  const n = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
4352
4365
  if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
4353
4366
  const { layoutBox: i, measuredBox: s } = t.layout, { animationType: o } = t.options, r = n.source !== t.layout.source;
4354
- o === "size" ? X((h) => {
4355
- const d = r ? n.measuredBox[h] : n.layoutBox[h], f = H(d);
4367
+ o === "size" ? q((h) => {
4368
+ const d = r ? n.measuredBox[h] : n.layoutBox[h], f = G(d);
4356
4369
  d.min = i[h].min, d.max = d.min + f;
4357
- }) : gr(o, n.layoutBox, i) && X((h) => {
4358
- const d = r ? n.measuredBox[h] : n.layoutBox[h], f = H(i[h]);
4370
+ }) : mr(o, n.layoutBox, i) && q((h) => {
4371
+ const d = r ? n.measuredBox[h] : n.layoutBox[h], f = G(i[h]);
4359
4372
  d.max = d.min + f, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[h].max = t.relativeTarget[h].min + f);
4360
4373
  });
4361
4374
  const a = Ct();
4362
4375
  _t(a, i, n.layoutBox);
4363
4376
  const l = Ct();
4364
4377
  r ? _t(l, t.applyTransform(s, !0), n.measuredBox) : _t(l, i, n.layoutBox);
4365
- const c = !fr(a);
4378
+ const c = !dr(a);
4366
4379
  let u = !1;
4367
4380
  if (!t.resumeFrom) {
4368
4381
  const h = t.getClosestProjectingParent();
@@ -4372,7 +4385,7 @@ function tu(t) {
4372
4385
  const p = L();
4373
4386
  Ut(p, n.layoutBox, d.layoutBox);
4374
4387
  const m = L();
4375
- Ut(m, i, f.layoutBox), pr(p, m) || (u = !0), h.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = p, t.relativeParent = h);
4388
+ Ut(m, i, f.layoutBox), fr(p, m) || (u = !0), h.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = p, t.relativeParent = h);
4376
4389
  }
4377
4390
  }
4378
4391
  }
@@ -4390,38 +4403,38 @@ function tu(t) {
4390
4403
  }
4391
4404
  t.options.transition = void 0;
4392
4405
  }
4393
- function eu(t) {
4406
+ function nu(t) {
4394
4407
  vt.totalNodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
4395
4408
  }
4396
- function nu(t) {
4409
+ function iu(t) {
4397
4410
  t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
4398
4411
  }
4399
- function iu(t) {
4412
+ function su(t) {
4400
4413
  t.clearSnapshot();
4401
4414
  }
4402
4415
  function Ci(t) {
4403
4416
  t.clearMeasurements();
4404
4417
  }
4405
- function su(t) {
4418
+ function ru(t) {
4406
4419
  t.isLayoutDirty = !1;
4407
4420
  }
4408
- function ru(t) {
4421
+ function ou(t) {
4409
4422
  const { visualElement: e } = t.options;
4410
4423
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
4411
4424
  }
4412
4425
  function Vi(t) {
4413
4426
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
4414
4427
  }
4415
- function ou(t) {
4428
+ function au(t) {
4416
4429
  t.resolveTargetDelta();
4417
4430
  }
4418
- function au(t) {
4431
+ function lu(t) {
4419
4432
  t.calcProjection();
4420
4433
  }
4421
- function lu(t) {
4434
+ function cu(t) {
4422
4435
  t.resetRotation();
4423
4436
  }
4424
- function cu(t) {
4437
+ function uu(t) {
4425
4438
  t.removeLeadSnapshot();
4426
4439
  }
4427
4440
  function Ei(t, e, n) {
@@ -4430,26 +4443,26 @@ function Ei(t, e, n) {
4430
4443
  function Mi(t, e, n, i) {
4431
4444
  t.min = M(e.min, n.min, i), t.max = M(e.max, n.max, i);
4432
4445
  }
4433
- function uu(t, e, n, i) {
4446
+ function hu(t, e, n, i) {
4434
4447
  Mi(t.x, e.x, n.x, i), Mi(t.y, e.y, n.y, i);
4435
4448
  }
4436
- function hu(t) {
4449
+ function du(t) {
4437
4450
  return t.animationValues && t.animationValues.opacityExit !== void 0;
4438
4451
  }
4439
- const du = {
4452
+ const fu = {
4440
4453
  duration: 0.45,
4441
4454
  ease: [0.4, 0, 0.1, 1]
4442
4455
  }, Oi = (t) => typeof navigator < "u" && navigator.userAgent.toLowerCase().includes(t), Di = Oi("applewebkit/") && !Oi("chrome/") ? Math.round : O;
4443
4456
  function Li(t) {
4444
4457
  t.min = Di(t.min), t.max = Di(t.max);
4445
4458
  }
4446
- function fu(t) {
4459
+ function pu(t) {
4447
4460
  Li(t.x), Li(t.y);
4448
4461
  }
4449
- function gr(t, e, n) {
4462
+ function mr(t, e, n) {
4450
4463
  return t === "position" || t === "preserve-aspect" && !Ke(Ti(e), Ti(n), 0.2);
4451
4464
  }
4452
- const pu = mr({
4465
+ const mu = pr({
4453
4466
  attachResizeListener: (t, e) => Z(t, "resize", e),
4454
4467
  measureScroll: () => ({
4455
4468
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
@@ -4458,14 +4471,14 @@ const pu = mr({
4458
4471
  checkIsScrollRoot: () => !0
4459
4472
  }), We = {
4460
4473
  current: void 0
4461
- }, vr = mr({
4474
+ }, gr = pr({
4462
4475
  measureScroll: (t) => ({
4463
4476
  x: t.scrollLeft,
4464
4477
  y: t.scrollTop
4465
4478
  }),
4466
4479
  defaultParent: () => {
4467
4480
  if (!We.current) {
4468
- const t = new pu({});
4481
+ const t = new mu({});
4469
4482
  t.mount(window), t.setOptions({ layoutScroll: !0 }), We.current = t;
4470
4483
  }
4471
4484
  return We.current;
@@ -4474,37 +4487,37 @@ const pu = mr({
4474
4487
  t.style.transform = e !== void 0 ? e : "none";
4475
4488
  },
4476
4489
  checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
4477
- }), mu = {
4490
+ }), gu = {
4478
4491
  pan: {
4479
- Feature: Oc
4492
+ Feature: Dc
4480
4493
  },
4481
4494
  drag: {
4482
- Feature: Mc,
4483
- ProjectionNode: vr,
4484
- MeasureLayout: ur
4495
+ Feature: Oc,
4496
+ ProjectionNode: gr,
4497
+ MeasureLayout: cr
4485
4498
  }
4486
- }, gu = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
4487
- function vu(t) {
4488
- const e = gu.exec(t);
4499
+ }, vu = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;
4500
+ function yu(t) {
4501
+ const e = vu.exec(t);
4489
4502
  if (!e)
4490
4503
  return [,];
4491
4504
  const [, n, i] = e;
4492
4505
  return [n, i];
4493
4506
  }
4494
- const yu = 4;
4507
+ const bu = 4;
4495
4508
  function Je(t, e, n = 1) {
4496
- $(n <= yu, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
4497
- const [i, s] = vu(t);
4509
+ $(n <= bu, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
4510
+ const [i, s] = yu(t);
4498
4511
  if (!i)
4499
4512
  return;
4500
4513
  const o = window.getComputedStyle(e).getPropertyValue(i);
4501
4514
  if (o) {
4502
4515
  const r = o.trim();
4503
- return Js(r) ? parseFloat(r) : r;
4516
+ return Zs(r) ? parseFloat(r) : r;
4504
4517
  } else
4505
4518
  return _e(s) ? Je(s, e, n + 1) : s;
4506
4519
  }
4507
- function bu(t, { ...e }, n) {
4520
+ function xu(t, { ...e }, n) {
4508
4521
  const i = t.current;
4509
4522
  if (!(i instanceof Element))
4510
4523
  return { target: e, transitionEnd: n };
@@ -4524,7 +4537,7 @@ function bu(t, { ...e }, n) {
4524
4537
  }
4525
4538
  return { target: e, transitionEnd: n };
4526
4539
  }
4527
- const xu = /* @__PURE__ */ new Set([
4540
+ const wu = /* @__PURE__ */ new Set([
4528
4541
  "width",
4529
4542
  "height",
4530
4543
  "top",
@@ -4535,7 +4548,7 @@ const xu = /* @__PURE__ */ new Set([
4535
4548
  "y",
4536
4549
  "translateX",
4537
4550
  "translateY"
4538
- ]), yr = (t) => xu.has(t), wu = (t) => Object.keys(t).some(yr), re = (t) => t === xt || t === P, Ri = (t, e) => parseFloat(t.split(", ")[e]), Bi = (t, e) => (n, { transform: i }) => {
4551
+ ]), vr = (t) => wu.has(t), Su = (t) => Object.keys(t).some(vr), re = (t) => t === xt || t === A, Ri = (t, e) => parseFloat(t.split(", ")[e]), ji = (t, e) => (n, { transform: i }) => {
4539
4552
  if (i === "none" || !i)
4540
4553
  return 0;
4541
4554
  const s = i.match(/^matrix3d\((.+)\)$/);
@@ -4545,10 +4558,10 @@ const xu = /* @__PURE__ */ new Set([
4545
4558
  const o = i.match(/^matrix\((.+)\)$/);
4546
4559
  return o ? Ri(o[1], t) : 0;
4547
4560
  }
4548
- }, Su = /* @__PURE__ */ new Set(["x", "y", "z"]), Tu = qt.filter((t) => !Su.has(t));
4561
+ }, Tu = /* @__PURE__ */ new Set(["x", "y", "z"]), Pu = qt.filter((t) => !Tu.has(t));
4549
4562
  function Au(t) {
4550
4563
  const e = [];
4551
- return Tu.forEach((n) => {
4564
+ return Pu.forEach((n) => {
4552
4565
  const i = t.getValue(n);
4553
4566
  i !== void 0 && (e.push([n, i.get()]), i.set(n.startsWith("scale") ? 1 : 0));
4554
4567
  }), e.length && t.render(), e;
@@ -4562,12 +4575,12 @@ const Ot = {
4562
4575
  bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
4563
4576
  right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
4564
4577
  // Transform
4565
- x: Bi(4, 13),
4566
- y: Bi(5, 14)
4578
+ x: ji(4, 13),
4579
+ y: ji(5, 14)
4567
4580
  };
4568
4581
  Ot.translateX = Ot.x;
4569
4582
  Ot.translateY = Ot.y;
4570
- const Pu = (t, e, n) => {
4583
+ const ku = (t, e, n) => {
4571
4584
  const i = e.measureViewportBox(), s = e.current, o = getComputedStyle(s), { display: r } = o, a = {};
4572
4585
  r === "none" && e.setStaticValue("display", t.display || "block"), n.forEach((c) => {
4573
4586
  a[c] = Ot[c](i, o);
@@ -4577,61 +4590,61 @@ const Pu = (t, e, n) => {
4577
4590
  const u = e.getValue(c);
4578
4591
  u && u.jump(a[c]), t[c] = Ot[c](l, o);
4579
4592
  }), t;
4580
- }, ku = (t, e, n = {}, i = {}) => {
4593
+ }, Cu = (t, e, n = {}, i = {}) => {
4581
4594
  e = { ...e }, i = { ...i };
4582
- const s = Object.keys(e).filter(yr);
4595
+ const s = Object.keys(e).filter(vr);
4583
4596
  let o = [], r = !1;
4584
4597
  const a = [];
4585
4598
  if (s.forEach((l) => {
4586
4599
  const c = t.getValue(l);
4587
4600
  if (!t.hasValue(l))
4588
4601
  return;
4589
- let u = n[l], h = jt(u);
4602
+ let u = n[l], h = Nt(u);
4590
4603
  const d = e[l];
4591
4604
  let f;
4592
4605
  if (fe(d)) {
4593
4606
  const p = d.length, m = d[0] === null ? 1 : 0;
4594
- u = d[m], h = jt(u);
4607
+ u = d[m], h = Nt(u);
4595
4608
  for (let v = m; v < p && d[v] !== null; v++)
4596
- f ? $(jt(d[v]) === f, "All keyframes must be of the same type") : (f = jt(d[v]), $(f === h || re(h) && re(f), "Keyframes must be of the same dimension as the current value"));
4609
+ f ? $(Nt(d[v]) === f, "All keyframes must be of the same type") : (f = Nt(d[v]), $(f === h || re(h) && re(f), "Keyframes must be of the same dimension as the current value"));
4597
4610
  } else
4598
- f = jt(d);
4611
+ f = Nt(d);
4599
4612
  if (h !== f)
4600
4613
  if (re(h) && re(f)) {
4601
4614
  const p = c.get();
4602
- typeof p == "string" && c.set(parseFloat(p)), typeof d == "string" ? e[l] = parseFloat(d) : Array.isArray(d) && f === P && (e[l] = d.map(parseFloat));
4615
+ typeof p == "string" && c.set(parseFloat(p)), typeof d == "string" ? e[l] = parseFloat(d) : Array.isArray(d) && f === A && (e[l] = d.map(parseFloat));
4603
4616
  } else
4604
4617
  h != null && h.transform && (f != null && f.transform) && (u === 0 || d === 0) ? u === 0 ? c.set(f.transform(u)) : e[l] = h.transform(d) : (r || (o = Au(t), r = !0), a.push(l), i[l] = i[l] !== void 0 ? i[l] : e[l], c.jump(d));
4605
4618
  }), a.length) {
4606
- const l = a.indexOf("height") >= 0 ? window.pageYOffset : null, c = Pu(e, t, a);
4619
+ const l = a.indexOf("height") >= 0 ? window.pageYOffset : null, c = ku(e, t, a);
4607
4620
  return o.length && o.forEach(([u, h]) => {
4608
4621
  t.getValue(u).set(h);
4609
4622
  }), t.render(), we && l !== null && window.scrollTo({ top: l }), { target: c, transitionEnd: i };
4610
4623
  } else
4611
4624
  return { target: e, transitionEnd: i };
4612
4625
  };
4613
- function Cu(t, e, n, i) {
4614
- return wu(e) ? ku(t, e, n, i) : { target: e, transitionEnd: i };
4615
- }
4616
- const Vu = (t, e, n, i) => {
4617
- const s = bu(t, e, i);
4618
- return e = s.target, i = s.transitionEnd, Cu(t, e, n, i);
4619
- }, tn = { current: null }, br = { current: !1 };
4620
- function Eu() {
4621
- if (br.current = !0, !!we)
4626
+ function Vu(t, e, n, i) {
4627
+ return Su(e) ? Cu(t, e, n, i) : { target: e, transitionEnd: i };
4628
+ }
4629
+ const Eu = (t, e, n, i) => {
4630
+ const s = xu(t, e, i);
4631
+ return e = s.target, i = s.transitionEnd, Vu(t, e, n, i);
4632
+ }, tn = { current: null }, yr = { current: !1 };
4633
+ function Mu() {
4634
+ if (yr.current = !0, !!we)
4622
4635
  if (window.matchMedia) {
4623
4636
  const t = window.matchMedia("(prefers-reduced-motion)"), e = () => tn.current = t.matches;
4624
4637
  t.addListener(e), e();
4625
4638
  } else
4626
4639
  tn.current = !1;
4627
4640
  }
4628
- function Mu(t, e, n) {
4641
+ function Ou(t, e, n) {
4629
4642
  const { willChange: i } = e;
4630
4643
  for (const s in e) {
4631
4644
  const o = e[s], r = n[s];
4632
- if (_(o))
4645
+ if (U(o))
4633
4646
  t.addValue(s, o), ve(i) && i.add(s), process.env.NODE_ENV === "development" && Sn(o.version === "10.18.0", `Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);
4634
- else if (_(r))
4647
+ else if (U(r))
4635
4648
  t.addValue(s, Mt(o, { owner: t })), ve(i) && i.remove(s);
4636
4649
  else if (r !== o)
4637
4650
  if (t.hasValue(s)) {
@@ -4646,7 +4659,7 @@ function Mu(t, e, n) {
4646
4659
  e[s] === void 0 && t.removeValue(s);
4647
4660
  return e;
4648
4661
  }
4649
- const Ni = /* @__PURE__ */ new WeakMap(), xr = Object.keys(Gt), Ou = xr.length, ji = [
4662
+ const Bi = /* @__PURE__ */ new WeakMap(), br = Object.keys(Gt), Du = br.length, Ni = [
4650
4663
  "AnimationStart",
4651
4664
  "AnimationComplete",
4652
4665
  "Update",
@@ -4654,18 +4667,18 @@ const Ni = /* @__PURE__ */ new WeakMap(), xr = Object.keys(Gt), Ou = xr.length,
4654
4667
  "LayoutMeasure",
4655
4668
  "LayoutAnimationStart",
4656
4669
  "LayoutAnimationComplete"
4657
- ], Du = rn.length;
4658
- class Lu {
4670
+ ], Lu = rn.length;
4671
+ class Ru {
4659
4672
  constructor({ parent: e, props: n, presenceContext: i, reducedMotionConfig: s, visualState: o }, r = {}) {
4660
4673
  this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
4661
4674
  this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
4662
4675
  }, this.scheduleRender = () => V.render(this.render, !1, !0);
4663
4676
  const { latestValues: a, renderState: l } = o;
4664
- this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = n.initial ? { ...a } : {}, this.renderState = l, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.options = r, this.isControllingVariants = Te(n), this.isVariantNode = ss(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
4677
+ this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = n.initial ? { ...a } : {}, this.renderState = l, this.parent = e, this.props = n, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = s, this.options = r, this.isControllingVariants = Te(n), this.isVariantNode = is(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
4665
4678
  const { willChange: c, ...u } = this.scrapeMotionValuesFromProps(n, {});
4666
4679
  for (const h in u) {
4667
4680
  const d = u[h];
4668
- a[h] !== void 0 && _(d) && (d.set(a[h], !1), ve(c) && c.add(h));
4681
+ a[h] !== void 0 && U(d) && (d.set(a[h], !1), ve(c) && c.add(h));
4669
4682
  }
4670
4683
  }
4671
4684
  /**
@@ -4679,10 +4692,10 @@ class Lu {
4679
4692
  return {};
4680
4693
  }
4681
4694
  mount(e) {
4682
- this.current = e, Ni.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), br.current || Eu(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : tn.current, process.env.NODE_ENV !== "production" && Sn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
4695
+ this.current = e, Bi.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), yr.current || Mu(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : tn.current, process.env.NODE_ENV !== "production" && Sn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
4683
4696
  }
4684
4697
  unmount() {
4685
- Ni.delete(this.current), this.projection && this.projection.unmount(), et(this.notifyUpdate), et(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
4698
+ Bi.delete(this.current), this.projection && this.projection.unmount(), et(this.notifyUpdate), et(this.render), this.valueSubscriptions.forEach((e) => e()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
4686
4699
  for (const e in this.events)
4687
4700
  this.events[e].clear();
4688
4701
  for (const e in this.features)
@@ -4706,8 +4719,8 @@ class Lu {
4706
4719
  const l = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
4707
4720
  n.ignoreStrict ? Qt(!1, l) : $(!1, l);
4708
4721
  }
4709
- for (let l = 0; l < Ou; l++) {
4710
- const c = xr[l], { isEnabled: u, Feature: h, ProjectionNode: d, MeasureLayout: f } = Gt[c];
4722
+ for (let l = 0; l < Du; l++) {
4723
+ const c = br[l], { isEnabled: u, Feature: h, ProjectionNode: d, MeasureLayout: f } = Gt[c];
4711
4724
  d && (r = d), u(n) && (!this.features[c] && h && (this.features[c] = new h(this)), f && (a = f));
4712
4725
  }
4713
4726
  if ((this.type === "html" || this.type === "svg") && !this.projection && r) {
@@ -4716,7 +4729,7 @@ class Lu {
4716
4729
  this.projection.setOptions({
4717
4730
  layoutId: l,
4718
4731
  layout: c,
4719
- alwaysMeasureLayout: !!u || h && Pt(h),
4732
+ alwaysMeasureLayout: !!u || h && At(h),
4720
4733
  visualElement: this,
4721
4734
  scheduleRender: () => this.scheduleRender(),
4722
4735
  /**
@@ -4773,13 +4786,13 @@ class Lu {
4773
4786
  */
4774
4787
  update(e, n) {
4775
4788
  (e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
4776
- for (let i = 0; i < ji.length; i++) {
4777
- const s = ji[i];
4789
+ for (let i = 0; i < Ni.length; i++) {
4790
+ const s = Ni[i];
4778
4791
  this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
4779
4792
  const o = e["on" + s];
4780
4793
  o && (this.propEventSubscriptions[s] = this.on(s, o));
4781
4794
  }
4782
- this.prevMotionValues = Mu(this, this.scrapeMotionValuesFromProps(e, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
4795
+ this.prevMotionValues = Ou(this, this.scrapeMotionValuesFromProps(e, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
4783
4796
  }
4784
4797
  getProps() {
4785
4798
  return this.props;
@@ -4810,7 +4823,7 @@ class Lu {
4810
4823
  return this.props.initial !== void 0 && (i.initial = this.props.initial), i;
4811
4824
  }
4812
4825
  const n = {};
4813
- for (let i = 0; i < Du; i++) {
4826
+ for (let i = 0; i < Lu; i++) {
4814
4827
  const s = rn[i], o = this.props[s];
4815
4828
  (Ht(o) || o === !1) && (n[s] = o);
4816
4829
  }
@@ -4876,7 +4889,7 @@ class Lu {
4876
4889
  if (i && s !== void 0)
4877
4890
  return s;
4878
4891
  const o = this.getBaseTargetFromProps(this.props, e);
4879
- return o !== void 0 && !_(o) ? o : this.initialValues[e] !== void 0 && s === void 0 ? void 0 : this.baseTarget[e];
4892
+ return o !== void 0 && !U(o) ? o : this.initialValues[e] !== void 0 && s === void 0 ? void 0 : this.baseTarget[e];
4880
4893
  }
4881
4894
  on(e, n) {
4882
4895
  return this.events[e] || (this.events[e] = new wn()), this.events[e].add(n);
@@ -4885,7 +4898,7 @@ class Lu {
4885
4898
  this.events[e] && this.events[e].notify(...n);
4886
4899
  }
4887
4900
  }
4888
- class wr extends Lu {
4901
+ class xr extends Ru {
4889
4902
  sortInstanceNodePosition(e, n) {
4890
4903
  return e.compareDocumentPosition(n) & 2 ? 1 : -1;
4891
4904
  }
@@ -4896,10 +4909,10 @@ class wr extends Lu {
4896
4909
  delete n[e], delete i[e];
4897
4910
  }
4898
4911
  makeTargetAnimatableFromInstance({ transition: e, transitionEnd: n, ...i }, { transformValues: s }, o) {
4899
- let r = Kl(i, e || {}, this);
4912
+ let r = $l(i, e || {}, this);
4900
4913
  if (s && (n && (n = s(n)), i && (i = s(i)), r && (r = s(r))), o) {
4901
- Xl(this, i, r);
4902
- const a = Vu(this, i, r, n);
4914
+ ql(this, i, r);
4915
+ const a = Eu(this, i, r, n);
4903
4916
  n = a.transitionEnd, i = a.target;
4904
4917
  }
4905
4918
  return {
@@ -4909,10 +4922,10 @@ class wr extends Lu {
4909
4922
  };
4910
4923
  }
4911
4924
  }
4912
- function Ru(t) {
4925
+ function ju(t) {
4913
4926
  return window.getComputedStyle(t);
4914
4927
  }
4915
- class Bu extends wr {
4928
+ class Bu extends xr {
4916
4929
  constructor() {
4917
4930
  super(...arguments), this.type = "html";
4918
4931
  }
@@ -4921,12 +4934,12 @@ class Bu extends wr {
4921
4934
  const i = gn(n);
4922
4935
  return i && i.default || 0;
4923
4936
  } else {
4924
- const i = Ru(e), s = (cs(n) ? i.getPropertyValue(n) : i[n]) || 0;
4937
+ const i = ju(e), s = (ls(n) ? i.getPropertyValue(n) : i[n]) || 0;
4925
4938
  return typeof s == "string" ? s.trim() : s;
4926
4939
  }
4927
4940
  }
4928
4941
  measureInstanceViewportBox(e, { transformPagePoint: n }) {
4929
- return lr(e, n);
4942
+ return ar(e, n);
4930
4943
  }
4931
4944
  build(e, n, i, s) {
4932
4945
  an(e, n, i, s.transformTemplate);
@@ -4937,15 +4950,15 @@ class Bu extends wr {
4937
4950
  handleChildMotionValue() {
4938
4951
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
4939
4952
  const { children: e } = this.props;
4940
- _(e) && (this.childSubscription = e.on("change", (n) => {
4953
+ U(e) && (this.childSubscription = e.on("change", (n) => {
4941
4954
  this.current && (this.current.textContent = `${n}`);
4942
4955
  }));
4943
4956
  }
4944
4957
  renderInstance(e, n, i, s) {
4945
- ms(e, n, i, s);
4958
+ ps(e, n, i, s);
4946
4959
  }
4947
4960
  }
4948
- class Nu extends wr {
4961
+ class Nu extends xr {
4949
4962
  constructor() {
4950
4963
  super(...arguments), this.type = "svg", this.isSVGTag = !1;
4951
4964
  }
@@ -4957,36 +4970,36 @@ class Nu extends wr {
4957
4970
  const i = gn(n);
4958
4971
  return i && i.default || 0;
4959
4972
  }
4960
- return n = gs.has(n) ? n : nn(n), e.getAttribute(n);
4973
+ return n = ms.has(n) ? n : nn(n), e.getAttribute(n);
4961
4974
  }
4962
4975
  measureInstanceViewportBox() {
4963
4976
  return L();
4964
4977
  }
4965
4978
  scrapeMotionValuesFromProps(e, n) {
4966
- return ys(e, n);
4979
+ return vs(e, n);
4967
4980
  }
4968
4981
  build(e, n, i, s) {
4969
4982
  cn(e, n, i, this.isSVGTag, s.transformTemplate);
4970
4983
  }
4971
4984
  renderInstance(e, n, i, s) {
4972
- vs(e, n, i, s);
4985
+ gs(e, n, i, s);
4973
4986
  }
4974
4987
  mount(e) {
4975
4988
  this.isSVGTag = un(e.tagName), super.mount(e);
4976
4989
  }
4977
4990
  }
4978
- const ju = (t, e) => on(t) ? new Nu(e, { enableHardwareAcceleration: !1 }) : new Bu(e, { enableHardwareAcceleration: !0 }), Iu = {
4991
+ const Iu = (t, e) => on(t) ? new Nu(e, { enableHardwareAcceleration: !1 }) : new Bu(e, { enableHardwareAcceleration: !0 }), Fu = {
4979
4992
  layout: {
4980
- ProjectionNode: vr,
4981
- MeasureLayout: ur
4982
- }
4983
- }, Fu = {
4984
- ...uc,
4985
- ...Da,
4986
- ...mu,
4987
- ...Iu
4988
- }, Sr = /* @__PURE__ */ zo((t, e) => ba(t, e, Fu, ju));
4989
- function zu(t) {
4993
+ ProjectionNode: gr,
4994
+ MeasureLayout: cr
4995
+ }
4996
+ }, zu = {
4997
+ ...hc,
4998
+ ...La,
4999
+ ...gu,
5000
+ ...Fu
5001
+ }, wr = /* @__PURE__ */ Wo((t, e) => xa(t, e, zu, Iu));
5002
+ function Wu(t) {
4990
5003
  return /* @__PURE__ */ w(
4991
5004
  "svg",
4992
5005
  {
@@ -5006,9 +5019,9 @@ function zu(t) {
5006
5019
  }
5007
5020
  );
5008
5021
  }
5009
- function Wu(t) {
5022
+ function _u(t) {
5010
5023
  const { children: e, parentRef: n, onlyChild: i } = t, [s, o] = K({ top: 0, left: 0 });
5011
- return Wi(() => {
5024
+ return zi(() => {
5012
5025
  if (n.current) {
5013
5026
  const r = n.current.getBoundingClientRect();
5014
5027
  o({
@@ -5016,9 +5029,9 @@ function Wu(t) {
5016
5029
  left: r.left + r.width
5017
5030
  });
5018
5031
  }
5019
- }, [n]), i ? e : Ir(
5032
+ }, [n]), i ? e : Fr(
5020
5033
  /* @__PURE__ */ w(
5021
- Sr.div,
5034
+ wr.div,
5022
5035
  {
5023
5036
  style: {
5024
5037
  position: "fixed",
@@ -5032,19 +5045,19 @@ function Wu(t) {
5032
5045
  n.current
5033
5046
  );
5034
5047
  }
5035
- function Tr({ item: t, level: e = 0, ...n }) {
5048
+ function Sr({ item: t, level: e = 0, ...n }) {
5036
5049
  var k;
5037
- const { isActive: i, isCollapsed: s, expanded: o, toggleExpand: r } = n, a = `level-${e}`, l = s ? "collapsed" : "expanded", c = i(t.id) ? "active" : "", u = (A, C = a) => `${A} ${C} ${l} ${c}`, h = !!((k = t.children) != null && k.length), [d, f] = K(!1), p = Et();
5038
- function m(A) {
5039
- var F;
5040
- const { level: C, hovered: q, parentRef: nt } = A;
5041
- return !h || s && C >= 2 && !q ? null : /* @__PURE__ */ w(
5042
- Wu,
5050
+ const { isActive: i, isCollapsed: s, expanded: o, toggleExpand: r } = n, a = `level-${e}`, l = s ? "collapsed" : "expanded", c = i(t.id) ? "active" : "", u = (S, C = a) => `${S} ${C} ${l} ${c}`, h = !!((k = t.children) != null && k.length), [d, f] = K(!1), p = Et();
5051
+ function m(S) {
5052
+ var z;
5053
+ const { level: C, hovered: F, parentRef: nt } = S;
5054
+ return !h || s && C >= 2 && !F ? null : /* @__PURE__ */ w(
5055
+ _u,
5043
5056
  {
5044
5057
  parentRef: nt,
5045
5058
  onlyChild: !s || s && C < 2,
5046
5059
  children: /* @__PURE__ */ w(
5047
- Sr.div,
5060
+ wr.div,
5048
5061
  {
5049
5062
  className: u("menu-item__dropdown", `level-${C}`),
5050
5063
  initial: { height: s ? "auto" : 0 },
@@ -5052,15 +5065,15 @@ function Tr({ item: t, level: e = 0, ...n }) {
5052
5065
  height: s || o(t.id) ? "auto" : 0
5053
5066
  },
5054
5067
  transition: { duration: 0.2 },
5055
- children: (F = t.children) == null ? void 0 : F.map((G) => /* @__PURE__ */ _i(Tr, { ...n, key: G.id, item: G, level: C }))
5068
+ children: (z = t.children) == null ? void 0 : z.map((Y) => /* @__PURE__ */ Wi(Sr, { ...n, key: Y.id, item: Y, level: C }))
5056
5069
  },
5057
5070
  +s
5058
5071
  )
5059
5072
  }
5060
5073
  );
5061
5074
  }
5062
- const v = window.location.origin, y = t.path && t.path.includes("http") ? new URL(t.path) : { origin: "", pathname: "" }, b = window.location.pathname.split("/")[1], g = y.pathname.split("/")[1], x = n.ssr || !v.includes("local") && v !== y.origin || g !== b, S = h ? "div" : x ? "a" : Nr, T = t.path && n.replacePath ? n.replacePath(t.path) : t.path || "#";
5063
- return /* @__PURE__ */ B(
5075
+ const v = window.location.origin, b = t.path && t.path.includes("http") ? new URL(t.path) : { origin: "", pathname: "" }, y = window.location.pathname.split("/")[1], g = b.pathname.split("/")[1], x = n.ssr || !v.includes("local") && v !== b.origin || g !== y, P = h ? "div" : x ? "a" : Nr, T = t.path || "#";
5076
+ return /* @__PURE__ */ R(
5064
5077
  "div",
5065
5078
  {
5066
5079
  ref: p,
@@ -5068,8 +5081,8 @@ function Tr({ item: t, level: e = 0, ...n }) {
5068
5081
  onMouseEnter: () => s && f(!0),
5069
5082
  onMouseLeave: () => s && f(!1),
5070
5083
  children: [
5071
- /* @__PURE__ */ B(
5072
- S,
5084
+ /* @__PURE__ */ R(
5085
+ P,
5073
5086
  {
5074
5087
  to: T,
5075
5088
  href: T,
@@ -5077,14 +5090,14 @@ function Tr({ item: t, level: e = 0, ...n }) {
5077
5090
  paddingLeft: `${s ? "0.5rem" : `${e * 1}rem`}`
5078
5091
  },
5079
5092
  className: u("menu-item__link"),
5080
- onClick: (A) => {
5081
- h && (A.preventDefault(), s || r(t.id));
5093
+ onClick: (S) => {
5094
+ h && (S.preventDefault(), s || r(t.id));
5082
5095
  },
5083
5096
  children: [
5084
- e !== 0 && /* @__PURE__ */ w(_u, { cls: u, item: t }),
5097
+ e !== 0 && /* @__PURE__ */ w(Uu, { cls: u, item: t }),
5085
5098
  /* @__PURE__ */ w("span", { className: u("menu-item__label"), children: t.name }),
5086
5099
  h && /* @__PURE__ */ w("div", { className: u("menu-item__icon-arrow__wrapper"), children: /* @__PURE__ */ w(
5087
- zu,
5100
+ Wu,
5088
5101
  {
5089
5102
  className: u(
5090
5103
  `menu-item__icon-arrow__icon ${o(t.id) ? "open" : "close"}`
@@ -5100,7 +5113,7 @@ function Tr({ item: t, level: e = 0, ...n }) {
5100
5113
  t.id
5101
5114
  );
5102
5115
  }
5103
- function _u({ item: t, cls: e }) {
5116
+ function Uu({ item: t, cls: e }) {
5104
5117
  var r, a;
5105
5118
  const [n, i] = K(!1), s = () => {
5106
5119
  i(!0);
@@ -5120,7 +5133,7 @@ function _u({ item: t, cls: e }) {
5120
5133
  children: (a = t.name.trim().at(0)) == null ? void 0 : a.toUpperCase()
5121
5134
  }
5122
5135
  ) : o ? /* @__PURE__ */ w(
5123
- Dr,
5136
+ Lr,
5124
5137
  {
5125
5138
  src: t.icon,
5126
5139
  beforeInjection: (l) => {
@@ -5139,48 +5152,7 @@ function _u({ item: t, cls: e }) {
5139
5152
  }
5140
5153
  ) });
5141
5154
  }
5142
- function Ii(t) {
5143
- for (; t.startsWith("/"); )
5144
- t = t.slice(1);
5145
- return t;
5146
- }
5147
- function Ar(t, e, n = []) {
5148
- for (const i of t) {
5149
- if (console.log(i.path, e, i.path === e), Ii(i.path || "") === Ii(e))
5150
- return [...n, i];
5151
- if (i.children) {
5152
- const s = Ar(i.children, e, [...n, i]);
5153
- if (s)
5154
- return s;
5155
- }
5156
- }
5157
- return null;
5158
- }
5159
- function Uu(t) {
5160
- return /* @__PURE__ */ w(
5161
- "svg",
5162
- {
5163
- xmlns: "http://www.w3.org/2000/svg",
5164
- width: "18",
5165
- height: "20",
5166
- fill: "none",
5167
- viewBox: "0 0 18 20",
5168
- ...t,
5169
- children: /* @__PURE__ */ w(
5170
- "path",
5171
- {
5172
- fill: "#E01B00",
5173
- fillRule: "evenodd",
5174
- d: "M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",
5175
- clipRule: "evenodd"
5176
- }
5177
- )
5178
- }
5179
- );
5180
- }
5181
- const Hu = `[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
5182
- `;
5183
- function Gu() {
5155
+ function Hu() {
5184
5156
  return /* @__PURE__ */ w(
5185
5157
  "svg",
5186
5158
  {
@@ -5195,7 +5167,7 @@ function Gu() {
5195
5167
  }
5196
5168
  );
5197
5169
  }
5198
- function Yu() {
5170
+ function Gu() {
5199
5171
  return /* @__PURE__ */ w(
5200
5172
  "svg",
5201
5173
  {
@@ -5210,61 +5182,174 @@ function Yu() {
5210
5182
  }
5211
5183
  );
5212
5184
  }
5185
+ function Yu(t) {
5186
+ return /* @__PURE__ */ w(
5187
+ "svg",
5188
+ {
5189
+ xmlns: "http://www.w3.org/2000/svg",
5190
+ width: "18",
5191
+ height: "20",
5192
+ fill: "none",
5193
+ viewBox: "0 0 18 20",
5194
+ ...t,
5195
+ children: /* @__PURE__ */ w(
5196
+ "path",
5197
+ {
5198
+ fill: "#E01B00",
5199
+ fillRule: "evenodd",
5200
+ d: "M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",
5201
+ clipRule: "evenodd"
5202
+ }
5203
+ )
5204
+ }
5205
+ );
5206
+ }
5213
5207
  const Xu = `.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:0 8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
5214
- `, sh = (t) => /* @__PURE__ */ w(
5215
- Lr,
5216
- {
5217
- autoClose: 3e3,
5218
- hideProgressBar: !0,
5219
- closeButton: !1,
5220
- position: "bottom-left",
5221
- newestOnTop: !0,
5222
- pauseOnFocusLoss: !1,
5223
- style: { fontFamily: "inherit" },
5224
- ...t
5208
+ `, qu = "@ukpc-lib/react", Ku = "0.1.11", $u = "module", Qu = "./dist/", Zu = "./dist/", Ju = {
5209
+ "./components": {
5210
+ import: "./dist/components/index.js",
5211
+ require: "./dist/components/index.cjs",
5212
+ types: "./dist/components/index.d.ts"
5213
+ },
5214
+ "./share": {
5215
+ import: "./dist/share/index.js",
5216
+ require: "./dist/share/index.cjs",
5217
+ types: "./dist/share/index.d.ts"
5218
+ }
5219
+ }, th = {
5220
+ "*": {
5221
+ "*": [
5222
+ "./dist/*/index.d.ts"
5223
+ ]
5225
5224
  }
5226
- );
5227
- function rh(t) {
5228
- return /* @__PURE__ */ w(Hi, { styles: [Hu, Xu], style: { zIndex: 1200 }, children: /* @__PURE__ */ w(qu, { ...t }) });
5225
+ }, eh = [
5226
+ "dist",
5227
+ "web-components-bundle"
5228
+ ], nh = {
5229
+ dev: "vite",
5230
+ build: "npm run build-react && npm run build-wc",
5231
+ "build-react": "tsc && vite build --config vite.config.react.ts",
5232
+ "build-wc": "tsc && vite build --config vite.config.wc.ts --mode production",
5233
+ lint: "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
5234
+ preview: "vite preview",
5235
+ publish: "npm publish --access public"
5236
+ }, ih = {
5237
+ "@emotion/react": "^11.11.3",
5238
+ "@emotion/styled": "^11.11.0",
5239
+ "@mui/icons-material": "^5.15.4",
5240
+ "@mui/material": "^5.15.4",
5241
+ "@r2wc/react-to-web-component": "^2.0.3",
5242
+ "@rollup/plugin-replace": "^5.0.5",
5243
+ axios: "^1.6.5",
5244
+ cssnano: "^6.0.3",
5245
+ "framer-motion": "^10.18.0",
5246
+ "react-query": "^3.39.3",
5247
+ "react-router-dom": "^6.21.3",
5248
+ "react-shadow": "^20.4.0",
5249
+ "react-svg": "^16.1.32",
5250
+ "react-toastify": "^10.0.4",
5251
+ "simplebar-react": "^3.2.4",
5252
+ "vite-plugin-css-injected-by-js": "^3.3.1"
5253
+ }, sh = {
5254
+ "@types/node": "^20.8.10",
5255
+ "@types/react": "^18.2.15",
5256
+ "@types/react-dom": "^18.2.7",
5257
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
5258
+ "@typescript-eslint/parser": "^6.0.0",
5259
+ "@vitejs/plugin-react-swc": "^3.3.2",
5260
+ autoprefixer: "^10.4.16",
5261
+ eslint: "^8.45.0",
5262
+ "eslint-plugin-react-hooks": "^4.6.0",
5263
+ "eslint-plugin-react-refresh": "^0.4.3",
5264
+ postcss: "^8.4.33",
5265
+ prettier: "^3.0.3",
5266
+ react: "^18.2.0",
5267
+ "react-dom": "^18.2.0",
5268
+ tailwindcss: "^3.4.1",
5269
+ typescript: "^5.0.2",
5270
+ vite: "^4.5.1",
5271
+ "vite-plugin-css-injected-by-js": "^3.3.1",
5272
+ "vite-plugin-dts": "^3.7.0",
5273
+ "vite-plugin-lib-inject-css": "^1.3.0"
5274
+ }, rh = {
5275
+ "@mui/material": "^5.15.4",
5276
+ react: "^18.2.0",
5277
+ "react-dom": "^18.2.0",
5278
+ "react-query": "^3.39.3",
5279
+ "react-router-dom": "^6.21.3",
5280
+ tailwindcss: "^3.4.1"
5281
+ }, oh = "Thinh Phung", ah = "![Screenshot 2024-01-22 at 11 40 08](https://github.com/UKParkingControl/LibShareJS/assets/153060345/99004010-67a2-436b-a5b7-317992137205)", lh = "ISC", ch = {
5282
+ name: qu,
5283
+ private: !1,
5284
+ version: Ku,
5285
+ type: $u,
5286
+ main: Qu,
5287
+ module: Zu,
5288
+ exports: Ju,
5289
+ typesVersions: th,
5290
+ files: eh,
5291
+ scripts: nh,
5292
+ dependencies: ih,
5293
+ devDependencies: sh,
5294
+ peerDependencies: rh,
5295
+ author: oh,
5296
+ description: ah,
5297
+ license: lh
5298
+ };
5299
+ function Sh(t) {
5300
+ return /* @__PURE__ */ w(Ui, { styles: [Mo, Xu], style: { zIndex: 1200 }, children: /* @__PURE__ */ w(uh, { ...t }) });
5229
5301
  }
5230
- function qu(t) {
5231
- const { baseUrl: e, menuPath: n } = t, i = jr(), [s, o] = K([]), [r, a] = K(!1), l = (Ar(s, i.pathname) || []).filter((y) => y.parentKey !== 0), [c, u] = K({}), h = (y) => {
5232
- u({
5233
- ...c,
5234
- [y]: !c[y]
5302
+ function uh(t) {
5303
+ const { baseUrl: e, menuPath: n } = t, i = Ir(), [s, o] = K([]), [r, a] = K(!1), [l, c] = K({}), u = Tr(s), h = window.location.origin + i.pathname, d = hh(u, h).filter(
5304
+ (g) => g.parentKey !== 0
5305
+ );
5306
+ console.log("matchPaths:", d);
5307
+ const f = (g) => {
5308
+ c({
5309
+ ...l,
5310
+ [g]: !l[g]
5235
5311
  });
5236
- }, d = () => {
5312
+ }, p = () => {
5237
5313
  a(!r);
5238
5314
  };
5239
5315
  Xt(() => {
5240
5316
  (async () => {
5241
- const b = e + (n || "/global-menu-config/api/v1/menu-items/user"), g = await Fr.get(b, {
5317
+ const x = e + (n || "/global-menu-config/api/v1/menu-items/user"), P = await Br.get(x, {
5242
5318
  withCredentials: !0
5243
5319
  }).then((S) => S.data).catch((S) => {
5244
- var T, k;
5320
+ var C, F;
5245
5321
  Rr(
5246
- ((k = (T = S.response) == null ? void 0 : T.data) == null ? void 0 : k.errorMessage) || "Have error when get menu items"
5322
+ ((F = (C = S.response) == null ? void 0 : C.data) == null ? void 0 : F.errorMessage) || "Have error when get menu items"
5247
5323
  );
5248
- }), x = {};
5249
- g.forEach((S) => {
5250
- S.children && (x[S.id] = !0);
5251
- }), u(x), o(g.map((S) => ({ ...S, parentKey: 0 })));
5324
+ }), T = {};
5325
+ P.forEach((S) => {
5326
+ S.children && (T[S.id] = !0);
5327
+ }), c(T);
5328
+ let k = P.map((S) => ({
5329
+ ...S,
5330
+ parentKey: 0
5331
+ }));
5332
+ t.replacePath && (k = Pr(k, t.replacePath)), o(k);
5252
5333
  })();
5253
- }, [e, n]);
5254
- const [f, p] = K(!1), m = r ? "collapsed" : "expanded", v = (y) => `${y} ${m}`;
5255
- return /* @__PURE__ */ B("div", { className: v("side-bar"), children: [
5256
- /* @__PURE__ */ w("div", { className: v("side-bar__wrapper-toggle-btn"), children: /* @__PURE__ */ w(
5334
+ }, [e, n, t.replacePath]);
5335
+ const [m, v] = K(!1), b = r ? "collapsed" : "expanded", y = (g) => `${g} ${b}`;
5336
+ return /* @__PURE__ */ R("div", { className: y("side-bar"), children: [
5337
+ /* @__PURE__ */ R("div", { style: { display: "none" }, children: [
5338
+ "Version: ",
5339
+ ch.version
5340
+ ] }),
5341
+ /* @__PURE__ */ w("div", { className: y("side-bar__wrapper-toggle-btn"), children: /* @__PURE__ */ w(
5257
5342
  "button",
5258
5343
  {
5259
5344
  className: "icon-btn side-bar__toggle-btn",
5260
- onClick: d,
5261
- children: r ? /* @__PURE__ */ w(Yu, {}) : /* @__PURE__ */ w(Gu, {})
5345
+ onClick: p,
5346
+ children: r ? /* @__PURE__ */ w(Gu, {}) : /* @__PURE__ */ w(Hu, {})
5262
5347
  }
5263
5348
  ) }),
5264
5349
  /* @__PURE__ */ w(
5265
- ts,
5350
+ Ji,
5266
5351
  {
5267
- className: v("side-bar__menu"),
5352
+ className: y("side-bar__menu"),
5268
5353
  style: {
5269
5354
  marginTop: 24,
5270
5355
  flex: 1,
@@ -5272,48 +5357,64 @@ function qu(t) {
5272
5357
  height: "100%",
5273
5358
  overflowX: "hidden"
5274
5359
  },
5275
- children: s.map((y) => /* @__PURE__ */ w(
5276
- Tr,
5360
+ children: s.map((g) => /* @__PURE__ */ w(
5361
+ Sr,
5277
5362
  {
5278
- item: y,
5279
- isActive: (g) => l.some((x) => x.id === g),
5363
+ item: g,
5364
+ isActive: (P) => d.some((T) => T.id === P),
5280
5365
  isCollapsed: r,
5281
- expanded: (g) => c[g],
5282
- toggleExpand: h,
5283
- replacePath: t.replacePath
5366
+ expanded: (P) => l[P],
5367
+ toggleExpand: f,
5368
+ replacePath: t.replacePath,
5369
+ ssr: t.ssr
5284
5370
  },
5285
- y.id
5371
+ g.id
5286
5372
  ))
5287
5373
  }
5288
5374
  ),
5289
- /* @__PURE__ */ B("div", { className: v("side-bar__wrap-btn-logout"), children: [
5290
- /* @__PURE__ */ B(
5375
+ /* @__PURE__ */ R("div", { className: y("side-bar__wrap-btn-logout"), children: [
5376
+ /* @__PURE__ */ R(
5291
5377
  "button",
5292
5378
  {
5293
- className: v("side-bar__logout-btn"),
5294
- onClick: () => p(!0),
5379
+ className: y("side-bar__logout-btn"),
5380
+ onClick: () => v(!0),
5295
5381
  children: [
5296
- /* @__PURE__ */ w(Uu, {}),
5297
- /* @__PURE__ */ w("span", { className: v("side-bar__logout-btn__text"), children: "Logout" })
5382
+ /* @__PURE__ */ w(Yu, {}),
5383
+ /* @__PURE__ */ w("span", { className: y("side-bar__logout-btn__text"), children: "Logout" })
5298
5384
  ]
5299
5385
  }
5300
5386
  ),
5301
5387
  /* @__PURE__ */ w(
5302
- Ui,
5388
+ _i,
5303
5389
  {
5304
- isOpen: f,
5305
- onClose: () => p(!1),
5306
- onConfirm: () => t.logout ? t.logout() : Br(t.baseUrl)
5390
+ isOpen: m,
5391
+ onClose: () => v(!1),
5392
+ onConfirm: () => t.logout ? t.logout() : jr(t.baseUrl)
5307
5393
  }
5308
5394
  )
5309
5395
  ] })
5310
5396
  ] });
5311
5397
  }
5398
+ function Tr(t) {
5399
+ let e = [];
5400
+ for (const n of t)
5401
+ e.push(n), n.children && (e = e.concat(Tr(n.children)));
5402
+ return e;
5403
+ }
5404
+ function hh(t, e) {
5405
+ let n = t.find((s) => s.path && e.includes(s.path)), i = [];
5406
+ for (; n; )
5407
+ i = [n, ...i], n = t.find((s) => s.id === n.parentKey);
5408
+ return i;
5409
+ }
5410
+ function Pr(t, e) {
5411
+ return t.map((n) => (n.path && (n.path = e(n.path)), n.children && n.children.length > 0 && (n.children = Pr(n.children, e)), n));
5412
+ }
5312
5413
  export {
5313
- rh as GlobalMenu,
5314
- sh as ToastConfig,
5315
- nh as TopBar,
5414
+ Sh as GlobalMenu,
5415
+ xh as ToastConfig,
5416
+ bh as TopBar,
5316
5417
  Rr as pushError,
5317
- lh as pushSuccess,
5318
- ch as pushWarning
5418
+ Ah as pushSuccess,
5419
+ kh as pushWarning
5319
5420
  };