@ukpc-lib/react 0.0.0 → 0.0.1

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.
@@ -0,0 +1,3 @@
1
+ import { MenuItemDto } from '../models';
2
+ export declare function removeLeadingSlashes(path: string): string;
3
+ export declare function findItemAndParents(data: MenuItemDto[], path: string, parents?: MenuItemDto[]): MenuItemDto[] | null;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function IconLogout(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1 +1,6 @@
1
- export declare function GlobalMenu(): import("react/jsx-runtime").JSX.Element;
1
+ type GlobalMenuProps = {
2
+ baseUrl: string;
3
+ menuPath?: string;
4
+ };
5
+ export declare function GlobalMenu(props: GlobalMenuProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface MenuItemDto {
2
+ id: number;
3
+ name: string;
4
+ path?: string;
5
+ icon?: string;
6
+ parentKey: number | null;
7
+ children?: MenuItemDto[];
8
+ }
@@ -0,0 +1 @@
1
+ export * from './MenuItemDto';
@@ -0,0 +1,7 @@
1
+ type LogoutConfirmModalProps = {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ onConfirm: () => void;
5
+ };
6
+ declare function LogoutConfirmModal({ isOpen, onClose, onConfirm, }: LogoutConfirmModalProps): import("react/jsx-runtime").JSX.Element | null;
7
+ export default LogoutConfirmModal;
@@ -1 +1,31 @@
1
- var x=require("../index.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react");function d(){return e.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.7968 17.4705C16.5901 17.4705 18.8076 16.8556 19.0218 14.3874C19.0218 11.921 17.4757 12.0796 17.4757 9.05334C17.4757 6.68952 15.2352 4 11.7968 4C8.35833 4 6.1178 6.68952 6.1178 9.05334C6.1178 12.0796 4.57178 11.921 4.57178 14.3874C4.78679 16.8649 7.00428 17.4705 11.7968 17.4705Z",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("circle",{cx:"16.928",cy:"7",r:"2",fill:"#E01B00",stroke:"white"})]})}function w(){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[e.jsx("path",{d:"M8.5 19.5H8C4 19.5 2 18.5 2 13.5V8.5C2 4.5 4 2.5 8 2.5H16C20 2.5 22 4.5 22 8.5V13.5C22 17.5 20 19.5 16 19.5H15.5C15.19 19.5 14.89 19.65 14.7 19.9L13.2 21.9C12.54 22.78 11.46 22.78 10.8 21.9L9.3 19.9C9.14 19.68 8.77 19.5 8.5 19.5Z",stroke:"white","stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M15.9965 11.5H16.0054",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M11.9955 11.5H12.0045",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e.jsx("path",{d:"M7.99451 11.5H8.00349",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})}const p="data:image/png;base64,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";function h({logo:t,user:s,baseUrl:i}){const r=t||"/public/assets/icons/logo-header.png";return e.jsx("nav",{className:"fixed flex z-30 bg-black top-0 w-full pl-10 h-[70px]",children:e.jsxs("div",{className:"flex flex-row items-center w-full justify-between",children:[e.jsx("img",{src:r,alt:"logo-header"}),e.jsxs("div",{className:"flex flex-row items-center text-center mr-10 gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("p",{className:"text-white text-sm font-normal",children:`${s.firstName} ${s.lastName}`}),e.jsx(f,{baseUrl:i,avatarUrl:s==null?void 0:s.avatarUrl})]}),e.jsx("span",{className:"cursor-pointer",children:e.jsx(d,{})}),e.jsx("span",{className:"cursor-pointer",children:e.jsx(w,{})})]})]})})}function f({avatarUrl:t,baseUrl:s}){const[i,r]=n.useState(!1),o=n.useRef(null),a=n.useRef(null),c=()=>{window.location.href=`${s}/authentication/logout?callbackUrl=${window.location.origin}`};return n.useEffect(()=>{function l(u){u.target!==a.current&&u.target!==o.current&&r(!1)}return window.addEventListener("click",l),()=>window.removeEventListener("click",l)},[]),e.jsxs("div",{className:"relative",children:[e.jsx("img",{ref:o,onClick:()=>r(l=>!l),alt:"user avatar",className:"w-10 h-10 cursor-pointer object-cover rounded-full",src:t||p}),i&&e.jsx("div",{ref:a,className:"bg-white p-4 w-52 shadow-lg absolute -left-40 top-20",children:e.jsxs("ul",{children:[e.jsx("li",{className:"avatar-dropdown-item",children:"Profile"}),e.jsx("li",{onClick:c,className:"avatar-dropdown-item",children:"Logout"})]})})]})}function A(){return e.jsx("div",{children:"GlobalMenu"})}exports.GlobalMenu=A;exports.TopBar=h;
1
+ var uh=require("../index.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react/jsx-runtime"),T=require("react"),V=require("../styled-e695695c.cjs"),nr=require("react-dom"),sr=require("axios");function ir(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const w=ir(T);function or(){return P.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[P.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.7968 17.4705C16.5901 17.4705 18.8076 16.8556 19.0218 14.3874C19.0218 11.921 17.4757 12.0796 17.4757 9.05334C17.4757 6.68952 15.2352 4 11.7968 4C8.35833 4 6.1178 6.68952 6.1178 9.05334C6.1178 12.0796 4.57178 11.921 4.57178 14.3874C4.78679 16.8649 7.00428 17.4705 11.7968 17.4705Z",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),P.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),P.jsx("circle",{cx:"16.928",cy:"7",r:"2",fill:"#E01B00",stroke:"white"})]})}function rr(){return P.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[P.jsx("path",{d:"M8.5 19.5H8C4 19.5 2 18.5 2 13.5V8.5C2 4.5 4 2.5 8 2.5H16C20 2.5 22 4.5 22 8.5V13.5C22 17.5 20 19.5 16 19.5H15.5C15.19 19.5 14.89 19.65 14.7 19.9L13.2 21.9C12.54 22.78 11.46 22.78 10.8 21.9L9.3 19.9C9.14 19.68 8.77 19.5 8.5 19.5Z",stroke:"white","stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),P.jsx("path",{d:"M15.9965 11.5H16.0054",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),P.jsx("path",{d:"M11.9955 11.5H12.0045",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),P.jsx("path",{d:"M7.99451 11.5H8.00349",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})}const ar="data:image/png;base64,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",lr="_container_acuam_1",cr="_fixed_acuam_1",ur="_absolute_acuam_1",fr="_relative_acuam_1",hr="_flex_acuam_1",dr="_hidden_acuam_1",mr="_filter_acuam_1",pr="_transition_acuam_1",gr="_html_acuam_1",jt={container:lr,fixed:cr,absolute:ur,relative:fr,"-left-40":"_-left-40_acuam_1","top-0":"_top-0_acuam_1","top-16":"_top-16_acuam_1","z-30":"_z-30_acuam_1","mb-10":"_mb-10_acuam_1","ml-3":"_ml-3_acuam_1","mr-10":"_mr-10_acuam_1","mt-10":"_mt-10_acuam_1","mt-6":"_mt-6_acuam_1",flex:hr,hidden:dr,"h-10":"_h-10_acuam_1","h-[70px]":"_h-[70px]_acuam_1","h-[8px]":"_h-[8px]_acuam_1","h-screen":"_h-screen_acuam_1","min-h-[1000px]":"_min-h-[1000px]_acuam_1","w-10":"_w-10_acuam_1","w-4/5":"_w-4/5_acuam_1","w-52":"_w-52_acuam_1","w-full":"_w-full_acuam_1","flex-1":"_flex-1_acuam_1","cursor-pointer":"_cursor-pointer_acuam_1","flex-row":"_flex-row_acuam_1","flex-col":"_flex-col_acuam_1","items-center":"_items-center_acuam_1","justify-between":"_justify-between_acuam_1","gap-2":"_gap-2_acuam_1","gap-4":"_gap-4_acuam_1","overflow-auto":"_overflow-auto_acuam_1","overflow-hidden":"_overflow-hidden_acuam_1","overflow-y-auto":"_overflow-y-auto_acuam_1","overflow-x-hidden":"_overflow-x-hidden_acuam_1","rounded-full":"_rounded-full_acuam_1","bg-black":"_bg-black_acuam_1","bg-gray-100":"_bg-gray-100_acuam_1","bg-white":"_bg-white_acuam_1","object-cover":"_object-cover_acuam_1","p-4":"_p-4_acuam_1","pl-10":"_pl-10_acuam_1","text-center":"_text-center_acuam_1","text-sm":"_text-sm_acuam_1","text-xl":"_text-xl_acuam_1","font-medium":"_font-medium_acuam_1","font-normal":"_font-normal_acuam_1","text-[#E01B00]":"_text-[#E01B00]_acuam_1","text-white":"_text-white_acuam_1","shadow-lg":"_shadow-lg_acuam_1",filter:mr,transition:pr,html:gr,"avatar-dropdown-item":"_avatar-dropdown-item_acuam_1","modal-overlay":"_modal-overlay_acuam_3","modal-container":"_modal-container_acuam_7","modal-button":"_modal-button_acuam_25","confirm-btn":"_confirm-btn_acuam_33"};function hi({isOpen:t,onClose:e,onConfirm:n}){if(!t)return null;function s(i){var r;((r=i.target)==null?void 0:r.id)==="modal-wrapper"&&e()}return P.jsx("div",{onClick:s,className:jt["modal-overlay"],id:"modal-wrapper",children:P.jsxs("div",{className:jt["modal-container"],children:[P.jsx("h3",{className:"text-xl text-[#E01B00] font-medium",children:"Log out"}),P.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),P.jsxs("div",{className:"flex justify-between w-4/5",children:[P.jsx("button",{className:jt["modal-button"],onClick:e,children:"Cancel"}),P.jsx("button",{onClick:n,className:`text-white ${jt["confirm-btn"]} ${jt["modal-button"]}`,children:"Confirm"})]})]})})}function yr({logo:t,user:e,baseUrl:n}){const s=t||"/public/assets/icons/logo-header.png";return P.jsx("nav",{className:"fixed flex z-30 bg-black top-0 w-full pl-10 h-[70px]",children:P.jsxs("div",{className:"flex flex-row items-center w-full justify-between",children:[P.jsx("img",{src:s,alt:"logo-header"}),P.jsxs("div",{className:"flex flex-row items-center text-center mr-10 gap-4",children:[P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx("p",{className:"text-white text-sm font-normal",children:`${e==null?void 0:e.firstName} ${e==null?void 0:e.lastName}`}),P.jsx(vr,{baseUrl:n,avatarUrl:e==null?void 0:e.avatarUrl})]}),P.jsx("span",{className:"cursor-pointer",children:P.jsx(or,{})}),P.jsx("span",{className:"cursor-pointer",children:P.jsx(rr,{})})]})]})})}function vr({avatarUrl:t,baseUrl:e}){const[n,s]=T.useState(!1),[i,r]=T.useState(!1),o=T.useRef(null),a=T.useRef(null),l=()=>{window.location.href=`${e}/authentication/logout?callbackUrl=${window.location.origin}`};return T.useEffect(()=>{function c(u){u.target!==a.current&&u.target!==o.current&&s(!1)}return window.addEventListener("click",c),()=>window.removeEventListener("click",c)},[]),P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"relative",children:[P.jsx("img",{ref:o,onClick:()=>s(c=>!c),alt:"user avatar",className:"w-10 h-10 cursor-pointer object-cover rounded-full",src:t||ar}),n&&P.jsx("div",{ref:a,className:"bg-white p-4 w-52 shadow-lg absolute -left-40 top-16",children:P.jsxs("ul",{children:[P.jsx("li",{className:"avatar-dropdown-item",children:"Profile"}),P.jsx("li",{onClick:()=>r(!0),className:"avatar-dropdown-item",children:"Logout"})]})})]}),P.jsx(hi,{isOpen:i,onClose:()=>r(!1),onConfirm:l})]})}var hn={},di={exports:{}};(function(t){function e(n){return n&&n.__esModule?n:{default:n}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(di);var dn=di.exports,je={};function xr(...t){return t.reduce((e,n)=>n==null?e:function(...i){e.apply(this,i),n.apply(this,i)},()=>{})}function br(t,e=166){let n;function s(...i){const r=()=>{t.apply(this,i)};clearTimeout(n),n=setTimeout(r,e)}return s.clear=()=>{clearTimeout(n)},s}function wr(t,e){return process.env.NODE_ENV==="production"?()=>null:(n,s,i,r,o)=>{const a=i||"<<anonymous>>",l=o||s;return typeof n[s]<"u"?new Error(`The ${r} \`${l}\` of \`${a}\` is deprecated. ${e}`):null}}function Pr(t,e){var n,s;return w.isValidElement(t)&&e.indexOf((n=t.type.muiName)!=null?n:(s=t.type)==null||(s=s._payload)==null||(s=s.value)==null?void 0:s.muiName)!==-1}function mi(t){return t&&t.ownerDocument||document}function Tr(t){return mi(t).defaultView||window}function pi(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const Sr=typeof window<"u"?w.useLayoutEffect:w.useEffect,gi=Sr;let Yn=0;function Cr(t){const[e,n]=w.useState(t),s=t||e;return w.useEffect(()=>{e==null&&(Yn+=1,n(`mui-${Yn}`))},[e]),s}const Xn=w["useId".toString()];function Vr(t){if(Xn!==void 0){const e=Xn();return t??e}return Cr(t)}function Ar(t,e,n,s,i){if(process.env.NODE_ENV==="production")return null;const r=i||e;return typeof t[e]<"u"?new Error(`The prop \`${r}\` is not supported. Please remove it.`):null}function Er({controlled:t,default:e,name:n,state:s="value"}){const{current:i}=w.useRef(t!==void 0),[r,o]=w.useState(e),a=i?t:r;if(process.env.NODE_ENV!=="production"){w.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${s} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
2
+ `))},[s,n,t]);const{current:c}=w.useRef(e);w.useEffect(()=>{!i&&c!==e&&console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
3
+ `))},[JSON.stringify(e)])}const l=w.useCallback(c=>{i||o(c)},[]);return[a,l]}function Rr(t){const e=w.useRef(t);return gi(()=>{e.current=t}),w.useRef((...n)=>(0,e.current)(...n)).current}function Dr(...t){return w.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{pi(n,e)})},t)}let be=!0,Xe=!1,Qn;const Mr={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Lr(t){const{type:e,tagName:n}=t;return!!(n==="INPUT"&&Mr[e]&&!t.readOnly||n==="TEXTAREA"&&!t.readOnly||t.isContentEditable)}function _r(t){t.metaKey||t.altKey||t.ctrlKey||(be=!0)}function Ne(){be=!1}function jr(){this.visibilityState==="hidden"&&Xe&&(be=!0)}function Nr(t){t.addEventListener("keydown",_r,!0),t.addEventListener("mousedown",Ne,!0),t.addEventListener("pointerdown",Ne,!0),t.addEventListener("touchstart",Ne,!0),t.addEventListener("visibilitychange",jr,!0)}function Or(t){const{target:e}=t;try{return e.matches(":focus-visible")}catch{}return be||Lr(e)}function kr(){const t=w.useCallback(i=>{i!=null&&Nr(i.ownerDocument)},[]),e=w.useRef(!1);function n(){return e.current?(Xe=!0,window.clearTimeout(Qn),Qn=window.setTimeout(()=>{Xe=!1},100),e.current=!1,!0):!1}function s(i){return Or(i)?(e.current=!0,!0):!1}return{isFocusVisibleRef:e,onFocus:s,onBlur:n,ref:t}}function Ir(t){return V.generateUtilityClass("MuiSvgIcon",t)}V.generateUtilityClasses("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Br=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Fr=t=>{const{color:e,fontSize:n,classes:s}=t,i={root:["root",e!=="inherit"&&`color${V.capitalize(e)}`,`fontSize${V.capitalize(n)}`]};return V.composeClasses(i,Ir,s)},Ur=V.styled("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${V.capitalize(n.color)}`],e[`fontSize${V.capitalize(n.fontSize)}`]]}})(({theme:t,ownerState:e})=>{var n,s,i,r,o,a,l,c,u,f,h,d,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=t.transitions)==null||(s=n.create)==null?void 0:s.call(n,"fill",{duration:(i=t.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((r=t.typography)==null||(o=r.pxToRem)==null?void 0:o.call(r,20))||"1.25rem",medium:((a=t.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=t.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[e.fontSize],color:(f=(h=(t.vars||t).palette)==null||(h=h[e.color])==null?void 0:h.main)!=null?f:{action:(d=(t.vars||t).palette)==null||(d=d.action)==null?void 0:d.active,disabled:(m=(t.vars||t).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[e.color]}}),mn=w.forwardRef(function(e,n){const s=V.useThemeProps({props:e,name:"MuiSvgIcon"}),{children:i,className:r,color:o="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:h="0 0 24 24"}=s,d=V._objectWithoutPropertiesLoose(s,Br),m=w.isValidElement(i)&&i.type==="svg",p=V._extends({},s,{color:o,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:h,hasSvgAsChild:m}),v={};u||(v.viewBox=h);const b=Fr(p);return P.jsxs(Ur,V._extends({as:a,className:V.clsx(b.root,r),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},v,d,m&&i.props,{ownerState:p,children:[m?i.props.children:i,f?P.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(mn.propTypes={children:V.PropTypes.node,classes:V.PropTypes.object,className:V.PropTypes.string,color:V.PropTypes.oneOfType([V.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),V.PropTypes.string]),component:V.PropTypes.elementType,fontSize:V.PropTypes.oneOfType([V.PropTypes.oneOf(["inherit","large","medium","small"]),V.PropTypes.string]),htmlColor:V.PropTypes.string,inheritViewBox:V.PropTypes.bool,shapeRendering:V.PropTypes.string,sx:V.PropTypes.oneOfType([V.PropTypes.arrayOf(V.PropTypes.oneOfType([V.PropTypes.func,V.PropTypes.object,V.PropTypes.bool])),V.PropTypes.func,V.PropTypes.object]),titleAccess:V.PropTypes.string,viewBox:V.PropTypes.string});mn.muiName="SvgIcon";const Zn=mn;function zr(t,e){function n(s,i){return P.jsx(Zn,V._extends({"data-testid":`${e}Icon`,ref:i},s,{children:t}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${e}Icon`),n.muiName=Zn.muiName,w.memo(w.forwardRef(n))}const Wr={configure:t=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
4
+ `)),V.ClassNameGenerator.configure(t)}},$r=Object.freeze(Object.defineProperty({__proto__:null,capitalize:V.capitalize,createChainedFunction:xr,createSvgIcon:zr,debounce:br,deprecatedPropType:wr,isMuiElement:Pr,ownerDocument:mi,ownerWindow:Tr,requirePropFactory:V.requirePropFactory,setRef:pi,unstable_ClassNameGenerator:Wr,unstable_useEnhancedEffect:gi,unstable_useId:Vr,unsupportedProp:Ar,useControlled:Er,useEventCallback:Rr,useForkRef:Dr,useIsFocusVisible:kr},Symbol.toStringTag,{value:"Module"})),Gr=V.getAugmentedNamespace($r);var Jn;function pn(){return Jn||(Jn=1,function(t){"use client";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.createSvgIcon}});var e=Gr}(je)),je}var qr=dn;Object.defineProperty(hn,"__esModule",{value:!0});var yi=hn.default=void 0,Kr=qr(pn()),Hr=P;yi=hn.default=(0,Kr.default)((0,Hr.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight");var gn={},Yr=dn;Object.defineProperty(gn,"__esModule",{value:!0});var vi=gn.default=void 0,Xr=Yr(pn()),Qr=P;vi=gn.default=(0,Xr.default)((0,Qr.jsx)("path",{d:"M4 18h11c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1m0-5h8c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1M3 7c0 .55.45 1 1 1h11c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1m17.3 7.88L17.42 12l2.88-2.88c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L15.3 11.3c-.39.39-.39 1.02 0 1.41l3.59 3.59c.39.39 1.02.39 1.41 0 .38-.39.39-1.03 0-1.42"}),"MenuOpenRounded");var yn={},Zr=dn;Object.defineProperty(yn,"__esModule",{value:!0});var xi=yn.default=void 0,Jr=Zr(pn()),ta=P;xi=yn.default=(0,Jr.default)((0,ta.jsx)("path",{d:"M4 18h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1m0-5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1M3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1"}),"MenuRounded");const bi=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),we=T.createContext({}),vn=T.createContext(null),Pe=typeof document<"u",ea=Pe?T.useLayoutEffect:T.useEffect,wi=T.createContext({strict:!1}),xn=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),na="framerAppearId",Pi="data-"+xn(na);function sa(t,e,n,s){const{visualElement:i}=T.useContext(we),r=T.useContext(wi),o=T.useContext(vn),a=T.useContext(bi).reducedMotion,l=T.useRef();s=s||r.renderer,!l.current&&s&&(l.current=s(t,{visualState:e,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;T.useInsertionEffect(()=>{c&&c.update(n,o)});const u=T.useRef(!!(n[Pi]&&!window.HandoffComplete));return ea(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())}),T.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),c}function Pt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function ia(t,e,n){return T.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):Pt(n)&&(n.current=s))},[e])}function zt(t){return typeof t=="string"||Array.isArray(t)}function Te(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const bn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wn=["initial",...bn];function Se(t){return Te(t.animate)||wn.some(e=>zt(t[e]))}function Ti(t){return!!(Se(t)||t.variants)}function oa(t,e){if(Se(t)){const{initial:n,animate:s}=t;return{initial:n===!1||zt(n)?n:void 0,animate:zt(s)?s:void 0}}return t.inherit!==!1?e:{}}function ra(t){const{initial:e,animate:n}=oa(t,T.useContext(we));return T.useMemo(()=>({initial:e,animate:n}),[ts(e),ts(n)])}function ts(t){return Array.isArray(t)?t.join(" "):t}const es={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Wt={};for(const t in es)Wt[t]={isEnabled:e=>es[t].some(n=>!!e[n])};function aa(t){for(const e in t)Wt[e]={...Wt[e],...t[e]}}const Si=T.createContext({}),Ci=T.createContext({}),la=Symbol.for("motionComponentSymbol");function ca({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&aa(t);function r(a,l){let c;const u={...T.useContext(bi),...a,layoutId:ua(a)},{isStatic:f}=u,h=ra(a),d=s(a,f);if(!f&&Pe){h.visualElement=sa(i,d,u,e);const m=T.useContext(Ci),p=T.useContext(wi).strict;h.visualElement&&(c=h.visualElement.loadFeatures(u,p,t,m))}return w.createElement(we.Provider,{value:h},c&&h.visualElement?w.createElement(c,{visualElement:h.visualElement,...u}):null,n(i,a,ia(d,h.visualElement,l),d,f,h.visualElement))}const o=T.forwardRef(r);return o[la]=i,o}function ua({layoutId:t}){const e=T.useContext(Si).id;return e&&t!==void 0?e+"-"+t:t}function fa(t){function e(s,i={}){return ca(t(s,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(s,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const ha=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Pn(t){return typeof t!="string"||t.includes("-")?!1:!!(ha.indexOf(t)>-1||/[A-Z]/.test(t))}const ue={};function da(t){Object.assign(ue,t)}const Kt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yt=new Set(Kt);function Vi(t,{layout:e,layoutId:n}){return yt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!ue[t]||t==="opacity")}const U=t=>!!(t&&t.getVelocity),ma={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pa=Kt.length;function ga(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},s,i){let r="";for(let o=0;o<pa;o++){const a=Kt[o];if(t[a]!==void 0){const l=ma[a]||a;r+=`${l}(${t[a]}) `}}return e&&!t.z&&(r+="translateZ(0)"),r=r.trim(),i?r=i(t,s?"":r):n&&s&&(r="none"),r}const Ai=t=>e=>typeof e=="string"&&e.startsWith(t),Ei=Ai("--"),Qe=Ai("var(--"),ya=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,va=(t,e)=>e&&typeof t=="number"?e.transform(t):t,at=(t,e,n)=>Math.min(Math.max(n,t),e),vt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},It={...vt,transform:t=>at(0,1,t)},te={...vt,default:1},Bt=t=>Math.round(t*1e5)/1e5,Ce=/(-)?([\d]*\.?[\d])+/g,Ri=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,xa=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ht(t){return typeof t=="string"}const Yt=t=>({test:e=>Ht(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),st=Yt("deg"),H=Yt("%"),C=Yt("px"),ba=Yt("vh"),wa=Yt("vw"),ns={...H,parse:t=>H.parse(t)/100,transform:t=>H.transform(t*100)},ss={...vt,transform:Math.round},Di={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,radius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,size:C,top:C,right:C,bottom:C,left:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,rotate:st,rotateX:st,rotateY:st,rotateZ:st,scale:te,scaleX:te,scaleY:te,scaleZ:te,skew:st,skewX:st,skewY:st,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:It,originX:ns,originY:ns,originZ:C,zIndex:ss,fillOpacity:It,strokeOpacity:It,numOctaves:ss};function Tn(t,e,n,s){const{style:i,vars:r,transform:o,transformOrigin:a}=t;let l=!1,c=!1,u=!0;for(const f in e){const h=e[f];if(Ei(f)){r[f]=h;continue}const d=Di[f],m=va(h,d);if(yt.has(f)){if(l=!0,o[f]=m,!u)continue;h!==(d.default||0)&&(u=!1)}else f.startsWith("origin")?(c=!0,a[f]=m):i[f]=m}if(e.transform||(l||s?i.transform=ga(t.transform,n,u,s):i.transform&&(i.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:d=0}=a;i.transformOrigin=`${f} ${h} ${d}`}}const Sn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Mi(t,e,n){for(const s in e)!U(e[s])&&!Vi(s,n)&&(t[s]=e[s])}function Pa({transformTemplate:t},e,n){return T.useMemo(()=>{const s=Sn();return Tn(s,e,{enableHardwareAcceleration:!n},t),Object.assign({},s.vars,s.style)},[e])}function Ta(t,e,n){const s=t.style||{},i={};return Mi(i,s,t),Object.assign(i,Pa(t,e,n)),t.transformValues?t.transformValues(i):i}function Sa(t,e,n){const s={},i=Ta(t,e,n);return t.drag&&t.dragListener!==!1&&(s.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=i,s}const Ca=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function fe(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ca.has(t)}let Li=t=>!fe(t);function Va(t){t&&(Li=e=>e.startsWith("on")?!fe(e):t(e))}try{Va(require("@emotion/is-prop-valid").default)}catch{}function Aa(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Li(i)||n===!0&&fe(i)||!e&&!fe(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function is(t,e,n){return typeof t=="string"?t:C.transform(e+n*t)}function Ea(t,e,n){const s=is(e,t.x,t.width),i=is(n,t.y,t.height);return`${s} ${i}`}const Ra={offset:"stroke-dashoffset",array:"stroke-dasharray"},Da={offset:"strokeDashoffset",array:"strokeDasharray"};function Ma(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Ra:Da;t[r.offset]=C.transform(-s);const o=C.transform(e),a=C.transform(n);t[r.array]=`${o} ${a}`}function Cn(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},u,f,h){if(Tn(t,c,u,h),f){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:m,dimensions:p}=t;d.transform&&(p&&(m.transform=d.transform),delete d.transform),p&&(i!==void 0||r!==void 0||m.transform)&&(m.transformOrigin=Ea(p,i!==void 0?i:.5,r!==void 0?r:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),o!==void 0&&Ma(d,o,a,l,!1)}const _i=()=>({...Sn(),attrs:{}}),Vn=t=>typeof t=="string"&&t.toLowerCase()==="svg";function La(t,e,n,s){const i=T.useMemo(()=>{const r=_i();return Cn(r,e,{enableHardwareAcceleration:!1},Vn(s),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};Mi(r,t.style,t),i.style={...r,...i.style}}return i}function _a(t=!1){return(n,s,i,{latestValues:r},o)=>{const l=(Pn(n)?La:Sa)(s,r,o,n),u={...Aa(s,typeof n=="string",t),...l,ref:i},{children:f}=s,h=T.useMemo(()=>U(f)?f.get():f,[f]);return T.createElement(n,{...u,children:h})}}function ji(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}const Ni=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Oi(t,e,n,s){ji(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Ni.has(i)?i:xn(i),e.attrs[i])}function An(t,e){const{style:n}=t,s={};for(const i in n)(U(n[i])||e.style&&U(e.style[i])||Vi(i,t))&&(s[i]=n[i]);return s}function ki(t,e){const n=An(t,e);for(const s in t)if(U(t[s])||U(e[s])){const i=Kt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;n[i]=t[s]}return n}function En(t,e,n,s={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,s,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,s,i)),e}function ja(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const he=t=>Array.isArray(t),Na=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Oa=t=>he(t)?t[t.length-1]||0:t;function re(t){const e=U(t)?t.get():t;return Na(e)?e.toValue():e}function ka({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,r){const o={latestValues:Ia(s,i,r,t),renderState:e()};return n&&(o.mount=a=>n(s,a,o)),o}const Ii=t=>(e,n)=>{const s=T.useContext(we),i=T.useContext(vn),r=()=>ka(t,e,s,i);return n?r():ja(r)};function Ia(t,e,n,s){const i={},r=s(t,{});for(const h in r)i[h]=re(r[h]);let{initial:o,animate:a}=t;const l=Se(t),c=Ti(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const f=u?a:o;return f&&typeof f!="boolean"&&!Te(f)&&(Array.isArray(f)?f:[f]).forEach(d=>{const m=En(t,d);if(!m)return;const{transitionEnd:p,transition:v,...b}=m;for(const y in b){let g=b[y];if(Array.isArray(g)){const x=u?g.length-1:0;g=g[x]}g!==null&&(i[y]=g)}for(const y in p)i[y]=p[y]}),i}const N=t=>t;class os{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function Ba(t){let e=new os,n=new os,s=0,i=!1,r=!1;const o=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const f=u&&i,h=f?e:n;return c&&o.add(l),h.add(l)&&f&&i&&(s=e.order.length),l},cancel:l=>{n.remove(l),o.delete(l)},process:l=>{if(i){r=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),s=e.order.length,s)for(let c=0;c<s;c++){const u=e.order[c];u(l),o.has(u)&&(a.schedule(u),t())}i=!1,r&&(r=!1,a.process(l))}};return a}const ee=["prepare","read","update","preRender","render","postRender"],Fa=40;function Ua(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=ee.reduce((f,h)=>(f[h]=Ba(()=>n=!0),f),{}),o=f=>r[f].process(i),a=()=>{const f=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(f-i.timestamp,Fa),1),i.timestamp=f,i.isProcessing=!0,ee.forEach(o),i.isProcessing=!1,n&&e&&(s=!1,t(a))},l=()=>{n=!0,s=!0,i.isProcessing||t(a)};return{schedule:ee.reduce((f,h)=>{const d=r[h];return f[h]=(m,p=!1,v=!1)=>(n||l(),d.schedule(m,p,v)),f},{}),cancel:f=>ee.forEach(h=>r[h].cancel(f)),state:i,steps:r}}const{schedule:D,cancel:tt,state:I,steps:Oe}=Ua(typeof requestAnimationFrame<"u"?requestAnimationFrame:N,!0),za={useVisualState:Ii({scrapeMotionValuesFromProps:ki,createRenderState:_i,onMount:(t,e,{renderState:n,latestValues:s})=>{D.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),D.render(()=>{Cn(n,s,{enableHardwareAcceleration:!1},Vn(e.tagName),t.transformTemplate),Oi(e,n)})}})},Wa={useVisualState:Ii({scrapeMotionValuesFromProps:An,createRenderState:Sn})};function $a(t,{forwardMotionProps:e=!1},n,s){return{...Pn(t)?za:Wa,preloadedFeatures:n,useRender:_a(e),createVisualElement:s,Component:t}}function Q(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Bi=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Ve(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const Ga=t=>e=>Bi(e)&&t(e,Ve(e));function Z(t,e,n,s){return Q(t,e,Ga(n),s)}const qa=(t,e)=>n=>e(t(n)),ot=(...t)=>t.reduce(qa);function Fi(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const rs=Fi("dragHorizontal"),as=Fi("dragVertical");function Ui(t){let e=!1;if(t==="y")e=as();else if(t==="x")e=rs();else{const n=rs(),s=as();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function zi(){const t=Ui(!0);return t?(t(),!1):!0}class ct{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ls(t,e){const n="pointer"+(e?"enter":"leave"),s="onHover"+(e?"Start":"End"),i=(r,o)=>{if(r.pointerType==="touch"||zi())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[s]&&D.update(()=>a[s](r,o))};return Z(t.current,n,i,{passive:!t.getProps()[s]})}class Ka extends ct{mount(){this.unmount=ot(ls(this.node,!0),ls(this.node,!1))}unmount(){}}class Ha extends ct{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ot(Q(this.node.current,"focus",()=>this.onFocus()),Q(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Wi=(t,e)=>e?t===e?!0:Wi(t,e.parentElement):!1;function ke(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Ve(n))}class Ya extends ct{constructor(){super(...arguments),this.removeStartListeners=N,this.removeEndListeners=N,this.removeAccessibleListeners=N,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const s=this.node.getProps(),r=Z(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:f}=this.node.getProps();D.update(()=>{!f&&!Wi(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(s.onTap||s.onPointerUp)}),o=Z(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=ot(r,o),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=r=>{if(r.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||ke("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&D.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=Q(this.node.current,"keyup",o),ke("down",(a,l)=>{this.startPress(a,l)})},n=Q(this.node.current,"keydown",e),s=()=>{this.isPressing&&ke("cancel",(r,o)=>this.cancelPress(r,o))},i=Q(this.node.current,"blur",s);this.removeAccessibleListeners=ot(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&D.update(()=>s(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!zi()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&D.update(()=>s(e,n))}mount(){const e=this.node.getProps(),n=Z(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=Q(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ot(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ze=new WeakMap,Ie=new WeakMap,Xa=t=>{const e=Ze.get(t.target);e&&e(t)},Qa=t=>{t.forEach(Xa)};function Za({root:t,...e}){const n=t||document;Ie.has(n)||Ie.set(n,{});const s=Ie.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Qa,{root:t,...e})),s[i]}function Ja(t,e,n){const s=Za(e);return Ze.set(t,n),s.observe(t),()=>{Ze.delete(t),s.unobserve(t)}}const tl={some:0,all:1};class el extends ct{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:tl[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),h=c?u:f;h&&h(l)};return Ja(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(nl(e,n))&&this.startObserver()}unmount(){}}function nl({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const sl={inView:{Feature:el},tap:{Feature:Ya},focus:{Feature:Ha},hover:{Feature:Ka}};function $i(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function il(t){const e={};return t.values.forEach((n,s)=>e[s]=n.get()),e}function ol(t){const e={};return t.values.forEach((n,s)=>e[s]=n.getVelocity()),e}function Ae(t,e,n){const s=t.getProps();return En(s,e,n!==void 0?n:s.custom,il(t),ol(t))}let Xt=N,K=N;process.env.NODE_ENV!=="production"&&(Xt=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},K=(t,e)=>{if(!t)throw new Error(e)});const rt=t=>t*1e3,J=t=>t/1e3,rl={current:!1},Gi=t=>Array.isArray(t)&&typeof t[0]=="number";function qi(t){return!!(!t||typeof t=="string"&&Ki[t]||Gi(t)||Array.isArray(t)&&t.every(qi))}const kt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Ki={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:kt([0,.65,.55,1]),circOut:kt([.55,0,1,.45]),backIn:kt([.31,.01,.66,-.59]),backOut:kt([.33,1.53,.69,.99])};function Hi(t){if(t)return Gi(t)?kt(t):Array.isArray(t)?t.map(Hi):Ki[t]}function al(t,e,n,{delay:s=0,duration:i,repeat:r=0,repeatType:o="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=Hi(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:s,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}function ll(t,{repeat:e,repeatType:n="loop"}){const s=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[s]}const Yi=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,cl=1e-7,ul=12;function fl(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Yi(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>cl&&++a<ul);return o}function Qt(t,e,n,s){if(t===e&&n===s)return N;const i=r=>fl(r,0,1,t,n);return r=>r===0||r===1?r:Yi(i(r),e,s)}const hl=Qt(.42,0,1,1),dl=Qt(0,0,.58,1),Xi=Qt(.42,0,.58,1),ml=t=>Array.isArray(t)&&typeof t[0]!="number",Qi=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Zi=t=>e=>1-t(1-e),Rn=t=>1-Math.sin(Math.acos(t)),Ji=Zi(Rn),pl=Qi(Rn),to=Qt(.33,1.53,.69,.99),Dn=Zi(to),gl=Qi(Dn),yl=t=>(t*=2)<1?.5*Dn(t):.5*(2-Math.pow(2,-10*(t-1))),cs={linear:N,easeIn:hl,easeInOut:Xi,easeOut:dl,circIn:Rn,circInOut:pl,circOut:Ji,backIn:Dn,backInOut:gl,backOut:to,anticipate:yl},us=t=>{if(Array.isArray(t)){K(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,s,i]=t;return Qt(e,n,s,i)}else if(typeof t=="string")return K(cs[t]!==void 0,`Invalid easing type '${t}'`),cs[t];return t},Mn=(t,e)=>n=>!!(Ht(n)&&xa.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),eo=(t,e,n)=>s=>{if(!Ht(s))return s;const[i,r,o,a]=s.match(Ce);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},vl=t=>at(0,255,t),Be={...vt,transform:t=>Math.round(vl(t))},mt={test:Mn("rgb","red"),parse:eo("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Be.transform(t)+", "+Be.transform(e)+", "+Be.transform(n)+", "+Bt(It.transform(s))+")"};function xl(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Je={test:Mn("#"),parse:xl,transform:mt.transform},Tt={test:Mn("hsl","hue"),parse:eo("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+H.transform(Bt(e))+", "+H.transform(Bt(n))+", "+Bt(It.transform(s))+")"},F={test:t=>mt.test(t)||Je.test(t)||Tt.test(t),parse:t=>mt.test(t)?mt.parse(t):Tt.test(t)?Tt.parse(t):Je.parse(t),transform:t=>Ht(t)?t:t.hasOwnProperty("red")?mt.transform(t):Tt.transform(t)},j=(t,e,n)=>-n*t+n*e+t;function Fe(t,e,n){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}function bl({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=Fe(l,a,t+1/3),r=Fe(l,a,t),o=Fe(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}const Ue=(t,e,n)=>{const s=t*t;return Math.sqrt(Math.max(0,n*(e*e-s)+s))},wl=[Je,mt,Tt],Pl=t=>wl.find(e=>e.test(t));function fs(t){const e=Pl(t);K(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===Tt&&(n=bl(n)),n}const no=(t,e)=>{const n=fs(t),s=fs(e),i={...n};return r=>(i.red=Ue(n.red,s.red,r),i.green=Ue(n.green,s.green,r),i.blue=Ue(n.blue,s.blue,r),i.alpha=j(n.alpha,s.alpha,r),mt.transform(i))};function Tl(t){var e,n;return isNaN(t)&&Ht(t)&&(((e=t.match(Ce))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Ri))===null||n===void 0?void 0:n.length)||0)>0}const so={regex:ya,countKey:"Vars",token:"${v}",parse:N},io={regex:Ri,countKey:"Colors",token:"${c}",parse:F.parse},oo={regex:Ce,countKey:"Numbers",token:"${n}",parse:vt.parse};function ze(t,{regex:e,countKey:n,token:s,parse:i}){const r=t.tokenised.match(e);r&&(t["num"+n]=r.length,t.tokenised=t.tokenised.replace(e,s),t.values.push(...r.map(i)))}function de(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ze(n,so),ze(n,io),ze(n,oo),n}function ro(t){return de(t).values}function ao(t){const{values:e,numColors:n,numVars:s,tokenised:i}=de(t),r=e.length;return o=>{let a=i;for(let l=0;l<r;l++)l<s?a=a.replace(so.token,o[l]):l<s+n?a=a.replace(io.token,F.transform(o[l])):a=a.replace(oo.token,Bt(o[l]));return a}}const Sl=t=>typeof t=="number"?0:t;function Cl(t){const e=ro(t);return ao(t)(e.map(Sl))}const lt={test:Tl,parse:ro,createTransformer:ao,getAnimatableNone:Cl},lo=(t,e)=>n=>`${n>0?e:t}`;function co(t,e){return typeof t=="number"?n=>j(t,e,n):F.test(t)?no(t,e):t.startsWith("var(")?lo(t,e):fo(t,e)}const uo=(t,e)=>{const n=[...t],s=n.length,i=t.map((r,o)=>co(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}},Vl=(t,e)=>{const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=co(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}},fo=(t,e)=>{const n=lt.createTransformer(e),s=de(t),i=de(e);return s.numVars===i.numVars&&s.numColors===i.numColors&&s.numNumbers>=i.numNumbers?ot(uo(s.values,i.values),n):(Xt(!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.`),lo(t,e))},$t=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},hs=(t,e)=>n=>j(t,e,n);function Al(t){return typeof t=="number"?hs:typeof t=="string"?F.test(t)?no:fo:Array.isArray(t)?uo:typeof t=="object"?Vl:hs}function El(t,e,n){const s=[],i=n||Al(t[0]),r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||N:e;a=ot(l,a)}s.push(a)}return s}function ho(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(K(r===e.length,"Both input and output ranges must be the same length"),r===1)return()=>e[0];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=El(e,s,i),a=o.length,l=c=>{let u=0;if(a>1)for(;u<t.length-2&&!(c<t[u+1]);u++);const f=$t(t[u],t[u+1],c);return o[u](f)};return n?c=>l(at(t[0],t[r-1],c)):l}function Rl(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=$t(0,e,s);t.push(j(n,1,i))}}function Dl(t){const e=[0];return Rl(e,t.length-1),e}function Ml(t,e){return t.map(n=>n*e)}function Ll(t,e){return t.map(()=>e||Xi).splice(0,t.length-1)}function me({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=ml(s)?s.map(us):us(s),r={done:!1,value:e[0]},o=Ml(n&&n.length===e.length?n:Dl(e),t),a=ho(o,e,{ease:Array.isArray(i)?i:Ll(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}function mo(t,e){return e?t*(1e3/e):0}const _l=5;function po(t,e,n){const s=Math.max(e-_l,0);return mo(n-t(s),e-s)}const We=.001,jl=.01,ds=10,Nl=.05,Ol=1;function kl({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,r;Xt(t<=rt(ds),"Spring duration must be 10 seconds or less");let o=1-e;o=at(Nl,Ol,o),t=at(jl,ds,J(t)),o<1?(i=c=>{const u=c*o,f=u*t,h=u-n,d=tn(c,o),m=Math.exp(-f);return We-h/d*m},r=c=>{const f=c*o*t,h=f*n+n,d=Math.pow(o,2)*Math.pow(c,2)*t,m=Math.exp(-f),p=tn(Math.pow(c,2),o);return(-i(c)+We>0?-1:1)*((h-d)*m)/p}):(i=c=>{const u=Math.exp(-c*t),f=(c-n)*t+1;return-We+u*f},r=c=>{const u=Math.exp(-c*t),f=(n-c)*(t*t);return u*f});const a=5/t,l=Bl(i,r,a);if(t=rt(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const Il=12;function Bl(t,e,n){let s=n;for(let i=1;i<Il;i++)s=s-t(s)/e(s);return s}function tn(t,e){return t*Math.sqrt(1-e*e)}const Fl=["duration","bounce"],Ul=["stiffness","damping","mass"];function ms(t,e){return e.some(n=>t[n]!==void 0)}function zl(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ms(t,Ul)&&ms(t,Fl)){const n=kl(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function go({keyframes:t,restDelta:e,restSpeed:n,...s}){const i=t[0],r=t[t.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:u,velocity:f,isResolvedFromDuration:h}=zl({...s,velocity:-J(s.velocity||0)}),d=f||0,m=l/(2*Math.sqrt(a*c)),p=r-i,v=J(Math.sqrt(a/c)),b=Math.abs(p)<5;n||(n=b?.01:2),e||(e=b?.005:.5);let y;if(m<1){const g=tn(v,m);y=x=>{const S=Math.exp(-m*v*x);return r-S*((d+m*v*p)/g*Math.sin(g*x)+p*Math.cos(g*x))}}else if(m===1)y=g=>r-Math.exp(-v*g)*(p+(d+v*p)*g);else{const g=v*Math.sqrt(m*m-1);y=x=>{const S=Math.exp(-m*v*x),E=Math.min(g*x,300);return r-S*((d+m*v*p)*Math.sinh(E)+g*p*Math.cosh(E))/g}}return{calculatedDuration:h&&u||null,next:g=>{const x=y(g);if(h)o.done=g>=u;else{let S=d;g!==0&&(m<1?S=po(y,g,x):S=0);const E=Math.abs(S)<=n,R=Math.abs(r-x)<=e;o.done=E&&R}return o.value=o.done?r:x,o}}}function ps({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=t[0],h={done:!1,value:f},d=A=>a!==void 0&&A<a||l!==void 0&&A>l,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)<Math.abs(l-A)?a:l;let p=n*e;const v=f+p,b=o===void 0?v:o(v);b!==v&&(p=b-f);const y=A=>-p*Math.exp(-A/s),g=A=>b+y(A),x=A=>{const M=y(A),z=g(A);h.done=Math.abs(M)<=c,h.value=h.done?b:z};let S,E;const R=A=>{d(h.value)&&(S=A,E=go({keyframes:[h.value,m(h.value)],velocity:po(g,A,h.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return R(0),{calculatedDuration:null,next:A=>{let M=!1;return!E&&S===void 0&&(M=!0,x(A),R(A)),S!==void 0&&A>S?E.next(A-S):(!M&&x(A),h)}}}const Wl=t=>{const e=({timestamp:n})=>t(n);return{start:()=>D.update(e,!0),stop:()=>tt(e),now:()=>I.isProcessing?I.timestamp:performance.now()}},gs=2e4;function ys(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<gs;)e+=n,s=t.next(e);return e>=gs?1/0:e}const $l={decay:ps,inertia:ps,tween:me,keyframes:me,spring:go};function pe({autoplay:t=!0,delay:e=0,driver:n=Wl,keyframes:s,type:i="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:f,...h}){let d=1,m=!1,p,v;const b=()=>{v=new Promise(_=>{p=_})};b();let y;const g=$l[i]||me;let x;g!==me&&typeof s[0]!="number"&&(process.env.NODE_ENV!=="production"&&K(s.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${s}`),x=ho([0,100],s,{clamp:!1}),s=[0,100]);const S=g({...h,keyframes:s});let E;a==="mirror"&&(E=g({...h,keyframes:[...s].reverse(),velocity:-(h.velocity||0)}));let R="idle",A=null,M=null,z=null;S.calculatedDuration===null&&r&&(S.calculatedDuration=ys(S));const{calculatedDuration:et}=S;let q=1/0,X=1/0;et!==null&&(q=et+o,X=q*(r+1)-o);let B=0;const bt=_=>{if(M===null)return;d>0&&(M=Math.min(M,_)),d<0&&(M=Math.min(_-X/d,M)),A!==null?B=A:B=Math.round(_-M)*d;const Lt=B-e*(d>=0?1:-1),Gn=d>=0?Lt<0:Lt>X;B=Math.max(Lt,0),R==="finished"&&A===null&&(B=X);let qn=B,Kn=S;if(r){const _e=Math.min(B,X)/q;let Jt=Math.floor(_e),ut=_e%1;!ut&&_e>=1&&(ut=1),ut===1&&Jt--,Jt=Math.min(Jt,r+1),!!(Jt%2)&&(a==="reverse"?(ut=1-ut,o&&(ut-=o/q)):a==="mirror"&&(Kn=E)),qn=at(0,1,ut)*q}const _t=Gn?{done:!1,value:s[0]}:Kn.next(qn);x&&(_t.value=x(_t.value));let{done:Hn}=_t;!Gn&&et!==null&&(Hn=d>=0?B>=X:B<=0);const er=A===null&&(R==="finished"||R==="running"&&Hn);return f&&f(_t.value),er&&Mt(),_t},k=()=>{y&&y.stop(),y=void 0},nt=()=>{R="idle",k(),p(),b(),M=z=null},Mt=()=>{R="finished",u&&u(),k(),p()},wt=()=>{if(m)return;y||(y=n(bt));const _=y.now();l&&l(),A!==null?M=_-A:(!M||R==="finished")&&(M=_),R==="finished"&&b(),z=M,A=null,R="running",y.start()};t&&wt();const $n={then(_,Lt){return v.then(_,Lt)},get time(){return J(B)},set time(_){_=rt(_),B=_,A!==null||!y||d===0?A=_:M=y.now()-_/d},get duration(){const _=S.calculatedDuration===null?ys(S):S.calculatedDuration;return J(_)},get speed(){return d},set speed(_){_===d||!y||(d=_,$n.time=J(B))},get state(){return R},play:wt,pause:()=>{R="paused",A=B},stop:()=>{m=!0,R!=="idle"&&(R="idle",c&&c(),nt())},cancel:()=>{z!==null&&bt(z),nt()},complete:()=>{R="finished"},sample:_=>(M=0,bt(_))};return $n}function Gl(t){let e;return()=>(e===void 0&&(e=t()),e)}const ql=Gl(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Kl=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ne=10,Hl=2e4,Yl=(t,e)=>e.type==="spring"||t==="backgroundColor"||!qi(e.ease);function Xl(t,e,{onUpdate:n,onComplete:s,...i}){if(!(ql()&&Kl.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,a,l,c=!1;const u=()=>{l=new Promise(g=>{a=g})};u();let{keyframes:f,duration:h=300,ease:d,times:m}=i;if(Yl(e,i)){const g=pe({...i,repeat:0,delay:0});let x={done:!1,value:f[0]};const S=[];let E=0;for(;!x.done&&E<Hl;)x=g.sample(E),S.push(x.value),E+=ne;m=void 0,f=S,h=E-ne,d="linear"}const p=al(t.owner.current,e,f,{...i,duration:h,ease:d,times:m}),v=()=>{c=!1,p.cancel()},b=()=>{c=!0,D.update(v),a(),u()};return p.onfinish=()=>{c||(t.set(ll(f,i)),s&&s(),b())},{then(g,x){return l.then(g,x)},attachTimeline(g){return p.timeline=g,p.onfinish=null,N},get time(){return J(p.currentTime||0)},set time(g){p.currentTime=rt(g)},get speed(){return p.playbackRate},set speed(g){p.playbackRate=g},get duration(){return J(h)},play:()=>{o||(p.play(),tt(v))},pause:()=>p.pause(),stop:()=>{if(o=!0,p.playState==="idle")return;const{currentTime:g}=p;if(g){const x=pe({...i,autoplay:!1});t.setWithVelocity(x.sample(g-ne).value,x.sample(g).value,ne)}b()},complete:()=>{c||p.finish()},cancel:b}}function Ql({keyframes:t,delay:e,onUpdate:n,onComplete:s}){const i=()=>(n&&n(t[t.length-1]),s&&s(),{time:0,speed:1,duration:0,play:N,pause:N,stop:N,then:r=>(r(),Promise.resolve()),cancel:N,complete:N});return e?pe({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const Zl={type:"spring",stiffness:500,damping:25,restSpeed:10},Jl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),tc={type:"keyframes",duration:.8},ec={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nc=(t,{keyframes:e})=>e.length>2?tc:yt.has(t)?t.startsWith("scale")?Jl(e[1]):Zl:ec,en=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(lt.test(e)||e==="0")&&!e.startsWith("url(")),sc=new Set(["brightness","contrast","saturate","opacity"]);function ic(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ce)||[];if(!s)return t;const i=n.replace(s,"");let r=sc.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const oc=/([a-z-]*)\(.*?\)/g,nn={...lt,getAnimatableNone:t=>{const e=t.match(oc);return e?e.map(ic).join(" "):t}},rc={...Di,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:nn,WebkitFilter:nn},Ln=t=>rc[t];function yo(t,e){let n=Ln(t);return n!==nn&&(n=lt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const vo=t=>/^0[^.\s]+$/.test(t);function ac(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||vo(t)}function lc(t,e,n,s){const i=en(e,n);let r;Array.isArray(n)?r=[...n]:r=[null,n];const o=s.from!==void 0?s.from:t.get();let a;const l=[];for(let c=0;c<r.length;c++)r[c]===null&&(r[c]=c===0?o:r[c-1]),ac(r[c])&&l.push(c),typeof r[c]=="string"&&r[c]!=="none"&&r[c]!=="0"&&(a=r[c]);if(i&&l.length&&a)for(let c=0;c<l.length;c++){const u=l[c];r[u]=yo(e,a)}return r}function cc({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function _n(t,e){return t[e]||t.default||t}const uc={skipAnimations:!1},jn=(t,e,n,s={})=>i=>{const r=_n(s,t)||{},o=r.delay||s.delay||0;let{elapsed:a=0}=s;a=a-rt(o);const l=lc(e,t,n,r),c=l[0],u=l[l.length-1],f=en(t,c),h=en(t,u);Xt(f===h,`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.`);let d={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...r,delay:-a,onUpdate:m=>{e.set(m),r.onUpdate&&r.onUpdate(m)},onComplete:()=>{i(),r.onComplete&&r.onComplete()}};if(cc(r)||(d={...d,...nc(t,d)}),d.duration&&(d.duration=rt(d.duration)),d.repeatDelay&&(d.repeatDelay=rt(d.repeatDelay)),!f||!h||rl.current||r.type===!1||uc.skipAnimations)return Ql(d);if(!s.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const m=Xl(e,t,d);if(m)return m}return pe(d)};function ge(t){return!!(U(t)&&t.add)}const xo=t=>/^\-?\d*\.?\d+$/.test(t);function Nn(t,e){t.indexOf(e)===-1&&t.push(e)}function On(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class kn{constructor(){this.subscriptions=[]}add(e){return Nn(this.subscriptions,e),()=>On(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const vs=new Set;function In(t,e,n){t||vs.has(e)||(console.warn(e),n&&console.warn(n),vs.add(e))}const fc=t=>!isNaN(parseFloat(t));class hc{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(s,i=!0)=>{this.prev=this.current,this.current=s;const{delta:r,timestamp:o}=I;this.lastUpdated!==o&&(this.timeDelta=r,this.lastUpdated=o,D.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()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>D.postRender(this.velocityCheck),this.velocityCheck=({timestamp:s})=>{s!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=fc(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&In(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new kn);const s=this.events[e].add(n);return e==="change"?()=>{s(),D.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=e,this.timeDelta=s}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?mo(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Vt(t,e){return new hc(t,e)}const bo=t=>e=>e.test(t),dc={test:t=>t==="auto",parse:t=>t},wo=[vt,C,H,st,wa,ba,dc],Nt=t=>wo.find(bo(t)),mc=[...wo,F,lt],pc=t=>mc.find(bo(t));function gc(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Vt(n))}function yc(t,e){const n=Ae(t,e);let{transitionEnd:s={},transition:i={},...r}=n?t.makeTargetAnimatable(n,!1):{};r={...r,...s};for(const o in r){const a=Oa(r[o]);gc(t,o,a)}}function vc(t,e,n){var s,i;const r=Object.keys(e).filter(a=>!t.hasValue(a)),o=r.length;if(o)for(let a=0;a<o;a++){const l=r[a],c=e[l];let u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(i=(s=n[l])!==null&&s!==void 0?s:t.readValue(l))!==null&&i!==void 0?i:e[l]),u!=null&&(typeof u=="string"&&(xo(u)||vo(u))?u=parseFloat(u):!pc(u)&&lt.test(c)&&(u=yo(l,c)),t.addValue(l,Vt(u,{owner:t})),n[l]===void 0&&(n[l]=u),u!==null&&t.setBaseTarget(l,u))}}function xc(t,e){return e?(e[t]||e.default||e).from:void 0}function bc(t,e,n){const s={};for(const i in t){const r=xc(i,e);if(r!==void 0)s[i]=r;else{const o=n.getValue(i);o&&(s[i]=o.get())}}return s}function wc({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Pc(t,e){const n=t.get();if(Array.isArray(e)){for(let s=0;s<e.length;s++)if(e[s]!==n)return!0}else return n!==e}function Po(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");s&&(r=s);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const f in a){const h=t.getValue(f),d=a[f];if(!h||d===void 0||u&&wc(u,f))continue;const m={delay:n,elapsed:0,..._n(r||{},f)};if(window.HandoffAppearAnimations){const b=t.getProps()[Pi];if(b){const y=window.HandoffAppearAnimations(b,f,h,D);y!==null&&(m.elapsed=y,m.isHandoff=!0)}}let p=!m.isHandoff&&!Pc(h,d);if(m.type==="spring"&&(h.getVelocity()||m.velocity)&&(p=!1),h.animation&&(p=!1),p)continue;h.start(jn(f,h,d,t.shouldReduceMotion&&yt.has(f)?{type:!1}:m));const v=h.animation;ge(l)&&(l.add(f),v.then(()=>l.remove(f))),c.push(v)}return o&&Promise.all(c).then(()=>{o&&yc(t,o)}),c}function sn(t,e,n={}){const s=Ae(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(Po(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:f}=i;return Tc(t,e,c+l,u,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[r,o]:[o,r];return l().then(()=>c())}else return Promise.all([r(),o(n.delay)])}function Tc(t,e,n=0,s=0,i=1,r){const o=[],a=(t.variantChildren.size-1)*s,l=i===1?(c=0)=>c*s:(c=0)=>a-c*s;return Array.from(t.variantChildren).sort(Sc).forEach((c,u)=>{c.notify("AnimationStart",e),o.push(sn(c,e,{...r,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function Sc(t,e){return t.sortNodePosition(e)}function Cc(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>sn(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=sn(t,e,n);else{const i=typeof e=="function"?Ae(t,e,n.custom):e;s=Promise.all(Po(t,i,n))}return s.then(()=>t.notify("AnimationComplete",e))}const Vc=[...bn].reverse(),Ac=bn.length;function Ec(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Cc(t,n,s)))}function Rc(t){let e=Ec(t);const n=Mc();let s=!0;const i=(l,c)=>{const u=Ae(t,c);if(u){const{transition:f,transitionEnd:h,...d}=u;l={...l,...d,...h}}return l};function r(l){e=l(t)}function o(l,c){const u=t.getProps(),f=t.getVariantContext(!0)||{},h=[],d=new Set;let m={},p=1/0;for(let b=0;b<Ac;b++){const y=Vc[b],g=n[y],x=u[y]!==void 0?u[y]:f[y],S=zt(x),E=y===c?g.isActive:null;E===!1&&(p=b);let R=x===f[y]&&x!==u[y]&&S;if(R&&s&&t.manuallyAnimateOnMount&&(R=!1),g.protectedKeys={...m},!g.isActive&&E===null||!x&&!g.prevProp||Te(x)||typeof x=="boolean")continue;let M=Dc(g.prevProp,x)||y===c&&g.isActive&&!R&&S||b>p&&S,z=!1;const et=Array.isArray(x)?x:[x];let q=et.reduce(i,{});E===!1&&(q={});const{prevResolvedValues:X={}}=g,B={...X,...q},bt=k=>{M=!0,d.has(k)&&(z=!0,d.delete(k)),g.needsAnimating[k]=!0};for(const k in B){const nt=q[k],Mt=X[k];if(m.hasOwnProperty(k))continue;let wt=!1;he(nt)&&he(Mt)?wt=!$i(nt,Mt):wt=nt!==Mt,wt?nt!==void 0?bt(k):d.add(k):nt!==void 0&&d.has(k)?bt(k):g.protectedKeys[k]=!0}g.prevProp=x,g.prevResolvedValues=q,g.isActive&&(m={...m,...q}),s&&t.blockInitialAnimation&&(M=!1),M&&(!R||z)&&h.push(...et.map(k=>({animation:k,options:{type:y,...l}})))}if(d.size){const b={};d.forEach(y=>{const g=t.getBaseTarget(y);g!==void 0&&(b[y]=g)}),h.push({animation:b})}let v=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(v=!1),s=!1,v?e(h):Promise.resolve()}function a(l,c,u){var f;if(n[l].isActive===c)return Promise.resolve();(f=t.variantChildren)===null||f===void 0||f.forEach(d=>{var m;return(m=d.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const h=o(u,l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n}}function Dc(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!$i(e,t):!1}function ft(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Mc(){return{animate:ft(!0),whileInView:ft(),whileHover:ft(),whileTap:ft(),whileDrag:ft(),whileFocus:ft(),exit:ft()}}class Lc extends ct{constructor(e){super(e),e.animationState||(e.animationState=Rc(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Te(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let _c=0;class jc extends ct{constructor(){super(...arguments),this.id=_c++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:s}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const r=this.node.animationState.setActive("exit",!e,{custom:s??this.node.getProps().custom});n&&!e&&r.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Nc={animation:{Feature:Lc},exit:{Feature:jc}},xs=(t,e)=>Math.abs(t-e);function Oc(t,e){const n=xs(t.x,e.x),s=xs(t.y,e.y);return Math.sqrt(n**2+s**2)}class To{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Ge(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,d=Oc(f.offset,{x:0,y:0})>=3;if(!h&&!d)return;const{point:m}=f,{timestamp:p}=I;this.history.push({...m,timestamp:p});const{onStart:v,onMove:b}=this.handlers;h||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=$e(h,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:d,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ge(f.type==="pointercancel"?this.lastMoveEventInfo:$e(h,this.transformPagePoint),this.history);this.startEvent&&d&&d(f,v),m&&m(f,v)},!Bi(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const o=Ve(e),a=$e(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=I;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(e,Ge(a,this.history)),this.removeListeners=ot(Z(this.contextWindow,"pointermove",this.handlePointerMove),Z(this.contextWindow,"pointerup",this.handlePointerUp),Z(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),tt(this.updatePoint)}}function $e(t,e){return e?{point:e(t.point)}:t}function bs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ge({point:t},e){return{point:t,delta:bs(t,So(e)),offset:bs(t,kc(e)),velocity:Ic(e,.1)}}function kc(t){return t[0]}function So(t){return t[t.length-1]}function Ic(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=So(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>rt(e)));)n--;if(!s)return{x:0,y:0};const r=J(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function W(t){return t.max-t.min}function on(t,e=0,n=.01){return Math.abs(t-e)<=n}function ws(t,e,n,s=.5){t.origin=s,t.originPoint=j(e.min,e.max,t.origin),t.scale=W(n)/W(e),(on(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=j(n.min,n.max,t.origin)-t.originPoint,(on(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ft(t,e,n,s){ws(t.x,e.x,n.x,s?s.originX:void 0),ws(t.y,e.y,n.y,s?s.originY:void 0)}function Ps(t,e,n){t.min=n.min+e.min,t.max=t.min+W(e)}function Bc(t,e,n){Ps(t.x,e.x,n.x),Ps(t.y,e.y,n.y)}function Ts(t,e,n){t.min=e.min-n.min,t.max=t.min+W(e)}function Ut(t,e,n){Ts(t.x,e.x,n.x),Ts(t.y,e.y,n.y)}function Fc(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?j(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?j(n,t,s.max):Math.min(t,n)),t}function Ss(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Uc(t,{top:e,left:n,bottom:s,right:i}){return{x:Ss(t.x,n,i),y:Ss(t.y,e,s)}}function Cs(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function zc(t,e){return{x:Cs(t.x,e.x),y:Cs(t.y,e.y)}}function Wc(t,e){let n=.5;const s=W(t),i=W(e);return i>s?n=$t(e.min,e.max-s,t.min):s>i&&(n=$t(t.min,t.max-i,e.min)),at(0,1,n)}function $c(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const rn=.35;function Gc(t=rn){return t===!1?t=0:t===!0&&(t=rn),{x:Vs(t,"left","right"),y:Vs(t,"top","bottom")}}function Vs(t,e,n){return{min:As(t,e),max:As(t,n)}}function As(t,e){return typeof t=="number"?t:t[e]||0}const Es=()=>({translate:0,scale:1,origin:0,originPoint:0}),St=()=>({x:Es(),y:Es()}),Rs=()=>({min:0,max:0}),O=()=>({x:Rs(),y:Rs()});function G(t){return[t("x"),t("y")]}function Co({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function qc({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Kc(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function qe(t){return t===void 0||t===1}function an({scale:t,scaleX:e,scaleY:n}){return!qe(t)||!qe(e)||!qe(n)}function ht(t){return an(t)||Vo(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Vo(t){return Ds(t.x)||Ds(t.y)}function Ds(t){return t&&t!=="0%"}function ye(t,e,n){const s=t-n,i=e*s;return n+i}function Ms(t,e,n,s,i){return i!==void 0&&(t=ye(t,i,s)),ye(t,n,s)+e}function ln(t,e=0,n=1,s,i){t.min=Ms(t.min,e,n,s,i),t.max=Ms(t.max,e,n,s,i)}function Ao(t,{x:e,y:n}){ln(t.x,e.translate,e.scale,e.originPoint),ln(t.y,n.translate,n.scale,n.originPoint)}function Hc(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const l=r.instance;l&&l.style&&l.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Ct(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Ao(t,o)),s&&ht(r.latestValues)&&Ct(t,r.latestValues))}e.x=Ls(e.x),e.y=Ls(e.y)}function Ls(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function it(t,e){t.min=t.min+e,t.max=t.max+e}function _s(t,e,[n,s,i]){const r=e[i]!==void 0?e[i]:.5,o=j(t.min,t.max,r);ln(t,e[n],e[s],o,e.scale)}const Yc=["x","scaleX","originX"],Xc=["y","scaleY","originY"];function Ct(t,e){_s(t.x,e,Yc),_s(t.y,e,Xc)}function Eo(t,e){return Co(Kc(t.getBoundingClientRect(),e))}function Qc(t,e,n){const s=Eo(t,n),{scroll:i}=e;return i&&(it(s.x,i.offset.x),it(s.y,i.offset.y)),s}const Ro=({current:t})=>t?t.ownerDocument.defaultView:null,Zc=new WeakMap;class Jc{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=O(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ve(u,"page").point)},r=(u,f)=>{const{drag:h,dragPropagation:d,onDragStart:m}=this.getProps();if(h&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ui(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),G(v=>{let b=this.getAxisMotionValue(v).get()||0;if(H.test(b)){const{projection:y}=this.visualElement;if(y&&y.layout){const g=y.layout.layoutBox[v];g&&(b=W(g)*(parseFloat(b)/100))}}this.originPoint[v]=b}),m&&D.update(()=>m(u,f),!1,!0);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(u,f)=>{const{dragPropagation:h,dragDirectionLock:d,onDirectionLock:m,onDrag:p}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:v}=f;if(d&&this.currentDirection===null){this.currentDirection=tu(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),p&&p(u,f)},a=(u,f)=>this.stop(u,f),l=()=>G(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new To(e,{onSessionStart:i,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Ro(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&D.update(()=>r(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!se(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=Fc(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,r=this.constraints;n&&Pt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Uc(i.layoutBox,n):this.constraints=!1,this.elastic=Gc(s),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&G(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=$c(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Pt(e))return!1;const s=e.current;K(s!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Qc(s,i.root,this.visualElement.getTransformPagePoint());let o=zc(i.layout.layoutBox,r);if(n){const a=n(qc(o));this.hasMutatedConstraints=!!a,a&&(o=Co(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=G(u=>{if(!se(u,n,this.currentDirection))return;let f=l&&l[u]||{};o&&(f={min:0,max:0});const h=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[u]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...f};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return s.start(jn(e,s,0,n))}stopAnimation(){G(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){G(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){G(n=>{const{drag:s}=this.getProps();if(!se(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];r.set(e[n]-j(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Pt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};G(o=>{const a=this.getAxisMotionValue(o);if(a){const l=a.get();i[o]=Wc({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),G(o=>{if(!se(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(j(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;Zc.set(this.visualElement,this);const e=this.visualElement.current,n=Z(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();Pt(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),s();const o=Q(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(G(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=rn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function se(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function tu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class eu extends ct{constructor(e){super(e),this.removeGroupControls=N,this.removeListeners=N,this.controls=new Jc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||N}unmount(){this.removeGroupControls(),this.removeListeners()}}const js=t=>(e,n)=>{t&&D.update(()=>t(e,n))};class nu extends ct{constructor(){super(...arguments),this.removePointerDownListener=N}onPointerDown(e){this.session=new To(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ro(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:js(e),onStart:js(n),onMove:s,onEnd:(r,o)=>{delete this.session,i&&D.update(()=>i(r,o))}}}mount(){this.removePointerDownListener=Z(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function su(){const t=T.useContext(vn);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=T.useId();return T.useEffect(()=>s(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const ae={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ns(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ot={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;const n=Ns(t,e.target.x),s=Ns(t,e.target.y);return`${n}% ${s}%`}},iu={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=lt.parse(t);if(i.length>5)return s;const r=lt.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=j(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),r(i)}};class ou extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;da(ru),r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ae.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,o=s.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||D.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Do(t){const[e,n]=su(),s=T.useContext(Si);return T.createElement(ou,{...t,layoutGroup:s,switchLayoutGroup:T.useContext(Ci),isPresent:e,safeToRemove:n})}const ru={borderRadius:{...Ot,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomLeftRadius:Ot,borderBottomRightRadius:Ot,boxShadow:iu},Mo=["TopLeft","TopRight","BottomLeft","BottomRight"],au=Mo.length,Os=t=>typeof t=="string"?parseFloat(t):t,ks=t=>typeof t=="number"||C.test(t);function lu(t,e,n,s,i,r){i?(t.opacity=j(0,n.opacity!==void 0?n.opacity:1,cu(s)),t.opacityExit=j(e.opacity!==void 0?e.opacity:1,0,uu(s))):r&&(t.opacity=j(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;o<au;o++){const a=`border${Mo[o]}Radius`;let l=Is(e,a),c=Is(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||ks(l)===ks(c)?(t[a]=Math.max(j(Os(l),Os(c),s),0),(H.test(c)||H.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=j(e.rotate||0,n.rotate||0,s))}function Is(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const cu=Lo(0,.5,Ji),uu=Lo(.5,.95,N);function Lo(t,e,n){return s=>s<t?0:s>e?1:n($t(t,e,s))}function Bs(t,e){t.min=e.min,t.max=e.max}function $(t,e){Bs(t.x,e.x),Bs(t.y,e.y)}function Fs(t,e,n,s,i){return t-=e,t=ye(t,1/n,s),i!==void 0&&(t=ye(t,1/i,s)),t}function fu(t,e=0,n=1,s=.5,i,r=t,o=t){if(H.test(e)&&(e=parseFloat(e),e=j(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=j(r.min,r.max,s);t===r&&(a-=e),t.min=Fs(t.min,e,n,a,i),t.max=Fs(t.max,e,n,a,i)}function Us(t,e,[n,s,i],r,o){fu(t,e[n],e[s],e[i],e.scale,r,o)}const hu=["x","scaleX","originX"],du=["y","scaleY","originY"];function zs(t,e,n,s){Us(t.x,e,hu,n?n.x:void 0,s?s.x:void 0),Us(t.y,e,du,n?n.y:void 0,s?s.y:void 0)}function Ws(t){return t.translate===0&&t.scale===1}function _o(t){return Ws(t.x)&&Ws(t.y)}function mu(t,e){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}function jo(t,e){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)}function $s(t){return W(t.x)/W(t.y)}class pu{constructor(){this.members=[]}add(e){Nn(this.members,e),e.scheduleRender()}remove(e){if(On(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){s=r;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Gs(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y;if((i||r)&&(s=`translate3d(${i}px, ${r}px, 0) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:c,rotateY:u}=n;l&&(s+=`rotate(${l}deg) `),c&&(s+=`rotateX(${c}deg) `),u&&(s+=`rotateY(${u}deg) `)}const o=t.x.scale*e.x,a=t.y.scale*e.y;return(o!==1||a!==1)&&(s+=`scale(${o}, ${a})`),s||"none"}const gu=(t,e)=>t.depth-e.depth;class yu{constructor(){this.children=[],this.isDirty=!1}add(e){Nn(this.children,e),this.isDirty=!0}remove(e){On(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(gu),this.isDirty=!1,this.children.forEach(e)}}function vu(t,e){const n=performance.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(tt(s),t(r-e))};return D.read(s,!0),()=>tt(s)}function xu(t){window.MotionDebug&&window.MotionDebug.record(t)}function bu(t){return t instanceof SVGElement&&t.tagName!=="svg"}function wu(t,e,n){const s=U(t)?t:Vt(t);return s.start(jn("",s,e,n)),s.animation}const qs=["","X","Y","Z"],Pu={visibility:"hidden"},Ks=1e3;let Tu=0;const dt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function No({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=Tu++,this.animationId=0,this.children=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=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,dt.totalNodes=dt.resolvedTargetDeltas=dt.recalculatedProjection=0,this.nodes.forEach(Vu),this.nodes.forEach(Mu),this.nodes.forEach(Lu),this.nodes.forEach(Au),xu(dt)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new yu)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new kn),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=bu(o),this.instance=o;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let f;const h=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=vu(h,250),ae.hasAnimatedSinceResize&&(ae.hasAnimatedSinceResize=!1,this.nodes.forEach(Ys))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:d,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||ku,{onLayoutAnimationStart:v,onLayoutAnimationComplete:b}=u.getProps(),y=!this.targetLayout||!jo(this.targetLayout,m)||d,g=!h&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||h&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,g);const x={..._n(p,"layout"),onPlay:v,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else h||Ys(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,tt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(_u),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Hs);return}this.isUpdating||this.nodes.forEach(Ru),this.isUpdating=!1,this.nodes.forEach(Du),this.nodes.forEach(Su),this.nodes.forEach(Cu),this.clearAllSnapshots();const a=performance.now();I.delta=at(0,1e3/60,a-I.timestamp),I.timestamp=a,I.isProcessing=!0,Oe.update.process(I),Oe.preRender.process(I),Oe.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Eu),this.sharedNodes.forEach(ju)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=O(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:o,isRoot:s(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!_o(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&(a||ht(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),Iu(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return O();const a=o.measureViewportBox(),{scroll:l}=this.root;return l&&(it(a.x,l.offset.x),it(a.y,l.offset.y)),a}removeElementScroll(o){const a=O();$(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:f}=c;if(c!==this.root&&u&&f.layoutScroll){if(u.isRoot){$(a,o);const{scroll:h}=this.root;h&&(it(a.x,-h.offset.x),it(a.y,-h.offset.y))}it(a.x,u.offset.x),it(a.y,u.offset.y)}}return a}applyTransform(o,a=!1){const l=O();$(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ct(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ht(u.latestValues)&&Ct(l,u.latestValues)}return ht(this.latestValues)&&Ct(l,this.latestValues),l}removeTransform(o){const a=O();$(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!ht(c.latestValues))continue;an(c.latestValues)&&c.updateSnapshot();const u=O(),f=c.measurePageBox();$(u,f),zs(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return ht(this.latestValues)&&zs(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){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}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=I.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=O(),this.relativeTargetOrigin=O(),Ut(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),$(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=O(),this.targetWithTransforms=O()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Bc(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$(this.target,this.layout.layoutBox),Ao(this.target,this.targetDelta)):$(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=O(),this.relativeTargetOrigin=O(),Ut(this.relativeTargetOrigin,this.target,d.target),$(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}dt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||an(this.parent.latestValues)||Vo(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===I.timestamp&&(c=!1),c)return;const{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;$(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;Hc(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:m}=a;if(!m){this.projectionTransform&&(this.projectionDelta=St(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=St(),this.projectionDeltaWithTransform=St());const p=this.projectionTransform;Ft(this.projectionDelta,this.layoutCorrected,m,this.latestValues),this.projectionTransform=Gs(this.projectionDelta,this.treeScale),(this.projectionTransform!==p||this.treeScale.x!==h||this.treeScale.y!==d)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),dt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=St();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=O(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,p=d!==m,v=this.getStack(),b=!v||v.members.length<=1,y=!!(p&&!b&&this.options.crossfade===!0&&!this.path.some(Ou));this.animationProgress=0;let g;this.mixTargetDelta=x=>{const S=x/1e3;Xs(f.x,o.x,S),Xs(f.y,o.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ut(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Nu(this.relativeTarget,this.relativeTargetOrigin,h,S),g&&mu(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=O()),$(g,this.relativeTarget)),p&&(this.animationValues=u,lu(u,c,this.latestValues,S,y,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(tt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{ae.hasAnimatedSinceResize=!0,this.currentAnimation=wu(0,Ks,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ks),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Oo(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||O();const f=W(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=W(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}$(a,l),Ct(a,u),Ft(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new pu),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let u=0;u<qs.length;u++){const f="rotate"+qs[u];l[f]&&(c[f]=l[f],o.setStaticValue(f,0))}o.render();for(const u in c)o.setStaticValue(u,c[u]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Pu;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=re(o==null?void 0:o.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=re(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!ht(this.latestValues)&&(p.transform=u?u({},""):"none",this.hasProjected=!1),p}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=Gs(this.projectionDeltaWithTransform,this.treeScale,h),u&&(c.transform=u(h,c.transform));const{x:d,y:m}=this.projectionDelta;c.transformOrigin=`${d.origin*100}% ${m.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const p in ue){if(h[p]===void 0)continue;const{correct:v,applyTo:b}=ue[p],y=c.transform==="none"?h[p]:v(h[p],f);if(b){const g=b.length;for(let x=0;x<g;x++)c[b[x]]=y}else c[p]=y}return this.options.layoutId&&(c.pointerEvents=f===this?re(o==null?void 0:o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Hs),this.root.sharedNodes.clear()}}}function Su(t){t.updateLayout()}function Cu(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;r==="size"?G(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],d=W(h);h.min=s[f].min,h.max=h.min+d}):Oo(r,n.layoutBox,s)&&G(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],d=W(s[f]);h.max=h.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+d)});const a=St();Ft(a,s,n.layoutBox);const l=St();o?Ft(l,t.applyTransform(i,!0),n.measuredBox):Ft(l,s,n.layoutBox);const c=!_o(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:d}=f;if(h&&d){const m=O();Ut(m,n.layoutBox,h.layoutBox);const p=O();Ut(p,s,d.layoutBox),jo(m,p)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=m,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Vu(t){dt.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))}function Au(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Eu(t){t.clearSnapshot()}function Hs(t){t.clearMeasurements()}function Ru(t){t.isLayoutDirty=!1}function Du(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ys(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Mu(t){t.resolveTargetDelta()}function Lu(t){t.calcProjection()}function _u(t){t.resetRotation()}function ju(t){t.removeLeadSnapshot()}function Xs(t,e,n){t.translate=j(e.translate,0,n),t.scale=j(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Qs(t,e,n,s){t.min=j(e.min,n.min,s),t.max=j(e.max,n.max,s)}function Nu(t,e,n,s){Qs(t.x,e.x,n.x,s),Qs(t.y,e.y,n.y,s)}function Ou(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const ku={duration:.45,ease:[.4,0,.1,1]},Zs=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),Js=Zs("applewebkit/")&&!Zs("chrome/")?Math.round:N;function ti(t){t.min=Js(t.min),t.max=Js(t.max)}function Iu(t){ti(t.x),ti(t.y)}function Oo(t,e,n){return t==="position"||t==="preserve-aspect"&&!on($s(e),$s(n),.2)}const Bu=No({attachResizeListener:(t,e)=>Q(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ke={current:void 0},ko=No({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ke.current){const t=new Bu({});t.mount(window),t.setOptions({layoutScroll:!0}),Ke.current=t}return Ke.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Fu={pan:{Feature:nu},drag:{Feature:eu,ProjectionNode:ko,MeasureLayout:Do}},Uu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function zu(t){const e=Uu.exec(t);if(!e)return[,];const[,n,s]=e;return[n,s]}const Wu=4;function cn(t,e,n=1){K(n<=Wu,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[s,i]=zu(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return xo(o)?parseFloat(o):o}else return Qe(i)?cn(i,e,n+1):i}function $u(t,{...e},n){const s=t.current;if(!(s instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const r=i.get();if(!Qe(r))return;const o=cn(r,s);o&&i.set(o)});for(const i in e){const r=e[i];if(!Qe(r))continue;const o=cn(r,s);o&&(e[i]=o,n||(n={}),n[i]===void 0&&(n[i]=r))}return{target:e,transitionEnd:n}}const Gu=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Io=t=>Gu.has(t),qu=t=>Object.keys(t).some(Io),ie=t=>t===vt||t===C,ei=(t,e)=>parseFloat(t.split(", ")[e]),ni=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/);if(i)return ei(i[1],e);{const r=s.match(/^matrix\((.+)\)$/);return r?ei(r[1],t):0}},Ku=new Set(["x","y","z"]),Hu=Kt.filter(t=>!Ku.has(t));function Yu(t){const e=[];return Hu.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const At={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:ni(4,13),y:ni(5,14)};At.translateX=At.x;At.translateY=At.y;const Xu=(t,e,n)=>{const s=e.measureViewportBox(),i=e.current,r=getComputedStyle(i),{display:o}=r,a={};o==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(c=>{a[c]=At[c](s,r)}),e.render();const l=e.measureViewportBox();return n.forEach(c=>{const u=e.getValue(c);u&&u.jump(a[c]),t[c]=At[c](l,r)}),t},Qu=(t,e,n={},s={})=>{e={...e},s={...s};const i=Object.keys(e).filter(Io);let r=[],o=!1;const a=[];if(i.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let u=n[l],f=Nt(u);const h=e[l];let d;if(he(h)){const m=h.length,p=h[0]===null?1:0;u=h[p],f=Nt(u);for(let v=p;v<m&&h[v]!==null;v++)d?K(Nt(h[v])===d,"All keyframes must be of the same type"):(d=Nt(h[v]),K(d===f||ie(f)&&ie(d),"Keyframes must be of the same dimension as the current value"))}else d=Nt(h);if(f!==d)if(ie(f)&&ie(d)){const m=c.get();typeof m=="string"&&c.set(parseFloat(m)),typeof h=="string"?e[l]=parseFloat(h):Array.isArray(h)&&d===C&&(e[l]=h.map(parseFloat))}else f!=null&&f.transform&&(d!=null&&d.transform)&&(u===0||h===0)?u===0?c.set(d.transform(u)):e[l]=f.transform(h):(o||(r=Yu(t),o=!0),a.push(l),s[l]=s[l]!==void 0?s[l]:e[l],c.jump(h))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,c=Xu(e,t,a);return r.length&&r.forEach(([u,f])=>{t.getValue(u).set(f)}),t.render(),Pe&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:s}}else return{target:e,transitionEnd:s}};function Zu(t,e,n,s){return qu(e)?Qu(t,e,n,s):{target:e,transitionEnd:s}}const Ju=(t,e,n,s)=>{const i=$u(t,e,s);return e=i.target,s=i.transitionEnd,Zu(t,e,n,s)},un={current:null},Bo={current:!1};function tf(){if(Bo.current=!0,!!Pe)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>un.current=t.matches;t.addListener(e),e()}else un.current=!1}function ef(t,e,n){const{willChange:s}=e;for(const i in e){const r=e[i],o=n[i];if(U(r))t.addValue(i,r),ge(s)&&s.add(i),process.env.NODE_ENV==="development"&&In(r.version==="10.18.0",`Attempting to mix Framer Motion versions ${r.version} with 10.18.0 may not work as expected.`);else if(U(o))t.addValue(i,Vt(r,{owner:t})),ge(s)&&s.remove(i);else if(o!==r)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(r)}else{const a=t.getStaticValue(i);t.addValue(i,Vt(a!==void 0?a:r,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const si=new WeakMap,Fo=Object.keys(Wt),nf=Fo.length,ii=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],sf=wn.length;class of{constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>D.render(this.render,!1,!0);const{latestValues:a,renderState:l}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=Se(n),this.isVariantNode=Ti(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(n,{});for(const f in u){const h=u[f];a[f]!==void 0&&U(h)&&(h.set(a[f],!1),ge(c)&&c.add(f))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,si.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,s)=>this.bindToMotionValue(s,n)),Bo.current||tf(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:un.current,process.env.NODE_ENV!=="production"&&In(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)}unmount(){si.delete(this.current),this.projection&&this.projection.unmount(),tt(this.notifyUpdate),tt(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const s=yt.has(e),i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&D.update(this.notifyUpdate,!1,!0),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),r()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},s,i,r){let o,a;if(process.env.NODE_ENV!=="production"&&i&&s){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Xt(!1,l):K(!1,l)}for(let l=0;l<nf;l++){const c=Fo[l],{isEnabled:u,Feature:f,ProjectionNode:h,MeasureLayout:d}=Wt[c];h&&(o=h),u(n)&&(!this.features[c]&&f&&(this.features[c]=new f(this)),d&&(a=d))}if((this.type==="html"||this.type==="svg")&&!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:u,dragConstraints:f,layoutScroll:h,layoutRoot:d}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||f&&Pt(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:r,layoutScroll:h,layoutRoot:d})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):O()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ii.length;s++){const i=ii[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r=e["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=ef(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const s=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(s.initial=this.props.initial),s}const n={};for(let s=0;s<sf;s++){const i=wn[s],r=this.props[i];(zt(r)||r===!1)&&(n[i]=r)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Vt(n,{owner:this}),this.addValue(e,s)),s}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props,i=typeof s=="string"||typeof s=="object"?(n=En(this.props,s))===null||n===void 0?void 0:n[e]:void 0;if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!U(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new kn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Uo extends of{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...s},{transformValues:i},r){let o=bc(s,e||{},this);if(i&&(n&&(n=i(n)),s&&(s=i(s)),o&&(o=i(o))),r){vc(this,s,o);const a=Ju(this,s,o,n);n=a.transitionEnd,s=a.target}return{transition:e,transitionEnd:n,...s}}}function rf(t){return window.getComputedStyle(t)}class af extends Uo{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(yt.has(n)){const s=Ln(n);return s&&s.default||0}else{const s=rf(e),i=(Ei(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Eo(e,n)}build(e,n,s,i){Tn(e,n,s,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return An(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;U(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,s,i){ji(e,n,s,i)}}class lf extends Uo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(yt.has(n)){const s=Ln(n);return s&&s.default||0}return n=Ni.has(n)?n:xn(n),e.getAttribute(n)}measureInstanceViewportBox(){return O()}scrapeMotionValuesFromProps(e,n){return ki(e,n)}build(e,n,s,i){Cn(e,n,s,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,s,i){Oi(e,n,s,i)}mount(e){this.isSVGTag=Vn(e.tagName),super.mount(e)}}const cf=(t,e)=>Pn(t)?new lf(e,{enableHardwareAcceleration:!1}):new af(e,{enableHardwareAcceleration:!0}),uf={layout:{ProjectionNode:ko,MeasureLayout:Do}},ff={...Nc,...sl,...Fu,...uf},Bn=fa((t,e)=>$a(t,e,ff,cf));/**
5
+ * @remix-run/router v1.14.2
6
+ *
7
+ * Copyright (c) Remix Software Inc.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE.md file in the root directory of this source tree.
11
+ *
12
+ * @license MIT
13
+ */function Gt(){return Gt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Gt.apply(this,arguments)}var pt;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(pt||(pt={}));const oi="popstate";function hf(t){t===void 0&&(t={});function e(s,i){let{pathname:r,search:o,hash:a}=s.location;return fn("",{pathname:r,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(s,i){return typeof i=="string"?i:qt(i)}return mf(e,n,null,t)}function L(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function xt(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function df(){return Math.random().toString(36).substr(2,8)}function ri(t,e){return{usr:t.state,key:t.key,idx:e}}function fn(t,e,n,s){return n===void 0&&(n=null),Gt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ee(e):e,{state:n,key:e&&e.key||s||df()})}function qt(t){let{pathname:e="/",search:n="",hash:s=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(e+=s.charAt(0)==="#"?s:"#"+s),e}function Ee(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let s=t.indexOf("?");s>=0&&(e.search=t.substr(s),t=t.substr(0,s)),t&&(e.pathname=t)}return e}function mf(t,e,n,s){s===void 0&&(s={});let{window:i=document.defaultView,v5Compat:r=!1}=s,o=i.history,a=pt.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Gt({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function f(){a=pt.Pop;let v=u(),b=v==null?null:v-c;c=v,l&&l({action:a,location:p.location,delta:b})}function h(v,b){a=pt.Push;let y=fn(p.location,v,b);n&&n(y,v),c=u()+1;let g=ri(y,c),x=p.createHref(y);try{o.pushState(g,"",x)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;i.location.assign(x)}r&&l&&l({action:a,location:p.location,delta:1})}function d(v,b){a=pt.Replace;let y=fn(p.location,v,b);n&&n(y,v),c=u();let g=ri(y,c),x=p.createHref(y);o.replaceState(g,"",x),r&&l&&l({action:a,location:p.location,delta:0})}function m(v){let b=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof v=="string"?v:qt(v);return L(b,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,b)}let p={get action(){return a},get location(){return t(i,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(oi,f),l=v,()=>{i.removeEventListener(oi,f),l=null}},createHref(v){return e(i,v)},createURL:m,encodeLocation(v){let b=m(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:d,go(v){return o.go(v)}};return p}var ai;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(ai||(ai={}));function li(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,s]=pf(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let r=i[0],o=r.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:s.reduce((c,u,f)=>{let{paramName:h,isOptional:d}=u;if(h==="*"){let p=a[f]||"";o=r.slice(0,r.length-p.length).replace(/(.)\/+$/,"$1")}const m=a[f];return d&&!m?c[h]=void 0:c[h]=gf(m||"",h),c},{}),pathname:r,pathnameBase:o,pattern:t}}function pf(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),xt(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let s=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(s.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(s.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),s]}function gf(t,e){try{return decodeURIComponent(t)}catch(n){return xt(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),t}}function gt(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,s=t.charAt(n);return s&&s!=="/"?null:t.slice(n)||"/"}function yf(t,e){e===void 0&&(e="/");let{pathname:n,search:s="",hash:i=""}=typeof t=="string"?Ee(t):t;return{pathname:n?n.startsWith("/")?n:vf(n,e):e,search:bf(s),hash:wf(i)}}function vf(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function He(t,e,n,s){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function xf(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function zo(t,e){let n=xf(t);return e?n.map((s,i)=>i===t.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function Wo(t,e,n,s){s===void 0&&(s=!1);let i;typeof t=="string"?i=Ee(t):(i=Gt({},t),L(!i.pathname||!i.pathname.includes("?"),He("?","pathname","search",i)),L(!i.pathname||!i.pathname.includes("#"),He("#","pathname","hash",i)),L(!i.search||!i.search.includes("#"),He("#","search","hash",i)));let r=t===""||i.pathname==="",o=r?"/":i.pathname,a;if(o==null)a=n;else{let f=e.length-1;if(!s&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}a=f>=0?e[f]:"/"}let l=yf(i,a),c=o&&o!=="/"&&o.endsWith("/"),u=(r||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Fn=t=>t.join("/").replace(/\/\/+/g,"/"),bf=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,wf=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,$o=["post","put","patch","delete"];new Set($o);const Pf=["get",...$o];new Set(Pf);/**
14
+ * React Router v6.21.3
15
+ *
16
+ * Copyright (c) Remix Software Inc.
17
+ *
18
+ * This source code is licensed under the MIT license found in the
19
+ * LICENSE.md file in the root directory of this source tree.
20
+ *
21
+ * @license MIT
22
+ */function ve(){return ve=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ve.apply(this,arguments)}const Re=w.createContext(null);process.env.NODE_ENV!=="production"&&(Re.displayName="DataRouter");const Go=w.createContext(null);process.env.NODE_ENV!=="production"&&(Go.displayName="DataRouterState");const Tf=w.createContext(null);process.env.NODE_ENV!=="production"&&(Tf.displayName="Await");const Y=w.createContext(null);process.env.NODE_ENV!=="production"&&(Y.displayName="Navigation");const De=w.createContext(null);process.env.NODE_ENV!=="production"&&(De.displayName="Location");const Rt=w.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(Rt.displayName="Route");const Sf=w.createContext(null);process.env.NODE_ENV!=="production"&&(Sf.displayName="RouteError");function Cf(t,e){let{relative:n}=e===void 0?{}:e;Me()||(process.env.NODE_ENV!=="production"?L(!1,"useHref() may be used only in the context of a <Router> component."):L(!1));let{basename:s,navigator:i}=w.useContext(Y),{hash:r,pathname:o,search:a}=Zt(t,{relative:n}),l=o;return s!=="/"&&(l=o==="/"?s:Fn([s,o])),i.createHref({pathname:l,search:a,hash:r})}function Me(){return w.useContext(De)!=null}function Dt(){return Me()||(process.env.NODE_ENV!=="production"?L(!1,"useLocation() may be used only in the context of a <Router> component."):L(!1)),w.useContext(De).location}const qo="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ko(t){w.useContext(Y).static||w.useLayoutEffect(t)}function Vf(){let{isDataRoute:t}=w.useContext(Rt);return t?Mf():Af()}function Af(){Me()||(process.env.NODE_ENV!=="production"?L(!1,"useNavigate() may be used only in the context of a <Router> component."):L(!1));let t=w.useContext(Re),{basename:e,future:n,navigator:s}=w.useContext(Y),{matches:i}=w.useContext(Rt),{pathname:r}=Dt(),o=JSON.stringify(zo(i,n.v7_relativeSplatPath)),a=w.useRef(!1);return Ko(()=>{a.current=!0}),w.useCallback(function(c,u){if(u===void 0&&(u={}),process.env.NODE_ENV!=="production"&&xt(a.current,qo),!a.current)return;if(typeof c=="number"){s.go(c);return}let f=Wo(c,JSON.parse(o),r,u.relative==="path");t==null&&e!=="/"&&(f.pathname=f.pathname==="/"?e:Fn([e,f.pathname])),(u.replace?s.replace:s.push)(f,u.state,u)},[e,s,o,r,t])}function Zt(t,e){let{relative:n}=e===void 0?{}:e,{future:s}=w.useContext(Y),{matches:i}=w.useContext(Rt),{pathname:r}=Dt(),o=JSON.stringify(zo(i,s.v7_relativeSplatPath));return w.useMemo(()=>Wo(t,JSON.parse(o),r,n==="path"),[t,o,r,n])}var Ho=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Ho||{}),Un=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Un||{});function Yo(t){return t+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Ef(t){let e=w.useContext(Re);return e||(process.env.NODE_ENV!=="production"?L(!1,Yo(t)):L(!1)),e}function Rf(t){let e=w.useContext(Rt);return e||(process.env.NODE_ENV!=="production"?L(!1,Yo(t)):L(!1)),e}function Xo(t){let e=Rf(t),n=e.matches[e.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?L(!1,t+' can only be used on routes that contain a unique "id"'):L(!1)),n.route.id}function Df(){return Xo(Un.UseRouteId)}function Mf(){let{router:t}=Ef(Ho.UseNavigateStable),e=Xo(Un.UseNavigateStable),n=w.useRef(!1);return Ko(()=>{n.current=!0}),w.useCallback(function(i,r){r===void 0&&(r={}),process.env.NODE_ENV!=="production"&&xt(n.current,qo),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,ve({fromRouteId:e},r)))},[t,e])}function Lf(t){let{basename:e="/",children:n=null,location:s,navigationType:i=pt.Pop,navigator:r,static:o=!1,future:a}=t;Me()&&(process.env.NODE_ENV!=="production"?L(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):L(!1));let l=e.replace(/^\/*/,"/"),c=w.useMemo(()=>({basename:l,navigator:r,static:o,future:ve({v7_relativeSplatPath:!1},a)}),[l,a,r,o]);typeof s=="string"&&(s=Ee(s));let{pathname:u="/",search:f="",hash:h="",state:d=null,key:m="default"}=s,p=w.useMemo(()=>{let v=gt(u,l);return v==null?null:{location:{pathname:v,search:f,hash:h,state:d,key:m},navigationType:i}},[l,u,f,h,d,m,i]);return process.env.NODE_ENV!=="production"&&xt(p!=null,'<Router basename="'+l+'"> is not able to match the URL '+('"'+u+f+h+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),p==null?null:w.createElement(Y.Provider,{value:c},w.createElement(De.Provider,{children:n,value:p}))}new Promise(()=>{});/**
23
+ * React Router DOM v6.21.3
24
+ *
25
+ * Copyright (c) Remix Software Inc.
26
+ *
27
+ * This source code is licensed under the MIT license found in the
28
+ * LICENSE.md file in the root directory of this source tree.
29
+ *
30
+ * @license MIT
31
+ */function Et(){return Et=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Et.apply(this,arguments)}function zn(t,e){if(t==null)return{};var n={},s=Object.keys(t),i,r;for(r=0;r<s.length;r++)i=s[r],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}const le="get",ce="application/x-www-form-urlencoded";function Le(t){return t!=null&&typeof t.tagName=="string"}function _f(t){return Le(t)&&t.tagName.toLowerCase()==="button"}function jf(t){return Le(t)&&t.tagName.toLowerCase()==="form"}function Nf(t){return Le(t)&&t.tagName.toLowerCase()==="input"}function Of(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function kf(t,e){return t.button===0&&(!e||e==="_self")&&!Of(t)}let oe=null;function If(){if(oe===null)try{new FormData(document.createElement("form"),0),oe=!1}catch{oe=!0}return oe}const Bf=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ye(t){return t!=null&&!Bf.has(t)?(process.env.NODE_ENV!=="production"&&xt(!1,'"'+t+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+ce+'"')),null):t}function Ff(t,e){let n,s,i,r,o;if(jf(t)){let a=t.getAttribute("action");s=a?gt(a,e):null,n=t.getAttribute("method")||le,i=Ye(t.getAttribute("enctype"))||ce,r=new FormData(t)}else if(_f(t)||Nf(t)&&(t.type==="submit"||t.type==="image")){let a=t.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||a.getAttribute("action");if(s=l?gt(l,e):null,n=t.getAttribute("formmethod")||a.getAttribute("method")||le,i=Ye(t.getAttribute("formenctype"))||Ye(a.getAttribute("enctype"))||ce,r=new FormData(a,t),!If()){let{name:c,type:u,value:f}=t;if(u==="image"){let h=c?c+".":"";r.append(h+"x","0"),r.append(h+"y","0")}else c&&r.append(c,f)}}else{if(Le(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=le,s=null,i=ce,o=t}return r&&i==="text/plain"&&(o=r,r=void 0),{action:s,method:n.toLowerCase(),encType:i,formData:r,body:o}}const Uf=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],zf=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Wf=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],Qo=w.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Qo.displayName="ViewTransition");const $f=w.createContext(new Map);process.env.NODE_ENV!=="production"&&($f.displayName="Fetchers");const Gf="startTransition",ci=w[Gf];function qf(t){let{basename:e,children:n,future:s,window:i}=t,r=w.useRef();r.current==null&&(r.current=hf({window:i,v5Compat:!0}));let o=r.current,[a,l]=w.useState({action:o.action,location:o.location}),{v7_startTransition:c}=s||{},u=w.useCallback(f=>{c&&ci?ci(()=>l(f)):l(f)},[l,c]);return w.useLayoutEffect(()=>o.listen(u),[o,u]),w.createElement(Lf,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:o,future:s})}process.env.NODE_ENV;const Kf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Hf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Wn=w.forwardRef(function(e,n){let{onClick:s,relative:i,reloadDocument:r,replace:o,state:a,target:l,to:c,preventScrollReset:u,unstable_viewTransition:f}=e,h=zn(e,Uf),{basename:d}=w.useContext(Y),m,p=!1;if(typeof c=="string"&&Hf.test(c)&&(m=c,Kf))try{let g=new URL(window.location.href),x=c.startsWith("//")?new URL(g.protocol+c):new URL(c),S=gt(x.pathname,d);x.origin===g.origin&&S!=null?c=S+x.search+x.hash:p=!0}catch{process.env.NODE_ENV!=="production"&&xt(!1,'<Link to="'+c+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let v=Cf(c,{relative:i}),b=Zf(c,{replace:o,state:a,target:l,preventScrollReset:u,relative:i,unstable_viewTransition:f});function y(g){s&&s(g),g.defaultPrevented||b(g)}return w.createElement("a",Et({},h,{href:m||v,onClick:p||r?s:y,ref:n,target:l}))});process.env.NODE_ENV!=="production"&&(Wn.displayName="Link");const Yf=w.forwardRef(function(e,n){let{"aria-current":s="page",caseSensitive:i=!1,className:r="",end:o=!1,style:a,to:l,unstable_viewTransition:c,children:u}=e,f=zn(e,zf),h=Zt(l,{relative:f.relative}),d=Dt(),m=w.useContext(Go),{navigator:p,basename:v}=w.useContext(Y),b=m!=null&&ih(h)&&c===!0,y=p.encodeLocation?p.encodeLocation(h).pathname:h.pathname,g=d.pathname,x=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(g=g.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&v&&(x=gt(x,v)||x);const S=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let E=g===y||!o&&g.startsWith(y)&&g.charAt(S)==="/",R=x!=null&&(x===y||!o&&x.startsWith(y)&&x.charAt(y.length)==="/"),A={isActive:E,isPending:R,isTransitioning:b},M=E?s:void 0,z;typeof r=="function"?z=r(A):z=[r,E?"active":null,R?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let et=typeof a=="function"?a(A):a;return w.createElement(Wn,Et({},f,{"aria-current":M,className:z,ref:n,style:et,to:l,unstable_viewTransition:c}),typeof u=="function"?u(A):u)});process.env.NODE_ENV!=="production"&&(Yf.displayName="NavLink");const Xf=w.forwardRef((t,e)=>{let{fetcherKey:n,navigate:s,reloadDocument:i,replace:r,state:o,method:a=le,action:l,onSubmit:c,relative:u,preventScrollReset:f,unstable_viewTransition:h}=t,d=zn(t,Wf),m=nh(),p=sh(l,{relative:u}),v=a.toLowerCase()==="get"?"get":"post",b=y=>{if(c&&c(y),y.defaultPrevented)return;y.preventDefault();let g=y.nativeEvent.submitter,x=(g==null?void 0:g.getAttribute("formmethod"))||a;m(g||y.currentTarget,{fetcherKey:n,method:x,navigate:s,replace:r,state:o,relative:u,preventScrollReset:f,unstable_viewTransition:h})};return w.createElement("form",Et({ref:e,method:v,action:p,onSubmit:i?c:b},d))});process.env.NODE_ENV!=="production"&&(Xf.displayName="Form");process.env.NODE_ENV;var xe;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(xe||(xe={}));var ui;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(ui||(ui={}));function Qf(t){return t+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function Zo(t){let e=w.useContext(Re);return e||(process.env.NODE_ENV!=="production"?L(!1,Qf(t)):L(!1)),e}function Zf(t,e){let{target:n,replace:s,state:i,preventScrollReset:r,relative:o,unstable_viewTransition:a}=e===void 0?{}:e,l=Vf(),c=Dt(),u=Zt(t,{relative:o});return w.useCallback(f=>{if(kf(f,n)){f.preventDefault();let h=s!==void 0?s:qt(c)===qt(u);l(t,{replace:h,state:i,preventScrollReset:r,relative:o,unstable_viewTransition:a})}},[c,l,u,s,i,n,t,r,o,a])}function Jf(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let th=0,eh=()=>"__"+String(++th)+"__";function nh(){let{router:t}=Zo(xe.UseSubmit),{basename:e}=w.useContext(Y),n=Df();return w.useCallback(function(s,i){i===void 0&&(i={}),Jf();let{action:r,method:o,encType:a,formData:l,body:c}=Ff(s,e);if(i.navigate===!1){let u=i.fetcherKey||eh();t.fetch(u,n,i.action||r,{preventScrollReset:i.preventScrollReset,formData:l,body:c,formMethod:i.method||o,formEncType:i.encType||a,unstable_flushSync:i.unstable_flushSync})}else t.navigate(i.action||r,{preventScrollReset:i.preventScrollReset,formData:l,body:c,formMethod:i.method||o,formEncType:i.encType||a,replace:i.replace,state:i.state,fromRouteId:n,unstable_flushSync:i.unstable_flushSync,unstable_viewTransition:i.unstable_viewTransition})},[t,e,n])}function sh(t,e){let{relative:n}=e===void 0?{}:e,{basename:s}=w.useContext(Y),i=w.useContext(Rt);i||(process.env.NODE_ENV!=="production"?L(!1,"useFormAction must be used inside a RouteContext"):L(!1));let[r]=i.matches.slice(-1),o=Et({},Zt(t||".",{relative:n})),a=Dt();if(t==null){o.search=a.search;let l=new URLSearchParams(o.search);l.has("index")&&l.get("index")===""&&(l.delete("index"),o.search=l.toString()?"?"+l.toString():"")}return(!t||t===".")&&r.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(o.pathname=o.pathname==="/"?s:Fn([s,o.pathname])),qt(o)}function ih(t,e){e===void 0&&(e={});let n=w.useContext(Qo);n==null&&(process.env.NODE_ENV!=="production"?L(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):L(!1));let{basename:s}=Zo(xe.useViewTransitionState),i=Zt(t,{relative:e.relative});if(!n.isTransitioning)return!1;let r=gt(n.currentLocation.pathname,s)||n.currentLocation.pathname,o=gt(n.nextLocation.pathname,s)||n.nextLocation.pathname;return li(i.pathname,o)!=null||li(i.pathname,r)!=null}function fi(t){for(;t.startsWith("/");)t=t.slice(1);return t}function Jo(t,e,n=[]){for(const s of t){if(console.log(s.path,e,s.path===e),fi(s.path||"")===fi(e))return[...n,s];if(s.children){const i=Jo(s.children,e,[...n,s]);if(i)return i}}return null}function oh(t){return P.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:P.jsx("path",{fill:"#E01B00",fillRule:"evenodd",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",clipRule:"evenodd"})})}function rh(t){return P.jsx(qf,{children:P.jsx(ah,{...t})})}function ah(t){const{baseUrl:e,menuPath:n}=t;console.log("baseUrl:",e);const s=Dt();console.log("location:",s);const[i,r]=T.useState([]),[o,a]=T.useState(!0),l=(Jo(i,s.pathname)||[]).filter(y=>y.parentKey!==0),[c,u]=T.useState({}),f=y=>{u({...c,[y]:!c[y]})};console.log("matchPaths:",l);const h=()=>{a(!o)};T.useEffect(()=>{(async()=>{const g=e+(n||"/global-menu-config/api/v1/menu-items"),x=await sr.get(g,{withCredentials:!0}).then(E=>E.data),S={};x.forEach(E=>{E.children&&(S[E.id]=!0)}),u(S),r(x.map(E=>({...E,parentKey:0})))})()},[e,n]);const[d,m]=T.useState(!1),p=()=>{window.location.href=`${e}/authentication/logout?callbackUrl=${window.location.origin}`},v=o?"collapsed":"expanded",b=y=>`${y} ${v}`;return P.jsxs(Bn.nav,{initial:{width:"18rem"},animate:{width:o?"5rem":"18rem"},transition:{duration:.3},className:b("side-bar"),children:[P.jsx("div",{className:"h-[8px]"}),P.jsx("div",{className:b("side-bar__toggle-btn"),children:P.jsx("button",{className:"icon-btn",onClick:h,children:o?P.jsx(xi,{}):P.jsx(vi,{})})}),P.jsx("div",{id:"menu-items",className:"mt-6 overflow-y-auto overflow-x-hidden flex-1",children:i.map(y=>{const g=x=>l.some(S=>S.id===x);return P.jsx(tr,{item:y,isActive:g,isCollapsed:o,expanded:x=>c[x],toggleExpand:f},y.id)})}),P.jsxs("div",{className:"w-full mt-10 mb-10",children:[P.jsxs("button",{className:b("side-bar__logout-btn"),onClick:()=>m(!0),children:[P.jsx(oh,{}),P.jsx("span",{className:`ml-3 ${o?"hidden":""}`,children:"Logout"})]}),P.jsx(hi,{isOpen:d,onClose:()=>m(!1),onConfirm:p})]})]})}function tr({item:t,level:e=0,...n}){var v;const{isActive:s,isCollapsed:i,expanded:r,toggleExpand:o}=n,a=`level-${e}`,l=i?"collapsed":"expanded",c=s(t.id)?"active":"",u=(b,y=a)=>`${b} ${y} ${l} ${c}`,f=!!((v=t.children)!=null&&v.length),[h,d]=T.useState(!1),m=T.useRef();function p(b){var S;const{level:y,hovered:g,parentRef:x}=b;return!f||i&&y>=2&&!g?null:P.jsx(lh,{parentRef:x,onlyChild:!i||i&&y<2,children:P.jsx(Bn.div,{className:u("menu-item__dropdown",`level-${y}`),initial:{height:i?"auto":0},animate:{height:i||r(t.id)?"auto":0},transition:{duration:.2},children:(S=t.children)==null?void 0:S.map(E=>T.createElement(tr,{...n,key:E.id,item:E,level:y}))},+i)})}return P.jsxs("div",{ref:m,className:u("menu-item__wrapper"),onMouseEnter:()=>i&&d(!0),onMouseLeave:()=>i&&d(!1),children:[P.jsxs(Wn,{to:f?"#":t.path||"#",style:{paddingLeft:`${i?"0.5rem":`${e*1}rem`}`},className:u("menu-item__link"),onClick:()=>{f&&!i&&o(t.id)},children:[e!==0&&P.jsx("div",{className:u("menu-item__icon"),children:P.jsx("img",{src:t.icon||"/",alt:" ",style:{height:24,maxHeight:24}})}),P.jsxs("span",{className:u("menu-item__label"),children:[e," ",t.name]}),f&&P.jsx("div",{className:u("menu-item__icon-arrow__wrapper"),children:P.jsx(yi,{className:u(`menu-item__icon-arrow__icon ${r(t.id)?"open":"close"}`),fontSize:"small"})})]}),p({level:e+1,hovered:h,parentRef:m})]},t.id)}function lh(t){const{children:e,parentRef:n,onlyChild:s}=t,[i,r]=T.useState({top:0,left:0});return T.useLayoutEffect(()=>{if(n.current){const o=n.current.getBoundingClientRect();r({top:o.top,left:o.left+o.width})}},[n]),s?e:nr.createPortal(P.jsx(Bn.div,{style:{position:"fixed",top:i.top,left:i.left},children:e}),document.body)}exports.GlobalMenu=rh;exports.TopBar=yr;