@ukpc-lib/react 0.2.22 → 0.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/application.d.ts +1 -0
  2. package/dist/components/MultiProvider.d.ts +6 -0
  3. package/dist/components/Toast/ToastConfigNotification.d.ts +2 -0
  4. package/dist/components/Toast/index.d.ts +3 -1
  5. package/dist/components/Topbar/index.d.ts +3 -1
  6. package/dist/components/index.cjs +28 -26
  7. package/dist/components/index.js +1446 -1422
  8. package/dist/components/main.d.ts +5 -4
  9. package/dist/index.module-160774a9.cjs +1087 -0
  10. package/dist/index.module-4e7900e2.js +25562 -0
  11. package/dist/main.d.ts +1 -0
  12. package/dist/share/index.cjs +1 -1
  13. package/dist/share/index.js +7 -7
  14. package/dist/theme/Colors.d.ts +33 -0
  15. package/dist/theme/SaasThemeProvider.d.ts +2 -0
  16. package/dist/theme/Theme.d.ts +21 -0
  17. package/dist/theme/index.cjs +1 -1
  18. package/dist/theme/index.d.ts +3 -0
  19. package/dist/theme/index.js +7 -6
  20. package/dist/translations/config.d.ts +7 -0
  21. package/dist/web-components/global-menu.d.ts +1 -0
  22. package/dist/web-components/global-topbar.d.ts +1 -0
  23. package/dist/web-components/has-permission.d.ts +1 -0
  24. package/dist/web-components/index.d.ts +2 -0
  25. package/package.json +5 -3
  26. package/web-components-bundle/global-menu/index.cjs +1 -1
  27. package/web-components-bundle/global-menu/index.js +1 -1
  28. package/web-components-bundle/global-topbar/index.cjs +1 -1
  29. package/web-components-bundle/global-topbar/index.js +2 -2
  30. package/web-components-bundle/has-permission/index.cjs +1 -1
  31. package/web-components-bundle/has-permission/index.js +2 -2
  32. package/web-components-bundle/index-04dc6603.cjs +1067 -0
  33. package/web-components-bundle/{index-200424a6.js → index-a16031d2.js} +1367 -1327
  34. package/web-components-bundle/index-aff1e7a4.js +21431 -0
  35. package/web-components-bundle/{index-661a7bdb.cjs → index-ea3fddce.cjs} +26 -26
  36. package/dist/index.module-a18bd948.js +0 -25158
  37. package/dist/index.module-eaf7a821.cjs +0 -1086
  38. package/web-components-bundle/index-2c1ba689.cjs +0 -884
  39. package/web-components-bundle/index-8d8b181c.js +0 -20303
@@ -1,11 +1,13 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../index.module-eaf7a821.cjs"),p=require("react/jsx-runtime"),_=require("react"),ti=require("../Colors-51ce6654.cjs"),se=require("moment"),qt=require("axios");require("@r2wc/react-to-web-component");const Uo=require("react-router-dom"),yc=require("react-dom"),I=require("@mui/material");function vc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const N=vc(_),bc=`.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#ffffff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px}.confirm-btn{background:#e01b00!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}
2
- `;function Yo({isOpen:e,onClose:t,onConfirm:n}){if(!e)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&t()}return p.jsxs(p.Fragment,{children:[p.jsx("style",{type:"text/css",children:bc}),p.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:p.jsxs("div",{className:"modal-container",children:[p.jsx("h3",{className:"modal-title",children:"Log out"}),p.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),p.jsxs("div",{className:"modal-footer",children:[p.jsx("button",{className:"modal-button",onClick:t,children:"Cancel"}),p.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}function xc({primaryColor:e="#009d4f"}){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:e,"stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),p.jsx("path",{d:"M15.9965 11.5H16.0054",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),p.jsx("path",{d:"M11.9955 11.5H12.0045",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),p.jsx("path",{d:"M7.99451 11.5H8.00349",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})}const wc=e=>{const{tabs:t}=e,n=r=>{e.setCurrentTab(r.target.id)};return p.jsxs("div",{className:"tab-container",children:[p.jsx("div",{style:{display:"flex",width:"100%",height:"50px",borderBottom:`1px solid ${ti.color.grey200}`},className:"tab-container__title",children:t.map((r,i)=>p.jsx("button",{id:r.id,disabled:e.currentTab===`${r.id}`,onClick:n,className:`tab-title ${e.currentTab===`${r.id}`?"is-active":""}`,children:r.tabTitle},i))}),p.jsx("div",{className:"tab-content",children:t.map((r,i)=>p.jsx("div",{children:e.currentTab===`${r.id}`&&p.jsx("div",{children:r.children})},i))})]})},Sc=({notification:e,handleUpdateRead:t})=>{const n=r=>{const i=se(),o=se(r),s=i.diff(o,"days");return s===0?"Today":s===1?"Yesterday":s>=2&&s<=7?`Last ${s} days`:s===8||s===9||s===10?"1 week ago":s>=11&&s<=14?"2 weeks ago":o.format("MMMM DD, YYYY")};return p.jsxs("div",{className:"notitification-item__container",onClick:()=>t(e.id,!e.isRead),children:[p.jsx("div",{className:"notification-item__image-container",children:p.jsx("img",{src:(e==null?void 0:e.userAvatarUrl)===void 0?"https://ukpcsaprod.blob.core.windows.net/account/logo.png":e==null?void 0:e.userAvatarUrl,alt:e.userName})}),p.jsxs("div",{className:"notification-item__content",children:[p.jsx("p",{className:"notification-item__user-name",children:e.userName}),p.jsxs("p",{children:[`${e.message} `,p.jsx("span",{children:e==null?void 0:e.context})]})]}),p.jsx("div",{className:"notification-item__time",children:p.jsx("p",{children:n(e.createdAt)})}),p.jsx("button",{className:`${(e==null?void 0:e.isRead)===!1?"unread":"read"} notification-item__read-at`,onClick:()=>t(e.id,!e.isRead),"aria-label":"Mark as read"})]})},Wi=({notidata:e,handleUpdateRead:t,handleUpdateReadAll:n})=>p.jsxs("div",{children:[p.jsx("div",{className:"mark-all-read",children:p.jsx("button",{onClick:n,children:"Mark all as read"})}),p.jsx("div",{className:"notification-items__wrapper",children:p.jsx("div",{className:"notification-items__content",children:Object.values(e).map((r,i)=>p.jsx(Sc,{notification:r,handleUpdateRead:t},i))})})]}),Go=({baseUrl:e,notiPath:t,setNotiData:n})=>async()=>{const o=e+(t||"/notification-management/api/v1/notifications"),s=await qt.get(o,{params:{filter:{notificationFilterType:"all"}},withCredentials:!0}),a=await qt.get(o,{params:{filter:{notificationFilterType:"unread"}},withCredentials:!0});Promise.all([s,a]).then(l=>{var c,d,u,h;console.log("result: "+l),n({all:{rows:(c=l[0].data)==null?void 0:c.rows,total:(d=l[0].data)==null?void 0:d.total},unread:{rows:(u=l[1].data)==null?void 0:u.rows,total:(h=l[1].data)==null?void 0:h.total}})})},Ec=({baseUrl:e,notiPath:t})=>{var u,h,m,y;const{setShowModalFalse:n}=_.useContext(S.CustomOpenList),{notidata:r,setNotiData:i}=_.useContext(S.CustomOpenList);console.log(r);const[o,s]=_.useState("all"),a=Go({baseUrl:e,notiPath:t,setNotiData:i}),l=async()=>{var f,g;try{const w=e+(t||"/notification-management/api/v1/notifications");await qt.put(w,{withCredentials:!0})}catch(b){console.log(b),S.pushError(((g=(f=b.response)==null?void 0:f.data)==null?void 0:g.errorMessage)||"Have error when get notification list")}await a()},c=async(f,g)=>{var b,w;try{const x=t||`/notification-management/api/v1/notifications/${f}`,E=e+x;await qt.put(E,{isRead:g},{withCredentials:!0})}catch(x){S.pushError(((w=(b=x.response)==null?void 0:b.data)==null?void 0:w.errorMessage)||"Have error when get notification list")}await a()},d=[{id:"all",tabTitle:`All (${((u=r==null?void 0:r.all)==null?void 0:u.total)||0})`,children:p.jsx(Wi,{notidata:((h=r==null?void 0:r.all)==null?void 0:h.rows)||[],handleUpdateRead:c,handleUpdateReadAll:l})},{id:"unread",tabTitle:`Unread (${((m=r==null?void 0:r.unread)==null?void 0:m.total)||0})`,children:p.jsx(Wi,{notidata:((y=r==null?void 0:r.unread)==null?void 0:y.rows)||[],handleUpdateRead:c,handleUpdateReadAll:l})}];return p.jsx(p.Fragment,{children:p.jsx("div",{style:{position:"absolute",backgroundColor:"#fff",width:"550px",height:"90vh",right:"100px",top:"100%",padding:"32px",boxShadow:"10px 0px 20px #999",borderRadius:"0 0 8px 8px",overflow:"hidden"},children:p.jsxs("div",{className:"list-content",children:[p.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p.jsx("h3",{style:{fontSize:"24px",fontWeight:"500"},className:"list-title",children:"Notifications"}),p.jsx("button",{onClick:n,children:p.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})})]}),p.jsx(wc,{tabs:d,setCurrentTab:s,currentTab:o})]})})})};function Cc({primaryColor:e="#009d4f",baseUrl:t,notiPath:n}){var c;const{isOpen:r,toggleOpen:i}=_.useContext(S.CustomOpenList),{notidata:o,setNotiData:s}=_.useContext(S.CustomOpenList),a=Go({baseUrl:t,notiPath:n,setNotiData:s}),l=async()=>{var d,u;try{await a()}catch(h){S.pushError(((u=(d=h.response)==null?void 0:d.data)==null?void 0:u.errorMessage)||"Have error when get notification list")}};return _.useEffect(()=>{l()},[]),p.jsxs("div",{children:[p.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,style:{cursor:"pointer"},children:[p.jsx("path",{fillRule:"evenodd",clipRule:"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:e,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),p.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:e,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(o==null?void 0:o.unread)&&(o==null?void 0:o.unread.total)!=0&&p.jsx("span",{style:{position:"absolute",top:"18px",background:`${ti.color.dangerDark}`,width:"13px",height:"13px",border:"1px solid #fff",borderRadius:"50%",color:"#fff",fontSize:"8px"},className:"notification-badge",children:(c=o==null?void 0:o.unread)==null?void 0:c.total}),!r&&p.jsx(Ec,{baseUrl:t,notiPath:n})]})}const Tc=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
3
- `;function qo({children:e,styles:t=[],...n}){return p.jsxs(S.C.div,{...n,children:[[Tc,...t].map((r,i)=>p.jsx("style",{type:"text/css",children:r},i)),e]})}const _c=`.avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar{position:fixed;display:flex;z-index:30;background:#292929;top:0;width:100%;padding-left:2.5rem;height:64px}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}.logo-container{padding:16px 0;height:100%}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.languageDropdown{height:100%;padding:0 8px;display:flex;flex-direction:row;gap:8px;border-radius:3px;align-items:center;justify-content:center;height:41px;background-color:#ffffff1a;cursor:pointer;transition:background-color .2s ease-in-out}.languageDropdown:hover{background-color:#fff3}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem}.userAvatar{width:2.5rem;height:2.5rem;cursor:pointer;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}.userAvatarNull{width:2.5rem;height:2.5rem;background:#DDDDDD;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}
4
- `,Pc=`.tab-title{min-width:90px;padding:5px 16px;font-size:14px;font-weight:500;color:#c5c5c5;transition:all .3s ease-in-out;position:relative}.tab-title.is-active{color:#2e7d32}.tab-title.is-active:before{transition:all .3s ease-in-out;position:absolute;content:"";width:100%;height:100%;top:0;left:0;border-bottom:2px solid #2E7D32}.tab-content{padding:16px 0}
5
- `,Ac=`:root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto}.notitification-item__container{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;cursor:pointer;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notitification-item__container:not(:last-child):before{position:absolute;content:"";width:100%;bottom:-5px;left:0;border:1px solid #FAFAFA}.notitification-item__container:hover:before{opacity:1}.notification-item__image-container{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__context-link{color:#007bff}.notification-item__content{width:65%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}
6
- `;function kc(e){return p.jsxs("svg",{width:"34",height:"25",viewBox:"0 0 34 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsxs("g",{"clip-path":"url(#clip0_16865_28134)",children:[p.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"#1A47B8"}),p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.61691 0.5H0V4.5L30.3635 24.5L34 24.5V20.5L3.61691 0.5Z",fill:"white"}),p.jsx("path",{d:"M1.20635 0.5L34 22.1567V24.5H32.8219L0 2.82089V0.5H1.20635Z",fill:"#F93939"}),p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.7619 0.5H34V4.5C34 4.5 12.9683 17.8249 3.2381 24.5H0V20.5L30.7619 0.5Z",fill:"white"}),p.jsx("path",{d:"M34 0.5H32.9019L0 22.1753V24.5H1.20635L34 2.83842V0.5Z",fill:"#F93939"}),p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.3648 0.5H21.6635V7.90291H34V17.0922H21.6635V24.5H12.3648V17.0922H0V7.90291H12.3648V0.5Z",fill:"white"}),p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3158 0.5H19.6842V9.73077H34V15.2692H19.6842V24.5H14.3158V15.2692H0V9.73077H14.3158V0.5Z",fill:"#F93939"})]}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_16865_28134",children:p.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"white"})})})]})}function Oc(e){return p.jsxs("svg",{width:"34",height:"24",viewBox:"0 0 34 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsxs("g",{"clip-path":"url(#clip0_16886_62505)",children:[p.jsx("rect",{width:"34",height:"24",rx:"3",fill:"#F93939"}),p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 16H34V24H0V16Z",fill:"#FFDA2C"}),p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H34V8H0V0Z",fill:"#151515"})]}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_16886_62505",children:p.jsx("rect",{width:"34",height:"24",rx:"3",fill:"white"})})})]})}function jc({logo:e,user:t,baseUrl:n,notiPath:r,style:i,classNames:o="",customColors:s}){const a=e||"/public/assets/icons/logo-header.png",l={...i,color:(s==null?void 0:s.color)||"black",backgroundColor:(s==null?void 0:s.bgColor)||"black"},[c,d]=_.useState(!1),u=()=>{window.location.href=`${n}/authentication/logout?callbackUrl=${window.location.href}`};return p.jsxs(qo,{styles:[_c,Pc,Ac],style:{zIndex:1202},children:[p.jsx("nav",{className:`navbar ${o}`,style:s?l:i,children:p.jsxs("div",{className:"navbar-container",children:[p.jsx("div",{className:"logo-container",children:p.jsx("img",{src:a,alt:"logo-header"})}),p.jsxs("div",{className:"right-side-container",children:[p.jsx("span",{children:p.jsx(S.CustomOpenListProvider,{children:p.jsx(Cc,{primaryColor:s==null?void 0:s.primaryColor,baseUrl:n,notiPath:r})})}),p.jsx("span",{className:"cursor-pointer",children:p.jsx(xc,{primaryColor:s==null?void 0:s.primaryColor})}),p.jsx(Mc,{primaryColor:s==null?void 0:s.primaryColor}),p.jsxs("div",{className:"userContainer",children:[p.jsx(Nc,{primaryColor:s==null?void 0:s.primaryColor,avatarUrl:t==null?void 0:t.avatarUrl,userName:t==null?void 0:t.firstName,setShowConfirmModal:d}),p.jsx("p",{className:"userFullName",children:`${(t==null?void 0:t.firstName)||"Unknown"} ${(t==null?void 0:t.lastName)||"User"}`})]})]})]})}),p.jsx(Yo,{isOpen:c,onClose:()=>d(!1),onConfirm:u})]})}function Mc({primaryColor:e="#009d4f"}){var a;const[t,n]=_.useState(!1),r=_.useRef(null),i=[{value:S.Language.en,element:p.jsx(kc,{})},{value:S.Language.de,element:p.jsx(Oc,{})}],{language:o,setLanguage:s}=S.useCustomTranslation();return _.useEffect(()=>{const l=c=>{r.current&&!r.current.contains(c.target)&&n(!1)};return document.addEventListener("click",l,!0),()=>{document.removeEventListener("click",l,!0)}},[r]),p.jsxs("div",{className:"languageDropdownContainer",style:{position:"relative"},children:[p.jsxs("div",{className:"languageDropdown",onClick:()=>{n(!t)},ref:r,children:[(a=i.find(l=>l.value==o))==null?void 0:a.element,p.jsx("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M4.42724 7.92678L7.82372 11.3232C7.92135 11.4209 8.07964 11.4209 8.17727 11.3232L11.5737 7.92678C11.7312 7.76928 11.6197 7.5 11.3969 7.5H4.60402C4.38129 7.5 4.26975 7.76929 4.42724 7.92678Z",fill:"#85858A"})})]}),p.jsx("div",{className:"dropdownListLanguage",style:{display:t?"block":"none",position:"absolute",top:"53px",right:"0px",padding:"8px",boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",backgroundColor:"#fafafa"},children:i.filter(l=>l.value!==o).map(l=>p.jsx("div",{className:"languageItem",style:{width:"100px",padding:"8px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},onMouseEnter:c=>{c.currentTarget.style.backgroundColor=e,c.currentTarget.style.transition="background-color 0.3s ease-in-out"},onMouseLeave:c=>{c.currentTarget.style.backgroundColor="#fafafa",c.currentTarget.style.transition="background-color 0.3s ease-out"},onClick:()=>{s(l.value),localStorage.setItem("language",l.value),S.instance.changeLanguage(l.value),n(!1),window.location.reload()},children:l.element}))})]})}function Nc({avatarUrl:e,userName:t,setShowConfirmModal:n,primaryColor:r="#009d4f"}){const[i,o]=_.useState(!1),s=_.useRef(null),a=_.useRef(null),[l,c]=_.useState(!1),[d,u]=_.useState(!1),h={backgroundColor:l?r:"transparent"},m={backgroundColor:d?r:"transparent"};return _.useEffect(()=>{const y=f=>{s.current&&!s.current.contains(f.target)&&o(!1),a.current&&!a.current.contains(f.target)&&o(!1)};return document.addEventListener("click",y,!0),()=>{document.removeEventListener("click",y,!0)}},[s]),p.jsx(p.Fragment,{children:p.jsxs("div",{style:{position:"relative"},children:[e?p.jsx("img",{onClick:()=>o(!i),ref:s,alt:"user avatar",className:"userAvatar",src:e}):p.jsx("div",{onClick:()=>o(!i),ref:s,className:"userAvatarNull",children:(t==null?void 0:t.charAt(0))??""}),p.jsx("div",{style:{display:i?"block":"none"},className:"avartarDropdownMenu",ref:a,children:p.jsxs("ul",{children:[p.jsx("li",{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:m,className:"avatar-dropdown-item",children:"Profile"}),p.jsx("li",{onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),style:h,onClick:()=>n(!0),className:"avatar-dropdown-item",children:"Logout"})]})})]})})}var Dc=typeof global=="object"&&global&&global.Object===Object&&global;const Rc=Dc;var Vc=typeof self=="object"&&self&&self.Object===Object&&self,Lc=Rc||Vc||Function("return this")();const Ko=Lc;var Ic=Ko.Symbol;const Dn=Ic;var Xo=Object.prototype,$c=Xo.hasOwnProperty,zc=Xo.toString,Lt=Dn?Dn.toStringTag:void 0;function Fc(e){var t=$c.call(e,Lt),n=e[Lt];try{e[Lt]=void 0;var r=!0}catch{}var i=zc.call(e);return r&&(t?e[Lt]=n:delete e[Lt]),i}var Bc=Object.prototype,Wc=Bc.toString;function Hc(e){return Wc.call(e)}var Uc="[object Null]",Yc="[object Undefined]",Hi=Dn?Dn.toStringTag:void 0;function Gc(e){return e==null?e===void 0?Yc:Uc:Hi&&Hi in Object(e)?Fc(e):Hc(e)}function qc(e){return e!=null&&typeof e=="object"}var Kc="[object Symbol]";function Xc(e){return typeof e=="symbol"||qc(e)&&Gc(e)==Kc}var Zc=/\s/;function Jc(e){for(var t=e.length;t--&&Zc.test(e.charAt(t)););return t}var Qc=/^\s+/;function eu(e){return e&&e.slice(0,Jc(e)+1).replace(Qc,"")}function Rn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ui=0/0,tu=/^[-+]0x[0-9a-f]+$/i,nu=/^0b[01]+$/i,ru=/^0o[0-7]+$/i,iu=parseInt;function Yi(e){if(typeof e=="number")return e;if(Xc(e))return Ui;if(Rn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Rn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=eu(e);var n=nu.test(e);return n||ru.test(e)?iu(e.slice(2),n?2:8):tu.test(e)?Ui:+e}var su=function(){return Ko.Date.now()};const gr=su;var ou="Expected a function",au=Math.max,lu=Math.min;function En(e,t,n){var r,i,o,s,a,l,c=0,d=!1,u=!1,h=!0;if(typeof e!="function")throw new TypeError(ou);t=Yi(t)||0,Rn(n)&&(d=!!n.leading,u="maxWait"in n,o=u?au(Yi(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function m(C){var T=r,P=i;return r=i=void 0,c=C,s=e.apply(P,T),s}function y(C){return c=C,a=setTimeout(b,t),d?m(C):s}function f(C){var T=C-l,P=C-c,k=t-T;return u?lu(k,o-P):k}function g(C){var T=C-l,P=C-c;return l===void 0||T>=t||T<0||u&&P>=o}function b(){var C=gr();if(g(C))return w(C);a=setTimeout(b,f(C))}function w(C){return a=void 0,h&&r?m(C):(r=i=void 0,s)}function x(){a!==void 0&&clearTimeout(a),c=0,r=l=i=a=void 0}function E(){return a===void 0?s:w(gr())}function v(){var C=gr(),T=g(C);if(r=arguments,i=this,l=C,T){if(a===void 0)return y(l);if(u)return clearTimeout(a),a=setTimeout(b,t),m(l)}return a===void 0&&(a=setTimeout(b,t)),s}return v.cancel=x,v.flush=E,v}var cu="Expected a function";function uu(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(cu);return Rn(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),En(e,t,{leading:r,maxWait:t,trailing:i})}var du=!!(typeof window<"u"&&window.document&&window.document.createElement),fu=du;const Zo=S.getDefaultExportFromCjs(fu);var xt=function(){return xt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},xt.apply(this,arguments)},bt=null,Gi=null;Zo&&window.addEventListener("resize",function(){Gi!==window.devicePixelRatio&&(Gi=window.devicePixelRatio,bt=null)});function qi(){if(bt===null){if(typeof document>"u")return bt=0,bt;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),bt=n}return bt}function Jo(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Qo(e){return!e||!e.ownerDocument?document:e.ownerDocument}var ea=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},t);return n};function ta(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function na(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function ra(e){return".".concat(e.split(" ").join("."))}var hu=Object.freeze({__proto__:null,getElementWindow:Jo,getElementDocument:Qo,getOptions:ea,addClasses:ta,removeClasses:na,classNamesToQuery:ra}),He=Jo,yr=Qo,pu=ea,Ue=ta,Ye=na,de=ra,mn=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=He(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Ue(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Ye(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Ue(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Ye(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,a,l,c,d,u,h,m,y,f;if(!(!r.draggedAxis||!r.contentWrapperEl)){var g,b=r.axis[r.draggedAxis].track,w=(s=(o=b.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,x=r.axis[r.draggedAxis].scrollbar,E=(l=(a=r.contentWrapperEl)===null||a===void 0?void 0:a[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,v=parseInt((d=(c=r.elStyles)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].sizeAttr])!==null&&d!==void 0?d:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?g=i.pageY:g=i.pageX;var C=g-((h=(u=b.rect)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-r.axis[r.draggedAxis].dragOffset;C=r.draggedAxis==="x"&&r.isRtl?((y=(m=b.rect)===null||m===void 0?void 0:m[r.axis[r.draggedAxis].sizeAttr])!==null&&y!==void 0?y:0)-x.size-C:C;var T=C/(w-x.size),P=T*(E-v);r.draggedAxis==="x"&&r.isRtl&&(P=!((f=e.getRtlHelpers())===null||f===void 0)&&f.isScrollingToNegative?-P:P),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=P}},this.onEndDrag=function(i){var o=yr(r.el),s=He(r.el);i.preventDefault(),i.stopPropagation(),Ye(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=xt(xt({},e.defaultOptions),n),this.classNames=xt(xt({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=uu(this._onMouseMove,64),this.onWindowResize=En(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=En(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=En(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:qi()}catch{return qi()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=yr(t),i=He(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){Zo&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(de(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(de(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(de(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(de(this.classNames.offset)),this.maskEl=this.el.querySelector(de(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,de(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(de(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(de(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(de(this.classNames.track)).concat(de(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(de(this.classNames.track)).concat(de(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(de(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(de(this.classNames.scrollbar)))||null,this.options.autoHide||(Ue(this.axis.x.scrollbar.el,this.classNames.visible),Ue(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=He(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=He(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||c,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var d=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&c>n,this.axis.y.isOverflowing=l>d,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>o-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>d-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,s=o/i,a;return a=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],a=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[t].sizeAttr],10),c=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];c=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-c:c,t==="x"&&this.isRtl&&(c=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?c:-c);var d=c/(s-l),u=~~((a-o.size)*d);u=t==="x"&&this.isRtl?-u+(a-o.size):u,o.el.style.transform=t==="x"?"translate3d(".concat(u,"px, 0, 0)"):"translate3d(0, ".concat(u,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Ue(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Ye(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Ue(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Ue(n.scrollbar.el,this.classNames.hover):Ye(n.scrollbar.el,this.classNames.hover)):(Ye(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Ye(this.axis[t].track.el,this.classNames.hover),Ye(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y");var i=yr(this.el),o=He(this.el),s=this.axis[n].scrollbar,a=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=a-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Ue(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,o,s,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var c=He(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var d=this.axis[n].scrollbar,u=(o=(i=d.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,h=parseInt((a=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&a!==void 0?a:"0px",10),m=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],y=n==="y"?this.mouseY-u:this.mouseX-u,f=y<0?-1:1,g=f===-1?m-h:m+h,b=40,w=function(){r.contentWrapperEl&&(f===-1?m>g&&(m-=b,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=m,c.requestAnimationFrame(w)):m<g&&(m+=b,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=m,c.requestAnimationFrame(w)))};w()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=He(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=pu,e.helpers=hu,e}(),me=function(){return me=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},me.apply(this,arguments)};function mu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var ia=N.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=mu(e,["children","scrollableNodeProps"]),s=N.useRef(),a=N.useRef(),l=N.useRef(),c={},d={};Object.keys(o).forEach(function(m){Object.prototype.hasOwnProperty.call(mn.defaultOptions,m)?c[m]=o[m]:d[m]=o[m]});var u=me(me({},mn.defaultOptions.classNames),c.classNames),h=me(me({},i),{className:"".concat(u.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":c.ariaLabel||mn.defaultOptions.ariaLabel});return N.useEffect(function(){var m;return a.current=h.ref?h.ref.current:a.current,s.current&&(m=new mn(s.current,me(me(me({},c),a.current&&{scrollableNode:a.current}),l.current&&{contentNode:l.current})),typeof t=="function"?t(m):t&&(t.current=m)),function(){m==null||m.unMount(),m=null,typeof t=="function"&&t(null)}},[]),N.createElement("div",me({"data-simplebar":"init",ref:s},d),N.createElement("div",{className:u.wrapper},N.createElement("div",{className:u.heightAutoObserverWrapperEl},N.createElement("div",{className:u.heightAutoObserverEl})),N.createElement("div",{className:u.mask},N.createElement("div",{className:u.offset},typeof n=="function"?n({scrollableNodeRef:a,scrollableNodeProps:me(me({},h),{ref:a}),contentNodeRef:l,contentNodeProps:{className:u.contentEl,ref:l}}):N.createElement("div",me({},h),N.createElement("div",{className:u.contentEl},n)))),N.createElement("div",{className:u.placeholder})),N.createElement("div",{className:"".concat(u.track," simplebar-horizontal")},N.createElement("div",{className:u.scrollbar})),N.createElement("div",{className:"".concat(u.track," simplebar-vertical")},N.createElement("div",{className:u.scrollbar})))});ia.displayName="SimpleBar";const gu=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
7
- `,yu=e=>p.jsx(S.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit"},...e}),sa=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Kn=_.createContext({}),ni=_.createContext(null),Xn=typeof document<"u",vu=Xn?_.useLayoutEffect:_.useEffect,oa=_.createContext({strict:!1}),ri=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),bu="framerAppearId",aa="data-"+ri(bu);function xu(e,t,n,r){const{visualElement:i}=_.useContext(Kn),o=_.useContext(oa),s=_.useContext(ni),a=_.useContext(sa).reducedMotion,l=_.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;_.useInsertionEffect(()=>{c&&c.update(n,s)});const d=_.useRef(!!(n[aa]&&!window.HandoffComplete));return vu(()=>{c&&(c.render(),d.current&&c.animationState&&c.animationState.animateChanges())}),_.useEffect(()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),c}function wt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wu(e,t,n){return _.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):wt(n)&&(n.current=r))},[t])}function Kt(e){return typeof e=="string"||Array.isArray(e)}function Zn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ii=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],si=["initial",...ii];function Jn(e){return Zn(e.animate)||si.some(t=>Kt(e[t]))}function la(e){return!!(Jn(e)||e.variants)}function Su(e,t){if(Jn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Kt(n)?n:void 0,animate:Kt(r)?r:void 0}}return e.inherit!==!1?t:{}}function Eu(e){const{initial:t,animate:n}=Su(e,_.useContext(Kn));return _.useMemo(()=>({initial:t,animate:n}),[Ki(t),Ki(n)])}function Ki(e){return Array.isArray(e)?e.join(" "):e}const Xi={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"]},Xt={};for(const e in Xi)Xt[e]={isEnabled:t=>Xi[e].some(n=>!!t[n])};function Cu(e){for(const t in e)Xt[t]={...Xt[t],...e[t]}}const ca=_.createContext({}),ua=_.createContext({}),Tu=Symbol.for("motionComponentSymbol");function _u({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Cu(e);function o(a,l){let c;const d={..._.useContext(sa),...a,layoutId:Pu(a)},{isStatic:u}=d,h=Eu(a),m=r(a,u);if(!u&&Xn){h.visualElement=xu(i,m,d,t);const y=_.useContext(ua),f=_.useContext(oa).strict;h.visualElement&&(c=h.visualElement.loadFeatures(d,f,e,y))}return N.createElement(Kn.Provider,{value:h},c&&h.visualElement?N.createElement(c,{visualElement:h.visualElement,...d}):null,n(i,a,wu(m,h.visualElement,l),m,u,h.visualElement))}const s=_.forwardRef(o);return s[Tu]=i,s}function Pu({layoutId:e}){const t=_.useContext(ca).id;return t&&e!==void 0?t+"-"+e:e}function Au(e){function t(r,i={}){return _u(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const ku=["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 oi(e){return typeof e!="string"||e.includes("-")?!1:!!(ku.indexOf(e)>-1||/[A-Z]/.test(e))}const Vn={};function Ou(e){Object.assign(Vn,e)}const rn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lt=new Set(rn);function da(e,{layout:t,layoutId:n}){return lt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Vn[e]||e==="opacity")}const fe=e=>!!(e&&e.getVelocity),ju={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Mu=rn.length;function Nu(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<Mu;s++){const a=rn[s];if(e[a]!==void 0){const l=ju[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const fa=e=>t=>typeof t=="string"&&t.startsWith(e),ha=fa("--"),Dr=fa("var(--"),Du=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Ru=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Je=(e,t,n)=>Math.min(Math.max(n,e),t),ct={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Wt={...ct,transform:e=>Je(0,1,e)},gn={...ct,default:1},Ht=e=>Math.round(e*1e5)/1e5,Qn=/(-)?([\d]*\.?[\d])+/g,pa=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Vu=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function sn(e){return typeof e=="string"}const on=e=>({test:t=>sn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ge=on("deg"),Me=on("%"),M=on("px"),Lu=on("vh"),Iu=on("vw"),Zi={...Me,parse:e=>Me.parse(e)/100,transform:e=>Me.transform(e*100)},Ji={...ct,transform:Math.round},ma={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,radius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,size:M,top:M,right:M,bottom:M,left:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,rotate:Ge,rotateX:Ge,rotateY:Ge,rotateZ:Ge,scale:gn,scaleX:gn,scaleY:gn,scaleZ:gn,skew:Ge,skewX:Ge,skewY:Ge,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:Wt,originX:Zi,originY:Zi,originZ:M,zIndex:Ji,fillOpacity:Wt,strokeOpacity:Wt,numOctaves:Ji};function ai(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,c=!1,d=!0;for(const u in t){const h=t[u];if(ha(u)){o[u]=h;continue}const m=ma[u],y=Ru(h,m);if(lt.has(u)){if(l=!0,s[u]=y,!d)continue;h!==(m.default||0)&&(d=!1)}else u.startsWith("origin")?(c=!0,a[u]=y):i[u]=y}if(t.transform||(l||r?i.transform=Nu(e.transform,n,d,r):i.transform&&(i.transform="none")),c){const{originX:u="50%",originY:h="50%",originZ:m=0}=a;i.transformOrigin=`${u} ${h} ${m}`}}const li=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ga(e,t,n){for(const r in t)!fe(t[r])&&!da(r,n)&&(e[r]=t[r])}function $u({transformTemplate:e},t,n){return _.useMemo(()=>{const r=li();return ai(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function zu(e,t,n){const r=e.style||{},i={};return ga(i,r,e),Object.assign(i,$u(e,t,n)),e.transformValues?e.transformValues(i):i}function Fu(e,t,n){const r={},i=zu(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Bu=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 Ln(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Bu.has(e)}let ya=e=>!Ln(e);function Wu(e){e&&(ya=t=>t.startsWith("on")?!Ln(t):e(t))}try{Wu(require("@emotion/is-prop-valid").default)}catch{}function Hu(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(ya(i)||n===!0&&Ln(i)||!t&&!Ln(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Qi(e,t,n){return typeof e=="string"?e:M.transform(t+n*e)}function Uu(e,t,n){const r=Qi(t,e.x,e.width),i=Qi(n,e.y,e.height);return`${r} ${i}`}const Yu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Gu={offset:"strokeDashoffset",array:"strokeDasharray"};function qu(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Yu:Gu;e[o.offset]=M.transform(-r);const s=M.transform(t),a=M.transform(n);e[o.array]=`${s} ${a}`}function ci(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},d,u,h){if(ai(e,c,d,h),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:y,dimensions:f}=e;m.transform&&(f&&(y.transform=m.transform),delete m.transform),f&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=Uu(f,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&qu(m,s,a,l,!1)}const va=()=>({...li(),attrs:{}}),ui=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ku(e,t,n,r){const i=_.useMemo(()=>{const o=va();return ci(o,t,{enableHardwareAcceleration:!1},ui(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};ga(o,e.style,e),i.style={...o,...i.style}}return i}function Xu(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(oi(n)?Ku:Fu)(r,o,s,n),d={...Hu(r,typeof n=="string",e),...l,ref:i},{children:u}=r,h=_.useMemo(()=>fe(u)?u.get():u,[u]);return _.createElement(n,{...d,children:h})}}function ba(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const xa=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 wa(e,t,n,r){ba(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(xa.has(i)?i:ri(i),t.attrs[i])}function di(e,t){const{style:n}=e,r={};for(const i in n)(fe(n[i])||t.style&&fe(t.style[i])||da(i,e))&&(r[i]=n[i]);return r}function Sa(e,t){const n=di(e,t);for(const r in e)if(fe(e[r])||fe(t[r])){const i=rn.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function fi(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function Zu(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const In=e=>Array.isArray(e),Ju=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Qu=e=>In(e)?e[e.length-1]||0:e;function Cn(e){const t=fe(e)?e.get():e;return Ju(t)?t.toValue():t}function ed({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:td(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Ea=e=>(t,n)=>{const r=_.useContext(Kn),i=_.useContext(ni),o=()=>ed(e,t,r,i);return n?o():Zu(o)};function td(e,t,n,r){const i={},o=r(e,{});for(const h in o)i[h]=Cn(o[h]);let{initial:s,animate:a}=e;const l=Jn(e),c=la(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const u=d?a:s;return u&&typeof u!="boolean"&&!Zn(u)&&(Array.isArray(u)?u:[u]).forEach(m=>{const y=fi(e,m);if(!y)return;const{transitionEnd:f,transition:g,...b}=y;for(const w in b){let x=b[w];if(Array.isArray(x)){const E=d?x.length-1:0;x=x[E]}x!==null&&(i[w]=x)}for(const w in f)i[w]=f[w]}),i}const J=e=>e;class es{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function nd(e){let t=new es,n=new es,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,c=!1,d=!1)=>{const u=d&&i,h=u?t:n;return c&&s.add(l),h.add(l)&&u&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let c=0;c<r;c++){const d=t.order[c];d(l),s.has(d)&&(a.schedule(d),e())}i=!1,o&&(o=!1,a.process(l))}};return a}const yn=["prepare","read","update","preRender","render","postRender"],rd=40;function id(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=yn.reduce((u,h)=>(u[h]=nd(()=>n=!0),u),{}),s=u=>o[u].process(i),a=()=>{const u=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(u-i.timestamp,rd),1),i.timestamp=u,i.isProcessing=!0,yn.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:yn.reduce((u,h)=>{const m=o[h];return u[h]=(y,f=!1,g=!1)=>(n||l(),m.schedule(y,f,g)),u},{}),cancel:u=>yn.forEach(h=>o[h].cancel(u)),state:i,steps:o}}const{schedule:Y,cancel:Fe,state:oe,steps:vr}=id(typeof requestAnimationFrame<"u"?requestAnimationFrame:J,!0),sd={useVisualState:Ea({scrapeMotionValuesFromProps:Sa,createRenderState:va,onMount:(e,t,{renderState:n,latestValues:r})=>{Y.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Y.render(()=>{ci(n,r,{enableHardwareAcceleration:!1},ui(t.tagName),e.transformTemplate),wa(t,n)})}})},od={useVisualState:Ea({scrapeMotionValuesFromProps:di,createRenderState:li})};function ad(e,{forwardMotionProps:t=!1},n,r){return{...oi(e)?sd:od,preloadedFeatures:n,useRender:Xu(t),createVisualElement:r,Component:e}}function Ie(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Ca=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function er(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const ld=e=>t=>Ca(t)&&e(t,er(t));function $e(e,t,n,r){return Ie(e,t,ld(n),r)}const cd=(e,t)=>n=>t(e(n)),Xe=(...e)=>e.reduce(cd);function Ta(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const ts=Ta("dragHorizontal"),ns=Ta("dragVertical");function _a(e){let t=!1;if(e==="y")t=ns();else if(e==="x")t=ts();else{const n=ts(),r=ns();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Pa(){const e=_a(!0);return e?(e(),!1):!0}class et{constructor(t){this.isMounted=!1,this.node=t}update(){}}function rs(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||Pa())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Y.update(()=>a[r](o,s))};return $e(e.current,n,i,{passive:!e.getProps()[r]})}class ud extends et{mount(){this.unmount=Xe(rs(this.node,!0),rs(this.node,!1))}unmount(){}}class dd extends et{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Xe(Ie(this.node.current,"focus",()=>this.onFocus()),Ie(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Aa=(e,t)=>t?e===t?!0:Aa(e,t.parentElement):!1;function br(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,er(n))}class fd extends et{constructor(){super(...arguments),this.removeStartListeners=J,this.removeEndListeners=J,this.removeAccessibleListeners=J,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=$e(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:d,globalTapTarget:u}=this.node.getProps();Y.update(()=>{!u&&!Aa(this.node.current,a.target)?d&&d(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=$e(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Xe(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||br("up",(l,c)=>{const{onTap:d}=this.node.getProps();d&&Y.update(()=>d(l,c))})};this.removeEndListeners(),this.removeEndListeners=Ie(this.node.current,"keyup",s),br("down",(a,l)=>{this.startPress(a,l)})},n=Ie(this.node.current,"keydown",t),r=()=>{this.isPressing&&br("cancel",(o,s)=>this.cancelPress(o,s))},i=Ie(this.node.current,"blur",r);this.removeAccessibleListeners=Xe(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Y.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Pa()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Y.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=$e(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Ie(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Xe(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Rr=new WeakMap,xr=new WeakMap,hd=e=>{const t=Rr.get(e.target);t&&t(e)},pd=e=>{e.forEach(hd)};function md({root:e,...t}){const n=e||document;xr.has(n)||xr.set(n,{});const r=xr.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(pd,{root:e,...t})),r[i]}function gd(e,t,n){const r=md(t);return Rr.set(e,n),r.observe(e),()=>{Rr.delete(e),r.unobserve(e)}}const yd={some:0,all:1};class vd extends et{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:yd[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:u}=this.node.getProps(),h=c?d:u;h&&h(l)};return gd(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(bd(t,n))&&this.startObserver()}unmount(){}}function bd({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const xd={inView:{Feature:vd},tap:{Feature:fd},focus:{Feature:dd},hover:{Feature:ud}};function ka(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function wd(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function Sd(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function tr(e,t,n){const r=e.getProps();return fi(r,t,n!==void 0?n:r.custom,wd(e),Sd(e))}let an=J,ke=J;process.env.NODE_ENV!=="production"&&(an=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},ke=(e,t)=>{if(!e)throw new Error(t)});const Ze=e=>e*1e3,ze=e=>e/1e3,Ed={current:!1},Oa=e=>Array.isArray(e)&&typeof e[0]=="number";function ja(e){return!!(!e||typeof e=="string"&&Ma[e]||Oa(e)||Array.isArray(e)&&e.every(ja))}const Bt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ma={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bt([0,.65,.55,1]),circOut:Bt([.55,0,1,.45]),backIn:Bt([.31,.01,.66,-.59]),backOut:Bt([.33,1.53,.69,.99])};function Na(e){if(e)return Oa(e)?Bt(e):Array.isArray(e)?e.map(Na):Ma[e]}function Cd(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=Na(a);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Td(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Da=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_d=1e-7,Pd=12;function Ad(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Da(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>_d&&++a<Pd);return s}function ln(e,t,n,r){if(e===t&&n===r)return J;const i=o=>Ad(o,0,1,e,n);return o=>o===0||o===1?o:Da(i(o),t,r)}const kd=ln(.42,0,1,1),Od=ln(0,0,.58,1),Ra=ln(.42,0,.58,1),jd=e=>Array.isArray(e)&&typeof e[0]!="number",Va=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,La=e=>t=>1-e(1-t),hi=e=>1-Math.sin(Math.acos(e)),Ia=La(hi),Md=Va(hi),$a=ln(.33,1.53,.69,.99),pi=La($a),Nd=Va(pi),Dd=e=>(e*=2)<1?.5*pi(e):.5*(2-Math.pow(2,-10*(e-1))),is={linear:J,easeIn:kd,easeInOut:Ra,easeOut:Od,circIn:hi,circInOut:Md,circOut:Ia,backIn:pi,backInOut:Nd,backOut:$a,anticipate:Dd},ss=e=>{if(Array.isArray(e)){ke(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return ln(t,n,r,i)}else if(typeof e=="string")return ke(is[e]!==void 0,`Invalid easing type '${e}'`),is[e];return e},mi=(e,t)=>n=>!!(sn(n)&&Vu.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),za=(e,t,n)=>r=>{if(!sn(r))return r;const[i,o,s,a]=r.match(Qn);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Rd=e=>Je(0,255,e),wr={...ct,transform:e=>Math.round(Rd(e))},ot={test:mi("rgb","red"),parse:za("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+wr.transform(e)+", "+wr.transform(t)+", "+wr.transform(n)+", "+Ht(Wt.transform(r))+")"};function Vd(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Vr={test:mi("#"),parse:Vd,transform:ot.transform},St={test:mi("hsl","hue"),parse:za("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Me.transform(Ht(t))+", "+Me.transform(Ht(n))+", "+Ht(Wt.transform(r))+")"},ce={test:e=>ot.test(e)||Vr.test(e)||St.test(e),parse:e=>ot.test(e)?ot.parse(e):St.test(e)?St.parse(e):Vr.parse(e),transform:e=>sn(e)?e:e.hasOwnProperty("red")?ot.transform(e):St.transform(e)},K=(e,t,n)=>-n*e+n*t+e;function Sr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ld({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Sr(l,a,e+1/3),o=Sr(l,a,e),s=Sr(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Er=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Id=[Vr,ot,St],$d=e=>Id.find(t=>t.test(e));function os(e){const t=$d(e);ke(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===St&&(n=Ld(n)),n}const Fa=(e,t)=>{const n=os(e),r=os(t),i={...n};return o=>(i.red=Er(n.red,r.red,o),i.green=Er(n.green,r.green,o),i.blue=Er(n.blue,r.blue,o),i.alpha=K(n.alpha,r.alpha,o),ot.transform(i))};function zd(e){var t,n;return isNaN(e)&&sn(e)&&(((t=e.match(Qn))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(pa))===null||n===void 0?void 0:n.length)||0)>0}const Ba={regex:Du,countKey:"Vars",token:"${v}",parse:J},Wa={regex:pa,countKey:"Colors",token:"${c}",parse:ce.parse},Ha={regex:Qn,countKey:"Numbers",token:"${n}",parse:ct.parse};function Cr(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function $n(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Cr(n,Ba),Cr(n,Wa),Cr(n,Ha),n}function Ua(e){return $n(e).values}function Ya(e){const{values:t,numColors:n,numVars:r,tokenised:i}=$n(e),o=t.length;return s=>{let a=i;for(let l=0;l<o;l++)l<r?a=a.replace(Ba.token,s[l]):l<r+n?a=a.replace(Wa.token,ce.transform(s[l])):a=a.replace(Ha.token,Ht(s[l]));return a}}const Fd=e=>typeof e=="number"?0:e;function Bd(e){const t=Ua(e);return Ya(e)(t.map(Fd))}const Qe={test:zd,parse:Ua,createTransformer:Ya,getAnimatableNone:Bd},Ga=(e,t)=>n=>`${n>0?t:e}`;function qa(e,t){return typeof e=="number"?n=>K(e,t,n):ce.test(e)?Fa(e,t):e.startsWith("var(")?Ga(e,t):Xa(e,t)}const Ka=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>qa(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},Wd=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=qa(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Xa=(e,t)=>{const n=Qe.createTransformer(t),r=$n(e),i=$n(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Xe(Ka(r.values,i.values),n):(an(!0,`Complex values '${e}' and '${t}' 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.`),Ga(e,t))},Zt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},as=(e,t)=>n=>K(e,t,n);function Hd(e){return typeof e=="number"?as:typeof e=="string"?ce.test(e)?Fa:Xa:Array.isArray(e)?Ka:typeof e=="object"?Wd:as}function Ud(e,t,n){const r=[],i=n||Hd(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||J:t;a=Xe(l,a)}r.push(a)}return r}function Za(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(ke(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Ud(t,r,i),a=s.length,l=c=>{let d=0;if(a>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const u=Zt(e[d],e[d+1],c);return s[d](u)};return n?c=>l(Je(e[0],e[o-1],c)):l}function Yd(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Zt(0,t,r);e.push(K(n,1,i))}}function Gd(e){const t=[0];return Yd(t,e.length-1),t}function qd(e,t){return e.map(n=>n*t)}function Kd(e,t){return e.map(()=>t||Ra).splice(0,e.length-1)}function zn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=jd(r)?r.map(ss):ss(r),o={done:!1,value:t[0]},s=qd(n&&n.length===t.length?n:Gd(t),e),a=Za(s,t,{ease:Array.isArray(i)?i:Kd(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function Ja(e,t){return t?e*(1e3/t):0}const Xd=5;function Qa(e,t,n){const r=Math.max(t-Xd,0);return Ja(n-e(r),t-r)}const Tr=.001,Zd=.01,ls=10,Jd=.05,Qd=1;function e0({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;an(e<=Ze(ls),"Spring duration must be 10 seconds or less");let s=1-t;s=Je(Jd,Qd,s),e=Je(Zd,ls,ze(e)),s<1?(i=c=>{const d=c*s,u=d*e,h=d-n,m=Lr(c,s),y=Math.exp(-u);return Tr-h/m*y},o=c=>{const u=c*s*e,h=u*n+n,m=Math.pow(s,2)*Math.pow(c,2)*e,y=Math.exp(-u),f=Lr(Math.pow(c,2),s);return(-i(c)+Tr>0?-1:1)*((h-m)*y)/f}):(i=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-Tr+d*u},o=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=n0(i,o,a);if(e=Ze(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const t0=12;function n0(e,t,n){let r=n;for(let i=1;i<t0;i++)r=r-e(r)/t(r);return r}function Lr(e,t){return e*Math.sqrt(1-t*t)}const r0=["duration","bounce"],i0=["stiffness","damping","mass"];function cs(e,t){return t.some(n=>e[n]!==void 0)}function s0(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!cs(e,i0)&&cs(e,r0)){const n=e0(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function el({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:d,velocity:u,isResolvedFromDuration:h}=s0({...r,velocity:-ze(r.velocity||0)}),m=u||0,y=l/(2*Math.sqrt(a*c)),f=o-i,g=ze(Math.sqrt(a/c)),b=Math.abs(f)<5;n||(n=b?.01:2),t||(t=b?.005:.5);let w;if(y<1){const x=Lr(g,y);w=E=>{const v=Math.exp(-y*g*E);return o-v*((m+y*g*f)/x*Math.sin(x*E)+f*Math.cos(x*E))}}else if(y===1)w=x=>o-Math.exp(-g*x)*(f+(m+g*f)*x);else{const x=g*Math.sqrt(y*y-1);w=E=>{const v=Math.exp(-y*g*E),C=Math.min(x*E,300);return o-v*((m+y*g*f)*Math.sinh(C)+x*f*Math.cosh(C))/x}}return{calculatedDuration:h&&d||null,next:x=>{const E=w(x);if(h)s.done=x>=d;else{let v=m;x!==0&&(y<1?v=Qa(w,x,E):v=0);const C=Math.abs(v)<=n,T=Math.abs(o-E)<=t;s.done=C&&T}return s.value=s.done?o:E,s}}}function us({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},m=P=>a!==void 0&&P<a||l!==void 0&&P>l,y=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let f=n*t;const g=u+f,b=s===void 0?g:s(g);b!==g&&(f=b-u);const w=P=>-f*Math.exp(-P/r),x=P=>b+w(P),E=P=>{const k=w(P),D=x(P);h.done=Math.abs(k)<=c,h.value=h.done?b:D};let v,C;const T=P=>{m(h.value)&&(v=P,C=el({keyframes:[h.value,y(h.value)],velocity:Qa(x,P,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:d}))};return T(0),{calculatedDuration:null,next:P=>{let k=!1;return!C&&v===void 0&&(k=!0,E(P),T(P)),v!==void 0&&P>v?C.next(P-v):(!k&&E(P),h)}}}const o0=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Y.update(t,!0),stop:()=>Fe(t),now:()=>oe.isProcessing?oe.timestamp:performance.now()}},ds=2e4;function fs(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ds;)t+=n,r=e.next(t);return t>=ds?1/0:t}const a0={decay:us,inertia:us,tween:zn,keyframes:zn,spring:el};function Fn({autoplay:e=!0,delay:t=0,driver:n=o0,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:d,onUpdate:u,...h}){let m=1,y=!1,f,g;const b=()=>{g=new Promise(W=>{f=W})};b();let w;const x=a0[i]||zn;let E;x!==zn&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&ke(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),E=Za([0,100],r,{clamp:!1}),r=[0,100]);const v=x({...h,keyframes:r});let C;a==="mirror"&&(C=x({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let T="idle",P=null,k=null,D=null;v.calculatedDuration===null&&o&&(v.calculatedDuration=fs(v));const{calculatedDuration:j}=v;let R=1/0,q=1/0;j!==null&&(R=j+s,q=R*(o+1)-s);let H=0;const ue=W=>{if(k===null)return;m>0&&(k=Math.min(k,W)),m<0&&(k=Math.min(W-q/m,k)),P!==null?H=P:H=Math.round(W-k)*m;const _e=H-t*(m>=0?1:-1),Re=m>=0?_e<0:_e>q;H=Math.max(_e,0),T==="finished"&&P===null&&(H=q);let be=H,Ve=v;if(o){const nt=Math.min(H,q)/R;let We=Math.floor(nt),Pe=nt%1;!Pe&&nt>=1&&(Pe=1),Pe===1&&We--,We=Math.min(We,o+1),!!(We%2)&&(a==="reverse"?(Pe=1-Pe,s&&(Pe-=s/R)):a==="mirror"&&(Ve=C)),be=Je(0,1,Pe)*R}const Le=Re?{done:!1,value:r[0]}:Ve.next(be);E&&(Le.value=E(Le.value));let{done:dt}=Le;!Re&&j!==null&&(dt=m>=0?H>=q:H<=0);const Rt=P===null&&(T==="finished"||T==="running"&&dt);return u&&u(Le.value),Rt&&le(),Le},U=()=>{w&&w.stop(),w=void 0},ae=()=>{T="idle",U(),f(),b(),k=D=null},le=()=>{T="finished",d&&d(),U(),f()},pe=()=>{if(y)return;w||(w=n(ue));const W=w.now();l&&l(),P!==null?k=W-P:(!k||T==="finished")&&(k=W),T==="finished"&&b(),D=k,P=null,T="running",w.start()};e&&pe();const Oe={then(W,_e){return g.then(W,_e)},get time(){return ze(H)},set time(W){W=Ze(W),H=W,P!==null||!w||m===0?P=W:k=w.now()-W/m},get duration(){const W=v.calculatedDuration===null?fs(v):v.calculatedDuration;return ze(W)},get speed(){return m},set speed(W){W===m||!w||(m=W,Oe.time=ze(H))},get state(){return T},play:pe,pause:()=>{T="paused",P=H},stop:()=>{y=!0,T!=="idle"&&(T="idle",c&&c(),ae())},cancel:()=>{D!==null&&ue(D),ae()},complete:()=>{T="finished"},sample:W=>(k=0,ue(W))};return Oe}function l0(e){let t;return()=>(t===void 0&&(t=e()),t)}const c0=l0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),u0=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),vn=10,d0=2e4,f0=(e,t)=>t.type==="spring"||e==="backgroundColor"||!ja(t.ease);function h0(e,t,{onUpdate:n,onComplete:r,...i}){if(!(c0()&&u0.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,c=!1;const d=()=>{l=new Promise(x=>{a=x})};d();let{keyframes:u,duration:h=300,ease:m,times:y}=i;if(f0(t,i)){const x=Fn({...i,repeat:0,delay:0});let E={done:!1,value:u[0]};const v=[];let C=0;for(;!E.done&&C<d0;)E=x.sample(C),v.push(E.value),C+=vn;y=void 0,u=v,h=C-vn,m="linear"}const f=Cd(e.owner.current,t,u,{...i,duration:h,ease:m,times:y}),g=()=>{c=!1,f.cancel()},b=()=>{c=!0,Y.update(g),a(),d()};return f.onfinish=()=>{c||(e.set(Td(u,i)),r&&r(),b())},{then(x,E){return l.then(x,E)},attachTimeline(x){return f.timeline=x,f.onfinish=null,J},get time(){return ze(f.currentTime||0)},set time(x){f.currentTime=Ze(x)},get speed(){return f.playbackRate},set speed(x){f.playbackRate=x},get duration(){return ze(h)},play:()=>{s||(f.play(),Fe(g))},pause:()=>f.pause(),stop:()=>{if(s=!0,f.playState==="idle")return;const{currentTime:x}=f;if(x){const E=Fn({...i,autoplay:!1});e.setWithVelocity(E.sample(x-vn).value,E.sample(x).value,vn)}b()},complete:()=>{c||f.finish()},cancel:b}}function p0({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:J,pause:J,stop:J,then:o=>(o(),Promise.resolve()),cancel:J,complete:J});return t?Fn({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const m0={type:"spring",stiffness:500,damping:25,restSpeed:10},g0=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),y0={type:"keyframes",duration:.8},v0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},b0=(e,{keyframes:t})=>t.length>2?y0:lt.has(e)?e.startsWith("scale")?g0(t[1]):m0:v0,Ir=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Qe.test(t)||t==="0")&&!t.startsWith("url(")),x0=new Set(["brightness","contrast","saturate","opacity"]);function w0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Qn)||[];if(!r)return e;const i=n.replace(r,"");let o=x0.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const S0=/([a-z-]*)\(.*?\)/g,$r={...Qe,getAnimatableNone:e=>{const t=e.match(S0);return t?t.map(w0).join(" "):e}},E0={...ma,color:ce,backgroundColor:ce,outlineColor:ce,fill:ce,stroke:ce,borderColor:ce,borderTopColor:ce,borderRightColor:ce,borderBottomColor:ce,borderLeftColor:ce,filter:$r,WebkitFilter:$r},gi=e=>E0[e];function tl(e,t){let n=gi(e);return n!==$r&&(n=Qe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const nl=e=>/^0[^.\s]+$/.test(e);function C0(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||nl(e)}function T0(e,t,n,r){const i=Ir(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let c=0;c<o.length;c++)o[c]===null&&(o[c]=c===0?s:o[c-1]),C0(o[c])&&l.push(c),typeof o[c]=="string"&&o[c]!=="none"&&o[c]!=="0"&&(a=o[c]);if(i&&l.length&&a)for(let c=0;c<l.length;c++){const d=l[c];o[d]=tl(t,a)}return o}function _0({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}function yi(e,t){return e[t]||e.default||e}const P0={skipAnimations:!1},bi=(e,t,n,r={})=>i=>{const o=yi(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Ze(s);const l=T0(t,e,n,o),c=l[0],d=l[l.length-1],u=Ir(e,c),h=Ir(e,d);an(u===h,`You are trying to animate ${e} from "${c}" to "${d}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${d} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:y=>{t.set(y),o.onUpdate&&o.onUpdate(y)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(_0(o)||(m={...m,...b0(e,m)}),m.duration&&(m.duration=Ze(m.duration)),m.repeatDelay&&(m.repeatDelay=Ze(m.repeatDelay)),!u||!h||Ed.current||o.type===!1||P0.skipAnimations)return p0(m);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=h0(t,e,m);if(y)return y}return Fn(m)};function Bn(e){return!!(fe(e)&&e.add)}const rl=e=>/^\-?\d*\.?\d+$/.test(e);function xi(e,t){e.indexOf(t)===-1&&e.push(t)}function wi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Si{constructor(){this.subscriptions=[]}add(t){return xi(this.subscriptions,t),()=>wi(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const hs=new Set;function Ei(e,t,n){e||hs.has(t)||(console.warn(t),n&&console.warn(n),hs.add(t))}const A0=e=>!isNaN(parseFloat(e));class k0{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=oe;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Y.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=()=>Y.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=A0(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Ei(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Si);const r=this.events[t].add(n);return t==="change"?()=>{r(),Y.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Ja(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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 At(e,t){return new k0(e,t)}const il=e=>t=>t.test(e),O0={test:e=>e==="auto",parse:e=>e},sl=[ct,M,Me,Ge,Iu,Lu,O0],It=e=>sl.find(il(e)),j0=[...sl,ce,Qe],M0=e=>j0.find(il(e));function N0(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,At(n))}function D0(e,t){const n=tr(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=Qu(o[s]);N0(e,s,a)}}function R0(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],c=t[l];let d=null;Array.isArray(c)&&(d=c[0]),d===null&&(d=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),d!=null&&(typeof d=="string"&&(rl(d)||nl(d))?d=parseFloat(d):!M0(d)&&Qe.test(c)&&(d=tl(l,c)),e.addValue(l,At(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function V0(e,t){return t?(t[e]||t.default||t).from:void 0}function L0(e,t,n){const r={};for(const i in e){const o=V0(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function I0({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $0(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function ol(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const h=e.getValue(u),m=a[u];if(!h||m===void 0||d&&I0(d,u))continue;const y={delay:n,elapsed:0,...yi(o||{},u)};if(window.HandoffAppearAnimations){const b=e.getProps()[aa];if(b){const w=window.HandoffAppearAnimations(b,u,h,Y);w!==null&&(y.elapsed=w,y.isHandoff=!0)}}let f=!y.isHandoff&&!$0(h,m);if(y.type==="spring"&&(h.getVelocity()||y.velocity)&&(f=!1),h.animation&&(f=!1),f)continue;h.start(bi(u,h,m,e.shouldReduceMotion&&lt.has(u)?{type:!1}:y));const g=h.animation;Bn(l)&&(l.add(u),g.then(()=>l.remove(u))),c.push(g)}return s&&Promise.all(c).then(()=>{s&&D0(e,s)}),c}function zr(e,t,n={}){const r=tr(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(ol(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:u}=i;return z0(e,t,c+l,d,u,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function z0(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(F0).forEach((c,d)=>{c.notify("AnimationStart",t),s.push(zr(c,t,{...o,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function F0(e,t){return e.sortNodePosition(t)}function B0(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>zr(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=zr(e,t,n);else{const i=typeof t=="function"?tr(e,t,n.custom):t;r=Promise.all(ol(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const W0=[...ii].reverse(),H0=ii.length;function U0(e){return t=>Promise.all(t.map(({animation:n,options:r})=>B0(e,n,r)))}function Y0(e){let t=U0(e);const n=q0();let r=!0;const i=(l,c)=>{const d=tr(e,c);if(d){const{transition:u,transitionEnd:h,...m}=d;l={...l,...m,...h}}return l};function o(l){t=l(e)}function s(l,c){const d=e.getProps(),u=e.getVariantContext(!0)||{},h=[],m=new Set;let y={},f=1/0;for(let b=0;b<H0;b++){const w=W0[b],x=n[w],E=d[w]!==void 0?d[w]:u[w],v=Kt(E),C=w===c?x.isActive:null;C===!1&&(f=b);let T=E===u[w]&&E!==d[w]&&v;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),x.protectedKeys={...y},!x.isActive&&C===null||!E&&!x.prevProp||Zn(E)||typeof E=="boolean")continue;let k=G0(x.prevProp,E)||w===c&&x.isActive&&!T&&v||b>f&&v,D=!1;const j=Array.isArray(E)?E:[E];let R=j.reduce(i,{});C===!1&&(R={});const{prevResolvedValues:q={}}=x,H={...q,...R},ue=U=>{k=!0,m.has(U)&&(D=!0,m.delete(U)),x.needsAnimating[U]=!0};for(const U in H){const ae=R[U],le=q[U];if(y.hasOwnProperty(U))continue;let pe=!1;In(ae)&&In(le)?pe=!ka(ae,le):pe=ae!==le,pe?ae!==void 0?ue(U):m.add(U):ae!==void 0&&m.has(U)?ue(U):x.protectedKeys[U]=!0}x.prevProp=E,x.prevResolvedValues=R,x.isActive&&(y={...y,...R}),r&&e.blockInitialAnimation&&(k=!1),k&&(!T||D)&&h.push(...j.map(U=>({animation:U,options:{type:w,...l}})))}if(m.size){const b={};m.forEach(w=>{const x=e.getBaseTarget(w);x!==void 0&&(b[w]=x)}),h.push({animation:b})}let g=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(h):Promise.resolve()}function a(l,c,d){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(m=>{var y;return(y=m.animationState)===null||y===void 0?void 0:y.setActive(l,c)}),n[l].isActive=c;const h=s(d,l);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function G0(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ka(t,e):!1}function rt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function q0(){return{animate:rt(!0),whileInView:rt(),whileHover:rt(),whileTap:rt(),whileDrag:rt(),whileFocus:rt(),exit:rt()}}class K0 extends et{constructor(t){super(t),t.animationState||(t.animationState=Y0(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Zn(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let X0=0;class Z0 extends et{constructor(){super(...arguments),this.id=X0++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const J0={animation:{Feature:K0},exit:{Feature:Z0}},ps=(e,t)=>Math.abs(e-t);function Q0(e,t){const n=ps(e.x,t.x),r=ps(e.y,t.y);return Math.sqrt(n**2+r**2)}class al{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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 u=Pr(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=Q0(u.offset,{x:0,y:0})>=3;if(!h&&!m)return;const{point:y}=u,{timestamp:f}=oe;this.history.push({...y,timestamp:f});const{onStart:g,onMove:b}=this.handlers;h||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,u)},this.handlePointerMove=(u,h)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=_r(h,this.transformPagePoint),Y.update(this.updatePoint,!0)},this.handlePointerUp=(u,h)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:f}=this.handlers;if(this.dragSnapToOrigin&&f&&f(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Pr(u.type==="pointercancel"?this.lastMoveEventInfo:_r(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(u,g),y&&y(u,g)},!Ca(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=er(t),a=_r(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=oe;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,Pr(a,this.history)),this.removeListeners=Xe($e(this.contextWindow,"pointermove",this.handlePointerMove),$e(this.contextWindow,"pointerup",this.handlePointerUp),$e(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Fe(this.updatePoint)}}function _r(e,t){return t?{point:t(e.point)}:e}function ms(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Pr({point:e},t){return{point:e,delta:ms(e,ll(t)),offset:ms(e,ef(t)),velocity:tf(t,.1)}}function ef(e){return e[0]}function ll(e){return e[e.length-1]}function tf(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ll(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ze(t)));)n--;if(!r)return{x:0,y:0};const o=ze(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ve(e){return e.max-e.min}function Fr(e,t=0,n=.01){return Math.abs(e-t)<=n}function gs(e,t,n,r=.5){e.origin=r,e.originPoint=K(t.min,t.max,e.origin),e.scale=ve(n)/ve(t),(Fr(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=K(n.min,n.max,e.origin)-e.originPoint,(Fr(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ut(e,t,n,r){gs(e.x,t.x,n.x,r?r.originX:void 0),gs(e.y,t.y,n.y,r?r.originY:void 0)}function ys(e,t,n){e.min=n.min+t.min,e.max=e.min+ve(t)}function nf(e,t,n){ys(e.x,t.x,n.x),ys(e.y,t.y,n.y)}function vs(e,t,n){e.min=t.min-n.min,e.max=e.min+ve(t)}function Yt(e,t,n){vs(e.x,t.x,n.x),vs(e.y,t.y,n.y)}function rf(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?K(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?K(n,e,r.max):Math.min(e,n)),e}function bs(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function sf(e,{top:t,left:n,bottom:r,right:i}){return{x:bs(e.x,n,i),y:bs(e.y,t,r)}}function xs(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function of(e,t){return{x:xs(e.x,t.x),y:xs(e.y,t.y)}}function af(e,t){let n=.5;const r=ve(e),i=ve(t);return i>r?n=Zt(t.min,t.max-r,e.min):r>i&&(n=Zt(e.min,e.max-i,t.min)),Je(0,1,n)}function lf(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Br=.35;function cf(e=Br){return e===!1?e=0:e===!0&&(e=Br),{x:ws(e,"left","right"),y:ws(e,"top","bottom")}}function ws(e,t,n){return{min:Ss(e,t),max:Ss(e,n)}}function Ss(e,t){return typeof e=="number"?e:e[t]||0}const Es=()=>({translate:0,scale:1,origin:0,originPoint:0}),Et=()=>({x:Es(),y:Es()}),Cs=()=>({min:0,max:0}),te=()=>({x:Cs(),y:Cs()});function we(e){return[e("x"),e("y")]}function cl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function uf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function df(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ar(e){return e===void 0||e===1}function Wr({scale:e,scaleX:t,scaleY:n}){return!Ar(e)||!Ar(t)||!Ar(n)}function it(e){return Wr(e)||ul(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ul(e){return Ts(e.x)||Ts(e.y)}function Ts(e){return e&&e!=="0%"}function Wn(e,t,n){const r=e-n,i=t*r;return n+i}function _s(e,t,n,r,i){return i!==void 0&&(e=Wn(e,i,r)),Wn(e,n,r)+t}function Hr(e,t=0,n=1,r,i){e.min=_s(e.min,t,n,r,i),e.max=_s(e.max,t,n,r,i)}function dl(e,{x:t,y:n}){Hr(e.x,t.translate,t.scale,t.originPoint),Hr(e.y,n.translate,n.scale,n.originPoint)}function ff(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ct(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,dl(e,s)),r&&it(o.latestValues)&&Ct(e,o.latestValues))}t.x=Ps(t.x),t.y=Ps(t.y)}function Ps(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function qe(e,t){e.min=e.min+t,e.max=e.max+t}function As(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=K(e.min,e.max,o);Hr(e,t[n],t[r],s,t.scale)}const hf=["x","scaleX","originX"],pf=["y","scaleY","originY"];function Ct(e,t){As(e.x,t,hf),As(e.y,t,pf)}function fl(e,t){return cl(df(e.getBoundingClientRect(),t))}function mf(e,t,n){const r=fl(e,n),{scroll:i}=t;return i&&(qe(r.x,i.offset.x),qe(r.y,i.offset.y)),r}const hl=({current:e})=>e?e.ownerDocument.defaultView:null,gf=new WeakMap;class yf{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=te(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(er(d,"page").point)},o=(d,u)=>{const{drag:h,dragPropagation:m,onDragStart:y}=this.getProps();if(h&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_a(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),we(g=>{let b=this.getAxisMotionValue(g).get()||0;if(Me.test(b)){const{projection:w}=this.visualElement;if(w&&w.layout){const x=w.layout.layoutBox[g];x&&(b=ve(x)*(parseFloat(b)/100))}}this.originPoint[g]=b}),y&&Y.update(()=>y(d,u),!1,!0);const{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},s=(d,u)=>{const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:y,onDrag:f}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:g}=u;if(m&&this.currentDirection===null){this.currentDirection=vf(g),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",u.point,g),this.updateAxis("y",u.point,g),this.visualElement.render(),f&&f(d,u)},a=(d,u)=>this.stop(d,u),l=()=>we(d=>{var u;return this.getAnimationState(d)==="paused"&&((u=this.getAxisMotionValue(d).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new al(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:hl(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Y.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!bn(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=rf(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&wt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=sf(i.layoutBox,n):this.constraints=!1,this.elastic=cf(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&we(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=lf(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!wt(t))return!1;const r=t.current;ke(r!==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 o=mf(r,i.root,this.visualElement.getTransformPagePoint());let s=of(i.layout.layoutBox,o);if(n){const a=n(uf(s));this.hasMutatedConstraints=!!a,a&&(s=cl(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=we(d=>{if(!bn(d,n,this.currentDirection))return;let u=l&&l[d]||{};s&&(u={min:0,max:0});const h=i?200:1e6,m=i?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(d,y)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(bi(t,r,0,n))}stopAnimation(){we(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){we(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){we(n=>{const{drag:r}=this.getProps();if(!bn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-K(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!wt(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};we(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=af({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),we(s=>{if(!bn(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(K(l,c,i[s]))})}addListeners(){if(!this.visualElement.current)return;gf.set(this.visualElement,this);const t=this.visualElement.current,n=$e(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();wt(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Ie(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(we(d=>{const u=this.getAxisMotionValue(d);u&&(this.originPoint[d]+=l[d].translate,u.set(u.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Br,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function bn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vf(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class bf extends et{constructor(t){super(t),this.removeGroupControls=J,this.removeListeners=J,this.controls=new yf(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||J}unmount(){this.removeGroupControls(),this.removeListeners()}}const ks=e=>(t,n)=>{e&&Y.update(()=>e(t,n))};class xf extends et{constructor(){super(...arguments),this.removePointerDownListener=J}onPointerDown(t){this.session=new al(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:ks(t),onStart:ks(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Y.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=$e(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function wf(){const e=_.useContext(ni);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=_.useId();return _.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Tn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Os(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const $t={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(M.test(e))e=parseFloat(e);else return e;const n=Os(e,t.target.x),r=Os(e,t.target.y);return`${n}% ${r}%`}},Sf={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Qe.parse(e);if(i.length>5)return r;const o=Qe.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const c=K(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}};class Ef extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Ou(Cf),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Tn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Y.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function pl(e){const[t,n]=wf(),r=_.useContext(ca);return _.createElement(Ef,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(ua),isPresent:t,safeToRemove:n})}const Cf={borderRadius:{...$t,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$t,borderTopRightRadius:$t,borderBottomLeftRadius:$t,borderBottomRightRadius:$t,boxShadow:Sf},ml=["TopLeft","TopRight","BottomLeft","BottomRight"],Tf=ml.length,js=e=>typeof e=="string"?parseFloat(e):e,Ms=e=>typeof e=="number"||M.test(e);function _f(e,t,n,r,i,o){i?(e.opacity=K(0,n.opacity!==void 0?n.opacity:1,Pf(r)),e.opacityExit=K(t.opacity!==void 0?t.opacity:1,0,Af(r))):o&&(e.opacity=K(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Tf;s++){const a=`border${ml[s]}Radius`;let l=Ns(t,a),c=Ns(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Ms(l)===Ms(c)?(e[a]=Math.max(K(js(l),js(c),r),0),(Me.test(c)||Me.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=K(t.rotate||0,n.rotate||0,r))}function Ns(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Pf=gl(0,.5,Ia),Af=gl(.5,.95,J);function gl(e,t,n){return r=>r<e?0:r>t?1:n(Zt(e,t,r))}function Ds(e,t){e.min=t.min,e.max=t.max}function xe(e,t){Ds(e.x,t.x),Ds(e.y,t.y)}function Rs(e,t,n,r,i){return e-=t,e=Wn(e,1/n,r),i!==void 0&&(e=Wn(e,1/i,r)),e}function kf(e,t=0,n=1,r=.5,i,o=e,s=e){if(Me.test(t)&&(t=parseFloat(t),t=K(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=K(o.min,o.max,r);e===o&&(a-=t),e.min=Rs(e.min,t,n,a,i),e.max=Rs(e.max,t,n,a,i)}function Vs(e,t,[n,r,i],o,s){kf(e,t[n],t[r],t[i],t.scale,o,s)}const Of=["x","scaleX","originX"],jf=["y","scaleY","originY"];function Ls(e,t,n,r){Vs(e.x,t,Of,n?n.x:void 0,r?r.x:void 0),Vs(e.y,t,jf,n?n.y:void 0,r?r.y:void 0)}function Is(e){return e.translate===0&&e.scale===1}function yl(e){return Is(e.x)&&Is(e.y)}function Mf(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function vl(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function $s(e){return ve(e.x)/ve(e.y)}class Nf{constructor(){this.members=[]}add(t){xi(this.members,t),t.scheduleRender()}remove(t){if(wi(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function zs(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),d&&(r+=`rotateY(${d}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const Df=(e,t)=>e.depth-t.depth;class Rf{constructor(){this.children=[],this.isDirty=!1}add(t){xi(this.children,t),this.isDirty=!0}remove(t){wi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Df),this.isDirty=!1,this.children.forEach(t)}}function Vf(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Fe(r),e(o-t))};return Y.read(r,!0),()=>Fe(r)}function Lf(e){window.MotionDebug&&window.MotionDebug.record(e)}function If(e){return e instanceof SVGElement&&e.tagName!=="svg"}function $f(e,t,n){const r=fe(e)?e:At(e);return r.start(bi("",r,t,n)),r.animation}const Fs=["","X","Y","Z"],zf={visibility:"hidden"},Bs=1e3;let Ff=0;const st={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function bl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Ff++,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,st.totalNodes=st.resolvedTargetDeltas=st.recalculatedProjection=0,this.nodes.forEach(Hf),this.nodes.forEach(Kf),this.nodes.forEach(Xf),this.nodes.forEach(Uf),Lf(st)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 Rf)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Si),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=If(s),this.instance=s;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),e){let u;const h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=Vf(h,250),Tn.hasAnimatedSinceResize&&(Tn.hasAnimatedSinceResize=!1,this.nodes.forEach(Hs))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeTargetChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const f=this.options.transition||d.getDefaultTransition()||th,{onLayoutAnimationStart:g,onLayoutAnimationComplete:b}=d.getProps(),w=!this.targetLayout||!vl(this.targetLayout,y)||m,x=!h&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||h&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,x);const E={...yi(f,"layout"),onPlay:g,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else h||Hs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Fe(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(Zf),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!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 d=0;d<this.path.length;d++){const u=this.path[d];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.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(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ws);return}this.isUpdating||this.nodes.forEach(Gf),this.isUpdating=!1,this.nodes.forEach(qf),this.nodes.forEach(Bf),this.nodes.forEach(Wf),this.clearAllSnapshots();const a=performance.now();oe.delta=Je(0,1e3/60,a-oe.timestamp),oe.timestamp=a,oe.isProcessing=!0,vr.update.process(oe),vr.preRender.process(oe),vr.render.process(oe),oe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Yf),this.sharedNodes.forEach(Jf)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Y.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Y.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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=te(),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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!yl(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;s&&(a||it(this.latestValues)||d)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),nh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return te();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(qe(a.x,l.offset.x),qe(a.y,l.offset.y)),a}removeElementScroll(s){const a=te();xe(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:u}=c;if(c!==this.root&&d&&u.layoutScroll){if(d.isRoot){xe(a,s);const{scroll:h}=this.root;h&&(qe(a.x,-h.offset.x),qe(a.y,-h.offset.y))}qe(a.x,d.offset.x),qe(a.y,d.offset.y)}}return a}applyTransform(s,a=!1){const l=te();xe(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ct(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),it(d.latestValues)&&Ct(l,d.latestValues)}return it(this.latestValues)&&Ct(l,this.latestValues),l}removeTransform(s){const a=te();xe(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!it(c.latestValues))continue;Wr(c.latestValues)&&c.updateSnapshot();const d=te(),u=c.measurePageBox();xe(d,u),Ls(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return it(this.latestValues)&&Ls(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==oe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!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(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:u,layoutId:h}=this.options;if(!(!this.layout||!(u||h))){if(this.resolvedRelativeTargetAt=oe.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),Yt(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),xe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),nf(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):xe(this.target,this.layout.layoutBox),dl(this.target,this.targetDelta)):xe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),Yt(this.relativeTargetOrigin,this.target,m.target),xe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}st.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Wr(this.parent.latestValues)||ul(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===oe.timestamp&&(c=!1),c)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;xe(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,m=this.treeScale.y;ff(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:y}=a;if(!y){this.projectionTransform&&(this.projectionDelta=Et(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Et(),this.projectionDeltaWithTransform=Et());const f=this.projectionTransform;Ut(this.projectionDelta,this.layoutCorrected,y,this.latestValues),this.projectionTransform=zs(this.projectionDelta,this.treeScale),(this.projectionTransform!==f||this.treeScale.x!==h||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),st.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},u=Et();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=te(),m=l?l.source:void 0,y=this.layout?this.layout.source:void 0,f=m!==y,g=this.getStack(),b=!g||g.members.length<=1,w=!!(f&&!b&&this.options.crossfade===!0&&!this.path.some(eh));this.animationProgress=0;let x;this.mixTargetDelta=E=>{const v=E/1e3;Us(u.x,s.x,v),Us(u.y,s.y,v),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yt(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Qf(this.relativeTarget,this.relativeTargetOrigin,h,v),x&&Mf(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=te()),xe(x,this.relativeTarget)),f&&(this.animationValues=d,_f(d,c,this.latestValues,v,w,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=v},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Fe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Y.update(()=>{Tn.hasAnimatedSinceResize=!0,this.currentAnimation=$f(0,Bs,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Bs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&xl(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||te();const u=ve(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+u;const h=ve(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}xe(a,l),Ct(a,d),Ut(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Nf),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let d=0;d<Fs.length;d++){const u="rotate"+Fs[d];l[u]&&(c[u]=l[u],s.setStaticValue(u,0))}s.render();for(const d in c)s.setStaticValue(d,c[d]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return zf;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Cn(s==null?void 0:s.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const f={};return this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Cn(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!it(this.latestValues)&&(f.transform=d?d({},""):"none",this.hasProjected=!1),f}const h=u.animationValues||u.latestValues;this.applyTransformsToTarget(),c.transform=zs(this.projectionDeltaWithTransform,this.treeScale,h),d&&(c.transform=d(h,c.transform));const{x:m,y}=this.projectionDelta;c.transformOrigin=`${m.origin*100}% ${y.origin*100}% 0`,u.animationValues?c.opacity=u===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=u===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const f in Vn){if(h[f]===void 0)continue;const{correct:g,applyTo:b}=Vn[f],w=c.transform==="none"?h[f]:g(h[f],u);if(b){const x=b.length;for(let E=0;E<x;E++)c[b[E]]=w}else c[f]=w}return this.options.layoutId&&(c.pointerEvents=u===this?Cn(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Ws),this.root.sharedNodes.clear()}}}function Bf(e){e.updateLayout()}function Wf(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?we(u=>{const h=s?n.measuredBox[u]:n.layoutBox[u],m=ve(h);h.min=r[u].min,h.max=h.min+m}):xl(o,n.layoutBox,r)&&we(u=>{const h=s?n.measuredBox[u]:n.layoutBox[u],m=ve(r[u]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+m)});const a=Et();Ut(a,r,n.layoutBox);const l=Et();s?Ut(l,e.applyTransform(i,!0),n.measuredBox):Ut(l,r,n.layoutBox);const c=!yl(a);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:m}=u;if(h&&m){const y=te();Yt(y,n.layoutBox,h.layoutBox);const f=te();Yt(f,r,m.layoutBox),vl(y,f)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=f,e.relativeTargetOrigin=y,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Hf(e){st.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Uf(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Yf(e){e.clearSnapshot()}function Ws(e){e.clearMeasurements()}function Gf(e){e.isLayoutDirty=!1}function qf(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Hs(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Kf(e){e.resolveTargetDelta()}function Xf(e){e.calcProjection()}function Zf(e){e.resetRotation()}function Jf(e){e.removeLeadSnapshot()}function Us(e,t,n){e.translate=K(t.translate,0,n),e.scale=K(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ys(e,t,n,r){e.min=K(t.min,n.min,r),e.max=K(t.max,n.max,r)}function Qf(e,t,n,r){Ys(e.x,t.x,n.x,r),Ys(e.y,t.y,n.y,r)}function eh(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const th={duration:.45,ease:[.4,0,.1,1]},Gs=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),qs=Gs("applewebkit/")&&!Gs("chrome/")?Math.round:J;function Ks(e){e.min=qs(e.min),e.max=qs(e.max)}function nh(e){Ks(e.x),Ks(e.y)}function xl(e,t,n){return e==="position"||e==="preserve-aspect"&&!Fr($s(t),$s(n),.2)}const rh=bl({attachResizeListener:(e,t)=>Ie(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),kr={current:void 0},wl=bl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!kr.current){const e=new rh({});e.mount(window),e.setOptions({layoutScroll:!0}),kr.current=e}return kr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ih={pan:{Feature:xf},drag:{Feature:bf,ProjectionNode:wl,MeasureLayout:pl}},sh=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function oh(e){const t=sh.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const ah=4;function Ur(e,t,n=1){ke(n<=ah,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=oh(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return rl(s)?parseFloat(s):s}else return Dr(i)?Ur(i,t,n+1):i}function lh(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!Dr(o))return;const s=Ur(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Dr(o))continue;const s=Ur(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const ch=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Sl=e=>ch.has(e),uh=e=>Object.keys(e).some(Sl),xn=e=>e===ct||e===M,Xs=(e,t)=>parseFloat(e.split(", ")[t]),Zs=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Xs(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?Xs(o[1],e):0}},dh=new Set(["x","y","z"]),fh=rn.filter(e=>!dh.has(e));function hh(e){const t=[];return fh.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const kt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Zs(4,13),y:Zs(5,14)};kt.translateX=kt.x;kt.translateY=kt.y;const ph=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{a[c]=kt[c](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const d=t.getValue(c);d&&d.jump(a[c]),e[c]=kt[c](l,o)}),e},mh=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Sl);let o=[],s=!1;const a=[];if(i.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],u=It(d);const h=t[l];let m;if(In(h)){const y=h.length,f=h[0]===null?1:0;d=h[f],u=It(d);for(let g=f;g<y&&h[g]!==null;g++)m?ke(It(h[g])===m,"All keyframes must be of the same type"):(m=It(h[g]),ke(m===u||xn(u)&&xn(m),"Keyframes must be of the same dimension as the current value"))}else m=It(h);if(u!==m)if(xn(u)&&xn(m)){const y=c.get();typeof y=="string"&&c.set(parseFloat(y)),typeof h=="string"?t[l]=parseFloat(h):Array.isArray(h)&&m===M&&(t[l]=h.map(parseFloat))}else u!=null&&u.transform&&(m!=null&&m.transform)&&(d===0||h===0)?d===0?c.set(m.transform(d)):t[l]=u.transform(h):(s||(o=hh(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],c.jump(h))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,c=ph(t,e,a);return o.length&&o.forEach(([d,u])=>{e.getValue(d).set(u)}),e.render(),Xn&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function gh(e,t,n,r){return uh(t)?mh(e,t,n,r):{target:t,transitionEnd:r}}const yh=(e,t,n,r)=>{const i=lh(e,t,r);return t=i.target,r=i.transitionEnd,gh(e,t,n,r)},Yr={current:null},El={current:!1};function vh(){if(El.current=!0,!!Xn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Yr.current=e.matches;e.addListener(t),t()}else Yr.current=!1}function bh(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(fe(o))e.addValue(i,o),Bn(r)&&r.add(i),process.env.NODE_ENV==="development"&&Ei(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(fe(s))e.addValue(i,At(o,{owner:e})),Bn(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,At(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Js=new WeakMap,Cl=Object.keys(Xt),xh=Cl.length,Qs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],wh=si.length;class Sh{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){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=()=>Y.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Jn(n),this.isVariantNode=la(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{});for(const u in d){const h=d[u];a[u]!==void 0&&fe(h)&&(h.set(a[u],!1),Bn(c)&&c.add(u))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Js.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),El.current||vh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Yr.current,process.env.NODE_ENV!=="production"&&Ei(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(){Js.delete(this.current),this.projection&&this.projection.unmount(),Fe(this.notifyUpdate),Fe(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=lt.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Y.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;if(process.env.NODE_ENV!=="production"&&i&&r){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?an(!1,l):ke(!1,l)}for(let l=0;l<xh;l++){const c=Cl[l],{isEnabled:d,Feature:u,ProjectionNode:h,MeasureLayout:m}=Xt[c];h&&(s=h),d(n)&&(!this.features[c]&&u&&(this.features[c]=new u(this)),m&&(a=m))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:d,dragConstraints:u,layoutScroll:h,layoutRoot:m}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!d||u&&wt(u),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:m})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];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):te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Qs.length;r++){const i=Qs[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=bh(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<wh;r++){const i=si[r],o=this.props[i];(Kt(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=At(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=fi(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!fe(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Si),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Tl extends Sh{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=L0(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){R0(this,r,s);const a=yh(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function Eh(e){return window.getComputedStyle(e)}class Ch extends Tl{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(lt.has(n)){const r=gi(n);return r&&r.default||0}else{const r=Eh(t),i=(ha(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return fl(t,n)}build(t,n,r,i){ai(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return di(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;fe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){ba(t,n,r,i)}}class Th extends Tl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(lt.has(n)){const r=gi(n);return r&&r.default||0}return n=xa.has(n)?n:ri(n),t.getAttribute(n)}measureInstanceViewportBox(){return te()}scrapeMotionValuesFromProps(t,n){return Sa(t,n)}build(t,n,r,i){ci(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){wa(t,n,r,i)}mount(t){this.isSVGTag=ui(t.tagName),super.mount(t)}}const _h=(e,t)=>oi(e)?new Th(t,{enableHardwareAcceleration:!1}):new Ch(t,{enableHardwareAcceleration:!0}),Ph={layout:{ProjectionNode:wl,MeasureLayout:pl}},Ah={...J0,...xd,...ih,...Ph},kh=Au((e,t)=>ad(e,t,Ah,_h));function Oh(e){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:p.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function jh(e){const{children:t,parentRef:n,onlyChild:r}=e,[i,o]=_.useState({top:0,left:0});return _.useLayoutEffect(()=>{if(n.current){const s=n.current.getBoundingClientRect();o({top:s.top,left:s.left+s.width})}},[n]),r?t:yc.createPortal(p.jsx("div",{style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},children:t}),n.current)}function _l({item:e,level:t=0,...n}){var k,D;const{isActive:r,isCollapsed:i,expanded:o,toggleExpand:s}=n,a=`level-${t}`,l=i?"collapsed":"expanded",c=r(e.id)?"active":"",d=(j,R=a)=>`${j} ${R} ${l} ${c}`,u=!!((k=e.children)!=null&&k.length),[h,m]=_.useState(!1),y=_.useRef(),f=window.location.origin,g=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},b=window.location.pathname.split("/")[1],w=g.pathname.split("/")[1],x=n.ssr||!f.includes("local")&&f!==g.origin||w!==b,E=u||t===0?"div":x?"a":Uo.Link,v=e.path||"#",C=t+1,T=u&&!(i&&C>=2&&!h),P=i||t===0?void 0:`${t}rem`;return p.jsxs("div",{ref:y,className:d("menu-item__wrapper"),onMouseEnter:()=>i&&m(!0),onMouseLeave:()=>i&&m(!1),children:[p.jsxs(E,{to:v,href:v,style:{paddingLeft:P,transition:"all 0.3s"},className:d("menu-item__link"),onClick:j=>{u&&(j.preventDefault(),i||s(e.id))},children:[t!==0&&p.jsx(Mh,{cls:d,item:e}),p.jsx("span",{className:d("menu-item__label"),children:e.name}),u&&p.jsx("div",{className:d("menu-item__icon-arrow__wrapper"),children:p.jsx(Oh,{className:d(`menu-item__icon-arrow__icon ${o(e.id)?"open":"close"}`)})})]}),T&&p.jsx(jh,{parentRef:y,onlyChild:!i||i&&C<2,children:p.jsx(kh.div,{className:d("menu-item__dropdown",`level-${C}`),initial:{height:i||o(e.id)?"auto":0},animate:{height:i||o(e.id)?"auto":0},transition:{duration:.25},children:(D=e.children)==null?void 0:D.map(j=>_.createElement(_l,{...n,key:j.id,item:j,level:C}))})})]})}function Mh({item:e,cls:t}){var s,a;const[n,r]=_.useState(!e.icon),i=()=>{r(!0)},o=(s=e.icon)==null?void 0:s.endsWith(".svg");return p.jsx("div",{className:t("menu-item__icon"),children:n?p.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(a=e.name.trim().at(0))==null?void 0:a.toUpperCase()}):o?p.jsx(S.ReactSVG,{src:e.icon,beforeInjection:l=>{l.setAttribute("style","margin: 0 auto;"),l.querySelectorAll("path").forEach(d=>{d.hasAttribute("fill")&&d.setAttribute("fill","currentColor"),d.hasAttribute("stroke")&&d.setAttribute("stroke","currentColor")})}}):p.jsx("img",{src:e.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:i})})}function Nh(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:p.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function Dh(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:p.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function Rh(e){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,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"})})}const Vh=`.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-1{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:37px}.menu-item__link.menu-item__link.collapsed.level-0{padding:0;height:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1;transition:all .15s ease-in-out}.menu-item__label.level-1.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0,.menu-item__label.collapsed.level-1{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:0}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__wrapper.level-0.collapsed{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}
8
- `;function Lh(e){const{baseUrl:t,menuPath:n}=e,r=Uo.useLocation(),[i,o]=_.useState([]),[s,a]=_.useState(localStorage.getItem("isCollapsed")==="true"),[l,c]=_.useState({}),d=Ci(i),[u,h]=_.useState(window.location.href);_.useEffect(()=>{h(window.location.href)},[r]);const m=Pl(d,u).filter(v=>v.parentKey!==0);console.log("matchPaths:",u,r,m);const y=v=>{c({...l,[v]:!l[v]})},f=()=>{a(!s),localStorage.setItem("isCollapsed",JSON.stringify(!s))};_.useLayoutEffect(()=>{(async()=>{var C,T;try{const k=t+(n||"/global-menu-config/api/v1/menu-items/user"),{data:D}=await qt.get(k,{withCredentials:!0});let j=D.map(q=>({...q,parentKey:0}));j=kl(j),e.replacePath&&(j=Al(j,e.replacePath));const R=$h(j);c(R),o(j)}catch(P){console.log(P),S.pushError(((T=(C=P.response)==null?void 0:C.data)==null?void 0:T.errorMessage)||"Have error when get menu items")}})()},[t,n,e.replacePath]);const[g,b]=_.useState(!1),w=s?"collapsed":"expanded",x=v=>`${v} ${w}`,E=_.useRef(null);return p.jsxs("div",{className:x("side-bar"),children:[p.jsx("div",{className:x("wrap-section side-bar__wrapper-toggle-btn"),children:p.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:f,children:s?p.jsx(Dh,{}):p.jsx(Nh,{})})}),p.jsx(ia,{ref:E,className:x("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:i.map(v=>{const C=T=>m.some(P=>P.id===T);return p.jsx(_l,{item:v,isActive:C,isCollapsed:s,expanded:T=>l[T],toggleExpand:y,replacePath:e.replacePath,ssr:e.ssr},v.id)})}),p.jsxs("div",{className:x("wrap-section side-bar__wrap-btn-logout"),children:[p.jsxs("button",{className:x("side-bar__logout-btn"),onClick:()=>b(!0),children:[p.jsx(Rh,{className:x("side-bar__icon-logout")}),p.jsx("span",{className:x("side-bar__logout-btn__text"),children:"Logout"})]}),p.jsx(Yo,{isOpen:g,onClose:()=>b(!1),onConfirm:()=>e.logout?e.logout():S.logout(e.baseUrl)})]})]})}function Ci(e){let t=[];for(const n of e)t.push(n),n.children&&(t=t.concat(Ci(n.children)));return t}function Ih(e,t){const n=new URL(e).searchParams,r=new URL(t).searchParams;return Array.from(r).filter(([i,o])=>o===n.get(i)).length}function Pl(e,t){const n=new URL(t),r=e.filter(s=>s.path&&s.path.includes("http")).map(s=>({item:s,itemUrl:new URL(s.path),matchingParamsCount:Ih(t,s.path)})).sort((s,a)=>{const l=new URL(s.itemUrl).searchParams,c=new URL(a.itemUrl).searchParams;return Array.from(l).length-Array.from(c).length}).filter(({itemUrl:s})=>n.pathname===s.pathname).sort((s,a)=>a.matchingParamsCount-s.matchingParamsCount);let i=r.length>0?r[0].item:null;console.log("matchingItems:",r);let o=[];for(;i;)o=[i,...o],i=e.find(s=>s.id===(i==null?void 0:i.parentKey))||null;return o}function Al(e,t){return e.map(n=>(n.path&&(n.path=t(n.path)),n.children&&n.children.length>0&&(n.children=Al(n.children,t)),n))}function kl(e){return e.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=kl(n.children)),n))}function $h(e){const t=Ci(e),n=Pl(t,window.location.href),r={};return n.forEach(i=>r[i.id]=!0),t.forEach(i=>{var o;(o=i.children)!=null&&o.length&&(r[i.id]=!0)}),r}function zh(e){return p.jsx(qo,{styles:[gu,Vh],style:{position:"sticky",zIndex:1200},children:p.jsx(Lh,{...e})})}const Fh=({children:e})=>p.jsxs(I.Stack,{justifyContent:"center",alignItems:"center",sx:{backgroundColor:"#FAFAFA",minHeight:"450px"},children:[p.jsx(Bh,{}),e]});function Bh(){return p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"150",height:"150",fill:"none",viewBox:"0 0 150 150",children:[p.jsx("path",{fill:"#F9FAFB",d:"M120.843 66.48a2.885 2.885 0 100-5.77 2.885 2.885 0 000 5.77zM75 127.04c28.319 0 51.276-9.006 51.276-20.115 0-11.11-22.957-20.115-51.276-20.115-28.32 0-51.276 9.006-51.276 20.115 0 11.109 22.957 20.115 51.276 20.115z"}),p.jsx("path",{fill:"#DDD",d:"M73.354 34.489l-2.13 13.355H57.378L73.354 34.49z"}),p.jsx("path",{fill:"#F9FAFB",d:"M71.223 48.157H57.38a.313.313 0 01-.295-.206.313.313 0 01.093-.346L73.154 34.25a.313.313 0 01.508.288l-2.13 13.357a.308.308 0 01-.308.263zm-12.983-.625h12.717l1.957-12.268L58.24 47.532zM74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),p.jsx("path",{fill:"#000",d:"M74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),p.jsx("path",{fill:"#85858A",d:"M74.454 58.965l3.503 4.775c-.209-.284-.431-.56-.667-.83-2.59-2.952-6.367-4.428-10.378-4.428-1.74 0-3.524.278-5.275.833l-3.503-4.775a17.477 17.477 0 015.275-.833c4.011 0 7.788 1.476 10.378 4.428.236.27.458.546.667.83z"}),p.jsx("path",{fill:"#F9FAFB",d:"M77.957 64.053a.314.314 0 01-.253-.128c-.203-.278-.422-.55-.65-.81-2.446-2.786-6.047-4.32-10.143-4.32-1.727 0-3.468.274-5.18.818a.316.316 0 01-.348-.113l-3.503-4.775a.312.312 0 01.158-.483 17.748 17.748 0 015.37-.847c4.278 0 8.047 1.61 10.612 4.533.24.274.47.561.685.853l3.5 4.772.003.003a.311.311 0 01-.251.497zM66.912 58.17c3.207 0 6.128.905 8.471 2.59l-1.18-1.61c-.203-.278-.423-.55-.65-.81-2.446-2.786-6.048-4.32-10.144-4.32-1.586 0-3.186.231-4.762.691l3.11 4.24a17.67 17.67 0 015.155-.782zM56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),p.jsx("path",{fill:"#000",d:"M56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),p.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),p.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),p.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),p.jsx("path",{fill:"#000",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),p.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),p.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),p.jsx("path",{fill:"#EEE",d:"M71.03 70.342a11.476 11.476 0 01-1.11 2.438 12.543 12.543 0 01-2.703 3.136c-2.342 1.96-5.159 2.937-7.82 2.937-2.66 0-5.164-.98-6.88-2.938C49.078 72 50.09 65.651 54.775 61.738c2.343-1.96 5.16-2.938 7.82-2.938s5.165.98 6.881 2.938a8.329 8.329 0 01.754 1.008 8.034 8.034 0 011.056 2.539c.376 1.62.28 3.364-.257 5.057z"}),p.jsx("path",{fill:"#98A2B3",d:"M71.289 65.285h-9.161c-.967 0-1.632-.754-1.482-1.688.148-.933 1.052-1.687 2.02-1.687h6.956a8.024 8.024 0 011.667 3.375zM71.03 70.342a11.476 11.476 0 01-1.11 2.438c-.155.256-.32.51-.5.76h-8.705c-.918 0-1.543-.716-1.403-1.6.142-.883.997-1.6 1.913-1.6h9.805v.002z"}),p.jsx("path",{fill:"#F7F9FC",d:"M73.632 34.257h38.646l-.591 3.703-10.155 63.675H48.801l3.071-19.259c2.022 1.048 4.33 1.571 6.72 1.571 3.213 0 6.576-.946 9.602-2.839h27.097c.471 0 .909-.366.983-.82.072-.452-.25-.819-.72-.819H70.44c2.295-1.933 3.996-4.255 5.068-6.708h21.116c.47 0 .908-.367.98-.818.072-.453-.25-.82-.72-.82H76.129c.712-2.236.91-4.531.57-6.71h21.256c.47 0 .908-.366.98-.817.073-.453-.25-.821-.719-.821H76.333a12.247 12.247 0 00-2.544-4.642c-2.59-2.951-6.367-4.427-10.378-4.427-2.389 0-4.86.523-7.215 1.569l1.184-7.432h13.845l2.13-13.354.277-.232zM93.96 89.454c.47 0 .908-.366.982-.82.072-.452-.25-.819-.72-.819H61.258c-.468 0-.907.367-.979.818-.072.453.25.821.718.821h32.964zm5.325-33.386c.47 0 .908-.367.981-.818.072-.453-.25-.82-.72-.82H77.201c-.47 0-.907.366-.979.82-.072.451.247.818.718.818h22.346z"}),p.jsx("path",{fill:"#F9FAFB",d:"M101.532 101.946h-52.73a.311.311 0 01-.309-.361l3.072-19.259a.312.312 0 01.453-.228c1.942 1.006 4.215 1.537 6.576 1.537 3.255 0 6.517-.966 9.435-2.792a.317.317 0 01.165-.047h27.098c.316 0 .625-.256.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H70.44a.313.313 0 01-.201-.551c2.175-1.834 3.898-4.114 4.983-6.595a.313.313 0 01.286-.187h21.116c.316 0 .625-.254.672-.556a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H76.128a.314.314 0 01-.299-.407c.696-2.182.889-4.453.56-6.566a.31.31 0 01.308-.361h21.256c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.321.423.423 0 00-.331-.138h-21.88a.312.312 0 01-.3-.225 11.883 11.883 0 00-2.481-4.523c-2.446-2.786-6.047-4.32-10.143-4.32-2.367 0-4.818.532-7.09 1.542a.316.316 0 01-.317-.037.31.31 0 01-.118-.298l1.184-7.431a.313.313 0 01.309-.264h13.578l2.087-13.092a.314.314 0 01.107-.19l.278-.235a.316.316 0 01.201-.074h38.649a.312.312 0 01.308.361L101.84 101.68a.31.31 0 01-.308.267zm-52.365-.625h52.098l10.646-66.753H73.746l-.102.086-2.11 13.24a.313.313 0 01-.309.264H57.647l-1.054 6.61c2.201-.9 4.546-1.373 6.818-1.373 4.278 0 8.047 1.61 10.613 4.533a12.512 12.512 0 012.541 4.535h21.652c.32 0 .614.13.807.356.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082H77.058c.253 1.971.078 4.059-.51 6.084h20.337c.32 0 .614.13.807.357.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082h-20.91c-1.019 2.252-2.544 4.337-4.444 6.083h24.285c.32 0 .614.13.807.357.191.225.27.517.22.824-.097.607-.663 1.083-1.29 1.083H68.283c-2.998 1.858-6.347 2.839-9.69 2.839-2.307 0-4.536-.488-6.48-1.416l-2.946 18.477zM93.96 89.767H60.997c-.318 0-.612-.13-.805-.357a1.004 1.004 0 01-.221-.827c.097-.607.662-1.082 1.287-1.082h32.964c.32 0 .614.131.807.357.192.225.27.517.22.824-.095.608-.661 1.085-1.288 1.085zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.42.42 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001zm38.028-31.746H76.94c-.32 0-.612-.13-.805-.356a1.004 1.004 0 01-.221-.824c.097-.608.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.663 1.08-1.289 1.08zm-22.085-1.64c-.315 0-.622.256-.67.558a.387.387 0 00.079.32.423.423 0 00.33.135h22.346c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H77.201v.002z"}),p.jsx("path",{fill:"#DDD",d:"M55.21 61.447l-.332 2.085c-.052.039-.103.078-.153.12-1.13.942-1.372 2.473-.544 3.416.036.042.075.082.115.12l-1.44 9.019a8.348 8.348 0 01-.3-.325c-1.709-1.949-2.312-4.503-1.903-7.056.407-2.554 1.823-5.106 4.154-7.054.13-.11.267-.22.403-.325zM96.884 71.122c.471 0 .792.367.72.821-.073.451-.511.818-.98.818H75.507c.237-.54.444-1.087.618-1.639h20.758z"}),p.jsx("path",{fill:"#DDD",d:"M96.623 73.074H75.508a.31.31 0 01-.261-.142.316.316 0 01-.025-.296c.235-.536.439-1.076.607-1.607a.31.31 0 01.299-.218h20.756c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.662 1.08-1.289 1.08zm-20.643-.625h20.643c.317 0 .625-.254.672-.556a.392.392 0 00-.079-.32.423.423 0 00-.332-.138h-20.53a16.42 16.42 0 01-.374 1.014zM95.555 79.468c.47 0 .791.367.719.818-.072.453-.511.821-.982.821H68.193a19.625 19.625 0 002.248-1.638h25.114z"}),p.jsx("path",{fill:"#DDD",d:"M95.292 81.42H68.193a.313.313 0 01-.165-.578 19.558 19.558 0 002.148-1.56l.059-.049a.33.33 0 01.205-.076h25.114c.32 0 .614.13.807.357.192.225.27.517.221.824-.097.605-.662 1.082-1.29 1.082zm-26.063-.626h26.063c.316 0 .625-.255.672-.556a.39.39 0 00-.08-.32.423.423 0 00-.331-.137h-25c-.425.355-.868.694-1.324 1.013z"}),p.jsx("path",{fill:"#EEE",d:"M115.432 38.557l-.495 3.106-.095.598-10.06 63.074H51.517l-2.716-3.702h52.731l10.155-63.672.592-3.704 3.153 4.3z"}),p.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.31.31 0 01-.252-.127l-2.716-3.702a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.464l10.113-63.41.592-3.704a.311.311 0 01.56-.135l3.153 4.3c.05.067.069.152.057.234l-.591 3.704-10.061 63.075a.312.312 0 01-.308.262zm-53.107-.625h52.839l10.019-62.81.57-3.576-2.634-3.592-.473 2.966-10.156 63.672a.313.313 0 01-.308.264H49.418l2.257 3.076z"}),p.jsx("path",{fill:"#DDD",d:"M108.03 109.039l3.503 4.775H58.8l-3.503-4.775h52.733z"}),p.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126H58.8a.31.31 0 01-.252-.127l-3.503-4.775a.312.312 0 01.253-.498h52.734c.1 0 .193.048.251.128l3.503 4.775a.314.314 0 01-.253.497zm-52.575-.625h51.958l-3.044-4.15H55.913l3.045 4.15z"}),p.jsx("path",{fill:"#F7F9FC",d:"M118.776 41.663l-10.746 67.376H55.297l.59-3.704h48.895l10.154-63.672h3.84z"}),p.jsx("path",{fill:"#F9FAFB",d:"M108.03 109.351H55.297a.313.313 0 01-.308-.361l.59-3.703a.313.313 0 01.308-.263h48.628l10.112-63.41a.314.314 0 01.309-.264h3.84a.313.313 0 01.308.361l-10.745 67.376a.313.313 0 01-.309.264zm-52.366-.625h52.1l10.645-66.751h-3.207l-10.112 63.41a.314.314 0 01-.308.264H56.154l-.49 3.077z"}),p.jsx("path",{fill:"#EEE",d:"M118.776 41.663l3.503 4.775-10.746 67.376-3.503-4.775 10.746-67.376z"}),p.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126a.306.306 0 01-.251-.127l-3.503-4.775a.312.312 0 01-.057-.235l10.746-67.377a.309.309 0 01.234-.254.309.309 0 01.325.12l3.503 4.775a.31.31 0 01.057.234l-10.746 67.377a.309.309 0 01-.308.262zm-3.174-5.168l2.982 4.067 10.607-66.508-2.982-4.067-10.607 66.508z"}),p.jsx("path",{fill:"#85858A",d:"M49.987 81.18L31.79 96.393c-.043.036-.088.068-.132.101l-.061.046c-.036.025-.074.047-.11.071-.026.017-.053.035-.079.05-.02.011-.04.02-.06.032a2.11 2.11 0 01-.148.075l-.055.022a2.406 2.406 0 01-.294.107l-.076.021c-.04.01-.08.02-.121.028l-.074.014a4.26 4.26 0 01-.132.018l-.062.007c-.064.005-.13.008-.193.008-.545 0-1.056-.2-1.407-.6l-.649-.739a1.784 1.784 0 01-.09-.112l3.503 4.775c.027.039.058.076.09.112l.648.739c.352.4.863.6 1.408.6.063 0 .127-.003.193-.008.02-.002.041-.006.062-.007l.132-.018.074-.014c.04-.009.08-.017.12-.028l.077-.021.055-.015.04-.015c.067-.023.134-.049.2-.077l.04-.015c.005-.003.01-.006.015-.007.05-.024.098-.049.148-.075.019-.01.037-.017.055-.028l.005-.004c.026-.015.053-.033.08-.05.033-.021.067-.04.1-.064a.025.025 0 00.009-.007l.061-.046c.034-.025.068-.048.1-.075a.364.364 0 00.032-.026l18.197-15.213-3.504-4.775z"}),p.jsx("path",{fill:"#F9FAFB",d:"M33.694 102.081c-.658 0-1.241-.252-1.641-.707l-.65-.739a1.901 1.901 0 01-.106-.134l-3.501-4.772c0-.001-.002-.001-.002-.003a.312.312 0 01.503-.369l.001.003c.023.03.046.06.071.089l.649.739c.279.318.696.493 1.172.493.056 0 .11-.003.165-.009l.056-.007c.037-.004.075-.008.114-.015l.047-.01.018-.004.106-.023.068-.019a2.276 2.276 0 00.257-.093l.047-.019c.044-.02.087-.043.13-.067l.053-.028c.011-.006.024-.013.035-.022l.058-.037a2.329 2.329 0 00.099-.067l.04-.03c.035-.027.07-.052.104-.081l18.198-15.213a.314.314 0 01.45.055l3.504 4.775a.313.313 0 01-.052.425l-18.23 15.246c-.03.023-.059.045-.09.066l-.04.029-.05.038a1.955 1.955 0 01-.095.062l-.052.032a.92.92 0 01-.058.036c-.006.005-.011.007-.017.01a.658.658 0 01-.044.022l-.013.006c-.055.029-.11.058-.166.085l-.017.008-.044.018c-.075.032-.15.061-.225.086-.013.006-.03.011-.045.017l-.046.012-.015.004-.087.024c-.046.011-.09.022-.137.031l-.015.002-.07.014c-.05.009-.1.016-.148.021l-.018.003a1.864 1.864 0 01-.27.017zm-4.003-4.825l2.112 2.877c.022.031.047.061.072.091l.648.739c.311.355.8.531 1.338.486l.054-.007a1.482 1.482 0 00.161-.025l.017-.003a1.73 1.73 0 00.105-.024c.023-.005.045-.012.068-.018l.048-.012a.295.295 0 01.034-.014c.059-.02.118-.042.177-.068.01-.006.023-.01.036-.014l.01-.004c.045-.021.089-.045.133-.068a.296.296 0 01.035-.018l.01-.006c.002-.003.006-.004.01-.005l.034-.021.065-.041a.622.622 0 00.057-.036l.033-.025.053-.04.063-.047.027-.022 17.974-15.025-3.132-4.271L31.99 96.633c-.044.037-.089.071-.135.105l-.03.023c-.017.013-.032.025-.049.036-.033.023-.067.043-.1.064l-.048.03c-.021.015-.042.027-.063.04-.017.01-.033.018-.05.026l-.018.01c-.054.029-.11.058-.165.084-.016.007-.03.014-.047.02l-.016.007a2.6 2.6 0 01-.554.173l-.015.003c-.022.004-.046.01-.068.013-.05.008-.099.015-.149.02l-.02.003a2.429 2.429 0 01-.772-.035z"}),p.jsx("path",{fill:"#98A2B3",d:"M76.699 64.414a12.649 12.649 0 00-.367-1.639 12.218 12.218 0 00-2.544-4.642c-2.59-2.951-6.367-4.426-10.378-4.426-2.39 0-4.861.522-7.216 1.57a19.487 19.487 0 00-4.58 2.862c-6.318 5.28-8.203 13.503-4.815 19.405l-18.2 15.216c-.956.797-1.162 2.093-.462 2.894l.65.74c.35.4.863.6 1.405.6a2.51 2.51 0 001.597-.6l18.198-15.212a13.02 13.02 0 001.885 1.193c2.022 1.046 4.33 1.57 6.721 1.57 3.214 0 6.576-.944 9.6-2.838.753-.47 1.482-.999 2.249-1.639 2.293-1.935 3.996-4.255 5.068-6.71.234-.537.443-1.087.616-1.638.713-2.231.911-4.53.573-6.706zm-9.481 11.503c-2.343 1.96-5.16 2.937-7.82 2.937s-5.165-.979-6.881-2.937c-3.438-3.917-2.425-10.264 2.26-14.178 2.342-1.96 5.16-2.938 7.82-2.938s5.164.98 6.88 2.938a8.34 8.34 0 01.754 1.008 8.029 8.029 0 011.056 2.54c.375 1.62.281 3.364-.258 5.056a11.476 11.476 0 01-1.11 2.438 12.45 12.45 0 01-2.701 3.136z"}),p.jsx("path",{fill:"#F9FAFB",d:"M30.192 97.307c-.659 0-1.242-.251-1.64-.708l-.65-.74a2.048 2.048 0 01-.486-1.52c.055-.68.412-1.344.982-1.82L46.4 77.471c-1.585-2.903-1.989-6.42-1.136-9.936.882-3.635 3.066-7.057 6.151-9.636a19.8 19.8 0 014.654-2.907c2.347-1.045 4.886-1.597 7.343-1.597 4.278 0 8.048 1.61 10.613 4.533a12.492 12.492 0 012.61 4.76c.16.543.286 1.106.375 1.677.344 2.207.141 4.577-.584 6.85a16.681 16.681 0 01-.627 1.668c-1.123 2.569-2.906 4.927-5.155 6.824a20.11 20.11 0 01-2.284 1.664c-3.014 1.887-6.39 2.886-9.766 2.886-2.46 0-4.833-.556-6.864-1.606A13.36 13.36 0 0150 81.58L31.989 96.633a2.817 2.817 0 01-1.797.674zM63.41 54.019c-2.37 0-4.82.534-7.089 1.544a19.182 19.182 0 00-4.507 2.815c-6.13 5.123-8.126 13.12-4.744 19.01a.313.313 0 01-.071.395L28.799 93c-.442.37-.72.875-.76 1.389-.032.401.086.777.333 1.06l.649.738c.279.32.694.495 1.17.495.495 0 .992-.188 1.398-.528l18.198-15.211a.313.313 0 01.39-.009c.583.443 1.2.835 1.84 1.164 1.941 1.005 4.216 1.536 6.577 1.536 3.257 0 6.52-.965 9.434-2.79.751-.47 1.476-.997 2.213-1.614 2.175-1.833 3.898-4.114 4.983-6.594.234-.536.437-1.077.605-1.607.696-2.184.89-4.453.561-6.565a12.39 12.39 0 00-.357-1.598 11.865 11.865 0 00-2.48-4.525c-2.445-2.786-6.048-4.32-10.142-4.32zm-4.014 25.148c-2.868 0-5.396-1.08-7.117-3.045-1.536-1.75-2.276-4.066-2.086-6.525.234-3.015 1.83-5.968 4.38-8.098 2.323-1.942 5.172-3.011 8.023-3.011 2.868 0 5.396 1.08 7.117 3.044a8.743 8.743 0 01.783 1.046 8.385 8.385 0 011.097 2.637c.385 1.66.293 3.466-.265 5.221a11.584 11.584 0 01-1.14 2.506 12.926 12.926 0 01-2.77 3.215c-2.322 1.94-5.17 3.01-8.022 3.01zm3.2-20.054c-2.704 0-5.411 1.018-7.62 2.865-2.423 2.023-3.94 4.82-4.16 7.668-.177 2.289.51 4.442 1.934 6.064 1.6 1.826 3.961 2.832 6.646 2.832 2.704 0 5.411-1.018 7.62-2.865a12.3 12.3 0 002.637-3.059c.313-.518.582-1.057.803-1.603.101-.25.194-.508.276-.768.524-1.648.611-3.34.252-4.893a7.792 7.792 0 00-1.739-3.41c-1.603-1.826-3.964-2.831-6.649-2.831z"}),p.jsx("path",{fill:"#F7F9FC",d:"M59.778 66.756a.997.997 0 00-.11-.225.974.974 0 00-.103-.14 1.233 1.233 0 00-.94-.4 1.694 1.694 0 00-1.07.401c-.372.31-.575.734-.586 1.14-.008.292.082.574.278.797.235.267.576.402.94.402s.749-.134 1.068-.402c.152-.127.277-.272.371-.429.045-.072.08-.147.113-.225.125-.305.14-.632.039-.92z"}),p.jsx("path",{fill:"#F7F9FC",d:"M58.64 64.293a1.938 1.938 0 00-.373-.639c-.414-.472-1.018-.708-1.659-.708a2.941 2.941 0 00-1.883.707c-1.13.941-1.372 2.472-.544 3.415.037.042.075.082.115.12.405.391.958.586 1.543.586.375 0 .764-.08 1.135-.242.262-.114.515-.27.75-.464.266-.225.486-.48.651-.755.063-.105.118-.212.164-.32l.032-.078c.22-.54.246-1.115.07-1.622z"}),p.jsx("path",{fill:"#DDD",d:"M104.782 105.335H51.517l-2.716-3.702h52.731l3.25 3.702z"}),p.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.308.308 0 01-.252-.128l-2.716-3.701a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.73c.09 0 .175.039.235.107l3.25 3.701c.08.092.1.224.05.335a.317.317 0 01-.286.183zm-53.107-.625h52.415l-2.701-3.076H49.417l2.258 3.076z"}),p.jsx("path",{fill:"#DDD",d:"M98.215 62.775c.47 0 .792.367.72.82-.073.452-.512.819-.981.819H76.698a12.81 12.81 0 00-.365-1.639h21.882z"}),p.jsx("path",{fill:"#DDD",d:"M97.954 64.726H76.7a.312.312 0 01-.309-.265 12.214 12.214 0 00-.357-1.599.309.309 0 01.05-.275.31.31 0 01.25-.125h21.884c.319 0 .614.131.806.357.192.225.271.518.221.825-.097.607-.663 1.082-1.29 1.082zm-20.99-.625h20.99c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H76.743c.088.335.161.674.22 1.014zM99.547 54.43c.471 0 .792.366.72.82-.073.451-.512.818-.981.818H76.94c-.47 0-.79-.367-.718-.818.072-.453.51-.82.98-.82h22.345z"}),p.jsx("path",{fill:"#DDD",d:"M99.286 56.38H76.94c-.32 0-.613-.129-.806-.355a1.004 1.004 0 01-.22-.824c.097-.607.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.191.225.271.518.221.825-.096.606-.663 1.08-1.29 1.08zM77.2 54.742c-.315 0-.622.255-.67.557a.391.391 0 00.078.32.423.423 0 00.33.136h22.347c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H77.2zM94.222 87.815c.471 0 .792.367.72.818-.073.453-.511.821-.982.821H60.997c-.468 0-.79-.366-.718-.82.072-.452.511-.819.98-.819h32.963z"}),p.jsx("path",{fill:"#DDD",d:"M93.961 89.767H60.997c-.318 0-.61-.13-.804-.356a1.004 1.004 0 01-.22-.826c.096-.607.662-1.082 1.287-1.082h32.962c.32 0 .614.13.807.357.192.225.27.516.22.823-.095.607-.662 1.084-1.288 1.084zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.419.419 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001z"}),p.jsx("path",{fill:"#DDD",d:"M80.201 69.189c-.025-.16-.053-.32-.083-.478l-.008-.046-.02-.089c-.026-.129-.056-.258-.086-.386-.011-.047-.022-.096-.035-.143a14.558 14.558 0 00-.133-.496c-.065-.223-.14-.444-.218-.663-.01-.028-.017-.056-.028-.084-.01-.029-.023-.057-.033-.085a11.396 11.396 0 00-.553-1.268c-.013-.023-.022-.047-.033-.07-.017-.034-.038-.067-.055-.1a16.26 16.26 0 00-.219-.4c-.032-.055-.061-.11-.094-.164a11.61 11.61 0 00-.337-.536v-.003c-.1-.147-.2-.293-.306-.438l-3.503-4.775a12.034 12.034 0 01.644.977l.095.164a16.362 16.362 0 01.308.57c.104.205.203.412.294.621l.021.053a11.536 11.536 0 01.297.761 12.302 12.302 0 01.47 1.69 11.138 11.138 0 01.111.614c.339 2.175.14 4.473-.57 6.707a16.401 16.401 0 01-.619 1.64c-.048.11-.1.22-.15.33-.04.086-.08.172-.122.258l-.104.214c-.043.086-.088.17-.132.257a11.944 11.944 0 01-.253.467l-.117.206-.151.256-.112.186c-.134.215-.271.43-.414.64l-.087.127a17.85 17.85 0 01-.902 1.204l-.11.135c-.15.18-.304.36-.463.537l-.075.082a18.882 18.882 0 01-1.029 1.053l-.27.249c-.048.044-.096.09-.146.134-.142.127-.285.25-.43.374a20.29 20.29 0 01-1.082.844l-.084.063a21.276 21.276 0 01-1.082.73c-.209.13-.418.256-.63.377-.056.032-.112.06-.167.093-.186.104-.373.205-.56.303l-.213.11a18.01 18.01 0 01-.62.298c-.038.017-.074.035-.112.051-.048.023-.098.043-.147.064-.136.06-.272.12-.41.175l-.204.082c-.12.047-.24.095-.36.14-.072.028-.145.055-.217.081-.118.043-.236.083-.355.124a9.937 9.937 0 01-.218.072c-.097.032-.195.06-.293.091a16.404 16.404 0 01-.997.275 16.845 16.845 0 01-1.56.308c-.123.019-.247.036-.37.052l-.267.035c-.13.015-.257.026-.385.037-.083.007-.168.017-.251.023-.142.01-.282.018-.422.025-.071.004-.14.008-.212.01-.21.01-.42.013-.63.013-2.39 0-4.697-.523-6.721-1.57a12.644 12.644 0 01-1.885-1.195l3.503 4.775c.593.454 1.224.851 1.885 1.194 2.022 1.048 4.33 1.571 6.72 1.571.209 0 .419-.004.63-.012.07-.003.14-.009.21-.011.141-.007.283-.014.423-.025l.25-.023c.13-.01.257-.023.386-.037.09-.01.178-.022.267-.033.124-.017.247-.032.37-.052l.277-.044.363-.064c.093-.018.187-.036.28-.056.12-.025.24-.05.358-.077a16.81 16.81 0 00.918-.235l.362-.107.18-.053.113-.037.218-.073c.118-.04.236-.08.354-.123l.218-.08c.12-.045.24-.092.36-.141l.204-.082c.137-.057.273-.115.41-.175.048-.022.098-.042.147-.064a.206.206 0 01.026-.011c.028-.013.056-.028.084-.04a18.01 18.01 0 001.393-.711c.04-.023.08-.042.12-.066.014-.008.031-.02.046-.027.211-.121.422-.246.63-.377.213-.133.423-.272.633-.415l.057-.038c.13-.09.262-.183.393-.277l.084-.063c.167-.122.334-.247.5-.378l.038-.029c.089-.07.18-.14.268-.214a19.263 19.263 0 00.703-.598l.146-.134c.09-.083.182-.165.27-.25l.014-.012c.017-.015.032-.032.048-.047.148-.142.293-.287.436-.43l.135-.14c.134-.14.266-.28.395-.423l.059-.063.015-.018c.158-.178.312-.357.462-.537l.11-.134c.132-.162.263-.326.388-.492.013-.019.03-.037.044-.056l.013-.017c.158-.211.31-.424.458-.639l.086-.125c.143-.213.282-.426.415-.642l.027-.04.086-.146c.051-.084.101-.17.151-.255l.117-.207.14-.256.111-.21a8.98 8.98 0 00.13-.258c.037-.07.072-.142.106-.214l.123-.258c.016-.038.036-.074.052-.111l.098-.22c.237-.54.444-1.087.618-1.639.72-2.237.92-4.534.58-6.712z"}),p.jsx("path",{fill:"#F9FAFB",d:"M62.094 89.035c-2.46 0-4.833-.556-6.864-1.607a13.081 13.081 0 01-1.931-1.224.303.303 0 01-.063-.064l-3.503-4.775a.313.313 0 01.442-.433c.57.438 1.189.83 1.839 1.165 1.941 1.006 4.215 1.536 6.576 1.536.196 0 .404-.004.618-.012.04-.001.08-.004.12-.007l.087-.006c.14-.007.277-.014.416-.025.054-.004.108-.01.16-.013l.085-.009c.13-.01.255-.023.378-.037.065-.007.13-.017.196-.025l.068-.009a16.852 16.852 0 00.607-.09l.028-.004c.118-.02.237-.04.355-.063l.277-.055c.116-.024.234-.05.351-.077.093-.02.185-.043.278-.065.117-.029.235-.058.351-.09l.275-.075c.118-.033.236-.07.354-.106l.04-.012c.083-.025.166-.052.248-.078l.214-.07c.116-.04.232-.08.348-.123.071-.026.143-.051.214-.08.118-.044.236-.09.354-.137l.055-.02.147-.059c.135-.055.268-.114.403-.172l.063-.028c.027-.01.055-.023.081-.035l.108-.05a18.639 18.639 0 001.371-.698l.068-.038.096-.052a16.582 16.582 0 001.242-.78c.147-.101.296-.204.443-.31l.083-.062c.18-.132.342-.254.493-.372l.038-.03c.187-.148.362-.29.532-.431.143-.121.283-.243.422-.367l.086-.079.094-.086c.077-.07.155-.14.23-.211l.062-.06c.14-.135.28-.272.43-.424l.133-.137c.132-.138.262-.276.389-.417l.073-.079c.147-.164.296-.337.456-.53l.108-.131c.138-.168.263-.326.38-.483l.058-.073c.144-.191.291-.397.45-.627l.084-.124c.145-.212.28-.425.407-.63l.096-.157.014-.024.149-.251c.034-.06.068-.12.1-.18l.015-.025.139-.251.11-.207c.042-.083.085-.168.129-.251l.102-.21.12-.253.012-.029c.046-.099.092-.197.135-.296.235-.536.44-1.076.607-1.608.696-2.184.889-4.453.56-6.565a11.271 11.271 0 00-.082-.467l-.028-.133a11.506 11.506 0 00-.083-.377l-.035-.142a12.175 12.175 0 00-.343-1.13l-.06-.164c-.08-.212-.154-.401-.23-.578l-.021-.051a11.148 11.148 0 00-.374-.772c-.07-.13-.14-.26-.214-.39l-.029-.05-.064-.109a11.675 11.675 0 00-.628-.951.312.312 0 01.503-.37l.001.002 3.502 4.773a12.91 12.91 0 01.661 1.002c.024.038.044.077.067.115l.029.051c.078.136.153.273.225.41l.02.036.035.067c.009.015.016.032.023.047l.01.025c.119.233.217.442.303.639l.023.053c.082.191.16.39.243.61l.01.029c.01.019.018.038.025.06.007.017.012.037.018.056l.01.03a11.728 11.728 0 01.359 1.185l.028.114.008.034c.032.132.061.264.088.396l.008.034.013.056.008.048c.034.181.062.34.086.49.343 2.21.143 4.577-.582 6.85a16.635 16.635 0 01-.73 1.892l-.031.068-.022.046a14.23 14.23 0 01-.23.48 11.92 11.92 0 01-.248.476l-.143.26-.021.037a9.74 9.74 0 01-.253.433l-.036.06c-.017.03-.035.058-.051.088l-.02.03c-.139.224-.28.443-.429.663l-.087.126c-.166.24-.319.453-.467.65l-.058.076c-.123.16-.255.33-.395.5l-.014.018-.097.119c-.165.198-.318.377-.47.547l-.017.02a.915.915 0 01-.037.038l-.023.025c-.132.145-.266.288-.402.43l-.137.14c-.154.158-.3.3-.443.438l-.017.017a9.64 9.64 0 00-.032.032l-.012.011c-.078.074-.157.146-.236.218l-.096.09-.093.084a19.541 19.541 0 01-.986.823l-.038.031c-.158.124-.325.25-.508.383l-.086.064a23.375 23.375 0 01-.438.309l-.02.013a18.483 18.483 0 01-1.283.806l-.05.03-.072.038a19.12 19.12 0 01-1.465.747l-.032.016c-.018.008-.036.018-.054.025l-.02.008-.098.043-.059.025c-.138.061-.277.12-.416.178l-.149.06-.058.023c-.122.049-.245.096-.367.142l-.22.082-.36.126-.221.074-.047.015-.069.022c-.036.011-.072.022-.11.032l-.073.022a18.815 18.815 0 01-.65.186c-.122.032-.243.064-.365.093-.095.024-.19.046-.286.069a17.79 17.79 0 01-.365.079 15.73 15.73 0 01-.656.122l-.032.005c-.083.014-.165.028-.249.04-.126.02-.251.037-.377.052l-.069.008c-.067.009-.136.018-.202.025-.13.016-.261.027-.392.04l-.083.008-.174.015c-.144.011-.287.018-.43.025l-.081.004a10.9 10.9 0 01-.767.024zm-8.379-3.3a12.43 12.43 0 001.804 1.137c1.942 1.006 4.216 1.536 6.577 1.536a16.05 16.05 0 00.739-.02l.086-.005c.139-.007.276-.013.415-.025l.163-.014.084-.008c.128-.01.253-.023.38-.037l.193-.024.069-.01c.12-.015.243-.032.364-.05.079-.012.16-.025.239-.039l.032-.005c.12-.02.237-.04.355-.063l.277-.055a20.067 20.067 0 00.63-.142l.352-.09c.091-.025.183-.049.273-.075.118-.033.236-.07.354-.106l.084-.025.093-.027.11-.038a17.076 17.076 0 00.561-.192c.072-.026.144-.051.215-.079.118-.044.236-.09.354-.137l.06-.024.14-.055c.135-.056.27-.114.403-.173l.064-.027.08-.035.061-.028.049-.024c.198-.091.404-.19.611-.293a21.557 21.557 0 00.761-.404l.063-.033.054-.03.046-.027a18.234 18.234 0 001.243-.78l.055-.035c.13-.09.259-.18.388-.274l.084-.062c.178-.131.34-.252.492-.373l.038-.03.264-.21a19.304 19.304 0 00.69-.587c.029-.025.057-.052.083-.077l.1-.092c.075-.069.152-.137.225-.208a.08.08 0 01.011-.01l.052-.05a17.113 17.113 0 00.562-.56c.132-.138.263-.277.389-.417l.074-.08a18.896 18.896 0 00.548-.644l.016-.018c.134-.165.263-.33.382-.483l.056-.074c.143-.189.29-.394.45-.626l.084-.123c.144-.212.28-.425.408-.63l.025-.039.046-.078.039-.065.148-.25c.032-.056.064-.111.095-.168l.02-.038c.046-.083.094-.166.138-.25a14.79 14.79 0 00.238-.458l.104-.211.12-.253.052-.11.096-.213c.236-.538.44-1.078.607-1.609.696-2.183.889-4.453.56-6.565a12.975 12.975 0 00-.082-.465l-.027-.132a16.316 16.316 0 00-.083-.377l-.008-.034-.025-.106a11.436 11.436 0 00-.343-1.13l-.017-.05-.01-.031-.012-.03-.021-.052a12.056 12.056 0 00-.23-.578l-.022-.051c-.08-.186-.175-.385-.287-.607l-.022-.046-.011-.025a13.258 13.258 0 00-.267-.486l-.03-.054a11.045 11.045 0 00-.389-.628c-.002-.001-.003-.004-.005-.007a13.32 13.32 0 00-.296-.422l-1.195-1.63a12.852 12.852 0 01.261.9l.036.146c.03.132.06.263.087.395l.03.139c.034.178.062.337.086.49.343 2.208.141 4.577-.582 6.85a16.382 16.382 0 01-.63 1.67c-.045.102-.094.205-.141.308l-.013.028-.123.262-.107.218-.133.261-.113.214c-.047.088-.096.174-.145.261l-.013.025a12.525 12.525 0 01-.26.446l-.014.024-.1.165c-.13.213-.272.432-.422.653l-.088.128c-.164.239-.316.451-.466.65l-.059.075c-.123.162-.252.326-.394.5l-.113.136c-.163.198-.318.376-.47.546l-.077.082a23.629 23.629 0 01-.54.572 18.55 18.55 0 01-.443.437l-.064.063-.238.22-.09.082c-.032.03-.062.059-.094.087a19.541 19.541 0 01-.988.823l-.037.03c-.157.123-.324.25-.509.384l-.086.064a21.1 21.1 0 01-1.1.743c-.197.124-.407.249-.64.383l-.106.059-.063.036a18.867 18.867 0 01-1.417.72l-.049.023-.064.03-.091.04-.06.026c-.139.06-.278.12-.417.178l-.155.062-.053.02c-.122.05-.243.097-.367.142l-.222.082a17.86 17.86 0 01-.58.2l-.26.08-.04.01a18.815 18.815 0 01-1.666.427 17.24 17.24 0 01-.655.122l-.028.004-.254.042c-.127.02-.252.036-.377.052l-.066.008c-.07.01-.138.018-.206.026-.129.016-.258.027-.387.04l-.087.008a7.906 7.906 0 01-.173.015c-.143.01-.286.018-.43.025l-.081.004a17.27 17.27 0 01-.775.02c-2.461 0-4.834-.556-6.864-1.608-.154-.079-.306-.162-.456-.247l2.446 3.33zM120.843 90.037a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.134zM33.935 82.412a2.067 2.067 0 100-4.133 2.067 2.067 0 000 4.133zM34.97 84.083a.728.728 0 100-1.455.728.728 0 000 1.455zM45.217 56.42a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.133zM47.632 53.008a.728.728 0 100-1.455.728.728 0 000 1.455z"}),p.jsx("path",{fill:"#EEE",d:"M126.15 45.536a3.556 3.556 0 10-.001-7.11 3.556 3.556 0 00.001 7.11z"}),p.jsx("path",{fill:"#F9FAFB",d:"M122.594 40.225a1.693 1.693 0 100-3.386 1.693 1.693 0 000 3.386z"})]})}var Wh=typeof S.commonjsGlobal=="object"&&S.commonjsGlobal&&S.commonjsGlobal.Object===Object&&S.commonjsGlobal,Hh=typeof self=="object"&&self&&self.Object===Object&&self;Wh||Hh||Function("return this")();function Uh(e){const[t,n]=_.useState(!!e),r=_.useCallback(()=>{n(!0)},[]),i=_.useCallback(()=>{n(!1)},[]),o=_.useCallback(()=>{n(s=>!s)},[]);return{value:t,setValue:n,setTrue:r,setFalse:i,toggle:o}}function Yh(e){var t;return p.jsxs(I.Dialog,{...e.dialogProps,open:e.open,children:[!e.hideTitle&&p.jsxs(I.DialogTitle,{component:I.Stack,sx:{...e.titleProps,textAlign:"center"},children:[typeof e.title=="string"?p.jsx(I.Typography,{variant:"h4",children:e.title}):e.title,typeof e.subTitle=="string"?p.jsx(I.Typography,{color:"success.main",variant:"body1",...e.subTitleProps,children:e.subTitle}):e.subTitle]}),p.jsx(I.DialogContent,{sx:{...e.contentProps,overflowY:e.fixOverflow?"unset":void 0},children:e.desc}),!(e.hideClose&&e.hideConfirm)&&p.jsx(I.DialogActions,{...e.dialogActionsProps,sx:{display:"flex",justifyContent:"space-between","& button":{minWidth:e.minWidthButton||200},px:3,pb:3,...(t=e.dialogActionsProps)==null?void 0:t.sx},children:e.customActions?e.customActions:p.jsxs(p.Fragment,{children:[!e.hideClose&&p.jsx(I.Button,{color:"error",onClick:e.onClose,children:"Close"}),!e.hideConfirm&&p.jsx(I.Button,{color:"primary",onClick:e.onConfirm,children:"Submit"})]})})]})}function Gh(e){const t=Uh(typeof e=="boolean"?e:void 0);return{setTrue:t.setTrue,open:t.value,onClose:t.setFalse,onConfirm:typeof e!="boolean"?e==null?void 0:e.onConfirm:void 0}}const qh=()=>p.jsx("div",{className:S.styles["page-container"],children:p.jsxs("div",{className:S.styles["page-main-content"],children:[p.jsx(Kh,{}),p.jsxs("div",{className:"flex flex-col gap-[8px] items-center justify-center text-center",children:[p.jsx("h2",{className:S.styles["page-title"],children:S.t("components.unauthorizedPage.title")}),p.jsxs("p",{className:S.styles["text-base"],children:[S.t("components.unauthorizedPage.description1")," ",p.jsx("br",{})," ",S.t("components.unauthorizedPage.description2")]})]})]})}),Kh=()=>p.jsxs("svg",{width:"61",height:"60",viewBox:"0 0 61 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsxs("g",{filter:"url(#filter0_d_10800_50471)",children:[p.jsx("rect",{x:"2.5",y:"1",width:"56",height:"56",rx:"28",fill:"white"}),p.jsx("path",{d:"M24.6667 27.833V23.1663C24.6667 21.6192 25.2812 20.1355 26.3752 19.0416C27.4692 17.9476 28.9529 17.333 30.5 17.333C32.0471 17.333 33.5308 17.9476 34.6248 19.0416C35.7188 20.1355 36.3333 21.6192 36.3333 23.1663V27.833M22.3333 27.833H38.6667C39.9553 27.833 41 28.8777 41 30.1663V38.333C41 39.6217 39.9553 40.6663 38.6667 40.6663H22.3333C21.0447 40.6663 20 39.6217 20 38.333V30.1663C20 28.8777 21.0447 27.833 22.3333 27.833Z",stroke:"#292929","stroke-width":"2.33333","stroke-linecap":"round","stroke-linejoin":"round"})]}),p.jsx("defs",{children:p.jsxs("filter",{id:"filter0_d_10800_50471",x:"0.5",y:"0",width:"60",height:"60",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[p.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),p.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),p.jsx("feOffset",{dy:"1"}),p.jsx("feGaussianBlur",{stdDeviation:"1"}),p.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0"}),p.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_10800_50471"}),p.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_10800_50471",result:"shape"})]})})]});function Ke(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ol(e){if(!Ke(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ol(e[n])}),t}function Ne(e,t,n={clone:!0}){const r=n.clone?S._extends({},e):e;return Ke(e)&&Ke(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Ke(t[i])&&i in e&&Ke(e[i])?r[i]=Ne(e[i],t[i],n):n.clone?r[i]=Ke(t[i])?Ol(t[i]):t[i]:r[i]=t[i])}),r}const Xh=Object.freeze(Object.defineProperty({__proto__:null,default:Ne,isPlainObject:Ke},Symbol.toStringTag,{value:"Module"}));function Jt(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Zh=Object.freeze(Object.defineProperty({__proto__:null,default:Jt},Symbol.toStringTag,{value:"Module"}));var Gr={exports:{}},$={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../index.module-160774a9.cjs"),p=require("react/jsx-runtime"),_=require("react"),Ho=require("../Colors-51ce6654.cjs"),se=require("moment"),qt=require("axios");require("@r2wc/react-to-web-component");const Uo=require("react-router-dom"),vc=require("react-dom"),L=require("@mui/material");function bc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const N=bc(_),xc=`.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#ffffff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px}.confirm-btn{background:#e01b00!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}
2
+ `;function Yo({isOpen:e,onClose:t,onConfirm:n}){if(!e)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&t()}return p.jsxs(p.Fragment,{children:[p.jsx("style",{type:"text/css",children:xc}),p.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:p.jsxs("div",{className:"modal-container",children:[p.jsx("h3",{className:"modal-title",children:"Log out"}),p.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),p.jsxs("div",{className:"modal-footer",children:[p.jsx("button",{className:"modal-button",onClick:t,children:"Cancel"}),p.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}function wc({primaryColor:e="#009d4f"}){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:e,"stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),p.jsx("path",{d:"M15.9965 11.5H16.0054",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),p.jsx("path",{d:"M11.9955 11.5H12.0045",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),p.jsx("path",{d:"M7.99451 11.5H8.00349",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})}const Sc=e=>{const{tabs:t}=e,n=r=>{e.setCurrentTab(r.target.id)};return p.jsxs("div",{className:"tab-container",children:[p.jsx("div",{style:{display:"flex",width:"100%",height:"50px",borderBottom:`1px solid ${Ho.color.grey200}`},className:"tab-container__title",children:t.map((r,i)=>p.jsx("button",{id:r.id,disabled:e.currentTab===`${r.id}`,onClick:n,className:`tab-title ${e.currentTab===`${r.id}`?"is-active":""}`,children:r.tabTitle},i))}),p.jsx("div",{className:"tab-content",children:t.map((r,i)=>p.jsx("div",{children:e.currentTab===`${r.id}`&&p.jsx("div",{children:r.children})},i))})]})},Ec=({notification:e,handleUpdateRead:t})=>{const n=r=>{const i=se(),o=se(r),s=i.diff(o,"days");return s===0?"Today":s===1?"Yesterday":s>=2&&s<=7?`Last ${s} days`:s===8||s===9||s===10?"1 week ago":s>=11&&s<=14?"2 weeks ago":o.format("MMMM DD, YYYY")};return p.jsxs("div",{className:"notitification-item__container",onClick:()=>t(e.id,!e.isRead),children:[p.jsx("div",{className:"notification-item__image-container",children:p.jsx("img",{src:e==null?void 0:e.userAvatarUrl,onError:({currentTarget:r})=>{r.onerror=null,r.src="https://ukpcsaprod.blob.core.windows.net/account/logo.png"},alt:e.userName})}),p.jsxs("div",{className:"notification-item__content",children:[p.jsx("p",{className:"notification-item__user-name",children:e.userName}),p.jsxs("p",{children:[`${e.message} `,p.jsx("span",{children:e==null?void 0:e.context})]})]}),p.jsx("div",{className:"notification-item__time",children:p.jsx("p",{children:n(e.createdAt)})}),p.jsx("button",{className:`${(e==null?void 0:e.isRead)===!1?"unread":"read"} notification-item__read-at`,onClick:()=>t(e.id,!e.isRead),"aria-label":"Mark as read"})]})},Bi=({notidata:e,handleUpdateRead:t,handleUpdateReadAll:n})=>p.jsxs("div",{children:[p.jsx("div",{className:"mark-all-read",children:p.jsx("button",{onClick:n,children:"Mark all as read"})}),p.jsx("div",{className:"notification-items__wrapper",children:p.jsx("div",{className:"notification-items__content",children:Object.values(e).map((r,i)=>p.jsx(Ec,{notification:r,handleUpdateRead:t},i))})})]}),Go=({baseUrl:e,notiPath:t,setNotiData:n})=>async()=>{const o=e+(t||"/notification-management/api/v1/notifications"),s=await qt.get(o,{params:{filter:{notificationFilterType:"all"}},withCredentials:!0}),a=await qt.get(o,{params:{filter:{notificationFilterType:"unread"}},withCredentials:!0});Promise.all([s,a]).then(l=>{var c,d,u,h;console.log("result: "+l),n({all:{rows:(c=l[0].data)==null?void 0:c.rows,total:(d=l[0].data)==null?void 0:d.total},unread:{rows:(u=l[1].data)==null?void 0:u.rows,total:(h=l[1].data)==null?void 0:h.total}})})},Tc=({baseUrl:e,notiPath:t})=>{var u,h,m,y;const{setShowModalFalse:n}=_.useContext(S.CustomOpenList),{notidata:r,setNotiData:i}=_.useContext(S.CustomOpenList);console.log(r);const[o,s]=_.useState("all"),a=Go({baseUrl:e,notiPath:t,setNotiData:i}),l=async()=>{var f,g;try{const w=e+(t||"/notification-management/api/v1/notifications");await qt.put(w,{withCredentials:!0})}catch(b){console.log(b),S.pushError(((g=(f=b.response)==null?void 0:f.data)==null?void 0:g.errorMessage)||"Have error when get notification list")}await a()},c=async(f,g)=>{var b,w;try{const x=t||`/notification-management/api/v1/notifications/${f}`,E=e+x;await qt.put(E,{isRead:g},{withCredentials:!0})}catch(x){S.pushError(((w=(b=x.response)==null?void 0:b.data)==null?void 0:w.errorMessage)||"Have error when get notification list")}await a()},d=[{id:"all",tabTitle:`All (${((u=r==null?void 0:r.all)==null?void 0:u.total)||0})`,children:p.jsx(Bi,{notidata:((h=r==null?void 0:r.all)==null?void 0:h.rows)||[],handleUpdateRead:c,handleUpdateReadAll:l})},{id:"unread",tabTitle:`Unread (${((m=r==null?void 0:r.unread)==null?void 0:m.total)||0})`,children:p.jsx(Bi,{notidata:((y=r==null?void 0:r.unread)==null?void 0:y.rows)||[],handleUpdateRead:c,handleUpdateReadAll:l})}];return p.jsx(p.Fragment,{children:p.jsx("div",{style:{position:"absolute",backgroundColor:"#fff",width:"550px",height:"90vh",right:"100px",top:"100%",padding:"32px",boxShadow:"10px 0px 20px #999",borderRadius:"0 0 8px 8px",overflow:"hidden"},children:p.jsxs("div",{className:"list-content",children:[p.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[p.jsx("h3",{style:{fontSize:"24px",fontWeight:"500"},className:"list-title",children:"Notifications"}),p.jsx("button",{onClick:n,children:p.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})})]}),p.jsx(Sc,{tabs:d,setCurrentTab:s,currentTab:o})]})})})};function Cc({primaryColor:e="#009d4f",baseUrl:t,notiPath:n}){var c;const{isOpen:r,toggleOpen:i}=_.useContext(S.CustomOpenList),{notidata:o,setNotiData:s}=_.useContext(S.CustomOpenList),a=Go({baseUrl:t,notiPath:n,setNotiData:s}),l=async()=>{var d,u;try{await a()}catch(h){S.pushError(((u=(d=h.response)==null?void 0:d.data)==null?void 0:u.errorMessage)||"Have error when get notification list")}};return _.useEffect(()=>{l()},[]),p.jsxs("div",{children:[p.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,style:{cursor:"pointer"},children:[p.jsx("path",{fillRule:"evenodd",clipRule:"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:e,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),p.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:e,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(o==null?void 0:o.unread)&&(o==null?void 0:o.unread.total)!=0&&p.jsx("span",{style:{position:"absolute",top:"18px",background:`${Ho.color.dangerDark}`,width:"13px",height:"13px",border:"1px solid #fff",borderRadius:"50%",color:"#fff",fontSize:"8px"},className:"notification-badge",children:(c=o==null?void 0:o.unread)==null?void 0:c.total}),!r&&p.jsx(Tc,{baseUrl:t,notiPath:n})]})}const _c=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
3
+ `;function qo({children:e,styles:t=[],...n}){return p.jsxs(S.C.div,{...n,children:[[_c,...t].map((r,i)=>p.jsx("style",{type:"text/css",children:r},i)),e]})}const Pc=`.avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar{position:fixed;display:flex;z-index:30;background:#292929;top:0;width:100%;padding-left:2.5rem;height:64px}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}.logo-container{padding:16px 0;height:100%}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.languageDropdown{height:100%;padding:0 8px;display:flex;flex-direction:row;gap:8px;border-radius:3px;align-items:center;justify-content:center;height:41px;background-color:#ffffff1a;cursor:pointer;transition:background-color .2s ease-in-out}.languageDropdown:hover{background-color:#fff3}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem}.userAvatar{width:2.5rem;height:2.5rem;cursor:pointer;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}.userAvatarNull{width:2.5rem;height:2.5rem;background:#DDDDDD;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}
4
+ `,Ac=`.tab-title{min-width:90px;padding:5px 16px;font-size:14px;font-weight:500;color:#c5c5c5;transition:all .3s ease-in-out;position:relative}.tab-title.is-active{color:#2e7d32}.tab-title.is-active:before{transition:all .3s ease-in-out;position:absolute;content:"";width:100%;height:100%;top:0;left:0;border-bottom:2px solid #2E7D32}.tab-content{padding:16px 0}
5
+ `,kc=`:root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto}.notitification-item__container{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;cursor:pointer;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notitification-item__container:not(:last-child):before{position:absolute;content:"";width:100%;bottom:-5px;left:0;border:1px solid #FAFAFA}.notitification-item__container:hover:before{opacity:1}.notification-item__image-container{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__context-link{color:#007bff}.notification-item__content{width:65%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}
6
+ `,Oc=`._notification-massage_container_ql4az_1{background:#fff;padding:0 64px 0 84px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif}._notification-massage_container_ql4az_1:before{position:absolute;content:"";width:48px;height:48px;background:url(https://ukpcsaprod.blob.core.windows.net/saas/notification-icon.svg) no-repeat center/100%;top:12px;left:24px}._notification-name_ql4az_18{font-weight:500;font-size:14px}._notification-message_service_ql4az_23{font-size:12px}._notification-message_button-close_ql4az_27{position:absolute;top:12px;right:24px;width:24px;height:24px}
7
+ `,jc=`._subscription-diaglog_12x9u_2{position:fixed;width:100vw;height:100vh;top:0;left:0;background-color:#0006;z-index:10000;display:flex;align-items:center;justify-content:center}._subscription-container_12x9u_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff}._subscription-title_12x9u_24{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_12x9u_24,._subscription-text_12x9u_33{margin-bottom:24px}._subscription-btn__container_12x9u_37{display:flex;justify-content:space-between;align-items:center}._btn-success_12x9u_43,._btn-cancel_12x9u_44{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px}._btn-cancel_12x9u_44{background-color:#ddd}._btn-success_12x9u_43{background-color:#93d500}
8
+ `;function Mc(e){return p.jsxs("svg",{width:"34",height:"25",viewBox:"0 0 34 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsxs("g",{"clip-path":"url(#clip0_16865_28134)",children:[p.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"#1A47B8"}),p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.61691 0.5H0V4.5L30.3635 24.5L34 24.5V20.5L3.61691 0.5Z",fill:"white"}),p.jsx("path",{d:"M1.20635 0.5L34 22.1567V24.5H32.8219L0 2.82089V0.5H1.20635Z",fill:"#F93939"}),p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.7619 0.5H34V4.5C34 4.5 12.9683 17.8249 3.2381 24.5H0V20.5L30.7619 0.5Z",fill:"white"}),p.jsx("path",{d:"M34 0.5H32.9019L0 22.1753V24.5H1.20635L34 2.83842V0.5Z",fill:"#F93939"}),p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.3648 0.5H21.6635V7.90291H34V17.0922H21.6635V24.5H12.3648V17.0922H0V7.90291H12.3648V0.5Z",fill:"white"}),p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3158 0.5H19.6842V9.73077H34V15.2692H19.6842V24.5H14.3158V15.2692H0V9.73077H14.3158V0.5Z",fill:"#F93939"})]}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_16865_28134",children:p.jsx("rect",{y:"0.5",width:"34",height:"24",rx:"3",fill:"white"})})})]})}function Nc(e){return p.jsxs("svg",{width:"34",height:"24",viewBox:"0 0 34 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsxs("g",{"clip-path":"url(#clip0_16886_62505)",children:[p.jsx("rect",{width:"34",height:"24",rx:"3",fill:"#F93939"}),p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 16H34V24H0V16Z",fill:"#FFDA2C"}),p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 0H34V8H0V0Z",fill:"#151515"})]}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_16886_62505",children:p.jsx("rect",{width:"34",height:"24",rx:"3",fill:"white"})})})]})}function Dc({logo:e,user:t,baseUrl:n,notiPath:r,style:i,classNames:o="",customColors:s,notiprops:a}){const l=e||"/public/assets/icons/logo-header.png",c={...i,color:(s==null?void 0:s.color)||"black",backgroundColor:(s==null?void 0:s.bgColor)||"black"},[d,u]=_.useState(!1),h=()=>{window.location.href=`${n}/authentication/logout?callbackUrl=${window.location.href}`};return p.jsxs(qo,{styles:[Pc,Ac,kc,Oc,jc],style:{zIndex:1202},children:[p.jsx("nav",{className:`navbar ${o}`,style:s?c:i,children:p.jsxs("div",{className:"navbar-container",children:[p.jsx("div",{className:"logo-container",children:p.jsx("img",{src:l,alt:"logo-header"})}),p.jsxs("div",{className:"right-side-container",children:[p.jsx("span",{children:p.jsxs(S.CustomOpenListProvider,{children:[p.jsx(yc,{baseUrl:a.baseUrl,path:a.path,apiKey:a.apiKey,authDomain:a.authDomain,projectId:a.projectId,storageBucket:a.storageBucket,messagingSenderId:a.messagingSenderId,appId:a.appId,measurementId:a.measurementId,vapidKey:a.vapidKey}),p.jsx(Cc,{primaryColor:s==null?void 0:s.primaryColor,baseUrl:n,notiPath:r})]})}),p.jsx("span",{className:"cursor-pointer",children:p.jsx(wc,{primaryColor:s==null?void 0:s.primaryColor})}),p.jsx(Rc,{primaryColor:s==null?void 0:s.primaryColor}),p.jsxs("div",{className:"userContainer",children:[p.jsx(Vc,{primaryColor:s==null?void 0:s.primaryColor,avatarUrl:t==null?void 0:t.avatarUrl,userName:t==null?void 0:t.firstName,setShowConfirmModal:u}),p.jsx("p",{className:"userFullName",children:`${(t==null?void 0:t.firstName)||"Unknown"} ${(t==null?void 0:t.lastName)||"User"}`})]})]})]})}),p.jsx(Yo,{isOpen:d,onClose:()=>u(!1),onConfirm:h})]})}function Rc({primaryColor:e="#009d4f"}){var a;const[t,n]=_.useState(!1),r=_.useRef(null),i=[{value:S.Language.en,element:p.jsx(Mc,{})},{value:S.Language.de,element:p.jsx(Nc,{})}],{language:o,setLanguage:s}=S.useCustomTranslation();return _.useEffect(()=>{const l=c=>{r.current&&!r.current.contains(c.target)&&n(!1)};return document.addEventListener("click",l,!0),()=>{document.removeEventListener("click",l,!0)}},[r]),p.jsxs("div",{className:"languageDropdownContainer",style:{position:"relative"},children:[p.jsxs("div",{className:"languageDropdown",onClick:()=>{n(!t)},ref:r,children:[(a=i.find(l=>l.value==o))==null?void 0:a.element,p.jsx("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M4.42724 7.92678L7.82372 11.3232C7.92135 11.4209 8.07964 11.4209 8.17727 11.3232L11.5737 7.92678C11.7312 7.76928 11.6197 7.5 11.3969 7.5H4.60402C4.38129 7.5 4.26975 7.76929 4.42724 7.92678Z",fill:"#85858A"})})]}),p.jsx("div",{className:"dropdownListLanguage",style:{display:t?"block":"none",position:"absolute",top:"53px",right:"0px",padding:"8px",boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)",backgroundColor:"#fafafa"},children:i.filter(l=>l.value!==o).map(l=>p.jsx("div",{className:"languageItem",style:{width:"100px",padding:"8px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},onMouseEnter:c=>{c.currentTarget.style.backgroundColor=e,c.currentTarget.style.transition="background-color 0.3s ease-in-out"},onMouseLeave:c=>{c.currentTarget.style.backgroundColor="#fafafa",c.currentTarget.style.transition="background-color 0.3s ease-out"},onClick:()=>{s(l.value),localStorage.setItem("language",l.value),S.instance.changeLanguage(l.value),n(!1),window.location.reload()},children:l.element}))})]})}function Vc({avatarUrl:e,userName:t,setShowConfirmModal:n,primaryColor:r="#009d4f"}){const[i,o]=_.useState(!1),s=_.useRef(null),a=_.useRef(null),[l,c]=_.useState(!1),[d,u]=_.useState(!1),h={backgroundColor:l?r:"transparent"},m={backgroundColor:d?r:"transparent"};return _.useEffect(()=>{const y=f=>{s.current&&!s.current.contains(f.target)&&o(!1),a.current&&!a.current.contains(f.target)&&o(!1)};return document.addEventListener("click",y,!0),()=>{document.removeEventListener("click",y,!0)}},[s]),p.jsx(p.Fragment,{children:p.jsxs("div",{style:{position:"relative"},children:[e?p.jsx("img",{onClick:()=>o(!i),ref:s,alt:"user avatar",className:"userAvatar",src:e}):p.jsx("div",{onClick:()=>o(!i),ref:s,className:"userAvatarNull",children:(t==null?void 0:t.charAt(0))??""}),p.jsx("div",{style:{display:i?"block":"none"},className:"avartarDropdownMenu",ref:a,children:p.jsxs("ul",{children:[p.jsx("li",{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:m,className:"avatar-dropdown-item",children:"Profile"}),p.jsx("li",{onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),style:h,onClick:()=>n(!0),className:"avatar-dropdown-item",children:"Logout"})]})})]})})}var Ic=typeof global=="object"&&global&&global.Object===Object&&global;const Lc=Ic;var $c=typeof self=="object"&&self&&self.Object===Object&&self,zc=Lc||$c||Function("return this")();const Ko=zc;var Fc=Ko.Symbol;const Dn=Fc;var Xo=Object.prototype,Bc=Xo.hasOwnProperty,Wc=Xo.toString,It=Dn?Dn.toStringTag:void 0;function Hc(e){var t=Bc.call(e,It),n=e[It];try{e[It]=void 0;var r=!0}catch{}var i=Wc.call(e);return r&&(t?e[It]=n:delete e[It]),i}var Uc=Object.prototype,Yc=Uc.toString;function Gc(e){return Yc.call(e)}var qc="[object Null]",Kc="[object Undefined]",Wi=Dn?Dn.toStringTag:void 0;function Xc(e){return e==null?e===void 0?Kc:qc:Wi&&Wi in Object(e)?Hc(e):Gc(e)}function Zc(e){return e!=null&&typeof e=="object"}var Jc="[object Symbol]";function Qc(e){return typeof e=="symbol"||Zc(e)&&Xc(e)==Jc}var eu=/\s/;function tu(e){for(var t=e.length;t--&&eu.test(e.charAt(t)););return t}var nu=/^\s+/;function ru(e){return e&&e.slice(0,tu(e)+1).replace(nu,"")}function Rn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Hi=0/0,iu=/^[-+]0x[0-9a-f]+$/i,su=/^0b[01]+$/i,ou=/^0o[0-7]+$/i,au=parseInt;function Ui(e){if(typeof e=="number")return e;if(Qc(e))return Hi;if(Rn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Rn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ru(e);var n=su.test(e);return n||ou.test(e)?au(e.slice(2),n?2:8):iu.test(e)?Hi:+e}var lu=function(){return Ko.Date.now()};const gr=lu;var cu="Expected a function",uu=Math.max,du=Math.min;function En(e,t,n){var r,i,o,s,a,l,c=0,d=!1,u=!1,h=!0;if(typeof e!="function")throw new TypeError(cu);t=Ui(t)||0,Rn(n)&&(d=!!n.leading,u="maxWait"in n,o=u?uu(Ui(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function m(T){var C=r,P=i;return r=i=void 0,c=T,s=e.apply(P,C),s}function y(T){return c=T,a=setTimeout(b,t),d?m(T):s}function f(T){var C=T-l,P=T-c,k=t-C;return u?du(k,o-P):k}function g(T){var C=T-l,P=T-c;return l===void 0||C>=t||C<0||u&&P>=o}function b(){var T=gr();if(g(T))return w(T);a=setTimeout(b,f(T))}function w(T){return a=void 0,h&&r?m(T):(r=i=void 0,s)}function x(){a!==void 0&&clearTimeout(a),c=0,r=l=i=a=void 0}function E(){return a===void 0?s:w(gr())}function v(){var T=gr(),C=g(T);if(r=arguments,i=this,l=T,C){if(a===void 0)return y(l);if(u)return clearTimeout(a),a=setTimeout(b,t),m(l)}return a===void 0&&(a=setTimeout(b,t)),s}return v.cancel=x,v.flush=E,v}var fu="Expected a function";function hu(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(fu);return Rn(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),En(e,t,{leading:r,maxWait:t,trailing:i})}var pu=!!(typeof window<"u"&&window.document&&window.document.createElement),mu=pu;const Zo=S.getDefaultExportFromCjs(mu);var xt=function(){return xt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},xt.apply(this,arguments)},bt=null,Yi=null;Zo&&window.addEventListener("resize",function(){Yi!==window.devicePixelRatio&&(Yi=window.devicePixelRatio,bt=null)});function Gi(){if(bt===null){if(typeof document>"u")return bt=0,bt;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),bt=n}return bt}function Jo(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Qo(e){return!e||!e.ownerDocument?document:e.ownerDocument}var ea=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},t);return n};function ta(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function na(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function ra(e){return".".concat(e.split(" ").join("."))}var gu=Object.freeze({__proto__:null,getElementWindow:Jo,getElementDocument:Qo,getOptions:ea,addClasses:ta,removeClasses:na,classNamesToQuery:ra}),He=Jo,yr=Qo,yu=ea,Ue=ta,Ye=na,de=ra,mn=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=He(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Ue(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Ye(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Ue(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Ye(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,a,l,c,d,u,h,m,y,f;if(!(!r.draggedAxis||!r.contentWrapperEl)){var g,b=r.axis[r.draggedAxis].track,w=(s=(o=b.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,x=r.axis[r.draggedAxis].scrollbar,E=(l=(a=r.contentWrapperEl)===null||a===void 0?void 0:a[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,v=parseInt((d=(c=r.elStyles)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].sizeAttr])!==null&&d!==void 0?d:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?g=i.pageY:g=i.pageX;var T=g-((h=(u=b.rect)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-r.axis[r.draggedAxis].dragOffset;T=r.draggedAxis==="x"&&r.isRtl?((y=(m=b.rect)===null||m===void 0?void 0:m[r.axis[r.draggedAxis].sizeAttr])!==null&&y!==void 0?y:0)-x.size-T:T;var C=T/(w-x.size),P=C*(E-v);r.draggedAxis==="x"&&r.isRtl&&(P=!((f=e.getRtlHelpers())===null||f===void 0)&&f.isScrollingToNegative?-P:P),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=P}},this.onEndDrag=function(i){var o=yr(r.el),s=He(r.el);i.preventDefault(),i.stopPropagation(),Ye(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=xt(xt({},e.defaultOptions),n),this.classNames=xt(xt({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=hu(this._onMouseMove,64),this.onWindowResize=En(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=En(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=En(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Gi()}catch{return Gi()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=yr(t),i=He(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){Zo&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(de(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(de(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(de(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(de(this.classNames.offset)),this.maskEl=this.el.querySelector(de(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,de(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(de(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(de(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(de(this.classNames.track)).concat(de(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(de(this.classNames.track)).concat(de(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(de(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(de(this.classNames.scrollbar)))||null,this.options.autoHide||(Ue(this.axis.x.scrollbar.el,this.classNames.visible),Ue(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=He(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=He(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||c,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var d=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&c>n,this.axis.y.isOverflowing=l>d,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>o-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>d-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,s=o/i,a;return a=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],a=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[t].sizeAttr],10),c=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];c=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-c:c,t==="x"&&this.isRtl&&(c=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?c:-c);var d=c/(s-l),u=~~((a-o.size)*d);u=t==="x"&&this.isRtl?-u+(a-o.size):u,o.el.style.transform=t==="x"?"translate3d(".concat(u,"px, 0, 0)"):"translate3d(0, ".concat(u,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Ue(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Ye(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Ue(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Ue(n.scrollbar.el,this.classNames.hover):Ye(n.scrollbar.el,this.classNames.hover)):(Ye(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Ye(this.axis[t].track.el,this.classNames.hover),Ye(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y");var i=yr(this.el),o=He(this.el),s=this.axis[n].scrollbar,a=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=a-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Ue(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,o,s,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var c=He(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var d=this.axis[n].scrollbar,u=(o=(i=d.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,h=parseInt((a=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&a!==void 0?a:"0px",10),m=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],y=n==="y"?this.mouseY-u:this.mouseX-u,f=y<0?-1:1,g=f===-1?m-h:m+h,b=40,w=function(){r.contentWrapperEl&&(f===-1?m>g&&(m-=b,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=m,c.requestAnimationFrame(w)):m<g&&(m+=b,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=m,c.requestAnimationFrame(w)))};w()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=He(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=yu,e.helpers=gu,e}(),me=function(){return me=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},me.apply(this,arguments)};function vu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var ia=N.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=vu(e,["children","scrollableNodeProps"]),s=N.useRef(),a=N.useRef(),l=N.useRef(),c={},d={};Object.keys(o).forEach(function(m){Object.prototype.hasOwnProperty.call(mn.defaultOptions,m)?c[m]=o[m]:d[m]=o[m]});var u=me(me({},mn.defaultOptions.classNames),c.classNames),h=me(me({},i),{className:"".concat(u.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":c.ariaLabel||mn.defaultOptions.ariaLabel});return N.useEffect(function(){var m;return a.current=h.ref?h.ref.current:a.current,s.current&&(m=new mn(s.current,me(me(me({},c),a.current&&{scrollableNode:a.current}),l.current&&{contentNode:l.current})),typeof t=="function"?t(m):t&&(t.current=m)),function(){m==null||m.unMount(),m=null,typeof t=="function"&&t(null)}},[]),N.createElement("div",me({"data-simplebar":"init",ref:s},d),N.createElement("div",{className:u.wrapper},N.createElement("div",{className:u.heightAutoObserverWrapperEl},N.createElement("div",{className:u.heightAutoObserverEl})),N.createElement("div",{className:u.mask},N.createElement("div",{className:u.offset},typeof n=="function"?n({scrollableNodeRef:a,scrollableNodeProps:me(me({},h),{ref:a}),contentNodeRef:l,contentNodeProps:{className:u.contentEl,ref:l}}):N.createElement("div",me({},h),N.createElement("div",{className:u.contentEl},n)))),N.createElement("div",{className:u.placeholder})),N.createElement("div",{className:"".concat(u.track," simplebar-horizontal")},N.createElement("div",{className:u.scrollbar})),N.createElement("div",{className:"".concat(u.track," simplebar-vertical")},N.createElement("div",{className:u.scrollbar})))});ia.displayName="SimpleBar";const bu=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
9
+ `,xu=e=>p.jsx(S.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit"},...e}),wu=e=>p.jsx(S.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit",width:"610px"},containerId:"toastifyNotification",...e}),sa=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Kn=_.createContext({}),ti=_.createContext(null),Xn=typeof document<"u",Su=Xn?_.useLayoutEffect:_.useEffect,oa=_.createContext({strict:!1}),ni=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Eu="framerAppearId",aa="data-"+ni(Eu);function Tu(e,t,n,r){const{visualElement:i}=_.useContext(Kn),o=_.useContext(oa),s=_.useContext(ti),a=_.useContext(sa).reducedMotion,l=_.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;_.useInsertionEffect(()=>{c&&c.update(n,s)});const d=_.useRef(!!(n[aa]&&!window.HandoffComplete));return Su(()=>{c&&(c.render(),d.current&&c.animationState&&c.animationState.animateChanges())}),_.useEffect(()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),c}function wt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Cu(e,t,n){return _.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):wt(n)&&(n.current=r))},[t])}function Kt(e){return typeof e=="string"||Array.isArray(e)}function Zn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ri=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ii=["initial",...ri];function Jn(e){return Zn(e.animate)||ii.some(t=>Kt(e[t]))}function la(e){return!!(Jn(e)||e.variants)}function _u(e,t){if(Jn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Kt(n)?n:void 0,animate:Kt(r)?r:void 0}}return e.inherit!==!1?t:{}}function Pu(e){const{initial:t,animate:n}=_u(e,_.useContext(Kn));return _.useMemo(()=>({initial:t,animate:n}),[qi(t),qi(n)])}function qi(e){return Array.isArray(e)?e.join(" "):e}const Ki={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"]},Xt={};for(const e in Ki)Xt[e]={isEnabled:t=>Ki[e].some(n=>!!t[n])};function Au(e){for(const t in e)Xt[t]={...Xt[t],...e[t]}}const ca=_.createContext({}),ua=_.createContext({}),ku=Symbol.for("motionComponentSymbol");function Ou({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Au(e);function o(a,l){let c;const d={..._.useContext(sa),...a,layoutId:ju(a)},{isStatic:u}=d,h=Pu(a),m=r(a,u);if(!u&&Xn){h.visualElement=Tu(i,m,d,t);const y=_.useContext(ua),f=_.useContext(oa).strict;h.visualElement&&(c=h.visualElement.loadFeatures(d,f,e,y))}return N.createElement(Kn.Provider,{value:h},c&&h.visualElement?N.createElement(c,{visualElement:h.visualElement,...d}):null,n(i,a,Cu(m,h.visualElement,l),m,u,h.visualElement))}const s=_.forwardRef(o);return s[ku]=i,s}function ju({layoutId:e}){const t=_.useContext(ca).id;return t&&e!==void 0?t+"-"+e:e}function Mu(e){function t(r,i={}){return Ou(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Nu=["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 si(e){return typeof e!="string"||e.includes("-")?!1:!!(Nu.indexOf(e)>-1||/[A-Z]/.test(e))}const Vn={};function Du(e){Object.assign(Vn,e)}const rn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lt=new Set(rn);function da(e,{layout:t,layoutId:n}){return lt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Vn[e]||e==="opacity")}const fe=e=>!!(e&&e.getVelocity),Ru={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Vu=rn.length;function Iu(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<Vu;s++){const a=rn[s];if(e[a]!==void 0){const l=Ru[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const fa=e=>t=>typeof t=="string"&&t.startsWith(e),ha=fa("--"),Dr=fa("var(--"),Lu=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,$u=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Je=(e,t,n)=>Math.min(Math.max(n,e),t),ct={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Wt={...ct,transform:e=>Je(0,1,e)},gn={...ct,default:1},Ht=e=>Math.round(e*1e5)/1e5,Qn=/(-)?([\d]*\.?[\d])+/g,pa=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,zu=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function sn(e){return typeof e=="string"}const on=e=>({test:t=>sn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ge=on("deg"),Me=on("%"),M=on("px"),Fu=on("vh"),Bu=on("vw"),Xi={...Me,parse:e=>Me.parse(e)/100,transform:e=>Me.transform(e*100)},Zi={...ct,transform:Math.round},ma={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,radius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,size:M,top:M,right:M,bottom:M,left:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,rotate:Ge,rotateX:Ge,rotateY:Ge,rotateZ:Ge,scale:gn,scaleX:gn,scaleY:gn,scaleZ:gn,skew:Ge,skewX:Ge,skewY:Ge,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:Wt,originX:Xi,originY:Xi,originZ:M,zIndex:Zi,fillOpacity:Wt,strokeOpacity:Wt,numOctaves:Zi};function oi(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,c=!1,d=!0;for(const u in t){const h=t[u];if(ha(u)){o[u]=h;continue}const m=ma[u],y=$u(h,m);if(lt.has(u)){if(l=!0,s[u]=y,!d)continue;h!==(m.default||0)&&(d=!1)}else u.startsWith("origin")?(c=!0,a[u]=y):i[u]=y}if(t.transform||(l||r?i.transform=Iu(e.transform,n,d,r):i.transform&&(i.transform="none")),c){const{originX:u="50%",originY:h="50%",originZ:m=0}=a;i.transformOrigin=`${u} ${h} ${m}`}}const ai=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ga(e,t,n){for(const r in t)!fe(t[r])&&!da(r,n)&&(e[r]=t[r])}function Wu({transformTemplate:e},t,n){return _.useMemo(()=>{const r=ai();return oi(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Hu(e,t,n){const r=e.style||{},i={};return ga(i,r,e),Object.assign(i,Wu(e,t,n)),e.transformValues?e.transformValues(i):i}function Uu(e,t,n){const r={},i=Hu(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Yu=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 In(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Yu.has(e)}let ya=e=>!In(e);function Gu(e){e&&(ya=t=>t.startsWith("on")?!In(t):e(t))}try{Gu(require("@emotion/is-prop-valid").default)}catch{}function qu(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(ya(i)||n===!0&&In(i)||!t&&!In(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Ji(e,t,n){return typeof e=="string"?e:M.transform(t+n*e)}function Ku(e,t,n){const r=Ji(t,e.x,e.width),i=Ji(n,e.y,e.height);return`${r} ${i}`}const Xu={offset:"stroke-dashoffset",array:"stroke-dasharray"},Zu={offset:"strokeDashoffset",array:"strokeDasharray"};function Ju(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Xu:Zu;e[o.offset]=M.transform(-r);const s=M.transform(t),a=M.transform(n);e[o.array]=`${s} ${a}`}function li(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},d,u,h){if(oi(e,c,d,h),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:y,dimensions:f}=e;m.transform&&(f&&(y.transform=m.transform),delete m.transform),f&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=Ku(f,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&Ju(m,s,a,l,!1)}const va=()=>({...ai(),attrs:{}}),ci=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Qu(e,t,n,r){const i=_.useMemo(()=>{const o=va();return li(o,t,{enableHardwareAcceleration:!1},ci(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};ga(o,e.style,e),i.style={...o,...i.style}}return i}function ed(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(si(n)?Qu:Uu)(r,o,s,n),d={...qu(r,typeof n=="string",e),...l,ref:i},{children:u}=r,h=_.useMemo(()=>fe(u)?u.get():u,[u]);return _.createElement(n,{...d,children:h})}}function ba(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const xa=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 wa(e,t,n,r){ba(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(xa.has(i)?i:ni(i),t.attrs[i])}function ui(e,t){const{style:n}=e,r={};for(const i in n)(fe(n[i])||t.style&&fe(t.style[i])||da(i,e))&&(r[i]=n[i]);return r}function Sa(e,t){const n=ui(e,t);for(const r in e)if(fe(e[r])||fe(t[r])){const i=rn.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function di(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function td(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ln=e=>Array.isArray(e),nd=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),rd=e=>Ln(e)?e[e.length-1]||0:e;function Tn(e){const t=fe(e)?e.get():e;return nd(t)?t.toValue():t}function id({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:sd(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Ea=e=>(t,n)=>{const r=_.useContext(Kn),i=_.useContext(ti),o=()=>id(e,t,r,i);return n?o():td(o)};function sd(e,t,n,r){const i={},o=r(e,{});for(const h in o)i[h]=Tn(o[h]);let{initial:s,animate:a}=e;const l=Jn(e),c=la(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const u=d?a:s;return u&&typeof u!="boolean"&&!Zn(u)&&(Array.isArray(u)?u:[u]).forEach(m=>{const y=di(e,m);if(!y)return;const{transitionEnd:f,transition:g,...b}=y;for(const w in b){let x=b[w];if(Array.isArray(x)){const E=d?x.length-1:0;x=x[E]}x!==null&&(i[w]=x)}for(const w in f)i[w]=f[w]}),i}const J=e=>e;class Qi{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function od(e){let t=new Qi,n=new Qi,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,c=!1,d=!1)=>{const u=d&&i,h=u?t:n;return c&&s.add(l),h.add(l)&&u&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let c=0;c<r;c++){const d=t.order[c];d(l),s.has(d)&&(a.schedule(d),e())}i=!1,o&&(o=!1,a.process(l))}};return a}const yn=["prepare","read","update","preRender","render","postRender"],ad=40;function ld(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=yn.reduce((u,h)=>(u[h]=od(()=>n=!0),u),{}),s=u=>o[u].process(i),a=()=>{const u=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(u-i.timestamp,ad),1),i.timestamp=u,i.isProcessing=!0,yn.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:yn.reduce((u,h)=>{const m=o[h];return u[h]=(y,f=!1,g=!1)=>(n||l(),m.schedule(y,f,g)),u},{}),cancel:u=>yn.forEach(h=>o[h].cancel(u)),state:i,steps:o}}const{schedule:Y,cancel:Fe,state:oe,steps:vr}=ld(typeof requestAnimationFrame<"u"?requestAnimationFrame:J,!0),cd={useVisualState:Ea({scrapeMotionValuesFromProps:Sa,createRenderState:va,onMount:(e,t,{renderState:n,latestValues:r})=>{Y.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Y.render(()=>{li(n,r,{enableHardwareAcceleration:!1},ci(t.tagName),e.transformTemplate),wa(t,n)})}})},ud={useVisualState:Ea({scrapeMotionValuesFromProps:ui,createRenderState:ai})};function dd(e,{forwardMotionProps:t=!1},n,r){return{...si(e)?cd:ud,preloadedFeatures:n,useRender:ed(t),createVisualElement:r,Component:e}}function Le(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Ta=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function er(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const fd=e=>t=>Ta(t)&&e(t,er(t));function $e(e,t,n,r){return Le(e,t,fd(n),r)}const hd=(e,t)=>n=>t(e(n)),Xe=(...e)=>e.reduce(hd);function Ca(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const es=Ca("dragHorizontal"),ts=Ca("dragVertical");function _a(e){let t=!1;if(e==="y")t=ts();else if(e==="x")t=es();else{const n=es(),r=ts();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Pa(){const e=_a(!0);return e?(e(),!1):!0}class et{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ns(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||Pa())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Y.update(()=>a[r](o,s))};return $e(e.current,n,i,{passive:!e.getProps()[r]})}class pd extends et{mount(){this.unmount=Xe(ns(this.node,!0),ns(this.node,!1))}unmount(){}}class md extends et{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Xe(Le(this.node.current,"focus",()=>this.onFocus()),Le(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Aa=(e,t)=>t?e===t?!0:Aa(e,t.parentElement):!1;function br(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,er(n))}class gd extends et{constructor(){super(...arguments),this.removeStartListeners=J,this.removeEndListeners=J,this.removeAccessibleListeners=J,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=$e(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:d,globalTapTarget:u}=this.node.getProps();Y.update(()=>{!u&&!Aa(this.node.current,a.target)?d&&d(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=$e(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Xe(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||br("up",(l,c)=>{const{onTap:d}=this.node.getProps();d&&Y.update(()=>d(l,c))})};this.removeEndListeners(),this.removeEndListeners=Le(this.node.current,"keyup",s),br("down",(a,l)=>{this.startPress(a,l)})},n=Le(this.node.current,"keydown",t),r=()=>{this.isPressing&&br("cancel",(o,s)=>this.cancelPress(o,s))},i=Le(this.node.current,"blur",r);this.removeAccessibleListeners=Xe(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Y.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Pa()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Y.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=$e(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Le(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Xe(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Rr=new WeakMap,xr=new WeakMap,yd=e=>{const t=Rr.get(e.target);t&&t(e)},vd=e=>{e.forEach(yd)};function bd({root:e,...t}){const n=e||document;xr.has(n)||xr.set(n,{});const r=xr.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(vd,{root:e,...t})),r[i]}function xd(e,t,n){const r=bd(t);return Rr.set(e,n),r.observe(e),()=>{Rr.delete(e),r.unobserve(e)}}const wd={some:0,all:1};class Sd extends et{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:wd[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:u}=this.node.getProps(),h=c?d:u;h&&h(l)};return xd(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Ed(t,n))&&this.startObserver()}unmount(){}}function Ed({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Td={inView:{Feature:Sd},tap:{Feature:gd},focus:{Feature:md},hover:{Feature:pd}};function ka(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Cd(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function _d(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function tr(e,t,n){const r=e.getProps();return di(r,t,n!==void 0?n:r.custom,Cd(e),_d(e))}let an=J,ke=J;process.env.NODE_ENV!=="production"&&(an=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},ke=(e,t)=>{if(!e)throw new Error(t)});const Ze=e=>e*1e3,ze=e=>e/1e3,Pd={current:!1},Oa=e=>Array.isArray(e)&&typeof e[0]=="number";function ja(e){return!!(!e||typeof e=="string"&&Ma[e]||Oa(e)||Array.isArray(e)&&e.every(ja))}const Bt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ma={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bt([0,.65,.55,1]),circOut:Bt([.55,0,1,.45]),backIn:Bt([.31,.01,.66,-.59]),backOut:Bt([.33,1.53,.69,.99])};function Na(e){if(e)return Oa(e)?Bt(e):Array.isArray(e)?e.map(Na):Ma[e]}function Ad(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=Na(a);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function kd(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Da=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Od=1e-7,jd=12;function Md(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Da(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Od&&++a<jd);return s}function ln(e,t,n,r){if(e===t&&n===r)return J;const i=o=>Md(o,0,1,e,n);return o=>o===0||o===1?o:Da(i(o),t,r)}const Nd=ln(.42,0,1,1),Dd=ln(0,0,.58,1),Ra=ln(.42,0,.58,1),Rd=e=>Array.isArray(e)&&typeof e[0]!="number",Va=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ia=e=>t=>1-e(1-t),fi=e=>1-Math.sin(Math.acos(e)),La=Ia(fi),Vd=Va(fi),$a=ln(.33,1.53,.69,.99),hi=Ia($a),Id=Va(hi),Ld=e=>(e*=2)<1?.5*hi(e):.5*(2-Math.pow(2,-10*(e-1))),rs={linear:J,easeIn:Nd,easeInOut:Ra,easeOut:Dd,circIn:fi,circInOut:Vd,circOut:La,backIn:hi,backInOut:Id,backOut:$a,anticipate:Ld},is=e=>{if(Array.isArray(e)){ke(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return ln(t,n,r,i)}else if(typeof e=="string")return ke(rs[e]!==void 0,`Invalid easing type '${e}'`),rs[e];return e},pi=(e,t)=>n=>!!(sn(n)&&zu.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),za=(e,t,n)=>r=>{if(!sn(r))return r;const[i,o,s,a]=r.match(Qn);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},$d=e=>Je(0,255,e),wr={...ct,transform:e=>Math.round($d(e))},ot={test:pi("rgb","red"),parse:za("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+wr.transform(e)+", "+wr.transform(t)+", "+wr.transform(n)+", "+Ht(Wt.transform(r))+")"};function zd(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Vr={test:pi("#"),parse:zd,transform:ot.transform},St={test:pi("hsl","hue"),parse:za("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Me.transform(Ht(t))+", "+Me.transform(Ht(n))+", "+Ht(Wt.transform(r))+")"},ce={test:e=>ot.test(e)||Vr.test(e)||St.test(e),parse:e=>ot.test(e)?ot.parse(e):St.test(e)?St.parse(e):Vr.parse(e),transform:e=>sn(e)?e:e.hasOwnProperty("red")?ot.transform(e):St.transform(e)},K=(e,t,n)=>-n*e+n*t+e;function Sr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Fd({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Sr(l,a,e+1/3),o=Sr(l,a,e),s=Sr(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Er=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Bd=[Vr,ot,St],Wd=e=>Bd.find(t=>t.test(e));function ss(e){const t=Wd(e);ke(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===St&&(n=Fd(n)),n}const Fa=(e,t)=>{const n=ss(e),r=ss(t),i={...n};return o=>(i.red=Er(n.red,r.red,o),i.green=Er(n.green,r.green,o),i.blue=Er(n.blue,r.blue,o),i.alpha=K(n.alpha,r.alpha,o),ot.transform(i))};function Hd(e){var t,n;return isNaN(e)&&sn(e)&&(((t=e.match(Qn))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(pa))===null||n===void 0?void 0:n.length)||0)>0}const Ba={regex:Lu,countKey:"Vars",token:"${v}",parse:J},Wa={regex:pa,countKey:"Colors",token:"${c}",parse:ce.parse},Ha={regex:Qn,countKey:"Numbers",token:"${n}",parse:ct.parse};function Tr(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function $n(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Tr(n,Ba),Tr(n,Wa),Tr(n,Ha),n}function Ua(e){return $n(e).values}function Ya(e){const{values:t,numColors:n,numVars:r,tokenised:i}=$n(e),o=t.length;return s=>{let a=i;for(let l=0;l<o;l++)l<r?a=a.replace(Ba.token,s[l]):l<r+n?a=a.replace(Wa.token,ce.transform(s[l])):a=a.replace(Ha.token,Ht(s[l]));return a}}const Ud=e=>typeof e=="number"?0:e;function Yd(e){const t=Ua(e);return Ya(e)(t.map(Ud))}const Qe={test:Hd,parse:Ua,createTransformer:Ya,getAnimatableNone:Yd},Ga=(e,t)=>n=>`${n>0?t:e}`;function qa(e,t){return typeof e=="number"?n=>K(e,t,n):ce.test(e)?Fa(e,t):e.startsWith("var(")?Ga(e,t):Xa(e,t)}const Ka=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>qa(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},Gd=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=qa(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Xa=(e,t)=>{const n=Qe.createTransformer(t),r=$n(e),i=$n(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Xe(Ka(r.values,i.values),n):(an(!0,`Complex values '${e}' and '${t}' 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.`),Ga(e,t))},Zt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},os=(e,t)=>n=>K(e,t,n);function qd(e){return typeof e=="number"?os:typeof e=="string"?ce.test(e)?Fa:Xa:Array.isArray(e)?Ka:typeof e=="object"?Gd:os}function Kd(e,t,n){const r=[],i=n||qd(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||J:t;a=Xe(l,a)}r.push(a)}return r}function Za(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(ke(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Kd(t,r,i),a=s.length,l=c=>{let d=0;if(a>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const u=Zt(e[d],e[d+1],c);return s[d](u)};return n?c=>l(Je(e[0],e[o-1],c)):l}function Xd(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Zt(0,t,r);e.push(K(n,1,i))}}function Zd(e){const t=[0];return Xd(t,e.length-1),t}function Jd(e,t){return e.map(n=>n*t)}function Qd(e,t){return e.map(()=>t||Ra).splice(0,e.length-1)}function zn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Rd(r)?r.map(is):is(r),o={done:!1,value:t[0]},s=Jd(n&&n.length===t.length?n:Zd(t),e),a=Za(s,t,{ease:Array.isArray(i)?i:Qd(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function Ja(e,t){return t?e*(1e3/t):0}const e0=5;function Qa(e,t,n){const r=Math.max(t-e0,0);return Ja(n-e(r),t-r)}const Cr=.001,t0=.01,as=10,n0=.05,r0=1;function i0({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;an(e<=Ze(as),"Spring duration must be 10 seconds or less");let s=1-t;s=Je(n0,r0,s),e=Je(t0,as,ze(e)),s<1?(i=c=>{const d=c*s,u=d*e,h=d-n,m=Ir(c,s),y=Math.exp(-u);return Cr-h/m*y},o=c=>{const u=c*s*e,h=u*n+n,m=Math.pow(s,2)*Math.pow(c,2)*e,y=Math.exp(-u),f=Ir(Math.pow(c,2),s);return(-i(c)+Cr>0?-1:1)*((h-m)*y)/f}):(i=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-Cr+d*u},o=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=o0(i,o,a);if(e=Ze(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const s0=12;function o0(e,t,n){let r=n;for(let i=1;i<s0;i++)r=r-e(r)/t(r);return r}function Ir(e,t){return e*Math.sqrt(1-t*t)}const a0=["duration","bounce"],l0=["stiffness","damping","mass"];function ls(e,t){return t.some(n=>e[n]!==void 0)}function c0(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ls(e,l0)&&ls(e,a0)){const n=i0(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function el({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:d,velocity:u,isResolvedFromDuration:h}=c0({...r,velocity:-ze(r.velocity||0)}),m=u||0,y=l/(2*Math.sqrt(a*c)),f=o-i,g=ze(Math.sqrt(a/c)),b=Math.abs(f)<5;n||(n=b?.01:2),t||(t=b?.005:.5);let w;if(y<1){const x=Ir(g,y);w=E=>{const v=Math.exp(-y*g*E);return o-v*((m+y*g*f)/x*Math.sin(x*E)+f*Math.cos(x*E))}}else if(y===1)w=x=>o-Math.exp(-g*x)*(f+(m+g*f)*x);else{const x=g*Math.sqrt(y*y-1);w=E=>{const v=Math.exp(-y*g*E),T=Math.min(x*E,300);return o-v*((m+y*g*f)*Math.sinh(T)+x*f*Math.cosh(T))/x}}return{calculatedDuration:h&&d||null,next:x=>{const E=w(x);if(h)s.done=x>=d;else{let v=m;x!==0&&(y<1?v=Qa(w,x,E):v=0);const T=Math.abs(v)<=n,C=Math.abs(o-E)<=t;s.done=T&&C}return s.value=s.done?o:E,s}}}function cs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},m=P=>a!==void 0&&P<a||l!==void 0&&P>l,y=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let f=n*t;const g=u+f,b=s===void 0?g:s(g);b!==g&&(f=b-u);const w=P=>-f*Math.exp(-P/r),x=P=>b+w(P),E=P=>{const k=w(P),D=x(P);h.done=Math.abs(k)<=c,h.value=h.done?b:D};let v,T;const C=P=>{m(h.value)&&(v=P,T=el({keyframes:[h.value,y(h.value)],velocity:Qa(x,P,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:d}))};return C(0),{calculatedDuration:null,next:P=>{let k=!1;return!T&&v===void 0&&(k=!0,E(P),C(P)),v!==void 0&&P>v?T.next(P-v):(!k&&E(P),h)}}}const u0=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Y.update(t,!0),stop:()=>Fe(t),now:()=>oe.isProcessing?oe.timestamp:performance.now()}},us=2e4;function ds(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<us;)t+=n,r=e.next(t);return t>=us?1/0:t}const d0={decay:cs,inertia:cs,tween:zn,keyframes:zn,spring:el};function Fn({autoplay:e=!0,delay:t=0,driver:n=u0,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:d,onUpdate:u,...h}){let m=1,y=!1,f,g;const b=()=>{g=new Promise(W=>{f=W})};b();let w;const x=d0[i]||zn;let E;x!==zn&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&ke(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),E=Za([0,100],r,{clamp:!1}),r=[0,100]);const v=x({...h,keyframes:r});let T;a==="mirror"&&(T=x({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let C="idle",P=null,k=null,D=null;v.calculatedDuration===null&&o&&(v.calculatedDuration=ds(v));const{calculatedDuration:j}=v;let R=1/0,q=1/0;j!==null&&(R=j+s,q=R*(o+1)-s);let H=0;const ue=W=>{if(k===null)return;m>0&&(k=Math.min(k,W)),m<0&&(k=Math.min(W-q/m,k)),P!==null?H=P:H=Math.round(W-k)*m;const _e=H-t*(m>=0?1:-1),Re=m>=0?_e<0:_e>q;H=Math.max(_e,0),C==="finished"&&P===null&&(H=q);let be=H,Ve=v;if(o){const nt=Math.min(H,q)/R;let We=Math.floor(nt),Pe=nt%1;!Pe&&nt>=1&&(Pe=1),Pe===1&&We--,We=Math.min(We,o+1),!!(We%2)&&(a==="reverse"?(Pe=1-Pe,s&&(Pe-=s/R)):a==="mirror"&&(Ve=T)),be=Je(0,1,Pe)*R}const Ie=Re?{done:!1,value:r[0]}:Ve.next(be);E&&(Ie.value=E(Ie.value));let{done:dt}=Ie;!Re&&j!==null&&(dt=m>=0?H>=q:H<=0);const Rt=P===null&&(C==="finished"||C==="running"&&dt);return u&&u(Ie.value),Rt&&le(),Ie},U=()=>{w&&w.stop(),w=void 0},ae=()=>{C="idle",U(),f(),b(),k=D=null},le=()=>{C="finished",d&&d(),U(),f()},pe=()=>{if(y)return;w||(w=n(ue));const W=w.now();l&&l(),P!==null?k=W-P:(!k||C==="finished")&&(k=W),C==="finished"&&b(),D=k,P=null,C="running",w.start()};e&&pe();const Oe={then(W,_e){return g.then(W,_e)},get time(){return ze(H)},set time(W){W=Ze(W),H=W,P!==null||!w||m===0?P=W:k=w.now()-W/m},get duration(){const W=v.calculatedDuration===null?ds(v):v.calculatedDuration;return ze(W)},get speed(){return m},set speed(W){W===m||!w||(m=W,Oe.time=ze(H))},get state(){return C},play:pe,pause:()=>{C="paused",P=H},stop:()=>{y=!0,C!=="idle"&&(C="idle",c&&c(),ae())},cancel:()=>{D!==null&&ue(D),ae()},complete:()=>{C="finished"},sample:W=>(k=0,ue(W))};return Oe}function f0(e){let t;return()=>(t===void 0&&(t=e()),t)}const h0=f0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),p0=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),vn=10,m0=2e4,g0=(e,t)=>t.type==="spring"||e==="backgroundColor"||!ja(t.ease);function y0(e,t,{onUpdate:n,onComplete:r,...i}){if(!(h0()&&p0.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,c=!1;const d=()=>{l=new Promise(x=>{a=x})};d();let{keyframes:u,duration:h=300,ease:m,times:y}=i;if(g0(t,i)){const x=Fn({...i,repeat:0,delay:0});let E={done:!1,value:u[0]};const v=[];let T=0;for(;!E.done&&T<m0;)E=x.sample(T),v.push(E.value),T+=vn;y=void 0,u=v,h=T-vn,m="linear"}const f=Ad(e.owner.current,t,u,{...i,duration:h,ease:m,times:y}),g=()=>{c=!1,f.cancel()},b=()=>{c=!0,Y.update(g),a(),d()};return f.onfinish=()=>{c||(e.set(kd(u,i)),r&&r(),b())},{then(x,E){return l.then(x,E)},attachTimeline(x){return f.timeline=x,f.onfinish=null,J},get time(){return ze(f.currentTime||0)},set time(x){f.currentTime=Ze(x)},get speed(){return f.playbackRate},set speed(x){f.playbackRate=x},get duration(){return ze(h)},play:()=>{s||(f.play(),Fe(g))},pause:()=>f.pause(),stop:()=>{if(s=!0,f.playState==="idle")return;const{currentTime:x}=f;if(x){const E=Fn({...i,autoplay:!1});e.setWithVelocity(E.sample(x-vn).value,E.sample(x).value,vn)}b()},complete:()=>{c||f.finish()},cancel:b}}function v0({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:J,pause:J,stop:J,then:o=>(o(),Promise.resolve()),cancel:J,complete:J});return t?Fn({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const b0={type:"spring",stiffness:500,damping:25,restSpeed:10},x0=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),w0={type:"keyframes",duration:.8},S0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},E0=(e,{keyframes:t})=>t.length>2?w0:lt.has(e)?e.startsWith("scale")?x0(t[1]):b0:S0,Lr=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Qe.test(t)||t==="0")&&!t.startsWith("url(")),T0=new Set(["brightness","contrast","saturate","opacity"]);function C0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Qn)||[];if(!r)return e;const i=n.replace(r,"");let o=T0.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const _0=/([a-z-]*)\(.*?\)/g,$r={...Qe,getAnimatableNone:e=>{const t=e.match(_0);return t?t.map(C0).join(" "):e}},P0={...ma,color:ce,backgroundColor:ce,outlineColor:ce,fill:ce,stroke:ce,borderColor:ce,borderTopColor:ce,borderRightColor:ce,borderBottomColor:ce,borderLeftColor:ce,filter:$r,WebkitFilter:$r},mi=e=>P0[e];function tl(e,t){let n=mi(e);return n!==$r&&(n=Qe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const nl=e=>/^0[^.\s]+$/.test(e);function A0(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||nl(e)}function k0(e,t,n,r){const i=Lr(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let c=0;c<o.length;c++)o[c]===null&&(o[c]=c===0?s:o[c-1]),A0(o[c])&&l.push(c),typeof o[c]=="string"&&o[c]!=="none"&&o[c]!=="0"&&(a=o[c]);if(i&&l.length&&a)for(let c=0;c<l.length;c++){const d=l[c];o[d]=tl(t,a)}return o}function O0({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}function gi(e,t){return e[t]||e.default||e}const j0={skipAnimations:!1},yi=(e,t,n,r={})=>i=>{const o=gi(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Ze(s);const l=k0(t,e,n,o),c=l[0],d=l[l.length-1],u=Lr(e,c),h=Lr(e,d);an(u===h,`You are trying to animate ${e} from "${c}" to "${d}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${d} via the \`style\` property.`);let m={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:y=>{t.set(y),o.onUpdate&&o.onUpdate(y)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(O0(o)||(m={...m,...E0(e,m)}),m.duration&&(m.duration=Ze(m.duration)),m.repeatDelay&&(m.repeatDelay=Ze(m.repeatDelay)),!u||!h||Pd.current||o.type===!1||j0.skipAnimations)return v0(m);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=y0(t,e,m);if(y)return y}return Fn(m)};function Bn(e){return!!(fe(e)&&e.add)}const rl=e=>/^\-?\d*\.?\d+$/.test(e);function bi(e,t){e.indexOf(t)===-1&&e.push(t)}function xi(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class wi{constructor(){this.subscriptions=[]}add(t){return bi(this.subscriptions,t),()=>xi(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const fs=new Set;function Si(e,t,n){e||fs.has(t)||(console.warn(t),n&&console.warn(n),fs.add(t))}const M0=e=>!isNaN(parseFloat(e));class N0{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=oe;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Y.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=()=>Y.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=M0(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&Si(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new wi);const r=this.events[t].add(n);return t==="change"?()=>{r(),Y.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Ja(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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 At(e,t){return new N0(e,t)}const il=e=>t=>t.test(e),D0={test:e=>e==="auto",parse:e=>e},sl=[ct,M,Me,Ge,Bu,Fu,D0],Lt=e=>sl.find(il(e)),R0=[...sl,ce,Qe],V0=e=>R0.find(il(e));function I0(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,At(n))}function L0(e,t){const n=tr(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=rd(o[s]);I0(e,s,a)}}function $0(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],c=t[l];let d=null;Array.isArray(c)&&(d=c[0]),d===null&&(d=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),d!=null&&(typeof d=="string"&&(rl(d)||nl(d))?d=parseFloat(d):!V0(d)&&Qe.test(c)&&(d=tl(l,c)),e.addValue(l,At(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function z0(e,t){return t?(t[e]||t.default||t).from:void 0}function F0(e,t,n){const r={};for(const i in e){const o=z0(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function B0({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function W0(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function ol(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const h=e.getValue(u),m=a[u];if(!h||m===void 0||d&&B0(d,u))continue;const y={delay:n,elapsed:0,...gi(o||{},u)};if(window.HandoffAppearAnimations){const b=e.getProps()[aa];if(b){const w=window.HandoffAppearAnimations(b,u,h,Y);w!==null&&(y.elapsed=w,y.isHandoff=!0)}}let f=!y.isHandoff&&!W0(h,m);if(y.type==="spring"&&(h.getVelocity()||y.velocity)&&(f=!1),h.animation&&(f=!1),f)continue;h.start(yi(u,h,m,e.shouldReduceMotion&&lt.has(u)?{type:!1}:y));const g=h.animation;Bn(l)&&(l.add(u),g.then(()=>l.remove(u))),c.push(g)}return s&&Promise.all(c).then(()=>{s&&L0(e,s)}),c}function zr(e,t,n={}){const r=tr(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(ol(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:u}=i;return H0(e,t,c+l,d,u,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function H0(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(U0).forEach((c,d)=>{c.notify("AnimationStart",t),s.push(zr(c,t,{...o,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function U0(e,t){return e.sortNodePosition(t)}function Y0(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>zr(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=zr(e,t,n);else{const i=typeof t=="function"?tr(e,t,n.custom):t;r=Promise.all(ol(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const G0=[...ri].reverse(),q0=ri.length;function K0(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Y0(e,n,r)))}function X0(e){let t=K0(e);const n=J0();let r=!0;const i=(l,c)=>{const d=tr(e,c);if(d){const{transition:u,transitionEnd:h,...m}=d;l={...l,...m,...h}}return l};function o(l){t=l(e)}function s(l,c){const d=e.getProps(),u=e.getVariantContext(!0)||{},h=[],m=new Set;let y={},f=1/0;for(let b=0;b<q0;b++){const w=G0[b],x=n[w],E=d[w]!==void 0?d[w]:u[w],v=Kt(E),T=w===c?x.isActive:null;T===!1&&(f=b);let C=E===u[w]&&E!==d[w]&&v;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),x.protectedKeys={...y},!x.isActive&&T===null||!E&&!x.prevProp||Zn(E)||typeof E=="boolean")continue;let k=Z0(x.prevProp,E)||w===c&&x.isActive&&!C&&v||b>f&&v,D=!1;const j=Array.isArray(E)?E:[E];let R=j.reduce(i,{});T===!1&&(R={});const{prevResolvedValues:q={}}=x,H={...q,...R},ue=U=>{k=!0,m.has(U)&&(D=!0,m.delete(U)),x.needsAnimating[U]=!0};for(const U in H){const ae=R[U],le=q[U];if(y.hasOwnProperty(U))continue;let pe=!1;Ln(ae)&&Ln(le)?pe=!ka(ae,le):pe=ae!==le,pe?ae!==void 0?ue(U):m.add(U):ae!==void 0&&m.has(U)?ue(U):x.protectedKeys[U]=!0}x.prevProp=E,x.prevResolvedValues=R,x.isActive&&(y={...y,...R}),r&&e.blockInitialAnimation&&(k=!1),k&&(!C||D)&&h.push(...j.map(U=>({animation:U,options:{type:w,...l}})))}if(m.size){const b={};m.forEach(w=>{const x=e.getBaseTarget(w);x!==void 0&&(b[w]=x)}),h.push({animation:b})}let g=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(h):Promise.resolve()}function a(l,c,d){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(m=>{var y;return(y=m.animationState)===null||y===void 0?void 0:y.setActive(l,c)}),n[l].isActive=c;const h=s(d,l);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function Z0(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ka(t,e):!1}function rt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function J0(){return{animate:rt(!0),whileInView:rt(),whileHover:rt(),whileTap:rt(),whileDrag:rt(),whileFocus:rt(),exit:rt()}}class Q0 extends et{constructor(t){super(t),t.animationState||(t.animationState=X0(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Zn(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let ef=0;class tf extends et{constructor(){super(...arguments),this.id=ef++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const nf={animation:{Feature:Q0},exit:{Feature:tf}},hs=(e,t)=>Math.abs(e-t);function rf(e,t){const n=hs(e.x,t.x),r=hs(e.y,t.y);return Math.sqrt(n**2+r**2)}class al{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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 u=Pr(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=rf(u.offset,{x:0,y:0})>=3;if(!h&&!m)return;const{point:y}=u,{timestamp:f}=oe;this.history.push({...y,timestamp:f});const{onStart:g,onMove:b}=this.handlers;h||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,u)},this.handlePointerMove=(u,h)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=_r(h,this.transformPagePoint),Y.update(this.updatePoint,!0)},this.handlePointerUp=(u,h)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:f}=this.handlers;if(this.dragSnapToOrigin&&f&&f(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Pr(u.type==="pointercancel"?this.lastMoveEventInfo:_r(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(u,g),y&&y(u,g)},!Ta(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=er(t),a=_r(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=oe;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,Pr(a,this.history)),this.removeListeners=Xe($e(this.contextWindow,"pointermove",this.handlePointerMove),$e(this.contextWindow,"pointerup",this.handlePointerUp),$e(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Fe(this.updatePoint)}}function _r(e,t){return t?{point:t(e.point)}:e}function ps(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Pr({point:e},t){return{point:e,delta:ps(e,ll(t)),offset:ps(e,sf(t)),velocity:of(t,.1)}}function sf(e){return e[0]}function ll(e){return e[e.length-1]}function of(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ll(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ze(t)));)n--;if(!r)return{x:0,y:0};const o=ze(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ve(e){return e.max-e.min}function Fr(e,t=0,n=.01){return Math.abs(e-t)<=n}function ms(e,t,n,r=.5){e.origin=r,e.originPoint=K(t.min,t.max,e.origin),e.scale=ve(n)/ve(t),(Fr(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=K(n.min,n.max,e.origin)-e.originPoint,(Fr(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ut(e,t,n,r){ms(e.x,t.x,n.x,r?r.originX:void 0),ms(e.y,t.y,n.y,r?r.originY:void 0)}function gs(e,t,n){e.min=n.min+t.min,e.max=e.min+ve(t)}function af(e,t,n){gs(e.x,t.x,n.x),gs(e.y,t.y,n.y)}function ys(e,t,n){e.min=t.min-n.min,e.max=e.min+ve(t)}function Yt(e,t,n){ys(e.x,t.x,n.x),ys(e.y,t.y,n.y)}function lf(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?K(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?K(n,e,r.max):Math.min(e,n)),e}function vs(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function cf(e,{top:t,left:n,bottom:r,right:i}){return{x:vs(e.x,n,i),y:vs(e.y,t,r)}}function bs(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function uf(e,t){return{x:bs(e.x,t.x),y:bs(e.y,t.y)}}function df(e,t){let n=.5;const r=ve(e),i=ve(t);return i>r?n=Zt(t.min,t.max-r,e.min):r>i&&(n=Zt(e.min,e.max-i,t.min)),Je(0,1,n)}function ff(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Br=.35;function hf(e=Br){return e===!1?e=0:e===!0&&(e=Br),{x:xs(e,"left","right"),y:xs(e,"top","bottom")}}function xs(e,t,n){return{min:ws(e,t),max:ws(e,n)}}function ws(e,t){return typeof e=="number"?e:e[t]||0}const Ss=()=>({translate:0,scale:1,origin:0,originPoint:0}),Et=()=>({x:Ss(),y:Ss()}),Es=()=>({min:0,max:0}),te=()=>({x:Es(),y:Es()});function we(e){return[e("x"),e("y")]}function cl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function pf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mf(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ar(e){return e===void 0||e===1}function Wr({scale:e,scaleX:t,scaleY:n}){return!Ar(e)||!Ar(t)||!Ar(n)}function it(e){return Wr(e)||ul(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ul(e){return Ts(e.x)||Ts(e.y)}function Ts(e){return e&&e!=="0%"}function Wn(e,t,n){const r=e-n,i=t*r;return n+i}function Cs(e,t,n,r,i){return i!==void 0&&(e=Wn(e,i,r)),Wn(e,n,r)+t}function Hr(e,t=0,n=1,r,i){e.min=Cs(e.min,t,n,r,i),e.max=Cs(e.max,t,n,r,i)}function dl(e,{x:t,y:n}){Hr(e.x,t.translate,t.scale,t.originPoint),Hr(e.y,n.translate,n.scale,n.originPoint)}function gf(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Tt(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,dl(e,s)),r&&it(o.latestValues)&&Tt(e,o.latestValues))}t.x=_s(t.x),t.y=_s(t.y)}function _s(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function qe(e,t){e.min=e.min+t,e.max=e.max+t}function Ps(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=K(e.min,e.max,o);Hr(e,t[n],t[r],s,t.scale)}const yf=["x","scaleX","originX"],vf=["y","scaleY","originY"];function Tt(e,t){Ps(e.x,t,yf),Ps(e.y,t,vf)}function fl(e,t){return cl(mf(e.getBoundingClientRect(),t))}function bf(e,t,n){const r=fl(e,n),{scroll:i}=t;return i&&(qe(r.x,i.offset.x),qe(r.y,i.offset.y)),r}const hl=({current:e})=>e?e.ownerDocument.defaultView:null,xf=new WeakMap;class wf{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=te(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(er(d,"page").point)},o=(d,u)=>{const{drag:h,dragPropagation:m,onDragStart:y}=this.getProps();if(h&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=_a(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),we(g=>{let b=this.getAxisMotionValue(g).get()||0;if(Me.test(b)){const{projection:w}=this.visualElement;if(w&&w.layout){const x=w.layout.layoutBox[g];x&&(b=ve(x)*(parseFloat(b)/100))}}this.originPoint[g]=b}),y&&Y.update(()=>y(d,u),!1,!0);const{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},s=(d,u)=>{const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:y,onDrag:f}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:g}=u;if(m&&this.currentDirection===null){this.currentDirection=Sf(g),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",u.point,g),this.updateAxis("y",u.point,g),this.visualElement.render(),f&&f(d,u)},a=(d,u)=>this.stop(d,u),l=()=>we(d=>{var u;return this.getAnimationState(d)==="paused"&&((u=this.getAxisMotionValue(d).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new al(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:hl(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Y.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!bn(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=lf(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&wt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=cf(i.layoutBox,n):this.constraints=!1,this.elastic=hf(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&we(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=ff(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!wt(t))return!1;const r=t.current;ke(r!==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 o=bf(r,i.root,this.visualElement.getTransformPagePoint());let s=uf(i.layout.layoutBox,o);if(n){const a=n(pf(s));this.hasMutatedConstraints=!!a,a&&(s=cl(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=we(d=>{if(!bn(d,n,this.currentDirection))return;let u=l&&l[d]||{};s&&(u={min:0,max:0});const h=i?200:1e6,m=i?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(d,y)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(yi(t,r,0,n))}stopAnimation(){we(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){we(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){we(n=>{const{drag:r}=this.getProps();if(!bn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-K(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!wt(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};we(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=df({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),we(s=>{if(!bn(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(K(l,c,i[s]))})}addListeners(){if(!this.visualElement.current)return;xf.set(this.visualElement,this);const t=this.visualElement.current,n=$e(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();wt(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=Le(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(we(d=>{const u=this.getAxisMotionValue(d);u&&(this.originPoint[d]+=l[d].translate,u.set(u.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Br,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function bn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Sf(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ef extends et{constructor(t){super(t),this.removeGroupControls=J,this.removeListeners=J,this.controls=new wf(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||J}unmount(){this.removeGroupControls(),this.removeListeners()}}const As=e=>(t,n)=>{e&&Y.update(()=>e(t,n))};class Tf extends et{constructor(){super(...arguments),this.removePointerDownListener=J}onPointerDown(t){this.session=new al(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:As(t),onStart:As(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Y.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=$e(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Cf(){const e=_.useContext(ti);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=_.useId();return _.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Cn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ks(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const $t={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(M.test(e))e=parseFloat(e);else return e;const n=ks(e,t.target.x),r=ks(e,t.target.y);return`${n}% ${r}%`}},_f={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Qe.parse(e);if(i.length>5)return r;const o=Qe.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const c=K(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}};class Pf extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Du(Af),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Cn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Y.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function pl(e){const[t,n]=Cf(),r=_.useContext(ca);return _.createElement(Pf,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(ua),isPresent:t,safeToRemove:n})}const Af={borderRadius:{...$t,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$t,borderTopRightRadius:$t,borderBottomLeftRadius:$t,borderBottomRightRadius:$t,boxShadow:_f},ml=["TopLeft","TopRight","BottomLeft","BottomRight"],kf=ml.length,Os=e=>typeof e=="string"?parseFloat(e):e,js=e=>typeof e=="number"||M.test(e);function Of(e,t,n,r,i,o){i?(e.opacity=K(0,n.opacity!==void 0?n.opacity:1,jf(r)),e.opacityExit=K(t.opacity!==void 0?t.opacity:1,0,Mf(r))):o&&(e.opacity=K(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<kf;s++){const a=`border${ml[s]}Radius`;let l=Ms(t,a),c=Ms(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||js(l)===js(c)?(e[a]=Math.max(K(Os(l),Os(c),r),0),(Me.test(c)||Me.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=K(t.rotate||0,n.rotate||0,r))}function Ms(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const jf=gl(0,.5,La),Mf=gl(.5,.95,J);function gl(e,t,n){return r=>r<e?0:r>t?1:n(Zt(e,t,r))}function Ns(e,t){e.min=t.min,e.max=t.max}function xe(e,t){Ns(e.x,t.x),Ns(e.y,t.y)}function Ds(e,t,n,r,i){return e-=t,e=Wn(e,1/n,r),i!==void 0&&(e=Wn(e,1/i,r)),e}function Nf(e,t=0,n=1,r=.5,i,o=e,s=e){if(Me.test(t)&&(t=parseFloat(t),t=K(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=K(o.min,o.max,r);e===o&&(a-=t),e.min=Ds(e.min,t,n,a,i),e.max=Ds(e.max,t,n,a,i)}function Rs(e,t,[n,r,i],o,s){Nf(e,t[n],t[r],t[i],t.scale,o,s)}const Df=["x","scaleX","originX"],Rf=["y","scaleY","originY"];function Vs(e,t,n,r){Rs(e.x,t,Df,n?n.x:void 0,r?r.x:void 0),Rs(e.y,t,Rf,n?n.y:void 0,r?r.y:void 0)}function Is(e){return e.translate===0&&e.scale===1}function yl(e){return Is(e.x)&&Is(e.y)}function Vf(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function vl(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Ls(e){return ve(e.x)/ve(e.y)}class If{constructor(){this.members=[]}add(t){bi(this.members,t),t.scheduleRender()}remove(t){if(xi(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function $s(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),d&&(r+=`rotateY(${d}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const Lf=(e,t)=>e.depth-t.depth;class $f{constructor(){this.children=[],this.isDirty=!1}add(t){bi(this.children,t),this.isDirty=!0}remove(t){xi(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Lf),this.isDirty=!1,this.children.forEach(t)}}function zf(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Fe(r),e(o-t))};return Y.read(r,!0),()=>Fe(r)}function Ff(e){window.MotionDebug&&window.MotionDebug.record(e)}function Bf(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Wf(e,t,n){const r=fe(e)?e:At(e);return r.start(yi("",r,t,n)),r.animation}const zs=["","X","Y","Z"],Hf={visibility:"hidden"},Fs=1e3;let Uf=0;const st={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function bl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Uf++,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,st.totalNodes=st.resolvedTargetDeltas=st.recalculatedProjection=0,this.nodes.forEach(qf),this.nodes.forEach(Qf),this.nodes.forEach(eh),this.nodes.forEach(Kf),Ff(st)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 $f)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new wi),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Bf(s),this.instance=s;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),e){let u;const h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=zf(h,250),Cn.hasAnimatedSinceResize&&(Cn.hasAnimatedSinceResize=!1,this.nodes.forEach(Ws))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeTargetChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const f=this.options.transition||d.getDefaultTransition()||sh,{onLayoutAnimationStart:g,onLayoutAnimationComplete:b}=d.getProps(),w=!this.targetLayout||!vl(this.targetLayout,y)||m,x=!h&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||h&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,x);const E={...gi(f,"layout"),onPlay:g,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else h||Ws(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Fe(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(th),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!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 d=0;d<this.path.length;d++){const u=this.path[d];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.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(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Bs);return}this.isUpdating||this.nodes.forEach(Zf),this.isUpdating=!1,this.nodes.forEach(Jf),this.nodes.forEach(Yf),this.nodes.forEach(Gf),this.clearAllSnapshots();const a=performance.now();oe.delta=Je(0,1e3/60,a-oe.timestamp),oe.timestamp=a,oe.isProcessing=!0,vr.update.process(oe),vr.preRender.process(oe),vr.render.process(oe),oe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Xf),this.sharedNodes.forEach(nh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Y.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Y.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 s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=te(),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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!yl(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;s&&(a||it(this.latestValues)||d)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),oh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return te();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(qe(a.x,l.offset.x),qe(a.y,l.offset.y)),a}removeElementScroll(s){const a=te();xe(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:u}=c;if(c!==this.root&&d&&u.layoutScroll){if(d.isRoot){xe(a,s);const{scroll:h}=this.root;h&&(qe(a.x,-h.offset.x),qe(a.y,-h.offset.y))}qe(a.x,d.offset.x),qe(a.y,d.offset.y)}}return a}applyTransform(s,a=!1){const l=te();xe(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Tt(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),it(d.latestValues)&&Tt(l,d.latestValues)}return it(this.latestValues)&&Tt(l,this.latestValues),l}removeTransform(s){const a=te();xe(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!it(c.latestValues))continue;Wr(c.latestValues)&&c.updateSnapshot();const d=te(),u=c.measurePageBox();xe(d,u),Vs(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return it(this.latestValues)&&Vs(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==oe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!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(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:u,layoutId:h}=this.options;if(!(!this.layout||!(u||h))){if(this.resolvedRelativeTargetAt=oe.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),Yt(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),xe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),af(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):xe(this.target,this.layout.layoutBox),dl(this.target,this.targetDelta)):xe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),Yt(this.relativeTargetOrigin,this.target,m.target),xe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}st.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Wr(this.parent.latestValues)||ul(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===oe.timestamp&&(c=!1),c)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;xe(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,m=this.treeScale.y;gf(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:y}=a;if(!y){this.projectionTransform&&(this.projectionDelta=Et(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Et(),this.projectionDeltaWithTransform=Et());const f=this.projectionTransform;Ut(this.projectionDelta,this.layoutCorrected,y,this.latestValues),this.projectionTransform=$s(this.projectionDelta,this.treeScale),(this.projectionTransform!==f||this.treeScale.x!==h||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),st.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},u=Et();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=te(),m=l?l.source:void 0,y=this.layout?this.layout.source:void 0,f=m!==y,g=this.getStack(),b=!g||g.members.length<=1,w=!!(f&&!b&&this.options.crossfade===!0&&!this.path.some(ih));this.animationProgress=0;let x;this.mixTargetDelta=E=>{const v=E/1e3;Hs(u.x,s.x,v),Hs(u.y,s.y,v),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yt(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rh(this.relativeTarget,this.relativeTargetOrigin,h,v),x&&Vf(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=te()),xe(x,this.relativeTarget)),f&&(this.animationValues=d,Of(d,c,this.latestValues,v,w,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=v},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Fe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Y.update(()=>{Cn.hasAnimatedSinceResize=!0,this.currentAnimation=Wf(0,Fs,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Fs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&xl(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||te();const u=ve(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+u;const h=ve(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}xe(a,l),Tt(a,d),Ut(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new If),this.sharedNodes.get(s).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 s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let d=0;d<zs.length;d++){const u="rotate"+zs[d];l[u]&&(c[u]=l[u],s.setStaticValue(u,0))}s.render();for(const d in c)s.setStaticValue(d,c[d]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Hf;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Tn(s==null?void 0:s.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const f={};return this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Tn(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!it(this.latestValues)&&(f.transform=d?d({},""):"none",this.hasProjected=!1),f}const h=u.animationValues||u.latestValues;this.applyTransformsToTarget(),c.transform=$s(this.projectionDeltaWithTransform,this.treeScale,h),d&&(c.transform=d(h,c.transform));const{x:m,y}=this.projectionDelta;c.transformOrigin=`${m.origin*100}% ${y.origin*100}% 0`,u.animationValues?c.opacity=u===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=u===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const f in Vn){if(h[f]===void 0)continue;const{correct:g,applyTo:b}=Vn[f],w=c.transform==="none"?h[f]:g(h[f],u);if(b){const x=b.length;for(let E=0;E<x;E++)c[b[E]]=w}else c[f]=w}return this.options.layoutId&&(c.pointerEvents=u===this?Tn(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Bs),this.root.sharedNodes.clear()}}}function Yf(e){e.updateLayout()}function Gf(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?we(u=>{const h=s?n.measuredBox[u]:n.layoutBox[u],m=ve(h);h.min=r[u].min,h.max=h.min+m}):xl(o,n.layoutBox,r)&&we(u=>{const h=s?n.measuredBox[u]:n.layoutBox[u],m=ve(r[u]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+m)});const a=Et();Ut(a,r,n.layoutBox);const l=Et();s?Ut(l,e.applyTransform(i,!0),n.measuredBox):Ut(l,r,n.layoutBox);const c=!yl(a);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:m}=u;if(h&&m){const y=te();Yt(y,n.layoutBox,h.layoutBox);const f=te();Yt(f,r,m.layoutBox),vl(y,f)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=f,e.relativeTargetOrigin=y,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function qf(e){st.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Kf(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Xf(e){e.clearSnapshot()}function Bs(e){e.clearMeasurements()}function Zf(e){e.isLayoutDirty=!1}function Jf(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ws(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Qf(e){e.resolveTargetDelta()}function eh(e){e.calcProjection()}function th(e){e.resetRotation()}function nh(e){e.removeLeadSnapshot()}function Hs(e,t,n){e.translate=K(t.translate,0,n),e.scale=K(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Us(e,t,n,r){e.min=K(t.min,n.min,r),e.max=K(t.max,n.max,r)}function rh(e,t,n,r){Us(e.x,t.x,n.x,r),Us(e.y,t.y,n.y,r)}function ih(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const sh={duration:.45,ease:[.4,0,.1,1]},Ys=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Gs=Ys("applewebkit/")&&!Ys("chrome/")?Math.round:J;function qs(e){e.min=Gs(e.min),e.max=Gs(e.max)}function oh(e){qs(e.x),qs(e.y)}function xl(e,t,n){return e==="position"||e==="preserve-aspect"&&!Fr(Ls(t),Ls(n),.2)}const ah=bl({attachResizeListener:(e,t)=>Le(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),kr={current:void 0},wl=bl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!kr.current){const e=new ah({});e.mount(window),e.setOptions({layoutScroll:!0}),kr.current=e}return kr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),lh={pan:{Feature:Tf},drag:{Feature:Ef,ProjectionNode:wl,MeasureLayout:pl}},ch=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function uh(e){const t=ch.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const dh=4;function Ur(e,t,n=1){ke(n<=dh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=uh(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return rl(s)?parseFloat(s):s}else return Dr(i)?Ur(i,t,n+1):i}function fh(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!Dr(o))return;const s=Ur(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Dr(o))continue;const s=Ur(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const hh=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Sl=e=>hh.has(e),ph=e=>Object.keys(e).some(Sl),xn=e=>e===ct||e===M,Ks=(e,t)=>parseFloat(e.split(", ")[t]),Xs=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Ks(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?Ks(o[1],e):0}},mh=new Set(["x","y","z"]),gh=rn.filter(e=>!mh.has(e));function yh(e){const t=[];return gh.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const kt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Xs(4,13),y:Xs(5,14)};kt.translateX=kt.x;kt.translateY=kt.y;const vh=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{a[c]=kt[c](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const d=t.getValue(c);d&&d.jump(a[c]),e[c]=kt[c](l,o)}),e},bh=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Sl);let o=[],s=!1;const a=[];if(i.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],u=Lt(d);const h=t[l];let m;if(Ln(h)){const y=h.length,f=h[0]===null?1:0;d=h[f],u=Lt(d);for(let g=f;g<y&&h[g]!==null;g++)m?ke(Lt(h[g])===m,"All keyframes must be of the same type"):(m=Lt(h[g]),ke(m===u||xn(u)&&xn(m),"Keyframes must be of the same dimension as the current value"))}else m=Lt(h);if(u!==m)if(xn(u)&&xn(m)){const y=c.get();typeof y=="string"&&c.set(parseFloat(y)),typeof h=="string"?t[l]=parseFloat(h):Array.isArray(h)&&m===M&&(t[l]=h.map(parseFloat))}else u!=null&&u.transform&&(m!=null&&m.transform)&&(d===0||h===0)?d===0?c.set(m.transform(d)):t[l]=u.transform(h):(s||(o=yh(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],c.jump(h))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,c=vh(t,e,a);return o.length&&o.forEach(([d,u])=>{e.getValue(d).set(u)}),e.render(),Xn&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function xh(e,t,n,r){return ph(t)?bh(e,t,n,r):{target:t,transitionEnd:r}}const wh=(e,t,n,r)=>{const i=fh(e,t,r);return t=i.target,r=i.transitionEnd,xh(e,t,n,r)},Yr={current:null},El={current:!1};function Sh(){if(El.current=!0,!!Xn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Yr.current=e.matches;e.addListener(t),t()}else Yr.current=!1}function Eh(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(fe(o))e.addValue(i,o),Bn(r)&&r.add(i),process.env.NODE_ENV==="development"&&Si(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(fe(s))e.addValue(i,At(o,{owner:e})),Bn(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,At(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Zs=new WeakMap,Tl=Object.keys(Xt),Th=Tl.length,Js=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ch=ii.length;class _h{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){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=()=>Y.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Jn(n),this.isVariantNode=la(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{});for(const u in d){const h=d[u];a[u]!==void 0&&fe(h)&&(h.set(a[u],!1),Bn(c)&&c.add(u))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Zs.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),El.current||Sh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Yr.current,process.env.NODE_ENV!=="production"&&Si(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(){Zs.delete(this.current),this.projection&&this.projection.unmount(),Fe(this.notifyUpdate),Fe(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=lt.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Y.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;if(process.env.NODE_ENV!=="production"&&i&&r){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?an(!1,l):ke(!1,l)}for(let l=0;l<Th;l++){const c=Tl[l],{isEnabled:d,Feature:u,ProjectionNode:h,MeasureLayout:m}=Xt[c];h&&(s=h),d(n)&&(!this.features[c]&&u&&(this.features[c]=new u(this)),m&&(a=m))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:d,dragConstraints:u,layoutScroll:h,layoutRoot:m}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!d||u&&wt(u),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:m})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];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):te()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Js.length;r++){const i=Js[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Eh(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<Ch;r++){const i=ii[r],o=this.props[i];(Kt(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=At(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=di(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!fe(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new wi),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Cl extends _h{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=F0(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){$0(this,r,s);const a=wh(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function Ph(e){return window.getComputedStyle(e)}class Ah extends Cl{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(lt.has(n)){const r=mi(n);return r&&r.default||0}else{const r=Ph(t),i=(ha(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return fl(t,n)}build(t,n,r,i){oi(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return ui(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;fe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){ba(t,n,r,i)}}class kh extends Cl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(lt.has(n)){const r=mi(n);return r&&r.default||0}return n=xa.has(n)?n:ni(n),t.getAttribute(n)}measureInstanceViewportBox(){return te()}scrapeMotionValuesFromProps(t,n){return Sa(t,n)}build(t,n,r,i){li(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){wa(t,n,r,i)}mount(t){this.isSVGTag=ci(t.tagName),super.mount(t)}}const Oh=(e,t)=>si(e)?new kh(t,{enableHardwareAcceleration:!1}):new Ah(t,{enableHardwareAcceleration:!0}),jh={layout:{ProjectionNode:wl,MeasureLayout:pl}},Mh={...nf,...Td,...lh,...jh},Nh=Mu((e,t)=>dd(e,t,Mh,Oh));function Dh(e){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:p.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function Rh(e){const{children:t,parentRef:n,onlyChild:r}=e,[i,o]=_.useState({top:0,left:0});return _.useLayoutEffect(()=>{if(n.current){const s=n.current.getBoundingClientRect();o({top:s.top,left:s.left+s.width})}},[n]),r?t:vc.createPortal(p.jsx("div",{style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},children:t}),n.current)}function _l({item:e,level:t=0,...n}){var k,D;const{isActive:r,isCollapsed:i,expanded:o,toggleExpand:s}=n,a=`level-${t}`,l=i?"collapsed":"expanded",c=r(e.id)?"active":"",d=(j,R=a)=>`${j} ${R} ${l} ${c}`,u=!!((k=e.children)!=null&&k.length),[h,m]=_.useState(!1),y=_.useRef(),f=window.location.origin,g=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},b=window.location.pathname.split("/")[1],w=g.pathname.split("/")[1],x=n.ssr||!f.includes("local")&&f!==g.origin||w!==b,E=u||t===0?"div":x?"a":Uo.Link,v=e.path||"#",T=t+1,C=u&&!(i&&T>=2&&!h),P=i||t===0?void 0:`${t}rem`;return p.jsxs("div",{ref:y,className:d("menu-item__wrapper"),onMouseEnter:()=>i&&m(!0),onMouseLeave:()=>i&&m(!1),children:[p.jsxs(E,{to:v,href:v,style:{paddingLeft:P,transition:"all 0.3s"},className:d("menu-item__link"),onClick:j=>{u&&(j.preventDefault(),i||s(e.id))},children:[t!==0&&p.jsx(Vh,{cls:d,item:e}),p.jsx("span",{className:d("menu-item__label"),children:e.name}),u&&p.jsx("div",{className:d("menu-item__icon-arrow__wrapper"),children:p.jsx(Dh,{className:d(`menu-item__icon-arrow__icon ${o(e.id)?"open":"close"}`)})})]}),C&&p.jsx(Rh,{parentRef:y,onlyChild:!i||i&&T<2,children:p.jsx(Nh.div,{className:d("menu-item__dropdown",`level-${T}`),initial:{height:i||o(e.id)?"auto":0},animate:{height:i||o(e.id)?"auto":0},transition:{duration:.25},children:(D=e.children)==null?void 0:D.map(j=>_.createElement(_l,{...n,key:j.id,item:j,level:T}))})})]})}function Vh({item:e,cls:t}){var s,a;const[n,r]=_.useState(!e.icon),i=()=>{r(!0)},o=(s=e.icon)==null?void 0:s.endsWith(".svg");return p.jsx("div",{className:t("menu-item__icon"),children:n?p.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(a=e.name.trim().at(0))==null?void 0:a.toUpperCase()}):o?p.jsx(S.ReactSVG,{src:e.icon,beforeInjection:l=>{l.setAttribute("style","margin: 0 auto;"),l.querySelectorAll("path").forEach(d=>{d.hasAttribute("fill")&&d.setAttribute("fill","currentColor"),d.hasAttribute("stroke")&&d.setAttribute("stroke","currentColor")})}}):p.jsx("img",{src:e.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:i})})}function Ih(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:p.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function Lh(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:p.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function $h(e){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,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"})})}const zh=`.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-1{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:37px}.menu-item__link.menu-item__link.collapsed.level-0{padding:0;height:0;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1;transition:all .15s ease-in-out}.menu-item__label.level-1.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0,.menu-item__label.collapsed.level-1{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:0}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__wrapper.level-0.collapsed{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}
10
+ `;function Fh(e){const{baseUrl:t,menuPath:n}=e,r=Uo.useLocation(),[i,o]=_.useState([]),[s,a]=_.useState(localStorage.getItem("isCollapsed")==="true"),[l,c]=_.useState({}),d=Ei(i),[u,h]=_.useState(window.location.href);_.useEffect(()=>{h(window.location.href)},[r]);const m=Pl(d,u).filter(v=>v.parentKey!==0);console.log("matchPaths:",u,r,m);const y=v=>{c({...l,[v]:!l[v]})},f=()=>{a(!s),localStorage.setItem("isCollapsed",JSON.stringify(!s))};_.useLayoutEffect(()=>{(async()=>{var T,C;try{const k=t+(n||"/global-menu-config/api/v1/menu-items/user"),{data:D}=await qt.get(k,{withCredentials:!0});let j=D.map(q=>({...q,parentKey:0}));j=kl(j),e.replacePath&&(j=Al(j,e.replacePath));const R=Wh(j);c(R),o(j)}catch(P){console.log(P),S.pushError(((C=(T=P.response)==null?void 0:T.data)==null?void 0:C.errorMessage)||"Have error when get menu items")}})()},[t,n,e.replacePath]);const[g,b]=_.useState(!1),w=s?"collapsed":"expanded",x=v=>`${v} ${w}`,E=_.useRef(null);return p.jsxs("div",{className:x("side-bar"),children:[p.jsx("div",{className:x("wrap-section side-bar__wrapper-toggle-btn"),children:p.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:f,children:s?p.jsx(Lh,{}):p.jsx(Ih,{})})}),p.jsx(ia,{ref:E,className:x("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:i.map(v=>{const T=C=>m.some(P=>P.id===C);return p.jsx(_l,{item:v,isActive:T,isCollapsed:s,expanded:C=>l[C],toggleExpand:y,replacePath:e.replacePath,ssr:e.ssr},v.id)})}),p.jsxs("div",{className:x("wrap-section side-bar__wrap-btn-logout"),children:[p.jsxs("button",{className:x("side-bar__logout-btn"),onClick:()=>b(!0),children:[p.jsx($h,{className:x("side-bar__icon-logout")}),p.jsx("span",{className:x("side-bar__logout-btn__text"),children:"Logout"})]}),p.jsx(Yo,{isOpen:g,onClose:()=>b(!1),onConfirm:()=>e.logout?e.logout():S.logout(e.baseUrl)})]})]})}function Ei(e){let t=[];for(const n of e)t.push(n),n.children&&(t=t.concat(Ei(n.children)));return t}function Bh(e,t){const n=new URL(e).searchParams,r=new URL(t).searchParams;return Array.from(r).filter(([i,o])=>o===n.get(i)).length}function Pl(e,t){const n=new URL(t),r=e.filter(s=>s.path&&s.path.includes("http")).map(s=>({item:s,itemUrl:new URL(s.path),matchingParamsCount:Bh(t,s.path)})).sort((s,a)=>{const l=new URL(s.itemUrl).searchParams,c=new URL(a.itemUrl).searchParams;return Array.from(l).length-Array.from(c).length}).filter(({itemUrl:s})=>n.pathname===s.pathname).sort((s,a)=>a.matchingParamsCount-s.matchingParamsCount);let i=r.length>0?r[0].item:null;console.log("matchingItems:",r);let o=[];for(;i;)o=[i,...o],i=e.find(s=>s.id===(i==null?void 0:i.parentKey))||null;return o}function Al(e,t){return e.map(n=>(n.path&&(n.path=t(n.path)),n.children&&n.children.length>0&&(n.children=Al(n.children,t)),n))}function kl(e){return e.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=kl(n.children)),n))}function Wh(e){const t=Ei(e),n=Pl(t,window.location.href),r={};return n.forEach(i=>r[i.id]=!0),t.forEach(i=>{var o;(o=i.children)!=null&&o.length&&(r[i.id]=!0)}),r}function Hh(e){return p.jsx(qo,{styles:[bu,zh],style:{position:"sticky",zIndex:20},children:p.jsx(Fh,{...e})})}const Uh=({children:e})=>p.jsxs(L.Stack,{justifyContent:"center",alignItems:"center",sx:{backgroundColor:"#FAFAFA",minHeight:"450px"},children:[p.jsx(Yh,{}),e]});function Yh(){return p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"150",height:"150",fill:"none",viewBox:"0 0 150 150",children:[p.jsx("path",{fill:"#F9FAFB",d:"M120.843 66.48a2.885 2.885 0 100-5.77 2.885 2.885 0 000 5.77zM75 127.04c28.319 0 51.276-9.006 51.276-20.115 0-11.11-22.957-20.115-51.276-20.115-28.32 0-51.276 9.006-51.276 20.115 0 11.109 22.957 20.115 51.276 20.115z"}),p.jsx("path",{fill:"#DDD",d:"M73.354 34.489l-2.13 13.355H57.378L73.354 34.49z"}),p.jsx("path",{fill:"#F9FAFB",d:"M71.223 48.157H57.38a.313.313 0 01-.295-.206.313.313 0 01.093-.346L73.154 34.25a.313.313 0 01.508.288l-2.13 13.357a.308.308 0 01-.308.263zm-12.983-.625h12.717l1.957-12.268L58.24 47.532zM74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),p.jsx("path",{fill:"#000",d:"M74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),p.jsx("path",{fill:"#85858A",d:"M74.454 58.965l3.503 4.775c-.209-.284-.431-.56-.667-.83-2.59-2.952-6.367-4.428-10.378-4.428-1.74 0-3.524.278-5.275.833l-3.503-4.775a17.477 17.477 0 015.275-.833c4.011 0 7.788 1.476 10.378 4.428.236.27.458.546.667.83z"}),p.jsx("path",{fill:"#F9FAFB",d:"M77.957 64.053a.314.314 0 01-.253-.128c-.203-.278-.422-.55-.65-.81-2.446-2.786-6.047-4.32-10.143-4.32-1.727 0-3.468.274-5.18.818a.316.316 0 01-.348-.113l-3.503-4.775a.312.312 0 01.158-.483 17.748 17.748 0 015.37-.847c4.278 0 8.047 1.61 10.612 4.533.24.274.47.561.685.853l3.5 4.772.003.003a.311.311 0 01-.251.497zM66.912 58.17c3.207 0 6.128.905 8.471 2.59l-1.18-1.61c-.203-.278-.423-.55-.65-.81-2.446-2.786-6.048-4.32-10.144-4.32-1.586 0-3.186.231-4.762.691l3.11 4.24a17.67 17.67 0 015.155-.782zM56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),p.jsx("path",{fill:"#000",d:"M56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),p.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),p.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),p.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),p.jsx("path",{fill:"#000",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),p.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),p.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),p.jsx("path",{fill:"#EEE",d:"M71.03 70.342a11.476 11.476 0 01-1.11 2.438 12.543 12.543 0 01-2.703 3.136c-2.342 1.96-5.159 2.937-7.82 2.937-2.66 0-5.164-.98-6.88-2.938C49.078 72 50.09 65.651 54.775 61.738c2.343-1.96 5.16-2.938 7.82-2.938s5.165.98 6.881 2.938a8.329 8.329 0 01.754 1.008 8.034 8.034 0 011.056 2.539c.376 1.62.28 3.364-.257 5.057z"}),p.jsx("path",{fill:"#98A2B3",d:"M71.289 65.285h-9.161c-.967 0-1.632-.754-1.482-1.688.148-.933 1.052-1.687 2.02-1.687h6.956a8.024 8.024 0 011.667 3.375zM71.03 70.342a11.476 11.476 0 01-1.11 2.438c-.155.256-.32.51-.5.76h-8.705c-.918 0-1.543-.716-1.403-1.6.142-.883.997-1.6 1.913-1.6h9.805v.002z"}),p.jsx("path",{fill:"#F7F9FC",d:"M73.632 34.257h38.646l-.591 3.703-10.155 63.675H48.801l3.071-19.259c2.022 1.048 4.33 1.571 6.72 1.571 3.213 0 6.576-.946 9.602-2.839h27.097c.471 0 .909-.366.983-.82.072-.452-.25-.819-.72-.819H70.44c2.295-1.933 3.996-4.255 5.068-6.708h21.116c.47 0 .908-.367.98-.818.072-.453-.25-.82-.72-.82H76.129c.712-2.236.91-4.531.57-6.71h21.256c.47 0 .908-.366.98-.817.073-.453-.25-.821-.719-.821H76.333a12.247 12.247 0 00-2.544-4.642c-2.59-2.951-6.367-4.427-10.378-4.427-2.389 0-4.86.523-7.215 1.569l1.184-7.432h13.845l2.13-13.354.277-.232zM93.96 89.454c.47 0 .908-.366.982-.82.072-.452-.25-.819-.72-.819H61.258c-.468 0-.907.367-.979.818-.072.453.25.821.718.821h32.964zm5.325-33.386c.47 0 .908-.367.981-.818.072-.453-.25-.82-.72-.82H77.201c-.47 0-.907.366-.979.82-.072.451.247.818.718.818h22.346z"}),p.jsx("path",{fill:"#F9FAFB",d:"M101.532 101.946h-52.73a.311.311 0 01-.309-.361l3.072-19.259a.312.312 0 01.453-.228c1.942 1.006 4.215 1.537 6.576 1.537 3.255 0 6.517-.966 9.435-2.792a.317.317 0 01.165-.047h27.098c.316 0 .625-.256.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H70.44a.313.313 0 01-.201-.551c2.175-1.834 3.898-4.114 4.983-6.595a.313.313 0 01.286-.187h21.116c.316 0 .625-.254.672-.556a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H76.128a.314.314 0 01-.299-.407c.696-2.182.889-4.453.56-6.566a.31.31 0 01.308-.361h21.256c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.321.423.423 0 00-.331-.138h-21.88a.312.312 0 01-.3-.225 11.883 11.883 0 00-2.481-4.523c-2.446-2.786-6.047-4.32-10.143-4.32-2.367 0-4.818.532-7.09 1.542a.316.316 0 01-.317-.037.31.31 0 01-.118-.298l1.184-7.431a.313.313 0 01.309-.264h13.578l2.087-13.092a.314.314 0 01.107-.19l.278-.235a.316.316 0 01.201-.074h38.649a.312.312 0 01.308.361L101.84 101.68a.31.31 0 01-.308.267zm-52.365-.625h52.098l10.646-66.753H73.746l-.102.086-2.11 13.24a.313.313 0 01-.309.264H57.647l-1.054 6.61c2.201-.9 4.546-1.373 6.818-1.373 4.278 0 8.047 1.61 10.613 4.533a12.512 12.512 0 012.541 4.535h21.652c.32 0 .614.13.807.356.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082H77.058c.253 1.971.078 4.059-.51 6.084h20.337c.32 0 .614.13.807.357.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082h-20.91c-1.019 2.252-2.544 4.337-4.444 6.083h24.285c.32 0 .614.13.807.357.191.225.27.517.22.824-.097.607-.663 1.083-1.29 1.083H68.283c-2.998 1.858-6.347 2.839-9.69 2.839-2.307 0-4.536-.488-6.48-1.416l-2.946 18.477zM93.96 89.767H60.997c-.318 0-.612-.13-.805-.357a1.004 1.004 0 01-.221-.827c.097-.607.662-1.082 1.287-1.082h32.964c.32 0 .614.131.807.357.192.225.27.517.22.824-.095.608-.661 1.085-1.288 1.085zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.42.42 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001zm38.028-31.746H76.94c-.32 0-.612-.13-.805-.356a1.004 1.004 0 01-.221-.824c.097-.608.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.663 1.08-1.289 1.08zm-22.085-1.64c-.315 0-.622.256-.67.558a.387.387 0 00.079.32.423.423 0 00.33.135h22.346c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H77.201v.002z"}),p.jsx("path",{fill:"#DDD",d:"M55.21 61.447l-.332 2.085c-.052.039-.103.078-.153.12-1.13.942-1.372 2.473-.544 3.416.036.042.075.082.115.12l-1.44 9.019a8.348 8.348 0 01-.3-.325c-1.709-1.949-2.312-4.503-1.903-7.056.407-2.554 1.823-5.106 4.154-7.054.13-.11.267-.22.403-.325zM96.884 71.122c.471 0 .792.367.72.821-.073.451-.511.818-.98.818H75.507c.237-.54.444-1.087.618-1.639h20.758z"}),p.jsx("path",{fill:"#DDD",d:"M96.623 73.074H75.508a.31.31 0 01-.261-.142.316.316 0 01-.025-.296c.235-.536.439-1.076.607-1.607a.31.31 0 01.299-.218h20.756c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.662 1.08-1.289 1.08zm-20.643-.625h20.643c.317 0 .625-.254.672-.556a.392.392 0 00-.079-.32.423.423 0 00-.332-.138h-20.53a16.42 16.42 0 01-.374 1.014zM95.555 79.468c.47 0 .791.367.719.818-.072.453-.511.821-.982.821H68.193a19.625 19.625 0 002.248-1.638h25.114z"}),p.jsx("path",{fill:"#DDD",d:"M95.292 81.42H68.193a.313.313 0 01-.165-.578 19.558 19.558 0 002.148-1.56l.059-.049a.33.33 0 01.205-.076h25.114c.32 0 .614.13.807.357.192.225.27.517.221.824-.097.605-.662 1.082-1.29 1.082zm-26.063-.626h26.063c.316 0 .625-.255.672-.556a.39.39 0 00-.08-.32.423.423 0 00-.331-.137h-25c-.425.355-.868.694-1.324 1.013z"}),p.jsx("path",{fill:"#EEE",d:"M115.432 38.557l-.495 3.106-.095.598-10.06 63.074H51.517l-2.716-3.702h52.731l10.155-63.672.592-3.704 3.153 4.3z"}),p.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.31.31 0 01-.252-.127l-2.716-3.702a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.464l10.113-63.41.592-3.704a.311.311 0 01.56-.135l3.153 4.3c.05.067.069.152.057.234l-.591 3.704-10.061 63.075a.312.312 0 01-.308.262zm-53.107-.625h52.839l10.019-62.81.57-3.576-2.634-3.592-.473 2.966-10.156 63.672a.313.313 0 01-.308.264H49.418l2.257 3.076z"}),p.jsx("path",{fill:"#DDD",d:"M108.03 109.039l3.503 4.775H58.8l-3.503-4.775h52.733z"}),p.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126H58.8a.31.31 0 01-.252-.127l-3.503-4.775a.312.312 0 01.253-.498h52.734c.1 0 .193.048.251.128l3.503 4.775a.314.314 0 01-.253.497zm-52.575-.625h51.958l-3.044-4.15H55.913l3.045 4.15z"}),p.jsx("path",{fill:"#F7F9FC",d:"M118.776 41.663l-10.746 67.376H55.297l.59-3.704h48.895l10.154-63.672h3.84z"}),p.jsx("path",{fill:"#F9FAFB",d:"M108.03 109.351H55.297a.313.313 0 01-.308-.361l.59-3.703a.313.313 0 01.308-.263h48.628l10.112-63.41a.314.314 0 01.309-.264h3.84a.313.313 0 01.308.361l-10.745 67.376a.313.313 0 01-.309.264zm-52.366-.625h52.1l10.645-66.751h-3.207l-10.112 63.41a.314.314 0 01-.308.264H56.154l-.49 3.077z"}),p.jsx("path",{fill:"#EEE",d:"M118.776 41.663l3.503 4.775-10.746 67.376-3.503-4.775 10.746-67.376z"}),p.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126a.306.306 0 01-.251-.127l-3.503-4.775a.312.312 0 01-.057-.235l10.746-67.377a.309.309 0 01.234-.254.309.309 0 01.325.12l3.503 4.775a.31.31 0 01.057.234l-10.746 67.377a.309.309 0 01-.308.262zm-3.174-5.168l2.982 4.067 10.607-66.508-2.982-4.067-10.607 66.508z"}),p.jsx("path",{fill:"#85858A",d:"M49.987 81.18L31.79 96.393c-.043.036-.088.068-.132.101l-.061.046c-.036.025-.074.047-.11.071-.026.017-.053.035-.079.05-.02.011-.04.02-.06.032a2.11 2.11 0 01-.148.075l-.055.022a2.406 2.406 0 01-.294.107l-.076.021c-.04.01-.08.02-.121.028l-.074.014a4.26 4.26 0 01-.132.018l-.062.007c-.064.005-.13.008-.193.008-.545 0-1.056-.2-1.407-.6l-.649-.739a1.784 1.784 0 01-.09-.112l3.503 4.775c.027.039.058.076.09.112l.648.739c.352.4.863.6 1.408.6.063 0 .127-.003.193-.008.02-.002.041-.006.062-.007l.132-.018.074-.014c.04-.009.08-.017.12-.028l.077-.021.055-.015.04-.015c.067-.023.134-.049.2-.077l.04-.015c.005-.003.01-.006.015-.007.05-.024.098-.049.148-.075.019-.01.037-.017.055-.028l.005-.004c.026-.015.053-.033.08-.05.033-.021.067-.04.1-.064a.025.025 0 00.009-.007l.061-.046c.034-.025.068-.048.1-.075a.364.364 0 00.032-.026l18.197-15.213-3.504-4.775z"}),p.jsx("path",{fill:"#F9FAFB",d:"M33.694 102.081c-.658 0-1.241-.252-1.641-.707l-.65-.739a1.901 1.901 0 01-.106-.134l-3.501-4.772c0-.001-.002-.001-.002-.003a.312.312 0 01.503-.369l.001.003c.023.03.046.06.071.089l.649.739c.279.318.696.493 1.172.493.056 0 .11-.003.165-.009l.056-.007c.037-.004.075-.008.114-.015l.047-.01.018-.004.106-.023.068-.019a2.276 2.276 0 00.257-.093l.047-.019c.044-.02.087-.043.13-.067l.053-.028c.011-.006.024-.013.035-.022l.058-.037a2.329 2.329 0 00.099-.067l.04-.03c.035-.027.07-.052.104-.081l18.198-15.213a.314.314 0 01.45.055l3.504 4.775a.313.313 0 01-.052.425l-18.23 15.246c-.03.023-.059.045-.09.066l-.04.029-.05.038a1.955 1.955 0 01-.095.062l-.052.032a.92.92 0 01-.058.036c-.006.005-.011.007-.017.01a.658.658 0 01-.044.022l-.013.006c-.055.029-.11.058-.166.085l-.017.008-.044.018c-.075.032-.15.061-.225.086-.013.006-.03.011-.045.017l-.046.012-.015.004-.087.024c-.046.011-.09.022-.137.031l-.015.002-.07.014c-.05.009-.1.016-.148.021l-.018.003a1.864 1.864 0 01-.27.017zm-4.003-4.825l2.112 2.877c.022.031.047.061.072.091l.648.739c.311.355.8.531 1.338.486l.054-.007a1.482 1.482 0 00.161-.025l.017-.003a1.73 1.73 0 00.105-.024c.023-.005.045-.012.068-.018l.048-.012a.295.295 0 01.034-.014c.059-.02.118-.042.177-.068.01-.006.023-.01.036-.014l.01-.004c.045-.021.089-.045.133-.068a.296.296 0 01.035-.018l.01-.006c.002-.003.006-.004.01-.005l.034-.021.065-.041a.622.622 0 00.057-.036l.033-.025.053-.04.063-.047.027-.022 17.974-15.025-3.132-4.271L31.99 96.633c-.044.037-.089.071-.135.105l-.03.023c-.017.013-.032.025-.049.036-.033.023-.067.043-.1.064l-.048.03c-.021.015-.042.027-.063.04-.017.01-.033.018-.05.026l-.018.01c-.054.029-.11.058-.165.084-.016.007-.03.014-.047.02l-.016.007a2.6 2.6 0 01-.554.173l-.015.003c-.022.004-.046.01-.068.013-.05.008-.099.015-.149.02l-.02.003a2.429 2.429 0 01-.772-.035z"}),p.jsx("path",{fill:"#98A2B3",d:"M76.699 64.414a12.649 12.649 0 00-.367-1.639 12.218 12.218 0 00-2.544-4.642c-2.59-2.951-6.367-4.426-10.378-4.426-2.39 0-4.861.522-7.216 1.57a19.487 19.487 0 00-4.58 2.862c-6.318 5.28-8.203 13.503-4.815 19.405l-18.2 15.216c-.956.797-1.162 2.093-.462 2.894l.65.74c.35.4.863.6 1.405.6a2.51 2.51 0 001.597-.6l18.198-15.212a13.02 13.02 0 001.885 1.193c2.022 1.046 4.33 1.57 6.721 1.57 3.214 0 6.576-.944 9.6-2.838.753-.47 1.482-.999 2.249-1.639 2.293-1.935 3.996-4.255 5.068-6.71.234-.537.443-1.087.616-1.638.713-2.231.911-4.53.573-6.706zm-9.481 11.503c-2.343 1.96-5.16 2.937-7.82 2.937s-5.165-.979-6.881-2.937c-3.438-3.917-2.425-10.264 2.26-14.178 2.342-1.96 5.16-2.938 7.82-2.938s5.164.98 6.88 2.938a8.34 8.34 0 01.754 1.008 8.029 8.029 0 011.056 2.54c.375 1.62.281 3.364-.258 5.056a11.476 11.476 0 01-1.11 2.438 12.45 12.45 0 01-2.701 3.136z"}),p.jsx("path",{fill:"#F9FAFB",d:"M30.192 97.307c-.659 0-1.242-.251-1.64-.708l-.65-.74a2.048 2.048 0 01-.486-1.52c.055-.68.412-1.344.982-1.82L46.4 77.471c-1.585-2.903-1.989-6.42-1.136-9.936.882-3.635 3.066-7.057 6.151-9.636a19.8 19.8 0 014.654-2.907c2.347-1.045 4.886-1.597 7.343-1.597 4.278 0 8.048 1.61 10.613 4.533a12.492 12.492 0 012.61 4.76c.16.543.286 1.106.375 1.677.344 2.207.141 4.577-.584 6.85a16.681 16.681 0 01-.627 1.668c-1.123 2.569-2.906 4.927-5.155 6.824a20.11 20.11 0 01-2.284 1.664c-3.014 1.887-6.39 2.886-9.766 2.886-2.46 0-4.833-.556-6.864-1.606A13.36 13.36 0 0150 81.58L31.989 96.633a2.817 2.817 0 01-1.797.674zM63.41 54.019c-2.37 0-4.82.534-7.089 1.544a19.182 19.182 0 00-4.507 2.815c-6.13 5.123-8.126 13.12-4.744 19.01a.313.313 0 01-.071.395L28.799 93c-.442.37-.72.875-.76 1.389-.032.401.086.777.333 1.06l.649.738c.279.32.694.495 1.17.495.495 0 .992-.188 1.398-.528l18.198-15.211a.313.313 0 01.39-.009c.583.443 1.2.835 1.84 1.164 1.941 1.005 4.216 1.536 6.577 1.536 3.257 0 6.52-.965 9.434-2.79.751-.47 1.476-.997 2.213-1.614 2.175-1.833 3.898-4.114 4.983-6.594.234-.536.437-1.077.605-1.607.696-2.184.89-4.453.561-6.565a12.39 12.39 0 00-.357-1.598 11.865 11.865 0 00-2.48-4.525c-2.445-2.786-6.048-4.32-10.142-4.32zm-4.014 25.148c-2.868 0-5.396-1.08-7.117-3.045-1.536-1.75-2.276-4.066-2.086-6.525.234-3.015 1.83-5.968 4.38-8.098 2.323-1.942 5.172-3.011 8.023-3.011 2.868 0 5.396 1.08 7.117 3.044a8.743 8.743 0 01.783 1.046 8.385 8.385 0 011.097 2.637c.385 1.66.293 3.466-.265 5.221a11.584 11.584 0 01-1.14 2.506 12.926 12.926 0 01-2.77 3.215c-2.322 1.94-5.17 3.01-8.022 3.01zm3.2-20.054c-2.704 0-5.411 1.018-7.62 2.865-2.423 2.023-3.94 4.82-4.16 7.668-.177 2.289.51 4.442 1.934 6.064 1.6 1.826 3.961 2.832 6.646 2.832 2.704 0 5.411-1.018 7.62-2.865a12.3 12.3 0 002.637-3.059c.313-.518.582-1.057.803-1.603.101-.25.194-.508.276-.768.524-1.648.611-3.34.252-4.893a7.792 7.792 0 00-1.739-3.41c-1.603-1.826-3.964-2.831-6.649-2.831z"}),p.jsx("path",{fill:"#F7F9FC",d:"M59.778 66.756a.997.997 0 00-.11-.225.974.974 0 00-.103-.14 1.233 1.233 0 00-.94-.4 1.694 1.694 0 00-1.07.401c-.372.31-.575.734-.586 1.14-.008.292.082.574.278.797.235.267.576.402.94.402s.749-.134 1.068-.402c.152-.127.277-.272.371-.429.045-.072.08-.147.113-.225.125-.305.14-.632.039-.92z"}),p.jsx("path",{fill:"#F7F9FC",d:"M58.64 64.293a1.938 1.938 0 00-.373-.639c-.414-.472-1.018-.708-1.659-.708a2.941 2.941 0 00-1.883.707c-1.13.941-1.372 2.472-.544 3.415.037.042.075.082.115.12.405.391.958.586 1.543.586.375 0 .764-.08 1.135-.242.262-.114.515-.27.75-.464.266-.225.486-.48.651-.755.063-.105.118-.212.164-.32l.032-.078c.22-.54.246-1.115.07-1.622z"}),p.jsx("path",{fill:"#DDD",d:"M104.782 105.335H51.517l-2.716-3.702h52.731l3.25 3.702z"}),p.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.308.308 0 01-.252-.128l-2.716-3.701a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.73c.09 0 .175.039.235.107l3.25 3.701c.08.092.1.224.05.335a.317.317 0 01-.286.183zm-53.107-.625h52.415l-2.701-3.076H49.417l2.258 3.076z"}),p.jsx("path",{fill:"#DDD",d:"M98.215 62.775c.47 0 .792.367.72.82-.073.452-.512.819-.981.819H76.698a12.81 12.81 0 00-.365-1.639h21.882z"}),p.jsx("path",{fill:"#DDD",d:"M97.954 64.726H76.7a.312.312 0 01-.309-.265 12.214 12.214 0 00-.357-1.599.309.309 0 01.05-.275.31.31 0 01.25-.125h21.884c.319 0 .614.131.806.357.192.225.271.518.221.825-.097.607-.663 1.082-1.29 1.082zm-20.99-.625h20.99c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H76.743c.088.335.161.674.22 1.014zM99.547 54.43c.471 0 .792.366.72.82-.073.451-.512.818-.981.818H76.94c-.47 0-.79-.367-.718-.818.072-.453.51-.82.98-.82h22.345z"}),p.jsx("path",{fill:"#DDD",d:"M99.286 56.38H76.94c-.32 0-.613-.129-.806-.355a1.004 1.004 0 01-.22-.824c.097-.607.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.191.225.271.518.221.825-.096.606-.663 1.08-1.29 1.08zM77.2 54.742c-.315 0-.622.255-.67.557a.391.391 0 00.078.32.423.423 0 00.33.136h22.347c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H77.2zM94.222 87.815c.471 0 .792.367.72.818-.073.453-.511.821-.982.821H60.997c-.468 0-.79-.366-.718-.82.072-.452.511-.819.98-.819h32.963z"}),p.jsx("path",{fill:"#DDD",d:"M93.961 89.767H60.997c-.318 0-.61-.13-.804-.356a1.004 1.004 0 01-.22-.826c.096-.607.662-1.082 1.287-1.082h32.962c.32 0 .614.13.807.357.192.225.27.516.22.823-.095.607-.662 1.084-1.288 1.084zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.419.419 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001z"}),p.jsx("path",{fill:"#DDD",d:"M80.201 69.189c-.025-.16-.053-.32-.083-.478l-.008-.046-.02-.089c-.026-.129-.056-.258-.086-.386-.011-.047-.022-.096-.035-.143a14.558 14.558 0 00-.133-.496c-.065-.223-.14-.444-.218-.663-.01-.028-.017-.056-.028-.084-.01-.029-.023-.057-.033-.085a11.396 11.396 0 00-.553-1.268c-.013-.023-.022-.047-.033-.07-.017-.034-.038-.067-.055-.1a16.26 16.26 0 00-.219-.4c-.032-.055-.061-.11-.094-.164a11.61 11.61 0 00-.337-.536v-.003c-.1-.147-.2-.293-.306-.438l-3.503-4.775a12.034 12.034 0 01.644.977l.095.164a16.362 16.362 0 01.308.57c.104.205.203.412.294.621l.021.053a11.536 11.536 0 01.297.761 12.302 12.302 0 01.47 1.69 11.138 11.138 0 01.111.614c.339 2.175.14 4.473-.57 6.707a16.401 16.401 0 01-.619 1.64c-.048.11-.1.22-.15.33-.04.086-.08.172-.122.258l-.104.214c-.043.086-.088.17-.132.257a11.944 11.944 0 01-.253.467l-.117.206-.151.256-.112.186c-.134.215-.271.43-.414.64l-.087.127a17.85 17.85 0 01-.902 1.204l-.11.135c-.15.18-.304.36-.463.537l-.075.082a18.882 18.882 0 01-1.029 1.053l-.27.249c-.048.044-.096.09-.146.134-.142.127-.285.25-.43.374a20.29 20.29 0 01-1.082.844l-.084.063a21.276 21.276 0 01-1.082.73c-.209.13-.418.256-.63.377-.056.032-.112.06-.167.093-.186.104-.373.205-.56.303l-.213.11a18.01 18.01 0 01-.62.298c-.038.017-.074.035-.112.051-.048.023-.098.043-.147.064-.136.06-.272.12-.41.175l-.204.082c-.12.047-.24.095-.36.14-.072.028-.145.055-.217.081-.118.043-.236.083-.355.124a9.937 9.937 0 01-.218.072c-.097.032-.195.06-.293.091a16.404 16.404 0 01-.997.275 16.845 16.845 0 01-1.56.308c-.123.019-.247.036-.37.052l-.267.035c-.13.015-.257.026-.385.037-.083.007-.168.017-.251.023-.142.01-.282.018-.422.025-.071.004-.14.008-.212.01-.21.01-.42.013-.63.013-2.39 0-4.697-.523-6.721-1.57a12.644 12.644 0 01-1.885-1.195l3.503 4.775c.593.454 1.224.851 1.885 1.194 2.022 1.048 4.33 1.571 6.72 1.571.209 0 .419-.004.63-.012.07-.003.14-.009.21-.011.141-.007.283-.014.423-.025l.25-.023c.13-.01.257-.023.386-.037.09-.01.178-.022.267-.033.124-.017.247-.032.37-.052l.277-.044.363-.064c.093-.018.187-.036.28-.056.12-.025.24-.05.358-.077a16.81 16.81 0 00.918-.235l.362-.107.18-.053.113-.037.218-.073c.118-.04.236-.08.354-.123l.218-.08c.12-.045.24-.092.36-.141l.204-.082c.137-.057.273-.115.41-.175.048-.022.098-.042.147-.064a.206.206 0 01.026-.011c.028-.013.056-.028.084-.04a18.01 18.01 0 001.393-.711c.04-.023.08-.042.12-.066.014-.008.031-.02.046-.027.211-.121.422-.246.63-.377.213-.133.423-.272.633-.415l.057-.038c.13-.09.262-.183.393-.277l.084-.063c.167-.122.334-.247.5-.378l.038-.029c.089-.07.18-.14.268-.214a19.263 19.263 0 00.703-.598l.146-.134c.09-.083.182-.165.27-.25l.014-.012c.017-.015.032-.032.048-.047.148-.142.293-.287.436-.43l.135-.14c.134-.14.266-.28.395-.423l.059-.063.015-.018c.158-.178.312-.357.462-.537l.11-.134c.132-.162.263-.326.388-.492.013-.019.03-.037.044-.056l.013-.017c.158-.211.31-.424.458-.639l.086-.125c.143-.213.282-.426.415-.642l.027-.04.086-.146c.051-.084.101-.17.151-.255l.117-.207.14-.256.111-.21a8.98 8.98 0 00.13-.258c.037-.07.072-.142.106-.214l.123-.258c.016-.038.036-.074.052-.111l.098-.22c.237-.54.444-1.087.618-1.639.72-2.237.92-4.534.58-6.712z"}),p.jsx("path",{fill:"#F9FAFB",d:"M62.094 89.035c-2.46 0-4.833-.556-6.864-1.607a13.081 13.081 0 01-1.931-1.224.303.303 0 01-.063-.064l-3.503-4.775a.313.313 0 01.442-.433c.57.438 1.189.83 1.839 1.165 1.941 1.006 4.215 1.536 6.576 1.536.196 0 .404-.004.618-.012.04-.001.08-.004.12-.007l.087-.006c.14-.007.277-.014.416-.025.054-.004.108-.01.16-.013l.085-.009c.13-.01.255-.023.378-.037.065-.007.13-.017.196-.025l.068-.009a16.852 16.852 0 00.607-.09l.028-.004c.118-.02.237-.04.355-.063l.277-.055c.116-.024.234-.05.351-.077.093-.02.185-.043.278-.065.117-.029.235-.058.351-.09l.275-.075c.118-.033.236-.07.354-.106l.04-.012c.083-.025.166-.052.248-.078l.214-.07c.116-.04.232-.08.348-.123.071-.026.143-.051.214-.08.118-.044.236-.09.354-.137l.055-.02.147-.059c.135-.055.268-.114.403-.172l.063-.028c.027-.01.055-.023.081-.035l.108-.05a18.639 18.639 0 001.371-.698l.068-.038.096-.052a16.582 16.582 0 001.242-.78c.147-.101.296-.204.443-.31l.083-.062c.18-.132.342-.254.493-.372l.038-.03c.187-.148.362-.29.532-.431.143-.121.283-.243.422-.367l.086-.079.094-.086c.077-.07.155-.14.23-.211l.062-.06c.14-.135.28-.272.43-.424l.133-.137c.132-.138.262-.276.389-.417l.073-.079c.147-.164.296-.337.456-.53l.108-.131c.138-.168.263-.326.38-.483l.058-.073c.144-.191.291-.397.45-.627l.084-.124c.145-.212.28-.425.407-.63l.096-.157.014-.024.149-.251c.034-.06.068-.12.1-.18l.015-.025.139-.251.11-.207c.042-.083.085-.168.129-.251l.102-.21.12-.253.012-.029c.046-.099.092-.197.135-.296.235-.536.44-1.076.607-1.608.696-2.184.889-4.453.56-6.565a11.271 11.271 0 00-.082-.467l-.028-.133a11.506 11.506 0 00-.083-.377l-.035-.142a12.175 12.175 0 00-.343-1.13l-.06-.164c-.08-.212-.154-.401-.23-.578l-.021-.051a11.148 11.148 0 00-.374-.772c-.07-.13-.14-.26-.214-.39l-.029-.05-.064-.109a11.675 11.675 0 00-.628-.951.312.312 0 01.503-.37l.001.002 3.502 4.773a12.91 12.91 0 01.661 1.002c.024.038.044.077.067.115l.029.051c.078.136.153.273.225.41l.02.036.035.067c.009.015.016.032.023.047l.01.025c.119.233.217.442.303.639l.023.053c.082.191.16.39.243.61l.01.029c.01.019.018.038.025.06.007.017.012.037.018.056l.01.03a11.728 11.728 0 01.359 1.185l.028.114.008.034c.032.132.061.264.088.396l.008.034.013.056.008.048c.034.181.062.34.086.49.343 2.21.143 4.577-.582 6.85a16.635 16.635 0 01-.73 1.892l-.031.068-.022.046a14.23 14.23 0 01-.23.48 11.92 11.92 0 01-.248.476l-.143.26-.021.037a9.74 9.74 0 01-.253.433l-.036.06c-.017.03-.035.058-.051.088l-.02.03c-.139.224-.28.443-.429.663l-.087.126c-.166.24-.319.453-.467.65l-.058.076c-.123.16-.255.33-.395.5l-.014.018-.097.119c-.165.198-.318.377-.47.547l-.017.02a.915.915 0 01-.037.038l-.023.025c-.132.145-.266.288-.402.43l-.137.14c-.154.158-.3.3-.443.438l-.017.017a9.64 9.64 0 00-.032.032l-.012.011c-.078.074-.157.146-.236.218l-.096.09-.093.084a19.541 19.541 0 01-.986.823l-.038.031c-.158.124-.325.25-.508.383l-.086.064a23.375 23.375 0 01-.438.309l-.02.013a18.483 18.483 0 01-1.283.806l-.05.03-.072.038a19.12 19.12 0 01-1.465.747l-.032.016c-.018.008-.036.018-.054.025l-.02.008-.098.043-.059.025c-.138.061-.277.12-.416.178l-.149.06-.058.023c-.122.049-.245.096-.367.142l-.22.082-.36.126-.221.074-.047.015-.069.022c-.036.011-.072.022-.11.032l-.073.022a18.815 18.815 0 01-.65.186c-.122.032-.243.064-.365.093-.095.024-.19.046-.286.069a17.79 17.79 0 01-.365.079 15.73 15.73 0 01-.656.122l-.032.005c-.083.014-.165.028-.249.04-.126.02-.251.037-.377.052l-.069.008c-.067.009-.136.018-.202.025-.13.016-.261.027-.392.04l-.083.008-.174.015c-.144.011-.287.018-.43.025l-.081.004a10.9 10.9 0 01-.767.024zm-8.379-3.3a12.43 12.43 0 001.804 1.137c1.942 1.006 4.216 1.536 6.577 1.536a16.05 16.05 0 00.739-.02l.086-.005c.139-.007.276-.013.415-.025l.163-.014.084-.008c.128-.01.253-.023.38-.037l.193-.024.069-.01c.12-.015.243-.032.364-.05.079-.012.16-.025.239-.039l.032-.005c.12-.02.237-.04.355-.063l.277-.055a20.067 20.067 0 00.63-.142l.352-.09c.091-.025.183-.049.273-.075.118-.033.236-.07.354-.106l.084-.025.093-.027.11-.038a17.076 17.076 0 00.561-.192c.072-.026.144-.051.215-.079.118-.044.236-.09.354-.137l.06-.024.14-.055c.135-.056.27-.114.403-.173l.064-.027.08-.035.061-.028.049-.024c.198-.091.404-.19.611-.293a21.557 21.557 0 00.761-.404l.063-.033.054-.03.046-.027a18.234 18.234 0 001.243-.78l.055-.035c.13-.09.259-.18.388-.274l.084-.062c.178-.131.34-.252.492-.373l.038-.03.264-.21a19.304 19.304 0 00.69-.587c.029-.025.057-.052.083-.077l.1-.092c.075-.069.152-.137.225-.208a.08.08 0 01.011-.01l.052-.05a17.113 17.113 0 00.562-.56c.132-.138.263-.277.389-.417l.074-.08a18.896 18.896 0 00.548-.644l.016-.018c.134-.165.263-.33.382-.483l.056-.074c.143-.189.29-.394.45-.626l.084-.123c.144-.212.28-.425.408-.63l.025-.039.046-.078.039-.065.148-.25c.032-.056.064-.111.095-.168l.02-.038c.046-.083.094-.166.138-.25a14.79 14.79 0 00.238-.458l.104-.211.12-.253.052-.11.096-.213c.236-.538.44-1.078.607-1.609.696-2.183.889-4.453.56-6.565a12.975 12.975 0 00-.082-.465l-.027-.132a16.316 16.316 0 00-.083-.377l-.008-.034-.025-.106a11.436 11.436 0 00-.343-1.13l-.017-.05-.01-.031-.012-.03-.021-.052a12.056 12.056 0 00-.23-.578l-.022-.051c-.08-.186-.175-.385-.287-.607l-.022-.046-.011-.025a13.258 13.258 0 00-.267-.486l-.03-.054a11.045 11.045 0 00-.389-.628c-.002-.001-.003-.004-.005-.007a13.32 13.32 0 00-.296-.422l-1.195-1.63a12.852 12.852 0 01.261.9l.036.146c.03.132.06.263.087.395l.03.139c.034.178.062.337.086.49.343 2.208.141 4.577-.582 6.85a16.382 16.382 0 01-.63 1.67c-.045.102-.094.205-.141.308l-.013.028-.123.262-.107.218-.133.261-.113.214c-.047.088-.096.174-.145.261l-.013.025a12.525 12.525 0 01-.26.446l-.014.024-.1.165c-.13.213-.272.432-.422.653l-.088.128c-.164.239-.316.451-.466.65l-.059.075c-.123.162-.252.326-.394.5l-.113.136c-.163.198-.318.376-.47.546l-.077.082a23.629 23.629 0 01-.54.572 18.55 18.55 0 01-.443.437l-.064.063-.238.22-.09.082c-.032.03-.062.059-.094.087a19.541 19.541 0 01-.988.823l-.037.03c-.157.123-.324.25-.509.384l-.086.064a21.1 21.1 0 01-1.1.743c-.197.124-.407.249-.64.383l-.106.059-.063.036a18.867 18.867 0 01-1.417.72l-.049.023-.064.03-.091.04-.06.026c-.139.06-.278.12-.417.178l-.155.062-.053.02c-.122.05-.243.097-.367.142l-.222.082a17.86 17.86 0 01-.58.2l-.26.08-.04.01a18.815 18.815 0 01-1.666.427 17.24 17.24 0 01-.655.122l-.028.004-.254.042c-.127.02-.252.036-.377.052l-.066.008c-.07.01-.138.018-.206.026-.129.016-.258.027-.387.04l-.087.008a7.906 7.906 0 01-.173.015c-.143.01-.286.018-.43.025l-.081.004a17.27 17.27 0 01-.775.02c-2.461 0-4.834-.556-6.864-1.608-.154-.079-.306-.162-.456-.247l2.446 3.33zM120.843 90.037a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.134zM33.935 82.412a2.067 2.067 0 100-4.133 2.067 2.067 0 000 4.133zM34.97 84.083a.728.728 0 100-1.455.728.728 0 000 1.455zM45.217 56.42a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.133zM47.632 53.008a.728.728 0 100-1.455.728.728 0 000 1.455z"}),p.jsx("path",{fill:"#EEE",d:"M126.15 45.536a3.556 3.556 0 10-.001-7.11 3.556 3.556 0 00.001 7.11z"}),p.jsx("path",{fill:"#F9FAFB",d:"M122.594 40.225a1.693 1.693 0 100-3.386 1.693 1.693 0 000 3.386z"})]})}var Gh=typeof S.commonjsGlobal=="object"&&S.commonjsGlobal&&S.commonjsGlobal.Object===Object&&S.commonjsGlobal,qh=typeof self=="object"&&self&&self.Object===Object&&self;Gh||qh||Function("return this")();function Kh(e){const[t,n]=_.useState(!!e),r=_.useCallback(()=>{n(!0)},[]),i=_.useCallback(()=>{n(!1)},[]),o=_.useCallback(()=>{n(s=>!s)},[]);return{value:t,setValue:n,setTrue:r,setFalse:i,toggle:o}}function Xh(e){var t;return p.jsxs(L.Dialog,{...e.dialogProps,open:e.open,children:[!e.hideTitle&&p.jsxs(L.DialogTitle,{component:L.Stack,sx:{...e.titleProps,textAlign:"center"},children:[typeof e.title=="string"?p.jsx(L.Typography,{variant:"h4",children:e.title}):e.title,typeof e.subTitle=="string"?p.jsx(L.Typography,{color:"success.main",variant:"body1",...e.subTitleProps,children:e.subTitle}):e.subTitle]}),p.jsx(L.DialogContent,{sx:{...e.contentProps,overflowY:e.fixOverflow?"unset":void 0},children:e.desc}),!(e.hideClose&&e.hideConfirm)&&p.jsx(L.DialogActions,{...e.dialogActionsProps,sx:{display:"flex",justifyContent:"space-between","& button":{minWidth:e.minWidthButton||200},px:3,pb:3,...(t=e.dialogActionsProps)==null?void 0:t.sx},children:e.customActions?e.customActions:p.jsxs(p.Fragment,{children:[!e.hideClose&&p.jsx(L.Button,{color:"error",onClick:e.onClose,children:"Close"}),!e.hideConfirm&&p.jsx(L.Button,{color:"primary",onClick:e.onConfirm,children:"Submit"})]})})]})}function Zh(e){const t=Kh(typeof e=="boolean"?e:void 0);return{setTrue:t.setTrue,open:t.value,onClose:t.setFalse,onConfirm:typeof e!="boolean"?e==null?void 0:e.onConfirm:void 0}}const Jh=()=>p.jsx("div",{className:S.styles["page-container"],children:p.jsxs("div",{className:S.styles["page-main-content"],children:[p.jsx(Qh,{}),p.jsxs("div",{className:"flex flex-col gap-[8px] items-center justify-center text-center",children:[p.jsx("h2",{className:S.styles["page-title"],children:S.t("components.unauthorizedPage.title")}),p.jsxs("p",{className:S.styles["text-base"],children:[S.t("components.unauthorizedPage.description1")," ",p.jsx("br",{})," ",S.t("components.unauthorizedPage.description2")]})]})]})}),Qh=()=>p.jsxs("svg",{width:"61",height:"60",viewBox:"0 0 61 60",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsxs("g",{filter:"url(#filter0_d_10800_50471)",children:[p.jsx("rect",{x:"2.5",y:"1",width:"56",height:"56",rx:"28",fill:"white"}),p.jsx("path",{d:"M24.6667 27.833V23.1663C24.6667 21.6192 25.2812 20.1355 26.3752 19.0416C27.4692 17.9476 28.9529 17.333 30.5 17.333C32.0471 17.333 33.5308 17.9476 34.6248 19.0416C35.7188 20.1355 36.3333 21.6192 36.3333 23.1663V27.833M22.3333 27.833H38.6667C39.9553 27.833 41 28.8777 41 30.1663V38.333C41 39.6217 39.9553 40.6663 38.6667 40.6663H22.3333C21.0447 40.6663 20 39.6217 20 38.333V30.1663C20 28.8777 21.0447 27.833 22.3333 27.833Z",stroke:"#292929","stroke-width":"2.33333","stroke-linecap":"round","stroke-linejoin":"round"})]}),p.jsx("defs",{children:p.jsxs("filter",{id:"filter0_d_10800_50471",x:"0.5",y:"0",width:"60",height:"60",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[p.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),p.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),p.jsx("feOffset",{dy:"1"}),p.jsx("feGaussianBlur",{stdDeviation:"1"}),p.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0"}),p.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_10800_50471"}),p.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_10800_50471",result:"shape"})]})})]});function Ke(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ol(e){if(!Ke(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ol(e[n])}),t}function Ne(e,t,n={clone:!0}){const r=n.clone?S._extends({},e):e;return Ke(e)&&Ke(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Ke(t[i])&&i in e&&Ke(e[i])?r[i]=Ne(e[i],t[i],n):n.clone?r[i]=Ke(t[i])?Ol(t[i]):t[i]:r[i]=t[i])}),r}const e1=Object.freeze(Object.defineProperty({__proto__:null,default:Ne,isPlainObject:Ke},Symbol.toStringTag,{value:"Module"}));function Jt(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const t1=Object.freeze(Object.defineProperty({__proto__:null,default:Jt},Symbol.toStringTag,{value:"Module"}));var Gr={exports:{}},$={};/**
9
11
  * @license React
10
12
  * react-is.production.min.js
11
13
  *
@@ -13,7 +15,7 @@
13
15
  *
14
16
  * This source code is licensed under the MIT license found in the
15
17
  * LICENSE file in the root directory of this source tree.
16
- */var eo;function Jh(){if(eo)return $;eo=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function f(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case n:case i:case r:case c:case d:return g;default:switch(g=g&&g.$$typeof,g){case a:case s:case l:case h:case u:case o:return g;default:return b}}case t:return b}}}return $.ContextConsumer=s,$.ContextProvider=o,$.Element=e,$.ForwardRef=l,$.Fragment=n,$.Lazy=h,$.Memo=u,$.Portal=t,$.Profiler=i,$.StrictMode=r,$.Suspense=c,$.SuspenseList=d,$.isAsyncMode=function(){return!1},$.isConcurrentMode=function(){return!1},$.isContextConsumer=function(g){return f(g)===s},$.isContextProvider=function(g){return f(g)===o},$.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},$.isForwardRef=function(g){return f(g)===l},$.isFragment=function(g){return f(g)===n},$.isLazy=function(g){return f(g)===h},$.isMemo=function(g){return f(g)===u},$.isPortal=function(g){return f(g)===t},$.isProfiler=function(g){return f(g)===i},$.isStrictMode=function(g){return f(g)===r},$.isSuspense=function(g){return f(g)===c},$.isSuspenseList=function(g){return f(g)===d},$.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===i||g===r||g===c||g===d||g===m||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===u||g.$$typeof===o||g.$$typeof===s||g.$$typeof===l||g.$$typeof===y||g.getModuleId!==void 0)},$.typeOf=f,$}var z={};/**
18
+ */var Qs;function n1(){if(Qs)return $;Qs=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function f(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case n:case i:case r:case c:case d:return g;default:switch(g=g&&g.$$typeof,g){case a:case s:case l:case h:case u:case o:return g;default:return b}}case t:return b}}}return $.ContextConsumer=s,$.ContextProvider=o,$.Element=e,$.ForwardRef=l,$.Fragment=n,$.Lazy=h,$.Memo=u,$.Portal=t,$.Profiler=i,$.StrictMode=r,$.Suspense=c,$.SuspenseList=d,$.isAsyncMode=function(){return!1},$.isConcurrentMode=function(){return!1},$.isContextConsumer=function(g){return f(g)===s},$.isContextProvider=function(g){return f(g)===o},$.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},$.isForwardRef=function(g){return f(g)===l},$.isFragment=function(g){return f(g)===n},$.isLazy=function(g){return f(g)===h},$.isMemo=function(g){return f(g)===u},$.isPortal=function(g){return f(g)===t},$.isProfiler=function(g){return f(g)===i},$.isStrictMode=function(g){return f(g)===r},$.isSuspense=function(g){return f(g)===c},$.isSuspenseList=function(g){return f(g)===d},$.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===i||g===r||g===c||g===d||g===m||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===u||g.$$typeof===o||g.$$typeof===s||g.$$typeof===l||g.$$typeof===y||g.getModuleId!==void 0)},$.typeOf=f,$}var z={};/**
17
19
  * @license React
18
20
  * react-is.development.js
19
21
  *
@@ -21,47 +23,47 @@
21
23
  *
22
24
  * This source code is licensed under the MIT license found in the
23
25
  * LICENSE file in the root directory of this source tree.
24
- */var to;function Qh(){return to||(to=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=!1,f=!1,g=!1,b=!1,w=!1,x;x=Symbol.for("react.module.reference");function E(O){return!!(typeof O=="string"||typeof O=="function"||O===n||O===i||w||O===r||O===c||O===d||b||O===m||y||f||g||typeof O=="object"&&O!==null&&(O.$$typeof===h||O.$$typeof===u||O.$$typeof===o||O.$$typeof===s||O.$$typeof===l||O.$$typeof===x||O.getModuleId!==void 0))}function v(O){if(typeof O=="object"&&O!==null){var ft=O.$$typeof;switch(ft){case e:var pn=O.type;switch(pn){case n:case i:case r:case c:case d:return pn;default:var Bi=pn&&pn.$$typeof;switch(Bi){case a:case s:case l:case h:case u:case o:return Bi;default:return ft}}case t:return ft}}}var C=s,T=o,P=e,k=l,D=n,j=h,R=u,q=t,H=i,ue=r,U=c,ae=d,le=!1,pe=!1;function Oe(O){return le||(le=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(O){return pe||(pe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function _e(O){return v(O)===s}function Re(O){return v(O)===o}function be(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function Ve(O){return v(O)===l}function Le(O){return v(O)===n}function dt(O){return v(O)===h}function Rt(O){return v(O)===u}function nt(O){return v(O)===t}function We(O){return v(O)===i}function Pe(O){return v(O)===r}function A(O){return v(O)===c}function Vt(O){return v(O)===d}z.ContextConsumer=C,z.ContextProvider=T,z.Element=P,z.ForwardRef=k,z.Fragment=D,z.Lazy=j,z.Memo=R,z.Portal=q,z.Profiler=H,z.StrictMode=ue,z.Suspense=U,z.SuspenseList=ae,z.isAsyncMode=Oe,z.isConcurrentMode=W,z.isContextConsumer=_e,z.isContextProvider=Re,z.isElement=be,z.isForwardRef=Ve,z.isFragment=Le,z.isLazy=dt,z.isMemo=Rt,z.isPortal=nt,z.isProfiler=We,z.isStrictMode=Pe,z.isSuspense=A,z.isSuspenseList=Vt,z.isValidElementType=E,z.typeOf=v}()),z}process.env.NODE_ENV==="production"?Gr.exports=Jh():Gr.exports=Qh();var no=Gr.exports;const e1=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function jl(e){const t=`${e}`.match(e1);return t&&t[1]||""}function Ml(e,t=""){return e.displayName||e.name||jl(e)||t}function ro(e,t,n){const r=Ml(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function t1(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ml(e,"Component");if(typeof e=="object")switch(e.$$typeof){case no.ForwardRef:return ro(e,e.render,"ForwardRef");case no.Memo:return ro(e,e.type,"memo");default:return}}}const n1=Object.freeze(Object.defineProperty({__proto__:null,default:t1,getFunctionName:jl},Symbol.toStringTag,{value:"Module"}));function at(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Jt(7));return e.charAt(0).toUpperCase()+e.slice(1)}const r1=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"}));function Nl(e,t){const n=S._extends({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S._extends({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=S._extends({},o),Object.keys(i).forEach(s=>{n[r][s]=Nl(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function i1(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const a=t(s);a!==""&&o.push(a),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const io=e=>e,s1=()=>{let e=io;return{configure(t){e=t},generate(t){return e(t)},reset(){e=io}}},o1=s1(),a1=o1,l1={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ti(e,t,n="Mui"){const r=l1[t];return r?`${n}-${r}`:`${a1.generate(e)}-${t}`}function c1(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ti(e,i,n)}),r}function u1(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const d1=Object.freeze(Object.defineProperty({__proto__:null,default:u1},Symbol.toStringTag,{value:"Module"}));function f1(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Nl(t.components[n].defaultProps,r)}const h1=["values","unit","step"],p1=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S._extends({},n,{[r.key]:r.val}),{})};function Dl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=S._objectWithoutPropertiesLoose(e,h1),o=p1(t),s=Object.keys(o);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,m){const y=s.indexOf(m);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:m)-r/100}${n})`}function d(h){return s.indexOf(h)+1<s.length?c(h,s[s.indexOf(h)+1]):a(h)}function u(h){const m=s.indexOf(h);return m===0?a(s[1]):m===s.length-1?l(s[m]):c(h,s[s.indexOf(h)+1]).replace("@media","@media not all and")}return S._extends({keys:s,values:o,up:a,down:l,between:c,only:d,not:u,unit:n},i)}const m1={borderRadius:4},g1=m1,y1=process.env.NODE_ENV!=="production"?S.PropTypes.oneOfType([S.PropTypes.number,S.PropTypes.string,S.PropTypes.object,S.PropTypes.array]):{},tt=y1;function Gt(e,t){return t?Ne(e,t,{clone:!1}):e}const _i={xs:0,sm:600,md:900,lg:1200,xl:1536},so={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${_i[e]}px)`};function Be(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||so;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=r.breakpoints||so;return Object.keys(t).reduce((s,a)=>{if(Object.keys(o.values||_i).indexOf(a)!==-1){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function v1(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function b1(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function nr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Hn(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=nr(e,n)||r,t&&(i=t(i,r,e)),i}function Q(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=nr(l,r)||{};return Be(s,a,u=>{let h=Hn(c,i,u);return u===h&&typeof u=="string"&&(h=Hn(c,i,`${t}${u==="default"?"":at(u)}`,u)),n===!1?h:{[n]:h}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:tt}:{},o.filterProps=[t],o}function x1(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const w1={m:"margin",p:"padding"},S1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},oo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},E1=x1(e=>{if(e.length>2)if(oo[e])e=oo[e];else return[e];const[t,n]=e.split(""),r=w1[t],i=S1[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),rr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ir=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],C1=[...rr,...ir];function cn(e,t,n,r){var i;const o=(i=nr(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),o*s):Array.isArray(o)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
26
+ */var eo;function r1(){return eo||(eo=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=!1,f=!1,g=!1,b=!1,w=!1,x;x=Symbol.for("react.module.reference");function E(O){return!!(typeof O=="string"||typeof O=="function"||O===n||O===i||w||O===r||O===c||O===d||b||O===m||y||f||g||typeof O=="object"&&O!==null&&(O.$$typeof===h||O.$$typeof===u||O.$$typeof===o||O.$$typeof===s||O.$$typeof===l||O.$$typeof===x||O.getModuleId!==void 0))}function v(O){if(typeof O=="object"&&O!==null){var ft=O.$$typeof;switch(ft){case e:var pn=O.type;switch(pn){case n:case i:case r:case c:case d:return pn;default:var Fi=pn&&pn.$$typeof;switch(Fi){case a:case s:case l:case h:case u:case o:return Fi;default:return ft}}case t:return ft}}}var T=s,C=o,P=e,k=l,D=n,j=h,R=u,q=t,H=i,ue=r,U=c,ae=d,le=!1,pe=!1;function Oe(O){return le||(le=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(O){return pe||(pe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function _e(O){return v(O)===s}function Re(O){return v(O)===o}function be(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function Ve(O){return v(O)===l}function Ie(O){return v(O)===n}function dt(O){return v(O)===h}function Rt(O){return v(O)===u}function nt(O){return v(O)===t}function We(O){return v(O)===i}function Pe(O){return v(O)===r}function A(O){return v(O)===c}function Vt(O){return v(O)===d}z.ContextConsumer=T,z.ContextProvider=C,z.Element=P,z.ForwardRef=k,z.Fragment=D,z.Lazy=j,z.Memo=R,z.Portal=q,z.Profiler=H,z.StrictMode=ue,z.Suspense=U,z.SuspenseList=ae,z.isAsyncMode=Oe,z.isConcurrentMode=W,z.isContextConsumer=_e,z.isContextProvider=Re,z.isElement=be,z.isForwardRef=Ve,z.isFragment=Ie,z.isLazy=dt,z.isMemo=Rt,z.isPortal=nt,z.isProfiler=We,z.isStrictMode=Pe,z.isSuspense=A,z.isSuspenseList=Vt,z.isValidElementType=E,z.typeOf=v}()),z}process.env.NODE_ENV==="production"?Gr.exports=n1():Gr.exports=r1();var to=Gr.exports;const i1=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function jl(e){const t=`${e}`.match(i1);return t&&t[1]||""}function Ml(e,t=""){return e.displayName||e.name||jl(e)||t}function no(e,t,n){const r=Ml(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function s1(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ml(e,"Component");if(typeof e=="object")switch(e.$$typeof){case to.ForwardRef:return no(e,e.render,"ForwardRef");case to.Memo:return no(e,e.type,"memo");default:return}}}const o1=Object.freeze(Object.defineProperty({__proto__:null,default:s1,getFunctionName:jl},Symbol.toStringTag,{value:"Module"}));function at(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Jt(7));return e.charAt(0).toUpperCase()+e.slice(1)}const a1=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"}));function Nl(e,t){const n=S._extends({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=S._extends({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=S._extends({},o),Object.keys(i).forEach(s=>{n[r][s]=Nl(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function l1(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const a=t(s);a!==""&&o.push(a),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const ro=e=>e,c1=()=>{let e=ro;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ro}}},u1=c1(),d1=u1,f1={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ti(e,t,n="Mui"){const r=f1[t];return r?`${n}-${r}`:`${d1.generate(e)}-${t}`}function h1(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ti(e,i,n)}),r}function p1(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const m1=Object.freeze(Object.defineProperty({__proto__:null,default:p1},Symbol.toStringTag,{value:"Module"}));function g1(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Nl(t.components[n].defaultProps,r)}const y1=["values","unit","step"],v1=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>S._extends({},n,{[r.key]:r.val}),{})};function Dl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=S._objectWithoutPropertiesLoose(e,y1),o=v1(t),s=Object.keys(o);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,m){const y=s.indexOf(m);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:m)-r/100}${n})`}function d(h){return s.indexOf(h)+1<s.length?c(h,s[s.indexOf(h)+1]):a(h)}function u(h){const m=s.indexOf(h);return m===0?a(s[1]):m===s.length-1?l(s[m]):c(h,s[s.indexOf(h)+1]).replace("@media","@media not all and")}return S._extends({keys:s,values:o,up:a,down:l,between:c,only:d,not:u,unit:n},i)}const b1={borderRadius:4},x1=b1,w1=process.env.NODE_ENV!=="production"?S.PropTypes.oneOfType([S.PropTypes.number,S.PropTypes.string,S.PropTypes.object,S.PropTypes.array]):{},tt=w1;function Gt(e,t){return t?Ne(e,t,{clone:!1}):e}const Ci={xs:0,sm:600,md:900,lg:1200,xl:1536},io={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ci[e]}px)`};function Be(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||io;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=r.breakpoints||io;return Object.keys(t).reduce((s,a)=>{if(Object.keys(o.values||Ci).indexOf(a)!==-1){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function S1(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function E1(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function nr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Hn(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=nr(e,n)||r,t&&(i=t(i,r,e)),i}function Q(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=nr(l,r)||{};return Be(s,a,u=>{let h=Hn(c,i,u);return u===h&&typeof u=="string"&&(h=Hn(c,i,`${t}${u==="default"?"":at(u)}`,u)),n===!1?h:{[n]:h}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:tt}:{},o.filterProps=[t],o}function T1(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const C1={m:"margin",p:"padding"},_1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},so={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},P1=T1(e=>{if(e.length>2)if(so[e])e=so[e];else return[e];const[t,n]=e.split(""),r=C1[t],i=_1[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),rr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ir=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],A1=[...rr,...ir];function cn(e,t,n,r){var i;const o=(i=nr(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),o*s):Array.isArray(o)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
25
27
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
26
28
  `))),o[s]):typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
27
- `)),()=>{})}function Rl(e){return cn(e,"spacing",8,"spacing")}function un(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function T1(e,t){return n=>e.reduce((r,i)=>(r[i]=un(t,n),r),{})}function _1(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=E1(n),o=T1(i,r),s=e[n];return Be(e,s,o)}function Vl(e,t){const n=Rl(e.theme);return Object.keys(e).map(r=>_1(e,t,r,n)).reduce(Gt,{})}function X(e){return Vl(e,rr)}X.propTypes=process.env.NODE_ENV!=="production"?rr.reduce((e,t)=>(e[t]=tt,e),{}):{};X.filterProps=rr;function Z(e){return Vl(e,ir)}Z.propTypes=process.env.NODE_ENV!=="production"?ir.reduce((e,t)=>(e[t]=tt,e),{}):{};Z.filterProps=ir;process.env.NODE_ENV!=="production"&&C1.reduce((e,t)=>(e[t]=tt,e),{});function P1(e=8){if(e.mui)return e;const t=Rl({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function sr(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Gt(i,t[o](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ee(e){return typeof e!="number"?e:`${e}px solid`}function Te(e,t){return Q({prop:e,themeKey:"borders",transform:t})}const A1=Te("border",Ee),k1=Te("borderTop",Ee),O1=Te("borderRight",Ee),j1=Te("borderBottom",Ee),M1=Te("borderLeft",Ee),N1=Te("borderColor"),D1=Te("borderTopColor"),R1=Te("borderRightColor"),V1=Te("borderBottomColor"),L1=Te("borderLeftColor"),I1=Te("outline",Ee),$1=Te("outlineColor"),or=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=cn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:un(t,r)});return Be(e,e.borderRadius,n)}return null};or.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:tt}:{};or.filterProps=["borderRadius"];sr(A1,k1,O1,j1,M1,N1,D1,R1,V1,L1,or,I1,$1);const ar=e=>{if(e.gap!==void 0&&e.gap!==null){const t=cn(e.theme,"spacing",8,"gap"),n=r=>({gap:un(t,r)});return Be(e,e.gap,n)}return null};ar.propTypes=process.env.NODE_ENV!=="production"?{gap:tt}:{};ar.filterProps=["gap"];const lr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=cn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:un(t,r)});return Be(e,e.columnGap,n)}return null};lr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:tt}:{};lr.filterProps=["columnGap"];const cr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=cn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:un(t,r)});return Be(e,e.rowGap,n)}return null};cr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:tt}:{};cr.filterProps=["rowGap"];const z1=Q({prop:"gridColumn"}),F1=Q({prop:"gridRow"}),B1=Q({prop:"gridAutoFlow"}),W1=Q({prop:"gridAutoColumns"}),H1=Q({prop:"gridAutoRows"}),U1=Q({prop:"gridTemplateColumns"}),Y1=Q({prop:"gridTemplateRows"}),G1=Q({prop:"gridTemplateAreas"}),q1=Q({prop:"gridArea"});sr(ar,lr,cr,z1,F1,B1,W1,H1,U1,Y1,G1,q1);function _t(e,t){return t==="grey"?t:e}const K1=Q({prop:"color",themeKey:"palette",transform:_t}),X1=Q({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_t}),Z1=Q({prop:"backgroundColor",themeKey:"palette",transform:_t});sr(K1,X1,Z1);function ge(e){return e<=1&&e!==0?`${e*100}%`:e}const J1=Q({prop:"width",transform:ge}),Pi=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||_i[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ge(n)}};return Be(e,e.maxWidth,t)}return null};Pi.filterProps=["maxWidth"];const Q1=Q({prop:"minWidth",transform:ge}),ep=Q({prop:"height",transform:ge}),tp=Q({prop:"maxHeight",transform:ge}),np=Q({prop:"minHeight",transform:ge});Q({prop:"size",cssProperty:"width",transform:ge});Q({prop:"size",cssProperty:"height",transform:ge});const rp=Q({prop:"boxSizing"});sr(J1,Pi,Q1,ep,tp,np,rp);const ip={border:{themeKey:"borders",transform:Ee},borderTop:{themeKey:"borders",transform:Ee},borderRight:{themeKey:"borders",transform:Ee},borderBottom:{themeKey:"borders",transform:Ee},borderLeft:{themeKey:"borders",transform:Ee},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ee},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:or},color:{themeKey:"palette",transform:_t},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_t},backgroundColor:{themeKey:"palette",transform:_t},p:{style:Z},pt:{style:Z},pr:{style:Z},pb:{style:Z},pl:{style:Z},px:{style:Z},py:{style:Z},padding:{style:Z},paddingTop:{style:Z},paddingRight:{style:Z},paddingBottom:{style:Z},paddingLeft:{style:Z},paddingX:{style:Z},paddingY:{style:Z},paddingInline:{style:Z},paddingInlineStart:{style:Z},paddingInlineEnd:{style:Z},paddingBlock:{style:Z},paddingBlockStart:{style:Z},paddingBlockEnd:{style:Z},m:{style:X},mt:{style:X},mr:{style:X},mb:{style:X},ml:{style:X},mx:{style:X},my:{style:X},margin:{style:X},marginTop:{style:X},marginRight:{style:X},marginBottom:{style:X},marginLeft:{style:X},marginX:{style:X},marginY:{style:X},marginInline:{style:X},marginInlineStart:{style:X},marginInlineEnd:{style:X},marginBlock:{style:X},marginBlockStart:{style:X},marginBlockEnd:{style:X},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ar},rowGap:{style:cr},columnGap:{style:lr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ge},maxWidth:{style:Pi},minWidth:{transform:ge},height:{transform:ge},maxHeight:{transform:ge},minHeight:{transform:ge},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},dn=ip;function sp(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function op(e,t){return typeof e=="function"?e(t):e}function Ll(){function e(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:d,style:u}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=nr(i,c)||{};return u?u(s):Be(s,r,y=>{let f=Hn(h,d,y);return y===f&&typeof y=="string"&&(f=Hn(h,d,`${n}${y==="default"?"":at(y)}`,y)),l===!1?f:{[l]:f}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:dn;function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const d=v1(o.breakpoints),u=Object.keys(d);let h=d;return Object.keys(c).forEach(m=>{const y=op(c[m],o);if(y!=null)if(typeof y=="object")if(s[m])h=Gt(h,e(m,y,o,s));else{const f=Be({theme:o},y,g=>({[m]:g}));sp(f,y)?h[m]=t({sx:y,theme:o}):h=Gt(h,f)}else h=Gt(h,e(m,y,o,s))}),b1(u,h)}return Array.isArray(i)?i.map(a):a(i)}return t}const Il=Ll();Il.filterProps=["sx"];const Ai=Il;function $l(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const ap=["breakpoints","palette","spacing","shape"];function ki(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=S._objectWithoutPropertiesLoose(e,ap),a=Dl(n),l=P1(i);let c=Ne({breakpoints:a,direction:"ltr",components:{},palette:S._extends({mode:"light"},r),spacing:l,shape:S._extends({},g1,o)},s);return c.applyStyles=$l,c=t.reduce((d,u)=>Ne(d,u),c),c.unstable_sxConfig=S._extends({},dn,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(u){return Ai({sx:u,theme:this})},c}const lp=Object.freeze(Object.defineProperty({__proto__:null,default:ki,private_createBreakpoints:Dl,unstable_applyStyles:$l},Symbol.toStringTag,{value:"Module"}));function zl(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var cp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,up=zl(function(e){return cp.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function dp(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function fp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var hp=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(fp(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
28
- `+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var s=dp(i);try{s.insertRule(r,s.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',a)}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),ie="-ms-",Un="-moz-",V="-webkit-",Oi="comm",ji="rule",Mi="decl",pp="@import",Fl="@keyframes",mp="@layer",gp=Math.abs,ur=String.fromCharCode,yp=Object.assign;function vp(e,t){return re(e,0)^45?(((t<<2^re(e,0))<<2^re(e,1))<<2^re(e,2))<<2^re(e,3):0}function Bl(e){return e.trim()}function bp(e,t){return(e=t.exec(e))?e[0]:e}function L(e,t,n){return e.replace(t,n)}function qr(e,t){return e.indexOf(t)}function re(e,t){return e.charCodeAt(t)|0}function Qt(e,t,n){return e.slice(t,n)}function je(e){return e.length}function Ni(e){return e.length}function wn(e,t){return t.push(e),e}function xp(e,t){return e.map(t).join("")}var dr=1,Ot=1,Wl=0,he=0,ne=0,Mt="";function fr(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:dr,column:Ot,length:s,return:""}}function zt(e,t){return yp(fr("",null,null,"",null,null,0),e,{length:-e.length},t)}function wp(){return ne}function Sp(){return ne=he>0?re(Mt,--he):0,Ot--,ne===10&&(Ot=1,dr--),ne}function ye(){return ne=he<Wl?re(Mt,he++):0,Ot++,ne===10&&(Ot=1,dr++),ne}function De(){return re(Mt,he)}function _n(){return he}function fn(e,t){return Qt(Mt,e,t)}function en(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Hl(e){return dr=Ot=1,Wl=je(Mt=e),he=0,[]}function Ul(e){return Mt="",e}function Pn(e){return Bl(fn(he-1,Kr(e===91?e+2:e===40?e+1:e)))}function Ep(e){for(;(ne=De())&&ne<33;)ye();return en(e)>2||en(ne)>3?"":" "}function Cp(e,t){for(;--t&&ye()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return fn(e,_n()+(t<6&&De()==32&&ye()==32))}function Kr(e){for(;ye();)switch(ne){case e:return he;case 34:case 39:e!==34&&e!==39&&Kr(ne);break;case 40:e===41&&Kr(e);break;case 92:ye();break}return he}function Tp(e,t){for(;ye()&&e+ne!==47+10;)if(e+ne===42+42&&De()===47)break;return"/*"+fn(t,he-1)+"*"+ur(e===47?e:ye())}function _p(e){for(;!en(De());)ye();return fn(e,he)}function Pp(e){return Ul(An("",null,null,null,[""],e=Hl(e),0,[0],e))}function An(e,t,n,r,i,o,s,a,l){for(var c=0,d=0,u=s,h=0,m=0,y=0,f=1,g=1,b=1,w=0,x="",E=i,v=o,C=r,T=x;g;)switch(y=w,w=ye()){case 40:if(y!=108&&re(T,u-1)==58){qr(T+=L(Pn(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:T+=Pn(w);break;case 9:case 10:case 13:case 32:T+=Ep(y);break;case 92:T+=Cp(_n()-1,7);continue;case 47:switch(De()){case 42:case 47:wn(Ap(Tp(ye(),_n()),t,n),l);break;default:T+="/"}break;case 123*f:a[c++]=je(T)*b;case 125*f:case 59:case 0:switch(w){case 0:case 125:g=0;case 59+d:b==-1&&(T=L(T,/\f/g,"")),m>0&&je(T)-u&&wn(m>32?lo(T+";",r,n,u-1):lo(L(T," ","")+";",r,n,u-2),l);break;case 59:T+=";";default:if(wn(C=ao(T,t,n,c,d,i,a,x,E=[],v=[],u),o),w===123)if(d===0)An(T,t,C,C,E,o,u,a,v);else switch(h===99&&re(T,3)===110?100:h){case 100:case 108:case 109:case 115:An(e,C,C,r&&wn(ao(e,C,C,0,0,i,a,x,i,E=[],u),v),i,v,u,a,r?E:v);break;default:An(T,C,C,C,[""],v,0,a,v)}}c=d=m=0,f=b=1,x=T="",u=s;break;case 58:u=1+je(T),m=y;default:if(f<1){if(w==123)--f;else if(w==125&&f++==0&&Sp()==125)continue}switch(T+=ur(w),w*f){case 38:b=d>0?1:(T+="\f",-1);break;case 44:a[c++]=(je(T)-1)*b,b=1;break;case 64:De()===45&&(T+=Pn(ye())),h=De(),d=u=je(x=T+=_p(_n())),w++;break;case 45:y===45&&je(T)==2&&(f=0)}}return o}function ao(e,t,n,r,i,o,s,a,l,c,d){for(var u=i-1,h=i===0?o:[""],m=Ni(h),y=0,f=0,g=0;y<r;++y)for(var b=0,w=Qt(e,u+1,u=gp(f=s[y])),x=e;b<m;++b)(x=Bl(f>0?h[b]+" "+w:L(w,/&\f/g,h[b])))&&(l[g++]=x);return fr(e,t,n,i===0?ji:a,l,c,d)}function Ap(e,t,n){return fr(e,t,n,Oi,ur(wp()),Qt(e,2,-2),0)}function lo(e,t,n,r){return fr(e,t,n,Mi,Qt(e,0,r),Qt(e,r+1,-1),r)}function Pt(e,t){for(var n="",r=Ni(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function kp(e,t,n,r){switch(e.type){case mp:if(e.children.length)break;case pp:case Mi:return e.return=e.return||e.value;case Oi:return"";case Fl:return e.return=e.value+"{"+Pt(e.children,r)+"}";case ji:e.value=e.props.join(",")}return je(n=Pt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Op(e){var t=Ni(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}function jp(e){return function(t){t.root||(t=t.return)&&e(t)}}var Mp=function(t,n,r){for(var i=0,o=0;i=o,o=De(),i===38&&o===12&&(n[r]=1),!en(o);)ye();return fn(t,he)},Np=function(t,n){var r=-1,i=44;do switch(en(i)){case 0:i===38&&De()===12&&(n[r]=1),t[r]+=Mp(he-1,n,r);break;case 2:t[r]+=Pn(i);break;case 4:if(i===44){t[++r]=De()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ur(i)}while(i=ye());return t},Dp=function(t,n){return Ul(Np(Hl(t),n))},co=new WeakMap,Rp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!co.get(r))&&!i){co.set(t,!0);for(var o=[],s=Dp(n,o),a=r.props,l=0,c=0;l<s.length;l++)for(var d=0;d<a.length;d++,c++)t.props[c]=o[l]?s[l].replace(/&\f/g,a[d]):a[d]+" "+s[l]}}},Vp=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},Lp="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Ip=function(t){return t.type==="comm"&&t.children.indexOf(Lp)>-1},$p=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var o=n.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var s=!!n.parent,a=s?n.parent.children:i,l=a.length-1;l>=0;l--){var c=a[l];if(c.line<n.line)break;if(c.column<n.column){if(Ip(c))return;break}}o.forEach(function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},Yl=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},zp=function(t,n){for(var r=t-1;r>=0;r--)if(!Yl(n[r]))return!0;return!1},uo=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Fp=function(t,n,r){Yl(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),uo(t)):zp(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),uo(t)))};function Gl(e,t){switch(vp(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+Un+e+ie+e+e;case 6828:case 4268:return V+e+ie+e+e;case 6165:return V+e+ie+"flex-"+e+e;case 5187:return V+e+L(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+ie+"flex-$1$2")+e;case 5443:return V+e+ie+"flex-item-"+L(e,/flex-|-self/,"")+e;case 4675:return V+e+ie+"flex-line-pack"+L(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+ie+L(e,"shrink","negative")+e;case 5292:return V+e+ie+L(e,"basis","preferred-size")+e;case 6060:return V+"box-"+L(e,"-grow","")+V+e+ie+L(e,"grow","positive")+e;case 4554:return V+L(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return L(L(L(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return L(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return L(L(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+ie+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return L(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(je(e)-1-t>6)switch(re(e,t+1)){case 109:if(re(e,t+4)!==45)break;case 102:return L(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+Un+(re(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qr(e,"stretch")?Gl(L(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(re(e,t+1)!==115)break;case 6444:switch(re(e,je(e)-3-(~qr(e,"!important")&&10))){case 107:return L(e,":",":"+V)+e;case 101:return L(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(re(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+ie+"$2box$3")+e}break;case 5936:switch(re(e,t+11)){case 114:return V+e+ie+L(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+ie+L(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+ie+L(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+ie+e+e}return e}var Bp=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Mi:t.return=Gl(t.value,t.length);break;case Fl:return Pt([zt(t,{value:L(t.value,"@","@"+V)})],i);case ji:if(t.length)return xp(t.props,function(o){switch(bp(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pt([zt(t,{props:[L(o,/:(read-\w+)/,":"+Un+"$1")]})],i);case"::placeholder":return Pt([zt(t,{props:[L(o,/:(plac\w+)/,":"+V+"input-$1")]}),zt(t,{props:[L(o,/:(plac\w+)/,":"+Un+"$1")]}),zt(t,{props:[L(o,/:(plac\w+)/,ie+"input-$1")]})],i)}return""})}},Wp=[Bp],ql=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
29
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var g=f.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var i=t.stylisPlugins||Wp;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var g=f.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)o[g[b]]=!0;a.push(f)});var l,c=[Rp,Vp];process.env.NODE_ENV!=="production"&&c.push($p({get compat(){return y.compat}}),Fp);{var d,u=[kp,process.env.NODE_ENV!=="production"?function(f){f.root||(f.return?d.insert(f.return):f.value&&f.type!==Oi&&d.insert(f.value+"{}"))}:jp(function(f){d.insert(f)})],h=Op(c.concat(i,u)),m=function(g){return Pt(Pp(g),h)};l=function(g,b,w,x){d=w,process.env.NODE_ENV!=="production"&&b.map!==void 0&&(d={insert:function(v){w.insert(v+b.map)}}),m(g?g+"{"+b.styles+"}":b.styles),x&&(y.inserted[b.name]=!0)}}var y={key:n,sheet:new hp({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return y.sheet.hydrate(a),y},Xr={exports:{}},F={};/** @license React v16.13.1
29
+ `)),()=>{})}function Rl(e){return cn(e,"spacing",8,"spacing")}function un(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function k1(e,t){return n=>e.reduce((r,i)=>(r[i]=un(t,n),r),{})}function O1(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=P1(n),o=k1(i,r),s=e[n];return Be(e,s,o)}function Vl(e,t){const n=Rl(e.theme);return Object.keys(e).map(r=>O1(e,t,r,n)).reduce(Gt,{})}function X(e){return Vl(e,rr)}X.propTypes=process.env.NODE_ENV!=="production"?rr.reduce((e,t)=>(e[t]=tt,e),{}):{};X.filterProps=rr;function Z(e){return Vl(e,ir)}Z.propTypes=process.env.NODE_ENV!=="production"?ir.reduce((e,t)=>(e[t]=tt,e),{}):{};Z.filterProps=ir;process.env.NODE_ENV!=="production"&&A1.reduce((e,t)=>(e[t]=tt,e),{});function j1(e=8){if(e.mui)return e;const t=Rl({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function sr(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Gt(i,t[o](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ee(e){return typeof e!="number"?e:`${e}px solid`}function Ce(e,t){return Q({prop:e,themeKey:"borders",transform:t})}const M1=Ce("border",Ee),N1=Ce("borderTop",Ee),D1=Ce("borderRight",Ee),R1=Ce("borderBottom",Ee),V1=Ce("borderLeft",Ee),I1=Ce("borderColor"),L1=Ce("borderTopColor"),$1=Ce("borderRightColor"),z1=Ce("borderBottomColor"),F1=Ce("borderLeftColor"),B1=Ce("outline",Ee),W1=Ce("outlineColor"),or=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=cn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:un(t,r)});return Be(e,e.borderRadius,n)}return null};or.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:tt}:{};or.filterProps=["borderRadius"];sr(M1,N1,D1,R1,V1,I1,L1,$1,z1,F1,or,B1,W1);const ar=e=>{if(e.gap!==void 0&&e.gap!==null){const t=cn(e.theme,"spacing",8,"gap"),n=r=>({gap:un(t,r)});return Be(e,e.gap,n)}return null};ar.propTypes=process.env.NODE_ENV!=="production"?{gap:tt}:{};ar.filterProps=["gap"];const lr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=cn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:un(t,r)});return Be(e,e.columnGap,n)}return null};lr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:tt}:{};lr.filterProps=["columnGap"];const cr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=cn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:un(t,r)});return Be(e,e.rowGap,n)}return null};cr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:tt}:{};cr.filterProps=["rowGap"];const H1=Q({prop:"gridColumn"}),U1=Q({prop:"gridRow"}),Y1=Q({prop:"gridAutoFlow"}),G1=Q({prop:"gridAutoColumns"}),q1=Q({prop:"gridAutoRows"}),K1=Q({prop:"gridTemplateColumns"}),X1=Q({prop:"gridTemplateRows"}),Z1=Q({prop:"gridTemplateAreas"}),J1=Q({prop:"gridArea"});sr(ar,lr,cr,H1,U1,Y1,G1,q1,K1,X1,Z1,J1);function _t(e,t){return t==="grey"?t:e}const Q1=Q({prop:"color",themeKey:"palette",transform:_t}),ep=Q({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_t}),tp=Q({prop:"backgroundColor",themeKey:"palette",transform:_t});sr(Q1,ep,tp);function ge(e){return e<=1&&e!==0?`${e*100}%`:e}const np=Q({prop:"width",transform:ge}),_i=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Ci[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ge(n)}};return Be(e,e.maxWidth,t)}return null};_i.filterProps=["maxWidth"];const rp=Q({prop:"minWidth",transform:ge}),ip=Q({prop:"height",transform:ge}),sp=Q({prop:"maxHeight",transform:ge}),op=Q({prop:"minHeight",transform:ge});Q({prop:"size",cssProperty:"width",transform:ge});Q({prop:"size",cssProperty:"height",transform:ge});const ap=Q({prop:"boxSizing"});sr(np,_i,rp,ip,sp,op,ap);const lp={border:{themeKey:"borders",transform:Ee},borderTop:{themeKey:"borders",transform:Ee},borderRight:{themeKey:"borders",transform:Ee},borderBottom:{themeKey:"borders",transform:Ee},borderLeft:{themeKey:"borders",transform:Ee},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ee},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:or},color:{themeKey:"palette",transform:_t},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_t},backgroundColor:{themeKey:"palette",transform:_t},p:{style:Z},pt:{style:Z},pr:{style:Z},pb:{style:Z},pl:{style:Z},px:{style:Z},py:{style:Z},padding:{style:Z},paddingTop:{style:Z},paddingRight:{style:Z},paddingBottom:{style:Z},paddingLeft:{style:Z},paddingX:{style:Z},paddingY:{style:Z},paddingInline:{style:Z},paddingInlineStart:{style:Z},paddingInlineEnd:{style:Z},paddingBlock:{style:Z},paddingBlockStart:{style:Z},paddingBlockEnd:{style:Z},m:{style:X},mt:{style:X},mr:{style:X},mb:{style:X},ml:{style:X},mx:{style:X},my:{style:X},margin:{style:X},marginTop:{style:X},marginRight:{style:X},marginBottom:{style:X},marginLeft:{style:X},marginX:{style:X},marginY:{style:X},marginInline:{style:X},marginInlineStart:{style:X},marginInlineEnd:{style:X},marginBlock:{style:X},marginBlockStart:{style:X},marginBlockEnd:{style:X},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ar},rowGap:{style:cr},columnGap:{style:lr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ge},maxWidth:{style:_i},minWidth:{transform:ge},height:{transform:ge},maxHeight:{transform:ge},minHeight:{transform:ge},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},dn=lp;function cp(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function up(e,t){return typeof e=="function"?e(t):e}function Il(){function e(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:d,style:u}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=nr(i,c)||{};return u?u(s):Be(s,r,y=>{let f=Hn(h,d,y);return y===f&&typeof y=="string"&&(f=Hn(h,d,`${n}${y==="default"?"":at(y)}`,y)),l===!1?f:{[l]:f}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:dn;function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const d=S1(o.breakpoints),u=Object.keys(d);let h=d;return Object.keys(c).forEach(m=>{const y=up(c[m],o);if(y!=null)if(typeof y=="object")if(s[m])h=Gt(h,e(m,y,o,s));else{const f=Be({theme:o},y,g=>({[m]:g}));cp(f,y)?h[m]=t({sx:y,theme:o}):h=Gt(h,f)}else h=Gt(h,e(m,y,o,s))}),E1(u,h)}return Array.isArray(i)?i.map(a):a(i)}return t}const Ll=Il();Ll.filterProps=["sx"];const Pi=Ll;function $l(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const dp=["breakpoints","palette","spacing","shape"];function Ai(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=S._objectWithoutPropertiesLoose(e,dp),a=Dl(n),l=j1(i);let c=Ne({breakpoints:a,direction:"ltr",components:{},palette:S._extends({mode:"light"},r),spacing:l,shape:S._extends({},x1,o)},s);return c.applyStyles=$l,c=t.reduce((d,u)=>Ne(d,u),c),c.unstable_sxConfig=S._extends({},dn,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(u){return Pi({sx:u,theme:this})},c}const fp=Object.freeze(Object.defineProperty({__proto__:null,default:Ai,private_createBreakpoints:Dl,unstable_applyStyles:$l},Symbol.toStringTag,{value:"Module"}));function zl(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var hp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,pp=zl(function(e){return hp.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function mp(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function gp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var yp=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(gp(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
30
+ `+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var s=mp(i);try{s.insertRule(r,s.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',a)}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),ie="-ms-",Un="-moz-",V="-webkit-",ki="comm",Oi="rule",ji="decl",vp="@import",Fl="@keyframes",bp="@layer",xp=Math.abs,ur=String.fromCharCode,wp=Object.assign;function Sp(e,t){return re(e,0)^45?(((t<<2^re(e,0))<<2^re(e,1))<<2^re(e,2))<<2^re(e,3):0}function Bl(e){return e.trim()}function Ep(e,t){return(e=t.exec(e))?e[0]:e}function I(e,t,n){return e.replace(t,n)}function qr(e,t){return e.indexOf(t)}function re(e,t){return e.charCodeAt(t)|0}function Qt(e,t,n){return e.slice(t,n)}function je(e){return e.length}function Mi(e){return e.length}function wn(e,t){return t.push(e),e}function Tp(e,t){return e.map(t).join("")}var dr=1,Ot=1,Wl=0,he=0,ne=0,Mt="";function fr(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:dr,column:Ot,length:s,return:""}}function zt(e,t){return wp(fr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Cp(){return ne}function _p(){return ne=he>0?re(Mt,--he):0,Ot--,ne===10&&(Ot=1,dr--),ne}function ye(){return ne=he<Wl?re(Mt,he++):0,Ot++,ne===10&&(Ot=1,dr++),ne}function De(){return re(Mt,he)}function _n(){return he}function fn(e,t){return Qt(Mt,e,t)}function en(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Hl(e){return dr=Ot=1,Wl=je(Mt=e),he=0,[]}function Ul(e){return Mt="",e}function Pn(e){return Bl(fn(he-1,Kr(e===91?e+2:e===40?e+1:e)))}function Pp(e){for(;(ne=De())&&ne<33;)ye();return en(e)>2||en(ne)>3?"":" "}function Ap(e,t){for(;--t&&ye()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return fn(e,_n()+(t<6&&De()==32&&ye()==32))}function Kr(e){for(;ye();)switch(ne){case e:return he;case 34:case 39:e!==34&&e!==39&&Kr(ne);break;case 40:e===41&&Kr(e);break;case 92:ye();break}return he}function kp(e,t){for(;ye()&&e+ne!==47+10;)if(e+ne===42+42&&De()===47)break;return"/*"+fn(t,he-1)+"*"+ur(e===47?e:ye())}function Op(e){for(;!en(De());)ye();return fn(e,he)}function jp(e){return Ul(An("",null,null,null,[""],e=Hl(e),0,[0],e))}function An(e,t,n,r,i,o,s,a,l){for(var c=0,d=0,u=s,h=0,m=0,y=0,f=1,g=1,b=1,w=0,x="",E=i,v=o,T=r,C=x;g;)switch(y=w,w=ye()){case 40:if(y!=108&&re(C,u-1)==58){qr(C+=I(Pn(w),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=Pn(w);break;case 9:case 10:case 13:case 32:C+=Pp(y);break;case 92:C+=Ap(_n()-1,7);continue;case 47:switch(De()){case 42:case 47:wn(Mp(kp(ye(),_n()),t,n),l);break;default:C+="/"}break;case 123*f:a[c++]=je(C)*b;case 125*f:case 59:case 0:switch(w){case 0:case 125:g=0;case 59+d:b==-1&&(C=I(C,/\f/g,"")),m>0&&je(C)-u&&wn(m>32?ao(C+";",r,n,u-1):ao(I(C," ","")+";",r,n,u-2),l);break;case 59:C+=";";default:if(wn(T=oo(C,t,n,c,d,i,a,x,E=[],v=[],u),o),w===123)if(d===0)An(C,t,T,T,E,o,u,a,v);else switch(h===99&&re(C,3)===110?100:h){case 100:case 108:case 109:case 115:An(e,T,T,r&&wn(oo(e,T,T,0,0,i,a,x,i,E=[],u),v),i,v,u,a,r?E:v);break;default:An(C,T,T,T,[""],v,0,a,v)}}c=d=m=0,f=b=1,x=C="",u=s;break;case 58:u=1+je(C),m=y;default:if(f<1){if(w==123)--f;else if(w==125&&f++==0&&_p()==125)continue}switch(C+=ur(w),w*f){case 38:b=d>0?1:(C+="\f",-1);break;case 44:a[c++]=(je(C)-1)*b,b=1;break;case 64:De()===45&&(C+=Pn(ye())),h=De(),d=u=je(x=C+=Op(_n())),w++;break;case 45:y===45&&je(C)==2&&(f=0)}}return o}function oo(e,t,n,r,i,o,s,a,l,c,d){for(var u=i-1,h=i===0?o:[""],m=Mi(h),y=0,f=0,g=0;y<r;++y)for(var b=0,w=Qt(e,u+1,u=xp(f=s[y])),x=e;b<m;++b)(x=Bl(f>0?h[b]+" "+w:I(w,/&\f/g,h[b])))&&(l[g++]=x);return fr(e,t,n,i===0?Oi:a,l,c,d)}function Mp(e,t,n){return fr(e,t,n,ki,ur(Cp()),Qt(e,2,-2),0)}function ao(e,t,n,r){return fr(e,t,n,ji,Qt(e,0,r),Qt(e,r+1,-1),r)}function Pt(e,t){for(var n="",r=Mi(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Np(e,t,n,r){switch(e.type){case bp:if(e.children.length)break;case vp:case ji:return e.return=e.return||e.value;case ki:return"";case Fl:return e.return=e.value+"{"+Pt(e.children,r)+"}";case Oi:e.value=e.props.join(",")}return je(n=Pt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Dp(e){var t=Mi(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}function Rp(e){return function(t){t.root||(t=t.return)&&e(t)}}var Vp=function(t,n,r){for(var i=0,o=0;i=o,o=De(),i===38&&o===12&&(n[r]=1),!en(o);)ye();return fn(t,he)},Ip=function(t,n){var r=-1,i=44;do switch(en(i)){case 0:i===38&&De()===12&&(n[r]=1),t[r]+=Vp(he-1,n,r);break;case 2:t[r]+=Pn(i);break;case 4:if(i===44){t[++r]=De()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ur(i)}while(i=ye());return t},Lp=function(t,n){return Ul(Ip(Hl(t),n))},lo=new WeakMap,$p=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!lo.get(r))&&!i){lo.set(t,!0);for(var o=[],s=Lp(n,o),a=r.props,l=0,c=0;l<s.length;l++)for(var d=0;d<a.length;d++,c++)t.props[c]=o[l]?s[l].replace(/&\f/g,a[d]):a[d]+" "+s[l]}}},zp=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},Fp="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Bp=function(t){return t.type==="comm"&&t.children.indexOf(Fp)>-1},Wp=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var o=n.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var s=!!n.parent,a=s?n.parent.children:i,l=a.length-1;l>=0;l--){var c=a[l];if(c.line<n.line)break;if(c.column<n.column){if(Bp(c))return;break}}o.forEach(function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},Yl=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Hp=function(t,n){for(var r=t-1;r>=0;r--)if(!Yl(n[r]))return!0;return!1},co=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Up=function(t,n,r){Yl(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),co(t)):Hp(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),co(t)))};function Gl(e,t){switch(Sp(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+Un+e+ie+e+e;case 6828:case 4268:return V+e+ie+e+e;case 6165:return V+e+ie+"flex-"+e+e;case 5187:return V+e+I(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+ie+"flex-$1$2")+e;case 5443:return V+e+ie+"flex-item-"+I(e,/flex-|-self/,"")+e;case 4675:return V+e+ie+"flex-line-pack"+I(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+ie+I(e,"shrink","negative")+e;case 5292:return V+e+ie+I(e,"basis","preferred-size")+e;case 6060:return V+"box-"+I(e,"-grow","")+V+e+ie+I(e,"grow","positive")+e;case 4554:return V+I(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return I(I(I(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return I(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+ie+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(je(e)-1-t>6)switch(re(e,t+1)){case 109:if(re(e,t+4)!==45)break;case 102:return I(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+Un+(re(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qr(e,"stretch")?Gl(I(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(re(e,t+1)!==115)break;case 6444:switch(re(e,je(e)-3-(~qr(e,"!important")&&10))){case 107:return I(e,":",":"+V)+e;case 101:return I(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(re(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+ie+"$2box$3")+e}break;case 5936:switch(re(e,t+11)){case 114:return V+e+ie+I(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+ie+I(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+ie+I(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+ie+e+e}return e}var Yp=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case ji:t.return=Gl(t.value,t.length);break;case Fl:return Pt([zt(t,{value:I(t.value,"@","@"+V)})],i);case Oi:if(t.length)return Tp(t.props,function(o){switch(Ep(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pt([zt(t,{props:[I(o,/:(read-\w+)/,":"+Un+"$1")]})],i);case"::placeholder":return Pt([zt(t,{props:[I(o,/:(plac\w+)/,":"+V+"input-$1")]}),zt(t,{props:[I(o,/:(plac\w+)/,":"+Un+"$1")]}),zt(t,{props:[I(o,/:(plac\w+)/,ie+"input-$1")]})],i)}return""})}},Gp=[Yp],ql=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
31
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var g=f.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var i=t.stylisPlugins||Gp;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var g=f.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)o[g[b]]=!0;a.push(f)});var l,c=[$p,zp];process.env.NODE_ENV!=="production"&&c.push(Wp({get compat(){return y.compat}}),Up);{var d,u=[Np,process.env.NODE_ENV!=="production"?function(f){f.root||(f.return?d.insert(f.return):f.value&&f.type!==ki&&d.insert(f.value+"{}"))}:Rp(function(f){d.insert(f)})],h=Dp(c.concat(i,u)),m=function(g){return Pt(jp(g),h)};l=function(g,b,w,x){d=w,process.env.NODE_ENV!=="production"&&b.map!==void 0&&(d={insert:function(v){w.insert(v+b.map)}}),m(g?g+"{"+b.styles+"}":b.styles),x&&(y.inserted[b.name]=!0)}}var y={key:n,sheet:new yp({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return y.sheet.hydrate(a),y},Xr={exports:{}},F={};/** @license React v16.13.1
30
32
  * react-is.production.min.js
31
33
  *
32
34
  * Copyright (c) Facebook, Inc. and its affiliates.
33
35
  *
34
36
  * This source code is licensed under the MIT license found in the
35
37
  * LICENSE file in the root directory of this source tree.
36
- */var fo;function Hp(){if(fo)return F;fo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(v){if(typeof v=="object"&&v!==null){var C=v.$$typeof;switch(C){case t:switch(v=v.type,v){case l:case c:case r:case o:case i:case u:return v;default:switch(v=v&&v.$$typeof,v){case a:case d:case y:case m:case s:return v;default:return C}}case n:return C}}}function E(v){return x(v)===c}return F.AsyncMode=l,F.ConcurrentMode=c,F.ContextConsumer=a,F.ContextProvider=s,F.Element=t,F.ForwardRef=d,F.Fragment=r,F.Lazy=y,F.Memo=m,F.Portal=n,F.Profiler=o,F.StrictMode=i,F.Suspense=u,F.isAsyncMode=function(v){return E(v)||x(v)===l},F.isConcurrentMode=E,F.isContextConsumer=function(v){return x(v)===a},F.isContextProvider=function(v){return x(v)===s},F.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},F.isForwardRef=function(v){return x(v)===d},F.isFragment=function(v){return x(v)===r},F.isLazy=function(v){return x(v)===y},F.isMemo=function(v){return x(v)===m},F.isPortal=function(v){return x(v)===n},F.isProfiler=function(v){return x(v)===o},F.isStrictMode=function(v){return x(v)===i},F.isSuspense=function(v){return x(v)===u},F.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===c||v===o||v===i||v===u||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===m||v.$$typeof===s||v.$$typeof===a||v.$$typeof===d||v.$$typeof===g||v.$$typeof===b||v.$$typeof===w||v.$$typeof===f)},F.typeOf=x,F}var B={};/** @license React v16.13.1
38
+ */var uo;function qp(){if(uo)return F;uo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(v){if(typeof v=="object"&&v!==null){var T=v.$$typeof;switch(T){case t:switch(v=v.type,v){case l:case c:case r:case o:case i:case u:return v;default:switch(v=v&&v.$$typeof,v){case a:case d:case y:case m:case s:return v;default:return T}}case n:return T}}}function E(v){return x(v)===c}return F.AsyncMode=l,F.ConcurrentMode=c,F.ContextConsumer=a,F.ContextProvider=s,F.Element=t,F.ForwardRef=d,F.Fragment=r,F.Lazy=y,F.Memo=m,F.Portal=n,F.Profiler=o,F.StrictMode=i,F.Suspense=u,F.isAsyncMode=function(v){return E(v)||x(v)===l},F.isConcurrentMode=E,F.isContextConsumer=function(v){return x(v)===a},F.isContextProvider=function(v){return x(v)===s},F.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},F.isForwardRef=function(v){return x(v)===d},F.isFragment=function(v){return x(v)===r},F.isLazy=function(v){return x(v)===y},F.isMemo=function(v){return x(v)===m},F.isPortal=function(v){return x(v)===n},F.isProfiler=function(v){return x(v)===o},F.isStrictMode=function(v){return x(v)===i},F.isSuspense=function(v){return x(v)===u},F.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===c||v===o||v===i||v===u||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===m||v.$$typeof===s||v.$$typeof===a||v.$$typeof===d||v.$$typeof===g||v.$$typeof===b||v.$$typeof===w||v.$$typeof===f)},F.typeOf=x,F}var B={};/** @license React v16.13.1
37
39
  * react-is.development.js
38
40
  *
39
41
  * Copyright (c) Facebook, Inc. and its affiliates.
40
42
  *
41
43
  * This source code is licensed under the MIT license found in the
42
44
  * LICENSE file in the root directory of this source tree.
43
- */var ho;function Up(){return ho||(ho=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(A){return typeof A=="string"||typeof A=="function"||A===r||A===c||A===o||A===i||A===u||A===h||typeof A=="object"&&A!==null&&(A.$$typeof===y||A.$$typeof===m||A.$$typeof===s||A.$$typeof===a||A.$$typeof===d||A.$$typeof===g||A.$$typeof===b||A.$$typeof===w||A.$$typeof===f)}function E(A){if(typeof A=="object"&&A!==null){var Vt=A.$$typeof;switch(Vt){case t:var O=A.type;switch(O){case l:case c:case r:case o:case i:case u:return O;default:var ft=O&&O.$$typeof;switch(ft){case a:case d:case y:case m:case s:return ft;default:return Vt}}case n:return Vt}}}var v=l,C=c,T=a,P=s,k=t,D=d,j=r,R=y,q=m,H=n,ue=o,U=i,ae=u,le=!1;function pe(A){return le||(le=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Oe(A)||E(A)===l}function Oe(A){return E(A)===c}function W(A){return E(A)===a}function _e(A){return E(A)===s}function Re(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function be(A){return E(A)===d}function Ve(A){return E(A)===r}function Le(A){return E(A)===y}function dt(A){return E(A)===m}function Rt(A){return E(A)===n}function nt(A){return E(A)===o}function We(A){return E(A)===i}function Pe(A){return E(A)===u}B.AsyncMode=v,B.ConcurrentMode=C,B.ContextConsumer=T,B.ContextProvider=P,B.Element=k,B.ForwardRef=D,B.Fragment=j,B.Lazy=R,B.Memo=q,B.Portal=H,B.Profiler=ue,B.StrictMode=U,B.Suspense=ae,B.isAsyncMode=pe,B.isConcurrentMode=Oe,B.isContextConsumer=W,B.isContextProvider=_e,B.isElement=Re,B.isForwardRef=be,B.isFragment=Ve,B.isLazy=Le,B.isMemo=dt,B.isPortal=Rt,B.isProfiler=nt,B.isStrictMode=We,B.isSuspense=Pe,B.isValidElementType=x,B.typeOf=E}()),B}process.env.NODE_ENV==="production"?Xr.exports=Hp():Xr.exports=Up();var Yp=Xr.exports,Kl=Yp,Gp={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qp={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xl={};Xl[Kl.ForwardRef]=Gp;Xl[Kl.Memo]=qp;var Kp=!0;function Di(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var hr=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Kp===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},pr=function(t,n,r){hr(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Xp(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Zp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},po=`You have illegal escape sequence in your template literal, most likely inside content's property value.
45
+ */var fo;function Kp(){return fo||(fo=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(A){return typeof A=="string"||typeof A=="function"||A===r||A===c||A===o||A===i||A===u||A===h||typeof A=="object"&&A!==null&&(A.$$typeof===y||A.$$typeof===m||A.$$typeof===s||A.$$typeof===a||A.$$typeof===d||A.$$typeof===g||A.$$typeof===b||A.$$typeof===w||A.$$typeof===f)}function E(A){if(typeof A=="object"&&A!==null){var Vt=A.$$typeof;switch(Vt){case t:var O=A.type;switch(O){case l:case c:case r:case o:case i:case u:return O;default:var ft=O&&O.$$typeof;switch(ft){case a:case d:case y:case m:case s:return ft;default:return Vt}}case n:return Vt}}}var v=l,T=c,C=a,P=s,k=t,D=d,j=r,R=y,q=m,H=n,ue=o,U=i,ae=u,le=!1;function pe(A){return le||(le=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Oe(A)||E(A)===l}function Oe(A){return E(A)===c}function W(A){return E(A)===a}function _e(A){return E(A)===s}function Re(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function be(A){return E(A)===d}function Ve(A){return E(A)===r}function Ie(A){return E(A)===y}function dt(A){return E(A)===m}function Rt(A){return E(A)===n}function nt(A){return E(A)===o}function We(A){return E(A)===i}function Pe(A){return E(A)===u}B.AsyncMode=v,B.ConcurrentMode=T,B.ContextConsumer=C,B.ContextProvider=P,B.Element=k,B.ForwardRef=D,B.Fragment=j,B.Lazy=R,B.Memo=q,B.Portal=H,B.Profiler=ue,B.StrictMode=U,B.Suspense=ae,B.isAsyncMode=pe,B.isConcurrentMode=Oe,B.isContextConsumer=W,B.isContextProvider=_e,B.isElement=Re,B.isForwardRef=be,B.isFragment=Ve,B.isLazy=Ie,B.isMemo=dt,B.isPortal=Rt,B.isProfiler=nt,B.isStrictMode=We,B.isSuspense=Pe,B.isValidElementType=x,B.typeOf=E}()),B}process.env.NODE_ENV==="production"?Xr.exports=qp():Xr.exports=Kp();var Xp=Xr.exports,Kl=Xp,Zp={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Jp={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xl={};Xl[Kl.ForwardRef]=Zp;Xl[Kl.Memo]=Jp;var Qp=!0;function Ni(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var hr=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Qp===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},pr=function(t,n,r){hr(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function em(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var tm={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ho=`You have illegal escape sequence in your template literal, most likely inside content's property value.
44
46
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
45
47
  You can read more about this here:
46
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Jp="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Qp=/[A-Z]|^ms/g,Zl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ri=function(t){return t.charCodeAt(1)===45},mo=function(t){return t!=null&&typeof t!="boolean"},Or=zl(function(e){return Ri(e)?e:e.replace(Qp,"-$&").toLowerCase()}),Yn=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Zl,function(r,i,o){return Ae={name:i,styles:o,next:Ae},i})}return Zp[t]!==1&&!Ri(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var em=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,tm=["normal","none","initial","inherit","unset"],nm=Yn,rm=/^-ms-/,im=/-(.)/g,go={};Yn=function(t,n){if(t==="content"&&(typeof n!="string"||tm.indexOf(n)===-1&&!em.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=nm(t,n);return r!==""&&!Ri(t)&&t.indexOf("-")!==-1&&go[t]===void 0&&(go[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(rm,"ms-").replace(im,function(i,o){return o.toUpperCase()})+"?")),r}}var Jl="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function tn(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Jl);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ae={name:n.name,styles:n.styles,next:Ae},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ae={name:r.name,styles:r.styles,next:Ae},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return sm(e,t,n)}case"function":{if(e!==void 0){var o=Ae,s=n(e);return Ae=o,tn(e,t,s)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var a=[],l=n.replace(Zl,function(d,u,h){var m="animation"+a.length;return a.push("const "+m+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+m+"}"});a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+l+"`"]).join(`
48
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,nm="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",rm=/[A-Z]|^ms/g,Zl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Di=function(t){return t.charCodeAt(1)===45},po=function(t){return t!=null&&typeof t!="boolean"},Or=zl(function(e){return Di(e)?e:e.replace(rm,"-$&").toLowerCase()}),Yn=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Zl,function(r,i,o){return Ae={name:i,styles:o,next:Ae},i})}return tm[t]!==1&&!Di(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var im=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,sm=["normal","none","initial","inherit","unset"],om=Yn,am=/^-ms-/,lm=/-(.)/g,mo={};Yn=function(t,n){if(t==="content"&&(typeof n!="string"||sm.indexOf(n)===-1&&!im.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=om(t,n);return r!==""&&!Di(t)&&t.indexOf("-")!==-1&&mo[t]===void 0&&(mo[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(am,"ms-").replace(lm,function(i,o){return o.toUpperCase()})+"?")),r}}var Jl="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function tn(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Jl);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ae={name:n.name,styles:n.styles,next:Ae},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ae={name:r.name,styles:r.styles,next:Ae},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return cm(e,t,n)}case"function":{if(e!==void 0){var o=Ae,s=n(e);return Ae=o,tn(e,t,s)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var a=[],l=n.replace(Zl,function(d,u,h){var m="animation"+a.length;return a.push("const "+m+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+m+"}"});a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+l+"`"]).join(`
47
49
  `)+`
48
50
 
49
51
  You should wrap it with \`css\` like this:
50
52
 
51
- `+("css`"+l+"`"))}break}if(t==null)return n;var c=t[n];return c!==void 0?c:n}function sm(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=tn(e,t,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":mo(s)&&(r+=Or(o)+":"+Yn(o,s)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Jl);if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)mo(s[a])&&(r+=Or(o)+":"+Yn(o,s[a])+";");else{var l=tn(e,t,s);switch(o){case"animation":case"animationName":{r+=Or(o)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(Jp),r+=o+"{"+l+"}"}}}}return r}var yo=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ql;process.env.NODE_ENV!=="production"&&(Ql=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Ae,jt=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";Ae=void 0;var s=t[0];s==null||s.raw===void 0?(i=!1,o+=tn(r,n,s)):(process.env.NODE_ENV!=="production"&&s[0]===void 0&&console.error(po),o+=s[0]);for(var a=1;a<t.length;a++)o+=tn(r,n,t[a]),i&&(process.env.NODE_ENV!=="production"&&s[a]===void 0&&console.error(po),o+=s[a]);var l;process.env.NODE_ENV!=="production"&&(o=o.replace(Ql,function(h){return l=h,""})),yo.lastIndex=0;for(var c="",d;(d=yo.exec(o))!==null;)c+="-"+d[1];var u=Xp(o)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:o,map:l,next:Ae,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:Ae}},om=function(t){return t()},ec=N["useInsertionEffect"]?N["useInsertionEffect"]:!1,Vi=ec||om,vo=ec||N.useLayoutEffect,am={}.hasOwnProperty,Li=N.createContext(typeof HTMLElement<"u"?ql({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Li.displayName="EmotionCacheContext");var lm=Li.Provider,mr=function(t){return _.forwardRef(function(n,r){var i=_.useContext(Li);return t(n,i,r)})},ut=N.createContext({});process.env.NODE_ENV!=="production"&&(ut.displayName="EmotionThemeContext");var bo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xo="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",cm=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return hr(n,r,i),Vi(function(){return pr(n,r,i)}),null},um=mr(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[bo],o=[r],s="";typeof e.className=="string"?s=Di(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var a=jt(o,void 0,N.useContext(ut));if(process.env.NODE_ENV!=="production"&&a.name.indexOf("-")===-1){var l=e[xo];l&&(a=jt([a,"label:"+l+";"]))}s+=t.key+"-"+a.name;var c={};for(var d in e)am.call(e,d)&&d!=="css"&&d!==bo&&(process.env.NODE_ENV==="production"||d!==xo)&&(c[d]=e[d]);return c.ref=n,c.className=s,N.createElement(N.Fragment,null,N.createElement(cm,{cache:t,serialized:a,isStringTag:typeof i=="string"}),N.createElement(i,c))});process.env.NODE_ENV!=="production"&&(um.displayName="EmotionCssPropInternal");var dm={name:"@emotion/react",version:"11.11.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},wo=!1,tc=mr(function(e,t){process.env.NODE_ENV!=="production"&&!wo&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),wo=!0);var n=e.styles,r=jt([n],void 0,N.useContext(ut)),i=N.useRef();return vo(function(){var o=t.key+"-global",s=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",o),s.hydrate([l])),i.current=[s,a],function(){s.flush()}},[t]),vo(function(){var o=i.current,s=o[0],a=o[1];if(a){o[1]=!1;return}if(r.next!==void 0&&pr(t,r.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(tc.displayName="EmotionGlobal");function nc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return jt(t)}var fm=function(){var t=nc.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},hm=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=e(o);else{process.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),s="";for(var a in o)o[a]&&a&&(s&&(s+=" "),s+=a)}break}default:s=o}s&&(i&&(i+=" "),i+=s)}}return i};function pm(e,t,n){var r=[],i=Di(e,r,n);return r.length<2?n:i+t(r)}var mm=function(t){var n=t.cache,r=t.serializedArr;return Vi(function(){for(var i=0;i<r.length;i++)pr(n,r[i],!1)}),null},gm=mr(function(e,t){var n=!1,r=[],i=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var c=arguments.length,d=new Array(c),u=0;u<c;u++)d[u]=arguments[u];var h=jt(d,t.registered);return r.push(h),hr(t,h,!1),t.key+"-"+h.name},o=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var c=arguments.length,d=new Array(c),u=0;u<c;u++)d[u]=arguments[u];return pm(t.registered,i,hm(d))},s={css:i,cx:o,theme:N.useContext(ut)},a=e.children(s);return n=!0,N.createElement(N.Fragment,null,N.createElement(mm,{cache:t,serializedArr:r}),a)});process.env.NODE_ENV!=="production"&&(gm.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var So=!0,ym=typeof jest<"u"||typeof vi<"u";if(So&&!ym){var Eo=typeof globalThis<"u"?globalThis:So?window:global,Co="__EMOTION_REACT_"+dm.version.split(".")[0]+"__";Eo[Co]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Eo[Co]=!0}}var vm=up,bm=function(t){return t!=="theme"},To=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?vm:bm},_o=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Po=`You have illegal escape sequence in your template literal, most likely inside content's property value.
53
+ `+("css`"+l+"`"))}break}if(t==null)return n;var c=t[n];return c!==void 0?c:n}function cm(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=tn(e,t,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":po(s)&&(r+=Or(o)+":"+Yn(o,s)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Jl);if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)po(s[a])&&(r+=Or(o)+":"+Yn(o,s[a])+";");else{var l=tn(e,t,s);switch(o){case"animation":case"animationName":{r+=Or(o)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(nm),r+=o+"{"+l+"}"}}}}return r}var go=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ql;process.env.NODE_ENV!=="production"&&(Ql=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Ae,jt=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";Ae=void 0;var s=t[0];s==null||s.raw===void 0?(i=!1,o+=tn(r,n,s)):(process.env.NODE_ENV!=="production"&&s[0]===void 0&&console.error(ho),o+=s[0]);for(var a=1;a<t.length;a++)o+=tn(r,n,t[a]),i&&(process.env.NODE_ENV!=="production"&&s[a]===void 0&&console.error(ho),o+=s[a]);var l;process.env.NODE_ENV!=="production"&&(o=o.replace(Ql,function(h){return l=h,""})),go.lastIndex=0;for(var c="",d;(d=go.exec(o))!==null;)c+="-"+d[1];var u=em(o)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:o,map:l,next:Ae,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:Ae}},um=function(t){return t()},ec=N["useInsertionEffect"]?N["useInsertionEffect"]:!1,Ri=ec||um,yo=ec||N.useLayoutEffect,dm={}.hasOwnProperty,Vi=N.createContext(typeof HTMLElement<"u"?ql({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Vi.displayName="EmotionCacheContext");var fm=Vi.Provider,mr=function(t){return _.forwardRef(function(n,r){var i=_.useContext(Vi);return t(n,i,r)})},ut=N.createContext({});process.env.NODE_ENV!=="production"&&(ut.displayName="EmotionThemeContext");var vo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",bo="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",hm=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return hr(n,r,i),Ri(function(){return pr(n,r,i)}),null},pm=mr(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[vo],o=[r],s="";typeof e.className=="string"?s=Ni(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var a=jt(o,void 0,N.useContext(ut));if(process.env.NODE_ENV!=="production"&&a.name.indexOf("-")===-1){var l=e[bo];l&&(a=jt([a,"label:"+l+";"]))}s+=t.key+"-"+a.name;var c={};for(var d in e)dm.call(e,d)&&d!=="css"&&d!==vo&&(process.env.NODE_ENV==="production"||d!==bo)&&(c[d]=e[d]);return c.ref=n,c.className=s,N.createElement(N.Fragment,null,N.createElement(hm,{cache:t,serialized:a,isStringTag:typeof i=="string"}),N.createElement(i,c))});process.env.NODE_ENV!=="production"&&(pm.displayName="EmotionCssPropInternal");var mm={name:"@emotion/react",version:"11.11.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},xo=!1,tc=mr(function(e,t){process.env.NODE_ENV!=="production"&&!xo&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),xo=!0);var n=e.styles,r=jt([n],void 0,N.useContext(ut)),i=N.useRef();return yo(function(){var o=t.key+"-global",s=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",o),s.hydrate([l])),i.current=[s,a],function(){s.flush()}},[t]),yo(function(){var o=i.current,s=o[0],a=o[1];if(a){o[1]=!1;return}if(r.next!==void 0&&pr(t,r.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(tc.displayName="EmotionGlobal");function nc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return jt(t)}var gm=function(){var t=nc.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},ym=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=e(o);else{process.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),s="";for(var a in o)o[a]&&a&&(s&&(s+=" "),s+=a)}break}default:s=o}s&&(i&&(i+=" "),i+=s)}}return i};function vm(e,t,n){var r=[],i=Ni(e,r,n);return r.length<2?n:i+t(r)}var bm=function(t){var n=t.cache,r=t.serializedArr;return Ri(function(){for(var i=0;i<r.length;i++)pr(n,r[i],!1)}),null},xm=mr(function(e,t){var n=!1,r=[],i=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var c=arguments.length,d=new Array(c),u=0;u<c;u++)d[u]=arguments[u];var h=jt(d,t.registered);return r.push(h),hr(t,h,!1),t.key+"-"+h.name},o=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var c=arguments.length,d=new Array(c),u=0;u<c;u++)d[u]=arguments[u];return vm(t.registered,i,ym(d))},s={css:i,cx:o,theme:N.useContext(ut)},a=e.children(s);return n=!0,N.createElement(N.Fragment,null,N.createElement(bm,{cache:t,serializedArr:r}),a)});process.env.NODE_ENV!=="production"&&(xm.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var wo=!0,wm=typeof jest<"u"||typeof vi<"u";if(wo&&!wm){var So=typeof globalThis<"u"?globalThis:wo?window:global,Eo="__EMOTION_REACT_"+mm.version.split(".")[0]+"__";So[Eo]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),So[Eo]=!0}}var Sm=pp,Em=function(t){return t!=="theme"},To=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Sm:Em},Co=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},_o=`You have illegal escape sequence in your template literal, most likely inside content's property value.
52
54
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
53
55
  You can read more about this here:
54
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,xm=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return hr(n,r,i),Vi(function(){return pr(n,r,i)}),null},wm=function e(t,n){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
55
- You may have forgotten to import it.`);var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=_o(t,n,r),l=a||To(i),c=!l("as");return function(){var d=arguments,u=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&u.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{process.env.NODE_ENV!=="production"&&d[0][0]===void 0&&console.error(Po),u.push(d[0][0]);for(var h=d.length,m=1;m<h;m++)process.env.NODE_ENV!=="production"&&d[0][m]===void 0&&console.error(Po),u.push(d[m],d[0][m])}var y=mr(function(f,g,b){var w=c&&f.as||i,x="",E=[],v=f;if(f.theme==null){v={};for(var C in f)v[C]=f[C];v.theme=N.useContext(ut)}typeof f.className=="string"?x=Di(g.registered,E,f.className):f.className!=null&&(x=f.className+" ");var T=jt(u.concat(E),g.registered,v);x+=g.key+"-"+T.name,s!==void 0&&(x+=" "+s);var P=c&&a===void 0?To(w):l,k={};for(var D in f)c&&D==="as"||P(D)&&(k[D]=f[D]);return k.className=x,k.ref=b,N.createElement(N.Fragment,null,N.createElement(xm,{cache:g,serialized:T,isStringTag:typeof w=="string"}),N.createElement(w,k))});return y.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=u,y.__emotion_forwardProp=a,Object.defineProperty(y,"toString",{value:function(){return s===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+s}}),y.withComponent=function(f,g){return e(f,S._extends({},n,g,{shouldForwardProp:_o(y,g,!0)})).apply(void 0,u)},y}},Sm=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Zr=wm.bind();Sm.forEach(function(e){Zr[e]=Zr(e)});let Jr;typeof document=="object"&&(Jr=ql({key:"css",prepend:!0}));function rc(e){const{injectFirst:t,children:n}=e;return t&&Jr?p.jsx(lm,{value:Jr,children:n}):n}process.env.NODE_ENV!=="production"&&(rc.propTypes={children:S.PropTypes.node,injectFirst:S.PropTypes.bool});function Em(e){return e==null||Object.keys(e).length===0}function ic(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(Em(i)?n:i):t;return p.jsx(tc,{styles:r})}process.env.NODE_ENV!=="production"&&(ic.propTypes={defaultTheme:S.PropTypes.object,styles:S.PropTypes.oneOfType([S.PropTypes.array,S.PropTypes.string,S.PropTypes.object,S.PropTypes.func])});/**
56
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Tm=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return hr(n,r,i),Ri(function(){return pr(n,r,i)}),null},Cm=function e(t,n){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
57
+ You may have forgotten to import it.`);var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=Co(t,n,r),l=a||To(i),c=!l("as");return function(){var d=arguments,u=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&u.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{process.env.NODE_ENV!=="production"&&d[0][0]===void 0&&console.error(_o),u.push(d[0][0]);for(var h=d.length,m=1;m<h;m++)process.env.NODE_ENV!=="production"&&d[0][m]===void 0&&console.error(_o),u.push(d[m],d[0][m])}var y=mr(function(f,g,b){var w=c&&f.as||i,x="",E=[],v=f;if(f.theme==null){v={};for(var T in f)v[T]=f[T];v.theme=N.useContext(ut)}typeof f.className=="string"?x=Ni(g.registered,E,f.className):f.className!=null&&(x=f.className+" ");var C=jt(u.concat(E),g.registered,v);x+=g.key+"-"+C.name,s!==void 0&&(x+=" "+s);var P=c&&a===void 0?To(w):l,k={};for(var D in f)c&&D==="as"||P(D)&&(k[D]=f[D]);return k.className=x,k.ref=b,N.createElement(N.Fragment,null,N.createElement(Tm,{cache:g,serialized:C,isStringTag:typeof w=="string"}),N.createElement(w,k))});return y.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=u,y.__emotion_forwardProp=a,Object.defineProperty(y,"toString",{value:function(){return s===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+s}}),y.withComponent=function(f,g){return e(f,S._extends({},n,g,{shouldForwardProp:Co(y,g,!0)})).apply(void 0,u)},y}},_m=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Zr=Cm.bind();_m.forEach(function(e){Zr[e]=Zr(e)});let Jr;typeof document=="object"&&(Jr=ql({key:"css",prepend:!0}));function rc(e){const{injectFirst:t,children:n}=e;return t&&Jr?p.jsx(fm,{value:Jr,children:n}):n}process.env.NODE_ENV!=="production"&&(rc.propTypes={children:S.PropTypes.node,injectFirst:S.PropTypes.bool});function Pm(e){return e==null||Object.keys(e).length===0}function ic(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(Pm(i)?n:i):t;return p.jsx(tc,{styles:r})}process.env.NODE_ENV!=="production"&&(ic.propTypes={defaultTheme:S.PropTypes.object,styles:S.PropTypes.oneOfType([S.PropTypes.array,S.PropTypes.string,S.PropTypes.object,S.PropTypes.func])});/**
56
58
  * @mui/styled-engine v5.15.11
57
59
  *
58
60
  * @license MIT
59
61
  * This source code is licensed under the MIT license found in the
60
62
  * LICENSE file in the root directory of this source tree.
61
- */function Cm(e,t){const n=Zr(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
62
- `)):r.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}const Tm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},_m=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ic,StyledEngineProvider:rc,ThemeContext:ut,css:nc,default:Cm,internal_processStyles:Tm,keyframes:fm},Symbol.toStringTag,{value:"Module"}));function Pm(e){return Object.keys(e).length===0}function Am(e=null){const t=N.useContext(ut);return!t||Pm(t)?e:t}const km=ki();function Om(e=km){return Am(e)}function jm({props:e,name:t,defaultTheme:n,themeId:r}){let i=Om(n);return r&&(i=i[r]||i),f1({theme:i,name:t,props:e})}const Mm=["sx"],Nm=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:dn;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function Dm(e){const{sx:t}=e,n=S._objectWithoutPropertiesLoose(e,Mm),{systemProps:r,otherProps:i}=Nm(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return Ke(a)?S._extends({},r,a):r}:o=S._extends({},r,t),S._extends({},i,{sx:o})}const Rm=Object.freeze(Object.defineProperty({__proto__:null,default:Ai,extendSxProp:Dm,unstable_createStyleFunctionSx:Ll,unstable_defaultSxConfig:dn},Symbol.toStringTag,{value:"Module"}));function Vm(e,t){return S._extends({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ee={},sc={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(sc);var oc=sc.exports;const Lm=S.getAugmentedNamespace(Zh),Im=S.getAugmentedNamespace(d1);var ac=oc;Object.defineProperty(ee,"__esModule",{value:!0});ee.alpha=dc;ee.blend=Xm;ee.colorChannel=void 0;var $m=ee.darken=$i;ee.decomposeColor=Ce;ee.emphasize=Km;var Ao=ee.getContrastRatio=Um;ee.getLuminance=Gn;ee.hexToRgb=lc;ee.hslToRgb=uc;var zm=ee.lighten=zi;ee.private_safeAlpha=Ym;ee.private_safeColorChannel=void 0;ee.private_safeDarken=Gm;ee.private_safeEmphasize=fc;ee.private_safeLighten=qm;ee.recomposeColor=Nt;ee.rgbToHex=Hm;var ko=ac(Lm),Fm=ac(Im);function Ii(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),(0,Fm.default)(e,t,n)}function lc(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Bm(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Ce(e){if(e.type)return e;if(e.charAt(0)==="#")return Ce(lc(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
63
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,ko.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
64
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,ko.default)(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const cc=e=>{const t=Ce(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};ee.colorChannel=cc;const Wm=(e,t)=>{try{return cc(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};ee.private_safeColorChannel=Wm;function Nt(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Hm(e){if(e.indexOf("#")===0)return e;const{values:t}=Ce(e);return`#${t.map((n,r)=>Bm(r===3?Math.round(255*n):n)).join("")}`}function uc(e){e=Ce(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(c,d=(c+n/30)%12)=>i-o*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Nt({type:a,values:l})}function Gn(e){e=Ce(e);let t=e.type==="hsl"||e.type==="hsla"?Ce(uc(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Um(e,t){const n=Gn(e),r=Gn(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function dc(e,t){return e=Ce(e),t=Ii(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Nt(e)}function Ym(e,t,n){try{return dc(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function $i(e,t){if(e=Ce(e),t=Ii(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Nt(e)}function Gm(e,t,n){try{return $i(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function zi(e,t){if(e=Ce(e),t=Ii(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Nt(e)}function qm(e,t,n){try{return zi(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Km(e,t=.15){return Gn(e)>.5?$i(e,t):zi(e,t)}function fc(e,t,n){try{return fc(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Xm(e,t,n,r=1){const i=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),o=Ce(e),s=Ce(t),a=[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])];return Nt({type:"rgb",values:a})}const Zm={black:"#000",white:"#fff"},nn=Zm,Jm={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Qm=Jm,e2={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ht=e2,t2={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},pt=t2,n2={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ft=n2,r2={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},mt=r2,i2={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},gt=i2,s2={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},yt=s2,o2=["mode","contrastThreshold","tonalOffset"],Oo={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:nn.white,default:nn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},jr={text:{primary:nn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:nn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function jo(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=zm(e.main,i):t==="dark"&&(e.dark=$m(e.main,o)))}function a2(e="light"){return e==="dark"?{main:mt[200],light:mt[50],dark:mt[400]}:{main:mt[700],light:mt[400],dark:mt[800]}}function l2(e="light"){return e==="dark"?{main:ht[200],light:ht[50],dark:ht[400]}:{main:ht[500],light:ht[300],dark:ht[700]}}function c2(e="light"){return e==="dark"?{main:pt[500],light:pt[300],dark:pt[700]}:{main:pt[700],light:pt[400],dark:pt[800]}}function u2(e="light"){return e==="dark"?{main:gt[400],light:gt[300],dark:gt[700]}:{main:gt[700],light:gt[500],dark:gt[900]}}function d2(e="light"){return e==="dark"?{main:yt[400],light:yt[300],dark:yt[700]}:{main:yt[800],light:yt[500],dark:yt[900]}}function f2(e="light"){return e==="dark"?{main:Ft[400],light:Ft[300],dark:Ft[700]}:{main:"#ed6c02",light:Ft[500],dark:Ft[900]}}function h2(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=S._objectWithoutPropertiesLoose(e,o2),o=e.primary||a2(t),s=e.secondary||l2(t),a=e.error||c2(t),l=e.info||u2(t),c=e.success||d2(t),d=e.warning||f2(t);function u(f){const g=Ao(f,jr.text.primary)>=n?jr.text.primary:Oo.text.primary;if(process.env.NODE_ENV!=="production"){const b=Ao(f,g);b<3&&console.error([`MUI: The contrast ratio of ${b}:1 for ${g} on ${f}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
63
+ */function Am(e,t){const n=Zr(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
64
+ `)):r.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}const km=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Om=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:ic,StyledEngineProvider:rc,ThemeContext:ut,css:nc,default:Am,internal_processStyles:km,keyframes:gm},Symbol.toStringTag,{value:"Module"}));function jm(e){return Object.keys(e).length===0}function Mm(e=null){const t=N.useContext(ut);return!t||jm(t)?e:t}const Nm=Ai();function Dm(e=Nm){return Mm(e)}function Rm({props:e,name:t,defaultTheme:n,themeId:r}){let i=Dm(n);return r&&(i=i[r]||i),g1({theme:i,name:t,props:e})}const Vm=["sx"],Im=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:dn;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function Lm(e){const{sx:t}=e,n=S._objectWithoutPropertiesLoose(e,Vm),{systemProps:r,otherProps:i}=Im(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return Ke(a)?S._extends({},r,a):r}:o=S._extends({},r,t),S._extends({},i,{sx:o})}const $m=Object.freeze(Object.defineProperty({__proto__:null,default:Pi,extendSxProp:Lm,unstable_createStyleFunctionSx:Il,unstable_defaultSxConfig:dn},Symbol.toStringTag,{value:"Module"}));function zm(e,t){return S._extends({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ee={},sc={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(sc);var oc=sc.exports;const Fm=S.getAugmentedNamespace(t1),Bm=S.getAugmentedNamespace(m1);var ac=oc;Object.defineProperty(ee,"__esModule",{value:!0});ee.alpha=dc;ee.blend=eg;ee.colorChannel=void 0;var Wm=ee.darken=Li;ee.decomposeColor=Te;ee.emphasize=Qm;var Po=ee.getContrastRatio=Km;ee.getLuminance=Gn;ee.hexToRgb=lc;ee.hslToRgb=uc;var Hm=ee.lighten=$i;ee.private_safeAlpha=Xm;ee.private_safeColorChannel=void 0;ee.private_safeDarken=Zm;ee.private_safeEmphasize=fc;ee.private_safeLighten=Jm;ee.recomposeColor=Nt;ee.rgbToHex=qm;var Ao=ac(Fm),Um=ac(Bm);function Ii(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),(0,Um.default)(e,t,n)}function lc(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ym(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Te(e){if(e.type)return e;if(e.charAt(0)==="#")return Te(lc(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
65
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Ao.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
66
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Ao.default)(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const cc=e=>{const t=Te(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};ee.colorChannel=cc;const Gm=(e,t)=>{try{return cc(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};ee.private_safeColorChannel=Gm;function Nt(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function qm(e){if(e.indexOf("#")===0)return e;const{values:t}=Te(e);return`#${t.map((n,r)=>Ym(r===3?Math.round(255*n):n)).join("")}`}function uc(e){e=Te(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(c,d=(c+n/30)%12)=>i-o*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Nt({type:a,values:l})}function Gn(e){e=Te(e);let t=e.type==="hsl"||e.type==="hsla"?Te(uc(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Km(e,t){const n=Gn(e),r=Gn(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function dc(e,t){return e=Te(e),t=Ii(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Nt(e)}function Xm(e,t,n){try{return dc(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Li(e,t){if(e=Te(e),t=Ii(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Nt(e)}function Zm(e,t,n){try{return Li(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function $i(e,t){if(e=Te(e),t=Ii(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Nt(e)}function Jm(e,t,n){try{return $i(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Qm(e,t=.15){return Gn(e)>.5?Li(e,t):$i(e,t)}function fc(e,t,n){try{return fc(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function eg(e,t,n,r=1){const i=(l,c)=>Math.round((l**(1/r)*(1-n)+c**(1/r)*n)**r),o=Te(e),s=Te(t),a=[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])];return Nt({type:"rgb",values:a})}const tg={black:"#000",white:"#fff"},nn=tg,ng={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},rg=ng,ig={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ht=ig,sg={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},pt=sg,og={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ft=og,ag={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},mt=ag,lg={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},gt=lg,cg={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},yt=cg,ug=["mode","contrastThreshold","tonalOffset"],ko={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:nn.white,default:nn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},jr={text:{primary:nn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:nn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Oo(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Hm(e.main,i):t==="dark"&&(e.dark=Wm(e.main,o)))}function dg(e="light"){return e==="dark"?{main:mt[200],light:mt[50],dark:mt[400]}:{main:mt[700],light:mt[400],dark:mt[800]}}function fg(e="light"){return e==="dark"?{main:ht[200],light:ht[50],dark:ht[400]}:{main:ht[500],light:ht[300],dark:ht[700]}}function hg(e="light"){return e==="dark"?{main:pt[500],light:pt[300],dark:pt[700]}:{main:pt[700],light:pt[400],dark:pt[800]}}function pg(e="light"){return e==="dark"?{main:gt[400],light:gt[300],dark:gt[700]}:{main:gt[700],light:gt[500],dark:gt[900]}}function mg(e="light"){return e==="dark"?{main:yt[400],light:yt[300],dark:yt[700]}:{main:yt[800],light:yt[500],dark:yt[900]}}function gg(e="light"){return e==="dark"?{main:Ft[400],light:Ft[300],dark:Ft[700]}:{main:"#ed6c02",light:Ft[500],dark:Ft[900]}}function yg(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=S._objectWithoutPropertiesLoose(e,ug),o=e.primary||dg(t),s=e.secondary||fg(t),a=e.error||hg(t),l=e.info||pg(t),c=e.success||mg(t),d=e.warning||gg(t);function u(f){const g=Po(f,jr.text.primary)>=n?jr.text.primary:ko.text.primary;if(process.env.NODE_ENV!=="production"){const b=Po(f,g);b<3&&console.error([`MUI: The contrast ratio of ${b}:1 for ${g} on ${f}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
65
67
  `))}return g}const h=({color:f,name:g,mainShade:b=500,lightShade:w=300,darkShade:x=700})=>{if(f=S._extends({},f),!f.main&&f[b]&&(f.main=f[b]),!f.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
66
68
  The color object needs to have a \`main\` property or a \`${b}\` property.`:Jt(11,g?` (${g})`:"",b));if(typeof f.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
67
69
  \`color.main\` should be a string, but \`${JSON.stringify(f.main)}\` was provided instead.
@@ -76,6 +78,6 @@ const theme1 = createTheme({ palette: {
76
78
 
77
79
  const theme2 = createTheme({ palette: {
78
80
  primary: { main: green[500] },
79
- } });`:Jt(12,g?` (${g})`:"",JSON.stringify(f.main)));return jo(f,"light",w,r),jo(f,"dark",x,r),f.contrastText||(f.contrastText=u(f.main)),f},m={dark:jr,light:Oo};return process.env.NODE_ENV!=="production"&&(m[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ne(S._extends({common:S._extends({},nn),mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:a,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:Qm,contrastThreshold:n,getContrastText:u,augmentColor:h,tonalOffset:r},m[t]),i)}const p2=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function m2(e){return Math.round(e*1e5)/1e5}const Mo={textTransform:"uppercase"},No='"Roboto", "Helvetica", "Arial", sans-serif';function g2(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=No,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,h=S._objectWithoutPropertiesLoose(n,p2);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=i/14,y=u||(b=>`${b/c*m}rem`),f=(b,w,x,E,v)=>S._extends({fontFamily:r,fontWeight:b,fontSize:y(w),lineHeight:x},r===No?{letterSpacing:`${m2(E/w)}em`}:{},v,d),g={h1:f(o,96,1.167,-1.5),h2:f(o,60,1.2,-.5),h3:f(s,48,1.167,0),h4:f(s,34,1.235,.25),h5:f(s,24,1.334,0),h6:f(a,20,1.6,.15),subtitle1:f(s,16,1.75,.15),subtitle2:f(a,14,1.57,.1),body1:f(s,16,1.5,.15),body2:f(s,14,1.43,.15),button:f(a,14,1.75,.4,Mo),caption:f(s,12,1.66,.4),overline:f(s,12,2.66,1,Mo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ne(S._extends({htmlFontSize:c,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},g),h,{clone:!1})}const y2=.2,v2=.14,b2=.12;function G(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${y2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${v2})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${b2})`].join(",")}const x2=["none",G(0,2,1,-1,0,1,1,0,0,1,3,0),G(0,3,1,-2,0,2,2,0,0,1,5,0),G(0,3,3,-2,0,3,4,0,0,1,8,0),G(0,2,4,-1,0,4,5,0,0,1,10,0),G(0,3,5,-1,0,5,8,0,0,1,14,0),G(0,3,5,-1,0,6,10,0,0,1,18,0),G(0,4,5,-2,0,7,10,1,0,2,16,1),G(0,5,5,-3,0,8,10,1,0,3,14,2),G(0,5,6,-3,0,9,12,1,0,3,16,2),G(0,6,6,-3,0,10,14,1,0,4,18,3),G(0,6,7,-4,0,11,15,1,0,4,20,3),G(0,7,8,-4,0,12,17,2,0,5,22,4),G(0,7,8,-4,0,13,19,2,0,5,24,4),G(0,7,9,-4,0,14,21,2,0,5,26,4),G(0,8,9,-5,0,15,22,2,0,6,28,5),G(0,8,10,-5,0,16,24,2,0,6,30,5),G(0,8,11,-5,0,17,26,2,0,6,32,5),G(0,9,11,-5,0,18,28,2,0,7,34,6),G(0,9,12,-6,0,19,29,2,0,7,36,6),G(0,10,13,-6,0,20,31,3,0,8,38,7),G(0,10,13,-6,0,21,33,3,0,8,40,7),G(0,10,14,-6,0,22,35,3,0,8,42,7),G(0,11,14,-7,0,23,36,3,0,9,44,8),G(0,11,15,-7,0,24,38,3,0,9,46,8)],w2=x2,S2=["duration","easing","delay"],E2={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},C2={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Do(e){return`${Math.round(e)}ms`}function T2(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function _2(e){const t=S._extends({},E2,e.easing),n=S._extends({},C2,e.duration),r=(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=o,c=S._objectWithoutPropertiesLoose(o,S2);if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",u=h=>!isNaN(parseFloat(h));!d(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!u(s)&&!d(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),d(a)||console.error('MUI: Argument "easing" must be a string.'),!u(l)&&!d(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
80
- `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof s=="string"?s:Do(s)} ${a} ${typeof l=="string"?l:Do(l)}`).join(",")};return S._extends({getAutoHeightDuration:T2,create:r},e,{easing:t,duration:n})}const P2={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},A2=P2,k2=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function O2(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=S._objectWithoutPropertiesLoose(e,k2);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Jt(18));const a=h2(r),l=ki(e);let c=Ne(l,{mixins:Vm(l.breakpoints,n),palette:a,shadows:w2.slice(),typography:g2(a,o),transitions:_2(i),zIndex:S._extends({},A2)});if(c=Ne(c,s),c=t.reduce((d,u)=>Ne(d,u),c),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],u=(h,m)=>{let y;for(y in h){const f=h[y];if(d.indexOf(y)!==-1&&Object.keys(f).length>0){if(process.env.NODE_ENV!=="production"){const g=Ti("",y);console.error([`MUI: The \`${m}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:f}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
81
- `))}h[y]={}}}};Object.keys(c.components).forEach(h=>{const m=c.components[h].styleOverrides;m&&h.indexOf("Mui")===0&&u(m,h)})}return c.unstable_sxConfig=S._extends({},dn,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(u){return Ai({sx:u,theme:this})},c}const j2=O2(),hc=j2,pc="$$material";function M2({props:e,name:t}){return jm({props:e,name:t,defaultTheme:hc,themeId:pc})}var hn={};const N2=S.getAugmentedNamespace(S._extends$1),D2=S.getAugmentedNamespace(S.objectWithoutPropertiesLoose),R2=S.getAugmentedNamespace(_m),V2=S.getAugmentedNamespace(Xh),L2=S.getAugmentedNamespace(r1),I2=S.getAugmentedNamespace(n1),$2=S.getAugmentedNamespace(lp),z2=S.getAugmentedNamespace(Rm);var Dt=oc;Object.defineProperty(hn,"__esModule",{value:!0});var F2=hn.default=ng,B2=hn.shouldForwardProp=kn;hn.systemDefaultTheme=void 0;var Se=Dt(N2),Qr=Dt(D2),Ro=Z2(R2),W2=V2,H2=Dt(L2),U2=Dt(I2),Y2=Dt($2),G2=Dt(z2);const q2=["ownerState"],K2=["variants"],X2=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function mc(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(mc=function(r){return r?n:t})(e)}function Z2(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=mc(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function J2(e){return Object.keys(e).length===0}function Q2(e){return typeof e=="string"&&e.charCodeAt(0)>96}function kn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const eg=hn.systemDefaultTheme=(0,Y2.default)(),Vo=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Sn({defaultTheme:e,theme:t,themeId:n}){return J2(t)?e:t[n]||t}function tg(e){return e?(t,n)=>n[e]:null}function On(e,t){let{ownerState:n}=t,r=(0,Qr.default)(t,q2);const i=typeof e=="function"?e((0,Se.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>On(o,(0,Se.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let a=(0,Qr.default)(i,K2);return o.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,Se.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Se.default)({ownerState:n},r,n)):l.style))}),a}return i}function ng(e={}){const{themeId:t,defaultTheme:n=eg,rootShouldForwardProp:r=kn,slotShouldForwardProp:i=kn}=e,o=s=>(0,G2.default)((0,Se.default)({},s,{theme:Sn((0,Se.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{(0,Ro.internal_processStyles)(s,v=>v.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:u,overridesResolver:h=tg(Vo(c))}=a,m=(0,Qr.default)(a,X2),y=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,f=u||!1;let g;process.env.NODE_ENV!=="production"&&l&&(g=`${l}-${Vo(c||"Root")}`);let b=kn;c==="Root"||c==="root"?b=r:c?b=i:Q2(s)&&(b=void 0);const w=(0,Ro.default)(s,(0,Se.default)({shouldForwardProp:b,label:g},m)),x=v=>typeof v=="function"&&v.__emotion_real!==v||(0,W2.isPlainObject)(v)?C=>On(v,(0,Se.default)({},C,{theme:Sn({theme:C.theme,defaultTheme:n,themeId:t})})):v,E=(v,...C)=>{let T=x(v);const P=C?C.map(x):[];l&&h&&P.push(j=>{const R=Sn((0,Se.default)({},j,{defaultTheme:n,themeId:t}));if(!R.components||!R.components[l]||!R.components[l].styleOverrides)return null;const q=R.components[l].styleOverrides,H={};return Object.entries(q).forEach(([ue,U])=>{H[ue]=On(U,(0,Se.default)({},j,{theme:R}))}),h(j,H)}),l&&!y&&P.push(j=>{var R;const q=Sn((0,Se.default)({},j,{defaultTheme:n,themeId:t})),H=q==null||(R=q.components)==null||(R=R[l])==null?void 0:R.variants;return On({variants:H},(0,Se.default)({},j,{theme:q}))}),f||P.push(o);const k=P.length-C.length;if(Array.isArray(v)&&k>0){const j=new Array(k).fill("");T=[...v,...j],T.raw=[...v.raw,...j]}const D=w(T,...P);if(process.env.NODE_ENV!=="production"){let j;l&&(j=`${l}${(0,H2.default)(c||"")}`),j===void 0&&(j=`Styled(${(0,U2.default)(s)})`),D.displayName=j}return s.muiName&&(D.muiName=s.muiName),D};return w.withConfig&&(E.withConfig=w.withConfig),E}}const rg=e=>B2(e)&&e!=="classes",ig=F2({themeId:pc,defaultTheme:hc,rootShouldForwardProp:rg}),sg=ig;function og(e){return Ti("MuiSvgIcon",e)}c1("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ag=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],lg=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${at(t)}`,`fontSize${at(n)}`]};return i1(i,og,r)},cg=sg("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${at(n.color)}`],t[`fontSize${at(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,a,l,c,d,u,h,m,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(u=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?u:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Fi=N.forwardRef(function(t,n){const r=M2({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:h="0 0 24 24"}=r,m=S._objectWithoutPropertiesLoose(r,ag),y=N.isValidElement(i)&&i.type==="svg",f=S._extends({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y}),g={};d||(g.viewBox=h);const b=lg(f);return p.jsxs(cg,S._extends({as:a,className:S.clsx(b.root,o),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:n},g,m,y&&i.props,{ownerState:f,children:[y?i.props.children:i,u?p.jsx("title",{children:u}):null]}))});process.env.NODE_ENV!=="production"&&(Fi.propTypes={children:S.PropTypes.node,classes:S.PropTypes.object,className:S.PropTypes.string,color:S.PropTypes.oneOfType([S.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),S.PropTypes.string]),component:S.PropTypes.elementType,fontSize:S.PropTypes.oneOfType([S.PropTypes.oneOf(["inherit","large","medium","small"]),S.PropTypes.string]),htmlColor:S.PropTypes.string,inheritViewBox:S.PropTypes.bool,shapeRendering:S.PropTypes.string,sx:S.PropTypes.oneOfType([S.PropTypes.arrayOf(S.PropTypes.oneOfType([S.PropTypes.func,S.PropTypes.object,S.PropTypes.bool])),S.PropTypes.func,S.PropTypes.object]),titleAccess:S.PropTypes.string,viewBox:S.PropTypes.string});Fi.muiName="SvgIcon";const Lo=Fi;function ug(e,t){function n(r,i){return p.jsx(Lo,S._extends({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Lo.muiName,N.memo(N.forwardRef(n))}const dg=ug(p.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");function Io(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var $o=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function fg(e,t){return!!(e===t||$o(e)&&$o(t))}function hg(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!fg(e[n],t[n]))return!1;return!0}function Mr(e,t){t===void 0&&(t=hg);var n,r=[],i,o=!1;function s(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&n===this&&t(a,r)||(i=e.apply(this,a),o=!0,n=this,r=a),i}return s}var pg=typeof performance=="object"&&typeof performance.now=="function",zo=pg?function(){return performance.now()}:function(){return Date.now()};function Fo(e){cancelAnimationFrame(e.id)}function mg(e,t){var n=zo();function r(){zo()-n>=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var Nr=-1;function Bo(e){if(e===void 0&&(e=!1),Nr===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Nr=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Nr}var vt=null;function Wo(e){if(e===void 0&&(e=!1),vt===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?vt="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?vt="negative":vt="positive-ascending"),document.body.removeChild(t),vt}return vt}process.env.NODE_ENV;var gg=150,yg=function(t,n){return t},jn=null,Mn=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(jn=new WeakSet,Mn=new WeakSet);function vg(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(u){S._inheritsLoose(h,u);function h(y){var f;return f=u.call(this,y)||this,f._instanceProps=l(f.props,Io(f)),f._outerRef=void 0,f._resetIsScrollingTimeoutId=null,f.state={instance:Io(f),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof f.props.initialScrollOffset=="number"?f.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},f._callOnItemsRendered=void 0,f._callOnItemsRendered=Mr(function(g,b,w,x){return f.props.onItemsRendered({overscanStartIndex:g,overscanStopIndex:b,visibleStartIndex:w,visibleStopIndex:x})}),f._callOnScroll=void 0,f._callOnScroll=Mr(function(g,b,w){return f.props.onScroll({scrollDirection:g,scrollOffset:b,scrollUpdateWasRequested:w})}),f._getItemStyle=void 0,f._getItemStyle=function(g){var b=f.props,w=b.direction,x=b.itemSize,E=b.layout,v=f._getItemStyleCache(c&&x,c&&E,c&&w),C;if(v.hasOwnProperty(g))C=v[g];else{var T=n(f.props,g,f._instanceProps),P=i(f.props,g,f._instanceProps),k=w==="horizontal"||E==="horizontal",D=w==="rtl",j=k?T:0;v[g]=C={position:"absolute",left:D?void 0:j,right:D?j:void 0,top:k?0:T,height:k?"100%":P,width:k?P:"100%"}}return C},f._getItemStyleCache=void 0,f._getItemStyleCache=Mr(function(g,b,w){return{}}),f._onScrollHorizontal=function(g){var b=g.currentTarget,w=b.clientWidth,x=b.scrollLeft,E=b.scrollWidth;f.setState(function(v){if(v.scrollOffset===x)return null;var C=f.props.direction,T=x;if(C==="rtl")switch(Wo()){case"negative":T=-x;break;case"positive-descending":T=E-w-x;break}return T=Math.max(0,Math.min(T,E-w)),{isScrolling:!0,scrollDirection:v.scrollOffset<T?"forward":"backward",scrollOffset:T,scrollUpdateWasRequested:!1}},f._resetIsScrollingDebounced)},f._onScrollVertical=function(g){var b=g.currentTarget,w=b.clientHeight,x=b.scrollHeight,E=b.scrollTop;f.setState(function(v){if(v.scrollOffset===E)return null;var C=Math.max(0,Math.min(E,x-w));return{isScrolling:!0,scrollDirection:v.scrollOffset<C?"forward":"backward",scrollOffset:C,scrollUpdateWasRequested:!1}},f._resetIsScrollingDebounced)},f._outerRefSetter=function(g){var b=f.props.outerRef;f._outerRef=g,typeof b=="function"?b(g):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=g)},f._resetIsScrollingDebounced=function(){f._resetIsScrollingTimeoutId!==null&&Fo(f._resetIsScrollingTimeoutId),f._resetIsScrollingTimeoutId=mg(f._resetIsScrolling,gg)},f._resetIsScrolling=function(){f._resetIsScrollingTimeoutId=null,f.setState({isScrolling:!1},function(){f._getItemStyleCache(-1,null)})},f}h.getDerivedStateFromProps=function(f,g){return bg(f,g),d(f),null};var m=h.prototype;return m.scrollTo=function(f){f=Math.max(0,f),this.setState(function(g){return g.scrollOffset===f?null:{scrollDirection:g.scrollOffset<f?"forward":"backward",scrollOffset:f,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},m.scrollToItem=function(f,g){g===void 0&&(g="auto");var b=this.props,w=b.itemCount,x=b.layout,E=this.state.scrollOffset;f=Math.max(0,Math.min(f,w-1));var v=0;if(this._outerRef){var C=this._outerRef;x==="vertical"?v=C.scrollWidth>C.clientWidth?Bo():0:v=C.scrollHeight>C.clientHeight?Bo():0}this.scrollTo(o(this.props,f,g,E,this._instanceProps,v))},m.componentDidMount=function(){var f=this.props,g=f.direction,b=f.initialScrollOffset,w=f.layout;if(typeof b=="number"&&this._outerRef!=null){var x=this._outerRef;g==="horizontal"||w==="horizontal"?x.scrollLeft=b:x.scrollTop=b}this._callPropsCallbacks()},m.componentDidUpdate=function(){var f=this.props,g=f.direction,b=f.layout,w=this.state,x=w.scrollOffset,E=w.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var v=this._outerRef;if(g==="horizontal"||b==="horizontal")if(g==="rtl")switch(Wo()){case"negative":v.scrollLeft=-x;break;case"positive-ascending":v.scrollLeft=x;break;default:var C=v.clientWidth,T=v.scrollWidth;v.scrollLeft=T-C-x;break}else v.scrollLeft=x;else v.scrollTop=x}this._callPropsCallbacks()},m.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Fo(this._resetIsScrollingTimeoutId)},m.render=function(){var f=this.props,g=f.children,b=f.className,w=f.direction,x=f.height,E=f.innerRef,v=f.innerElementType,C=f.innerTagName,T=f.itemCount,P=f.itemData,k=f.itemKey,D=k===void 0?yg:k,j=f.layout,R=f.outerElementType,q=f.outerTagName,H=f.style,ue=f.useIsScrolling,U=f.width,ae=this.state.isScrolling,le=w==="horizontal"||j==="horizontal",pe=le?this._onScrollHorizontal:this._onScrollVertical,Oe=this._getRangeToRender(),W=Oe[0],_e=Oe[1],Re=[];if(T>0)for(var be=W;be<=_e;be++)Re.push(_.createElement(g,{data:P,key:D(be,P),index:be,isScrolling:ue?ae:void 0,style:this._getItemStyle(be)}));var Ve=r(this.props,this._instanceProps);return _.createElement(R||q||"div",{className:b,onScroll:pe,ref:this._outerRefSetter,style:S._extends({position:"relative",height:x,width:U,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:w},H)},_.createElement(v||C||"div",{children:Re,ref:E,style:{height:le?"100%":Ve,pointerEvents:ae?"none":void 0,width:le?Ve:"100%"}}))},m._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var f=this.props.itemCount;if(f>0){var g=this._getRangeToRender(),b=g[0],w=g[1],x=g[2],E=g[3];this._callOnItemsRendered(b,w,x,E)}}if(typeof this.props.onScroll=="function"){var v=this.state,C=v.scrollDirection,T=v.scrollOffset,P=v.scrollUpdateWasRequested;this._callOnScroll(C,T,P)}},m._getRangeToRender=function(){var f=this.props,g=f.itemCount,b=f.overscanCount,w=this.state,x=w.isScrolling,E=w.scrollDirection,v=w.scrollOffset;if(g===0)return[0,0,0,0];var C=s(this.props,v,this._instanceProps),T=a(this.props,C,v,this._instanceProps),P=!x||E==="backward"?Math.max(1,b):1,k=!x||E==="forward"?Math.max(1,b):1;return[Math.max(0,C-P),Math.max(0,Math.min(g-1,T+k)),C,T]},h}(_.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var bg=function(t,n){var r=t.children,i=t.direction,o=t.height,s=t.layout,a=t.innerTagName,l=t.outerTagName,c=t.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||l!=null)&&Mn&&!Mn.has(d)&&(Mn.add(d),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var u=i==="horizontal"||s==="horizontal";switch(i){case"horizontal":case"vertical":jn&&!jn.has(d)&&(jn.add(d),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(s){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+s+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(u&&typeof c!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(c===null?"null":typeof c)+'" was specified.'));if(!u&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},xg=50,Tt=function(t,n,r){var i=t,o=i.itemSize,s=r.itemMetadataMap,a=r.lastMeasuredIndex;if(n>a){var l=0;if(a>=0){var c=s[a];l=c.offset+c.size}for(var d=a+1;d<=n;d++){var u=o(d);s[d]={offset:l,size:u},l+=u}r.lastMeasuredIndex=n}return s[n]},wg=function(t,n,r){var i=n.itemMetadataMap,o=n.lastMeasuredIndex,s=o>0?i[o].offset:0;return s>=r?gc(t,n,o,0,r):Sg(t,n,Math.max(0,o),r)},gc=function(t,n,r,i,o){for(;i<=r;){var s=i+Math.floor((r-i)/2),a=Tt(t,s,n).offset;if(a===o)return s;a<o?i=s+1:a>o&&(r=s-1)}return i>0?i-1:0},Sg=function(t,n,r,i){for(var o=t.itemCount,s=1;r<o&&Tt(t,r,n).offset<i;)r+=s,s*=2;return gc(t,n,Math.min(r,o-1),Math.floor(r/2),i)},Ho=function(t,n){var r=t.itemCount,i=n.itemMetadataMap,o=n.estimatedItemSize,s=n.lastMeasuredIndex,a=0;if(s>=r&&(s=r-1),s>=0){var l=i[s];a=l.offset+l.size}var c=r-s-1,d=c*o;return a+d},Eg=vg({getItemOffset:function(t,n,r){return Tt(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:Ho,getOffsetForIndexAndAlignment:function(t,n,r,i,o,s){var a=t.direction,l=t.height,c=t.layout,d=t.width,u=a==="horizontal"||c==="horizontal",h=u?d:l,m=Tt(t,n,o),y=Ho(t,o),f=Math.max(0,Math.min(y-h,m.offset)),g=Math.max(0,m.offset-h+m.size+s);switch(r==="smart"&&(i>=g-h&&i<=f+h?r="auto":r="center"),r){case"start":return f;case"end":return g;case"center":return Math.round(g+(f-g)/2);case"auto":default:return i>=g&&i<=f?i:i<g?g:f}},getStartIndexForOffset:function(t,n,r){return wg(t,r,n)},getStopIndexForStartIndex:function(t,n,r,i){for(var o=t.direction,s=t.height,a=t.itemCount,l=t.layout,c=t.width,d=o==="horizontal"||l==="horizontal",u=d?c:s,h=Tt(t,n,i),m=r+u,y=h.offset+h.size,f=n;f<a-1&&y<m;)f++,y+=Tt(t,f,i).size;return f},initInstanceProps:function(t,n){var r=t,i=r.estimatedItemSize,o={itemMetadataMap:{},estimatedItemSize:i||xg,lastMeasuredIndex:-1};return n.resetAfterIndex=function(s,a){a===void 0&&(a=!0),o.lastMeasuredIndex=Math.min(o.lastMeasuredIndex,s-1),n._getItemStyleCache(-1),a&&n.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var n=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});function Nn(e,t){return t?e:void 0}function ei(e){return p.jsx(I.Stack,{sx:{cursor:"pointer"},onClick:t=>{var n;t.preventDefault(),t.stopPropagation(),(n=e.onClick)==null||n.call(e,e.option)},...e.stackProps,children:p.jsx(I.Stack,{sx:{p:1,transition:"0.2s",borderRadius:"5px",cursor:"pointer",...Nn({backgroundColor:"#eeeeee80"},e.select),":hover":{backgroundColor:"#eeeeee80",borderColor:"transparent"}},children:e.renderOption(e.option)})})}const qn=37,Cg=(e,t)=>{const s=document.createElement("p");s.innerText=t,s.style.width=`${e-16-16-4}px`,document.body.appendChild(s);const a=s.offsetHeight;return document.body.removeChild(s),a>21?qn+21:qn};function Tg(e){const[t,n]=_.useState(!1),[r,i]=_.useState(""),[o,s]=_.useState(""),[a,l]=_.useState(!1),{isRequired:c=!1}=e,d=_.useCallback(S._.debounce(E=>{var v;(v=e.handleChangeSearch)==null||v.call(e,E)},300),[e.handleChangeSearch]),u=()=>{n(!t)},h=()=>{n(!1),s(""),d("")};_.useEffect(()=>{i(e.value?e.getOptionLabel(e.value):"")},[e.value]),_.useEffect(()=>{t||i(e.value?e.getOptionLabel(e.value):"")},[t]),_.useEffect(()=>{l(e.searchLoading)},[e.paging.rows,e.searchLoading]);const m=e.paging.rows,{hasNextPage:y}=e,f=y?m.length+1:m.length,g=()=>e.isNextPageLoading?void 0:e.loadNextPage(o),b=E=>!y||E<m.length,w=E=>{i(E.target.value),t&&(s(E.target.value),d(E.target.value),l(!0))},x=_.useRef(null);return p.jsx(I.ClickAwayListener,{onClickAway:h,mouseEvent:"onMouseDown",touchEvent:"onTouchEnd",children:p.jsx("div",{ref:x,style:{width:e.wrapperWidth??"auto"},children:p.jsxs(I.Stack,{sx:{position:"relative"},children:[p.jsx(I.TextField,{required:c,label:e.label,value:r,disabled:e.loading||e.disabled||e.readOnly,fullWidth:!0,error:e.error,helperText:e.helperText,onClick:E=>{e.loading||e.disabled||e.readOnly||(E.preventDefault(),E.stopPropagation(),n(!0))},autoComplete:"off",onChange:w,placeholder:e.placeholder||"All options",sx:{"& input:not(:focus)":{"&::placeholder":{color:e.placeHolderColor||"#C5C5C5",opacity:1}}},InputProps:{readOnly:e.readOnly,endAdornment:p.jsx(I.IconButton,{size:"small",sx:{padding:"1px"},onClick:E=>{E.preventDefault(),E.stopPropagation(),u()},disabled:e.loading||e.disabled||e.readOnly,children:e.loading?p.jsx(I.CircularProgress,{size:"16px"}):p.jsx(dg,{fontSize:"small",style:{transition:"0.3s"},className:t?"rotate":""})})}}),p.jsx(I.Fade,{in:t,timeout:0,unmountOnExit:!1,children:p.jsxs(I.Paper,{sx:{position:"absolute",top:"calc(100% + 2px)",zIndex:2,left:0,right:0,p:1},children:[!e.disabledAllOption&&p.jsx(I.Stack,{sx:{...Nn({display:"none"},!!a)},children:p.jsx(I.Stack,{children:p.jsx(ei,{option:void 0,select:!e.value,renderOption:()=>p.jsx(I.Typography,{children:e.placeholder||"All options"}),onClick:()=>{var E,v;h(),(E=e.onChange)==null||E.call(e,void 0),(v=e.handleChangeSearch)==null||v.call(e,"")}})})}),!a&&p.jsx(S.InfiniteLoader,{isItemLoaded:b,itemCount:f,loadMoreItems:g,threshold:5,children:({onItemsRendered:E,ref:v})=>p.jsx(Eg,{ref:v,onItemsRendered:E,height:qn*Math.min(e.itemsNumber||6,f),itemCount:f,itemSize:C=>{var T;return Cg((T=x.current)==null?void 0:T.offsetWidth,m[C]?e.getOptionLabel(m[C]):"")},width:"100%",className:"styled-scroll",children:({index:C,style:T})=>{var k;const P=m[C];return b(C)?p.jsx(ei,{stackProps:{style:T},option:P,renderOption:D=>{var j;return p.jsxs(I.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[p.jsx(I.Typography,{children:e.getOptionLabel(D)}),(j=e.renderOptionTooltip)==null?void 0:j.call(e,D)]})},onClick:D=>{var j;h(),(j=e.onChange)==null||j.call(e,D)},select:((k=e.isEqual)==null?void 0:k.call(e,P,e.value))??S._.isEqual(P,e.value)}):p.jsx(I.Stack,{style:T,sx:{height:qn,pl:1},justifyContent:"center",children:p.jsx(I.Typography,{children:"Loading..."})})}})}),p.jsx(I.Stack,{sx:{height:30,display:"flex",justifyContent:"center",paddingLeft:"5px",...Nn({display:"none"},!a)},children:p.jsx(I.Typography,{color:"grayText",children:"Searching..."})}),p.jsx(I.Stack,{sx:{height:30,display:"flex",justifyContent:"center",paddingLeft:"5px",...Nn({display:"none"},!!(m.length||e.loading||a))},children:p.jsx(I.Typography,{color:"grayText",children:"No options"})})]})})]})})})}function _g(e){var d;const{listProps:t}=e,[n,r]=_.useState({initLoading:!e.disabled,searchLoading:!1,hasNextPage:!1,isNextPageLoading:!1,paging:{page:1,pageSize:((d=e.listProps)==null?void 0:d.pageSize)||20,rows:[],total:0,totalPages:1}}),i=async(u,h)=>{var m,y;if(e.list)r(()=>{var b;const f=((b=u==null?void 0:u.search)==null?void 0:b.content)||"";return{hasNextPage:!1,isNextPageLoading:!1,paging:{page:1,pageSize:1e5,rows:e.list.options.filter(w=>e.list.searchOption?e.list.searchOption(w,f):S.search(w,f,e.list.searchFields)),total:e.list.options.length,totalPages:1},searchLoading:!1,initLoading:!1}});else{r(f=>({...f,isNextPageLoading:!0}));try{const f={page:1,pageSize:20,filter:{...t==null?void 0:t.filter,...u==null?void 0:u.filter},...S.lodashExports.omit(t,"filter"),...S.lodashExports.omit(u,"filter"),search:{fields:((m=t==null?void 0:t.search)==null?void 0:m.fields)??[],content:((y=u==null?void 0:u.search)==null?void 0:y.content)??""}};h&&(f.filter={},f.search&&(f.search.content=""),f.page=1);const g=await e.getList(f);r(b=>({initLoading:!1,searchLoading:!1,isNextPageLoading:!1,paging:{...g,rows:(u==null?void 0:u.page)===1?g.rows:b.paging.rows.concat(g.rows)},hasNextPage:g.page<g.totalPages}))}catch{}}},o=()=>(r(u=>({...u,initLoading:!0})),i(void 0,!0)),s=u=>(r(h=>({...h,initLoading:!0})),i(u)),a=u=>{i({page:n.paging.page+1,search:{content:u}})},l=u=>{r(h=>({...h,searchLoading:!0})),i({page:1,search:{content:u}})};_.useEffect(()=>{e.disabled||(r(u=>({...u,initLoading:!0})),i({page:1}))},[...e.dependencyList||[]]);const c=()=>{r(u=>({...u,initLoading:!u.initLoading}))};return{...e,loadNextPage:a,handleChangeSearch:l,paging:n.paging,hasNextPage:n.hasNextPage,isNextPageLoading:n.isNextPageLoading,searchLoading:n.searchLoading,loading:e.loading||n.initLoading,getList:s,reset:o,toggleLoading:c}}function Pg(e){return p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M12 3.16663H3.99998C2.80336 3.16663 1.83331 4.13668 1.83331 5.33329V12C1.83331 13.1966 2.80336 14.1666 3.99998 14.1666H12C13.1966 14.1666 14.1666 13.1966 14.1666 12V5.33329C14.1666 4.13668 13.1966 3.16663 12 3.16663Z",stroke:"#85858A"}),p.jsx("path",{d:"M4.5 1.83337V4.16671",stroke:"#85858A",strokeLinecap:"round"}),p.jsx("path",{d:"M2.5 6.16663H13.5",stroke:"#85858A",strokeLinecap:"round"}),p.jsx("path",{d:"M11.8333 1.83337V4.16671",stroke:"#85858A",strokeLinecap:"round"}),p.jsx("path",{d:"M5.5 9.33337C5.77614 9.33337 6 9.10952 6 8.83337C6 8.55723 5.77614 8.33337 5.5 8.33337C5.22386 8.33337 5 8.55723 5 8.83337C5 9.10952 5.22386 9.33337 5.5 9.33337Z",fill:"#85858A"}),p.jsx("path",{d:"M8.16669 9.33337C8.44283 9.33337 8.66669 9.10952 8.66669 8.83337C8.66669 8.55723 8.44283 8.33337 8.16669 8.33337C7.89054 8.33337 7.66669 8.55723 7.66669 8.83337C7.66669 9.10952 7.89054 9.33337 8.16669 9.33337Z",fill:"#85858A"}),p.jsx("path",{d:"M10.8333 9.33337C11.1095 9.33337 11.3333 9.10952 11.3333 8.83337C11.3333 8.55723 11.1095 8.33337 10.8333 8.33337C10.5572 8.33337 10.3333 8.55723 10.3333 8.83337C10.3333 9.10952 10.5572 9.33337 10.8333 9.33337Z",fill:"#85858A"}),p.jsx("path",{d:"M5.5 12C5.77614 12 6 11.7761 6 11.5C6 11.2239 5.77614 11 5.5 11C5.22386 11 5 11.2239 5 11.5C5 11.7761 5.22386 12 5.5 12Z",fill:"#85858A"}),p.jsx("path",{d:"M8.16669 12C8.44283 12 8.66669 11.7761 8.66669 11.5C8.66669 11.2239 8.44283 11 8.16669 11C7.89054 11 7.66669 11.2239 7.66669 11.5C7.66669 11.7761 7.89054 12 8.16669 12Z",fill:"#85858A"}),p.jsx("path",{d:"M10.8333 12C11.1095 12 11.3333 11.7761 11.3333 11.5C11.3333 11.2239 11.1095 11 10.8333 11C10.5572 11 10.3333 11.2239 10.3333 11.5C10.3333 11.7761 10.5572 12 10.8333 12Z",fill:"#85858A"})]})}const Ag="Reset date";function kg(e){var s,a;const[t,n]=_.useState(e.value),r=!(t!=null&&t.startDate)||!t.endDate?"":se(t.startDate).format("DD/MM/YYYY")+" - "+se(t.endDate).format("DD/MM/YYYY"),i=_.useRef(Date.now()),o=()=>{i.current=Date.now()};return _.useEffect(()=>{var l;n(e.value),(l=e.value)!=null&&l.endDate&&e.value.startDate||o()},[e.value]),p.jsx(S.DateRangePicker,{initialSettings:{autoApply:!0,ranges:{Today:[se(),se()],Yesterday:[se().subtract(1,"days"),se().subtract(1,"days")],"Last 7 days":[se().subtract(6,"days"),se()],"Last 30 days":[se().subtract(29,"days"),se()],"This month":[se().startOf("month"),se().endOf("month")],"Last month":[se().subtract(1,"month").startOf("month"),se().subtract(1,"month").endOf("month")],"Reset date":[((s=e.dateReset)==null?void 0:s.startDate)??void 0,((a=e.dateReset)==null?void 0:a.endDate)??void 0]},alwaysShowCalendars:!0,startDate:(t==null?void 0:t.startDate)??void 0,endDate:(t==null?void 0:t.endDate)??void 0,opens:"left",...e.initialSettings},onApply:(l,c)=>{var f,g,b;const d=c.chosenLabel===Ag,{startDate:u,endDate:h}=c,m=d?((f=e.dateReset)==null?void 0:f.startDate)??void 0:u.toDate(),y=d?((g=e.dateReset)==null?void 0:g.endDate)??void 0:h.toDate();console.log("onApply"),n({startDate:m,endDate:y}),(b=e.onChange)==null||b.call(e,{startDate:m,endDate:y})},children:p.jsx(I.TextField,{label:e.label??"Permit date",placeholder:"Select date range",value:r,InputProps:{readOnly:!0,endAdornment:p.jsx(Pg,{width:24,height:24,color:"gray"})},fullWidth:!0,sx:{"& *":{cursor:"pointer"},display:"flex",justifyContent:"center"}})},i.current)}function Og(e){return p.jsx("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M16 2.75H8C5.10051 2.75 2.75 5.10051 2.75 8V16C2.75 18.8995 5.10051 21.25 8 21.25H16C18.8995 21.25 21.25 18.8995 21.25 16V8C21.25 5.10051 18.8995 2.75 16 2.75Z",stroke:"#85858A",strokeWidth:"1.5"})})}function jg(e){return p.jsxs("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M16 2.75H8C5.10051 2.75 2.75 5.10051 2.75 8V16C2.75 18.8995 5.10051 21.25 8 21.25H16C18.8995 21.25 21.25 18.8995 21.25 16V8C21.25 5.10051 18.8995 2.75 16 2.75Z",stroke:"#009D4F",strokeWidth:"1.5"}),p.jsx("path",{d:"M9 12L11 14L15 10",stroke:"#009D4F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}const Mg=["granted","denied"],Ng=e=>{const[t,n]=_.useState(!1),r=()=>{Notification.requestPermission(function(o){o==="granted"&&S.requestForToken(e),Mg.includes(o)&&n(!0)})},i=()=>{n(!0)};return p.jsx(p.Fragment,{children:t?"":p.jsx("div",{className:S.styles$1["subscription-diaglog"],children:p.jsxs("div",{className:S.styles$1["subscription-container"],children:[p.jsx("h4",{className:S.styles$1["subscription-title"],children:"Notification"}),p.jsx("p",{className:S.styles$1["subscription-text"],children:"Option to receive notifications about the latest information. You can turn them off at any time."}),p.jsxs("div",{className:S.styles$1["subscription-btn__container"],children:[p.jsx("button",{className:S.styles$1["btn-cancel"],onClick:i,children:"Not now"}),p.jsx("button",{className:S.styles$1["btn-success"],onClick:r,children:"Turn on"})]})]})})})},Dg=e=>{const[t,n]=_.useState({userName:"",message:"",context:""}),r=({closeToast:s})=>p.jsx("i",{className:"material-icons",onClick:s,children:p.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})}),i=()=>{S.B(p.jsx(o,{}),{closeButton:r,position:"top-center",closeOnClick:!1,hideProgressBar:!0,style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:ti.color.textPrimary}})};function o(){return p.jsx("div",{className:S.styles$2["notification-massage_container"],children:p.jsxs("div",{className:S.styles$2["notification-massage_content"],children:[p.jsx("h6",{className:S.styles$2["notification-name"],children:t==null?void 0:t.userName}),p.jsxs("div",{className:S.styles$2["notification-message_service"],children:[p.jsxs("span",{children:[`${t==null?void 0:t.message} `," "]}),p.jsx("span",{children:t==null?void 0:t.context})]})]})})}return _.useEffect(()=>{t&&Notification.permission==="granted"&&t.userName&&t.message&&t.context&&i()},[t]),S.onMessageListener(e).then(s=>{var a,l,c;console.log(s),n({userName:(a=s==null?void 0:s.data)==null?void 0:a.userName,message:(l=s==null?void 0:s.data)==null?void 0:l.message,context:(c=s==null?void 0:s.data)==null?void 0:c.context})}).catch(s=>console.log("failed: ",s)),p.jsx("div",{children:"Notification"in window?Notification.permission==="default"?p.jsx(Ng,{...e}):t&&Notification.permission==="granted"?p.jsx(S.Q,{}):"":""})};exports.pushError=S.pushError;exports.pushSuccess=S.pushSuccess;exports.pushWarning=S.pushWarning;exports.AutocompleteOption=ei;exports.CheckedIcon=jg;exports.GlobalMenu=zh;exports.NoData=Fh;exports.NotificationBase=Dg;exports.PopUpBase=Yh;exports.StyledAutocomplete=Tg;exports.StyledDateRangePicker=kg;exports.ToastConfig=yu;exports.TopBar=jc;exports.UnauthorizedPage=qh;exports.UncheckedIcon=Og;exports.usePopUp=Gh;exports.useStyledAutocomplete=_g;
81
+ } });`:Jt(12,g?` (${g})`:"",JSON.stringify(f.main)));return Oo(f,"light",w,r),Oo(f,"dark",x,r),f.contrastText||(f.contrastText=u(f.main)),f},m={dark:jr,light:ko};return process.env.NODE_ENV!=="production"&&(m[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ne(S._extends({common:S._extends({},nn),mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:a,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:rg,contrastThreshold:n,getContrastText:u,augmentColor:h,tonalOffset:r},m[t]),i)}const vg=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function bg(e){return Math.round(e*1e5)/1e5}const jo={textTransform:"uppercase"},Mo='"Roboto", "Helvetica", "Arial", sans-serif';function xg(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Mo,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,h=S._objectWithoutPropertiesLoose(n,vg);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=i/14,y=u||(b=>`${b/c*m}rem`),f=(b,w,x,E,v)=>S._extends({fontFamily:r,fontWeight:b,fontSize:y(w),lineHeight:x},r===Mo?{letterSpacing:`${bg(E/w)}em`}:{},v,d),g={h1:f(o,96,1.167,-1.5),h2:f(o,60,1.2,-.5),h3:f(s,48,1.167,0),h4:f(s,34,1.235,.25),h5:f(s,24,1.334,0),h6:f(a,20,1.6,.15),subtitle1:f(s,16,1.75,.15),subtitle2:f(a,14,1.57,.1),body1:f(s,16,1.5,.15),body2:f(s,14,1.43,.15),button:f(a,14,1.75,.4,jo),caption:f(s,12,1.66,.4),overline:f(s,12,2.66,1,jo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ne(S._extends({htmlFontSize:c,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},g),h,{clone:!1})}const wg=.2,Sg=.14,Eg=.12;function G(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${wg})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Sg})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Eg})`].join(",")}const Tg=["none",G(0,2,1,-1,0,1,1,0,0,1,3,0),G(0,3,1,-2,0,2,2,0,0,1,5,0),G(0,3,3,-2,0,3,4,0,0,1,8,0),G(0,2,4,-1,0,4,5,0,0,1,10,0),G(0,3,5,-1,0,5,8,0,0,1,14,0),G(0,3,5,-1,0,6,10,0,0,1,18,0),G(0,4,5,-2,0,7,10,1,0,2,16,1),G(0,5,5,-3,0,8,10,1,0,3,14,2),G(0,5,6,-3,0,9,12,1,0,3,16,2),G(0,6,6,-3,0,10,14,1,0,4,18,3),G(0,6,7,-4,0,11,15,1,0,4,20,3),G(0,7,8,-4,0,12,17,2,0,5,22,4),G(0,7,8,-4,0,13,19,2,0,5,24,4),G(0,7,9,-4,0,14,21,2,0,5,26,4),G(0,8,9,-5,0,15,22,2,0,6,28,5),G(0,8,10,-5,0,16,24,2,0,6,30,5),G(0,8,11,-5,0,17,26,2,0,6,32,5),G(0,9,11,-5,0,18,28,2,0,7,34,6),G(0,9,12,-6,0,19,29,2,0,7,36,6),G(0,10,13,-6,0,20,31,3,0,8,38,7),G(0,10,13,-6,0,21,33,3,0,8,40,7),G(0,10,14,-6,0,22,35,3,0,8,42,7),G(0,11,14,-7,0,23,36,3,0,9,44,8),G(0,11,15,-7,0,24,38,3,0,9,46,8)],Cg=Tg,_g=["duration","easing","delay"],Pg={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ag={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function No(e){return`${Math.round(e)}ms`}function kg(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Og(e){const t=S._extends({},Pg,e.easing),n=S._extends({},Ag,e.duration),r=(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=o,c=S._objectWithoutPropertiesLoose(o,_g);if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",u=h=>!isNaN(parseFloat(h));!d(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!u(s)&&!d(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),d(a)||console.error('MUI: Argument "easing" must be a string.'),!u(l)&&!d(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
82
+ `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof s=="string"?s:No(s)} ${a} ${typeof l=="string"?l:No(l)}`).join(",")};return S._extends({getAutoHeightDuration:kg,create:r},e,{easing:t,duration:n})}const jg={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Mg=jg,Ng=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Dg(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=S._objectWithoutPropertiesLoose(e,Ng);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Jt(18));const a=yg(r),l=Ai(e);let c=Ne(l,{mixins:zm(l.breakpoints,n),palette:a,shadows:Cg.slice(),typography:xg(a,o),transitions:Og(i),zIndex:S._extends({},Mg)});if(c=Ne(c,s),c=t.reduce((d,u)=>Ne(d,u),c),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],u=(h,m)=>{let y;for(y in h){const f=h[y];if(d.indexOf(y)!==-1&&Object.keys(f).length>0){if(process.env.NODE_ENV!=="production"){const g=Ti("",y);console.error([`MUI: The \`${m}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:f}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
83
+ `))}h[y]={}}}};Object.keys(c.components).forEach(h=>{const m=c.components[h].styleOverrides;m&&h.indexOf("Mui")===0&&u(m,h)})}return c.unstable_sxConfig=S._extends({},dn,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(u){return Pi({sx:u,theme:this})},c}const Rg=Dg(),hc=Rg,pc="$$material";function Vg({props:e,name:t}){return Rm({props:e,name:t,defaultTheme:hc,themeId:pc})}var hn={};const Ig=S.getAugmentedNamespace(S._extends$1),Lg=S.getAugmentedNamespace(S.objectWithoutPropertiesLoose),$g=S.getAugmentedNamespace(Om),zg=S.getAugmentedNamespace(e1),Fg=S.getAugmentedNamespace(a1),Bg=S.getAugmentedNamespace(o1),Wg=S.getAugmentedNamespace(fp),Hg=S.getAugmentedNamespace($m);var Dt=oc;Object.defineProperty(hn,"__esModule",{value:!0});var Ug=hn.default=o2,Yg=hn.shouldForwardProp=kn;hn.systemDefaultTheme=void 0;var Se=Dt(Ig),Qr=Dt(Lg),Do=t2($g),Gg=zg,qg=Dt(Fg),Kg=Dt(Bg),Xg=Dt(Wg),Zg=Dt(Hg);const Jg=["ownerState"],Qg=["variants"],e2=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function mc(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(mc=function(r){return r?n:t})(e)}function t2(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=mc(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function n2(e){return Object.keys(e).length===0}function r2(e){return typeof e=="string"&&e.charCodeAt(0)>96}function kn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const i2=hn.systemDefaultTheme=(0,Xg.default)(),Ro=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Sn({defaultTheme:e,theme:t,themeId:n}){return n2(t)?e:t[n]||t}function s2(e){return e?(t,n)=>n[e]:null}function On(e,t){let{ownerState:n}=t,r=(0,Qr.default)(t,Jg);const i=typeof e=="function"?e((0,Se.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>On(o,(0,Se.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let a=(0,Qr.default)(i,Qg);return o.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,Se.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Se.default)({ownerState:n},r,n)):l.style))}),a}return i}function o2(e={}){const{themeId:t,defaultTheme:n=i2,rootShouldForwardProp:r=kn,slotShouldForwardProp:i=kn}=e,o=s=>(0,Zg.default)((0,Se.default)({},s,{theme:Sn((0,Se.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{(0,Do.internal_processStyles)(s,v=>v.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:u,overridesResolver:h=s2(Ro(c))}=a,m=(0,Qr.default)(a,e2),y=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,f=u||!1;let g;process.env.NODE_ENV!=="production"&&l&&(g=`${l}-${Ro(c||"Root")}`);let b=kn;c==="Root"||c==="root"?b=r:c?b=i:r2(s)&&(b=void 0);const w=(0,Do.default)(s,(0,Se.default)({shouldForwardProp:b,label:g},m)),x=v=>typeof v=="function"&&v.__emotion_real!==v||(0,Gg.isPlainObject)(v)?T=>On(v,(0,Se.default)({},T,{theme:Sn({theme:T.theme,defaultTheme:n,themeId:t})})):v,E=(v,...T)=>{let C=x(v);const P=T?T.map(x):[];l&&h&&P.push(j=>{const R=Sn((0,Se.default)({},j,{defaultTheme:n,themeId:t}));if(!R.components||!R.components[l]||!R.components[l].styleOverrides)return null;const q=R.components[l].styleOverrides,H={};return Object.entries(q).forEach(([ue,U])=>{H[ue]=On(U,(0,Se.default)({},j,{theme:R}))}),h(j,H)}),l&&!y&&P.push(j=>{var R;const q=Sn((0,Se.default)({},j,{defaultTheme:n,themeId:t})),H=q==null||(R=q.components)==null||(R=R[l])==null?void 0:R.variants;return On({variants:H},(0,Se.default)({},j,{theme:q}))}),f||P.push(o);const k=P.length-T.length;if(Array.isArray(v)&&k>0){const j=new Array(k).fill("");C=[...v,...j],C.raw=[...v.raw,...j]}const D=w(C,...P);if(process.env.NODE_ENV!=="production"){let j;l&&(j=`${l}${(0,qg.default)(c||"")}`),j===void 0&&(j=`Styled(${(0,Kg.default)(s)})`),D.displayName=j}return s.muiName&&(D.muiName=s.muiName),D};return w.withConfig&&(E.withConfig=w.withConfig),E}}const a2=e=>Yg(e)&&e!=="classes",l2=Ug({themeId:pc,defaultTheme:hc,rootShouldForwardProp:a2}),c2=l2;function u2(e){return Ti("MuiSvgIcon",e)}h1("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const d2=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],f2=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${at(t)}`,`fontSize${at(n)}`]};return l1(i,u2,r)},h2=c2("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${at(n.color)}`],t[`fontSize${at(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,a,l,c,d,u,h,m,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(u=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?u:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),zi=N.forwardRef(function(t,n){const r=Vg({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:h="0 0 24 24"}=r,m=S._objectWithoutPropertiesLoose(r,d2),y=N.isValidElement(i)&&i.type==="svg",f=S._extends({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y}),g={};d||(g.viewBox=h);const b=f2(f);return p.jsxs(h2,S._extends({as:a,className:S.clsx(b.root,o),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:n},g,m,y&&i.props,{ownerState:f,children:[y?i.props.children:i,u?p.jsx("title",{children:u}):null]}))});process.env.NODE_ENV!=="production"&&(zi.propTypes={children:S.PropTypes.node,classes:S.PropTypes.object,className:S.PropTypes.string,color:S.PropTypes.oneOfType([S.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),S.PropTypes.string]),component:S.PropTypes.elementType,fontSize:S.PropTypes.oneOfType([S.PropTypes.oneOf(["inherit","large","medium","small"]),S.PropTypes.string]),htmlColor:S.PropTypes.string,inheritViewBox:S.PropTypes.bool,shapeRendering:S.PropTypes.string,sx:S.PropTypes.oneOfType([S.PropTypes.arrayOf(S.PropTypes.oneOfType([S.PropTypes.func,S.PropTypes.object,S.PropTypes.bool])),S.PropTypes.func,S.PropTypes.object]),titleAccess:S.PropTypes.string,viewBox:S.PropTypes.string});zi.muiName="SvgIcon";const Vo=zi;function p2(e,t){function n(r,i){return p.jsx(Vo,S._extends({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Vo.muiName,N.memo(N.forwardRef(n))}const m2=p2(p.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");function Io(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Lo=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function g2(e,t){return!!(e===t||Lo(e)&&Lo(t))}function y2(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!g2(e[n],t[n]))return!1;return!0}function Mr(e,t){t===void 0&&(t=y2);var n,r=[],i,o=!1;function s(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&n===this&&t(a,r)||(i=e.apply(this,a),o=!0,n=this,r=a),i}return s}var v2=typeof performance=="object"&&typeof performance.now=="function",$o=v2?function(){return performance.now()}:function(){return Date.now()};function zo(e){cancelAnimationFrame(e.id)}function b2(e,t){var n=$o();function r(){$o()-n>=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var Nr=-1;function Fo(e){if(e===void 0&&(e=!1),Nr===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Nr=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Nr}var vt=null;function Bo(e){if(e===void 0&&(e=!1),vt===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?vt="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?vt="negative":vt="positive-ascending"),document.body.removeChild(t),vt}return vt}process.env.NODE_ENV;var x2=150,w2=function(t,n){return t},jn=null,Mn=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(jn=new WeakSet,Mn=new WeakSet);function S2(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(u){S._inheritsLoose(h,u);function h(y){var f;return f=u.call(this,y)||this,f._instanceProps=l(f.props,Io(f)),f._outerRef=void 0,f._resetIsScrollingTimeoutId=null,f.state={instance:Io(f),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof f.props.initialScrollOffset=="number"?f.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},f._callOnItemsRendered=void 0,f._callOnItemsRendered=Mr(function(g,b,w,x){return f.props.onItemsRendered({overscanStartIndex:g,overscanStopIndex:b,visibleStartIndex:w,visibleStopIndex:x})}),f._callOnScroll=void 0,f._callOnScroll=Mr(function(g,b,w){return f.props.onScroll({scrollDirection:g,scrollOffset:b,scrollUpdateWasRequested:w})}),f._getItemStyle=void 0,f._getItemStyle=function(g){var b=f.props,w=b.direction,x=b.itemSize,E=b.layout,v=f._getItemStyleCache(c&&x,c&&E,c&&w),T;if(v.hasOwnProperty(g))T=v[g];else{var C=n(f.props,g,f._instanceProps),P=i(f.props,g,f._instanceProps),k=w==="horizontal"||E==="horizontal",D=w==="rtl",j=k?C:0;v[g]=T={position:"absolute",left:D?void 0:j,right:D?j:void 0,top:k?0:C,height:k?"100%":P,width:k?P:"100%"}}return T},f._getItemStyleCache=void 0,f._getItemStyleCache=Mr(function(g,b,w){return{}}),f._onScrollHorizontal=function(g){var b=g.currentTarget,w=b.clientWidth,x=b.scrollLeft,E=b.scrollWidth;f.setState(function(v){if(v.scrollOffset===x)return null;var T=f.props.direction,C=x;if(T==="rtl")switch(Bo()){case"negative":C=-x;break;case"positive-descending":C=E-w-x;break}return C=Math.max(0,Math.min(C,E-w)),{isScrolling:!0,scrollDirection:v.scrollOffset<C?"forward":"backward",scrollOffset:C,scrollUpdateWasRequested:!1}},f._resetIsScrollingDebounced)},f._onScrollVertical=function(g){var b=g.currentTarget,w=b.clientHeight,x=b.scrollHeight,E=b.scrollTop;f.setState(function(v){if(v.scrollOffset===E)return null;var T=Math.max(0,Math.min(E,x-w));return{isScrolling:!0,scrollDirection:v.scrollOffset<T?"forward":"backward",scrollOffset:T,scrollUpdateWasRequested:!1}},f._resetIsScrollingDebounced)},f._outerRefSetter=function(g){var b=f.props.outerRef;f._outerRef=g,typeof b=="function"?b(g):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=g)},f._resetIsScrollingDebounced=function(){f._resetIsScrollingTimeoutId!==null&&zo(f._resetIsScrollingTimeoutId),f._resetIsScrollingTimeoutId=b2(f._resetIsScrolling,x2)},f._resetIsScrolling=function(){f._resetIsScrollingTimeoutId=null,f.setState({isScrolling:!1},function(){f._getItemStyleCache(-1,null)})},f}h.getDerivedStateFromProps=function(f,g){return E2(f,g),d(f),null};var m=h.prototype;return m.scrollTo=function(f){f=Math.max(0,f),this.setState(function(g){return g.scrollOffset===f?null:{scrollDirection:g.scrollOffset<f?"forward":"backward",scrollOffset:f,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},m.scrollToItem=function(f,g){g===void 0&&(g="auto");var b=this.props,w=b.itemCount,x=b.layout,E=this.state.scrollOffset;f=Math.max(0,Math.min(f,w-1));var v=0;if(this._outerRef){var T=this._outerRef;x==="vertical"?v=T.scrollWidth>T.clientWidth?Fo():0:v=T.scrollHeight>T.clientHeight?Fo():0}this.scrollTo(o(this.props,f,g,E,this._instanceProps,v))},m.componentDidMount=function(){var f=this.props,g=f.direction,b=f.initialScrollOffset,w=f.layout;if(typeof b=="number"&&this._outerRef!=null){var x=this._outerRef;g==="horizontal"||w==="horizontal"?x.scrollLeft=b:x.scrollTop=b}this._callPropsCallbacks()},m.componentDidUpdate=function(){var f=this.props,g=f.direction,b=f.layout,w=this.state,x=w.scrollOffset,E=w.scrollUpdateWasRequested;if(E&&this._outerRef!=null){var v=this._outerRef;if(g==="horizontal"||b==="horizontal")if(g==="rtl")switch(Bo()){case"negative":v.scrollLeft=-x;break;case"positive-ascending":v.scrollLeft=x;break;default:var T=v.clientWidth,C=v.scrollWidth;v.scrollLeft=C-T-x;break}else v.scrollLeft=x;else v.scrollTop=x}this._callPropsCallbacks()},m.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&zo(this._resetIsScrollingTimeoutId)},m.render=function(){var f=this.props,g=f.children,b=f.className,w=f.direction,x=f.height,E=f.innerRef,v=f.innerElementType,T=f.innerTagName,C=f.itemCount,P=f.itemData,k=f.itemKey,D=k===void 0?w2:k,j=f.layout,R=f.outerElementType,q=f.outerTagName,H=f.style,ue=f.useIsScrolling,U=f.width,ae=this.state.isScrolling,le=w==="horizontal"||j==="horizontal",pe=le?this._onScrollHorizontal:this._onScrollVertical,Oe=this._getRangeToRender(),W=Oe[0],_e=Oe[1],Re=[];if(C>0)for(var be=W;be<=_e;be++)Re.push(_.createElement(g,{data:P,key:D(be,P),index:be,isScrolling:ue?ae:void 0,style:this._getItemStyle(be)}));var Ve=r(this.props,this._instanceProps);return _.createElement(R||q||"div",{className:b,onScroll:pe,ref:this._outerRefSetter,style:S._extends({position:"relative",height:x,width:U,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:w},H)},_.createElement(v||T||"div",{children:Re,ref:E,style:{height:le?"100%":Ve,pointerEvents:ae?"none":void 0,width:le?Ve:"100%"}}))},m._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var f=this.props.itemCount;if(f>0){var g=this._getRangeToRender(),b=g[0],w=g[1],x=g[2],E=g[3];this._callOnItemsRendered(b,w,x,E)}}if(typeof this.props.onScroll=="function"){var v=this.state,T=v.scrollDirection,C=v.scrollOffset,P=v.scrollUpdateWasRequested;this._callOnScroll(T,C,P)}},m._getRangeToRender=function(){var f=this.props,g=f.itemCount,b=f.overscanCount,w=this.state,x=w.isScrolling,E=w.scrollDirection,v=w.scrollOffset;if(g===0)return[0,0,0,0];var T=s(this.props,v,this._instanceProps),C=a(this.props,T,v,this._instanceProps),P=!x||E==="backward"?Math.max(1,b):1,k=!x||E==="forward"?Math.max(1,b):1;return[Math.max(0,T-P),Math.max(0,Math.min(g-1,C+k)),T,C]},h}(_.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var E2=function(t,n){var r=t.children,i=t.direction,o=t.height,s=t.layout,a=t.innerTagName,l=t.outerTagName,c=t.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||l!=null)&&Mn&&!Mn.has(d)&&(Mn.add(d),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var u=i==="horizontal"||s==="horizontal";switch(i){case"horizontal":case"vertical":jn&&!jn.has(d)&&(jn.add(d),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(s){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+s+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(u&&typeof c!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(c===null?"null":typeof c)+'" was specified.'));if(!u&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},T2=50,Ct=function(t,n,r){var i=t,o=i.itemSize,s=r.itemMetadataMap,a=r.lastMeasuredIndex;if(n>a){var l=0;if(a>=0){var c=s[a];l=c.offset+c.size}for(var d=a+1;d<=n;d++){var u=o(d);s[d]={offset:l,size:u},l+=u}r.lastMeasuredIndex=n}return s[n]},C2=function(t,n,r){var i=n.itemMetadataMap,o=n.lastMeasuredIndex,s=o>0?i[o].offset:0;return s>=r?gc(t,n,o,0,r):_2(t,n,Math.max(0,o),r)},gc=function(t,n,r,i,o){for(;i<=r;){var s=i+Math.floor((r-i)/2),a=Ct(t,s,n).offset;if(a===o)return s;a<o?i=s+1:a>o&&(r=s-1)}return i>0?i-1:0},_2=function(t,n,r,i){for(var o=t.itemCount,s=1;r<o&&Ct(t,r,n).offset<i;)r+=s,s*=2;return gc(t,n,Math.min(r,o-1),Math.floor(r/2),i)},Wo=function(t,n){var r=t.itemCount,i=n.itemMetadataMap,o=n.estimatedItemSize,s=n.lastMeasuredIndex,a=0;if(s>=r&&(s=r-1),s>=0){var l=i[s];a=l.offset+l.size}var c=r-s-1,d=c*o;return a+d},P2=S2({getItemOffset:function(t,n,r){return Ct(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:Wo,getOffsetForIndexAndAlignment:function(t,n,r,i,o,s){var a=t.direction,l=t.height,c=t.layout,d=t.width,u=a==="horizontal"||c==="horizontal",h=u?d:l,m=Ct(t,n,o),y=Wo(t,o),f=Math.max(0,Math.min(y-h,m.offset)),g=Math.max(0,m.offset-h+m.size+s);switch(r==="smart"&&(i>=g-h&&i<=f+h?r="auto":r="center"),r){case"start":return f;case"end":return g;case"center":return Math.round(g+(f-g)/2);case"auto":default:return i>=g&&i<=f?i:i<g?g:f}},getStartIndexForOffset:function(t,n,r){return C2(t,r,n)},getStopIndexForStartIndex:function(t,n,r,i){for(var o=t.direction,s=t.height,a=t.itemCount,l=t.layout,c=t.width,d=o==="horizontal"||l==="horizontal",u=d?c:s,h=Ct(t,n,i),m=r+u,y=h.offset+h.size,f=n;f<a-1&&y<m;)f++,y+=Ct(t,f,i).size;return f},initInstanceProps:function(t,n){var r=t,i=r.estimatedItemSize,o={itemMetadataMap:{},estimatedItemSize:i||T2,lastMeasuredIndex:-1};return n.resetAfterIndex=function(s,a){a===void 0&&(a=!0),o.lastMeasuredIndex=Math.min(o.lastMeasuredIndex,s-1),n._getItemStyleCache(-1),a&&n.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var n=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});function Nn(e,t){return t?e:void 0}function ei(e){return p.jsx(L.Stack,{sx:{cursor:"pointer"},onClick:t=>{var n;t.preventDefault(),t.stopPropagation(),(n=e.onClick)==null||n.call(e,e.option)},...e.stackProps,children:p.jsx(L.Stack,{sx:{p:1,transition:"0.2s",borderRadius:"5px",cursor:"pointer",...Nn({backgroundColor:"#eeeeee80"},e.select),":hover":{backgroundColor:"#eeeeee80",borderColor:"transparent"}},children:e.renderOption(e.option)})})}const qn=37,A2=(e,t)=>{const s=document.createElement("p");s.innerText=t,s.style.width=`${e-16-16-4}px`,document.body.appendChild(s);const a=s.offsetHeight;return document.body.removeChild(s),a>21?qn+21:qn};function k2(e){const[t,n]=_.useState(!1),[r,i]=_.useState(""),[o,s]=_.useState(""),[a,l]=_.useState(!1),{isRequired:c=!1}=e,d=_.useCallback(S._.debounce(E=>{var v;(v=e.handleChangeSearch)==null||v.call(e,E)},300),[e.handleChangeSearch]),u=()=>{n(!t)},h=()=>{n(!1),s(""),d("")};_.useEffect(()=>{i(e.value?e.getOptionLabel(e.value):"")},[e.value]),_.useEffect(()=>{t||i(e.value?e.getOptionLabel(e.value):"")},[t]),_.useEffect(()=>{l(e.searchLoading)},[e.paging.rows,e.searchLoading]);const m=e.paging.rows,{hasNextPage:y}=e,f=y?m.length+1:m.length,g=()=>e.isNextPageLoading?void 0:e.loadNextPage(o),b=E=>!y||E<m.length,w=E=>{i(E.target.value),t&&(s(E.target.value),d(E.target.value),l(!0))},x=_.useRef(null);return p.jsx(L.ClickAwayListener,{onClickAway:h,mouseEvent:"onMouseDown",touchEvent:"onTouchEnd",children:p.jsx("div",{ref:x,style:{width:e.wrapperWidth??"auto"},children:p.jsxs(L.Stack,{sx:{position:"relative"},children:[p.jsx(L.TextField,{required:c,label:e.label,value:r,disabled:e.loading||e.disabled||e.readOnly,fullWidth:!0,error:e.error,helperText:e.helperText,onClick:E=>{e.loading||e.disabled||e.readOnly||(E.preventDefault(),E.stopPropagation(),n(!0))},autoComplete:"off",onChange:w,placeholder:e.placeholder||"All options",sx:{"& input:not(:focus)":{"&::placeholder":{color:e.placeHolderColor||"#C5C5C5",opacity:1}}},InputProps:{readOnly:e.readOnly,endAdornment:p.jsx(L.IconButton,{size:"small",sx:{padding:"1px"},onClick:E=>{E.preventDefault(),E.stopPropagation(),u()},disabled:e.loading||e.disabled||e.readOnly,children:e.loading?p.jsx(L.CircularProgress,{size:"16px"}):p.jsx(m2,{fontSize:"small",style:{transition:"0.3s"},className:t?"rotate":""})})}}),p.jsx(L.Fade,{in:t,timeout:0,unmountOnExit:!1,children:p.jsxs(L.Paper,{sx:{position:"absolute",top:"calc(100% + 2px)",zIndex:2,left:0,right:0,p:1},children:[!e.disabledAllOption&&p.jsx(L.Stack,{sx:{...Nn({display:"none"},!!a)},children:p.jsx(L.Stack,{children:p.jsx(ei,{option:void 0,select:!e.value,renderOption:()=>p.jsx(L.Typography,{children:e.placeholder||"All options"}),onClick:()=>{var E,v;h(),(E=e.onChange)==null||E.call(e,void 0),(v=e.handleChangeSearch)==null||v.call(e,"")}})})}),!a&&p.jsx(S.InfiniteLoader,{isItemLoaded:b,itemCount:f,loadMoreItems:g,threshold:5,children:({onItemsRendered:E,ref:v})=>p.jsx(P2,{ref:v,onItemsRendered:E,height:qn*Math.min(e.itemsNumber||6,f),itemCount:f,itemSize:T=>{var C;return A2((C=x.current)==null?void 0:C.offsetWidth,m[T]?e.getOptionLabel(m[T]):"")},width:"100%",className:"styled-scroll",children:({index:T,style:C})=>{var k;const P=m[T];return b(T)?p.jsx(ei,{stackProps:{style:C},option:P,renderOption:D=>{var j;return p.jsxs(L.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[p.jsx(L.Typography,{children:e.getOptionLabel(D)}),(j=e.renderOptionTooltip)==null?void 0:j.call(e,D)]})},onClick:D=>{var j;h(),(j=e.onChange)==null||j.call(e,D)},select:((k=e.isEqual)==null?void 0:k.call(e,P,e.value))??S._.isEqual(P,e.value)}):p.jsx(L.Stack,{style:C,sx:{height:qn,pl:1},justifyContent:"center",children:p.jsx(L.Typography,{children:"Loading..."})})}})}),p.jsx(L.Stack,{sx:{height:30,display:"flex",justifyContent:"center",paddingLeft:"5px",...Nn({display:"none"},!a)},children:p.jsx(L.Typography,{color:"grayText",children:"Searching..."})}),p.jsx(L.Stack,{sx:{height:30,display:"flex",justifyContent:"center",paddingLeft:"5px",...Nn({display:"none"},!!(m.length||e.loading||a))},children:p.jsx(L.Typography,{color:"grayText",children:"No options"})})]})})]})})})}function O2(e){var d;const{listProps:t}=e,[n,r]=_.useState({initLoading:!e.disabled,searchLoading:!1,hasNextPage:!1,isNextPageLoading:!1,paging:{page:1,pageSize:((d=e.listProps)==null?void 0:d.pageSize)||20,rows:[],total:0,totalPages:1}}),i=async(u,h)=>{var m,y;if(e.list)r(()=>{var b;const f=((b=u==null?void 0:u.search)==null?void 0:b.content)||"";return{hasNextPage:!1,isNextPageLoading:!1,paging:{page:1,pageSize:1e5,rows:e.list.options.filter(w=>e.list.searchOption?e.list.searchOption(w,f):S.search(w,f,e.list.searchFields)),total:e.list.options.length,totalPages:1},searchLoading:!1,initLoading:!1}});else{r(f=>({...f,isNextPageLoading:!0}));try{const f={page:1,pageSize:20,filter:{...t==null?void 0:t.filter,...u==null?void 0:u.filter},...S.lodashExports.omit(t,"filter"),...S.lodashExports.omit(u,"filter"),search:{fields:((m=t==null?void 0:t.search)==null?void 0:m.fields)??[],content:((y=u==null?void 0:u.search)==null?void 0:y.content)??""}};h&&(f.filter={},f.search&&(f.search.content=""),f.page=1);const g=await e.getList(f);r(b=>({initLoading:!1,searchLoading:!1,isNextPageLoading:!1,paging:{...g,rows:(u==null?void 0:u.page)===1?g.rows:b.paging.rows.concat(g.rows)},hasNextPage:g.page<g.totalPages}))}catch{}}},o=()=>(r(u=>({...u,initLoading:!0})),i(void 0,!0)),s=u=>(r(h=>({...h,initLoading:!0})),i(u)),a=u=>{i({page:n.paging.page+1,search:{content:u}})},l=u=>{r(h=>({...h,searchLoading:!0})),i({page:1,search:{content:u}})};_.useEffect(()=>{e.disabled||(r(u=>({...u,initLoading:!0})),i({page:1}))},[...e.dependencyList||[]]);const c=()=>{r(u=>({...u,initLoading:!u.initLoading}))};return{...e,loadNextPage:a,handleChangeSearch:l,paging:n.paging,hasNextPage:n.hasNextPage,isNextPageLoading:n.isNextPageLoading,searchLoading:n.searchLoading,loading:e.loading||n.initLoading,getList:s,reset:o,toggleLoading:c}}function j2(e){return p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M12 3.16663H3.99998C2.80336 3.16663 1.83331 4.13668 1.83331 5.33329V12C1.83331 13.1966 2.80336 14.1666 3.99998 14.1666H12C13.1966 14.1666 14.1666 13.1966 14.1666 12V5.33329C14.1666 4.13668 13.1966 3.16663 12 3.16663Z",stroke:"#85858A"}),p.jsx("path",{d:"M4.5 1.83337V4.16671",stroke:"#85858A",strokeLinecap:"round"}),p.jsx("path",{d:"M2.5 6.16663H13.5",stroke:"#85858A",strokeLinecap:"round"}),p.jsx("path",{d:"M11.8333 1.83337V4.16671",stroke:"#85858A",strokeLinecap:"round"}),p.jsx("path",{d:"M5.5 9.33337C5.77614 9.33337 6 9.10952 6 8.83337C6 8.55723 5.77614 8.33337 5.5 8.33337C5.22386 8.33337 5 8.55723 5 8.83337C5 9.10952 5.22386 9.33337 5.5 9.33337Z",fill:"#85858A"}),p.jsx("path",{d:"M8.16669 9.33337C8.44283 9.33337 8.66669 9.10952 8.66669 8.83337C8.66669 8.55723 8.44283 8.33337 8.16669 8.33337C7.89054 8.33337 7.66669 8.55723 7.66669 8.83337C7.66669 9.10952 7.89054 9.33337 8.16669 9.33337Z",fill:"#85858A"}),p.jsx("path",{d:"M10.8333 9.33337C11.1095 9.33337 11.3333 9.10952 11.3333 8.83337C11.3333 8.55723 11.1095 8.33337 10.8333 8.33337C10.5572 8.33337 10.3333 8.55723 10.3333 8.83337C10.3333 9.10952 10.5572 9.33337 10.8333 9.33337Z",fill:"#85858A"}),p.jsx("path",{d:"M5.5 12C5.77614 12 6 11.7761 6 11.5C6 11.2239 5.77614 11 5.5 11C5.22386 11 5 11.2239 5 11.5C5 11.7761 5.22386 12 5.5 12Z",fill:"#85858A"}),p.jsx("path",{d:"M8.16669 12C8.44283 12 8.66669 11.7761 8.66669 11.5C8.66669 11.2239 8.44283 11 8.16669 11C7.89054 11 7.66669 11.2239 7.66669 11.5C7.66669 11.7761 7.89054 12 8.16669 12Z",fill:"#85858A"}),p.jsx("path",{d:"M10.8333 12C11.1095 12 11.3333 11.7761 11.3333 11.5C11.3333 11.2239 11.1095 11 10.8333 11C10.5572 11 10.3333 11.2239 10.3333 11.5C10.3333 11.7761 10.5572 12 10.8333 12Z",fill:"#85858A"})]})}const M2="Reset date";function N2(e){var s,a;const[t,n]=_.useState(e.value),r=!(t!=null&&t.startDate)||!t.endDate?"":se(t.startDate).format("DD/MM/YYYY")+" - "+se(t.endDate).format("DD/MM/YYYY"),i=_.useRef(Date.now()),o=()=>{i.current=Date.now()};return _.useEffect(()=>{var l;n(e.value),(l=e.value)!=null&&l.endDate&&e.value.startDate||o()},[e.value]),p.jsx(S.DateRangePicker,{initialSettings:{autoApply:!0,ranges:{Today:[se(),se()],Yesterday:[se().subtract(1,"days"),se().subtract(1,"days")],"Last 7 days":[se().subtract(6,"days"),se()],"Last 30 days":[se().subtract(29,"days"),se()],"This month":[se().startOf("month"),se().endOf("month")],"Last month":[se().subtract(1,"month").startOf("month"),se().subtract(1,"month").endOf("month")],"Reset date":[((s=e.dateReset)==null?void 0:s.startDate)??void 0,((a=e.dateReset)==null?void 0:a.endDate)??void 0]},alwaysShowCalendars:!0,startDate:(t==null?void 0:t.startDate)??void 0,endDate:(t==null?void 0:t.endDate)??void 0,opens:"left",...e.initialSettings},onApply:(l,c)=>{var f,g,b;const d=c.chosenLabel===M2,{startDate:u,endDate:h}=c,m=d?((f=e.dateReset)==null?void 0:f.startDate)??void 0:u.toDate(),y=d?((g=e.dateReset)==null?void 0:g.endDate)??void 0:h.toDate();console.log("onApply"),n({startDate:m,endDate:y}),(b=e.onChange)==null||b.call(e,{startDate:m,endDate:y})},children:p.jsx(L.TextField,{label:e.label??"Permit date",placeholder:"Select date range",value:r,InputProps:{readOnly:!0,endAdornment:p.jsx(j2,{width:24,height:24,color:"gray"})},fullWidth:!0,sx:{"& *":{cursor:"pointer"},display:"flex",justifyContent:"center"}})},i.current)}function D2(e){return p.jsx("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M16 2.75H8C5.10051 2.75 2.75 5.10051 2.75 8V16C2.75 18.8995 5.10051 21.25 8 21.25H16C18.8995 21.25 21.25 18.8995 21.25 16V8C21.25 5.10051 18.8995 2.75 16 2.75Z",stroke:"#85858A",strokeWidth:"1.5"})})}function R2(e){return p.jsxs("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M16 2.75H8C5.10051 2.75 2.75 5.10051 2.75 8V16C2.75 18.8995 5.10051 21.25 8 21.25H16C18.8995 21.25 21.25 18.8995 21.25 16V8C21.25 5.10051 18.8995 2.75 16 2.75Z",stroke:"#009D4F",strokeWidth:"1.5"}),p.jsx("path",{d:"M9 12L11 14L15 10",stroke:"#009D4F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}const V2=["granted","denied"],I2=e=>{const[t,n]=_.useState(!1),r=()=>{Notification.requestPermission(function(o){o==="granted"&&S.requestForToken(e),V2.includes(o)&&n(!0)})},i=()=>{n(!0)};return p.jsx(p.Fragment,{children:t?"":p.jsx("div",{className:S.styles$1["subscription-diaglog"],children:p.jsxs("div",{className:S.styles$1["subscription-container"],children:[p.jsx("h4",{className:S.styles$1["subscription-title"],children:"Notification"}),p.jsx("p",{className:S.styles$1["subscription-text"],children:"Option to receive notifications about the latest information. You can turn them off at any time."}),p.jsxs("div",{className:S.styles$1["subscription-btn__container"],children:[p.jsx("button",{className:S.styles$1["btn-cancel"],onClick:i,children:"Not now"}),p.jsx("button",{className:S.styles$1["btn-success"],onClick:r,children:"Turn on"})]})]})})})},yc=e=>{const[t,n]=_.useState({userName:"",message:"",context:""}),{setNotiData:r}=_.useContext(S.CustomOpenList);function i(){return p.jsx("div",{className:S.styles$2["notification-massage_container"],children:p.jsxs("div",{className:S.styles$2["notification-massage_content"],children:[p.jsx("h6",{className:S.styles$2["notification-name"],children:t==null?void 0:t.userName}),p.jsxs("div",{className:S.styles$2["notification-message_service"],children:[p.jsxs("span",{children:[`${t==null?void 0:t.message} `," "]}),p.jsx("span",{children:t==null?void 0:t.context})]})]})})}return _.useEffect(()=>{t&&Notification.permission==="granted"&&t.userName&&t.message&&t.context&&S.notify(p.jsx(i,{}))},[t]),S.onMessageListener(e).then(o=>{var s,a,l;console.log(o),n({userName:(s=o==null?void 0:o.data)==null?void 0:s.userName,message:(a=o==null?void 0:o.data)==null?void 0:a.message,context:(l=o==null?void 0:o.data)==null?void 0:l.context}),r(c=>{var d;return{...c,unread:{...c.unread,total:((d=c.unread)==null?void 0:d.total)+1}}})}).catch(o=>console.log("failed: ",o)),p.jsx("div",{children:"Notification"in window&&Notification.permission==="default"?p.jsx(I2,{...e}):""})};exports.notify=S.notify;exports.pushError=S.pushError;exports.pushSuccess=S.pushSuccess;exports.pushWarning=S.pushWarning;exports.AutocompleteOption=ei;exports.CheckedIcon=R2;exports.GlobalMenu=Hh;exports.NoData=Uh;exports.NotificationBase=yc;exports.PopUpBase=Xh;exports.StyledAutocomplete=k2;exports.StyledDateRangePicker=N2;exports.ToastConfig=xu;exports.ToastConfigNotification=wu;exports.TopBar=Dc;exports.UnauthorizedPage=Jh;exports.UncheckedIcon=D2;exports.usePopUp=Zh;exports.useStyledAutocomplete=O2;